<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: SWFObject ExternalInterface bug on IE</title>
	<atom:link href="http://labs.hellokeita.com/2007/10/16/swfobject-externalinterface-bug-on-ie/feed/" rel="self" type="application/rss+xml" />
	<link>http://labs.hellokeita.com/2007/10/16/swfobject-externalinterface-bug-on-ie/</link>
	<description>Yet another labs blog</description>
	<lastBuildDate>Wed, 14 Dec 2011 16:27:23 -0800</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: STEVEV</title>
		<link>http://labs.hellokeita.com/2007/10/16/swfobject-externalinterface-bug-on-ie/comment-page-1/#comment-1292</link>
		<dc:creator>STEVEV</dc:creator>
		<pubDate>Wed, 30 Mar 2011 12:17:59 +0000</pubDate>
		<guid isPermaLink="false">http://labs.hellokeita.com/2007/10/16/swfobject-externalinterface-bug-on-ie/#comment-1292</guid>
		<description>WOW! two of my programmers couldn&#039;t figure it out after hours of code review.

I was using flash to track Google Analytics with PrettyPhoto and jquery carousel.

i finally found the solution thanks to this article... now I can save face in front of the client tomorrow.</description>
		<content:encoded><![CDATA[<p>WOW! two of my programmers couldn&#8217;t figure it out after hours of code review.</p>
<p>I was using flash to track Google Analytics with PrettyPhoto and jquery carousel.</p>
<p>i finally found the solution thanks to this article&#8230; now I can save face in front of the client tomorrow.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adobe Flash ExternalInterface issues with Internet Explorer &#124; ZaaLabs</title>
		<link>http://labs.hellokeita.com/2007/10/16/swfobject-externalinterface-bug-on-ie/comment-page-1/#comment-1291</link>
		<dc:creator>Adobe Flash ExternalInterface issues with Internet Explorer &#124; ZaaLabs</dc:creator>
		<pubDate>Tue, 11 Jan 2011 22:09:48 +0000</pubDate>
		<guid isPermaLink="false">http://labs.hellokeita.com/2007/10/16/swfobject-externalinterface-bug-on-ie/#comment-1291</guid>
		<description>[...] that was well documented.  I came across some solutions that appeared to work for people such as: ensure your object tag has an id, ensuring you set the type or class id on the object tag. These solutions worked for some people, [...]</description>
		<content:encoded><![CDATA[<p>[...] that was well documented.  I came across some solutions that appeared to work for people such as: ensure your object tag has an id, ensuring you set the type or class id on the object tag. These solutions worked for some people, [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mika</title>
		<link>http://labs.hellokeita.com/2007/10/16/swfobject-externalinterface-bug-on-ie/comment-page-1/#comment-1288</link>
		<dc:creator>mika</dc:creator>
		<pubDate>Sun, 14 Nov 2010 12:39:14 +0000</pubDate>
		<guid isPermaLink="false">http://labs.hellokeita.com/2007/10/16/swfobject-externalinterface-bug-on-ie/#comment-1288</guid>
		<description>I finally got it working in IE7 with SwfObject 2.2 Dynamic Publishing : 

function SendDataToFlashMovie(id)
{
var flashMovie=getFlashMovieObject(&quot;_colorizeid&quot;);
	
    flashMovie.updateColorJs(id);
	
}

function getFlashMovieObject(movieName)
{
  if (navigator.appName == &quot;Microsoft Internet Explorer&quot;)
  {
	  var div = document.getElementById(&quot;primary_block&quot;);
	  var flash = div.getElementsByTagName(movieName);
  	  return window.document[movieName];
  }
  if (document.getElementById(movieName) )
  {
    return document.getElementById(movieName);
  }
}

where :
- movieName is : attributes.id 
- primary_block is a first level div, in which the swf&#039;s div is placed

swfobject.embedSWF(&quot;mySwf.swf&quot;, &quot;image-block&quot;, &quot;300&quot;, &quot;300&quot;, &quot;9.0.0&quot;, &quot;expressInstall.swf&quot;, flashvars, params, attributes);


  </description>
		<content:encoded><![CDATA[<p>I finally got it working in IE7 with SwfObject 2.2 Dynamic Publishing : </p>
<p>function SendDataToFlashMovie(id)<br />
{<br />
var flashMovie=getFlashMovieObject(&#8221;_colorizeid&#8221;);</p>
<p>    flashMovie.updateColorJs(id);</p>
<p>}</p>
<p>function getFlashMovieObject(movieName)<br />
{<br />
  if (navigator.appName == &#8220;Microsoft Internet Explorer&#8221;)<br />
  {<br />
	  var div = document.getElementById(&#8221;primary_block&#8221;);<br />
	  var flash = div.getElementsByTagName(movieName);<br />
  	  return window.document[movieName];<br />
  }<br />
  if (document.getElementById(movieName) )<br />
  {<br />
    return document.getElementById(movieName);<br />
  }<br />
}</p>
<p>where :<br />
- movieName is : attributes.id<br />
- primary_block is a first level div, in which the swf&#8217;s div is placed</p>
<p>swfobject.embedSWF(&#8221;mySwf.swf&#8221;, &#8220;image-block&#8221;, &#8220;300&#8243;, &#8220;300&#8243;, &#8220;9.0.0&#8243;, &#8220;expressInstall.swf&#8221;, flashvars, params, attributes);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Confidant</title>
		<link>http://labs.hellokeita.com/2007/10/16/swfobject-externalinterface-bug-on-ie/comment-page-1/#comment-1284</link>
		<dc:creator>Confidant</dc:creator>
		<pubDate>Wed, 01 Sep 2010 02:15:44 +0000</pubDate>
		<guid isPermaLink="false">http://labs.hellokeita.com/2007/10/16/swfobject-externalinterface-bug-on-ie/#comment-1284</guid>
		<description>I was having a problem where ExternalInterface would break if the swf was cached in IE. Clearing the cache would always make it work again. My solution was to detect the browser, and if it was IE, to generate a timestamp before writing the swf to the browser window. So the URL would then be something like &quot;/path/to/my/swfs/myfile.swf?timestamp=93932&quot;  (number changes every time, forcing the browser to reload it).</description>
		<content:encoded><![CDATA[<p>I was having a problem where ExternalInterface would break if the swf was cached in IE. Clearing the cache would always make it work again. My solution was to detect the browser, and if it was IE, to generate a timestamp before writing the swf to the browser window. So the URL would then be something like &#8220;/path/to/my/swfs/myfile.swf?timestamp=93932&#8243;  (number changes every time, forcing the browser to reload it).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: execution for pee wee</title>
		<link>http://labs.hellokeita.com/2007/10/16/swfobject-externalinterface-bug-on-ie/comment-page-1/#comment-1208</link>
		<dc:creator>execution for pee wee</dc:creator>
		<pubDate>Sat, 18 Jul 2009 23:18:57 +0000</pubDate>
		<guid isPermaLink="false">http://labs.hellokeita.com/2007/10/16/swfobject-externalinterface-bug-on-ie/#comment-1208</guid>
		<description>nice! i&#039;m gonna make my own journal</description>
		<content:encoded><![CDATA[<p>nice! i&#8217;m gonna make my own journal</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Surreal Medias</title>
		<link>http://labs.hellokeita.com/2007/10/16/swfobject-externalinterface-bug-on-ie/comment-page-1/#comment-1207</link>
		<dc:creator>Surreal Medias</dc:creator>
		<pubDate>Thu, 09 Jul 2009 18:43:17 +0000</pubDate>
		<guid isPermaLink="false">http://labs.hellokeita.com/2007/10/16/swfobject-externalinterface-bug-on-ie/#comment-1207</guid>
		<description>WOW thanks a bunch. The swfObject was my problem.</description>
		<content:encoded><![CDATA[<p>WOW thanks a bunch. The swfObject was my problem.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Drew Horine</title>
		<link>http://labs.hellokeita.com/2007/10/16/swfobject-externalinterface-bug-on-ie/comment-page-1/#comment-1180</link>
		<dc:creator>Drew Horine</dc:creator>
		<pubDate>Fri, 24 Apr 2009 18:10:18 +0000</pubDate>
		<guid isPermaLink="false">http://labs.hellokeita.com/2007/10/16/swfobject-externalinterface-bug-on-ie/#comment-1180</guid>
		<description>That saved me a lot of frustration. Here&#039;s how I used it for Dreamweaver&#039;s standard AC_FL_RunContent code:

Add this at the end of your AC_FL_RunContent parameter list: 

,&#039;id&#039;,&#039;yourSWF&#039;, &#039;name&#039;,&#039;yourSWF&#039;

Then add this to your object class parameters:




Of course, &quot;yourSWF&quot; is whatever you want to call the thing.

Now I&#039;m calling javaScripts off the page (even with jQuery) in Firefox 3, IE7, Chrome, Safari (Win) and Safari (Mac).</description>
		<content:encoded><![CDATA[<p>That saved me a lot of frustration. Here&#8217;s how I used it for Dreamweaver&#8217;s standard AC_FL_RunContent code:</p>
<p>Add this at the end of your AC_FL_RunContent parameter list: </p>
<p>,&#8217;id&#8217;,'yourSWF&#8217;, &#8216;name&#8217;,'yourSWF&#8217;</p>
<p>Then add this to your object class parameters:</p>
<p>Of course, &#8220;yourSWF&#8221; is whatever you want to call the thing.</p>
<p>Now I&#8217;m calling javaScripts off the page (even with jQuery) in Firefox 3, IE7, Chrome, Safari (Win) and Safari (Mac).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Artem K.</title>
		<link>http://labs.hellokeita.com/2007/10/16/swfobject-externalinterface-bug-on-ie/comment-page-1/#comment-1078</link>
		<dc:creator>Artem K.</dc:creator>
		<pubDate>Tue, 07 Apr 2009 23:28:51 +0000</pubDate>
		<guid isPermaLink="false">http://labs.hellokeita.com/2007/10/16/swfobject-externalinterface-bug-on-ie/#comment-1078</guid>
		<description>I battled this issue for days now. The problem: function names!!!!!

Check this site out:
http://blog.warptube.com/2008/12/2/oddities-with-externalinterface-and-ie

A really ugly issue with ExternalInterface can come up with naming your functions. You’re code will throw an error in code that looks something like:

function __flash__addCallback(instance, name) {
instance[name] = function () {
return eval(instance.CallFunction(”&quot; +
__flash__argumentsToXML(arguments,0) + “”));
}
}

If you use: play, stop, tags, item, length, and likely some others I’m unaware of you will get an error inside Adobe’s JavaScript hook code. What’s happening is you inadvertently are screwing with some read only attributes of some IE functionality which is causing things to grind to a halt. My solution is to just prepend all my addCallback routines with an underscore.</description>
		<content:encoded><![CDATA[<p>I battled this issue for days now. The problem: function names!!!!!</p>
<p>Check this site out:<br />
<a href="http://blog.warptube.com/2008/12/2/oddities-with-externalinterface-and-ie" rel="nofollow">http://blog.warptube.com/2008/12/2/oddities-with-externalinterface-and-ie</a></p>
<p>A really ugly issue with ExternalInterface can come up with naming your functions. You’re code will throw an error in code that looks something like:</p>
<p>function __flash__addCallback(instance, name) {<br />
instance[name] = function () {<br />
return eval(instance.CallFunction(”&#8221; +<br />
__flash__argumentsToXML(arguments,0) + “”));<br />
}<br />
}</p>
<p>If you use: play, stop, tags, item, length, and likely some others I’m unaware of you will get an error inside Adobe’s JavaScript hook code. What’s happening is you inadvertently are screwing with some read only attributes of some IE functionality which is causing things to grind to a halt. My solution is to just prepend all my addCallback routines with an underscore.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vfleurima</title>
		<link>http://labs.hellokeita.com/2007/10/16/swfobject-externalinterface-bug-on-ie/comment-page-1/#comment-1065</link>
		<dc:creator>vfleurima</dc:creator>
		<pubDate>Fri, 27 Mar 2009 00:02:50 +0000</pubDate>
		<guid isPermaLink="false">http://labs.hellokeita.com/2007/10/16/swfobject-externalinterface-bug-on-ie/#comment-1065</guid>
		<description>EDIT: A bit clearer.

I ran into similar issues using dynamically-generated elements with Externalnterface + Flash 10 + IE 7 + SWFObject 1.5. The fix for me was to ensure that whatever element I ended up calling SWFObject.write() on was previously appended to the DOM using appendChild() or somesuch.</description>
		<content:encoded><![CDATA[<p>EDIT: A bit clearer.</p>
<p>I ran into similar issues using dynamically-generated elements with Externalnterface + Flash 10 + IE 7 + SWFObject 1.5. The fix for me was to ensure that whatever element I ended up calling SWFObject.write() on was previously appended to the DOM using appendChild() or somesuch.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vfleurima</title>
		<link>http://labs.hellokeita.com/2007/10/16/swfobject-externalinterface-bug-on-ie/comment-page-1/#comment-1064</link>
		<dc:creator>vfleurima</dc:creator>
		<pubDate>Thu, 26 Mar 2009 23:54:16 +0000</pubDate>
		<guid isPermaLink="false">http://labs.hellokeita.com/2007/10/16/swfobject-externalinterface-bug-on-ie/#comment-1064</guid>
		<description>I ran into the same issues with Externalnterface + Flash 10 + IE 7 + SWFObject 1.5. The fix is to ensure that whatever DIV you end up calling SWFObject.write() on is already appended to the DOM.</description>
		<content:encoded><![CDATA[<p>I ran into the same issues with Externalnterface + Flash 10 + IE 7 + SWFObject 1.5. The fix is to ensure that whatever DIV you end up calling SWFObject.write() on is already appended to the DOM.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

