Originariamente inviato da lollog78
avevo gia messo il preload in ogni filmato ma mi dava problemi:
se cliccavo velocemente su piu di un pulsante non funzionava più nulla

quale potrebbe essere un preload che non mi da problemi io utilizzavo questo molto semplice:

posizionato direttamente sul mc della barra

onClipEvent(load){
_root.stop();
barra._xscale = 0;
}
onClipEvent(enterFrame){
car = _root.getBytesLoaded();
tot = _root.getBytesTotal();
perc = Math.round((car*100)/tot);
bytes_car = Math.round(car/1024);
bytes_tot = Math.round(tot/1024);
barra._xscale = perc;
if(car == tot){
_root.play();
}
}

function carica(filmato) {
this.clipvuoto.loadMovie(fimato+".swf");
this.onEnterFrame = function() {
car = this.clipvuoto.getBytesLoaded();
tot = this.clipvuoto.getBytesTotal();
perc = Math.round((car*100)/tot);
barra._xscale = perc;
if (tot != undefined) {
if (car == tot) {
delete this.onEnterFrame;
AZIONI A FILMATO CARICATO
}
}
};
}


richiami il caricamento con

carica("nomefilmato")