EasyManua.ls Logo

MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE - Onstatus (Sharedobject.onstatus Handler)

MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE
780 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
SharedObject 593
If the shared object listener has not yet been called, getSize() returns 0. For details about
using the listener, see the
addListener() method.
Availability: ActionScript 1.0; Flash Lite 2.0
Returns
Number - A numeric value specifying the size of the shared object, in bytes.
Example
The following example gets the size of the shared object
my_so:
var items_array:Array = new Array(101, 346, 483);
var currentUserIsAdmin:Boolean = true;
var currentUserName:String = "Ramona";
var my_so:SharedObject = SharedObject.getLocal("superfoo");
my_so.data.itemNumbers = items_array;
my_so.data.adminPrivileges = currentUserIsAdmin;
my_so.data.userName = currentUserName;
var soSize:Number = my_so.getSize();
trace(soSize);
onStatus (SharedObject.onStatus handler)
onStatus = function(infoObject:Object) {}
Invoked every time an error, warning, or informational note is posted for a shared object. To
respond to this event handler, you must create a function to process the information object
that is generated by the shared object.
The information object has a code property that contsins a string that describes the result of
the
onStatus handler, and a level property that contains a string that is either "Status" or
"Error".
In addition to this handler, Flash Lite also provides a super function called
System.onStatus.
If
onStatus is invoked for a particular object and no function is assigned to respond to it,
Flash Lite processes a function assigned to
System.onStatus, if it exists.

Table of Contents

Related product manuals