<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-1982733204265358962</id><updated>2025-06-27T05:37:23.535-07:00</updated><category term="Arrays in actionScript"/><category term="Introduction to Flash CS3"/><category term="Sprite"/><category term="packages"/><category term="startDrag()"/><title type='text'>Action Script3</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://action-script3.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1982733204265358962/posts/default'/><link rel='alternate' type='text/html' href='http://action-script3.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Pravin Varma</name><uri>http://www.blogger.com/profile/02643510945595556469</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='21' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhZSFUYLg8TbvFJ-jjmnQbl9BwD5rdk_6XgANkM4cW24HZWc-95-YaOb73m88qbFGAKMyyunC4tQpf6ISJArwtj_CGIHmLRu4-veUOWvQ1Et6gpQzod4RReLCwED-12Nc8/s220/190411_1947056677220_1266657561_32268360_6378271_n.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>11</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1982733204265358962.post-2776975827854969412</id><published>2008-06-18T23:08:00.000-07:00</published><updated>2008-06-18T23:13:08.502-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Arrays in actionScript"/><title type='text'>Working with arrays in ActionScript3</title><content type='html'>&lt;span style=&quot;font-size:100%;&quot;&gt;&lt;span style=&quot;font-family:verdana;&quot;&gt;In programming languages we store values in variables i.e. we allocate a memory location for this value. The variable name identifies the location of the value in memory.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family:verdana;&quot;&gt;This method proves to be good until we need to store four to five variables. Think of the situation where we need to store ten to twenty values. Storing in variable will increase the length of the program also it is difficult to remember all the variable names. In such situations arrays come to rescue. An array is data structure where we can store multiple values. Each value is given a unique non-negative index number. This index number starts with 0 and increments by 1 for each subsequent vale in the array.&lt;/span&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://action-script3.blogspot.com/feeds/2776975827854969412/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1982733204265358962/2776975827854969412' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1982733204265358962/posts/default/2776975827854969412'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1982733204265358962/posts/default/2776975827854969412'/><link rel='alternate' type='text/html' href='http://action-script3.blogspot.com/2008/06/working-with-arrays-in-action-script3.html' title='Working with arrays in ActionScript3'/><author><name>Pravin Varma</name><uri>http://www.blogger.com/profile/02643510945595556469</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='21' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhZSFUYLg8TbvFJ-jjmnQbl9BwD5rdk_6XgANkM4cW24HZWc-95-YaOb73m88qbFGAKMyyunC4tQpf6ISJArwtj_CGIHmLRu4-veUOWvQ1Et6gpQzod4RReLCwED-12Nc8/s220/190411_1947056677220_1266657561_32268360_6378271_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1982733204265358962.post-5481293184553448098</id><published>2008-05-29T22:15:00.000-07:00</published><updated>2008-05-29T22:17:55.649-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="startDrag()"/><title type='text'>Using StartDrag Method In ActionScript 3</title><content type='html'>&lt;span style=&quot;font-family:arial;&quot;&gt;The startDrag method makes a specified sprite draggable. The sprite remains draggable until it is explicitly stopped by the sprite.startDrag() method or until some other sprite is made draggable. We can make only one sprite draggable at a time.&lt;br /&gt;&lt;br /&gt;The following example demonstrates the use of startDrag method&lt;br /&gt;&lt;br /&gt;import flash.display.Sprite&lt;br /&gt;import flash.events.MouseEvent&lt;br /&gt;var circle:Sprite=new Sprite();&lt;br /&gt;circle.graphics.beginFill(0xFFCC00);&lt;br /&gt;circle.graphics.drawCircle(225,225,20);&lt;br /&gt;addChild(circle);&lt;br /&gt;circle.addEventListener(MouseEvent.MOUSE_DOWN,dragmethod);&lt;br /&gt;&lt;br /&gt;function dragmethod(Event:MouseEvent):void{&lt;br /&gt;circle.startDrag();&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The first line imports the class Sprite from the disply package. The second line then imports&lt;br /&gt;the mouseEvent class from event package. Then we create circle sprite.&lt;br /&gt;We have use the graphics property of the sprite in the next line to draw and fill the circle .&lt;br /&gt;The beginFill graphic method takes octal color value as an argument and the draw circle takes three arguments which are x postion, y postion and the radius of circle respectively.&lt;br /&gt;Then we add this circle sprite on the stage by using the addChild method.&lt;br /&gt;&lt;br /&gt;The addEventListner method is used to register the listner function(dragmethod)&lt;br /&gt;with the target of the event(circle sprite). we can name this listnerfunction withany valid identifier.&lt;br /&gt;Then we create the listner function(dragmethod) which contains the statement circle.startDrag()&lt;br /&gt;which makes the circle draggable when user clicks the circle.&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://action-script3.blogspot.com/feeds/5481293184553448098/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1982733204265358962/5481293184553448098' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1982733204265358962/posts/default/5481293184553448098'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1982733204265358962/posts/default/5481293184553448098'/><link rel='alternate' type='text/html' href='http://action-script3.blogspot.com/2008/05/using-startdrag-method-in-actionscript.html' title='Using StartDrag Method In ActionScript 3'/><author><name>Pravin Varma</name><uri>http://www.blogger.com/profile/02643510945595556469</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='21' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhZSFUYLg8TbvFJ-jjmnQbl9BwD5rdk_6XgANkM4cW24HZWc-95-YaOb73m88qbFGAKMyyunC4tQpf6ISJArwtj_CGIHmLRu4-veUOWvQ1Et6gpQzod4RReLCwED-12Nc8/s220/190411_1947056677220_1266657561_32268360_6378271_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1982733204265358962.post-188767959992751578</id><published>2008-05-28T06:04:00.000-07:00</published><updated>2008-06-16T04:54:06.259-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Sprite"/><title type='text'>Sprite in ActionScript 3</title><content type='html'>&lt;span style=&quot;font-family:arial;&quot;&gt;A sprite is a new feature introduced in Action Script 3 but unlike MovieClip, Sprite does not contain Timeline. As in Action Script 2, a MovieClip can contain another MoviClip, same is true for Sprite i.e. sprite can contain a children.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Example:&lt;/strong&gt;&lt;br /&gt;Import flash.display.Sprite&lt;br /&gt;var circle:Sprite=new Sprite();&lt;br /&gt;circle.graphics.beginFill(0xFFCC00);&lt;br /&gt;circle.graphics.drawCircle(200,200,20);&lt;br /&gt;addChild(circle);&lt;br /&gt;&lt;br /&gt;In the above example we have imported the class Sprite. In the next line we have declared a new class circle. By using the graphics property we draw a circle of radius 20 at the location 200 &amp;amp; 200. We fill this circle by the yellow color using the beginfill() Method. Finally, the addChild method adds circle instance on the stage.&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://action-script3.blogspot.com/feeds/188767959992751578/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1982733204265358962/188767959992751578' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1982733204265358962/posts/default/188767959992751578'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1982733204265358962/posts/default/188767959992751578'/><link rel='alternate' type='text/html' href='http://action-script3.blogspot.com/2008/05/sprite-in-actionscript-3.html' title='Sprite in ActionScript 3'/><author><name>Pravin Varma</name><uri>http://www.blogger.com/profile/02643510945595556469</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='21' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhZSFUYLg8TbvFJ-jjmnQbl9BwD5rdk_6XgANkM4cW24HZWc-95-YaOb73m88qbFGAKMyyunC4tQpf6ISJArwtj_CGIHmLRu4-veUOWvQ1Et6gpQzod4RReLCwED-12Nc8/s220/190411_1947056677220_1266657561_32268360_6378271_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1982733204265358962.post-3623405314265562370</id><published>2008-05-27T04:43:00.000-07:00</published><updated>2008-12-11T14:43:57.245-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="packages"/><title type='text'>Package in ActionScript 3</title><content type='html'>&lt;span style=&quot;font-family:arial;&quot;&gt;&lt;strong&gt;Syntax:&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;Package{&lt;br /&gt;Class classname&lt;br /&gt;{&lt;br /&gt;…………&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;Package allows grouping of the code so that it can be imported by some other script. We use Package keyword to show that class belongs to that package.&lt;br /&gt;The Flash Player API classes are in the flash.* package. For example Flash API contains package flash.net package for transmitting data to and from the server. The package flash.* contains the following classes:&lt;br /&gt;&lt;br /&gt;1) The action Script Component Classes which are included in the Packages: fl.accessibility, fl.conatiners, fl.controls, fl.core, fl.data, fl.events, fl.livepreview and fl.managers.&lt;br /&gt;2) FLV playback component classes are included in the Package fla.video&lt;br /&gt;3) Local class for Multilanguage classes are in the Package: fl.lang&lt;br /&gt;4) The Motion classes are included in the Package: fl.motion&lt;br /&gt;5) The Tween and Transition classes are included in the Package: fl.transitions&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiTXqVSZn27I6bOhAvh-aZprd1rP6xQWgIIIvDofWw0rupWLpSyB95HW3AUmKQvzPRspVdQMJ_r4utDPtWS7UhTgdCQ6yeMJYZjddGnKriSKAIKjTQmj9kF2aYK2nwrKcZqy2KuMhvONZQe/s1600-h/package.jpg&quot;&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;&lt;img id=&quot;BLOGGER_PHOTO_ID_5205023468527978290&quot; style=&quot;CURSOR: hand&quot; alt=&quot;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiTXqVSZn27I6bOhAvh-aZprd1rP6xQWgIIIvDofWw0rupWLpSyB95HW3AUmKQvzPRspVdQMJ_r4utDPtWS7UhTgdCQ6yeMJYZjddGnKriSKAIKjTQmj9kF2aYK2nwrKcZqy2KuMhvONZQe/s320/package.jpg&quot; border=&quot;0&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;&lt;br /&gt;&lt;strong&gt;Containers Package contains ScrollPane Class&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://action-script3.blogspot.com/feeds/3623405314265562370/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1982733204265358962/3623405314265562370' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1982733204265358962/posts/default/3623405314265562370'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1982733204265358962/posts/default/3623405314265562370'/><link rel='alternate' type='text/html' href='http://action-script3.blogspot.com/2008/05/package-in-actionscript-3.html' title='Package in ActionScript 3'/><author><name>Pravin Varma</name><uri>http://www.blogger.com/profile/02643510945595556469</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='21' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhZSFUYLg8TbvFJ-jjmnQbl9BwD5rdk_6XgANkM4cW24HZWc-95-YaOb73m88qbFGAKMyyunC4tQpf6ISJArwtj_CGIHmLRu4-veUOWvQ1Et6gpQzod4RReLCwED-12Nc8/s220/190411_1947056677220_1266657561_32268360_6378271_n.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiTXqVSZn27I6bOhAvh-aZprd1rP6xQWgIIIvDofWw0rupWLpSyB95HW3AUmKQvzPRspVdQMJ_r4utDPtWS7UhTgdCQ6yeMJYZjddGnKriSKAIKjTQmj9kF2aYK2nwrKcZqy2KuMhvONZQe/s72-c/package.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1982733204265358962.post-284232020195733194</id><published>2008-05-07T02:00:00.000-07:00</published><updated>2008-05-07T02:01:13.969-07:00</updated><title type='text'>Difference In Event Handling Between ActionScript 2 and ActionScript 3</title><content type='html'>&lt;span style=&quot;font-family:verdana;font-size:85%;&quot;&gt;In the previous versions there were several methods of event handling like on() method which could be placed directly on movie clip or button instances, &lt;span class=&quot;blsp-spelling-error&quot; id=&quot;SPELLING_ERROR_0&quot;&gt;onClipEvent&lt;/span&gt;() method which could be used directly on movie clip instances. These method has disadvantages. As the code is placed directly on the movie clip or button, it becomes difficult to find out the code for the big projects.&lt;br /&gt;To overcome these problem Single Event Handling system is developed which is based on &lt;/span&gt;&lt;a href=&quot;http://www.w3.org/TR/DOM-Level-3-Core/&quot;&gt;&lt;span style=&quot;font-family:verdana;font-size:85%;&quot;&gt;DOM (Document Object Model) level 3 specifications&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-family:verdana;font-size:85%;&quot;&gt;.&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://action-script3.blogspot.com/feeds/284232020195733194/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1982733204265358962/284232020195733194' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1982733204265358962/posts/default/284232020195733194'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1982733204265358962/posts/default/284232020195733194'/><link rel='alternate' type='text/html' href='http://action-script3.blogspot.com/2008/05/difference-in-event-handling-between.html' title='Difference In Event Handling Between ActionScript 2 and ActionScript 3'/><author><name>Pravin Varma</name><uri>http://www.blogger.com/profile/02643510945595556469</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='21' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhZSFUYLg8TbvFJ-jjmnQbl9BwD5rdk_6XgANkM4cW24HZWc-95-YaOb73m88qbFGAKMyyunC4tQpf6ISJArwtj_CGIHmLRu4-veUOWvQ1Et6gpQzod4RReLCwED-12Nc8/s220/190411_1947056677220_1266657561_32268360_6378271_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1982733204265358962.post-7863859665586396012</id><published>2008-05-06T03:20:00.000-07:00</published><updated>2008-05-06T21:37:41.058-07:00</updated><title type='text'>Object In Action Script 3</title><content type='html'>&lt;span style=&quot;font-family:verdana;font-size:85%;&quot;&gt;Action Script is an OOP(Object Oriented Programming) language in which code is well organized. In OOP the primary focus is on object. Earlier programming was seen as mehod in which user gives some input, computer process it and the gives output. The whole process involves series of instructions where the code may repeat many times. Object can be a flower which has the properties like color, smell etc. Where as class is the collection of all the flowers in the world which have the same properties. In action script there are any class can have the following characterestics :&lt;br /&gt;&lt;/span&gt;&lt;ul&gt;&lt;li&gt;&lt;span style=&quot;font-family:verdana;font-size:85%;&quot;&gt;Properties&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family:verdana;font-size:85%;&quot;&gt;Methods&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family:verdana;font-size:85%;&quot;&gt;Events&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;span style=&quot;font-family:verdana;font-size:85%;&quot;&gt;Properties are the group of data binded togather with object. As explained above a flower object might have the properties like smell, color, shape etc. Similarly the movie clip class has the properties like rotation, alpha, scale etc. In the following example the code scales the movie clip fly to the double of its existing size. &lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family:verdana;font-size:85%;&quot;&gt;fly.scaleY=2;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family:verdana;font-size:85%;&quot;&gt;The syntax can be: object.property=value&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family:verdana;font-size:85%;&quot;&gt;This whole structure is taken as a single variable and stored in a memory as a single value.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family:verdana;font-size:85%;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family:verdana;font-size:85%;&quot;&gt;Method is an action that instructs object to do a perticular task. Suppose we have a movieclip named fly which has its separate timeline and contains some animation on it. Then we can instruct this movie clip to play by using the following code:&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family:verdana;font-size:85%;&quot;&gt;fly.play() where the fly is a movie clip object and play is the method.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family:verdana;font-size:85%;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family:verdana;font-size:85%;&quot;&gt;As we know that Action Script is a programming language which is used with flash for creating interactive application and websites. This interaction involves event. When user click on some element we can set how it will respond on thhat event.&lt;/span&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://action-script3.blogspot.com/feeds/7863859665586396012/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1982733204265358962/7863859665586396012' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1982733204265358962/posts/default/7863859665586396012'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1982733204265358962/posts/default/7863859665586396012'/><link rel='alternate' type='text/html' href='http://action-script3.blogspot.com/2008/05/object-in-action-script-3.html' title='Object In Action Script 3'/><author><name>Pravin Varma</name><uri>http://www.blogger.com/profile/02643510945595556469</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='21' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhZSFUYLg8TbvFJ-jjmnQbl9BwD5rdk_6XgANkM4cW24HZWc-95-YaOb73m88qbFGAKMyyunC4tQpf6ISJArwtj_CGIHmLRu4-veUOWvQ1Et6gpQzod4RReLCwED-12Nc8/s220/190411_1947056677220_1266657561_32268360_6378271_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1982733204265358962.post-3964484004968094354</id><published>2008-05-06T00:30:00.000-07:00</published><updated>2008-05-06T01:56:17.028-07:00</updated><title type='text'>Compatibility of Action Script with earlier versions</title><content type='html'>&lt;span style=&quot;font-family:verdana;font-size:85%;color:#333333;&quot;&gt;There are some compatibility issue with the Flash Player 9. These compatibility issue includes the following:&lt;br /&gt;&lt;/span&gt;&lt;ul&gt;&lt;li&gt;&lt;span style=&quot;font-family:verdana;font-size:85%;color:#333333;&quot;&gt;We can not combine Action Script 1.0 or 2.0 code with 3.0 code in a single &lt;span class=&quot;blsp-spelling-error&quot; id=&quot;SPELLING_ERROR_0&quot;&gt;SWF&lt;/span&gt; file.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family:verdana;font-size:85%;color:#333333;&quot;&gt;Action Script 3 can load &lt;span class=&quot;blsp-spelling-error&quot; id=&quot;SPELLING_ERROR_1&quot;&gt;SWF&lt;/span&gt; file that is programmed in 1.0 or 2.0 but can not access its variables or functions.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family:verdana;&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;color:#333333;&quot;&gt;&lt;span class=&quot;blsp-spelling-error&quot; id=&quot;SPELLING_ERROR_2&quot;&gt;SWF&lt;/span&gt; that is written by using Action Script 1.0 or 2.0 cant load &lt;span class=&quot;blsp-spelling-error&quot; id=&quot;SPELLING_ERROR_3&quot;&gt;SWF&lt;/span&gt; that is written using Action Script3.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;</content><link rel='replies' type='application/atom+xml' href='http://action-script3.blogspot.com/feeds/3964484004968094354/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1982733204265358962/3964484004968094354' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1982733204265358962/posts/default/3964484004968094354'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1982733204265358962/posts/default/3964484004968094354'/><link rel='alternate' type='text/html' href='http://action-script3.blogspot.com/2008/05/compatibility-of-action-script-with.html' title='Compatibility of Action Script with earlier versions'/><author><name>Pravin Varma</name><uri>http://www.blogger.com/profile/02643510945595556469</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='21' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhZSFUYLg8TbvFJ-jjmnQbl9BwD5rdk_6XgANkM4cW24HZWc-95-YaOb73m88qbFGAKMyyunC4tQpf6ISJArwtj_CGIHmLRu4-veUOWvQ1Et6gpQzod4RReLCwED-12Nc8/s220/190411_1947056677220_1266657561_32268360_6378271_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1982733204265358962.post-6287535732555812527</id><published>2008-05-05T23:54:00.000-07:00</published><updated>2008-05-07T00:04:21.003-07:00</updated><title type='text'>Event Handling in action script 3</title><content type='html'>&lt;span style=&quot;font-family:verdana;font-size:85%;&quot;&gt;Many people ask what is event handling, the answer is that it is the technique in which we specify action that should performed on the occurrence of particular event. In Action Script 3 the event handling contains the following three elements:&lt;br /&gt;Event Source: It is the element which actually receives the event. For example a button could be event source which may receive the event click. It is also called as event target as it is targeted by Flash Player and where the event actually occurs.&lt;br /&gt;The Event: Event is the action, to which you want to respond to. It may be rollover, rollout etc...&lt;br /&gt;Event response: Event response are the list of actions which are performed in response to the above mention event.&lt;br /&gt;The Model could be like this:&lt;br /&gt;function The_response( eventObject:EventType)&lt;br /&gt;{&lt;br /&gt;// list of actions&lt;br /&gt;}&lt;br /&gt;eventSource.addEventListener(EventType:EVENT_NAME, The_response);&lt;br /&gt;The code has two sections: The first is the function which we have defined to contain series of actions that are to be performed in response to the event. Here The_response is the function name. This function has the parameter. Specifying the parameters is just like declaring variable. Here we have declared the parameter. There is always a class associated with the events. These classes work as a data type for the parameters of function. In between the opening and closing braces we write code which is the series of actions that are to be performed in response to the event.&lt;br /&gt;After defining the function we can now evoke this function by using event source( may be a button) on the occurrence particular event. We accomplish this by defining addEventListener() method. We have to use events name as the first parameter and the method name without parenthesis as the second parameter.&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://action-script3.blogspot.com/feeds/6287535732555812527/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1982733204265358962/6287535732555812527' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1982733204265358962/posts/default/6287535732555812527'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1982733204265358962/posts/default/6287535732555812527'/><link rel='alternate' type='text/html' href='http://action-script3.blogspot.com/2008/05/event-handling-model-difference-in.html' title='Event Handling in action script 3'/><author><name>Pravin Varma</name><uri>http://www.blogger.com/profile/02643510945595556469</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='21' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhZSFUYLg8TbvFJ-jjmnQbl9BwD5rdk_6XgANkM4cW24HZWc-95-YaOb73m88qbFGAKMyyunC4tQpf6ISJArwtj_CGIHmLRu4-veUOWvQ1Et6gpQzod4RReLCwED-12Nc8/s220/190411_1947056677220_1266657561_32268360_6378271_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1982733204265358962.post-4201640494167980334</id><published>2008-05-03T00:06:00.000-07:00</published><updated>2008-05-06T01:57:47.581-07:00</updated><title type='text'>Data Types In Action Script</title><content type='html'>&lt;p id=&quot;x3930&quot;&gt;&lt;span id=&quot;kx6u2&quot;    style=&quot;font-family:verdana;font-size:85%;color:#333333;&quot;&gt;Action Script in a Object Oriented Programming language that comes with Flash Software. Every programming language has data types. Data types, as the name suggests are the types of data used in the code. The type of data may be string of characters, numbers or boolian. In Action Script data types can be divided into two main categories:&lt;/span&gt;&lt;/p&gt;&lt;p id=&quot;h-xw0&quot;&gt;&lt;span style=&quot;font-family:verdana;font-size:85%;color:#333333;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;p id=&quot;h-xw1&quot;&gt;&lt;span id=&quot;kx6u4&quot;    style=&quot;font-family:verdana;font-size:85%;color:#333333;&quot;&gt;1) Primitive Data Type&lt;/span&gt;&lt;/p&gt;&lt;p id=&quot;h-xw2&quot;&gt;&lt;span style=&quot;font-family:verdana;font-size:85%;color:#333333;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;p id=&quot;h-xw3&quot;&gt;&lt;span id=&quot;kx6u6&quot;    style=&quot;font-family:verdana;font-size:85%;color:#333333;&quot;&gt;2) Complex Data Type&lt;/span&gt;&lt;/p&gt;&lt;p id=&quot;h-xw4&quot;&gt;&lt;span style=&quot;font-family:verdana;font-size:85%;color:#333333;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;p id=&quot;h-xw5&quot;&gt;&lt;span id=&quot;kx6u8&quot;    style=&quot;font-family:verdana;font-size:85%;color:#333333;&quot;&gt;The primitive Data type variables are stored at lower level of abstraction which means operations on this types of data type is faster. Primitive data type includes null, undefined, boolean, string and number. In contrast to the Primitive data type, complex data type is slower in the operation. This data type includes array, functions, Date, Movie Clip, void, Error and XML.&lt;/span&gt;&lt;/p&gt;&lt;p id=&quot;gu.q0&quot;&gt;&lt;span style=&quot;font-family:verdana;font-size:85%;color:#333333;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;p id=&quot;gu.q1&quot;&gt;&lt;span id=&quot;kx6u10&quot;    style=&quot;font-family:verdana;font-size:85%;color:#333333;&quot;&gt;The Boolean data type has two values -true and false. The default value of a boolean variable is false. Null data types means the variable has the value null which means no value. void is a complex data Type and is generally used for the functions which returnes no value.&lt;/span&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://action-script3.blogspot.com/feeds/4201640494167980334/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1982733204265358962/4201640494167980334' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1982733204265358962/posts/default/4201640494167980334'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1982733204265358962/posts/default/4201640494167980334'/><link rel='alternate' type='text/html' href='http://action-script3.blogspot.com/2008/05/data-types-in-action-script-action.html' title='Data Types In Action Script'/><author><name>Pravin Varma</name><uri>http://www.blogger.com/profile/02643510945595556469</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='21' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhZSFUYLg8TbvFJ-jjmnQbl9BwD5rdk_6XgANkM4cW24HZWc-95-YaOb73m88qbFGAKMyyunC4tQpf6ISJArwtj_CGIHmLRu4-veUOWvQ1Et6gpQzod4RReLCwED-12Nc8/s220/190411_1947056677220_1266657561_32268360_6378271_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1982733204265358962.post-4166641354390145786</id><published>2008-05-02T23:14:00.000-07:00</published><updated>2008-05-06T01:55:33.143-07:00</updated><title type='text'>Classes In Flash Action Script</title><content type='html'>&lt;p id=&quot;wk9w0&quot;&gt;&lt;span id=&quot;qejd0&quot;    style=&quot;font-family:verdana;font-size:85%;color:#333333;&quot;&gt;Flash is a software for creating high end web application. Action Script is a Object Oriented Programming Language packed with Flash. Classes are the main feature of any OOP language. A class contains data(properties) and methods(behaviours). After defining a class we create an object of that class. This oject hass all the properties in the class. The defined object is said to be of that class&#39;s data type. In action Script class can be built in or custom. There are 65 built in classes in action script. In the example below employee is a class. This class contains the variables age, name and salary and a class function info. The variables age, name and salary are said to be the properties of the class employee and info is the method or behaviour in the class.&lt;/span&gt;&lt;/p&gt;&lt;p id=&quot;ihlk0&quot;&gt;&lt;span style=&quot;font-family:verdana;font-size:85%;color:#333333;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;p id=&quot;ihlk2&quot;&gt;&lt;span id=&quot;qejd2&quot;    style=&quot;font-family:verdana;font-size:85%;color:#333333;&quot;&gt;class employee&lt;/span&gt;&lt;/p&gt;&lt;p id=&quot;ihlk3&quot;&gt;&lt;span id=&quot;qejd3&quot;    style=&quot;font-family:verdana;font-size:85%;color:#333333;&quot;&gt;{&lt;/span&gt;&lt;/p&gt;&lt;p id=&quot;ihlk4&quot;&gt;&lt;span id=&quot;qejd4&quot;    style=&quot;font-family:verdana;font-size:85%;color:#333333;&quot;&gt;public var age:number;&lt;/span&gt;&lt;/p&gt;&lt;p id=&quot;u04q0&quot;&gt;&lt;span id=&quot;qejd5&quot;    style=&quot;font-family:verdana;font-size:85%;color:#333333;&quot;&gt;public var name:string;&lt;/span&gt;&lt;/p&gt;&lt;p id=&quot;nx4n0&quot;&gt;&lt;span id=&quot;qejd6&quot;    style=&quot;font-family:verdana;font-size:85%;color:#333333;&quot;&gt;private var salary:number;&lt;/span&gt;&lt;/p&gt;&lt;p id=&quot;nx4n1&quot;&gt;&lt;span id=&quot;qejd7&quot;    style=&quot;font-family:verdana;font-size:85%;color:#333333;&quot;&gt;public function info():string&lt;/span&gt;&lt;/p&gt;&lt;p id=&quot;pal00&quot;&gt;&lt;span id=&quot;qejd8&quot;    style=&quot;font-family:verdana;font-size:85%;color:#333333;&quot;&gt;{&lt;/span&gt;&lt;/p&gt;&lt;p id=&quot;pal01&quot;&gt;&lt;span id=&quot;qejd9&quot;    style=&quot;font-family:verdana;font-size:85%;color:#333333;&quot;&gt;// method&lt;/span&gt;&lt;/p&gt;&lt;p id=&quot;pal02&quot;&gt;&lt;span id=&quot;qejd10&quot;    style=&quot;font-family:verdana;font-size:85%;color:#333333;&quot;&gt;}&lt;/span&gt;&lt;/p&gt;&lt;p id=&quot;nx4n2&quot;&gt;&lt;span id=&quot;qejd11&quot;    style=&quot;font-family:verdana;font-size:85%;color:#333333;&quot;&gt;}&lt;/span&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://action-script3.blogspot.com/feeds/4166641354390145786/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1982733204265358962/4166641354390145786' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1982733204265358962/posts/default/4166641354390145786'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1982733204265358962/posts/default/4166641354390145786'/><link rel='alternate' type='text/html' href='http://action-script3.blogspot.com/2008/05/classes-in-flash-action-script-flash-is.html' title='Classes In Flash Action Script'/><author><name>Pravin Varma</name><uri>http://www.blogger.com/profile/02643510945595556469</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='21' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhZSFUYLg8TbvFJ-jjmnQbl9BwD5rdk_6XgANkM4cW24HZWc-95-YaOb73m88qbFGAKMyyunC4tQpf6ISJArwtj_CGIHmLRu4-veUOWvQ1Et6gpQzod4RReLCwED-12Nc8/s220/190411_1947056677220_1266657561_32268360_6378271_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1982733204265358962.post-7854154154230884024</id><published>2008-05-01T23:54:00.000-07:00</published><updated>2008-05-06T01:54:52.703-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Introduction to Flash CS3"/><title type='text'>Flash CS3 Professional</title><content type='html'>&lt;span style=&quot;font-family:verdana;font-size:85%;color:#333333;&quot;&gt;Flash CS3 Professional is software for developing interactive websites, games, mobile applications etc.CS3 is the latest iteration of the flash software launch by Adobe after &lt;span class=&quot;blsp-spelling-corrected&quot; id=&quot;SPELLING_ERROR_0&quot;&gt;acquiring &lt;span class=&quot;blsp-spelling-error&quot; id=&quot;SPELLING_ERROR_0&quot;&gt;Macromedia&lt;/span&gt;&lt;/span&gt;. Flash creates graphics in vector format, means the graphics can be scaled to any size without the loss of quality. It can also work with raster graphics. &lt;span class=&quot;blsp-spelling-error&quot; id=&quot;SPELLING_ERROR_1&quot;&gt;SWF&lt;/span&gt;(Shock Wave File) is the output version of the Flash File(FLA). The &lt;span class=&quot;blsp-spelling-error&quot; id=&quot;SPELLING_ERROR_2&quot;&gt;swf&lt;/span&gt; file can be viewable in web browser as an object if flash player plug-in is installed. The Flash Player is a run time environment. Flash has a programming language known as &lt;span class=&quot;blsp-spelling-error&quot; id=&quot;SPELLING_ERROR_3&quot;&gt;ActionScript&lt;/span&gt;. &lt;span class=&quot;blsp-spelling-error&quot; id=&quot;SPELLING_ERROR_4&quot;&gt;ActionScript&lt;/span&gt; is executed by &lt;span class=&quot;blsp-spelling-error&quot; id=&quot;SPELLING_ERROR_5&quot;&gt;AVM&lt;/span&gt;(&lt;span class=&quot;blsp-spelling-error&quot; id=&quot;SPELLING_ERROR_6&quot;&gt;ActionScript&lt;/span&gt; Virtual Machine). The &lt;span class=&quot;blsp-spelling-error&quot; id=&quot;SPELLING_ERROR_7&quot;&gt;AVM&lt;/span&gt; is a part of flash player. The current version is &lt;span class=&quot;blsp-spelling-error&quot; id=&quot;SPELLING_ERROR_8&quot;&gt;ActionScript&lt;/span&gt; 3. We can create interactive applications, games etc by using action script.&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://action-script3.blogspot.com/feeds/7854154154230884024/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1982733204265358962/7854154154230884024' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1982733204265358962/posts/default/7854154154230884024'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1982733204265358962/posts/default/7854154154230884024'/><link rel='alternate' type='text/html' href='http://action-script3.blogspot.com/2008/05/flash-cs3-professional.html' title='Flash CS3 Professional'/><author><name>Pravin Varma</name><uri>http://www.blogger.com/profile/02643510945595556469</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='21' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhZSFUYLg8TbvFJ-jjmnQbl9BwD5rdk_6XgANkM4cW24HZWc-95-YaOb73m88qbFGAKMyyunC4tQpf6ISJArwtj_CGIHmLRu4-veUOWvQ1Et6gpQzod4RReLCwED-12Nc8/s220/190411_1947056677220_1266657561_32268360_6378271_n.jpg'/></author><thr:total>0</thr:total></entry></feed>