Creating Multiple Objects

Hi,

I had a question.
My goal is to create multiple objects that fall downwards. The problem now is that the object stays in the left upper corner. I’ve linked the object to actionscript with the name “object”. Can someone help me?

This is my code:


var namer:MovieClip = this.createEmptyMovieClip("objectHolder", 1);
    for (i=0; i<=count; i++) {
        var newName:String = "object"+(count);
        var newObject:MovieClip = namer.attachMovie("object", "object"+(count), 1);
        
        newObject.xdirection = 5
                newObject.yspeed = 10
        newObject._x += newObject.xdirection;
        newObject._y += newObject.yspeed;
    }