0

这是我在 CS6 中构建的退出按钮的 AS3 编码。但是,当我在 Flash 中测试电影时,退出游戏是行不通的。有什么问题,谁能告诉我?谢谢。

import flash.events.MouseEvent
import flash.system.fscommand;
quit_btn.addEventListener(MouseEvent.CLICK,clickHandler);

function clickHandler(event:MouseEvent):void {
   fscommand("quit");
}  
4

1 回答 1

1

我知道这是一个老问题,但它没有任何明显的答案让我很困扰。

我相信正确的答案来自 LDMediaServices:Flash IDE 测试环境不接收 fscommands。

虽然我已经能够测试以确保我的 fscommands 是通过 UDK 提供的 Scaleform Launcher 插件发送的。然而,这并没有测试来自任何接收这些命令的响应。

http://udn.epicgames.com/Three/SettingUpScaleformGFx.html

于 2014-07-01T19:48:51.730 回答