Hi,

Can somebody tell me how I get an embedded image (BitmapAsset) to a useable
BitmapData? I'm a bit confused about this. I want to embed an image and then
use it as a BitmapData object. I got ...


[Embed(source="image.png")]
private var imageClass:Class;

private var image:BitmapAsset;

...

image = BitmapAsset(new imageClass());

... but how do I get the BitmapAsset to BitmapData to use the bitmap API on
it? If I try a simple casting I get a Coercion failed.
I would appreciate any help about it! Haven't really delved into this yet!

Thanks,
Sascha

_______________________________________________
[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