macromedia flash flashcom:
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 .
probably the rtmp string is wrong ........
I think there is no problem in this code. because In the documention flashmediaserver_developing.pdf It's write "Applications are run by creating application instances. When a client connects to an application, the client is actually connected to an application instance. For example, a client connects to an application named chat_app, as the following example shows: nc.connect(?rtmp://myDomain.com/chat_app?);" I also tried rtmp://127.0.0.1/test ,but same result
Don't see what you're looking for? Try a search.
|