MACROMEDIA FLEX-FLEX ACTIONSCRIPT LANGUAGE Reference page 423

Actionscript language reference
Table of Contents

Advertisement

In addition to these specific
System.onStatus
LocalConnection, NetStream, or SharedObject class passes an information object with a level
property of "error", but you have not defined an
then Flash uses the function you define for
Note: The Camera and Microphone classes also have
objects with a level property of "error". Therefore,
a function for these handlers.
Example
The following example shows how to create a
objects when a class-specific
// Create generic function
System.onStatus = function(genericError:Object){
// Your script would do something more meaningful here
trace("An error has occurred. Please try again.");
}
The following example shows how to create an onStatus function for an instance of the
NetStream class:
// Create function for NetStream object
videoStream_ns.onStatus = function(infoObject:Object) {
if (infoObject.code == "NetStream.Play.StreamNotFound") {
trace("Could not find video file.");
}
}
See also
Camera.onStatus, LocalConnection.onStatus, Microphone.onStatus,
NetStream.onStatus,
System.setClipboard()
Availability
SWF files published for Flash Player 6 or later, playing in Flash Player 7 or later.
Usage
System.setClipboard(string:String) : Boolean
Parameters
A plain-text string of characters to place on the system Clipboard, replacing its current
string
contents (if any).
Returns
A Boolean value:
methods, Flash also provides a super function called
onStatus
, which serves as a secondary error message handler. If an instance of the
function does not exist:
onStatus
SharedObject.onStatus
if the text is successfully placed on the Clipboard;
true
function for that particular instance,
onStatus
instead.
System.onStatus
handlers but do not pass information
onStatus
System.onStatus
function to process information
System.onStatus
is not called if you don't specify
otherwise.
false
System.setClipboard()
423

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Questions and answers

This manual is also suitable for:

Flex

Table of Contents