Returns
Nothing.
Description
Event handler; invoked every time the status of the NetConnection object changes. For
example, if the connection with the server is lost in an RTMP connection, the
NetConnection.isConnected
invoked with a status message of
NetConnection.onStatus
to check for connectivity.
Example
The following example defines a function for the
indicate whether the NetConnection was successful:
nc = new NetConnection();
nc.onStatus = function(info){
if (info.code == "NetConnection.Connect.Success") {
_root.gotoAndStop(2);
} else {
if (! nc.isConnected){
_root.gotoAndStop(1);
}
}
};
NetConnection.uri
Availability
Flash Communication Server MX 1.0.
Usage
myNetConnection.uri
Description
Property (read-only); A string indicating the URI that was passed by the
NetConnection.connect()
NetConnection.connect()
property is set to
NetConnection.Connect.closed
is used only to indicate a failed connection. Use this event handler
method. This property is set to
or after
NetConnection.close
, and
false
NetConnection.onStatus
. For AMF connections,
handler that outputs messages to
onStatus
before a call to
null
is called.
NetConnection class
is
111
Need help?
Do you have a question about the FLASH MEDIA SERVER 2-SERVER-SIDE ACTIONSCRIPT LANGUAGE and is the answer not in the manual?