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.
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.