<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Dinesh- Flex/AIR Blog &#187; actionscript</title>
	<atom:link href="http://learnflexair.wordpress.com/category/actionscript/feed/" rel="self" type="application/rss+xml" />
	<link>http://learnflexair.wordpress.com</link>
	<description></description>
	<lastBuildDate>Tue, 11 Aug 2009 10:20:24 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='learnflexair.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/175ff968a9bd75e34a8c4095ae5d8dba?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Dinesh- Flex/AIR Blog &#187; actionscript</title>
		<link>http://learnflexair.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://learnflexair.wordpress.com/osd.xml" title="Dinesh- Flex/AIR Blog" />
		<item>
		<title>Exporting Flex DataGrid To Excel by as3xls.swc</title>
		<link>http://learnflexair.wordpress.com/2009/08/11/exporting-flex-datagrid-to-excel-by-as3xls-swc/</link>
		<comments>http://learnflexair.wordpress.com/2009/08/11/exporting-flex-datagrid-to-excel-by-as3xls-swc/#comments</comments>
		<pubDate>Tue, 11 Aug 2009 10:19:38 +0000</pubDate>
		<dc:creator>dineshblog</dc:creator>
				<category><![CDATA[AIR]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[actionscript]]></category>

		<guid isPermaLink="false">http://learnflexair.wordpress.com/?p=74</guid>
		<description><![CDATA[I was trying to create an AIR app, where i need to export my  datagrid content to excel and give it for the user . I used as3xls-1.0.swc for the excel operation, thought of sharing my solution to the web:-)&#8230;

       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=learnflexair.wordpress.com&blog=5236283&post=74&subd=learnflexair&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I was trying to create an AIR app, where i need to export my  datagrid content to excel and give it for the user . I used as3xls-1.0.swc for the excel operation, thought of sharing my solution to the web:-)&#8230;</p>
<p><img class="alignnone size-full wp-image-77" title="ExcelWrite" src="http://learnflexair.files.wordpress.com/2009/08/excelwrite1.png?w=616&#038;h=813" alt="ExcelWrite" width="616" height="813" /></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/learnflexair.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/learnflexair.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/learnflexair.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/learnflexair.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/learnflexair.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/learnflexair.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/learnflexair.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/learnflexair.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/learnflexair.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/learnflexair.wordpress.com/74/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=learnflexair.wordpress.com&blog=5236283&post=74&subd=learnflexair&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://learnflexair.wordpress.com/2009/08/11/exporting-flex-datagrid-to-excel-by-as3xls-swc/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/110ddb3396c7d2914d096d44c763ec3f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dinesh</media:title>
		</media:content>

		<media:content url="http://learnflexair.files.wordpress.com/2009/08/excelwrite1.png" medium="image">
			<media:title type="html">ExcelWrite</media:title>
		</media:content>
	</item>
		<item>
		<title>Filtering Data in Flex DataGrid</title>
		<link>http://learnflexair.wordpress.com/2009/08/07/filtering-data-in-flex-datagrid/</link>
		<comments>http://learnflexair.wordpress.com/2009/08/07/filtering-data-in-flex-datagrid/#comments</comments>
		<pubDate>Fri, 07 Aug 2009 10:45:55 +0000</pubDate>
		<dc:creator>dineshblog</dc:creator>
				<category><![CDATA[AIR]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[actionscript]]></category>

		<guid isPermaLink="false">http://learnflexair.wordpress.com/?p=71</guid>
		<description><![CDATA[In the below example  i used webservice to get data for the datagrid, thought this could also help
the begginners how to fetch data through webservice and display in datagrid&#8230;
Now coming to the code,Flex has the powerful method for filtering the data in ArrayCollection.
This can be done by assigning filterFunction to the arrayCollection.
&#60;?xml version=&#8221;1.0&#8243; encoding=&#8221;utf-8&#8243;?&#62;
&#60;mx:Application xmlns:mx=&#8221;http://www.adobe.com/2006/mxml&#8221; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=learnflexair.wordpress.com&blog=5236283&post=71&subd=learnflexair&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>In the below example  i used webservice to get data for the datagrid, thought this could also help<br />
the begginners how to fetch data through webservice and display in datagrid&#8230;</p>
<p>Now coming to the code,Flex has the powerful method for filtering the data in ArrayCollection.<br />
This can be done by assigning filterFunction to the arrayCollection.</p>
<p>&lt;?xml version=&#8221;1.0&#8243; encoding=&#8221;utf-8&#8243;?&gt;<br />
&lt;mx:Application xmlns:mx=&#8221;http://www.adobe.com/2006/mxml&#8221; layout=&#8221;absolute&#8221; creationComplete=&#8221;initApp()&#8221;&gt;<br />
&lt;mx:Script&gt;<br />
&lt;![CDATA[<br />
import mx.rpc.soap.LoadEvent;<br />
import mx.events.ListEvent;<br />
import mx.controls.Alert;<br />
import mx.collections.ArrayCollection;<br />
import mx.rpc.events.FaultEvent;<br />
import mx.rpc.events.ResultEvent;</p>
<p>[Bindable]<br />
private var gridData:ArrayCollection;</p>
<p>/* on creationComplete,the wsdl data is loaded */<br />
private function initApp():void{<br />
webService.wsdl = &#8220;http://www.abundanttech.com/WebServices/DeadOrAlive/DeadOrAlive.asmx?WSDL&#8221;;<br />
webService.addEventListener(LoadEvent.LOAD,dataLoaded)<br />
webService.loadWSDL();<br />
}</p>
<p>/* once the dataloads,calling the particular method<br />
of the webservice to get the particular data set*/<br />
private function dataLoaded(e:LoadEvent):void{<br />
webService.getTodaysBirthdays.send();<br />
}</p>
<p>/* once we get the resultant data,the data assigned to the datgrid(this<br />
is an simple example for getting data from webservice) */<br />
private function resultHandler(e:ResultEvent):void{<br />
gridData = ArrayCollection(e.result.Tables.Table.Rows);<br />
total.text = gridData.length.toString();<br />
}<br />
/*<br />
Here once the refresh method called,<br />
Flex passes the each row data into the (applyFilter)function as an object<br />
*/<br />
private function filterGrid():void{<br />
gridData.filterFunction = applyFilter;<br />
gridData.refresh()<br />
total.text = gridData.length.toString();<br />
}<br />
/* This is the important function where<br />
we need to put our logic for filtering the data<br />
For True &#8211; the row value is displayed<br />
For False &#8211; the row value is filtered*/<br />
private function applyFilter(item:Object):Boolean{<br />
if(minAge.text &lt;= item.Age &amp;&amp; item.Age &lt;= maxAge.text )<br />
return true;<br />
else<br />
return false;<br />
}</p>
<p>/* Reseting the data is simple,since we are not deleting at anystage,<br />
the data will always remains in the memory */<br />
private function resetData():void{<br />
gridData.filterFunction = null;<br />
gridData.refresh()<br />
total.text = gridData.length.toString();<br />
minAge.text = &#8221;;<br />
maxAge.text = &#8221;;<br />
}<br />
]]&gt;<br />
&lt;/mx:Script&gt;<br />
&lt;mx:WebService id=&#8221;webService&#8221; result=&#8221;resultHandler(event)&#8221; /&gt;<br />
&lt;mx:DataGrid id=&#8221;dg&#8221; x=&#8221;10&#8243; y=&#8221;124&#8243; width=&#8221;498&#8243;  height=&#8221;274&#8243; dataProvider=&#8221;{gridData}&#8221; /&gt;<br />
&lt;mx:Label x=&#8221;147&#8243; y=&#8221;61&#8243; text=&#8221;Min Age:&#8221;/&gt;<br />
&lt;mx:Label x=&#8221;147&#8243; y=&#8221;98&#8243; width=&#8221;95&#8243; text=&#8221;No of Persons:&#8221;/&gt;<br />
&lt;mx:Text x=&#8221;253.5&#8243; y=&#8221;98&#8243; width=&#8221;124&#8243; id=&#8221;total&#8221;/&gt;<br />
&lt;mx:Label x=&#8221;277&#8243; y=&#8221;61&#8243; text=&#8221;Max Age:&#8221;/&gt;<br />
&lt;mx:Button x=&#8221;389&#8243; y=&#8221;59&#8243; label=&#8221;Filter&#8221; click=&#8221;filterGrid()&#8221;/&gt;<br />
&lt;mx:TextInput x=&#8221;209&#8243; y=&#8221;59&#8243; width=&#8221;33&#8243; height=&#8221;20&#8243; id=&#8221;minAge&#8221;/&gt;<br />
&lt;mx:TextInput x=&#8221;343&#8243; y=&#8221;59&#8243; width=&#8221;29.5&#8243; id=&#8221;maxAge&#8221;/&gt;<br />
&lt;mx:Button label=&#8221;Reset&#8221; click=&#8221;resetData()&#8221; x=&#8221;389&#8243; y=&#8221;96&#8243;/&gt;<br />
&lt;/mx:Application&gt;</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/learnflexair.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/learnflexair.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/learnflexair.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/learnflexair.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/learnflexair.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/learnflexair.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/learnflexair.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/learnflexair.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/learnflexair.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/learnflexair.wordpress.com/71/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=learnflexair.wordpress.com&blog=5236283&post=71&subd=learnflexair&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://learnflexair.wordpress.com/2009/08/07/filtering-data-in-flex-datagrid/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/110ddb3396c7d2914d096d44c763ec3f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dinesh</media:title>
		</media:content>
	</item>
		<item>
		<title>ActionScript ImageRegular Expression</title>
		<link>http://learnflexair.wordpress.com/2009/08/06/actionscript-imageregular-expression/</link>
		<comments>http://learnflexair.wordpress.com/2009/08/06/actionscript-imageregular-expression/#comments</comments>
		<pubDate>Thu, 06 Aug 2009 08:39:07 +0000</pubDate>
		<dc:creator>dineshblog</dc:creator>
				<category><![CDATA[Flex]]></category>
		<category><![CDATA[actionscript]]></category>

		<guid isPermaLink="false">http://learnflexair.wordpress.com/?p=67</guid>
		<description><![CDATA[//Assign your html content to this variable
var htmlContent:string;
var imageRegExp:RegExp = /&#60;img\s+src\s*=\s*["']([^"']+)["']\s*/ig;
//gets all the img tag content and stores in array
var imagePathArray:Array = htmlContent.match(imageRegExp);
for(var i:uint=0;i&#60;imagePathArray.length;i++)
{
//provides the imagepath
var imageLink:String = imagePathArray[i].replace(/&#60;img\s+src\s*=/ig,&#8221;");
//provides the imagefilename
var imageFileName:String = imageLinkPath.substring((imageLink.lastIndexOf(&#8216;\/&#8217;))+1,imageLink.length-2);
}
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=learnflexair.wordpress.com&blog=5236283&post=67&subd=learnflexair&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>//Assign your html content to this variable<br />
var htmlContent:string;</p>
<p>var imageRegExp:RegExp = /&lt;img\s+src\s*=\s*["']([^"']+)["']\s*/ig;</p>
<p>//gets all the img tag content and stores in array<br />
var imagePathArray:Array = htmlContent.match(imageRegExp);</p>
<p>for(var i:uint=0;i&lt;imagePathArray.length;i++)<br />
{<br />
//provides the imagepath<br />
var imageLink:String = imagePathArray[i].replace(/&lt;img\s+src\s*=/ig,&#8221;");<br />
//provides the imagefilename<br />
var imageFileName:String = imageLinkPath.substring((imageLink.lastIndexOf(&#8216;\/&#8217;))+1,imageLink.length-2);<br />
}</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/learnflexair.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/learnflexair.wordpress.com/67/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/learnflexair.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/learnflexair.wordpress.com/67/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/learnflexair.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/learnflexair.wordpress.com/67/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/learnflexair.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/learnflexair.wordpress.com/67/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/learnflexair.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/learnflexair.wordpress.com/67/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=learnflexair.wordpress.com&blog=5236283&post=67&subd=learnflexair&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://learnflexair.wordpress.com/2009/08/06/actionscript-imageregular-expression/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/110ddb3396c7d2914d096d44c763ec3f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dinesh</media:title>
		</media:content>
	</item>
		<item>
		<title>Add buttons at top and bottom of FLEX Panel</title>
		<link>http://learnflexair.wordpress.com/2009/08/06/add-buttons-at-top-and-bottom-of-flex-panel/</link>
		<comments>http://learnflexair.wordpress.com/2009/08/06/add-buttons-at-top-and-bottom-of-flex-panel/#comments</comments>
		<pubDate>Thu, 06 Aug 2009 08:24:43 +0000</pubDate>
		<dc:creator>dineshblog</dc:creator>
				<category><![CDATA[Flex]]></category>
		<category><![CDATA[actionscript]]></category>

		<guid isPermaLink="false">http://learnflexair.wordpress.com/?p=64</guid>
		<description><![CDATA[Main.mxml:
&#60;?xml version=&#8221;1.0&#8243; encoding=&#8221;utf-8&#8243;?&#62;
&#60;mx:Application xmlns:mx=&#8221;http://www.adobe.com/2006/mxml&#8221; layout=&#8221;absolute&#8221; xmlns:local=&#8221;*&#8221;&#62;
&#60;local:MyPanel width=&#8221;469&#8243; height=&#8221;290&#8243; x=&#8221;78&#8243; y=&#8221;51&#8243;&#62;
&#60;mx:ControlBar height=&#8221;39&#8243; width=&#8221;520&#8243; horizontalAlign=&#8221;center&#8221;&#62;
&#60;mx:Button label=&#8221;Add New&#8221;/&#62;
&#60;mx:HSlider width=&#8221;90&#8243; minimum=&#8221;0&#8243; maximum=&#8221;100&#8243; snapInterval=&#8221;10&#8243;/&#62;
&#60;mx:Button label=&#8221;RemoveSelected&#8221; /&#62;
&#60;mx:HSlider width=&#8221;106&#8243; minimum=&#8221;0&#8243; maximum=&#8221;100&#8243; snapInterval=&#8221;10&#8243;/&#62;
&#60;/mx:ControlBar&#62;
&#60;/local:MyPanel&#62;
&#60;/mx:Application&#62;
MyPanel.as:
package
{
import mx.containers.Panel;
import mx.controls.Button;
public class MyPanel extends Panel
{
private var btn:Button;
public function MyPanel()
{
super();
}
override protected function createChildren() : void
{
super.createChildren();
btn = new Button();
btn.label = &#8216;Button&#8217;;
btn.visible = true;
btn.includeInLayout = true;
rawChildren.addChild( btn );
}
override protected function updateDisplayList (unscaledWidth:Number, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=learnflexair.wordpress.com&blog=5236283&post=64&subd=learnflexair&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><strong>Main.mxml:</strong></p>
<p>&lt;?xml version=&#8221;1.0&#8243; encoding=&#8221;utf-8&#8243;?&gt;<br />
&lt;mx:Application xmlns:mx=&#8221;http://www.adobe.com/2006/mxml&#8221; layout=&#8221;absolute&#8221; xmlns:local=&#8221;*&#8221;&gt;<br />
&lt;local:MyPanel width=&#8221;469&#8243; height=&#8221;290&#8243; x=&#8221;78&#8243; y=&#8221;51&#8243;&gt;</p>
<p>&lt;mx:ControlBar height=&#8221;39&#8243; width=&#8221;520&#8243; horizontalAlign=&#8221;center&#8221;&gt;<br />
&lt;mx:Button label=&#8221;Add New&#8221;/&gt;<br />
&lt;mx:HSlider width=&#8221;90&#8243; minimum=&#8221;0&#8243; maximum=&#8221;100&#8243; snapInterval=&#8221;10&#8243;/&gt;<br />
&lt;mx:Button label=&#8221;RemoveSelected&#8221; /&gt;<br />
&lt;mx:HSlider width=&#8221;106&#8243; minimum=&#8221;0&#8243; maximum=&#8221;100&#8243; snapInterval=&#8221;10&#8243;/&gt;<br />
&lt;/mx:ControlBar&gt;<br />
&lt;/local:MyPanel&gt;<br />
&lt;/mx:Application&gt;</p>
<p><strong>MyPanel.as:</strong></p>
<p>package<br />
{<br />
import mx.containers.Panel;<br />
import mx.controls.Button;</p>
<p>public class MyPanel extends Panel<br />
{<br />
private var btn:Button;</p>
<p>public function MyPanel()<br />
{<br />
super();<br />
}<br />
override protected function createChildren() : void<br />
{<br />
super.createChildren();<br />
btn = new Button();<br />
btn.label = &#8216;Button&#8217;;<br />
btn.visible = true;<br />
btn.includeInLayout = true;<br />
rawChildren.addChild( btn );<br />
}<br />
override protected function updateDisplayList (unscaledWidth:Number, unscaledHeight:Number):void<br />
{<br />
super.updateDisplayList(unscaledWidth, unscaledHeight);</p>
<p>btn.setActualSize( btn.getExplicitOrMeasuredWidth(),<br />
btn.getExplicitOrMeasuredHeight() );</p>
<p>var y:int = 0;<br />
var x:int = 0;<br />
btn.move(x, y);<br />
}<br />
}<br />
}</p>
<p>The ControlBar class extends Box and The ControlBar container lets you place controls</p>
<p>at the bottom of a Panel or TitleWindow container.The ControlBar tag must be the last child tag</p>
<p>of the enclosing tag for the Panel or TitleWindow container.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/learnflexair.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/learnflexair.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/learnflexair.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/learnflexair.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/learnflexair.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/learnflexair.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/learnflexair.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/learnflexair.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/learnflexair.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/learnflexair.wordpress.com/64/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=learnflexair.wordpress.com&blog=5236283&post=64&subd=learnflexair&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://learnflexair.wordpress.com/2009/08/06/add-buttons-at-top-and-bottom-of-flex-panel/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/110ddb3396c7d2914d096d44c763ec3f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dinesh</media:title>
		</media:content>
	</item>
		<item>
		<title>String Replace All in AS3</title>
		<link>http://learnflexair.wordpress.com/2008/12/09/string-replace-all-in-as3/</link>
		<comments>http://learnflexair.wordpress.com/2008/12/09/string-replace-all-in-as3/#comments</comments>
		<pubDate>Tue, 09 Dec 2008 16:50:04 +0000</pubDate>
		<dc:creator>dineshblog</dc:creator>
				<category><![CDATA[actionscript]]></category>

		<guid isPermaLink="false">http://learnflexair.wordpress.com/?p=57</guid>
		<description><![CDATA[var str:String = &#8220;www abcd www xyz &#60;www&#62; opqr,www!&#8221;;
str = str.replace(/www/g,&#8217;done&#8217;);
trace(str) //done abcd done xyz &#60;done&#62; opqr,done!
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=learnflexair.wordpress.com&blog=5236283&post=57&subd=learnflexair&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>var str:String = &#8220;www abcd www xyz &lt;www&gt; opqr,www!&#8221;;</p>
<p>str = str.replace(/www/g,&#8217;done&#8217;);</p>
<p>trace(str) //done abcd done xyz &lt;done&gt; opqr,done!</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/learnflexair.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/learnflexair.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/learnflexair.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/learnflexair.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/learnflexair.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/learnflexair.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/learnflexair.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/learnflexair.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/learnflexair.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/learnflexair.wordpress.com/57/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=learnflexair.wordpress.com&blog=5236283&post=57&subd=learnflexair&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://learnflexair.wordpress.com/2008/12/09/string-replace-all-in-as3/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/110ddb3396c7d2914d096d44c763ec3f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dinesh</media:title>
		</media:content>
	</item>
		<item>
		<title>Sorting the array in alphaphetical order</title>
		<link>http://learnflexair.wordpress.com/2008/11/06/sorting-the-array-in-alphaphetical-order/</link>
		<comments>http://learnflexair.wordpress.com/2008/11/06/sorting-the-array-in-alphaphetical-order/#comments</comments>
		<pubDate>Thu, 06 Nov 2008 17:02:20 +0000</pubDate>
		<dc:creator>dineshblog</dc:creator>
				<category><![CDATA[actionscript]]></category>

		<guid isPermaLink="false">http://learnflexair.wordpress.com/?p=46</guid>
		<description><![CDATA[sorting array of strings:
var city:Array = new Array(&#8220;chennai&#8221;,&#8221;mumbai&#8221;,&#8221;delhi&#8221;,&#8221;kolkata&#8221;,&#8221;bangaluru&#8221;);
trace(city)//chennai,mumbai,delhi,kolkata,bangaluru
city.sort();
trace(city)//bangaluru,chennai,delhi,kolkata,mumbai
sorting array of objects:
var file:Array = new Array(
{filename: &#8220;s1&#8243;},
{filename: &#8220;h6&#8243;},
{filename: &#8220;z4&#8243;},
{filename: &#8220;a2&#8243;},
{filename: &#8220;u7&#8243;});
for(var i:int=0;i&#60;file.length;i++){
trace(file[i].filename); //s1,h6,z4,a2,u7
}
file.sortOn(&#8216;filename&#8217;);
for(var j:int=0;j&#60;file.length;j++){
trace(file[j].filename);//a2,h6,s1,u7,z4
}
For more stuff:
http://livedocs.adobe.com/flex/2/langref/Array.html
  
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=learnflexair.wordpress.com&blog=5236283&post=46&subd=learnflexair&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><strong>sorting array of strings:</strong><br />
var city:Array = new Array(&#8220;chennai&#8221;,&#8221;mumbai&#8221;,&#8221;delhi&#8221;,&#8221;kolkata&#8221;,&#8221;bangaluru&#8221;);<br />
trace(city)//chennai,mumbai,delhi,kolkata,bangaluru<br />
city.sort();<br />
trace(city)//bangaluru,chennai,delhi,kolkata,mumbai</p>
<p><strong>sorting array of objects:<br />
</strong>var file:Array = new Array(<br />
{filename: &#8220;s1&#8243;},<br />
{filename: &#8220;h6&#8243;},<br />
{filename: &#8220;z4&#8243;},<br />
{filename: &#8220;a2&#8243;},<br />
{filename: &#8220;u7&#8243;});<br />
for(var i:int=0;i&lt;file.length;i++){<br />
trace(file[i].filename); //s1,h6,z4,a2,u7<br />
}</p>
<p>file.sortOn(&#8216;filename&#8217;);</p>
<p>for(var j:int=0;j&lt;file.length;j++){<br />
trace(file[j].filename);//a2,h6,s1,u7,z4<br />
}</p>
<p><em>For more stuff:</em><br />
http://livedocs.adobe.com/flex/2/langref/Array.html</p>
<p> <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/learnflexair.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/learnflexair.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/learnflexair.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/learnflexair.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/learnflexair.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/learnflexair.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/learnflexair.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/learnflexair.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/learnflexair.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/learnflexair.wordpress.com/46/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=learnflexair.wordpress.com&blog=5236283&post=46&subd=learnflexair&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://learnflexair.wordpress.com/2008/11/06/sorting-the-array-in-alphaphetical-order/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/110ddb3396c7d2914d096d44c763ec3f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dinesh</media:title>
		</media:content>
	</item>
	</channel>
</rss>