PDA

View Full Version : Writing text on a BitmapData object


Archangel7
06-16-2010, 01:39 PM
Hello,
it has been quite some time since I coded in actionscript, I am a java developer who is struggling to learn some game oriented actionscript.

The problem:
I have a double buffering schema using a canvas declared on the MXML file and a bitmapdata on a class as the back buffer. the enterframe method paints the bitmapdata into the canvas thus updating the screen.

I know I can add graphics to the bitmapdata object but I want to write some text into the bitmapdata. How can I do that?

asterisk
06-18-2010, 09:23 AM
I am quite new to as3 but looking at the display stack I would use sprite object to do it

dhil dhil senthil
06-18-2010, 12:37 PM
Create a text field with needed letters..... .Take a bitmap copy of it. And Transfer the pixel values to ur bitmap.

runtime
06-23-2010, 05:47 PM
Create a text field with needed letters..... .Take a bitmap copy of it. And Transfer the pixel values to ur bitmap.

yes it is possible.