View difference between Paste ID: zWEUAbx6 and 7ew9ACps
SHOW: | | - or go back to the newest paste.
1-
@:image("assets/img/tile0.png")  class MyBitmapData extends flash.display.BitmapData {}
1+
@:bitmap("haxe.png") class MyBitmap extends flash.display.Bitmap { public function new() super()}
2-
class Main extends Sprite {
2+
3-
     var xx = new MyBitmapData(0,0);
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
}