Flash Lite 2.x and 3 Help

SharedObject class

A Flash Lite shared object, as implemented in the ActionScript SharedObject class, allows Flash Lite content to save data to the device when the application is closed and load the data from the device when the application is played again.

For more information about the SharedObject class, see the following references:

  • Developing Flash Lite 2.x and 3.0 Applications
  • Chapter 14, "Creating Interaction with ActionScript" in Learning ActionScript 2.0 in Flash
  • Chapter 2, "ActionScript Classes," in Flash Lite 2.x and 3.0 ActionScript Language Reference

Method summary

The following table lists the methods that are partially supported by the SharedObject class when using ActionScript for Flash Lite 2.x and later.

Method

Description

flush()

Immediately writes a locally persistent shared object to a local file.

Limitations: The write operation is asynchronous and the result is not immediately available.

getLocal()

Returns a reference to a locally persistent shared object that is available only to the current client.

Limitations: In Flash Lite, a shared object cannot be shared between two SWF files.

Flash Lite method extensions

The following table lists the methods that have been added as extensions to the SharedObject class when using ActionScript for Flash Lite 2.x and later.

Method

Description

GetMaxSize()

Flash Lite returns the maximum size allotted for persistent storage of a SWF file.

 

Send me an e-mail when comments are added to this page | Comment Report