Hi there
I have a movieclip which unloads two other movieclips when it is clicked. This bit works fine, but it should also remove itself after this, which particularly does not work. Here is my code, can someone please tell me what I am doing wrong:
close_button.onRelease = function() {
background.unloadMovie();
loading.unloadMovie();
this.unloadMovie();
}
Regards and TIA
// edit
Here is the code I create the movieclips:
// load background, movieclip container (loading) and close button
var background:MovieClip = _root.attachMovie("mc_back","loading_background", 100000);
var loading:MovieClip = _root.createEmptyMovieClip("loading",_root.getNextHighestDepth());
var close_button:MovieClip = _root.attachMovie("close_button","close_button",_root.getNextHighestDepth());
I tried:
this._parent.close_button.unloadMovie(); // it removed the whole _root movieclip, as _root is the parent
and
_parent.close_button.unloadMovie(); // did just nothing
Both failed.