# Image alignment in FLASH

**URL:** <https://forum.kirupa.com/t/image-alignment-in-flash/56970>\
**Category:** flash\
**Created:** [July 9, 2004, 7:07am UTC](https://forum.kirupa.com/t/image-alignment-in-flash/56970 "2004-07-09T07:07:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ash123](https://avatars.discourse-cdn.com/v4/letter/a/dec6dc/32.png) [@ash123](https://forum.kirupa.com/u/ash123)\
**Post date:** [July 9, 2004, 7:07am UTC](https://forum.kirupa.com/t/image-alignment-in-flash/56970/1 "2004-07-09T07:07:55Z")

</div>

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 ☹

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
