Trying to connect from Flex to FMS2 using NetConnection passing an object argument. Any object type arguments seem to be ignored...
I have existing Flash to FMS code that works something like this:
nc = new NetConnection();
nc.connect("rtmp://localhost/ComponentTest", {name:"test", data:"foobar"});
on the server side you can then:
application. obj){
trace(obj);
trace(obj.name);
trace(obj.data);
etc...
but now from Flex any arguments other than String or Number type get skipped over, I receive the arguments before them and ones after but not those ones, ie:
connect("rtmp://localhost/ComponentTest", "aaa", {bbb:"bbb"}, "ccc");
with on the server side
onConnect(client, one, two, three){
gives me
>two = "ccc"
three = undefined
I have tried other ways of delaring the object (just in case this particular one is not correct). Originally I was trying to pass an instance of a class that I created. That is wen I found tat I could not even pass a simple Object.
The docs still indicate that the arguments parameters can be of any type. Anyone else trying to use FMS with Flex and done this or seen this problem?
Thanks.
--
david
"Many people die at twenty five and aren't buried until they are seventy five".
- Benjamin Franklin __._,_.___
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
| Web site design development | Computer software development | Software design and development |
| Macromedia flex | Software development best practice |
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

