How do I loop through all of my children, and display each? I would like to know the best way to do this.
my children and container
five children, one plays every sec, 1,2,3, etc.
var square1:Square1 = new Square1;
var square2:Square2 = new Square2;
var square3:Square3 = new Square3;
var square4:Square4 = new Square4;
var square5:Square5 = new Square5;
var container:Sprite = new Sprite;
addChild(container);
container.addChild(square1)
container.addChild(square2)
container.addChild(square3)
container.addChild(square4)
container.addChild(square5)
my timer
var timly:Timer = new Timer(1000, 5);
timly.start();
timly.addEventListener(TimerEvent.TIMER, onLoop);
Note:
Tried for loop, numChildren -1, and visibility