Example
This example defines a function for the
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.
Usage
myNetConnection.uri
Description
Property (read-only); A string indicating the URI that was passed by the
NetConnection.connect
NetConnection.connect
setInterval
Availability
Flash Communication Server MX.
Usage
setInterval(function, interval[, p1, ..., pN]);
setInterval(object, methodName, interval[, p1, ..., pN]);
Parameters
The name of a defined ActionScript function or a reference to an anonymous
function
function.
An object derived from the ActionScript Object object.
object
The name of the method to call on
methodName
The time (interval) between calls to
interval
Optional parameters passed to
p1, ..., pN
Returns
A unique ID for this call. If the interval is not set, the method returns -1.
40
onStatus
method. This property is set to
or after
NetConnection.close
function
function
handler that outputs messages to indicate
before a call to
null
is called.
.
object
, in milliseconds.
.
Need help?
Do you have a question about the FLASH COMMUNICATION SERVER MX-SERVER-SIDE COMMUNICATION ACTIONSCRIPT DICTIONARY and is the answer not in the manual?