This is a basic comparison between flash Action script 2.0 and Action Script 3.0.

The Action script 2.0 is like event driven programming. but the Action script 3.0 is object orient programming.

So, what is Event driven and object oriented. Event driven is like some action got done like consider a  example Mr James hit the box. In this sentences Mr james has done some action with the box. A action has been happened between Mr James and box which is called as a event. Comparing to Action script 2.0 when some one click or something loads into the screen or any keyboard key is pressed each and everything is considered as event. on finding out that type of event and writing the code is Action script 2.0. What is Object oriented program (shortly known as oops) now most of the guy know c++ and java how it got popular very soon one of the main feature is this Oops in it. So hear nothing is consider as a event instead of that it is treated a s a object as the earlier sentence Mr James hit the box hear both the Mr James and the box are treated as a separate class. And with that class we need to create a instance for it and do what ever we want like key press and other thing. What is the benefit of Oops comparing to the even driven programming. Simple powerful since everything is created as a class we can reuse the same class where ever we want. No need to keep on creating the same thing we already created. More features like inheritance and encapsulation which are the features of oops is supported in Action Script 3.0. It is too powerful like a slandered software application. It’s also more faster comparing to the Action script 2.0.

Tags: , , , ,