<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-4287297967347716069</id><updated>2024-09-27T17:04:30.535-07:00</updated><category term="Flash"/><category term="Flash 104: Errors"/><category term="Flash 101: Beginner"/><category term="Flash 103: Advanced"/><category term="Flash Image"/><category term="Eclipse"/><category term="Flash 102: Intermediate"/><category term="AsDoc"/><category term="Flex Builder"/><category term="Fact or Fiction"/><category term="Food"/><category term="Random"/><title type='text'>Flash. Actionscript.</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://thong-vu.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4287297967347716069/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://thong-vu.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Thong Vu</name><uri>http://www.blogger.com/profile/11033885791853204054</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='10' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2wu8ktGUybX3D7QRdVLqO-eOh-BzF4tRu-OgxdV5kar4lgRItrBmXkuSxmX9-8ULsC4hBs1vARgIA6NH3bIKZhS1DXBI5N7SOMbPlgYbjaMchzxU6TeviqHNfcQSiEQ/s220/SapaPanorama.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>22</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4287297967347716069.post-237287598765278415</id><published>2011-05-18T21:48:00.000-07:00</published><updated>2011-05-19T23:41:31.406-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Flash"/><category scheme="http://www.blogger.com/atom/ns#" term="Flash 101: Beginner"/><title type='text'>How to create a clickable button in Flash Actionscript:</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://thong-vu.blogspot.com/2011/05/how-to-create-button-in-flash.html&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhdLbZka3fV7zJAtDwra9Yub_x4Z0Md3J3XnXmpydI5HlMv3A3Y7O69zSEr4xaJhWNPTcakGmpPTPaJN2T-4eM4KZZb2WcPOtb1g6r9-sxU_wB12NarsQMoEhg0aHot3anuBgyXEupmkYY/s1600/flash_builder_logo.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here is an example on how to create a clickable button with listener events in Flash Actionscript:&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #666666;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #666666;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #666666; font-family: &#39;Courier New&#39;,Courier,monospace;&quot;&gt;/**&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #666666; font-family: &#39;Courier New&#39;,Courier,monospace;&quot;&gt;&amp;nbsp;* How to create a button&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #666666; font-family: &#39;Courier New&#39;,Courier,monospace;&quot;&gt;&amp;nbsp;*/&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #666666; font-family: &#39;Courier New&#39;,Courier,monospace;&quot;&gt;import flash.display.Sprite;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #666666; font-family: &#39;Courier New&#39;,Courier,monospace;&quot;&gt;import flash.text.TextField;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #666666; font-family: &#39;Courier New&#39;,Courier,monospace;&quot;&gt;import flash.text.TextFormat;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #666666; font-family: &#39;Courier New&#39;,Courier,monospace;&quot;&gt;import flash.events.Event;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #666666; font-family: &#39;Courier New&#39;,Courier,monospace;&quot;&gt;import flash.events.MouseEvent;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #666666; font-family: &#39;Courier New&#39;,Courier,monospace;&quot;&gt;import flash.net.URLRequest;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #666666; font-family: &#39;Courier New&#39;,Courier,monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #666666; font-family: &#39;Courier New&#39;,Courier,monospace;&quot;&gt;var button:Sprite;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #666666; font-family: &#39;Courier New&#39;,Courier,monospace;&quot;&gt;var clickUrl:String = &quot;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #666666; font-family: &#39;Courier New&#39;,Courier,monospace;&quot;&gt;http://thong-vu.blogspot.com&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #666666; font-family: &#39;Courier New&#39;,Courier,monospace;&quot;&gt;&quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #666666; font-family: &#39;Courier New&#39;,Courier,monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #666666; font-family: &#39;Courier New&#39;,Courier,monospace;&quot;&gt;if( stage == null ) {&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #666666; font-family: &#39;Courier New&#39;,Courier,monospace;&quot;&gt;&amp;nbsp; this.addEventListener( Event.ADDED_TO_STAGE, handleStageReady);&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #666666; font-family: &#39;Courier New&#39;,Courier,monospace;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #666666; font-family: &#39;Courier New&#39;,Courier,monospace;&quot;&gt;else {&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #666666; font-family: &#39;Courier New&#39;,Courier,monospace;&quot;&gt;&amp;nbsp; handleStageReady();&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #666666; font-family: &#39;Courier New&#39;,Courier,monospace;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #666666; font-family: &#39;Courier New&#39;,Courier,monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #666666; font-family: &#39;Courier New&#39;,Courier,monospace;&quot;&gt;function handleStageReady(e:Event=null):void {&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #666666; font-family: &#39;Courier New&#39;,Courier,monospace;&quot;&gt;// text message&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #666666; font-family: &#39;Courier New&#39;,Courier,monospace;&quot;&gt;&amp;nbsp; var textField:TextField = new TextField();&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #666666; font-family: &#39;Courier New&#39;,Courier,monospace;&quot;&gt;&amp;nbsp; textField.text &lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = &quot;Click Me!!!&quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #666666; font-family: &#39;Courier New&#39;,Courier,monospace;&quot;&gt;&amp;nbsp; textField.selectable &lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;nbsp;&amp;nbsp;= false;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #666666; font-family: &#39;Courier New&#39;,Courier,monospace;&quot;&gt;&amp;nbsp; textField.mouseEnabled &amp;nbsp;= false;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #666666; font-family: &#39;Courier New&#39;,Courier,monospace;&quot;&gt;&amp;nbsp; textField.multiline &lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;nbsp;&amp;nbsp; = false;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #666666; font-family: &#39;Courier New&#39;,Courier,monospace;&quot;&gt;&amp;nbsp; textField.wordWrap &lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; = false;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #666666; font-family: &#39;Courier New&#39;,Courier,monospace;&quot;&gt;&amp;nbsp; textField.width &lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = textField.textWidth + 5;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #666666; font-family: &#39;Courier New&#39;,Courier,monospace;&quot;&gt;&amp;nbsp; textField.height &lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = textField.textHeight + 5;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #666666; font-family: &#39;Courier New&#39;,Courier,monospace;&quot;&gt;&amp;nbsp; textField.antiAliasType = AntiAliasType.NORMAL;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #666666; font-family: &#39;Courier New&#39;,Courier,monospace;&quot;&gt;// click button&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #666666; font-family: &#39;Courier New&#39;,Courier,monospace;&quot;&gt;&amp;nbsp; button = new Sprite();&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #666666; font-family: &#39;Courier New&#39;,Courier,monospace;&quot;&gt;&amp;nbsp; button.addChild(textField);&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #666666; font-family: &#39;Courier New&#39;,Courier,monospace;&quot;&gt;&amp;nbsp; button.width&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;= textField.width;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #666666; font-family: &#39;Courier New&#39;,Courier,monospace;&quot;&gt;&amp;nbsp; button.height&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;= textField.height;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #666666; font-family: &#39;Courier New&#39;,Courier,monospace;&quot;&gt;&amp;nbsp; button.buttonMode&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;= true;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #666666; font-family: &#39;Courier New&#39;,Courier,monospace;&quot;&gt;&amp;nbsp; button.mouseChildren &lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;= false;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #666666; font-family: &#39;Courier New&#39;,Courier,monospace;&quot;&gt;&amp;nbsp; button.mouseEnabled&amp;nbsp; &lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;= true;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #666666; font-family: &#39;Courier New&#39;,Courier,monospace;&quot;&gt;&amp;nbsp; button.addEventListener(MouseEvent.MOUSE_OUT, handleButtonEvents);&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #666666; font-family: &#39;Courier New&#39;,Courier,monospace;&quot;&gt;&amp;nbsp; button.addEventListener(MouseEvent.MOUSE_OVER, handleButtonEvents);&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #666666; font-family: &#39;Courier New&#39;,Courier,monospace;&quot;&gt;&amp;nbsp; button.addEventListener(MouseEvent.CLICK, handleButtonEvents);&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #666666; font-family: &#39;Courier New&#39;,Courier,monospace;&quot;&gt;&amp;nbsp; addChild(button);&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #666666; font-family: &#39;Courier New&#39;,Courier,monospace;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #666666; font-family: &#39;Courier New&#39;,Courier,monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #666666; font-family: &#39;Courier New&#39;,Courier,monospace;&quot;&gt;function handleButtonEvents(me:MouseEvent):void {&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #666666; font-family: &#39;Courier New&#39;,Courier,monospace;&quot;&gt;&amp;nbsp; switch(me.type) {&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #666666; font-family: &#39;Courier New&#39;,Courier,monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; case MouseEvent.MOUSE_OVER:&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #666666; font-family: &#39;Courier New&#39;,Courier,monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; button.alpha = 0.5;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #666666; font-family: &#39;Courier New&#39;,Courier,monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; break;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;,Courier,monospace;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #666666;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;white-space: pre;&quot;&gt;&amp;nbsp;   &lt;/span&gt;case MouseEvent.MOUSE_OUT:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #666666; font-family: &#39;Courier New&#39;,Courier,monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; button.alpha = 1;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #666666;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;,Courier,monospace;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;,Courier,monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; break;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;,Courier,monospace;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #666666;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;white-space: pre;&quot;&gt;&amp;nbsp;   &lt;/span&gt;case MouseEvent.DOUBLE_CLICK:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #666666; font-family: &#39;Courier New&#39;,Courier,monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; default:&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #666666; font-family: &#39;Courier New&#39;,Courier,monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; // navigate to url&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #666666; font-family: &#39;Courier New&#39;,Courier,monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; navigateToURL( new URLRequest(&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #666666; font-family: &#39;Courier New&#39;,Courier,monospace;&quot;&gt;clickUrl&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #666666; font-family: &#39;Courier New&#39;,Courier,monospace;&quot;&gt;), &quot;_blank&quot; );&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #666666; font-family: &#39;Courier New&#39;,Courier,monospace;&quot;&gt;&amp;nbsp; }&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #666666; font-family: &#39;Courier New&#39;,Courier,monospace;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://thong-vu.blogspot.com/feeds/237287598765278415/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://thong-vu.blogspot.com/2011/05/how-to-create-button-in-flash.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4287297967347716069/posts/default/237287598765278415'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4287297967347716069/posts/default/237287598765278415'/><link rel='alternate' type='text/html' href='http://thong-vu.blogspot.com/2011/05/how-to-create-button-in-flash.html' title='How to create a clickable button in Flash Actionscript:'/><author><name>Thong Vu</name><uri>http://www.blogger.com/profile/11033885791853204054</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='10' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2wu8ktGUybX3D7QRdVLqO-eOh-BzF4tRu-OgxdV5kar4lgRItrBmXkuSxmX9-8ULsC4hBs1vARgIA6NH3bIKZhS1DXBI5N7SOMbPlgYbjaMchzxU6TeviqHNfcQSiEQ/s220/SapaPanorama.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhdLbZka3fV7zJAtDwra9Yub_x4Z0Md3J3XnXmpydI5HlMv3A3Y7O69zSEr4xaJhWNPTcakGmpPTPaJN2T-4eM4KZZb2WcPOtb1g6r9-sxU_wB12NarsQMoEhg0aHot3anuBgyXEupmkYY/s72-c/flash_builder_logo.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4287297967347716069.post-2775899043228256385</id><published>2011-05-12T22:31:00.000-07:00</published><updated>2011-05-17T06:16:08.407-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Eclipse"/><category scheme="http://www.blogger.com/atom/ns#" term="Flash 101: Beginner"/><category scheme="http://www.blogger.com/atom/ns#" term="Flex Builder"/><title type='text'>Error &quot;Invalid project description.&quot;</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://thong-vu.blogspot.com/2011/05/error-invalid-project-description.html&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;107&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi4QyO-3mwm6mj_4V_siUezQHWhJRMCwRLBIfuX5m8LXHY2yCLs4f-gNxyep5v8Gy6Cy7PlAiQTDpvUGQamUhsxuewBAlxtMDiCdmPMHLqhbLiFOucGHvQ82JMdfN6QylpCb1VqHnqvmYM/s320/invalid_project_description.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;a href=&quot;http://thong-vu.blogspot.com/2011/05/error-invalid-project-description.html&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;/a&gt;If you guys ever run Eclipse or Flex Builder and got the &quot;&lt;span style=&quot;color: #666666;&quot;&gt;Invalid project description&lt;/span&gt;&quot; message, it usually means you guys are trying to import an existing project into a workspace; moreover, you are trying to import an existing project into the &lt;b&gt;SAME &lt;/b&gt;directory path as the workspace.&lt;br /&gt;
&lt;br /&gt;
So if you are in workspace with this path:
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;C:\Projects\Project A\&lt;/span&gt;&lt;br /&gt;
and you tried to load an existing project that is located in this directory:&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;C:\Projects\Project A\&lt;/span&gt;.&lt;br /&gt;
This will not work!!!&amp;nbsp;

&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;b&gt;Solution:&lt;/b&gt;&lt;br /&gt;
1. Open a workspace at &lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;C:\Projects\&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
2. Import the existing project from &lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;C:\Projects\Project A\&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://thong-vu.blogspot.com/feeds/2775899043228256385/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://thong-vu.blogspot.com/2011/05/error-invalid-project-description.html#comment-form' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4287297967347716069/posts/default/2775899043228256385'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4287297967347716069/posts/default/2775899043228256385'/><link rel='alternate' type='text/html' href='http://thong-vu.blogspot.com/2011/05/error-invalid-project-description.html' title='Error &quot;Invalid project description.&quot;'/><author><name>Thong Vu</name><uri>http://www.blogger.com/profile/11033885791853204054</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='10' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2wu8ktGUybX3D7QRdVLqO-eOh-BzF4tRu-OgxdV5kar4lgRItrBmXkuSxmX9-8ULsC4hBs1vARgIA6NH3bIKZhS1DXBI5N7SOMbPlgYbjaMchzxU6TeviqHNfcQSiEQ/s220/SapaPanorama.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi4QyO-3mwm6mj_4V_siUezQHWhJRMCwRLBIfuX5m8LXHY2yCLs4f-gNxyep5v8Gy6Cy7PlAiQTDpvUGQamUhsxuewBAlxtMDiCdmPMHLqhbLiFOucGHvQ82JMdfN6QylpCb1VqHnqvmYM/s72-c/invalid_project_description.png" height="72" width="72"/><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4287297967347716069.post-7047077468976990494</id><published>2011-04-13T23:06:00.000-07:00</published><updated>2011-04-14T12:14:10.224-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Eclipse"/><category scheme="http://www.blogger.com/atom/ns#" term="Flash"/><category scheme="http://www.blogger.com/atom/ns#" term="Flash 101: Beginner"/><category scheme="http://www.blogger.com/atom/ns#" term="Flex Builder"/><title type='text'>How to install Flex Builder Plugin for Eclipse:</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://thong-vu.blogspot.com/2011/04/how-to-install-flex-builder-plugin-for.html&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhdLbZka3fV7zJAtDwra9Yub_x4Z0Md3J3XnXmpydI5HlMv3A3Y7O69zSEr4xaJhWNPTcakGmpPTPaJN2T-4eM4KZZb2WcPOtb1g6r9-sxU_wB12NarsQMoEhg0aHot3anuBgyXEupmkYY/s1600/flash_builder_logo.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
For
 a long time I have been switching back and forth on Adobe&#39;s Flex 
Builder IDE and Eclipse with Flex Builder Plugin.&amp;nbsp; They have similar 
interlace and tools, so to me they are basically the same.&amp;nbsp; However, I 
have had issues with debugging when using eclipse...&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Since
 each program only allow you to have one workspace and one project 
opened at a time, I would always have both of these program installed on
 my computer.&amp;nbsp; This allows me to have my current project open on one and
 the other with an old project that I can use for reference or quick 
search.&amp;nbsp; &lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Anyway, below are instructions on how to install Flex Builder Plugin for Eclipse.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhdLbZka3fV7zJAtDwra9Yub_x4Z0Md3J3XnXmpydI5HlMv3A3Y7O69zSEr4xaJhWNPTcakGmpPTPaJN2T-4eM4KZZb2WcPOtb1g6r9-sxU_wB12NarsQMoEhg0aHot3anuBgyXEupmkYY/s1600/flash_builder_logo.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;Step 1: Get a copy of Eclipse.&amp;nbsp; It is free.&lt;br /&gt;
&lt;a href=&quot;http://www.eclipse.org/downloads/&quot;&gt;http://www.eclipse.org/downloads/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Step 2: Install Eclipse.&lt;br /&gt;
&lt;br /&gt;
Step 3: Get the Adobe&#39;s Flex Builder plugin.&lt;br /&gt;
&lt;a href=&quot;http://www.adobe.com/cfusion/entitlement/index.cfm?e=flexbuilder3&quot;&gt;http://www.adobe.com/cfusion/entitlement/index.cfm?e=flexbuilder3&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Step 4: Install the plugin.&lt;br /&gt;
&lt;br /&gt;
Step 5: Run the version with the plugin.&amp;nbsp; It should be in the Flash Builder Plug-in folder.&amp;nbsp; I have it as follows:&lt;br /&gt;
&quot;C:\Program Files (x86)\Adobe\Adobe Flash Builder 4 Plug-in\eclipse-host-distro\eclipse.exe&quot;</content><link rel='replies' type='application/atom+xml' href='http://thong-vu.blogspot.com/feeds/7047077468976990494/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://thong-vu.blogspot.com/2011/04/how-to-install-flex-builder-plugin-for.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4287297967347716069/posts/default/7047077468976990494'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4287297967347716069/posts/default/7047077468976990494'/><link rel='alternate' type='text/html' href='http://thong-vu.blogspot.com/2011/04/how-to-install-flex-builder-plugin-for.html' title='How to install Flex Builder Plugin for Eclipse:'/><author><name>Thong Vu</name><uri>http://www.blogger.com/profile/11033885791853204054</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='10' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2wu8ktGUybX3D7QRdVLqO-eOh-BzF4tRu-OgxdV5kar4lgRItrBmXkuSxmX9-8ULsC4hBs1vARgIA6NH3bIKZhS1DXBI5N7SOMbPlgYbjaMchzxU6TeviqHNfcQSiEQ/s220/SapaPanorama.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhdLbZka3fV7zJAtDwra9Yub_x4Z0Md3J3XnXmpydI5HlMv3A3Y7O69zSEr4xaJhWNPTcakGmpPTPaJN2T-4eM4KZZb2WcPOtb1g6r9-sxU_wB12NarsQMoEhg0aHot3anuBgyXEupmkYY/s72-c/flash_builder_logo.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4287297967347716069.post-8540311127310704374</id><published>2011-03-15T21:36:00.000-07:00</published><updated>2011-04-14T12:36:18.801-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Flash"/><category scheme="http://www.blogger.com/atom/ns#" term="Flash 103: Advanced"/><category scheme="http://www.blogger.com/atom/ns#" term="Flash 104: Errors"/><title type='text'>Flash Error #2048 : Security sandbox violation: %1 cannot load data from %2.</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://thong-vu.blogspot.com/2011/03/flash-error-2048-security-sandbox.html&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJKcZtd4gsXQEa7U-Aq-mAWLldzOWhQeD2kBjBZL3seWy3o-x0W1Zlz_0sASN-m2gAz6Q8jHltAcw1x6FWParAJzSeP_iwmXdPsEJxvlyI4E2vJJBZdYdXJfSl2wQi8pQJAzPOBc1etBo/s1600/flash_logo.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
Many Flash AS3 developer have encountered this problem and wondering what the...&lt;br /&gt;
&lt;br /&gt;
The problem is simple.&amp;nbsp; Your swf in domain A is trying to access a swf from domain B, and it does not like it... &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&amp;nbsp;I have a few solutions to this problem.&lt;br /&gt;
&lt;br /&gt;
1) add a cross domain xml on to the root directory of your domain.&amp;nbsp; You can see example &lt;a href=&quot;http://thong-vu.blogspot.com/2011/03/error-2048-sandbox-security-error.html&quot;&gt;here&lt;/a&gt;.&lt;br /&gt;
2) load the swf using byte array.&amp;nbsp; You can see the example here.&lt;br /&gt;
3) add &quot;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Security.allowDomain(...domains)&lt;/span&gt;&quot; to the swf you are trying to access.&lt;br /&gt;
&lt;br /&gt;
Here is a code to achieve solution #3.&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
public class IHateDomainIssues extends Issues {&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&amp;nbsp; pubic function IHateDomainIssues():void {&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&amp;nbsp; // allow all domain&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&amp;nbsp; &amp;nbsp; Security.allowDomain(&quot;*&quot;);&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&amp;nbsp; // TODO: your loading swf code&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&amp;nbsp; }&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
}&lt;/div&gt;
&lt;br /&gt;
There you have it.&amp;nbsp; Feel free to ask if you have questions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Related Links:&lt;br /&gt;
&lt;a href=&quot;http://thong-vu.blogspot.com/2011/03/error-2048-sandbox-security-error.html&quot;&gt;cross domain&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://thong-vu.blogspot.com/2011/03/loading-files-using-urlstream.html&quot;&gt;loading-files-using-urlstream&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://www.adobe.com/livedocs/flash/9.0/ActionScriptLangRefV3/flash/system/Security.html#allowDomain%28%29&quot;&gt;Adobe ActionScript Language Reference&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://thong-vu.blogspot.com/feeds/8540311127310704374/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://thong-vu.blogspot.com/2011/03/flash-error-2048-security-sandbox.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4287297967347716069/posts/default/8540311127310704374'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4287297967347716069/posts/default/8540311127310704374'/><link rel='alternate' type='text/html' href='http://thong-vu.blogspot.com/2011/03/flash-error-2048-security-sandbox.html' title='Flash Error #2048 : Security sandbox violation: %1 cannot load data from %2.'/><author><name>Thong Vu</name><uri>http://www.blogger.com/profile/11033885791853204054</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='10' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2wu8ktGUybX3D7QRdVLqO-eOh-BzF4tRu-OgxdV5kar4lgRItrBmXkuSxmX9-8ULsC4hBs1vARgIA6NH3bIKZhS1DXBI5N7SOMbPlgYbjaMchzxU6TeviqHNfcQSiEQ/s220/SapaPanorama.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJKcZtd4gsXQEa7U-Aq-mAWLldzOWhQeD2kBjBZL3seWy3o-x0W1Zlz_0sASN-m2gAz6Q8jHltAcw1x6FWParAJzSeP_iwmXdPsEJxvlyI4E2vJJBZdYdXJfSl2wQi8pQJAzPOBc1etBo/s72-c/flash_logo.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4287297967347716069.post-1858847885238841267</id><published>2011-03-14T21:50:00.000-07:00</published><updated>2011-04-14T12:13:46.811-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Flash"/><category scheme="http://www.blogger.com/atom/ns#" term="Flash 103: Advanced"/><title type='text'>Loading files using URLStream:</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://thong-vu.blogspot.com/2011/03/loading-files-using-urlstream.html&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJKcZtd4gsXQEa7U-Aq-mAWLldzOWhQeD2kBjBZL3seWy3o-x0W1Zlz_0sASN-m2gAz6Q8jHltAcw1x6FWParAJzSeP_iwmXdPsEJxvlyI4E2vJJBZdYdXJfSl2wQi8pQJAzPOBc1etBo/s1600/flash_logo.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
There are many ways one can load files in Flash Action Script 3, and this is one of the methods to do so.&amp;nbsp; But more importantly, this is one of the ways you can use to by pass the annoying &quot;Flash Error #2048: Sandbox Security Error.&quot;&amp;nbsp; &lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;Here is a sample you can use to load file using &lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;URLStream&lt;/span&gt;.&lt;br /&gt;
&lt;div style=&quot;font-family: inherit;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: inherit;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;package {&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: inherit;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp; import flash.display.Sprite;&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: inherit;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp; import flash.errors.*;&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: inherit;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp; import flash.even&lt;/span&gt;ts.*;&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: inherit;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp; import flash.net.URLRequest;&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: inherit;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp; import flash.net.URLStream;&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: inherit;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: inherit;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp; public class URLStreamExample extends Sprite {&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: inherit;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; private static const ZLIB_CODE:String = &quot;CWS&quot;;&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: inherit;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; private var stream:URLStream;&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: inherit;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: inherit;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public function URLStreamExample() {&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: inherit;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; stream = new URLStream();&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: inherit;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var request:URLRequest = new URLRequest(&quot;http://www.thongvu.com/arrow.gif&quot;);&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: inherit;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; addMyListeners(stream);&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: inherit;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; try {&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: inherit;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; stream.load(request);&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: inherit;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } catch (error:Error) {&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: inherit;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; trace(&quot;Unable to load requested URL.&quot;);&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: inherit;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: inherit;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: inherit;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; private function addMyListeners(target:EventDispatcher):void {&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: inherit;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(target==null)&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: inherit;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return;&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: inherit;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; target.addEventListener(Event.COMPLETE, completeHandler);&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: inherit;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; target.addEventListener(HTTPStatusEvent.HTTP_STATUS, httpStatusHandler);&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: inherit;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; target.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: inherit;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; target.addEventListener(Event.OPEN, openHandler);&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: inherit;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; target.addEventListener(ProgressEvent.PROGRESS, progressHandler);&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: inherit;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; target.addEventListener(SecurityErrorEvent.SECURITY_ERROR, securityErrorHandler);&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: inherit;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: inherit;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; private function parseHeader():void {&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: inherit;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; trace(&quot;parseHeader&quot;);&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: inherit;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; trace(&quot;isCompressed: &quot; + isCompressed());&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: inherit;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; trace(&quot;version: &quot; + stream.readByte());&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: inherit;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: inherit;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var bytes:ByteArray();&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: inherit;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; stream.readByte(bytes);&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: inherit;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: inherit;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var loader:Loader = new Loader();&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: inherit;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; loader.loadBytes( bytes, new LoaderContext(false, ApplicationDomain.currentDomain));&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: inherit;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: inherit;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var loaderInfo:LoaderInfo = loader.contentLoaderInfo;&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: inherit;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; loaderInfo.addEventListener(Event.&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;COMPLETE&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;, assetBytesLoaded);&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: inherit;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; loaderInfo.addEventListener(IOErrorEvent.IO_ERROR, loadErrHandler);&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: inherit;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; loaderInfo.addEventListener(IOErrorEvent.NETWORK_ERROR, loadErrHandler);&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: inherit;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; loaderInfo.addEventListener(SecurityErrorEvent.SECURITY_ERROR, loadErrHandler);&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: inherit;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: inherit;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; private function isCompressed():Boolean {&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: inherit;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return (stream.readUTFBytes(3) == ZLIB_CODE);&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: inherit;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: inherit;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; private function completeHandler(event:Event):void {&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: inherit;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; trace(&quot;completeHandler: &quot; + event);&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: inherit;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; parseHeader();&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: inherit;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: inherit;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; private function openHandler(event:Event):void {&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: inherit;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; trace(&quot;openHandler: &quot; + event);&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: inherit;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: inherit;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; private function progressHandler(event:Event):void {&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: inherit;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; trace(&quot;progressHandler: &quot; + event);&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: inherit;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: inherit;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; private function securityErrorHandler(event:SecurityErrorEvent):void {&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: inherit;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; trace(&quot;securityErrorHandler: &quot; + event);&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: inherit;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: inherit;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; private function httpStatusHandler(event:HTTPStatusEvent):void {&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: inherit;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; trace(&quot;httpStatusHandler: &quot; + event);&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: inherit;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: inherit;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; private function ioErrorHandler(event:IOErrorEvent):void {&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: inherit;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; trace(&quot;ioErrorHandler: &quot; + event);&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: inherit;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: inherit;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: inherit;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /////////////////////////////////////////////////////////////////////&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: inherit;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; private function assetBytesLoaded(event:Event):void {&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: inherit;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // bam!!! finally. you got it. congrats. now go have milk and cookies!!!&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: inherit;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var myDisplayObject:DisplayObject = event.target.content as DisplayObject; &lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: inherit;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: inherit;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; private function loadErrHandler(event:Event):void {&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: inherit;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; trace(&quot;loadErrHandler: &quot; + event); &lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: inherit;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } &lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: inherit;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: inherit;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
Hope you enjoyed it.&lt;br /&gt;
&lt;br /&gt;
Related Links:&lt;br /&gt;
&lt;a href=&quot;http://thong-vu.blogspot.com/2011/03/error-2048-sandbox-security-error.html&quot;&gt;sandbox-security-error&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://thong-vu.blogspot.com/2011/03/flash-error-2048-security-sandbox.html&quot;&gt;flash-error-2048&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://thong-vu.blogspot.com/feeds/1858847885238841267/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://thong-vu.blogspot.com/2011/03/loading-files-using-urlstream.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4287297967347716069/posts/default/1858847885238841267'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4287297967347716069/posts/default/1858847885238841267'/><link rel='alternate' type='text/html' href='http://thong-vu.blogspot.com/2011/03/loading-files-using-urlstream.html' title='Loading files using URLStream:'/><author><name>Thong Vu</name><uri>http://www.blogger.com/profile/11033885791853204054</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='10' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2wu8ktGUybX3D7QRdVLqO-eOh-BzF4tRu-OgxdV5kar4lgRItrBmXkuSxmX9-8ULsC4hBs1vARgIA6NH3bIKZhS1DXBI5N7SOMbPlgYbjaMchzxU6TeviqHNfcQSiEQ/s220/SapaPanorama.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJKcZtd4gsXQEa7U-Aq-mAWLldzOWhQeD2kBjBZL3seWy3o-x0W1Zlz_0sASN-m2gAz6Q8jHltAcw1x6FWParAJzSeP_iwmXdPsEJxvlyI4E2vJJBZdYdXJfSl2wQi8pQJAzPOBc1etBo/s72-c/flash_logo.png" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4287297967347716069.post-2913840532205532878</id><published>2011-03-06T21:46:00.000-08:00</published><updated>2011-04-14T12:16:59.555-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Flash"/><category scheme="http://www.blogger.com/atom/ns#" term="Flash 104: Errors"/><title type='text'>Unable to resolve for transcoding with embed image</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://thong-vu.blogspot.com/2011/03/unable-to-resolve-for-transcoding-with.html&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJKcZtd4gsXQEa7U-Aq-mAWLldzOWhQeD2kBjBZL3seWy3o-x0W1Zlz_0sASN-m2gAz6Q8jHltAcw1x6FWParAJzSeP_iwmXdPsEJxvlyI4E2vJJBZdYdXJfSl2wQi8pQJAzPOBc1etBo/s1600/flash_logo.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
If you have ever get this &quot;Unable to resolve for transcoding with embed image&quot; or something similar to this message and wondering what the effF!?!? is going on, then here is the answer...&lt;/div&gt;
&lt;br /&gt;
it&#39;s actually so simple that you just want to punch the guy who wrote the compiler in his newbie face...&lt;br /&gt;
&lt;br /&gt;
okay...so some where in your semi-amateur code you probably have... &lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
[Embed(source=&quot;../images/HelloNewb.png&quot;,
 mimeType=&quot;image/png&quot;)]
&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
private var MyImage:Class;&lt;/div&gt;
&lt;div style=&quot;font-family: inherit;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;font-family: inherit;&quot;&gt;
&lt;br /&gt;
guess what--what you actually need is...&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;br /&gt;
[Embed(source=&quot;/../images/HelloNewb.png&quot;,
 mimeType=&quot;image/png&quot;)]
&lt;br /&gt;
&lt;div&gt;
private var MyImage:Class;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;font-family: inherit;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;font-family: inherit;&quot;&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
you see it? it&#39;s not that hard. it&#39;s not like finding Waldo...what you need was to add the &quot;/&quot; where your source file is located.&amp;nbsp; Retarded? Hell yes!&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;font-family: inherit; text-align: justify;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;font-family: inherit; text-align: justify;&quot;&gt;
&lt;br /&gt;
And if you don&#39;t know what I am talking about or how to embed resources in AS3, then see my sample on &lt;a href=&quot;http://www.blogger.com/&quot;&gt;how to embed images&lt;/a&gt; or &lt;a href=&quot;http://thong-vu.blogspot.com/2011/03/embedding-fonts.html&quot;&gt;how to embed fonts&lt;/a&gt;.&lt;/div&gt;
&lt;div style=&quot;font-family: inherit;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: inherit;&quot;&gt;
Related Links:&lt;/div&gt;
&lt;div style=&quot;font-family: inherit;&quot;&gt;
&lt;a href=&quot;http://thong-vu.blogspot.com/2011/03/embedding-resourcesimagesjpgpngswf-with.html&quot;&gt;Embed JPG/PNG/SWF&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://thong-vu.blogspot.com/2011/03/embedding-fonts.html&quot;&gt;Embed Fonts&lt;/a&gt; &lt;/div&gt;
&lt;div style=&quot;font-family: inherit;&quot;&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thong-vu.blogspot.com/feeds/2913840532205532878/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://thong-vu.blogspot.com/2011/03/unable-to-resolve-for-transcoding-with.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4287297967347716069/posts/default/2913840532205532878'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4287297967347716069/posts/default/2913840532205532878'/><link rel='alternate' type='text/html' href='http://thong-vu.blogspot.com/2011/03/unable-to-resolve-for-transcoding-with.html' title='Unable to resolve for transcoding with embed image'/><author><name>Thong Vu</name><uri>http://www.blogger.com/profile/11033885791853204054</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='10' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2wu8ktGUybX3D7QRdVLqO-eOh-BzF4tRu-OgxdV5kar4lgRItrBmXkuSxmX9-8ULsC4hBs1vARgIA6NH3bIKZhS1DXBI5N7SOMbPlgYbjaMchzxU6TeviqHNfcQSiEQ/s220/SapaPanorama.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJKcZtd4gsXQEa7U-Aq-mAWLldzOWhQeD2kBjBZL3seWy3o-x0W1Zlz_0sASN-m2gAz6Q8jHltAcw1x6FWParAJzSeP_iwmXdPsEJxvlyI4E2vJJBZdYdXJfSl2wQi8pQJAzPOBc1etBo/s72-c/flash_logo.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4287297967347716069.post-7203776893091717237</id><published>2011-03-05T22:28:00.000-08:00</published><updated>2011-04-14T12:34:45.650-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Flash"/><category scheme="http://www.blogger.com/atom/ns#" term="Flash 102: Intermediate"/><title type='text'>Embedding Fonts</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://thong-vu.blogspot.com/2011/03/embedding-fonts.html&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJKcZtd4gsXQEa7U-Aq-mAWLldzOWhQeD2kBjBZL3seWy3o-x0W1Zlz_0sASN-m2gAz6Q8jHltAcw1x6FWParAJzSeP_iwmXdPsEJxvlyI4E2vJJBZdYdXJfSl2wQi8pQJAzPOBc1etBo/s1600/flash_logo.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
If you noobs are wondering how to embed fonts into your SWF using code, then below is an example on how to achieve it.&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;Here, I have a &lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;FontManager&lt;/span&gt;&lt;/span&gt; class that contains the fonts I want to include in my SWF.&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;content&quot;&gt;&lt;span class=&quot;block&quot; style=&quot;margin-left: 0px ! important;&quot;&gt;&lt;code class=&quot;keyword&quot;&gt;package&lt;/code&gt;
 &lt;code class=&quot;plain&quot;&gt;{&lt;/code&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;line alt1&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;code class=&quot;number&quot;&gt;&amp;nbsp; &lt;/code&gt;&lt;span class=&quot;content&quot;&gt;&lt;span class=&quot;block&quot; style=&quot;margin-left: 0px ! important;&quot;&gt;&lt;code class=&quot;keyword&quot;&gt;public&lt;/code&gt;
 &lt;code class=&quot;keyword&quot;&gt;class&lt;/code&gt; &lt;code class=&quot;plain&quot;&gt;FontManager {&lt;/code&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;content&quot;&gt;&lt;span class=&quot;block&quot; style=&quot;margin-left: 0px ! important;&quot;&gt;&lt;code class=&quot;plain&quot;&gt;&amp;nbsp; &lt;/code&gt;&lt;/span&gt;&lt;/span&gt;&lt;code class=&quot;number&quot;&gt;&amp;nbsp;&lt;/code&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;code class=&quot;number&quot;&gt;&amp;nbsp;&lt;/code&gt;&lt;span class=&quot;content&quot;&gt;&lt;span class=&quot;block&quot; style=&quot;margin-left: 0px ! important;&quot;&gt;&lt;code class=&quot;plain&quot;&gt;[Embed(systemFont=&lt;/code&gt;&lt;code class=&quot;string&quot;&gt;&#39;Arial&#39;&lt;/code&gt;&lt;code class=&quot;plain&quot;&gt;, fontName=&lt;/code&gt;&lt;code class=&quot;string&quot;&gt;&quot;Arial&quot;&lt;/code&gt;&lt;code class=&quot;plain&quot;&gt;, mimeType=&lt;/code&gt;&lt;code class=&quot;string&quot;&gt;&quot;application/x-font-truetype&quot;&lt;/code&gt;&lt;code class=&quot;plain&quot;&gt;)]&lt;/code&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;code class=&quot;number&quot;&gt;&amp;nbsp;&lt;/code&gt;&lt;span class=&quot;content&quot;&gt;&lt;span class=&quot;block&quot; style=&quot;margin-left: 0px ! important;&quot;&gt;&lt;code class=&quot;keyword&quot;&gt;public&lt;/code&gt; &lt;code class=&quot;keyword&quot;&gt;static&lt;/code&gt;
 &lt;code class=&quot;keyword&quot;&gt;const&lt;/code&gt; &lt;code class=&quot;plain&quot;&gt;FONT_ARIAL:String;&lt;/code&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;content&quot;&gt;&lt;span class=&quot;block&quot; style=&quot;margin-left: 0px ! important;&quot;&gt;&lt;code class=&quot;plain&quot;&gt;&amp;nbsp;[Embed(systemFont=&lt;/code&gt;&lt;code class=&quot;string&quot;&gt;&#39;Verdana&#39;&lt;/code&gt;&lt;code class=&quot;plain&quot;&gt;,fontName=&lt;/code&gt;&lt;code class=&quot;string&quot;&gt;&quot;Verdana&quot;&lt;/code&gt;&lt;code class=&quot;plain&quot;&gt;,mimeType=&lt;/code&gt;&lt;code class=&quot;string&quot;&gt;&quot;application/x-font-truetype&quot;&lt;/code&gt;&lt;code class=&quot;plain&quot;&gt;)]&lt;/code&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;code class=&quot;number&quot;&gt;&amp;nbsp;&lt;/code&gt;&lt;span class=&quot;content&quot;&gt;&lt;span class=&quot;block&quot; style=&quot;margin-left: 0px ! important;&quot;&gt;&lt;code class=&quot;keyword&quot;&gt;public&lt;/code&gt; &lt;code class=&quot;keyword&quot;&gt;static&lt;/code&gt; &lt;code class=&quot;keyword&quot;&gt;const&lt;/code&gt; &lt;code class=&quot;plain&quot;&gt;FONT_VERDANA:String;&lt;/code&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;content&quot;&gt;&lt;span class=&quot;block&quot; style=&quot;margin-left: 0px ! important;&quot;&gt;&lt;code class=&quot;plain&quot;&gt;&amp;nbsp;&lt;/code&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;code class=&quot;plain&quot;&gt;[Embed(source=&lt;/code&gt;&lt;code class=&quot;string&quot;&gt;&#39;/fonts/NEWB.TTF&#39;&lt;/code&gt;&lt;code class=&quot;plain&quot;&gt;,
 fontName=&lt;/code&gt;&lt;code class=&quot;string&quot;&gt;&quot;Newb&quot;&lt;/code&gt;&lt;code class=&quot;plain&quot;&gt;, mimeType=&lt;/code&gt;&lt;code class=&quot;string&quot;&gt;&quot;application/x-font-truetype&quot;&lt;/code&gt;)]&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;code class=&quot;number&quot;&gt;&amp;nbsp;&lt;/code&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: small;&quot;&gt;&lt;code class=&quot;keyword&quot;&gt;public&lt;/code&gt;
 &lt;code class=&quot;keyword&quot;&gt;static&lt;/code&gt; &lt;code class=&quot;keyword&quot;&gt;const FONT_NEWB:String;&lt;/code&gt;&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;content&quot;&gt;&lt;span class=&quot;block&quot; style=&quot;margin-left: 0px ! important;&quot;&gt;&lt;code class=&quot;plain&quot;&gt;&amp;nbsp;&lt;/code&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;content&quot;&gt;&lt;span class=&quot;block&quot; style=&quot;margin-left: 0px ! important;&quot;&gt;&lt;code class=&quot;plain&quot;&gt;&amp;nbsp;[Embed(source=&lt;/code&gt;&lt;code class=&quot;string&quot;&gt;&quot;C:\WINDOWS\Fonts\SEXY_TIME.ttf&quot;&lt;/code&gt;&lt;code class=&quot;plain&quot;&gt;,
 fontName=&lt;/code&gt;&lt;code class=&quot;string&quot;&gt;&quot;SexyTime&quot;&lt;/code&gt;&lt;code class=&quot;plain&quot;&gt;,
 mimeType=&lt;/code&gt;&lt;code class=&quot;string&quot;&gt;&quot;application/x-font-truetype&quot;&lt;/code&gt;&lt;code class=&quot;plain&quot;&gt;)]&lt;/code&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;code class=&quot;number&quot;&gt;&amp;nbsp;&lt;/code&gt;&lt;span class=&quot;content&quot;&gt;&lt;span class=&quot;block&quot; style=&quot;margin-left: 0px ! important;&quot;&gt;&lt;code class=&quot;keyword&quot;&gt;public&lt;/code&gt;
 &lt;code class=&quot;keyword&quot;&gt;static&lt;/code&gt; &lt;code class=&quot;keyword&quot;&gt;const&lt;/code&gt; &lt;code class=&quot;plain&quot;&gt;FONT_SEXY_TIME:String;&lt;/code&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;line alt1&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;code class=&quot;number&quot;&gt;&amp;nbsp;&lt;/code&gt;&lt;span class=&quot;content&quot;&gt;&lt;span class=&quot;block&quot; style=&quot;margin-left: 0px ! important;&quot;&gt;&lt;code class=&quot;plain&quot;&gt;}&lt;/code&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;code class=&quot;number&quot;&gt;&lt;/code&gt;&lt;span class=&quot;content&quot;&gt;&lt;span class=&quot;block&quot; style=&quot;margin-left: 0px ! important;&quot;&gt;&lt;code class=&quot;plain&quot;&gt;}&lt;/code&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;content&quot;&gt;&lt;span class=&quot;block&quot; style=&quot;margin-left: 0px ! important;&quot;&gt;&lt;code class=&quot;plain&quot;&gt;package {&lt;/code&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;content&quot;&gt;&lt;span class=&quot;block&quot; style=&quot;margin-left: 0px ! important;&quot;&gt;&lt;code class=&quot;plain&quot;&gt;&amp;nbsp; public class EmbedFontExample {&lt;/code&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;content&quot;&gt;&lt;span class=&quot;block&quot; style=&quot;margin-left: 0px ! important;&quot;&gt;&lt;code class=&quot;plain&quot;&gt;&amp;nbsp; &amp;nbsp; public function EmbedFontExample() : void {&lt;/code&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;content&quot;&gt;&lt;span class=&quot;block&quot; style=&quot;margin-left: 0px ! important;&quot;&gt;&lt;code class=&quot;plain&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/code&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;content&quot;&gt;&lt;span class=&quot;block&quot; style=&quot;margin-left: 0px ! important;&quot;&gt;&lt;code class=&quot;keyword&quot;&gt;var&lt;/code&gt;&lt;code&gt; font1&lt;/code&gt;&lt;code class=&quot;plain&quot;&gt;:String
 = FontManager.FONT_SEXY_TIME;&lt;/code&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;content&quot;&gt;&lt;span class=&quot;block&quot; style=&quot;margin-left: 0px ! important;&quot;&gt;&lt;code class=&quot;plain&quot;&gt; &lt;/code&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;content&quot;&gt;&lt;span class=&quot;block&quot; style=&quot;margin-left: 0px ! important;&quot;&gt;&lt;code class=&quot;plain&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/code&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;content&quot;&gt;&lt;span class=&quot;block&quot; style=&quot;margin-left: 0px ! important;&quot;&gt;&lt;code class=&quot;plain&quot;&gt;&amp;nbsp; }&lt;/code&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;content&quot;&gt;&lt;span class=&quot;block&quot; style=&quot;margin-left: 0px ! important;&quot;&gt;&lt;code class=&quot;plain&quot;&gt;}&lt;/code&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
There you have it.&amp;nbsp; Now you know how to embed fonts.&lt;br /&gt;
&lt;br /&gt;
Related Links:&lt;br /&gt;
&lt;a href=&quot;http://thong-vu.blogspot.com/2011/03/embedding-resourcesimagesjpgpngswf-with.html&quot;&gt;Embed Images/JPG/PNG/SWF&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://thong-vu.blogspot.com/2011/03/unable-to-resolve-for-transcoding-with.html&quot;&gt;Error Transcoding&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://thong-vu.blogspot.com/feeds/7203776893091717237/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://thong-vu.blogspot.com/2011/03/embedding-fonts.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4287297967347716069/posts/default/7203776893091717237'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4287297967347716069/posts/default/7203776893091717237'/><link rel='alternate' type='text/html' href='http://thong-vu.blogspot.com/2011/03/embedding-fonts.html' title='Embedding Fonts'/><author><name>Thong Vu</name><uri>http://www.blogger.com/profile/11033885791853204054</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='10' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2wu8ktGUybX3D7QRdVLqO-eOh-BzF4tRu-OgxdV5kar4lgRItrBmXkuSxmX9-8ULsC4hBs1vARgIA6NH3bIKZhS1DXBI5N7SOMbPlgYbjaMchzxU6TeviqHNfcQSiEQ/s220/SapaPanorama.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJKcZtd4gsXQEa7U-Aq-mAWLldzOWhQeD2kBjBZL3seWy3o-x0W1Zlz_0sASN-m2gAz6Q8jHltAcw1x6FWParAJzSeP_iwmXdPsEJxvlyI4E2vJJBZdYdXJfSl2wQi8pQJAzPOBc1etBo/s72-c/flash_logo.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4287297967347716069.post-2308612913517601452</id><published>2011-03-03T21:26:00.000-08:00</published><updated>2011-05-19T23:34:53.280-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Flash"/><category scheme="http://www.blogger.com/atom/ns#" term="Flash 102: Intermediate"/><category scheme="http://www.blogger.com/atom/ns#" term="Flash Image"/><title type='text'>Embedding Resources/Images/JPG/PNG/SWF with AS3</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://thong-vu.blogspot.com/2011/03/embedding-resourcesimagesjpgpngswf-with.html&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJKcZtd4gsXQEa7U-Aq-mAWLldzOWhQeD2kBjBZL3seWy3o-x0W1Zlz_0sASN-m2gAz6Q8jHltAcw1x6FWParAJzSeP_iwmXdPsEJxvlyI4E2vJJBZdYdXJfSl2wQi8pQJAzPOBc1etBo/s1600/flash_logo.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
If you are wondering how you can add sexy JPG or fantastic PNG or &quot;copied/borrowed&quot; SWF to your boring SWF without editing the FLA, then below is an example on how to do it.&amp;nbsp; &lt;/div&gt;
&lt;br /&gt;
In this example, I will show you how to add an image to stage after using the embed statement.&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
package {&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&amp;nbsp; public class EmbedResourcesExample1 {&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; [Embed(source=&quot;../images/HelloWorld.png&quot;, mimeType=&quot;image/png&quot;)]&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; private var MyImage:Class;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; public function EmbedResourcesExample1() : void {&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; var image:Bitmap = new MyImage(); &lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; addChild(image);&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&amp;nbsp; } &lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
}&lt;/div&gt;
&lt;br /&gt;
This next example, I will show you how to embed a SWF to your main SWF.&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
package {&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&amp;nbsp; public class EmbedResourcesExample2 {&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; [Embed(source=&quot;../images/HelloWorld.swf&quot;, symbol=&quot;hello&quot;)]&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; private var MySWF:Class;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; public function EmbedResourcesExample2() : void {&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; var mySWF:Sprite = new MySWF(); &lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; addChild(mySWF);&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&amp;nbsp; } &lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
}&lt;/div&gt;
&lt;br /&gt;
And there you have it.&amp;nbsp; With the above samples, you can now successfully add JPGs or PNGs or SWFs to your main SWF file.&lt;br /&gt;
&lt;br /&gt;
Related Links:&lt;br /&gt;
&lt;a href=&quot;http://thong-vu.blogspot.com/2011/03/unable-to-resolve-for-transcoding-with.html&quot;&gt;Error transcoding&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://thong-vu.blogspot.com/2011/03/embedding-fonts.html&quot;&gt;Embed Fonts&lt;/a&gt; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://thong-vu.blogspot.com/feeds/2308612913517601452/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://thong-vu.blogspot.com/2011/03/embedding-resourcesimagesjpgpngswf-with.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4287297967347716069/posts/default/2308612913517601452'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4287297967347716069/posts/default/2308612913517601452'/><link rel='alternate' type='text/html' href='http://thong-vu.blogspot.com/2011/03/embedding-resourcesimagesjpgpngswf-with.html' title='Embedding Resources/Images/JPG/PNG/SWF with AS3'/><author><name>Thong Vu</name><uri>http://www.blogger.com/profile/11033885791853204054</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='10' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2wu8ktGUybX3D7QRdVLqO-eOh-BzF4tRu-OgxdV5kar4lgRItrBmXkuSxmX9-8ULsC4hBs1vARgIA6NH3bIKZhS1DXBI5N7SOMbPlgYbjaMchzxU6TeviqHNfcQSiEQ/s220/SapaPanorama.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJKcZtd4gsXQEa7U-Aq-mAWLldzOWhQeD2kBjBZL3seWy3o-x0W1Zlz_0sASN-m2gAz6Q8jHltAcw1x6FWParAJzSeP_iwmXdPsEJxvlyI4E2vJJBZdYdXJfSl2wQi8pQJAzPOBc1etBo/s72-c/flash_logo.png" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4287297967347716069.post-6318794125372263587</id><published>2011-03-02T23:03:00.000-08:00</published><updated>2011-04-14T12:41:35.409-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Flash"/><category scheme="http://www.blogger.com/atom/ns#" term="Flash 104: Errors"/><title type='text'>Flash Error #2048: Sandbox Security Error</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://thong-vu.blogspot.com/2011/03/error-2048-sandbox-security-error.html&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJKcZtd4gsXQEa7U-Aq-mAWLldzOWhQeD2kBjBZL3seWy3o-x0W1Zlz_0sASN-m2gAz6Q8jHltAcw1x6FWParAJzSeP_iwmXdPsEJxvlyI4E2vJJBZdYdXJfSl2wQi8pQJAzPOBc1etBo/s1600/flash_logo.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
This flash action script error 2048 sandbox security error happens when your swf is trying to access an outside website without permission from that website.&lt;/div&gt;
&lt;br /&gt;
Solution:&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Add a &lt;a href=&quot;http://thongvu.com/crossdomain.xml&quot;&gt;cross domain xml&lt;/a&gt; on the website that your swf is trying to access.&amp;nbsp; A sample of the xml is shown below: &lt;/div&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;pre id=&quot;line1&quot;&gt;&lt;span class=&quot;pi&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/pre&gt;
&lt;pre id=&quot;line1&quot;&gt;&lt;span class=&quot;pi&quot;&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; ?&amp;gt;&lt;/span&gt;
&amp;lt;&lt;span class=&quot;start-tag&quot;&gt;cross-domain-policy&lt;/span&gt;&amp;gt;
  &amp;lt;&lt;span class=&quot;start-tag&quot;&gt;allow-access-from&lt;/span&gt;&lt;span class=&quot;attribute-name&quot;&gt; domain&lt;/span&gt;=&lt;span class=&quot;attribute-value&quot;&gt;&quot;*.thongvu.com&quot;&lt;/span&gt;&lt;span class=&quot;attribute-name&quot;&gt;/&lt;/span&gt;&amp;gt;
&amp;lt;/&lt;span class=&quot;end-tag&quot;&gt;cross-domain-policy&lt;/span&gt;&amp;gt;&lt;/pre&gt;
&lt;br /&gt;
Related Links:&lt;br /&gt;
&lt;a href=&quot;http://thongvu.com/crossdomain.xml&quot;&gt;crossdomain.xml&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/runtimeErrors.html&quot;&gt;list of AS3 errors&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://thong-vu.blogspot.com/2011/03/flash-error-2048-security-sandbox.html&quot;&gt;allow domain&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://thong-vu.blogspot.com/2011/03/loading-files-using-urlstream.html&quot;&gt;loading-files-using-urlstream&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://thong-vu.blogspot.com/feeds/6318794125372263587/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://thong-vu.blogspot.com/2011/03/error-2048-sandbox-security-error.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4287297967347716069/posts/default/6318794125372263587'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4287297967347716069/posts/default/6318794125372263587'/><link rel='alternate' type='text/html' href='http://thong-vu.blogspot.com/2011/03/error-2048-sandbox-security-error.html' title='Flash Error #2048: Sandbox Security Error'/><author><name>Thong Vu</name><uri>http://www.blogger.com/profile/11033885791853204054</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='10' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2wu8ktGUybX3D7QRdVLqO-eOh-BzF4tRu-OgxdV5kar4lgRItrBmXkuSxmX9-8ULsC4hBs1vARgIA6NH3bIKZhS1DXBI5N7SOMbPlgYbjaMchzxU6TeviqHNfcQSiEQ/s220/SapaPanorama.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJKcZtd4gsXQEa7U-Aq-mAWLldzOWhQeD2kBjBZL3seWy3o-x0W1Zlz_0sASN-m2gAz6Q8jHltAcw1x6FWParAJzSeP_iwmXdPsEJxvlyI4E2vJJBZdYdXJfSl2wQi8pQJAzPOBc1etBo/s72-c/flash_logo.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4287297967347716069.post-3186820555237834967</id><published>2011-03-01T23:24:00.000-08:00</published><updated>2011-04-14T12:32:10.049-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Flash"/><category scheme="http://www.blogger.com/atom/ns#" term="Flash 104: Errors"/><title type='text'>Flash Error #1009: Cannot access a property or method of a null</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://thong-vu.blogspot.com/2011/03/flash-error-1009-cannot-access-property.html&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJKcZtd4gsXQEa7U-Aq-mAWLldzOWhQeD2kBjBZL3seWy3o-x0W1Zlz_0sASN-m2gAz6Q8jHltAcw1x6FWParAJzSeP_iwmXdPsEJxvlyI4E2vJJBZdYdXJfSl2wQi8pQJAzPOBc1etBo/s1600/flash_logo.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
This Flash action script error 1009 &quot;cannot access a property or method of a null&quot; or &quot;null has no properties&quot; usually happens when the object you are trying to access is not on stage or has not been instantiated, yet you are trying to access a method or a property on that object.&lt;/div&gt;
&lt;br /&gt;
Solution:&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
If you are unsure check if the object is exists before calling methods or accessing its properties.&amp;nbsp; Ex:&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
if( object != null )&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; object.doSomethingFun();&lt;/div&gt;
&lt;br /&gt;
or if you are unsure if the object exists or not on stage do an &lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;if&lt;/span&gt; check!&lt;br /&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
if( object != null )&lt;/div&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; stage.removeChild(object);&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
I hope that helps.&amp;nbsp; If you have questions, feel free to leave comments.&lt;br /&gt;
&lt;br /&gt;
Related Links:&lt;br /&gt;
&lt;a href=&quot;http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/runtimeErrors.html&quot;&gt;list
 of errors&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://thong-vu.blogspot.com/feeds/3186820555237834967/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://thong-vu.blogspot.com/2011/03/flash-error-1009-cannot-access-property.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4287297967347716069/posts/default/3186820555237834967'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4287297967347716069/posts/default/3186820555237834967'/><link rel='alternate' type='text/html' href='http://thong-vu.blogspot.com/2011/03/flash-error-1009-cannot-access-property.html' title='Flash Error #1009: Cannot access a property or method of a null'/><author><name>Thong Vu</name><uri>http://www.blogger.com/profile/11033885791853204054</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='10' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2wu8ktGUybX3D7QRdVLqO-eOh-BzF4tRu-OgxdV5kar4lgRItrBmXkuSxmX9-8ULsC4hBs1vARgIA6NH3bIKZhS1DXBI5N7SOMbPlgYbjaMchzxU6TeviqHNfcQSiEQ/s220/SapaPanorama.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJKcZtd4gsXQEa7U-Aq-mAWLldzOWhQeD2kBjBZL3seWy3o-x0W1Zlz_0sASN-m2gAz6Q8jHltAcw1x6FWParAJzSeP_iwmXdPsEJxvlyI4E2vJJBZdYdXJfSl2wQi8pQJAzPOBc1etBo/s72-c/flash_logo.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4287297967347716069.post-2163907069536257000</id><published>2011-02-28T23:47:00.000-08:00</published><updated>2011-04-14T12:43:40.564-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Flash"/><category scheme="http://www.blogger.com/atom/ns#" term="Flash 104: Errors"/><title type='text'>Flash Error #1090: XML parser failure element is malformed</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://thong-vu.blogspot.com/2011/02/flash-error-1090-xml-parser-failure.html&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJKcZtd4gsXQEa7U-Aq-mAWLldzOWhQeD2kBjBZL3seWy3o-x0W1Zlz_0sASN-m2gAz6Q8jHltAcw1x6FWParAJzSeP_iwmXdPsEJxvlyI4E2vJJBZdYdXJfSl2wQi8pQJAzPOBc1etBo/s1600/flash_logo.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
This Flash action script error 1090 with message such as &quot;XML parser failure&quot; or &quot;element is 
malformed&quot; happens when you try to parse or read an XML with mismatching nodes or tags.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Solution:&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Check the XML nodes.&amp;nbsp; Each node should end with a matching tag with the terminator &quot;/&quot;.&amp;nbsp; For example:&lt;/div&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
Check the XML nodes.&amp;nbsp; Each node should end with a matching tag with the terminator &quot;/&quot;.&amp;nbsp; For example:&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;xml&gt;&lt;/xml&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&amp;lt;xml&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;lt;node1&amp;gt;hi&amp;lt;/node1&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;lt;node2&amp;gt;hello&amp;lt;/node2&amp;gt;&lt;br /&gt;
&amp;lt;/xml&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;node&gt;&lt;/node&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
Other similar XML errors include:&lt;br /&gt;
&lt;table cellpadding=&quot;3&quot; cellspacing=&quot;0&quot; class=&quot;summaryTable&quot;&gt;&lt;tbody&gt;
&lt;tr class=&quot;prow1&quot;&gt;&lt;td class=&quot;summaryTablePaddingCol&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;summaryTableSecondCol&quot;&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;1087&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;summaryTableCol&quot; valign=&quot;top&quot;&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;Assignment to indexed XML is not 
allowed.&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;summaryTableLastCol&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;prow0&quot;&gt;&lt;td class=&quot;summaryTablePaddingCol&quot;&gt;&lt;/td&gt;&lt;td class=&quot;summaryTableSecondCol&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;a href=&quot;http://www.blogger.com/post-edit.g?blogID=4287297967347716069&amp;amp;postID=2163907069536257000&quot; name=&quot;1088&quot;&gt;&lt;/a&gt;&lt;b&gt;1088&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;summaryTableCol&quot; valign=&quot;top&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;The markup in the document 
following the root element must be well-formed.&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;summaryTableLastCol&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;prow1&quot;&gt;&lt;td class=&quot;summaryTablePaddingCol&quot;&gt;&lt;/td&gt;&lt;td class=&quot;summaryTableSecondCol&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;a href=&quot;http://www.blogger.com/post-edit.g?blogID=4287297967347716069&amp;amp;postID=2163907069536257000&quot; name=&quot;1089&quot;&gt;&lt;/a&gt;&lt;b&gt;1089&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;summaryTableCol&quot; valign=&quot;top&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Assignment to lists with more than one item is not 
supported&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;summaryTableLastCol&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;prow0&quot;&gt;&lt;td class=&quot;summaryTablePaddingCol&quot;&gt;&lt;/td&gt;&lt;td class=&quot;summaryTableSecondCol&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;a href=&quot;http://www.blogger.com/post-edit.g?blogID=4287297967347716069&amp;amp;postID=2163907069536257000&quot; name=&quot;1090&quot;&gt;&lt;/a&gt;&lt;b&gt;1090&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;summaryTableCol&quot; valign=&quot;top&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;XML parser failure: element is 
malformed&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;summaryTableLastCol&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;prow1&quot;&gt;&lt;td class=&quot;summaryTablePaddingCol&quot;&gt;&lt;/td&gt;&lt;td class=&quot;summaryTableSecondCol&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;a href=&quot;http://www.blogger.com/post-edit.g?blogID=4287297967347716069&amp;amp;postID=2163907069536257000&quot; name=&quot;1091&quot;&gt;&lt;/a&gt;&lt;b&gt;1091&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;summaryTableCol&quot; valign=&quot;top&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;XML parser failure: Unterminated 
CDATA section&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;summaryTableLastCol&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;prow0&quot;&gt;&lt;td class=&quot;summaryTablePaddingCol&quot;&gt;&lt;/td&gt;&lt;td class=&quot;summaryTableSecondCol&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;a href=&quot;http://www.blogger.com/post-edit.g?blogID=4287297967347716069&amp;amp;postID=2163907069536257000&quot; name=&quot;1092&quot;&gt;&lt;/a&gt;&lt;b&gt;1092&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;summaryTableCol&quot; valign=&quot;top&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;XML parser failure: Unterminated 
XML declaration&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;summaryTableLastCol&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;prow1&quot;&gt;&lt;td class=&quot;summaryTablePaddingCol&quot;&gt;&lt;/td&gt;&lt;td class=&quot;summaryTableSecondCol&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;a href=&quot;http://www.blogger.com/post-edit.g?blogID=4287297967347716069&amp;amp;postID=2163907069536257000&quot; name=&quot;1093&quot;&gt;&lt;/a&gt;&lt;b&gt;1093&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;summaryTableCol&quot; valign=&quot;top&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;XML parser failure: Unterminated 
DOCTYPE declaration&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;summaryTableLastCol&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;prow0&quot;&gt;&lt;td class=&quot;summaryTablePaddingCol&quot;&gt;&lt;/td&gt;&lt;td class=&quot;summaryTableSecondCol&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;a href=&quot;http://www.blogger.com/post-edit.g?blogID=4287297967347716069&amp;amp;postID=2163907069536257000&quot; name=&quot;1094&quot;&gt;&lt;/a&gt;&lt;b&gt;1094&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;summaryTableCol&quot; valign=&quot;top&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;XML parser failure: Unterminated 
comment&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;summaryTableLastCol&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;prow1&quot;&gt;&lt;td class=&quot;summaryTablePaddingCol&quot;&gt;&lt;/td&gt;&lt;td class=&quot;summaryTableSecondCol&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;a href=&quot;http://www.blogger.com/post-edit.g?blogID=4287297967347716069&amp;amp;postID=2163907069536257000&quot; name=&quot;1095&quot;&gt;&lt;/a&gt;&lt;b&gt;1095&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;summaryTableCol&quot; valign=&quot;top&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;XML parser failure: Unterminated attribute&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;summaryTableLastCol&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;prow0&quot;&gt;&lt;td class=&quot;summaryTablePaddingCol&quot;&gt;&lt;/td&gt;&lt;td class=&quot;summaryTableSecondCol&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;a href=&quot;http://www.blogger.com/post-edit.g?blogID=4287297967347716069&amp;amp;postID=2163907069536257000&quot; name=&quot;1096&quot;&gt;&lt;/a&gt;&lt;b&gt;1096&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;summaryTableCol&quot; valign=&quot;top&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;XML parser failure: Unterminated element&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;summaryTableLastCol&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;prow1&quot;&gt;&lt;td class=&quot;summaryTablePaddingCol&quot;&gt;&lt;/td&gt;&lt;td class=&quot;summaryTableSecondCol&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;a href=&quot;http://www.blogger.com/post-edit.g?blogID=4287297967347716069&amp;amp;postID=2163907069536257000&quot; name=&quot;1097&quot;&gt;&lt;/a&gt;&lt;b&gt;1097&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;summaryTableCol&quot; valign=&quot;top&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;XML parser failure: Unterminated processing instruction&lt;/span&gt;&lt;/td&gt;&lt;td class=&quot;summaryTableCol&quot; valign=&quot;top&quot;&gt;&lt;/td&gt;&lt;td class=&quot;summaryTableCol&quot; valign=&quot;top&quot;&gt;&lt;/td&gt;&lt;td class=&quot;summaryTableCol&quot; valign=&quot;top&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
Related Links:&lt;br /&gt;
&lt;a href=&quot;http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/runtimeErrors.html&quot;&gt;errors list&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://thong-vu.blogspot.com/feeds/2163907069536257000/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://thong-vu.blogspot.com/2011/02/flash-error-1090-xml-parser-failure.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4287297967347716069/posts/default/2163907069536257000'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4287297967347716069/posts/default/2163907069536257000'/><link rel='alternate' type='text/html' href='http://thong-vu.blogspot.com/2011/02/flash-error-1090-xml-parser-failure.html' title='Flash Error #1090: XML parser failure element is malformed'/><author><name>Thong Vu</name><uri>http://www.blogger.com/profile/11033885791853204054</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='10' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2wu8ktGUybX3D7QRdVLqO-eOh-BzF4tRu-OgxdV5kar4lgRItrBmXkuSxmX9-8ULsC4hBs1vARgIA6NH3bIKZhS1DXBI5N7SOMbPlgYbjaMchzxU6TeviqHNfcQSiEQ/s220/SapaPanorama.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJKcZtd4gsXQEa7U-Aq-mAWLldzOWhQeD2kBjBZL3seWy3o-x0W1Zlz_0sASN-m2gAz6Q8jHltAcw1x6FWParAJzSeP_iwmXdPsEJxvlyI4E2vJJBZdYdXJfSl2wQi8pQJAzPOBc1etBo/s72-c/flash_logo.png" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4287297967347716069.post-710397430688712182</id><published>2011-02-27T00:04:00.000-08:00</published><updated>2011-04-14T12:46:38.123-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Flash"/><category scheme="http://www.blogger.com/atom/ns#" term="Flash 104: Errors"/><title type='text'>Flash Error #3000: Illegal path name</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://thong-vu.blogspot.com/2011/02/flash-error-3000-illegal-path-name.html&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJKcZtd4gsXQEa7U-Aq-mAWLldzOWhQeD2kBjBZL3seWy3o-x0W1Zlz_0sASN-m2gAz6Q8jHltAcw1x6FWParAJzSeP_iwmXdPsEJxvlyI4E2vJJBZdYdXJfSl2wQi8pQJAzPOBc1etBo/s1600/flash_logo.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
This Flash action script error 3000 with message &quot;Illegal path name&quot; happens when you try to access a wrong path.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Solution:&lt;br /&gt;
&lt;/div&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;pre class=&quot;default prettyprint&quot;&gt;&lt;code&gt;&lt;span class=&quot;kwd&quot;&gt;private&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;var&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; file&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;typ&quot;&gt;File&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;typ&quot;&gt;File&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;documentsDirectory&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; 
&lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;public&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;function&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; download&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;():&lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;void&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;  var&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; pdfFilter&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;typ&quot;&gt;FileFilter&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;new&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;typ&quot;&gt;FileFilter&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&quot;PDF Files&quot;&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&quot;*.pdf&quot;&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; 
&amp;nbsp; file&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;browseForOpen&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&quot;Open&quot;&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;pdfFilter&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;]);&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; 
&amp;nbsp; file&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;addEventListener&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;typ&quot;&gt;Event&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;SELECT&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; fileSelected&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;pre class=&quot;default prettyprint&quot;&gt;&lt;code&gt;&lt;span class=&quot;pln&quot;&gt;&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;&lt;/span&gt;&lt;/code&gt;&lt;code&gt;&lt;span class=&quot;pln&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;pre class=&quot;default prettyprint&quot;&gt;&lt;code&gt;&lt;span class=&quot;pln&quot;&gt;&lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;private&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;function&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; fileSelected&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;e&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;typ&quot;&gt;Event&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;):&lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;void&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; 
  &lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;var&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; destination&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;typ&quot;&gt;File&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;typ&quot;&gt;File&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;applicationDirectory
&amp;nbsp; destination &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; destination&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;resolvePath&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&quot;test.pdf&quot;&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;pre class=&quot;default prettyprint&quot;&gt;&lt;code&gt;&lt;span class=&quot;pln&quot;&gt; &amp;nbsp;&lt;/span&gt;&lt;span class=&quot;com&quot;&gt;/*
&amp;nbsp; //This works, also if the file to copy is placed inside the appfolder
&amp;nbsp; file.copyTo(destination, true);
&amp;nbsp; */&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;

&amp;nbsp; &lt;/span&gt;&lt;span class=&quot;com&quot;&gt;/**&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;pre class=&quot;default prettyprint&quot;&gt;&lt;code&gt;&lt;span class=&quot;com&quot;&gt;  &amp;nbsp;* This Throws me an Error #3000, but ONLY if the file is located in
&amp;nbsp;  * the App folder&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;pre class=&quot;default prettyprint&quot;&gt;&lt;code&gt;&lt;span class=&quot;com&quot;&gt;   */&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
&amp;nbsp; file&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;openWithDefaultApplication&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;();&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;code&gt;&lt;span class=&quot;pln&quot;&gt;
&lt;/span&gt;&lt;/code&gt;</content><link rel='replies' type='application/atom+xml' href='http://thong-vu.blogspot.com/feeds/710397430688712182/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://thong-vu.blogspot.com/2011/02/flash-error-3000-illegal-path-name.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4287297967347716069/posts/default/710397430688712182'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4287297967347716069/posts/default/710397430688712182'/><link rel='alternate' type='text/html' href='http://thong-vu.blogspot.com/2011/02/flash-error-3000-illegal-path-name.html' title='Flash Error #3000: Illegal path name'/><author><name>Thong Vu</name><uri>http://www.blogger.com/profile/11033885791853204054</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='10' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2wu8ktGUybX3D7QRdVLqO-eOh-BzF4tRu-OgxdV5kar4lgRItrBmXkuSxmX9-8ULsC4hBs1vARgIA6NH3bIKZhS1DXBI5N7SOMbPlgYbjaMchzxU6TeviqHNfcQSiEQ/s220/SapaPanorama.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJKcZtd4gsXQEa7U-Aq-mAWLldzOWhQeD2kBjBZL3seWy3o-x0W1Zlz_0sASN-m2gAz6Q8jHltAcw1x6FWParAJzSeP_iwmXdPsEJxvlyI4E2vJJBZdYdXJfSl2wQi8pQJAzPOBc1etBo/s72-c/flash_logo.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4287297967347716069.post-3533735430701060201</id><published>2011-02-26T00:26:00.000-08:00</published><updated>2011-03-03T00:30:00.567-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Flash"/><category scheme="http://www.blogger.com/atom/ns#" term="Flash 101: Beginner"/><title type='text'>How to display a message to the console:</title><content type='html'>To display a message to the console or flash log file, we pass a &lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;string&lt;/span&gt; to the method &lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;trace&lt;/span&gt;.&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
trace(&quot;hello world!&quot;);&lt;br /&gt;
trace(&quot;my name is thong.&quot;);&lt;br /&gt;
&lt;br /&gt;
the code above will display to the console:&lt;br /&gt;
hello world!&lt;br /&gt;
my name is thong.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://thong-vu.blogspot.com/feeds/3533735430701060201/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://thong-vu.blogspot.com/2011/02/how-to-display-message-to-console.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4287297967347716069/posts/default/3533735430701060201'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4287297967347716069/posts/default/3533735430701060201'/><link rel='alternate' type='text/html' href='http://thong-vu.blogspot.com/2011/02/how-to-display-message-to-console.html' title='How to display a message to the console:'/><author><name>Thong Vu</name><uri>http://www.blogger.com/profile/11033885791853204054</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='10' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2wu8ktGUybX3D7QRdVLqO-eOh-BzF4tRu-OgxdV5kar4lgRItrBmXkuSxmX9-8ULsC4hBs1vARgIA6NH3bIKZhS1DXBI5N7SOMbPlgYbjaMchzxU6TeviqHNfcQSiEQ/s220/SapaPanorama.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4287297967347716069.post-1516003093515539963</id><published>2011-02-10T20:21:00.000-08:00</published><updated>2011-05-19T23:35:36.085-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="AsDoc"/><category scheme="http://www.blogger.com/atom/ns#" term="Flash 101: Beginner"/><title type='text'>How to add comments to AsDoc:</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://thong-vu.blogspot.com/2011/02/how-to-add-comments-to-asdoc.html&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJKcZtd4gsXQEa7U-Aq-mAWLldzOWhQeD2kBjBZL3seWy3o-x0W1Zlz_0sASN-m2gAz6Q8jHltAcw1x6FWParAJzSeP_iwmXdPsEJxvlyI4E2vJJBZdYdXJfSl2wQi8pQJAzPOBc1etBo/s1600/flash_logo.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Here is a list of &lt;a href=&quot;http://livedocs.adobe.com/flex/3/html/help.html?content=asdoc_8.html#186379&quot;&gt;AsDoc&lt;/a&gt; tags and the &lt;a href=&quot;http://livedocs.adobe.com/flex/3/html/help.html?content=asdoc_8.html#186379&quot;&gt;special HTML tags&lt;/a&gt; you can use in your code.&amp;nbsp; But generally it is the standard documentation with extra tags you can use.&amp;nbsp; Below is an example:&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;div style=&quot;color: #999999; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
/**&lt;/div&gt;
&lt;div style=&quot;color: #999999; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&amp;nbsp;* This function says hi.&lt;/div&gt;
&lt;div style=&quot;color: #999999; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&amp;nbsp;*&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;color: #999999; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&amp;nbsp;* @param&amp;nbsp; message&amp;nbsp;&amp;nbsp;&amp;nbsp; the text you wish to be printed.&lt;/div&gt;
&lt;div style=&quot;color: #999999; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&amp;nbsp;* &lt;/div&gt;
&lt;div style=&quot;color: #999999; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&amp;nbsp;* @return&amp;nbsp;&amp;nbsp; true, if successful; false otherwise.&lt;/div&gt;
&lt;div style=&quot;color: #999999; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&amp;nbsp;*/&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
public function say(message:String) : Boolean&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
{&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; var success:Boolean = false; &lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; if( message != null ) &lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; trace(message);&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; success = true; &lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return success;&lt;br /&gt;
}&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
@param is the parameter of the function &lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
@return is of course specify the return type.&lt;/div&gt;
&lt;br /&gt;
Related Links:&lt;br /&gt;
&lt;a href=&quot;http://livedocs.adobe.com/flex/3/html/help.html?content=asdoc_8.html#186379&quot;&gt;AsDoc&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://livedocs.adobe.com/flex/3/html/help.html?content=asdoc_8.html#186379&quot;&gt;special HTML tags&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://thong-vu.blogspot.com/feeds/1516003093515539963/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://thong-vu.blogspot.com/2011/02/how-to-add-comments-to-asdoc.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4287297967347716069/posts/default/1516003093515539963'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4287297967347716069/posts/default/1516003093515539963'/><link rel='alternate' type='text/html' href='http://thong-vu.blogspot.com/2011/02/how-to-add-comments-to-asdoc.html' title='How to add comments to AsDoc:'/><author><name>Thong Vu</name><uri>http://www.blogger.com/profile/11033885791853204054</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='10' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2wu8ktGUybX3D7QRdVLqO-eOh-BzF4tRu-OgxdV5kar4lgRItrBmXkuSxmX9-8ULsC4hBs1vARgIA6NH3bIKZhS1DXBI5N7SOMbPlgYbjaMchzxU6TeviqHNfcQSiEQ/s220/SapaPanorama.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJKcZtd4gsXQEa7U-Aq-mAWLldzOWhQeD2kBjBZL3seWy3o-x0W1Zlz_0sASN-m2gAz6Q8jHltAcw1x6FWParAJzSeP_iwmXdPsEJxvlyI4E2vJJBZdYdXJfSl2wQi8pQJAzPOBc1etBo/s72-c/flash_logo.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4287297967347716069.post-5714883106790941311</id><published>2011-01-28T12:24:00.000-08:00</published><updated>2011-04-14T13:15:34.400-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Flash"/><category scheme="http://www.blogger.com/atom/ns#" term="Flash 102: Intermediate"/><title type='text'>How to auto scroll to bottom page in a TextArea:</title><content type='html'>&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://thong-vu.blogspot.com/2011/01/how-to-auto-scroll-to-bottom-page-in.html&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJKcZtd4gsXQEa7U-Aq-mAWLldzOWhQeD2kBjBZL3seWy3o-x0W1Zlz_0sASN-m2gAz6Q8jHltAcw1x6FWParAJzSeP_iwmXdPsEJxvlyI4E2vJJBZdYdXJfSl2wQi8pQJAzPOBc1etBo/s1600/flash_logo.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Below is the code to autoscroll your mouse cursor to the bottom of the &lt;a href=&quot;http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/fl/controls/TextArea.html&quot;&gt;TextArea&lt;/a&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;import fl.controls.TextArea;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;import flash.utils.setTimeout;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;var outputTA : TextArea;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;createTextArea(50, 50, 100, 100);&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;showMessage(&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-size: small;&quot;&gt;How to auto scroll to bottom page in a textfield:\n&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&quot;);&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;showMessage(&quot;this is top!&quot;);&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;showMessage(&quot;\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n&quot;);&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;showMessage(&quot;this is bottom!&quot;);&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;color: #999999; font-size: small;&quot;&gt;/**&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br style=&quot;color: #999999;&quot; /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;color: #999999; font-size: small;&quot;&gt;&amp;nbsp;* Creates the text area.&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br style=&quot;color: #999999;&quot; /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;color: #999999; font-size: small;&quot;&gt;&amp;nbsp;*/&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;function createTextArea(x:Number, y:Number, width:Number, height:Number) : void&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;outputTA = new TextArea();&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;outputTA.setSize(width, height); &lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;outputTA.move(x, y);&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;addChild(outputTA);&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br style=&quot;color: #999999;&quot; /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;color: #999999; font-size: small;&quot;&gt;/**&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br style=&quot;color: #999999;&quot; /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;color: #999999; font-size: small;&quot;&gt;&amp;nbsp;* Display message to text area&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br style=&quot;color: #999999;&quot; /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;color: #999999; font-size: small;&quot;&gt;&amp;nbsp;*/&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;function showMessage(message:String):void&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;outputTA.text += message + &quot;\n&quot;;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;autoscroll();&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;color: #999999; font-size: small;&quot;&gt;/**&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br style=&quot;color: #999999;&quot; /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;color: #999999; font-size: small;&quot;&gt;&amp;nbsp;* Automatically scroll to the bottom of the textarea&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br style=&quot;color: #999999;&quot; /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;color: #999999; font-size: small;&quot;&gt;&amp;nbsp;*/&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;function autoscroll():void&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;setTimeout(function():void{outputTA.verticalScrollPosition = outputTA.maxVerticalScrollPosition;},100);&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thong-vu.blogspot.com/feeds/5714883106790941311/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://thong-vu.blogspot.com/2011/01/how-to-auto-scroll-to-bottom-page-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4287297967347716069/posts/default/5714883106790941311'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4287297967347716069/posts/default/5714883106790941311'/><link rel='alternate' type='text/html' href='http://thong-vu.blogspot.com/2011/01/how-to-auto-scroll-to-bottom-page-in.html' title='How to auto scroll to bottom page in a TextArea:'/><author><name>Thong Vu</name><uri>http://www.blogger.com/profile/11033885791853204054</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='10' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2wu8ktGUybX3D7QRdVLqO-eOh-BzF4tRu-OgxdV5kar4lgRItrBmXkuSxmX9-8ULsC4hBs1vARgIA6NH3bIKZhS1DXBI5N7SOMbPlgYbjaMchzxU6TeviqHNfcQSiEQ/s220/SapaPanorama.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJKcZtd4gsXQEa7U-Aq-mAWLldzOWhQeD2kBjBZL3seWy3o-x0W1Zlz_0sASN-m2gAz6Q8jHltAcw1x6FWParAJzSeP_iwmXdPsEJxvlyI4E2vJJBZdYdXJfSl2wQi8pQJAzPOBc1etBo/s72-c/flash_logo.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4287297967347716069.post-1794947781015687841</id><published>2011-01-27T23:18:00.000-08:00</published><updated>2011-05-19T11:22:35.641-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Flash"/><category scheme="http://www.blogger.com/atom/ns#" term="Flash 103: Advanced"/><category scheme="http://www.blogger.com/atom/ns#" term="Flash Image"/><title type='text'>How to use Flash Actionscript to save a MovieClip or Sprite to JPEG file:</title><content type='html'>&lt;a href=&quot;http://thong-vu.blogspot.com/2011/01/flash-102-advanced.html&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJKcZtd4gsXQEa7U-Aq-mAWLldzOWhQeD2kBjBZL3seWy3o-x0W1Zlz_0sASN-m2gAz6Q8jHltAcw1x6FWParAJzSeP_iwmXdPsEJxvlyI4E2vJJBZdYdXJfSl2wQi8pQJAzPOBc1etBo/s1600/flash_logo.png&quot; /&gt;&lt;/a&gt;Have you ever wonder how you can use Flash actionscript to save images?&amp;nbsp; Well, it is quite easy and below is the code you will need for doing so, more specifically, it will allow you to save MovieClip or Sprite to JPEG.&lt;br /&gt;
&lt;br /&gt;
In order to do this, you will need the &lt;a href=&quot;http://code.google.com/p/as3corelib/&quot;&gt;as3corelib&lt;/a&gt; and the save function in &lt;a href=&quot;http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/net/FileReference.html&quot;&gt;FileReference&lt;/a&gt; class requires minimum &lt;a href=&quot;http://www.adobe.com/products/flashplayer/&quot;&gt;Flash Player 10&lt;/a&gt; or &lt;a href=&quot;http://www.adobe.com/products/air/&quot;&gt;Air 1.5&lt;/a&gt;.&lt;br /&gt;
&amp;nbsp; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;import flash.errors.IllegalOperationError;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;import flash.errors.MemoryError;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;import flash.net.FileReference;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;import com.adobe.images.JPGEncoder;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #999999; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;/**&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #999999; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;* This function saves a movieclip to a jpeg.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #999999; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;*&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #999999; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;* @param&amp;nbsp;&amp;nbsp;&amp;nbsp; image&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; the movieclip.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #999999; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;* @param&amp;nbsp;&amp;nbsp;&amp;nbsp; imageName&amp;nbsp;&amp;nbsp;&amp;nbsp; the name that will be saved for this jpeg.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #999999; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;*/&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;function saveImage( image:MovieClip, imageName:String ) : void {&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; try {&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #6aa84f;&quot;&gt;// create a copy of the image&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; var jpgSource:BitmapData = new BitmapData( image.width, image.height );&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; jpgSource.draw(image);&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #6aa84f;&quot;&gt; // encode it to jpeg and convert it to byte array&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; var jpgEncoder:JPGEncoder = new JPGEncoder(85);&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; var jpgStream:ByteArray = jpgEncoder.encode(jpgSource);&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #6aa84f;&quot;&gt; // create a file reference to save the byte array&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #6aa84f; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // this will save the image to &quot;.jpg&quot;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; var file:FileReference = new FileReference();&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; file.addEventListener( IOErrorEvent.IO_ERROR, ioErrorHandler );&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; file.save( jpgStream, imageName );&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; catch( ioe:IllegalOperationError ) {&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; trace(&quot;Illegal operation.&quot;);&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; catch( ae:ArgumentError ) {&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; trace(&quot;Invalid argument.&quot;);&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; catch( me:MemoryError ) {&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; trace(&quot;Insufficient memory.&quot;);&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; catch( error:Error ) {&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; trace(&quot;Error trying to save image : &quot; + imageName&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&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; + &quot; . Error : &quot; + error);&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #999999; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #999999; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;/**&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #999999; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;* Handles IOErrors.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #999999; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;*/&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;function ioErrorHandler( event:IOErrorEvent ) : void {&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; trace(&quot;ioErrorHandler: &quot; + event);&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;font-family: inherit;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Related Links: &lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: inherit;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;a href=&quot;http://code.google.com/p/as3corelib/&quot;&gt;as3corelib&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: inherit;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;a href=&quot;http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/net/FileReference.html&quot;&gt;FileReference&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thong-vu.blogspot.com/feeds/1794947781015687841/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://thong-vu.blogspot.com/2011/01/flash-102-advanced.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4287297967347716069/posts/default/1794947781015687841'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4287297967347716069/posts/default/1794947781015687841'/><link rel='alternate' type='text/html' href='http://thong-vu.blogspot.com/2011/01/flash-102-advanced.html' title='How to use Flash Actionscript to save a MovieClip or Sprite to JPEG file:'/><author><name>Thong Vu</name><uri>http://www.blogger.com/profile/11033885791853204054</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='10' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2wu8ktGUybX3D7QRdVLqO-eOh-BzF4tRu-OgxdV5kar4lgRItrBmXkuSxmX9-8ULsC4hBs1vARgIA6NH3bIKZhS1DXBI5N7SOMbPlgYbjaMchzxU6TeviqHNfcQSiEQ/s220/SapaPanorama.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJKcZtd4gsXQEa7U-Aq-mAWLldzOWhQeD2kBjBZL3seWy3o-x0W1Zlz_0sASN-m2gAz6Q8jHltAcw1x6FWParAJzSeP_iwmXdPsEJxvlyI4E2vJJBZdYdXJfSl2wQi8pQJAzPOBc1etBo/s72-c/flash_logo.png" height="72" width="72"/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4287297967347716069.post-5793617263489960280</id><published>2011-01-26T20:25:00.000-08:00</published><updated>2011-04-14T13:09:09.833-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="AsDoc"/><category scheme="http://www.blogger.com/atom/ns#" term="Eclipse"/><category scheme="http://www.blogger.com/atom/ns#" term="Flash"/><title type='text'>How to setup Asdoc for Eclipse:</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://thong-vu.blogspot.com/2011/01/asdoc-for-eclipse.html&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhdLbZka3fV7zJAtDwra9Yub_x4Z0Md3J3XnXmpydI5HlMv3A3Y7O69zSEr4xaJhWNPTcakGmpPTPaJN2T-4eM4KZZb2WcPOtb1g6r9-sxU_wB12NarsQMoEhg0aHot3anuBgyXEupmkYY/s1600/flash_builder_logo.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Give me the right tools and I shall build the world...well what happens if they do not come with instructions?&amp;nbsp; And of course, what is the use of the most brilliant code without documentations on what they are for?&amp;nbsp; Having said that, programmers really need to write documentations on the code that they wrote...&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
After writing the documentation, you would of course want to have it some where online to easily look through it.&amp;nbsp; Ask and you shall receive, so you have AsDoc...&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Below are steps to set up your eclipse to generate asdocs for AS3.&lt;/div&gt;
&lt;b&gt;&lt;/b&gt;&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Step 1-&lt;/b&gt;&lt;br /&gt;
Open External Tools. Run Menu-&amp;gt;External Tools-&amp;gt;External Tools...&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhf2I5ebE5huaiMd2PBcRH4oOOGOjgfaYE9eTjYPqv8cAUy7bh9YbGpRHv72XIlHbvseTv3vTsyYmqhm7ZvGrhWr3YbzxHMJU-b16in-vqPAkOaTSkDNPcZaRAsMqnO9gZqN7j_f5Zw2vo/s1600/step1.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhf2I5ebE5huaiMd2PBcRH4oOOGOjgfaYE9eTjYPqv8cAUy7bh9YbGpRHv72XIlHbvseTv3vTsyYmqhm7ZvGrhWr3YbzxHMJU-b16in-vqPAkOaTSkDNPcZaRAsMqnO9gZqN7j_f5Zw2vo/s320/step1.jpg&quot; width=&quot;209&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Step 2-&lt;/b&gt;&lt;br /&gt;
Click on Program and click on the white rectangle to create a new configuration.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg7K64PJeGL57UquaWKa7HKi3V5pFZp-PPFCQwj17-VZVhJBP2ZoiciI39W3qJT-RvsnJlM3KCjRE9xB371PHyDDeWsIraHmsUvjRxC3PB8SnPkPqMkO4rsowv7IYiPn0sHknl0_Bao09s/s1600/step2.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;258&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg7K64PJeGL57UquaWKa7HKi3V5pFZp-PPFCQwj17-VZVhJBP2ZoiciI39W3qJT-RvsnJlM3KCjRE9xB371PHyDDeWsIraHmsUvjRxC3PB8SnPkPqMkO4rsowv7IYiPn0sHknl0_Bao09s/s320/step2.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Step 3-&lt;/b&gt;&lt;br /&gt;
In the &lt;i&gt;Name &lt;/i&gt;text field type in AsDoc or whatever you want to name this configuration that generates asdocs.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Step 4-&lt;/b&gt;&lt;br /&gt;
In the &lt;i&gt;Location &lt;/i&gt;text field, type in the location of your asdoc.exe file. If you don&#39;t already have a copy of &lt;a href=&quot;http://opensource.adobe.com/wiki/display/flexsdk/Downloads&quot;&gt;Flex  SDK&lt;/a&gt;, then grab one before proceeding.&amp;nbsp; For this example I have saved it to: &lt;br /&gt;
&lt;div style=&quot;color: #999999;&quot;&gt;
C:\Program Files (x86)\Adobe\Flex Builder 3 Plug-in\sdks\4.1.0\bin\asdoc.exe &lt;/div&gt;
&lt;br /&gt;
&lt;b&gt;Step 5-&lt;/b&gt;&lt;br /&gt;
In the &lt;i&gt;Working Directory&lt;/i&gt; text field, type in the working folder that you are currently using.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Step 6-&lt;/b&gt;&lt;br /&gt;
In the &lt;i&gt;Arguments &lt;/i&gt;text field, type in any arguments you want to add when generating asdocs.&amp;nbsp; &lt;br /&gt;
For the complete list you can check out this &lt;a href=&quot;http://help.adobe.com/en_US/flex/using/WSd0ded3821e0d52fe1e63e3d11c2f44bc36-7ffa.html&quot;&gt;Adobe  Flex 4 Asdocs&lt;/a&gt;.&amp;nbsp; In this example I only used the bare minimum, which is:&lt;br /&gt;
&lt;div style=&quot;color: #999999;&quot;&gt;
-doc-sources C:\Projects\MyProject&lt;/div&gt;
&lt;div style=&quot;color: #999999;&quot;&gt;
-output C:\Projects\MyProject\doc&lt;/div&gt;
&lt;div style=&quot;color: #999999;&quot;&gt;
-main-title &quot;My Project API&quot;&lt;/div&gt;
&lt;div style=&quot;color: #999999;&quot;&gt;
-window-title &quot;My Project API&quot;&lt;/div&gt;
&lt;br /&gt;
&lt;b&gt;-doc-sources&lt;/b&gt; is the folder you wish to generate the asdocs.&amp;nbsp; Asdoc.exe will look for all the &quot;.as&quot; files in this folder, so do not worry if you have folders within folders in this folder.&amp;nbsp; Asdoc will search and generate.&lt;br /&gt;
&lt;b&gt;-output &lt;/b&gt;is obviously will be the location you wish to save the asdoc files.&lt;br /&gt;
&lt;b&gt;-main-title&lt;/b&gt; is the text that appears at the top of the HTML pages in the output documentation.&lt;br /&gt;
&lt;b&gt;-window-title&lt;/b&gt; is the text that appears in the browser window in the output documentation.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Step 7-&lt;/b&gt;&lt;br /&gt;
Click &lt;i&gt;Apply &lt;/i&gt;and &lt;i&gt;Run&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Related Links:&lt;/b&gt;&lt;br /&gt;
&lt;i&gt;&lt;a href=&quot;http://opensource.adobe.com/wiki/display/flexsdk/Downloads&quot;&gt;Flex SDK&lt;/a&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;a href=&quot;http://help.adobe.com/en_US/flex/using/WSd0ded3821e0d52fe1e63e3d11c2f44bc36-7ffa.html&quot;&gt;Adobe Flex 4 Asdocs&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt; &lt;/i&gt;</content><link rel='replies' type='application/atom+xml' href='http://thong-vu.blogspot.com/feeds/5793617263489960280/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://thong-vu.blogspot.com/2011/01/asdoc-for-eclipse.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4287297967347716069/posts/default/5793617263489960280'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4287297967347716069/posts/default/5793617263489960280'/><link rel='alternate' type='text/html' href='http://thong-vu.blogspot.com/2011/01/asdoc-for-eclipse.html' title='How to setup Asdoc for Eclipse:'/><author><name>Thong Vu</name><uri>http://www.blogger.com/profile/11033885791853204054</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='10' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2wu8ktGUybX3D7QRdVLqO-eOh-BzF4tRu-OgxdV5kar4lgRItrBmXkuSxmX9-8ULsC4hBs1vARgIA6NH3bIKZhS1DXBI5N7SOMbPlgYbjaMchzxU6TeviqHNfcQSiEQ/s220/SapaPanorama.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhdLbZka3fV7zJAtDwra9Yub_x4Z0Md3J3XnXmpydI5HlMv3A3Y7O69zSEr4xaJhWNPTcakGmpPTPaJN2T-4eM4KZZb2WcPOtb1g6r9-sxU_wB12NarsQMoEhg0aHot3anuBgyXEupmkYY/s72-c/flash_builder_logo.png" height="72" width="72"/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4287297967347716069.post-238262726752836827</id><published>2011-01-25T20:53:00.000-08:00</published><updated>2011-04-14T13:13:15.835-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Flash"/><category scheme="http://www.blogger.com/atom/ns#" term="Flash 103: Advanced"/><category scheme="http://www.blogger.com/atom/ns#" term="Flash Image"/><title type='text'>How to print a MovieClip/Sprite/Image:</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://thong-vu.blogspot.com/2011/01/how-to-print-movieclipspriteimage.html&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJKcZtd4gsXQEa7U-Aq-mAWLldzOWhQeD2kBjBZL3seWy3o-x0W1Zlz_0sASN-m2gAz6Q8jHltAcw1x6FWParAJzSeP_iwmXdPsEJxvlyI4E2vJJBZdYdXJfSl2wQi8pQJAzPOBc1etBo/s1600/flash_logo.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
Below is the code to send a MovieClip/Sprite/Image to the printer.&amp;nbsp; The minimum requirement is &lt;a href=&quot;http://www.adobe.com/products/flashplayer/&quot;&gt;Flash Player 9&lt;/a&gt; or &lt;a href=&quot;http://www.adobe.com/products/air/&quot;&gt;Air 1.0&lt;/a&gt;.&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;import flash.printing.PrintJob;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #999999; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;/**&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #999999; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;* This function will print a sprite.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #999999; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;*&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #999999; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;* @param&amp;nbsp; image&amp;nbsp; the sprite to be printed or send to printer&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;color: #999999;&quot;&gt;&amp;nbsp;*/&lt;/span&gt;&lt;br /&gt;
function printImage( image:Sprite ) : void {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; var pj:PrintJob = new PrintJob();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; var pagesToPrint:uint = 0;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; if( pj.start() ) {&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; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; image.height = pj.pageHeight;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; image.width&amp;nbsp; = pj.pageWidth;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; try {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; pj.addPage(image);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; pagesToPrint++;&lt;br /&gt;
&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; catch(e:Error) {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; // do nothing&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if(pagesToPrint &amp;gt; 0) {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; pj.send();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
}&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;font-family: inherit;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Related Links:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: inherit;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;a href=&quot;http://thong-vu.blogspot.com/search/label/Flash%20103%3A%20Advanced&quot;&gt;Flash 103 Advanced&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: inherit;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;a href=&quot;http://thong-vu.blogspot.com/2011/01/flash-102-advanced.html&quot;&gt;Save MovieClip/Sprite&lt;/a&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: inherit;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: inherit;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thong-vu.blogspot.com/feeds/238262726752836827/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://thong-vu.blogspot.com/2011/01/how-to-print-movieclipspriteimage.html#comment-form' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4287297967347716069/posts/default/238262726752836827'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4287297967347716069/posts/default/238262726752836827'/><link rel='alternate' type='text/html' href='http://thong-vu.blogspot.com/2011/01/how-to-print-movieclipspriteimage.html' title='How to print a MovieClip/Sprite/Image:'/><author><name>Thong Vu</name><uri>http://www.blogger.com/profile/11033885791853204054</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='10' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2wu8ktGUybX3D7QRdVLqO-eOh-BzF4tRu-OgxdV5kar4lgRItrBmXkuSxmX9-8ULsC4hBs1vARgIA6NH3bIKZhS1DXBI5N7SOMbPlgYbjaMchzxU6TeviqHNfcQSiEQ/s220/SapaPanorama.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJKcZtd4gsXQEa7U-Aq-mAWLldzOWhQeD2kBjBZL3seWy3o-x0W1Zlz_0sASN-m2gAz6Q8jHltAcw1x6FWParAJzSeP_iwmXdPsEJxvlyI4E2vJJBZdYdXJfSl2wQi8pQJAzPOBc1etBo/s72-c/flash_logo.png" height="72" width="72"/><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4287297967347716069.post-6394750221302474126</id><published>2011-01-24T21:27:00.000-08:00</published><updated>2011-04-14T13:11:53.835-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Flash"/><category scheme="http://www.blogger.com/atom/ns#" term="Flash 103: Advanced"/><category scheme="http://www.blogger.com/atom/ns#" term="Flash Image"/><title type='text'>How to print a MovieClip/Sprite/Image in landscape mode:</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://thong-vu.blogspot.com/2011/01/below-is-code-to-print.html&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJKcZtd4gsXQEa7U-Aq-mAWLldzOWhQeD2kBjBZL3seWy3o-x0W1Zlz_0sASN-m2gAz6Q8jHltAcw1x6FWParAJzSeP_iwmXdPsEJxvlyI4E2vJJBZdYdXJfSl2wQi8pQJAzPOBc1etBo/s1600/flash_logo.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Below is the code to print a MovieClip/Sprite/Image in landscape mode.&amp;nbsp; The  minimum requirement is &lt;a href=&quot;http://www.adobe.com/products/flashplayer/&quot;&gt;Flash Player 9&lt;/a&gt; or &lt;a href=&quot;http://www.adobe.com/products/air/&quot;&gt;Air 1.0&lt;/a&gt;. &lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;import flash.printing.PrintJob;&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;import flash.printing.PrintJobOrientation;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #999999; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;/** &lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #999999; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;* This function prints a sprite to landscape mode.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #999999; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;*&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #999999; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;* @param &amp;nbsp; &amp;nbsp; image &amp;nbsp; &amp;nbsp; the sprite to be printed.&amp;nbsp; &lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #999999; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;*/&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;function printLandscape( image:Sprite ) : void {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; var  realW:Number = clip.width;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; var realH:Number = clip.height;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;  var orgX:Number = clip.x;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; var orgY:Number = clip.y;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; var  pj:PrintJob = new PrintJob();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; var options:PrintJobOptions = new  PrintJobOptions();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; options.printAsBitmap = true;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; var  pageCount:Number = 0;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; if ( !pj.start() ) return;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;  clip.x = 0;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; clip.y = 0;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; var cscaleX:Number,  cscaleY:Number;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; if ( pj.orientation.toLowerCase() !=  &quot;landscape&quot; ) {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; clip.rotation = 90;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; clip.x =  clip.width;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; cscaleX = pj.pageWidth / realH;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; cscaleY = pj.pageHeight / realW;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; else {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; cscaleX = pj.pageWidth / realW;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; cscaleY = pj.pageHeight / realH;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; clip.scaleX =  clip.scaleY = Math.min( cscaleX, cscaleY );&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; if ( pj.addPage(clip,  new Rectangle(0, 0, realW, realH), options) )&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pageCount++;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;  if (pageCount &amp;gt; 0)&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pj.send();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; clip.scaleX = clip.scaleY = 1;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;  clip.rotation = 0;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; clip.x = orgX;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; clip.y = orgY;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;  pj=null;&lt;br /&gt;
}&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;
&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: inherit;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Related Links:&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: inherit;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;a href=&quot;http://thong-vu.blogspot.com/2011/01/how-to-print-movieclipspriteimage.html&quot;&gt;Print Sprite/MovieClip&lt;/a&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: inherit;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;a href=&quot;http://thong-vu.blogspot.com/search/label/Flash%20103%3A%20Advanced&quot;&gt;Flash 103: Advanced&lt;/a&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: inherit;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thong-vu.blogspot.com/feeds/6394750221302474126/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://thong-vu.blogspot.com/2011/01/below-is-code-to-print.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4287297967347716069/posts/default/6394750221302474126'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4287297967347716069/posts/default/6394750221302474126'/><link rel='alternate' type='text/html' href='http://thong-vu.blogspot.com/2011/01/below-is-code-to-print.html' title='How to print a MovieClip/Sprite/Image in landscape mode:'/><author><name>Thong Vu</name><uri>http://www.blogger.com/profile/11033885791853204054</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='10' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2wu8ktGUybX3D7QRdVLqO-eOh-BzF4tRu-OgxdV5kar4lgRItrBmXkuSxmX9-8ULsC4hBs1vARgIA6NH3bIKZhS1DXBI5N7SOMbPlgYbjaMchzxU6TeviqHNfcQSiEQ/s220/SapaPanorama.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJKcZtd4gsXQEa7U-Aq-mAWLldzOWhQeD2kBjBZL3seWy3o-x0W1Zlz_0sASN-m2gAz6Q8jHltAcw1x6FWParAJzSeP_iwmXdPsEJxvlyI4E2vJJBZdYdXJfSl2wQi8pQJAzPOBc1etBo/s72-c/flash_logo.png" height="72" width="72"/><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4287297967347716069.post-4395360717506046665</id><published>2010-01-10T19:46:00.000-08:00</published><updated>2011-01-27T21:50:13.643-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Food"/><title type='text'>Steamed Fish Lemon Grass</title><content type='html'>&amp;nbsp; &amp;nbsp; &lt;br /&gt;
Hello everyone,&lt;br /&gt;
&amp;nbsp; &lt;br /&gt;
Today I am going to show you how to make a tasty and delicious steamed fish dish yet very quick and easy to do.&amp;nbsp;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
This dish will require the following items.&lt;br /&gt;
Ingredients&lt;br /&gt;
:: fish ( in this example i used a Tilapia)&lt;br /&gt;
:: lemon grass&lt;br /&gt;
:: green onions&lt;br /&gt;
:: ginger&lt;br /&gt;
:: mushrooms&lt;br /&gt;
&lt;br /&gt;
Preparation Time: 15 mins&lt;br /&gt;
Cooking Time: 12 mins&lt;br /&gt;
Total Time: 27 mins&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://www.blogger.com/%5BURL=http://img14.imageshack.us/i/ingredientsx.jpg/%5D%5BIMG%5Dhttp://img14.imageshack.us/img14/9240/ingredientsx.th.jpg%5B/IMG%5D%5B/URL%5D&quot;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;a href=&quot;http://img14.imageshack.us/img14/9240/ingredientsx.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;150&quot; src=&quot;http://img14.imageshack.us/img14/9240/ingredientsx.jpg&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;a href=&quot;http://img33.imageshack.us/img33/9866/tilapia.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;150&quot; src=&quot;http://img33.imageshack.us/img33/9866/tilapia.jpg&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/div&gt;Step 1:&lt;br /&gt;
Clean the fish by removing the scales and guts.&amp;nbsp; To do this, scape the fish with a fish scaler or the back of the knife with quick short motion from tail to head.&amp;nbsp; Cut on the bottom of the fish from the gills to the vent and remove the entrails.&amp;nbsp; Rinse it well with water.&lt;br /&gt;
&lt;br /&gt;
Step 2:&lt;br /&gt;
Make about five cuts at a 45-degrees angle perpendicular to the fish.&lt;br /&gt;
&lt;br /&gt;
Step 3:&lt;br /&gt;
Slice the mushrooms into a few pieces at a 45-degrees angle.&amp;nbsp; Cut the green onions and the lemon grass in half.&amp;nbsp; Slice a few pieces of ginger small enough to fit in the fish opening cuts that we made earlier.&lt;br /&gt;
&lt;br /&gt;
Step 4:&lt;br /&gt;
Stuff the mushroom and the ginger pieces into the cuts we made earlier on the fish.&lt;br /&gt;
&lt;br /&gt;
Step 5:&lt;br /&gt;
Lay the green onions and the lemon grass on a plate and place the fish on top of that.&amp;nbsp; This allows the steam to also get into the other side of the fish.&lt;br /&gt;
&lt;br /&gt;
Step 6:&lt;br /&gt;
Have the water boiling and place the fish into the pot.&amp;nbsp; Wait for about 12-15 minutes for the fish to cook.&lt;br /&gt;
&lt;br /&gt;
Step 7:&lt;br /&gt;
When the fish is about to be done. Heat up a pot and place some extra virgin olive oil (EVOO).&amp;nbsp; Mince up some lemon grass and ginger and place it in medium fire oil.&amp;nbsp; Let it cook for about 3 minutes and turn it off.&lt;br /&gt;
&lt;br /&gt;
Step 8:&lt;br /&gt;
After the fish is cooked, take it out of the pot and place it on a dish.&amp;nbsp; Pour the sauce that you just made in Step 7 onto the fish.&amp;nbsp; Also get some soy sauce and sprinkle on top of the fish for some taste.&lt;br /&gt;
&lt;br /&gt;
Step 9:&lt;br /&gt;
Enjoy the fruits of your labor.&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;&lt;a href=&quot;http://img685.imageshack.us/img685/513/tilapiacooked.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;300&quot; src=&quot;http://img685.imageshack.us/img685/513/tilapiacooked.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thong-vu.blogspot.com/feeds/4395360717506046665/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://thong-vu.blogspot.com/2010/01/steamed-fish-lemon-grass.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4287297967347716069/posts/default/4395360717506046665'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4287297967347716069/posts/default/4395360717506046665'/><link rel='alternate' type='text/html' href='http://thong-vu.blogspot.com/2010/01/steamed-fish-lemon-grass.html' title='Steamed Fish Lemon Grass'/><author><name>Thong Vu</name><uri>http://www.blogger.com/profile/11033885791853204054</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='10' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2wu8ktGUybX3D7QRdVLqO-eOh-BzF4tRu-OgxdV5kar4lgRItrBmXkuSxmX9-8ULsC4hBs1vARgIA6NH3bIKZhS1DXBI5N7SOMbPlgYbjaMchzxU6TeviqHNfcQSiEQ/s220/SapaPanorama.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4287297967347716069.post-2019408957649183786</id><published>2010-01-09T02:28:00.000-08:00</published><updated>2011-01-27T23:10:18.334-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Fact or Fiction"/><title type='text'>Google Toilet Paper</title><content type='html'>&amp;nbsp;&amp;nbsp; &lt;br /&gt;
So I went to the supermarket to pick up some grocery and look what I found...Google toilet paper people!!!&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
And it is in Vietnamese. Yes. Vietnamese!!!&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;a href=&quot;http://img252.imageshack.us/img252/697/googletoiletpaper.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;300&quot; src=&quot;http://img252.imageshack.us/img252/697/googletoiletpaper.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thong-vu.blogspot.com/feeds/2019408957649183786/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://thong-vu.blogspot.com/2010/01/google-toilet-paper.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4287297967347716069/posts/default/2019408957649183786'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4287297967347716069/posts/default/2019408957649183786'/><link rel='alternate' type='text/html' href='http://thong-vu.blogspot.com/2010/01/google-toilet-paper.html' title='Google Toilet Paper'/><author><name>Thong Vu</name><uri>http://www.blogger.com/profile/11033885791853204054</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='10' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2wu8ktGUybX3D7QRdVLqO-eOh-BzF4tRu-OgxdV5kar4lgRItrBmXkuSxmX9-8ULsC4hBs1vARgIA6NH3bIKZhS1DXBI5N7SOMbPlgYbjaMchzxU6TeviqHNfcQSiEQ/s220/SapaPanorama.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4287297967347716069.post-8494097672752612832</id><published>2010-01-06T03:05:00.001-08:00</published><updated>2011-01-27T23:11:01.389-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Random"/><title type='text'>My First Entry</title><content type='html'>&lt;a href=&quot;http://i279.photobucket.com/albums/kk157/flippy6969/tiere/funny-cats.jpg&quot; onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://i279.photobucket.com/albums/kk157/flippy6969/tiere/funny-cats.jpg&quot; style=&quot;cursor: pointer; float: left; height: 326px; margin: 0pt 10px 10px 0pt; width: 440px;&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hello world !!!</content><link rel='replies' type='application/atom+xml' href='http://thong-vu.blogspot.com/feeds/8494097672752612832/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://thong-vu.blogspot.com/2010/01/bun-bo-hue.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4287297967347716069/posts/default/8494097672752612832'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4287297967347716069/posts/default/8494097672752612832'/><link rel='alternate' type='text/html' href='http://thong-vu.blogspot.com/2010/01/bun-bo-hue.html' title='My First Entry'/><author><name>Thong Vu</name><uri>http://www.blogger.com/profile/11033885791853204054</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='10' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2wu8ktGUybX3D7QRdVLqO-eOh-BzF4tRu-OgxdV5kar4lgRItrBmXkuSxmX9-8ULsC4hBs1vARgIA6NH3bIKZhS1DXBI5N7SOMbPlgYbjaMchzxU6TeviqHNfcQSiEQ/s220/SapaPanorama.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://i279.photobucket.com/albums/kk157/flippy6969/tiere/th_funny-cats.jpg" height="72" width="72"/><thr:total>0</thr:total></entry></feed>