Bonjour, voila ts est dans le titre :o)
Y'a deux preload un du site et un pour un fichier mp3 qui est sur un swf a part(euh le mp3 se lance au démarrage et en boucle, sur frame 1).Pour le preload du site g mis :Frame 1:
now = _root.getBytesLoaded();
limit = _root.getBytesTotal();
Taille = Math.round(limit/1024);
Frame 2 :ratio = now/limit;
if(ratio>0.3){_root.gotoAndPlay(3);}
else {_root.gotoAndPlay(1);}
_root.barre._width = _root.barre._width*ratio;
_root.pourcent=ratio*100;
_root.textField=pourcent;
pourcentage = Math.round(pourcent);
Pour le preload du musik.swf je souhaite faire la meme chose,
alors g rajouter a frame 1 :now2 = _root.getBytesLoaded();
limit2 = _root.getBytesTotal();
Taille2 = Math.round(limit2/1024);
Et sur frame 2 j'ai alors remplacer par ceci :loadMovieNum("musik.swf");
ratio = now/limit;
ratio2 = now2/limit2;
if(ratio==1,ratio2==1){_root.gotoAndPlay(3);}
else {_root.gotoAndPlay(1);}
_root.barre._width = _root.barre._width*ratio;
_root.barre2._width = _root.barre2._width*ratio2;
_root.pourcent=ratio*100;
_root.pourcent2=ratio2*100;
_root.textField=pourcent;
_root.textField=pourcent2;
pourcentage = Math.round(pourcent);
pourcentage2 = Math.round(pourcent2);
et ca ne marche pu ... j'me doute bien que c au niveau du
loadMovieNum("musik.swf"); mais g essayer plusieur script et rien ne marche sauf celui ou il faut appuiyer sur un bouton pour qu'il charge, mais j'prefere qu'il le preload au plus vite donc dés le début, car c'est une musik qui pese 2.88 mo et bon.
Sinon y'avait avec un streamer 30% en remplacant par ratio>0.3,
en insérant la musik au swf principale, mais j'aimerais savoir faire un preload externe.
voila si quelqu'un peut m'aider se serait sympa :)