Image alignment in FLASH

Hi Buddy,

I want to display an image in to a Dynamic TextField in flash (mx 2004).
Image path i am getting from XML file. But in the following manner
…(one of the attribute in XML file)

content = “<p align=‘center’><IMG src=‘img.jpg’ width=‘100’ height=‘100’></p>”

I am getting image in to the desired textfield but its getting left aligned or right aligned but not CENTER :frowning:

I have tried adding one tag in to IMG src tag also
<IMG src=‘img.jpg’ width=‘100’ height=‘100’ align=‘middle’>

But didnt work…please help …any suggessions on to this one,

I cannot keep my textfield at the center of the stage, but its width is similar to the stage width. In the above example: in the content attribute
I have just shown the image tag but actually there is lot of TEXT in it also. Not shown here.

Regards
Ashish