Thanks Charles! However I didn't wanted to put a MovieClip into a BitmapData, I wanted to do the opposite. But I think I have just found out how to do that ... by putting the BitmapData into a new Bitmap object ...
img = new Bitmap(imageBitmapData); mc.addChild(img); Thanks for the help! > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:flashcoders- > [EMAIL PROTECTED] On Behalf Of Charles Parcell > Sent: Monday, 31. July, 2006 15:37 > To: Flashcoders mailing list > Subject: Re: [Flashcoders] AS3 - From BitmapAsset to BitmapData? > > You don't attach BitmapData, you draw it. Look at the draw function in the > BitmapData class. > > Charles P. > > > On 7/30/06, Sascha Balkau <[EMAIL PROTECTED]> wrote: > > > > 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 > > > > _______________________________________________ > > Flashcoders@chattyfig.figleaf.com > > 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 > > > _______________________________________________ > Flashcoders@chattyfig.figleaf.com > 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 _______________________________________________ Flashcoders@chattyfig.figleaf.com 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