Okay, here's what the trace returned:
Code:undefined <image path="atrium/atrium1.jpg" client="SCF Arizona - Accounting & Finance Department" description="Interior Remodel - 8,000 sf" state="Phoenix, Arizona" />
So, it looks like the AS is okay but something is wrong with the XML?
Here's the code for the functions
Code:// -- Load Imagers -- // function loadImage(image:Number):Void { MCLs[image].loadClip(imgPaths[image], targets[image]); } loadList.onLoadComplete = function(evn:Object) { var loadedImg:Number = parseInt(evn._name.substr(6, 1)); imgLoaded[loadedImg] = 1; if (loadedImg < totalImages) { loadImage(loadedImg + 1); } } // -- Switch Images -- // function switchImages(hideImg:Number, showImg:Number):Void { if (imgLoaded[showImg]) { var hideTw:Tween = new Tween(targets[hideImg], "_alpha", none, targets[hideImg]._alpha, 0, 20, false); var showTw:Tween = new Tween(targets[showImg], "_alpha", none, targets[showImg]._alpha, 100, 20, false); CSI = showImg; navigation.changeImgShow(); } else { loading.SHLoading("show"); var hideTw:Tween = new Tween(targets[hideImg], "_alpha", none, targets[hideImg]._alpha, 0, 20, false); if (CSI == totalImages - 2) { // Check for the last Image. navigation.nextBtn.action("disable"); // Only by nextBtn disable. } navigation.changeImgShow(); onEnterFrame = function() { if (imgLoaded[showImg]) { loading.SHLoading("hide"); var showTw:Tween = new Tween(targets[showImg], "_alpha", none, targets[showImg]._alpha, 100, 20, false); CSI = showImg; navigation.changeImgShow(); delete this.onEnterFrame; } } } } // -- Navigation -- // Mouse.addListener(navList); //var initSleep = setInterval(checkSleep, 1500); //navList.onMouseMove = function() { // if (sleep) { // if (navigation._y != 268) { // navMove(268); // sleep = false; // } //} //function checkSleep():Void { // if (sleep && !onFocus) { // navMove(300); // } else { // sleep = true; // } //} //function navMove(newY:Number):Void { // var moveNavTw:Tween = new Tween(navigation, "_y", Strong.easeInOut, navigation._y, newY, 15, false); //} function prevImg():Void { if (imgLoaded[0] && CSI != 0) { switchImages(CSI, CSI-1); if (Math.round(navigation.nextBtn.arr._alpha - navigation.enAlpha)) { // Activation Check navigation.nextBtn.action("enable"); } if (CSI == 0) { // Check for the first Image navigation.prevBtn.action("disable"); } } } function nextImg():Void { if (imgLoaded[0] && CSI < totalImages - 1) { switchImages(CSI, CSI+1); if (Math.round(navigation.prevBtn.arr._alpha - navigation.enAlpha)) { // Activation Check navigation.prevBtn.action("enable"); } if (CSI == totalImages - 1) { // Check for the last Image navigation.nextBtn.action("disable"); } } } function nextImgSS():Void { if (imgLoaded[0]) { if (CSI == totalImages - 1) { switchImages(CSI, 0); } else { switchImages(CSI, CSI+1); } if(CSI == totalImages - 1) { navigation.nextBtn.action("disable"); } else if (CSI == 0) { navigation.prevBtn.action("disable"); navigation.nextBtn.action("enable"); } else { if (Math.round(navigation.prevBtn.arr._alpha - navigation.enAlpha)) { // Activation Check navigation.prevBtn.action("enable"); } } } }




Reply With Quote