This content has been marked as final. Show 2 replies
From a projector, you can write out a text file and place it anywhere on
the user's hard drive. Alternately, you can send the information to a
CGI and keep the info on a server.
There are a lot of different ways to store data locally.
Use the built in functions setPref() and getPref().
Use an Xtra to write and read a file. FileIO works well.
Use a Flash localConnection object.
Adobe Community Expert
Commonly one uses the fileIO xtra included with director for maximum
control of external text files, but it only works with a projector. For
simpler lighter duties one can use the setpref getPref function to write
text to a director defined local drive location setpref getPref work in
shockwave as well as director.
One thing I like to do is to store all the game information into a
single list variable, then save a text copy of the list using
setPref("mySettings", string(gameStateList)), restoring state on restart
with gameStateList = value(getPref("mySettings"))
To sucessfully convert back to a list the syntax of the stored list must
be perfect, attempting to create multiple fields of data in a text file
is prone to corrupting th list format, better to do all the database
parcing functions with list operations aplied to a multi element list.