Note that there are some explanatory texts on larger screens.

plurals
  1. POFlash v11.8.800.168 function call fails in Internet Explorer
    primarykey
    data
    text
    <p>Company recently upgraded to Flash v11.8.800.168 and a flash movie which is loaded using SWFObject (1.1) is not working correctly in Internet Explorer (Firefox works fine). The movie is loaded dynamically using a jquery document.ready method using the "new SWFObject(...); so.write("ID")" method (again SWFObject 1.1).\</p> <p>The movie on load calls a JavaScript function (which is built dynamically using server scripting). The function is being called correctly as checked by a debugger. The JavaScript function calls a method in the flash movie passing it some XML (which is used to render some user and navigation items).</p> <p>Something like this:</p> <pre><code>function calledFromFlash() { document.getElementById("FlashMovie").renderUsingXml('&lt;?xml version 1.0"?&gt;&lt;lotsofxml&gt;&lt;/lotsofxml&gt;'); } </code></pre> <p>Like I said, this all works still in Firefox with the new Flash version.</p> <p>When I step through the function above, using step into with the IE Debugger, I get the following steps:</p> <pre><code>function anonymous() { return eval(this.CallFunction("&lt;invoke name=\"renderUsingXml\" returntype=\"javascript\"&gt;" + __flash__argumentsToXML(arguments, 0) + "&lt;/invoke&gt;")); } </code></pre> <p>At this point, I checked the arguments variable and it contains the XML as one would expect. After the next step into, I get this:</p> <pre><code>try { __flash__toXML(calledFromFlash(undefined)); } catch (e) { "&lt;undefined/&gt;"; } </code></pre> <p>At this point the debugger is already on the catch, yet one more step into take the code into the "&lt;undefined/>" section and I can see that <strong>e</strong> is <strong>Object Expected</strong></p> <p>What I've tried:</p> <ul> <li>Static implementation without SWFObject. This works. But then Firefox doesn't process the XML properly (and it seems to be the same issue as IE)</li> <li>Upgrading to SWFObject 2.2. Using dynamic implementation it fails still. Using static implementation it works in IE but not Firefox</li> </ul> <p>This is NOT my flash movie, the source is... well, I don't know. The guy that wrote it has left the company. That said, this seems like such a crazy issue.</p> <p>My proposed fix is simply to use SWFObject for Firefox and use a static implementation for IE, but I really want to know what is wrong.</p>
    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.
 

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