Question
Can't connect the Flash Media Server
hi ,I am a jackaroo in Flash Media Server
My OS is Windows XP ,I install the Flash Media Server in C:\programme files\
using fms2_console.swf i can successfully connect to the server and manage it.
I make a empty folder named 'test' in the application folder then i deploy it in cosole.
next I write actionscript in flex to connect to the server. but it always return 'connection failed'
in the server log ,it displays 'Sun 06:46:55 PM: Core (3964) socket migration failed.'
I use netstat -a ,the port 1111,1935 ,11110,19350 are open.
The code I writed looks like this
NetConnection.defaultObjectEncoding = flash.net.ObjectEncoding.AMF0;
public var net_con:NetConnection;
net_con=new NetConnection();
net_con.addEventListener(NetStatusEvent.NET_STATUS,connectionHandle);
net_con.connect("rtmp:/test");
private function connectionHandle(event:NetStatusEvent):void
{
if((event.info.code=="NetConnection.Connect.Success")||net_con.connected==true)
{
Alert.show("CONNECTION SUCC!!!");
}
else
{
Alert.show("CONNECTION FAILED!!!");
}
}
I don't why it cann't connect to the server
I googled it but find nothing helpful and I think you can help me .
Very sorry for my bad english .
My OS is Windows XP ,I install the Flash Media Server in C:\programme files\
using fms2_console.swf i can successfully connect to the server and manage it.
I make a empty folder named 'test' in the application folder then i deploy it in cosole.
next I write actionscript in flex to connect to the server. but it always return 'connection failed'
in the server log ,it displays 'Sun 06:46:55 PM: Core (3964) socket migration failed.'
I use netstat -a ,the port 1111,1935 ,11110,19350 are open.
The code I writed looks like this
NetConnection.defaultObjectEncoding = flash.net.ObjectEncoding.AMF0;
public var net_con:NetConnection;
net_con=new NetConnection();
net_con.addEventListener(NetStatusEvent.NET_STATUS,connectionHandle);
net_con.connect("rtmp:/test");
private function connectionHandle(event:NetStatusEvent):void
{
if((event.info.code=="NetConnection.Connect.Success")||net_con.connected==true)
{
Alert.show("CONNECTION SUCC!!!");
}
else
{
Alert.show("CONNECTION FAILED!!!");
}
}
I don't why it cann't connect to the server
I googled it but find nothing helpful and I think you can help me .
Very sorry for my bad english .