PDA

View Full Version : How to add a mouse event to a button?


BahamutZaero
05-09-2008, 04:59 PM
So I've got a .FLA file, and I've got a seperate .AS file with all my game code in it. I'm writing the editor, so I've got a dialog with some radio buttons and a regular button. However, I cannot seem to get my .AS script file to see them, and vice versa!

Anyone have any clue how to do this? How do I get my radio buttons and regular buttons and everything to be seen by the .AS file so I can add event handlers, see the state of the radio buttons and everything? If it helps at all, the error I keep getting is (with the property of course being different for each object):

1120: Access of undefined property closeEditMenu.

Thanks in advance! Tearing my hair out over this! ;)

-BZ