Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/windows/15.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/actionscript-3/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Windows 操作脚本3-在MouseEvent.CLICK上创建退出应用程序/程序按钮_Windows_Actionscript 3_Flash_Mouseevent - Fatal编程技术网

Windows 操作脚本3-在MouseEvent.CLICK上创建退出应用程序/程序按钮

Windows 操作脚本3-在MouseEvent.CLICK上创建退出应用程序/程序按钮,windows,actionscript-3,flash,mouseevent,Windows,Actionscript 3,Flash,Mouseevent,蹒跚通过AS3。我在想,是否有人能给我一些建议,告诉我怎么做。当点击一个按钮时,它会提示一个气球出现,这样你就可以“退出”flash了。这是从全屏模式-后期开发 我是AS3新手,所以任何提示都将不胜感激 quitout_btn.addEventListener(MouseEvent.CLICK, quitout); function quitout(event:MouseEvent):void { something happens here..... } 谢谢你的帮助 通过代码触发全屏显

蹒跚通过AS3。我在想,是否有人能给我一些建议,告诉我怎么做。当点击一个按钮时,它会提示一个气球出现,这样你就可以“退出”flash了。这是从全屏模式-后期开发

我是AS3新手,所以任何提示都将不胜感激

quitout_btn.addEventListener(MouseEvent.CLICK, quitout);

function quitout(event:MouseEvent):void
{
 something happens here.....
}
谢谢你的帮助

通过代码触发全屏显示到窗口模式


要退出应用程序(如果您在桌面AIR应用程序中)

您还可以查找fscommand(“退出”)

然后跑

function quitout(event:MouseEvent):void
{
     fscommand("quit")
}
function quitout(event:MouseEvent):void
{
     fscommand("quit")
}