Thanks a lot Jim! That was the link I was looking for!

Maybe you can give me a hint on another BitmapData problem: How do I attach
a BitmapData to a MovieClip in AS3? attachBitmap is no more and if I use
addChild I get a Coercion failed again.

Sascha



> When embedding the images like this I use a normal Bitmap class not a
> BitmapAsset. Then you can access the bitmapData property of the bitmap
> class.
> 
> [Embed(source="image.png")] private var imageClass:Class;
> 
> private var image:Bitmap = new imageClass();
> private var bitmapData        :BitmapData     = image.bitmapData;
> 
> hth
> Jim

_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to