<?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>FlashCats</title>
	<atom:link href="http://flashcats.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://flashcats.net</link>
	<description>Flash Catalyst Tips N&#039; Tricks</description>
	<lastBuildDate>Sun, 17 Jul 2011 06:14:32 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4</generator>
		<item>
		<title>How to run Flash Catalyst CS5.5 projects on Android devices</title>
		<link>http://flashcats.net/2011/07/16/how-to-run-flash-catalyst-cs5-5-projects-on-android-devices/</link>
		<comments>http://flashcats.net/2011/07/16/how-to-run-flash-catalyst-cs5-5-projects-on-android-devices/#comments</comments>
		<pubDate>Sun, 17 Jul 2011 06:14:32 +0000</pubDate>
		<dc:creator>tarajane</dc:creator>
				<category><![CDATA[Advanced]]></category>
		<category><![CDATA[Catalyst Hacks]]></category>

		<guid isPermaLink="false">http://flashcats.net/?p=601</guid>
		<description><![CDATA[While playing around with Flash Catalyst 5.5 and Flash Builder 4.5 I realized it's pretty easy to get your Flash Catalyst projects onto android devices. This tutorial will walk you through importing your Flash Catalyst CS5.5 project into Flash Builder 4.5, show you how to convert it to a Flex Mobile project, and finally run [...]]]></description>
			<content:encoded><![CDATA[<p>While playing around with Flash Catalyst 5.5 and Flash Builder 4.5 I realized it's pretty easy to get your Flash Catalyst projects onto android devices.</p>
<p>This tutorial will walk you through importing your Flash Catalyst CS5.5 project into Flash Builder 4.5, show you how to convert it to a Flex Mobile project, and finally run your project on an Android device.</p>
<p>As a heads up, <strong>I use this strictly as a prototyping/proof of concept method</strong> (no release version/to market apps).  Flash Catalyst CS5.5 does not create projects optimized for flex mobile.</p>
<p>Requirements:</p>
<ul>
<li>Flash Catalyst 5.5</li>
<li>Flash Builder 4.5</li>
<li>Motorola Xoom (or other Android device running at least FP 10.2)</li>
</ul>
<p><span id="more-601"></span></p>
<p>1. Start out with your Flash Catalyst 5.5 project you'd like to run on a tablet device.<br />
I created a really simple, two state application for the purposes of demonstration:<br />
<a href="http://flashcats.net/wp-content/uploads/2011/07/fc_to_mobile_1.png" rel="lightbox[601]"><img src="http://flashcats.net/wp-content/uploads/2011/07/fc_to_mobile_1-300x187.png" alt="" title="fc_to_mobile_1" width="300" height="187" class="aligncenter size-medium wp-image-602" /></a></p>
<p>2. Save your project.<br />
I saved my on my desktop, as fc_to_mobile.fxp</p>
<p>3. Open Flash Builder 4.5</p>
<p>4. Click File > Import Flash Builder Project<br />
<a href="http://flashcats.net/wp-content/uploads/2011/07/Screen-shot-2011-07-16-at-10.08.33-PM.png" rel="lightbox[601]"><img src="http://flashcats.net/wp-content/uploads/2011/07/Screen-shot-2011-07-16-at-10.08.33-PM-150x150.png" alt="" title="Screen shot 2011-07-16 at 10.08.33 PM" width="150" height="150" class="aligncenter size-thumbnail wp-image-606" /></a></p>
<p>5. An import dialog appears.  Click the 'Browse...' button to the right of 'File:':<br />
<a href="http://flashcats.net/wp-content/uploads/2011/07/Screen-shot-2011-07-16-at-10.11.26-PM.png" rel="lightbox[601]"><img src="http://flashcats.net/wp-content/uploads/2011/07/Screen-shot-2011-07-16-at-10.11.26-PM-150x150.png" alt="" title="Screen shot 2011-07-16 at 10.11.26 PM" width="150" height="150" class="aligncenter size-thumbnail wp-image-607" /></a><br />
Navigate to your Flash Catalyst project file (.fxp) in your file system.  Click open.</p>
<p>6. A second import options dialog appears.  The default settings should look as below, then press the 'Finish' button:<br />
<a href="http://flashcats.net/wp-content/uploads/2011/07/Screen-shot-2011-07-16-at-10.14.05-PM.png" rel="lightbox[601]"><img src="http://flashcats.net/wp-content/uploads/2011/07/Screen-shot-2011-07-16-at-10.14.05-PM-150x150.png" alt="" title="Screen shot 2011-07-16 at 10.14.05 PM" width="150" height="150" class="aligncenter size-thumbnail wp-image-608" /></a></p>
<p>7. You'll now see a Flex project has been created in the "Package Explorer" panel in Flash Builder.  It has the same name as your Flash Catalyst project file... in my case: FC_to_mobile.fxp.<br />
<a href="http://flashcats.net/wp-content/uploads/2011/07/Screen-shot-2011-07-16-at-10.20.27-PM.png" rel="lightbox[601]"><img src="http://flashcats.net/wp-content/uploads/2011/07/Screen-shot-2011-07-16-at-10.20.27-PM-150x150.png" alt="" title="Screen shot 2011-07-16 at 10.20.27 PM" width="150" height="150" class="aligncenter size-thumbnail wp-image-609" /></a><br />
We've officially imported our Flash Catalyst project into Flash Builder.</p>
<p>8. Lets convert our Flex project to a Flex Mobile project.  In the File menu, click new Flex Mobile project:<br />
<a href="http://flashcats.net/wp-content/uploads/2011/07/Screen-shot-2011-07-16-at-10.23.53-PM.png" rel="lightbox[601]"><img src="http://flashcats.net/wp-content/uploads/2011/07/Screen-shot-2011-07-16-at-10.23.53-PM-150x150.png" alt="" title="Screen shot 2011-07-16 at 10.23.53 PM" width="150" height="150" class="aligncenter size-thumbnail wp-image-612" /></a></p>
<p>9. Give your mobile app a name.  I picked 'MobileTestApp':<br />
<a href="http://flashcats.net/wp-content/uploads/2011/07/Screen-shot-2011-07-16-at-10.25.14-PM.png" rel="lightbox[601]"><img src="http://flashcats.net/wp-content/uploads/2011/07/Screen-shot-2011-07-16-at-10.25.14-PM-150x150.png" alt="" title="Screen shot 2011-07-16 at 10.25.14 PM" width="150" height="150" class="aligncenter size-thumbnail wp-image-613" /></a></p>
<p>10. Click 'Next'.  Deselect 'ios' and 'blackberry', and pick 'blank' application.  Make sure your settings look like these:<br />
<a href="http://flashcats.net/wp-content/uploads/2011/07/Screen-shot-2011-07-16-at-10.26.44-PM.png" rel="lightbox[601]"><img src="http://flashcats.net/wp-content/uploads/2011/07/Screen-shot-2011-07-16-at-10.26.44-PM-150x150.png" alt="" title="Screen shot 2011-07-16 at 10.26.44 PM" width="150" height="150" class="aligncenter size-thumbnail wp-image-614" /></a></p>
<p>11. Click 'Finish'.  You have now created an empty Flex Mobile application.  You'll see it in the 'Package Explorer' panel next to your imported Flash Catalyst app:<br />
<a href="http://flashcats.net/wp-content/uploads/2011/07/Screen-shot-2011-07-16-at-10.28.51-PM.png" rel="lightbox[601]"><img src="http://flashcats.net/wp-content/uploads/2011/07/Screen-shot-2011-07-16-at-10.28.51-PM-150x150.png" alt="" title="Screen shot 2011-07-16 at 10.28.51 PM" width="150" height="150" class="aligncenter size-thumbnail wp-image-615" /></a></p>
<p>12.  Now we need to do a bunch of copy and pasting.  Basically, you want to copy all of your Catalyst files (and maintain project structure) into your new Flex Mobile project.  In the case of my project, I had to copy the 'components' folder from the FC_to_mobile project to 'MobileTestApp' (under the src folder), and then the 'main.css + PrivateData.mxml' files under the 'Default Package' folder.  If you have an assets folder, you'll want to copy that over too:<br />
<a href="http://flashcats.net/wp-content/uploads/2011/07/Screen-shot-2011-07-16-at-10.34.24-PM.png" rel="lightbox[601]"><img src="http://flashcats.net/wp-content/uploads/2011/07/Screen-shot-2011-07-16-at-10.34.24-PM-150x150.png" alt="" title="Screen shot 2011-07-16 at 10.34.24 PM" width="150" height="150" class="aligncenter size-thumbnail wp-image-617" /></a></p>
<p>13. The last piece of copy+paste, is to open your 'Main.mxml' file in your Flash Catalyst project... and copy the contents.  Then open your main Flex Mobile project application file (in my case, MobileTestApp.mxml), select all, and paste the contents of your Catalyst Main.mxml file:<br />
<a href="http://flashcats.net/wp-content/uploads/2011/07/Screen-shot-2011-07-16-at-10.39.24-PM.png" rel="lightbox[601]"><img src="http://flashcats.net/wp-content/uploads/2011/07/Screen-shot-2011-07-16-at-10.39.24-PM-150x150.png" alt="" title="Screen shot 2011-07-16 at 10.39.24 PM" width="150" height="150" class="aligncenter size-thumbnail wp-image-618" /></a></p>
<p>14. Press cmd-s to save your project, or select 'File>Save'.  If you have any errors, they probably have to do with either (a) you didn't copy over all your catalyst project files (b) you didn't preserve project structure on copy paste... check to make sure everything is under the 'src ' folder, or (c) you have some global interactions in your project which use 'Main.xxx', in which case you should replace 'Main' with the name of your mobile project (in my case, MobileTestApp).</p>
<p>15. Now lets try running your app in the device simulator. Right click your Flex Mobile project and choose 'Run As > Mobile Application':<br />
<a href="http://flashcats.net/wp-content/uploads/2011/07/Screen-shot-2011-07-16-at-10.45.30-PM.png" rel="lightbox[601]"><img src="http://flashcats.net/wp-content/uploads/2011/07/Screen-shot-2011-07-16-at-10.45.30-PM-150x150.png" alt="" title="Screen shot 2011-07-16 at 10.45.30 PM" width="150" height="150" class="aligncenter size-thumbnail wp-image-619" /></a></p>
<p>16. The 'Run Mobile Project' settings dialog now appears.  Select the 'On Desktop' radio and choose 'Motorola Xoom' as an example:<br />
<a href="http://flashcats.net/wp-content/uploads/2011/07/Screen-shot-2011-07-16-at-10.46.40-PM.png" rel="lightbox[601]"><img src="http://flashcats.net/wp-content/uploads/2011/07/Screen-shot-2011-07-16-at-10.46.40-PM-150x150.png" alt="" title="Screen shot 2011-07-16 at 10.46.40 PM" width="150" height="150" class="aligncenter size-thumbnail wp-image-620" /></a></p>
<p>17. Click 'Run'.  Your Flash Catalyst app will now run in a window simulating the size and orientation of the Motorola Xoom.  You can manipulate the orientation through the simulator 'Device' file menu.</p>
<p>18.  Now lets run our application on an actual Android tablet.  On your Android device, go to 'Settings' and then 'Applications'.  You should see an option listed here called 'Development'.  Click that. Turn on all options (USB Debugging, Stay Awake, Allow Mock Locations).</p>
<p>19.  Connect your Android device to your machine via USB.</p>
<p>20.  Right click your Flex Mobile project in Flash Builder, and choose the 'Run As' menu option, and choose' Run Configurations'.  Instead of selecting the 'On Desktop' option, select 'On Device':<br />
<a href="http://flashcats.net/wp-content/uploads/2011/07/Screen-shot-2011-07-16-at-11.08.44-PM.png" rel="lightbox[601]"><img src="http://flashcats.net/wp-content/uploads/2011/07/Screen-shot-2011-07-16-at-11.08.44-PM-150x150.png" alt="" title="Screen shot 2011-07-16 at 11.08.44 PM" width="150" height="150" class="aligncenter size-thumbnail wp-image-633" /></a></p>
<p>21.  Click Run.  Wait a minute or so.  Your Flex Mobile application will be copied on your android device, and then automatically opened.  Any 'on click' interactions you set up in Catalyst will work as 'on touch' interactions on the tablet:<br />
<a href="http://flashcats.net/wp-content/uploads/2011/07/photo-1.jpg" rel="lightbox[601]"><img src="http://flashcats.net/wp-content/uploads/2011/07/photo-1-300x225.jpg" alt="" title="photo (1)" width="300" height="225" class="aligncenter size-medium wp-image-623" /></a></p>
<p>Voila!</p>
<p><strong>Other items to note:</strong><br />
- You'll want to make your app resizable in Flash Catalyst so that your app resizes nicely when rotating from portrait to landscape mode.</p>
<p>-If you need to make changes to your application after viewing it on an android device, you can either modify the code in Flash Builder, or edit your original Flash Catalyst project.  Unfortunately you'll have to repeat all of the above steps to get the updated app onto a tablet.</p>
<p>-Again, this is just a neat workaround to get your Catalyst apps onto an Android device.  Catalyst doesn't directly support this workflow, and does not produce mobile-optimized code.  </p>
<p>-RollOver/RollOut won't work on Tablet.  Use 'Click' events instead.</p>
<p>-If you have errors/can't run, see Step #14 above to make sure you've addressed the issues I've listed.</p>
]]></content:encoded>
			<wfw:commentRss>http://flashcats.net/2011/07/16/how-to-run-flash-catalyst-cs5-5-projects-on-android-devices/feed/</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
		<item>
		<title>Using a Custom Preloader in Catalyst</title>
		<link>http://flashcats.net/2011/04/11/using-a-custom-preloader-in-catalyst/</link>
		<comments>http://flashcats.net/2011/04/11/using-a-custom-preloader-in-catalyst/#comments</comments>
		<pubDate>Mon, 11 Apr 2011 11:30:02 +0000</pubDate>
		<dc:creator>bear</dc:creator>
				<category><![CDATA[Builder Tweaks]]></category>

		<guid isPermaLink="false">http://flashcats.net/?p=579</guid>
		<description><![CDATA[A common request for Catalyst is the ability to customize the preloader that displays while the main swf is loading. I've tweaked some FXP's and FXPL's to simplify the process of modifying the preloader in Catalyst. For an example, click the image below. FXP(L)s and instructions after the jump. To start a new project with [...]]]></description>
			<content:encoded><![CDATA[<p>A common request for Catalyst is the ability to customize the preloader that displays while the main swf is loading. I've tweaked some FXP's and FXPL's to simplify the process of modifying the preloader in Catalyst.</p>
<p>For an example, click the image below.</p>
<p><a href="/static/custom-preloader/Main.swf"><img class="aligncenter size-full wp-image-580" title="preloader" src="http://flashcats.net/wp-content/uploads/2011/04/preloader.png" alt="" width="318" height="100" /></a></p>
<p>FXP(L)s and instructions after the jump.</p>
<h3><span id="more-579"></span>To start a new project with a custom png preloader</h3>
<ol>
<li>Download the <a title="Png Preloader" href="http://dl.dropbox.com/u/21428091/Preloader-Png.fxp">Preloader-Png FXP</a></li>
<li>Open the FXP in Catalyst</li>
<li>Import the png you would like to use, and rename it "preloader.png"</li>
</ol>
<h3>To start a new project with a custom swf preloader</h3>
<ol>
<li>Download the <a title="Swf Preloader" href="http://dl.dropbox.com/u/21428091/Preloader-Swf.fxp">Preloader-Swf FXP</a></li>
<li>Open the FXP in Catalyst</li>
<li>Import the swf you would like to use, and rename it "preloader.swf"</li>
</ol>
<p>This swf must be a simple AS3 movie clip (you can't use a swf created in Catalyst).</p>
<h3>For an existing project</h3>
<p>Here's the longer way to customize the preloader on an existing project (you can use a png, gif, jpg, or swf)</p>
<ol>
<li>Download the <a title="Preloader" href="http://dl.dropbox.com/u/21428091/Preloader.fxpl">Preloader FXPL</a></li>
<li>Open your project in Catalyst</li>
<li>Import the FXPL</li>
<li>Import the png, gif, jpg or swf you are going to use as the preloader</li>
<li>Save your project as an FXP, and import it into Builder</li>
<li>Open Main.mxml (the application file under src &gt; default package)</li>
<li>At the end of the &lt;Application&gt; tag, add the attribute preloader="preloader.CustomPreloader"</li>
<li>In PreloaderUrl.as (under the src &gt; preloader package), replace "preloader.png" with the name of your preloader asset</li>
<li>That's it, you can export your project as an FXP and open it up again in Catalyst</li>
</ol>
<p>For some preloader inspiration, check out <a href="http://www.prettyloaded.com">PrettyLoaded</a><br />
The source for the preloader is a modified version of the code <a href="http://npacemo.com/wordpress/2008/07/06/flex-application-bootstrapping-totally-custom-preloader/">here</a>.<br />
If you want a progress-bar like preloader, check out <a href="http://www.gotoandlearn.com/play.php?id=108">this video</a> over at gotoAndLearn or Jesse Warden's <a href="http://jessewarden.com/2007/07/making-a-cooler-preloader-in-flex-part-1-of-3.html">tutorial</a>.</p>
<p>Happy preloading!</p>
]]></content:encoded>
			<wfw:commentRss>http://flashcats.net/2011/04/11/using-a-custom-preloader-in-catalyst/feed/</wfw:commentRss>
		<slash:comments>42</slash:comments>
		</item>
		<item>
		<title>Day 12: Tab Navigator Component</title>
		<link>http://flashcats.net/2011/04/05/day-12-tab-navigator-component/</link>
		<comments>http://flashcats.net/2011/04/05/day-12-tab-navigator-component/#comments</comments>
		<pubDate>Tue, 05 Apr 2011 08:20:45 +0000</pubDate>
		<dc:creator>bear</dc:creator>
				<category><![CDATA[Custom Skinnable Components]]></category>

		<guid isPermaLink="false">http://flashcats.net/?p=571</guid>
		<description><![CDATA[And one more makes twelve! Hurray! This component is pretty simple, buttons 1-10 that, when clicked, navigate through pages 1-10. They also disable the button for the current page, so the component acts like a combination of a tab bar and content. The bonus here is not having to wire up all those "On Click [...]]]></description>
			<content:encoded><![CDATA[<p>And one more makes twelve! Hurray!</p>
<p>This component is pretty simple, buttons 1-10 that, when clicked, navigate through pages 1-10. They also disable the button for the current page, so the component acts like a combination of a tab bar and content. The bonus here is not having to wire up all those "On Click &gt; Go To State &gt; When In State" interactions for each button.</p>
<p>Click on the image for a preview.</p>
<p><a href="/static/skinnable-tab-navigator/TabNavigator.swf"><img class="aligncenter size-full wp-image-572" title="TabNavigator" src="http://flashcats.net/wp-content/uploads/2011/04/TabNavigator.png" alt="" width="385" height="378" /></a></p>
<p>The FXP is available <a href="http://dl.dropbox.com/u/21428091/TabNavigator.fxp">here</a>.</p>
<p>Details after the jump.</p>
<p><span id="more-571"></span>Component States: Pages 1-10</p>
<p>Component Parts: Buttons 1-10</p>
<p>Clicking on a button jumps to the corresponding page and disables the button. All other buttons are enabled. I figured most people should be satisfied with the 10 pages / states built in, but you could always add some more by modifying the skinnable component in Builder.</p>
]]></content:encoded>
			<wfw:commentRss>http://flashcats.net/2011/04/05/day-12-tab-navigator-component/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Day 11: Flickr Feed</title>
		<link>http://flashcats.net/2011/03/30/day-11-flickr-feed/</link>
		<comments>http://flashcats.net/2011/03/30/day-11-flickr-feed/#comments</comments>
		<pubDate>Wed, 30 Mar 2011 07:09:33 +0000</pubDate>
		<dc:creator>bear</dc:creator>
				<category><![CDATA[Custom Skinnable Components]]></category>

		<guid isPermaLink="false">http://flashcats.net/?p=563</guid>
		<description><![CDATA[One more skinnable component I created a while ago while I was learning to write skinnable components. It pulls a list of recent images uploaded to Flickr, with the ability to search by tag or user id. The component uses a list skin part, meaning you will need to work with an existing skin in [...]]]></description>
			<content:encoded><![CDATA[<p>One more skinnable component I created a while ago while I was learning to write skinnable components. It pulls a list of recent images uploaded to Flickr, with the ability to search by tag or user id. The component uses a list skin part, meaning you will need to work with an existing skin in order to preserve the list skin part assignment.</p>
<p>Click on the image to view the swf.</p>
<p><a href="http://flashcats.net/static/skinnable-flickr-feed/FlickrFeedApplication.swf"><img class="aligncenter size-full wp-image-564" title="FlickrFeed" src="http://flashcats.net/wp-content/uploads/2011/03/FlickrFeed.png" alt="" width="400" height="404" /></a></p>
<p>I went with a refrigerator magnet theme. If you're lucky, you may be seeing another skin from Tara.</p>
<p>You can download the FXP <a href="http://dl.dropbox.com/u/21428091/FlickrFeed.fxp">here</a>.</p>
<p>Details after the jump.</p>
<p><span id="more-563"></span>FlickrFeed States</p>
<ul>
<li>Loading: The component is loading the feed, and has not yet added the first image to the thumbnails list</li>
<li>Active: The component is displaying image thumbnails</li>
<li>Fault: An error has occurred while loading the flickr feed</li>
<li>Disabled: The component is disabled (this is uncommon)</li>
</ul>
<p>Parts</p>
<ul>
<li>Add Photo Delay Ms (RichText): Delay between adding new photos to the list, in milliseconds</li>
<li>Max List Size (Rich Text): Maximum number of thumbnails to display in the list</li>
<li>User Ids (Rich Text): Comma separated user ids used to filter the feed (optional)</li>
<li>User Tags (Rich Text): Comma separated user tags used to filter the feed (optional)</li>
</ul>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://flashcats.net/2011/03/30/day-11-flickr-feed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Day 10: YouTube Component</title>
		<link>http://flashcats.net/2011/03/24/day-10-youtube-component/</link>
		<comments>http://flashcats.net/2011/03/24/day-10-youtube-component/#comments</comments>
		<pubDate>Fri, 25 Mar 2011 06:22:10 +0000</pubDate>
		<dc:creator>bear</dc:creator>
				<category><![CDATA[Custom Skinnable Components]]></category>
		<category><![CDATA[youtube]]></category>

		<guid isPermaLink="false">http://flashcats.net/?p=556</guid>
		<description><![CDATA[I've seen a couple requests for embedding YouTube videos in Flash Catalyst projects. This skinnable component pulls in a YouTube video at runtime, using a video id and the YouTube AS3 API. Click the image to view the running example. You can download the FXP here, Or the FXPL here. More details after the jump. [...]]]></description>
			<content:encoded><![CDATA[<p>I've seen a couple requests for embedding YouTube videos in Flash Catalyst projects. This skinnable component pulls in a YouTube video at runtime, using a video id and the YouTube AS3 API.</p>
<p>Click the image to view the running example.</p>
<p><a href="/static/skinnable-youtube/YouTubeProject.swf"><img class="aligncenter size-full wp-image-557" title="YouTube Preview" src="http://flashcats.net/wp-content/uploads/2011/03/YouTubePreview.png" alt="" width="400" height="295" /></a></p>
<p>You can download the FXP <a href="http://dl.dropbox.com/u/21428091/YouTube.fxp">here</a>,<br />
Or the FXPL <a href="http://dl.dropbox.com/u/21428091/YouTubeLib.fxpl">here</a>.</p>
<p>More details after the jump.</p>
<p><span id="more-556"></span>The skinnable component takes a group placeholder to insert the player into at runtime. It also takes a video id as a RichText part. The video id should be the last 11 characters of a YouTube video url, right after the "=" sign. The video id should go in the "Properties" state, and the placeholder should go in the "Video" state. If there is a problem, the skin will wind up in the "Error" state, with the problem in the error message skin part, if it's assigned.</p>
<p>It sounds a little complicated, but you can always check out how the FXP is set up.</p>
]]></content:encoded>
			<wfw:commentRss>http://flashcats.net/2011/03/24/day-10-youtube-component/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>Day 9: Drag &amp; Drop Canvas</title>
		<link>http://flashcats.net/2011/03/18/day-9-drag-drop-canvas/</link>
		<comments>http://flashcats.net/2011/03/18/day-9-drag-drop-canvas/#comments</comments>
		<pubDate>Fri, 18 Mar 2011 17:41:17 +0000</pubDate>
		<dc:creator>bear</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://flashcats.net/?p=544</guid>
		<description><![CDATA[Also known as, the Dress-up Robot! This skinnable component has a "droppables" group of graphics you can drag to and position on a "canvas" group. For this example, the droppables is a set of accessories for the robot in the canvas. Click on the image to preview. The fxp is available here. Details after the [...]]]></description>
			<content:encoded><![CDATA[<p>Also known as, the Dress-up Robot!</p>
<p>This skinnable component has a "droppables" group of graphics you can drag to and position on a "canvas" group. For this example, the droppables is a set of accessories for the robot in the canvas.</p>
<p>Click on the image to preview.</p>
<p><a href="/static/skinnable-drag-drop-canvas/Main.swf"><br />
<img class="aligncenter size-full wp-image-545" title="DragDropCanvas-small" src="http://flashcats.net/wp-content/uploads/2011/03/DragDropCanvas-small.png" alt="" width="400" height="206" /></a></p>
<p>The fxp is available <a href="http://dl.dropbox.com/u/21428091/DragDropCanvas.fxp">here</a>.</p>
<p>Details after the jump.</p>
<p><span id="more-544"></span>As always, this requires the Panini Preview or later to run.</p>
<p>The skin parts:</p>
<ul>
<li>Droppables Group: A group of optimized graphics, each optimized graphic in the group will be droppable onto the canvas. Some optimized graphics may cause trouble when you drag an object over them. If this is the case, just rasterize the graphic, and then convert the image back to an optimized graphic.</li>
<li>Canvas Group: The group you can drop and position your droppables on. This object needs a background fill to properly pick up the mouse drops. In this case there's a white semi-opaque rectangle.</li>
<li>Trash Group: Dragging a droppable from the canvas to the trash group will remove it from the canvas.</li>
<li>Reset Button: Removes all droppables from the canvas. In this example, the reset button and trash group are one and the same.</li>
</ul>
<p>Most of the graphics here are courtesy of <a href="http://openclipart.org">OpenClipArt</a>, with the background generated by <a href="http://bgpatterns.com">BGPatterns</a>. For all you ever wanted to know about Drag &amp; Drop in Flex, here is the <a href="http://www.flexafterdark.com/tutorials/Flex-Drag-and-Drop">Flex After Dark tutorial</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://flashcats.net/2011/03/18/day-9-drag-drop-canvas/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Day 8: Drag and Drop Lists</title>
		<link>http://flashcats.net/2011/03/17/day-8-drag-and-drop-lists/</link>
		<comments>http://flashcats.net/2011/03/17/day-8-drag-and-drop-lists/#comments</comments>
		<pubDate>Fri, 18 Mar 2011 05:32:00 +0000</pubDate>
		<dc:creator>tarajane</dc:creator>
				<category><![CDATA[Custom Skinnable Components]]></category>

		<guid isPermaLink="false">http://flashcats.net/?p=523</guid>
		<description><![CDATA[I decided to whip a simple custom skinnable component to enable drag and drop between lists. I've posted a quick sample skin of how this might look in a 'these are a few of my favorite things' drag/drop scenario, which allows a user to drag from a source list to a target list. Check it [...]]]></description>
			<content:encoded><![CDATA[<p>I decided to whip a simple custom skinnable component to enable drag and drop between lists.  I've posted a quick sample skin of how this might look in a 'these are a few of my favorite things' drag/drop scenario, which allows a user to drag from a source list to a target list.  </p>
<p>Check it out by clicking on the image below:</p>
<p><a href="/static/drag-and-drop-list/deploy-to-web/DragAndDrop.swf"><img src="http://flashcats.net/wp-content/uploads/2011/03/Screen-shot-2011-03-17-at-10.07.34-PM-300x112.png" alt="" title="FavoriteThings_DragDrop" width="300" height="112" class="aligncenter size-medium wp-image-525" /></a></p>
<p>Download the FXP <a href="http://dl.dropbox.com/u/6790579/DragAndDrop.fxp">here</a>.<br />
Download the FXPL <a href="http://dl.dropbox.com/u/6790579/DragAndDropList.fxpl">here</a>.</p>
<p>More info after the jump.</p>
<p><span id="more-523"></span></p>
<p>You can customize three states of the list: </p>
<ul>
<li><strong>normal</strong> (or default)</li>
<li><strong>dragOver</strong> (what it looks like while a user is dragging on top of a list which supports drop)</li>
<li><strong>drop </strong>(which is how the list appears for 0.5 seconds after releasing the mouse cursor over a drop-able list). </li>
</ul>
<p>There are some optional skin parts on the DragDropList which you can assign to customize lists: </p>
<ul>
<li><strong>enableDrag</strong> - text part which you can set as true or false.  If true, allow dragging from the list.</li>
<li><strong>enableDrop</strong> - text part which you can set as true or false.  If true, allow dropping onto the list.</li>
<li><strong>enableDragMove</strong> - text part which you can set as true or false. If true, remove the item from the source list after dropping onto a target list.  If false, copy items from the source list to the target list.</li>
</ul>
<p>In our example above, the left list of favorite things only allows you to drag.  The right list only allows you to drop.  You'll notice after dragging and dropping an item from the left to right, the item stays in the left list.  We set enableDragMove to false, just in case you're so passionate about vinyl it needs to be in your favorite things list more than once.</p>
<p>You can customize your list items to look however you'd like... so drag and drop lists of text, images, graphics, etc.</p>
]]></content:encoded>
			<wfw:commentRss>http://flashcats.net/2011/03/17/day-8-drag-and-drop-lists/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Day 7: FlightBox</title>
		<link>http://flashcats.net/2011/03/09/day-7-flightbox/</link>
		<comments>http://flashcats.net/2011/03/09/day-7-flightbox/#comments</comments>
		<pubDate>Thu, 10 Mar 2011 06:41:38 +0000</pubDate>
		<dc:creator>bear</dc:creator>
				<category><![CDATA[Custom Skinnable Components]]></category>

		<guid isPermaLink="false">http://flashcats.net/?p=513</guid>
		<description><![CDATA[I mocked up a quick Flex Lightbox component, which I have lovingly dubbed "FlightBox." Click on the image below to hop to the actual swf. Take an image list and wrap it inside the FlightBox skin. You must also include a skin part, the "chrome," that surrounds the popped up image. In this case, the [...]]]></description>
			<content:encoded><![CDATA[<p>I mocked up a quick Flex Lightbox component, which I have lovingly dubbed "FlightBox." Click on the image below to hop to the actual swf.</p>
<p><a href="/static/skinnable-light-box/FlightBox.swf"><img class="aligncenter size-full wp-image-514" title="flightbox-preview" src="http://flashcats.net/wp-content/uploads/2011/03/flightbox-preview.jpg" alt="" width="300" height="306" /></a></p>
<p>Take an image list and wrap it inside the FlightBox skin. You must also include a skin part, the "chrome," that surrounds the popped up image. In this case, the chrome looks like a polaroid photo. The tiled background is courtesy of <a href="http://www.squidfingers.com/patterns/">squidfingers</a>.</p>
<p><a href="http://dl.dropbox.com/u/21428091/FlightBox.fxp">Download the FXP</a></p>
]]></content:encoded>
			<wfw:commentRss>http://flashcats.net/2011/03/09/day-7-flightbox/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Day 6: Popup Component</title>
		<link>http://flashcats.net/2011/03/02/day-6-popup-component/</link>
		<comments>http://flashcats.net/2011/03/02/day-6-popup-component/#comments</comments>
		<pubDate>Thu, 03 Mar 2011 05:50:45 +0000</pubDate>
		<dc:creator>bear</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://flashcats.net/?p=503</guid>
		<description><![CDATA[Here is a skinnable popup component, a little button that displays some popup content. In this case, I've decided to play graphic designer. 
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_Main_623941320"
			class="flashmovie"
			width="100%"
			height="300">
	<param name="movie" value="/static/skinnable-popup-component/Main.swf" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="/static/skinnable-popup-component/Main.swf"
			name="fm_Main_623941320"
			width="100%"
			height="300">
	<!--<![endif]-->
		 
	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object> The popup is displayed on top of the rest of the application. Since it is modal, the rest of the application is grayed out [...]]]></description>
			<content:encoded><![CDATA[<p>Here is a skinnable popup component, a little button that displays some popup content. In this case, I've decided to play graphic designer.</p>

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_Main_446153096"
			class="flashmovie"
			width="100%"
			height="300">
	<param name="movie" value="/static/skinnable-popup-component/Main.swf" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="/static/skinnable-popup-component/Main.swf"
			name="fm_Main_446153096"
			width="100%"
			height="300">
	<!--<![endif]-->
		
<p><a href="http://adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>

	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object>
<p>The popup is displayed on top of the rest of the application. Since it is modal, the rest of the application is grayed out while the popup is open.</p>
<p>You can download the fxp <a href="http://dl.dropbox.com/u/21428091/PopupComponent.fxp">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://flashcats.net/2011/03/02/day-6-popup-component/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Day 5: Weather Component</title>
		<link>http://flashcats.net/2011/03/02/day-5-weather-component/</link>
		<comments>http://flashcats.net/2011/03/02/day-5-weather-component/#comments</comments>
		<pubDate>Thu, 03 Mar 2011 05:33:17 +0000</pubDate>
		<dc:creator>bear</dc:creator>
				<category><![CDATA[Custom Skinnable Components]]></category>
		<category><![CDATA[Moderate]]></category>

		<guid isPermaLink="false">http://flashcats.net/?p=497</guid>
		<description><![CDATA[Howdy doody, here's a weather component. It displays the forecast for up to the next 7 days. In this case, the skinnable component is using the zip code "94103" -- that's San Francisco, so there's a good chance for rain. Click the image to view the running example. The project is available here. There's an [...]]]></description>
			<content:encoded><![CDATA[<p>Howdy doody, here's a weather component. It displays the forecast for up to the next 7 days. In this case, the skinnable component is using the zip code "94103" -- that's San Francisco, so there's a good chance for rain.</p>
<p>Click the image to view the running example.</p>
<p><a href="/static/skinnable-weather-component/Main.swf"><img class="aligncenter size-full wp-image-554" title="WeatherProject" src="http://flashcats.net/wp-content/uploads/2011/03/WeatherProject.png" alt="" width="511" height="249" /></a></p>
<p>The project is available <a href="http://dl.dropbox.com/u/21428091/WeatherProject.fxp">here</a>. There's an overall weather component that takes a zip code, and provides information for up to seven single day forecast components. It is currently pulled from the <a href="http://weather.gov">NOAA</a> weather forecast service. Happy forecasting!</p>
<p>Details after the jump</p>
<p><span id="more-497"></span></p>
<p>This skinnable component requires Flash Catalyst Panini or higher.</p>
<p>The WeatherComponent has the following skin parts</p>
<ul>
<li>Zip: A RichText skin part taking a zip code for the forecast</li>
<li>Day[0-6], WeatherComponentSingleDays, each representing the forecast for a 24 hour period</li>
</ul>
<p>The WeatherComponentSingleDay component has the following skin parts. If they exist in a skin, they are dynamically populated at runtime.</p>
<ul>
<li>Forecast Period: The day of the week the forecast is for.</li>
<li>Forecast Conditions: A summary of the forecast (eg "Slight Chance Rain").</li>
<li>Temp High F/C: Forecast high temperature in Fahrenheit / Celsius.</li>
<li>Temp Low F/C: Forecast low temperature in Fahrenheit / Celsius.</li>
</ul>
<p>The WeatherComponentSingleDay has several states, each corresponding to a general weather condition. There are many different weather classifications; this component condenses them into a reasonable number of visual states.</p>
<p>Update: There is a bug for some NOAA forecasts, where the component doesn't update its text fields. I'll get a fix in when I can.</p>
]]></content:encoded>
			<wfw:commentRss>http://flashcats.net/2011/03/02/day-5-weather-component/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
