View Full Version : preloader for movie clip

10-03-2003, 03:14 AM

is there a way, when you use the attachMovie command, for that movie to load with a preloader. i have a movie clip that i want to load when the user presses a button, but it is large enough to use a preloader.

there is a first command in the main timeline:

and then a second command on the button to swap for the other movie clip:

but my preloader within each movie clip won't seem to work in either case. any advise?

thanks :)

10-03-2003, 03:50 AM
put what you want to load in a seperate swf file, lets say it's called test.swf.
then use loadMovie in you "main" swf to load it. You can load it into a clip that you put on the stage dynamically in AS or by hand. Lets say its called container_mc.


then you can check container_mc's loading progress with the getBytesLoaded() and getBytesTotal() methods.

In the future, try looking for answers to MX 04' stuff in the old MX area. I think a LOT of these kind of questions have been covered there and pretty much everything that was kosher for MX still is for MX 04'.