Note that there are some explanatory texts on larger screens.

plurals
  1. POExternalInterface not working in IE
    primarykey
    data
    text
    <p>I am trying to call an action in a flash object from the javascript:</p> <p>as:</p> <pre><code>function testExternalConnection(str:String):Void { _root.debug.htmlText = "testExternalConnection ok"; } ExternalInterface.addCallback("testExternalConnection", this, testExternalConnection); </code></pre> <p>js:</p> <pre><code>var movie = getFlashMovie("ap1_mod_hidden") movie.testExternalConnection(); </code></pre> <p>with</p> <pre><code>function getFlashMovie(movieName) { var isIE = navigator.appName.indexOf("Microsoft") != -1; return (isIE) ? window[movieName] : document[movieName]; } </code></pre> <p>I'm including my flash using swfobject:</p> <pre><code>&lt;span id="ap1_mod_hidden"&gt;&lt;/span&gt; &lt;script type="text/javascript"&gt; // Setting up the flash player var flashvars = { mp3Path: "stop", artistName : "", trackName : "" }; var params = { codebase: 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0', src: '/flash/ap1_mod.swf', quality: 'high', pluginspage: 'http://www.macromedia.com/go/getflashplayer', scale: 'showall', devicefont: 'false', bgcolor: '#999999', name: 'ap1_mod', menu: 'true', id: 'mod', allowFullScreen: 'false', allowScriptAccess:'always', //sameDomain movie: '/flash/ap1_mod.swf', wmode: "transparent", allowfullscreen: "true" }; swfobject.embedSWF("/flash/ap1_mod.swf", "ap1_mod_hidden", "300", "300", "9.0.0", false, flashvars, params); &lt;/script&gt; </code></pre> <p>Nothing crazy here. So this code is working fine in everything but not in Internet Explorer (what a surprise :\ ). It is getting the movie object correctly but it is not able to call the externalinterface function. It's saying that the property is not defined.</p> <p>I've looked on google and SO with no success... any help would be appreciated!</p>
    singulars
    1. This table or related slice is empty.
    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.
 

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