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.