<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/atom10full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" gd:etag="W/&quot;A08GRHgyfSp7ImA9WhRaFEg.&quot;"><id>tag:blogger.com,1999:blog-31032085</id><updated>2012-02-17T11:53:45.695+05:30</updated><category term="Flash Components" /><category term="2" /><category term="AS 2.0" /><category term="scrollpane bug" /><category term="Flash Web meeting" /><category term="converter" /><category term="AIR" /><category term="scrollpane issue" /><category term="XML" /><category term="Actionscript 2 Component" /><category term="SQLite" /><category term="Connect Flex" /><category term="Flash Web Conference" /><category term="adobe buzzword" /><category term="Flash" /><category term="flash word processor" /><category term="dynamic content" /><category term="online document" /><category term="Adobe BRIO" /><category term="AS2" /><category term="Flex Database" /><category term="Download Flash Components" /><category term="ActionScript 2" /><category term="Flex" /><category term="Flash Source Code" /><category term="Free Flash Components" /><category term="XML2Converter" /><title>Flex/Flash Developer - by Ankur Arora</title><subtitle type="html">Flash Actionscript Blog, Free Flash Components, Flash Source Code and many more for the community of Flash and Flex developers.

Blog managed by Ankur Arora</subtitle><link rel="http://schemas.google.com/g/2005#feed" type="application/atom+xml" href="http://blog.ankur-arora.com/feeds/posts/default" /><link rel="alternate" type="text/html" href="http://blog.ankur-arora.com/" /><link rel="next" type="application/atom+xml" href="http://www.blogger.com/feeds/31032085/posts/default?start-index=26&amp;max-results=25&amp;redirect=false&amp;v=2" /><author><name>Ankur Arora</name><uri>http://www.blogger.com/profile/12081883307717336032</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="21" height="32" src="http://3.bp.blogspot.com/-tFYR8C8RHOM/TawNrJBIZYI/AAAAAAAAAIw/6Nzo9WHa1yY/s220/59206_427107738682_743028682_5181093_6894231_n.jpg" /></author><generator version="7.00" uri="http://www.blogger.com">Blogger</generator><openSearch:totalResults>46</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/atom+xml" href="http://feeds.feedburner.com/ankur-arora" /><feedburner:info uri="ankur-arora" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><entry gd:etag="W/&quot;DkMFSXg9fSp7ImA9WhRbEEo.&quot;"><id>tag:blogger.com,1999:blog-31032085.post-5053733416165215607</id><published>2012-01-17T13:34:00.001+05:30</published><updated>2012-02-01T11:03:38.665+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2012-02-01T11:03:38.665+05:30</app:edited><title>Radar/Spider Chart in Flex</title><content type="html">There was a requirement in of the projects to have a Radar Chart that is customizable through XML. You can have a look at below working sample.&lt;br /&gt;
&lt;br /&gt;
&lt;embed src="http://www.ankur-arora.com/samples/radar_chart/CustomRadarChartWeb.swf" quality="high" allowscriptaccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" align="middle" height="550" width="450"&gt;&lt;/embed&gt;&lt;br /&gt;
&lt;br /&gt;
Finally, as this was required so I have to spent some time and create my  own. You can look at the working sample below and if this is something  you are looking for I can give away the SWC file to you for a nominal  cost.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31032085-5053733416165215607?l=blog.ankur-arora.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ankur-arora/~4/XJFJcGo8k4c" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://blog.ankur-arora.com/feeds/5053733416165215607/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://blog.ankur-arora.com/2012/01/radar-chart-in-flex.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/31032085/posts/default/5053733416165215607?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/31032085/posts/default/5053733416165215607?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/ankur-arora/~3/XJFJcGo8k4c/radar-chart-in-flex.html" title="Radar/Spider Chart in Flex" /><author><name>Vijay Dadhich</name><uri>http://www.blogger.com/profile/09128578513914953867</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://blog.ankur-arora.com/2012/01/radar-chart-in-flex.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D08NRHw_eyp7ImA9WhRVF0U.&quot;"><id>tag:blogger.com,1999:blog-31032085.post-1344049674620845465</id><published>2012-01-17T12:39:00.004+05:30</published><updated>2012-01-17T13:08:15.243+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2012-01-17T13:08:15.243+05:30</app:edited><title>3D Pie Chart in Flex</title><content type="html">There was a requirement in of the projects to have a 3D Pie Chart. I thought it would be easy to find a free one on the web but to my surprise unfortunately I could not find any of those. &lt;br /&gt;
&lt;br /&gt;
Finally, as this was required so I have to spent some time and create my own. You can look at the working sample below and if this is something you are looking for I can give away the SWC file to you for a nominal cost.&lt;br /&gt;
&lt;br /&gt;
&lt;embed src="http://www.ankur-arora.com/samples/3DPie/PieChart3D.swf" quality="high" allowscriptaccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" align="middle" height="550" width="450"&gt;&lt;/embed&gt;&lt;br /&gt;
&lt;br /&gt;
Enjoy playing with it.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31032085-1344049674620845465?l=blog.ankur-arora.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ankur-arora/~4/MTU1WkI1Lmc" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://blog.ankur-arora.com/feeds/1344049674620845465/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://blog.ankur-arora.com/2012/01/3d-pie-chart-in-flex.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/31032085/posts/default/1344049674620845465?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/31032085/posts/default/1344049674620845465?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/ankur-arora/~3/MTU1WkI1Lmc/3d-pie-chart-in-flex.html" title="3D Pie Chart in Flex" /><author><name>Ankur Arora</name><uri>http://www.blogger.com/profile/12081883307717336032</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="21" height="32" src="http://3.bp.blogspot.com/-tFYR8C8RHOM/TawNrJBIZYI/AAAAAAAAAIw/6Nzo9WHa1yY/s220/59206_427107738682_743028682_5181093_6894231_n.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://blog.ankur-arora.com/2012/01/3d-pie-chart-in-flex.html</feedburner:origLink></entry><entry gd:etag="W/&quot;A0AARng_fCp7ImA9WhRVF0o.&quot;"><id>tag:blogger.com,1999:blog-31032085.post-2557382646263073265</id><published>2011-10-17T10:37:00.001+05:30</published><updated>2012-01-17T11:25:47.644+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2012-01-17T11:25:47.644+05:30</app:edited><title>RGB to HEX color conversion</title><content type="html">The simplest way to convert a RGB color value to Hexadecimal color values.&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="brush:as3"&gt;private function toHexValue(r:int, g:int, b:int):uint 
{
 var hex:uint = r &lt;&lt; 16 ^ g &lt;&lt; 8 ^ b;
 return hex;
}
&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31032085-2557382646263073265?l=blog.ankur-arora.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ankur-arora/~4/2rkLUetzEFs" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://blog.ankur-arora.com/feeds/2557382646263073265/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://blog.ankur-arora.com/2011/10/rgb-to-hex-color-conversion.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/31032085/posts/default/2557382646263073265?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/31032085/posts/default/2557382646263073265?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/ankur-arora/~3/2rkLUetzEFs/rgb-to-hex-color-conversion.html" title="RGB to HEX color conversion" /><author><name>Ankur Arora</name><uri>http://www.blogger.com/profile/12081883307717336032</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="21" height="32" src="http://3.bp.blogspot.com/-tFYR8C8RHOM/TawNrJBIZYI/AAAAAAAAAIw/6Nzo9WHa1yY/s220/59206_427107738682_743028682_5181093_6894231_n.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://blog.ankur-arora.com/2011/10/rgb-to-hex-color-conversion.html</feedburner:origLink></entry><entry gd:etag="W/&quot;A0AMSH87cCp7ImA9WhRVF0o.&quot;"><id>tag:blogger.com,1999:blog-31032085.post-4491945236670118669</id><published>2011-06-03T08:30:00.002+05:30</published><updated>2012-01-17T11:26:29.108+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2012-01-17T11:26:29.108+05:30</app:edited><title>Gradient text in Flex</title><content type="html">&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;Though a very small code but very helpful to create a gradient text in Flex using spark components:-&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="brush:as3"&gt;&amp;lt;s: Graphic maskType="alpha"&amp;gt;
    &amp;lt;s: Rect width="{textMask.width}" height="{textMask.height}"&amp;gt;
        &amp;lt;s: fill&amp;gt;
            &amp;lt;s: LinearGradient rotation="90"&amp;gt;
                &amp;lt;s:entries&amp;gt;
                    &amp;lt;s:GradientEntry color="#000000" /&amp;gt;
                    &amp;lt;s:GradientEntry color="#DDDDDD" /&amp;gt;
                &amp;lt;/s:entries&amp;gt;
            &amp;lt;/s: LinearGradient&amp;gt;
        &amp;lt;/s: fill&amp;gt;
    &amp;lt;/s: Rect&amp;gt;
    &amp;lt;s: mask&amp;gt;
        &amp;lt;s: RichText id="textMask" fontFamily="Arial" fontSize="20"&amp;gt;
            &amp;lt;s: content&amp;gt;Hello World!! I am gradient text&amp;lt;/s:content&amp;gt;
        &amp;lt;/s: RichText&amp;gt;
    &amp;lt;/s: mask&amp;gt;
&amp;lt;/s: Graphic&amp;gt;

&lt;/pre&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31032085-4491945236670118669?l=blog.ankur-arora.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ankur-arora/~4/TXj-WHjrBQ4" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://blog.ankur-arora.com/feeds/4491945236670118669/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://blog.ankur-arora.com/2011/06/gradient-text-in-flex.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/31032085/posts/default/4491945236670118669?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/31032085/posts/default/4491945236670118669?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/ankur-arora/~3/TXj-WHjrBQ4/gradient-text-in-flex.html" title="Gradient text in Flex" /><author><name>Ankur Arora</name><uri>http://www.blogger.com/profile/12081883307717336032</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="21" height="32" src="http://3.bp.blogspot.com/-tFYR8C8RHOM/TawNrJBIZYI/AAAAAAAAAIw/6Nzo9WHa1yY/s220/59206_427107738682_743028682_5181093_6894231_n.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://blog.ankur-arora.com/2011/06/gradient-text-in-flex.html</feedburner:origLink></entry><entry gd:etag="W/&quot;A08BR3Y5fip7ImA9WhRVF0o.&quot;"><id>tag:blogger.com,1999:blog-31032085.post-1854089910664064442</id><published>2011-05-15T08:05:00.001+05:30</published><updated>2012-01-17T11:27:36.826+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2012-01-17T11:27:36.826+05:30</app:edited><title>AS 3.0 Copy or Clone a Object</title><content type="html">You have your own object instance and you want to copy or clone an exact copy of it? &lt;br /&gt;
&lt;br /&gt;
Simple, you can use Flex built-in ObjectUtil copy function as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="brush:as3"&gt;import mx.utils.ObjectUtil;
var obj:Object = new Object();
obj.content = "hello";
var objCopy:Object = ObjectUtil.copy(obj);
&lt;/pre&gt;&lt;br /&gt;
In case you want it in Actionscript 3.0 instead of Flex in-built capability:-&lt;br /&gt;
&lt;pre class="brush:as3"&gt;private function clone(source:Object):* 
{
var copier:ByteArray = new ByteArray();
copier.writeObject(source);
copier.position = 0;
return(copier.readObject());
}
&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31032085-1854089910664064442?l=blog.ankur-arora.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ankur-arora/~4/QnarJAQPdGg" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://blog.ankur-arora.com/feeds/1854089910664064442/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://blog.ankur-arora.com/2011/05/as-30-copy-or-clone-object.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/31032085/posts/default/1854089910664064442?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/31032085/posts/default/1854089910664064442?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/ankur-arora/~3/QnarJAQPdGg/as-30-copy-or-clone-object.html" title="AS 3.0 Copy or Clone a Object" /><author><name>Ankur Arora</name><uri>http://www.blogger.com/profile/12081883307717336032</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="21" height="32" src="http://3.bp.blogspot.com/-tFYR8C8RHOM/TawNrJBIZYI/AAAAAAAAAIw/6Nzo9WHa1yY/s220/59206_427107738682_743028682_5181093_6894231_n.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://blog.ankur-arora.com/2011/05/as-30-copy-or-clone-object.html</feedburner:origLink></entry><entry gd:etag="W/&quot;AkMERno5eSp7ImA9WhZRF0s.&quot;"><id>tag:blogger.com,1999:blog-31032085.post-4332906482124521745</id><published>2011-04-14T13:36:00.000+05:30</published><updated>2011-04-14T13:36:47.421+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-04-14T13:36:47.421+05:30</app:edited><title>Using DateField as an editor with DataGrid in Flex when Date is a string</title><content type="html">Flex docs talks about using a Datefield as an Editor with DataGrid but what if date is in a string format. Most likely that is practical scenario in most of the cases because when you put some XML or server side data in DataGrid it generally comes as string. Let's have a look at below small code which will allow you to perform this.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Main Application&lt;/b&gt;&lt;br /&gt;
&lt;pre class="brush:as3"&gt;&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"&gt;
    &lt;mx:Script&gt;
        &lt;![CDATA[
        import mx.controls.dataGridClasses.DataGridListData;
        import mx.events.DataGridEvent;
        import mx.collections.ArrayCollection;
        import mx.controls.DateField;
        import mx.core.ClassFactory;
        import mx.controls.dataGridClasses.DataGridListData;
            
    
        [Bindable]
        public var ac:ArrayCollection = new ArrayCollection(
            [{dateString:"11/12/2011", contact:"Ankur Arora"},
            {dateString:"11/12/2011", contact:"Ankur"},
            {dateString:"10/10/2010", contact:"Arora"},
            {dateString:"09/12/2012", contact:"Flex Expert"}]);
        ]]&gt;
    &lt;/mx:Script&gt;

        &lt;mx:DataGrid editable="true" height="95%" width="95%" id="dg" dataProvider="{ac}"&gt;
            &lt;mx:columns&gt;
                &lt;mx:DataGridColumn headerText="DateString" dataField="dateString" width="140" 
                    itemEditor="DateEditor"
                    editorDataField="text" /&gt;                                          
                &lt;mx:DataGridColumn headerText="Contact" dataField="contact" width="160"/&gt;
            &lt;/mx:columns&gt;
        &lt;/mx:DataGrid&gt;
&lt;/mx:Application&gt;
&lt;/pre&gt;&lt;br&gt;&lt;br /&gt;
Now, let's create the MXML file which will be used as itemEditor in DataGridColumn. We will place this MXML file in the same folder as application file.&lt;br&gt;&lt;br /&gt;
&lt;b&gt;DateEditor.mxml&lt;/b&gt;&lt;br /&gt;
&lt;pre class="brush:as3"&gt;&lt;mx:DateField xmlns:mx="http://www.adobe.com/2006/mxml"
     implements="mx.controls.listClasses.IListItemRenderer"
     focusIn="open()"&gt;
    &lt;mx:Script&gt;
       &lt;![CDATA[
       override public function set data(value:Object):void{
            if(listData){
                var newDate:Date;
        
                if (value is String){
                    newDate = new Date(Date.parse(data as String));
                    super.data = newDate;
                  } 
                  else if (value is Date){
                      super.data = value as Date;
                  }
            }        
        }
        ]]&gt;
    &lt;/mx:Script&gt;
&lt;/mx:DateField&gt;
&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31032085-4332906482124521745?l=blog.ankur-arora.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ankur-arora/~4/SKKZBL5x95w" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://blog.ankur-arora.com/feeds/4332906482124521745/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://blog.ankur-arora.com/2011/04/using-datefield-as-editor-with-datagrid.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/31032085/posts/default/4332906482124521745?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/31032085/posts/default/4332906482124521745?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/ankur-arora/~3/SKKZBL5x95w/using-datefield-as-editor-with-datagrid.html" title="Using DateField as an editor with DataGrid in Flex when Date is a string" /><author><name>Ankur Arora</name><uri>http://www.blogger.com/profile/12081883307717336032</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="21" height="32" src="http://3.bp.blogspot.com/-tFYR8C8RHOM/TawNrJBIZYI/AAAAAAAAAIw/6Nzo9WHa1yY/s220/59206_427107738682_743028682_5181093_6894231_n.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://blog.ankur-arora.com/2011/04/using-datefield-as-editor-with-datagrid.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D08FQnc8eyp7ImA9WhZRFkg.&quot;"><id>tag:blogger.com,1999:blog-31032085.post-7086659328696966408</id><published>2011-04-13T06:20:00.000+05:30</published><updated>2011-04-13T06:20:13.973+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-04-13T06:20:13.973+05:30</app:edited><title>Double Click to edit Advanced Datagrid</title><content type="html">A small code to make an Advanced Datagrid editable on double click.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Variables&lt;/b&gt;&lt;br /&gt;
&lt;pre  class="brush:as3"&gt;private var doubleClicked:Boolean = false;
&lt;/pre&gt;&lt;br /&gt;
&lt;b&gt;Events&lt;/b&gt;&lt;br /&gt;
&lt;pre  class="brush:as3"&gt;private function itemClickHandler(event:ListEvent):void {
    doubleClicked = false;
}
private function itemDoubleClickHandler(event:ListEvent):void {
    doubleClicked = true;
}

// Allow switching to edit mode only if a double click has been received
private function itemEditBeginHandler(event:AdvancedDataGridEvent):void {
    if (!doubleClicked) 
        event.preventDefault();
}
&lt;/pre&gt;&lt;br /&gt;
&lt;b&gt;MXML Code&lt;/b&gt;&lt;br /&gt;
&lt;pre  class="brush:as3"&gt;&lt;mx:AdvancedDataGrid
 id="dg" 
 selectionMode="multipleCells"
 editable="true" 
 doubleClickEnabled="true"
 itemClick="itemClickHandler(event)"
 itemDoubleClick="itemDoubleClickHandler(event)"
 itemEditBegin="itemEditBeginHandler(event)"&gt;
&lt;/mx:AdvancedDataGrid&gt; 
&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31032085-7086659328696966408?l=blog.ankur-arora.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ankur-arora/~4/VfeiujJiATg" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://blog.ankur-arora.com/feeds/7086659328696966408/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://blog.ankur-arora.com/2011/04/double-click-to-edit-advanced-datagrid.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/31032085/posts/default/7086659328696966408?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/31032085/posts/default/7086659328696966408?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/ankur-arora/~3/VfeiujJiATg/double-click-to-edit-advanced-datagrid.html" title="Double Click to edit Advanced Datagrid" /><author><name>Ankur Arora</name><uri>http://www.blogger.com/profile/12081883307717336032</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="21" height="32" src="http://3.bp.blogspot.com/-tFYR8C8RHOM/TawNrJBIZYI/AAAAAAAAAIw/6Nzo9WHa1yY/s220/59206_427107738682_743028682_5181093_6894231_n.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://blog.ankur-arora.com/2011/04/double-click-to-edit-advanced-datagrid.html</feedburner:origLink></entry><entry gd:etag="W/&quot;Dk8HRns_eyp7ImA9WhZRFkg.&quot;"><id>tag:blogger.com,1999:blog-31032085.post-2135992727769208285</id><published>2011-04-07T10:48:00.003+05:30</published><updated>2011-04-13T06:03:57.543+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-04-13T06:03:57.543+05:30</app:edited><title>Changing font size for all styles in Flex at runtime</title><content type="html">&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;Often you may want to change the font sizes of all elements in your Flex Application. For example you want to give control to your users to change the font settings and sizes or you may want to do it automatically on smaller screens.&lt;br /&gt;
&lt;br /&gt;
I have used below code, where I have used StyleManager to loop through every style and change the font size. Let's have a look:-&lt;/div&gt;&lt;br /&gt;
&lt;pre class="brush:as3"&gt;// adjust the font size on all defined CSS styles by increasing or decreasing pixel size
       public function adjustFontSize(increment:Number):void
        {
            var selectors:Array = StyleManager.selectors;
 
            for each (var selector:String in selectors)
            {
            var css:CSSStyleDeclaration = CSSStyleDeclaration(StyleManager.getStyleDeclaration(selector));
 
            // assume here that all font sizes in the application
            // are explicitly set by pixel size in the CSS
            if (css.getStyle("fontSize") != null)
            {
                var fontSize:Number = Number(css.getStyle("fontSize"));
                css.setStyle("fontSize", fontSize+increment);
            }
            }
        }
&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31032085-2135992727769208285?l=blog.ankur-arora.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ankur-arora/~4/Y_JRsO0DiHw" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://blog.ankur-arora.com/feeds/2135992727769208285/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://blog.ankur-arora.com/2011/04/changing-font-size-for-all-styles-in.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/31032085/posts/default/2135992727769208285?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/31032085/posts/default/2135992727769208285?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/ankur-arora/~3/Y_JRsO0DiHw/changing-font-size-for-all-styles-in.html" title="Changing font size for all styles in Flex at runtime" /><author><name>Ankur Arora</name><uri>http://www.blogger.com/profile/12081883307717336032</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="21" height="32" src="http://3.bp.blogspot.com/-tFYR8C8RHOM/TawNrJBIZYI/AAAAAAAAAIw/6Nzo9WHa1yY/s220/59206_427107738682_743028682_5181093_6894231_n.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://blog.ankur-arora.com/2011/04/changing-font-size-for-all-styles-in.html</feedburner:origLink></entry><entry gd:etag="W/&quot;A08NR3s4fip7ImA9WhRVF0o.&quot;"><id>tag:blogger.com,1999:blog-31032085.post-2252122440798187530</id><published>2010-11-08T18:52:00.001+05:30</published><updated>2012-01-17T11:28:16.536+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2012-01-17T11:28:16.536+05:30</app:edited><title>hitTest in Actionscript 3</title><content type="html">Dear all,&lt;br /&gt;
&lt;br /&gt;
I'm writing this post after a long time. Sorry but I'm running very busy these days and feels hard to post new stuff for you. Anyways, finally I'm coming up with a new class which will help you to detect collision between 2 objects in Actionscript 3.0.&lt;br /&gt;
&lt;br /&gt;
I know people who keep asking for hitTest functionality in AS 3.0 where they can provide shape flag like we use to do in AS 2.0 but AS 3.0 does not supports that. To accomplish this I have created a class which will help you in detecting whether two objects colliding or not. This class is having a function name called getCollisionRect(); which takes instances of both objects along with their parent container. Have a look and let me know if you face any problem in implementing it.&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="brush:as3"&gt;package classes.utils
{
 import flash.display.BitmapData;
 import flash.display.BitmapDataChannel;
 import flash.display.BlendMode;
 import flash.display.DisplayObject;
 import flash.display.DisplayObjectContainer;
 import flash.geom.Matrix;
 import flash.geom.Point;
 import flash.geom.Rectangle;
 public class PixeCollisionDetection
 {
  /** Get the collision rectangle between two display objects. **/
  
  //Note: Just use the isColliding function with paramenter is static function.
  public static function getCollisionRect(target1:DisplayObject, target2:DisplayObject, commonParent:DisplayObjectContainer, pixelPrecise:Boolean = false, tolerance:Number = 0):Rectangle
  {
   // get bounding boxes in common parent's coordinate space
   var rect1:Rectangle = target1.getBounds(commonParent);
   var rect2:Rectangle = target2.getBounds(commonParent);
   // find the intersection of the two bounding boxes
   var intersectionRect:Rectangle = rect1.intersection(rect2);
   if (intersectionRect.size.length&amp;gt; 0)
   {
    if (pixelPrecise)
    {
     // size of rect needs to integer size for bitmap data
     intersectionRect.width = Math.ceil(intersectionRect.width);
     intersectionRect.height = Math.ceil(intersectionRect.height);
     // get the alpha maps for the display objects
     var alpha1:BitmapData = getAlphaMap(target1, intersectionRect, BitmapDataChannel.RED, commonParent);
     var alpha2:BitmapData = getAlphaMap(target2, intersectionRect, BitmapDataChannel.GREEN, commonParent);
     // combine the alpha maps
     alpha1.draw(alpha2, null, null, BlendMode.LIGHTEN);
     // calculate the search color
     var searchColor:uint;
     if (tolerance &amp;lt;= 0)
     {
      searchColor = 0x010100;
     }
     else
     {
      if (tolerance&amp;gt; 1) tolerance = 1;
      var byte:int = Math.round(tolerance * 255);
      searchColor = (byte &amp;lt;&amp;lt;16) | (byte &amp;lt;&amp;lt;8) | 0;
     }
     // find color
     var collisionRect:Rectangle = alpha1.getColorBoundsRect(searchColor, searchColor);
     collisionRect.x += intersectionRect.x;
     collisionRect.y += intersectionRect.y;
     return collisionRect;
    }
    else
    {
     return intersectionRect;
    }
   }
   else
   {
    // no intersection
    return null;
   }
  }
  /** Gets the alpha map of the display object and places it in the specified channel. **/
  private static function getAlphaMap(target:DisplayObject, rect:Rectangle, channel:uint, commonParent:DisplayObjectContainer):BitmapData
  {
   // calculate the transform for the display object relative to the common parent
   var parentXformInvert:Matrix = commonParent.transform.concatenatedMatrix.clone();
   parentXformInvert.invert();
   var targetXform:Matrix = target.transform.concatenatedMatrix.clone();
   targetXform.concat(parentXformInvert);
   // translate the target into the rect's space
   targetXform.translate(-rect.x, -rect.y);
   // draw the target and extract its alpha channel into a color channel
   var bitmapData:BitmapData = new BitmapData(rect.width, rect.height, true, 0);
   bitmapData.draw(target, targetXform);
   var alphaChannel:BitmapData = new BitmapData(rect.width, rect.height, false, 0);
   alphaChannel.copyChannel(bitmapData, bitmapData.rect, new Point(0, 0), BitmapDataChannel.ALPHA, channel);
   return alphaChannel;
  }
  /** Get the center of the collision's bounding box. **/
  public static function getCollisionPoint(target1:DisplayObject, target2:DisplayObject, commonParent:DisplayObjectContainer, pixelPrecise:Boolean = false, tolerance:Number = 0):Point
  {
   var collisionRect:Rectangle = getCollisionRect(target1, target2, commonParent, pixelPrecise, tolerance);
   if (collisionRect != null &amp;amp;&amp;amp; collisionRect.size.length&amp;gt; 0)
   {
    var x:Number = (collisionRect.left + collisionRect.right) / 2;
    var y:Number = (collisionRect.top + collisionRect.bottom) / 2;
    return new Point(x, y);
   }
   return null;
  }
  /** Are the two display objects colliding (overlapping)? **/
  public static function isColliding(target1:DisplayObject, target2:DisplayObject, commonParent:DisplayObjectContainer, pixelPrecise:Boolean = false, tolerance:Number = 0):Boolean
  {
   var collisionRect:Rectangle = getCollisionRect(target1, target2, commonParent, pixelPrecise, tolerance);
   if (collisionRect != null &amp;amp;&amp;amp; collisionRect.size.length&amp;gt; 0) return true;
   else return false;
  }
 }


}
&lt;/pre&gt;&lt;br /&gt;
You can also download the source actionscript class file from &lt;a href="http://www.ankur-arora.com/samples/pixel_collision/PixeCollisionDetection.as"&gt;here&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
Send me a comment if you face any difficulty while implementing it.&lt;br /&gt;
&lt;br /&gt;
Thanks&lt;br /&gt;
Ankur&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31032085-2252122440798187530?l=blog.ankur-arora.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ankur-arora/~4/kW80sgpBeoA" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://blog.ankur-arora.com/feeds/2252122440798187530/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://blog.ankur-arora.com/2010/11/hittest-in-actionscript-3.html#comment-form" title="2 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/31032085/posts/default/2252122440798187530?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/31032085/posts/default/2252122440798187530?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/ankur-arora/~3/kW80sgpBeoA/hittest-in-actionscript-3.html" title="hitTest in Actionscript 3" /><author><name>Ankur Arora</name><uri>http://www.blogger.com/profile/12081883307717336032</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="21" height="32" src="http://3.bp.blogspot.com/-tFYR8C8RHOM/TawNrJBIZYI/AAAAAAAAAIw/6Nzo9WHa1yY/s220/59206_427107738682_743028682_5181093_6894231_n.jpg" /></author><thr:total>2</thr:total><feedburner:origLink>http://blog.ankur-arora.com/2010/11/hittest-in-actionscript-3.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DUEGQ3Y_eyp7ImA9Wx5UFEQ.&quot;"><id>tag:blogger.com,1999:blog-31032085.post-6558633400613760259</id><published>2010-10-19T19:43:00.000+05:30</published><updated>2010-10-19T19:43:42.843+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-10-19T19:43:42.843+05:30</app:edited><title>Cleared ACE</title><content type="html">Guys,&lt;br /&gt;
&lt;br /&gt;
I just cleared ACE which stands for Adobe Certified Expert. I did it in Adobe Flex with AIR. I'm glad that all my hard work paid off.&lt;br /&gt;
&lt;br /&gt;
I know its been long since I have posted any tutorials. I have so many in my list but believe me I was so busy. I will try to post something new soon.&lt;br /&gt;
&lt;br /&gt;
In case you need any help, suggestions just mail me up. Though, I'm busy but I try to respond all of those. I'm thankful to all of you and ready to help.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31032085-6558633400613760259?l=blog.ankur-arora.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ankur-arora/~4/8GFLoRXWxVA" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://blog.ankur-arora.com/feeds/6558633400613760259/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://blog.ankur-arora.com/2010/10/cleared-ace.html#comment-form" title="4 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/31032085/posts/default/6558633400613760259?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/31032085/posts/default/6558633400613760259?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/ankur-arora/~3/8GFLoRXWxVA/cleared-ace.html" title="Cleared ACE" /><author><name>Ankur Arora</name><uri>http://www.blogger.com/profile/12081883307717336032</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="21" height="32" src="http://3.bp.blogspot.com/-tFYR8C8RHOM/TawNrJBIZYI/AAAAAAAAAIw/6Nzo9WHa1yY/s220/59206_427107738682_743028682_5181093_6894231_n.jpg" /></author><thr:total>4</thr:total><feedburner:origLink>http://blog.ankur-arora.com/2010/10/cleared-ace.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DU8ERn8yeSp7ImA9WxFWGEo.&quot;"><id>tag:blogger.com,1999:blog-31032085.post-4829864003224504883</id><published>2010-06-07T08:00:00.000+05:30</published><updated>2010-06-07T08:00:07.191+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-06-07T08:00:07.191+05:30</app:edited><title>Connecting Flex Calendar With Database Using AMF-PHP</title><content type="html">I have published the second version of "Create a Dynamic Event Calendar in Flex Builder 3 with Actionscript 3.0". This tutorial will allow you to learn about how you can connect amf-php and Flex and store the data in database.&lt;br /&gt;
&lt;br /&gt;
I hope all of you will like it. Please visit the URL:- &lt;a href="http://www.thetechlabs.com/tutorials/interfaces/connecting-flex-calendar-with-database-using-amf-php/"&gt;http://www.thetechlabs.com/tutorials/interfaces/connecting-flex-calendar-with-database-using-amf-php/&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31032085-4829864003224504883?l=blog.ankur-arora.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ankur-arora/~4/qGdodza-Zi8" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://blog.ankur-arora.com/feeds/4829864003224504883/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://blog.ankur-arora.com/2010/06/connecting-flex-calendar-with-database.html#comment-form" title="7 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/31032085/posts/default/4829864003224504883?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/31032085/posts/default/4829864003224504883?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/ankur-arora/~3/qGdodza-Zi8/connecting-flex-calendar-with-database.html" title="Connecting Flex Calendar With Database Using AMF-PHP" /><author><name>Ankur Arora</name><uri>http://www.blogger.com/profile/12081883307717336032</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="21" height="32" src="http://3.bp.blogspot.com/-tFYR8C8RHOM/TawNrJBIZYI/AAAAAAAAAIw/6Nzo9WHa1yY/s220/59206_427107738682_743028682_5181093_6894231_n.jpg" /></author><thr:total>7</thr:total><feedburner:origLink>http://blog.ankur-arora.com/2010/06/connecting-flex-calendar-with-database.html</feedburner:origLink></entry><entry gd:etag="W/&quot;A04AQ3k9eyp7ImA9WhRVF0o.&quot;"><id>tag:blogger.com,1999:blog-31032085.post-5152310171817096817</id><published>2010-03-26T21:10:00.001+05:30</published><updated>2012-01-17T11:29:02.763+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2012-01-17T11:29:02.763+05:30</app:edited><title>Resize-able Textarea in Flex</title><content type="html">Hi,&lt;br /&gt;
There is a big increase in the popularity of Flex in the recent time and all of us knows when more people indulge in something the demand would also get increased. Few days back while browsing through forums I found that people asking for autoresize-able text box in Flex so, I decided to create an example for our community. &lt;br /&gt;
&lt;br /&gt;
To start with we need to create a new MXML component file where default component should be TextArea. I have created the similar file using below code.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Code:&lt;/b&gt;&lt;br /&gt;
&lt;pre class="brush:as3"&gt;&amp;lt;mx:TextArea xmlns:mx="http://www.adobe.com/2006/mxml"&amp;gt;
     &amp;lt;mx:Script&amp;gt;
          &amp;lt;![CDATA[ 
               // auto resize setting
               private var _autoResizable:Boolean = true;
     
               // getter
               [Bindable(event="changeAutoResize")]
               public function get autoResize():Boolean
               {
                    return _autoResizable;
               }
 
               // setter
               public function set autoResize(b:Boolean):void
               {
                    _autoResizable = b;
                    // if the text field component is created
                    // and is auto resizable
                    // we call the resize method
                    if (this.mx_internal::getTextField() != null &amp;amp;&amp;amp; 
                         _autoResizable == true)
                         resizeTextArea();
                    // dispatch event to make the autoResize 
                    // property bindable
                    dispatchEvent(new Event("changeAutoResize"));
               }
 
               // setter override
               override public function set text(value:String):void
               {
                    // calling super method 
                    super.text = value;
                    // if is auto resizable we call 
                    // the resize method
                    if (_autoResizable)
                         resizeTextArea();
               }
               
               // setter override
               override public function set htmlText(value:String):void
               {
                    // calling super method 
                    super.htmlText = value;
                    // if is auto resizable we call 
                    // the resize method
                    if (_autoResizable)
                         resizeTextArea();
               }

 
               // resize function for the text area
               public function resizeTextArea():void
               {
                    // initial height value
                    // if set to 0 scroll bars will 
                    // appear to the resized text area 
                    var totalHeight:uint = 10;
                    // validating the object
                    this.validateNow();
                    // find the total number of text lines 
                    // in the text area
                    var noOfLines:int = this.mx_internal::getTextField().numLines;
                    // iterating through all lines of 
                    // text in the text area
                    
                    this.mx_internal::getTextField().mouseWheelEnabled = false;
                    
                    for (var i:int = 0; i &amp;lt; noOfLines; i++) 
                    {
                         // getting the height of one text line
                         var textLineHeight:int = 
                             this.mx_internal::getTextField().getLineMetrics(i).height;
                         // adding the height to the total height
                         totalHeight += textLineHeight;
                    }
                    // setting the new calculated height
     totalHeight += textLineHeight;                    
                    this.height = totalHeight;
                    
               }
          ]]&amp;gt;
     &amp;lt;/mx:Script&amp;gt;
&amp;lt;/mx:TextArea&amp;gt;
&lt;/pre&gt;&lt;br /&gt;
To use above component in your project you need to call this component similar to below code.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Usage:&lt;/b&gt;&lt;br /&gt;
&lt;pre class="brush:as3"&gt;&amp;lt;mx:Application 
 xmlns:mx="http://www.adobe.com/2006/mxml" 
 layout="absolute" 
 xmlns:com="ankur.classes.com.*" creationComplete="onCreationComplete()"&amp;gt;
 &amp;lt;mx:Script&amp;gt;
  &amp;lt;![CDATA[
   private function onCreationComplete():void
   {
    txtResizeText.text = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque faucibus, urna ac vestibulum dapibus, massa sem tincidunt tellus, nec consectetur dui sapien eget massa. Aliquam erat volutpat. Nulla pretium rhoncus neque, vel ultricies purus feugiat vitae. Morbi non tristique nisi. Vivamus id est lacus, vel tincidunt leo. Praesent eu aliquet ipsum. Aliquam non hendrerit odio. Nullam ut pulvinar ante. Integer porttitor neque eu quam condimentum cursus. Praesent ultricies imperdiet nisi non consectetur. Duis sit amet nibh mollis urna iaculis tempor ac eget mi. Duis sodales dui vel metus sollicitudin nec tristique enim mattis. Suspendisse potenti.Curabitur vitae gravida nisi. Phasellus accumsan orci sapien. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Nulla facilisi. Donec euismod consequat velit, ut aliquet justo suscipit a. Cras eu mauris tellus, egestas suscipit velit. Integer volutpat suscipit sagittis. Etiam vitae justo eget leo posuere semper a non nunc. Donec non accumsan erat. Aliquam dictum luctus urna. Pellentesque tellus nibh, porttitor non adipiscing at, sagittis vel turpis. Vivamus consequat mi eu diam suscipit rutrum. Cras iaculis pellentesque urna, eu rutrum odio vulputate ut. Sed nibh elit, rutrum sit amet imperdiet sed, euismod in lorem."
   }
   
   private function onChange():void
   {
    txtResizeText.resizeTextArea();
   }
  ]]&amp;gt;
 &amp;lt;/mx:Script&amp;gt;
 
 &amp;lt;com:ResizeableTextarea width="400" id="txtResizeText" change="onChange()"&amp;gt; &amp;lt;/com:ResizeableTextarea&amp;gt;
&amp;lt;/mx:Application&amp;gt;
&lt;/pre&gt;&lt;br /&gt;
You can download working version of above code from &lt;a href="http://www.ankur-arora.com/samples/ResizeableTextarea.zip"&gt;here&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
I hope this post will help you create Resizeable Textarea for your project. As always comments are always welcome. So please keep posted them.&lt;br /&gt;
&lt;br /&gt;
Thanks&lt;br /&gt;
Ankur Arora&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31032085-5152310171817096817?l=blog.ankur-arora.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ankur-arora/~4/GnFKr5uPHac" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://blog.ankur-arora.com/feeds/5152310171817096817/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://blog.ankur-arora.com/2010/03/resize-able-textarea-in-flex.html#comment-form" title="2 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/31032085/posts/default/5152310171817096817?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/31032085/posts/default/5152310171817096817?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/ankur-arora/~3/GnFKr5uPHac/resize-able-textarea-in-flex.html" title="Resize-able Textarea in Flex" /><author><name>Ankur Arora</name><uri>http://www.blogger.com/profile/12081883307717336032</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="21" height="32" src="http://3.bp.blogspot.com/-tFYR8C8RHOM/TawNrJBIZYI/AAAAAAAAAIw/6Nzo9WHa1yY/s220/59206_427107738682_743028682_5181093_6894231_n.jpg" /></author><thr:total>2</thr:total><feedburner:origLink>http://blog.ankur-arora.com/2010/03/resize-able-textarea-in-flex.html</feedburner:origLink></entry><entry gd:etag="W/&quot;Ak4DSXgzcCp7ImA9WxBbGUw.&quot;"><id>tag:blogger.com,1999:blog-31032085.post-2406959592895795070</id><published>2010-03-18T18:29:00.001+05:30</published><updated>2010-03-18T18:59:38.688+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-03-18T18:59:38.688+05:30</app:edited><title>Compiler Arguments in Flex</title><content type="html">Hi,&lt;br /&gt;
I found people asking for various compiler arguments time to time so I thought to place a list online to help in this regard. Here is the list of compiler arguments for different versions of Flex.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Flex 3.0.0&lt;br /&gt;
&lt;br /&gt;
Code:&lt;/b&gt;&lt;br /&gt;
&lt;pre&gt;Adobe Flex Compiler (mxmlc)
Version 3.0.0 build 477
Copyright (c) 2004-2007 Adobe Systems, Inc. All rights reserved.

-benchmark
output performance benchmark
-compiler.accessible
alias -accessible
&amp;nbsp;&amp;nbsp; &amp;nbsp;
generate an accessible SWF
-compiler.actionscript-file-encoding &amp;lt;string&amp;gt;
alias -actionscript-file-encoding
&amp;nbsp;&amp;nbsp; &amp;nbsp;
specifies actionscript file encoding. If there is no BOM in the AS3
&amp;nbsp;&amp;nbsp; &amp;nbsp;
source files, the compiler will use this file encoding.
-compiler.allow-source-path-overlap
alias -allow-source-path-overlap
&amp;nbsp;&amp;nbsp; &amp;nbsp;
checks if a source-path entry is a subdirectory of another &amp;nbsp;
source-path entry. It helps make the package names of MXML components
&amp;nbsp;&amp;nbsp; &amp;nbsp;
unambiguous. (advanced)
-compiler.as3
alias -as3
&amp;nbsp;&amp;nbsp; &amp;nbsp;
use the ActionScript 3 class based object model for greater
&amp;nbsp;&amp;nbsp; &amp;nbsp;
performance and better error reporting. In the class based object&amp;nbsp;&amp;nbsp; &amp;nbsp;
model most built-in functions are implemented as fixed methods of
&amp;nbsp;&amp;nbsp; &amp;nbsp;
classes. (advanced)
-compiler.context-root &amp;lt;context-path&amp;gt;
alias -context-root
&amp;nbsp;&amp;nbsp; &amp;nbsp;
path to replace {context.root} tokens for service channel endpoints
-compiler.debug
alias -debug
&amp;nbsp;&amp;nbsp; &amp;nbsp;
generates a movie that is suitable for debugging
-compiler.defaults-css-files [filename] [...]
alias -defaults-css-files
&amp;nbsp;&amp;nbsp; &amp;nbsp; 
(advanced, repeatable)
-compiler.defaults-css-url &amp;lt;string&amp;gt;
alias -defaults-css-url
&amp;nbsp;&amp;nbsp; &amp;nbsp;
defines the location of the default style sheet. Setting this option&amp;nbsp;&amp;nbsp; &amp;nbsp;
overrides the implicit use of the defaults.css style sheet in the
&amp;nbsp;&amp;nbsp; &amp;nbsp;
framework.swc file. (advanced)
-compiler.define &amp;lt;name&amp;gt; &amp;lt;value&amp;gt;
alias -define
&amp;nbsp;&amp;nbsp; &amp;nbsp;
define a global AS3 conditional compilation definition, e.g.&amp;nbsp;&amp;nbsp; &amp;nbsp;
-define=CONFIG::debugging,true or -define+=CONFIG::debugging,true (to&amp;nbsp;&amp;nbsp; &amp;nbsp;
append to existing definitions in flex-config.xml) &amp;nbsp;(advanced,&amp;nbsp;&amp;nbsp; &amp;nbsp;
repeatable)
-compiler.es
alias -es
&amp;nbsp;&amp;nbsp; &amp;nbsp;
use the ECMAScript edition 3 prototype based object model to allow&amp;nbsp;&amp;nbsp; &amp;nbsp;
dynamic overriding of prototype properties. In the prototype based&amp;nbsp;&amp;nbsp; &amp;nbsp;
object model built-in functions are implemented as dynamic properties&amp;nbsp;&amp;nbsp; &amp;nbsp;
of prototype objects. (advanced)
-compiler.external-library-path [path-element] [...]
alias -external-library-path
&amp;nbsp;&amp;nbsp; &amp;nbsp;
list of SWC files or directories to compile against but to omit from
&amp;nbsp;&amp;nbsp; &amp;nbsp;
linking (repeatable)
-compiler.fonts.advanced-anti-aliasing
alias -advanced-anti-aliasing
&amp;nbsp;&amp;nbsp; &amp;nbsp;
enables advanced anti-aliasing for embedded fonts, which provides
&amp;nbsp;&amp;nbsp; &amp;nbsp;
greater clarity for small fonts.
-compiler.fonts.flash-type
alias -flash-type
&amp;nbsp;&amp;nbsp; &amp;nbsp;
enables FlashType for embedded fonts, which provides greater clarity
&amp;nbsp;&amp;nbsp; &amp;nbsp;
for small fonts.
-compiler.fonts.languages.language-range &amp;lt;lang&amp;gt; &amp;lt;range&amp;gt;
alias -language-range
&amp;nbsp;&amp;nbsp; &amp;nbsp;
a range to restrict the number of font glyphs embedded into the SWF
&amp;nbsp;&amp;nbsp; &amp;nbsp;
(advanced, repeatable)
-compiler.fonts.local-fonts-snapshot &amp;lt;string&amp;gt;
alias -local-fonts-snapshot
&amp;nbsp;&amp;nbsp; &amp;nbsp;
File containing system font data produced by
&amp;nbsp;&amp;nbsp; &amp;nbsp;
flex2.tools.FontSnapshot. (advanced)
-compiler.fonts.managers [manager-class] [...]
alias -managers
&amp;nbsp;&amp;nbsp; &amp;nbsp;
Compiler font manager classes, in policy resolution order (advanced)
-compiler.fonts.max-cached-fonts &amp;lt;string&amp;gt;
alias -max-cached-fonts
&amp;nbsp;&amp;nbsp; &amp;nbsp;
sets the maximum number of fonts to keep in the server cache. &amp;nbsp;The
&amp;nbsp;&amp;nbsp; &amp;nbsp;
default value is 20. (advanced)
-compiler.fonts.max-glyphs-per-face &amp;lt;string&amp;gt;
alias -max-glyphs-per-face
&amp;nbsp;&amp;nbsp; &amp;nbsp;
sets the maximum number of character glyph-outlines to keep in the
&amp;nbsp;&amp;nbsp; &amp;nbsp;
server cache for each font face. The default value is 1000.
-compiler.headless-server
alias -headless-server
&amp;nbsp;&amp;nbsp; &amp;nbsp;
a flag to set when Flex is running on a server without a display
&amp;nbsp;&amp;nbsp; &amp;nbsp;
(advanced)
-compiler.include-libraries [library] [...]
alias -include-libraries
&amp;nbsp;&amp;nbsp; &amp;nbsp;
a list of libraries (SWCs) to completely include in the SWF
&amp;nbsp;&amp;nbsp; &amp;nbsp;
(repeatable)
-compiler.incremental
alias -incremental
&amp;nbsp;&amp;nbsp; &amp;nbsp;
enables incremental compilation
-compiler.keep-all-type-selectors
alias -keep-all-type-selectors
&amp;nbsp;&amp;nbsp; &amp;nbsp;
disables the pruning of unused CSS type selectors (advanced)
-compiler.keep-as3-metadata [name] [...]
alias -keep-as3-metadata
&amp;nbsp;&amp;nbsp; &amp;nbsp;
keep the specified metadata in the SWF (advanced, repeatable)
-compiler.keep-generated-actionscript
alias -keep-generated-actionscript
&amp;nbsp;&amp;nbsp; &amp;nbsp;
save temporary source files generated during MXML compilation
&amp;nbsp;&amp;nbsp; &amp;nbsp;
(advanced)
-compiler.library-path [path-element] [...]
alias -l
&amp;nbsp;&amp;nbsp; &amp;nbsp;
list of SWC files or directories that contain SWC files (repeatable)
-compiler.locale [locale-element] [...]
alias -locale
&amp;nbsp;&amp;nbsp; &amp;nbsp;
specifies the locale for internationalization (repeatable)
-compiler.mxml.compatibility-version &amp;lt;version&amp;gt;
alias -compatibility-version
&amp;nbsp;&amp;nbsp; &amp;nbsp;
specifies a compatibility version. e.g. -compatibility-version=2.0.1
-compiler.namespaces.namespace &amp;lt;uri&amp;gt; &amp;lt;manifest&amp;gt;
alias -namespace
&amp;nbsp;&amp;nbsp; &amp;nbsp;
Specify a URI to associate with a manifest of components for use as
&amp;nbsp;&amp;nbsp; &amp;nbsp;
MXML elements (repeatable)
-compiler.optimize
alias -optimize
&amp;nbsp;&amp;nbsp; &amp;nbsp;
Enable post-link SWF optimization
-compiler.services &amp;lt;filename&amp;gt;
alias -services
&amp;nbsp;&amp;nbsp; &amp;nbsp;
path to Flex Data Services configuration file
-compiler.show-actionscript-warnings
alias -show-actionscript-warnings
&amp;nbsp;&amp;nbsp; &amp;nbsp;
runs the AS3 compiler in a mode that detects legal but potentially
&amp;nbsp;&amp;nbsp; &amp;nbsp;
incorrect code
-compiler.show-binding-warnings
alias -show-binding-warnings
&amp;nbsp;&amp;nbsp; &amp;nbsp;
toggle whether warnings generated from data binding code are
&amp;nbsp;&amp;nbsp; &amp;nbsp;
displayed
-compiler.show-shadowed-device-font-warnings
alias -show-shadowed-device-font-warnings
&amp;nbsp;&amp;nbsp; &amp;nbsp;
toggles whether warnings are displayed when an embedded font name
&amp;nbsp;&amp;nbsp; &amp;nbsp;
shadows a device font name
-compiler.show-unused-type-selector-warnings
alias -show-unused-type-selector-warnings
&amp;nbsp;&amp;nbsp; &amp;nbsp;
toggle whether warnings generated from unused CSS type selectors are
&amp;nbsp;&amp;nbsp; &amp;nbsp;
displayed
-compiler.source-path [path-element] [...]
alias -sp
&amp;nbsp;&amp;nbsp; &amp;nbsp;
list of path elements that form the roots of ActionScript class
&amp;nbsp;&amp;nbsp; &amp;nbsp;
hierarchies (repeatable)
-compiler.strict
alias -strict
&amp;nbsp;&amp;nbsp; &amp;nbsp;
runs the AS3 compiler in strict error checking mode.
-compiler.theme [filename] [...]
alias -theme
&amp;nbsp;&amp;nbsp; &amp;nbsp;
list of CSS or SWC files to apply as a theme (repeatable)
-compiler.use-resource-bundle-metadata
alias -use-resource-bundle-metadata
&amp;nbsp;&amp;nbsp; &amp;nbsp;
determines whether resources bundles are included in the application.
-compiler.verbose-stacktraces
alias -verbose-stacktraces
&amp;nbsp;&amp;nbsp; &amp;nbsp;
save callstack information to the SWF for debugging (advanced)
-compiler.warn-array-tostring-changes
alias -warn-array-tostring-changes
&amp;nbsp;&amp;nbsp; &amp;nbsp;
Array.toString() format has changed. (advanced)
-compiler.warn-assignment-within-conditional
alias -warn-assignment-within-conditional
&amp;nbsp;&amp;nbsp; &amp;nbsp;
Assignment within conditional. (advanced)
-compiler.warn-bad-array-cast
alias -warn-bad-array-cast
&amp;nbsp;&amp;nbsp; &amp;nbsp;
Possibly invalid Array cast operation. (advanced)
-compiler.warn-bad-bool-assignment
alias -warn-bad-bool-assignment
&amp;nbsp;&amp;nbsp; &amp;nbsp;
Non-Boolean value used where a Boolean value was expected. (advanced)
-compiler.warn-bad-date-cast
alias -warn-bad-date-cast
&amp;nbsp;&amp;nbsp; &amp;nbsp;
Invalid Date cast operation. (advanced)
-compiler.warn-bad-es3-type-method
alias -warn-bad-es3-type-method
&amp;nbsp;&amp;nbsp; &amp;nbsp;
Unknown method. (advanced)
-compiler.warn-bad-es3-type-prop
alias -warn-bad-es3-type-prop
&amp;nbsp;&amp;nbsp; &amp;nbsp;
Unknown property. (advanced)
-compiler.warn-bad-nan-comparison
alias -warn-bad-nan-comparison
&amp;nbsp;&amp;nbsp; &amp;nbsp;
Illogical comparison with NaN. Any comparison operation involving NaN
&amp;nbsp;&amp;nbsp; &amp;nbsp;
will evaluate to false because NaN != NaN. (advanced)
-compiler.warn-bad-null-assignment
alias -warn-bad-null-assignment
&amp;nbsp;&amp;nbsp; &amp;nbsp;
Impossible assignment to null. (advanced)
-compiler.warn-bad-null-comparison
alias -warn-bad-null-comparison
&amp;nbsp;&amp;nbsp; &amp;nbsp;
Illogical comparison with null. (advanced)
-compiler.warn-bad-undefined-comparison
alias -warn-bad-undefined-comparison
&amp;nbsp;&amp;nbsp; &amp;nbsp;
Illogical comparison with undefined. &amp;nbsp;Only untyped variables (or
&amp;nbsp;&amp;nbsp; &amp;nbsp;
variables of type *) can be undefined. (advanced)
-compiler.warn-boolean-constructor-with-no-args
alias -warn-boolean-constructor-with-no-args
&amp;nbsp;&amp;nbsp; &amp;nbsp;
Boolean() with no arguments returns false in ActionScript 3.0.
&amp;nbsp;&amp;nbsp; &amp;nbsp;
Boolean() returned undefined in ActionScript 2.0. (advanced)
-compiler.warn-changes-in-resolve
alias -warn-changes-in-resolve
&amp;nbsp;&amp;nbsp; &amp;nbsp;
__resolve is no longer supported. (advanced)
-compiler.warn-class-is-sealed
alias -warn-class-is-sealed
&amp;nbsp;&amp;nbsp; &amp;nbsp;
Class is sealed. &amp;nbsp;It cannot have members added to it dynamically.
&amp;nbsp;&amp;nbsp; &amp;nbsp;
(advanced)
-compiler.warn-const-not-initialized
alias -warn-const-not-initialized
&amp;nbsp;&amp;nbsp; &amp;nbsp;
Constant not initialized. (advanced)
-compiler.warn-constructor-returns-value
alias -warn-constructor-returns-value
&amp;nbsp;&amp;nbsp; &amp;nbsp;
Function used in new expression returns a value. &amp;nbsp;Result will be what
&amp;nbsp;&amp;nbsp; &amp;nbsp;
the function returns, rather than a new instance of that function.
&amp;nbsp;&amp;nbsp; &amp;nbsp;
(advanced)
-compiler.warn-deprecated-event-handler-error
alias -warn-deprecated-event-handler-error
&amp;nbsp;&amp;nbsp; &amp;nbsp;
EventHandler was not added as a listener. (advanced)
-compiler.warn-deprecated-function-error
alias -warn-deprecated-function-error
&amp;nbsp;&amp;nbsp; &amp;nbsp;
Unsupported ActionScript 2.0 function. (advanced)
-compiler.warn-deprecated-property-error
alias -warn-deprecated-property-error
&amp;nbsp;&amp;nbsp; &amp;nbsp;
Unsupported ActionScript 2.0 property. (advanced)
-compiler.warn-duplicate-argument-names
alias -warn-duplicate-argument-names
&amp;nbsp;&amp;nbsp; &amp;nbsp;
More than one argument by the same name. (advanced)
-compiler.warn-duplicate-variable-def
alias -warn-duplicate-variable-def
&amp;nbsp;&amp;nbsp; &amp;nbsp;
Duplicate variable definition &amp;nbsp;(advanced)
-compiler.warn-for-var-in-changes
alias -warn-for-var-in-changes
&amp;nbsp;&amp;nbsp; &amp;nbsp;
ActionScript 3.0 iterates over an object's properties within a "for x
&amp;nbsp;&amp;nbsp; &amp;nbsp;
in target" statement in random order. (advanced)
-compiler.warn-import-hides-class
alias -warn-import-hides-class
&amp;nbsp;&amp;nbsp; &amp;nbsp;
Importing a package by the same name as the current class will hide
&amp;nbsp;&amp;nbsp; &amp;nbsp;
that class identifier in this scope. (advanced)
-compiler.warn-instance-of-changes
alias -warn-instance-of-changes
&amp;nbsp;&amp;nbsp; &amp;nbsp;
Use of the instanceof operator. (advanced)
-compiler.warn-internal-error
alias -warn-internal-error
&amp;nbsp;&amp;nbsp; &amp;nbsp;
Internal error in compiler. (advanced)
-compiler.warn-level-not-supported
alias -warn-level-not-supported
&amp;nbsp;&amp;nbsp; &amp;nbsp;
_level is no longer supported. For more information, see the
&amp;nbsp;&amp;nbsp; &amp;nbsp;
flash.display package. (advanced)
-compiler.warn-missing-namespace-decl
alias -warn-missing-namespace-decl
&amp;nbsp;&amp;nbsp; &amp;nbsp;
Missing namespace declaration (e.g. variable is not defined to be
&amp;nbsp;&amp;nbsp; &amp;nbsp;
public, private, etc.). (advanced)
-compiler.warn-negative-uint-literal
alias -warn-negative-uint-literal
&amp;nbsp;&amp;nbsp; &amp;nbsp;
Negative value will become a large positive value when assigned to a
&amp;nbsp;&amp;nbsp; &amp;nbsp;
uint data type. (advanced)
-compiler.warn-no-constructor
alias -warn-no-constructor
&amp;nbsp;&amp;nbsp; &amp;nbsp;
Missing constructor. (advanced)
-compiler.warn-no-explicit-super-call-in-constructor
alias -warn-no-explicit-super-call-in-constructor
&amp;nbsp;&amp;nbsp; &amp;nbsp;
The super() statement was not called within the constructor.
&amp;nbsp;&amp;nbsp; &amp;nbsp;
(advanced)
-compiler.warn-no-type-decl
alias -warn-no-type-decl
&amp;nbsp;&amp;nbsp; &amp;nbsp;
Missing type declaration. (advanced)
-compiler.warn-number-from-string-changes
alias -warn-number-from-string-changes
&amp;nbsp;&amp;nbsp; &amp;nbsp;
In ActionScript 3.0, white space is ignored and '' returns 0.
&amp;nbsp;&amp;nbsp; &amp;nbsp;
Number() returns NaN in ActionScript 2.0 when the parameter is '' or
&amp;nbsp;&amp;nbsp; &amp;nbsp;
contains white space. (advanced)
-compiler.warn-scoping-change-in-this
alias -warn-scoping-change-in-this
&amp;nbsp;&amp;nbsp; &amp;nbsp;
Change in scoping for the this keyword. &amp;nbsp;Class methods extracted from
&amp;nbsp;&amp;nbsp; &amp;nbsp;
an instance of a class will always resolve this back to that
&amp;nbsp;&amp;nbsp; &amp;nbsp;
instance. &amp;nbsp;In ActionScript 2.0 this is looked up dynamically based on
&amp;nbsp;&amp;nbsp; &amp;nbsp;
where the method is invoked from. (advanced)
-compiler.warn-slow-text-field-addition
alias -warn-slow-text-field-addition
&amp;nbsp;&amp;nbsp; &amp;nbsp;
Inefficient use of += on a TextField. (advanced)
-compiler.warn-unlikely-function-value
alias -warn-unlikely-function-value
&amp;nbsp;&amp;nbsp; &amp;nbsp;
Possible missing parentheses. (advanced)
-compiler.warn-xml-class-has-changed
alias -warn-xml-class-has-changed
&amp;nbsp;&amp;nbsp; &amp;nbsp;
Possible usage of the ActionScript 2.0 XML class. (advanced)
-debug-password &amp;lt;string&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;
the password to include in debuggable SWFs (advanced)
-default-background-color &amp;lt;int&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;
default background color (may be overridden by the application code)
&amp;nbsp;&amp;nbsp; &amp;nbsp;
(advanced)
-default-frame-rate &amp;lt;int&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;
default frame rate to be used in the SWF. (advanced)
-default-script-limits &amp;lt;max-recursion-depth&amp;gt; &amp;lt;max-execution-time&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;
default script execution limits (may be overridden by root
&amp;nbsp;&amp;nbsp; &amp;nbsp;
attributes) (advanced)
-default-size &amp;lt;width&amp;gt; &amp;lt;height&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;
default application size (may be overridden by root attributes in the
&amp;nbsp;&amp;nbsp; &amp;nbsp;
application) (advanced)
-dump-config &amp;lt;filename&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;
write a file containing all currently set configuration values in a
&amp;nbsp;&amp;nbsp; &amp;nbsp;
format suitable for use as a flex config file (advanced)
-externs [symbol] [...]
&amp;nbsp;&amp;nbsp; &amp;nbsp;
a list of symbols to omit from linking when building a SWF (advanced,
&amp;nbsp;&amp;nbsp; &amp;nbsp;
repeatable)
-frames.frame [label] [classname] [...]
alias -frame
&amp;nbsp;&amp;nbsp; &amp;nbsp;
A SWF frame label with a sequence of classnames that will be linked
&amp;nbsp;&amp;nbsp; &amp;nbsp;
onto the frame. (advanced, repeatable)
-help [keyword] [...]
&amp;nbsp;&amp;nbsp; &amp;nbsp;
keywords are 'syntax', 'list', 'advanced', 'aliases', 'details', or a
&amp;nbsp;&amp;nbsp; &amp;nbsp;
search term
-include-resource-bundles [bundle] [...]
&amp;nbsp;&amp;nbsp; &amp;nbsp;
a list of resource bundles to include in the output SWC (repeatable)
-includes [symbol] [...]
&amp;nbsp;&amp;nbsp; &amp;nbsp;
a list of symbols to always link in when building a SWF (advanced,
&amp;nbsp;&amp;nbsp; &amp;nbsp;
repeatable)
-licenses.license &amp;lt;product&amp;gt; &amp;lt;serial-number&amp;gt;
alias -license
&amp;nbsp;&amp;nbsp; &amp;nbsp;
specifies a product and a serial number. &amp;nbsp;(repeatable)
-link-report &amp;lt;filename&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;
Output a XML-formatted report of all definitions linked into the
&amp;nbsp;&amp;nbsp; &amp;nbsp;
application. (advanced)
-load-config &amp;lt;filename&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;
load a file containing configuration options (repeatable)
-load-externs &amp;lt;filename&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;
an XML file containing &amp;lt;def&amp;gt;, &amp;lt;pre&amp;gt;, and &amp;lt;ext&amp;gt; symbols to omit from
&amp;nbsp;&amp;nbsp; &amp;nbsp;
linking when building a SWF (advanced, repeatable)
-metadata.contributor &amp;lt;name&amp;gt;
alias -contributor
&amp;nbsp;&amp;nbsp; &amp;nbsp;
A contributor's name to store in the SWF metadata (repeatable)
-metadata.creator &amp;lt;name&amp;gt;
alias -creator
&amp;nbsp;&amp;nbsp; &amp;nbsp;
A creator's name to store in the SWF metadata (repeatable)
-metadata.date &amp;lt;text&amp;gt;
alias -date
&amp;nbsp;&amp;nbsp; &amp;nbsp;
The creation date to store in the SWF metadata
-metadata.description &amp;lt;text&amp;gt;
alias -description
&amp;nbsp;&amp;nbsp; &amp;nbsp;
The default description to store in the SWF metadata
-metadata.language &amp;lt;code&amp;gt;
alias -language
&amp;nbsp;&amp;nbsp; &amp;nbsp;
The language to store in the SWF metadata (i.e. EN, FR) (repeatable)
-metadata.localized-description &amp;lt;text&amp;gt; &amp;lt;lang&amp;gt;
alias -localized-description
&amp;nbsp;&amp;nbsp; &amp;nbsp;
A localized RDF/XMP description to store in the SWF metadata
&amp;nbsp;&amp;nbsp; &amp;nbsp;
(repeatable)
-metadata.localized-title &amp;lt;title&amp;gt; &amp;lt;lang&amp;gt;
alias -localized-title
&amp;nbsp;&amp;nbsp; &amp;nbsp;
A localized RDF/XMP title to store in the SWF metadata (repeatable)
-metadata.publisher &amp;lt;name&amp;gt;
alias -publisher
&amp;nbsp;&amp;nbsp; &amp;nbsp;
A publisher's name to store in the SWF metadata (repeatable)
-metadata.title &amp;lt;text&amp;gt;
alias -title
&amp;nbsp;&amp;nbsp; &amp;nbsp;
The default title to store in the SWF metadata
-output &amp;lt;filename&amp;gt;
alias -o
&amp;nbsp;&amp;nbsp; &amp;nbsp;
the filename of the SWF movie to create
-raw-metadata &amp;lt;text&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;
XML text to store in the SWF metadata (overrides metadata.*
&amp;nbsp;&amp;nbsp; &amp;nbsp;
configuration) (advanced)
-resource-bundle-list &amp;lt;filename&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;
prints a list of resource bundles to a file for input to the compc
&amp;nbsp;&amp;nbsp; &amp;nbsp;
compiler to create a resource bundle SWC file. &amp;nbsp;(advanced)
-runtime-shared-libraries [url] [...]
alias -rsl
&amp;nbsp;&amp;nbsp; &amp;nbsp;
a list of runtime shared library URLs to be loaded before the
&amp;nbsp;&amp;nbsp; &amp;nbsp;
application starts (repeatable)
-runtime-shared-library-path [path-element] [rsl-url] [policy-file-url] [rsl-url] [policy-file-url]
alias -rslp
&amp;nbsp;&amp;nbsp; &amp;nbsp; 
(repeatable)
-static-link-runtime-shared-libraries
alias -static-rsls
&amp;nbsp;&amp;nbsp; &amp;nbsp;
statically link the libraries specified by the
&amp;nbsp;&amp;nbsp; &amp;nbsp;
-runtime-shared-libraries-path option.
-target-player &amp;lt;version&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;
specifies the version of the player the application is targeting.
&amp;nbsp;&amp;nbsp; &amp;nbsp;
Features requiring a later version will not be compiled into the
&amp;nbsp;&amp;nbsp; &amp;nbsp;
application. The minimum value supported is "9.0.0".
-use-network
&amp;nbsp;&amp;nbsp; &amp;nbsp;
toggle whether the SWF is flagged for access to network resources
-verify-digests
&amp;nbsp;&amp;nbsp; &amp;nbsp;
verifies the libraries loaded at runtime are the correct ones.
&amp;nbsp;&amp;nbsp; &amp;nbsp;
(advanced)
-version
&amp;nbsp;&amp;nbsp; &amp;nbsp;
display the build version of the program
-warnings
&amp;nbsp;&amp;nbsp; &amp;nbsp;
toggle the display of warnings  &lt;/pre&gt;&lt;br /&gt;
&lt;b&gt;Flex 3.3&lt;br /&gt;
&lt;br /&gt;
Code:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;Adobe Flex Compiler (mxmlc)
Version 3.3.0 build 4852
Copyright (c) 2004-2007 Adobe Systems, Inc. All rights reserved.

-benchmark
&amp;nbsp; &amp;nbsp; 
output performance benchmark
-compiler.accessible
alias -accessible
&amp;nbsp; &amp;nbsp; 
generate an accessible SWF
-compiler.actionscript-file-encoding &amp;lt;string&amp;gt;
alias -actionscript-file-encoding
&amp;nbsp; &amp;nbsp; 
specifies actionscript file encoding. If there is no BOM in the AS3
&amp;nbsp; &amp;nbsp; 
source files, the compiler will use this file encoding.
-compiler.context-root &amp;lt;context-path&amp;gt;
alias -context-root
&amp;nbsp; &amp;nbsp; 
path to replace {context.root} tokens for service channel endpoints
-compiler.debug
alias -debug
&amp;nbsp; &amp;nbsp; 
generates a movie that is suitable for debugging
-compiler.external-library-path [path-element] [...]
alias -external-library-path
&amp;nbsp; &amp;nbsp; 
list of SWC files or directories to compile against but to omit from
&amp;nbsp; &amp;nbsp; 
linking (repeatable)
-compiler.fonts.advanced-anti-aliasing
alias -advanced-anti-aliasing
&amp;nbsp; &amp;nbsp; 
enables advanced anti-aliasing for embedded fonts, which provides
&amp;nbsp; &amp;nbsp; 
greater clarity for small fonts.
-compiler.fonts.flash-type
alias -flash-type
&amp;nbsp; &amp;nbsp; 
enables FlashType for embedded fonts, which provides greater clarity
&amp;nbsp; &amp;nbsp; 
for small fonts.
-compiler.fonts.max-glyphs-per-face &amp;lt;string&amp;gt;
alias -max-glyphs-per-face
&amp;nbsp; &amp;nbsp; 
sets the maximum number of character glyph-outlines to keep in the
&amp;nbsp; &amp;nbsp; 
server cache for each font face. The default value is 1000.
-compiler.include-libraries [library] [...]
alias -include-libraries
&amp;nbsp; &amp;nbsp; 
a list of libraries (SWCs) to completely include in the SWF
&amp;nbsp; &amp;nbsp; 
(repeatable)
-compiler.incremental
alias -incremental
&amp;nbsp; &amp;nbsp; 
enables incremental compilation
-compiler.library-path [path-element] [...]
alias -l
&amp;nbsp; &amp;nbsp; 
list of SWC files or directories that contain SWC files (repeatable)
-compiler.locale [locale-element] [...]
alias -locale
&amp;nbsp; &amp;nbsp; 
specifies the locale for internationalization (repeatable)
-compiler.mxml.compatibility-version &amp;lt;version&amp;gt;
alias -compatibility-version
&amp;nbsp; &amp;nbsp; 
specifies a compatibility version. e.g. -compatibility-version=2.0.1
-compiler.namespaces.namespace &amp;lt;uri&amp;gt; &amp;lt;manifest&amp;gt;
alias -namespace
&amp;nbsp; &amp;nbsp; 
Specify a URI to associate with a manifest of components for use as
&amp;nbsp; &amp;nbsp; 
MXML elements (repeatable)
-compiler.optimize
alias -optimize
&amp;nbsp; &amp;nbsp; 
Enable post-link SWF optimization
-compiler.services &amp;lt;filename&amp;gt;
alias -services
&amp;nbsp; &amp;nbsp; 
path to Flex Data Services configuration file
-compiler.show-actionscript-warnings
alias -show-actionscript-warnings
&amp;nbsp; &amp;nbsp; 
runs the AS3 compiler in a mode that detects legal but potentially
&amp;nbsp; &amp;nbsp; 
incorrect code
-compiler.show-binding-warnings
alias -show-binding-warnings
&amp;nbsp; &amp;nbsp; 
toggle whether warnings generated from data binding code are
&amp;nbsp; &amp;nbsp; 
displayed
-compiler.show-shadowed-device-font-warnings
alias -show-shadowed-device-font-warnings
&amp;nbsp; &amp;nbsp; 
toggles whether warnings are displayed when an embedded font name
&amp;nbsp; &amp;nbsp; 
shadows a device font name
-compiler.show-unused-type-selector-warnings
alias -show-unused-type-selector-warnings
&amp;nbsp; &amp;nbsp; 
toggle whether warnings generated from unused CSS type selectors are
&amp;nbsp; &amp;nbsp; 
displayed
-compiler.source-path [path-element] [...]
alias -sp
&amp;nbsp; &amp;nbsp; 
list of path elements that form the roots of ActionScript class
&amp;nbsp; &amp;nbsp; 
hierarchies (repeatable)
-compiler.strict
alias -strict
&amp;nbsp; &amp;nbsp; 
runs the AS3 compiler in strict error checking mode.
-compiler.theme [filename] [...]
alias -theme
&amp;nbsp; &amp;nbsp; 
list of CSS or SWC files to apply as a theme (repeatable)
-compiler.use-resource-bundle-metadata
alias -use-resource-bundle-metadata
&amp;nbsp; &amp;nbsp; 
determines whether resources bundles are included in the application.
-help [keyword] [...]
&amp;nbsp; &amp;nbsp; 
keywords are 'syntax', 'list', 'advanced', 'aliases', 'details', or a
&amp;nbsp; &amp;nbsp; 
search term
-include-resource-bundles [bundle] [...]
&amp;nbsp; &amp;nbsp; 
a list of resource bundles to include in the output SWC (repeatable)
-licenses.license &amp;lt;product&amp;gt; &amp;lt;serial-number&amp;gt;
alias -license
&amp;nbsp; &amp;nbsp; 
specifies a product and a serial number.&amp;nbsp; (repeatable)
-load-config &amp;lt;filename&amp;gt;
&amp;nbsp; &amp;nbsp; 
load a file containing configuration options (repeatable)
-metadata.contributor &amp;lt;name&amp;gt;
alias -contributor
&amp;nbsp; &amp;nbsp; 
A contributor's name to store in the SWF metadata (repeatable)
-metadata.creator &amp;lt;name&amp;gt;
alias -creator
&amp;nbsp; &amp;nbsp; 
A creator's name to store in the SWF metadata (repeatable)
-metadata.date &amp;lt;text&amp;gt;
alias -date
&amp;nbsp; &amp;nbsp; 
The creation date to store in the SWF metadata
-metadata.description &amp;lt;text&amp;gt;
alias -description
&amp;nbsp; &amp;nbsp; 
The default description to store in the SWF metadata
-metadata.language &amp;lt;code&amp;gt;
alias -language
&amp;nbsp; &amp;nbsp; 
The language to store in the SWF metadata (i.e. EN, FR) (repeatable)
-metadata.localized-description &amp;lt;text&amp;gt; &amp;lt;lang&amp;gt;
alias -localized-description
&amp;nbsp; &amp;nbsp; 
A localized RDF/XMP description to store in the SWF metadata
&amp;nbsp; &amp;nbsp; 
(repeatable)
-metadata.localized-title &amp;lt;title&amp;gt; &amp;lt;lang&amp;gt;
alias -localized-title
&amp;nbsp; &amp;nbsp; 
A localized RDF/XMP title to store in the SWF metadata (repeatable)
-metadata.publisher &amp;lt;name&amp;gt;
alias -publisher
&amp;nbsp; &amp;nbsp; 
A publisher's name to store in the SWF metadata (repeatable)
-metadata.title &amp;lt;text&amp;gt;
alias -title
&amp;nbsp; &amp;nbsp; 
The default title to store in the SWF metadata
-output &amp;lt;filename&amp;gt;
alias -o
&amp;nbsp; &amp;nbsp; 
the filename of the SWF movie to create
-runtime-shared-libraries [url] [...]
alias -rsl
&amp;nbsp; &amp;nbsp; 
a list of runtime shared library URLs to be loaded before the
&amp;nbsp; &amp;nbsp; 
application starts (repeatable)
-runtime-shared-library-path [path-element] [rsl-url] [policy-file-url] [rsl-url] [policy-file-url]
alias -rslp
&amp;nbsp; &amp;nbsp; &amp;nbsp;
(repeatable)
-static-link-runtime-shared-libraries
alias -static-rsls
&amp;nbsp; &amp;nbsp; 
statically link the libraries specified by the
&amp;nbsp; &amp;nbsp; 
-runtime-shared-libraries-path option.
-target-player &amp;lt;version&amp;gt;
&amp;nbsp; &amp;nbsp; 
specifies the version of the player the application is targeting.
&amp;nbsp; &amp;nbsp; 
Features requiring a later version will not be compiled into the
&amp;nbsp; &amp;nbsp; 
application. The minimum value supported is "9.0.0".
-use-network
&amp;nbsp; &amp;nbsp; 
toggle whether the SWF is flagged for access to network resources
-version
&amp;nbsp; &amp;nbsp; 
display the build version of the program
-warnings
&amp;nbsp; &amp;nbsp; 
toggle the display of warnings  
&lt;/pre&gt;&lt;br /&gt;
&lt;b&gt;Flex 3.4&lt;br /&gt;
&lt;br /&gt;
Code:&lt;/b&gt;&lt;br /&gt;
&lt;pre&gt;Adobe Flex Compiler (mxmlc)
Version 3.4.0 build 6955
Copyright (c) 2004-2007 Adobe Systems, Inc. All rights reserved.

-benchmark
&amp;nbsp;&amp;nbsp; &amp;nbsp;
output performance benchmark
-compiler.accessible
alias -accessible
&amp;nbsp;&amp;nbsp; &amp;nbsp;
generate an accessible SWF
-compiler.actionscript-file-encoding &amp;lt;string&amp;gt;
alias -actionscript-file-encoding
&amp;nbsp;&amp;nbsp; &amp;nbsp;
specifies actionscript file encoding. If there is no BOM in the AS3
&amp;nbsp;&amp;nbsp; &amp;nbsp;
source files, the compiler will use this file encoding.
-compiler.context-root &amp;lt;context-path&amp;gt;
alias -context-root
&amp;nbsp;&amp;nbsp; &amp;nbsp;
path to replace {context.root} tokens for service channel endpoints
-compiler.debug
alias -debug
&amp;nbsp;&amp;nbsp; &amp;nbsp;
generates a movie that is suitable for debugging
-compiler.external-library-path [path-element] [...]
alias -external-library-path
&amp;nbsp;&amp;nbsp; &amp;nbsp;
list of SWC files or directories to compile against but to omit from
&amp;nbsp;&amp;nbsp; &amp;nbsp;
linking (repeatable)
-compiler.fonts.advanced-anti-aliasing
alias -advanced-anti-aliasing
&amp;nbsp;&amp;nbsp; &amp;nbsp;
enables advanced anti-aliasing for embedded fonts, which provides
&amp;nbsp;&amp;nbsp; &amp;nbsp;
greater clarity for small fonts.
-compiler.fonts.flash-type
alias -flash-type
&amp;nbsp;&amp;nbsp; &amp;nbsp;
enables FlashType for embedded fonts, which provides greater clarity
&amp;nbsp;&amp;nbsp; &amp;nbsp;
for small fonts.
-compiler.fonts.max-glyphs-per-face &amp;lt;string&amp;gt;
alias -max-glyphs-per-face
&amp;nbsp;&amp;nbsp; &amp;nbsp;
sets the maximum number of character glyph-outlines to keep in the
&amp;nbsp;&amp;nbsp; &amp;nbsp;
server cache for each font face. The default value is 1000.
-compiler.include-libraries [library] [...]
alias -include-libraries
&amp;nbsp;&amp;nbsp; &amp;nbsp;
a list of libraries (SWCs) to completely include in the SWF
&amp;nbsp;&amp;nbsp; &amp;nbsp;
(repeatable)
-compiler.incremental
alias -incremental
&amp;nbsp;&amp;nbsp; &amp;nbsp;
enables incremental compilation
-compiler.library-path [path-element] [...]
alias -l
&amp;nbsp;&amp;nbsp; &amp;nbsp;
list of SWC files or directories that contain SWC files (repeatable)
-compiler.locale [locale-element] [...]
alias -locale
&amp;nbsp;&amp;nbsp; &amp;nbsp;
specifies the locale for internationalization (repeatable)
-compiler.mxml.compatibility-version &amp;lt;version&amp;gt;
alias -compatibility-version
&amp;nbsp;&amp;nbsp; &amp;nbsp;
specifies a compatibility version. e.g. -compatibility-version=2.0.1
-compiler.namespaces.namespace &amp;lt;uri&amp;gt; &amp;lt;manifest&amp;gt;
alias -namespace
&amp;nbsp;&amp;nbsp; &amp;nbsp;
Specify a URI to associate with a manifest of components for use as
&amp;nbsp;&amp;nbsp; &amp;nbsp;
MXML elements (repeatable)
-compiler.optimize
alias -optimize
&amp;nbsp;&amp;nbsp; &amp;nbsp;
Enable post-link SWF optimization
-compiler.services &amp;lt;filename&amp;gt;
alias -services
&amp;nbsp;&amp;nbsp; &amp;nbsp;
path to Flex Data Services configuration file
-compiler.show-actionscript-warnings
alias -show-actionscript-warnings
&amp;nbsp;&amp;nbsp; &amp;nbsp;
runs the AS3 compiler in a mode that detects legal but potentially
&amp;nbsp;&amp;nbsp; &amp;nbsp;
incorrect code
-compiler.show-binding-warnings
alias -show-binding-warnings
&amp;nbsp;&amp;nbsp; &amp;nbsp;
toggle whether warnings generated from data binding code are
&amp;nbsp;&amp;nbsp; &amp;nbsp;
displayed
-compiler.show-shadowed-device-font-warnings
alias -show-shadowed-device-font-warnings
&amp;nbsp;&amp;nbsp; &amp;nbsp;
toggles whether warnings are displayed when an embedded font name
&amp;nbsp;&amp;nbsp; &amp;nbsp;
shadows a device font name
-compiler.show-unused-type-selector-warnings
alias -show-unused-type-selector-warnings
&amp;nbsp;&amp;nbsp; &amp;nbsp;
toggle whether warnings generated from unused CSS type selectors are
&amp;nbsp;&amp;nbsp; &amp;nbsp;
displayed
-compiler.source-path [path-element] [...]
alias -sp
&amp;nbsp;&amp;nbsp; &amp;nbsp;
list of path elements that form the roots of ActionScript class
&amp;nbsp;&amp;nbsp; &amp;nbsp;
hierarchies (repeatable)
-compiler.strict
alias -strict
&amp;nbsp;&amp;nbsp; &amp;nbsp;
runs the AS3 compiler in strict error checking mode.
-compiler.theme [filename] [...]
alias -theme
&amp;nbsp;&amp;nbsp; &amp;nbsp;
list of CSS or SWC files to apply as a theme (repeatable)
-compiler.use-resource-bundle-metadata
alias -use-resource-bundle-metadata
&amp;nbsp;&amp;nbsp; &amp;nbsp;
determines whether resources bundles are included in the application.
-help [keyword] [...]
&amp;nbsp;&amp;nbsp; &amp;nbsp;
keywords are 'syntax', 'list', 'advanced', 'aliases', 'details', or a
&amp;nbsp;&amp;nbsp; &amp;nbsp;
search term
-include-resource-bundles [bundle] [...]
&amp;nbsp;&amp;nbsp; &amp;nbsp;
a list of resource bundles to include in the output SWC (repeatable)
-licenses.license &amp;lt;product&amp;gt; &amp;lt;serial-number&amp;gt;
alias -license
&amp;nbsp;&amp;nbsp; &amp;nbsp;
specifies a product and a serial number. &amp;nbsp;(repeatable)
-load-config &amp;lt;filename&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;
load a file containing configuration options (repeatable)
-metadata.contributor &amp;lt;name&amp;gt;
alias -contributor
&amp;nbsp;&amp;nbsp; &amp;nbsp;
A contributor's name to store in the SWF metadata (repeatable)
-metadata.creator &amp;lt;name&amp;gt;
alias -creator
&amp;nbsp;&amp;nbsp; &amp;nbsp;
A creator's name to store in the SWF metadata (repeatable)
-metadata.date &amp;lt;text&amp;gt;
alias -date
&amp;nbsp;&amp;nbsp; &amp;nbsp;
The creation date to store in the SWF metadata
-metadata.description &amp;lt;text&amp;gt;
alias -description
&amp;nbsp;&amp;nbsp; &amp;nbsp;
The default description to store in the SWF metadata
-metadata.language &amp;lt;code&amp;gt;
alias -language
&amp;nbsp;&amp;nbsp; &amp;nbsp;
The language to store in the SWF metadata (i.e. EN, FR) (repeatable)
-metadata.localized-description &amp;lt;text&amp;gt; &amp;lt;lang&amp;gt;
alias -localized-description
&amp;nbsp;&amp;nbsp; &amp;nbsp;
A localized RDF/XMP description to store in the SWF metadata
&amp;nbsp;&amp;nbsp; &amp;nbsp;
(repeatable)
-metadata.localized-title &amp;lt;title&amp;gt; &amp;lt;lang&amp;gt;
alias -localized-title
&amp;nbsp;&amp;nbsp; &amp;nbsp;
A localized RDF/XMP title to store in the SWF metadata (repeatable)
-metadata.publisher &amp;lt;name&amp;gt;
alias -publisher
&amp;nbsp;&amp;nbsp; &amp;nbsp;
A publisher's name to store in the SWF metadata (repeatable)
-metadata.title &amp;lt;text&amp;gt;
alias -title
&amp;nbsp;&amp;nbsp; &amp;nbsp;
The default title to store in the SWF metadata
-output &amp;lt;filename&amp;gt;
alias -o
&amp;nbsp;&amp;nbsp; &amp;nbsp;
the filename of the SWF movie to create
-runtime-shared-libraries [url] [...]
alias -rsl
&amp;nbsp;&amp;nbsp; &amp;nbsp;
a list of runtime shared library URLs to be loaded before the
&amp;nbsp;&amp;nbsp; &amp;nbsp;
application starts (repeatable)
-runtime-shared-library-path [path-element] [rsl-url] [policy-file-url] [rsl-url] [policy-file-url]
alias -rslp
&amp;nbsp;&amp;nbsp; &amp;nbsp; 
(repeatable)
-static-link-runtime-shared-libraries
alias -static-rsls
&amp;nbsp;&amp;nbsp; &amp;nbsp;
statically link the libraries specified by the
&amp;nbsp;&amp;nbsp; &amp;nbsp;
-runtime-shared-libraries-path option.
-target-player &amp;lt;version&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;
specifies the version of the player the application is targeting.
&amp;nbsp;&amp;nbsp; &amp;nbsp;
Features requiring a later version will not be compiled into the
&amp;nbsp;&amp;nbsp; &amp;nbsp;
application. The minimum value supported is "9.0.0".
-use-network
&amp;nbsp;&amp;nbsp; &amp;nbsp;
toggle whether the SWF is flagged for access to network resources
-version
&amp;nbsp;&amp;nbsp; &amp;nbsp;
display the build version of the program
-warnings
&amp;nbsp;&amp;nbsp; &amp;nbsp;
toggle the display of warnings  
&lt;/pre&gt;&lt;br /&gt;
&lt;b&gt;Flex 4 (beta)&lt;br /&gt;
&lt;br /&gt;
Code:&lt;/b&gt;&lt;br /&gt;
&lt;pre&gt;Adobe Flex Compiler (mxmlc)
Version 4.0.0 build 7219
Copyright (c) 2004-2009 Adobe Systems, Inc. All rights reserved.

-benchmark
&amp;nbsp; &amp;nbsp; 
output performance benchmark
-compiler.accessible
alias -accessible
&amp;nbsp; &amp;nbsp; 
generate an accessible SWF
-compiler.actionscript-file-encoding &amp;lt;string&amp;gt;
alias -actionscript-file-encoding
&amp;nbsp; &amp;nbsp; 
specifies actionscript file encoding. If there is no BOM in the AS3
&amp;nbsp; &amp;nbsp; 
source files, the compiler will use this file encoding.
-compiler.context-root &amp;lt;context-path&amp;gt;
alias -context-root
&amp;nbsp; &amp;nbsp; 
path to replace {context.root} tokens for service channel endpoints
-compiler.debug
alias -debug
&amp;nbsp; &amp;nbsp; 
generates a movie that is suitable for debugging
-compiler.external-library-path [path-element] [...]
alias -external-library-path
&amp;nbsp; &amp;nbsp; 
list of SWC files or directories to compile against but to omit from
&amp;nbsp; &amp;nbsp; 
linking (repeatable)
-compiler.fonts.advanced-anti-aliasing
alias -advanced-anti-aliasing
&amp;nbsp; &amp;nbsp; 
enables advanced anti-aliasing for embedded fonts, which provides
&amp;nbsp; &amp;nbsp; 
greater clarity for small fonts.
-compiler.fonts.flash-type
alias -flash-type
&amp;nbsp; &amp;nbsp; 
enables FlashType for embedded fonts, which provides greater clarity
&amp;nbsp; &amp;nbsp; 
for small fonts.
-compiler.fonts.max-glyphs-per-face &amp;lt;string&amp;gt;
alias -max-glyphs-per-face
&amp;nbsp; &amp;nbsp; 
sets the maximum number of character glyph-outlines to keep in the
&amp;nbsp; &amp;nbsp; 
server cache for each font face. The default value is 1000.
-compiler.include-libraries [library] [...]
alias -include-libraries
&amp;nbsp; &amp;nbsp; 
a list of libraries (SWCs) to completely include in the SWF
&amp;nbsp; &amp;nbsp; 
(repeatable)
-compiler.incremental
alias -incremental
&amp;nbsp; &amp;nbsp; 
enables incremental compilation
-compiler.library-path [path-element] [...]
alias -l
&amp;nbsp; &amp;nbsp; 
list of SWC files or directories that contain SWC files (repeatable)
-compiler.locale [locale-element] [...]
alias -locale
&amp;nbsp; &amp;nbsp; 
specifies the locale for internationalization (repeatable)
-compiler.mxml.compatibility-version &amp;lt;version&amp;gt;
alias -compatibility-version
&amp;nbsp; &amp;nbsp; 
specifies a compatibility version. e.g. -compatibility-version=2.0.1
-compiler.namespaces.namespace [uri] [manifest] [...]
alias -namespace
&amp;nbsp; &amp;nbsp; 
Specify a URI to associate with a manifest of components for use as
&amp;nbsp; &amp;nbsp; 
MXML elements (repeatable)
-compiler.optimize
alias -optimize
&amp;nbsp; &amp;nbsp; 
Enable post-link SWF optimization
-compiler.services &amp;lt;filename&amp;gt;
alias -services
&amp;nbsp; &amp;nbsp; 
path to Flex Data Services configuration file
-compiler.show-actionscript-warnings
alias -show-actionscript-warnings
&amp;nbsp; &amp;nbsp; 
runs the AS3 compiler in a mode that detects legal but potentially
&amp;nbsp; &amp;nbsp; 
incorrect code
-compiler.show-binding-warnings
alias -show-binding-warnings
&amp;nbsp; &amp;nbsp; 
toggle whether warnings generated from data binding code are
&amp;nbsp; &amp;nbsp; 
displayed
-compiler.show-shadowed-device-font-warnings
alias -show-shadowed-device-font-warnings
&amp;nbsp; &amp;nbsp; 
toggles whether warnings are displayed when an embedded font name
&amp;nbsp; &amp;nbsp; 
shadows a device font name
-compiler.show-unused-type-selector-warnings
alias -show-unused-type-selector-warnings
&amp;nbsp; &amp;nbsp; 
toggle whether warnings generated from unused CSS type selectors are
&amp;nbsp; &amp;nbsp; 
displayed
-compiler.source-path [path-element] [...]
alias -sp
&amp;nbsp; &amp;nbsp; 
list of path elements that form the roots of ActionScript class
&amp;nbsp; &amp;nbsp; 
hierarchies (repeatable)
-compiler.strict
alias -strict
&amp;nbsp; &amp;nbsp; 
runs the AS3 compiler in strict error checking mode.
-compiler.theme [filename] [...]
alias -theme
&amp;nbsp; &amp;nbsp; 
list of CSS or SWC files to apply as a theme (repeatable)
-compiler.use-resource-bundle-metadata
alias -use-resource-bundle-metadata
&amp;nbsp; &amp;nbsp; 
determines whether resources bundles are included in the application.
-framework &amp;lt;string&amp;gt;
-help [keyword] [...]
&amp;nbsp; &amp;nbsp; 
keywords are 'syntax', 'list', 'advanced', 'aliases', 'details', or a
&amp;nbsp; &amp;nbsp; 
search term
-include-resource-bundles [bundle] [...]
&amp;nbsp; &amp;nbsp; 
a list of resource bundles to include in the output SWC (repeatable)
-licenses.license &amp;lt;product&amp;gt; &amp;lt;serial-number&amp;gt;
alias -license
&amp;nbsp; &amp;nbsp; 
specifies a product and a serial number.&amp;nbsp; (repeatable)
-load-config &amp;lt;filename&amp;gt;
&amp;nbsp; &amp;nbsp; 
load a file containing configuration options (repeatable)
-metadata.contributor &amp;lt;name&amp;gt;
alias -contributor
&amp;nbsp; &amp;nbsp; 
A contributor's name to store in the SWF metadata (repeatable)
-metadata.creator &amp;lt;name&amp;gt;
alias -creator
&amp;nbsp; &amp;nbsp; 
A creator's name to store in the SWF metadata (repeatable)
-metadata.date &amp;lt;text&amp;gt;
alias -date
&amp;nbsp; &amp;nbsp; 
The creation date to store in the SWF metadata
-metadata.description &amp;lt;text&amp;gt;
alias -description
&amp;nbsp; &amp;nbsp; 
The default description to store in the SWF metadata
-metadata.language &amp;lt;code&amp;gt;
alias -language
&amp;nbsp; &amp;nbsp; 
The language to store in the SWF metadata (i.e. EN, FR) (repeatable)
-metadata.localized-description &amp;lt;text&amp;gt; &amp;lt;lang&amp;gt;
alias -localized-description
&amp;nbsp; &amp;nbsp; 
A localized RDF/XMP description to store in the SWF metadata
&amp;nbsp; &amp;nbsp; 
(repeatable)
-metadata.localized-title &amp;lt;title&amp;gt; &amp;lt;lang&amp;gt;
alias -localized-title
&amp;nbsp; &amp;nbsp; 
A localized RDF/XMP title to store in the SWF metadata (repeatable)
-metadata.publisher &amp;lt;name&amp;gt;
alias -publisher
&amp;nbsp; &amp;nbsp; 
A publisher's name to store in the SWF metadata (repeatable)
-metadata.title &amp;lt;text&amp;gt;
alias -title
&amp;nbsp; &amp;nbsp; 
The default title to store in the SWF metadata
-output &amp;lt;filename&amp;gt;
alias -o
&amp;nbsp; &amp;nbsp; 
the filename of the SWF movie to create
-runtime-shared-libraries [url] [...]
alias -rsl
&amp;nbsp; &amp;nbsp; 
a list of runtime shared library URLs to be loaded before the
&amp;nbsp; &amp;nbsp; 
application starts (repeatable)
-runtime-shared-library-path [path-element] [rsl-url] [policy-file-url] [rsl-url] [policy-file-url]
alias -rslp
&amp;nbsp; &amp;nbsp; &amp;nbsp;
(repeatable)
-static-link-runtime-shared-libraries
alias -static-rsls
&amp;nbsp; &amp;nbsp; 
statically link the libraries specified by the
&amp;nbsp; &amp;nbsp; 
-runtime-shared-libraries-path option.
-target-player &amp;lt;version&amp;gt;
&amp;nbsp; &amp;nbsp; 
specifies the version of the player the application is targeting.
&amp;nbsp; &amp;nbsp; 
Features requiring a later version will not be compiled into the
&amp;nbsp; &amp;nbsp; 
application. The minimum value supported is "9.0.0".
-use-network
&amp;nbsp; &amp;nbsp; 
toggle whether the SWF is flagged for access to network resources
-version
&amp;nbsp; &amp;nbsp; 
display the build version of the program
-warnings
&amp;nbsp; &amp;nbsp; 
toggle the display of warnings  
&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31032085-2406959592895795070?l=blog.ankur-arora.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ankur-arora/~4/rX0ChfdxLK4" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://blog.ankur-arora.com/feeds/2406959592895795070/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://blog.ankur-arora.com/2010/03/compiler-arguments-in-flex.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/31032085/posts/default/2406959592895795070?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/31032085/posts/default/2406959592895795070?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/ankur-arora/~3/rX0ChfdxLK4/compiler-arguments-in-flex.html" title="Compiler Arguments in Flex" /><author><name>Ankur Arora</name><uri>http://www.blogger.com/profile/12081883307717336032</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="21" height="32" src="http://3.bp.blogspot.com/-tFYR8C8RHOM/TawNrJBIZYI/AAAAAAAAAIw/6Nzo9WHa1yY/s220/59206_427107738682_743028682_5181093_6894231_n.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://blog.ankur-arora.com/2010/03/compiler-arguments-in-flex.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DE8FQnw5eSp7ImA9WxFREUs.&quot;"><id>tag:blogger.com,1999:blog-31032085.post-4728945256708254889</id><published>2010-03-12T16:41:00.002+05:30</published><updated>2010-04-25T09:10:13.221+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-04-25T09:10:13.221+05:30</app:edited><title>Drag canvas content / Scrolling Canvas / Pan Canvas in Flex</title><content type="html">Hi,&lt;br /&gt;
It has been long time since I posted anything here. You know lots of work and could not able to spend time on my blog. Nevertheless, it is never late. Today I'm&amp;nbsp;writing&amp;nbsp;a new helpful post for you which will allow you to create a Canvas in Flex where you can Pan the content of it. That means if content in the canvas is bigger than the canvas then you can drag your mouse and move the content.&lt;br /&gt;
&lt;br /&gt;
To accomplish this we need to create a new class called PanCanvas which will extend to Canvas class. Here is the code for the class.&lt;br /&gt;
&lt;b&gt;Code:&lt;/b&gt;&lt;br /&gt;
&lt;pre&gt;package ankur.classes.pancanvas
{
 import flash.events.Event;
 import flash.events.MouseEvent;
 import mx.containers.Canvas;

        
        public class PanCanvas extends Canvas
        {

  private var orgX:Number;
  private var orgY:Number;
  private var orgHScrollPosition:Number;
  private var orgVScrollPosition:Number;
  private var _childrenDoDrag:Boolean = true;
            
            
  public function get childrenDoDrag():Boolean {
   return this._childrenDoDrag;
  }
            
            
  public function set childrenDoDrag(value:Boolean):void {
   this._childrenDoDrag = value;
  }
            
  override protected function createChildren():void {
   super.createChildren();
   this.addEventListener(MouseEvent.MOUSE_DOWN, startDragging);
  }
                
                
  protected function startDragging(event:MouseEvent):void
  {


   if(event.target.parent == this.verticalScrollBar ||
   event.target.parent == this.horizontalScrollBar) 
   {
    return;
   }
  
                
                
   if(_childrenDoDrag || event.target == this) 
   {
    orgX = event.stageX;
    orgY = event.stageY;

    orgHScrollPosition = this.horizontalScrollPosition;
    orgVScrollPosition = this.verticalScrollPosition;

    systemManager.addEventListener(
        MouseEvent.MOUSE_MOVE, systemManager_mouseMoveHandler, true);

    systemManager.addEventListener(
        MouseEvent.MOUSE_UP, systemManager_mouseUpHandler, true);

    systemManager.stage.addEventListener(
        Event.MOUSE_LEAVE, stage_mouseLeaveHandler);
   }
  }
            
            
           
  private function systemManager_mouseMoveHandler(event:MouseEvent):void
  {
  
   event.stopImmediatePropagation();

   this.verticalScrollPosition = orgVScrollPosition - (event.stageY - orgY);
   this.horizontalScrollPosition = orgHScrollPosition - (event.stageX - orgX);
  }
        
           
  private function systemManager_mouseUpHandler(event:MouseEvent):void
  {
   if (!isNaN(orgX))
    stopDragging();
  }
        
           
  private function stage_mouseLeaveHandler(event:Event):void
  {
   if (!isNaN(orgX))
       stopDragging();
  }
            
           
  protected function stopDragging():void
  {
   systemManager.removeEventListener(
       MouseEvent.MOUSE_MOVE, systemManager_mouseMoveHandler, true);

   systemManager.removeEventListener(
       MouseEvent.MOUSE_UP, systemManager_mouseUpHandler, true);

   systemManager.stage.removeEventListener(
       Event.MOUSE_LEAVE, stage_mouseLeaveHandler);

   orgX = NaN;
   orgY = NaN;
  }
        }
}
&lt;/pre&gt;&lt;br /&gt;
Now to use PanCanvas in your code you can use below MXML code.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Code:&lt;/b&gt;&lt;br /&gt;
&lt;pre&gt;&amp;lt;pancanvas:pancanvas height="100%" width="100%" y="40"&amp;gt;
 &amp;lt;mx:image source="@Embed(source='assets/4_HiredGun_1280.jpg')" /&amp;gt;
&amp;lt;/pancanvas:pancanvas&amp;gt;
&lt;/pre&gt;&lt;br /&gt;
If you need the source code please follow below link.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Source Code&lt;/b&gt;&lt;br /&gt;
&lt;a href="http://www.ankur-arora.com/samples/PanCanvas.zip"&gt;http://www.ankur-arora.com/samples/PanCanvas.zip&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Please rate this post if it is of your help. This will boost me to write more such posts.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31032085-4728945256708254889?l=blog.ankur-arora.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ankur-arora/~4/5LXE667PG9w" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://blog.ankur-arora.com/feeds/4728945256708254889/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://blog.ankur-arora.com/2010/03/drag-canvas-content-scrolling-canvas.html#comment-form" title="8 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/31032085/posts/default/4728945256708254889?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/31032085/posts/default/4728945256708254889?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/ankur-arora/~3/5LXE667PG9w/drag-canvas-content-scrolling-canvas.html" title="Drag canvas content / Scrolling Canvas / Pan Canvas in Flex" /><author><name>Ankur Arora</name><uri>http://www.blogger.com/profile/12081883307717336032</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="21" height="32" src="http://3.bp.blogspot.com/-tFYR8C8RHOM/TawNrJBIZYI/AAAAAAAAAIw/6Nzo9WHa1yY/s220/59206_427107738682_743028682_5181093_6894231_n.jpg" /></author><thr:total>8</thr:total><feedburner:origLink>http://blog.ankur-arora.com/2010/03/drag-canvas-content-scrolling-canvas.html</feedburner:origLink></entry><entry gd:etag="W/&quot;AkAAQHk_eyp7ImA9WxJVEks.&quot;"><id>tag:blogger.com,1999:blog-31032085.post-5802474725511891698</id><published>2009-06-29T14:31:00.001+05:30</published><updated>2009-06-29T15:15:41.743+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-06-29T15:15:41.743+05:30</app:edited><title>Flex Event Calendar</title><content type="html">A article on How to create Flex Event Calendar. Please check following link:-

http://www.thetechlabs.com/tutorials/interfaces/create-a-dynamic-event-calendar-in-flex-builder-3-with-actionscript-30&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31032085-5802474725511891698?l=blog.ankur-arora.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ankur-arora/~4/oadt8V6vd-g" height="1" width="1"/&gt;</content><link rel="related" href="http://www.thetechlabs.com/tutorials/interfaces/create-a-dynamic-event-calendar-in-flex-builder-3-with-actionscript-30" title="Flex Event Calendar" /><link rel="replies" type="application/atom+xml" href="http://blog.ankur-arora.com/feeds/5802474725511891698/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://blog.ankur-arora.com/2009/06/flex-event-calendar.html#comment-form" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/31032085/posts/default/5802474725511891698?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/31032085/posts/default/5802474725511891698?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/ankur-arora/~3/oadt8V6vd-g/flex-event-calendar.html" title="Flex Event Calendar" /><author><name>Ankur Arora</name><uri>http://www.blogger.com/profile/12081883307717336032</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="21" height="32" src="http://3.bp.blogspot.com/-tFYR8C8RHOM/TawNrJBIZYI/AAAAAAAAAIw/6Nzo9WHa1yY/s220/59206_427107738682_743028682_5181093_6894231_n.jpg" /></author><thr:total>1</thr:total><feedburner:origLink>http://blog.ankur-arora.com/2009/06/flex-event-calendar.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CkQBR347cCp7ImA9WxJSFk0.&quot;"><id>tag:blogger.com,1999:blog-31032085.post-1302607238465739810</id><published>2009-05-05T16:22:00.006+05:30</published><updated>2009-05-06T14:29:16.008+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-05-06T14:29:16.008+05:30</app:edited><title>Using CSS &amp; Font Embeing in Flash CS3</title><content type="html">I found many developers asking for implementing CSS and embed fonts in Flash but due to lack of good examples they just go into loop of forums and no results come up. &lt;div&gt;
&lt;/div&gt;&lt;div&gt;Anyways here is a small example written in Actionscript 3.0 which will load an external CS, font file and apply CSS on a text field in Flash. So, here you go:-&lt;/div&gt;&lt;div&gt;&lt;ol&gt;&lt;li&gt;Create a Class file and name it CSSFormattingExample.as.&lt;/li&gt;&lt;li&gt;Lets copy below code and paste it in "CSSFormattingExample.as".&lt;/li&gt;
&lt;div&gt;
&lt;/div&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;pre&gt;&lt;p&gt;package
{

     import flash.display.MovieClip;
     import flash.display.Sprite;
     import flash.events.Event;
     import flash.net.URLLoader;
     import flash.net.URLRequest;
     import flash.text.StyleSheet;
     import flash.text.TextField;
     import flash.text.TextFieldAutoSize;&lt;/p&gt;
&lt;p&gt;     public class CSSFormattingExample extends MovieClip
     {&lt;/p&gt;&lt;p&gt;          private var fontLoader:URLLoader;
          private var loader:URLLoader;
          private var field:TextField;
          private var exampleText:String = "&amp;lt;h1&amp;gt;This is a headline&amp;lt;/h1&amp;gt;" + "&amp;lt;p&amp;gt;This is a line of text.&amp;lt;/p&amp;gt; &amp;lt;span class=\"bluetext\"&amp;gt;" + "This line of text is colored blue.&amp;lt;/span&amp;gt;";

&lt;/p&gt;
&lt;p&gt;          public function CSSFormattingExample():void
          {&lt;/p&gt;&lt;p&gt;
               fontLoader = new URLLoader();
               fontLoader.addEventListener(Event.COMPLETE, onFontLoaded);
               fontLoader.load(new URLRequest("fonts.swf"));&lt;/p&gt;&lt;p&gt;          }&lt;/p&gt;&lt;p&gt;
&lt;/p&gt;&lt;p&gt;          public function onFontLoaded(event:Event):void
           {
&lt;/p&gt;&lt;p&gt;
               field = txtField;
               field.width = 300;
               field.autoSize = TextFieldAutoSize.LEFT;
               field.wordWrap = true;
               var req:URLRequest = new URLRequest("example.css");
               loader = new URLLoader();
               loader.addEventListener(Event.COMPLETE, onCSSFileLoaded); 
               loader.load(req);
&lt;/p&gt;&lt;p&gt;          }
&lt;/p&gt;
&lt;p&gt;          public function onCSSFileLoaded(event:Event):void
          {
               var sheet:StyleSheet = new StyleSheet();
               sheet.parseCSS(loader.data);
               field.styleSheet = sheet;
               field.htmlText = exampleText;
          }
     }
}&lt;/p&gt;
&lt;/pre&gt;
&lt;li&gt;Create a new CSS file including below code and lets save it as "example.css"&lt;/li&gt;

&lt;b&gt;CSS File: &lt;/b&gt;
&lt;pre&gt;
p {
     font-family: Arial Rounded MT Bold;
     font-size: 14; 
}  
h1 {
     font-family: Arial Rounded MT Bold;
     font-size: 30;
     font-weight: bold;
}  
.bluetext {
     color: #0000CC;  
font-size: 14; 
}
&lt;/pre&gt;
&lt;li&gt;Open a new FLA file and save it as "CSSFormattingExample.fla"&lt;/li&gt;&lt;li&gt;Create a new movieclip name it "CSSFormattingExample".&lt;/li&gt;&lt;li&gt;Select "Export for ActionScript" checkbox from movie clip properties panel.&lt;/li&gt;&lt;li&gt;In Class textbox write class name as "CSSFormattingExample".&lt;/li&gt;&lt;li&gt;Create a new text field in "CSSFormattingExample" movieclip and write instance name of text field as "txtField".&lt;/li&gt;&lt;li&gt;Now create another new FLA file and save it as "&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;fonts.fla"&lt;/span&gt;.&lt;/li&gt;&lt;li&gt;Create a new dynamic text field and select font as "Arial Rounded MT Bold".
&lt;/li&gt;&lt;li&gt;Click Embed button from Properties panel of text field and embed desired font outlines.
&lt;/li&gt;&lt;li&gt;Publish this file.
&lt;/li&gt;&lt;li&gt;Try publish your "CSSFormattingExample" FLA and you are done.&lt;/li&gt;&lt;/ol&gt;&lt;div&gt;To get a copy of the above example please &lt;a href="http://www.ankur-arora.com/samples/CSSFormattingExample.zip"&gt;click here&lt;/a&gt; for source files.&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31032085-1302607238465739810?l=blog.ankur-arora.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ankur-arora/~4/fb-nsFb6opU" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://blog.ankur-arora.com/feeds/1302607238465739810/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://blog.ankur-arora.com/2009/05/using-css-in-flash-cs3.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/31032085/posts/default/1302607238465739810?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/31032085/posts/default/1302607238465739810?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/ankur-arora/~3/fb-nsFb6opU/using-css-in-flash-cs3.html" title="Using CSS &amp; Font Embeing in Flash CS3" /><author><name>Ankur Arora</name><uri>http://www.blogger.com/profile/12081883307717336032</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="21" height="32" src="http://3.bp.blogspot.com/-tFYR8C8RHOM/TawNrJBIZYI/AAAAAAAAAIw/6Nzo9WHa1yY/s220/59206_427107738682_743028682_5181093_6894231_n.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://blog.ankur-arora.com/2009/05/using-css-in-flash-cs3.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CE8CRno5eSp7ImA9WxJRF0w.&quot;"><id>tag:blogger.com,1999:blog-31032085.post-3228262356826763504</id><published>2009-04-23T10:55:00.007+05:30</published><updated>2009-05-19T11:31:07.421+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-05-19T11:31:07.421+05:30</app:edited><title>Creating Image Gallery component in ActionScript 3.0</title><content type="html">I have wrttten a new tutorial where your will learn how to create a Image Gallry component in Flash CS3 using ActionScript 3.0 and thereafter we will link this component with FlickR API for loading multiple images.&lt;div&gt;
&lt;/div&gt;&lt;div&gt;Click below link to read the tutorial.
&lt;div&gt;
&lt;/div&gt;&lt;div&gt;&lt;a href="http://www.thetechlabs.com/xml/learn-how-to-create-flash-components-using-actionscript-30-xml-and-flickr-api/"&gt;http://www.thetechlabs.com/xml/learn-how-to-create-flash-components-using-actionscript-30-xml-and-flickr-api/&lt;/a&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31032085-3228262356826763504?l=blog.ankur-arora.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ankur-arora/~4/_YKr2zONLes" height="1" width="1"/&gt;</content><link rel="related" href="http://www.thetechlabs.com/xml/learn-how-to-create-flash-components-using-actionscript-30-xml-and-flickr-api/" title="Creating Image Gallery component in ActionScript 3.0" /><link rel="replies" type="application/atom+xml" href="http://blog.ankur-arora.com/feeds/3228262356826763504/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://blog.ankur-arora.com/2009/04/creating-image-gallry-component-in.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/31032085/posts/default/3228262356826763504?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/31032085/posts/default/3228262356826763504?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/ankur-arora/~3/_YKr2zONLes/creating-image-gallry-component-in.html" title="Creating Image Gallery component in ActionScript 3.0" /><author><name>Ankur Arora</name><uri>http://www.blogger.com/profile/12081883307717336032</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="21" height="32" src="http://3.bp.blogspot.com/-tFYR8C8RHOM/TawNrJBIZYI/AAAAAAAAAIw/6Nzo9WHa1yY/s220/59206_427107738682_743028682_5181093_6894231_n.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://blog.ankur-arora.com/2009/04/creating-image-gallry-component-in.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DE8HR3syfSp7ImA9WxVWFk8.&quot;"><id>tag:blogger.com,1999:blog-31032085.post-5722581324233789270</id><published>2009-02-26T10:35:00.004+05:30</published><updated>2009-02-26T11:10:36.595+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-02-26T11:10:36.595+05:30</app:edited><title>Create a duplicate of an Object in Flash using Object.copy()</title><content type="html">Yesterday I was encounter a problem of storing a Object in another Object and making changes to that Object in ActionScript 1.0. Now what Flash do, it will create the reference of that Object and will not create a copy of that Object so if you make any changes to any of the property of first object it will also update second object automatically. Now to overcome this problem I have created a small piece of code to make the copy of Object rather than storing the reference of the Object. I hope it will help you too:-

&lt;span style="font-weight:bold;"&gt;Code:&lt;/span&gt;
Object.prototype.copy = function ()
{
var prop, obj = new this.__proto__.constructor ();
for (prop in this)
{
if (typeof this[prop] == "object")
{
 obj[prop] = this[prop].copy ();
}
else
{
 obj[prop] = this[prop];
}
}
return obj;
};

&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;Usage:&lt;/span&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;var myObj1:Object = new Object();&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;myObj1.prop1 = "myValue";&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;
&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;var myObj2:Object = myObj1.copy();&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;myObj2.prop1 = "myValue2";&lt;/div&gt;&lt;div&gt;
&lt;/div&gt;&lt;div&gt;trace(myObj1.prop1);&lt;/div&gt;&lt;div&gt;trace(myObj2.prop1);
&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;
&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31032085-5722581324233789270?l=blog.ankur-arora.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ankur-arora/~4/riT08-6iqtI" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://blog.ankur-arora.com/feeds/5722581324233789270/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://blog.ankur-arora.com/2009/02/create-duplicate-of-object-in-flash.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/31032085/posts/default/5722581324233789270?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/31032085/posts/default/5722581324233789270?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/ankur-arora/~3/riT08-6iqtI/create-duplicate-of-object-in-flash.html" title="Create a duplicate of an Object in Flash using Object.copy()" /><author><name>Ankur Arora</name><uri>http://www.blogger.com/profile/12081883307717336032</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="21" height="32" src="http://3.bp.blogspot.com/-tFYR8C8RHOM/TawNrJBIZYI/AAAAAAAAAIw/6Nzo9WHa1yY/s220/59206_427107738682_743028682_5181093_6894231_n.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://blog.ankur-arora.com/2009/02/create-duplicate-of-object-in-flash.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D0QAR3c4eyp7ImA9WxVQGE4.&quot;"><id>tag:blogger.com,1999:blog-31032085.post-1363899578658307768</id><published>2009-02-05T17:24:00.004+05:30</published><updated>2009-02-05T17:32:26.933+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-02-05T17:32:26.933+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="AIR" /><category scheme="http://www.blogger.com/atom/ns#" term="SQLite" /><category scheme="http://www.blogger.com/atom/ns#" term="Flex Database" /><category scheme="http://www.blogger.com/atom/ns#" term="Connect Flex" /><category scheme="http://www.blogger.com/atom/ns#" term="Flex" /><title>Flex, AIR and SQLite</title><content type="html">Dear all,&lt;div&gt;Yesterday I was reading about connecting Flex with SQLite so we do not need to have any third party tool/application to connect some database. It seems me really useful to have a SQLdatabase and we could directly call it from Flex. No third party plug-ins required for this. I have managed to develop a small code which will create database, table and allow to perform normal login authentication in Flex, you can download source files from &lt;a href="http://www.ankur-arora.com/samples/SQLiteExample.zip"&gt;here&lt;/a&gt;. All you need to run is only &lt;span class="Apple-style-span" style="font-weight: bold;"&gt;Flex&lt;/span&gt;.&lt;/div&gt;&lt;div&gt;
&lt;/div&gt;&lt;div&gt;I hope it will help you too.&lt;/div&gt;&lt;div&gt;
&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31032085-1363899578658307768?l=blog.ankur-arora.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ankur-arora/~4/b4WkqPp6sGo" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://blog.ankur-arora.com/feeds/1363899578658307768/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://blog.ankur-arora.com/2009/02/flex-air-and-sqlite.html#comment-form" title="15 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/31032085/posts/default/1363899578658307768?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/31032085/posts/default/1363899578658307768?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/ankur-arora/~3/b4WkqPp6sGo/flex-air-and-sqlite.html" title="Flex, AIR and SQLite" /><author><name>Ankur Arora</name><uri>http://www.blogger.com/profile/12081883307717336032</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="21" height="32" src="http://3.bp.blogspot.com/-tFYR8C8RHOM/TawNrJBIZYI/AAAAAAAAAIw/6Nzo9WHa1yY/s220/59206_427107738682_743028682_5181093_6894231_n.jpg" /></author><thr:total>15</thr:total><feedburner:origLink>http://blog.ankur-arora.com/2009/02/flex-air-and-sqlite.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CUQFQnk_cSp7ImA9WxRbFEo.&quot;"><id>tag:blogger.com,1999:blog-31032085.post-6889512366972957305</id><published>2008-12-05T15:38:00.001+05:30</published><updated>2008-12-05T16:05:13.749+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-12-05T16:05:13.749+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="converter" /><category scheme="http://www.blogger.com/atom/ns#" term="AS 2.0" /><category scheme="http://www.blogger.com/atom/ns#" term="XML2Converter" /><category scheme="http://www.blogger.com/atom/ns#" term="ActionScript 2" /><category scheme="http://www.blogger.com/atom/ns#" term="XML" /><category scheme="http://www.blogger.com/atom/ns#" term="Flash" /><category scheme="http://www.blogger.com/atom/ns#" term="AS2" /><category scheme="http://www.blogger.com/atom/ns#" term="2" /><title>XML 2 Object converter in AS 2.0</title><content type="html">&lt;p&gt;Hey mates,
Here is a small class for converting a XML to Object. It will help you track XML data in a very simple way using dot(.) notation with each node's name. I'm elaborating it below with a sample XML:-

&lt;i&gt;&lt;b&gt; XML File&lt;/b&gt;&lt;/i&gt;


    &amp;lt;root&amp;gt;

        &amp;lt;node1&amp;gt;Node 1 Text goes here&amp;lt;/node1&amp;gt;

        &amp;lt;node2 id="2"&amp;gt;Node 2 data&amp;lt;/node2&amp;gt;

        &amp;lt;node3&amp;gt;

            &amp;lt;sub_node3&amp;gt;Sub Node 3&amp;lt;/sub_node3&amp;gt;

        &amp;lt;/node3&amp;gt;

    &amp;lt;/root&amp;gt;


&lt;i&gt;&lt;b&gt;Flash Code&lt;/b&gt;&lt;/i&gt;

var objDataXML:XML = new XML ();

objDataXML.ignoreWhite = true;

objDataXML.onLoad = onXMLLoad;

objDataXML.load ("myXML.xml");



function onXMLLoad(success)

{

    if (success)

    {

        var m_objXMLData = new Object ();

        XML2Object.parseXML (m_objXMLData, objDataXML.firstChild);

        trace(m_objXMLData.node1.value);

        trace(m_objXMLData.node2.attributes.id);

        trace(m_objXMLData.node3.sub_node3.value);

    }

}

Download the class file(XML2Object.AS) by &lt;a href="http://www.ankur-arora.com/samples/XML2Object.as"&gt;clicking here&lt;/a&gt;.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31032085-6889512366972957305?l=blog.ankur-arora.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ankur-arora/~4/pZWhEXf3e30" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://blog.ankur-arora.com/feeds/6889512366972957305/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://blog.ankur-arora.com/2008/12/xml-2-object-converter-in-as-20.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/31032085/posts/default/6889512366972957305?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/31032085/posts/default/6889512366972957305?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/ankur-arora/~3/pZWhEXf3e30/xml-2-object-converter-in-as-20.html" title="XML 2 Object converter in AS 2.0" /><author><name>Ankur Arora</name><uri>http://www.blogger.com/profile/12081883307717336032</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="21" height="32" src="http://3.bp.blogspot.com/-tFYR8C8RHOM/TawNrJBIZYI/AAAAAAAAAIw/6Nzo9WHa1yY/s220/59206_427107738682_743028682_5181093_6894231_n.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://blog.ankur-arora.com/2008/12/xml-2-object-converter-in-as-20.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DUIBR3ozeyp7ImA9WxVUEUQ.&quot;"><id>tag:blogger.com,1999:blog-31032085.post-1029148371805632725</id><published>2008-12-04T09:01:00.004+05:30</published><updated>2009-03-16T15:29:16.483+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-03-16T15:29:16.483+05:30</app:edited><title>Data comunication between AS3 and Server Side Script(PHP)</title><content type="html">&lt;p&gt;function  onSubmit(evt:MouseEvent)&lt;br /&gt;
  {&lt;br /&gt;
  &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var myData:URLRequest = new  URLRequest(&amp;quot;suggestion.php&amp;quot;)&lt;br /&gt;
  &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; myData.method =  URLRequestMethod.POST&lt;br /&gt;
  &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var variables:URLVariables = new  URLVariables()&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;
  &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; variables.name =  &amp;quot;Dinesh Kumar Sinha&amp;quot;;&lt;br /&gt;
  &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; variables.email =  &amp;quot;abc@gmail.com&amp;quot;;&lt;br /&gt;
  &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; variables.subject =  &amp;quot;test mail&amp;quot;;&lt;br /&gt;
  &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; variables.suggestion =  &amp;quot;it is just test mail&amp;quot;;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;
  &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; myData.data = variables&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
  &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var loader:URLLoader = new  URLLoader()&lt;br /&gt;
  &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; loader.dataFormat =  URLLoaderDataFormat.VARIABLES&lt;br /&gt;
  &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; loader.addEventListener(Event.COMPLETE,  dataOnLoad)&lt;br /&gt;
  &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; loader.load(myData)&lt;br /&gt;
  &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
  }&lt;/p&gt;
&lt;p&gt;function  dataOnLoad(evt:Event)&lt;br /&gt;
  {&lt;br /&gt;
  &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; txt_message.text =  evt.target.data.message;&lt;/p&gt;
&lt;p&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(evt.target.data.status ==  &amp;quot;mail_sent&amp;quot;)&lt;br /&gt;
  &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
  &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; trace(&amp;quot;Mail  Sent&amp;quot;)&lt;br /&gt;
  &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
  &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else&lt;br /&gt;
  &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
  &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; trace(&amp;quot;Error  while sending&amp;quot;)&lt;br /&gt;
  &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
  }&lt;br /&gt;
  search_btn.addEventListener(MouseEvent.CLICK  , onSubmit);&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Note: You must not forget to return value from server side script(PHP, JSP etc.) &lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Example(PHP) : echo &amp;quot;status=mail_sent&amp;amp;message=Mail has been sent successfully&amp;quot;; &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31032085-1029148371805632725?l=blog.ankur-arora.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ankur-arora/~4/DakyDfSa6Bw" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://blog.ankur-arora.com/feeds/1029148371805632725/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://blog.ankur-arora.com/2008/12/data-comunication-between-as3-and.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/31032085/posts/default/1029148371805632725?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/31032085/posts/default/1029148371805632725?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/ankur-arora/~3/DakyDfSa6Bw/data-comunication-between-as3-and.html" title="Data comunication between AS3 and Server Side Script(PHP)" /><author><name>Dinesh Sinha</name><uri>http://www.blogger.com/profile/16492060822252239978</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://blog.ankur-arora.com/2008/12/data-comunication-between-as3-and.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CEUCSHgzeSp7ImA9WxRUFk0.&quot;"><id>tag:blogger.com,1999:blog-31032085.post-2509368165858494976</id><published>2008-11-25T12:14:00.001+05:30</published><updated>2008-11-25T14:07:49.681+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-11-25T14:07:49.681+05:30</app:edited><title>Loading multiple files in Flash using ActionScript 3(AS3)</title><content type="html">I seems people asked so many times to how to load multiple files in ActionScript 3 or in other words create a preloader for multiple files in ActionScript 3. So guys below is the small piece of code which would help you in that. It just takes an array of files which all needs to be loaded and checks on enter frame for complete loading.&lt;div&gt;
&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;Code:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;var arr:Array = new  Array("1.swf", "2.swf");
&lt;/div&gt;&lt;p&gt;var arrLoaders:Array  = new Array();

var mcMain:MovieClip&lt;/p&gt;
&lt;p&gt;function  preloaderFiles():void

{

    mcMain = new MovieClip();

    for(var i=0;i&amp;lt;arr.length;i++)

    {

        arrLoaders[i] = new Loader();

        arrLoaders[i].load(new  URLRequest(arr[i]));

        arrLoaders[i].visible = false;

        this.addChild(arrLoaders[i]);

    }

   

   

    mcMain.addEventListener(Event.ENTER_FRAME,  onEnteringFrame);

}&lt;/p&gt;
&lt;p&gt;function  onEnteringFrame(event:Event):void

{

    var intTotal = 0;

    var intLoaded = 0;

    for(var i=0;i&amp;lt;arr.length;i++)

    {

        var ldr:Loader = arrLoaders[i];

        intTotal +=  ldr.contentLoaderInfo.bytesTotal;

        intLoaded +=  ldr.contentLoaderInfo.bytesLoaded;

       

        trace(arr[i] + " : " +  ldr.contentLoaderInfo.bytesLoaded + " : " +  ldr.contentLoaderInfo.bytesTotal)

       

    }

    trace(intLoaded != 0 &amp;amp;&amp;amp; intTotal ==  intLoaded)

    if(intLoaded != 0 &amp;amp;&amp;amp; intTotal ==  intLoaded)

    {

        mcMain.removeEventListener(Event.ENTER_FRAME,  onEnteringFrame);

       

        for(var i=0;i&amp;lt;arr.length;i++)

        {

            var ldr:Loader = arrLoaders[i];

            ldr.visible = true;

        }

    }

}&lt;/p&gt;
preloaderFiles();&lt;div&gt;
&lt;/div&gt;&lt;div&gt;
&lt;/div&gt;&lt;div&gt;I'm also attaching the source code with 2 example files. Just &lt;a href="http://www.ankur-arora.com/samples/preloader_as3.zip"&gt;click here&lt;/a&gt; to download the code in ZIP format.

&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31032085-2509368165858494976?l=blog.ankur-arora.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ankur-arora/~4/eLPFeLWiKok" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://blog.ankur-arora.com/feeds/2509368165858494976/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://blog.ankur-arora.com/2008/11/loading-multiple-files-in-actionscript.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/31032085/posts/default/2509368165858494976?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/31032085/posts/default/2509368165858494976?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/ankur-arora/~3/eLPFeLWiKok/loading-multiple-files-in-actionscript.html" title="Loading multiple files in Flash using ActionScript 3(AS3)" /><author><name>Ankur Arora</name><uri>http://www.blogger.com/profile/12081883307717336032</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="21" height="32" src="http://3.bp.blogspot.com/-tFYR8C8RHOM/TawNrJBIZYI/AAAAAAAAAIw/6Nzo9WHa1yY/s220/59206_427107738682_743028682_5181093_6894231_n.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://blog.ankur-arora.com/2008/11/loading-multiple-files-in-actionscript.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DE8BQHk7fyp7ImA9WxRUEkk.&quot;"><id>tag:blogger.com,1999:blog-31032085.post-8408821970237757054</id><published>2008-11-21T10:49:00.003+05:30</published><updated>2008-11-21T11:24:11.707+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-11-21T11:24:11.707+05:30</app:edited><title>How to comunicate between Flex and Flash</title><content type="html">Create a 'FlashFile.fla' in src folder of flex project with 'btnSendDataToFlex' button, 'txtOutput' textfield and following code on frame :
var nCounter:int = 1;
function onSendData(evt:Event):void {
objFlex.setData("Data from Flash...." + nCounter);
nCounter++;
}
function setData(strValue:String):void {
txtOutput.text = strValue;
}
function initialize () {
if(this.parent.parent != null) {
objFlex = this.parent.parent.parent;
} else {
objFlex = this;
}
}
btnSendDataToFlex.addEventListener(MouseEvent.CLICK, onSendData);
var objFlex:*;
initialize ();

Following is Flex' code :

&lt;p&gt;&amp;lt;?xml version="1.0" encoding="utf-8"?&amp;gt;

&amp;lt;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" width="1106" height="410"&amp;gt;

&amp;lt;mx:Script&amp;gt;

&amp;lt;![CDATA[

private var nCounter:int = 1;

public function setData(strValue):void{

txtOutput.text = strValue;

}

private function sendDataToFlash():void {

var objFlash:* = flashComponent.content;

nCounter++;

objFlash.setData("Data From flex........" + nCounter);

}



]]&amp;gt;

&amp;lt;/mx:Script&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;mx:SWFLoader source="FlashFile.swf" id="flashComponent"/&amp;gt;

&amp;lt;mx:Canvas x="558" y="1" width="540" height="400" borderColor="#4C9D5F" backgroundColor="#348948"&amp;gt;

&amp;lt;mx:Button x="37" y="22" label="Send to Flash" id="btnSendToFlash" click="sendDataToFlash()"/&amp;gt;

&amp;lt;mx:Text x="151" y="24" text="Text" width="313" id="txtOutput"/&amp;gt;

&amp;lt;/mx:Canvas&amp;gt;

&amp;lt;/mx:Application&amp;gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31032085-8408821970237757054?l=blog.ankur-arora.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ankur-arora/~4/qRAZrvVIox4" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://blog.ankur-arora.com/feeds/8408821970237757054/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://blog.ankur-arora.com/2008/11/how-to-comunicate-between-flex-and.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/31032085/posts/default/8408821970237757054?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/31032085/posts/default/8408821970237757054?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/ankur-arora/~3/qRAZrvVIox4/how-to-comunicate-between-flex-and.html" title="How to comunicate between Flex and Flash" /><author><name>Dinesh Sinha</name><uri>http://www.blogger.com/profile/16492060822252239978</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://blog.ankur-arora.com/2008/11/how-to-comunicate-between-flex-and.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DkMERXg5eyp7ImA9WxRUEUU.&quot;"><id>tag:blogger.com,1999:blog-31032085.post-1448587322707090288</id><published>2008-11-19T17:28:00.001+05:30</published><updated>2008-11-20T18:03:24.623+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-11-20T18:03:24.623+05:30</app:edited><title>How to upgrade flex builder 3 to publish for flash player 10.</title><content type="html">You can upgrade flex builder 3 with SDK 3.2.0.3794 to publish swf for flash player 10. &lt;div&gt;
&lt;/div&gt;&lt;div&gt;Download following files &lt;/div&gt;&lt;div&gt;&lt;a href="http://opensource.adobe.com/wiki/display/flexsdk/download?build=3.2.0.3794&amp;amp;pkgtype=1"&gt;flex_sdk_3.2.0.3794&lt;/a&gt;
&lt;/div&gt;

&lt;div&gt;&lt;span class="Apple-style-span" style="COLOR: rgb(0,0,238); TEXT-DECORATION: underline"&gt;&lt;a href="http://www.adobe.com/support/flex/downloads_updaters.html?#flex3"&gt;FB3_Updater.exe&lt;/a&gt;&lt;/span&gt;
&lt;/div&gt;

Click &lt;a href="http://www.communitymx.com/content/article.cfm?page=1&amp;amp;cid=105CF"&gt;here&lt;/a&gt; to see a tutorial for getting help on 'How to upgrade Flex SDK'
After configuring install 'FB3 Upadater.exe'&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31032085-1448587322707090288?l=blog.ankur-arora.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ankur-arora/~4/6IZQTo0cKaE" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://blog.ankur-arora.com/feeds/1448587322707090288/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://blog.ankur-arora.com/2008/11/how-to-upgrade-flex-builder-3-to.html#comment-form" title="2 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/31032085/posts/default/1448587322707090288?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/31032085/posts/default/1448587322707090288?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/ankur-arora/~3/6IZQTo0cKaE/how-to-upgrade-flex-builder-3-to.html" title="How to upgrade flex builder 3 to publish for flash player 10." /><author><name>Dinesh Sinha</name><uri>http://www.blogger.com/profile/16492060822252239978</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>2</thr:total><feedburner:origLink>http://blog.ankur-arora.com/2008/11/how-to-upgrade-flex-builder-3-to.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DkMEQ384eCp7ImA9WxRUEEQ.&quot;"><id>tag:blogger.com,1999:blog-31032085.post-7784998422065348618</id><published>2008-11-19T16:47:00.001+05:30</published><updated>2008-11-19T17:03:22.130+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-11-19T17:03:22.130+05:30</app:edited><title>Remove Align Buttons from RichTextEditor control in Flex</title><content type="html">Here is a small code for removing align button from the &lt;span class="Apple-style-span" style="font-weight: bold;"&gt;RichTextEditor&lt;/span&gt; component in Flex.

&amp;lt;?xml version="1.0"?&amp;gt;

    &amp;lt;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"&amp;gt;

        &amp;lt;mx:Script&amp;gt;&amp;lt;![CDATA[

            public function removeAlignButtons():void {

                rt1.toolbar.removeChild(rt1.alignButtons);

            }    

        ]]&amp;gt;&amp;lt;/mx:Script&amp;gt;



        &amp;lt;mx:HBox&amp;gt;

            &amp;lt;mx:RichTextEditor id="rt1"

            title="RichTextEditor With No Align Buttons"

            creationComplete="removeAlignButtons()"

            /&amp;gt;

        &amp;lt;/mx:HBox&amp;gt;

    &amp;lt;/mx:Application&amp;gt;


Other than this you can also use following control names to remove them:-&lt;ul&gt;&lt;li&gt;rt1.colorPicker // for Color Picker
&lt;/li&gt;&lt;li&gt;rt1.fontFamilyCombo // for font's names list&lt;/li&gt;&lt;li&gt;rt1.fontSizeCombo // for font's size list&lt;/li&gt;&lt;li&gt;rt1.bulletButton // for bullets button&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31032085-7784998422065348618?l=blog.ankur-arora.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ankur-arora/~4/5pFHFGW5rwM" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://blog.ankur-arora.com/feeds/7784998422065348618/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://blog.ankur-arora.com/2008/11/remove-align-buttons-from.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/31032085/posts/default/7784998422065348618?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/31032085/posts/default/7784998422065348618?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/ankur-arora/~3/5pFHFGW5rwM/remove-align-buttons-from.html" title="Remove Align Buttons from RichTextEditor control in Flex" /><author><name>Ankur Arora</name><uri>http://www.blogger.com/profile/12081883307717336032</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="21" height="32" src="http://3.bp.blogspot.com/-tFYR8C8RHOM/TawNrJBIZYI/AAAAAAAAAIw/6Nzo9WHa1yY/s220/59206_427107738682_743028682_5181093_6894231_n.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://blog.ankur-arora.com/2008/11/remove-align-buttons-from.html</feedburner:origLink></entry></feed>

