# loadClip function not working

**URL:** <https://forum.kirupa.com/t/loadclip-function-not-working/147398>\
**Category:** Uncategorized\
**Created:** [May 10, 2005, 7:17am UTC](https://forum.kirupa.com/t/loadclip-function-not-working/147398 "2005-05-10T07:17:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jalleyne](https://avatars.discourse-cdn.com/v4/letter/j/9de053/32.png) [@jalleyne](https://forum.kirupa.com/u/jalleyne)\
**Post date:** [May 10, 2005, 7:17am UTC](https://forum.kirupa.com/t/loadclip-function-not-working/147398/1 "2005-05-10T07:17:04Z")

</div>

hi, i have some code that i am using to try and create a scrolling row of images…

```auto

photoArray = ["Pic01.jpg", "Pic02.jpg", "Pic03.jpg", "Pic05.jpg", "Pic06.jpg", "Pic07.jpg", "Pic08.jpg", "Pic09.jpg", "Pic10.jpg", "Pic11.jpg"];
imageHolder=content_mc.photogallery_mc.photoline_mc.createEmptyMovieClip("imageHolder_mc", 0);
imageHolder._width=522;
imageHolder._height=115;
content_mc.photogallery_mc.mask._alpha=50;
 
var nextX:Number;
for(i=0;i<photoArray.length;i++){
imagePath=imageHolder.createEmptyMovieClip("image_"+i+"_mc", i);
var imageMcLoader:MovieClipLoader = new MovieClipLoader();
var imageListener:Object = new Object();
imageMcLoader.addListener(imageListener);
 
imageListener.onLoadComplete = function(target_mc:MovieClip) {
	 //actions would go here
};
imageListener.onLoadInit = function(target_mc:MovieClip) {
	 //actions would go here
};
imageListener.onLoadError = function(target_mc:MovieClip, errorCode:String) {
	 //actions would go here
};
 
trace(imageListener.loadClip(_l1 + photoArray*, imagePath));
}

```

now the idea is that for each image in the array, an empty MC is created and the image is loaded into it and becomes part of my of scrolling line of images…

the problem is that the loadClip() function does not get called. when i trace like in the above code it returns undefined… can anyone pls give me some assistance… ??? thanks in advance…

i should mention that this is the first time i am attempting to use this function and i edited the code from the macromedia help example… 🙂
