bonjour à tous,
je cherche à savoir comment faire pour régler un movie clip en fonction du chargement effectué .
En fait, c'est un preload, le movie clip c'est une barre sur 100 images. les deux sont décalés voilà.
voici le code : scène principal, première image:
total = _root.getBytesTotal();
chargés = _root.getBytesLoaded();
restant = bytes_total - bytes_chargés;
//pourcentage des bits chargés...........
rapport= Math.round((bytes_chargés / bytes_total) *100) add "%" ;
bar.gotoAndStop(rapport);
if (_root.getBytesLoaded() >=_root.getBytesTotal())
{
gotoAndPlay ("Séquence 2", 1);
}
le clip s'appelle bar.