0
votes

I want to develop an application in flex 3 in that application I can add the text dynamically on the image. Also I can able to rotate the text, change the size of text container. Can anyone help me for that?

1
Let me do your work for you while you get paid for it - The_asMan

1 Answers

3
votes

Pretty easy to do something like this, assuming you know the width/height of your images, you could do something like this:

<mx:Canvas id="myImage" width="<image_width>" height="<image_height>" backgroundImage="<image>" />

Then you can add Text to the canvas:

var t:Text = new Text();
t.text = 'test';
// more stuff (x, y, rotate, etc)
myImage.addChild( t );

Voila!