MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE Reference page 594

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

Advertisement

The following events notify you when certain SharedObject activities occur:
Code property
SharedObject.Flush.Failed
SharedObject.Flush.Success
Availability: ActionScript 1.0; Flash Lite 2.0
Parameters
infoObject:Object
Example
The following example displays different messages based on whether the user chooses to allow
or deny the SharedObject instance to write to the disk.
this.createTextField("message_txt", this.getNextHighestDepth(), 0, 30, 120,
50);
this.message_txt.wordWrap = true;
this.createTextField("status_txt", this.getNextHighestDepth(), 0, 90, 120,
100);
this.status_txt.wordWrap = true;
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;
my_so.onStatus = function(infoObject:Object) {
for (var i in infoObject) {
status_txt.text += i+"-"+infoObject[i] +"\n";
}
};
594
ActionScript classes
Level property
Error
Status
- A parameter defined according to the status message.
Meaning
SharedObject.flush()
returned
has failed (the
"pending"
user did not allot additional disk
space for the shared object when
Flash Player showed the Local
Storage Settings dialog box).
SharedObject.flush()
returned
was successfully
"pending"
completed (the user allotted
additional disk space for the shared
object).
method that
method that

Advertisement

Table of Contents
loading

Table of Contents