I'm trying to remove the parent and children of movieClip in my flash file using AS3.
The problem that I have is that i can only remove the child and the parent stays on the stage at all time!
this is my code to remove the parent and child:
removeChild(clip_mc);
clip_mc = null;
gotoAndStop(2);
and this is how i create the movieclip and its children:
var clip_mc = new MovieClip();
// Add the rectangle graphic
clip_mc.addChild(rect);
// Add the text field
clip_mc.addChild(myText);
clip_mc.addChild(pictLdr2);
// Put the new movieClip on stage now
addChild(clip_mc);
// Make the mouse button mode true for the movieclip so user knows it is a button
clip_mc.buttonMode = true;
i thought, adding removeChild(); would remove the parent as well but in my case it will only removes the child and the parent stays on the stage
could someone please advise on this?
Thanks