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);