Flash Media Server Developer Documentation

Understand the connection messages

When you run the sample and click the Connect button, you see messages like this, as long as the connection is successful:

Okay, let's connect now
connected is: true
event.info.level: status
event.info.code: NetConnection.Connect.Success
Congratulations! you're connected

The line connected is: true shows the value of the NetConnection.connected property, meaning whether Flash Player is connected to the server over RTMP. The next two lines describe the netStatus event the NetConnection object sends to report its connection status:

event.info.level: status
event.info.code: NetConnection.Connect.Success

The level property can have two values, status or error. The code property describes the status of the connection. You can check for various code values in your netStatusHandler function and take actions. Always check for a successful connection before you create streams or do other work in your application.

Likewise, when you click the Close button, you see the following:

Now we're disconnecting
connected is: false
event.info.level: status
event.info.code: NetConnection.Connect.Closed
Thanks! the connection has been closed