Macromedia Flash Server - NetConnection and __resolve

This is Interesting: Free IT Magazines  
Home > Archive > Macromedia Flash Server > June 2006 > NetConnection and __resolve





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author NetConnection and __resolve
Sarah Allen

2006-06-19, 1:11 pm

I'm trying to get __resolve to work with NetConnection, so I can dynamically
take an action based on what method is called from the server. In the
following example I only see "nc.onStatus NetConnection.Connect.Success" in
the trace window. If I uncomment the setId function it does get called.

nc = new NetConnection();
nc.__resolve = function(name) {
trace("__resolve " + name);
};
/**
nc.setId = function(num) {
trace('setId '+num);
}
**/
nc.connect("rtmp://localhost/test");
nc.onStatus = function(info){
trace("nc.onStatus "+info.code);
};

I must be missing something obvious. Can anyone point me at what I'm doing
wrong?

Thanks,
Sarah
________________________________________
_______
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

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com