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