<?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>Preedagrace&#039;s Blog</title>
	<atom:link href="http://preedagrace.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://preedagrace.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Tue, 30 Jun 2009 09:59:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='preedagrace.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Preedagrace&#039;s Blog</title>
		<link>http://preedagrace.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://preedagrace.wordpress.com/osd.xml" title="Preedagrace&#039;s Blog" />
	<atom:link rel='hub' href='http://preedagrace.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Currency validators</title>
		<link>http://preedagrace.wordpress.com/2009/06/19/currency-validators/</link>
		<comments>http://preedagrace.wordpress.com/2009/06/19/currency-validators/#comments</comments>
		<pubDate>Fri, 19 Jun 2009 11:24:56 +0000</pubDate>
		<dc:creator>preedagrace</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://preedagrace.wordpress.com/?p=84</guid>
		<description><![CDATA[currency validators The CurrencyValidator class ensures that a String represents a valid currency expression. It can make sure the input falls within a given range (specified by minValue and maxValue), is non-negative (specified by allowNegative), and does not exceed the specified precision. The CurrencyValidator class correctly validates formatted and unformatted currency expressions, e.g., &#8220;$12,345.00&#8243; and [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=preedagrace.wordpress.com&amp;blog=8179793&amp;post=84&amp;subd=preedagrace&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>currency validators</strong></p>
<p>The CurrencyValidator class ensures that a String represents a valid currency  expression. It can make sure the input falls within a given range (specified by  <code>minValue</code> and <code>maxValue</code>), is non-negative (specified by  <code>allowNegative</code>), and does not exceed the specified  <code>precision</code>. The CurrencyValidator class correctly validates  formatted and unformatted currency expressions, e.g., &#8220;$12,345.00&#8243; and &#8220;12345&#8243;.  You can customize the <code>currencySymbol</code>, <code>alignSymbol</code>,  <code>thousandsSeparator</code>, and <code>decimalSeparator</code> properties  for internationalization.</p>
<p><strong>codings</strong></p>
<p>&lt;?xml version=&#8221;1.0&#8243; encoding=&#8221;utf-8&#8243;?&gt;</p>
<p>&lt;mx:Application xmlns:mx=&#8221;http://www.adobe.com/2006/mxml&#8221;&gt;</p>
<p>&lt;mx:Script&gt;<br />
&lt;![CDATA[</p>
<p>import mx.events.ValidationResultEvent;<br />
private var vResult:ValidationResultEvent;</p>
<p>private function Format():void {</p>
<p>vResult = numVal.validate();</p>
<p>if (vResult.type==ValidationResultEvent.VALID) {<br />
var temp:Number=Number(priceUS.text);<br />
formattedUSPrice.text= usdFormatter.format(temp);<br />
}</p>
<p>else {<br />
formattedUSPrice.text="";<br />
}<br />
}<br />
]]&gt;<br />
&lt;/mx:Script&gt;</p>
<p>&lt;mx:CurrencyFormatter id=&#8221;usdFormatter&#8221; precision=&#8221;2&#8243;<br />
currencySymbol=&#8221;$&#8221; decimalSeparatorFrom=&#8221;.&#8221;<br />
decimalSeparatorTo=&#8221;.&#8221; useNegativeSign=&#8221;true&#8221;<br />
useThousandsSeparator=&#8221;true&#8221; alignSymbol=&#8221;left&#8221;/&gt;</p>
<p>&lt;mx:NumberValidator id=&#8221;numVal&#8221; source=&#8221;{priceUS}&#8221; property=&#8221;text&#8221;<br />
allowNegative=&#8221;true&#8221; domain=&#8221;real&#8221;/&gt;</p>
<p>&lt;mx:Panel title=&#8221;CurrencyFormatter Example&#8221; width=&#8221;75%&#8221; height=&#8221;75%&#8221;<br />
paddingTop=&#8221;10&#8243; paddingLeft=&#8221;10&#8243; paddingRight=&#8221;10&#8243; paddingBottom=&#8221;10&#8243;&gt;</p>
<p>&lt;mx:Form&gt;<br />
&lt;mx:FormItem label=&#8221;Enter U.S. dollar amount:&#8221;&gt;<br />
&lt;mx:TextInput id=&#8221;priceUS&#8221; text=&#8221;" width=&#8221;50%&#8221;/&gt;<br />
&lt;/mx:FormItem&gt;</p>
<p>&lt;mx:FormItem label=&#8221;Formatted amount: &#8220;&gt;<br />
&lt;mx:TextInput id=&#8221;formattedUSPrice&#8221; text=&#8221;" width=&#8221;50%&#8221; editable=&#8221;false&#8221;/&gt;<br />
&lt;/mx:FormItem&gt;</p>
<p>&lt;mx:FormItem&gt;<br />
&lt;mx:Button label=&#8221;Validate and Format&#8221; click=&#8221;Format();&#8221;/&gt;<br />
&lt;/mx:FormItem&gt;<br />
&lt;/mx:Form&gt;</p>
<p>&lt;/mx:Panel&gt;<br />
&lt;/mx:Application&gt;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/preedagrace.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/preedagrace.wordpress.com/84/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/preedagrace.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/preedagrace.wordpress.com/84/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/preedagrace.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/preedagrace.wordpress.com/84/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/preedagrace.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/preedagrace.wordpress.com/84/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/preedagrace.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/preedagrace.wordpress.com/84/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/preedagrace.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/preedagrace.wordpress.com/84/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/preedagrace.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/preedagrace.wordpress.com/84/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=preedagrace.wordpress.com&amp;blog=8179793&amp;post=84&amp;subd=preedagrace&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://preedagrace.wordpress.com/2009/06/19/currency-validators/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/03f4cf73cb3ee228938fb2ee776ea10a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">preedagrace</media:title>
		</media:content>
	</item>
		<item>
		<title>Date field</title>
		<link>http://preedagrace.wordpress.com/2009/06/19/date-field/</link>
		<comments>http://preedagrace.wordpress.com/2009/06/19/date-field/#comments</comments>
		<pubDate>Fri, 19 Jun 2009 08:34:33 +0000</pubDate>
		<dc:creator>preedagrace</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://preedagrace.wordpress.com/?p=82</guid>
		<description><![CDATA[The DateField control is a text field that shows the date with a calendar icon on its right side. When the user clicks anywhere inside the bounding box of the control, a DateChooser control pops up and shows the dates in the month of the current date. If no date is selected, the text field [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=preedagrace.wordpress.com&amp;blog=8179793&amp;post=82&amp;subd=preedagrace&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The DateField control is a text field that shows the date with a calendar icon  on its right side. When the user clicks anywhere inside the bounding box of the  control, a DateChooser control pops up and shows the dates in the month of the  current date. If no date is selected, the text field is blank and the month of  the current date is displayed in the DateChooser control.</p>
<p>When the DateChooser control is open, the user can scroll through months and  years, and select a date. When a date is selected, the DateChooser control  closes, and the text field shows the selected date.</p>
<p>The user can also type the date in the text field if the  <code>editable</code> property of the DateField control is set to  <code>true</code>.</p>
<p><strong>codings</strong></p>
<p>&lt;?xml version=&#8221;1.0&#8243; encoding=&#8221;utf-8&#8243;?&gt;<br />
&lt;!&#8211; Simple example to demonstrate the DateField control. &#8211;&gt;<br />
&lt;mx:Application xmlns:mx=&#8221;http://www.adobe.com/2006/mxml&#8221;&gt;</p>
<p>&lt;mx:Script&gt;<br />
&lt;![CDATA[</p>
<p>// Event handler for the DateField change event.<br />
private function dateChanged(date:Date):void {<br />
if (date == null)<br />
selection.text = "Date selected: ";<br />
else<br />
selection.text = "Date selected: " + date.getFullYear().toString() +<br />
'/' + (date.getMonth()+1).toString() + '/' + date.getDate();<br />
}<br />
]]&gt;<br />
&lt;/mx:Script&gt;</p>
<p>&lt;mx:DateFormatter id=&#8221;df&#8221;/&gt;</p>
<p>&lt;mx:Panel title=&#8221;DateField Control Example&#8221; height=&#8221;75%&#8221; width=&#8221;75%&#8221;<br />
paddingTop=&#8221;10&#8243; paddingLeft=&#8221;10&#8243; paddingRight=&#8221;10&#8243;&gt;</p>
<p>&lt;mx:Label width=&#8221;100%&#8221;  color=&#8221;blue&#8221;<br />
text=&#8221;Select a date in the DateField control. Select it again to clear it.&#8221;/&gt;</p>
<p>&lt;mx:Label text=&#8221;Basic DateField:&#8221;/&gt;<br />
&lt;mx:DateField id=&#8221;dateField1&#8243; yearNavigationEnabled=&#8221;true&#8221;<br />
change=&#8221;dateChanged(DateField(event.target).selectedDate)&#8221; /&gt;<br />
&lt;mx:Label id=&#8221;selection&#8221;  color=&#8221;blue&#8221; text=&#8221;Date selected:&#8221; /&gt;</p>
<p>&lt;mx:Label text=&#8221;Disable dates before June 1, 2006.&#8221;/&gt;<br />
&lt;mx:DateField id=&#8221;dateField2&#8243; yearNavigationEnabled=&#8221;true&#8221;<br />
disabledRanges=&#8221;{[ {rangeEnd: new Date(2006, 5, 1)} ]}&#8221; /&gt;<br />
&lt;mx:Label  color=&#8221;blue&#8221; text=&#8221;Date selected: {df.format(dateField2.selectedDate)}&#8221;/&gt;</p>
<p>&lt;/mx:Panel&gt;<br />
&lt;/mx:Application&gt;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/preedagrace.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/preedagrace.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/preedagrace.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/preedagrace.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/preedagrace.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/preedagrace.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/preedagrace.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/preedagrace.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/preedagrace.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/preedagrace.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/preedagrace.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/preedagrace.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/preedagrace.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/preedagrace.wordpress.com/82/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=preedagrace.wordpress.com&amp;blog=8179793&amp;post=82&amp;subd=preedagrace&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://preedagrace.wordpress.com/2009/06/19/date-field/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/03f4cf73cb3ee228938fb2ee776ea10a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">preedagrace</media:title>
		</media:content>
	</item>
		<item>
		<title>Date chooser</title>
		<link>http://preedagrace.wordpress.com/2009/06/19/date-chooser/</link>
		<comments>http://preedagrace.wordpress.com/2009/06/19/date-chooser/#comments</comments>
		<pubDate>Fri, 19 Jun 2009 08:29:08 +0000</pubDate>
		<dc:creator>preedagrace</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://preedagrace.wordpress.com/?p=80</guid>
		<description><![CDATA[Date chooser: The DateChooser control displays the name of a month, the year, and a grid of the days of the month, with columns labeled for the day of the week. The user can select a date, a range of dates, or multiple dates. The control contains forward and back arrow buttons for changing the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=preedagrace.wordpress.com&amp;blog=8179793&amp;post=80&amp;subd=preedagrace&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>Date chooser:</strong></p>
<p>The DateChooser control displays the name of a month, the year, and a grid of  the days of the month, with columns labeled for the day of the week. The user  can select a date, a range of dates, or multiple dates. The control contains  forward and back arrow buttons for changing the month and year. You can let  users select multiple dates, disable the selection of certain dates, and limit  the display to a range of dates.</p>
<p><strong>coding:</strong></p>
<p>&lt;?xml version=&#8221;1.0&#8243;?&gt;<br />
&lt;!&#8211; Simple example to demonstrate DateChooser control. &#8211;&gt;<br />
&lt;mx:Application xmlns:mx=&#8221;http://www.adobe.com/2006/mxml&#8221;&gt;</p>
<p>&lt;mx:Script&gt;<br />
&lt;![CDATA[</p>
<p>private function displayDate(date:Date):void {<br />
if (date == null)<br />
selection.text = "Date selected: ";<br />
else<br />
selection.text = "Date selected: " + date.getFullYear().toString() +<br />
'/' + (date.getMonth()+1).toString() + '/' + date.getDate();<br />
}<br />
]]&gt;<br />
&lt;/mx:Script&gt;</p>
<p>&lt;mx:DateFormatter id=&#8221;df&#8221;/&gt;</p>
<p>&lt;mx:Panel title=&#8221;DateChooser Control Example&#8221; height=&#8221;75%&#8221; width=&#8221;75%&#8221;<br />
paddingTop=&#8221;10&#8243; paddingLeft=&#8221;10&#8243; paddingRight=&#8221;10&#8243;&gt;</p>
<p>&lt;mx:Label width=&#8221;100%&#8221; color=&#8221;blue&#8221;<br />
text=&#8221;Select a date in the DateChooser control. Select it again to clear it.&#8221;/&gt;</p>
<p>&lt;mx:HBox horizontalGap=&#8221;25&#8243;&gt;<br />
&lt;mx:VBox&gt;<br />
&lt;mx:Label text=&#8221;Simple DateChooser control.&#8221;/&gt;<br />
&lt;mx:DateChooser id=&#8221;dateChooser1&#8243; yearNavigationEnabled=&#8221;true&#8221;<br />
change=&#8221;displayDate(DateChooser(event.target).selectedDate)&#8221;/&gt;<br />
&lt;mx:Label id=&#8221;selection&#8221;  color=&#8221;blue&#8221; text=&#8221;Date selected:&#8221;/&gt;<br />
&lt;/mx:VBox&gt;</p>
<p>&lt;mx:VBox&gt;<br />
&lt;mx:Label text=&#8221;Disable dates before June 1, 2006.&#8221;/&gt;<br />
&lt;mx:DateChooser id=&#8221;dateChooser2&#8243; yearNavigationEnabled=&#8221;true&#8221;<br />
disabledRanges=&#8221;{[ {rangeEnd: new Date(2006, 5, 1)} ]}&#8221;/&gt;<br />
&lt;mx:Label  color=&#8221;blue&#8221; text=&#8221;Date selected: {df.format(dateChooser2.selectedDate)}&#8221;/&gt;<br />
&lt;/mx:VBox&gt;<br />
&lt;/mx:HBox&gt;</p>
<p>&lt;/mx:Panel&gt;<br />
&lt;/mx:Application&gt;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/preedagrace.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/preedagrace.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/preedagrace.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/preedagrace.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/preedagrace.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/preedagrace.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/preedagrace.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/preedagrace.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/preedagrace.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/preedagrace.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/preedagrace.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/preedagrace.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/preedagrace.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/preedagrace.wordpress.com/80/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=preedagrace.wordpress.com&amp;blog=8179793&amp;post=80&amp;subd=preedagrace&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://preedagrace.wordpress.com/2009/06/19/date-chooser/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/03f4cf73cb3ee228938fb2ee776ea10a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">preedagrace</media:title>
		</media:content>
	</item>
		<item>
		<title>Repeater</title>
		<link>http://preedagrace.wordpress.com/2009/06/19/repeater/</link>
		<comments>http://preedagrace.wordpress.com/2009/06/19/repeater/#comments</comments>
		<pubDate>Fri, 19 Jun 2009 08:24:41 +0000</pubDate>
		<dc:creator>preedagrace</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://preedagrace.wordpress.com/?p=77</guid>
		<description><![CDATA[Repeater: Repeater components are useful for repeating a small set of simple user interface components, such as RadioButton controls and other controls typically used in Form containers. Repetition is generally controlled by an array of dynamic data, such as an Array object returned from a web service, but you can use static arrays to emulate [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=preedagrace.wordpress.com&amp;blog=8179793&amp;post=77&amp;subd=preedagrace&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>Repeater:</strong></p>
<p><span><span><span><span>Repeat</span>er</span></span><span> components are useful for <span>repeat</span>ing a small set of simple user interface  components, such as RadioButton controls and other controls typically used in  Form containers. Repetition is generally controlled by an array of dynamic data,  such as an Array object returned from a web service, but you can use static  arrays to emulate simple </span></span>for loops.</p>
<p><span>Although <span><span><span>Repeat</span>er</span></span> components  look like containers in your code, they are not containers and have none of the  automatic layout functionality of containers. Their sole purpose is to specify a  series of subcomponents to include in your application one or more times based  on the contents of a specified data provider. To align items that a <span><span><span>repeat</span>er</span></span> generates or perform any  other layout task, place the <span><span><span>Repeat</span>er</span></span> component and its contents  inside a container and apply the layout to that container.</span></p>
<p><span>Flex also supports HorizontalList, TileList, and List controls that  provide better performance when you are displaying large amounts of data. Unlike  the <span><span><span>Repeat</span>er</span></span><span> component, which  instantiates all objects that are <span>repeat</span>ed, the HorizontalList, TileList, and List  controls instantiate only objects visible in the list. If your data extends past  a single screen or the visible space within any of its containers, you should  use one of the list controls.</span></span></p>
<p>The HorizontalList control is a list control that displays data horizontally,  much like the HBox container. The HorizontalList control always displays items  from left to right. For more information, see HorizontalList control.</p>
<p>The TileList control is a list control that displays data in a tile layout,  much like the Tile container. The TileList control provides a direction</p>
<p>property that determines if the next item is down  or to the right.</p>
<p><strong>Coding:</strong></p>
<p>&lt;?xml version=&#8221;1.0&#8243;?&gt;<br />
&lt;mx:Application xmlns:mx=&#8221;http://www.adobe.com/2006/mxml&#8221;&gt;</p>
<p>&lt;mx:Script&gt;<br />
&lt;![CDATA[</p>
<p>import mx.controls.Alert;</p>
<p>[Bindable]<br />
private var dp:Array = [1, 2, 3, 4, 5, 6, 7, 8, 9];</p>
<p>]]&gt;<br />
&lt;/mx:Script&gt;</p>
<p>&lt;mx:Panel title=&#8221;Repeater Example&#8221; width=&#8221;75%&#8221; height=&#8221;75%&#8221;<br />
paddingTop=&#8221;10&#8243; paddingLeft=&#8221;10&#8243; paddingRight=&#8221;10&#8243; paddingBottom=&#8221;10&#8243;&gt;</p>
<p>&lt;mx:Text width=&#8221;100%&#8221; color=&#8221;blue&#8221;<br />
text=&#8221;Use the Repeater class to create 9 Button controls in a 3 by 3 Tile container.&#8221;/&gt;</p>
<p>&lt;mx:Tile direction=&#8221;horizontal&#8221; borderStyle=&#8221;inset&#8221;<br />
horizontalGap=&#8221;10&#8243; verticalGap=&#8221;15&#8243;<br />
paddingLeft=&#8221;10&#8243; paddingTop=&#8221;10&#8243; paddingBottom=&#8221;10&#8243; paddingRight=&#8221;10&#8243;&gt;</p>
<p>&lt;mx:Repeater id=&#8221;rp&#8221; dataProvider=&#8221;{dp}&#8221;&gt;<br />
&lt;mx:Button height=&#8221;49&#8243; width=&#8221;50&#8243;<br />
label=&#8221;{String(rp.currentItem)}&#8221;<br />
click=&#8221;Alert.show(String(event.currentTarget.getRepeaterItem()) + &#8216; pressed&#8217;)&#8221;/&gt;<br />
&lt;/mx:Repeater&gt;<br />
&lt;/mx:Tile&gt;</p>
<p>&lt;/mx:Panel&gt;<br />
&lt;/mx:Application&gt;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/preedagrace.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/preedagrace.wordpress.com/77/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/preedagrace.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/preedagrace.wordpress.com/77/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/preedagrace.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/preedagrace.wordpress.com/77/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/preedagrace.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/preedagrace.wordpress.com/77/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/preedagrace.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/preedagrace.wordpress.com/77/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/preedagrace.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/preedagrace.wordpress.com/77/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/preedagrace.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/preedagrace.wordpress.com/77/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=preedagrace.wordpress.com&amp;blog=8179793&amp;post=77&amp;subd=preedagrace&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://preedagrace.wordpress.com/2009/06/19/repeater/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/03f4cf73cb3ee228938fb2ee776ea10a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">preedagrace</media:title>
		</media:content>
	</item>
		<item>
		<title>View Stack</title>
		<link>http://preedagrace.wordpress.com/2009/06/19/view-stack/</link>
		<comments>http://preedagrace.wordpress.com/2009/06/19/view-stack/#comments</comments>
		<pubDate>Fri, 19 Jun 2009 08:18:55 +0000</pubDate>
		<dc:creator>preedagrace</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://preedagrace.wordpress.com/?p=75</guid>
		<description><![CDATA[View stack A ViewStack navigator container is made up of a collection of child containers that are stacked on top of each other, with only one container visible, or active, at a time. The ViewStack container does not define a built-in mechanism for users to switch the currently active container; you must use a LinkBar, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=preedagrace.wordpress.com&amp;blog=8179793&amp;post=75&amp;subd=preedagrace&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>View stack</strong></p>
<p><span>A <span>View</span><span><span>Stack</span> navigator container is made  up of a collection of child containers that are <span>stack</span>ed on top of each other, with only one  container visible, or active, at a time. The </span><span>View</span><span><span>Stack</span> container does not define a built-in mechanism  for users to switch the currently active container; you must use a </span></span>LinkBar, TabBar, ButtonBar, or ToggleButtonBar control  or build the logic yourself in ActionScript to let users change the currently  active child. For example, you can define a set of Button controls that switch  among the child containers.</p>
<p><strong>coding:</strong></p>
<p>&lt;?xml version=&#8221;1.0&#8243;?&gt;</p>
<p>&lt;mx:Application xmlns:mx=&#8221;http://www.adobe.com/2006/mxml&#8221;&gt;</p>
<p>&lt;mx:VBox&gt;</p>
<p>&lt;mx:HBox borderStyle=&#8221;solid&#8221;&gt;</p>
<p>&lt;mx:Button id=&#8221;searchButton&#8221;<br />
label=&#8221;Search Screen&#8221;<br />
click=&#8221;myViewStack.selectedChild=search;&#8221;/&gt;</p>
<p>&lt;mx:Button id=&#8221;cInfoButton&#8221;<br />
label=&#8221;Customer Info Screen&#8221;<br />
click=&#8221;myViewStack.selectedChild=custInfo;&#8221;/&gt;</p>
<p>&lt;mx:Button id=&#8221;aInfoButton&#8221;<br />
label=&#8221;Account Info Screen&#8221;<br />
click=&#8221;myViewStack.selectedChild=accountInfo;&#8221;/&gt;<br />
&lt;/mx:HBox&gt;</p>
<p>&lt;mx:ViewStack id=&#8221;myViewStack&#8221;<br />
borderStyle=&#8221;solid&#8221; width=&#8221;100%&#8221;&gt;</p>
<p>&lt;mx:Canvas id=&#8221;search&#8221; label=&#8221;Search&#8221;&gt;<br />
&lt;mx:Label text=&#8221;Search Screen&#8221;/&gt;<br />
&lt;/mx:Canvas&gt;</p>
<p>&lt;mx:Canvas id=&#8221;custInfo&#8221; label=&#8221;Customer Info&#8221;&gt;<br />
&lt;mx:Label text=&#8221;Customer Info&#8221;/&gt;<br />
&lt;/mx:Canvas&gt;</p>
<p>&lt;mx:Canvas id=&#8221;accountInfo&#8221; label=&#8221;Account Info&#8221;&gt;<br />
&lt;mx:Label text=&#8221;Account Info&#8221;/&gt;<br />
&lt;/mx:Canvas&gt;<br />
&lt;/mx:ViewStack&gt;<br />
&lt;/mx:VBox&gt;<br />
&lt;/mx:Application&gt;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/preedagrace.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/preedagrace.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/preedagrace.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/preedagrace.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/preedagrace.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/preedagrace.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/preedagrace.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/preedagrace.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/preedagrace.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/preedagrace.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/preedagrace.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/preedagrace.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/preedagrace.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/preedagrace.wordpress.com/75/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=preedagrace.wordpress.com&amp;blog=8179793&amp;post=75&amp;subd=preedagrace&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://preedagrace.wordpress.com/2009/06/19/view-stack/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/03f4cf73cb3ee228938fb2ee776ea10a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">preedagrace</media:title>
		</media:content>
	</item>
		<item>
		<title>Sequence</title>
		<link>http://preedagrace.wordpress.com/2009/06/19/sequence/</link>
		<comments>http://preedagrace.wordpress.com/2009/06/19/sequence/#comments</comments>
		<pubDate>Fri, 19 Jun 2009 06:05:06 +0000</pubDate>
		<dc:creator>preedagrace</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://preedagrace.wordpress.com/2009/06/19/sequence/</guid>
		<description><![CDATA[Sequence The Sequence effect plays multiple child effects one after the other, in the order in which they are added. Starting a composite effect in ActionScript is usually a five-step process: Create instances of the effect objects to be composited together; for example: myFadeEffect = new mx.effects.Fade(target); Set properties, such as duration, on the individual [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=preedagrace.wordpress.com&amp;blog=8179793&amp;post=72&amp;subd=preedagrace&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Sequence</p>
<p>The Sequence effect plays multiple child effects one after the other, in the  order in which they are added.</p>
<p>Starting a composite effect in ActionScript is usually a five-step  process:</p>
<ol>
<li>Create instances of the effect objects to be composited together; for  example:
<pre>myFadeEffect = new mx.effects.Fade(target);</pre>
</li>
<li>Set properties, such as <code>duration</code>, on the individual effect  objects.</li>
<li>Create an instance of the Sequence effect object; for example:
<pre>mySequenceEffect = new mx.effects.Sequence();</pre>
</li>
<li>Call the <code>addChild()</code> method for each of the effect objects; for  example:
<pre>mySequenceEffect.addChild(myFadeEffect);</pre>
</li>
<li>Invoke the Sequence effect&#8217;s <code>play()</code> method; for example:
<pre>mySequenceEffect.play()</pre>
</li>
</ol>
<p>&lt;?xml version=&#8221;1.0&#8243; encoding=&#8221;utf-8&#8243;?&gt;</p>
<p>&lt;mx:Application xmlns:mx=&#8221;http://www.adobe.com/2006/mxml&#8221;&gt;</p>
<p>&lt;mx:Script&gt;<br />
&lt;![CDATA[<br />
import mx.effects.easing.*;<br />
]]&gt;<br />
&lt;/mx:Script&gt;</p>
<p>&lt;mx:Sequence id=&#8221;movePauseMove&#8221;&gt;<br />
&lt;mx:Move xBy=&#8221;150&#8243; duration=&#8221;2000&#8243; easingFunction=&#8221;Bounce.easeOut&#8221;/&gt;<br />
&lt;mx:Pause duration=&#8221;2000&#8243;/&gt;<br />
&lt;mx:Move xBy=&#8221;-150&#8243; duration=&#8221;2000&#8243; easingFunction=&#8221;Bounce.easeIn&#8221;/&gt;<br />
&lt;/mx:Sequence&gt;</p>
<p>&lt;mx:Panel title=&#8221;Sequence Effect Example&#8221; width=&#8221;75%&#8221; height=&#8221;75%&#8221;<br />
paddingTop=&#8221;10&#8243; paddingLeft=&#8221;10&#8243; paddingRight=&#8221;10&#8243; paddingBottom=&#8221;10&#8243;&gt;</p>
<p>&lt;mx:Text width=&#8221;100%&#8221; color=&#8221;blue&#8221;<br />
text=&#8221;Click the phone image to start the Sequence effect. The effect pauses for 2 seconds between moves.&#8221;/&gt;</p>
<p>&lt;mx:Image<br />
source=&#8221;@Embed(source=&#8217;assets/Nokia_6630.png&#8217;)&#8221;<br />
mouseDownEffect=&#8221;{movePauseMove}&#8221;/&gt;</p>
<p>&lt;/mx:Panel&gt;<br />
&lt;/mx:Application&gt;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/preedagrace.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/preedagrace.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/preedagrace.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/preedagrace.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/preedagrace.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/preedagrace.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/preedagrace.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/preedagrace.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/preedagrace.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/preedagrace.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/preedagrace.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/preedagrace.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/preedagrace.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/preedagrace.wordpress.com/72/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=preedagrace.wordpress.com&amp;blog=8179793&amp;post=72&amp;subd=preedagrace&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://preedagrace.wordpress.com/2009/06/19/sequence/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/03f4cf73cb3ee228938fb2ee776ea10a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">preedagrace</media:title>
		</media:content>
	</item>
		<item>
		<title>Tab Bar</title>
		<link>http://preedagrace.wordpress.com/2009/06/18/tab-bar/</link>
		<comments>http://preedagrace.wordpress.com/2009/06/18/tab-bar/#comments</comments>
		<pubDate>Thu, 18 Jun 2009 11:46:43 +0000</pubDate>
		<dc:creator>preedagrace</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://preedagrace.wordpress.com/?p=70</guid>
		<description><![CDATA[Tab Bar: As with the LinkBar control, you can use a TabBar control to control the active child container of a ViewStack container. The syntax for using a TabBar control to control the active child of a ViewStack container is the same as for a LinkBar control. For an example, see ViewStack navigator container. While [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=preedagrace.wordpress.com&amp;blog=8179793&amp;post=70&amp;subd=preedagrace&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Tab Bar:<br />
As with the LinkBar control, you can use a TabBar control to control the active child container of a ViewStack container. The syntax for using a TabBar control to control the active child of a ViewStack container is the same as for a LinkBar control. For an example, see ViewStack navigator container.</p>
<p>While a TabBar control is similar to a TabNavigator container, it does not have any children. For example, you use the tabs of a TabNavigator container to select its visible child container. You can use a TabBar control to set the visible contents of a single container to make that container’s children visible or invisible based on the selected tab.</p>
<p>Creating a TabBar control<br />
You use the tag to define aTabBar control in MXML. Specify an id value if you intend to refer to a component elsewhere in your MXML, either in another tag or in an ActionScript block.</p>
<p>You specify the data for the TabBar control by using the and child tags of the tag. The tag lets you specify data in several different ways. In the simplest case for creating a TabBar control, you use the , , and tags to specify the text for each tab.</p>
<p>Coding</p>
<p>&lt;?xml version=&#8221;1.0&#8243;?&gt;<br />
&lt;mx:Application xmlns:mx=&#8221;http://www.adobe.com/2006/mxml&#8221;&gt;<br />
&lt;mx:Script&gt;<br />
&lt;![CDATA[<br />
import mx.collections.ArrayCollection;</p>
<p>[Bindable]<br />
private var STATE_ARRAY:ArrayCollection = new ArrayCollection([<br />
{label:"Alabama", data:"Montgomery"},<br />
{label:"Alaska", data:"Juneau"},<br />
{label:"Arkansas", data:"LittleRock"}<br />
]);<br />
]]&gt;<br />
&lt;/mx:Script&gt;</p>
<p>&lt;mx:TabBar &gt;<br />
&lt;mx:dataProvider&gt;<br />
{STATE_ARRAY}<br />
&lt;/mx:dataProvider&gt;<br />
&lt;/mx:TabBar&gt;<br />
&lt;/mx:Application&gt;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/preedagrace.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/preedagrace.wordpress.com/70/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/preedagrace.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/preedagrace.wordpress.com/70/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/preedagrace.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/preedagrace.wordpress.com/70/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/preedagrace.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/preedagrace.wordpress.com/70/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/preedagrace.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/preedagrace.wordpress.com/70/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/preedagrace.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/preedagrace.wordpress.com/70/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/preedagrace.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/preedagrace.wordpress.com/70/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=preedagrace.wordpress.com&amp;blog=8179793&amp;post=70&amp;subd=preedagrace&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://preedagrace.wordpress.com/2009/06/18/tab-bar/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/03f4cf73cb3ee228938fb2ee776ea10a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">preedagrace</media:title>
		</media:content>
	</item>
		<item>
		<title>List control</title>
		<link>http://preedagrace.wordpress.com/2009/06/18/list-control/</link>
		<comments>http://preedagrace.wordpress.com/2009/06/18/list-control/#comments</comments>
		<pubDate>Thu, 18 Jun 2009 11:40:05 +0000</pubDate>
		<dc:creator>preedagrace</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://preedagrace.wordpress.com/?p=66</guid>
		<description><![CDATA[List control: The List control displays a vertical list of items. Its functionality is very similar to that of the SELECT form element in HTML. It often contains a vertical scroll bar that lets users access the items in the list. An optional horizontal scroll bar lets users view items when the full width of [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=preedagrace.wordpress.com&amp;blog=8179793&amp;post=66&amp;subd=preedagrace&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>List control:<br />
The List control displays a vertical list of items. Its functionality is very similar to that of the SELECT form element in HTML. It often contains a vertical scroll bar that lets users access the items in the list. An optional horizontal scroll bar lets users view items when the full width of the list items is unlikely to fit. The user can select one or more items from the list. If there are more items than can be displayed at once, it can display a vertical scroll bar so the user can access all items in the list. An optional horizontal scroll bar lets the user view items when the full width of the list items is unlikely to fit. The user can select one or more items from the list, depending on the value of the allowMultipleSelection property.</p>
<p>codings:</p>
<p>&lt;?xml version=&#8221;1.0&#8243;?&gt;<br />
&lt;!&#8211; Simple example to demonstrate the List Control &#8211;&gt;<br />
&lt;mx:Application xmlns:mx=&#8221;http://www.adobe.com/2006/mxml&#8221;&gt;</p>
<p>&lt;mx:Script&gt;<br />
&lt;![CDATA[<br />
[Bindable]<br />
public var selectedItem:Object;<br />
]]&gt;<br />
&lt;/mx:Script&gt;</p>
<p>&lt;mx:Model id=&#8221;mystates&#8221;&gt;<br />
&lt;states&gt;<br />
&lt;state label=&#8221;Alabama&#8221; data=&#8221;AL&#8221;/&gt;<br />
&lt;state label=&#8221;Alaska&#8221; data=&#8221;AK&#8221;/&gt;<br />
&lt;state label=&#8221;Arizona&#8221; data=&#8221;AZ&#8221;/&gt;<br />
&lt;state label=&#8221;Arkansas&#8221; data=&#8221;AR&#8221;/&gt;<br />
&lt;state label=&#8221;California&#8221; data=&#8221;CA&#8221;/&gt;<br />
&lt;state label=&#8221;Colorado&#8221; data=&#8221;CO&#8221;/&gt;<br />
&lt;state label=&#8221;Connecticut&#8221; data=&#8221;CT&#8221;/&gt;<br />
&lt;/states&gt;<br />
&lt;/mx:Model&gt;</p>
<p>&lt;mx:Panel title=&#8221;List Control &#8221; height=&#8221;75%&#8221; width=&#8221;75%&#8221;<br />
paddingTop=&#8221;10&#8243; paddingBottom=&#8221;10&#8243; paddingLeft=&#8221;10&#8243; paddingRight=&#8221;10&#8243;&gt;</p>
<p>&lt;mx:Label text=&#8221;Select a state to see its abbreviation.&#8221;/&gt;</p>
<p>&lt;mx:List id=&#8221;source&#8221; width=&#8221;100%&#8221; color=&#8221;blue&#8221;<br />
dataProvider=&#8221;{mystates.state}&#8221;<br />
change=&#8221;this.selectedItem=List(event.target).selectedItem&#8221;/&gt;</p>
<p>&lt;mx:VBox width=&#8221;100%&#8221;&gt;<br />
&lt;mx:Label text=&#8221;Selected State: {selectedItem.label}&#8221;/&gt;<br />
&lt;mx:Label text=&#8221;State abbreviation: {selectedItem.data}&#8221;/&gt;<br />
&lt;/mx:VBox&gt;</p>
<p>&lt;/mx:Panel&gt;<br />
&lt;/mx:Application&gt;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/preedagrace.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/preedagrace.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/preedagrace.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/preedagrace.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/preedagrace.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/preedagrace.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/preedagrace.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/preedagrace.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/preedagrace.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/preedagrace.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/preedagrace.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/preedagrace.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/preedagrace.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/preedagrace.wordpress.com/66/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=preedagrace.wordpress.com&amp;blog=8179793&amp;post=66&amp;subd=preedagrace&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://preedagrace.wordpress.com/2009/06/18/list-control/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/03f4cf73cb3ee228938fb2ee776ea10a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">preedagrace</media:title>
		</media:content>
	</item>
		<item>
		<title>Application Container</title>
		<link>http://preedagrace.wordpress.com/2009/06/18/application-container/</link>
		<comments>http://preedagrace.wordpress.com/2009/06/18/application-container/#comments</comments>
		<pubDate>Thu, 18 Jun 2009 08:33:15 +0000</pubDate>
		<dc:creator>preedagrace</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://preedagrace.wordpress.com/?p=43</guid>
		<description><![CDATA[Application Container: Adobe® Flex™defines a default Application container that lets you start adding content to your application without having to explicitly define another container. Flex defines any MXML file that contains an tag as an Application object. For more information, see About the Application object. The Application container supports an application preloader that uses a [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=preedagrace.wordpress.com&amp;blog=8179793&amp;post=43&amp;subd=preedagrace&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Application Container: Adobe® Flex™defines a default Application container that lets you start adding content to your application without having to explicitly define another container.   Flex defines any MXML file that contains an  tag as an Application object. For more information, see About the Application object.  The Application container supports an application preloader that uses a progress bar to show the download progress of an application SWF file. You can override the default progress bar to define your own custom progress bar</p>
<p>Flex defines an <span><span><span><span>Applic</span>ation</span></span></span><span><span> <span><span><span>contain</span>er</span></span> that serves as the default  <span><span><span>contain</span>er</span></span> for any content that you add  to your </span><span><span><span>applic</span>ation</span></span><span>.  Flex creates this <span><span><span>contain</span>er</span></span> from the </span></span><span>&lt;mx:<span><span><span>Applic</span>ation</span></span>&gt;</span><span> tag, which must be the first tag in an MXML <span><span><span>applic</span>ation</span></span> file. The <span><span><span>Applic</span>ation</span></span> object is the default  scope for any ActionScript code in the file, and the </span><span>&lt;mx:<span><span><span>Applic</span>ation</span></span>&gt;</span><span> tag defines the initial size of the <span><span><span>applic</span>ation</span></span>. </span></p>
<p><span>Although you may find it convenient to use the <span><span><span>Applic</span>ation</span></span><span> <span><span><span>contain</span>er</span></span> as the only <span><span><span>contain</span>er</span></span> in your </span><span><span><span>applic</span>ation</span></span><span>, usually you  explicitly define at least one more <span><span><span>contain</span>er</span></span> before you add any controls  to your </span><span><span><span>applic</span>ation</span></span><span>.  Often, you use a Panel <span><span><span>contain</span>er</span></span> as the  first <span><span><span>contain</span>er</span></span> after the </span></span><span>&lt;mx:<span><span><span>Applic</span>ation</span></span>&gt;</span>tag.</p>
<p><strong>Codings</strong></p>
<p>&lt;?xml version=&#8221;1.0&#8243; encoding=&#8221;utf-8&#8243;?&gt;<br />
&lt;mx:Application xmlns:mx=&#8221;http://www.adobe.com/2006/mxml&#8221;<br />
backgroundGradientColors=&#8221;[0xCCCCCC, 0x66CCFF]&#8220;<br />
backgroundColor=&#8221;0xCCCCCC&#8221;<br />
horizontalAlign=&#8221;center&#8221; verticalAlign=&#8221;center&#8221;<br />
applicationComplete=&#8221;appComplete();&#8221;&gt;</p>
<p>&lt;mx:Script&gt;<br />
&lt;![CDATA[<br />
private function appComplete():void {<br />
myTA.text+="Application creation complete" + "\n";<br />
}</p>
<p>private function panelCreationComplete():void {<br />
myTA.text+="Panel creation complete" + "\n";<br />
}</p>
<p>private function textAreaCreationComplete():void {<br />
myTA.text+="\n" + "TextArea creation complete" + "\n";<br />
}<br />
]]&gt;<br />
&lt;/mx:Script&gt;</p>
<p>&lt;mx:ApplicationControlBar dock=&#8221;true&#8221;&gt;<br />
&lt;mx:Button label=&#8221;Set Solid Fill&#8221;<br />
click=&#8221;this.setStyle(&#8216;backgroundGradientColors&#8217;, [0xCCCCCC, 0xCCCCCC]);&#8221;/&gt;<br />
&lt;mx:Button label=&#8221;Set Gradient Fill&#8221;<br />
click=&#8221;this.setStyle(&#8216;backgroundGradientColors&#8217;, [0xCCCCCC, 0x66CCFF]);&#8221;/&gt;<br />
&lt;/mx:ApplicationControlBar&gt;</p>
<p>&lt;mx:Panel title=&#8221;Application Container Example&#8221; backgroundColor=&#8221;0x9CB0BA&#8221;<br />
width=&#8221;75%&#8221; height=&#8221;75%&#8221;<br />
creationComplete=&#8221;panelCreationComplete();&#8221;&gt;</p>
<p>&lt;mx:TextArea id=&#8221;myTA&#8221; height=&#8221;100%&#8221; width=&#8221;100%&#8221;<br />
text=&#8221;Event order: &#8220;<br />
creationComplete=&#8221;textAreaCreationComplete();&#8221;/&gt;</p>
<p>&lt;/mx:Panel&gt;<br />
&lt;/mx:Application&gt;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/preedagrace.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/preedagrace.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/preedagrace.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/preedagrace.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/preedagrace.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/preedagrace.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/preedagrace.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/preedagrace.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/preedagrace.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/preedagrace.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/preedagrace.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/preedagrace.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/preedagrace.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/preedagrace.wordpress.com/43/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=preedagrace.wordpress.com&amp;blog=8179793&amp;post=43&amp;subd=preedagrace&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://preedagrace.wordpress.com/2009/06/18/application-container/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/03f4cf73cb3ee228938fb2ee776ea10a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">preedagrace</media:title>
		</media:content>
	</item>
		<item>
		<title>Slider Control</title>
		<link>http://preedagrace.wordpress.com/2009/06/18/slider-control-2/</link>
		<comments>http://preedagrace.wordpress.com/2009/06/18/slider-control-2/#comments</comments>
		<pubDate>Thu, 18 Jun 2009 08:11:15 +0000</pubDate>
		<dc:creator>preedagrace</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://preedagrace.wordpress.com/?p=41</guid>
		<description><![CDATA[Slider Control The Slider class is the base class for the Flex slider controls. The slider controls let users select a value by moving a slider thumb between the end points of the slider track. The current value of the slider is determined by the relative location of the thumb between the end points of [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=preedagrace.wordpress.com&amp;blog=8179793&amp;post=41&amp;subd=preedagrace&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>Slider Control</strong></p>
<p>The Slider class is the base class for the Flex slider controls. The slider  controls let users select a value by moving a slider thumb between the end  points of the slider track. The current value of the slider is determined by the  relative location of the thumb between the end points of the slider,  corresponding to the slider&#8217;s minimum and maximum values. The Slider class is  subclassed by HSlider and VSlider.</p>
<p><strong>coding:</strong></p>
<p>&lt;?xml version=&#8221;1.0&#8243;?&gt;<br />
&lt;mx:Application xmlns:mx=&#8221;http://www.adobe.com/2006/mxml&#8221;&gt;</p>
<p>&lt;mx:HBox&gt;<br />
&lt;mx:VBox&gt;<br />
&lt;mx:HSlider<br />
tickInterval=&#8221;2&#8243;<br />
labels=&#8221;['min', 'max']&#8221; height=&#8221;150&#8243;/&gt;<br />
&lt;mx:HSlider /&gt;<br />
&lt;mx:HSlider<br />
maximum=&#8221;100&#8243;<br />
snapInterval=&#8221;5&#8243;<br />
tickInterval=&#8221;25&#8243;<br />
labels=&#8221;[0,25,50,75,100]&#8220;/&gt;</p>
<p>&lt;/mx:VBox&gt;</p>
<p>&lt;mx:VSlider<br />
tickInterval=&#8221;2&#8243;<br />
labels=&#8221;['min', 'max']&#8220;/&gt;<br />
&lt;/mx:HBox&gt;<br />
&lt;/mx:Application&gt;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/preedagrace.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/preedagrace.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/preedagrace.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/preedagrace.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/preedagrace.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/preedagrace.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/preedagrace.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/preedagrace.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/preedagrace.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/preedagrace.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/preedagrace.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/preedagrace.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/preedagrace.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/preedagrace.wordpress.com/41/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=preedagrace.wordpress.com&amp;blog=8179793&amp;post=41&amp;subd=preedagrace&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://preedagrace.wordpress.com/2009/06/18/slider-control-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/03f4cf73cb3ee228938fb2ee776ea10a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">preedagrace</media:title>
		</media:content>
	</item>
	</channel>
</rss>
