Preloader that includes loaded movies

Hi all,

I have created a file who’s only use is to load other swf’s… The reason is that I want this file to handle all the coding part, and create the other files by just inserting jpgs on them…

Basically, I call “loader.swf” and send it variables (eg. “loader.swf?proType=web&proID=1”). Then, the loader uses “loadMovie” to include the required file using this code :

target = "projects/" + _root.proType + "/" + _root.proID + ".swf";
loadMovie(target, this.anim);

As I said, there may be hundreds of child files, and I DON’T want to have to create preloaders for each of them. I want to know how can I include the child file in the main file’s preloader…

I attached my current sample here. You will find the following files :

  • loader.fla & .swf : The loader file, which contains the preloader
  • loader.html : Sample call to the loader with the needed variables

Thanks for your help,

Simo