<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>zedia flash blog &#187; Opera</title>
	<atom:link href="http://www.zedia.net/tag/opera/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.zedia.net</link>
	<description>Flash, ActionScript, SEO and everything in between</description>
	<lastBuildDate>Wed, 21 Jul 2010 17:07:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>ExternalInterface Problems in ActionScript 2</title>
		<link>http://www.zedia.net/2008/externalinterface-problems-in-actionscript-2/</link>
		<comments>http://www.zedia.net/2008/externalinterface-problems-in-actionscript-2/#comments</comments>
		<pubDate>Sun, 16 Mar 2008 21:09:24 +0000</pubDate>
		<dc:creator>zedia.net</dc:creator>
				<category><![CDATA[ActionScript 2]]></category>
		<category><![CDATA[ExternalInterface]]></category>
		<category><![CDATA[Opera]]></category>

		<guid isPermaLink="false">http://www.zedia.net/2008/externalinterface-problems-in-actionscript-2/</guid>
		<description><![CDATA[Where I work we use a lot of Javascript because the guys doing it are quite gifted and also because I am the only member of the flash department (well designers do flash, but when it gets complicated I handle it), so it is often the case where Flash has to call a Javascript function. [...]]]></description>
			<content:encoded><![CDATA[<p>Where I work we use a lot of Javascript because the guys doing it are quite gifted and also because I am the only member of the flash department (well designers do flash, but when it gets complicated I handle it), so it is often the case where Flash has to call a Javascript function. With all of my readings I had come to the conclusion that ExternalInterface.call was the best way to access Javascript functions. I guess I was wrong&#8230;</p>
<p>Well first of all ExternalInterface works very badly with Opera (at least the ActionScript 2 version, haven&#8217;t tested the ActionScript 3 version). Searching a bit I found people saying the it worked sometimes, it worked when it wasn&#8217;t inside a mouse related event, etc. Well this isn&#8217;t very reliable.</p>
<p>Also I ran in some trouble where when the Javascript was called in the html it worked fine in all browsers, when I used ExternalInterface it worked fine in Internet Explorer, didn&#8217;t do a thing in Opera and just crashed Firefox. Well that&#8217;s nice cross-browser behavior&#8230;</p>
<p>To solve my problem, I just had to do it the good old way; getURL(&#8220;javascript:myFunction()&#8221;). For the same Javascript function (the one that crashed FireFox), it worked in all browser. I hope this all works better in AS3.</p>
<div id="facebook_like"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.zedia.net%2F2008%2Fexternalinterface-problems-in-actionscript-2%2F&amp;layout=standard&amp;show-faces=false&amp;width=450&amp;action=like&amp;font=arial&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:550px; height:70px;"></iframe></div>]]></content:encoded>
			<wfw:commentRss>http://www.zedia.net/2008/externalinterface-problems-in-actionscript-2/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
