Skip to content

Instantly share code, notes, and snippets.

Artem illuzor

Block or report user

Report or block illuzor

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:2815580
public function set watchOut(value:Boolean):void {
_watchOut = value;
if (_watchOut) {
watchOutAnimation.visible = true;
} else {
watchOutAnimation.visible = false;
}
}
View gist:3274405
package com.illuzor.test{
public class LoadedClass{
public function getTestText():String{
return "testText";
}
public function getTestNumber():Number {
return Math.random();
View gist:3274457
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;
View ITest.as
package com.illuzor.test {
public interface ITest {
function getTestText():String;
function getTestNumber():Number;
function get testGetterVar():String;
}
}
View gist:3274469
var TestClass:Class = e.target.applicationDomain.getDefinition("com.illuzor.test.LoadedClass") as Class;
var loadedClassInstance:ITest = new TestClass() as ITest;
View Main.as
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;
View gist:3274490
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 {
View gist:3274500
package com.illuzor.test{
import flash.display.Sprite;
LoadedClass;
public class MainClass extends Sprite{
public function MainClass():void{}
}
}
View gist:3450390
.gist .gist-file .gist-data {
overflow: auto;
word-wrap: normal;
background-color: #f8f8ff;
border-bottom: 1px solid #ddd;
font-size: 100%;
width: auto;
}
View gist:3482348
import com.illuzor.dialog.DialogManager;
DialogManager.init(stage);
You can’t perform that action at this time.