jan_flanders

Untitled

Dec 20th, 2012
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package;
  2. import flash.display.Sprite;
  3. import flash.Lib;
  4. using Reflect;
  5. class Main extends Sprite
  6. {
  7.    
  8.     public function new()
  9.     {
  10.         super();
  11.         var a="hello";
  12.         Reflect.callMethod(Main, Reflect.field(Main,a), []);
  13.         Main.callMethod(Main.field(a),[]);
  14.     }
  15.     static function hello()
  16.     {
  17.         trace('hello');
  18.     }
  19.     public static function main()
  20.     {
  21.         Lib.current.addChild(new Main());
  22.     }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment