PDA

View Full Version : Preloader troubles


nrvus19
10-22-2002, 06:46 PM
Im using the preloader that is included within the tutorials of this site with Flash MX. The preloader is working but, the bar sort of jumps in at about the 30% loaded point...that is to say, the outline of the loader is visible but the fill comes in almost 1/4 of the way full and the percentage numbers start at around 30%.

Does anyone know what this is happening?

Heres the script for frame 1 of the preload scene:

total_bytes = _root.getBytesTotal();
loaded_bytes = _root.getBytesLoaded();
remaining_bytes = total_bytes-loaded_bytes;
percent_done = int((loaded_bytes/total_bytes)*100);
bar.gotoAndStop(percent_done);
ifFrameLoaded ("home", "available") {
gotoAndPlay("home", "begin");
}

Thanks,
John

Pal3rm02k
10-22-2002, 08:09 PM
make sure that u haven't deleted some frames from the bar movie clip!

nrvus19
10-22-2002, 08:17 PM
by deleting frames...do you mean, ever? i think when i first built the bar MC i may have deleted frames, but i cant remember...it looks normal right now. there are no missing frames.

nrvus19
10-22-2002, 08:27 PM
it is showing up and it is working, but its a bit frustrating when it doesnt start until 30%

if i drag it into other movie clips, it wont start until about 75%

this is a constant problem for me with this particular type of script.
ive always been at odds with these sort of preloaders for this very reason.

In the debug window, the bar graph is showing a percentage that is substantially higher than what i think it should be for this frame.

Pal3rm02k
10-22-2002, 08:43 PM
your bar has 100 frames?
u must make a motion tween or a motion shape between frame1 and frame100
from 0% to 100%(the bar)

nrvus19
10-22-2002, 08:47 PM
yup,
its all there.

ill post a simple example of what gone wrong here.
if you test it in the 'control' window with 'show streaming' you will see what im talking about.

in this particular example it wont kick in until about 80%

Pal3rm02k
10-22-2002, 09:01 PM
very strange!!
I saw what u mean but I don't know what causes it
did u try puting it on an ftp??
it does the same thing?

nrvus19
10-23-2002, 05:51 PM
yeah, exact same thing. this is not the first time it has happened either. its very frustrating when i cant quite tell whats gone wrong and apparently something has.