you can just use the draw method, this seems to work good var b:Bitmap = new Bitmap(); var a:Label = new Label(); a.height=100; a.width=100; var d:BitmapData = new BitmapData(a.width,a.height,false); d.draw(a); b = new Bitmap(d); rawChildren.addChild(b); //dont use the rawChildren though
----- Original Message ---- From: honoraryvato <[EMAIL PROTECTED]> To: [email protected] Sent: Thursday, January 24, 2008 12:22:56 PM Subject: [flexcomponents] Make a Label a Bitmap Is there as way in Flex 2 for me to cast a Label as a Bitmap or to make a Bitmap copy of a Label? I have a Panel that fades in and out. On that Panel is a Label. Since the font is not embeded the text in the Label stays where it is and does not fade. I do not want to embed the font. I need to make is a Bitmap so it can fade in and out. Does anyone know how to do this or have a piece of code I can take a look at? ____________________________________________________________________________________ Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs
