Action Script 3.0 Preloader
Writing a simple Action script 3.0 pre-loader is lightweight, and does not requires much. One of the common problem faced when animators or developers when they compile their clip with preloaders is that the preloader takes quite some time to appear (leaving a blank white screen) when testing for streaming simulation. Â
The reason of this problem is the amount of chunk(movie clips, components, scripted sounds) needed for the preloader to appear is too high. This will make the preloader appear somewhere at the 50%-60%. This is due to your flash application is attached to a lot of scripted sounds, components and movieclips. Today, I’m gonna write some samples of preloader in actionscript 3.0 as well as how to overcome the issue of preoloading large chunk of swf file.
Â
There’s two ways to fix this problem: -
- a) Change the export classes to load from frame settings. To do click click for publish settings. Under Flash tab, click on the button beside Actionscript version called Settings. See picture below. When the dialog pop up, change your export classes to load from frame settings to frame 2 instead.

b) Write another external pre-loader that loads up the target swf like a wrapper. A preloader swf and the target swf.
I’ll post two samples of actionscript source file for your usage. You may use it for your projects, business or whatever, just post a comment of thanks below this post if you like it.
Actionscript preloader samples for a) and b)
Â


























am June 5 2008 @ 9:19 pm
Thank you soooooooo much!
That’s my need.
am July 23 2008 @ 11:24 pm
Thx!
am July 25 2008 @ 1:05 am
Very useful, thanks a lot!