Bonjour :)
J'ai un petit preloader qui ressemble à ca :
-------------------------------------------------------------------
if (_root.getBytesLoaded()<_root.getBytesTotal()) {
_root.purcentloading = Math.floor(_root.getBytesLoaded()/_root.getBytesTotal()*100);
_root.chargement.text = "> Chargement en cours : "+_root.purcentloading+"% - "+_root.logoload.logofond._y;
_root.logoload.logofond._y = 370-(_root.purcentloading)*4;
gotoAndPlay(1);
} else if (_root.getBytesLoaded() == _root.getBytesTotal()) {
_root.chargement.text = "> Chargement OK !";
_root.logoload.logofond._y = -30;
_root.logoload.gotoAndPlay(2);
}
-------------------------------------------------------------------
Le preloader marche (à 100% il lit bien l'animation) mais il y a un léger temps avant que le texte "Chargement en cours : .. %" apparaisse, et quand il apparait, le chargement en est déja à 20, voire 25% :(
Il y a pas mal d'images dans la bibliothèque de mon animation, mais aucune n'est appelée pendant le preload, il n'y a que le texte de chargement et un clip contenant une forme dessinée sous flash...
Quelqu'un pourrait-il m'indiquer (une solution s'il en existe une...)
Merci :)