On this actionscript 3.0 tutorial Avraham demonstrates how to create a class for a stage element and add them automatically using Action Script 3.0
And here is the code:
var FirstYellowCircle = new YellowCircle();
var SecondYellowCircle = new YellowCircle();
trace (FirstYellowCircle);
addChild (FirstYellowCircle);
addChild (SecondYellowCircle);
SecondYellowCircle.x = 200;
SecondYellowCircle.y = 300;
Download the source files:






One Response to “ActionScript 3.0 Lesson 3: Adding Elements to Stage”
Trackbacks/Pingbacks
trackbackbe…
Nice post, thank you!!!!!…