-
container_mc.createEmptyMovieClip("loader1_mc",2);
-
container_mc.createEmptyMovieClip("loader2_mc",1);
I'm not sure what movieclips your script is refering to, but here's the simplest way to do it:
Create your movieclips like this:
- container_mc.createEmptyMovieClip("slideshow", container_mc.getNextHighestDepth());
Then do a loop to get the lowest movieclip on the stage. You may want to name your movieClips sequentially to simplify this (eg. loader1, loader2).
-
-
mc = this["loader" + 1];
-
var lowest:MovieClip = mc;
-
for(i = 1; mc != undefined; i++)
-
{
-
mc = this["loader" + i];
-
if(mc.getDepth() < lowest.getDepth())
-
lowest = mc;
-
}
-
slideshow.swapDepths(lowest);
-
If you need to keep the current order of depth for each movieclip and stick the slideshow beneath all of them, just let me know and I can modify that script to do that. At the moment, it just swaps the depth of slideshow with the lowest clip (so the lowest clip goes to the top).