آرشیو ۱۱ شهریور ۱۳۸۲

ActionScript2
This is of course the really big thing in MX 2004. ‘Flash MX 2004 and Flash MX Professional 2004 introduce several new language elements that implement object-oriented programming in a more standard way than before. Because these language elements represent a significant enhancement to the core ActionScript language, they represent a new version of ActionScript itself: ActionScript 2′ (from the documentation).These new elements should give you a good idea of what this is: class, extends, implements, interface, dynamic, static, public, private, get, set and import.

We’ve not yet had the time to ponder about all the possibilities this will open up, other than that ActionScript2 is now leaving the scripting scene to become a proper language. ActionScript 2 is a strict language, something that Macromedia tried to introduce in Flash MX, but due to some problems with #strict, this was skipped for the previous release. Main thing to notice about strict: case now matters greatly when coding! AS2 is ECMA-262 Edition 4 compliant and supports inheritance, strong typing, casting objects and the event model.