Sharedobject - MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE Reference

Flash lite 2.x actionscript language reference
Hide thumbs Also See for FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE:
Table of Contents

Advertisement

function checkForm():Boolean {
if (username_txt.text.length == 0) {
status_txt.text = "fill in username";
Selection.setFocus("username_txt");
return false;
}
if (password_txt.text.length == 0) {
status_txt.text = "fill in password";
Selection.setFocus("password_txt");
return false;
}
status_txt.text = "success!";
Selection.setFocus(null);
return true;
}
See also
getFocus (Selection.getFocus method)

SharedObject

Object
|
+-SharedObject
public dynamic class SharedObject
extends
Object
The Flash Lite version of the SharedObject class allows Flash SWF files to save data to the
device when it is closed and load that data from the device when it is played again. Flash Lite
shared objects store a set of name-value pairs to the device.
Note: The name "SharedObject" is derived from the Flash SharedObject class. The Flash
version of this class allows multiple Flash SWF files to share their saved data. However, the
Flash Lite version of the SharedObject class does not support sharing data between different
Flash SWF files.
In Flash Lite, a SWF file is considered to be a different version if it was modified from the
original version, even if it has the same name. This is different than in Flash Player, where a
SWF file is considered to be the same if its URL and name are the same, even if the SWF file
was modified. In Flash Lite, two different versions of a SWF file can't access each other's
shared objects.
To maintain consistency with the Flash platform, the same ActionScript construct and calling
conventions are used for the Flash Lite player.
582
ActionScript classes

Advertisement

Table of Contents
loading

Table of Contents