PDA

View Full Version : Preloader - Progress Load Bar .. how?



prere
02-28-2009, 10:08 AM
Hi.

I have a site which use .swf files.
And there is a problem.Sometimes these swf take time to load and people think that it's broken.
So what i think is to put a preload progress bar which show how much(percentage %) the swf has loaded.
I have seen something similar at some flash games sites,which shows how much % the game has loaded.one example is for this game (http://www.agame.com/game/skate-park.html) eg.

Could anyone help me how to do it?
(or a link to a tutorial if already exists)

Thanks in advance.

vwphillips
02-28-2009, 02:05 PM
on that site they use a defined time to allow the swf to load

view the source code

var preloader_time = '15000';

prere
02-28-2009, 05:46 PM
Hi.
In fact i have seen it from another 2-3 sites. When i saw their source code, i saw that inside a .js they use ,it says agame.com.
So it seems that they got it from agame.com
So, another site to see what i mean (which hasnt this preloader time) is this:
http://www.zagrajse.pl/game/2595/Worms-Level-2.html
(http://www.zagrajse.pl/game/2595/Worms-Level-2.html)
They use this .js for the game:
http://www.zagrajse.pl/all.js

So,if i use the same .js will be ok? But inside this .js it says agame.com.
Shouldnt that mind?