PDA

View Full Version : Closing the window


canarybirdfly
01-17-2009, 11:53 PM
Hey there! I've been trying to set up an exit button which exits the entire game when pressed but I can't get it to do what I want, does anyone have any ideas?

Thanks in advance :)

orange gold
01-18-2009, 06:50 AM
try...

exit.onPress = function() {
unloadMovieNum(0);
}

..if its inside the flash file itself...

otherwise use this...

exit.onPress = function() {
fscommand("quit")
}