var sprites:Array = []; for (var i:int = 0; i < 4; i++) { var sp:Sprite = new Sprite( ); sp.x = i; sp.y = i; addChild(sp); sprites.push(sp); }