03.05.2013 Views

FLASH® LITE™ 2.x - Adobe Help and Support

FLASH® LITE™ 2.x - Adobe Help and Support

FLASH® LITE™ 2.x - Adobe Help and Support

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Method summary<br />

Modifiers Signature Description<br />

static addListener(objectNa<br />

me:String,<br />

notifyFunction:Funct<br />

ion) : Void<br />

Methods inherited from class Object<br />

addListener (SharedObject.addListener method)<br />

public static addListener(objectName:String, notifyFunction:Function) :<br />

Void<br />

Creates an event listener that the Flash Lite player invokes when the player has loaded the<br />

shared object data from the device. Methods that access the SharedObject instance that the<br />

call returns to the getLocal() method should wait until this function is invoked before<br />

attempting any operations.<br />

Parameters<br />

objectName:String - A string that represents the name of the shared object.<br />

554 ActionScript classes<br />

Creates an event listener that the Flash Lite player<br />

invokes when the player has loaded the shared<br />

object data from the device.<br />

clear() : Void Purges all the data from the shared object <strong>and</strong><br />

deletes the shared object from the disk.<br />

flush(minDiskSpace:N Writes shared object to a local, persistent file.<br />

umber) : Object<br />

static getLocal(name:String<br />

) : SharedObject<br />

static getMaxSize() :<br />

Number<br />

Returns a reference to a locally persistent shared<br />

object that is available only to the current client.<br />

Returns the total number of bytes the SWF file can<br />

use to store mobile shared objects on the device.<br />

getSize() : Number Gets the current size of the shared object, in bytes.<br />

static removeListener(objec<br />

tName:String)<br />

Removes any listeners that were added using the<br />

addListener() method.<br />

addProperty (Object.addProperty method), hasOwnProperty<br />

(Object.hasOwnProperty method), isPropertyEnumerable<br />

(Object.isPropertyEnumerable method), isPrototypeOf (Object.isPrototypeOf<br />

method), registerClass (Object.registerClass method), toString<br />

(Object.toString method), unwatch (Object.unwatch method), valueOf<br />

(Object.valueOf method), watch (Object.watch method)

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!