PDA

View Full Version : works local , but not online


SPOCK
03-02-2007, 05:26 PM
local works perfect, load each image, and stop in frame 3
but on the server it fails :eek: stays on frame 2 any ideas ?
get the first one and stop.

i`m trying to preload all images before go to next frame

thx in advance


//[frame 1]
var pagina = ["pic1.jpg", "pic2.jpg", "pic3.jpg"];

//[frame 2]
var t = 0;
var imgLoader = new MovieClipLoader();
imgLoader.onLoadProgress = function(targetMC, loadedBytes, totalBytes) {
xml_load.porcentaje = "LOADING PAGE Nš "+t+" "+Math.round((loadedBytes/totalBytes)*100)+" %";
barra._xscale = Math.round((loadedBytes/totalBytes)*100);
};
imgLoader.onLoadInit = function(targetMC) {
t++;
loadPages();
};
//
loadPages= function () {
if (t<pagina.length) {
this.createEmptyMovieClip("img"+t, this.getNextHighestDepth());
trace(pagina[t]);
imgLoader.loadClip(pagina[t], "img"+t);
_root["img"+t]._x = 1600;
} else {
_root.gotoAndStop(3);
}
};
loadPages();

CyanBlue
03-02-2007, 05:28 PM
What's the URL where we can see it???
Oh, make sure that the file names are all the same as you have written in an array... I mean the case of it... Linux server differenciates pic1.jpg and Pic1.jpg, for example...

SPOCK
03-02-2007, 05:35 PM
you can see it here "http://test.spock.cl/nacho/help/"

any ideas
the images are in the folder paginas/001.jpg
[lowercase and numeral]

SPOCK
03-02-2007, 05:59 PM
damit, jpg was JPG , thanx for your help anyway

CyanBlue
03-02-2007, 06:14 PM
I get page not found with that URL...