SWF Maestro: versatile SWF-to-EXE, SWF-to-SCR compiler with a lot of features. Creates applications, games, screensavers from SWF files.

Using the storage

Use 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.
Note. All data is stored in the system registry in HKEY_CURRENT_USER/Software/SWF Maestro/{ID}, where {ID} is the ID of the project.

Command Availability Arguments Purpose
storage.get EXE, EXE PRO, SCR, SCR PRO name, variable Gets a value from the data storage.
storage.set EXE, EXE PRO, SCR, SCR PRO name, value Saves a value in the data storage.
storage.clear EXE, EXE PRO, SCR, SCR PRO none Clears the storage.

storage.get

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”);

storage.set

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”);

storage.clear

This command removes all values from the data storage.

fscommand(“storage.clear”);