Yes.
The reason it's an unique id is that if you open the same page twice the id s differ. If the id is hardcoded (so all instances listen on the same lc name) only one of the 2 swf s will receive the messages.
 
cosmin
----- Original Message -----
From: Alias™
Sent: Wednesday, October 18, 2006 4:31 PM
Subject: Re: [osflash] _javascript_ integration with theAdobeJavaScriptFlashGateway

So what if I just figured out a unique ID and hardcoded it into the swf and the page? Would that work?

Cheers,
Alias

On 18/10/06, Cosmin Cimpoi <[EMAIL PROTECTED]> wrote:
Hi.
In order to call a method in that swf you need to know the name of the local connection it is listening to:
 
var uid = new Date().getTime();
 
The thing is that you (or they) need to pass it from html to that swf. Or to get it into _javascript_ from that swf. Either way the js and swf need to agree on the same id. Some security issues realted to the diference of the originating domain of the swf could pop up so a AllowDomain instruction in that swf  might be necessary.
 
cosmin
 
----- Original Message ----- 
From: Alias™
Sent: Friday, October 13, 2006 5:06 PM
Subject: [osflash] _javascript_ integration with the AdobeJavaScriptFlashGateway

Hi guys,

Right now I'm using the adobe _javascript_FlashGateway to communicate between flash and _javascript_.

However, I have a problem. I need to be able to communicate with a swf served by a third party, which is embedded via their own _javascript_, which I can't change.

So - is it possible to use the _javascript_FlashGateway.js WITHOUT knowing the name/DOM location of the swf that I want to send it to?

Could I just set up something in the swf to identify it to the _javascript_FlashGateway js?

Anyone done much of this before?

Thanks in advance,
Alias


_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org


_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org




_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org
_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org

Reply via email to