ActionScript code to close the program
Does anyone know the ActionScript code to close the .swf file? I want the user to be able to click on a button, which will call a function that closes the .swf file, but I don't know the correct method to use. Using the structure below, what code would go inside the function?
exit_btn.addEventListener(MouseEvent.CLICK, closeProgram);
function closeProgram(event:MouseEvent):void {
}
