# Need help to find good path to images

**URL:** <https://forum.kirupa.com/t/need-help-to-find-good-path-to-images/222710>\
**Category:** Uncategorized\
**Created:** [April 16, 2007, 1:14pm UTC](https://forum.kirupa.com/t/need-help-to-find-good-path-to-images/222710 "2007-04-16T13:14:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rosanna](https://avatars.discourse-cdn.com/v4/letter/r/e0b2c6/32.png) [@rosanna](https://forum.kirupa.com/u/rosanna)\
**Post date:** [April 16, 2007, 1:14pm UTC](https://forum.kirupa.com/t/need-help-to-find-good-path-to-images/222710/1 "2007-04-16T13:14:01Z")

</div>

Here is another question :  
I constantly have the following output :  
Error opening URL “file:///C|/Documents%20and%20Settings/user/Desktop/SITEFINAL/images/travel/undefined”.  
I don’t understand why because It does find the path to my images when applicated to other objects ( here initThumb). If you take the time to read the code, you’ll see that I use the same path for both .  
What do I do wrong ???I am lost.:block: :block: :block: :block:

Here is the critical part of my code :

xmlPhotos.ignoreWhite = true;  
xmlPhotos.load(“travel.xml”);

var premierPic = 0;  
var allPics = 78;  
var xmlPhotos:XML = new XML();  
var initThumb:Object = new Object();  
xmlPhotos.onLoad = function() {  
for (var i:Number = 0; i\<xmlPhotos.firstChild.childNodes.length; i++) {  
initThumb.photo = (xmlPhotos.firstChild.childNodes\*.attributes.photo);  
initThumb.titre = (xmlPhotos.firstChild.childNodes\*.childNodes[0].firstChild);  
initThumb.count = (xmlPhotos.firstChild.childNodes\*.childNodes[1].firstChild);

}  
};  
initThumb.onRelease = function() {  
mcLargePhoto.loadMovie(“images/travel/”+this.photo+"");  
txtCount.text = this.count;  
txtDesc.text = this.titre;  
mcScroller.\_alpha = 0;  
};

Previous\_btn.onRelease=function(){  
previousPic();  
}

function makeAThumb(num) {  
thumbname = “mcThumb”+num;  
mcScroller.attachMovie(“thumb”, thumbname, num, initThumb);  
mcScroller[thumbname].mcPhoto.loadMovie(“images/tthumb/”+mcScroller[thumbname].photo+"");

}  
function previousPic(){  
if ((premierPic+1)\>=allPics) {  
premierPic = 0;  
} else {  
premierPic++;  
}  
mcLargePhoto.loadMovie(“images/travel/”+this.photo+"");  
txtCount.text = this.count;  
txtDesc.text = this.titre;  
}  
this.createEmptyMovieClip(“mcScroller”, this.getNextHighestDepth());  
Previous\_btn.addEventListener(“click”, previousPic);
