Caro Paolo,
sono ancora qui a distruggerti la vita... spero di poterti essere di aiuto un giorno...
codice:
FRAME 1
totPrincipale = 0;
carPricipale = -1;
tot1 = 0;
car1 = -1;
tot2 = 0;
car2 = -1;
tot3 = 0;
car3 = -1;
caricatoMain = false;
caricato1 = false;
caricato2 = false;
caricato3 = false;
terminatoMain = false;
terminato1 = false;
terminato2 = false;
terminato3 = false;
//
_root.onEnterFrame = function() {
framenum.text = _currentframe;
if (!terminatoMain) {
if (_currentframe == 42) {
terminatoMain = true;
movie1.play();
}
} else if (!terminato1) {
if (movie1._currentframe == movie1._totalframes) {
terminato1 = true;
movie2.play();
}
} else if (!terminato2) {
if (movie2._currentframe == movie2._totalframes) {
terminato2 = true;
movie3.play();
}
} else if (!terminato3) {
if (movie3._currentframe == movie3._totalframes) {
terminato3 = true;
play();
delete this.enterFrame;
}
}
}
//
FRAME 2
if (!caricatoMain) {
if (totPrincipale <= carPrincipale && carPrincipale > 24) {
caricatoMain = true;
movie1.loadMovie("swfest1.swf");
} else {
totPrincipale = getBytesTotal();
carPrincipale = getBytesLoaded();
whatmovie.text = "filmato principale";
perc.text = carPrincipale*100/totPrincipale +"%";
}
} else if (!caricato1) {
if (tot1 <= car1 && car1 > 24) {
movie1.stop();
caricato1 = true;
movie2.loadMovie("swfest2.swf");
} else {
tot1 = movie1.getBytesTotal();
car1 = movie1.getBytesLoaded();
whatmovie.text = "filmato numero 1";
perc.text = car1*100/tot1 +"%";
}
} else if (!caricato2) {
if (tot2 <= car2 && car2 > 24) {
movie2.stop();
caricato2 = true;
movie3.loadMovie("swfest3.swf");
} else {
tot2 = movie2.getBytesTotal();
car2 = movie2.getBytesLoaded();
whatmovie.text = "filmato numero 2";
perc.text = car2*100/tot2 +"%";
}
} else if (!caricato3) {
if (tot3 <= car3 && car3 > 24) {
movie3.stop();
caricato3 = true;
gotoAndPlay("inizio");
} else {
tot3 = movie3.getBytesTotal();
car3 = movie3.getBytesLoaded();
whatmovie.text = "filmato numero 3";
perc.text = car3*100/tot3 +"%";
}
}
FRAME 3
gotoAndPlay("preload");
Etichetta PRELOAD --> sarebbe il frame 2
Etichetta INIZIO --> sarebbe il frame 4
Al frame 43 c'è la chiusura del preload, quindi l'inizio del filmato una volta caricato
questo è il tuo script... apparte il fatto che a me non servono le percentuali di caricamento, ma, visto che è un cd farà tutto in maniera molto veloce, le leverò tranquillamente. Però tu esegui i movie esterni nel momento in cui li ha caricati. Invece a me devono stare in stand-by fino a che la linea temporale principale non arriva al punto che dico io. Per te sarà un apicocla differenza, ma per me.... NO.
Grazie e scusa di nuovo Paolo.
Ciao,
Luca