View Full Version : my preloader doesnt work

07-18-2003, 09:17 AM
Please help me!
I made a preloader from a tutorial and now that I uploaded my website I see that it does'nt work. The flash window opens white for some seconds until the movie is loaded.
The action script I used is:

First frame:
percent = Math.floor(getBytesLoaded()/getBytesTotal()*100);
myOutput.text = percent + "% is loaded";

second frame:
if (percent == 100){

in both frames there is an empty imput text. The movie starts in the third frame.

Thank you in advance, I hope someone can help me

07-18-2003, 12:47 PM
Any use of components or attached files will load them before the preloader starts.

07-19-2003, 06:41 AM
I didnt understand your answer, could you explain it to me please?
Thank you!

07-19-2003, 04:11 PM
Attached movies, music, components always load in the first frame of the movie. You can not do anything about this. Then your preloader will show. Thats probably why the movie is white while loading.

Have you given a variable name to the input field?

The code also should be....

percent = Math.floor(getBytesLoaded()/ Math.floor(getBytesTotal())*100);

07-20-2003, 12:47 AM
There is something you can do about it. Go into your library, right click on your components and choose linkage. Then uncheck "Export in first frame".

07-20-2003, 12:54 AM
This might be better placed in the Flash MX or Components forums.