Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @:bitmap("haxe.png") class MyBitmap extends flash.display.Bitmap { public function new() super()}
- @:bitmap("haxe.png") class MyBitmapData extends flash.display.BitmapData { }
- class Main
- {
- public static function main()
- {
- var bmp = new MyBitmap();
- flash.Lib.current.addChild(bmp);
- var bmd = new MyBitmapData(0,0);
- var bmp = new flash.display.Bitmap(bmd);
- bmp.x = bmp.y = 200;
- flash.Lib.current.addChild(bmp);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment