Sharedobject.onstatus - MACROMEDIA FLASH MX 2004-ACTIONSCRIPT LANGUAGE Reference

Actionscript language reference
Table of Contents

Advertisement

SharedObject.onStatus

Availability
Flash Player 6.
Usage
myLocalSharedObject.onStatus = function(infoObject:Object) {
// your statements here
}
Parameters
A parameter defined according to the status message.
infoObject
Returns
Nothing.
Description
Event handler; invoked every time an error, warning, or informational note is posted for a shared
object. If you want to respond to this event handler, you must create a function to process the
information object generated by the shared object.
The information object has a
handler, and a
onStatus
In addition to this
If
is invoked for a particular object and no function is assigned to respond to it, Flash
onStatus
processes a function assigned to
The following events notify you when certain SharedObject activities occur:
Code property
SharedObject.Flush.Failed
SharedObject.Flush.Success
Example
The following example displays different messages based on whether the user chooses to allow or
deny the SharedObject object instance to write to the disk.
var message_str:String;
this.createTextField("message_txt", this.getNextHighestDepth(), 0, 0, 300,
22);
message_txt.html = true;
746
Chapter 2: ActionScript Language Reference
property containing a string that describes the result of the
code
property containing a string that is either
level
handler, Flash also provides a super function called System.onStatus.
onStatus
System.onStatus,
Level property Meaning
Error
Status
if it exists.
A
SharedObject.flush()
has failed (the user did not allot
"pending"
additional disk space for the shared object when
Flash Player showed the Local Storage Settings
dialog box).
A
SharedObject.flush()
has been successfully completed
"pending"
(the user allotted additional disk space for the
shared object).
or
"Status"
"Error"
command that returned
command that returned
.

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MX 2004-ACTIONSCRIPT LANGUAGE and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Flash mx

Table of Contents