# loadMovie on a Movieclip

**URL:** https://forum.kirupa.com/t/loadmovie-on-a-movieclip/67451
**Category:** flash
**Created:** [October 16, 2004, 3:46am UTC](https://forum.kirupa.com/t/loadmovie-on-a-movieclip/67451 "2004-10-16T03:46:38Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![bjory](https://avatars.discourse-cdn.com/v4/letter/b/5e9695/32.png) [@bjory](https://forum.kirupa.com/u/bjory)
#### Post date: [October 16, 2004, 3:46am UTC](https://forum.kirupa.com/t/loadmovie-on-a-movieclip/67451/1 "2004-10-16T03:46:38Z")

</div>

I used attachMovie to load a movieclip from the library into the stage.

And in the movieclip, it has another movieclip named “imageHolder”.

As I wanted the movieclip to be placed on the stage like a list of buttons. The code goes as follows:

[COLOR=Blue]for(var i=0; i \< 5; i++)  
{  
\_root.attachMovie(“menuBtn”, “menuItem” + i, 0);  
\_root[“menuItem” + i].\_x = 150;  
\_root[“menuItem” + i].\_y = 150 + setHeight \* \_root[“menuBtn” + i].\_height;  
\_root[“menuItem” + i].imageHolder = loadMovie(“something.jpg” , “imageHolder”);  
}[/COLOR]

But the something.jpg doesn’t appeared when I test the movie. And something.jpg is in the same directory as the .fla file.
