QuantumDoja
Programmer
Hi, I have the following function, when called it puts an movie clip on the screen, this attached movie clip has a movieclip on it, that when pressed, should remove the attached movieclip, I can capture the event, but I can remove the clip.
here is my code
here is my code
Code:
//function to show error mc
function LoadError():Void {
trace("Loading error.")
var mcError:MovieClip = this.attachMovie("mcConError","mcError",this.getNextHighestDepth());
mcError.mcbtnClose.onPress = function():Void {
trace("Close Clicked")
removeMovieClip(mcError);
};
}