all groups > flash actionscript > january 2004 >
You're in the

flash actionscript

group:

preloader - progress bar


preloader - progress bar domen555
1/22/2004 10:56:51 PM
flash actionscript:
Here is my movie:

FLA: http://freeweb.siol.net/kdoma/preloader.fla

SWF: http://freeweb.siol.net/kdoma/preloader.swf

I want to make preloader, that it checks ever frame for procent of downlaoded.
Like this: when switching from frame 24 on frame 25 it needs to check if 25% of frame is loaded, else play prev frame.

But if i put that code to each frame its too complicated and its lagging movie.

Please help!

Tell me if i am not clear!

Re: preloader - progress bar kglad
1/23/2004 1:04:42 AM
you're either not clear or it can't be done. it appears you're asking flash to determine when 25% of the content of a given frame is loaded. there's no way for flash to know what 100% of the content is until it's all loaded, but that's a little late to help. or you'd need to make another movie that contains the contents of your frame in question and flash could determine that movies total content without loading.

Re: preloader - progress bar iota
1/23/2004 3:36:24 AM
Re: preloader - progress bar domen555
1/23/2004 10:22:44 PM
no, no.

I want to make just 100 frames long preloader, which has shape (progress bar) and checks every frame if frame is loaded ( 1st frame 1 procent, 2nd frame 2 procents...)

Re: preloader - progress bar kglad
1/24/2004 1:05:43 AM
you can use _framesloaded to control your progress bar, though this is not as accurate as using getBytesLoaded()

AddThis Social Bookmark Button