forked from tinyspeck/glitch-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEngine.as
26 lines (22 loc) · 759 Bytes
/
Engine.as
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package {
import com.tinyspeck.debug.BootError;
import com.tinyspeck.engine.Version;
import com.tinyspeck.engine.control.MainEngineController;
import flash.display.Sprite;
import flash.events.UncaughtErrorEvent;
import flash.system.Security;
public class Engine extends Sprite {
public var version:Version;
public var mainEngineController:MainEngineController;
public function Engine() {
Security.allowDomain('*');
Security.allowInsecureDomain('*');
this.loaderInfo.uncaughtErrorEvents.addEventListener(UncaughtErrorEvent.UNCAUGHT_ERROR, BootError.handleGlobalErrors);
version = new Version();
mainEngineController = new MainEngineController();
}
public function run():void {
mainEngineController.run();
}
}
}