[osflash] Javascript integration with the AdobeJavaScriptFlashGateway

Cosmin Cimpoi cosmin.cimpoi at monogroup.com
Wed Oct 18 09:25:50 EDT 2006


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: AliasT 
  To: Open Source Flash Mailing List 
  Sent: Friday, October 13, 2006 5:06 PM
  Subject: [osflash] Javascript integration with the AdobeJavaScriptFlashGateway


  Hi guys,

  Right now I'm using the adobe JavaScriptFlashGateway 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 JavaScriptFlashGateway.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 JavaScriptFlashGateway js? 

  Anyone done much of this before?

  Thanks in advance,
  Alias



------------------------------------------------------------------------------


  _______________________________________________
  osflash mailing list
  osflash at osflash.org
  http://osflash.org/mailman/listinfo/osflash_osflash.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/osflash_osflash.org/attachments/20061018/bb1201be/attachment.htm


More information about the osflash mailing list