<?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>Daniel Eneström &#187; Flash</title>
	<atom:link href="http://enestrom.com/tag/flash/feed/" rel="self" type="application/rss+xml" />
	<link>http://enestrom.com</link>
	<description>Keep It Simply Stupid</description>
	<lastBuildDate>Fri, 23 Dec 2011 00:50:33 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Flash trace app for Mac OS X</title>
		<link>http://enestrom.com/20110108/flash-trace-app-for-mac-os-x/</link>
		<comments>http://enestrom.com/20110108/flash-trace-app-for-mac-os-x/#comments</comments>
		<pubDate>Sat, 08 Jan 2011 19:36:49 +0000</pubDate>
		<dc:creator>daniel</dc:creator>
				<category><![CDATA[Adobe Flash]]></category>
		<category><![CDATA[Adobe Flex]]></category>
		<category><![CDATA[Debugging]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[Mac OS X]]></category>

		<guid isPermaLink="false">http://blog.enestrom.com/?p=135</guid>
		<description><![CDATA[The other day my FlashTracer (Firefox add-on) and my FBTracer (FireBug extension for Firefox) stopped working (again!). I&#8217;m so tired of these flash tracing tools doing this to me all the time and as an addition I&#8217;ve wanted a stand-alone &#8230; <a href="http://enestrom.com/20110108/flash-trace-app-for-mac-os-x/">Continue reading <span class="meta-nav">&#8594;</span></a><div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://enestrom.com/20110108/flash-trace-app-for-mac-os-x/' addthis:title='Flash trace app for Mac OS X ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></description>
			<content:encoded><![CDATA[<p><a href="http://enestrom.enkelbutik.se/wp-content/uploads/2011/01/FlashTrace.zip"><img class="alignright size-full wp-image-137" title="Download FlashTrace" src="http://enestrom.enkelbutik.se/wp-content/uploads/2011/01/Skärmavbild-2011-01-08-kl.-20.05.02.jpeg" alt="Download FlashTrace" width="138" height="139" /></a>The other day my FlashTracer (Firefox add-on) and my FBTracer (FireBug extension for Firefox) stopped working (again!). I&#8217;m so tired of these flash tracing tools doing this to me all the time and as an addition I&#8217;ve wanted a stand-alone tool for my flash trace for a while, so I can have the Flash trace and Safari windows visible at the same time, without the need for Firefox (or a massive debugging tool &#8211; I just want a simple trace output). That&#8217;s why this time I wrapped up a small Mac OS app that simply opens Terminal and shows the user the Flash trace output in a Terminal window.</p>
<p>This is no magical app, it still demands that the user has the <a href="http://www.adobe.com/support/flashplayer/downloads.html" target="_blank">DEBUG version of Flash player</a> installed and that your flash trace text file is in this directory:<br />
~/Library/Preferences/Macromedia/Flash Player/Logs/flashlog.txt<br />
(the ~ meaning your home directory in unix talk)</p>
<p>The app is downloadable below and is free for you to use. Note that I release the app with a <a href="http://sv.wikipedia.org/wiki/GNU_General_Public_License" target="_blank">GPL license</a> and your are welcome to use, distribute and change it. You can open the app using the AppleScript Editor. I would love to hear if you make any useful additions to it but cannot provide any support, sorry.</p>
<p>Enjoy!</p>
<p><a href="http://enestrom.enkelbutik.se/wp-content/uploads/2011/01/FlashTrace.zip">Download FlashTrace.app here</a></p>
<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://enestrom.com/20110108/flash-trace-app-for-mac-os-x/' addthis:title='Flash trace app for Mac OS X ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></content:encoded>
			<wfw:commentRss>http://enestrom.com/20110108/flash-trace-app-for-mac-os-x/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Create iPhone apps using Flash</title>
		<link>http://enestrom.com/20091021/create-iphone-apps-using-flash/</link>
		<comments>http://enestrom.com/20091021/create-iphone-apps-using-flash/#comments</comments>
		<pubDate>Wed, 21 Oct 2009 04:43:24 +0000</pubDate>
		<dc:creator>daniel</dc:creator>
				<category><![CDATA[Adobe Flash]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[iPhone]]></category>

		<guid isPermaLink="false">http://blog.enestrom.com/?p=109</guid>
		<description><![CDATA[I&#8217;m so excited about the upcoming Flash Pro CS5. It will let you create native iPhone applications by exporting your ActionScript 3 movie from Flash. The app will, when it&#8217;s been exported, behave as any other app and can be &#8230; <a href="http://enestrom.com/20091021/create-iphone-apps-using-flash/">Continue reading <span class="meta-nav">&#8594;</span></a><div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://enestrom.com/20091021/create-iphone-apps-using-flash/' addthis:title='Create iPhone apps using Flash ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m so excited about the upcoming Flash Pro CS5. It will let you create native iPhone applications by exporting your ActionScript 3 movie from Flash. The app will, when it&#8217;s been exported, behave as any other app and can be uploaded to the AppStore etc.<br />
<a href="http://labs.adobe.com/technologies/flashcs5/appsfor_iphone/">Read more on Adobe Labs</a></p>
<p><a href="http://www.youtube.com/watch?v=M7SK5ZKAaio">http://www.youtube.com/watch?v=M7SK5ZKAaio</a></p>
<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://enestrom.com/20091021/create-iphone-apps-using-flash/' addthis:title='Create iPhone apps using Flash ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></content:encoded>
			<wfw:commentRss>http://enestrom.com/20091021/create-iphone-apps-using-flash/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google Maps Flash API is sooo fun</title>
		<link>http://enestrom.com/20091011/google-maps-flash-api-is-sooo-fun/</link>
		<comments>http://enestrom.com/20091011/google-maps-flash-api-is-sooo-fun/#comments</comments>
		<pubDate>Sun, 11 Oct 2009 19:32:57 +0000</pubDate>
		<dc:creator>daniel</dc:creator>
				<category><![CDATA[Adobe Flex]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[Google Maps]]></category>
		<category><![CDATA[RIA]]></category>

		<guid isPermaLink="false">http://blog.enestrom.com/20091011/google-maps-flash-api-is-sooo-fun/</guid>
		<description><![CDATA[I&#8217;m implementing some Google Maps magic into a RIA for a client. Together with an auto-location thing using IP numbers the results are indeed stunning. I love Google&#8217;s API&#8217;s! Google Maps API for Flash Developer Guide<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://enestrom.com/20091011/google-maps-flash-api-is-sooo-fun/' addthis:title='Google Maps Flash API is sooo fun ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m implementing some Google Maps magic into a RIA for a client. Together with an auto-location thing using IP numbers the results are indeed stunning. I love Google&#8217;s API&#8217;s!</p>
<p><a href="http://code.google.com/intl/sv-SE/apis/maps/documentation/flash/intro.html">Google Maps API for Flash Developer Guide</a></p>
<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://enestrom.com/20091011/google-maps-flash-api-is-sooo-fun/' addthis:title='Google Maps Flash API is sooo fun ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></content:encoded>
			<wfw:commentRss>http://enestrom.com/20091011/google-maps-flash-api-is-sooo-fun/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google Analytics and Flex using ExternalInterface</title>
		<link>http://enestrom.com/20081114/google-analytics-and-flex-using-externalinterface/</link>
		<comments>http://enestrom.com/20081114/google-analytics-and-flex-using-externalinterface/#comments</comments>
		<pubDate>Fri, 14 Nov 2008 10:17:09 +0000</pubDate>
		<dc:creator>daniel</dc:creator>
				<category><![CDATA[Adobe Flex]]></category>
		<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[ExternalInterface]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[Google Analytics]]></category>

		<guid isPermaLink="false">http://blog.enestrom.com/?p=64</guid>
		<description><![CDATA[A big issue for people creating flash sites is getting the site to work well with Google Analytics. &#8220;The page doesn&#8217;t refresh. How can I track the clicks?&#8221; Well, it is actually very easy. If you look at the trace &#8230; <a href="http://enestrom.com/20081114/google-analytics-and-flex-using-externalinterface/">Continue reading <span class="meta-nav">&#8594;</span></a><div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://enestrom.com/20081114/google-analytics-and-flex-using-externalinterface/' addthis:title='Google Analytics and Flex using ExternalInterface ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></description>
			<content:encoded><![CDATA[<p>A big issue for people creating flash sites is getting the site to work well with Google Analytics. &#8220;The page doesn&#8217;t refresh. How can I track the clicks?&#8221;</p>
<p>Well, it is actually very easy. If you look at the trace script Google Analytics gives you to add to your HTML code you can find a call to a method that actually records the event. This method is simple to call using JavaScript.</p>
<p>I have solved it like this in my latest Flex App (which is a public site). NOTE: This is for the new trace code version.</p>
<p><strong>1. Paste the Google Analytics trace code as usual just before the &lt;/BODY&gt; tag.</strong><br />
Check your Google Analytics account for the correct code.</p>
<p><strong>2. See to it that your embedded flash works with ExternalInterface.</strong><br />
This can be a bit tricky, but in my experience the things that do the trick are to change <em>allowScriptAccess</em> to <em>always</em> and inside the Flex App call a custom JavaScript function on <em>creationComplete</em> like so: <em>ExternalInterface.call(&#8216;initFlash&#8217;)</em>. In my html this initFlash function creates a variable reference to the embedded flash. This sort of &#8220;creates the connection&#8221; between them. I&#8217;m not sure why this is so, but for me it works, so I&#8217;m happy with that. If there is a need I would be glad to create a more thorough tutorial on the use of ExternalInterface. Just let me know.</p>
<p><strong>3. Create a custom JavaScript that passes the URL you want to register to the Google Analytics script.</strong><br />
This is not necessary, but I have found it easier to work with, as you don&#8217;t need to edit you call from inside of Flex if something changes in the Google code or such.</p>
<pre lang="javascript">function trackURL(url)
{
    pageTracker._trackPageview(url);
}</pre>
<p><strong>4. Call your custom javascript from within Flex.</strong><br />
I created a static class for this. (I love static classes). I named it <em>Analytics.as</em> and placed it in the root source folder in the Flex App. It looks like this. All it does really is call the JavaScript using ExternalInterface, but putting it within a static class lets you call it from anywhere in your application without having to pass on references to this or that object or function.</p>
<pre lang="actionscript">package
{
   public class Analytics
   {
      import flash.external.ExternalInterface;

      public static function track(url:String) : void
      {
         ExternalInterface.call("trackURL", url);
      }
   }
}</pre>
<p>And anywhere in your app write:</p>
<pre lang="actionscript">
Analytics.track('/path_to_tha_page_you_want_to_track/');
</pre>
<p>(NOTE: You have to start your path with a slash).</p>
<p><strong>There you go.</strong> It now should track the URL:s you want and give you nice statistics.</p>
<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://enestrom.com/20081114/google-analytics-and-flex-using-externalinterface/' addthis:title='Google Analytics and Flex using ExternalInterface ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></content:encoded>
			<wfw:commentRss>http://enestrom.com/20081114/google-analytics-and-flex-using-externalinterface/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>FlashTracer Firefox plugin</title>
		<link>http://enestrom.com/20080703/flashtracer-firefox-plugin/</link>
		<comments>http://enestrom.com/20080703/flashtracer-firefox-plugin/#comments</comments>
		<pubDate>Thu, 03 Jul 2008 08:01:02 +0000</pubDate>
		<dc:creator>daniel</dc:creator>
				<category><![CDATA[Debugging]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://blog.enestrom.com/?p=6</guid>
		<description><![CDATA[Update Jan 24 -09: The Flash Tracer that works with Firefox 3 has to be downloaded from the creator&#8217;s own site. The one at Mozilla Addons doesn&#8217;t work with 3.x (yet). In the instructions below I have therefore used the &#8230; <a href="http://enestrom.com/20080703/flashtracer-firefox-plugin/">Continue reading <span class="meta-nav">&#8594;</span></a><div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://enestrom.com/20080703/flashtracer-firefox-plugin/' addthis:title='FlashTracer Firefox plugin ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></description>
			<content:encoded><![CDATA[<p><span style="color: #808080;"><em>Update Jan 24 -09: </em><span style="color: #008000;">The Flash Tracer that works with Firefox 3 has to be downloaded from the creator&#8217;s own site. The one at Mozilla Addons doesn&#8217;t work with 3.x (yet). In the instructions below I have therefore used the link to his own site.</span></span></p>
<p>If you&#8217;re developing for Flash/Flex the FlashTracer can be quite a nifty plugin. It lets you see the flash player trace output directly in a sidebar in you browser. Outputting debugging info is something I use all the time while developing and I have tried several times to get FlashTracer to work, but haven&#8217;t managed, so I usually have a textarea inside my flash/flex project with a custom debug output. I guess I have been too impatient before but today I sat down and read through some posts about it. This is how I eventually got it to work on my Mac:</p>
<p>1. Make sure you&#8217;re using the latest Flash Player <strong>Debug</strong> version. <a title="Flash Player download" href="http://www.adobe.com/support/flashplayer/downloads.html" target="_blank">Download it here</a></p>
<p>2. Install the <a title="FlashTracer Firefox add-on" href="http://www.sephiroth.it/firefox/flashtracer/" target="_blank">plugin</a> (of course)</p>
<p>3. Open the FlashTracer sidebar in FireFox. Click the Preferences button.</p>
<p>4. Under the area named &#8220;Select output file&#8221; click browse and point the plugin to the flashlog.txt file your debug player outputs. In my case (being on a mac) it was here:<br />
<em>/Users/{username}/Library/Preferences/Macromedia/Flash Player/Logs/flashlog.txt</em></p>
<p>The plugin will ask if you want to replace the file, which is stupid because you will want to read from the file, not write to it, but that&#8217;s just how it is. Don&#8217;t let it scare&#8217;ya.</p>
<p>5. Save/close preferences.</p>
<p>6. Restart FireFox.</p>
<p>That should do it.</p>
<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://enestrom.com/20080703/flashtracer-firefox-plugin/' addthis:title='FlashTracer Firefox plugin ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></content:encoded>
			<wfw:commentRss>http://enestrom.com/20080703/flashtracer-firefox-plugin/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

