Ho trovato alcuni script in rete e questo sembra che faccia al caso mio... però manca una cosa, l'effetto alfa tra un'immagine e l'altra.
Come posso fare per aggiungerlo?
codice:
_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*1000);
loadImage();
};
count = 0;
function loadImage() {
_root.stato = "Caricamento immagine nr: ";
count++;
if (count>iName.totalImages) {count = 1; }
if (count<=iName.totalImages) {
holder.loadMovie(iName["image"+count]);
_root.info ="Immagine: " +(iName["image"+count]);
}
}