(Flash AS3)
I’m relatively new to flash so any help would be greatly appreciated. Basically I have a movieclip that when I roll_over it reveals two buttons that I then need to use to remove movieclips that are on the same stage as the original movie clip. So the button inside the movieclip needs to remove a different movieclip that is also up on level.
I’ve tried this many different ways, none seem to work. The error that I keep getting is undefined property of “grey_mc.” And yes I made sure it has an instance name of grey_mc on the main stage. my code looks like:
removeButton.addEventListener(MouseEvent.CLICK, clickHandler);
function clickHandler(event:MouseEvent) {
parent.removeChild(grey_mc)
}
i’ve also tried with other variations:
MovieClip(this.root).removeChild(grey_mc);
any help or suggestions would be very much appreciated. thanks.