all groups > flash actionscript > march 2005 >
You're in the

flash actionscript

group:

Re: localConnection on multiple browser instances


Re: localConnection on multiple browser instances tusharwadekar
3/21/2005 8:28:58 PM
flash actionscript:
don't know why 4 replies are posted...
Re: localConnection on multiple browser instances TBallas0207
3/21/2005 8:42:11 PM
I was using javascript calls to communicate/pass variables between 2 swfs. I
found that the javascript used to communicate was acting slower than the
actionscript inside the flash movies. It would only run the code after the page
was finished downloading providing inconsistent results.

i have found however that using a unique id for the connect name in the
localConnection.connect() method works.

Example:
var sendNav_lc:LocalConnection = new LocalConnection();
sendNav_lc.connect( "navControl_" + uid);

As long as the uid's match in both swfs it should work.

good Luck
AddThis Social Bookmark Button