Just saw an internal email indicating that we'll probably get the URI out of the onConnect callback, it wasn't intentional. If the bug was filed I think an engineer has just started looking into these issues, hopefully he'll get a look at it.
Matt -----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Brian Lesser Sent: Friday, February 10, 2006 12:28 PM To: [email protected] Subject: Re: [flexcoders] NetConnection.connect parameters not being passed to FMS correctly Just an FYI. I filed a bug on this. Also this works: nc.connect("rtmp:/flex2FMS_AMF0Test", "blesser", "bigSecret"); But this does not: nc.connect("rtmp:/flex2FMS_AMF0Test", {userName:"blesser", password:"bigSecret"}); Yours truly, -Brian Brian Lesser wrote: >Hi, >I've been trying to connect to FMS with additional parameters in the >nc.connect() call. However, I cannot pass an object as a second >parameter. Instead of an object, FMS receives a string containing the >nc.uri as a second parameter. > >For example: > >nc.connect("rtmp:/flex2FMSTest", {userName:"blesser", >password:"bigSecret"}); > >I don't receive the object within FMS. Here is some server-side test code: > >application.onConnect = function(client){ > trace("client connecting> client: " + client); > trace("Number of arguments to onConnect: " + arguments.length); > for (var p=0; p <arguments.length; p++) { > trace("arguments." + p + ": " + arguments[p]); > trace("typeof " + p + ": " + typeof arguments[p]); > } > return true; >} > >And here's its output: > >client connecting> client: [object Client] >Number of arguments to onConnect: 3 >arguments.0: [object Client] >typeof 0: object >arguments.1: rtmp:/flex2FMSTest >typeof 1: string >arguments.2: undefined >typeof 2: undefined > >I have already set: > >NetConnection.defaultObjectEncoding = flash.net.ObjectEncoding.AMF0; > >Before I file a bug, has anyone got this working? > >Yours truly, >-Brian > > > -- ______________________________________________________________________ Brian Lesser Assistant Director, Teaching and Technology Support Computing and Communications Services Ryerson University 350 Victoria St. Toronto, Ontario Phone: (416) 979-5000 ext. 6835 M5B 2K3 Fax: (416) 979-5220 Office: AB48D E-mail: [EMAIL PROTECTED] (Enter through LB66) Web: http://www.ryerson.ca/~blesser ______________________________________________________________________ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

