Flash button not reacting at all...

Posted by Jerre on Stack Overflow See other posts from Stack Overflow or by Jerre
Published on 2010-05-14T07:45:04Z Indexed on 2010/05/14 8:14 UTC
Read the original article Hit count: 180

Filed under:
|

Hi,

I'm making a game in Flash for school. I have a few dialog boxes that work just fine! Now I need a bigger one with more buttons and with the same code, I can't even get a trace reaction...

My code:

On the button itself:

okButton.addEventListener(MouseEvent.CLICK,MovieClip(parent).clickMyButton);

In the AS file:

public function clickMyButton(event:MouseEvent) {
trace("Halloooo");
}

Another question:

How can I close (remove from stage) a child dialog box (movie clip)

© Stack Overflow or respective owner

Related posts about flash

Related posts about actionscript-3