caricamento clip in sequenza
codice:
sequenzaclips = new Array("unos", "dues", "tres");
info = new Array("Caricamento Sfondo", "Alabarda Spaziale", "Lame rotanti");
this.createTextField("testoinfo", 20, 300, 100, 200, 40);
function carica(x) {
this.createEmptyMovieClip("caricatore"+x, x);
this["caricatore"+x].loadMovie(sequenzaclips[x]+".swf");
this.onEnterFrame = function() {
car = this["caricatore"+x].getBytesLoaded();
tot = this["caricatore"+x].getBytesTotal();
dif = int(car/tot*100);
this.testoinfo.text = this.info[x]+"..."+dif+"%";
trace(dif);
if (tot != undefined) {
if (car>=tot and car>1024) {
delete this.onEnterFrame;
x++;
if (x<sequenzaclips.length) {
carica(x);
}
}
}
};
}
carica(0);