
62
Example
The following example writes data about the connection to a log file.
reconnection.onStatus = function(info)
{
_root.log += "Recording stream status.\n";
_root.log += "Event: " + info.code + "\n";
_root.log += "Type: " + info.level + "\n";
_root.log += "Message:" + info.description + "\n";
}
See also
NetConnection.call, NetConnection.close, NetConnection.connect
NetConnection.uri
Availability
• Flash Player 6.
• Flash Communication Server MX.
Usage
myConnection.uri
Description
Read-only property; a string representing the target URI that was passed in with
NetConnection.connect. If NetConnection.connect hasn’t yet been called for myConnection,
this property is undefined.
See also
NetConnection.connect
NetStream (object)
The NetStream object opens a one-way streaming connection between the Flash Player and the
Flash Communication Server through a connection made available by a NetConnection object. A
NetStream object is like a channel inside a NetConnection object; this channel can either publish
audio and/or video data, using
NetStream.publish, or subscribe to a published stream and
receive data, using
NetStream.play. You can publish or play live (real-time) data and play
previously recorded data.
You can also use NetStream objects to send text messages to all subscribed clients (see
NetStream.send).
Comentários a estes Manuais