Question
AS3 button
I am trying to write a button that will close the application down upon click. My code is as follows:
Exit_mc.addEventListener(MouseEvent.CLICK, CloseApp);
function CloseApp(e:MouseEvent) {
fscommand("quit");
}
The application runs with no errors but when I click on the button nothing happens. Can anybody help?
