# Why cant this be simple?

**URL:** <https://forum.kirupa.com/t/why-cant-this-be-simple/218870>\
**Category:** Uncategorized\
**Created:** [March 12, 2007, 2:08am UTC](https://forum.kirupa.com/t/why-cant-this-be-simple/218870 "2007-03-12T02:08:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![joshchernoff](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/joshchernoff/32/1852_2.png) [@joshchernoff](https://forum.kirupa.com/u/joshchernoff)\
**Post date:** [March 12, 2007, 2:08am UTC](https://forum.kirupa.com/t/why-cant-this-be-simple/218870/1 "2007-03-12T02:08:36Z")

</div>

heres what I need to do.

1: make a move clip.  
2: load a image in to that clip.  
3: get \_width and \_height of image after load via loadClip and onLoadInit.  
4: Make new \_mc’s that tile across the stage left to right, top to bottom.

#4 is the part I can get past. should I use a duplicateMovieClip or attachMovie in a for() statement?

heres what I got to start.

```auto

this.createEmptyMovieClip("test", this.getNextHighestDepth());
var mcLoader:MovieClipLoader = new MovieClipLoader();
mcLoader.addListener(this);
  mcLoader.loadClip(
                    "test.jpg", 
                    this.test
                    );

function onLoadInit(mc:MovieClip) {
   var nImages:Number = 6; //number of images to tile
   for(i = 0; i<nImages; i++){
      test.duplicateMovieClip(_root, "test"+i, this.getNextHighestDepth())
      // then I need it to space by size of image _width and so one, but***
   }
}

```

\*\*\* I cant get this to even make other \_mc’s for some reason.
