Hi.
I’m working on a presentation that will consecutively load external SWFs into the _root of the main SWF and then mask them with a setMask option.
The code I’m using detects the end of the current SWF and then triggers the next SWF to load.
The problem: The code is dependent on loadMovieNum which allows attachment of a SWF to a certain level, which nullifies the use of setMask.
Using loadMovie allows me to use setMask, but that ruins the detection of the end of each SWF.
Here’s the faulty code I’m using with loadMovieNum, nested within an empty movieclip on _root:
onClipEvent (enterFrame) {
if (counter == null) {
_level2.setMask(_root.mask);
loadMovieNum(“lg1.swf”, 2);
counter = 2;}
else if ((_level2._totalFrames != undefined) &&
(_level2._currentFrame == _level2._totalFrames)) {
filename = “lg” + counter + “.swf”;
trace (counter);
loadMovieNum(filename, 2);
counter++;
}
}
All of this to say, is there anyway to set a mask to SWFs loaded with loadMovieNum?
-Kammer