开发者

quit application develop in flash release in Adobe air apk

开发者 https://www.devze.com 2023-03-20 11:50 出处:网络
i have develop one game in FLASH cs 5.5 and Action script 3.开发者_开发百科0 , my problem is i have put one close button in end of that game. but when i am press those button after make apk and test o

i have develop one game in FLASH cs 5.5 and Action script 3.开发者_开发百科0 , my problem is i have put one close button in end of that game. but when i am press those button after make apk and test on mobile, it get no effect(means not quit my application). thanks nik


this should work:

close.addEventListener(MouseEvent.CLICK, onClickClose);
private function onClickClose(evt:MouseEvent):void
{
  NativeApplication.nativeApplication.exit();
}
0

精彩评论

暂无评论...
验证码 换一张
取 消