Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Test {
- static var world : flash.display.MovieClip;
- public static var inst : Test;
- var root : flash.display.MovieClip;
- public function new(root) {
- var me = this;
- this.root = root;
- trace(root);
- //trace(root.stage());
- //var stage = root.x;
- //root.addEventListener(flash.events.KeyboardEvent.KEY_DOWN,function(e:flash.events.KeyboardEvent) me.onKeyDown(e.keyCode));
- }
- static function main() {
- var root = flash.display.MovieClip;
- inst = new Test(root);
- }
- }
- /*
- ~/Code/sandbox/haxe (master)$ haxe compile.hxml
- Test.hx:18: characters 11-25 : flash.display.#MovieClip should be flash.display.MovieClip
- Test.hx:18: characters 11-25 : { } should be flash.display.MovieClip
- Test.hx:18: characters 11-25 : For function argument 'root'
- */
Add Comment
Please, Sign In to add comment