Buttons in Air
I've recently started learning how to develop desktop things using Flash CS3 and Air. However, I'm having some problems with the basics of the Air scripting.
Not sure if I've done something wrong, but I cannot add actionscript to any of the buttons I create.
What I'm wanting to do is create a button that I'm going to place in one of the corners. When the button is pressed I'm wanting it to do is run the nativeWindow.close piece of actionscript.
Am I able to add the code the the button as I normally (directly onto the button itself)? Or do I need to create a function that will locate the button and run the code when the button is pressed?
Any help is appreciated