Flex NetConnection.connect with object arguments
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Macromedia Flash Server > Flex NetConnection.connect with object arguments




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Flex NetConnection.connect with object arguments  
David Clark


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
06-19-06 06:11 PM

I was thinking that it is more likely that people from this list have played
with flex than those from the flex list have tried FMS so...

I have not been able to pass an object arguments to FMS onConnect in the
connect method.

I have in the past done something like this:

nc = new NetConnection();
nc.connect("rtmp://localhost/ComponentTest", {name:"test", data:"foobar
"});

then in onConnect you can

application.onConnect = function(client, obj){
trace(obj);
trace(obj.name);

etc...

but with Flex2b3 + FMS2 the object is always undefined. I have tried several
different ways of defining and creating the object to no avail. Multiple
string parameters work, Number works but any other Object type just seems to
get ignored. Ignored in that it is just missing from the server side, the
arguments before and after it in the rest of the arguments are there but it
is not.

so

connect("rtmp://localhost/ComponentTest", "aaa", new Object(), "bbb");

with

onConnect(client, one, two, three){

means

one = "aaa"
two = "bbb"
three = undefined

odd... any one else playing with this / seen this?


--
david

"Many people die at twenty five and aren't buried until they are seventy
five".
- Benjamin Franklin
 ________________________________________
_______
FlashComm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 12:58 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register