Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I pretty sure there is a security "feature" in IE that stops JS being called too many times from Flash, to stop it crashing the browser.</p> <p>Is there a reason why you have to call it every frame? </p> <p>I'd suggest against this at all costs as it's putting a LOT of extra stress on the browser.</p> <p>***** EDIT *****</p> <p>If you want to call an ExternalInterface method from JS -> Flash in IE you have to reference the object slightly differently, like this:</p> <pre><code>function thisMovie(movieName) { if (navigator.appName.indexOf("Microsoft") != -1) { return window[movieName]; } else { return document[movieName]; } } </code></pre> <p>Then once you're sure the string you want to pass is constructed correctly you can call it like this from the JS:</p> <pre><code>thisMovie( "theFlashElementID" ).giveMeMyStringAlready(); </code></pre> <p>Then in your Flash you would have something like this:</p> <pre><code>if( ExternalInterface.available ) { ExternalInterface.addCallback( "giveMeMyStringAlready", handleTheStringFromJS ); } else { handleTheFactIDontHaveExternalInterfaceAvailable(); // the only reason this would be is if container that // is embedding the swf isn't fully loaded by the browser } </code></pre> <p>The standout line from the <a href="http://help.adobe.com/en_US/AS3LCR/Flash_10.0/flash/external/ExternalInterface.html" rel="nofollow noreferrer">AS3 docs</a> regarding ExternalInterface is this: </p> <blockquote> <p>Note: When using the External API with HTML, always check that the HTML has finished loading before you attempt to call any JavaScript methods.</p> </blockquote>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload