ciao a tutti
Ho messo questo codice per fare il preload di un filmato esterno con suono:
onClipEvent (load) {
_root.stop();
barra2._visible = false;
testo1 = "caricamento filmato";
main = true;
}
onClipEvent (enterFrame) {
if (main) {
car = _root.getBytesLoaded();
tot = _root.getBytesTotal();
perc = parseInt((car/tot)*100);
percent1 = perc+"%";
barra1._xscale = perc;
if (car == tot) {
loadMovieNum("suono1.swf", 1);
main = false;
Sound = true;
barra2._visible = true;
testo2 = "caricamento musica";
}
}
if (sound) {
car = _level1.getBytesLoaded();
tot = _level1.getBytesTotal();
perc = parseInt((car/tot)*100);
if (car != undefined) {
percent2 = perc+"%";
barra2._xscale = perc;
if (car == tot) {
_level1.musica.start(0, 999);
_root.nextFrame();
}
}
}
}
funzionava, ma ora ho messo due tracce dentro il filmato e non mi funziona più!
grazie in anticipo!

Rispondi quotando