Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help on loding problem 1

Status
Not open for further replies.

duponty

Instructor
Oct 25, 2000
101
CA
Hi,

this is my problem:


the loader stops à 36% and I don't know why. On my computer it is working perfectly. Also, if you go on a mac, it is loading but the animation is not doing the right thing. Any clues?

thanks
Yannick
 
works fine for me..
logo.gif


carlsatterwhite@orlandomediasolutions.com
 
Pour moi aussi, ça bloque d'abord à 36%, puis ça saute à 86% et ça se met à fonctionner!
Difficile de dire ce qui peut causer le problème, sans voir le code du preloader.
Pouvez-vous le "posté" ici, ou me le faire parvenir à oldnewbie@hotmail.com

Je suis moi-même à Montréal.:)

Regards,
wink4.gif
ldnewbie
 

Ça fontionne un peu mieux, en tout cas au niveau du pourcentage affiché, et au moins ça ne "plante" pas!
Ce genre de barre fontionne bien dans l'application elle-même, mais c'est une autre chose online! C'est souvent erratique.

J'ai modifé le preloader de la façon suivante:

Frame 1:
if (_root.getBytesLoaded()>=_root.getBytesTotal()) {
_root.gotoAndPlay(4);
}
loaded = Math.round(getBytesLoaded()/1024);
total = Math.round(getBytesTotal()/1024);
// left FrameLoad... but usually is percent...
FrameLoad = Math.round((loaded/total)*100);
bardisplay = (FrameLoad/10)+2;
barra.gotoAndStop(bardisplay);

Frame 2:
barra.gotoAndStop(bardisplay);

Frame 3:
if (loaded>=total) {
gotoAndPlay (4);
} else {
gotoAndPlay (1);
}

Pourrait aussi être:
Frame 3:
if (_root.getBytesLoaded()>=_root.getBytesTotal()) {
_root.gotoAndPlay(4);
} else {
gotoAndPlay (1);
}

Si tu as d'autres questions... Tu as mon adresse de Montréal, n'hésites pas!

Regards,
wink4.gif
ldnewbie
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top