can anyone tell me what is wrong with my exit button...even thought i use "fscommand" when i click exit button it doesn't close my flash game...another button is going well..
package
{
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.text.*;
import flash.utils.*;
import flash.ui.*;
import flash.system.fscommand;
public function startMenu()
{
btnPlay.addEventListener(MouseEvent.CLICK, gotoGame);
btnHelp.addEventListener(MouseEvent.CLICK, gotoHelp);
btnExit.addEventListener(MouseEvent.CLICK, gotoExit);
}
private function gotoExit(evt:MouseEvent)
{
btnExit.addEventListener(MouseEvent.CLICK, gotoExit);
fscommand("quit", "");
}
private function gotoHelp(evt:MouseEvent)
{
btnHelp.removeEventListener(MouseEvent.CLICK, gotoHelp);
gotoAndStop("Help");
}
private function gotoGame(evt:MouseEvent)
{
btnPlay.removeEventListener(MouseEvent.CLICK, gotoGame);
gotoAndStop("game");
}

fscommand("quit"), notfscommand("quit", ""). BTW this command is pointless and may not work in browser. When user wants to quit, he can just close the window. - Andrei Nikolaenko