ho utilizzato tale codice per caricare file esterni tramite xml o txt
_root.onEnterFrame = function(){
car = holder.getBytesLoaded()
tot = holder.getBytesTotal()
_root.dimensioni = "Totali Kb: " + _root.tot + " \rCaricati Kb: " + _root.car
}
iName = new LoadVars();
iName.load("info.txt");
iName.onLoad = function(success) {
this.time = Number(this.time);
this.totalImages = Number(this.totalImages);
imageInterval = setInterval(loadImage, this.time*100);
loadImage();
};
count = 0;
function loadImage() {
_root.stato = "Caricamento immagine nr: ";
count++;
if (count<=iName.totalImages) {
holder.loadMovie(iName["image"+count]);
holder._xscale = 200
holder._yscale = 200
_root.info ="Immagine: " +(iName["image"+count]);
} else {
clearInterval(imageInterval);
_root.stato = "Caricato tutto fine dello slide! ";
_root.info = "info.txt";}
}
PROBLEMA
APPENA CARICATE TUTTE LE IMMAGINI SI FERMA PER LE ULTIME 4 RIGHE DEL CODICE..COME POSSO FAR RIPARTIRE TUTTO D'ACCAPO?