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: 183
flash
|actionscript-3
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