<?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>Stuntbox &#187; flash</title>
	<atom:link href="http://stuntbox.com/blog/tag/flash/feed/" rel="self" type="application/rss+xml" />
	<link>http://stuntbox.com</link>
	<description>David Sleight&#039;s Blog</description>
	<lastBuildDate>Tue, 06 Jul 2010 15:04:58 +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>Crosstown Traffic</title>
		<link>http://stuntbox.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fstuntbox.com%2Fblog%2F2009%2F09%2Fcrosstown-traffic%2F&amp;seed_title=Crosstown+Traffic</link>
		<comments>http://stuntbox.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fstuntbox.com%2Fblog%2F2009%2F09%2Fcrosstown-traffic%2F&amp;seed_title=Crosstown+Traffic#comments</comments>
		<pubDate>Wed, 16 Sep 2009 14:14:07 +0000</pubDate>
		<dc:creator>David Sleight</dc:creator>
				<category><![CDATA[Post]]></category>
		<category><![CDATA[adobe]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[w3c]]></category>
		<category><![CDATA[web standards]]></category>

		<guid isPermaLink="false">http://www.stuntbox.com/?p=211</guid>
		<description><![CDATA[<p>Up until now, if you’ve used advanced Web techniques like AJAX or Flash to create interactivity on your site, you’ve been punished when it comes time to tally up your traffic. Even at this late date, most off-the-shelf tracking software remains ignorant of clicks that don’t involve simple HTML pageviews. Since your fancy Web 2.0 app doesn’t transfer HTML with every click, those clicks don’t get counted. </p>]]></description>
			<content:encoded><![CDATA[<p>Up until now, if you&#8217;ve used advanced Web techniques like AJAX or Flash to create interactivity on your site, you&#8217;ve been punished when it comes time to tally up your traffic. Even at this late date, most off-the-shelf tracking software remains ignorant of clicks that don&#8217;t involve simple HTML pageviews. Since your fancy Web 2.0 app doesn&#8217;t transfer HTML with every click, those clicks don&#8217;t get counted.</p>
<p>There are workarounds. Clunky at best and mostly proprietary, they&#8217;re seldom used by the third party agencies who audit the traffic claims of major sites (and thereby influence the rates those sites can charge advertisers). In other words, they don&#8217;t rate with the moneymen. </p>
<p>There have been efforts to emphasize other metrics, such as the <a href="http://www.stuntbox.com/blog/2007/07/sweeps-week/" title="Stuntbox: Sweeps Week">amount of time a user spends on a site</a>, but they haven&#8217;t amounted to much yet. At least not enough to free us from traffic woes when playing anywhere remotely near the bleeding edge. </p>
<p>It&#8217;s quite plain this state of affairs is holding these technologies, and the Web, back. Enough so that Adobe has apparently decided to take matters into its own hands, at great expense, by <a href="http://news.cnet.com/8301-13860_3-10353733-56.html" title="CNET: Adobe to buy Omniture for $1.8 billion">plunking down a king&#8217;s ransom to acquire Omniture</a>, a major player in the business of counting site traffic. </p>
<p>With this purchase, Adobe clearly intends to construct a bully pulpit from which it can influence this state of affairs for its benefit, serving their deeply vested interest in Flash. Good for them. </p>
<p>So this begs a question. </p>
<p>Is anybody working on a solution for AJAX? </p>
<p>It would seem like the work currently underway on HTML5, a specification fittingly dubbed &#8220;Web Applications 1.0&#8243; at one point, provides a choice opportunity to establish some clear guidance on trackable AJAX events in Web apps for everyone involved, and help steer the ship forward. </p>
<p>I&#8217;ve been scanning the spec-in-progress, but haven&#8217;t yet seen anything that seems to fit the bill. <a href="http://dev.w3.org/html5/spec/Overview.html" title=" HTML5 W3C Editor's Draft">It&#8217;s a big spec</a>. I could easily be missing something. Maybe we can use the <code><a href="http://dev.w3.org/html5/spec/Overview.html#hyperlink-auditing" title="HTML5 W3C Editor's Draft: Hyperlink Auditing">ping</a></code> attribute? Perhaps it&#8217;s in how <a href="http://dev.w3.org/html5/spec/Overview.html#fetching-resources" title="HTML5 W3C Editor's Draft: Fetching resources">resource fetching</a> is defined? I don&#8217;t know. But I&#8217;m sure minds more knowledgeable than mine have some ideas. Ideas that wouldn&#8217;t constitute a proprietary hack. </p>
<p>The major sites won&#8217;t budge until the auditors move. The auditors won&#8217;t move until the corporate coalitions make some decisions. The corporate coalitions are comprised of the owners of said major sites. Lather, rinse, repeat. </p>
<p>What&#8217;s needed now is a standards body to break this stalemate. Otherwise we remain locked into a stagnant scenario where no one wants to be the first mover, and the proprietary solutions pass us all by. </p>
]]></content:encoded>
			<wfw:commentRss>http://stuntbox.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fstuntbox.com%2Fblog%2F2009%2F09%2Fcrosstown-traffic%2F&amp;seed_title=Crosstown+Traffic/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Test Movie and AS2 Garbage Collection Hilarity</title>
		<link>http://stuntbox.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fstuntbox.com%2Fblog%2F2006%2F05%2Ftest-movie-and-as2-garbage-collection-hilarity%2F&amp;seed_title=Test+Movie+and+AS2+Garbage+Collection+Hilarity</link>
		<comments>http://stuntbox.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fstuntbox.com%2Fblog%2F2006%2F05%2Ftest-movie-and-as2-garbage-collection-hilarity%2F&amp;seed_title=Test+Movie+and+AS2+Garbage+Collection+Hilarity#comments</comments>
		<pubDate>Sat, 27 May 2006 20:50:09 +0000</pubDate>
		<dc:creator>David Sleight</dc:creator>
				<category><![CDATA[Post]]></category>
		<category><![CDATA[actionscript]]></category>
		<category><![CDATA[flash]]></category>

		<guid isPermaLink="false">http://www.stuntbox.com/blog/2006/05/test-movie-and-as2-garbage-collection-hilarity/</guid>
		<description><![CDATA[When ActionScript arrays just won't give up the ghost.]]></description>
			<content:encoded><![CDATA[<p>Want to scramble the Flash 8 compiler&#8217;s brain? (Or more likely your own?) Give the following class a quick whirl.</p>
<pre><code>class TestArray {
    private var foo:Array = new Array();
    public function TestArray() {
         this.foo.push("bar");
         trace("this.foo.length ––> " + this.foo.length);
     }
}</code>
</pre>
<p>I know, I know. Bad form. &#8216;Tis true. The class property <code>foo</code> isn&#8217;t really a compile-time constant. But the compiler says nary a word in protest. No errors thrown. Nada. Zip. Zero. <em>Nothing</em>. Which would be fine <em>if</em> the Flash IDE didn&#8217;t get all butterfingered on you.</p>
<p>But try creating a new instance of <code>TestArray</code> in your Flash movie and invoke &#8220;Test Movie&#8221; a few times without closing the window. The length of <code>foo</code> will just grow and grow and grow. It&#8217;s only cleaned up between tests if you close out the Test Movie window and start over again.</p>
<p>I could be wrong, but methinks I smell a compiler garbage collection issue (albeit one surrounding bad code). Shouldn&#8217;t the compiler be smart enough to let you know when you&#8217;ve done something that&#8217;s basically foolish?</p>
]]></content:encoded>
			<wfw:commentRss>http://stuntbox.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fstuntbox.com%2Fblog%2F2006%2F05%2Ftest-movie-and-as2-garbage-collection-hilarity%2F&amp;seed_title=Test+Movie+and+AS2+Garbage+Collection+Hilarity/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>You Could Learn a Lot From a Dummy</title>
		<link>http://stuntbox.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fstuntbox.com%2Fblog%2F2006%2F03%2Fyou-could-learn-a-lot-from-a-dummy%2F&amp;seed_title=You+Could+Learn+a+Lot+From+a+Dummy</link>
		<comments>http://stuntbox.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fstuntbox.com%2Fblog%2F2006%2F03%2Fyou-could-learn-a-lot-from-a-dummy%2F&amp;seed_title=You+Could+Learn+a+Lot+From+a+Dummy#comments</comments>
		<pubDate>Wed, 08 Mar 2006 07:14:03 +0000</pubDate>
		<dc:creator>David Sleight</dc:creator>
				<category><![CDATA[Post]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[web design]]></category>

		<guid isPermaLink="false">http://www.stuntbox.com/blog/2006/03/you-could-learn-a-lot-from-a-dummy/</guid>
		<description><![CDATA[Like Rock 'Em Sock 'Em robots, only better.]]></description>
			<content:encoded><![CDATA[<p><img class="inset-bug" src="/images/posts/crash_test_circle.jpg" alt="crash test circle emblem" width="110" height="110" />The dummy lives! The <a href="http://www.businessweek.com/autos/car_care/index.html#iihsViewer" title="BusinessWeek Online: Crash Test Ratings">IIHS Ratings Viewer</a>, one of the projects I&#8217;ve been tinkering with at the office for a while now, went live this week. It&#8217;s a handy Flash app for browsing through the extensive crash test data put out by the fine folks at the <a href="http://www.iihs.org/" title="Insurance Institute for Highway Safety">Insurance Institute for Highway Safety</a>. Even if you don&#8217;t know them by name, you&#8217;ve probably seen crash test footage from this non-profit in more than one TV news report. (They&#8217;re regulars on <cite><a href="http://dateline.msnbc.com/" title="Dateline NBC">Dateline</a></cite>.) It&#8217;s their job to gauge the safety of the vehicles we ride around in day-in, day-out, and help make sure auto makers follow through when problems are found.</p>
<p>All that smashing and crashing generates a whopping pile of (sometimes quite thorny) data. The challenge was to come up with a visual metaphor that conveyed all that information clearly, and in a fairly compact column space. So pretty early on I figured that using an actual color-coded crash test dummy was the way to go. From there it was off to the races with ActionScript and Photoshop. (Though I can&#8217;t take credit for the 3D rendering—that goes to one of our Maya techs and a handy stock library of prebuilt 3D objects.) Back-end coding was handled by newly-minted BusinessWeek cohort <a href="http://discountcompetence.com/" title="Discount Competence">Mike O&#8217;Malley</a>, who is without a doubt one of the most talented coders I&#8217;ve ever met. </p>
<p>Make sure to check out the videos. They&#8217;re stunning, sobering affairs—particularly the newer side impact tests. You can see where work from the Institute has clearly had an effect (Ford F-150, I&#8217;m looking at you). </p>
<p>All in all, a fun, meaningful project. Though I was occasionally taken with the urge to pop on the iPod and crank up <cite><a href="http://www.amazon.com/gp/product/B000002VKU/sr=8-1/qid=1141799116/ref=pd_bbs_1/104-6482753-4046318?%5Fencoding=UTF8" title="Amazon.com: Crash Test Dummies - God Shuffled His Feet">Mmm Mmm Mmm Mmm</a></cite>. (Hey, I don&#8217;t care what anybody says, I liked that band!) </p>
]]></content:encoded>
			<wfw:commentRss>http://stuntbox.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fstuntbox.com%2Fblog%2F2006%2F03%2Fyou-could-learn-a-lot-from-a-dummy%2F&amp;seed_title=You+Could+Learn+a+Lot+From+a+Dummy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apple.com Shows Flash a Little More Love</title>
		<link>http://stuntbox.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fstuntbox.com%2Fblog%2F2005%2F09%2Fapplecom-shows-flash-a-little-more-love%2F&amp;seed_title=Apple.com+Shows+Flash+a+Little+More+Love</link>
		<comments>http://stuntbox.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fstuntbox.com%2Fblog%2F2005%2F09%2Fapplecom-shows-flash-a-little-more-love%2F&amp;seed_title=Apple.com+Shows+Flash+a+Little+More+Love#comments</comments>
		<pubDate>Wed, 21 Sep 2005 20:21:29 +0000</pubDate>
		<dc:creator>David Sleight</dc:creator>
				<category><![CDATA[Post]]></category>
		<category><![CDATA[adobe]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[flash]]></category>

		<guid isPermaLink="false">http://www.stuntbox.com/blog/2005/09/applecom-shows-flash-a-little-more-love/</guid>
		<description><![CDATA[Flash in the darnedest of places.]]></description>
			<content:encoded><![CDATA[<p>Anyone else notice the prominent use of Flash on the freshly updated <a href="http://www.apple.com/dotmac/" title=".Mac home page">.Mac home page</a>? More than that, look under the hood and you&#8217;ll find that embedding is being handled with <a href="http://osflash.org/doku.php?id=flashobject" title="OSFlash.org: FlashObject">FlashObject</a> too. </p>
<p>While this isn&#8217;t the first time Apple has used Flash on their site (see the <a href="http://www.apple.com/finalcutstudio/" title="Apple.com: Final Cut Studio">Final Cut Studio</a> pages, and the image galleries for the <a href="http://www.apple.com/ipodnano/" title="iPod nano">iPod nano</a> that neatly mimic the side-to-side browsing of the iTunes Music Store), it&#8217;s certainly the most prominent. A far cry from the days of tinkering with sprites in QuickTime tracks. (How many old copies of LiveStage Pro are out there just hanging around collecting dust?) </p>
]]></content:encoded>
			<wfw:commentRss>http://stuntbox.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fstuntbox.com%2Fblog%2F2005%2F09%2Fapplecom-shows-flash-a-little-more-love%2F&amp;seed_title=Apple.com+Shows+Flash+a+Little+More+Love/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Hidden Depths</title>
		<link>http://stuntbox.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fstuntbox.com%2Fblog%2F2005%2F08%2Fthe-hidden-depths%2F&amp;seed_title=The+Hidden+Depths</link>
		<comments>http://stuntbox.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fstuntbox.com%2Fblog%2F2005%2F08%2Fthe-hidden-depths%2F&amp;seed_title=The+Hidden+Depths#comments</comments>
		<pubDate>Wed, 31 Aug 2005 06:07:55 +0000</pubDate>
		<dc:creator>David Sleight</dc:creator>
				<category><![CDATA[Post]]></category>
		<category><![CDATA[actionscript]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[web development]]></category>

		<guid isPermaLink="false">http://www.stuntbox.com/blog/2005/08/the-hidden-depths/</guid>
		<description><![CDATA[Or, While I'll Never Use the V2 Components Ever Again.]]></description>
			<content:encoded><![CDATA[<p>Like lots of Flash folk, I&#8217;ve got a real love/hate relationship going with the V2 components. I shy away from them whenever I can, but sometimes, well, they&#8217;re just so darn useful. Pick up that can. Pop that top. Oh look, worms! </p>
<p>This time the joy came in the form of a seemingly mundane preloader I threw together using the drawing API. No need for anything in the library, just a nice, svelte little progress bar drawn in at runtime. Nothing too exotic, right? Pop it into my Flash file and <em>blam-o!</em> The unmistakable sound of breaking glass. My movie is playing after the preloading is done, but my progress bar is <em>still there</em>, stuck at 100%. &#8220;What the–? Oh brother, here we go again&#8230;&#8221;</p>
<p>A little Googling turns up <a href="http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_19435" title="Macromedia Flash TechNote: removeMovieClip action fails when button component is on stage">this gem</a>. Turns out the V2 button component drags <code>mx.managers.DepthManager</code> along for the ride, which nabs the highest and lowest available depths from the Flash player and then proceeds to sit on them for future use. No big deal, but if you&#8217;re a good scout and use the <code>MovieClip.getNextHighestDepth()</code> method guess whaaaaaaat&#8230; your next highest depth (1,048,576 to be precise) will be beyond the reach of <code>MovieClip.removeMovieClip()</code>. Never mind all those other open slots. All together now&#8230; &#8220;D&#8217;OH!&#8221;</p>
<p>The solution? If you use <code>getNextHighestDepth()</code> and the V2 components together in the same movie be prepared to use <code>swapDepths()</code> to drag that clip back down to Earth where you can do something useful with it. </p>
<p>So now the real question is, think anybody&#8217;s done anything about this in Flash 8? </p>
]]></content:encoded>
			<wfw:commentRss>http://stuntbox.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fstuntbox.com%2Fblog%2F2005%2F08%2Fthe-hidden-depths%2F&amp;seed_title=The+Hidden+Depths/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
