Bonjour à tous,
Je rencontre un problem avec mon preloader.
Il était conçu pour ne lancer l'anim principale qu'après 100% de chargé. Etant donné que j'ai rajouté en fond un MP3 assez long, je voudrais que le preloader ne dure que durant 50% du chargement.
J'ai modifié la premiere ligne du script suivant total = _root.getBytesTotal(); par total = _root.getBytesTotal()/2; mais cela ne marche pas. Avez-vous une idée de comment faire ?
***
onClipEvent (load) {
total = _root.getBytesTotal();
}
onClipEvent (enterFrame) {
loaded = _root.getBytesLoaded();
percent = int(loaded/total*100);
text = percent+"%";
//trace(percent)
this.gotoAndStop(percent);
if (loaded == total and total>380 and a<>1) {
a=1;
_root.gotoAndPlay("s7");
}
}