[osflash] Worth to notify?

Martin Heidegger mastakaneda at gmail.com
Thu Jan 25 10:42:49 EST 2007


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/osflash_osflash.org/attachments/20070125/30915b8f/attachment.htm


More information about the osflash mailing list