[haXe] AS3 Embed in Haxe?
Johannes Strömberg
johannes.stromberg at strusoft.com
Mon Jan 1 15:41:09 CET 2007
Hi,
I was looking for a way to embed images in my flash files and found the
following AS3 script:
package
{
import flash.display.Bitmap;
import flash.display.BitmapData;
import flash.display.Sprite;
class EmbeddedImageExample extends Sprite
{
[Embed(source='myPhoto.png')]
public var MyPhoto:Class;
function EmbeddedImageExample()
{
var pic:Bitmap = new MyPhoto();
var bmp:BitmapData = pic.bitmapData;
}
}
}
How do I implement this in Haxe?
Is there a way to embed images in flash 8 files using Haxe?
/Johannes
More information about the Haxe
mailing list