View Full Version : progress bar

05-06-2009, 07:42 PM
I have a relatively large flash file that contains an entire website. Visitors have to wait for the whole site to finish loading before they can view the site. How can I brake up the site into smaller files so that it only loads the home page first and not the entire site? Or better yet, how can I make the progress bar look like it reached 100% even though it may only have loaded 30% of the whole site? This way the visitor can view the home page first while the rest of the site is still loading. Or is there a different way to approach this? THIS BY THE WAY IS IN ACTION SCRIPT 3.0. Thanks in advance.

05-06-2009, 10:32 PM
Here is a basic preloader in AS3

05-06-2009, 10:46 PM
I'm not looking to build a preloader. I have one done, I'm looking to brake the flash file down into little files so that the home page will load faster. Right now it's loading the whole site instead of just loading the home page. THE WHOLE SITE IS ONE FLASH FILE

05-07-2009, 10:20 AM
So you could break each section into its own SWF, and then load them only when they are needed. That would reduce the load time initially but increase it throughout. This can be difficult though if you created everything in one file, to split it up can be a lot of work since the linkage will be broken (depending on how large the site is).

Is it graphic intensive? Perhaps there are ways to also compress things?

05-07-2009, 09:36 PM
Hmmm.. Im not sure this is the way I want to go. If you can.. Take a look at this site...http://www.ninthdegree.com/. For some reason it looks as if the whole site is under one flash file even when you click the links it just jumps into different timelines. But the initial page is broken down into a few different portions and each have their own progress bar and thus makes the site load faster. How did they do it?

05-08-2009, 12:03 AM
They must be loading different .swf files into their own container clip to achieve that. Doubtful it's all one fla.

05-08-2009, 10:09 AM
scottyp2 is right, they have made a main container and then load the inner part for each page.

They are using this command with some fancy implementations.


05-08-2009, 07:05 PM
I see. Thank you for your responses. As for the container....I don't even know where to begin with that. Not really that advanced in Flash and the link http://livedocs.adobe.com/flash/9.0/...=00001189.html did not work. Thanks anyway.

05-09-2009, 04:04 PM
Strange, the forum cut my URL. Its a link to the loadMovie function on the Flash documentation.