AS2 to AS3 loading in lots of little icons then animate them

Simplified Question from belows splurge. This is the AS3 code

for(var i:int=0; i<36;i++) {
var loadit = new Loader();
addChildAt(loadit, i);
loadit.load(new URLRequest(“ChannelsForFlash/”+i+".png"));
loadit.x =Math.random()*800;
loadit.y =Math.random()800;
loadit.rotation =i

how can you then control the properties of each individual child?
I wanted to animate each img loaded to go across the screen.

below is more in depth info of the bigger project. Thanks for reading

Hi guys. First time i’ve posted a question, wondered if any one can help. Basically trying to migrate some AS2 to AS3 and having trouble getting my head round it.

I think I’m getting my wires crossed between AS2 and such. As you could load things into the same depth which would automatically overwrite the thing that was there already (using something like the following)

var i: Number = 0;
onEnterFrame = function () {
i +=1;
dot_mc.duplicateMovieClip(“dot_mc”+i, i);
if( i>36) {i = 0};


and housed in the dot_mc movieClip would be

onClipEvent(load) {
this._rotation = Math.round(Math.random()*-180);
this.loader_mc.loadMovie( “ChannelsForFlash/”+_root.i+".png", 1);


the dot_mc would have a tween which moved it across the stage.

but in AS3 how would you do something similar?

using blu tak and my tiny brain I’ve cobbled together this, but I think I have gone down the wrong coding path.

This is the AS3 code

var i:Number = -1;
var low:Number = -10;
var high:Number = 5;
var speed:Number = 10;
var timer:Timer = new Timer(speed);
timer.addEventListener(TimerEvent.TIMER, loadIcons, false, 0, true );

function loadIcons(evt:TimerEvent):void {
var loadit = new Loader();
addChildAt(loadit, i);

var locx:Number = Math.floor(Math.random() * (1+high-low)) + low;
  var locy:Number = Math.floor(Math.random() * (-high));

var loaditPlace:Number = (stage.stageWidth/2)-20;

//initial set up for loadit
loadit.alpha = 1;
loadit.x = loaditPlace;
loadit.y = 0;

loadit.load(new URLRequest("ChannelsForFlash/"+i+".png"));
loadit.addEventListener(Event.ENTER_FRAME, movement, false/*, 0, true*/);
function movement(evt:Event):void {
    loadit.x +=locx;
    loadit.y +=locy;
    if (loadit.x &lt; loaditPlace) {
    loadit.rotation -=1;
        loadit.rotation +=1;
    //loadit.alpha -=0.1;




but this just keeps loading (or adding Children) whilst cycling through the loop of ‘i’ being 1-36, but i wanted it to sort of just only ever load 36 children, and then just cycle through them again. hmm whilst writing this I think I have approached it at the wrong angle.

If anyone can shed any light on any of the above I would be most grateful. Apologies if this is a bit epic in size of writing.