Custom Search

Connecting to Flash Media Server Application

This article will guide you how we can connect to Adobe Flash Media Server Application using Adobe Flash 8 or Adobe Flash MX 2004 Professional. To connect to remote servers using Flash, NetConnection class is used. For more information on NetConnection Class you can go through Action Script NetConnection Class
Flash Media Server uses RTMP(Real Time Messaging Protocol) for communicating with the Client Flash Application.




 
//create a netConnection object
var nc = new NetConnection();
 
//keep an eye on the status events, we need to know when we have connected up
nc.onStatus = function(info) {
	if(info.code == "NetConnection.Connect.Success") {
		trace("Hurray Connected to Flash Media Server Application");
	}
}
 
//connecting to Flash Media Server
nc.connect("rtmp://127.0.0.1/audiotest/");

Your email:  
Subscribe Unsubscribe  


Code Explanation:

Similar Posts

Did you enjoy this post? Why not leave a comment below and continue the conversation, or subscribe to my feed and get articles like this delivered automatically to your feed reader.

Comments

No comments yet.

Leave a comment

(required)

(required)