Click to See Complete Forum and Search --> : Special Flash preloader


Frank1984
12-16-2004, 01:48 PM
Hi,

Do any of you know how to make a preloader in Flash with a bar that fills up and with a percentage that says how much is loaded?

I already know how to make a normal preloader, I only don't know how to make one with a bar that fills up and a percentage beneath it.

Thanks in advance for your help!

Frank

wizard
12-16-2004, 05:27 PM
Here, take a look: HERE (http://www.kirupa.com/developer/mx/percentagepreloader.htm)

lakman4
12-17-2004, 02:23 AM
Hi,

I also need to implement this one, but it is above my level in flash. Maybe someone have one they wat to loan me, and I could maybe change coler etc. I hope so. thanks guys,

Frank1984
01-27-2005, 09:08 AM
Thanks!

ramieb
01-28-2005, 07:25 AM
You already have the information to make the bar move, its quite simple to implement it.

Basically just make a bar movie clip, say loadBar_mc and set the registration point to the middle left, note the width of the loadBar_mc as it would be when at 100% loaded, lets say you make it 200px in total. Now set the width of the completed loadBar_mc to 1px.

If you already have a % preloader made, im assuming you've worked out the percentage from the bytes loaded and bytes total, so you can use this percentage variable to move the bar.

loadBar_mc._width = percentage*2;

Add that to the same routine that you use to display your % in the textbox on your preloader.

Note the *2, this will multiply the % by 2, and make the load bar stretch to 200px when the % reaches 100%. If your load bar was 350px wide it would be percentage*3.5 and so on.

Hope this helps.

RB :)