header
ask question
Click here to ask Question Now Its free No registration required. Flash, Flex, Flash Media Server, ActionScript,Adobe Air. Most questions receive a response in an hour.
Shridhar9
Points:40
Posts:0

12/28/2010 11:14:36 PM

Title: About NetConnection Object( Flex)


Hello,
I am having video-chat, audio-chat, text-chat component in one application. Is it possible to do all three task by using only one NetConnection Object? If yes, then how to do that?
Please Help.....



1
Shawn
Points: 680
Posts:0
1/1/2011 10:34:59 AM



if you are connecting to FMS sever using netConnection then you can use this single connection to create many shared objects in the same flex application and do chatting. In fact all we only use one NetConnection only in one application. In your case you can use the same connection as uri for all sharedobjects inside you components



//new netconnection crated once only
nc = new NetConnection();
nc.connect("rtmp://localhost/youAppOnFMS");

//below both shared objects can use the same "nc" as uri
so = SharedObject.getRemote("fsoName", nc.uri, false);
so.connect(nc);

so1 = SharedObject.getRemote("fsoName1", nc.uri, false);
so1.connect(nc);



Post your Reply
Name  

Email

Type your Reply or Answer

Are you human? What is 0+8 



Members Login

Email  
Password
Forgot Password





This website focus on: Flash | Flex | FMS | RED5 | WOWZA | Flash Media Server | Adobe AIR | ActionScript,Flash Solutions | Flash Question | Flash Answers | Flash Developers | Flash Problem, Flash Help, Flash bugs, Flash workaround | Flash Blog | Flex Question Answers | Flash Forum | Flex Development | Actionscript development | Flash development | Adobe AIR development
Copyright © 2008 AskMeFlash.com. All rights reserved. Privacy Policy | Terms & Conditions