Introduction to ActionScript 3
The gamesfactory.net has a great article on ActionScript 3. The new version of the language makes many fundamental improvements that will elevate Actionscript to new heights in the coding world.
Here is a short sample;
Differences between AS2 and AS3
(ie. what you would need to know to upgrade your code)
.as files now contain package declarations
A package can have functions, variables and classes as part of it’s contents.
You can only have one public class per file, and all subtypes of a class default to private.
The constant undefined is now null.
Movieclips are created using the new operator
A class called DisplayList is used for visible movieclips
No more attachMovie. addChild now adds movieclips to the DisplayList
Native properties no longer use underscore (eg. _height is now height)
a graphical properties of a moviclip are found in an object called graphics
Comments
Be the first to write a comment
You must me logged in to write a comment.