Search code examples
actionscript-3flashairanimate-cc

What's the easiest way to store preferences data in cross platform AIR application?


I'm new Adobe Animate programmer, I like to ask experienced ActionScripts 3 developers, Is there any default and simple way to store preferences data in ActionScripts3 like UNITY3D (PlayerPrefs)? or not what is easiest way that works without modification for cross platform AIR?

Which one is better and simpler:

1.Text file.

2.XML file.

3.JSON file.

4...?


Solution

  • SharedObject seems to fit the description perfectly

    The SharedObject class is used to read and store limited amounts of data on a user's computer or on a server. Shared objects offer real-time data sharing between multiple client SWF files and objects that are persistent on the local computer or remote server. Local shared objects are similar to browser cookies and remote shared objects are similar to real-time data transfer devices. To use remote shared objects, you need Adobe Flash Media Server.