# Loading images within text

**URL:** <https://forum.kirupa.com/t/loading-images-within-text/284131>\
**Category:** flash\
**Created:** [March 15, 2009, 7:42pm UTC](https://forum.kirupa.com/t/loading-images-within-text/284131 "2009-03-15T19:42:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![22celin\_b](https://avatars.discourse-cdn.com/v4/letter/2/2acd7d/32.png) [@22celin\_b](https://forum.kirupa.com/u/22celin_b)\
**Post date:** [March 15, 2009, 7:42pm UTC](https://forum.kirupa.com/t/loading-images-within-text/284131/1 "2009-03-15T19:42:44Z")

</div>

Hi,

I have to place movie clips within dynamic text content.

I am using ‘img src=’ with html text which is working but it puts the icon on it’s own line of text.

So this…

```
    b = "first bit of xml"
    b += "&lt;img src='exit_icon'&gt;";
    b += "second bit of xml"
    my_text.htmlText = b

```

looks likes this…

first bit of xml second bit of xml  
‘exit\_icon’

Does anyone know how I can get it to sit in between these 2 bits of text? Or perhaps another method of doing this that might be more appropriate?

Thanks in advance

CS3 and AS2 btw.
