# loadClip Target Issue

**URL:** <https://forum.kirupa.com/t/loadclip-target-issue/219943>\
**Category:** flash\
**Created:** [March 21, 2007, 11:28am UTC](https://forum.kirupa.com/t/loadclip-target-issue/219943 "2007-03-21T11:28:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tomyknoker](https://avatars.discourse-cdn.com/v4/letter/t/50afbb/32.png) [@tomyknoker](https://forum.kirupa.com/u/tomyknoker)\
**Post date:** [March 21, 2007, 11:28am UTC](https://forum.kirupa.com/t/loadclip-target-issue/219943/1 "2007-03-21T11:28:07Z")

</div>

Hi,

The following code loads 1 0f 6 random image as soon as my movie is played and works fine no probs

```auto

var myClip = this.createEmptyMovieClip("mcl", this.getNextHighestDepth());
var myLoader = new MovieClipLoader();
var myListener = new Object();
var myTest = random(6) + ".jpg";
myListener.onLoadInit = function () {
trace("load init");
};

myListener.onLoadInit = function (mcl) {
mcl._alpha=0;
mcl.onEnterFrame=function(){
mcl._alpha +=15;
 
if(mcl._alpha >=100){
delete mcl.onEnterFrame;
}
}
};

myLoader.addListener(myListener);
myLoader.loadClip(myTest,myClip);

```

Then iniside a movieclip further along the timeline I have this, as I want a specific image to load into the movieclip

```auto

var myTest = 5 + ".jpg";
myLoader.loadClip(myTest,_root.myClip);

```

But nothing happens no image will load when it gets to that point… I thought because the second part is inside a movieclip it couldn’t target it but shouldn’t

```auto
_root

```

… Any ideas?
