Flash Lite 2.x and 3.0 ActionScript Language Reference

addListener (SharedObject.addListener method)

public static addListener(objectName:String, notifyFunction:Function) : Void

Creates an event listener that the Flash Lite player invokes when the player has loaded the shared object data from the device. Methods that access the SharedObject instance that the call returns to the getLocal() method should wait until this function is invoked before attempting any operations.

Parameters

objectName:String - A string that represents the name of the shared object.

notifyFunction:Function - The name of a function the player calls to notify the application that the getLocal() method has executed and the data is finished loading.