# Creating Multiple Objects

**URL:** <https://forum.kirupa.com/t/creating-multiple-objects/286178>\
**Category:** flash\
**Created:** [April 11, 2009, 12:19pm UTC](https://forum.kirupa.com/t/creating-multiple-objects/286178 "2009-04-11T12:19:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![BlindCarrot](https://avatars.discourse-cdn.com/v4/letter/b/ee59a6/32.png) [@BlindCarrot](https://forum.kirupa.com/u/BlindCarrot)\
**Post date:** [April 11, 2009, 12:19pm UTC](https://forum.kirupa.com/t/creating-multiple-objects/286178/1 "2009-04-11T12:19:48Z")

</div>

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:

```auto

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;
    }

```
