<?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>Robert Muller Design &#187; My Work</title>
	<atom:link href="http://rmd.com.au/archives/category/my-work/feed" rel="self" type="application/rss+xml" />
	<link>http://rmd.com.au</link>
	<description></description>
	<lastBuildDate>Tue, 12 Oct 2010 23:47:16 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Sony Quantum Code Award Wrap-up</title>
		<link>http://rmd.com.au/archives/sony-quantum-code-award-wrap-up</link>
		<comments>http://rmd.com.au/archives/sony-quantum-code-award-wrap-up#comments</comments>
		<pubDate>Mon, 24 Aug 2009 16:13:23 +0000</pubDate>
		<dc:creator>Rob Muller</dc:creator>
				<category><![CDATA[AIR]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[Mobile]]></category>
		<category><![CDATA[My Work]]></category>
		<category><![CDATA[Portfolio]]></category>
		<category><![CDATA[AdFest]]></category>
		<category><![CDATA[ADMA]]></category>
		<category><![CDATA[AIMIA]]></category>
		<category><![CDATA[APMA]]></category>
		<category><![CDATA[ARG]]></category>
		<category><![CDATA[Cannes]]></category>
		<category><![CDATA[D&AD]]></category>
		<category><![CDATA[Euro RSCG]]></category>
		<category><![CDATA[Massive]]></category>
		<category><![CDATA[QR codes]]></category>
		<category><![CDATA[Quantum Code]]></category>
		<category><![CDATA[Sony]]></category>
		<category><![CDATA[Webby]]></category>

		<guid isPermaLink="false">http://rmd.com.au/?p=372</guid>
		<description><![CDATA[This will be my last post on this &#8211; I promise. :) While at my previous role at Massive, I had the privilege to work with some incredibly talented people on some fairly heavily-awarded projects, such as V8 Supercars, the Sydney to Hobart Yacht Tracker and the BigPond Movies Viiv application. After leaving Massive I [...]]]></description>
			<content:encoded><![CDATA[<p>This will be my last post on this &#8211; I promise. :)</p>
<p>While at my previous role at <a href="http://www.massive.com.au/">Massive</a>, I had the privilege to work with some incredibly talented people on some fairly heavily-awarded projects, such as <a href="http://www.v8supercars.com.au/live_race_engine/choose.aspx">V8 Supercars</a>, the <a href="http://rolexsydneyhobart.com/yacht_tracker.asp?key=522">Sydney to Hobart Yacht Tracker</a> and the <a href="http://downloads.bigpondmovies.com/viiv/index.html">BigPond Movies Viiv application</a>.</p>
<p>After leaving Massive I didn&#8217;t think I could top that, but one of the first projects I worked on at Euro late last year has come pretty close. Here&#8217;s what we&#8217;ve picked up to date (I might be missing a few more):</p>
<h3>Awards</h3>
<ul>
<li><a href="http://www.aimia.com.au/i-cms?page=5673">AIMIA</a>
<ul>
<li>Best Use Of Social Media</li>
<li>Best Word-of-Mouth, Peer-to-Peer or Viral</li>
</ul>
</li>
<li><a href="http://www.adfest.com/press_center/finalist-winner3.aspx?Lotus=6&#038;search=Lotus&#038;Type=2&#038;cate=220">Adfest Silver Lotus (Cyber) &#8211; Mobile</a></li>
<li><a href="http://www.apma.com/images/stories/APMA-Star-Awards-2009-winners.pdf">APMA</a>
<ul>
<li>Gold &#8211; Best Integrated Communications Campaign</li>
<li>Gold &#8211; Best Sponsorship or Tie-in Campaign</li>
<li>Gold &#8211; Best Digital/Interactive Campaign</li>
</ul>
</li>
<li><a href="http://www.media.asia/DigitalMedia/Awards/2009/winners.html">Digital Media Awards Aisa</a>
<ul>
<li>Silver &#8211; Best Mobile</li>
<li>Silver &#8211; Best Viral Marketing</li>
</ul>
</li>
<li><a href="http://www.admaawards.com.au/">ADMA</a>
<ul>
<li>Bronze &#8211; Mobile &#038; Wireless</li>
<li>Bronze &#8211; Retail &#038; Packaged Goods</li>
</ul>
</li>
<li><a href="http://www.maaw.org/globesAwards/winners.aspx">MAA Globes &#8211; Bronze: Best Sponsorship or Tie-In Campaign</a></li>
<li><a href="http://mmaglobal.com/news/five-asia-pacific-campaigns-win-top-honors-2009-mma-mobile-marketing-awards">Global MMA Awards</a>
<ul>
<li>Best Multi-Mobile Channel Campaign</li>
<li>Best Mobile Social Media Campaign</li>
</ul>
</li>
</ul>
<h3>Nominations</h3>
<ul>
<li><a href="http://work.canneslions.com/promo/entry.cfm?entryid=1150">Cannes Promo Lion</a></li>
<li><a href="http://awards.dandad.org/2009/categories/mmkt/mobile-marketing/17325/quantum-code">D&#038;AD &#8211; Yellow Pencil for Mobile Marketing</a></li>
<li><a href="http://www.webbyawards.com/webbys/current.php?media_id=127&#038;season=13#Integrated%20Mobile%20Experience">Webby Award &#8211; Integrated Mobile Experience</a></li>
<li><a href="http://www.aimia.com.au/i-cms?page=5673">AIMIA</a>
<ul>
<li>Best Advertising or Marketing</li>
<li>Best Cross-Platform Content or Content Integration with an Offline Advertising Campaign</li>
<li>Mobile Advertising or Marketing</li>
</ul>
</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://rmd.com.au/archives/sony-quantum-code-award-wrap-up/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Water For Life Microsite using Papervision3D</title>
		<link>http://rmd.com.au/archives/water-for-life</link>
		<comments>http://rmd.com.au/archives/water-for-life#comments</comments>
		<pubDate>Tue, 26 May 2009 13:52:58 +0000</pubDate>
		<dc:creator>Rob Muller</dc:creator>
				<category><![CDATA[3D]]></category>
		<category><![CDATA[Demoscene]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[My Work]]></category>
		<category><![CDATA[Portfolio]]></category>
		<category><![CDATA[Video]]></category>
		<category><![CDATA[Euro RSCG]]></category>
		<category><![CDATA[Papervision3D]]></category>

		<guid isPermaLink="false">http://rmd.com.au/?p=336</guid>
		<description><![CDATA[Euro has just launched an integrated campaign for the NSW Government called &#8220;Water For Life&#8221;, which aims to inform the public about new water sources, and ways in which we can use our existing sources more efficiently. The campaign presents a &#8220;day-in-the-life&#8221; view of a water drop&#8217;s journey through our water system, and includes TV [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.waterforlife.com.au/"><img src="/wp-content/uploads/2009/05/water4life_01.jpg" alt="Water4Life Homepage" title="Water4Life Homepage" width="420" height="236" class="alignnone size-full wp-image-338" /></a></p>
<p>Euro has just launched an integrated campaign for the NSW Government called &#8220;Water For Life&#8221;, which aims to inform the public about new water sources, and ways in which we can use our existing sources more efficiently. The campaign presents a &#8220;day-in-the-life&#8221; view of a water drop&#8217;s journey through our water system, and includes TV commercials, printed and online advertising, and a microsite.</p>
<p>The aim of the microsite was to unify the journeys presented in each TV commercial, and provide a little more depth of information without becoming too heavy on details. We wanted to reuse and maintain the visual style of the TVCs, with the almost anthropomorphic focus on the water drop itself, so we decided to build a set of 3D scenes where people could discover additional information on water efficiency at various points on the drop&#8217;s journey.</p>
<p><a href="http://www.waterforlife.com.au/"><img src="/wp-content/uploads/2009/05/water4life_02b.jpg" alt="Water4Life Bathroom Scene" title="Water4Life Bathroom Scene" width="420" height="236" class="alignnone size-full wp-image-339" /></a></p>
<p>We used Papervision3D to render the scenes, which were partly modelled in 3D Studio Max and textured using a combination of texture-baking in 3DS and plenty of post-production in Photoshop. Then additional elements were added directly in Papervision, such as the refractive water drop, depth-of-field particles, tree decals, skyboxes, lens flares, etc.</p>
<p><a href="http://www.waterforlife.com.au/"><img src="/wp-content/uploads/2009/05/water4life_03.jpg" alt="Water4Life Map Scene" title="Water4Life Map Scene" width="420" height="236" class="alignnone size-full wp-image-337" /></a></p>
<p>I&#8217;m really happy with the final result, as well as the performance of the 3D scenes thanks to some optimisation tricks and techniques. I&#8217;m planning on doing a series of posts going into further detail on some of the effects and optimisation techniques, including source code where possible. If there&#8217;s anything specific you&#8217;d like me to cover, leave a comment.</p>
]]></content:encoded>
			<wfw:commentRss>http://rmd.com.au/archives/water-for-life/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Easter Egg a Bastard</title>
		<link>http://rmd.com.au/archives/easter-egg-a-bastard</link>
		<comments>http://rmd.com.au/archives/easter-egg-a-bastard#comments</comments>
		<pubDate>Wed, 22 Apr 2009 14:20:23 +0000</pubDate>
		<dc:creator>Rob Muller</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[My Work]]></category>
		<category><![CDATA[Physics]]></category>
		<category><![CDATA[Portfolio]]></category>
		<category><![CDATA[Democrats]]></category>
		<category><![CDATA[Easter]]></category>
		<category><![CDATA[Euro RSCG]]></category>

		<guid isPermaLink="false">http://rmd.com.au/?p=319</guid>
		<description><![CDATA[A couple of weeks back just prior to the Easter weekend Euro RSCG launched another campaign for the Australian Democrats. Called &#8220;Easter Egg a Bastard&#8221; &#8211; pick a politician&#8217;s website, or enter your own URL and then egg the page. I&#8217;m happy with the way I&#8217;ve seamlessly combined timeline animation with scripted animation. The bunny [...]]]></description>
			<content:encoded><![CDATA[<p>A couple of weeks back just prior to the Easter weekend <a href="http://www.eurorscg.com.au/">Euro RSCG</a> launched another campaign for the Australian Democrats. Called <a href="http://www.bastardwatch.com.au/easteregg/">&#8220;Easter Egg a Bastard&#8221;</a> &#8211; pick a politician&#8217;s website, or enter your own URL and then egg the page.</p>
<p><a href="http://www.bastardwatch.com.au/easteregg/"><img src="/wp-content/uploads/2009/04/easter_egg.jpg" alt="easter_egg" title="easter_egg" width="420" height="267" class="alignnone size-full wp-image-320" /></a></p>
<p>I&#8217;m happy with the way I&#8217;ve seamlessly combined timeline animation with scripted animation. The bunny and egg are controlled using timeline animation right up until the egg hits the slingshot pouch. From then on it&#8217;s all ActionScript.</p>
<p>The timeline animation is triggered from ActionScript using good old gotoAndPlay(), and when each animation finishes, the bunny&#8217;s timeline calls stop() and then broadcasts an event back out to the view class controlling the bunny. The bunny SWF is embedded at compile time which would normally cause any ActionScript to be stripped out, so I used this method of <a href="http://www.adobe.com/cfusion/communityengine/index.cfm?event=showdetails&#038;productId=2&#038;postId=12871">preserving timeline code in embedded assets</a>. Read the comment on that post though &#8211; I also found that waiting one frame often wasn&#8217;t enough. I simply added a check for the existence of loader.content in the enterFrame handler before continuing.</p>
<p>I also love the feel of the slingshot physics &#8211; it took a fair bit of tweaking to get right. The feeling of depth as you pull back on the slingshot is faked. No Z dimension &#8211; the pouch &#038; egg are just scaling based on their Y position. This meant that I didn&#8217;t need to do any converting back and forth between 3D and 2D coordinates to draw the rubber strips. Once the egg leaves the slingshot however, proper 3D takes over and the egg is positioned &#038; scaled based on its Z coordinate. When budget or schedule (or both!) are tight, it&#8217;s essential to keep things simple and not over-engineer.</p>
]]></content:encoded>
			<wfw:commentRss>http://rmd.com.au/archives/easter-egg-a-bastard/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Quantum Code Nominated for a Webby</title>
		<link>http://rmd.com.au/archives/quantum-code-nominated-for-a-webby</link>
		<comments>http://rmd.com.au/archives/quantum-code-nominated-for-a-webby#comments</comments>
		<pubDate>Wed, 22 Apr 2009 13:50:27 +0000</pubDate>
		<dc:creator>Rob Muller</dc:creator>
				<category><![CDATA[AIR]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[Games]]></category>
		<category><![CDATA[Mobile]]></category>
		<category><![CDATA[My Work]]></category>
		<category><![CDATA[Portfolio]]></category>
		<category><![CDATA[AIMIA]]></category>
		<category><![CDATA[ARG]]></category>
		<category><![CDATA[Euro RSCG]]></category>
		<category><![CDATA[QR codes]]></category>
		<category><![CDATA[Quantum Code]]></category>
		<category><![CDATA[Sony]]></category>

		<guid isPermaLink="false">http://rmd.com.au/?p=329</guid>
		<description><![CDATA[Another (potential) success for Euro &#038; Sony&#8217;s Quantum Code campaign &#8211; nominated for a Webby in the Integrated Mobile Experience category. You can choose your pick for best of the Net by voting at the Webby People&#8217;s Voice site.]]></description>
			<content:encoded><![CDATA[<p>Another (potential) success for Euro &#038; Sony&#8217;s <a href="/archives/tag/quantum-code">Quantum Code</a> campaign &#8211; <a href="http://www.webbyawards.com/webbys/current.php?media_id=127&#038;season=13#Integrated%20Mobile%20Experience">nominated for a Webby</a> in the Integrated Mobile Experience category.</p>
<p>You can choose your pick for best of the Net by voting at the <a href="http://pv.webbyawards.com/">Webby People&#8217;s Voice site</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://rmd.com.au/archives/quantum-code-nominated-for-a-webby/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flash Smoke Effect using DisplacementMapFilter</title>
		<link>http://rmd.com.au/archives/flash-smoke-effect-using-displacementmapfilter</link>
		<comments>http://rmd.com.au/archives/flash-smoke-effect-using-displacementmapfilter#comments</comments>
		<pubDate>Tue, 31 Mar 2009 13:23:04 +0000</pubDate>
		<dc:creator>Rob Muller</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[My Work]]></category>
		<category><![CDATA[Portfolio]]></category>
		<category><![CDATA[DisplacementMapFilter]]></category>
		<category><![CDATA[smoke]]></category>

		<guid isPermaLink="false">http://rmd.com.au/?p=308</guid>
		<description><![CDATA[Inspired by David Lenaerts&#8217; awesome smoke simulation using Alchemy, I wondered if a similar effect &#8211; pushing smoke around with the mouse &#8211; could be achieved using Flash&#8217;s DisplacementMapFilter. As with David&#8217;s simulation, click to add smoke and move the mouse to create wind. There&#8217;s a great explanation of how DisplacementMapFilter works over at Emanuele [...]]]></description>
			<content:encoded><![CDATA[<p>Inspired by David Lenaerts&#8217; awesome <a href="http://www.derschmale.com/2009/03/23/experimenting-with-alchemy-of-smoke-milk-and-ink/">smoke simulation using Alchemy</a>, I wondered if a similar effect &#8211; pushing smoke around with the mouse &#8211; could be achieved using Flash&#8217;s <a href="http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/filters/DisplacementMapFilter.html">DisplacementMapFilter</a>. As with David&#8217;s simulation, click to add smoke and move the mouse to create wind.</p>
<p><a href="/labs/displacement-smoke/"><img class="alignnone size-full wp-image-309" title="displacement_smoke" src="/wp-content/uploads/2009/03/displacement_smoke.jpg" alt="displacement_smoke" width="420" height="210" /></a></p>
<p>There&#8217;s a great explanation of <a href="http://www.emanueleferonato.com/2007/12/03/understanding-flash-displacement-map-filter/">how DisplacementMapFilter works</a> over at Emanuele Feronato&#8217;s blog, so I won&#8217;t repeat it here. The smoke effect is on the left, and on the right is the displacement bitmap that gets applied to the smoke image on each frame. To simulate wind, as the mouse is moved I add or subtract from the red and green channels using ColorTransform. The faster the mouse is moved, the more I add or subtract. To simulate the wind settling down, I apply a BlurFilter and another ColorTransform to cause the displacement map to converge towards 0x80C000 (no horizontal movement, slight upwards movement).</p>
<p>While not nearly as impressive as David&#8217;s more realistic simulation, I&#8217;m pretty happy with what can be achieved with simple bitmap displacement. I experimented with adding Perlin noise to prevent the smoke from getting too static when the mouse isn&#8217;t moving and got some really cool results, but have decided to keep things simple for now. Maybe in a future post.</p>
<p>Here&#8217;s the source. It was built in FlexBuilder as an ActionScript project, but wouldn&#8217;t be hard to convert to compile in the Flash IDE.</p>
<div class="codecolorer-container actionscript3 default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:300px;"><div class="actionscript3 codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #9900cc; font-weight: bold;">package</span><br />
<span style="color: #000000;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.display</span><span style="color: #000066; font-weight: bold;">.</span><a href="http://www.google.com/search?q=bitmap%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:bitmap.html"><span style="color: #004993;">Bitmap</span></a><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.display</span><span style="color: #000066; font-weight: bold;">.</span><a href="http://www.google.com/search?q=bitmapdata%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:bitmapdata.html"><span style="color: #004993;">BitmapData</span></a><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.display</span><span style="color: #000066; font-weight: bold;">.</span><a href="http://www.google.com/search?q=sprite%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:sprite.html"><span style="color: #004993;">Sprite</span></a><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.events</span><span style="color: #000066; font-weight: bold;">.</span><a href="http://www.google.com/search?q=event%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:event.html"><span style="color: #004993;">Event</span></a><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.events</span><span style="color: #000066; font-weight: bold;">.</span><a href="http://www.google.com/search?q=mouseevent%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:mouseevent.html"><span style="color: #004993;">MouseEvent</span></a><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.filters</span><span style="color: #000066; font-weight: bold;">.</span><a href="http://www.google.com/search?q=blurfilter%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:blurfilter.html"><span style="color: #004993;">BlurFilter</span></a><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.filters</span><span style="color: #000066; font-weight: bold;">.</span><a href="http://www.google.com/search?q=displacementmapfilter%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:displacementmapfilter.html"><span style="color: #004993;">DisplacementMapFilter</span></a><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.geom</span><span style="color: #000066; font-weight: bold;">.</span><a href="http://www.google.com/search?q=colortransform%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:colortransform.html"><span style="color: #004993;">ColorTransform</span></a><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.geom</span><span style="color: #000066; font-weight: bold;">.</span><a href="http://www.google.com/search?q=point%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:point.html"><span style="color: #004993;">Point</span></a><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.geom</span><span style="color: #000066; font-weight: bold;">.</span><a href="http://www.google.com/search?q=rectangle%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:rectangle.html"><span style="color: #004993;">Rectangle</span></a><span style="color: #000066; font-weight: bold;">;</span><br />
<br />
&nbsp; &nbsp; <span style="color: #000000;">&#91;</span>SWF<span style="color: #000000;">&#40;</span><span style="color: #004993;">width</span>=<span style="color: #990000;">'1024'</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #004993;">height</span>=<span style="color: #990000;">'512'</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #004993;">frameRate</span>=<span style="color: #990000;">'30'</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#93;</span><br />
&nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #9900cc; font-weight: bold;">class</span> DisplacementSmoke <span style="color: #0033ff; font-weight: bold;">extends</span> <a href="http://www.google.com/search?q=sprite%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:sprite.html"><span style="color: #004993;">Sprite</span></a><br />
&nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">internal</span> static <span style="color: #6699cc; font-weight: bold;">var</span> BITMAP_WIDTH<span style="color: #000066; font-weight: bold;">:</span><a href="http://www.google.com/search?q=number%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:number.html"><span style="color: #004993;">Number</span></a> = <span style="color: #000000; font-weight:bold;">512</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">internal</span> static <span style="color: #6699cc; font-weight: bold;">var</span> BITMAP_HEIGHT<span style="color: #000066; font-weight: bold;">:</span><a href="http://www.google.com/search?q=number%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:number.html"><span style="color: #004993;">Number</span></a> = <span style="color: #000000; font-weight:bold;">512</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">internal</span> static <span style="color: #6699cc; font-weight: bold;">var</span> WIND_SIZE<span style="color: #000066; font-weight: bold;">:</span><a href="http://www.google.com/search?q=number%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:number.html"><span style="color: #004993;">Number</span></a> = <span style="color: #000000; font-weight:bold;">80</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">internal</span> static <span style="color: #6699cc; font-weight: bold;">var</span> SMOKE_SIZE<span style="color: #000066; font-weight: bold;">:</span><a href="http://www.google.com/search?q=number%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:number.html"><span style="color: #004993;">Number</span></a> = <span style="color: #000000; font-weight:bold;">10</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">internal</span> <span style="color: #6699cc; font-weight: bold;">var</span> smokeBitmap<span style="color: #000066; font-weight: bold;">:</span><a href="http://www.google.com/search?q=bitmap%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:bitmap.html"><span style="color: #004993;">Bitmap</span></a><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">internal</span> <span style="color: #6699cc; font-weight: bold;">var</span> displacementBitmap<span style="color: #000066; font-weight: bold;">:</span><a href="http://www.google.com/search?q=bitmap%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:bitmap.html"><span style="color: #004993;">Bitmap</span></a><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">internal</span> <span style="color: #6699cc; font-weight: bold;">var</span> drawing<span style="color: #000066; font-weight: bold;">:</span><a href="http://www.google.com/search?q=boolean%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:boolean.html"><span style="color: #004993;">Boolean</span></a> = <span style="color: #0033ff; font-weight: bold;">false</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">internal</span> <span style="color: #6699cc; font-weight: bold;">var</span> xPos<span style="color: #000066; font-weight: bold;">:</span><a href="http://www.google.com/search?q=number%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:number.html"><span style="color: #004993;">Number</span></a><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">internal</span> <span style="color: #6699cc; font-weight: bold;">var</span> yPos<span style="color: #000066; font-weight: bold;">:</span><a href="http://www.google.com/search?q=number%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:number.html"><span style="color: #004993;">Number</span></a><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">internal</span> <span style="color: #6699cc; font-weight: bold;">var</span> displacementFilter<span style="color: #000066; font-weight: bold;">:</span><a href="http://www.google.com/search?q=displacementmapfilter%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:displacementmapfilter.html"><span style="color: #004993;">DisplacementMapFilter</span></a><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">internal</span> <span style="color: #6699cc; font-weight: bold;">var</span> blurFilter<span style="color: #000066; font-weight: bold;">:</span><a href="http://www.google.com/search?q=blurfilter%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:blurfilter.html"><span style="color: #004993;">BlurFilter</span></a> = <span style="color: #0033ff; font-weight: bold;">new</span> <a href="http://www.google.com/search?q=blurfilter%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:blurfilter.html"><span style="color: #004993;">BlurFilter</span></a><span style="color: #000000;">&#40;</span><span style="color: #000000; font-weight:bold;">3</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000000; font-weight:bold;">3</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000000; font-weight:bold;">1</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">internal</span> <span style="color: #6699cc; font-weight: bold;">var</span> windColorTransform<span style="color: #000066; font-weight: bold;">:</span><a href="http://www.google.com/search?q=colortransform%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:colortransform.html"><span style="color: #004993;">ColorTransform</span></a><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">internal</span> <span style="color: #6699cc; font-weight: bold;">var</span> smokeColorTransform<span style="color: #000066; font-weight: bold;">:</span><a href="http://www.google.com/search?q=colortransform%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:colortransform.html"><span style="color: #004993;">ColorTransform</span></a> = <span style="color: #0033ff; font-weight: bold;">new</span> <a href="http://www.google.com/search?q=colortransform%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:colortransform.html"><span style="color: #004993;">ColorTransform</span></a><span style="color: #000000;">&#40;</span><span style="color: #000000; font-weight:bold;">1</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000000; font-weight:bold;">1</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000000; font-weight:bold;">1</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000000; font-weight:bold;">1</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000000; font-weight:bold;">20</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000000; font-weight:bold;">20</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000000; font-weight:bold;">20</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">internal</span> <span style="color: #6699cc; font-weight: bold;">var</span> dampingColorTransform<span style="color: #000066; font-weight: bold;">:</span><a href="http://www.google.com/search?q=colortransform%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:colortransform.html"><span style="color: #004993;">ColorTransform</span></a> = <span style="color: #0033ff; font-weight: bold;">new</span> <a href="http://www.google.com/search?q=colortransform%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:colortransform.html"><span style="color: #004993;">ColorTransform</span></a><span style="color: #000000;">&#40;</span><span style="color: #000066; font-weight: bold;">.</span>97<span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000066; font-weight: bold;">.</span>96<span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000000; font-weight:bold;">0</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000000; font-weight:bold;">1</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000000; font-weight:bold;">5</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000000; font-weight:bold;">9</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000000; font-weight:bold;">0</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000000; font-weight:bold;">0</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">internal</span> <span style="color: #6699cc; font-weight: bold;">var</span> heatColorTransform<span style="color: #000066; font-weight: bold;">:</span><a href="http://www.google.com/search?q=colortransform%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:colortransform.html"><span style="color: #004993;">ColorTransform</span></a> = <span style="color: #0033ff; font-weight: bold;">new</span> <a href="http://www.google.com/search?q=colortransform%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:colortransform.html"><span style="color: #004993;">ColorTransform</span></a><span style="color: #000000;">&#40;</span><span style="color: #000000; font-weight:bold;">1</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000000; font-weight:bold;">1</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000000; font-weight:bold;">1</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000000; font-weight:bold;">1</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000000; font-weight:bold;">0</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000000; font-weight:bold;">2</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000000; font-weight:bold;">0</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000000; font-weight:bold;">0</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">internal</span> <span style="color: #6699cc; font-weight: bold;">var</span> bitmapRect<span style="color: #000066; font-weight: bold;">:</span><a href="http://www.google.com/search?q=rectangle%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:rectangle.html"><span style="color: #004993;">Rectangle</span></a> = <span style="color: #0033ff; font-weight: bold;">new</span> <a href="http://www.google.com/search?q=rectangle%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:rectangle.html"><span style="color: #004993;">Rectangle</span></a><span style="color: #000000;">&#40;</span><span style="color: #000000; font-weight:bold;">0</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000000; font-weight:bold;">0</span><span style="color: #000066; font-weight: bold;">,</span> BITMAP_WIDTH<span style="color: #000066; font-weight: bold;">,</span> BITMAP_HEIGHT<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">internal</span> <span style="color: #6699cc; font-weight: bold;">var</span> <span style="color: #004993;">rect</span><span style="color: #000066; font-weight: bold;">:</span><a href="http://www.google.com/search?q=rectangle%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:rectangle.html"><span style="color: #004993;">Rectangle</span></a><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">internal</span> <span style="color: #6699cc; font-weight: bold;">var</span> p<span style="color: #000066; font-weight: bold;">:</span><a href="http://www.google.com/search?q=point%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:point.html"><span style="color: #004993;">Point</span></a> = <span style="color: #0033ff; font-weight: bold;">new</span> <a href="http://www.google.com/search?q=point%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:point.html"><span style="color: #004993;">Point</span></a><span style="color: #000000;">&#40;</span><span style="color: #000000; font-weight:bold;">0</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000000; font-weight:bold;">0</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #339966; font-weight: bold;">function</span> DisplacementSmoke<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; smokeBitmap = <span style="color: #0033ff; font-weight: bold;">new</span> <a href="http://www.google.com/search?q=bitmap%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:bitmap.html"><span style="color: #004993;">Bitmap</span></a><span style="color: #000000;">&#40;</span><span style="color: #0033ff; font-weight: bold;">new</span> <a href="http://www.google.com/search?q=bitmapdata%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:bitmapdata.html"><span style="color: #004993;">BitmapData</span></a><span style="color: #000000;">&#40;</span>BITMAP_WIDTH<span style="color: #000066; font-weight: bold;">,</span> BITMAP_HEIGHT<span style="color: #000066; font-weight: bold;">,</span> <span style="color: #0033ff; font-weight: bold;">false</span><span style="color: #000066; font-weight: bold;">,</span> 0x000000<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; displacementBitmap = <span style="color: #0033ff; font-weight: bold;">new</span> <a href="http://www.google.com/search?q=bitmap%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:bitmap.html"><span style="color: #004993;">Bitmap</span></a><span style="color: #000000;">&#40;</span><span style="color: #0033ff; font-weight: bold;">new</span> <a href="http://www.google.com/search?q=bitmapdata%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:bitmapdata.html"><span style="color: #004993;">BitmapData</span></a><span style="color: #000000;">&#40;</span>BITMAP_WIDTH<span style="color: #000066; font-weight: bold;">,</span> BITMAP_HEIGHT<span style="color: #000066; font-weight: bold;">,</span> <span style="color: #0033ff; font-weight: bold;">false</span><span style="color: #000066; font-weight: bold;">,</span> 0x80C000<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #004993;">addChild</span><span style="color: #000000;">&#40;</span>smokeBitmap<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #004993;">addChild</span><span style="color: #000000;">&#40;</span>displacementBitmap<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; displacementBitmap<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">x</span> = BITMAP_WIDTH<span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #004993;">stage</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span><a href="http://www.google.com/search?q=mouseevent%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:mouseevent.html"><span style="color: #004993;">MouseEvent</span></a><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">MOUSE_DOWN</span><span style="color: #000066; font-weight: bold;">,</span> mouseDownHandler<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #004993;">stage</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span><a href="http://www.google.com/search?q=mouseevent%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:mouseevent.html"><span style="color: #004993;">MouseEvent</span></a><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">MOUSE_UP</span><span style="color: #000066; font-weight: bold;">,</span> mouseUpHandler<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; displacementFilter = <span style="color: #0033ff; font-weight: bold;">new</span> <a href="http://www.google.com/search?q=displacementmapfilter%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:displacementmapfilter.html"><span style="color: #004993;">DisplacementMapFilter</span></a><span style="color: #000000;">&#40;</span>displacementBitmap<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">bitmapData</span><span style="color: #000066; font-weight: bold;">,</span> p<span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000000; font-weight:bold;">1</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000000; font-weight:bold;">2</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000000; font-weight:bold;">5</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000000; font-weight:bold;">5</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; smokeBitmap<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">filters</span> = <span style="color: #000000;">&#91;</span>displacementFilter<span style="color: #000000;">&#93;</span><span style="color: #000066; font-weight: bold;">;</span><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span><a href="http://www.google.com/search?q=event%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:event.html"><span style="color: #004993;">Event</span></a><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">ENTER_FRAME</span><span style="color: #000066; font-weight: bold;">,</span> enterFrameHandler<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">internal</span> <span style="color: #339966; font-weight: bold;">function</span> mouseDownHandler<span style="color: #000000;">&#40;</span>event<span style="color: #000066; font-weight: bold;">:</span><a href="http://www.google.com/search?q=mouseevent%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:mouseevent.html"><span style="color: #004993;">MouseEvent</span></a><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; drawing = <span style="color: #0033ff; font-weight: bold;">true</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">internal</span> <span style="color: #339966; font-weight: bold;">function</span> mouseUpHandler<span style="color: #000000;">&#40;</span>event<span style="color: #000066; font-weight: bold;">:</span><a href="http://www.google.com/search?q=mouseevent%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:mouseevent.html"><span style="color: #004993;">MouseEvent</span></a><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; drawing = <span style="color: #0033ff; font-weight: bold;">false</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">internal</span> <span style="color: #339966; font-weight: bold;">function</span> enterFrameHandler<span style="color: #000000;">&#40;</span>event<span style="color: #000066; font-weight: bold;">:</span><a href="http://www.google.com/search?q=event%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:event.html"><span style="color: #004993;">Event</span></a><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #6699cc; font-weight: bold;">var</span> i<span style="color: #000066; font-weight: bold;">:</span><a href="http://www.google.com/search?q=number%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:number.html"><span style="color: #004993;">Number</span></a><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #6699cc; font-weight: bold;">var</span> j<span style="color: #000066; font-weight: bold;">:</span><a href="http://www.google.com/search?q=number%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:number.html"><span style="color: #004993;">Number</span></a><span style="color: #000066; font-weight: bold;">;</span><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #6699cc; font-weight: bold;">var</span> mx<span style="color: #000066; font-weight: bold;">:</span><a href="http://www.google.com/search?q=number%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:number.html"><span style="color: #004993;">Number</span></a> = <span style="color: #004993;">stage</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">mouseX</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #6699cc; font-weight: bold;">var</span> my<span style="color: #000066; font-weight: bold;">:</span><a href="http://www.google.com/search?q=number%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:number.html"><span style="color: #004993;">Number</span></a> = <span style="color: #004993;">stage</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">mouseY</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #6699cc; font-weight: bold;">var</span> dx<span style="color: #000066; font-weight: bold;">:</span><a href="http://www.google.com/search?q=number%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:number.html"><span style="color: #004993;">Number</span></a> = mx <span style="color: #000066; font-weight: bold;">-</span> xPos<span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #6699cc; font-weight: bold;">var</span> dy<span style="color: #000066; font-weight: bold;">:</span><a href="http://www.google.com/search?q=number%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:number.html"><span style="color: #004993;">Number</span></a> = my <span style="color: #000066; font-weight: bold;">-</span> yPos<span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #6699cc; font-weight: bold;">var</span> <span style="color: #004993;">d</span><span style="color: #000066; font-weight: bold;">:</span><a href="http://www.google.com/search?q=number%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:number.html"><span style="color: #004993;">Number</span></a> = <a href="http://www.google.com/search?q=math%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:math.html"><span style="color: #004993;">Math</span></a><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">sqrt</span><span style="color: #000000;">&#40;</span>dx<span style="color: #000066; font-weight: bold;">*</span>dx <span style="color: #000066; font-weight: bold;">+</span> dy<span style="color: #000066; font-weight: bold;">*</span>dy<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #6699cc; font-weight: bold;">var</span> step<span style="color: #000066; font-weight: bold;">:</span><a href="http://www.google.com/search?q=number%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:number.html"><span style="color: #004993;">Number</span></a> = <span style="color: #000066; font-weight: bold;">.</span>6 <span style="color: #000066; font-weight: bold;">-</span> <a href="http://www.google.com/search?q=math%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:math.html"><span style="color: #004993;">Math</span></a><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">min</span><span style="color: #000000;">&#40;</span><span style="color: #000066; font-weight: bold;">.</span>5<span style="color: #000066; font-weight: bold;">,</span> <span style="color: #004993;">d</span><span style="color: #000066; font-weight: bold;">/</span><span style="color: #000000; font-weight:bold;">100</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #6699cc; font-weight: bold;">var</span> xp<span style="color: #000066; font-weight: bold;">:</span><a href="http://www.google.com/search?q=number%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:number.html"><span style="color: #004993;">Number</span></a><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #6699cc; font-weight: bold;">var</span> yp<span style="color: #000066; font-weight: bold;">:</span><a href="http://www.google.com/search?q=number%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:number.html"><span style="color: #004993;">Number</span></a><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; windColorTransform = <span style="color: #0033ff; font-weight: bold;">new</span> <a href="http://www.google.com/search?q=colortransform%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:colortransform.html"><span style="color: #004993;">ColorTransform</span></a><span style="color: #000000;">&#40;</span><span style="color: #000000; font-weight:bold;">1</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000000; font-weight:bold;">1</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000000; font-weight:bold;">1</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000000; font-weight:bold;">1</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000066; font-weight: bold;">-</span>dx<span style="color: #000066; font-weight: bold;">*.</span>5<span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000066; font-weight: bold;">-</span>dy<span style="color: #000066; font-weight: bold;">*.</span>5<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">for</span><span style="color: #000000;">&#40;</span>i=<span style="color: #000000; font-weight:bold;">0</span><span style="color: #000066; font-weight: bold;">;</span> i<span style="color: #000066; font-weight: bold;">&lt;</span><span style="color: #000000; font-weight:bold;">1</span><span style="color: #000066; font-weight: bold;">;</span> i<span style="color: #000066; font-weight: bold;">+</span>=step<span style="color: #000000;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; xp = xPos <span style="color: #000066; font-weight: bold;">+</span> dx<span style="color: #000066; font-weight: bold;">*</span>i<span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; yp = yPos <span style="color: #000066; font-weight: bold;">+</span> dy<span style="color: #000066; font-weight: bold;">*</span>i<span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; xp = <a href="http://www.google.com/search?q=math%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:math.html"><span style="color: #004993;">Math</span></a><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">max</span><span style="color: #000000;">&#40;</span>xp<span style="color: #000066; font-weight: bold;">,</span> WIND_SIZE<span style="color: #000066; font-weight: bold;">/</span><span style="color: #000000; font-weight:bold;">2</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; xp = <a href="http://www.google.com/search?q=math%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:math.html"><span style="color: #004993;">Math</span></a><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">min</span><span style="color: #000000;">&#40;</span>xp<span style="color: #000066; font-weight: bold;">,</span> BITMAP_WIDTH <span style="color: #000066; font-weight: bold;">-</span> WIND_SIZE<span style="color: #000066; font-weight: bold;">/</span><span style="color: #000000; font-weight:bold;">2</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; yp = <a href="http://www.google.com/search?q=math%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:math.html"><span style="color: #004993;">Math</span></a><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">max</span><span style="color: #000000;">&#40;</span>yp<span style="color: #000066; font-weight: bold;">,</span> WIND_SIZE<span style="color: #000066; font-weight: bold;">/</span><span style="color: #000000; font-weight:bold;">2</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; yp = <a href="http://www.google.com/search?q=math%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:math.html"><span style="color: #004993;">Math</span></a><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">min</span><span style="color: #000000;">&#40;</span>yp<span style="color: #000066; font-weight: bold;">,</span> BITMAP_HEIGHT <span style="color: #000066; font-weight: bold;">-</span> WIND_SIZE<span style="color: #000066; font-weight: bold;">/</span><span style="color: #000000; font-weight:bold;">2</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">if</span><span style="color: #000000;">&#40;</span><span style="color: #000066; font-weight: bold;">!</span><span style="color: #000000;">&#40;</span>xPos==<span style="color: #000000; font-weight:bold;">0</span> <span style="color: #000066; font-weight: bold;">&amp;&amp;</span> yPos==<span style="color: #000000; font-weight:bold;">0</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #004993;">rect</span> = <span style="color: #0033ff; font-weight: bold;">new</span> <a href="http://www.google.com/search?q=rectangle%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:rectangle.html"><span style="color: #004993;">Rectangle</span></a><span style="color: #000000;">&#40;</span>xp <span style="color: #000066; font-weight: bold;">-</span> WIND_SIZE<span style="color: #000066; font-weight: bold;">/</span><span style="color: #000000; font-weight:bold;">2</span> <span style="color: #000066; font-weight: bold;">+</span> <a href="http://www.google.com/search?q=math%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:math.html"><span style="color: #004993;">Math</span></a><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">random</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">*</span><span style="color: #000000; font-weight:bold;">10</span><span style="color: #000066; font-weight: bold;">-</span><span style="color: #000000; font-weight:bold;">5</span><span style="color: #000066; font-weight: bold;">,</span> yp <span style="color: #000066; font-weight: bold;">-</span> WIND_SIZE<span style="color: #000066; font-weight: bold;">/</span><span style="color: #000000; font-weight:bold;">2</span> <span style="color: #000066; font-weight: bold;">+</span> <a href="http://www.google.com/search?q=math%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:math.html"><span style="color: #004993;">Math</span></a><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">random</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">*</span><span style="color: #000000; font-weight:bold;">10</span><span style="color: #000066; font-weight: bold;">-</span><span style="color: #000000; font-weight:bold;">5</span><span style="color: #000066; font-weight: bold;">,</span> WIND_SIZE<span style="color: #000066; font-weight: bold;">,</span> WIND_SIZE<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; displacementBitmap<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">bitmapData</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">colorTransform</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">rect</span><span style="color: #000066; font-weight: bold;">,</span> windColorTransform<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">if</span><span style="color: #000000;">&#40;</span>drawing<span style="color: #000000;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; displacementBitmap<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">bitmapData</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">colorTransform</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">rect</span><span style="color: #000066; font-weight: bold;">,</span> heatColorTransform<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">for</span><span style="color: #000000;">&#40;</span>j=<span style="color: #000000; font-weight:bold;">0</span><span style="color: #000066; font-weight: bold;">;</span> j<span style="color: #000066; font-weight: bold;">&lt;</span><span style="color: #000000; font-weight:bold;">4</span><span style="color: #000066; font-weight: bold;">;</span> j<span style="color: #000066; font-weight: bold;">++</span><span style="color: #000000;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #004993;">rect</span> = <span style="color: #0033ff; font-weight: bold;">new</span> <a href="http://www.google.com/search?q=rectangle%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:rectangle.html"><span style="color: #004993;">Rectangle</span></a><span style="color: #000000;">&#40;</span>xp <span style="color: #000066; font-weight: bold;">-</span> <a href="http://www.google.com/search?q=math%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:math.html"><span style="color: #004993;">Math</span></a><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">random</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">*</span>SMOKE_SIZE<span style="color: #000066; font-weight: bold;">,</span> yp <span style="color: #000066; font-weight: bold;">-</span> <a href="http://www.google.com/search?q=math%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:math.html"><span style="color: #004993;">Math</span></a><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">random</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">*</span>SMOKE_SIZE<span style="color: #000066; font-weight: bold;">,</span> SMOKE_SIZE<span style="color: #000066; font-weight: bold;">,</span> SMOKE_SIZE<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; smokeBitmap<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">bitmapData</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">colorTransform</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">rect</span><span style="color: #000066; font-weight: bold;">,</span> smokeColorTransform<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; displacementBitmap<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">bitmapData</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">colorTransform</span><span style="color: #000000;">&#40;</span>bitmapRect<span style="color: #000066; font-weight: bold;">,</span> dampingColorTransform<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; displacementBitmap<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">bitmapData</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">applyFilter</span><span style="color: #000000;">&#40;</span>displacementBitmap<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">bitmapData</span><span style="color: #000066; font-weight: bold;">,</span> bitmapRect<span style="color: #000066; font-weight: bold;">,</span> p<span style="color: #000066; font-weight: bold;">,</span> blurFilter<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; xPos = mx<span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; yPos = my<span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; smokeBitmap<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">bitmapData</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">draw</span><span style="color: #000000;">&#40;</span>smokeBitmap<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />
&nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />
<span style="color: #000000;">&#125;</span></div></div>
]]></content:encoded>
			<wfw:commentRss>http://rmd.com.au/archives/flash-smoke-effect-using-displacementmapfilter/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Euro RSCG &amp; Sony Win Two AIMIA Awards</title>
		<link>http://rmd.com.au/archives/euro-rscg-sony-win-two-aimia-awards</link>
		<comments>http://rmd.com.au/archives/euro-rscg-sony-win-two-aimia-awards#comments</comments>
		<pubDate>Tue, 17 Mar 2009 13:06:05 +0000</pubDate>
		<dc:creator>Rob Muller</dc:creator>
				<category><![CDATA[AIR]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[Games]]></category>
		<category><![CDATA[Mobile]]></category>
		<category><![CDATA[My Work]]></category>
		<category><![CDATA[Portfolio]]></category>
		<category><![CDATA[AIMIA]]></category>
		<category><![CDATA[ARG]]></category>
		<category><![CDATA[Euro RSCG]]></category>
		<category><![CDATA[QR codes]]></category>
		<category><![CDATA[Quantum Code]]></category>
		<category><![CDATA[Sony]]></category>

		<guid isPermaLink="false">http://rmd.com.au/?p=281</guid>
		<description><![CDATA[Hooray! Not much more to add to my previous post on the nominations, except to reiterate &#8211; well done to everyone involved at Euro and Sony. It was the first time I&#8217;ve actually attended an AIMIA Awards night and I had a great time &#8211; caught up with some old friends, and met a few [...]]]></description>
			<content:encoded><![CDATA[<p><a href="/images/aimia_2009_large.jpg"><img src="/wp-content/uploads/2009/03/aimia_2009_small.jpg" alt="Euro AIMIA Awards" title="Euro AIMIA Awards" width="420" height="538" class="alignnone size-full wp-image-284" /></a></p>
<p>Hooray! Not much more to add to <a href="/archives/euros-quantum-code-campaign-nominated-for-5-aimias">my previous post</a> on the nominations, except to reiterate &#8211; well done to everyone involved at Euro and Sony.</p>
<p>It was the first time I&#8217;ve actually attended an AIMIA Awards night and I had a great time &#8211; caught up with some old friends, and met a few new acquaintances as well. Woke up with a spectacular hangover the next morning too.</p>
<p>Congratulations also to <a href="http://www.aimia.com.au/i-cms?page=1.36.5673.5670">all the other award winners</a>.</p>
<p><strong>Update:</strong> Just added a few photos from the night.</p>
<p><img src="/wp-content/uploads/2009/03/aimia_01.jpg" alt="Euro &#038; Michelle/Sony with the first award" title="Euro &#038; Michelle/Sony with the first award" width="420" height="279" class="alignnone size-full wp-image-300" /></p>
<p><img src="/wp-content/uploads/2009/03/aimia_02.jpg" alt="On stage receiving the second award" title="On stage receiving the second award" width="420" height="279" class="alignnone size-full wp-image-300" /></p>
<p><img src="/wp-content/uploads/2009/03/aimia_03.jpg" alt="Second award with the presenter" title="Second award with the presenter" width="420" height="279" class="alignnone size-full wp-image-300" /></p>
<p><img src="/wp-content/uploads/2009/03/aimia_04.jpg" alt="Euro &#038; Michelle" title="Euro &#038; Michelle" width="420" height="279" class="alignnone size-full wp-image-300" /></p>
]]></content:encoded>
			<wfw:commentRss>http://rmd.com.au/archives/euro-rscg-sony-win-two-aimia-awards/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Euro&#8217;s &#8220;Quantum Code&#8221; Campaign Nominated for 5 AIMIAs</title>
		<link>http://rmd.com.au/archives/euros-quantum-code-campaign-nominated-for-5-aimias</link>
		<comments>http://rmd.com.au/archives/euros-quantum-code-campaign-nominated-for-5-aimias#comments</comments>
		<pubDate>Tue, 10 Feb 2009 10:35:02 +0000</pubDate>
		<dc:creator>Rob Muller</dc:creator>
				<category><![CDATA[AIR]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[Games]]></category>
		<category><![CDATA[My Work]]></category>
		<category><![CDATA[Portfolio]]></category>
		<category><![CDATA[AIMIA]]></category>
		<category><![CDATA[ARG]]></category>
		<category><![CDATA[Euro RSCG]]></category>
		<category><![CDATA[QR codes]]></category>
		<category><![CDATA[Quantum Code]]></category>
		<category><![CDATA[Sony]]></category>

		<guid isPermaLink="false">http://rmd.com.au/?p=121</guid>
		<description><![CDATA[Euro RSCG Australia has been nominated for five AIMIA awards for our work on &#8220;The Quantum Code&#8221; &#8211; the Quantum of Solace promotion for Sony. We entered the Bond promotion in the following five categories, and have been short-listed in all five: Best Advertising or Marketing Best Cross-Platform Content or Content Integration with an Offline [...]]]></description>
			<content:encoded><![CDATA[<p><img src="/wp-content/uploads/2009/02/quantum_01.jpg" alt="The Quantum Code" title="The Quantum Code" width="420" height="236" class="alignnone size-full wp-image-129" /></p>
<p>Euro RSCG Australia has been <a href="http://www.aimia.com.au/i-cms?page=5422">nominated for five AIMIA awards</a> for our work on &#8220;The Quantum Code&#8221; &#8211; the Quantum of Solace promotion for Sony. We entered the Bond promotion in the following five categories, and have been short-listed in all five:</p>
<ul>
<li>Best Advertising or Marketing</li>
<li>Best Cross-Platform Content or Content Integration with an Offline Advertising Campaign</li>
<li>Mobile Advertising or Marketing</li>
<li>Best Use of Social Media</li>
<li>Best Word of Mouth, Peer-to-peer or viral</li>
</ul>
<p>The campaign was a cross-platform, cross-media <a href="http://en.wikipedia.org/wiki/Alternate_reality_game">alternate reality game (ARG)</a> which utilised the web, online &#038; mobile video, QR codes, social media sites (YouTube, Facebook), print and real-world locations. More info on <a href="http://www.gizmodo.com.au/tags/quantum%20code">Gizmodo</a> and <a href="http://www.eurorscg.com.au/#theWork1?id=workSectionHome">Euro&#8217;s website</a>.</p>
<p><img src="/wp-content/uploads/2009/02/quantum_02.jpg" alt="Clue Confirmer" title="quantum_02" width="420" height="236" class="alignnone size-full wp-image-130" /></p>
<p>All up, there were 51 people who contributed towards the campaign across the agency. My involvement on the project was to manage development of all web &#038; mobile content, and to develop the &#8220;Clue Confirmer&#8221; Flex/AIR application which was running in-store at the Sony Centre in Sydney, and allowed players to check their progress in the game.</p>
<p>I also led development of the <a href="http://www.sony.com.au/bond/">007 Bond Adventures site</a> which the campaign promoted. However, credit must be shared with the rest of the UX Team, who worked tirelessly until the wee hours of the morning for several days in order to get everything over the line. Considering that this was the UX Team&#8217;s first exposure to Flex, it was a real accomplishment. Fingers crossed for the 13th March!</p>
]]></content:encoded>
			<wfw:commentRss>http://rmd.com.au/archives/euros-quantum-code-campaign-nominated-for-5-aimias/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Grill a Bastard</title>
		<link>http://rmd.com.au/archives/grill-a-bastard</link>
		<comments>http://rmd.com.au/archives/grill-a-bastard#comments</comments>
		<pubDate>Tue, 03 Feb 2009 22:58:32 +0000</pubDate>
		<dc:creator>Rob Muller</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Games]]></category>
		<category><![CDATA[My Work]]></category>
		<category><![CDATA[Portfolio]]></category>
		<category><![CDATA[Democrats]]></category>
		<category><![CDATA[Euro RSCG]]></category>
		<category><![CDATA[game]]></category>

		<guid isPermaLink="false">http://rmd.com.au/?p=109</guid>
		<description><![CDATA[This is a week or two old now, but I&#8217;m throwing it up here for posterity. Euro just launched an online campaign for the Australian Democrats (yes, they&#8217;re still around), called Bastardwatch. Created to coincide with the Australia Day weekend, part of the campaign was an appropriately BBQ-themed Flash game called Grill a Bastard. Got [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.bastardwatch.com.au/grill_a_bastard/"><img src="http://rmd.com.au/wp-content/uploads/2009/02/grill_a_bastard.jpg" alt="Grill a Bastard" title="Grill a Bastard" width="420" height="331" class="alignnone size-full wp-image-110" /></a></p>
<p>This is a week or two old now, but I&#8217;m throwing it up here for posterity. Euro just launched an online campaign for the <a href="http://www.democrats.org.au/">Australian Democrats</a> (yes, they&#8217;re still around), called <a href="http://www.bastardwatch.com.au/">Bastardwatch</a>. Created to coincide with the Australia Day weekend, part of the campaign was an appropriately BBQ-themed Flash game called <a href="http://www.bastardwatch.com.au/grill_a_bastard/">Grill a Bastard</a>. Got a bit of publicity too &#8211; <a href="http://www.smh.com.au/news/technology/web/australia-day-game-turns-up-the-heat/2009/01/23/1232471570458.html">SMH</a> and <a href="http://www.theage.com.au/news/technology/web/grill-a-bastard-online-game-turns-heat-up-on-pollies/2009/01/23/1232471570458.html">The Age</a>.</p>
<p>The game was built as an AS3 project in Flex Builder, with all assets sitting in a SWF created in Flash and embedded at compile time. Despite having nearly three years experience with Flex/AS3, this was my first pure AS3 project. It came together pretty quickly in around two days, although I did get stuck on one particular <a href="http://rmd.com.au/archives/stage-loses-keyboard-focus-when-simplebutton-is-removed-on-click">issue with SimpleButton</a> for a bit. If anyone out there is <em>still</em> using AS2 and has yet to move up to AS3, I really recommend doing so. The display list and event system make things so much easier.</p>
<p>Check it out <a href="http://www.bastardwatch.com.au/grill_a_bastard/">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://rmd.com.au/archives/grill-a-bastard/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

