Skip to main content
Inspiring
September 4, 2007
Answered

removing movie clip problem

  • September 4, 2007
  • 4 replies
  • 225 views
I trying to load a movieclip into scene 1 and then with a close button attached to the loaded movie trying to remove the MC from scene 1. What am i doing wrong? The load works great...the unloading doesn't

attachMovie_btn.onRelease = function(){
this._parent.attachMovie("MCTrio", "trio_mc", 1);
trio_mc._x = 275;
trio_mc._y = 200;
};

and on a close button on the loaded MC i have

on (release) {
_parent.removeMovieClip("MCTrio");
}

Thanks Brian
This topic has been closed for replies.
Correct answer Greg Dove
try:

on (release) {
_parent.trio_mc.removeMovieClip();
}

4 replies

Inspiring
September 4, 2007
cheers, no problems.
3-PuttAuthor
Inspiring
September 4, 2007
Thank you very much the first suggestion worked
Inspiring
September 4, 2007
or maybe

on (release) {
_parent.removeMovieClip();
}

if its a button inside the loaded clip
Greg DoveCorrect answer
Inspiring
September 4, 2007
try:

on (release) {
_parent.trio_mc.removeMovieClip();
}