Guest User

Untitled

a guest
May 27th, 2018
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. class Test {
  2. static var world : flash.display.MovieClip;
  3. public static var inst : Test;
  4.  
  5. var root : flash.display.MovieClip;
  6.  
  7. public function new(root) {
  8. var me = this;
  9. this.root = root;
  10. trace(root);
  11. //trace(root.stage());
  12. //var stage = root.x;
  13. //root.addEventListener(flash.events.KeyboardEvent.KEY_DOWN,function(e:flash.events.KeyboardEvent) me.onKeyDown(e.keyCode));
  14. }
  15.  
  16. static function main() {
  17. var root = flash.display.MovieClip;
  18. inst = new Test(root);
  19. }
  20. }
  21.  
  22. /*
  23. ~/Code/sandbox/haxe (master)$ haxe compile.hxml
  24. Test.hx:18: characters 11-25 : flash.display.#MovieClip should be flash.display.MovieClip
  25. Test.hx:18: characters 11-25 : { } should be flash.display.MovieClip
  26. Test.hx:18: characters 11-25 : For function argument 'root'
  27. */
Add Comment
Please, Sign In to add comment