<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>The World In A State of Flex</title>
	
	<link>http://unitedmindset.com/jonbcampos</link>
	<description>Jonathan Campos's Blog about Flex and the Flash Platform</description>
	<lastBuildDate>Thu, 02 Sep 2010 14:09:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/TheWorldInAStateOfFlex" /><feedburner:info uri="theworldinastateofflex" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>Air for Android: Accelerometer</title>
		<link>http://feedproxy.google.com/~r/TheWorldInAStateOfFlex/~3/gp7AAgq1vU8/</link>
		<comments>http://unitedmindset.com/jonbcampos/2010/09/01/air-for-android-accelerometer/#comments</comments>
		<pubDate>Wed, 01 Sep 2010 14:00:57 +0000</pubDate>
		<dc:creator>Jonathan Campos</dc:creator>
				<category><![CDATA[Air for Android]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[accelerometer]]></category>
		<category><![CDATA[air for android]]></category>

		<guid isPermaLink="false">http://unitedmindset.com/jonbcampos/?p=1957</guid>
		<description><![CDATA[When I first started playing with AIR for Android immediately I wanted to make the best mobile game ever. That&#8217;s right&#8230; Wooden Ball in a Cup! Of course this would be made possible by the Accelerometer built into the Android device. With it I can get controls and user interactions based on how the user [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://unitedmindset.com/jonbcampos/wp-content/uploads/2010/08/941514-ballinacup_super-300x225.jpg" alt="" title="941514-ballinacup_super" width="300" height="225" class="alignright size-medium wp-image-2004" />When I first started playing with AIR for Android immediately I wanted to make the best mobile game ever. That&#8217;s right&#8230; Wooden Ball in a Cup!</p>
<p>Of course this would be made possible by the Accelerometer built into the Android device. With it I can get controls and user interactions based on how the user interacts with the device itself not just screen controls.</p>
<blockquote><p>
If you are starting with this post I recommend actually starting with a previous post introducing <a href="http://unitedmindset.com/jonbcampos/2010/07/19/android-mobile-development/">AIR for Android Development</a>. There is a ANT file there that you will want to have.
</p></blockquote>
<p><span id="more-1957"></span><br />
<strong>Memory, Power, and Performance Considerations</strong><br />
When first making this test app I felt that with as small as it is that I wouldn&#8217;t have to worry about performance concerns. Running the app it was choppy and the refresh rate was terrible. </p>
<p>At the time I was updating the position of the &#8220;ball&#8221; on every accelerometer update event. So I changed the ball move to be on the enter frame event. BAM! Immediately the app was running smooth. Quick lesson number 1.</p>
<p>Next thing that I did was to cache the ball bitmap. Since I don&#8217;t rotate the ball and don&#8217;t mess with the balls alpha channel the ball is a perfect candidate for bitmap caching. There was a small visual improvement on this change but the lions share was on the enter frame change.</p>
<p>Like <a href="http://unitedmindset.com/jonbcampos/2010/08/30/air-for-android-geolocation/">Geolocation</a> the accelerometer has the <em>setRequestedUpdateInterval</em> method. I recommend playing with this interval and finding what makes sense for your application. Too often and you&#8217;re killing battery and performance. To infrequent and your updates may not do what you want. Again, play with this interval and see what works for you.</p>
<p><strong>Accelerometer App</strong><br />
The app itself is really simple. Make sure to check out the section that I enable accelerometer support and see how I made sure to check that the device supports the accelerometer before using it. The function that I used to actually move the ball isn&#8217;t anything special and just meant to make the movement seem natural. You&#8217;ll definitely want to make your own function for your application.</p>
<div class="codecolorer-container text dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:300px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br />25<br />26<br />27<br />28<br />29<br />30<br />31<br />32<br />33<br />34<br />35<br />36<br />37<br />38<br />39<br />40<br />41<br />42<br />43<br />44<br />45<br />46<br />47<br />48<br />49<br />50<br />51<br />52<br />53<br />54<br />55<br />56<br />57<br />58<br />59<br />60<br />61<br />62<br />63<br />64<br />65<br />66<br />67<br />68<br />69<br />70<br />71<br />72<br />73<br />74<br />75<br />76<br />77<br />78<br />79<br />80<br />81<br />82<br />83<br />84<br />85<br />86<br />87<br />88<br />89<br />90<br />91<br />92<br />93<br />94<br />95<br />96<br />97<br />98<br />99<br />100<br />101<br />102<br />103<br />104<br />105<br />106<br />107<br />108<br />109<br />110<br />111<br />112<br />113<br />114<br />115<br />116<br />117<br />118<br />119<br />120<br />121<br />122<br />123<br />124<br />125<br />126<br />127<br />128<br />129<br />130<br />131<br />132<br />133<br />134<br />135<br />136<br />137<br />138<br />139<br />140<br />141<br />142<br />143<br />144<br />145<br />146<br />147<br />148<br />149<br />150<br />151<br />152<br />153<br />154<br />155<br />156<br />157<br />158<br />159<br />160<br />161<br />162<br />163<br />164<br />165<br />166<br />167<br />168<br />169<br />170<br />171<br />172<br />173<br />174<br />175<br />176<br />177<br />178<br />179<br />180<br />181<br />182<br />183<br />184<br />185<br />186<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">package<br />
{<br />
&nbsp; &nbsp; import flash.display.Sprite;<br />
&nbsp; &nbsp; import flash.display.StageAlign;<br />
&nbsp; &nbsp; import flash.display.StageScaleMode;<br />
&nbsp; &nbsp; import flash.events.AccelerometerEvent;<br />
&nbsp; &nbsp; import flash.events.Event;<br />
&nbsp; &nbsp; import flash.sensors.Accelerometer;<br />
&nbsp; &nbsp; import flash.text.TextField;<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; public class Accel extends Sprite<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; //---------------------------------------------------------------------<br />
&nbsp; &nbsp; &nbsp; &nbsp; //<br />
&nbsp; &nbsp; &nbsp; &nbsp; // &nbsp;Constructor<br />
&nbsp; &nbsp; &nbsp; &nbsp; //<br />
&nbsp; &nbsp; &nbsp; &nbsp; //---------------------------------------------------------------------<br />
&nbsp; &nbsp; &nbsp; &nbsp; public function Accel()<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //setup stage<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; stage.scaleMode = StageScaleMode.NO_SCALE;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; stage.align = StageAlign.TOP_LEFT;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //add handlers<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; addEventListener(Event.ADDED_TO_STAGE, _onAddedToStage);<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; //---------------------------------------------------------------------<br />
&nbsp; &nbsp; &nbsp; &nbsp; //<br />
&nbsp; &nbsp; &nbsp; &nbsp; // &nbsp;Private Properties<br />
&nbsp; &nbsp; &nbsp; &nbsp; //<br />
&nbsp; &nbsp; &nbsp; &nbsp; //---------------------------------------------------------------------<br />
&nbsp; &nbsp; &nbsp; &nbsp; private var _ball:Sprite;<br />
&nbsp; &nbsp; &nbsp; &nbsp; private var _accel:Accelerometer;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; private var _text0:TextField;<br />
&nbsp; &nbsp; &nbsp; &nbsp; private var _text1:TextField;<br />
&nbsp; &nbsp; &nbsp; &nbsp; private var _text2:TextField;<br />
&nbsp; &nbsp; &nbsp; &nbsp; private var _text3:TextField;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; private var _accelX:Number;<br />
&nbsp; &nbsp; &nbsp; &nbsp; private var _accelY:Number;<br />
&nbsp; &nbsp; &nbsp; &nbsp; private var _accelZ:Number;<br />
&nbsp; &nbsp; &nbsp; &nbsp; //---------------------------------------------------------------------<br />
&nbsp; &nbsp; &nbsp; &nbsp; //<br />
&nbsp; &nbsp; &nbsp; &nbsp; // &nbsp;Protected Methods<br />
&nbsp; &nbsp; &nbsp; &nbsp; //<br />
&nbsp; &nbsp; &nbsp; &nbsp; //---------------------------------------------------------------------<br />
&nbsp; &nbsp; &nbsp; &nbsp; protected function createChildren():void<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //ball<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(!_ball)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _createBall();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _ball.x = width/2;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _ball.y = height/2;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; addChild(_ball);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //text 0<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(!_text0)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _text0 = new TextField();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _text0.x = 10;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _text0.y = 10;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _text0.width = 200;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _text0.text = &quot;Accelerometer support: false&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; addChild(_text0);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //text 1<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(!_text1)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _text1 = new TextField();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _text1.x = 10;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _text1.y = 30;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _text1.width = 200;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _text1.text = &quot;accelerationX: 0&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; addChild(_text1);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //text 2<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(!_text2)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _text2 = new TextField();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _text2.x = 10;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _text2.y = 50;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _text2.width = 200;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _text2.text = &quot;accelerationY: 0&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; addChild(_text2);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //text 3<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(!_text3)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _text3 = new TextField();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _text3.x = 10;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _text3.y = 70;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _text3.width = 200;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _text3.text = &quot;accelerationZ: 0&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; addChild(_text3);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; //---------------------------------------------------------------------<br />
&nbsp; &nbsp; &nbsp; &nbsp; //<br />
&nbsp; &nbsp; &nbsp; &nbsp; // &nbsp;Handler Methods<br />
&nbsp; &nbsp; &nbsp; &nbsp; //<br />
&nbsp; &nbsp; &nbsp; &nbsp; //---------------------------------------------------------------------<br />
&nbsp; &nbsp; &nbsp; &nbsp; private function _onAddedToStage(event:Event):void<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //removes listener<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; removeEventListener(Event.ADDED_TO_STAGE, _onAddedToStage);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //draws background<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _draw();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //creates children<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; createChildren();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //creates accelerometer<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _createAccelerometer();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //listen for enter frame<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; addEventListener(Event.ENTER_FRAME, _onEnterFrame);<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; private function _onEnterFrame(event:Event):void<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var diffX:Number = _ball.x - (_ball.x + _accelX * 100);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var diffY:Number = _ball.y - (_ball.y + _accelY * 100);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //keep in x bounds<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(_ball.x + diffX &lt; 0)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _ball.x = 0;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else if(_ball.x + diffX &gt; 480)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _ball.x = 480;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _ball.x += diffX;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //keep in y bounds<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(_ball.y - diffY &lt; 0)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _ball.y = 0;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else if(_ball.y - diffY &gt; 775)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _ball.y = 775;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _ball.y -= diffY;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //set text<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _text1.text = &quot;accelerationX: &quot;+_accelX;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _text2.text = &quot;accelerationY: &quot;+_accelY;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _text3.text = &quot;accelerationZ: &quot;+_accelZ;<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; private function _onAccel_UpdateHandler(event:AccelerometerEvent):void<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _accelX = event.accelerationX;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _accelY = event.accelerationY;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _accelZ = event.accelerationZ;<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; //---------------------------------------------------------------------<br />
&nbsp; &nbsp; &nbsp; &nbsp; //<br />
&nbsp; &nbsp; &nbsp; &nbsp; // &nbsp;Private Methods<br />
&nbsp; &nbsp; &nbsp; &nbsp; //<br />
&nbsp; &nbsp; &nbsp; &nbsp; //---------------------------------------------------------------------<br />
&nbsp; &nbsp; &nbsp; &nbsp; private function _createBall():void<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _ball = new Sprite();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _ball.graphics.clear();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _ball.graphics.beginFill(0x0000FF, 0.8);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _ball.graphics.drawCircle(0, 0, 20);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _ball.graphics.endFill();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _ball.cacheAsBitmap = true;<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; private function _draw():void<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; graphics.clear();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; graphics.beginFill(0xFFFFFF,1);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; graphics.drawRect(0, 0, 480, 800);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; graphics.endFill();<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; private function _createAccelerometer():void<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(Accelerometer.isSupported)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _accel = new Accelerometer();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _accel.setRequestedUpdateInterval(100);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _accel.addEventListener(AccelerometerEvent.UPDATE, _onAccel_UpdateHandler);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _text0.text = &quot;Accelerometer support: true&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; }<br />
}</div></td></tr></tbody></table></div>
<p><strong>Application Descriptor File</strong><br />
For accelerometer suppor you don&#8217;t have to do anything special to the application descriptor file. I just wanted to make sure to share it so you didn&#8217;t think I did anything funny. <img src='http://unitedmindset.com/jonbcampos/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<div class="codecolorer-container text dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:300px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br />25<br />26<br />27<br />28<br />29<br />30<br />31<br />32<br />33<br />34<br />35<br />36<br />37<br />38<br />39<br />40<br />41<br />42<br />43<br />44<br />45<br />46<br />47<br />48<br />49<br />50<br />51<br />52<br />53<br />54<br />55<br />56<br />57<br />58<br />59<br />60<br />61<br />62<br />63<br />64<br />65<br />66<br />67<br />68<br />69<br />70<br />71<br />72<br />73<br />74<br />75<br />76<br />77<br />78<br />79<br />80<br />81<br />82<br />83<br />84<br />85<br />86<br />87<br />88<br />89<br />90<br />91<br />92<br />93<br />94<br />95<br />96<br />97<br />98<br />99<br />100<br />101<br />102<br />103<br />104<br />105<br />106<br />107<br />108<br />109<br />110<br />111<br />112<br />113<br />114<br />115<br />116<br />117<br />118<br />119<br />120<br />121<br />122<br />123<br />124<br />125<br />126<br />127<br />128<br />129<br />130<br />131<br />132<br />133<br />134<br />135<br />136<br />137<br />138<br />139<br />140<br />141<br />142<br />143<br />144<br />145<br />146<br />147<br />148<br />149<br />150<br />151<br />152<br />153<br />154<br />155<br />156<br />157<br />158<br />159<br />160<br />161<br />162<br />163<br />164<br />165<br />166<br />167<br />168<br />169<br />170<br />171<br />172<br />173<br />174<br />175<br />176<br />177<br />178<br />179<br />180<br />181<br />182<br />183<br />184<br />185<br />186<br />187<br />188<br />189<br />190<br />191<br />192<br />193<br />194<br />195<br />196<br />197<br />198<br />199<br />200<br />201<br />202<br />203<br />204<br />205<br />206<br />207<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot; standalone=&quot;no&quot;?&gt;<br />
&lt;application xmlns=&quot;http://ns.adobe.com/air/application/2.5&quot;&gt;<br />
<br />
&lt;!-- Adobe AIR Application Descriptor File Template.<br />
<br />
&nbsp; &nbsp; Specifies parameters for identifying, installing, and launching AIR applications.<br />
<br />
&nbsp; &nbsp; xmlns - The Adobe AIR namespace: http://ns.adobe.com/air/application/2.5<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; The last segment of the namespace specifies the version <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; of the AIR runtime required for this application to run.<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; minimumPatchLevel - The minimum patch level of the AIR runtime required to run <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; the application. Optional.<br />
--&gt;<br />
<br />
&nbsp; &nbsp; &lt;!-- A universally unique application identifier. Must be unique across all AIR applications.<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Using a reverse DNS-style name as the id is recommended. (Eg. com.example.ExampleApplication.) Required. --&gt;<br />
&nbsp; &nbsp; &lt;id&gt;com.unitedmindset.Accel&lt;/id&gt;<br />
<br />
&nbsp; &nbsp; &lt;!-- Used as the filename for the application. Required. --&gt;<br />
&nbsp; &nbsp; &lt;filename&gt;Accel&lt;/filename&gt;<br />
<br />
&nbsp; &nbsp; &lt;!-- The name that is displayed in the AIR application installer. <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;May have multiple values for each language. See samples or xsd schema file. Optional. --&gt;<br />
&nbsp; &nbsp; &lt;name&gt;Accel&lt;/name&gt;<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; &lt;!-- A string value of the format &lt;0-999&gt;.&lt;0-999&gt;.&lt;0-999&gt; that represents application version which can be used to check for application upgrade. <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Values can also be 1-part or 2-part. It is not necessary to have a 3-part value.<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;An updated version of application must have a versionCode value higher than the previous version. Required for namespace &gt;= 2.5 . --&gt;<br />
&nbsp; &nbsp; &lt;versionNumber&gt;1.0.0&lt;/versionNumber&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />
&nbsp; &nbsp; &lt;!-- A string value (such as &quot;v1&quot;, &quot;2.5&quot;, or &quot;Alpha 1&quot;) that represents the version of the application, as it should be shown to users. Optional. --&gt;<br />
&nbsp; &nbsp; &lt;!-- &lt;versionLabel&gt;&lt;/versionLabel&gt; --&gt;<br />
<br />
&nbsp; &nbsp; &lt;!-- Description, displayed in the AIR application installer.<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;May have multiple values for each language. See samples or xsd schema file. Optional. --&gt;<br />
&nbsp; &nbsp; &lt;!-- &lt;description&gt;&lt;/description&gt; --&gt;<br />
<br />
&nbsp; &nbsp; &lt;!-- Copyright information. Optional --&gt;<br />
&nbsp; &nbsp; &lt;!-- &lt;copyright&gt;&lt;/copyright&gt; --&gt;<br />
<br />
&nbsp; &nbsp; &lt;!-- Publisher ID. Used if you're updating an application created prior to 1.5.3 --&gt;<br />
&nbsp; &nbsp; &lt;!-- &lt;publisherID&gt;&lt;/publisherID&gt; --&gt;<br />
<br />
&nbsp; &nbsp; &lt;!-- Settings for the application's initial window. Required. --&gt;<br />
&nbsp; &nbsp; &lt;initialWindow&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;!-- The main SWF or HTML file of the application. Required. --&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;!-- Note: In Flash Builder, the SWF reference is set automatically. --&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;content&gt;[This value will be overwritten by Flash Builder in the output app.xml]&lt;/content&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;!-- The title of the main window. Optional. --&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;!-- &lt;title&gt;&lt;/title&gt; --&gt;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;!-- The type of system chrome to use (either &quot;standard&quot; or &quot;none&quot;). Optional. Default standard. --&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;!-- &lt;systemChrome&gt;&lt;/systemChrome&gt; --&gt;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;!-- Whether the window is transparent. Only applicable when systemChrome is none. Optional. Default false. --&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;!-- &lt;transparent&gt;&lt;/transparent&gt; --&gt;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;!-- Whether the window is initially visible. Optional. Default false. --&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;visible&gt;true&lt;/visible&gt;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;!-- Whether the user can minimize the window. Optional. Default true. --&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;!-- &lt;minimizable&gt;&lt;/minimizable&gt; --&gt;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;!-- Whether the user can maximize the window. Optional. Default true. --&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;!-- &lt;maximizable&gt;&lt;/maximizable&gt; --&gt;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;!-- Whether the user can resize the window. Optional. Default true. --&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;resizable&gt;false&lt;/resizable&gt;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;!-- The window's initial width in pixels. Optional. --&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;width&gt;480&lt;/width&gt;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;!-- The window's initial height in pixels. Optional. --&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;height&gt;800&lt;/height&gt;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;!-- The window's initial x position. Optional. --&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;!-- &lt;x&gt;&lt;/x&gt; --&gt;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;!-- The window's initial y position. Optional. --&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;!-- &lt;y&gt;&lt;/y&gt; --&gt;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;!-- The window's minimum size, specified as a width/height pair in pixels, such as &quot;400 200&quot;. Optional. --&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;!-- &lt;minSize&gt;&lt;/minSize&gt; --&gt;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;!-- The window's initial maximum size, specified as a width/height pair in pixels, such as &quot;1600 1200&quot;. Optional. --&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;!-- &lt;maxSize&gt;&lt;/maxSize&gt; --&gt;<br />
&nbsp; &nbsp; &lt;/initialWindow&gt;<br />
<br />
&nbsp; &nbsp; &lt;!-- We recommend omitting the supportedProfiles element, --&gt;<br />
&nbsp; &nbsp; &lt;!-- which in turn permits your application to be deployed to all --&gt;<br />
&nbsp; &nbsp; &lt;!-- devices supported by AIR. If you wish to restrict deployment --&gt;<br />
&nbsp; &nbsp; &lt;!-- (i.e., to only mobile devices) then add this element and list --&gt;<br />
&nbsp; &nbsp; &lt;!-- only the profiles which your application does support. --&gt;<br />
&nbsp; &nbsp; &lt;!-- &lt;supportedProfiles&gt;desktop extendedDesktop mobileDevice extendedMobileDevice&lt;/supportedProfiles&gt; --&gt;<br />
<br />
&nbsp; &nbsp; &lt;!-- The subpath of the standard default installation location to use. Optional. --&gt;<br />
&nbsp; &nbsp; &lt;!-- &lt;installFolder&gt;&lt;/installFolder&gt; --&gt;<br />
<br />
&nbsp; &nbsp; &lt;!-- The subpath of the Programs menu to use. (Ignored on operating systems without a Programs menu.) Optional. --&gt;<br />
&nbsp; &nbsp; &lt;!-- &lt;programMenuFolder&gt;&lt;/programMenuFolder&gt; --&gt;<br />
<br />
&nbsp; &nbsp; &lt;!-- The icon the system uses for the application. For at least one resolution,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;specify the path to a PNG file included in the AIR package. Optional. --&gt;<br />
&nbsp; &nbsp; &lt;!-- &lt;icon&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;image16x16&gt;&lt;/image16x16&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;image32x32&gt;&lt;/image32x32&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;image48x48&gt;&lt;/image48x48&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;image128x128&gt;&lt;/image128x128&gt;<br />
&nbsp; &nbsp; &lt;/icon&gt; --&gt;<br />
<br />
&nbsp; &nbsp; &lt;!-- Whether the application handles the update when a user double-clicks an update version<br />
&nbsp; &nbsp; of the AIR file (true), or the default AIR application installer handles the update (false).<br />
&nbsp; &nbsp; Optional. Default false. --&gt;<br />
&nbsp; &nbsp; &lt;!-- &lt;customUpdateUI&gt;&lt;/customUpdateUI&gt; --&gt;<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; &lt;!-- Whether the application can be launched when the user clicks a link in a web browser.<br />
&nbsp; &nbsp; Optional. Default false. --&gt;<br />
&nbsp; &nbsp; &lt;!-- &lt;allowBrowserInvocation&gt;&lt;/allowBrowserInvocation&gt; --&gt;<br />
<br />
&nbsp; &nbsp; &lt;!-- Listing of file types for which the application can register. Optional. --&gt;<br />
&nbsp; &nbsp; &lt;!-- &lt;fileTypes&gt; --&gt;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;!-- Defines one file type. Optional. --&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;!-- &lt;fileType&gt; --&gt;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;!-- The name that the system displays for the registered file type. Required. --&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;!-- &lt;name&gt;&lt;/name&gt; --&gt;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;!-- The extension to register. Required. --&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;!-- &lt;extension&gt;&lt;/extension&gt; --&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;!-- The description of the file type. Optional. --&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;!-- &lt;description&gt;&lt;/description&gt; --&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;!-- The MIME content type. --&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;!-- &lt;contentType&gt;&lt;/contentType&gt; --&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;!-- The icon to display for the file type. Optional. --&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;!-- &lt;icon&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;image16x16&gt;&lt;/image16x16&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;image32x32&gt;&lt;/image32x32&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;image48x48&gt;&lt;/image48x48&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;image128x128&gt;&lt;/image128x128&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/icon&gt; --&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;!-- &lt;/fileType&gt; --&gt;<br />
&nbsp; &nbsp; &lt;!-- &lt;/fileTypes&gt; --&gt;<br />
<br />
&nbsp; &lt;!-- Specify Android specific tags that get passed to AndroidManifest.xml file. --&gt;<br />
&nbsp; &lt;!--&lt;android&gt; --&gt;<br />
&nbsp; &lt;!--&lt;manifestAdditions&gt; --&gt;<br />
<br />
&nbsp; &nbsp; &lt;!-- Set the manifest properties in AndroidManifest.xml Optional. --&gt;<br />
&nbsp; &nbsp; &lt;!--&lt;manifest&gt; --&gt;<br />
<br />
&nbsp; &nbsp; &lt;!-- Set the attributes for manifest. Optional --&gt;<br />
&nbsp; &nbsp; &lt;!-- &lt;attibute name=&quot;android:installLocation&quot; value=&quot;auto&quot;&gt; --&gt;<br />
<br />
&nbsp; &nbsp; &lt;!-- Set the data part for manifest. Optional. --&gt;<br />
&nbsp; &nbsp; &lt;!-- &lt;data&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;![CDATA[<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;uses-permission android:name=&quot;android.permission.INTERNET&quot;/&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;uses-permission android:name=&quot;android.permission.WRITE_EXTERNAL_STORAGE&quot;/&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;uses-permission android:name=&quot;android.permission.ACCESS_FINE_LOCATION&quot;/&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;uses-configuration android:reqFiveWayNav=&quot;true&quot;/&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;supports-screens android:normalScreens=&quot;true&quot;/&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;uses-feature android:required=&quot;true&quot; android:name=&quot;android.hardware.touchscreen.multitouch&quot;/&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ]]&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/data&gt; --&gt;<br />
&nbsp; &nbsp; &lt;!--&lt;/manifest&gt; --&gt;<br />
<br />
&nbsp; &nbsp; &lt;!-- Set the application properties in AndroidManifest.xml Optional. --&gt;<br />
&nbsp; &nbsp; &lt;!--&lt;application&gt; --&gt;<br />
<br />
&nbsp; &nbsp; &lt;!-- Set the attributes for application. Optional --&gt;<br />
&nbsp; &nbsp; &lt;!-- &lt;attribute name=&quot;android:enabled&quot; value=&quot;true&quot;/&gt; --&gt;<br />
<br />
&nbsp; &nbsp; &lt;!-- Set the data part for application. Optional. --&gt;<br />
&nbsp; &nbsp; &lt;!-- &lt;data&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;![CDATA[<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;uses-library android:name=&quot;android.view&quot;/&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ]]&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/data&gt; --&gt;<br />
&nbsp; &nbsp; &lt;!--&lt;/application&gt; --&gt;<br />
<br />
&nbsp; &nbsp; &lt;!-- Set the launcherActivity properties in AndroidManifest.xml Optional. --&gt;<br />
&nbsp; &nbsp; &lt;!--&lt;launcherActivity&gt; --&gt;<br />
<br />
&nbsp; &nbsp; &lt;!-- Set the attributes for launcherActivity. Optional --&gt;<br />
&nbsp; &nbsp; &lt;!--&lt;attribute name=&quot;android:excludeFromRecents&quot; value=&quot;false&quot;/&gt; --&gt;<br />
<br />
&nbsp; &nbsp; &lt;!--- Set the data part for launcherActivity. Optional. --&gt;<br />
&nbsp; &nbsp; &lt;!-- &lt;data&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;![CDATA[ &nbsp; &nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;intent-filter&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/intent-filter&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;]]&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/data&gt; --&gt;<br />
&nbsp; &nbsp; &lt;!-- &lt;/launcherActivity&gt; --&gt;<br />
&nbsp; <br />
&nbsp; &nbsp; &lt;!-- &lt;/manifestAdditions&gt; --&gt;<br />
&nbsp; &nbsp; &lt;!-- &lt;/android&gt; --&gt;<br />
&nbsp; &lt;!-- End of the schema for adding the android specific tags in AndroidManifest.xml file --&gt;<br />
&nbsp; <br />
&lt;/application&gt;</div></td></tr></tbody></table></div>
<p>Good luck! And look out for Wooden Ball in a Cup!</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://unitedmindset.com/jonbcampos/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p><img src="http://feeds.feedburner.com/~r/TheWorldInAStateOfFlex/~4/gp7AAgq1vU8" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://unitedmindset.com/jonbcampos/2010/09/01/air-for-android-accelerometer/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		<feedburner:origLink>http://unitedmindset.com/jonbcampos/2010/09/01/air-for-android-accelerometer/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=air-for-android-accelerometer</feedburner:origLink></item>
		<item>
		<title>Air for Android: Geolocation</title>
		<link>http://feedproxy.google.com/~r/TheWorldInAStateOfFlex/~3/FXLW54Sr9dI/</link>
		<comments>http://unitedmindset.com/jonbcampos/2010/08/30/air-for-android-geolocation/#comments</comments>
		<pubDate>Mon, 30 Aug 2010 14:00:10 +0000</pubDate>
		<dc:creator>Jonathan Campos</dc:creator>
				<category><![CDATA[Air for Android]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[air for android]]></category>
		<category><![CDATA[geolocation]]></category>

		<guid isPermaLink="false">http://unitedmindset.com/jonbcampos/?p=1974</guid>
		<description><![CDATA[As Air for Android development continues to pick up I&#8217;m seeing a tidal wave of Android development coming out of Flash developers. I am so freakin&#8217; excited about it! I&#8217;m going to talk about some Air for Android APIs that many Flash developers my not be used to seeing. Today: Geolocation. If you are starting [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://unitedmindset.com/jonbcampos/wp-content/uploads/2010/07/airforandroid1.png" alt="" title="AIR for Android Logo" width="228" height="200" class="alignleft size-full wp-image-1766" /><br />
As Air for Android development continues to pick up I&#8217;m seeing a tidal wave of Android development coming out of Flash developers. I am so freakin&#8217; excited about it!</p>
<p>I&#8217;m going to talk about some Air for Android APIs that many Flash developers my not be used to seeing.</p>
<p>Today: Geolocation.</p>
<blockquote><p>
If you are starting with this post I recommend actually starting with a previous post introducing <a href="http://unitedmindset.com/jonbcampos/2010/07/19/android-mobile-development/">AIR for Android Development</a>. There is a ANT file there that you will want to have.
</p></blockquote>
<p><span id="more-1974"></span><br />
<strong>Memory, Power, and Performance Considerations</strong><br />
Unlike previous Air and Flex development Air for Android development is unique in the fact that you must be conscientious about battery life and depletion. As such, with Geolocation services you don&#8217;t want to keep tasking the GPS subsystems continuously as they are power hogs. When looking at the code look at a specific method:</p>
<div class="codecolorer-container actionscript dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="actionscript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">_geo.<span style="color: #006600;">setRequestedUpdateInterval</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">60000</span><span style="color: #66cc66;">&#41;</span>;</div></td></tr></tbody></table></div>
<p>This method sets the timer for a moment to get the user&#8217;s current location. If you set this value low you will get quicker access to the current user&#8217;s locations however the battery will run down that much faster. There isn&#8217;t a hard and fast rule to follow, just get the location whenever is truly necessary.</p>
<p>Also you should remember that many devices can have their GPS muted. When the GPS is muted you shouldn&#8217;t even look for the GPS values, saving power and computation cycles.</p>
<p>The code I am showing checks for when the GPS status changes and then adds and removes listeners appropriately when the GPS systems are on or off.</p>
<p><strong>The Geo App</strong><br />
The app itself is really simple, it displays your current GPS location. The entire example is written in pure AS3 but could also easily work in Flex.</p>
<div class="codecolorer-container actionscript dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:300px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br />25<br />26<br />27<br />28<br />29<br />30<br />31<br />32<br />33<br />34<br />35<br />36<br />37<br />38<br />39<br />40<br />41<br />42<br />43<br />44<br />45<br />46<br />47<br />48<br />49<br />50<br />51<br />52<br />53<br />54<br />55<br />56<br />57<br />58<br />59<br />60<br />61<br />62<br />63<br />64<br />65<br />66<br />67<br />68<br />69<br />70<br />71<br />72<br />73<br />74<br />75<br />76<br />77<br />78<br />79<br />80<br />81<br />82<br />83<br />84<br />85<br />86<br />87<br />88<br />89<br />90<br />91<br />92<br />93<br />94<br />95<br />96<br />97<br />98<br />99<br />100<br />101<br />102<br />103<br />104<br />105<br />106<br />107<br />108<br />109<br />110<br />111<br />112<br />113<br />114<br />115<br />116<br />117<br />118<br />119<br />120<br />121<br />122<br />123<br />124<br />125<br />126<br />127<br />128<br />129<br />130<br />131<br />132<br />133<br />134<br />135<br />136<br />137<br />138<br />139<br />140<br />141<br />142<br />143<br />144<br />145<br />146<br />147<br />148<br />149<br />150<br />151<br />152<br />153<br />154<br />155<br />156<br />157<br />158<br />159<br />160<br />161<br />162<br />163<br />164<br />165<br />166<br />167<br />168<br />169<br />170<br />171<br />172<br />173<br />174<br />175<br />176<br />177<br />178<br />179<br />180<br />181<br />182<br />183<br />184<br />185<br />186<br />187<br />188<br />189<br />190<br />191<br />192<br />193<br />194<br />195<br />196<br />197<br />198<br />199<br />200<br />201<br />202<br />203<br />204<br />205<br />206<br />207<br />208<br />209<br />210<br />211<br />212<br />213<br />214<br />215<br />216<br />217<br />218<br />219<br />220<br /></div></td><td><div class="actionscript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">package<br />
<span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">display</span>.<span style="color: #006600;">Sprite</span>;<br />
&nbsp; &nbsp; <span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">display</span>.<span style="color: #006600;">StageAlign</span>;<br />
&nbsp; &nbsp; <span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">display</span>.<span style="color: #006600;">StageScaleMode</span>;<br />
&nbsp; &nbsp; <span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">events</span>.<span style="color: #006600;">Event</span>;<br />
&nbsp; &nbsp; <span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">events</span>.<span style="color: #006600;">GeolocationEvent</span>;<br />
&nbsp; &nbsp; <span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">events</span>.<span style="color: #006600;">StatusEvent</span>;<br />
&nbsp; &nbsp; <span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">sensors</span>.<span style="color: #006600;">Geolocation</span>;<br />
&nbsp; &nbsp; <span style="color: #0066CC;">import</span> flash.<span style="color: #0066CC;">text</span>.<span style="color: #0066CC;">TextField</span>;<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; <span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">class</span> Geo <span style="color: #0066CC;">extends</span> Sprite<br />
&nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #808080; font-style: italic;">//---------------------------------------------------------------------</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #808080; font-style: italic;">//</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #808080; font-style: italic;">// &nbsp;Constructor</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #808080; font-style: italic;">//</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #808080; font-style: italic;">//---------------------------------------------------------------------</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> Geo<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #808080; font-style: italic;">//setup stage</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">stage</span>.<span style="color: #0066CC;">scaleMode</span> = StageScaleMode.<span style="color: #006600;">NO_SCALE</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">stage</span>.<span style="color: #0066CC;">align</span> = StageAlign.<span style="color: #006600;">TOP_LEFT</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #808080; font-style: italic;">//add handlers</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; addEventListener<span style="color: #66cc66;">&#40;</span>Event.<span style="color: #006600;">ADDED_TO_STAGE</span>, _onAddedToStage<span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #808080; font-style: italic;">//---------------------------------------------------------------------</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #808080; font-style: italic;">//</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #808080; font-style: italic;">// &nbsp;Private Properties</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #808080; font-style: italic;">//</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #808080; font-style: italic;">//---------------------------------------------------------------------</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> _text0:<span style="color: #0066CC;">TextField</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> _text1:<span style="color: #0066CC;">TextField</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> _text2:<span style="color: #0066CC;">TextField</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> _text3:<span style="color: #0066CC;">TextField</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> _text4:<span style="color: #0066CC;">TextField</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> _text5:<span style="color: #0066CC;">TextField</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> _text6:<span style="color: #0066CC;">TextField</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> _text7:<span style="color: #0066CC;">TextField</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> _text8:<span style="color: #0066CC;">TextField</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> _text9:<span style="color: #0066CC;">TextField</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> _geo:Geolocation;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #808080; font-style: italic;">//---------------------------------------------------------------------</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #808080; font-style: italic;">//</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #808080; font-style: italic;">// &nbsp;Protected Methods</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #808080; font-style: italic;">//</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #808080; font-style: italic;">//---------------------------------------------------------------------</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; protected <span style="color: #000000; font-weight: bold;">function</span> createChildren<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #808080; font-style: italic;">//text 0</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">!</span>_text0<span style="color: #66cc66;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _text0 = <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #0066CC;">TextField</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _text0.<span style="color: #006600;">x</span> = <span style="color: #cc66cc;">10</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _text0.<span style="color: #006600;">y</span> = <span style="color: #cc66cc;">10</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _text0.<span style="color: #0066CC;">width</span> = <span style="color: #cc66cc;">200</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _text0.<span style="color: #0066CC;">text</span> = <span style="color: #ff0000;">&quot;Geolocation Supported: false&quot;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; addChild<span style="color: #66cc66;">&#40;</span>_text0<span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #808080; font-style: italic;">//text 1</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">!</span>_text1<span style="color: #66cc66;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _text1 = <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #0066CC;">TextField</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _text1.<span style="color: #006600;">x</span> = <span style="color: #cc66cc;">10</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _text1.<span style="color: #006600;">y</span> = <span style="color: #cc66cc;">30</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _text1.<span style="color: #0066CC;">width</span> = <span style="color: #cc66cc;">200</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _text1.<span style="color: #0066CC;">text</span> = <span style="color: #ff0000;">&quot;Lat: 0&quot;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; addChild<span style="color: #66cc66;">&#40;</span>_text1<span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #808080; font-style: italic;">//text 2</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">!</span>_text2<span style="color: #66cc66;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _text2 = <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #0066CC;">TextField</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _text2.<span style="color: #006600;">x</span> = <span style="color: #cc66cc;">10</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _text2.<span style="color: #006600;">y</span> = <span style="color: #cc66cc;">50</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _text2.<span style="color: #0066CC;">width</span> = <span style="color: #cc66cc;">200</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _text2.<span style="color: #0066CC;">text</span> = <span style="color: #ff0000;">&quot;Long: 0&quot;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; addChild<span style="color: #66cc66;">&#40;</span>_text2<span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #808080; font-style: italic;">//text 3</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">!</span>_text3<span style="color: #66cc66;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _text3 = <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #0066CC;">TextField</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _text3.<span style="color: #006600;">x</span> = <span style="color: #cc66cc;">10</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _text3.<span style="color: #006600;">y</span> = <span style="color: #cc66cc;">70</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _text3.<span style="color: #0066CC;">width</span> = <span style="color: #cc66cc;">200</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _text3.<span style="color: #0066CC;">text</span> = <span style="color: #ff0000;">&quot;Altitude: 0&quot;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; addChild<span style="color: #66cc66;">&#40;</span>_text3<span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #808080; font-style: italic;">//text 4</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">!</span>_text4<span style="color: #66cc66;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _text4 = <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #0066CC;">TextField</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _text4.<span style="color: #006600;">x</span> = <span style="color: #cc66cc;">10</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _text4.<span style="color: #006600;">y</span> = <span style="color: #cc66cc;">90</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _text4.<span style="color: #0066CC;">width</span> = <span style="color: #cc66cc;">200</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _text4.<span style="color: #0066CC;">text</span> = <span style="color: #ff0000;">&quot;Horizontal Accuracy: 0&quot;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; addChild<span style="color: #66cc66;">&#40;</span>_text4<span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #808080; font-style: italic;">//text 5</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">!</span>_text5<span style="color: #66cc66;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _text5 = <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #0066CC;">TextField</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _text5.<span style="color: #006600;">x</span> = <span style="color: #cc66cc;">10</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _text5.<span style="color: #006600;">y</span> = <span style="color: #cc66cc;">110</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _text5.<span style="color: #0066CC;">width</span> = <span style="color: #cc66cc;">200</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _text5.<span style="color: #0066CC;">text</span> = <span style="color: #ff0000;">&quot;Vertical Accuracy: 0&quot;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; addChild<span style="color: #66cc66;">&#40;</span>_text5<span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #808080; font-style: italic;">//text 6</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">!</span>_text6<span style="color: #66cc66;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _text6 = <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #0066CC;">TextField</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _text6.<span style="color: #006600;">x</span> = <span style="color: #cc66cc;">10</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _text6.<span style="color: #006600;">y</span> = <span style="color: #cc66cc;">130</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _text6.<span style="color: #0066CC;">width</span> = <span style="color: #cc66cc;">200</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _text6.<span style="color: #0066CC;">text</span> = <span style="color: #ff0000;">&quot;Speed: 0&quot;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; addChild<span style="color: #66cc66;">&#40;</span>_text6<span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #808080; font-style: italic;">//text 7</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">!</span>_text7<span style="color: #66cc66;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _text7 = <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #0066CC;">TextField</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _text7.<span style="color: #006600;">x</span> = <span style="color: #cc66cc;">10</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _text7.<span style="color: #006600;">y</span> = <span style="color: #cc66cc;">150</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _text7.<span style="color: #0066CC;">width</span> = <span style="color: #cc66cc;">200</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _text7.<span style="color: #0066CC;">text</span> = <span style="color: #ff0000;">&quot;Heading: 0&quot;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; addChild<span style="color: #66cc66;">&#40;</span>_text7<span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #808080; font-style: italic;">//text 8</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">!</span>_text8<span style="color: #66cc66;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _text8 = <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #0066CC;">TextField</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _text8.<span style="color: #006600;">x</span> = <span style="color: #cc66cc;">10</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _text8.<span style="color: #006600;">y</span> = <span style="color: #cc66cc;">170</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _text8.<span style="color: #0066CC;">width</span> = <span style="color: #cc66cc;">200</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _text8.<span style="color: #0066CC;">text</span> = <span style="color: #ff0000;">&quot;isMuted: true&quot;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; addChild<span style="color: #66cc66;">&#40;</span>_text8<span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #808080; font-style: italic;">//text 9</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">!</span>_text9<span style="color: #66cc66;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _text9 = <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #0066CC;">TextField</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _text9.<span style="color: #006600;">x</span> = <span style="color: #cc66cc;">10</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _text9.<span style="color: #006600;">y</span> = <span style="color: #cc66cc;">190</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _text9.<span style="color: #0066CC;">width</span> = <span style="color: #cc66cc;">200</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _text9.<span style="color: #0066CC;">text</span> = <span style="color: #ff0000;">&quot;Timestamp: 0&quot;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; addChild<span style="color: #66cc66;">&#40;</span>_text9<span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #808080; font-style: italic;">//---------------------------------------------------------------------</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #808080; font-style: italic;">//</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #808080; font-style: italic;">// &nbsp;Handler Methods</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #808080; font-style: italic;">//</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #808080; font-style: italic;">//---------------------------------------------------------------------</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> _onAddedToStage<span style="color: #66cc66;">&#40;</span>event:Event<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #808080; font-style: italic;">//removes listener</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; removeEventListener<span style="color: #66cc66;">&#40;</span>Event.<span style="color: #006600;">ADDED_TO_STAGE</span>, _onAddedToStage<span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #808080; font-style: italic;">//draws background</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _draw<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #808080; font-style: italic;">//creates children</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; createChildren<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #808080; font-style: italic;">//create geolocation tracker</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _createGeo<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> _onGeo_StatusHandler<span style="color: #66cc66;">&#40;</span>event:StatusEvent=<span style="color: #000000; font-weight: bold;">null</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span>_geo.<span style="color: #0066CC;">muted</span><span style="color: #66cc66;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _geo.<span style="color: #006600;">removeEventListener</span><span style="color: #66cc66;">&#40;</span>GeolocationEvent.<span style="color: #006600;">UPDATE</span>, _onGeo_UpdateHandler<span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _text8.<span style="color: #0066CC;">text</span> = <span style="color: #ff0000;">&quot;isMuted: true&quot;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _geo.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>GeolocationEvent.<span style="color: #006600;">UPDATE</span>, _onGeo_UpdateHandler<span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _text8.<span style="color: #0066CC;">text</span> = <span style="color: #ff0000;">&quot;isMuted: false&quot;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> _onGeo_UpdateHandler<span style="color: #66cc66;">&#40;</span>event:GeolocationEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _text1.<span style="color: #0066CC;">text</span> = <span style="color: #ff0000;">&quot;Lat: &quot;</span>+event.<span style="color: #006600;">latitude</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _text2.<span style="color: #0066CC;">text</span> = <span style="color: #ff0000;">&quot;Long: &quot;</span>+event.<span style="color: #006600;">longitude</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _text3.<span style="color: #0066CC;">text</span> = <span style="color: #ff0000;">&quot;Altitude: &quot;</span>+event.<span style="color: #006600;">altitude</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _text4.<span style="color: #0066CC;">text</span> = <span style="color: #ff0000;">&quot;Horizontal Accuracy: &quot;</span>+event.<span style="color: #006600;">horizontalAccuracy</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _text5.<span style="color: #0066CC;">text</span> = <span style="color: #ff0000;">&quot;Vertical Accuracy: &quot;</span>+event.<span style="color: #006600;">verticalAccuracy</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _text6.<span style="color: #0066CC;">text</span> = <span style="color: #ff0000;">&quot;Speed: &quot;</span>+event.<span style="color: #006600;">speed</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _text7.<span style="color: #0066CC;">text</span> = <span style="color: #ff0000;">&quot;Heading: &quot;</span>+event.<span style="color: #006600;">heading</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _text9.<span style="color: #0066CC;">text</span> = <span style="color: #ff0000;">&quot;Timestamp: &quot;</span>+event.<span style="color: #006600;">timestamp</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #808080; font-style: italic;">//---------------------------------------------------------------------</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #808080; font-style: italic;">//</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #808080; font-style: italic;">// &nbsp;Private Methods</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #808080; font-style: italic;">//</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #808080; font-style: italic;">//---------------------------------------------------------------------</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> _draw<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; graphics.<span style="color: #0066CC;">clear</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; graphics.<span style="color: #0066CC;">beginFill</span><span style="color: #66cc66;">&#40;</span>0xFFFFFF,<span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; graphics.<span style="color: #006600;">drawRect</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">0</span>, <span style="color: #cc66cc;">0</span>, <span style="color: #cc66cc;">480</span>, <span style="color: #cc66cc;">800</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; graphics.<span style="color: #0066CC;">endFill</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> _createGeo<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span>Geolocation.<span style="color: #006600;">isSupported</span><span style="color: #66cc66;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _geo = <span style="color: #000000; font-weight: bold;">new</span> Geolocation<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _geo.<span style="color: #006600;">setRequestedUpdateInterval</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">60000</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _geo.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>StatusEvent.<span style="color: #0066CC;">STATUS</span>, _onGeo_StatusHandler<span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _onGeo_StatusHandler<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _text0.<span style="color: #0066CC;">text</span> = <span style="color: #ff0000;">&quot;Geolocation Supported: true&quot;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
<span style="color: #66cc66;">&#125;</span></div></td></tr></tbody></table></div>
<p><strong>Application Descriptor File</strong><br />
If you copied and pasted the previous code and hit run then you would have probably noticed that the Geolocation doesn&#8217;t work. The reason is that you need to specify that this application has access to the Geolocation hardware. You do that in the <em>Application Descriptor file</em> (Geo-app.xml).</p>
<p>The links you need to make sure to have available are as follows&#8230;</p>
<div class="codecolorer-container text dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&nbsp; &nbsp; &lt;!-- Set the data part for manifest. Optional. --&gt;<br />
&nbsp; &nbsp; &lt;data&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;![CDATA[<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;uses-permission android:name=&quot;android.permission.INTERNET&quot;/&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;uses-permission android:name=&quot;android.permission.WRITE_EXTERNAL_STORAGE&quot;/&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;uses-permission android:name=&quot;android.permission.ACCESS_FINE_LOCATION&quot; /&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;uses-permission android:name=&quot;android.permission.ACCESS_COARSE_LOCATION&quot; /&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;supports-screens android:normalScreens=&quot;true&quot;/&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;uses-feature android:required=&quot;true&quot; android:name=&quot;android.hardware.touchscreen.multitouch&quot;/&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ]]&gt;<br />
&nbsp; &nbsp; &lt;/data&gt;</div></td></tr></tbody></table></div>
<p>The full Application Descriptor file is:</p>
<div class="codecolorer-container text dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:300px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br />25<br />26<br />27<br />28<br />29<br />30<br />31<br />32<br />33<br />34<br />35<br />36<br />37<br />38<br />39<br />40<br />41<br />42<br />43<br />44<br />45<br />46<br />47<br />48<br />49<br />50<br />51<br />52<br />53<br />54<br />55<br />56<br />57<br />58<br />59<br />60<br />61<br />62<br />63<br />64<br />65<br />66<br />67<br />68<br />69<br />70<br />71<br />72<br />73<br />74<br />75<br />76<br />77<br />78<br />79<br />80<br />81<br />82<br />83<br />84<br />85<br />86<br />87<br />88<br />89<br />90<br />91<br />92<br />93<br />94<br />95<br />96<br />97<br />98<br />99<br />100<br />101<br />102<br />103<br />104<br />105<br />106<br />107<br />108<br />109<br />110<br />111<br />112<br />113<br />114<br />115<br />116<br />117<br />118<br />119<br />120<br />121<br />122<br />123<br />124<br />125<br />126<br />127<br />128<br />129<br />130<br />131<br />132<br />133<br />134<br />135<br />136<br />137<br />138<br />139<br />140<br />141<br />142<br />143<br />144<br />145<br />146<br />147<br />148<br />149<br />150<br />151<br />152<br />153<br />154<br />155<br />156<br />157<br />158<br />159<br />160<br />161<br />162<br />163<br />164<br />165<br />166<br />167<br />168<br />169<br />170<br />171<br />172<br />173<br />174<br />175<br />176<br />177<br />178<br />179<br />180<br />181<br />182<br />183<br />184<br />185<br />186<br />187<br />188<br />189<br />190<br />191<br />192<br />193<br />194<br />195<br />196<br />197<br />198<br />199<br />200<br />201<br />202<br />203<br />204<br />205<br />206<br />207<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot; standalone=&quot;no&quot;?&gt;<br />
&lt;application xmlns=&quot;http://ns.adobe.com/air/application/2.5&quot;&gt;<br />
<br />
&lt;!-- Adobe AIR Application Descriptor File Template.<br />
<br />
&nbsp; &nbsp; Specifies parameters for identifying, installing, and launching AIR applications.<br />
<br />
&nbsp; &nbsp; xmlns - The Adobe AIR namespace: http://ns.adobe.com/air/application/2.5<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; The last segment of the namespace specifies the version <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; of the AIR runtime required for this application to run.<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; minimumPatchLevel - The minimum patch level of the AIR runtime required to run <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; the application. Optional.<br />
--&gt;<br />
<br />
&nbsp; &nbsp; &lt;!-- A universally unique application identifier. Must be unique across all AIR applications.<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Using a reverse DNS-style name as the id is recommended. (Eg. com.example.ExampleApplication.) Required. --&gt;<br />
&nbsp; &nbsp; &lt;id&gt;com.unitedmindset.Geo&lt;/id&gt;<br />
<br />
&nbsp; &nbsp; &lt;!-- Used as the filename for the application. Required. --&gt;<br />
&nbsp; &nbsp; &lt;filename&gt;Geo&lt;/filename&gt;<br />
<br />
&nbsp; &nbsp; &lt;!-- The name that is displayed in the AIR application installer. <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;May have multiple values for each language. See samples or xsd schema file. Optional. --&gt;<br />
&nbsp; &nbsp; &lt;name&gt;Geo&lt;/name&gt;<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; &lt;!-- A string value of the format &lt;0-999&gt;.&lt;0-999&gt;.&lt;0-999&gt; that represents application version which can be used to check for application upgrade. <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Values can also be 1-part or 2-part. It is not necessary to have a 3-part value.<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;An updated version of application must have a versionCode value higher than the previous version. Required for namespace &gt;= 2.5 . --&gt;<br />
&nbsp; &nbsp; &lt;versionNumber&gt;1.0.0&lt;/versionNumber&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />
&nbsp; &nbsp; &lt;!-- A string value (such as &quot;v1&quot;, &quot;2.5&quot;, or &quot;Alpha 1&quot;) that represents the version of the application, as it should be shown to users. Optional. --&gt;<br />
&nbsp; &nbsp; &lt;!-- &lt;versionLabel&gt;&lt;/versionLabel&gt; --&gt;<br />
<br />
&nbsp; &nbsp; &lt;!-- Description, displayed in the AIR application installer.<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;May have multiple values for each language. See samples or xsd schema file. Optional. --&gt;<br />
&nbsp; &nbsp; &lt;!-- &lt;description&gt;&lt;/description&gt; --&gt;<br />
<br />
&nbsp; &nbsp; &lt;!-- Copyright information. Optional --&gt;<br />
&nbsp; &nbsp; &lt;!-- &lt;copyright&gt;&lt;/copyright&gt; --&gt;<br />
<br />
&nbsp; &nbsp; &lt;!-- Publisher ID. Used if you're updating an application created prior to 1.5.3 --&gt;<br />
&nbsp; &nbsp; &lt;!-- &lt;publisherID&gt;&lt;/publisherID&gt; --&gt;<br />
<br />
&nbsp; &nbsp; &lt;!-- Settings for the application's initial window. Required. --&gt;<br />
&nbsp; &nbsp; &lt;initialWindow&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;!-- The main SWF or HTML file of the application. Required. --&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;!-- Note: In Flash Builder, the SWF reference is set automatically. --&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;content&gt;[This value will be overwritten by Flash Builder in the output app.xml]&lt;/content&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;!-- The title of the main window. Optional. --&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;!-- &lt;title&gt;&lt;/title&gt; --&gt;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;!-- The type of system chrome to use (either &quot;standard&quot; or &quot;none&quot;). Optional. Default standard. --&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;!-- &lt;systemChrome&gt;&lt;/systemChrome&gt; --&gt;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;!-- Whether the window is transparent. Only applicable when systemChrome is none. Optional. Default false. --&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;!-- &lt;transparent&gt;&lt;/transparent&gt; --&gt;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;!-- Whether the window is initially visible. Optional. Default false. --&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;visible&gt;true&lt;/visible&gt;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;!-- Whether the user can minimize the window. Optional. Default true. --&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;!-- &lt;minimizable&gt;&lt;/minimizable&gt; --&gt;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;!-- Whether the user can maximize the window. Optional. Default true. --&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;!-- &lt;maximizable&gt;&lt;/maximizable&gt; --&gt;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;!-- Whether the user can resize the window. Optional. Default true. --&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;resizable&gt;false&lt;/resizable&gt;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;!-- The window's initial width in pixels. Optional. --&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;width&gt;480&lt;/width&gt;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;!-- The window's initial height in pixels. Optional. --&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;height&gt;800&lt;/height&gt;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;!-- The window's initial x position. Optional. --&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;!-- &lt;x&gt;&lt;/x&gt; --&gt;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;!-- The window's initial y position. Optional. --&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;!-- &lt;y&gt;&lt;/y&gt; --&gt;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;!-- The window's minimum size, specified as a width/height pair in pixels, such as &quot;400 200&quot;. Optional. --&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;!-- &lt;minSize&gt;&lt;/minSize&gt; --&gt;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;!-- The window's initial maximum size, specified as a width/height pair in pixels, such as &quot;1600 1200&quot;. Optional. --&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;!-- &lt;maxSize&gt;&lt;/maxSize&gt; --&gt;<br />
&nbsp; &nbsp; &lt;/initialWindow&gt;<br />
<br />
&nbsp; &nbsp; &lt;!-- We recommend omitting the supportedProfiles element, --&gt;<br />
&nbsp; &nbsp; &lt;!-- which in turn permits your application to be deployed to all --&gt;<br />
&nbsp; &nbsp; &lt;!-- devices supported by AIR. If you wish to restrict deployment --&gt;<br />
&nbsp; &nbsp; &lt;!-- (i.e., to only mobile devices) then add this element and list --&gt;<br />
&nbsp; &nbsp; &lt;!-- only the profiles which your application does support. --&gt;<br />
&nbsp; &nbsp; &lt;!-- &lt;supportedProfiles&gt;desktop extendedDesktop mobileDevice extendedMobileDevice&lt;/supportedProfiles&gt; --&gt;<br />
<br />
&nbsp; &nbsp; &lt;!-- The subpath of the standard default installation location to use. Optional. --&gt;<br />
&nbsp; &nbsp; &lt;!-- &lt;installFolder&gt;&lt;/installFolder&gt; --&gt;<br />
<br />
&nbsp; &nbsp; &lt;!-- The subpath of the Programs menu to use. (Ignored on operating systems without a Programs menu.) Optional. --&gt;<br />
&nbsp; &nbsp; &lt;!-- &lt;programMenuFolder&gt;&lt;/programMenuFolder&gt; --&gt;<br />
<br />
&nbsp; &nbsp; &lt;!-- The icon the system uses for the application. For at least one resolution,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;specify the path to a PNG file included in the AIR package. Optional. --&gt;<br />
&nbsp; &nbsp; &lt;!-- &lt;icon&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;image16x16&gt;&lt;/image16x16&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;image32x32&gt;&lt;/image32x32&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;image48x48&gt;&lt;/image48x48&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;image128x128&gt;&lt;/image128x128&gt;<br />
&nbsp; &nbsp; &lt;/icon&gt; --&gt;<br />
<br />
&nbsp; &nbsp; &lt;!-- Whether the application handles the update when a user double-clicks an update version<br />
&nbsp; &nbsp; of the AIR file (true), or the default AIR application installer handles the update (false).<br />
&nbsp; &nbsp; Optional. Default false. --&gt;<br />
&nbsp; &nbsp; &lt;!-- &lt;customUpdateUI&gt;&lt;/customUpdateUI&gt; --&gt;<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; &lt;!-- Whether the application can be launched when the user clicks a link in a web browser.<br />
&nbsp; &nbsp; Optional. Default false. --&gt;<br />
&nbsp; &nbsp; &lt;!-- &lt;allowBrowserInvocation&gt;&lt;/allowBrowserInvocation&gt; --&gt;<br />
<br />
&nbsp; &nbsp; &lt;!-- Listing of file types for which the application can register. Optional. --&gt;<br />
&nbsp; &nbsp; &lt;!-- &lt;fileTypes&gt; --&gt;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;!-- Defines one file type. Optional. --&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;!-- &lt;fileType&gt; --&gt;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;!-- The name that the system displays for the registered file type. Required. --&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;!-- &lt;name&gt;&lt;/name&gt; --&gt;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;!-- The extension to register. Required. --&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;!-- &lt;extension&gt;&lt;/extension&gt; --&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;!-- The description of the file type. Optional. --&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;!-- &lt;description&gt;&lt;/description&gt; --&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;!-- The MIME content type. --&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;!-- &lt;contentType&gt;&lt;/contentType&gt; --&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;!-- The icon to display for the file type. Optional. --&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;!-- &lt;icon&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;image16x16&gt;&lt;/image16x16&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;image32x32&gt;&lt;/image32x32&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;image48x48&gt;&lt;/image48x48&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;image128x128&gt;&lt;/image128x128&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/icon&gt; --&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;!-- &lt;/fileType&gt; --&gt;<br />
&nbsp; &nbsp; &lt;!-- &lt;/fileTypes&gt; --&gt;<br />
<br />
&nbsp; &lt;!-- Specify Android specific tags that get passed to AndroidManifest.xml file. --&gt;<br />
&nbsp; &lt;android&gt;<br />
&nbsp; &lt;manifestAdditions&gt;<br />
<br />
&nbsp; &nbsp; &lt;!-- Set the manifest properties in AndroidManifest.xml Optional. --&gt;<br />
&nbsp; &nbsp; &lt;manifest&gt;<br />
<br />
&nbsp; &nbsp; &lt;!-- Set the attributes for manifest. Optional --&gt;<br />
&nbsp; &nbsp; &lt;!-- &lt;attibute name=&quot;android:installLocation&quot; value=&quot;auto&quot;&gt; --&gt;<br />
<br />
&nbsp; &nbsp; &lt;!-- Set the data part for manifest. Optional. --&gt;<br />
&nbsp; &nbsp; &lt;data&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;![CDATA[<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;uses-permission android:name=&quot;android.permission.INTERNET&quot;/&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;uses-permission android:name=&quot;android.permission.WRITE_EXTERNAL_STORAGE&quot;/&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;uses-permission android:name=&quot;android.permission.ACCESS_FINE_LOCATION&quot; /&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;uses-permission android:name=&quot;android.permission.ACCESS_COARSE_LOCATION&quot; /&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;supports-screens android:normalScreens=&quot;true&quot;/&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;uses-feature android:required=&quot;true&quot; android:name=&quot;android.hardware.touchscreen.multitouch&quot;/&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ]]&gt;<br />
&nbsp; &nbsp; &lt;/data&gt;<br />
&nbsp; &nbsp; &lt;/manifest&gt;<br />
<br />
&nbsp; &nbsp; &lt;!-- Set the application properties in AndroidManifest.xml Optional. --&gt;<br />
&nbsp; &nbsp; &lt;!--&lt;application&gt; --&gt;<br />
<br />
&nbsp; &nbsp; &lt;!-- Set the attributes for application. Optional --&gt;<br />
&nbsp; &nbsp; &lt;!-- &lt;attribute name=&quot;android:enabled&quot; value=&quot;true&quot;/&gt; --&gt;<br />
<br />
&nbsp; &nbsp; &lt;!-- Set the data part for application. Optional. --&gt;<br />
&nbsp; &nbsp; &lt;!-- &lt;data&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;![CDATA[<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;uses-library android:name=&quot;android.view&quot;/&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ]]&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/data&gt; --&gt;<br />
&nbsp; &nbsp; &lt;!--&lt;/application&gt; --&gt;<br />
<br />
&nbsp; &nbsp; &lt;!-- Set the launcherActivity properties in AndroidManifest.xml Optional. --&gt;<br />
&nbsp; &nbsp; &lt;!--&lt;launcherActivity&gt; --&gt;<br />
<br />
&nbsp; &nbsp; &lt;!-- Set the attributes for launcherActivity. Optional --&gt;<br />
&nbsp; &nbsp; &lt;!--&lt;attribute name=&quot;android:excludeFromRecents&quot; value=&quot;false&quot;/&gt; --&gt;<br />
<br />
&nbsp; &nbsp; &lt;!--- Set the data part for launcherActivity. Optional. --&gt;<br />
&nbsp; &nbsp; &lt;!-- &lt;data&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;![CDATA[ &nbsp; &nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;intent-filter&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/intent-filter&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;]]&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/data&gt; --&gt;<br />
&nbsp; &nbsp; &lt;!-- &lt;/launcherActivity&gt; --&gt;<br />
&nbsp; <br />
&nbsp; &nbsp; &lt;/manifestAdditions&gt;<br />
&nbsp; &nbsp; &lt;/android&gt;<br />
&nbsp; &lt;!-- End of the schema for adding the android specific tags in AndroidManifest.xml file --&gt;<br />
&nbsp; <br />
&lt;/application&gt;</div></td></tr></tbody></table></div>
<p>With all this you will have an application that works that will pull the latitude, longitude, heading (from North), speed, and horizontal/vertical accuracy.</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://unitedmindset.com/jonbcampos/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p><img src="http://feeds.feedburner.com/~r/TheWorldInAStateOfFlex/~4/FXLW54Sr9dI" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://unitedmindset.com/jonbcampos/2010/08/30/air-for-android-geolocation/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://unitedmindset.com/jonbcampos/2010/08/30/air-for-android-geolocation/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=air-for-android-geolocation</feedburner:origLink></item>
		<item>
		<title>@includeExample</title>
		<link>http://feedproxy.google.com/~r/TheWorldInAStateOfFlex/~3/0VR97lE1NrA/</link>
		<comments>http://unitedmindset.com/jonbcampos/2010/08/10/includeexample/#comments</comments>
		<pubDate>Tue, 10 Aug 2010 14:00:02 +0000</pubDate>
		<dc:creator>Jonathan Campos</dc:creator>
				<category><![CDATA[Best Practices]]></category>
		<category><![CDATA[Flash Builder 4]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[asdoc]]></category>
		<category><![CDATA[component creation]]></category>
		<category><![CDATA[documentation]]></category>
		<category><![CDATA[includeexample]]></category>

		<guid isPermaLink="false">http://unitedmindset.com/jonbcampos/?p=1653</guid>
		<description><![CDATA[In my continuing quest to do everything I can to make components I make easier to understand and quicker to use, my most recent addition to my docs was to use @includeExample. Adding in @includeExample is super simple if you&#8217;ve been actively testing your component. There are a few things you may need to do [...]]]></description>
			<content:encoded><![CDATA[<p>In my continuing quest to do everything I can to make components I make easier to understand and quicker to use, my most recent addition to my docs was to use <em>@includeExample</em>.</p>
<p>Adding in <em>@includeExample</em> is super simple if you&#8217;ve been actively testing your component. There are a few things you may need to do to enable the examples inclusion but the process should only take a few moments to set up.</p>
<blockquote><p>
I have an <a href="https://bugs.adobe.com/jira/browse/FLEXDOCS-1302">open ASDoc Jira Bug</a> around this topic. The issue is that I want to see the example working in the asdoc but the current asdoc tool doesn&#8217;t actually make the SWFs and the embed information. It is partially there and commented out. I would like to see this completed.<br />
<a href="https://bugs.adobe.com/jira/browse/FLEXDOCS-1302">Link To Jira Bug &#8211; vote for it</a>
</p></blockquote>
<p><span id="more-1653"></span></p>
<p>To include your examples is simple.</p>
<p><strong>First, your need to duplicate your <em>src</em> directory.</strong> On the base directory add in a folder called <em>examples</em>. This is where your examples will go &#8211; in the same structure as your library classes.<br />
<img src="http://unitedmindset.com/jonbcampos/wp-content/uploads/2010/08/Screen-shot-2010-08-05-at-3.16.25-PM.png" alt="Directory Structure" title="Directory Structure" width="264" height="521" class="size-full wp-image-1857" /></p>
<p><strong>Second, you need to write your example.</strong> For my example I am building an example for my <a href="http://github.com/jonbcampos/UnitedMindsetFx4Library/blob/master/src/com/unitedmindset/components/AutocompleteList.as">AutocompleteList</a>.</p>
<p>The example:</p>
<div class="codecolorer-container actionscript dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:300px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br />25<br />26<br />27<br />28<br />29<br />30<br />31<br />32<br />33<br />34<br />35<br />36<br />37<br />38<br />39<br />40<br />41<br />42<br />43<br />44<br />45<br />46<br />47<br />48<br />49<br />50<br />51<br />52<br />53<br />54<br />55<br />56<br />57<br />58<br />59<br />60<br />61<br />62<br />63<br />64<br />65<br />66<br />67<br />68<br />69<br />70<br />71<br />72<br />73<br />74<br />75<br />76<br />77<br />78<br />79<br />80<br />81<br />82<br />83<br />84<br />85<br />86<br />87<br />88<br />89<br />90<br />91<br />92<br />93<br />94<br />95<br />96<br />97<br />98<br />99<br />100<br />101<br />102<br />103<br />104<br />105<br />106<br />107<br />108<br />109<br />110<br />111<br />112<br />113<br />114<br />115<br />116<br />117<br />118<br />119<br />120<br />121<br />122<br />123<br />124<br />125<br />126<br />127<br />128<br />129<br />130<br />131<br />132<br />133<br />134<br />135<br />136<br />137<br />138<br />139<br />140<br />141<br />142<br />143<br />144<br />145<br />146<br />147<br />148<br />149<br />150<br />151<br />152<br />153<br />154<br />155<br />156<br />157<br />158<br />159<br />160<br />161<br />162<br />163<br />164<br />165<br />166<br />167<br />168<br />169<br />170<br />171<br />172<br />173<br />174<br />175<br />176<br />177<br />178<br />179<br />180<br />181<br />182<br />183<br />184<br />185<br />186<br />187<br />188<br />189<br />190<br />191<br />192<br />193<br />194<br />195<br />196<br />197<br />198<br />199<br />200<br />201<br />202<br />203<br />204<br />205<br />206<br />207<br />208<br />209<br />210<br />211<br />212<br />213<br />214<br />215<br />216<br />217<br />218<br />219<br />220<br />221<br />222<br />223<br />224<br />225<br />226<br />227<br />228<br />229<br />230<br />231<br />232<br />233<br />234<br />235<br />236<br />237<br />238<br />239<br />240<br />241<br />242<br />243<br />244<br />245<br />246<br />247<br />248<br />249<br />250<br />251<br />252<br />253<br />254<br />255<br />256<br />257<br />258<br />259<br />260<br />261<br />262<br /></div></td><td><div class="actionscript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #66cc66;">&lt;</span>?<span style="color: #0066CC;">xml</span> <span style="color: #0066CC;">version</span>=<span style="color: #ff0000;">&quot;1.0&quot;</span> encoding=<span style="color: #ff0000;">&quot;utf-8&quot;</span>?<span style="color: #66cc66;">&gt;</span><br />
<span style="color: #66cc66;">&lt;</span>s:Application xmlns:fx=<span style="color: #ff0000;">&quot;http://ns.adobe.com/mxml/2009&quot;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;xmlns:s=<span style="color: #ff0000;">&quot;library://ns.adobe.com/flex/spark&quot;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;xmlns:mx=<span style="color: #ff0000;">&quot;library://ns.adobe.com/flex/mx&quot;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;xmlns:unitedmindset=<span style="color: #ff0000;">&quot;library://ns.unitedmindset.com&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;creationComplete=<span style="color: #ff0000;">&quot;application1_creationCompleteHandler(event)&quot;</span><span style="color: #66cc66;">&gt;</span><br />
&nbsp; &nbsp; <span style="color: #66cc66;">&lt;</span>fx:Script<span style="color: #66cc66;">&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&lt;!</span><span style="color: #66cc66;">&#91;</span>CDATA<span style="color: #66cc66;">&#91;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">import</span> mx.<span style="color: #006600;">collections</span>.<span style="color: #006600;">ArrayCollection</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">import</span> mx.<span style="color: #006600;">events</span>.<span style="color: #006600;">FlexEvent</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#91;</span>Bindable<span style="color: #66cc66;">&#93;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">var</span> dataProvider:ArrayCollection;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; protected <span style="color: #000000; font-weight: bold;">function</span> application1_creationCompleteHandler<span style="color: #66cc66;">&#40;</span>event:FlexEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">var</span> source:<span style="color: #0066CC;">Array</span> = <span style="color: #66cc66;">&#91;</span><span style="color: #66cc66;">&#93;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Adult&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Aeroplane&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Air&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Aircraft Carrier&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Airforce&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Airport&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Album&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Alphabet&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Apple (is evil)&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Arm&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Army&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Baby&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Backpack&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Balloon&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Banana&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Bank&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Barbecue&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Bathroom&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Bathtub&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Bed&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Bee&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Bible&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Bird&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Bomb&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Book&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Boss&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Bottle&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Bowl&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Box&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Boy&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Brain&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Bridge&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Butterfly&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Button&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Cappuccino&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Car&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Car-race&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Carpet&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Carrot&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Cave&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Chair&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Chess Board&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Chief&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Child&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Chisel&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Chocolates&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Church&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Circle&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Circus&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Clock&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Clowns are scary&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Coffee&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Coffee-shop&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Comet&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Compact Disc&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Compass&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Computer&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Crystal&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Cup&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Cycle&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Data Base&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Desk&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Diamond&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Dress&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Drill&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Drink&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Drum&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Dung&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Ears&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Earth&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Egg&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Electricity&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Elephant&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Eraser&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Explosive&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Eyes&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Family&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Fan&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Feather&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Festival&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Film&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Finger&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Fire&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Floodlight&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Flower&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Foot&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Fork&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Freeway&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Fruit&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Fungus&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Game&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Garden&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Gas&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Gate&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Gemstone&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Girl&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Gloves&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;God&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Grapes&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Guitar&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Hammer&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Hat&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Hieroglyph&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Highway&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Horoscope&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Horse&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Hose&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Ice&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Ice-cream&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Insect&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Jet fighter&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Junk&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Kaleidoscope&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Kitchen&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Knife&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Leather jacket&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Leg&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Library&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Liquid&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Magnet&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Man&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Map&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Maze&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Meat&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Meteor&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Microscope&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Milk&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Milkshake&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Mist&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Money $$$$&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Monster&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Mosquito&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Mouth&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Nail&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Navy&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Necklace&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Needle&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Onion&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;PaintBrush&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Pants&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Parachute&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Passport&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Pebble&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Pendulum&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Pepper&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Perfume&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Pillow&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Plane&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Planet&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Pocket&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Post-office&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Potato&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Printer&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Prison&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Pyramid&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Radar&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Rainbow&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Record&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Restaurant&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Rifle&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Ring&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Robot&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Rock&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Rocket&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Roof&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Room&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Rope&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Saddle&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Salt&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Sandpaper&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Sandwich&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Satellite&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;School&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Sex&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Ship&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Shoes&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Shop&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Shower&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Signature&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Skeleton&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Slave&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Snail&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Software&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Solid&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Space Shuttle&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Spectrum&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Sphere&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Spice&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Spiral&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Spoon&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Sports-car&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Spot Light&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Square&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Staircase&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Star&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Stomach&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Sun&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Sunglasses&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Surveyor&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Swimming Pool&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Sword&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Table&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Tapestry&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Teeth&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Telescope&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Television&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Tennis racquet&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Thermometer&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Tiger&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Toilet&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Tongue&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Torch&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Torpedo&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Train&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Treadmill&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Triangle&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Tunnel&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Typewriter&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Umbrella&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Unitedmindset&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Vacuum&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Vampire&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Videotape&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Vulture&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Water&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Weapon&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Web&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Wheelchair&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Window&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Woman&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;Worm&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;X-ray&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; dataProvider = <span style="color: #000000; font-weight: bold;">new</span> ArrayCollection<span style="color: #66cc66;">&#40;</span>source<span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&gt;</span><br />
&nbsp; &nbsp; <span style="color: #66cc66;">&lt;/</span>fx:Script<span style="color: #66cc66;">&gt;</span><br />
&nbsp; &nbsp; <span style="color: #66cc66;">&lt;</span>fx:Declarations<span style="color: #66cc66;">&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&lt;!</span>-- Place non-visual elements <span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">e</span>.<span style="color: #006600;">g</span>., services, value objects<span style="color: #66cc66;">&#41;</span> here --<span style="color: #66cc66;">&gt;</span><br />
&nbsp; &nbsp; <span style="color: #66cc66;">&lt;/</span>fx:Declarations<span style="color: #66cc66;">&gt;</span><br />
&nbsp; &nbsp; <span style="color: #66cc66;">&lt;</span>s:layout<span style="color: #66cc66;">&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&lt;</span>s:VerticalLayout paddingBottom=<span style="color: #ff0000;">&quot;20&quot;</span> paddingLeft=<span style="color: #ff0000;">&quot;20&quot;</span> paddingRight=<span style="color: #ff0000;">&quot;20&quot;</span> paddingTop=<span style="color: #ff0000;">&quot;20&quot;</span><span style="color: #66cc66;">/&gt;</span><br />
&nbsp; &nbsp; <span style="color: #66cc66;">&lt;/</span>s:layout<span style="color: #66cc66;">&gt;</span><br />
&nbsp; &nbsp; <span style="color: #66cc66;">&lt;</span>unitedmindset:AutocompleteList dataProvider=<span style="color: #ff0000;">&quot;{dataProvider}&quot;</span><span style="color: #66cc66;">/&gt;</span><br />
<span style="color: #66cc66;">&lt;/</span>s:Application<span style="color: #66cc66;">&gt;</span></div></td></tr></tbody></table></div>
<p><strong>Thirdly, you need to specify that there is an example in the class level asdoc.</strong> All you need to do is give the name of the example file. Since the examples files are mirrored against the original classes the asdoc tool knows the folder structure to find the example.</p>
<div class="codecolorer-container actionscript dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br /></div></td><td><div class="actionscript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&nbsp; &nbsp; &nbsp;<span style="color: #66cc66;">*</span> <span style="color: #66cc66;">&lt;/</span>pre<span style="color: #66cc66;">&gt;</span><br />
&nbsp; &nbsp; &nbsp;<span style="color: #66cc66;">*</span> <br />
&nbsp; &nbsp; &nbsp;<span style="color: #66cc66;">*</span> <span style="color: #66cc66;">@</span>see com.<span style="color: #006600;">unitedmindset</span>.<span style="color: #006600;">skins</span>.<span style="color: #006600;">AutocompleteListSkin</span>.<span style="color: #006600;">mxml</span><br />
&nbsp; &nbsp; &nbsp;<span style="color: #66cc66;">*</span> <br />
&nbsp; &nbsp; &nbsp;<span style="color: #66cc66;">*</span> <span style="color: #66cc66;">@</span>includeExample AutocompleteList.<span style="color: #006600;">mxml</span><br />
&nbsp; &nbsp; &nbsp;<span style="color: #66cc66;">*</span> <br />
&nbsp; &nbsp; &nbsp;<span style="color: #66cc66;">*</span> <span style="color: #66cc66;">@</span>author jonbcampos<br />
&nbsp; &nbsp; &nbsp;<span style="color: #66cc66;">*/</span> <br />
&nbsp; &nbsp; <span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">class</span> AutocompleteList <span style="color: #0066CC;">extends</span> <span style="color: #0066CC;">List</span><br />
&nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">private</span> <span style="color: #0066CC;">static</span> const COMPARELABEL_CHANGE_EVENT:<span style="color: #0066CC;">String</span> = <span style="color: #ff0000;">&quot;compareLabelChange&quot;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">private</span> <span style="color: #0066CC;">static</span> const COMPAREFUNCTION_CHANGE_EVENT:<span style="color: #0066CC;">String</span> = <span style="color: #ff0000;">&quot;compareFunctionChange&quot;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> AutocompleteList<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">super</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div></td></tr></tbody></table></div>
<p><strong>- Optional &#8211; Adjust your compiler arguments.</strong> If for whatever reason your examples aren&#8217;t part of your project or live somewhere else you may need to add some arguments to your compiler. Specifically the <em>-examples-path</em>. By default the asdoc tool looks for the <em>examples</em> folder, but if you put the examples in a different folder just specify it as such:</p>
<p>Your folder is titled &#8220;myexamples&#8221; in the base directory, the compiler:</p>
<div class="codecolorer-container text dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">-examples-path myexamples</div></td></tr></tbody></table></div>
<p>Or if your folder is at <em>c:/myexamples</em>, the compiler:</p>
<div class="codecolorer-container text dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">-examples-path c:/myexamples</div></td></tr></tbody></table></div>
<p>The rest of the structure is matched for you.</p>
<p>And now your example is included with your asdocs page.<br />
<img src="http://unitedmindset.com/jonbcampos/wp-content/uploads/2010/08/Screen-shot-2010-08-05-at-3.32.46-PM-300x115.png" alt="Built Example" title="Built Example" width="300" height="115" class="size-medium wp-image-1864" /></p>
<blockquote><p>
Related Posts:<br />
<a href="http://unitedmindset.com/jonbcampos/2009/08/03/intellisense-making-your-components-work-with-the-flash-builder-ide/">Intellisense – Making your components work with the Flash Builder IDE</a><br />
<a href="http://unitedmindset.com/jonbcampos/2010/01/28/building-asdocs-with-ant/">Building ASDocs with ANT</a>
</p></blockquote>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://unitedmindset.com/jonbcampos/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p><img src="http://feeds.feedburner.com/~r/TheWorldInAStateOfFlex/~4/0VR97lE1NrA" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://unitedmindset.com/jonbcampos/2010/08/10/includeexample/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://unitedmindset.com/jonbcampos/2010/08/10/includeexample/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=includeexample</feedburner:origLink></item>
		<item>
		<title>Communicate With Your Clients</title>
		<link>http://feedproxy.google.com/~r/TheWorldInAStateOfFlex/~3/uyz6PRtXgRY/</link>
		<comments>http://unitedmindset.com/jonbcampos/2010/08/02/communicate-with-your-clients/#comments</comments>
		<pubDate>Mon, 02 Aug 2010 15:29:49 +0000</pubDate>
		<dc:creator>Jonathan Campos</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[clients]]></category>
		<category><![CDATA[communication]]></category>

		<guid isPermaLink="false">http://unitedmindset.com/jonbcampos/?p=1646</guid>
		<description><![CDATA[As time goes on I continue to see the benefit of my Communications degree while working with clients, especially among other developers and seeing how they communicate. I&#8217;ve seen these miscommunications cost companies money, time, or the client relation completely. Developers are especially bad at communicating ideas because we get so tied up in our [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://unitedmindset.com/jonbcampos/wp-content/uploads/2010/07/6a00d8341ccb2e53ef00e54f712bfc8834-800wi-200x300.jpg" alt="" title="Bad Communication" width="200" height="300" class="alignright size-medium wp-image-1807" /><br />
As time goes on I continue to see the benefit of my Communications degree while working with clients, especially among other developers and seeing how they communicate. I&#8217;ve seen these miscommunications cost companies money, time, or the client relation completely. Developers are especially bad at communicating ideas because we get so tied up in our own jargon that we forget how to bridge the communication gap.</p>
<p>I am going to veer away from my normal discussions on technology to focus on some points on communication and processes that you can easily add to your every day discussions to improve the quality of your communication. Starting with going over some common misconceptions that people have with communication.<br />
<span id="more-1646"></span></p>
<p><strong>1. Just because I said it, means it got across</strong><br />
This is the first and most important miscommunication. We believe our communication is sound, especially since we said it and the communication method makes sense to us, and that the receiver has understood the message. The issue is that this isn&#8217;t programming and we aren&#8217;t just talking 1s and 0s. So there are infinitely more reasons why the packet may not have been received.</p>
<p>When communicating you need to remember the communication model.<br />
<a href="http://unitedmindset.com/jonbcampos/wp-content/uploads/2010/07/communicationmodel.png"><img src="http://unitedmindset.com/jonbcampos/wp-content/uploads/2010/07/communicationmodel.png" alt="Communication Model" title="Communication Model" width="400" height="400" class="alignnone size-full wp-image-1820" /></a></p>
<p><em>=== Context ===</em><br />
The context refers to the environment of the message or external details to the message that provides relevance or information to the message itself. </p>
<p>So if you are talking to your client and he says &#8220;did you get that thing done?&#8221; you know what that &#8220;thing&#8221; is. If you aren&#8217;t 100% sure what that &#8220;thing&#8221; is, ask them to define the context of the message.</p>
<p>&#8220;What are we talking about?&#8221;<br />
&#8220;The contract.&#8221;<br />
&#8220;Oh yes, I got the contract done&#8221;.</p>
<blockquote><p>
Often we assume that whatever is the most important thing going through our own heads is also the most important thing going through everyone else&#8217;s heads that we are working around. Make sure to stop and define the context as much as possible.
</p></blockquote>
<p><em>Instead try:</em><br />
&#8220;When it comes to the contract we were discussing yesterday&#8230;&#8221;</p>
<p><em>=== Sender ===</em><br />
The sender in this communication environment is you &#8211; the originator of the message.</p>
<p><em>=== Receiver ===</em><br />
The receiver in this communication environment is the client &#8211; the intended recipient of the message.</p>
<p><em>=== Message ===</em><br />
The message is actually not the words you are trying to have heard, instead it is the thought that you are trying to get across. That is another important point to remember, you aren&#8217;t trying to get the &#8220;words&#8221; across, but instead the idea. If you focus on the words then you will be locked into the same actual message, yet if you focus on the idea then you will have many more words and forms of communications that will be open to you to get the idea across.</p>
<p><em>=== Response ===</em><br />
The response is the information you receive from the receiver. This response can take place in many different forms &#8211; we will discuss verbal and nonverbal. A verbal response could be as simple as &#8220;uh huh&#8221;, or as complex as a question or conversational additive. A nonverbal response may be a simple head nod or actually taking action that displays that the message was received.</p>
<p>At this point the roles of sender and receiver switch as you need to be able to accept the message in the response.</p>
<p><em>=== Interference ===</em><br />
Interference is often the attribute of the communication model that most people &#8211; developers included &#8211; forget completely. If you are talking on a phone with bad reception or at a loud bar interference is obvious, yet there are many more forms of interference that happen in every communication interaction that are not as obvious.</p>
<ul>
<li>- As a programmer my mind often has a component or some set of code running through it.</li>
<li>- As a male my mind often is thinking of sex. Yup, I said it.</li>
<li>- As a person that watches South Park, Futurama, and Family Guy there are often words that will be used that will spark a reference to some joke. Some joke that I will replay in my head the second your words trigger it.</li>
</ul>
<p>That means that at any time that you are trying to communicate with me there are three other things going on in my head at all times. This internal interference is something else that you the sender need to be aware of when communicating and try to overcome.</p>
<p><em>=== Channel (not visualized) ===</em><br />
The final element to communication &#8211; that I didn&#8217;t visualize &#8211; is the channel that the message transfers on. This can be as simple as the air that the message travels on and the words that are used, the phone line, or the video chat that you are using with or without wifi&#8230; unless you are an iPhone user. <img src='http://unitedmindset.com/jonbcampos/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>If the channel is getting in the way of good communication, fix it.</p>
<blockquote><p>
No individual part of the communication model is more or less important than the other and all must be considered equally when communicating.
</p></blockquote>
<p><strong>2. Higher Quantity == Higher Quality</strong><br />
Obviously just because I talk more doesn&#8217;t mean that I get my point across any better. </p>
<p><em>Instead, work on switching up how you get your point across.</em> Each time you make a point, try to come up with different and distinct ways to illustrate your point. I&#8217;ll touch on this a bit more later, but with more distinct ways that the message is sent across, the higher the likelihood that the meaning will be communicated.</p>
<p><strong>3. The meaning is in the words</strong><br />
This is the final point of miscommunication. The meaning of the message is something that is interpreted based on the words and the persons history and background to the words that were used. As such there is no way for you &#8211; the sender &#8211; to transmit the meaning using words alone. Instead, be aware that the meaning of your message will be changed when it reaches the receiver. It is our job as good communicators to get the meaning of the message communicated as completely as possible.</p>
<p><a href="http://unitedmindset.com/jonbcampos/wp-content/uploads/2010/07/testimonials-happy.jpeg"><img src="http://unitedmindset.com/jonbcampos/wp-content/uploads/2010/07/testimonials-happy.jpeg" alt="Happy Client" title="Happy Client" width="294" height="416" class="alignright size-full wp-image-1831" /></a><strong>Ways to improve your communication</strong><br />
First let me say that communication takes practice and effort. Good communication is a skill that does not come naturally though we do communicate naturally. As such you need to remember that will every skill you need to practice, prune, and work to improve your own communication on a daily basis.</p>
<p>Let&#8217;s look at some great communication techniques that you can add into your daily communication with clients and coworkers that will help improve your communication skills and no one will realize that you are actually practicing to be a better communicator.</p>
<p><em>=== Ask for context ===</em><br />
I touched on this earlier but I am serious as a heart attack. Ask for the context and be sure to understand what the context is before responding. If the client asks you for that &#8220;thing&#8221;, ask what the thing is. If someone starts talking to you &#8220;mid-conversation&#8221; ask for context. It&#8217;s really simple and will force the sender to communicate their thoughts a bit clearer. This is a good way to improve the level of communication in a conversation on the whole.</p>
<blockquote><p>
Without context you may put your foot in your mouth in a way that only gets worked out in bad sitcoms. Be sure of the context before you respond.
</p></blockquote>
<p><em>=== Pete and Repeat===</em><br />
Repetition is beneficial for more than computers and modern pop stars that can&#8217;t produce original work. Repetition is the key to making sure that your point or instructions were clearly communicated and the message&#8217;s meaning made it full circle. By asking for the recipient to reiterate what you just told them you can be sure that what they heard is what you meant.</p>
<blockquote><p>
Remember! We aren&#8217;t looking for a word for word repetitive memory dump. Since we already know that the meaning isn&#8217;t in the words we know that these words are meaningless. We are wanting to hear the recipient&#8217;s interpretation of your meaning and make sure that the two messages are congruent. You will be shocked to find out how often the messages actually don&#8217;t match and you will have to clarify your message to make sure that the two match. Keep this circle going till you are content that the recipient understands the message.
</p></blockquote>
<p>Now that you are a learned communicator though doesn&#8217;t mean that your communication is perfect either &#8211; so you should also practice repeating the meaning so that you are sure that you received the message properly. After receiving instructions or a questions I other will say &#8220;So what you are saying is&#8230;&#8221; or &#8220;So what you are asking is&#8230;&#8221;. This very simple start allows for a reinterpretation of the meaning and gives the original sender the ability to clarify is the message wasn&#8217;t correctly received.</p>
<p>This back and forth interaction is so important to everyday communication, not just when contracts and clients are on the line. If you are talking to someone and all they are doing is smiling and nodding be very afraid what information actually got across. This time of reinterpretation also helps allow for the time it takes for the meaning of the message to take hold in the recipient. If you&#8217;ve noticed how people always come up with questions a few minutes after you&#8217;ve communicated your message, this is because the meaning hasn&#8217;t really sunk in yet, and when it does they need come up with meaningful questions. This clarification time gives them the recipient the ability to really soak in the message and apply meaningful thought to the subject. This will ultimately save you from interruptions and future clarifying questions after the initial communication.</p>
<p><em>=== Less is More ===</em><br />
Earlier we discussed how many people believe that more communication equals better communication. We know this isn&#8217;t true. Often times less communication provides clarity of meaning. Keep your communication simple, clear out the side stories and tangents. Think of the meaning you are trying to get across and stick to that one thought. The more tangents and superfluous details you add into your communication the more convoluted your communication becomes.  </p>
<p><em>=== Variety is the spice of life ===</em><br />
<a href="http://unitedmindset.com/jonbcampos/wp-content/uploads/2010/08/Screen-shot-2010-08-02-at-10.24.56-AM.png"><img src="http://unitedmindset.com/jonbcampos/wp-content/uploads/2010/08/Screen-shot-2010-08-02-at-10.24.56-AM-300x219.png" alt="" title="Retention of Information Chart" width="300" height="219" class="alignright size-medium wp-image-1849" /></a>My final hint to better communication is to add variety to your communication. By just speaking your meaning, the retention rate is on average 10% after only a few hours. By showing visuals alone, 35%. By speaking and showing visuals, 65%.</p>
<p>This tells you that the more ways that you can communicate your message the better.</p>
<p>If someone doesn&#8217;t understand the first time you communicate with them, don&#8217;t repeat word for word what you said earlier. This is not going to help communication at all. Instead switch it up and change your tactic. The person you are communicating with may be a visual learner rather than an auditory learner or vice versa. By switching up your communication style you have a greater ability to communicate your meaning then by sticking to one form of communication only.</p>
<p>I know this seems simple but I don&#8217;t know how many meetings I sit in where people try to talk to me explaining and reiterating their ideas over and over again where a picture will solve everything. Usually this is the point that I pop out of my chair and start drawing on the board and the meaning becomes clear for everyone in the meeting. It&#8217;s okay to change it up and try new techniques in meetings with clients and coworkers. No one is going to be upset when they leave a meeting with a full understanding of what is going on.</p>
<p>They will only leave upset when they wasted their time and no meaning was fully communicated.</p>
<p>This also can apply to complex computer systems when talking to non-geek clients. Rather than trying to explain to the client exactly how a system works, reorient the example to something they are familiar with. This may sound like you are &#8220;dumbing down&#8221; the subject but what you are actually doing is just improving the entirety of the conversation&#8217;s communication quality.</p>
<blockquote><p>
Too often developers and designers like to prove how smart they are by overtalking their audience, however all they are really doing is making themselves look like horrible communicators and therefore less intelligent, not more. </p>
<p>If you can&#8217;t communicate your ideas and meaning then what was the point?
</p></blockquote>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://unitedmindset.com/jonbcampos/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p><img src="http://feeds.feedburner.com/~r/TheWorldInAStateOfFlex/~4/uyz6PRtXgRY" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://unitedmindset.com/jonbcampos/2010/08/02/communicate-with-your-clients/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		<feedburner:origLink>http://unitedmindset.com/jonbcampos/2010/08/02/communicate-with-your-clients/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=communicate-with-your-clients</feedburner:origLink></item>
		<item>
		<title>How to Overlay the Adobe AIR SDK for Use with the Flex SDK</title>
		<link>http://feedproxy.google.com/~r/TheWorldInAStateOfFlex/~3/BSVQcr_gRAE/</link>
		<comments>http://unitedmindset.com/jonbcampos/2010/07/21/how-to-overlay-the-adobe-air-sdk-for-use-with-the-flex-sdk/#comments</comments>
		<pubDate>Wed, 21 Jul 2010 21:20:22 +0000</pubDate>
		<dc:creator>Jonathan Campos</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[air]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[sdk]]></category>

		<guid isPermaLink="false">http://unitedmindset.com/jonbcampos/?p=1812</guid>
		<description><![CDATA[This information is in the AIR_Android_ReleaseNotes_xxxx.pdf. What I am posting here is just meant to shift to the surface some very valuable information. I know that there are many people out there that manually merge the AIR SDK onto the Flex SDK &#8211; myself included. I knew there had to be a better way to [...]]]></description>
			<content:encoded><![CDATA[<blockquote><p>
This information is in the <strong>AIR_Android_ReleaseNotes_xxxx.pdf</strong>. What I am posting here is just meant to shift to the surface some very valuable information.
</p></blockquote>
<p>I know that there are many people out there that manually merge the AIR SDK onto the Flex SDK &#8211; myself included. I knew there had to be a better way to do it but &#8220;if it ain&#8217;t broke, don&#8217;t fix it&#8221; right?</p>
<p>Well I&#8217;m tired of spending those tedious minutes going through folders and copying over files. Yes, if you are in windows this is just a drag and drop operation but not for a mac. We need to get into terminal to do this.<br />
<span id="more-1812"></span><br />
1. In terminal, &#8220;cd&#8221; to the root folder of the Flex SDK</p>
<p>2. Place the AIR25_mac_sdk_XXXXXXX.tbz2 file in your root folder</p>
<p>3. Run the following command:</p>
<div class="codecolorer-container text dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">tar jxvf AIR25_mac_sdk_XXXXXX.tbz2</div></td></tr></tbody></table></div>
<p>If there is a file permissions problem you may need to add a &#8220;sudo chop&#8221; to the front of that command, as such:</p>
<div class="codecolorer-container text dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">sudo tar jxvf AIR25_mac_sdk_XXXXXX.tbz2</div></td></tr></tbody></table></div>
<p>FYI. The &#8220;sudo chop&#8221; was supposed to be a joke.</p>
<p>HTH</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://unitedmindset.com/jonbcampos/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p><img src="http://feeds.feedburner.com/~r/TheWorldInAStateOfFlex/~4/BSVQcr_gRAE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://unitedmindset.com/jonbcampos/2010/07/21/how-to-overlay-the-adobe-air-sdk-for-use-with-the-flex-sdk/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		<feedburner:origLink>http://unitedmindset.com/jonbcampos/2010/07/21/how-to-overlay-the-adobe-air-sdk-for-use-with-the-flex-sdk/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=how-to-overlay-the-adobe-air-sdk-for-use-with-the-flex-sdk</feedburner:origLink></item>
		<item>
		<title>Managing the Android Development Environment</title>
		<link>http://feedproxy.google.com/~r/TheWorldInAStateOfFlex/~3/eGXu0Cc1p4E/</link>
		<comments>http://unitedmindset.com/jonbcampos/2010/07/21/managing-the-android-development-environment/#comments</comments>
		<pubDate>Wed, 21 Jul 2010 14:10:29 +0000</pubDate>
		<dc:creator>Jonathan Campos</dc:creator>
				<category><![CDATA[Air for Android]]></category>
		<category><![CDATA[air for android]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[ANT]]></category>
		<category><![CDATA[apk]]></category>

		<guid isPermaLink="false">http://unitedmindset.com/jonbcampos/?p=1656</guid>
		<description><![CDATA[If you are starting with this post I recommend actually starting with a previous post introducing AIR for Android Development. There is a ANT file there that you will want to have. Once you have your project set up (Flash Professional or Flash Builder) and all the required downloads from the earlier post we still [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://unitedmindset.com/jonbcampos/wp-content/uploads/2010/07/airforandroid1.png"><img src="http://unitedmindset.com/jonbcampos/wp-content/uploads/2010/07/airforandroid1.png" alt="" title="AIR for Android Logo" width="228" height="200" class="alignleft size-full wp-image-1766" /></a><br />
If you are starting with this post I recommend actually starting with a previous post introducing <a href="http://unitedmindset.com/jonbcampos/2010/07/19/android-mobile-development/">AIR for Android Development</a>. There is a ANT file there that you will want to have.</p>
<p>Once you have your project set up (<a href="http://unitedmindset.com/jonbcampos/2010/07/20/creating-a-flash-professional-android-project/">Flash Professional</a> or <a href="http://unitedmindset.com/jonbcampos/2010/07/20/creating-a-flash-builder-android-project/">Flash Builder</a>) and all the <a href="http://unitedmindset.com/jonbcampos/2010/07/19/android-mobile-development/#required_downloads">required downloads from the earlier post</a> we still need to do some setup before we can start running the emulator and releasing to your Android device.</p>
<p>This is where that ANT file will really help your development. What we need to be able to do is startup the Android SDK and AVD Manager, download some packages, and set up some virtual devices. Only once this is done can we create emulators of different types and start installing.</p>
<p>Before going down the next steps make sure to set up your <em>build.properties</em>. Once you have all your paths set correctly we&#8217;ll be ready to move forward. What you don&#8217;t realize is you already have a working development environment, now let&#8217;s see how to use our environment. </p>
<blockquote><p>
Information on how to use the command line for all your commands is in the <a href="http://developer.android.com/guide/developing/tools/avd.html">Android Development Guide</a>. I&#8217;ve just made it a bit easier by providing a preconfigured ANT file.
</p></blockquote>
<p> <span id="more-1656"></span></p>
<p><strong>Starting up the Android SDK and AVD Manager</strong><br />
The next few steps all take place in the provided Android SDK and AVD Manager. To startup the manager is very simple, with ant execute the <em>start_up_manager</em> target.</p>
<div class="codecolorer-container text dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ ant -buildfile build.xml start_up_manager</div></td></tr></tbody></table></div>
<p>With this command properly called the java app should start right up and you should see this.<br />
<a href="http://unitedmindset.com/jonbcampos/wp-content/uploads/2010/07/Screen-shot-2010-07-20-at-3.23.04-PM.png"><img src="http://unitedmindset.com/jonbcampos/wp-content/uploads/2010/07/Screen-shot-2010-07-20-at-3.23.04-PM-300x174.png" alt="" title="Android SDK and AVD Manager" width="300" height="174" class="alignnone size-medium wp-image-1780" /></a></p>
<blockquote><p>
On the first startup you won&#8217;t have any listed virtual devices. We&#8217;ll need to add those in.
</p></blockquote>
<p><strong>Select and Download Packages</strong><br />
Before we can create a virtual device you need to go get some packages for your device to run on.<br />
<a href="http://unitedmindset.com/jonbcampos/wp-content/uploads/2010/07/Screen-shot-2010-07-20-at-3.30.26-PM.png"><img src="http://unitedmindset.com/jonbcampos/wp-content/uploads/2010/07/Screen-shot-2010-07-20-at-3.30.26-PM-300x175.png" alt="" title="Available Packages" width="300" height="175" class="alignnone size-medium wp-image-1782" /></a></p>
<p>Go to <em>Available Packages</em> and select the packages you want to download. Depending on the amount of packages you select you may be here a long time &#8211; I just did them all because I am crazy like that. I&#8217;d recommend getting a drink right about now.</p>
<p>Once all the packages you&#8217;ve selected are downloaded the waiting is over, we can get moving now.</p>
<p>My Installed Packages.<br />
<a href="http://unitedmindset.com/jonbcampos/wp-content/uploads/2010/07/Screen-shot-2010-07-20-at-3.33.05-PM.png"><img src="http://unitedmindset.com/jonbcampos/wp-content/uploads/2010/07/Screen-shot-2010-07-20-at-3.33.05-PM-300x175.png" alt="" title="Installed Packages" width="300" height="175" class="alignnone size-medium wp-image-1783" /></a></p>
<p>You can go through your finder/browser and see the downloaded packages in your <em>platforms</em> folder.<br />
<a href="http://unitedmindset.com/jonbcampos/wp-content/uploads/2010/07/Screen-shot-2010-07-20-at-3.35.31-PM.png"><img src="http://unitedmindset.com/jonbcampos/wp-content/uploads/2010/07/Screen-shot-2010-07-20-at-3.35.31-PM-300x104.png" alt="" title="Screen shot 2010-07-20 at 3.35.31 PM" width="300" height="104" class="alignnone size-medium wp-image-1784" /></a></p>
<p><strong>Setup Your Android Virtual Devices</strong><br />
With your packages downloaded we can now create our virtual devices on the <em>Virtual Devices</em> window.<br />
<a href="http://unitedmindset.com/jonbcampos/wp-content/uploads/2010/07/Screen-shot-2010-07-20-at-3.23.04-PM.png"><img src="http://unitedmindset.com/jonbcampos/wp-content/uploads/2010/07/Screen-shot-2010-07-20-at-3.23.04-PM-300x174.png" alt="" title="Android SDK and AVD Manager" width="300" height="174" class="alignnone size-medium wp-image-1780" /></a></p>
<p>Now you can go to <em>New&#8230;</em> and create a new Virtual Device.<br />
<a href="http://unitedmindset.com/jonbcampos/wp-content/uploads/2010/07/Screen-shot-2010-07-20-at-4.01.49-PM.png"><img src="http://unitedmindset.com/jonbcampos/wp-content/uploads/2010/07/Screen-shot-2010-07-20-at-4.01.49-PM-214x300.png" alt="" title="New AVD" width="214" height="300" class="alignnone size-medium wp-image-1788" /></a></p>
<p>Select your target platform.<br />
<a href="http://unitedmindset.com/jonbcampos/wp-content/uploads/2010/07/Screen-shot-2010-07-20-at-4.01.37-PM.png"><img src="http://unitedmindset.com/jonbcampos/wp-content/uploads/2010/07/Screen-shot-2010-07-20-at-4.01.37-PM-214x300.png" alt="" title="New AVD Platforms" width="214" height="300" class="alignnone size-medium wp-image-1789" /></a></p>
<p>The final thing that you need to do is to add abilities to your new virtual device by adding hardware specifications.<br />
<a href="http://unitedmindset.com/jonbcampos/wp-content/uploads/2010/07/Screen-shot-2010-07-20-at-4.06.03-PM.png"><img src="http://unitedmindset.com/jonbcampos/wp-content/uploads/2010/07/Screen-shot-2010-07-20-at-4.06.03-PM-300x110.png" alt="" title="New Hardware" width="300" height="110" class="alignnone size-medium wp-image-1790" /></a><br />
<a href="http://unitedmindset.com/jonbcampos/wp-content/uploads/2010/07/Screen-shot-2010-07-20-at-4.05.53-PM.png"><img src="http://unitedmindset.com/jonbcampos/wp-content/uploads/2010/07/Screen-shot-2010-07-20-at-4.05.53-PM-300x247.png" alt="" title="Hardware specifications" width="300" height="247" class="alignnone size-medium wp-image-1794" /></a></p>
<p>Once you have your virtual device set up we can run it as an emulator. You can set up as many of these as you like so don&#8217;t hold back.</p>
<blockquote><p>
With your platforms downloaded you can also set up your AVDs through the ANT file by calling the following command.</p>
<div class="codecolorer-container text dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ ant -buildfile build.xml create_virtual_device</div></td></tr></tbody></table></div>
</blockquote>
<p><strong>Startup the Emulator</strong><br />
Once you have some virtual devices set up you can just click on <em>Start&#8230;</em> and startup the emulator, ready for installing and testing.</p>
<blockquote><p>
You can also do this through the ANT file by calling the following command.</p>
<div class="codecolorer-container text dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ ant -buildfile build.xml start_emulator</div></td></tr></tbody></table></div>
</blockquote>
<p><strong>Install the AIR Runtime on the Emulator or Android Device</strong><br />
These next parts require going either through the ANT file or command line. For the ANT file installing the AIR Runtime on the emulator is extremely simple. With your Emulator started up just call the following ant command.</p>
<div class="codecolorer-container text dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ ant -buildfile build.xml install_air_on_emulator</div></td></tr></tbody></table></div>
<p>And for an Android Device just call:</p>
<div class="codecolorer-container text dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ ant -buildfile build.xml install_air_on_device</div></td></tr></tbody></table></div>
<blockquote><p>
The provided scripts expects that there will only be one emulator and/or one device connected at a time.
</p></blockquote>
<p><strong>Install your Application on the Emulator or Android Device</strong><br />
Installing an Application on the emulator or Android Device is extremely simple &#8211; just as simple as installing the Runtime. With your Emulator started up just call the following ant command.</p>
<div class="codecolorer-container text dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ ant -buildfile build.xml test_on_emulator</div></td></tr></tbody></table></div>
<p>And for an Android Device just call:</p>
<div class="codecolorer-container text dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ ant -buildfile build.xml test_on_device</div></td></tr></tbody></table></div>
<blockquote><p>
The provided scripts expects that there will only be one emulator and/or one device connected at a time. The ANT script currently recompiles and builds the application and then deploys it to the target device.
</p></blockquote>
<p><strong>DONE!</strong><br />
Once you have done all of this you will have a working development environment up and going. Good luck in your Adventures with Android.</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://unitedmindset.com/jonbcampos/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p><img src="http://feeds.feedburner.com/~r/TheWorldInAStateOfFlex/~4/eGXu0Cc1p4E" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://unitedmindset.com/jonbcampos/2010/07/21/managing-the-android-development-environment/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		<feedburner:origLink>http://unitedmindset.com/jonbcampos/2010/07/21/managing-the-android-development-environment/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=managing-the-android-development-environment</feedburner:origLink></item>
		<item>
		<title>Creating a Flash Builder Android Project</title>
		<link>http://feedproxy.google.com/~r/TheWorldInAStateOfFlex/~3/G-rEh0YLLv8/</link>
		<comments>http://unitedmindset.com/jonbcampos/2010/07/20/creating-a-flash-builder-android-project/#comments</comments>
		<pubDate>Tue, 20 Jul 2010 15:00:06 +0000</pubDate>
		<dc:creator>Jonathan Campos</dc:creator>
				<category><![CDATA[Air for Android]]></category>
		<category><![CDATA[air for android]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[apk]]></category>
		<category><![CDATA[flash builder]]></category>

		<guid isPermaLink="false">http://unitedmindset.com/jonbcampos/?p=1680</guid>
		<description><![CDATA[This post and it&#8217;s brother Creating a Flash Professional Android Project are going to be really short and sweet. I just want to make sure that there are no places for questions. If you are starting with this post I recommend actually starting with a previous post introducing AIR for Android Development. There is a [...]]]></description>
			<content:encoded><![CDATA[<p>This post and it&#8217;s brother <a href="http://unitedmindset.com/jonbcampos/2010/07/20/creating-a-flash-professional-android-project/">Creating a Flash Professional Android Project</a> are going to be really short and sweet. I just want to make sure that there are no places for questions.</p>
<p>If you are starting with this post I recommend actually starting with a previous post introducing <a href="http://unitedmindset.com/jonbcampos/2010/07/19/android-mobile-development/">AIR for Android Development</a>. There is a ANT file there that you will want to have.</p>
<p><a href="http://unitedmindset.com/jonbcampos/wp-content/uploads/2010/07/Screen-shot-2010-07-20-at-8.22.28-AM.png"><img src="http://unitedmindset.com/jonbcampos/wp-content/uploads/2010/07/Screen-shot-2010-07-20-at-8.22.28-AM-300x174.png" alt="" title="Flash Builder Opening Screen" width="300" height="174" class="alignnone size-medium wp-image-1740" /></a></p>
<blockquote><p>
FYI: All these steps are also available in <em>Developing AIR Apps for Android PDF</em> provided by Adobe.
</p></blockquote>
<p><span id="more-1680"></span><br />
Unlike Flash Professional we won&#8217;t be able to create an .apk file from our IDE. <a href="http://renaun.com/blog/2010/06/debug-air-apps-on-android-with-flash-builder-4/">We can debug from the Flash Builder IDE, as shown by Renaun</a>. That being said, that is where my ANT build file is even more helpful as it can package your application into a .apk file quickly for you.</p>
<p>Let&#8217;s set up this project.</p>
<p><strong>Step 1: Startup</strong><br />
Create a new Flash Builder Project. File > New > Flex Project.</p>
<p><strong>Step 2: Project Settings</strong><br />
<a href="http://unitedmindset.com/jonbcampos/wp-content/uploads/2010/07/Screen-shot-2010-07-20-at-8.31.10-AM.png"><img src="http://unitedmindset.com/jonbcampos/wp-content/uploads/2010/07/Screen-shot-2010-07-20-at-8.31.10-AM-233x300.png" alt="" title="New Flash Builder Project Window" width="233" height="300" class="alignnone size-medium wp-image-1741" /></a></p>
<p>Make sure the application type is Adobe AIR and that you are using the SDK that you created with the AIR 2.5 SDK.</p>
<p>Then click next twice or until you get to this screen.<br />
<a href="http://unitedmindset.com/jonbcampos/wp-content/uploads/2010/07/Screen-shot-2010-07-20-at-8.34.03-AM.png"><img src="http://unitedmindset.com/jonbcampos/wp-content/uploads/2010/07/Screen-shot-2010-07-20-at-8.34.03-AM-199x300.png" alt="" title="Flash Builder New Project Options" width="199" height="300" class="alignnone size-medium wp-image-1742" /></a> </p>
<p>Change your main application file to &#8220;[Your Application Name].as&#8221;. By default it will try to create an MXML file, but as we are trying to make an AS3 project we need to change the file extension to being &#8220;.as&#8221;.</p>
<p>It&#8217;s also good practice to change your application ID to be something a bit more unique &#8211; I always just add in reverse domain extension to it.</p>
<p>Click Finish</p>
<p><strong>Step 3: Program</strong><br />
You should now have an application that looks like this:</p>
<div class="codecolorer-container actionscript dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br /></div></td><td><div class="actionscript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">package<br />
<span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">display</span>.<span style="color: #006600;">Sprite</span>;<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; <span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">class</span> HelloWorld <span style="color: #0066CC;">extends</span> Sprite<br />
&nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> HelloWorld<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
<span style="color: #66cc66;">&#125;</span></div></td></tr></tbody></table></div>
<p>You can keep programming your application to whatever you want. As I just want a quick application that shows Hello World so that we can continue, my application is going to be very simple.</p>
<p>My Application:</p>
<div class="codecolorer-container actionscript dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br /></div></td><td><div class="actionscript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">package<br />
<span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">display</span>.<span style="color: #006600;">Sprite</span>;<br />
&nbsp; &nbsp; <span style="color: #0066CC;">import</span> flash.<span style="color: #0066CC;">text</span>.<span style="color: #0066CC;">TextField</span>;<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; <span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">class</span> HelloWorld <span style="color: #0066CC;">extends</span> Sprite<br />
&nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> HelloWorld<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">var</span> <span style="color: #0066CC;">textField</span>:<span style="color: #0066CC;">TextField</span> = <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #0066CC;">TextField</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">textField</span>.<span style="color: #0066CC;">text</span> = <span style="color: #ff0000;">&quot;Hello World&quot;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">stage</span>.<span style="color: #006600;">addChild</span><span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">textField</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
<span style="color: #66cc66;">&#125;</span></div></td></tr></tbody></table></div>
<p><strong>Step 4: Setup your descriptor file</strong><br />
First thing you should do is make sure that your application descriptor namespace includes &#8220;2.5&#8243;:</p>
<div class="codecolorer-container text dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&lt;application xmlns=&quot;http://ns.adobe.com/air/application/2.5&quot;&gt;</div></td></tr></tbody></table></div>
<p>If you are using the right SDK, this shouldn&#8217;t be an issue.</p>
<p>We only need to change a few attributes in the application descriptor file to get things going. Any other changes that we need to make will be more specific for your application.</p>
<p>In the &#8220;initialWindow&#8221; tag find &#8220;visible&#8221;. Make sure it is set to <em>true</em>.</p>
<p>Now find &#8220;supportedProfiles&#8221;, set this to <em>mobileDevice</em>.</p>
<p>Now go to the &#8220;content&#8221; tag and change it to &#8220;[Your Application Name].swf&#8221;. Flash Builder typically switches this name out for us, and I could do it in my ANT file. But I can be lazy at times and would prefer just to set this value. Especially since this application descriptor belongs to the one specific application.</p>
<p><strong>Step 5: Package your application</strong><br />
Your application is now ready to be changed to a .apk file for release. This is also when I will diverge from the Adobe PDF. See, I don&#8217;t like command line. So I created <a href="http://unitedmindset.com/jonbcampos/2010/07/19/android-mobile-development/">that nifty little ANT file to do everything I need</a>. Now go get that ANT file and add it into your project and make any changes necessary to the build.properties as described previously in the last post.</p>
<p>With the settings changed to your specific computer we are good to go. You can either run an ANT file from command line or from your IDE.</p>
<p>From the IDE:<br />
<a href="http://unitedmindset.com/jonbcampos/wp-content/uploads/2010/07/Screen-shot-2010-07-20-at-8.54.18-AM.png"><img src="http://unitedmindset.com/jonbcampos/wp-content/uploads/2010/07/Screen-shot-2010-07-20-at-8.54.18-AM-300x170.png" alt="" title="ANT from IDE" width="300" height="170" class="alignnone size-medium wp-image-1744" /></a><br />
Here I right-clicked on the build folder and went to Run As.</p>
<p>Or from your command line you can run the ant file. Just &#8220;change directory&#8221; to your project holding the build.xml. Here you can type in one of two commands.</p>
<div class="codecolorer-container text dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">[Hello World Directory] $ ant</div></td></tr></tbody></table></div>
<div class="codecolorer-container text dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">[Hello World Directory] $ ant -buildfile build.xml build</div></td></tr></tbody></table></div>
<blockquote><p>
Both mean the same thing as the <strong>build</strong> target is the default target in ANT and the <strong>build.xml</strong> is the default file. If you wanted to run a different target you could.</p>
<p>To run <strong>get_devices</strong></p>
<div class="codecolorer-container text dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">[Hello World Directory] $ ant -buildfile build.xml get_devices</div></td></tr></tbody></table></div>
<p>To run <strong>start_up_manager</strong></p>
<div class="codecolorer-container text dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">[Hello World Directory] $ ant -buildfile build.xml start_up_manager</div></td></tr></tbody></table></div>
</blockquote>
<p>After you run the <em>build</em> target you are good to go. The ANT file will spit out your .apk file in a <em>release</em> folder. That&#8217;s it, you are ready to get away from the Actionscript and into the Android release process.</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://unitedmindset.com/jonbcampos/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p><img src="http://feeds.feedburner.com/~r/TheWorldInAStateOfFlex/~4/G-rEh0YLLv8" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://unitedmindset.com/jonbcampos/2010/07/20/creating-a-flash-builder-android-project/feed/</wfw:commentRss>
		<slash:comments>19</slash:comments>
		<feedburner:origLink>http://unitedmindset.com/jonbcampos/2010/07/20/creating-a-flash-builder-android-project/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=creating-a-flash-builder-android-project</feedburner:origLink></item>
		<item>
		<title>Creating a Flash Professional Android Project</title>
		<link>http://feedproxy.google.com/~r/TheWorldInAStateOfFlex/~3/mV7Xv6nDUWM/</link>
		<comments>http://unitedmindset.com/jonbcampos/2010/07/20/creating-a-flash-professional-android-project/#comments</comments>
		<pubDate>Tue, 20 Jul 2010 15:00:04 +0000</pubDate>
		<dc:creator>Jonathan Campos</dc:creator>
				<category><![CDATA[Air for Android]]></category>
		<category><![CDATA[air for android]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[apk]]></category>
		<category><![CDATA[cs5]]></category>
		<category><![CDATA[flash professional]]></category>

		<guid isPermaLink="false">http://unitedmindset.com/jonbcampos/?p=1684</guid>
		<description><![CDATA[This post and it&#8217;s brother Creating a Flash Builder Android Project are going to be really short and sweet. I just want to make sure that there are no places for questions. If you are starting with this post I recommend actually starting with a previous post introducing AIR for Android Development. There is a [...]]]></description>
			<content:encoded><![CDATA[<p>This post and it&#8217;s brother <a href="http://unitedmindset.com/jonbcampos/2010/07/20/creating-a-flash-builder-android-project/">Creating a Flash Builder Android Project</a> are going to be really short and sweet. I just want to make sure that there are no places for questions.</p>
<p>If you are starting with this post I recommend actually starting with a previous post introducing <a href="http://unitedmindset.com/jonbcampos/2010/07/19/android-mobile-development/">AIR for Android Development</a>. There is a ANT file there that you will want to have.</p>
<p><img src="http://unitedmindset.com/jonbcampos/wp-content/uploads/2010/07/Screen-shot-2010-07-19-at-4.09.36-PM-300x143.png" alt="" title="Flash CS5 Intro Screen" width="300" height="143" class="alignnone size-medium wp-image-1721" /></p>
<blockquote><p>
FYI: All these steps are also available in <em>Developing AIR Apps for Android PDF</em> provided by Adobe.
</p></blockquote>
<p><span id="more-1684"></span><br />
<strong>Step 1: Add Extension</strong><br />
Go to <em>Help > Manage Extensions&#8230;</em> and install the AIR for Android Extension for Flash CS5. (Yes, CS5 is required).<br />
<a href="http://unitedmindset.com/jonbcampos/wp-content/uploads/2010/07/Screen-shot-2010-07-19-at-4.14.06-PM.png"><img src="http://unitedmindset.com/jonbcampos/wp-content/uploads/2010/07/Screen-shot-2010-07-19-at-4.14.06-PM-300x200.png" alt="" title="Manage Extensions CS5" width="300" height="200" class="alignnone size-medium wp-image-1725" /></a></p>
<p><strong>Step 2: Restart</strong><br />
Restart Flash CS5</p>
<p><strong>Step 3: Create Project</strong><br />
Create a new AIR for Android project.<br />
<a href="http://unitedmindset.com/jonbcampos/wp-content/uploads/2010/07/Screen-shot-2010-07-19-at-4.18.46-PM.png"><img src="http://unitedmindset.com/jonbcampos/wp-content/uploads/2010/07/Screen-shot-2010-07-19-at-4.18.46-PM-300x183.png" alt="" title="AIR for Android Template" width="300" height="183" class="alignnone size-medium wp-image-1724" /></a></p>
<p><strong>Step 4: Save</strong><br />
Save the the document.</p>
<p><strong>Step 5: Write your App</strong><br />
Do whatever you want. Here I&#8217;m going to add text that says &#8220;Hello World&#8221;. <img src='http://unitedmindset.com/jonbcampos/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
<a href="http://unitedmindset.com/jonbcampos/wp-content/uploads/2010/07/Screen-shot-2010-07-19-at-4.24.46-PM.png"><img src="http://unitedmindset.com/jonbcampos/wp-content/uploads/2010/07/Screen-shot-2010-07-19-at-4.24.46-PM-300x150.png" alt="" title="Hello World Text" width="300" height="150" class="alignnone size-medium wp-image-1728" /></a></p>
<p><strong>Step 6: AIR for Android Settings</strong><br />
Now we do the Android specific steps. Go to File > AIR for Android Settings.</p>
<p><a href="http://unitedmindset.com/jonbcampos/wp-content/uploads/2010/07/Screen-shot-2010-07-19-at-4.27.42-PM.png"><img src="http://unitedmindset.com/jonbcampos/wp-content/uploads/2010/07/Screen-shot-2010-07-19-at-4.27.42-PM-216x300.png" alt="" title="Hello World AIR for Android Settings" width="216" height="300" class="alignnone size-medium wp-image-1729" /></a></p>
<p>With the settings:<br />
Output File: Hello.apk<br />
App name: Hello<br />
App ID: Hello<br />
Aspect ratio: Portrait</p>
<p><strong>Step 7: Set up the Deployment&#8230;</strong><br />
<a href="http://unitedmindset.com/jonbcampos/wp-content/uploads/2010/07/Screen-shot-2010-07-19-at-4.32.15-PM.png"><img src="http://unitedmindset.com/jonbcampos/wp-content/uploads/2010/07/Screen-shot-2010-07-19-at-4.32.15-PM-216x300.png" alt="" title="AIR for Android Deployment tab" width="216" height="300" class="alignnone size-medium wp-image-1730" /></a></p>
<p>On the Deployment tab, make the following settings:</p>
<ul>
<li>Certificate: Point to a valid AIR code-signing certificate. You can click the Create button to create a new certificate. (Android apps deployed via the Android Marketplace must have certificates that are valid for 25 years.) Enter the certificate password in the Password field.</li>
<li>Android deployment type: Release</li>
<li>After Publish: Select both options</li>
<li>Enter the path to the ADB tool in the tools subdirectory of the Android SDK.</li>
<li>Close the Android settings dialog by clicking OK.</li>
</ul>
<p><strong>Step 8: Update the AIR Descriptor file.</strong></p>
<ul>
<li>Open the application descriptor (located in the directory where you saved the .fla file).</li>
<li>Change the <version> tag to <versionNumber> and make sure that it contains a value of the form: number.number.number<br />
For example: <versionNumber>0.1.0</versionNumber></li>
<li>Save the file.</li>
</ul>
<p><strong>Step 9: Publish</strong><br />
Now just go to File > Publish and you can export your .apk file. We&#8217;ll still need to install the runtime and the application on the emulator and/or device, but for now we have our .apk file ready to be installed.</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://unitedmindset.com/jonbcampos/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p><img src="http://feeds.feedburner.com/~r/TheWorldInAStateOfFlex/~4/mV7Xv6nDUWM" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://unitedmindset.com/jonbcampos/2010/07/20/creating-a-flash-professional-android-project/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		<feedburner:origLink>http://unitedmindset.com/jonbcampos/2010/07/20/creating-a-flash-professional-android-project/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=creating-a-flash-professional-android-project</feedburner:origLink></item>
		<item>
		<title>Speaking at 360|Flex DC</title>
		<link>http://feedproxy.google.com/~r/TheWorldInAStateOfFlex/~3/aqj7Hl2KgAs/</link>
		<comments>http://unitedmindset.com/jonbcampos/2010/07/20/speaking-at-360flex-dc/#comments</comments>
		<pubDate>Tue, 20 Jul 2010 14:23:14 +0000</pubDate>
		<dc:creator>Jonathan Campos</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[360Flex]]></category>
		<category><![CDATA[DC]]></category>
		<category><![CDATA[Presentations]]></category>

		<guid isPermaLink="false">http://unitedmindset.com/jonbcampos/?p=1758</guid>
		<description><![CDATA[This is just a quick shout out to 360&#124;Flex! This September I&#8217;m proud to present again for 360&#124;Flex and the conference goers in DC. I&#8217;ll be covering a hands on and best practices to developing with the Android Device using Adobe AIR. I&#8217;m hoping many of you come out and check out this hands on. [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.eventbrite.com/event/680816340/360flexhelpsell/3634556037"><img src="http://unitedmindset.com/jonbcampos/wp-content/uploads/2010/07/speakerbadge.png" alt="" title="speakerbadge" width="200" height="211" class="alignleft size-full wp-image-1759" /></a><br />
This is just a quick shout out to 360|Flex!</p>
<p>This September I&#8217;m proud to present again for 360|Flex and the conference goers in DC. I&#8217;ll be covering a hands on and best practices to developing with the Android Device using Adobe AIR.</p>
<p>I&#8217;m hoping many of you come out and check out this hands on. I&#8217;ll be going over environmental setup, development, best practices with development, and tips and tricks to debugging and final releases. After you leave this hands on you should be popping out Android applications just as fast as you can dream them up.</p>
<p><a href="http://www.eventbrite.com/event/680816340/360flexhelpsell/3634556037">Go checkout and register for 360|Flex DC now!</a> There are tons of A-List presenters and fun activities to be had.</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://unitedmindset.com/jonbcampos/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p><img src="http://feeds.feedburner.com/~r/TheWorldInAStateOfFlex/~4/aqj7Hl2KgAs" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://unitedmindset.com/jonbcampos/2010/07/20/speaking-at-360flex-dc/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://unitedmindset.com/jonbcampos/2010/07/20/speaking-at-360flex-dc/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=speaking-at-360flex-dc</feedburner:origLink></item>
		<item>
		<title>Android Mobile Development</title>
		<link>http://feedproxy.google.com/~r/TheWorldInAStateOfFlex/~3/rmUtKgi52uk/</link>
		<comments>http://unitedmindset.com/jonbcampos/2010/07/19/android-mobile-development/#comments</comments>
		<pubDate>Mon, 19 Jul 2010 15:00:33 +0000</pubDate>
		<dc:creator>Jonathan Campos</dc:creator>
				<category><![CDATA[Air for Android]]></category>
		<category><![CDATA[air for android]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[ANT]]></category>
		<category><![CDATA[continuous integration]]></category>

		<guid isPermaLink="false">http://unitedmindset.com/jonbcampos/?p=1644</guid>
		<description><![CDATA[I am starting to write this post as I wait for a bunch of new packages to download and install from the Android SDK and AVD Manager. I&#8217;ll let you know now that so far I&#8217;ve really liked working on the Android Development Platform &#8211; especially with Air. The tricky part isn&#8217;t writing the application. [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://unitedmindset.com/jonbcampos/wp-content/uploads/2010/07/airforandroid.png" alt="" title="airforandroid" width="228" height="200" class="alignleft size-full wp-image-1673" />I am starting to write this post as I wait for a bunch of new packages to download and install from the Android SDK and AVD Manager. I&#8217;ll let you know now that so far I&#8217;ve really liked working on the Android Development Platform &#8211; especially with Air.</p>
<p>The tricky part isn&#8217;t writing the application. That part is easy and we know that part. The tricky part is building the .apk package and testing the application on an emulator or other valid device.</p>
<p><strong>So that is what I am going to write about, the tricky parts.</strong></p>
<ul>
<li>- <a href="http://unitedmindset.com/jonbcampos/2010/07/21/managing-the-android-development-environment/">Managing the Android Development Environment</a></li>
<li>- <a href="http://unitedmindset.com/jonbcampos/2010/07/20/creating-a-flash-professional-android-project/">Building the Hello World Application in Flash Professional</a></li>
<li>- <a href="http://unitedmindset.com/jonbcampos/2010/07/20/creating-a-flash-builder-android-project/">Building the Hello World Application in Flash Builder</a></li>
</ul>
<p>Once you read through these posts you&#8217;ll have an up and going <em>Air for Android</em> development environment and an initial application to kick you off.<br />
<span id="more-1644"></span><br />
<strong>Starting these posts off I will add a few disclosers:</strong></p>
<ol>
<li>1. I am not a fan of command line.</li>
<li>2. I am not a fan of messing with the paths in my computer.</li>
</ol>
<p><strong>I am not a fan of command line</strong><br />
I just don&#8217;t like memorizing a ton of commands or having to go back and reference a ton of commands and paths. One small path issue and BAM nothing works and you have to read through a ton of mixed code to see where your problem is. Not fun.</p>
<p><strong>I am not a fan of messing with the paths in my computer</strong><br />
Seems like every programming language I get into requires a bunch of path changes and if I move computers now nothing works till I set it up. Not fun. I also fear screwing up my computer.</p>
<blockquote><p>
In case you like setting up paths or want to know how there is a guide provided by Adobe called <em>Developing AIR Apps for Android</em> in the prerelease site. That PDF includes a section <em>Setting the path environment variable</em>. Follow that guide.
</p></blockquote>
<p><strong>Solution</strong><br />
I like using ANT. I can set up all my paths in ANT and ANT works directly into your continuous integration environment. So if I move computers I can just set up my properties I&#8217;ll be good to go. Finally the amount of commands to memorize goes WAY down or you can just look into the ANT build file and see the available possible commands.</p>
<blockquote><p>
Expert tip!<br />
You can always view the available targets in an ANT file in the command line by running the following command.</p>
<div class="codecolorer-container text dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">ant -buildfile build.xml -projecthelp</div></td></tr></tbody></table></div>
</blockquote>
<p>Want to know what else is pretty slick? I&#8217;ve set up the ANT file for you. I&#8217;m thinking of making a nice GUI in AIR to help you out, but for now an ANT file will have to help.</p>
<p><strong><a name="required_downloads">Getting Started</a></strong><br />
The things you&#8217;ll need to get started with Air for Android.</p>
<ol>
<li>- <a href="http://developer.android.com/sdk/index.html">Download the Android SDK</a></li>
<li>- <a href="http://labs.adobe.com/technologies/air2/android/">Sign up for the Air for Android Prerelease program</a></li>
<li>- Download Air 2.5 from the prerelease site (if you don&#8217;t already have access to the prerelease site, you&#8217;ll have to wait for your email after you sign up for it)</li>
<li>- Download the prerelease Runtimes (emulator and device)</li>
<li>- <a href="http://opensource.adobe.com/wiki/display/flexsdk/Download+Flex+4">Download the Flex 4 SDK</a></li>
<li>- Combine the Flex 4 SDK with the Air 2.5 SDK</li>
</ol>
<p><strong>Creating a Project</strong><br />
AIR for Android currently works best with either a Pure AS3 project (no Flex) in either Flash Builder or Flash Professional. If you are building with Flash Professional, there is an extension that Adobe has provided for you to help speed up the .apk build process. If you go through Flash Builder you&#8217;ll have to make this file. Again, with the ANT file I am providing either is a very simple path, so choose the development environment that you prefer.</p>
<ul>
<li>- <a href="http://unitedmindset.com/jonbcampos/2010/07/20/creating-a-flash-builder-android-project/">Creating a Flash Builder Project</a></li>
<li>-<a href="http://unitedmindset.com/jonbcampos/2010/07/20/creating-a-flash-professional-android-project/"> Creating a Flash Professional Project</a></li>
</ul>
<p><strong>Setting Up Your ANT File</strong><br />
<img src="http://unitedmindset.com/jonbcampos/wp-content/uploads/2010/07/Screen-shot-2010-07-18-at-10.26.45-PM.png" alt="" title="Screen shot 2010-07-18 at 10.26.45 PM" width="244" height="279" class="alignleft size-full wp-image-1693" />Once you have your projected set up you will be ready to add in the ANT build information. The ANT file that I will use for the rest of these posts is really easy to set up, just drop it (and base.properties) into your application in the root level.</p>
<p>This ANT file provides you the ability to install the device and emulator runtimes, install your application and test it on a device or runtime, set up a device, run the emulator and even run the Android Management device. Again, yes you can do all these things in the command line&#8230; but do you want to?</p>
<p>Then you need to create a build.properties text file. This is the file that you will put your own environment&#8217;s paths. So if you share this build file, everyone can have their own properties and the main build.xml is the same and unchanged.</p>
<p><strong>build.properties</strong></p>
<div class="codecolorer-container text dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># Flex SDK File Location on your computer<br />
FLEX_HOME=/Applications/Adobe\ Flash\ Builder\ 4/sdks/android_flex_sdk_4.1.0.16076<br />
<br />
#Android SDK Folder on your computer<br />
ANDROID_SDK=${FLEX_HOME}/android/android-sdk-mac_86<br />
<br />
#Emulator zip files on your computer<br />
EMULATOR_RUNTIME_ZIP=${FLEX_HOME}/android/Runtime_Emulator_Froyo_20100705.apk.zip<br />
DEVICE_RUNTIME_ZIP=${FLEX_HOME}/android/Runtime_Device_Froyo_20100705.apk.zip<br />
<br />
#App Settings<br />
APP_NAME=AndroidTest<br />
<br />
#cert<br />
CERT_NAME=SelfSignedCertificate<br />
CERT_ORG_UNIT=Software Development<br />
CERT_ORG_NAME=YourOrgName<br />
CERT_PASSWORD=YourPassword</div></td></tr></tbody></table></div>
<p>You&#8217;ll probably notice that I put my Android SDK in the same folder as my Flex SDK. This isn&#8217;t necessary, I just thought it&#8217;d be nice that all the information for my development environment would be in one location.</p>
<p>In upcoming posts we&#8217;ll go through how to use the ANT file and manage your development environment.</p>
<p>Good luck in your Adventures with Android.</p>
<p><strong>Don&#8217;t miss this, this is the link for the ant files!</strong><br />
<a href='http://unitedmindset.com/jonbcampos/wp-content/uploads/2010/07/build.zip'><img src="http://unitedmindset.com/jonbcampos/wp-content/uploads/2010/07/Download-icon-150x150.png" alt="" title="ANT - Air for Android Build Files" width="100" height="100" class="alignnone size-thumbnail wp-image-1715" /></a></p>
<blockquote><p>
If you previously downloaded this ANT file please redownload it. I&#8217;ve added quite a few additions to it that should make your development much easier.
</p></blockquote>
<blockquote><p>
From here checkout how to <a href="http://unitedmindset.com/jonbcampos/2010/07/21/managing-the-android-development-environment/">manage your Android SDK environment</a>, <a href="http://unitedmindset.com/jonbcampos/2010/07/20/creating-a-flash-builder-android-project/">how to create a Flash Builder Android Project</a>, or <a href="http://unitedmindset.com/jonbcampos/2010/07/20/creating-a-flash-professional-android-project/">how to create a Flash Professional Android Project</a>.
</p></blockquote>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://unitedmindset.com/jonbcampos/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p><img src="http://feeds.feedburner.com/~r/TheWorldInAStateOfFlex/~4/rmUtKgi52uk" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://unitedmindset.com/jonbcampos/2010/07/19/android-mobile-development/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		<feedburner:origLink>http://unitedmindset.com/jonbcampos/2010/07/19/android-mobile-development/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=android-mobile-development</feedburner:origLink></item>
	</channel>
</rss>
