I just expirienced that ExternalInterface does not work if the layer thats
beeing used for the SWFObject.write method was created by JavaScript and has
not yet been applied to the DOM node. Example:


Here ExternalInterface does not work:

   var childDiv = document.createElement("div");
   var so = this.so = new SWFObject("movie.swf", "flash", 40, 40, "8",
"#FFFF00");
   so.addParam("allowScriptAccess", "always");

   so.write(childDiv);

   document.appendChild(childDiv);

Here ExernalInterface does work:
   var childDiv = document.createElement("div");
   var so = this.so = new SWFObject("movie.swf", "flash", 40, 40, "8",
"#FFFF00");
   so.addParam("allowScriptAccess", "always");

   document.appendChild(childDiv);

   so.write(childDiv);

I don't know the reason for this missbehaviour of IE. Anyway: Is this a
known bug/feature?

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

Reply via email to