jan_flanders

Untitled

Jan 3rd, 2013
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @:bitmap("haxe.png") class MyBitmap extends flash.display.Bitmap { public function new() super()}
  2.  
  3. @:bitmap("haxe.png") class MyBitmapData extends flash.display.BitmapData { }
  4.  
  5. class Main
  6. {
  7.     public static function main()
  8.     {
  9.         var bmp = new MyBitmap();
  10.         flash.Lib.current.addChild(bmp);
  11.        
  12.         var bmd = new MyBitmapData(0,0);
  13.         var bmp = new flash.display.Bitmap(bmd);
  14.         bmp.x = bmp.y = 200;
  15.         flash.Lib.current.addChild(bmp);
  16.     }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment