# Problems with Variables & MovieClipLoader.loadClip() function

**URL:** <https://forum.kirupa.com/t/problems-with-variables-moviecliploader-loadclip-function/205380>\
**Category:** Uncategorized\
**Created:** [October 28, 2006, 9:54pm UTC](https://forum.kirupa.com/t/problems-with-variables-moviecliploader-loadclip-function/205380 "2006-10-28T21:54:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![irok](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/irok/32/2660_2.png) [@irok](https://forum.kirupa.com/u/irok)\
**Post date:** [October 28, 2006, 9:54pm UTC](https://forum.kirupa.com/t/problems-with-variables-moviecliploader-loadclip-function/205380/1 "2006-10-28T21:54:55Z")

</div>

Hello,

I’m making a XML photogallery. Im using a MovieClipLoader to load multiple images on the screen at the same time.

I’ve assigned variable **path** to hold **image[p].childNodes** which returns **gallery/051102.jpg**.  
eg. path = image[p].childNodes;  
trace(path); //returns _gallery/051102.jpg_

so when I load the image into the MovieClipLoader,  
eg. mcLoader.loadClip( **path** , image);  
no images show up.

if i subsitute path with,  
eg. mcLoader.loadClip( **“gallery/051102.jpg”** , image);  
image \*\*gallery/051102.jpg \*\*shows up!

Any help is appreciated. Thank you.  
irok
