<?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>Serge Jespers &#187; How-to</title>
	<atom:link href="http://www.webkitchen.be/category/how-to/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.webkitchen.be</link>
	<description>Life as an Adobe platform evangelist</description>
	<lastBuildDate>Tue, 31 Jan 2012 17:35:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Video tutorial: Using the new states model in Flex 4</title>
		<link>http://www.webkitchen.be/2010/04/22/video-tutorial-using-the-new-states-model-in-flex-4/</link>
		<comments>http://www.webkitchen.be/2010/04/22/video-tutorial-using-the-new-states-model-in-flex-4/#comments</comments>
		<pubDate>Thu, 22 Apr 2010 13:06:41 +0000</pubDate>
		<dc:creator>Serge Jespers</dc:creator>
				<category><![CDATA[Flex]]></category>
		<category><![CDATA[How-to]]></category>
		<category><![CDATA[Video]]></category>
		<category><![CDATA[flex4]]></category>
		<category><![CDATA[mxml]]></category>
		<category><![CDATA[states]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.webkitchen.be/?p=2416</guid>
		<description><![CDATA[The states model has changed quite a bit in the Flex 4 framework but it&#8217;s a lot easier to use. In this video I show you just how easy it is to add different states and to add different behaviors and change properties based on the current state. Also available on Adobe TV.]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.webkitchen.be%2F2010%2F04%2F22%2Fvideo-tutorial-using-the-new-states-model-in-flex-4%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.webkitchen.be%2F2010%2F04%2F22%2Fvideo-tutorial-using-the-new-states-model-in-flex-4%2F&amp;source=sjespers&amp;style=normal&amp;service=bit.ly&amp;service_api=R_f11b21ad05448f9b4029b73b124e8d0e&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>The states model has changed quite a bit in the Flex 4 framework but it&#8217;s a lot easier to use. In this video I show you just how easy it is to add different states and to add different behaviors and change properties based on the current state.</p>
<p style="text-align: center;"><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="640" height="360" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://vimeo.com/moogaloop.swf?clip_id=11134771&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=0&amp;show_portrait=0&amp;color=B7C70F&amp;fullscreen=1" /><embed type="application/x-shockwave-flash" width="640" height="360" src="http://vimeo.com/moogaloop.swf?clip_id=11134771&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=0&amp;show_portrait=0&amp;color=B7C70F&amp;fullscreen=1" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p>Also available on <a href="http://tv.adobe.com/watch/adc-presents/use-the-states-model-in-flex-4/" target="_blank">Adobe TV</a>.</p>
<iframe id="basic_facebook_social_plugins_likebutton" src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.webkitchen.be%2F2010%2F04%2F22%2Fvideo-tutorial-using-the-new-states-model-in-flex-4%2F&amp;layout=standard&amp;show_faces=true&amp;width=500&amp;action=like&amp;font=arial&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:500px; height:75px"></iframe>]]></content:encoded>
			<wfw:commentRss>http://www.webkitchen.be/2010/04/22/video-tutorial-using-the-new-states-model-in-flex-4/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Using Growl in AIR applications with AIR 2 NativeProcess</title>
		<link>http://www.webkitchen.be/2010/03/15/using-growl-in-air-applications-with-air-2/</link>
		<comments>http://www.webkitchen.be/2010/03/15/using-growl-in-air-applications-with-air-2/#comments</comments>
		<pubDate>Mon, 15 Mar 2010 10:39:15 +0000</pubDate>
		<dc:creator>Serge Jespers</dc:creator>
				<category><![CDATA[AIR]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[How-to]]></category>
		<category><![CDATA[air2]]></category>
		<category><![CDATA[example]]></category>
		<category><![CDATA[growl]]></category>
		<category><![CDATA[growlnotify]]></category>
		<category><![CDATA[nativeprocess]]></category>
		<category><![CDATA[osx]]></category>

		<guid isPermaLink="false">http://www.webkitchen.be/?p=2262</guid>
		<description><![CDATA[The AIR2 release is just around the corner and one of my favorite new features is the ability to use native scripts. As I&#8217;ve already demonstrated earlier, this is extremely powerful and here&#8217;s another good example. From the moment AIR was released, a lot of developers were asking for Growl support to add toast style [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.webkitchen.be%2F2010%2F03%2F15%2Fusing-growl-in-air-applications-with-air-2%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.webkitchen.be%2F2010%2F03%2F15%2Fusing-growl-in-air-applications-with-air-2%2F&amp;source=sjespers&amp;style=normal&amp;service=bit.ly&amp;service_api=R_f11b21ad05448f9b4029b73b124e8d0e&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>The AIR2 release is just around the corner and one of my favorite new features is the ability to use native scripts. As I&#8217;ve already <a href="http://www.webkitchen.be/2009/12/17/introducing-package-assistant-air-2-package-utility-built-with-air-2/" target="_blank">demonstrated earlier</a>, this is extremely powerful and here&#8217;s another good example.</p>
<p>From the moment AIR was released, a lot of developers were asking for <a href="http://growl.info/" target="_blank">Growl</a> support to add toast style notifications. Up until now, there hasn&#8217;t really been an easy and flexible solution so most developers opted to build their own notifications. I really like Growl and the fact that you as a user have total control over the look and feel. I use the Mono style created by <a href="http://fixedgear.ca/" target="_blank">Christopher Lobay</a>. It&#8217;s probably the sexiest toast style notification I&#8217;ve ever used.</p>
<p>With AIR 2 you can now call Growl right from within your application. I actually call the <a href="http://growl.info/documentation/growlnotify.php" target="_blank">Growlnotify</a> command-line tool, which comes as an extra in the Growl download. Most people probably don&#8217;t install these extras but that&#8217;s no problem. I can bundle the command-line tool as part of my application and call it directly from my applicationDirectory.</p>
<p>So&#8230; How does this work? It&#8217;s actually extremely easy&#8230; The first thing you do is set up a new File object that points to the Growlnotify tool.</p>
<pre>
var file:File = File.applicationDirectory;
file = file.resolvePath(&quot;growlnotify&quot;);
</pre>
<p>As I am going to bundle growlnotify with my application it will just be installed as part of the app and thus resides in applicationDirectory.</p>
<p>The next thing I have to do is set up a NativeProcessStartupInfo object. That&#8217;s where I&#8217;ll store the basic information that is used to start our NativeProcess.</p>
<pre>
var nativeProcessStartupInfo:NativeProcessStartupInfo = new NativeProcessStartupInfo();
var processArgs:Vector.&lt;String&gt; = new Vector.&lt;String&gt;();
processArgs[0] = &quot;-n&quot;;
processArgs[1] = &quot;My AIR application&quot;;
processArgs[2] = &quot;-p&quot;;
processArgs[3] = &quot;0&quot;;
processArgs[4] = &quot;-t&quot;;
processArgs[5] = &quot;Your Growl title&quot;;
processArgs[6] = &quot;-m&quot;;
processArgs[7] = &quot;Your Growl message&quot;;
processArgs[8] = &quot;-a&quot;;
processArgs[9] = &quot;Adobe AIR Application Installer&quot;;
nativeProcessStartupInfo.arguments = processArgs;
nativeProcessStartupInfo.executable = file;
</pre>
<p>In this case, I&#8217;m also adding a bunch of arguments in my NativeProcessStartupInfo object. These arguments will be passed on to the growlnotify command-line tool. In this example, I&#8217;m setting up the name of my application, the notification priority, the title and message of my notification and I&#8217;m also telling it to use the icon associated with the Adobe AIR Application Installer. (Check out the <a href="http://growl.info/documentation/growlnotify.php" target="_blank">Growlnotify docs</a> for more info on these settings)</p>
<p>Next and last step is to actually call the native script.</p>
<pre>
process = new NativeProcess();
process.start(nativeProcessStartupInfo);
</pre>
<p>This code above will result in this Growl notification:</p>
<pre style="text-align: center;"><img class="aligncenter size-full wp-image-2266" title="growlnotify_air2" src="http://www.webkitchen.be/wp-content/uploads/2010/03/growlnotify_air2.jpg" alt="" width="309" height="92" /></pre>
<p>The only downside of using native scripts is that you&#8217;ll have to package your application specifically for the operating system you wrote your native script for. So in this case, I&#8217;d have to package it as a .DMG file since Growl only exists on OS X. That said, I really wouldn&#8217;t mind an OS X version of TweetDeck that allows me to use Growl instead of their custom notifications&#8230;</p>
<p>I really can&#8217;t wait to see what you guys are going to build with AIR 2! You can already start today! Check out <a href="http://labs.adobe.com/" target="_blank">Adobe Labs</a> for more information!</p>
<iframe id="basic_facebook_social_plugins_likebutton" src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.webkitchen.be%2F2010%2F03%2F15%2Fusing-growl-in-air-applications-with-air-2%2F&amp;layout=standard&amp;show_faces=true&amp;width=500&amp;action=like&amp;font=arial&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:500px; height:75px"></iframe>]]></content:encoded>
			<wfw:commentRss>http://www.webkitchen.be/2010/03/15/using-growl-in-air-applications-with-air-2/feed/</wfw:commentRss>
		<slash:comments>23</slash:comments>
		</item>
		<item>
		<title>Video tutorial: &#8220;Elf Yourself&#8221; yourself &#8211; Personalized video on the web</title>
		<link>http://www.webkitchen.be/2009/11/13/video-tutorial-elf-yourself-yourself-personalized-video-on-the-web/</link>
		<comments>http://www.webkitchen.be/2009/11/13/video-tutorial-elf-yourself-yourself-personalized-video-on-the-web/#comments</comments>
		<pubDate>Fri, 13 Nov 2009 15:43:04 +0000</pubDate>
		<dc:creator>Serge Jespers</dc:creator>
				<category><![CDATA[How-to]]></category>
		<category><![CDATA[Video Tutorial]]></category>
		<category><![CDATA[after effects]]></category>
		<category><![CDATA[elfyourself]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[personalized video]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.webkitchen.be/?p=1815</guid>
		<description><![CDATA[Note: Please update your After Effects CS4 installation to make sure you have the latest version available via the Adobe Updater. There is an issue with the preinstalled After Effects script that requires you to work with the latest point release (separate downloads available for Mac OS and Windows). Ever wondered how you can create [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.webkitchen.be%2F2009%2F11%2F13%2Fvideo-tutorial-elf-yourself-yourself-personalized-video-on-the-web%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.webkitchen.be%2F2009%2F11%2F13%2Fvideo-tutorial-elf-yourself-yourself-personalized-video-on-the-web%2F&amp;source=sjespers&amp;style=normal&amp;service=bit.ly&amp;service_api=R_f11b21ad05448f9b4029b73b124e8d0e&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="640" height="360" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://vimeo.com/moogaloop.swf?clip_id=7594280&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=0&amp;show_portrait=0&amp;color=B7C70F&amp;fullscreen=1" /><embed type="application/x-shockwave-flash" width="640" height="360" src="http://vimeo.com/moogaloop.swf?clip_id=7594280&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=0&amp;show_portrait=0&amp;color=B7C70F&amp;fullscreen=1" allowscriptaccess="always" allowfullscreen="true"></embed></object><br />
<em>Note: Please update your After Effects CS4 installation to make sure you have the latest version available via the Adobe Updater. There is an issue with the preinstalled After Effects script that requires you to work with the latest point release (separate downloads available for <a href="http://www.stage.adobe.com/support/downloads/product.jsp?product=13&#038;platform=Macintosh" target="_blank">Mac OS </a>and <a href="http://www.stage.adobe.com/support/downloads/product.jsp?product=13&#038;platform=Windows" target="_blank">Windows</a>).</em></p>
<p>Ever wondered how you can create personalized video on the web? Want to create your own <a href="http://www.elfyourself.com/" target="_blank">ElfYourself.com</a>? This tutorial shows you how it&#8217;s done using After Effects CS4 and Flash Professional CS4. Ooh.. before I forget&#8230; One of my evangelist colleagues has a cameo appearance at the end of the tutorial ;-)</p>
<iframe id="basic_facebook_social_plugins_likebutton" src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.webkitchen.be%2F2009%2F11%2F13%2Fvideo-tutorial-elf-yourself-yourself-personalized-video-on-the-web%2F&amp;layout=standard&amp;show_faces=true&amp;width=500&amp;action=like&amp;font=arial&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:500px; height:75px"></iframe>]]></content:encoded>
			<wfw:commentRss>http://www.webkitchen.be/2009/11/13/video-tutorial-elf-yourself-yourself-personalized-video-on-the-web/feed/</wfw:commentRss>
		<slash:comments>22</slash:comments>
		</item>
		<item>
		<title>Reducing CPU usage in Adobe AIR</title>
		<link>http://www.webkitchen.be/2009/10/20/reducing-cpu-usage-in-adobe-air/</link>
		<comments>http://www.webkitchen.be/2009/10/20/reducing-cpu-usage-in-adobe-air/#comments</comments>
		<pubDate>Tue, 20 Oct 2009 06:21:07 +0000</pubDate>
		<dc:creator>Serge Jespers</dc:creator>
				<category><![CDATA[AIR]]></category>
		<category><![CDATA[How-to]]></category>
		<category><![CDATA[cpu]]></category>
		<category><![CDATA[destroytoday]]></category>
		<category><![CDATA[framerate throttling]]></category>
		<category><![CDATA[jonnie hallman]]></category>
		<category><![CDATA[reduce]]></category>

		<guid isPermaLink="false">http://www.webkitchen.be/?p=1753</guid>
		<description><![CDATA[Jonnie Hallman from DestroyTwitter fame and recently employed by the Adobe XD team, wrote a great article about how he reduced CPU usage in his AIR application. &#8220;AIR gets a bad rap for being a bloated runtime, using up a lot of precious memory and CPU. Although a lot of AIR applications seem to fall [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.webkitchen.be%2F2009%2F10%2F20%2Freducing-cpu-usage-in-adobe-air%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.webkitchen.be%2F2009%2F10%2F20%2Freducing-cpu-usage-in-adobe-air%2F&amp;source=sjespers&amp;style=normal&amp;service=bit.ly&amp;service_api=R_f11b21ad05448f9b4029b73b124e8d0e&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p><img class="size-full wp-image-1754" style="margin-right:10px; margin-bottom:10px;" title="jonnie_hallman" src="http://www.webkitchen.be/wp-content/uploads/2009/10/jonnie_hallman.jpg" alt="jonnie_hallman" width="160" height="160" align="left" /><a href="http://destroytoday.com/blog/" target="_blank">Jonnie Hallman</a> from <a href="https://destroytwitter.com/" target="_blank">DestroyTwitter</a> fame and recently employed by the Adobe XD team, wrote a <a href="http://www.adobe.com/devnet/air/flex/articles/framerate_throttling.html?devcon=f12" target="_blank">great article</a> about how he reduced CPU usage in his AIR application.</p>
<p><em>&#8220;AIR gets a bad rap for being a bloated runtime, using up a lot of precious memory and CPU. Although a lot of AIR applications seem to fall into this trap, it doesn&#8217;t have to be this way. There are a number of techniques you can use to develop a lightweight application that rivals native programs in terms of performance,&#8221;</em> he says.</p>
<p>The <a href="http://www.adobe.com/devnet/air/flex/articles/framerate_throttling.html?devcon=f12" target="_blank">article</a> explains what framerate throttling is and how best to implement it in your application.</p>
<iframe id="basic_facebook_social_plugins_likebutton" src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.webkitchen.be%2F2009%2F10%2F20%2Freducing-cpu-usage-in-adobe-air%2F&amp;layout=standard&amp;show_faces=true&amp;width=500&amp;action=like&amp;font=arial&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:500px; height:75px"></iframe>]]></content:encoded>
			<wfw:commentRss>http://www.webkitchen.be/2009/10/20/reducing-cpu-usage-in-adobe-air/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Tutorial: Sexy transitions with Flex 3 (as used in the MAX widget)</title>
		<link>http://www.webkitchen.be/2009/08/28/sexy-transitions-with-flex-3-as-used-in-the-max-widget/</link>
		<comments>http://www.webkitchen.be/2009/08/28/sexy-transitions-with-flex-3-as-used-in-the-max-widget/#comments</comments>
		<pubDate>Fri, 28 Aug 2009 09:09:16 +0000</pubDate>
		<dc:creator>Serge Jespers</dc:creator>
				<category><![CDATA[Flex]]></category>
		<category><![CDATA[How-to]]></category>
		<category><![CDATA[adobe max]]></category>
		<category><![CDATA[effects]]></category>
		<category><![CDATA[flex 3]]></category>
		<category><![CDATA[flex builder]]></category>
		<category><![CDATA[MAX2009]]></category>
		<category><![CDATA[maxwidget]]></category>
		<category><![CDATA[transitions]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.webkitchen.be/?p=1627</guid>
		<description><![CDATA[When I showed the first versions of the MAX widget to a few colleagues, most were very surprised to hear that this was all built with the Flex 3 framework and that no Flash Catalyst or Flash CS4 was involved in this. &#8220;Including the animations?&#8220;, was a question I got a lot. And yes&#8230; Even [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.webkitchen.be%2F2009%2F08%2F28%2Fsexy-transitions-with-flex-3-as-used-in-the-max-widget%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.webkitchen.be%2F2009%2F08%2F28%2Fsexy-transitions-with-flex-3-as-used-in-the-max-widget%2F&amp;source=sjespers&amp;style=normal&amp;service=bit.ly&amp;service_api=R_f11b21ad05448f9b4029b73b124e8d0e&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>When I showed the first versions of the <a href="http://max.adobe.com/widget" target="_blank">MAX widget</a> to a few colleagues, most were very surprised to hear that this was all built with the Flex 3 framework and that no Flash Catalyst or Flash CS4 was involved in this.</p>
<p>&#8220;<em>Including the animations?</em>&#8220;, was a question I got a lot. And yes&#8230; Even the animations are &#8220;programmed&#8221; using the Flex framework. And you know what&#8230; It&#8217;s really not as hard as it sounds. The Flex framework actually has a bunch of effects built in and they are really easy to use.</p>
<p>In this case, I used 2 move effects and specified a &#8220;Back.easeOut&#8221; easingFunction. This easing function creates that bouncing effect that you see in the widget.</p>
<pre>&lt;mx:Move id=&quot;moveIn&quot; yFrom=&quot;400&quot; duration=&quot;350&quot; easingFunction=&quot;Back.easeOut&quot;/&gt;
&lt;mx:Move id=&quot;moveOut&quot; yTo=&quot;400&quot; duration=&quot;250&quot; easingFunction=&quot;Back.easeIn&quot;/&gt;</pre>
<p>You can use these types of effects in a number of different ways but the easiest way (I think) is to specify the showEffect and hideEffect on a component.</p>
<pre>&lt;mx:Canvas id=&quot;page1_back&quot; showEffect=&quot;moveIn&quot; hideEffect=&quot;moveOut&quot; width=&quot;400&quot; height=&quot;400&quot;/&gt;</pre>
<p>When you set the visible property to false, the hideEffect will trigger and the showEffect gets triggered when you set the visible property to true. I&#8217;m sure you can already see how I built this ;-)</p>
<p>In the widget, you see 6 different pieces of graphics slide in to place over time. To do that, I created a timer that triggers my setup function over time.</p>
<pre>var setupTimer:Timer = new Timer(150, 3);
setupTimer.addEventListener(&quot;timer&quot;, doSetupPage1);
setupTimer.start();</pre>
<p>This timer will trigger the doSetupPage1 function 3 times with 150 milliseconds in between each call. All my doSetupPage1 function does, is set the visible property to true on the different pieces of graphics I want to show.</p>
<pre>
private function doSetupPage1(event:TimerEvent):void
{
    switch (event.target.currentCount)
    {
        case 1:
            page1_back.visible = true;
            break;
        case 2:
            page1_middle.visible = true;
            break
        case 3:
            page1_front.visible = true;
            break;
    }
}</pre>
<p>To hide them, I&#8217;m actually doing exactly the same thing. Instead of setting the visible property to true, I set it to false and when all pieces of artwork are hidden, I trigger the function that reveals the next page.</p>
<p align="center">[flash medium=5 w=400 h=400 mode=1]</p>
<p>To get you started, I created this little Flex project that demonstrates this approach. Now I&#8217;m not saying that this is best practice or not but I think it&#8217;s just an easy way to create sexy transitions with Flex 3.</p>
<p><a href="http://dl.getdropbox.com/u/117996/MAXWidget_HowTo_effects.zip" target="_blank"><img src="http://www.webkitchen.be/wp-content/uploads/2008/12/download_manager_72x72.png" alt="download_manager_72x72" title="download_manager_72x72" width="72" height="72" class="alignnone size-full wp-image-531" /></a></p>
<p><a href="http://dl.getdropbox.com/u/117996/MAXWidget_HowTo_effects.zip" target="_blank">Download the source.</a></p>
<iframe id="basic_facebook_social_plugins_likebutton" src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.webkitchen.be%2F2009%2F08%2F28%2Fsexy-transitions-with-flex-3-as-used-in-the-max-widget%2F&amp;layout=standard&amp;show_faces=true&amp;width=500&amp;action=like&amp;font=arial&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:500px; height:75px"></iframe>]]></content:encoded>
			<wfw:commentRss>http://www.webkitchen.be/2009/08/28/sexy-transitions-with-flex-3-as-used-in-the-max-widget/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

