Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package;
- import flash.display.MovieClip;
- import flash.text.TextField;
- import flash.text.TextFormat;
- import flash.Lib;
- class Main2 extends MovieClip
- {
- public static function main()
- {
- Lib.create(function(){new Main2();},800,600,30,0xFFFFFF,(1*Lib.HARDWARE) | Lib.RESIZABLE);
- }
- public function new()
- {
- super();
- var tf = new TextField();
- tf.defaultTextFormat = new TextFormat("_sans");
- tf.text = "hello world";
- addChild(tf);
- Lib.current.addChild(this);
- }
- }
- /*
- Main2
- -main Main2
- --remap flash:nme
- -lib nme
- -cpp cpp2
- */
Add Comment
Please, Sign In to add comment