removeMovieClip() not working ?!

Please someone help me out here. This thing is driving me nuts.

I have a simple movieClip called addMovie which is called at runtime via attachMovie when another movieclip is clicked. This MC “addMovie” has two small MCs acting as buttons (basically ‘ok’ and ‘cancel’ buttons) which are supposed to pass some values to a function in the main time line and then close the parent MC via “this._parent.removeMovieClip()”. The problem is that even though they are passing the values perfectly, they are not removing the parent MC.

The same thing happens with another MC which was attached at runtime and should be removed once a particular function executes but that one is also not getting removed.

I created a test file to check if I was doing things right with only a square MC with another button MC inside at it works perfectly (removes the parent when clicked) Here is a part of the code involved:


//This MC calls the addMovie MC when clicked.

this.addMovBut.onRelease = function() {   
 this._parent.attachMovie("addMovie","addMovie",this._parent.getNextHighestDepth(),{_x:this._parent._width/2,_y:this._parent._width/2}); 
}


//-----------Inside addMovie-------------
//
//add_mc and cancel_mc are basically acting as buttons. 
//They are supposed to pass values to some _root functions and then close the parent MC.

add_mc.onRelease = function() {
    if(radSel != null) {
        this._parent._parent.addElement(radSel,this._parent.tag.text);
    }
    this._parent._parent.disableMCs(true);
    this._parent.removeMovieClip();
}
cancel_mc.onRelease = function() {
    this._parent._parent.disableMCs(true);
    this._parent.removeMovieClip();
}

Any ideas? :crying::wasted: