Saving user data with SetPref() and GetPref(). File location saved with Lingo in Adobe Director 11

If you are using Adobe Director to create applications or games, or anything at all that has a need for the user to save and load data, you are most likely going to want to use the SetPref() and GetPref() commands. These commands don’t need a separate plugin and they are also Shockwave safe.

There are a couple of a great, simple little examples in articles on Director-Online, here: http://www.director-online.com/buildArticle.php?id=329 and here: http://director-online.com/forums/read.php?2,26334

These articles are quite old now, and still applicable. One little bit of extra information for Vista users: The save file is saved to the following location on the users’ harddisk:

C:\Users\\AppData\LocalLow\Adobe\Director 11\Prefs

Where should be replaced by… you got it! (the angle brackets aren’t needed).

This entry was posted in Game Design, Tutorials. Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

Post a Comment

Your email is never published nor shared.

You may use these HTML tags and attributes <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>