I recall reading an article that stated files coded in 3.0 will run 10 times faster than those coded in 2.0, but that of course is relative to what exactly you're trying to do.
The major differences I noticed when I migrated over to 3.0 were that referencing objects was more difficult, understanding how objects are created was a twist, that the enterFrame shabang was different, and that catching keypresses was also different.
Mouse clicks, key presses, and onEnterFrames are now all handled by what are called event listeners.
1. create an event listener: stage.addEventListener(Event.ENTER_FRAME ,EnterFrameFunction);
2. write the function:
function EnterFrameFunction(e:Event):void
{//docraphere
}
and that's it.
Here's one for a mouse click:
stage.addEventListener(MouseEvent.MOUSE_
UP, mouseFunction);
function mouseFunction(event:MouseEvent)
{//do crap here
}
as far as objects being created, you no longer do createEmptyMovieClip(). You will write code like this:
createBall();
function createBall()
{
var myBall:Sprite = new Sprite();
myBall.name="myBall";
this.addChild(myBall);
}
and as I was saying, referencing objects is more difficult in my opinion. If, in another function, you want to change the x position of myBall, you would go like this:
function changeX()
{
this.getChildByName("myBall").x+=5;
}
That's the jist of AS 3.0