This is part 2 of 2 of the Getting Started with AS3 series. Click here to view part 1.
OK, so we’ve covered variables, event listeners, and functions. Now let’s check out the code that actually does stuff.
“Action” Code
The final part of code we are going to look at right now is what I call the “action” code — the code that actually does things. Now, in a game, what we could do with action code includes basically anything you can think of: you can move and animate objects, perform calculations, manipulate variables, call functions, and “trace” out data to your output window, just to name a few.