This file contains 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 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 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 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 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
import com.illuzor.dialog.DialogManager; | |
DialogManager.init(stage); |
This file contains 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
.gist .gist-file .gist-data { | |
overflow: auto; | |
word-wrap: normal; | |
background-color: #f8f8ff; | |
border-bottom: 1px solid #ddd; | |
font-size: 100%; | |
width: auto; | |
} |
This file contains 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 com.illuzor.test{ | |
import flash.display.Sprite; | |
LoadedClass; | |
public class MainClass extends Sprite{ | |
public function MainClass():void{} | |
} | |
} |
This file contains 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 com.illuzor.test { | |
import flash.display.Loader; | |
import flash.display.Sprite; | |
import flash.events.Event; | |
import flash.net.URLRequest; | |
public class Main extends Sprite { | |
public function Main():void { |
This file contains 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
public function Main():void { | |
var loader:Loader = new Loader(); | |
loader.load(new URLRequest("TestToLoad.swf")); | |
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, onLoaded); | |
} | |
private function onLoaded(e:Event):void { | |
e.target.removeEventListener(Event.COMPLETE, onLoaded); | |
var TestClass:Class = e.target.applicationDomain.getDefinition("com.illuzor.test.LoadedClass") as Class; |
This file contains 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
var TestClass:Class = e.target.applicationDomain.getDefinition("com.illuzor.test.LoadedClass") as Class; | |
var loadedClassInstance:ITest = new TestClass() as ITest; |