Adding a preloader to an already existing Flash movie

I created a Flash movie that takes some time to upload (even with DSL) and wanted to add a preloader to it. Can this be done after the fact? If so, how? I’ve read: and understand how to create the preloader, just not sure how to connect it to my already existing Flash movie. And would anything need to change in the action script?


yes it can, you just have to move all the frames on the main timeline up 2 frames. If you have references in your script such as “goToAndPlay(12)” etc, you will have to change these but hopefully you have used frame labels.

Should the preload I build then go above or below the movie info? And does the action script for the preload need to change. It is currently:

bytes_loaded = Math.round(this.getBytesLoaded());
bytes_total = Math.round(this.getBytesTotal());
getPercent = bytes_loaded/bytes_total;
this.loadBar._width = getPercent100;
this.loadText = Math.round(getPercent
if (bytes_loaded == bytes_total) {

I`ve made you a basic preloader, the code is not the same as kirupas but it works pretty much the same but is a bit more flexible. when testing, you need to go to simulate download/view streaming to see and set at a low KB/s.
it assumes the main movie is on frame 2 but you can change to 3 if you want.

Got it! Thanks!