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
public function set watchOut(value:Boolean):void { | |
_watchOut = value; | |
if (_watchOut) { | |
watchOutAnimation.visible = true; | |
} else { | |
watchOutAnimation.visible = false; | |
} | |
} |
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 com.illuzor.test{ | |
public class LoadedClass{ | |
public function getTestText():String{ | |
return "testText"; | |
} | |
public function getTestNumber():Number { | |
return Math.random(); |
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
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 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 com.illuzor.test { | |
public interface ITest { | |
function getTestText():String; | |
function getTestNumber():Number; | |
function get testGetterVar():String; | |
} | |
} |
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
var TestClass:Class = e.target.applicationDomain.getDefinition("com.illuzor.test.LoadedClass") as Class; | |
var loadedClassInstance:ITest = new TestClass() as ITest; |
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
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 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 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 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 com.illuzor.test{ | |
import flash.display.Sprite; | |
LoadedClass; | |
public class MainClass extends Sprite{ | |
public function MainClass():void{} | |
} | |
} |
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
.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 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
import com.illuzor.dialog.DialogManager; | |
DialogManager.init(stage); |
OlderNewer