Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package;
- import flash.display.Sprite;
- import flash.Lib;
- using Reflect;
- class Main extends Sprite
- {
- public function new()
- {
- super();
- var a="hello";
- Reflect.callMethod(Main, Reflect.field(Main,a), []);
- Main.callMethod(Main.field(a),[]);
- }
- static function hello()
- {
- trace('hello');
- }
- public static function main()
- {
- Lib.current.addChild(new Main());
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment