<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>flex spaghetti</title>
	<atom:link href="http://flexspaghetti.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://flexspaghetti.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Fri, 20 Nov 2009 22:49:34 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='flexspaghetti.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>flex spaghetti</title>
		<link>http://flexspaghetti.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://flexspaghetti.wordpress.com/osd.xml" title="flex spaghetti" />
	<atom:link rel='hub' href='http://flexspaghetti.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Paging Data in Spark Components (AsyncListView)</title>
		<link>http://flexspaghetti.wordpress.com/2009/11/20/paging-data-in-spark-components-asynclistview/</link>
		<comments>http://flexspaghetti.wordpress.com/2009/11/20/paging-data-in-spark-components-asynclistview/#comments</comments>
		<pubDate>Fri, 20 Nov 2009 22:49:34 +0000</pubDate>
		<dc:creator>rvollmar</dc:creator>
				<category><![CDATA[AsyncListView]]></category>
		<category><![CDATA[List]]></category>
		<category><![CDATA[Paging]]></category>

		<guid isPermaLink="false">http://flexspaghetti.wordpress.com/?p=97</guid>
		<description><![CDATA[There&#8217;s a new class, mx.collections.AsyncListView, which implements IList and takes an IList. It sits between the Spark component and the data source. So to use it: - Set a List&#8217;s dataProvider property equal to an AsyncListView. - Set the AsyncListView&#8217;s list property equal to the data source, such as DataService. Now, AsyncListView will handle all [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flexspaghetti.wordpress.com&amp;blog=6572311&amp;post=97&amp;subd=flexspaghetti&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>There&#8217;s a new class, mx.collections.AsyncListView, which implements IList and takes an IList.  It sits between the Spark component and the data source.  So to use it:<br />
- Set a List&#8217;s dataProvider property equal to an AsyncListView.<br />
- Set the AsyncListView&#8217;s list property equal to the data source, such as DataService.</p>
<p>Now, AsyncListView will handle all the ItemPendingErrors coming from the data source and give the List either objects from the data source, pending objects, or failed objects.  The developer defines functions for the AsyncListView to call when items fail or are pending; the objects returned from these functions are put into the List.  To set up these functions, set the createPendingItemFunction and createFailedItemFunction properties.</p>
<p>The main outstanding issue, which we aren&#8217;t going to fix now, is that sorting/dragging/dropping of pending and failed items isn&#8217;t supported.  See <a href="https://bugs.adobe.com/jira/browse/SDK-23911">SDK-23911</a> for details.</p>
<p>Here&#8217;s an example which pages data from a DataService to a List.  The pending function returns &#8220;item x pending&#8221;, and the fail function returns &#8220;item x failed&#8221;.  The item renderer in the list draws a white background for successful items, a green background for pending items, and a red background for failed items.<br />
<code><br />
&lt;?xml&nbsp;version="1.0"&nbsp;encoding="utf-8"?&gt;<br />
&lt;s:Application&nbsp;xmlns:fx="http://ns.adobe.com/mxml/2009"&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;xmlns:s="library://ns.adobe.com/flex/spark"&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;xmlns:mx="library://ns.adobe.com/flex/halo"&nbsp;minWidth="1024"<br />
&nbsp;&nbsp;&nbsp;&nbsp;minHeight="768"&gt;<br />
&nbsp;&nbsp;&lt;fx:Script&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&lt;![CDATA[<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;function&nbsp;pendingFunction(i:int,&nbsp;obj:Object):Object{<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;{value:&nbsp;"item&nbsp;"&nbsp;+&nbsp;i.toString()&nbsp;+&nbsp;"&nbsp;pending"};<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;function&nbsp;errorFunction(i:int,&nbsp;obj:Object):Object{<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;{value:&nbsp;"item&nbsp;"&nbsp;+&nbsp;i.toString()&nbsp;+&nbsp;"&nbsp;failed"};<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;function&nbsp;doFault(e:*&nbsp;=&nbsp;null):void{<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//trace("DataService&nbsp;fault");<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />
&nbsp;&nbsp;&nbsp;&nbsp;]]&gt;<br />
&nbsp;&nbsp;&lt;/fx:Script&gt;<br />
&nbsp;&nbsp;<br />
&nbsp;&nbsp;&lt;fx:Declarations&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&lt;s:DataService&nbsp;id="ds"&nbsp;destination="pagingTest"&nbsp;fault="doFault()"&nbsp;/&gt;<br />
&nbsp;&nbsp;&lt;/fx:Declarations&gt;<br />
&nbsp;&nbsp;&lt;s:Button&nbsp;x="100"&nbsp;y="0"&nbsp;label="Get&nbsp;Data"&nbsp;click="ds.fill(lcv)"/&gt;<br />
&nbsp;&nbsp;&lt;s:List&nbsp;x="100"&nbsp;y="50"&nbsp;id="theList"&nbsp;useVirtualLayout="true"&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;height="300"&nbsp;width="300"&nbsp;fontSize="18"&gt;&nbsp;&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&lt;s:dataProvider&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;mx:AsyncListView&nbsp;id="theView"<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;createPendingItemFunction="pendingFunction"<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;createFailedItemFunction="errorFunction"&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;mx:list&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;mx:ListCollectionView&nbsp;id="lcv"&nbsp;/&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/mx:list&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/mx:AsyncListView&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&lt;/s:dataProvider&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&lt;s:itemRenderer&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;fx:Component&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;s:ItemRenderer&nbsp;width="100%"&nbsp;height="100%"&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;fx:Script&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;![CDATA[<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;import&nbsp;mx.graphics.SolidColor;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;private&nbsp;function&nbsp;getColor(obj:Object):uint{<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if(obj&nbsp;==&nbsp;null)<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;0xffffff;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;else&nbsp;if(obj.value.indexOf("pending")&nbsp;&gt;&nbsp;-1)<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;0x00ff00;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;else&nbsp;if(obj.value.indexOf("failed")&nbsp;&gt;&nbsp;-1)<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;0xff0000;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;else<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;0xffffff;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;override&nbsp;public&nbsp;function&nbsp;set&nbsp;data(obj:Object):void{<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;super.data&nbsp;=&nbsp;obj;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;try{&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;nameLabel.text&nbsp;=&nbsp;(obj.value)&nbsp;as&nbsp;String;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;nameLabel.setStyle('backgroundColor',&nbsp;getColor(obj));<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}catch(e:Error){<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//trace("Error&nbsp;for&nbsp;"&nbsp;+&nbsp;obj&nbsp;+&nbsp;",&nbsp;"&nbsp;+&nbsp;e.message);<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;]]&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/fx:Script&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;s:states&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;s:State&nbsp;name="normal"&nbsp;/&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;s:State&nbsp;name="hovered"&nbsp;/&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;s:State&nbsp;name="selected"&nbsp;/&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/s:states&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;s:Label&nbsp;id="nameLabel"&nbsp;width="100%"&nbsp;height="100%"&nbsp;paddingTop="5"<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;paddingBottom="5"&nbsp;paddingLeft="5"&nbsp;paddingRight="5"&nbsp;/&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;s:Rect&nbsp;width="100%"&nbsp;height="100%"&nbsp;id="theRect"&nbsp;/&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/s:ItemRenderer&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/fx:Component&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&lt;/s:itemRenderer&gt;<br />
&nbsp;&nbsp;&lt;/s:List&gt;<br />
&lt;/s:Application&gt;<br />
</code></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/flexspaghetti.wordpress.com/97/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/flexspaghetti.wordpress.com/97/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/flexspaghetti.wordpress.com/97/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/flexspaghetti.wordpress.com/97/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/flexspaghetti.wordpress.com/97/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/flexspaghetti.wordpress.com/97/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/flexspaghetti.wordpress.com/97/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/flexspaghetti.wordpress.com/97/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/flexspaghetti.wordpress.com/97/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/flexspaghetti.wordpress.com/97/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/flexspaghetti.wordpress.com/97/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/flexspaghetti.wordpress.com/97/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/flexspaghetti.wordpress.com/97/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/flexspaghetti.wordpress.com/97/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flexspaghetti.wordpress.com&amp;blog=6572311&amp;post=97&amp;subd=flexspaghetti&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://flexspaghetti.wordpress.com/2009/11/20/paging-data-in-spark-components-asynclistview/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9f56a488fd687e0b5b1bfcd469e89349?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rvollmar</media:title>
		</media:content>
	</item>
		<item>
		<title>One label function serving multiple DataGridColumns</title>
		<link>http://flexspaghetti.wordpress.com/2009/11/19/one-label-function-serving-multiple-datagridcolumns/</link>
		<comments>http://flexspaghetti.wordpress.com/2009/11/19/one-label-function-serving-multiple-datagridcolumns/#comments</comments>
		<pubDate>Thu, 19 Nov 2009 18:07:38 +0000</pubDate>
		<dc:creator>rvollmar</dc:creator>
				<category><![CDATA[DataGrid]]></category>

		<guid isPermaLink="false">http://flexspaghetti.wordpress.com/?p=93</guid>
		<description><![CDATA[If you want to format several columns of your DataGrid the same way, it may initially look like you need to create several identical label functions, one per column. However, you can get away with defining just one. e.g. &#60;?xml&#160;version="1.0"&#160;encoding="utf-8"?&#62; &#60;mx:Application&#160;xmlns:mx="http://www.adobe.com/2006/mxml"&#62; &#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#60;mx:Script&#62; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#60;![CDATA[ &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;import&#160;mx.formatters.CurrencyFormatter; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;private&#160;function&#160;theLabelFunction(item:Object,&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;column:DataGridColumn):String{ &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;var&#160;val:Number; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;var&#160;formatter:CurrencyFormatter&#160;=&#160;new&#160;CurrencyFormatter(); &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;formatter.precision&#160;=&#160;0; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;formatter.rounding&#160;=&#160;"nearest"; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;val&#160;=&#160;item[column.dataField]; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flexspaghetti.wordpress.com&amp;blog=6572311&amp;post=93&amp;subd=flexspaghetti&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>If you want to format several columns of your DataGrid the same way, it may initially look like you need to create several identical label functions, one per column.  However, you can get away with defining just one.  e.g.</p>
<p><code><br />
&lt;?xml&nbsp;version="1.0"&nbsp;encoding="utf-8"?&gt;<br />
&lt;mx:Application&nbsp;xmlns:mx="http://www.adobe.com/2006/mxml"&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&lt;mx:Script&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;![CDATA[<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;import&nbsp;mx.formatters.CurrencyFormatter;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;private&nbsp;function&nbsp;theLabelFunction(item:Object,&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;column:DataGridColumn):String{<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;val:Number;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;formatter:CurrencyFormatter&nbsp;=&nbsp;new&nbsp;CurrencyFormatter();<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;formatter.precision&nbsp;=&nbsp;0;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;formatter.rounding&nbsp;=&nbsp;"nearest";<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;val&nbsp;=&nbsp;item[column.dataField];<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;formatter.format(val);<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;]]&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&lt;/mx:Script&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&lt;mx:DataGrid&nbsp;id="dg1"&nbsp;&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;mx:dataProvider&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;mx:ArrayCollection&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;mx:Object&nbsp;checking="100.22"&nbsp;savings="2000"&nbsp;under_pillow="0"&nbsp;/&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;mx:Object&nbsp;checking="0"&nbsp;savings="0"&nbsp;under_pillow="5000"&nbsp;/&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;mx:Object&nbsp;checking="1000"&nbsp;savings="23.88"&nbsp;under_pillow=".5"&nbsp;/&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/mx:ArrayCollection&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/mx:dataProvider&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;mx:columns&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;mx:DataGridColumn&nbsp;dataField="checking"&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;headerText="Checking"&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;labelFunction="theLabelFunction"&nbsp;/&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;mx:DataGridColumn&nbsp;dataField="savings"&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;headerText="Savings"&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;labelFunction="theLabelFunction"&nbsp;/&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;mx:DataGridColumn&nbsp;dataField="under_pillow"&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;headerText="Under&nbsp;Pillow"&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;labelFunction="theLabelFunction"&nbsp;/&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/mx:columns&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&lt;/mx:DataGrid&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;<br />
&lt;/mx:Application&gt;<br />
</code></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/flexspaghetti.wordpress.com/93/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/flexspaghetti.wordpress.com/93/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/flexspaghetti.wordpress.com/93/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/flexspaghetti.wordpress.com/93/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/flexspaghetti.wordpress.com/93/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/flexspaghetti.wordpress.com/93/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/flexspaghetti.wordpress.com/93/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/flexspaghetti.wordpress.com/93/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/flexspaghetti.wordpress.com/93/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/flexspaghetti.wordpress.com/93/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/flexspaghetti.wordpress.com/93/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/flexspaghetti.wordpress.com/93/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/flexspaghetti.wordpress.com/93/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/flexspaghetti.wordpress.com/93/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flexspaghetti.wordpress.com&amp;blog=6572311&amp;post=93&amp;subd=flexspaghetti&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://flexspaghetti.wordpress.com/2009/11/19/one-label-function-serving-multiple-datagridcolumns/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9f56a488fd687e0b5b1bfcd469e89349?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rvollmar</media:title>
		</media:content>
	</item>
		<item>
		<title>TileLayout Example</title>
		<link>http://flexspaghetti.wordpress.com/2009/11/17/tilelayout-example/</link>
		<comments>http://flexspaghetti.wordpress.com/2009/11/17/tilelayout-example/#comments</comments>
		<pubDate>Tue, 17 Nov 2009 18:31:38 +0000</pubDate>
		<dc:creator>rvollmar</dc:creator>
				<category><![CDATA[Group]]></category>
		<category><![CDATA[Layout]]></category>
		<category><![CDATA[List]]></category>

		<guid isPermaLink="false">http://flexspaghetti.wordpress.com/?p=85</guid>
		<description><![CDATA[Here&#8217;s a quick example of using a TileLayout for a List and positioning elements within it: &#60;?xml&#160;version="1.0"&#160;encoding="utf-8"?&#62; &#60;s:Application&#160;xmlns:fx="http://ns.adobe.com/mxml/2009"&#160; &#160;&#160;xmlns:s="library://ns.adobe.com/flex/spark"&#160; &#160;&#160;xmlns:mx="library://ns.adobe.com/flex/halo"&#62; &#160;&#160;&#60;s:VGroup&#62; &#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#60;s:HGroup&#62; &#160;&#160;&#160;&#160;&#160;&#160;&#60;s:Button&#160;label="horizontalAlign&#160;left"&#160;click="TileLayout(list1.layout).horizontalAlign&#160;=&#160;'left'"&#160;/&#62; &#160;&#160;&#160;&#160;&#160;&#160;&#60;s:Button&#160;label="horizontalAlign&#160;center"&#160;click="TileLayout(list1.layout).horizontalAlign&#160;=&#160;'center'"&#160;/&#62; &#160;&#160;&#160;&#160;&#160;&#160;&#60;s:Button&#160;label="horizontalAlign&#160;right"&#160;click="TileLayout(list1.layout).horizontalAlign&#160;=&#160;'right'"&#160;/&#62; &#160;&#160;&#160;&#160;&#60;/s:HGroup&#62;&#160;&#160; &#160;&#160;&#160;&#160;&#60;s:HGroup&#62; &#160;&#160;&#160;&#160;&#160;&#160;&#60;s:Button&#160;label="verticalAlign&#160;top"&#160;click="TileLayout(list1.layout).verticalAlign&#160;=&#160;'top'"&#160;/&#62; &#160;&#160;&#160;&#160;&#160;&#160;&#60;s:Button&#160;label="verticalAlign&#160;middle"&#160;click="TileLayout(list1.layout).verticalAlign&#160;=&#160;'middle'"&#160;/&#62; &#160;&#160;&#160;&#160;&#160;&#160;&#60;s:Button&#160;label="verticalAlign&#160;bottom"&#160;click="TileLayout(list1.layout).verticalAlign&#160;=&#160;'bottom'"&#160;/&#62; &#160;&#160;&#160;&#160;&#60;/s:HGroup&#62;&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#60;s:List&#160;id="list1"&#160;&#160;&#62; &#160;&#160;&#160;&#160;&#160;&#160;&#60;s:itemRenderer&#62; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#60;fx:Component&#62; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#60;s:ItemRenderer&#160;width="10"&#160;height="10"&#62; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#60;s:Rect&#160;width="100%"&#160;height="100%"&#160;&#62; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#60;s:stroke&#62; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#60;mx:SolidColorStroke&#160;weight="1"&#160;color="{data.color}"/&#62; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#60;/s:stroke&#62; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#60;/s:Rect&#62; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#60;/s:ItemRenderer&#62; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#60;/fx:Component&#62; &#160;&#160;&#160;&#160;&#160;&#160;&#60;/s:itemRenderer&#62; &#160;&#160;&#160;&#160;&#160;&#160;&#60;s:layout&#62; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#60;s:TileLayout&#160;horizontalAlign="center"&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;verticalAlign="middle" &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;columnWidth="40"&#160;rowHeight="40"&#160;/&#62; &#160;&#160;&#160;&#160;&#160;&#160;&#60;/s:layout&#62; &#160;&#160;&#160;&#160;&#160;&#160;&#60;s:dataProvider&#62; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#60;mx:ArrayCollection&#62; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#60;fx:Object&#160;color="0xff0000"&#160;/&#62; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#60;fx:Object&#160;color="0x00ff00"&#160;/&#62; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#60;fx:Object&#160;color="0x0000ff"&#160;/&#62; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#60;fx:Object&#160;color="0xffff00"&#160;/&#62; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flexspaghetti.wordpress.com&amp;blog=6572311&amp;post=85&amp;subd=flexspaghetti&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a quick example of using a TileLayout for a List and positioning elements within it:<br />
<code><br />
&lt;?xml&nbsp;version="1.0"&nbsp;encoding="utf-8"?&gt;<br />
&lt;s:Application&nbsp;xmlns:fx="http://ns.adobe.com/mxml/2009"&nbsp;<br />
&nbsp;&nbsp;xmlns:s="library://ns.adobe.com/flex/spark"&nbsp;<br />
&nbsp;&nbsp;xmlns:mx="library://ns.adobe.com/flex/halo"&gt;<br />
&nbsp;&nbsp;&lt;s:VGroup&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&lt;s:HGroup&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;s:Button&nbsp;label="horizontalAlign&nbsp;left"&nbsp;click="TileLayout(list1.layout).horizontalAlign&nbsp;=&nbsp;'left'"&nbsp;/&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;s:Button&nbsp;label="horizontalAlign&nbsp;center"&nbsp;click="TileLayout(list1.layout).horizontalAlign&nbsp;=&nbsp;'center'"&nbsp;/&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;s:Button&nbsp;label="horizontalAlign&nbsp;right"&nbsp;click="TileLayout(list1.layout).horizontalAlign&nbsp;=&nbsp;'right'"&nbsp;/&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&lt;/s:HGroup&gt;&nbsp;&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&lt;s:HGroup&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;s:Button&nbsp;label="verticalAlign&nbsp;top"&nbsp;click="TileLayout(list1.layout).verticalAlign&nbsp;=&nbsp;'top'"&nbsp;/&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;s:Button&nbsp;label="verticalAlign&nbsp;middle"&nbsp;click="TileLayout(list1.layout).verticalAlign&nbsp;=&nbsp;'middle'"&nbsp;/&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;s:Button&nbsp;label="verticalAlign&nbsp;bottom"&nbsp;click="TileLayout(list1.layout).verticalAlign&nbsp;=&nbsp;'bottom'"&nbsp;/&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&lt;/s:HGroup&gt;&nbsp;&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&lt;s:List&nbsp;id="list1"&nbsp;&nbsp;&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;s:itemRenderer&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;fx:Component&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;s:ItemRenderer&nbsp;width="10"&nbsp;height="10"&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;s:Rect&nbsp;width="100%"&nbsp;height="100%"&nbsp;&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;s:stroke&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;mx:SolidColorStroke&nbsp;weight="1"&nbsp;color="{data.color}"/&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/s:stroke&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/s:Rect&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/s:ItemRenderer&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/fx:Component&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/s:itemRenderer&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;s:layout&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;s:TileLayout&nbsp;horizontalAlign="center"&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;verticalAlign="middle"<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;columnWidth="40"&nbsp;rowHeight="40"&nbsp;/&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/s:layout&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;s:dataProvider&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;mx:ArrayCollection&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;fx:Object&nbsp;color="0xff0000"&nbsp;/&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;fx:Object&nbsp;color="0x00ff00"&nbsp;/&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;fx:Object&nbsp;color="0x0000ff"&nbsp;/&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;fx:Object&nbsp;color="0xffff00"&nbsp;/&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/mx:ArrayCollection&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/s:dataProvider&gt;<br />
&nbsp;&nbsp;&lt;/s:List&gt;&nbsp;<br />
&nbsp;&nbsp;&lt;/s:VGroup&gt;<br />
&lt;/s:Application&gt;<br />
</code></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/flexspaghetti.wordpress.com/85/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/flexspaghetti.wordpress.com/85/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/flexspaghetti.wordpress.com/85/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/flexspaghetti.wordpress.com/85/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/flexspaghetti.wordpress.com/85/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/flexspaghetti.wordpress.com/85/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/flexspaghetti.wordpress.com/85/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/flexspaghetti.wordpress.com/85/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/flexspaghetti.wordpress.com/85/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/flexspaghetti.wordpress.com/85/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/flexspaghetti.wordpress.com/85/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/flexspaghetti.wordpress.com/85/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/flexspaghetti.wordpress.com/85/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/flexspaghetti.wordpress.com/85/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flexspaghetti.wordpress.com&amp;blog=6572311&amp;post=85&amp;subd=flexspaghetti&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://flexspaghetti.wordpress.com/2009/11/17/tilelayout-example/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9f56a488fd687e0b5b1bfcd469e89349?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rvollmar</media:title>
		</media:content>
	</item>
		<item>
		<title>Application.application returns null.</title>
		<link>http://flexspaghetti.wordpress.com/2009/06/21/application-application-returns-null/</link>
		<comments>http://flexspaghetti.wordpress.com/2009/06/21/application-application-returns-null/#comments</comments>
		<pubDate>Sun, 21 Jun 2009 21:42:24 +0000</pubDate>
		<dc:creator>rvollmar</dc:creator>
				<category><![CDATA[Application]]></category>

		<guid isPermaLink="false">http://flexspaghetti.wordpress.com/?p=79</guid>
		<description><![CDATA[Just a quick note: If you have started using s:Application, you&#8217;ll find that mx.core.Application.application returns null. We&#8217;ve deprecated that syntax; the replacement is mx.core.FlexGlobals.topLevelApplication. To read about more backwards compatibility issues, here&#8217;s a helpful article: http://labs.adobe.com/wiki/index.php/Flex_4:Backward_Compatibility All the best! - Rob<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flexspaghetti.wordpress.com&amp;blog=6572311&amp;post=79&amp;subd=flexspaghetti&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Just a quick note:<br />
If you have started using s:Application, you&#8217;ll find that mx.core.Application.application returns null.  We&#8217;ve deprecated that syntax; the replacement is mx.core.FlexGlobals.topLevelApplication.  To read about more backwards compatibility issues, here&#8217;s a helpful article: <a href="http://labs.adobe.com/wiki/index.php/Flex_4:Backward_Compatibility">http://labs.adobe.com/wiki/index.php/Flex_4:Backward_Compatibility</a><br />
All the best!<br />
- Rob</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/flexspaghetti.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/flexspaghetti.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/flexspaghetti.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/flexspaghetti.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/flexspaghetti.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/flexspaghetti.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/flexspaghetti.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/flexspaghetti.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/flexspaghetti.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/flexspaghetti.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/flexspaghetti.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/flexspaghetti.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/flexspaghetti.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/flexspaghetti.wordpress.com/79/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flexspaghetti.wordpress.com&amp;blog=6572311&amp;post=79&amp;subd=flexspaghetti&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://flexspaghetti.wordpress.com/2009/06/21/application-application-returns-null/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9f56a488fd687e0b5b1bfcd469e89349?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rvollmar</media:title>
		</media:content>
	</item>
		<item>
		<title>Creating states in a skin</title>
		<link>http://flexspaghetti.wordpress.com/2009/06/21/creating-states-in-a-skin/</link>
		<comments>http://flexspaghetti.wordpress.com/2009/06/21/creating-states-in-a-skin/#comments</comments>
		<pubDate>Sun, 21 Jun 2009 20:56:06 +0000</pubDate>
		<dc:creator>rvollmar</dc:creator>
				<category><![CDATA[Application]]></category>
		<category><![CDATA[Skins]]></category>
		<category><![CDATA[States]]></category>

		<guid isPermaLink="false">http://flexspaghetti.wordpress.com/?p=51</guid>
		<description><![CDATA[You may want to change the attributes of a component&#8217;s skin depending on the state the component is in. In this case, we&#8217;re going to make a skin for the Application class which changes its background depending on the state it&#8217;s in: happy: yellow background sad: blue background sophisticated: various shades of grey bland: white [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flexspaghetti.wordpress.com&amp;blog=6572311&amp;post=51&amp;subd=flexspaghetti&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>You may want to change the attributes of a component&#8217;s skin depending on the state the component is in.  In this case, we&#8217;re going to make a skin for the Application class which changes its background depending on the state it&#8217;s in:</p>
<p>happy: yellow background<br />
sad: blue background<br />
sophisticated: various shades of grey<br />
bland: white background</p>
<p>1. Copy frameworks/projects/flex4/src/spark/skins/spark/ApplicationSkin.mxml to the directory you&#8217;re working in and rename it. I&#8217;m calling it SkinWithStates.mxml.<br />
<br />
2a. Find the states section and add some states.<br />
2b. Find the backgroundRect and make its fill stateful.  Also, add a couple more Rects for the sophisticated state.  Note that the subsequent Rects have left/right/top/bottom set to increasing numbers, so they will appear nested.  Here is how the skin file should look when it&#8217;s done:<br />
<code><br />
&lt;?xml&nbsp;version="1.0"&nbsp;encoding="utf-8"?&gt;<br />
<br />
&lt;!---&nbsp;The&nbsp;default&nbsp;skin&nbsp;class&nbsp;for&nbsp;the&nbsp;Spark&nbsp;Application&nbsp;component.&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;@langversion&nbsp;3.0<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;@playerversion&nbsp;Flash&nbsp;10<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;@playerversion&nbsp;AIR&nbsp;1.5<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;@productversion&nbsp;Flex&nbsp;4<br />
--&gt;<br />
&lt;s:Skin&nbsp;xmlns:fx="http://ns.adobe.com/mxml/2009"<br />
&nbsp;&nbsp;&nbsp;&nbsp;xmlns:s="library://ns.adobe.com/flex/spark"<br />
&nbsp;&nbsp;&nbsp;&nbsp;alpha.disabled="0.5"&nbsp;&gt;<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;&lt;fx:Metadata&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&lt;![CDATA[&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[HostComponent("spark.components.Application")]<br />
&nbsp;&nbsp;&nbsp;&nbsp;]]&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&lt;/fx:Metadata&gt;&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&lt;s:states&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;	&lt;s:State&nbsp;name="normal"&nbsp;/&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;	&lt;s:State&nbsp;name="disabled"&nbsp;/&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;s:State&nbsp;name="sad"&nbsp;/&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;s:State&nbsp;name="happy"&nbsp;/&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;s:State&nbsp;name="sophisticated"&nbsp;/&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;s:State&nbsp;name="bland"&nbsp;/&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&lt;/s:states&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&lt;s:Rect&nbsp;id="backgroundRect"&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;left="0"&nbsp;right="0"&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;top="0"&nbsp;bottom="0"&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;s:fill&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;s:SolidColor&nbsp;color.sad="0x0000ff"<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;color.happy="0xffff00"<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;color.sophisticated="0x000000"<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;color.bland="0xffffff"&nbsp;/&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/s:fill&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&lt;/s:Rect&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&lt;s:Rect&nbsp;id="backgroundRect2"<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;left="20"&nbsp;right="20"<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;top="20"&nbsp;bottom="20"&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;s:fill&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;s:SolidColor&nbsp;color.sad="0x0000ff"<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;color.happy="0xffff00"<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;color.sophisticated="0x444444"<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;color.bland="0xffffff"&nbsp;/&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/s:fill&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&lt;/s:Rect&gt;<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;&lt;s:Rect&nbsp;id="backgroundRect3"<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;left="40"&nbsp;right="40"<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;top="40"&nbsp;bottom="40"&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;s:fill&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;s:SolidColor&nbsp;color.sad="0x0000ff"<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;color.happy="0xffff00"<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;color.sophisticated="0x888888"<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;color.bland="0xffffff"&nbsp;/&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/s:fill&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&lt;/s:Rect&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&lt;s:Group&nbsp;id="contentGroup"&nbsp;left="0"&nbsp;right="0"<br />
&nbsp;&nbsp;&nbsp;&nbsp;top="0"&nbsp;bottom="0"<br />
&nbsp;&nbsp;&nbsp;&nbsp;minWidth="0" minHeight="0"/&gt;<br />
<br />
&lt;/s:Skin&gt;<br />
</code><br />
3. Override the getCurrentSkinState() method in a subclass of Application.  This method should do whatever analysis is needed to figure out what state the skin should be in, and return a string containing that state&#8217;s name.  Here is an example which just returns the mood, which is the name of a state.  Save it as TestApplication.as:<br />
<code><br />
package{<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;import&nbsp;spark.components.Application;<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;class&nbsp;TestApplication&nbsp;extends&nbsp;Application{<br />
&nbsp;&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;var&nbsp;mood:String;<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;Constructor.<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;function&nbsp;TestApplication():void{<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;mood&nbsp;=&nbsp;"bland";<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />
&nbsp;&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;Return&nbsp;the&nbsp;state&nbsp;the&nbsp;skin&nbsp;should&nbsp;be&nbsp;in.<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;override&nbsp;protected&nbsp;function&nbsp;getCurrentSkinState():String{<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;mood;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;}<br />
}<br />
</code><br />
4. Make a main application file which uses the subclass and the skin just created:<br />
<code><br />
&lt;?xml&nbsp;version="1.0"&nbsp;encoding="utf-8"?&gt;<br />
&lt;custom:TestApplication&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;xmlns:fx="http://ns.adobe.com/mxml/2009"&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;xmlns:mx="library://ns.adobe.com/flex/halo"&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;xmlns:s="library://ns.adobe.com/flex/spark"<br />
&nbsp;&nbsp;&nbsp;&nbsp;xmlns:custom="*"<br />
&nbsp;&nbsp;&nbsp;&nbsp;skinClass="SkinWithStates"&nbsp;&gt;<br />
<br />
&lt;fx:Script&gt;<br />
&lt;![CDATA[<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;private&nbsp;function&nbsp;doMoodChange(e:Event):void{<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;this.mood&nbsp;=&nbsp;e.currentTarget.selectedValue;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;This&nbsp;causes&nbsp;the&nbsp;skin's&nbsp;state&nbsp;to<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;be&nbsp;evaluated&nbsp;again.<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;invalidateSkinState();<br />
&nbsp;&nbsp;&nbsp;&nbsp;}<br />
<br />
]]&gt;<br />
&lt;/fx:Script&gt;<br />
<br />
&lt;fx:Declarations&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&lt;s:RadioButtonGroup&nbsp;id="group1"&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;itemClick="doMoodChange(event)"&nbsp;/&gt;<br />
&lt;/fx:Declarations&gt;<br />
<br />
&lt;s:Group&nbsp;x="50"&nbsp;y="50"&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&lt;s:layout&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;s:VerticalLayout&nbsp;/&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&lt;/s:layout&gt;<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;&lt;s:SimpleText&nbsp;text="Choose&nbsp;Mood:"&nbsp;/&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&lt;s:RadioButton&nbsp;id="rbHappy"&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;groupName="group1"&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;label="happy"&nbsp;value="happy"&nbsp;/&gt;&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&lt;s:RadioButton&nbsp;id="rbSad"&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;groupName="group1"&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;label="sad"&nbsp;value="sad"&nbsp;/&gt;&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&lt;s:RadioButton&nbsp;id="rbSophisticated"&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;groupName="group1"&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;label="sophisticated"&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;value="sophisticated"&nbsp;/&gt;&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&lt;s:RadioButton&nbsp;id="rbBland"&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;groupName="group1"&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;label="bland"&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;value="bland"&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;selected="true"&nbsp;/&gt;&nbsp;<br />
&lt;/s:Group&gt;<br />
<br />
&lt;/custom:TestApplication&gt;<br />
</code></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/flexspaghetti.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/flexspaghetti.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/flexspaghetti.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/flexspaghetti.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/flexspaghetti.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/flexspaghetti.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/flexspaghetti.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/flexspaghetti.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/flexspaghetti.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/flexspaghetti.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/flexspaghetti.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/flexspaghetti.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/flexspaghetti.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/flexspaghetti.wordpress.com/51/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flexspaghetti.wordpress.com&amp;blog=6572311&amp;post=51&amp;subd=flexspaghetti&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://flexspaghetti.wordpress.com/2009/06/21/creating-states-in-a-skin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9f56a488fd687e0b5b1bfcd469e89349?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rvollmar</media:title>
		</media:content>
	</item>
		<item>
		<title>Fetching and building Flex source code with a Mac</title>
		<link>http://flexspaghetti.wordpress.com/2009/06/13/fetching-and-building-flex-source-code-with-a-mac/</link>
		<comments>http://flexspaghetti.wordpress.com/2009/06/13/fetching-and-building-flex-source-code-with-a-mac/#comments</comments>
		<pubDate>Sat, 13 Jun 2009 07:35:58 +0000</pubDate>
		<dc:creator>rvollmar</dc:creator>
				<category><![CDATA[Source]]></category>

		<guid isPermaLink="false">http://flexspaghetti.wordpress.com/?p=43</guid>
		<description><![CDATA[For the Mac users out there, here are some instructions for fetching the latest Flex SDK source code (aka &#8220;trunk&#8221;). Note that I&#8217;m saying LATEST. It might not be stable. Heck, it might not even build. For a GUI client, I use SmartSVN because it was the first one I stumbled over which: - Has [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flexspaghetti.wordpress.com&amp;blog=6572311&amp;post=43&amp;subd=flexspaghetti&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>For the Mac users out there, here are some instructions for fetching the latest Flex SDK source code (aka &#8220;trunk&#8221;).  Note that I&#8217;m saying LATEST.  It might not be stable.  Heck, it might not even build.</p>
<p>For a GUI client, I use SmartSVN because it was the first one I stumbled over which:<br />
- Has a free, functional version.<br />
- I figured out how to use quickly.</p>
<p>If you can recommend another, please point me to it.  I&#8217;ll be happy to give it a try and post instructions.</p>
<p>Of course, the instructions are basically the same on any OS.  But it&#8217;s always nice to see very specific instructions for the OS one is using.</p>
<p>Instructions using the svn command line client:<br />
1. Get it (http://downloads.open.collab.net/binaries.html) and install it.<br />
2. Run this command:<br />
<code><br />
svn checkout http://opensource.adobe.com/svn/opensource/flex/sdk/trunk <i>local-directory</i><br />
</code></p>
<p>Instructions using SmartSVN (6.0.2):<br />
1. Get it (http://www.syntevo.com/smartsvn/index.html), install it, and start it.<br />
2. Project &gt; Check Out.<br />
3. Choose Quick Checkout and fill in:<br />
    URL: http://opensource.adobe.com/svn/opensource/flex/sdk/trunk<br />
    Local Directory: whatever works for you<br />
4. Click Continue, then Finish.</p>
<p>Building the SDK:<br />
Assuming you have recent releases of Ant (I have 1.7.0) and Java (I have 1.5.0_16-133):<br />
1. Bring up a terminal window.<br />
2. cd to the trunk directory that you fetched above.<br />
3. Run: <code>ant clean main</code></p>
<p>Note: I don&#8217;t have FLEX_HOME, JAVA_HOME, or ANT_HOME defined anywhere, but there is some documentation which claims these are needed.  Do what works for you.</p>
<p>References:<br />
Getting source code: <a href="http://opensource.adobe.com/wiki/display/flexsdk/Get+Source+Code">http://opensource.adobe.com/wiki/display/flexsdk/Get+Source+Code</a><br />
Building the SDK: <a href="http://opensource.adobe.com/wiki/display/flexsdk/Build+and+Test">http://opensource.adobe.com/wiki/display/flexsdk/Build+and+Test</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/flexspaghetti.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/flexspaghetti.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/flexspaghetti.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/flexspaghetti.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/flexspaghetti.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/flexspaghetti.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/flexspaghetti.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/flexspaghetti.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/flexspaghetti.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/flexspaghetti.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/flexspaghetti.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/flexspaghetti.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/flexspaghetti.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/flexspaghetti.wordpress.com/43/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flexspaghetti.wordpress.com&amp;blog=6572311&amp;post=43&amp;subd=flexspaghetti&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://flexspaghetti.wordpress.com/2009/06/13/fetching-and-building-flex-source-code-with-a-mac/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9f56a488fd687e0b5b1bfcd469e89349?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rvollmar</media:title>
		</media:content>
	</item>
		<item>
		<title>Setting the layout property in Flex 4</title>
		<link>http://flexspaghetti.wordpress.com/2009/06/13/setting-the-layout-property-in-flex-4/</link>
		<comments>http://flexspaghetti.wordpress.com/2009/06/13/setting-the-layout-property-in-flex-4/#comments</comments>
		<pubDate>Sat, 13 Jun 2009 05:47:37 +0000</pubDate>
		<dc:creator>rvollmar</dc:creator>
				<category><![CDATA[Application]]></category>
		<category><![CDATA[Group]]></category>
		<category><![CDATA[Layout]]></category>

		<guid isPermaLink="false">http://flexspaghetti.wordpress.com/?p=32</guid>
		<description><![CDATA[In Flex 3, the layout property could be set to strings such as &#8220;absolute&#8221;, &#8220;horizontal&#8221;, and &#8220;vertical&#8221;. In Flex 4, the layouts are classes such as BasicLayout, HorizontalLayout, VerticalLayout, and TileLayout. If you try to set the layout property in a class&#8217; MXML tag, you will get the compiler error &#8220;values of type spark.layouts.supportClasses.LayoutBase cannot [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flexspaghetti.wordpress.com&amp;blog=6572311&amp;post=32&amp;subd=flexspaghetti&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In Flex 3, the layout property could be set to strings such as &#8220;absolute&#8221;, &#8220;horizontal&#8221;, and &#8220;vertical&#8221;.  In Flex 4, the layouts are classes such as BasicLayout, HorizontalLayout, VerticalLayout, and TileLayout.  If you try to set the layout property in a class&#8217; MXML tag, you will get the compiler error &#8220;values of type spark.layouts.supportClasses.LayoutBase cannot be represented in text.&#8221;  Here are some options:</p>
<p>1. To set the layout for the Application in MXML:<br />
<code><br />
&lt;s:Application ...&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&lt;s:layout&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;s:VerticalLayout&nbsp;/&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&lt;/s:layout&gt;<br />
...<br />
</code></p>
<p>2. To set the layout for a Group:<br />
<code><br />
&lt;s:Group&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&lt;s:layout&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;s:VerticalLayout&nbsp;/&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&lt;/s:layout&gt;<br />
...<br />
</code></p>
<p>3. That seemed verbose, so there&#8217;s a shortcut to set the layout for a Group; you can use VGroup and HGroup:<br />
<code><br />
&lt;s:VGroup&gt;<br />
...<br />
</code></p>
<p>Enjoy,<br />
- Rob</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/flexspaghetti.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/flexspaghetti.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/flexspaghetti.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/flexspaghetti.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/flexspaghetti.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/flexspaghetti.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/flexspaghetti.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/flexspaghetti.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/flexspaghetti.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/flexspaghetti.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/flexspaghetti.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/flexspaghetti.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/flexspaghetti.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/flexspaghetti.wordpress.com/32/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flexspaghetti.wordpress.com&amp;blog=6572311&amp;post=32&amp;subd=flexspaghetti&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://flexspaghetti.wordpress.com/2009/06/13/setting-the-layout-property-in-flex-4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9f56a488fd687e0b5b1bfcd469e89349?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rvollmar</media:title>
		</media:content>
	</item>
		<item>
		<title>A class is missing!</title>
		<link>http://flexspaghetti.wordpress.com/2009/06/13/a-class-is-missing/</link>
		<comments>http://flexspaghetti.wordpress.com/2009/06/13/a-class-is-missing/#comments</comments>
		<pubDate>Sat, 13 Jun 2009 05:10:11 +0000</pubDate>
		<dc:creator>rvollmar</dc:creator>
				<category><![CDATA[Builder]]></category>

		<guid isPermaLink="false">http://flexspaghetti.wordpress.com/?p=29</guid>
		<description><![CDATA[You may notice that code completion seems to fail for some classes. If this is happening to you, try pressing control + space twice. In order to guide developers into using the new Spark classes, code completion has been turned off by default for certain Halo (mx) classes. To modify this behavior, select Window &#62; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flexspaghetti.wordpress.com&amp;blog=6572311&amp;post=29&amp;subd=flexspaghetti&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>You may notice that code completion seems to fail for some classes.  If this is happening to you, try pressing control + space twice.  In order to guide developers into using the new Spark classes, code completion has been turned off by default for certain Halo (mx) classes.</p>
<p>To modify this behavior, select Window &gt; Preferences &gt; Flash Builder &gt; Editors &gt; MXML Code &gt; Advanced.  This control shows the order of the suggestions as you repeatedly press control + space.  Moving &#8220;All&#8221; to the top will allow all classes matching your partial word to be suggested in the initial code completion hint.</p>
<p>- Rob</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/flexspaghetti.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/flexspaghetti.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/flexspaghetti.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/flexspaghetti.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/flexspaghetti.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/flexspaghetti.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/flexspaghetti.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/flexspaghetti.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/flexspaghetti.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/flexspaghetti.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/flexspaghetti.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/flexspaghetti.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/flexspaghetti.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/flexspaghetti.wordpress.com/29/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flexspaghetti.wordpress.com&amp;blog=6572311&amp;post=29&amp;subd=flexspaghetti&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://flexspaghetti.wordpress.com/2009/06/13/a-class-is-missing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9f56a488fd687e0b5b1bfcd469e89349?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rvollmar</media:title>
		</media:content>
	</item>
		<item>
		<title>&#8220;We file bugs and they go into a black hole&#8221;</title>
		<link>http://flexspaghetti.wordpress.com/2009/02/17/we-file-bugs-and-they-go-into-a-black-hole/</link>
		<comments>http://flexspaghetti.wordpress.com/2009/02/17/we-file-bugs-and-they-go-into-a-black-hole/#comments</comments>
		<pubDate>Tue, 17 Feb 2009 05:51:00 +0000</pubDate>
		<dc:creator>rvollmar</dc:creator>
				<category><![CDATA[Flex Bug Database (Jira)]]></category>

		<guid isPermaLink="false">http://flexspaghetti.wordpress.com/?p=16</guid>
		<description><![CDATA[I saw a comment like this recently and thought it would be a good thing to address. I&#8217;ve thought about it, and there are a few areas where bugs seem to&#8230;linger. The good news is that usually you can do something about it. Community Community members need to take action on bugs with a Community [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flexspaghetti.wordpress.com&amp;blog=6572311&amp;post=16&amp;subd=flexspaghetti&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I saw a comment like this recently and thought it would be a good thing to address.  I&#8217;ve thought about it, and there are a few areas where bugs seem to&#8230;linger.  The good news is that usually you can do something about it.</p>
<p><strong>Community</strong></p>
<p>Community members need to take action on bugs with a Community status.  Specifically, vote on them!!  Two votes will move a bug to the New status; that&#8217;s when they show up in QE bug queues.  Sometimes we like to look through Community bugs on our own just because, but please don&#8217;t rely on it!</p>
<p><strong>Info Needed</strong></p>
<p>When we need information from someone, we add a comment and set the status to Info Needed.  You, the diligent user, promptly provide the information, and then the bug just sits there.  Sound familiar?  This is because we expect users to click on the &#8220;Info Supplied&#8221; link on the left.  That will kick the bug back into our queues.  How would you know to do this?  Well, until now you wouldn&#8217;t!  We hadn&#8217;t given you much documentation, and we carefully hid the little bit of doc we did give you.  Sorry about that; there is more doc. now (see my other post) and I hear we&#8217;re going to post more obvious links soon.  Also, we&#8217;re being more diligent about signing up to watch bugs so that we can catch these situations.</p>
<p><strong>Deferred</strong></p>
<p>When a bug is closed as Deferred, that means it has been deferred for the current release, not forever.  As planning for the next release starts up, management considers the deferred bugs.  Some will be selected, and the rest will be retired.  You can decrease the chances that a bug will get retired by voting and commenting on it.  The comments should involve things such as the use case(s), an idea of how often people will run into the issue, and why the suggested workaround (if any) is insufficient. Note that writing in ALL CAPS and adding !!lots of exclamation points!! may be effective in conveying your emotion, but won&#8217;t do much to convince management to open the bug. A retired bug will probably never get fixed.  No bug should simply be deferred over and over.</p>
<p><strong>External</strong></p>
<p>When a bug is closed as External, that means it&#8217;s in some other product.  It may affect Flex applications, but it is not a bug in the actual SDK and will not be tracked in the Flex bug database.  This could be at Adobe (e.g. Flash Player bugs) or at another company (e.g. web browser bugs).  Usually the other bug database is private, so you won&#8217;t be able to look up the status of the other bug.  Sorry!  You can add a comment requesting an update, and if one of us sees the comment (hopefully we&#8217;ve signed up to get email when comments are made&#8230;) we&#8217;ll go look it up and tell you the status if we can.</p>
<p>Finally, be sure to sign up to watch your bugs.  That way you&#8217;ll be sure to get email as it moves through the process, as we ask for information, etc&#8230;</p>
<p>Best,</p>
<p>- Rob</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/flexspaghetti.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/flexspaghetti.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/flexspaghetti.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/flexspaghetti.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/flexspaghetti.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/flexspaghetti.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/flexspaghetti.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/flexspaghetti.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/flexspaghetti.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/flexspaghetti.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/flexspaghetti.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/flexspaghetti.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/flexspaghetti.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/flexspaghetti.wordpress.com/16/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flexspaghetti.wordpress.com&amp;blog=6572311&amp;post=16&amp;subd=flexspaghetti&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://flexspaghetti.wordpress.com/2009/02/17/we-file-bugs-and-they-go-into-a-black-hole/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9f56a488fd687e0b5b1bfcd469e89349?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rvollmar</media:title>
		</media:content>
	</item>
		<item>
		<title>Flex bug database documentation</title>
		<link>http://flexspaghetti.wordpress.com/2009/02/15/flex-bug-database-documentation/</link>
		<comments>http://flexspaghetti.wordpress.com/2009/02/15/flex-bug-database-documentation/#comments</comments>
		<pubDate>Sun, 15 Feb 2009 18:16:51 +0000</pubDate>
		<dc:creator>rvollmar</dc:creator>
				<category><![CDATA[Flex Bug Database (Jira)]]></category>

		<guid isPermaLink="false">http://flexspaghetti.wordpress.com/?p=11</guid>
		<description><![CDATA[In a recent meeting, it seemed that some community members were frustrated about not knowing our bug workflow.  Some basic information has been available, but it’s a little hard to find.  Information has been added, and here are direct links: The main page: https://bugs.adobe.com/confluence/display/ADOBE/Home The bug life cycle: https://bugs.adobe.com/confluence/display/ADOBE/Bug+life+cycle The other way to get this [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flexspaghetti.wordpress.com&amp;blog=6572311&amp;post=11&amp;subd=flexspaghetti&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In a recent meeting, it seemed that some community members were frustrated about not knowing our bug workflow.  Some basic information has been available, but it’s a little hard to find.  Information has been added, and here are direct links:</p>
<p>The main page: <a href="https://bugs.adobe.com/confluence/display/ADOBE/Home">https://bugs.adobe.com/confluence/display/ADOBE/Home</a></p>
<p>The bug life cycle: <a href="https://bugs.adobe.com/confluence/display/ADOBE/Bug+life+cycle">https://bugs.adobe.com/confluence/display/ADOBE/Bug+life+cycle</a></p>
<p>The other way to get this page is to go to <a href="http://bugs.adobe.com/flex">http://bugs.adobe.com/flex</a> and then click on the “bug standards/community process” link.</p>
<p>Hope it helps!</p>
<p>- Rob</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/flexspaghetti.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/flexspaghetti.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/flexspaghetti.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/flexspaghetti.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/flexspaghetti.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/flexspaghetti.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/flexspaghetti.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/flexspaghetti.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/flexspaghetti.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/flexspaghetti.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/flexspaghetti.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/flexspaghetti.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/flexspaghetti.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/flexspaghetti.wordpress.com/11/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flexspaghetti.wordpress.com&amp;blog=6572311&amp;post=11&amp;subd=flexspaghetti&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://flexspaghetti.wordpress.com/2009/02/15/flex-bug-database-documentation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9f56a488fd687e0b5b1bfcd469e89349?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rvollmar</media:title>
		</media:content>
	</item>
	</channel>
</rss>
