Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

what is difference between AS2 and AS3.?

Answer Posted / dindayal dhakar

AS2 uses a lot of attributes that start with an underscore
(._x, ._alpha, etc). In AS3 the underscores are removed
(ie. .x, .alpha), if you see underscores you're probably in
2.

Second, look for variable typing. It's not required in
either version but a lot more people type their variables
in AS3...if variables are being typed (ie. var a:Number =
5) you're probably in 3.

Lastly, look for function return types. The majority of
functions in either language will be returning void...in
AS2 look for a capitol V (function():Void{) and in AS3 that
got lowercased (function():void{).


Another difference is the fact that all events in AS3 are
called with addEventListener function, instead of using
the "onEventName" property of each object.

• To add event listeners in ActionScript 2.0, you use
addListener() in some cases and addEventListener() in
others, whereas in ActionScript 3.0 you use addEventListener
() in all cases.
• There is no event flow in ActionScript 2.0, which
means that the addListener() method can be called only on
the object that broadcasts the event, whereas in
ActionScript 3.0 the addEventListener() method can be
called on any object that is part of the event flow.
• In ActionScript 2.0, event listeners can be either
functions, methods, or objects, whereas in ActionScript
3.0, only functions or methods can be event listeners.
• The on(event) syntax is no longer supported in
ActionScript 3.0, so you cannot attach ActionScript event
code to a movie clip. You can only use addEventListener()
to add an event listener.

Is This Answer Correct ?    52 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

I have installed QTP version 9.0. I have installed Mozilla firefox version 2.0. But QTP "Record and Run settings" in WEB tab shows FIREFOX 1.5 in drop down to run session begins. So QTP does not record anything which I type in firefox. How can i recognise firefox 2.0 and how can i update browser version in QTP?

2090


What is the procedure for installing USP-35 on my compure?

2070


How can you convert QTP 8.2 scripts to QTP 9.2. Please give some inputs ASAP.

2781


Difference between the SAP MDM vs IBM MDM in approach, the tools used , ease in handling/implementing.

6745


what is the Structure of an ANT file?

2243


how can i get two different fonts in a single line

1945


We have 1 web page with names column. I am giving the Service Providers1,2,3.... @ that time dynamically some no of names are displaying in the webpage and The Pop up windows are opening(No.of Pop Up windows=No.of Names). The names may be diffar for each and every Service Provders (Dynamically) How can we handle the Dynamic values?

2632


Someone who protect my excel file, m using ms office 2007 and windows 7 operating system, pls help me, how can i unprotect sheet

2245


how do u define in ur build.xml If I need to execute a task before executing my task?

2218


I Am Planning to Write ISTQB foundation level Ceritification of inida. can Any Body let me know how to prepare for it & Any Study material can you provide or Any other E-books i should need to Study. Please Mail to me ajaybe_2004@yahoo.co.in THnaks in advance Ajay

2165


database acl level has manager access.his name is listed in author and Reader fields. but he didn't sea a documents what is the reason?

2269


Why we use Action Script(Multimedia Flash) rather than using other scripting languages (JAVA,VB...etc) ?

2761


how do invoke OS task through ANT?

2652


a="10.20.30.1" replace 1 with 45 in python using reg ex

1291


How applet differ from Swings in java ?

2001