ActionScript 2.0 v/s ActionScript 3.0

I have always been asked generally what is difference between ActionScript (AS) 2.0 and AS 3.0. So after going through the web and doing some googling and reviewing different blogs, have come to know about following points:

  • AS 2.0 provided formal syntax for object-oriented programming without allowing to work with flash player API
  • AS2.0 extended flash API with Flash player 8 but language syntax was same
  • ActionScript 3.0 expands Flash Player API (The Flash Player API is the set of classes, objects, functions, and properties that come built into Flash Player…stuff like MovieClip, TextField, Sound, getURL(), and loadMovie().)
  • ActionScript 3.0 also provides much greater performance than ActionScript 2.0

Compared to ActionScript 2.0, ActionScript 3.0 is faster, cleaner, more powerful, easier to debug, and more feature rich. So, now I am planning to write future codes using AS 3.0

Get updated information about actionscripting from:
http://www.adobe.com/devnet/actionscript/

Happy Scripting

2 Comments

  1. Comment by James on May 19, 2008 7:50 pm

    If the differences are so obvious, then why does anyone still use 2.0?

  2. Comment by admin on May 28, 2008 8:13 am

    There are a number of reasons, I will mention some:
    1. AS 3.0 code can not run on older version (Not less than Flash player 9)
    2. People prefer to use current version of AS unless their application do not need feature required available in AS 3.0. Since writing small application need long syntax and architecture is completely different for using movieclip.
    3. Flash Player 9 is not available on all machines and people still need to upgrade the player to view AS3.0 flash content.

    HTH,
    Shailendra Vijayvergia

Comments RSS TrackBack Identifier URI

Leave a comment

  • Calendar

    • July 2007
      M T W T F S S
      « Jun   Sep »
       1
      2345678
      9101112131415
      16171819202122
      23242526272829
      3031  
  • Search