# Image in dynamic textfield pushes text away

**URL:** https://forum.kirupa.com/t/image-in-dynamic-textfield-pushes-text-away/63496
**Category:** Uncategorized
**Created:** [September 7, 2004, 11:43am UTC](https://forum.kirupa.com/t/image-in-dynamic-textfield-pushes-text-away/63496 "2004-09-07T11:43:37Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![darth](https://avatars.discourse-cdn.com/v4/letter/d/71c47a/32.png) [@darth](https://forum.kirupa.com/u/darth)
#### Post date: [September 7, 2004, 11:43am UTC](https://forum.kirupa.com/t/image-in-dynamic-textfield-pushes-text-away/63496/1 "2004-09-07T11:43:37Z")

</div>

I´m loading html formatted text into fixed size, text wrapping dynamic textfield but the \<br\> doesn´t seem to work correctly after img tag, the text is pushed to right side of the image not below. I have to make 20 \<br\> tags to make the text visible correctly under the image…  
What am I doing wrong?  
I need the textfield to be fixed size because of the scrollbar I´m using. Text is not embedded, verdana 12pt, image is 302 pixels high.  
HELP!

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [September 7, 2004, 1:47pm UTC](https://forum.kirupa.com/t/image-in-dynamic-textfield-pushes-text-away/63496/2 "2004-09-07T13:47:13Z")

</div>

use

myText.html = true;  
myText.htmlText = “\<b\> this is bold text \</b\>”;

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [September 8, 2004, 7:58am UTC](https://forum.kirupa.com/t/image-in-dynamic-textfield-pushes-text-away/63496/3 "2004-09-08T07:58:55Z")

</div>

what are you talking about?

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [September 10, 2004, 9:44pm UTC](https://forum.kirupa.com/t/image-in-dynamic-textfield-pushes-text-away/63496/4 "2004-09-10T21:44:01Z")

</div>

if you want the text to appear below the image, why not wrap the image in a different paragraph tag? as in:

\<p\>text above image\</p\>  
\<p\>\<img=image.jpg\>\</p\>  
\<p\> text below image \</p\>

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [September 11, 2004, 5:16am UTC](https://forum.kirupa.com/t/image-in-dynamic-textfield-pushes-text-away/63496/5 "2004-09-11T05:16:17Z")

</div>

see this tutorial  
[http://www.actionscript.org/tutorials/intermediate/load\_images\_via\_XML/index.shtml](http://www.actionscript.org/tutorials/intermediate/load_images_via_XML/index.shtml)
