PDA

View Full Version : delay before preloader appears


Figure2
07-04-2005, 09:26 PM
I have a Flash animation that is about a minute long that is quite heavy with raster graphics, some embedded fonts and a scrollbar component. As a result of all of this, there is a sometimes long delay before my preloader progress bar appears on screen. Once the preloader finally appears, the animation runs as expected.

I checked the bandwidth profiler and saw that my 1st frame has a load of about 2MB which is no doubt the cause of the delay. Here is the ActionScript I am using for my preloader script:stop();
//
cammoLoader.onEnterFrame = function() {
percentloaded=Math.ceil(_root.getBytesLoaded()/_root.getBytesTotal()*100);
this.gotoAndStop(percentloaded);
if (percentloaded==100) {
this.loaderType.stop(); // A very simple vector animated text clip under the progress bar
_root.gotoAndPlay(2);
}
}
Here is a link to the swf: The Trail (http://www.robinbartlett.com/thetrail.html)

Is there any way I could get the 1st frame (where My preloader is) to load any faster? It isn't too bad for people on high speed connections but I have heard from people on dialup that the wait can be very long.

Xeef
07-04-2005, 11:05 PM
i am on dial up ind there is definetly no chance that i wait for 2Mb ;)
but this just by the side

the first frame is so large because more or less anything is set by standart to "Export in First Frame" that mean anithing what set to this will by downloaded in the first frame
even if you just use them on fram 1000

presss CTRL+L the library is open you see the clips compoenents ... what you use in the movie rigth click one of them and select "Linkage.." there you will see this option
deselect it

IMPORTANT

if you have clips or anything else what you bring later in the movie whit actionscript
like "attachMovie"... you need to place this clips from the library manualy on one frame (on this frame they will by loaded) it can by outside of the stage

Figure2
07-05-2005, 04:23 AM
Xeef! That did the trick. Thanks for the help. After I deselected the "Export in First Frame" option, the load on the 1st frame dropped to somewhere around 100 K.