Using the storageUse these commands to work with the internal storage allowing you to
save data and use it later. It is necessary when your application has
to save some user-defined information and use it when it is started next
times.
This command gets a value from the data storage. The 1st argument is the name of the value in the storage. The 2nd argument is the variable this value will be assigned to. If the value with the specified name is not found in the storage, an empty string will be assigned to the variable. The following script takes the value of UName from the storage and assigns it to the UserName variable: fscommand(“storage.get”, “UName,UserName”); This command saves the value in the data storage. The 1st argument is the name of the value in the storage. The 2nd argument is the content of the value. The following script saves the My First Name value under the UName name in the storage: fscommand(“storage.set”, “UName,My First Name”); This command removes all values from the data storage. fscommand(“storage.clear”); |
All rights reserved © 2007 SWFMaestro.com