yes i know this question gets asked all the time, but my inexperience has prevented me from finding the answer. I'm simply trying to remove an object from the screen if a button is clicked -
public function but1click(evtObj:MouseEvent)
{
trace("button one clicked");
if (gracestate == "grace")
{
removeChild(grace);
trace("grace removed");
}
}
I traced the parent of the object (grace) and it came back as null. This is driving me nuts, and help would be much appreciated!