<?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; ExternalInterface</title>
	<atom:link href="http://www.zedia.net/tag/externalinterface/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.zedia.net</link>
	<description>Flash, ActionScript, SEO and everything in between</description>
	<lastBuildDate>Thu, 02 Feb 2012 17:58:56 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Google Analytics For Flash; is it that usefull?</title>
		<link>http://www.zedia.net/2008/google-analytics-for-flash-is-it-that-usefull/</link>
		<comments>http://www.zedia.net/2008/google-analytics-for-flash-is-it-that-usefull/#comments</comments>
		<pubDate>Thu, 11 Dec 2008 00:16:06 +0000</pubDate>
		<dc:creator>zedia.net</dc:creator>
				<category><![CDATA[Google Analytics]]></category>
		<category><![CDATA[ExternalInterface]]></category>
		<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://www.zedia.net/2008/google-analytics-for-flash-is-it-that-usefull/</guid>
		<description><![CDATA[Not too long ago Google released Google Analytics for Flash. My first reaction was one of happiness; finally some attention would be put into Flash analytics. But after looking into it a bit more I found out that Google Analytics for Flash wasn&#8217;t such a big deal. On Google Analytics side, nothing changed; no specific [...]]]></description>
			<content:encoded><![CDATA[<p>Not too long ago Google released <a title="Google analytics for flash" href="http://code.google.com/p/gaforflash/" target="_blank">Google Analytics for Flash</a>. My first reaction was one of happiness; finally some attention would be put into Flash analytics. But after looking into it a bit more I found out that Google Analytics for Flash wasn&#8217;t such a big deal.</p>
<p>On Google Analytics side, nothing changed; no specific stats just for Flash,  just the good old interface we all know.  On the Flash side, nothing changed much there either; instead of doing this:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="actionscript" style="font-family:monospace;">&nbsp;
ExternalInterface.<span style="color: #0066CC;">call</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;pageTracker._trackPageview('/somepage');&quot;</span><span style="color: #66cc66;">&#41;</span>;</pre></td></tr></table></div>

<p>You now do this:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="actionscript" style="font-family:monospace;">tracker = <span style="color: #000000; font-weight: bold;">new</span> GATracker<span style="color: #66cc66;">&#40;</span> <span style="color: #0066CC;">this</span>, <span style="color: #ff0000;">&quot;window.PageTracker&quot;</span>, <span style="color: #ff0000;">&quot;Bridge&quot;</span>, <span style="color: #000000; font-weight: bold;">false</span> <span style="color: #66cc66;">&#41;</span>;
tracker.<span style="color: #006600;">trackPageview</span><span style="color: #66cc66;">&#40;</span> <span style="color: #ff0000;">&quot;/somepage&quot;</span><span style="color: #66cc66;">&#41;</span>;</pre></td></tr></table></div>

<p>From the look of it, it&#8217;s actually more code than before.</p>
<p>The cool thing about GA for Flash is the ActionScript 3 mode. In that mode, you can call the tracker even if the JavaScript code wasn&#8217;t imported in the HTML page the Flash file is embedded. Now that is a possibility that we didn&#8217;t have before. So in a context where you do not have control over the HTML you flash will be embedded, this will enable you to do analytics just the same. I have also seen in the road map for the project that they want to implement it for Adobe AIR also; this will be very useful.</p>
<p><strong>What will you be using Google Analytics for Flash for? </strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.zedia.net/2008/google-analytics-for-flash-is-it-that-usefull/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<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>
]]></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>

