Onstatus (Sharedobject.onstatus Handler) - 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

If the shared object listener has not yet been called,
returns 0. For details about
getSize()
using the listener, see the
method.
addListener()
Availability: ActionScript 1.0; Flash Lite 2.0
Returns
- A numeric value specifying the size of the shared object, in bytes.
Number
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
handler, and a
property that contains a string that is either
or
onStatus
level
"Status"
.
"Error"
In addition to this handler, Flash Lite also provides a super function called
.
System.onStatus
If
is invoked for a particular object and no function is assigned to respond to it,
onStatus
Flash Lite processes a function assigned to
, if it exists.
System.onStatus
SharedObject
593

Advertisement

Table of Contents
loading

Table of Contents