<?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>Jonathan Campos&#039; Blog &#187; Flash Cataylst</title>
	<atom:link href="http://www.unitedmindset.com/jonbcampos/category/development/flash-cataylst/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.unitedmindset.com/jonbcampos</link>
	<description>Blog on technology and software development typically around Adobe Flash, Flex, and AIR.</description>
	<lastBuildDate>Mon, 07 Nov 2011 22:32:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Flash Catalyst &#8211; The Missing Visual Editor</title>
		<link>http://www.unitedmindset.com/jonbcampos/2009/11/09/flash-catalyst-the-missing-visual-editor/</link>
		<comments>http://www.unitedmindset.com/jonbcampos/2009/11/09/flash-catalyst-the-missing-visual-editor/#comments</comments>
		<pubDate>Mon, 09 Nov 2009 14:45:27 +0000</pubDate>
		<dc:creator>jonbcampos</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Flash Cataylst]]></category>
		<category><![CDATA[flash catalyst]]></category>
		<category><![CDATA[Flex 4]]></category>

		<guid isPermaLink="false">http://unitedmindset.com/jonbcampos/?p=774</guid>
		<description><![CDATA[As a new era in RIAs is coming up, one of the largest questions for developers and designers is, &#8220;What role will Flash Catalyst play in RIA development?&#8221; My opinion is that Flash Catalyst will find its place into the hearts and minds of many designers that are wanting to layout new Flex applications before [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://unitedmindset.com/jonbcampos/wp-content/uploads/2009/10/Screen-shot-2009-11-08-at-2.13.46-PM.png" alt="Flash Catalyst Splash Image" title="Flash Catalyst Splash Image" width="507" height="245" class="alignnone size-full wp-image-926" /></p>
<p>As a new era in RIAs is coming up, one of the largest questions for developers and designers is, &#8220;What role will Flash Catalyst play in RIA development?&#8221;<br />
My opinion is that Flash Catalyst will find its place into the hearts and minds of many designers that are wanting to layout new Flex applications before they go to full development, but as a developer I see it as the missing visual editor for Flash Builder.</p>
<p>If you have spent any time laying out spark skins I am sure that you would have found spark skinning to be a fun process, but very labor-some. As we were developing the BugQuash app I spent the time initially to make each and every skin 100% &#8220;by hand&#8221;, and after a while I gave up and tried to find an easier process to making the many skins provided by <a href="http://unitedmindset.com/dimi-arhontidis" class="broken_link">Dimi</a>.</p>
<p><strong>The Missing Visual Editor</strong><br />
If you have used Flash Builder and worked with the design view you would have noticed you can edit some of the properties of a spark skin, but you would have found it quite impossible to create or really change the skin. So now this is where Flash Catalyst works into my current workflow, I can truly edit and create skins within Flash Catalyst and get the code to copy off into my Flash Projects.<br />
<span id="more-774"></span><br />
<strong>Making A New Custom Button</strong><br />
Starting from scratch is just as easy as creating a new Flash Catalyst Project. We aren&#8217;t going to making anything crazy, just start with a button.<br />
<div id="attachment_933" class="wp-caption alignnone" style="width: 822px"><a href="http://unitedmindset.com/jonbcampos/wp-content/uploads/2009/10/Screen-shot-2009-11-08-at-2.55.47-PM.png"><img src="http://unitedmindset.com/jonbcampos/wp-content/uploads/2009/10/Screen-shot-2009-11-08-at-2.55.47-PM.png" alt="Fresh Flash Catalyst Project" title="Fresh Flash Catalyst Project" width="496" height="532" class="size-full wp-image-933" /></a><p class="wp-caption-text">Fresh Flash Catalyst Project</p></div></p>
<p><strong>Drag and Drop a Button onto the stage.</strong><br />
<div id="attachment_938" class="wp-caption alignnone" style="width: 823px"><a href="http://unitedmindset.com/jonbcampos/wp-content/uploads/2009/10/Screen-shot-2009-11-08-at-3.00.55-PM.png"><img src="http://unitedmindset.com/jonbcampos/wp-content/uploads/2009/10/Screen-shot-2009-11-08-at-3.00.55-PM.png" alt="Flash Catalyst Stage with Button" title="Flash Catalyst Stage with Button" width="496" height="532" class="size-full wp-image-938" /></a><p class="wp-caption-text">Flash Catalyst Stage with Button</p></div></p>
<p><strong>And select the state that you want to edit, and the artwork element&#8230;</strong><br />
<div id="attachment_939" class="wp-caption alignnone" style="width: 821px"><a href="http://unitedmindset.com/jonbcampos/wp-content/uploads/2009/10/Screen-shot-2009-11-08-at-3.01.48-PM.png"><img src="http://unitedmindset.com/jonbcampos/wp-content/uploads/2009/10/Screen-shot-2009-11-08-at-3.01.48-PM.png" alt="Flash Catalyst with a selected piece of artwork" title="Flash Catalyst with a selected piece of artwork" width="496" height="532" class="size-full wp-image-939" /></a><p class="wp-caption-text">Flash Catalyst with a selected piece of artwork</p></div></p>
<p>You will notice lots of options for drawing and editing the components you are trying to design.<br />
<div id="attachment_942" class="wp-caption alignnone" style="width: 294px"><img src="http://unitedmindset.com/jonbcampos/wp-content/uploads/2009/10/Screen-shot-2009-11-08-at-3.11.23-PM.png" alt="Flash Catalyst Toolbar" title="Flash Catalyst Toolbar" width="284" height="34" class="size-full wp-image-942" /><p class="wp-caption-text">Flash Catalyst Toolbar</p></div><br />
<div id="attachment_943" class="wp-caption alignnone" style="width: 293px"><img src="http://unitedmindset.com/jonbcampos/wp-content/uploads/2009/10/Screen-shot-2009-11-08-at-3.12.00-PM.png" alt="Flash Catalyst Properties Panel" title="Flash Catalyst Properties Panel" width="283" height="564" class="size-full wp-image-943" /><p class="wp-caption-text">Flash Catalyst Properties Panel</p></div></p>
<p>As I make adjustments to the button I can start wherever, but I am going to start with the base shape. In this example I will play with the triangle and go through the  different states of the button and make changes to the shape on all states.</p>
<blockquote><p>
Don&#8217;t forget that by right-clicking on specific elements/groups you can select to share across states so that you don&#8217;t have to do lots of coping/pasting.
</p></blockquote>
<div id="attachment_946" class="wp-caption alignnone" style="width: 834px"><img src="http://unitedmindset.com/jonbcampos/wp-content/uploads/2009/10/Screen-shot-2009-11-08-at-3.33.35-PM.png" alt="With the Triangle Base Shape" title="With the Triangle Base Shape" width="496" height="532" class="size-full wp-image-946" /><p class="wp-caption-text">With the Triangle Base Shape</p></div>
<p>In Flash Catalyst you can select shapes and different objects and adjust the alignment, arrangement, share elements across states, and play with the grouping of the objects. Very helpful for making complex objects.</p>
<blockquote><p>
Expert Note: As a Flex Developer you should be really worried about the number children objects have because that effects the performance of your application. On top of that, if you have many containers this hurts performance because each time the component needs a redraw all the children have to be remeausured and relayed out. But with Flex 4, all these children elements that you add to groups are actually all flattened together into one display object, highly improving the layout and drawing process &#8211; unless you add a rotation to the specific element which designates it to its own display object.
</p></blockquote>
<div id="attachment_949" class="wp-caption alignnone" style="width: 833px"><img src="http://unitedmindset.com/jonbcampos/wp-content/uploads/2009/10/Screen-shot-2009-11-08-at-3.36.27-PM.png" alt="Display Object Right-Click Menu" title="Display Object Right-Click Menu" width="496" height="532" class="size-full wp-image-949" /><p class="wp-caption-text">Display Object Right-Click Menu</p></div>
<p>So far you may have thought that the changes we&#8217;ve made have been minor, compared to an entire application they are, but these few changes have actually made a lot of code and different calculations that we haven&#8217;t had to &#8211; which is GREAT!. To switch and see the generated code we just go up to the design/code view dropdown (shown below) and change to the code view.<br />
<div id="attachment_953" class="wp-caption alignnone" style="width: 346px"><img src="http://unitedmindset.com/jonbcampos/wp-content/uploads/2009/10/Screen-shot-2009-11-08-at-3.48.40-PM.png" alt="Design/Code Dropdown" title="Design/Code Dropdown" width="336" height="174" class="size-full wp-image-953" /><p class="wp-caption-text">Design/Code Dropdown</p></div></p>
<p>We can now see the generated code and even the currently selected element&#8217;s code being selected in code view.<br />
<div id="attachment_954" class="wp-caption alignnone" style="width: 834px"><a href="http://unitedmindset.com/jonbcampos/wp-content/uploads/2009/10/Screen-shot-2009-11-08-at-3.53.06-PM.png"><img src="http://unitedmindset.com/jonbcampos/wp-content/uploads/2009/10/Screen-shot-2009-11-08-at-3.53.06-PM.png" alt="Code View" title="Code View" width="496" height="532" class="size-full wp-image-954" /></a><p class="wp-caption-text">Code View</p></div></p>
<p><strong>And the code&#8230;</strong></p>
<div class="codecolorer-container actionscript default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:300px;"><div class="actionscript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #66cc66;">&lt;</span>?<span style="color: #0066CC;">xml</span> <span style="color: #0066CC;">version</span>=<span style="color: #ff0000;">&quot;1.0&quot;</span> encoding=<span style="color: #ff0000;">&quot;utf-8&quot;</span>?<span style="color: #66cc66;">&gt;</span><br />
<span style="color: #66cc66;">&lt;</span>s:Skin xmlns:fx=<span style="color: #ff0000;">&quot;http://ns.adobe.com/mxml/2009&quot;</span> xmlns:s=<span style="color: #ff0000;">&quot;library://ns.adobe.com/flex/spark&quot;</span> alpha.<span style="color: #006600;">disabled</span>=<span style="color: #ff0000;">&quot;0.5&quot;</span><span style="color: #66cc66;">&gt;</span><br />
&nbsp; &nbsp; <span style="color: #66cc66;">&lt;</span>fx:Metadata<span style="color: #66cc66;">&gt;&lt;!</span><span style="color: #66cc66;">&#91;</span>CDATA<span style="color: #66cc66;">&#91;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#91;</span>HostComponent<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;spark.components.Button&quot;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#93;</span><br />
&nbsp; &nbsp; <span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&gt;&lt;/</span>fx:Metadata<span style="color: #66cc66;">&gt;</span><br />
&nbsp; &nbsp; <span style="color: #66cc66;">&lt;</span>s:states<span style="color: #66cc66;">&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&lt;</span>s:State <span style="color: #0066CC;">name</span>=<span style="color: #ff0000;">&quot;up&quot;</span><span style="color: #66cc66;">/&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&lt;</span>s:State <span style="color: #0066CC;">name</span>=<span style="color: #ff0000;">&quot;over&quot;</span><span style="color: #66cc66;">/&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&lt;</span>s:State <span style="color: #0066CC;">name</span>=<span style="color: #ff0000;">&quot;down&quot;</span><span style="color: #66cc66;">/&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&lt;</span>s:State <span style="color: #0066CC;">name</span>=<span style="color: #ff0000;">&quot;disabled&quot;</span><span style="color: #66cc66;">/&gt;</span><br />
&nbsp; &nbsp; <span style="color: #66cc66;">&lt;/</span>s:states<span style="color: #66cc66;">&gt;</span><br />
&nbsp; &nbsp; <span style="color: #66cc66;">&lt;</span>s:Path <span style="color: #0066CC;">data</span>=<span style="color: #ff0000;">&quot;M 77.95 135.00 L 0.01 0.00 155.89 -0.01 Z &quot;</span> <span style="color: #0066CC;">height</span>=<span style="color: #ff0000;">&quot;135&quot;</span> id=<span style="color: #ff0000;">&quot;path3&quot;</span> includeIn=<span style="color: #ff0000;">&quot;disabled&quot;</span> <span style="color: #0066CC;">width</span>=<span style="color: #ff0000;">&quot;155.85&quot;</span> x=<span style="color: #ff0000;">&quot;0.49&quot;</span> y=<span style="color: #ff0000;">&quot;0.51&quot;</span><span style="color: #66cc66;">&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&lt;</span>s:stroke<span style="color: #66cc66;">&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&lt;</span>s:SolidColorStroke caps=<span style="color: #ff0000;">&quot;none&quot;</span> <span style="color: #0066CC;">color</span>=<span style="color: #ff0000;">&quot;0x5380D0&quot;</span> joints=<span style="color: #ff0000;">&quot;miter&quot;</span> miterLimit=<span style="color: #ff0000;">&quot;4&quot;</span> weight=<span style="color: #ff0000;">&quot;1&quot;</span><span style="color: #66cc66;">/&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&lt;/</span>s:stroke<span style="color: #66cc66;">&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&lt;</span>s:fill<span style="color: #66cc66;">&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&lt;</span>s:SolidColor <span style="color: #0066CC;">color</span>=<span style="color: #ff0000;">&quot;0xFFFFFF&quot;</span><span style="color: #66cc66;">/&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&lt;/</span>s:fill<span style="color: #66cc66;">&gt;</span><br />
&nbsp; &nbsp; <span style="color: #66cc66;">&lt;/</span>s:Path<span style="color: #66cc66;">&gt;</span><br />
&nbsp; &nbsp; <span style="color: #66cc66;">&lt;</span>s:Path <span style="color: #0066CC;">data</span>=<span style="color: #ff0000;">&quot;M 77.95 135.00 L 0.01 0.00 155.89 -0.01 Z &quot;</span> <span style="color: #0066CC;">height</span>=<span style="color: #ff0000;">&quot;135&quot;</span> id=<span style="color: #ff0000;">&quot;path2&quot;</span> includeIn=<span style="color: #ff0000;">&quot;down&quot;</span> <span style="color: #0066CC;">width</span>=<span style="color: #ff0000;">&quot;155.85&quot;</span> x=<span style="color: #ff0000;">&quot;0.49&quot;</span> y=<span style="color: #ff0000;">&quot;0.51&quot;</span><span style="color: #66cc66;">&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&lt;</span>s:stroke<span style="color: #66cc66;">&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&lt;</span>s:SolidColorStroke caps=<span style="color: #ff0000;">&quot;none&quot;</span> <span style="color: #0066CC;">color</span>=<span style="color: #ff0000;">&quot;0x5380D0&quot;</span> joints=<span style="color: #ff0000;">&quot;miter&quot;</span> miterLimit=<span style="color: #ff0000;">&quot;4&quot;</span> weight=<span style="color: #ff0000;">&quot;1&quot;</span><span style="color: #66cc66;">/&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&lt;/</span>s:stroke<span style="color: #66cc66;">&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&lt;</span>s:fill<span style="color: #66cc66;">&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&lt;</span>s:SolidColor <span style="color: #0066CC;">color</span>=<span style="color: #ff0000;">&quot;0xFFFFFF&quot;</span><span style="color: #66cc66;">/&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&lt;/</span>s:fill<span style="color: #66cc66;">&gt;</span><br />
&nbsp; &nbsp; <span style="color: #66cc66;">&lt;/</span>s:Path<span style="color: #66cc66;">&gt;</span><br />
&nbsp; &nbsp; <span style="color: #66cc66;">&lt;</span>s:Path <span style="color: #0066CC;">data</span>=<span style="color: #ff0000;">&quot;M 77.95 135.00 L 0.01 0.00 155.89 -0.01 Z &quot;</span> <span style="color: #0066CC;">height</span>=<span style="color: #ff0000;">&quot;135&quot;</span> id=<span style="color: #ff0000;">&quot;path0&quot;</span> includeIn=<span style="color: #ff0000;">&quot;over&quot;</span> <span style="color: #0066CC;">width</span>=<span style="color: #ff0000;">&quot;155.85&quot;</span> x=<span style="color: #ff0000;">&quot;0.49&quot;</span> y=<span style="color: #ff0000;">&quot;0.51&quot;</span><span style="color: #66cc66;">&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&lt;</span>s:stroke<span style="color: #66cc66;">&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&lt;</span>s:SolidColorStroke caps=<span style="color: #ff0000;">&quot;none&quot;</span> <span style="color: #0066CC;">color</span>=<span style="color: #ff0000;">&quot;0x5380D0&quot;</span> joints=<span style="color: #ff0000;">&quot;miter&quot;</span> miterLimit=<span style="color: #ff0000;">&quot;4&quot;</span> weight=<span style="color: #ff0000;">&quot;1&quot;</span><span style="color: #66cc66;">/&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&lt;/</span>s:stroke<span style="color: #66cc66;">&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&lt;</span>s:fill<span style="color: #66cc66;">&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&lt;</span>s:SolidColor <span style="color: #0066CC;">color</span>=<span style="color: #ff0000;">&quot;0xFFFFFF&quot;</span><span style="color: #66cc66;">/&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&lt;/</span>s:fill<span style="color: #66cc66;">&gt;</span><br />
&nbsp; &nbsp; <span style="color: #66cc66;">&lt;/</span>s:Path<span style="color: #66cc66;">&gt;</span><br />
&nbsp; &nbsp; <span style="color: #66cc66;">&lt;</span>s:Rect <span style="color: #0066CC;">height</span>=<span style="color: #ff0000;">&quot;1&quot;</span> id=<span style="color: #ff0000;">&quot;rect2&quot;</span> includeIn=<span style="color: #ff0000;">&quot;down&quot;</span> <span style="color: #0066CC;">width</span>=<span style="color: #ff0000;">&quot;66&quot;</span> x=<span style="color: #ff0000;">&quot;45&quot;</span> y=<span style="color: #ff0000;">&quot;43&quot;</span><span style="color: #66cc66;">&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&lt;</span>s:fill<span style="color: #66cc66;">&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&lt;</span>s:SolidColor alpha=<span style="color: #ff0000;">&quot;0.25&quot;</span> <span style="color: #0066CC;">color</span>=<span style="color: #ff0000;">&quot;0x5380D0&quot;</span><span style="color: #66cc66;">/&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&lt;/</span>s:fill<span style="color: #66cc66;">&gt;</span><br />
&nbsp; &nbsp; <span style="color: #66cc66;">&lt;/</span>s:Rect<span style="color: #66cc66;">&gt;</span><br />
&nbsp; &nbsp; <span style="color: #66cc66;">&lt;</span>s:Rect <span style="color: #0066CC;">height</span>=<span style="color: #ff0000;">&quot;1&quot;</span> id=<span style="color: #ff0000;">&quot;rect3&quot;</span> includeIn=<span style="color: #ff0000;">&quot;down&quot;</span> <span style="color: #0066CC;">width</span>=<span style="color: #ff0000;">&quot;68&quot;</span> x=<span style="color: #ff0000;">&quot;44&quot;</span> y=<span style="color: #ff0000;">&quot;44&quot;</span><span style="color: #66cc66;">&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&lt;</span>s:fill<span style="color: #66cc66;">&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&lt;</span>s:SolidColor alpha=<span style="color: #ff0000;">&quot;0.07&quot;</span> <span style="color: #0066CC;">color</span>=<span style="color: #ff0000;">&quot;0x5380D0&quot;</span><span style="color: #66cc66;">/&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&lt;/</span>s:fill<span style="color: #66cc66;">&gt;</span><br />
&nbsp; &nbsp; <span style="color: #66cc66;">&lt;/</span>s:Rect<span style="color: #66cc66;">&gt;</span><br />
&nbsp; &nbsp; <span style="color: #66cc66;">&lt;</span>s:Rect <span style="color: #0066CC;">height</span>=<span style="color: #ff0000;">&quot;20&quot;</span> id=<span style="color: #ff0000;">&quot;rect4&quot;</span> includeIn=<span style="color: #ff0000;">&quot;down&quot;</span> <span style="color: #0066CC;">width</span>=<span style="color: #ff0000;">&quot;1&quot;</span> x=<span style="color: #ff0000;">&quot;44&quot;</span> y=<span style="color: #ff0000;">&quot;44&quot;</span><span style="color: #66cc66;">&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&lt;</span>s:fill<span style="color: #66cc66;">&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&lt;</span>s:SolidColor alpha=<span style="color: #ff0000;">&quot;0.07&quot;</span> <span style="color: #0066CC;">color</span>=<span style="color: #ff0000;">&quot;0x5380D0&quot;</span><span style="color: #66cc66;">/&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&lt;/</span>s:fill<span style="color: #66cc66;">&gt;</span><br />
&nbsp; &nbsp; <span style="color: #66cc66;">&lt;/</span>s:Rect<span style="color: #66cc66;">&gt;</span><br />
&nbsp; &nbsp; <span style="color: #66cc66;">&lt;</span>s:Rect <span style="color: #0066CC;">height</span>=<span style="color: #ff0000;">&quot;20&quot;</span> id=<span style="color: #ff0000;">&quot;rect5&quot;</span> includeIn=<span style="color: #ff0000;">&quot;down&quot;</span> <span style="color: #0066CC;">width</span>=<span style="color: #ff0000;">&quot;1&quot;</span> x=<span style="color: #ff0000;">&quot;111&quot;</span> y=<span style="color: #ff0000;">&quot;44&quot;</span><span style="color: #66cc66;">&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&lt;</span>s:fill<span style="color: #66cc66;">&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&lt;</span>s:SolidColor alpha=<span style="color: #ff0000;">&quot;0.07&quot;</span> <span style="color: #0066CC;">color</span>=<span style="color: #ff0000;">&quot;0x5380D0&quot;</span><span style="color: #66cc66;">/&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&lt;/</span>s:fill<span style="color: #66cc66;">&gt;</span><br />
&nbsp; &nbsp; <span style="color: #66cc66;">&lt;/</span>s:Rect<span style="color: #66cc66;">&gt;</span><br />
&nbsp; &nbsp; <span style="color: #66cc66;">&lt;</span>s:Path <span style="color: #0066CC;">data</span>=<span style="color: #ff0000;">&quot;M 77.95 135.00 L 0.01 0.00 155.89 -0.01 Z &quot;</span> <span style="color: #0066CC;">height</span>=<span style="color: #ff0000;">&quot;135&quot;</span> id=<span style="color: #ff0000;">&quot;path1&quot;</span> includeIn=<span style="color: #ff0000;">&quot;up&quot;</span> <span style="color: #0066CC;">width</span>=<span style="color: #ff0000;">&quot;155.85&quot;</span> x=<span style="color: #ff0000;">&quot;0.5&quot;</span> y=<span style="color: #ff0000;">&quot;0.5&quot;</span><span style="color: #66cc66;">&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&lt;</span>s:stroke<span style="color: #66cc66;">&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&lt;</span>s:SolidColorStroke caps=<span style="color: #ff0000;">&quot;none&quot;</span> <span style="color: #0066CC;">color</span>=<span style="color: #ff0000;">&quot;0x5380D0&quot;</span> joints=<span style="color: #ff0000;">&quot;miter&quot;</span> miterLimit=<span style="color: #ff0000;">&quot;4&quot;</span> weight=<span style="color: #ff0000;">&quot;1&quot;</span><span style="color: #66cc66;">/&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&lt;/</span>s:stroke<span style="color: #66cc66;">&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&lt;</span>s:fill<span style="color: #66cc66;">&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&lt;</span>s:SolidColor <span style="color: #0066CC;">color</span>=<span style="color: #ff0000;">&quot;0xFFFFFF&quot;</span><span style="color: #66cc66;">/&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&lt;/</span>s:fill<span style="color: #66cc66;">&gt;</span><br />
&nbsp; &nbsp; <span style="color: #66cc66;">&lt;/</span>s:Path<span style="color: #66cc66;">&gt;</span><br />
&nbsp; &nbsp; <span style="color: #66cc66;">&lt;</span>s:RichText <span style="color: #0066CC;">color</span>=<span style="color: #ff0000;">&quot;0x2b4381&quot;</span> id=<span style="color: #ff0000;">&quot;labelDisplay&quot;</span> minWidth=<span style="color: #ff0000;">&quot;69&quot;</span> <span style="color: #0066CC;">text</span>=<span style="color: #ff0000;">&quot;(Label)&quot;</span> textAlign=<span style="color: #ff0000;">&quot;center&quot;</span> x=<span style="color: #ff0000;">&quot;44&quot;</span> y=<span style="color: #ff0000;">&quot;48&quot;</span><span style="color: #66cc66;">&gt;&lt;/</span>s:RichText<span style="color: #66cc66;">&gt;</span><br />
&nbsp; &nbsp; <span style="color: #66cc66;">&lt;</span>s:transitions<span style="color: #66cc66;">&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&lt;</span>s:Transition fromState=<span style="color: #ff0000;">&quot;over&quot;</span> toState=<span style="color: #ff0000;">&quot;up&quot;</span> autoReverse=<span style="color: #ff0000;">&quot;true&quot;</span><span style="color: #66cc66;">&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&lt;</span>s:Parallel<span style="color: #66cc66;">&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&lt;</span>s:Parallel <span style="color: #0066CC;">target</span>=<span style="color: #ff0000;">&quot;{path0}&quot;</span><span style="color: #66cc66;">&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&lt;</span>s:Fade <span style="color: #0066CC;">duration</span>=<span style="color: #ff0000;">&quot;0&quot;</span><span style="color: #66cc66;">/&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&lt;/</span>s:Parallel<span style="color: #66cc66;">&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&lt;</span>s:Parallel <span style="color: #0066CC;">target</span>=<span style="color: #ff0000;">&quot;{path1}&quot;</span><span style="color: #66cc66;">&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&lt;</span>s:Fade <span style="color: #0066CC;">duration</span>=<span style="color: #ff0000;">&quot;0&quot;</span><span style="color: #66cc66;">/&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&lt;/</span>s:Parallel<span style="color: #66cc66;">&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&lt;/</span>s:Parallel<span style="color: #66cc66;">&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&lt;/</span>s:Transition<span style="color: #66cc66;">&gt;</span><br />
&nbsp; &nbsp; <span style="color: #66cc66;">&lt;/</span>s:transitions<span style="color: #66cc66;">&gt;</span><br />
<span style="color: #66cc66;">&lt;/</span>s:Skin<span style="color: #66cc66;">&gt;</span></div></div>
<p>Lots of code that you would have written anyways, taken care of for you by Flash Catalyst. I know that many developers like to put down generated code and defend their job security by saying that all other code stinks, but if you have written a skin file the file you would probably agree that most skin files closely resemble the generated code. Once you start adding groups and other design parts your hand written skin will be almost exactly the same as the generated code &#8211; so make your life easy and use Flash Catalyst.</p>
<p>My favorite thing is the generated Path code. You&#8217;ll notice I didn&#8217;t spend a second calculating all the different X and Y coordinates for the triangle paths to make it look as desired. A big time saver.</p>
<p><strong>Using the Properties Panel </strong><br />
Now with our very boring and simple triangle we can go to the properties panel and just do some point and click changes to our different states. Again, more code generating options that would have resulted in lots of redundant typing that is simplified by Flash Catalyst.</p>
<p>By just making some simple changes to the shape (the fill and stroke) colors, we get a much better button to work with. I&#8217;ve also grouped my label and path (the triangle) to make the shape simpler. If I want to select a specific element in the group I can use the layers panel.<br />
<div id="attachment_964" class="wp-caption alignnone" style="width: 830px"><a href="http://unitedmindset.com/jonbcampos/wp-content/uploads/2009/10/Screen-shot-2009-11-08-at-6.14.26-PM.png"><img src="http://unitedmindset.com/jonbcampos/wp-content/uploads/2009/10/Screen-shot-2009-11-08-at-6.14.26-PM.png" alt="Post Propertied Button" title="Post Propertied Button" width="496" height="532" class="size-full wp-image-964" /></a><p class="wp-caption-text">Post Propertied Button</p></div></p>
<p><strong>Continuing ToPretty Things Up</strong><br />
This next step is again not very impressive or difficult with Flash Catalyst, but I am going to spend a second to add additional filters to the button before adding any transitions.<br />
<div id="attachment_967" class="wp-caption alignnone" style="width: 834px"><a href="http://unitedmindset.com/jonbcampos/wp-content/uploads/2009/10/Screen-shot-2009-11-08-at-6.26.37-PM.png"><img src="http://unitedmindset.com/jonbcampos/wp-content/uploads/2009/10/Screen-shot-2009-11-08-at-6.26.37-PM.png" alt="Button with Filters" title="Button with Filters" width="496" height="532" class="size-full wp-image-967" /></a><p class="wp-caption-text">Button with Filters</p></div></p>
<p>And the nice clean generated code&#8230;</p>
<div class="codecolorer-container actionscript default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:300px;"><div class="actionscript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #66cc66;">&lt;</span>?<span style="color: #0066CC;">xml</span> <span style="color: #0066CC;">version</span>=<span style="color: #ff0000;">&quot;1.0&quot;</span> encoding=<span style="color: #ff0000;">&quot;utf-8&quot;</span>?<span style="color: #66cc66;">&gt;</span><br />
<span style="color: #66cc66;">&lt;</span>s:Skin xmlns:fx=<span style="color: #ff0000;">&quot;http://ns.adobe.com/mxml/2009&quot;</span> xmlns:s=<span style="color: #ff0000;">&quot;library://ns.adobe.com/flex/spark&quot;</span> alpha.<span style="color: #006600;">disabled</span>=<span style="color: #ff0000;">&quot;0.5&quot;</span> xmlns:d=<span style="color: #ff0000;">&quot;http://ns.adobe.com/fxg/2008/dt&quot;</span><span style="color: #66cc66;">&gt;</span><br />
&nbsp; &nbsp; <span style="color: #66cc66;">&lt;</span>fx:Metadata<span style="color: #66cc66;">&gt;&lt;!</span><span style="color: #66cc66;">&#91;</span>CDATA<span style="color: #66cc66;">&#91;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#91;</span>HostComponent<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;spark.components.Button&quot;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#93;</span><br />
&nbsp; &nbsp; <span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&gt;&lt;/</span>fx:Metadata<span style="color: #66cc66;">&gt;</span><br />
&nbsp; &nbsp; <span style="color: #66cc66;">&lt;</span>s:states<span style="color: #66cc66;">&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&lt;</span>s:State <span style="color: #0066CC;">name</span>=<span style="color: #ff0000;">&quot;up&quot;</span><span style="color: #66cc66;">/&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&lt;</span>s:State <span style="color: #0066CC;">name</span>=<span style="color: #ff0000;">&quot;over&quot;</span><span style="color: #66cc66;">/&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&lt;</span>s:State <span style="color: #0066CC;">name</span>=<span style="color: #ff0000;">&quot;down&quot;</span><span style="color: #66cc66;">/&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&lt;</span>s:State <span style="color: #0066CC;">name</span>=<span style="color: #ff0000;">&quot;disabled&quot;</span><span style="color: #66cc66;">/&gt;</span><br />
&nbsp; &nbsp; <span style="color: #66cc66;">&lt;/</span>s:states<span style="color: #66cc66;">&gt;</span><br />
&nbsp; &nbsp; <span style="color: #66cc66;">&lt;</span>s:Group x=<span style="color: #ff0000;">&quot;0&quot;</span> y=<span style="color: #ff0000;">&quot;0&quot;</span> id=<span style="color: #ff0000;">&quot;group1&quot;</span><span style="color: #66cc66;">&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&lt;</span>s:filters<span style="color: #66cc66;">&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&lt;</span>s:DropShadowFilter includeIn=<span style="color: #ff0000;">&quot;up&quot;</span> blurX=<span style="color: #ff0000;">&quot;4.0&quot;</span> hideObject=<span style="color: #ff0000;">&quot;false&quot;</span> distance=<span style="color: #ff0000;">&quot;4.0&quot;</span> blurY=<span style="color: #ff0000;">&quot;4.0&quot;</span> inner=<span style="color: #ff0000;">&quot;false&quot;</span> <span style="color: #0066CC;">color</span>=<span style="color: #ff0000;">&quot;0x000000&quot;</span> strength=<span style="color: #ff0000;">&quot;1&quot;</span> alpha=<span style="color: #ff0000;">&quot;1.0&quot;</span> <span style="color: #0066CC;">quality</span>=<span style="color: #ff0000;">&quot;2&quot;</span> knockout=<span style="color: #ff0000;">&quot;false&quot;</span> angle=<span style="color: #ff0000;">&quot;45.0&quot;</span><span style="color: #66cc66;">/&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&lt;</span>s:DropShadowFilter includeIn=<span style="color: #ff0000;">&quot;over&quot;</span> blurX=<span style="color: #ff0000;">&quot;4.0&quot;</span> hideObject=<span style="color: #ff0000;">&quot;false&quot;</span> distance=<span style="color: #ff0000;">&quot;4.0&quot;</span> blurY=<span style="color: #ff0000;">&quot;4.0&quot;</span> inner=<span style="color: #ff0000;">&quot;false&quot;</span> <span style="color: #0066CC;">color</span>=<span style="color: #ff0000;">&quot;0x000000&quot;</span> strength=<span style="color: #ff0000;">&quot;1&quot;</span> alpha=<span style="color: #ff0000;">&quot;1.0&quot;</span> <span style="color: #0066CC;">quality</span>=<span style="color: #ff0000;">&quot;2&quot;</span> knockout=<span style="color: #ff0000;">&quot;false&quot;</span> angle=<span style="color: #ff0000;">&quot;45.0&quot;</span><span style="color: #66cc66;">/&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&lt;</span>s:DropShadowFilter includeIn=<span style="color: #ff0000;">&quot;down&quot;</span> blurX=<span style="color: #ff0000;">&quot;4.0&quot;</span> hideObject=<span style="color: #ff0000;">&quot;false&quot;</span> distance=<span style="color: #ff0000;">&quot;4.0&quot;</span> blurY=<span style="color: #ff0000;">&quot;4.0&quot;</span> inner=<span style="color: #ff0000;">&quot;false&quot;</span> <span style="color: #0066CC;">color</span>=<span style="color: #ff0000;">&quot;0x000000&quot;</span> strength=<span style="color: #ff0000;">&quot;1&quot;</span> alpha=<span style="color: #ff0000;">&quot;1.0&quot;</span> <span style="color: #0066CC;">quality</span>=<span style="color: #ff0000;">&quot;2&quot;</span> knockout=<span style="color: #ff0000;">&quot;false&quot;</span> angle=<span style="color: #ff0000;">&quot;45.0&quot;</span><span style="color: #66cc66;">/&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&lt;</span>s:DropShadowFilter includeIn=<span style="color: #ff0000;">&quot;disabled&quot;</span> blurX=<span style="color: #ff0000;">&quot;4.0&quot;</span> hideObject=<span style="color: #ff0000;">&quot;false&quot;</span> distance=<span style="color: #ff0000;">&quot;4.0&quot;</span> blurY=<span style="color: #ff0000;">&quot;4.0&quot;</span> inner=<span style="color: #ff0000;">&quot;false&quot;</span> <span style="color: #0066CC;">color</span>=<span style="color: #ff0000;">&quot;0x000000&quot;</span> strength=<span style="color: #ff0000;">&quot;1&quot;</span> alpha=<span style="color: #ff0000;">&quot;1.0&quot;</span> <span style="color: #0066CC;">quality</span>=<span style="color: #ff0000;">&quot;2&quot;</span> knockout=<span style="color: #ff0000;">&quot;false&quot;</span> angle=<span style="color: #ff0000;">&quot;45.0&quot;</span><span style="color: #66cc66;">/&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&lt;/</span>s:filters<span style="color: #66cc66;">&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&lt;</span>s:Path <span style="color: #0066CC;">data</span>=<span style="color: #ff0000;">&quot;M 77.95 135.00 L 0.01 0.00 155.89 -0.01 Z &quot;</span> <span style="color: #0066CC;">height</span>=<span style="color: #ff0000;">&quot;135&quot;</span> id=<span style="color: #ff0000;">&quot;path1&quot;</span> <span style="color: #0066CC;">width</span>=<span style="color: #ff0000;">&quot;155.85&quot;</span> x=<span style="color: #ff0000;">&quot;0.5&quot;</span> y=<span style="color: #ff0000;">&quot;0.5&quot;</span> y.<span style="color: #0066CC;">down</span>=<span style="color: #ff0000;">&quot;0.51&quot;</span> x.<span style="color: #0066CC;">down</span>=<span style="color: #ff0000;">&quot;0.49&quot;</span><span style="color: #66cc66;">&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&lt;</span>s:stroke<span style="color: #66cc66;">&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&lt;</span>s:LinearGradientStroke caps=<span style="color: #ff0000;">&quot;none&quot;</span> joints=<span style="color: #ff0000;">&quot;miter&quot;</span> miterLimit=<span style="color: #ff0000;">&quot;4&quot;</span> rotation=<span style="color: #ff0000;">&quot;90&quot;</span> weight=<span style="color: #ff0000;">&quot;1&quot;</span><span style="color: #66cc66;">&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&lt;</span>s:GradientEntry alpha=<span style="color: #ff0000;">&quot;1.0&quot;</span> <span style="color: #0066CC;">color</span>=<span style="color: #ff0000;">&quot;#2b4381&quot;</span> ratio=<span style="color: #ff0000;">&quot;0&quot;</span> <span style="color: #0066CC;">color</span>.<span style="color: #006600;">over</span>=<span style="color: #ff0000;">&quot;#ffffff&quot;</span> alpha.<span style="color: #006600;">over</span>=<span style="color: #ff0000;">&quot;1.0&quot;</span><span style="color: #66cc66;">/&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&lt;</span>s:GradientEntry alpha=<span style="color: #ff0000;">&quot;1.0&quot;</span> <span style="color: #0066CC;">color</span>=<span style="color: #ff0000;">&quot;#009cff&quot;</span> ratio=<span style="color: #ff0000;">&quot;1&quot;</span><span style="color: #66cc66;">/&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&lt;/</span>s:LinearGradientStroke<span style="color: #66cc66;">&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&lt;/</span>s:stroke<span style="color: #66cc66;">&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&lt;</span>s:fill<span style="color: #66cc66;">&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&lt;</span>s:LinearGradient rotation=<span style="color: #ff0000;">&quot;51.34&quot;</span><span style="color: #66cc66;">&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&lt;</span>s:GradientEntry alpha=<span style="color: #ff0000;">&quot;1.0&quot;</span> <span style="color: #0066CC;">color</span>=<span style="color: #ff0000;">&quot;#002fd1&quot;</span> ratio=<span style="color: #ff0000;">&quot;0&quot;</span> <span style="color: #0066CC;">color</span>.<span style="color: #006600;">over</span>=<span style="color: #ff0000;">&quot;#cdcbff&quot;</span> alpha.<span style="color: #006600;">over</span>=<span style="color: #ff0000;">&quot;1.0&quot;</span><span style="color: #66cc66;">/&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&lt;</span>s:GradientEntry alpha=<span style="color: #ff0000;">&quot;1.0&quot;</span> <span style="color: #0066CC;">color</span>=<span style="color: #ff0000;">&quot;#cdcbff&quot;</span> ratio=<span style="color: #ff0000;">&quot;1&quot;</span> <span style="color: #0066CC;">color</span>.<span style="color: #006600;">over</span>=<span style="color: #ff0000;">&quot;#002fd1&quot;</span> alpha.<span style="color: #006600;">over</span>=<span style="color: #ff0000;">&quot;1.0&quot;</span> ratio.<span style="color: #006600;">over</span>=<span style="color: #ff0000;">&quot;0.7019607843137254&quot;</span><span style="color: #66cc66;">/&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&lt;/</span>s:LinearGradient<span style="color: #66cc66;">&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&lt;/</span>s:fill<span style="color: #66cc66;">&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&lt;</span>s:stroke.<span style="color: #006600;">down</span><span style="color: #66cc66;">&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&lt;</span>s:SolidColorStroke weight=<span style="color: #ff0000;">&quot;1&quot;</span> caps=<span style="color: #ff0000;">&quot;none&quot;</span> miterLimit=<span style="color: #ff0000;">&quot;4&quot;</span> joints=<span style="color: #ff0000;">&quot;miter&quot;</span> <span style="color: #0066CC;">color</span>=<span style="color: #ff0000;">&quot;#402ba7&quot;</span><span style="color: #66cc66;">/&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&lt;/</span>s:stroke.<span style="color: #006600;">down</span><span style="color: #66cc66;">&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&lt;</span>s:fill.<span style="color: #006600;">down</span><span style="color: #66cc66;">&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&lt;</span>s:SolidColor <span style="color: #0066CC;">color</span>=<span style="color: #ff0000;">&quot;#5380d0&quot;</span><span style="color: #66cc66;">/&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&lt;/</span>s:fill.<span style="color: #006600;">down</span><span style="color: #66cc66;">&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&lt;/</span>s:Path<span style="color: #66cc66;">&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&lt;</span>s:RichText <span style="color: #0066CC;">color</span>=<span style="color: #ff0000;">&quot;#ffffff&quot;</span> fontFamily=<span style="color: #ff0000;">&quot;Arial Bold&quot;</span> id=<span style="color: #ff0000;">&quot;labelDisplay&quot;</span> minWidth=<span style="color: #ff0000;">&quot;69&quot;</span> <span style="color: #0066CC;">text</span>=<span style="color: #ff0000;">&quot;(Label)&quot;</span> textAlign=<span style="color: #ff0000;">&quot;center&quot;</span> x=<span style="color: #ff0000;">&quot;44&quot;</span> y=<span style="color: #ff0000;">&quot;48&quot;</span><span style="color: #66cc66;">&gt;&lt;/</span>s:RichText<span style="color: #66cc66;">&gt;</span><br />
&nbsp; &nbsp; <span style="color: #66cc66;">&lt;/</span>s:Group<span style="color: #66cc66;">&gt;</span><br />
&nbsp; &nbsp; <span style="color: #66cc66;">&lt;</span>s:transitions<span style="color: #66cc66;">&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&lt;</span>s:Transition fromState=<span style="color: #ff0000;">&quot;up&quot;</span> toState=<span style="color: #ff0000;">&quot;over&quot;</span> autoReverse=<span style="color: #ff0000;">&quot;true&quot;</span><span style="color: #66cc66;">&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&lt;</span>s:Parallel<span style="color: #66cc66;">&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&lt;/</span>s:Parallel<span style="color: #66cc66;">&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&lt;/</span>s:Transition<span style="color: #66cc66;">&gt;</span><br />
&nbsp; &nbsp; <span style="color: #66cc66;">&lt;/</span>s:transitions<span style="color: #66cc66;">&gt;</span><br />
<span style="color: #66cc66;">&lt;/</span>s:Skin<span style="color: #66cc66;">&gt;</span></div></div>
<p><strong>Transitions</strong><br />
Currently the transition options that I would want for this component aren&#8217;t available, but I am sure they will be soon. Typically though this would be the time for you to add the transitions to your component and I would want to add a graphical shift to the colors &#8211; again, not available at this time.</p>
<p><strong>Actions</strong><br />
Other things that you can set in Flash Catalyst are actions based on events from the components you&#8217;ve used. However since we&#8217;re not trying to make an application mockup we don&#8217;t really need to worry about what happens when the button is clicked, because that will be set in the application itself.</p>
<p><strong>Publish</strong><br />
If you were to be taking in the code to your application you would be done now. But just for the fun of it I&#8217;m going to publish it so you can see the final button.<br />
<div id="attachment_970" class="wp-caption alignnone" style="width: 482px"><img src="http://unitedmindset.com/jonbcampos/wp-content/uploads/2009/10/Screen-shot-2009-11-08-at-6.53.14-PM.png" alt="Flash Catalyst Publish Screen" title="Flash Catalyst Publish Screen" width="472" height="229" class="size-full wp-image-970" /><p class="wp-caption-text">Flash Catalyst Publish Screen</p></div></p>
<p><strong>The Application Ready Button</strong><br />

    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="swfobj_0" width="200" height="250" align="none">
      <param name="movie" value="http://unitedmindset.com/jonbcampos/wp-content/uploads/2009/10/Main.swf" />
      <param name="align" value="none" />
      <!--[if !IE]>-->
      <object type="application/x-shockwave-flash" data="http://unitedmindset.com/jonbcampos/wp-content/uploads/2009/10/Main.swf" width="200" height="250" align="none">
      <!--<![endif]-->
        
      <!--[if !IE]>-->
      </object>
      <!--<![endif]-->
    </object>
</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.unitedmindset.com%2Fjonbcampos%2F2009%2F11%2F09%2Fflash-catalyst-the-missing-visual-editor%2F&amp;title=Flash%20Catalyst%20%26%238211%3B%20The%20Missing%20Visual%20Editor" id="wpa2a_2"><img src="http://www.unitedmindset.com/jonbcampos/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.unitedmindset.com/jonbcampos/2009/11/09/flash-catalyst-the-missing-visual-editor/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>

