<?xml version='1.0' encoding='UTF-8'?><rss xmlns:atom="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" version="2.0"><channel><atom:id>tag:blogger.com,1999:blog-5952126122609606728</atom:id><lastBuildDate>Fri, 08 Nov 2024 16:24:26 +0000</lastBuildDate><category>Flash</category><category>ActionScript</category><category>Basic</category><category>as3</category><category>objects</category><category>Misc.</category><category>OOP</category><category>classes</category><category>eventHandlers</category><category>events</category><category>Augmented Reality</category><category>Google</category><category>Nokia</category><category>android</category><category>package</category><category>smartphones</category><title>Coded Creativity</title><description>codedcreativity.blogspot.com</description><link>http://codedcreativity.blogspot.com/</link><managingEditor>noreply@blogger.com (Anand Varma)</managingEditor><generator>Blogger</generator><openSearch:totalResults>10</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><item><guid isPermaLink="false">tag:blogger.com,1999:blog-5952126122609606728.post-3342286055687695478</guid><pubDate>Wed, 28 Jul 2010 04:43:00 +0000</pubDate><atom:updated>2010-07-27T21:43:49.731-07:00</atom:updated><title>Important READ!!!</title><description>CodedCreativity has been moved to flashbuff.blogspot.com&lt;br /&gt;
&lt;br /&gt;
kindly cooperate and visit flashbuff.blogspot.com here on&lt;br /&gt;
&lt;br /&gt;
-inconvenience regretted</description><link>http://codedcreativity.blogspot.com/2010/07/important-read.html</link><author>noreply@blogger.com (Anand Varma)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-5952126122609606728.post-2934755967565826834</guid><pubDate>Wed, 14 Jul 2010 06:25:00 +0000</pubDate><atom:updated>2010-07-13T23:33:24.119-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">ActionScript</category><category domain="http://www.blogger.com/atom/ns#">as3</category><category domain="http://www.blogger.com/atom/ns#">Basic</category><category domain="http://www.blogger.com/atom/ns#">eventHandlers</category><category domain="http://www.blogger.com/atom/ns#">events</category><category domain="http://www.blogger.com/atom/ns#">Flash</category><title>Manipulating Objects in Flash AS3</title><description>&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;This is a basic tutorial that aims at teaching those who are new to Flash, ways to &lt;b&gt;move objects&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt; (MovieClips,Buttons etc.)&lt;/span&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt; on the Stage and throws light on the various &lt;b&gt;properties &lt;/b&gt;of movieclips and buttons and the ways to manipulate them...&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&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/AVvXsEi8M5qEAV4qEHai5th22oYWk1sfqDMTfO1DAjAwHUPouJVWzlciRHgKmSjdwMRbZw6evecnjvyLQhjqcg4GYnRPLEA0pJgmHSY2Lf0jdupoIz1UpVOGlw1gqS1zJvypTo8dn66OKJK5bXc/s1600/movement_sprite.png&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/AVvXsEi8M5qEAV4qEHai5th22oYWk1sfqDMTfO1DAjAwHUPouJVWzlciRHgKmSjdwMRbZw6evecnjvyLQhjqcg4GYnRPLEA0pJgmHSY2Lf0jdupoIz1UpVOGlw1gqS1zJvypTo8dn66OKJK5bXc/s320/movement_sprite.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;Let&#39;s start off by creating a new Flash file (Ctrl+N). Now add/create a movie clip onto the stage of the main movie. I have imported this image (Ctrl+R) onto the stage and converted it into a movieclip (F8).&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt; This should be the Object that we will be manipulating with the help of actionscript. Now we need to give this movieclip an instance name so that we can refer to it while writing our code. To do so, fire up the &lt;b&gt;properties window/pane (Ctrl+F3)&lt;/b&gt; and set the &lt;b&gt;instance name&lt;/b&gt; to &quot;&lt;i&gt;myObj_mc&lt;/i&gt;&quot;&lt;/span&gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&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/AVvXsEgCFMlRdKJZU0qJLIIlBqFtvGyofZM8McwKlN0byMD6UUxXapyVo818lxgxw-FZvF8_WFBugvd9R48AiC0SAPENq9OBHIwneo1bFzCBcjFtZPIPrH59zNZfv1pS8v98zhFtiXGv4DHDgHA/s1600/myObj.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgCFMlRdKJZU0qJLIIlBqFtvGyofZM8McwKlN0byMD6UUxXapyVo818lxgxw-FZvF8_WFBugvd9R48AiC0SAPENq9OBHIwneo1bFzCBcjFtZPIPrH59zNZfv1pS8v98zhFtiXGv4DHDgHA/s320/myObj.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;Now we will add &lt;b&gt;buttons &lt;/b&gt;onto the stage which will control the movement and properties like &lt;b&gt;transparency (alpha)&lt;/b&gt;. Add 4 buttons to move the Object in the four directions respectively to act as controls to move the movieclip around and add another button to control transparency as show below.&lt;/span&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/AVvXsEhKmdD-bI1E-H-YzvM_Mk5zQyQ7KI6ox7uvOD0xO8_ZGKtifOpogZ8q-oKJu3d-1CRidKzwFakQlnfadCThYGDudHlnXSGhJYMauDioKG6KDBq_lS7sBxFK4KPZ21UvNKkPQrhK1ucVKXk/s1600/buttons.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; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKmdD-bI1E-H-YzvM_Mk5zQyQ7KI6ox7uvOD0xO8_ZGKtifOpogZ8q-oKJu3d-1CRidKzwFakQlnfadCThYGDudHlnXSGhJYMauDioKG6KDBq_lS7sBxFK4KPZ21UvNKkPQrhK1ucVKXk/s320/buttons.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&amp;nbsp;Now &lt;b&gt;change the instance names&lt;/b&gt; of the button with the left arrow to &quot;&lt;i&gt;left_btn&lt;/i&gt;&quot;, right arrow button to &quot;&lt;i&gt;right_btn&lt;/i&gt;&quot;, up arrow button to &quot;&lt;i&gt;up_btn&lt;/i&gt;&quot;, down arrow button to &quot;&lt;i&gt;down_btn&lt;/i&gt;&quot; and the button that says transparent to &quot;&lt;i&gt;alpha_btn&lt;/i&gt;&quot;&lt;/span&gt;.&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;Once we are done with this, we can proceed to the &lt;b&gt;actionscript &lt;/b&gt;part.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote&gt;
&lt;i style=&quot;color: #444444; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;b&gt;Code ::&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #444444; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;up_btn.addEventListener(MouseEvent.MOUSE_DOWN,up_fn);&lt;br /&gt;down_btn.addEventListener(MouseEvent.MOUSE_DOWN,down_fn);&lt;br /&gt;left_btn.addEventListener(MouseEvent.MOUSE_DOWN,left_fn);&lt;br /&gt;right_btn.addEventListener(MouseEvent.MOUSE_DOWN,right_fn);&lt;br /&gt;&lt;br /&gt;alpha_btn.addEventListener(MouseEvent.MOUSE_DOWN,alpha_fn);&lt;br /&gt;&lt;br /&gt;function up_fn(e:MouseEvent)&lt;br /&gt;{&amp;nbsp;&amp;nbsp; &amp;nbsp;myObj_mc.y-=10;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #444444; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;// 
this&amp;nbsp; is equivalent to: myObj_mc.y=myObj_mc.y-10; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #444444; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;}&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;function down_fn(e:MouseEvent)&lt;br /&gt;{&amp;nbsp;&amp;nbsp; &amp;nbsp;myObj_mc.y+=10;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;function left_fn(e:MouseEvent)&lt;br /&gt;{&amp;nbsp;&amp;nbsp; &amp;nbsp;myObj_mc.x-=10;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;function right_fn(e:MouseEvent)&lt;br /&gt;{&amp;nbsp;&amp;nbsp; &amp;nbsp;myObj_mc.x+=10;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;function alpha_fn(e:MouseEvent)&lt;br /&gt;{&amp;nbsp;&amp;nbsp; &amp;nbsp;myObj_mc.alpha=0.5;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/blockquote&gt;
&lt;br /&gt;
&lt;hr /&gt;
&lt;span style=&quot;color: #444444; font-family: Verdana,sans-serif; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;Code description ::&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote&gt;
&lt;span style=&quot;color: #444444; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;up_btn.addEventListener(MouseEvent.MOUSE_DOWN,up_fn);&lt;br /&gt;down_btn.addEventListener(MouseEvent.MOUSE_DOWN,down_fn);&lt;br /&gt;left_btn.addEventListener(MouseEvent.MOUSE_DOWN,left_fn);&lt;br /&gt;right_btn.addEventListener(MouseEvent.MOUSE_DOWN,right_fn);&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #444444; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;alpha_btn.addEventListener(MouseEvent.MOUSE_DOWN,alpha_fn);&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #444444; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #444444; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #444444; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;color: #444444;&quot;&gt;In these first few lines, we are creating &lt;b&gt;eventListeners &lt;/b&gt;to detect events from the event stream and when a &lt;b&gt;&quot;MOUSE_DOWN&quot; event&lt;/b&gt; is detected, it calls the corresponding functions wherein we define how it should react to such an event.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #444444; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;color: #444444;&quot;&gt;MOUSE_DOWN is a subset of class MouseEvent and when the event is recorded, it calls the &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #444444; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;color: #444444;&quot;&gt;corresponding &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #444444; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;color: #444444;&quot;&gt;function with arguments as a MouseEvent...&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/blockquote&gt;
&lt;br /&gt;
&lt;blockquote&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #444444; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;function
 up_fn(e:MouseEvent)&lt;br /&gt;{&amp;nbsp;&amp;nbsp; &amp;nbsp;myObj_mc.&lt;span style=&quot;color: #38761d;&quot;&gt;y&lt;/span&gt;-=10;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #999999;&quot;&gt;// this&amp;nbsp; is equivalent to: myObj_mc.y=myObj_mc.y-10;&lt;/span&gt; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;function
 down_fn(e:MouseEvent)&lt;br /&gt;{&amp;nbsp;&amp;nbsp; &amp;nbsp;myObj_mc.&lt;span style=&quot;color: #38761d;&quot;&gt;y&lt;/span&gt;+=10;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;function
 left_fn(e:MouseEvent)&lt;br /&gt;{&amp;nbsp;&amp;nbsp; &amp;nbsp;myObj_mc.&lt;span style=&quot;color: #38761d;&quot;&gt;x&lt;/span&gt;-=10;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #444444; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;function
 right_fn(e:MouseEvent)&lt;br /&gt;{&amp;nbsp;&amp;nbsp; &amp;nbsp;myObj_mc.&lt;span style=&quot;color: #38761d;&quot;&gt;x&lt;/span&gt;+=10;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;function
 alpha_fn(e:MouseEvent)&lt;br /&gt;{&amp;nbsp;&amp;nbsp; &amp;nbsp;myObj_mc.&lt;span style=&quot;color: #38761d;&quot;&gt;alpha&lt;/span&gt;=0.5; &lt;span style=&quot;color: #999999;&quot;&gt;//sets transparency to half&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #444444;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #444444;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;In the above code, &quot;&lt;b&gt;x&lt;/b&gt;&quot; &quot;&lt;b&gt;y&lt;/b&gt;&quot; and &quot;&lt;b&gt;alpha&lt;/b&gt;&quot; marked in green, are properties of movielips that define the placement along &lt;i&gt;X-axis&lt;/i&gt; , along &lt;i&gt;Y-axis&lt;/i&gt; and the &lt;i&gt;transparency&lt;/i&gt; respectively.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #444444;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;When we say &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #444444; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;myObj_mc.&lt;span style=&quot;color: #38761d;&quot;&gt;y&lt;/span&gt;-=10; &lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;color: #444444;&quot;&gt;This means that we are moving the movieclip by 10pixels, upwards. Similarly, the movements along other directions are written in the other functions and the transparency is set to half when the corresponding button is pressed (refer alpha_fn function).&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #444444; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;color: #444444;&quot;&gt;&lt;i&gt;&lt;b&gt;Note::&lt;/b&gt;&lt;/i&gt; &lt;i&gt;The origin &lt;/i&gt;&lt;i&gt;is considered to be at the top-left corner and as we move right, x-coordinate increases and as we move down, y-coordinate increases.&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #444444; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;color: #444444;&quot;&gt;And alpha (transparency) takes values from 0-1, 0 corresponding to full transparency and 1 corresponding to no transparency.&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #444444;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #444444;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #444444;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;The functions defined are that the event listeners would call on recording a
 mouse event. We are defining functions with a parameters &quot;e&quot; which is a
 MouseEvent Object, this is because when an eventListener calls the 
functions, it sends the MouseEvent as an &lt;b&gt;argument &lt;/b&gt;and if we don&#39;t define
 parameter &quot;e&quot;, flash would detect an &lt;b&gt;Argument Mismatch Error&lt;/b&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/blockquote&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;color: black;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;To download the source files, &lt;a href=&quot;http://sites.google.com/site/codedcreativity/movement.fla&quot;&gt;clik here (movement.fla)&lt;/a&gt;.&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;color: #444444;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;This tutorial can be extended to buttons and graphics too as they carry almost the same properties.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #444444;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;In case of doubts or any problems faced while trying out this tutorial, feel free to leave a comment below.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #444444; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;</description><link>http://codedcreativity.blogspot.com/2010/07/manipulating-objects-in-flash-as3.html</link><author>noreply@blogger.com (Anand Varma)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi8M5qEAV4qEHai5th22oYWk1sfqDMTfO1DAjAwHUPouJVWzlciRHgKmSjdwMRbZw6evecnjvyLQhjqcg4GYnRPLEA0pJgmHSY2Lf0jdupoIz1UpVOGlw1gqS1zJvypTo8dn66OKJK5bXc/s72-c/movement_sprite.png" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-5952126122609606728.post-7628756333253608594</guid><pubDate>Sun, 11 Jul 2010 18:47:00 +0000</pubDate><atom:updated>2010-07-13T02:30:59.214-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">android</category><category domain="http://www.blogger.com/atom/ns#">Augmented Reality</category><category domain="http://www.blogger.com/atom/ns#">Google</category><category domain="http://www.blogger.com/atom/ns#">Misc.</category><category domain="http://www.blogger.com/atom/ns#">Nokia</category><category domain="http://www.blogger.com/atom/ns#">smartphones</category><title>Nokia Point &amp; Find follows the trail laid by Google Goggles</title><description>&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;For those of you who havent heard of either Google goggles or Nokia Point and Find, these are both &lt;b&gt;augmented-reality&lt;/b&gt; projects being developed by Google and Nokia Europe respectively, which aim to bring smart &lt;b&gt;image recognition &lt;/b&gt;features to smartphone users. What this means is that users can point their smart phones to any object and the phone wold identify it and provide relevant content.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i style=&quot;color: #3d85c6;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;Google Goggles ::&lt;/span&gt;&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://upload.wikimedia.org/wikipedia/en/thumb/b/bd/Google-Goggles.jpg/300px-Google-Goggles.jpg&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;320&quot; src=&quot;http://upload.wikimedia.org/wikipedia/en/thumb/b/bd/Google-Goggles.jpg/300px-Google-Goggles.jpg&quot; width=&quot;213&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;Google initially started the Google Goggles project at Googlelabs to deploy the application targeting their new mobile operating system, Android which they expect to launch to other OS&#39;s like Symbian in the near future.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;Though it is still under the beta pahse, it can be downloaded from the googleLabs website and currently features recognition of landmarks, text, posters, logos and barcodes.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;Apart from identifying these, the application also populates relevant content and links from it&#39;s vast online database.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;One can scan a barcode and get Product Information and also the best buy price around your location by parsing your GPS data.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;It&#39;s text recognition can help tourists understand foreign language and can also double up as a virtual guide with its landmark recognition feature.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;It can also parse text from off cards and save them as contacts.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;GoogleLabs seem pretty ambitious with their project and wish to extend the recognition capabilities to virtually every object possible in the near futue.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;a href=&quot;http://www.google.com/mobile/goggles/&quot;&gt;http://www.google.com/mobile/goggles/&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;i style=&quot;color: #3d85c6;&quot;&gt;&lt;b&gt;Nokia Point &amp;amp; find ::&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;Seeing the great fortitude of possibilities that such an application can provide it&#39;s users, Nokia has set a foot forward and started the development of Nokia Point and Find.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;Like Google Goggles, Nokia Point and Find is still in it&#39;s beta version and hence offers limited functionality. As of now its ability to detect objects is limited to detecting Movie Posters and provides relevant information and lets users book tickets online.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;Nokia Point and Find also promises to recognize barcodes and monuments in the future. But as it is in it&#39;s beta phases, the recognition accuracy is below par and has a long way to go.&lt;/span&gt;&lt;br /&gt;
&lt;a href=&quot;http://europe.nokia.com/services-and-apps/nokia-point-and-find&quot; style=&quot;font-family: Verdana,sans-serif;&quot;&gt;http://europe.nokia.com/services-and-apps/nokia-point-and-find&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;i&gt;&lt;b&gt;&lt;span style=&quot;color: #444444;&quot;&gt;Conclusion ::&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;Both the Applications have a lot of potential and we can expect to see a full release in about a year or so with reasonable detection success and as more people start using them, their image recognition algorithms can learn and result in better detection and with user submitted data, the database can get very accurate over time.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;At this point of time, Google Goggles is miles ahead and Nokia has to do a lot of coping up to prove their mettle and please their loyal users.&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;At this point of time all we can say is that augmented reality has a lot to achieve but then it sure will find a place in our day to day lives... &lt;/span&gt;&lt;/span&gt;</description><link>http://codedcreativity.blogspot.com/2010/07/nokia-point-and-find-follows-trail-laid.html</link><author>noreply@blogger.com (Anand Varma)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-5952126122609606728.post-5285159693544049896</guid><pubDate>Sun, 11 Jul 2010 17:15:00 +0000</pubDate><atom:updated>2010-07-11T10:31:36.328-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">ActionScript</category><category domain="http://www.blogger.com/atom/ns#">as3</category><category domain="http://www.blogger.com/atom/ns#">Basic</category><category domain="http://www.blogger.com/atom/ns#">eventHandlers</category><category domain="http://www.blogger.com/atom/ns#">events</category><category domain="http://www.blogger.com/atom/ns#">Flash</category><category domain="http://www.blogger.com/atom/ns#">objects</category><title>Introduction to Buttons &amp; Events in Flash (AS3)</title><description>&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;Buttons are objects categorized as 
Symbols and are used to enhance user interaction. Their timeline consists of four frames or states namely &lt;b&gt;Up&lt;/b&gt;, &lt;b&gt;
Over&lt;/b&gt;, &lt;b&gt;Down&lt;/b&gt;, &lt;b&gt;Hit &lt;/b&gt;which are respectively the frame to display when the 
button is inactive, when the user brings his mouse over it, when the 
user clicks it and the area in which the button should accept mouse 
events...&lt;/span&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&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/AVvXsEjJ36F-eD1Q2-teliWImYi6k3lmwQQsoWayKcNcZZZwO85vUiASVkNkolEjJSSPeyhfFjUVtNxxg8IzA38MndNbelSqSbAYFvjS5nQK1U15dcpKhwsp9bswPQ8y7IaXCeygOZT5DhH9Fcs/s1600/button.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJ36F-eD1Q2-teliWImYi6k3lmwQQsoWayKcNcZZZwO85vUiASVkNkolEjJSSPeyhfFjUVtNxxg8IzA38MndNbelSqSbAYFvjS5nQK1U15dcpKhwsp9bswPQ8y7IaXCeygOZT5DhH9Fcs/s320/button.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;color: #6fa8dc;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;i style=&quot;color: #6fa8dc;&quot;&gt;&lt;b&gt;Creating a Button ::&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;color: #6fa8dc;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;To create a new button, select &quot;&lt;b&gt;New Symbol&lt;/b&gt;&quot; from the insert menu or use the keyboard shortcut,&lt;b&gt; Ctrl+F8&lt;/b&gt; and choose &lt;b&gt;Button &lt;/b&gt;as the type for the new symbol.&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;color: #6fa8dc;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;Select the Up frame and draw on the stage, in a way you would like the button when idle.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;color: #6fa8dc;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;Now right click the Over frame and select &quot;Insert KeyFrame&quot; this should create a duplicate of the Up frame which you can edit or you could select &quot;Insert Blank KeyFrame&quot; if you wish to edit from scratch either way, make the Over frame reflect how you would like the button to look when the mouse moves over.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;color: #6fa8dc;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;Similarly, edit the Down frame and the Hit frame.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;color: #6fa8dc;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;Note that the &lt;b&gt;Hit frame&lt;/b&gt; is not essential for the button to function but then it&#39;s advised you use it to define the button area. This can be done by drawing a shape in the hit frame to reflect the buttons area of effect.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;color: #6fa8dc;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;Now that we are done with creating our button, we need to write some actionscript to tell the button how it need to react to &lt;b&gt;Mouse Events&lt;/b&gt; (when a mouse moves over, mouse button is pressed, etc.).&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8ECFHQLc3IOjU3qzYqagj6kj0r4z_s0m3WY0HsI-qTBVYLSRUhgOGF7UA1s4Ra89SBvsIhebmW3R-f5w3J7gx17rJZV78AoOFSO94phDHmpmdc1Uvv8PWADeuoTl7J6aRrQtUre0VfFM/s1600/scene.jpg&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/AVvXsEj8ECFHQLc3IOjU3qzYqagj6kj0r4z_s0m3WY0HsI-qTBVYLSRUhgOGF7UA1s4Ra89SBvsIhebmW3R-f5w3J7gx17rJZV78AoOFSO94phDHmpmdc1Uvv8PWADeuoTl7J6aRrQtUre0VfFM/s320/scene.jpg&quot; /&gt;&lt;/a&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;color: #6fa8dc;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;Before we do that,we need to move back to the main stage by clicking on the Scene1 link toward the top right corner of the window as show...&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&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/AVvXsEgdU2qwGtQ1i4Jqv0wKaUMQHJNHhF-x-FcBNjFLewYKNkCtZ3x6hKmUYV5LF_B5O2eDYOaJH2Up_GoDhWDJ5HR2NwFBjD5NDffd2fyJ1M5oSZEsOGXJ-5gm9fPayexLFsdLjee1z42KeDs/s1600/instance-btn.jpg&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/AVvXsEgdU2qwGtQ1i4Jqv0wKaUMQHJNHhF-x-FcBNjFLewYKNkCtZ3x6hKmUYV5LF_B5O2eDYOaJH2Up_GoDhWDJ5HR2NwFBjD5NDffd2fyJ1M5oSZEsOGXJ-5gm9fPayexLFsdLjee1z42KeDs/s320/instance-btn.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;color: #6fa8dc;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt; Now open the&lt;b&gt; library (Ctrl+L)&lt;/b&gt; where the button we just created is listed and drag it and drop it on the stage of the main movie. This should create an &lt;b&gt;instance &lt;/b&gt;of the button.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;color: #6fa8dc;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;Open the &lt;b&gt;properties window (Ctrl+F3)&lt;/b&gt; and select the button on the stage. In the properties pane, change the &lt;b&gt;instance name&lt;/b&gt; to &quot;&lt;i&gt;my_btn&lt;/i&gt;&quot;.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;color: #6fa8dc;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;Now Select the first frame from the timeline, right click and select &quot;&lt;b&gt;Actions&lt;/b&gt;&quot; this should open the actions pane where you will need to put the following code.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;color: #6fa8dc;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;blockquote&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;color: #6fa8dc;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;i style=&quot;color: #444444; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;b&gt;Code ::&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;color: #6fa8dc;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;color: #0b5394; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;my_btn.addEventListener(MouseEvent.CLICK,handleClick);&lt;br /&gt;&lt;br /&gt;function handleClick(e:MouseEvent)&lt;br /&gt;{&lt;br /&gt;trace(&quot;my_btn was clicked !!!&quot;);&lt;br /&gt;&lt;span style=&quot;color: #999999;&quot;&gt;// code to be executed on click here&lt;/span&gt;&lt;br /&gt;} &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/blockquote&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;color: #6fa8dc;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;hr /&gt;
&lt;div style=&quot;color: #444444; font-family: Verdana,sans-serif;&quot;&gt;
&lt;i&gt;&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;Code Description ::&lt;/span&gt;&lt;/b&gt;&lt;/i&gt;&lt;/div&gt;
&lt;blockquote&gt;
&lt;div style=&quot;color: #444444; font-family: Verdana,sans-serif;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;color: #6fa8dc;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;my_btn.addEventListener(MouseEvent.CLICK,handleClick);&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #444444; font-family: Verdana,sans-serif;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: #444444; font-family: Verdana,sans-serif;&quot;&gt;
&lt;span style=&quot;color: #444444;&quot;&gt;In this line, we are assigning an &lt;b&gt;Event Listener&lt;/b&gt; to the button (instance name : &quot;my_btn&quot;)&lt;/span&gt; to listen to the Events Stream and call the &lt;b&gt;function &lt;/b&gt;&quot;&lt;b&gt;handleClick&lt;/b&gt;&quot; when a &lt;b&gt;MouseEvent&lt;/b&gt;, &quot;&lt;b&gt;CLICK&lt;/b&gt;&quot; is registered.&lt;/div&gt;
&lt;div style=&quot;color: #444444; font-family: Verdana,sans-serif;&quot;&gt;
In simple words, the function is called when the user clicks the button we put on the stage.&lt;/div&gt;
&lt;div style=&quot;color: #444444; font-family: Verdana,sans-serif;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;background-color: #cccccc; color: #444444;&quot;&gt;&lt;span style=&quot;background-color: black;&quot;&gt;&lt;span style=&quot;background-color: #eeeeee;&quot;&gt;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;&lt;span style=&quot;background-color: #eeeeee;&quot;&gt;Syntax for initializing an eventHandler :: Object.addEventListener(Event,function_name);&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/blockquote&gt;
&lt;br /&gt;
&lt;blockquote&gt;
&lt;div style=&quot;color: #0b5394; font-family: Verdana,sans-serif;&quot;&gt;
function handleClick(e:MouseEvent)&lt;br /&gt;
{&lt;br /&gt;
trace(&quot;my_btn was clicked 
!!!&quot;);&lt;br /&gt;
&lt;span style=&quot;color: #999999;&quot;&gt;// code to be executed on click here&lt;/span&gt;&lt;br /&gt;
}&lt;/div&gt;
&lt;div style=&quot;color: #0b5394; font-family: Verdana,sans-serif;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: #444444; font-family: Verdana,sans-serif;&quot;&gt;
Here, we are defining a function by name handleClick which will be called when a mouse click event is registered.&lt;br /&gt;
Here a parameter variable, &quot;e&quot; of the type MouseEvent is set because the eventHandler function passes an event variable as arguments and the function needs to accept it though we dont use it in the code.&lt;/div&gt;
&lt;/blockquote&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;Now that you have a basic idea about using buttons and listening to events, you can extend your knowledge to different events and also edit the basic handleClick function in this tutorial and extend it for more complex operations.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;color: #6fa8dc;&quot;&gt;&lt;/span&gt;&lt;/span&gt;</description><link>http://codedcreativity.blogspot.com/2010/07/creating-and-using-buttons-in-flash.html</link><author>noreply@blogger.com (Anand Varma)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJ36F-eD1Q2-teliWImYi6k3lmwQQsoWayKcNcZZZwO85vUiASVkNkolEjJSSPeyhfFjUVtNxxg8IzA38MndNbelSqSbAYFvjS5nQK1U15dcpKhwsp9bswPQ8y7IaXCeygOZT5DhH9Fcs/s72-c/button.jpg" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-5952126122609606728.post-2472153307695497654</guid><pubDate>Sun, 11 Jul 2010 07:00:00 +0000</pubDate><atom:updated>2010-07-11T09:18:44.705-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Basic</category><category domain="http://www.blogger.com/atom/ns#">Flash</category><title>Introduction to Animation in Flash :: Timeline and Tweening.</title><description>&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;The first thing that we should we familiar with when making animations in flash is the timeline. By the end of this tutorial, you will be familiar with frames, key-frames and the timeline and will be able to create animations of objects using Tweening...&lt;/span&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/AVvXsEg189R8c0kvAbQz2-ICElf_XeDOcZvKXXUhXm8nJG1yo2-Jh5xSmIexCS-hoAUfWiIaZ21sSxjANGjbSgNz3FV7HhyphenhyphenNLonRRSlAosRiQXkDnyzYE9Q0jkOolgPumAkZ3uzA1jP6lCPFHDE/s1600/timeline.PNG&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;203&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg189R8c0kvAbQz2-ICElf_XeDOcZvKXXUhXm8nJG1yo2-Jh5xSmIexCS-hoAUfWiIaZ21sSxjANGjbSgNz3FV7HhyphenhyphenNLonRRSlAosRiQXkDnyzYE9Q0jkOolgPumAkZ3uzA1jP6lCPFHDE/s400/timeline.PNG&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;i style=&quot;color: #6fa8dc;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;The TimeLine ::&lt;/span&gt;&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i style=&quot;color: #6fa8dc;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/i&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;The timeline is that area where you will be working with layers and frames to alter the movies contents or to animate them.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;It also contains info like fps, current frame and length of the movie...&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;color: #6fa8dc; font-family: Verdana,sans-serif;&quot;&gt;
&lt;i&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/i&gt;&lt;/div&gt;
&lt;i style=&quot;color: #6fa8dc; font-family: Verdana,sans-serif;&quot;&gt;&lt;b&gt;Frames and KeyFrames ::&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;Keyframes are those frames that define the initial and final postitions of an object in an animation and the frames inbetween are filled by fillers known as frame. A keyframe is marked by a circle (frame 1 in picture) and frames are marked by rectangles...&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;i style=&quot;color: #6fa8dc;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;b&gt;Tweening :: (in Flash Cs4 and later)&lt;/b&gt; &lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;Tweening is a technique employed in animation where intermediate frames are developed inbetween two KeyFrames to create a smooth animation, giving the appearance of the first keyframe evolving into the other.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;To create our tweening animation, first launch Flash and &lt;i&gt;create a new file&lt;/i&gt; (&lt;b&gt;Ctrl+N&lt;/b&gt;) and select ActionScript3 from the list. This should open a new flash movie with a white &lt;b&gt;stage&lt;/b&gt;. Now move the mouse over to the timeline and select the first frame as shown in the above picture. Now import an image that you would like to animate onto the stage. To do so select &lt;b&gt;import to stage&lt;/b&gt; from the menu &lt;b&gt;(File&amp;gt;Import&amp;gt;Import to stage)&lt;/b&gt; or use the shortcut &lt;b&gt;Ctrl+R &lt;/b&gt;and select an image.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhy5y39G4cjCVic5__uOGBJv7JoActcPgk9ah9cXqx-ca4Ge3E249t8CFYP5CUpu392ke8YvvP-wjHYra-yAApiK9avUxUIdZReluTFIQCuYfV2LD03iB_S2ka8wG2QmmiZTL6pbGpkVng/s1600/tween.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;151&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhy5y39G4cjCVic5__uOGBJv7JoActcPgk9ah9cXqx-ca4Ge3E249t8CFYP5CUpu392ke8YvvP-wjHYra-yAApiK9avUxUIdZReluTFIQCuYfV2LD03iB_S2ka8wG2QmmiZTL6pbGpkVng/s400/tween.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;This should bring the image onto the stage. Select the image and convert it into a graphic symbol (&lt;b&gt;Ctrl+F8&lt;/b&gt;). Nowright click on the and select &quot;Create Motion Tween&quot; this should create some frames for the animation as shown...&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt; Now select the last frame and move the image in the direction you want it to move this should show a green trail if done correctly, as show in the image... Now test the movie and you should see your object animate and move. In case you want the animation to last longer or shoter, you can drag the last keyframe to the right or to the left respectively to reduce the movie time...&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;Now that you know how to tween postition, you can try out tweening other properties like transparency, scale, rotation or even combinations of any to create animations...This can be achieved by setting initial properties in keyframe 1 and final properties in keyframe 24.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;For a more detailed description on tweening, try the article:&lt;a href=&quot;http://www.kirupa.com/developer/flashcs4/intro_animation_flashcs4_pg1.htm&quot;&gt;Intro to Animation&lt;/a&gt; by kirupa.com&lt;/span&gt;</description><link>http://codedcreativity.blogspot.com/2010/07/introduction-to-animation-in-flash.html</link><author>noreply@blogger.com (Anand Varma)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg189R8c0kvAbQz2-ICElf_XeDOcZvKXXUhXm8nJG1yo2-Jh5xSmIexCS-hoAUfWiIaZ21sSxjANGjbSgNz3FV7HhyphenhyphenNLonRRSlAosRiQXkDnyzYE9Q0jkOolgPumAkZ3uzA1jP6lCPFHDE/s72-c/timeline.PNG" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-5952126122609606728.post-1182312288952161292</guid><pubDate>Sun, 11 Jul 2010 05:54:00 +0000</pubDate><atom:updated>2010-07-11T00:37:17.056-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Basic</category><category domain="http://www.blogger.com/atom/ns#">Flash</category><title>Nut and Bolts of Flash: Symbols- MovieClips, Buttons, Graphics</title><description>&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;Before we start creating Flash content, we need to know the nuts and bolts that go into making these... In this article you will learn about some of the most commonly used objects (&lt;b&gt;Symbols&lt;/b&gt;) and their properties. Even these Symbols are objects and hence are defined by a class with properties and functions specific to each... &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i style=&quot;color: #6fa8dc;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;Button Symbol ::&lt;/span&gt;&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;Button symbols are used to create interactive buttons. Button symbols are made up of four key-frames, also known as &lt;b&gt;states&lt;/b&gt; and are related to user interaction and are labeled Up, Over, Down and Hit .&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;The &lt;b&gt;Up &lt;/b&gt;state defines the button when the button is inactive, &lt;b&gt;Over &lt;/b&gt;state when the mouse moves over it, &lt;b&gt;Down &lt;/b&gt;state when the mouse button is pressed down on the button, &lt;b&gt;Hit &lt;/b&gt;state defines the hit-area of the button or the effective button area.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;color: #6fa8dc;&quot;&gt;&lt;i&gt;&lt;b&gt;MovieClip Symbol ::&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;Movie Clips are actual movies within a movie. These are used for animations that run independent of the main movie&#39;s Timeline. These are similar to actual flash movies and can contain Actions.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i style=&quot;color: #6fa8dc; font-family: Verdana,sans-serif;&quot;&gt;&lt;b&gt;Graphic Synmol ::&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;Graphic Symbols are mainly used for static images that need to be re-used in a movie. They cannot contain actions or sounds. These do not play independent of the main timeline and hence playing animations through graphic symbols and syncing them would be a hassle.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;You can get your hands-on by creating your own symbol. To do so, select Symbol from the insert menu (Insert &amp;gt; Symbol) or use the shortcut, &lt;b&gt;Ctrl+F8&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;and the window that opens, select the symbol you wish to create.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;In case of any confusion regarding timelines and frames, try this article.. &lt;a href=&quot;http://iit.bloomu.edu/vthc/flash/Timeline.html&quot;&gt;Flash TimeLine&lt;/a&gt;&lt;/span&gt;</description><link>http://codedcreativity.blogspot.com/2010/07/nut-and-bolts-of-flash-symbols.html</link><author>noreply@blogger.com (Anand Varma)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-5952126122609606728.post-6818574323403536007</guid><pubDate>Sat, 10 Jul 2010 12:13:00 +0000</pubDate><atom:updated>2010-07-11T10:22:28.358-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">ActionScript</category><category domain="http://www.blogger.com/atom/ns#">classes</category><category domain="http://www.blogger.com/atom/ns#">Flash</category><category domain="http://www.blogger.com/atom/ns#">objects</category><category domain="http://www.blogger.com/atom/ns#">OOP</category><title>Implementing Custom Classes in AS3</title><description>&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;Now that we know how to create classes in AS3, we can now learn to implement these custom classes written by us into objects in the flash movie.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;Before continuing, it is highly recommended you go through the article, &lt;a href=&quot;http://codedcreativity.blogspot.com/2010/07/getting-started-with-actionscript-30.html&quot;&gt;Getting Started with ActionScript 3.0 &lt;/a&gt;to learn how to create your own classes.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i style=&quot;color: #6fa8dc;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;The custom class ::&lt;/span&gt;&lt;/b&gt;&lt;/i&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;To start off, we will need an actionscript class. You could use the sample greeter class provided below or you could use any other class you have at hand.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;Copy the code below, open Flash and create a new ActionScript 3.0 class and paste the code and&lt;i&gt; &lt;b&gt;save the file as&lt;/b&gt;&lt;/i&gt;&lt;b&gt; &quot;greeter.as&quot;&lt;/b&gt; &lt;/span&gt;&lt;br /&gt;
&lt;blockquote&gt;
&lt;div style=&quot;color: #444444; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;
&lt;i&gt;&lt;b&gt;Sample greeter Class ::&lt;/b&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: #0b5394; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;
package {&lt;/div&gt;
&lt;div style=&quot;color: #0b5394; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;
public class greeter&lt;/div&gt;
&lt;div style=&quot;color: #0b5394; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;
{&lt;/div&gt;
&lt;div style=&quot;color: #0b5394; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; private var my_name:String;&lt;/div&gt;
&lt;div style=&quot;color: #0b5394; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/div&gt;
&lt;div style=&quot;color: #0b5394; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; public function greeter()&lt;/div&gt;
&lt;div style=&quot;color: #0b5394; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; { &lt;/div&gt;
&lt;div style=&quot;color: #0b5394; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/div&gt;
&lt;div style=&quot;color: #0b5394; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/div&gt;
&lt;div style=&quot;color: #0b5394; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; public function init_name(n:String)&lt;/div&gt;
&lt;div style=&quot;color: #0b5394; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; {&amp;nbsp;&amp;nbsp;&amp;nbsp; my_name=n;&lt;/div&gt;
&lt;div style=&quot;color: #0b5394; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; trace(&quot;Initialized Name!&quot;)&lt;/div&gt;
&lt;div style=&quot;color: #0b5394; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/div&gt;
&lt;div style=&quot;color: #0b5394; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/div&gt;
&lt;div style=&quot;color: #0b5394; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; public function hello()&lt;/div&gt;
&lt;div style=&quot;color: #0b5394; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; {&amp;nbsp;&amp;nbsp;&amp;nbsp; trace(&quot;Welcome &quot;+my_name+&quot;.&quot;);&lt;/div&gt;
&lt;div style=&quot;color: #0b5394; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/div&gt;
&lt;div style=&quot;color: #0b5394; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/div&gt;
&lt;div style=&quot;color: #0b5394; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;
}&lt;/div&gt;
&lt;/blockquote&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;i style=&quot;color: #6fa8dc;&quot;&gt;&lt;b&gt;Creating Objects from our class ::&lt;/b&gt;&lt;/i&gt;&lt;/span&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/AVvXsEjrUjOWtTN1mIX6sum9K9Rw4LxVMZSAKwEHVrmM1W7HU7ZpbclTCbhrMWpCJqClQmibT5eWvT5_9AHhbOCQHu-tHQR61oWcf6HWwYRVkVNG6xCaKMOwuKnVvVpY9wEPYHBNuaOqFKLIEpw/s1600/fla.jpg&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/AVvXsEjrUjOWtTN1mIX6sum9K9Rw4LxVMZSAKwEHVrmM1W7HU7ZpbclTCbhrMWpCJqClQmibT5eWvT5_9AHhbOCQHu-tHQR61oWcf6HWwYRVkVNG6xCaKMOwuKnVvVpY9wEPYHBNuaOqFKLIEpw/s320/fla.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;Now that we are done writing the actionscript class, we can start with Flash.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;Open Flash and create a new file (Ctrl+N) and select ActionScript 3.0 from the list. This should open a blank Flash movie with a white stage.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;Now before we start working, save the movie (Ctrl+S) and choose a file name of your choice and make sure you save it along with the actionscript file in the same directory.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;Now select the first keyframe, right 
click and select &lt;b&gt;Actions &lt;/b&gt;from the context menu... This should open the actions window, a miniature version of the one which you would have seen while writing your class.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;This is where the code goes...&lt;/span&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/AVvXsEgBDKMxSt6D_tJ9CWp9uIk6U28s1aXQMNKYbyOYHTsQX6hjyy1MVHMpO2NqZG9-h9IWAJdGg1aGazxGpYq21PypRDdKsC06RMpuTyFfiE3gsCR0Wcd2v-NlVl7tdVNW9tCgk6Q-5e8_MsE/s1600/actions.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;97&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBDKMxSt6D_tJ9CWp9uIk6U28s1aXQMNKYbyOYHTsQX6hjyy1MVHMpO2NqZG9-h9IWAJdGg1aGazxGpYq21PypRDdKsC06RMpuTyFfiE3gsCR0Wcd2v-NlVl7tdVNW9tCgk6Q-5e8_MsE/s400/actions.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: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;blockquote&gt;
&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;
&lt;i style=&quot;color: #444444;&quot;&gt;&lt;b&gt;Code ::&lt;/b&gt;&lt;/i&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #0b5394; font-family: Verdana,sans-serif;&quot;&gt;var n1:greeter=new greeter();&lt;br /&gt;n1.init_name(&quot;Anand&quot;);&lt;br /&gt;n1.hello();&lt;br /&gt;&lt;br /&gt;var n2:greeter=new greeter();&lt;br /&gt;n2.init_name(&quot;Dimitri&quot;);&lt;br /&gt;n2.hello();&lt;/span&gt;&lt;span style=&quot;color: #0b5394; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt; &lt;/span&gt;&lt;/blockquote&gt;
&lt;hr /&gt;
&lt;div style=&quot;color: #444444; font-family: Verdana,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;Code Description ::&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #444444; font-family: Verdana,sans-serif;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;blockquote&gt;
&lt;div style=&quot;color: #444444; font-family: Verdana,sans-serif;&quot;&gt;
&lt;span style=&quot;color: #0b5394; font-family: Verdana,sans-serif; font-size: small;&quot;&gt;var n1:greeter=new 
greeter();&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #444444; font-family: Verdana,sans-serif;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: #444444; font-family: Verdana,sans-serif;&quot;&gt;
&lt;span style=&quot;color: #0b5394; font-family: Verdana,sans-serif; font-size: small;&quot;&gt;&lt;span style=&quot;color: #444444;&quot;&gt;This line of code creates a new &lt;b&gt;object &lt;/b&gt;with an &lt;b&gt;instance name&lt;/b&gt; &quot;n1&quot;, in this case an object of class greeter.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #444444; font-family: Verdana,sans-serif;&quot;&gt;
&lt;span style=&quot;color: #0b5394; font-family: Verdana,sans-serif; font-size: small;&quot;&gt;&lt;span style=&quot;color: #444444;&quot;&gt;As soon as an instance of the object is created, the constructor function is called and instances of variables and functions are created, specific to each instance.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/blockquote&gt;
&lt;blockquote&gt;
&lt;span style=&quot;color: #0b5394; font-family: Verdana,sans-serif; font-size: small;&quot;&gt;n1.init_name(&quot;Anand&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #0b5394; font-family: Verdana,sans-serif; font-size: small;&quot;&gt;&lt;span style=&quot;color: #444444;&quot;&gt;Here, we are calling the &quot;init_name&quot; function from the n1
 instance of the greeter object with arguments &quot;Anand&quot;.&lt;/span&gt;&lt;/span&gt;&lt;/blockquote&gt;
&lt;blockquote&gt;
&lt;span style=&quot;color: #0b5394;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;n1.hello();&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #0b5394;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;color: #444444;&quot;&gt;This calls the hello function of the n1 instance of greeter object.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/blockquote&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #0b5394;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;color: #444444;&quot;&gt;&amp;nbsp;Similarly, in the next few lines, a new instance of the object greeter, &quot;n2&quot; is created and functions are called from this instance.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #0b5394;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;color: #444444;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&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/AVvXsEjBPjXOCJwqm8nbdCvrCmCtN8McqlwOoDxOh2Caq2rAx7cYXubicXdpzhhS4jKfyeHm5zlNN2jGmQCyirG6e1hskovkWIk8p95a2mM90pBuXsdqYq_dy601fAY84CxVp5NfY5hE5Q0Uxj0/s1600/out_obj.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; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjBPjXOCJwqm8nbdCvrCmCtN8McqlwOoDxOh2Caq2rAx7cYXubicXdpzhhS4jKfyeHm5zlNN2jGmQCyirG6e1hskovkWIk8p95a2mM90pBuXsdqYq_dy601fAY84CxVp5NfY5hE5Q0Uxj0/s320/out_obj.JPG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;color: #0b5394;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;color: #444444;&quot;&gt;Now that we are done with the code, we can&lt;b&gt; test the 
movie&lt;/b&gt;.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #0b5394;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;color: #444444;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;color: #444444;&quot;&gt;To do so, press &lt;b&gt;Ctrl+Enter &lt;/b&gt;and you can see the output generated by the trace function in the output window...&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;color: black;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: black;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;In case of any existing confusion about objects and 
classes, this schematic should help you better understand them...&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&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/AVvXsEjjCWMlZf7p9SobiezXhtN8vbtEavnsJdnUvQcW8CvtyNWLJAvjQoXTorgSMC12a57Lm6mfLjVjdXDycGlr7mL84RuCX8BknJj0mrD4zymEdmiKLQi-QD1Zt_5hklKMlbqKj0RhD0Ay9mQ/s1600/object-concept.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjjCWMlZf7p9SobiezXhtN8vbtEavnsJdnUvQcW8CvtyNWLJAvjQoXTorgSMC12a57Lm6mfLjVjdXDycGlr7mL84RuCX8BknJj0mrD4zymEdmiKLQi-QD1Zt_5hklKMlbqKj0RhD0Ay9mQ/s320/object-concept.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;color: #0b5394;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;color: #444444;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;color: black;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: black;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;Incase you face any problems or if you have any sujjestions, feel free to leave a comment.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;color: #6fa8dc;&quot;&gt;&lt;/span&gt;&lt;/span&gt;</description><link>http://codedcreativity.blogspot.com/2010/07/implementing-custom-classes-in-as3.html</link><author>noreply@blogger.com (Anand Varma)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjrUjOWtTN1mIX6sum9K9Rw4LxVMZSAKwEHVrmM1W7HU7ZpbclTCbhrMWpCJqClQmibT5eWvT5_9AHhbOCQHu-tHQR61oWcf6HWwYRVkVNG6xCaKMOwuKnVvVpY9wEPYHBNuaOqFKLIEpw/s72-c/fla.jpg" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-5952126122609606728.post-8244176727177325281</guid><pubDate>Sat, 10 Jul 2010 04:45:00 +0000</pubDate><atom:updated>2010-07-10T22:31:35.706-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">ActionScript</category><category domain="http://www.blogger.com/atom/ns#">as3</category><category domain="http://www.blogger.com/atom/ns#">classes</category><category domain="http://www.blogger.com/atom/ns#">Flash</category><category domain="http://www.blogger.com/atom/ns#">objects</category><category domain="http://www.blogger.com/atom/ns#">OOP</category><category domain="http://www.blogger.com/atom/ns#">package</category><title>Getting Started with ActionScript 3.0</title><description>&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;Before we begin with ActionScript, we should know that As3 is an &lt;b&gt;object oriendted programming&lt;/b&gt; language (&lt;b&gt;OOP&lt;/b&gt;) and thus it&#39;s highly sujjested you go through the &lt;a href=&quot;http://www.kirupa.com/developer/as3/introduction_to_oop.htm&quot;&gt;Introduction of OOP article&lt;/a&gt; before continuing...&lt;/span&gt;&lt;br /&gt;
&lt;blockquote&gt;
&lt;div style=&quot;color: #6fa8dc;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;A quick Summary of OOP ::&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;In the oop model, pieces of code are considered objects and each such object is properly defined by a class with variables and functions specific to the object. Such discrete pieces of code can be easily reused and allows for encapsulation.&lt;/span&gt;&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiIkhJdNH_p_3AGSnGpLqoGqGQRco9WEla8eWIOyH40kUdSpVjunMSC1FxWRUnQjUITFk8G9Im2NI1ccQJQUcmCswZMcsUoyBCqOlaa3ws6IO1X3nPQlrmbQocnkSCEWPNXsLpHVxrD5KE/s1600/as.jpg&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/AVvXsEiIkhJdNH_p_3AGSnGpLqoGqGQRco9WEla8eWIOyH40kUdSpVjunMSC1FxWRUnQjUITFk8G9Im2NI1ccQJQUcmCswZMcsUoyBCqOlaa3ws6IO1X3nPQlrmbQocnkSCEWPNXsLpHVxrD5KE/s320/as.jpg&quot; /&gt;&lt;/a&gt;&lt;/blockquote&gt;
&lt;i style=&quot;color: #6fa8dc; font-family: Verdana,sans-serif;&quot;&gt;&lt;b&gt;Creating you first class and package&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;A &lt;b&gt;package &lt;/b&gt;is a collection of classes, more like a folder with all the classes needed for the project.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;And classes are pieces of code that define functions and variables specific to an object.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;lets not get into the details now and start with our first class which defines a Ball Object.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;Open Flash and choose to create a new file (Ctrl+N) and select ActionScriptFile and write the code as shown below and save it as &lt;i&gt;Ball.as&lt;/i&gt; &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;b&gt;Note:: &lt;/b&gt;&lt;i&gt;A package name is also the relative path to the class with respect to the flash files. So in this case if you intent to save your flash files in the C:\ Drive, the the actionscript file (Ball.as) sholud be saved in C:\mypackage\as3\&lt;/i&gt; &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote&gt;
&lt;div style=&quot;color: #444444; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;
&lt;i&gt;&lt;b&gt;Code::&lt;/b&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div style=&quot;color: #0b5394;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;package mypackage.as3 {&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #0b5394;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;class Ball&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #0b5394;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #0b5394;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&amp;nbsp;import flash.display.*;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #0b5394;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&amp;nbsp;var x:Number;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #0b5394;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&amp;nbsp;var y;Number;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #0b5394;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #0b5394;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;function Ball(){&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #999999;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;// some initialization code here&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #0b5394;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;trace(&quot;Object Successfully created&quot;); &lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #0b5394;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #0b5394;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: #0b5394;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;public function changeSize(){&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #999999;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;// code to change size here &lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #0b5394;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;}&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #0b5394;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #0b5394;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;private function secret(){&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #999999;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;// some code, whose functionality you wish to hide&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #0b5394;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #0b5394;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;} &lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #0b5394;&quot;&gt;
}&lt;/div&gt;
&lt;/blockquote&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;hr /&gt;
&lt;div style=&quot;color: #444444;&quot;&gt;
&lt;i style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;font-size: large;&quot;&gt;Code Description ::&lt;/span&gt;&lt;/b&gt;&lt;/i&gt;&lt;/div&gt;
&lt;blockquote&gt;
&lt;span style=&quot;color: #0b5394; font-family: Verdana,sans-serif;&quot;&gt;package mypackage.as3&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #0b5394; font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;color: #444444;&quot;&gt;in this line, we are defining a package, which acts as a repository of all our classes written for the specific application. &lt;/span&gt;&lt;/span&gt;&lt;/blockquote&gt;
&lt;blockquote&gt;
&lt;span style=&quot;color: #0b5394; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;class Ball{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #0b5394; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;import flash.display.*; &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #444444; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;in the first line, we are defining our class which contains properties and functions of any Ball object that we use in our program. And the second line imports all classes from the display package so that they could be used in our class.&lt;/span&gt;&lt;/blockquote&gt;
&lt;blockquote&gt;
&lt;div style=&quot;color: #0b5394; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;
&amp;nbsp;var x:Number;&lt;/div&gt;
&lt;div style=&quot;color: #0b5394; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;
&amp;nbsp;var 
y:Number;&lt;/div&gt;
&lt;div style=&quot;color: #0b5394;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: #0b5394;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;color: #444444;&quot;&gt;Now we are creating two variables x and y which will exist for every instance of the ball object which we create in the future.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #0b5394;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;color: #444444;&quot;&gt;here &quot;var&quot; keyword indicates that we are creating a new variable of name &quot;x&quot; and &quot;:Number&quot; tells it what type of variable it is. In this case, a number.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #0b5394;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;background-color: #cccccc; color: #444444;&quot;&gt;&lt;span style=&quot;background-color: black;&quot;&gt;&lt;span style=&quot;background-color: #eeeeee;&quot;&gt;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;&lt;span style=&quot;background-color: #eeeeee;&quot;&gt;Syntax for Creating a new Variable :: var variableName:variableType;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/blockquote&gt;
&lt;blockquote&gt;
&lt;div style=&quot;color: #0b5394;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #0b5394; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;
function Ball(){&lt;/div&gt;
&lt;div style=&quot;color: #0b5394; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;
// some 
initialization code here&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;color: #0b5394; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;
trace(&quot;Object Successfully 
created&quot;); &lt;/div&gt;
&lt;div style=&quot;color: #0b5394; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;
}&lt;/div&gt;
&lt;div style=&quot;color: #3d85c6;&quot;&gt;
&lt;span style=&quot;color: #444444;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;Here, we are defining a constructor. A constructor is a special function which is executed as soon as an instance of an object is created. It is distinguished from other functions as it has the same name as the class.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #3d85c6;&quot;&gt;
&lt;span style=&quot;color: #444444;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;The trace function is one that is heavily used for debugging in flash. This function prints the arguments passed into an output window. In this case, it prints &quot;Object Successfully created&quot;.&lt;/span&gt;&lt;/span&gt;&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/AVvXsEjPSm2U2rbkaxt2bNMnRWqLBSgjh3Kim2ooOJzSxAV9-tIsSyEfdMotfeVEd3l05i-j05HlPEB4LTuqkdT0PI3TNRJifVfxcV_z22hywID9awHLV5vfacOb8eXWWA8MXgMxUQo0IJSnTNs/s1600/trace.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjPSm2U2rbkaxt2bNMnRWqLBSgjh3Kim2ooOJzSxAV9-tIsSyEfdMotfeVEd3l05i-j05HlPEB4LTuqkdT0PI3TNRJifVfxcV_z22hywID9awHLV5vfacOb8eXWWA8MXgMxUQo0IJSnTNs/s320/trace.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;color: #3d85c6;&quot;&gt;
&lt;span style=&quot;color: #444444;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #3d85c6;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: #0b5394; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;
public function changeSize(){&lt;/div&gt;
&lt;div style=&quot;color: #0b5394; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;
// code to change size here &lt;/div&gt;
&lt;div style=&quot;color: #0b5394; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;
}&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;color: #3d85c6;&quot;&gt;
&lt;span style=&quot;color: #444444;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;Here,
 we are defining a normal function by the name changeSize. The function type is set to &lt;b&gt;public&lt;/b&gt; (access modifier) which means that it can be accessed from outside the class too.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style=&quot;color: #444444;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;i&gt;AcessModifiers can be prefixed to classes, functions and any kind of variables.&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;color: #0b5394; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;
private function secret(){&lt;/div&gt;
&lt;div style=&quot;color: #0b5394; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;
// some code, whose functionality you wish to hide&lt;/div&gt;
&lt;div style=&quot;color: #0b5394; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;
}&lt;/div&gt;
&lt;div style=&quot;color: #3d85c6;&quot;&gt;
&lt;span style=&quot;color: #444444;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;Here,
 we are defining another function, only this time, the access modifier set to &lt;b&gt;private&lt;/b&gt; which means it can only be called from inside the class&lt;/span&gt;&lt;/span&gt;. &lt;/div&gt;
&lt;div style=&quot;color: #3d85c6;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: #0b5394;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;background-color: #cccccc; color: #444444;&quot;&gt;&lt;span style=&quot;background-color: black;&quot;&gt;&lt;span style=&quot;background-color: #eeeeee;&quot;&gt;&lt;span style=&quot;background-color: #cccccc;&quot;&gt;&lt;span style=&quot;background-color: #eeeeee;&quot;&gt;Syntax for Defining a function :: function functionName(parameters-here){ }&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/blockquote&gt;
&lt;hr /&gt;
&lt;div style=&quot;color: black; font-family: Verdana,sans-serif;&quot;&gt;
&lt;br /&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&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/AVvXsEjHZ2zyc8oD0TaVZk2vp8CaUIEqoZVxT-SHBssVgY6EPc5EnU5e46ucQTXADOEMzUKg4yUBxmNZ_25kPw_gYIqpNgCv4p7ot8ATFQTsB1Odbsap9ygYUzeNto-EgpWB0RL35OdlYB6XIaA/s1600/helpball.gif&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/AVvXsEjHZ2zyc8oD0TaVZk2vp8CaUIEqoZVxT-SHBssVgY6EPc5EnU5e46ucQTXADOEMzUKg4yUBxmNZ_25kPw_gYIqpNgCv4p7ot8ATFQTsB1Odbsap9ygYUzeNto-EgpWB0RL35OdlYB6XIaA/s320/helpball.gif&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;i&gt;This is just the actionscript class for an object, Ball. You will not be able to see the output as we have&#39;nt created any instance of the ball object yet. And even if you feel a little intimidated by all the jargon and complexity of OOP, i can best assure you you can still go ahead as one can develop applications without using classes too...&lt;/i&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;i&gt;Read the acticle, &lt;a href=&quot;http://codedcreativity.blogspot.com/2010/07/implementing-custom-classes-in-as3.html&quot;&gt;Implementing Custom classes&lt;/a&gt; to know how to implement classes and custom objects into Flash.&lt;/i&gt;&lt;/div&gt;
&lt;i&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div style=&quot;color: #0b5394;&quot;&gt;
&lt;/div&gt;</description><link>http://codedcreativity.blogspot.com/2010/07/getting-started-with-actionscript-30.html</link><author>noreply@blogger.com (Anand Varma)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiIkhJdNH_p_3AGSnGpLqoGqGQRco9WEla8eWIOyH40kUdSpVjunMSC1FxWRUnQjUITFk8G9Im2NI1ccQJQUcmCswZMcsUoyBCqOlaa3ws6IO1X3nPQlrmbQocnkSCEWPNXsLpHVxrD5KE/s72-c/as.jpg" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-5952126122609606728.post-2077275122993040666</guid><pubDate>Sat, 10 Jul 2010 04:43:00 +0000</pubDate><atom:updated>2010-07-10T22:31:46.118-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">ActionScript</category><category domain="http://www.blogger.com/atom/ns#">as3</category><category domain="http://www.blogger.com/atom/ns#">Flash</category><title>Introduction to ActionScript</title><description>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://upload.wikimedia.org/wikipedia/en/0/0f/ActionScript_icon.png&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;200&quot; src=&quot;http://upload.wikimedia.org/wikipedia/en/0/0f/ActionScript_icon.png&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
ActionScript is an open source scripting  language, developed by Adobe to be used with it&#39;s authoring software,  Flash to create rich interactive applications for the web, targeting the  Flash Player platform.&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
It is a implementation of the ECMA script and  hence shares major similarities in syntax with the ever so popular  Javascript. &lt;br /&gt;
&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
What  was started to merely move sprites on the stage of a Flash movie,  ActionScript and Flash saw a great deal of evolution and have  incorporated a great deal of functionality over time and have proved  their mettle when it comes to creating rich and interactive content for  the web.&lt;/div&gt;
&amp;nbsp; &lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;color: #6fa8dc;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;i style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;b&gt;ActionScript  3.0&lt;/b&gt;&lt;/i&gt;&lt;/span&gt; &lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;Following  the takeover of Macromedia, Adobe had acquired the trademarks for Flash  and Actionscript. To hold the loyalty of Flash developers, Adobe worked  a great deal on developing the Flash authoring tool and the  ActionScript language and made major changes to the core functions and  classes and also introduced some very new classes for native touch  support and some other new technologies.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;A year later,along with Flash Player 9, Adobe  released a newer variant of ActionScript which was completely re-written  and a whole new framework was developed from scratch&amp;nbsp; for it to run on (  the Action Script Virtual machine 2 (or) ASVM2 ). This meant that flash  content written with AS3 (Actionscript 3) would run upto 10 times  faster than any legacy ActionScript code. AS3 also introduced Object  Oriented Programming(OOP) which allowed for re-usability of code and  better management of code. Since so many major changes were made, flash  movies using AS3 would not be backward compatible and to support this, a  great acceptance of the flash player was shown after release.&amp;nbsp; &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;i&gt;&lt;b&gt;&lt;span style=&quot;color: #6fa8dc; font-family: Verdana,sans-serif;&quot;&gt;Migrating to ActionScript 3.0 (Pros and Cons)&lt;/span&gt;&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;ActionScript 3 brought along with it  tremendous amount of changes and people had mixed opinions on the newer  variant and were hesitant to shift to AS3 considering the steep learning  curve associated with it.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;But  on the other hand it had brought in vast functionality which was  previously unavailable. The libraries had grown two-fold and not to  mention the new ASVM2 framework and GPU accelration for media rich rich  content which allowed for a faster and smoother experience of content at  the end-user.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;The pros had  definitely out-weighed the cons and developers were seen slowly  migrating to AS3.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;color: #6fa8dc;&quot;&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;i style=&quot;color: #6fa8dc;&quot;&gt;&lt;b&gt;Conclusion  &lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;Adobe has  firmly grounded its roots into the web industry with it&#39;s roster of  popular software solutions for web design and with the new additions of  Flash into its roster adds a cap to its feather.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;Sure ActionScript3 comes with a steep learning  curve but then the results are totally worth it if you are interested  in programming rich internet Applications&amp;nbsp; or web design. Though it  might seem frightening in the begenning, you will definitely get a hang  of it in some time and considering the vast community support available  thorught forums and websites dedicated to AS3, it would just make life  simpler.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;Considering the  fact that Flash Player is one of the most accepted plug-in with about  99% of the computers enjoying its capabilities and the fact that user  experience is taking higher priority, Flash is here to stay.&amp;nbsp; &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;Subscribe to the RSS feed  and stay updated with the latest tutorials and news on flash...&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;</description><link>http://codedcreativity.blogspot.com/2010/07/introduction-to-actionscript_09.html</link><author>noreply@blogger.com (Anand Varma)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-5952126122609606728.post-5096994960739921463</guid><pubDate>Fri, 09 Jul 2010 06:30:00 +0000</pubDate><atom:updated>2010-07-10T11:41:17.274-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Misc.</category><title>Hello World !</title><description>&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
hello World&lt;script type=&quot;text/javascript&quot;&gt;
 &lt;!--
google_ad_client = &quot;pub-0333375826625217&quot;;
/* 468x60, created 7/10/10 */
google_ad_slot = &quot;7293240286&quot;;
google_ad_width = 468;
google_ad_height = 60;
//--&gt;
&lt;/script&gt;
&lt;script src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;&lt;/div&gt;</description><link>http://codedcreativity.blogspot.com/2010/07/hello-world.html</link><author>noreply@blogger.com (Anand Varma)</author><thr:total>0</thr:total></item></channel></rss>