This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //... | |
| DialogManager.addDialog("Do you want to do it?", [ {label:"YES", func:yesFunction}, {label:"NO", func:noFunction} ] ); | |
| //... | |
| private function yesFunction():void { | |
| trace("YES pressed"); | |
| } | |
| private function noFunction():void { | |
| trace("NO pressed"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| DialogManager.addDialog("Just simple message"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| DialogManager.removeDialog(); | |
| // удаляет текущий диалог из списка отображения. | |
| DialogManager.removeAllDialogs(); | |
| // удаляет текущий диалог из списка отображения и очищает всю очередь диалогов |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| DialogManager.backgroundColor = 0xFF00FF; // color uint | |
| DialogManager.backgroundAlpha = 0.5 // Number 0-1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package { | |
| import constants.ScreenType; | |
| import events.GameEvent; | |
| import flash.desktop.NativeApplication; | |
| import flash.display.Sprite; | |
| import flash.display.StageAlign; | |
| import flash.display.StageScaleMode; | |
| import flash.events.Event; | |
| import flash.events.TouchEvent; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package screens { | |
| import com.adobe.nativeExtensions.Vibration; | |
| import constants.ItemType; | |
| import elements.Button; | |
| import elements.Item; | |
| import elements.Platform; | |
| import events.GameEvent; | |
| import flash.display.Sprite; | |
| import flash.events.Event; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package { | |
| import constants.ScreenType; | |
| import events.GameEvent; | |
| import flash.desktop.NativeApplication; | |
| import flash.display.Sprite; | |
| import flash.display.StageAlign; | |
| import flash.display.StageScaleMode; | |
| import flash.events.Event; | |
| import flash.events.TouchEvent; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <script> | |
| var flashvars = { | |
| }; | |
| var params = { | |
| menu: "false", | |
| scale: "noScale", | |
| allowFullscreen: "true", | |
| allowScriptAccess: "always", | |
| bgcolor: "", | |
| wmode: "transparent" |