Best way to unattach a movieclip?
I've got a problem and have racked my brain - and searching this forum - for a solution.
I have a movieClip called mcAttract on Level10. In this clip I've got another movieClip in which there's a button. This button has the following command:
Code:
on (press) {
_root.attachMovie("mcAttractC2MovieBackground","mcAttractC2MovieBackground",20);
}
mcAttractC2MovieBackground is a clip in which there's some video, as well as a close button. The close button has the following command:
Code:
on (release) {
unloadMovie(this)
}
So far so good. My close button does the job and gets rid of the clip on Level 20.
However, my original movieClip has a back button. This button brings you to the following on the timeline:
Code:
this.attachMovie("mcMainMenu","mcMainMenu",10);
mcMainMenu.gotoAndPlay(140);
Normally this does the job of getting me back to my main menu page. What it doesn't do is get rid of the blasted mcAttractC2MovieBackground clip.:mad:
I've tried various scenarios - including putting an unloadMovieNum(20) on frame 140 of the mcMainMenu timeline, but that doesn't work.
How in the world do I get rid of that pesky movieClip on Level20 when I press by Back button?
Here's a visual!
http://www.802studio.com/p/attract-1.jpg
Any help would be much appreciated. Like most of my Flash challenges, I'm sure the answer is right in front of me.