You can try adding "true" for transparent as the BitmapData's 3rd parameter.

var myBitmapData:BitmapData = new BitmapData(tf.width, tf.height,true);
myBitmapData.draw(tf);
var bmp:Bitmap = new Bitmap(myBitmapData);
bmp.smoothing = true;
bmp.rotation = 300;
addChild(bmp);




On 7/6/2010 8:13 AM, Cor wrote:
Every solution leads to a new problem. Hahahaha.
Now my bitmap background color shows all white.
Is there a way to make the bmp background transparent / or set the
bmp.backgroundcolor.alpha = 0; ?




-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Cor
Sent: dinsdag 6 juli 2010 13:33
To: 'Flash Coders List'
Subject: RE: [Flashcoders] How to rotate dynamic textfield

I have got it:

var myBitmapData:BitmapData = new BitmapData(tf.width, tf.height);
myBitmapData.draw(tf);
var bmp:Bitmap = new Bitmap(myBitmapData);
bmp.smoothing = true;
bmp.rotation = 300;
addChild(bmp);


_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to