# Render text as html

**URL:** https://forum.kirupa.com/t/render-text-as-html/13470
**Category:** flash
**Created:** [February 13, 2003, 6:01pm UTC](https://forum.kirupa.com/t/render-text-as-html/13470 "2003-02-13T18:01:23Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Melborp](https://avatars.discourse-cdn.com/v4/letter/m/dec6dc/32.png) [@Melborp](https://forum.kirupa.com/u/Melborp)
#### Post date: [February 13, 2003, 6:01pm UTC](https://forum.kirupa.com/t/render-text-as-html/13470/1 "2003-02-13T18:01:23Z")

</div>

hi everyone,  
im using render text as html option in flash mx, and it renders everything else i need perfectly except \< img \> tags, i till now havent realy found a solution to get the images needed on the right place… any idea how i could fix the problem? it ignores \< img \> tags.  
One suggested to:

> Flash can only import jpg and swf files.

Include width and height attributes in the img tag, then use  
textFormat.blockIndent and margin to make a space in the text. Then use  
loadMovie to insert the image. It’s a bit of a nightmare actually because  
TextFormat.getTextExtent can be a bit peculiar…

it sounds good, but i suppose im a bit noobish with actionscript… i havent found much help on textFormat …

Any new ideas how to fix the problem? or coudl explane me what i quote here a bit wider?

Thanks in advance,  
Melborp

---

<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: [February 13, 2003, 6:36pm UTC](https://forum.kirupa.com/t/render-text-as-html/13470/2 "2003-02-13T18:36:13Z")

</div>

HTML in Flash is limited to text formatting. Any images you add will have to be placed manually. Yes, flash can dynamically load images into a movie, but that is a completely seperate process than that dealing with HTML, and even then, manual placement is needed.

---

<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: [February 13, 2003, 6:44pm UTC](https://forum.kirupa.com/t/render-text-as-html/13470/3 "2003-02-13T18:44:23Z")

</div>

ok how could i add image exatly to the place i need? it would have to be between html txt… there aint much info on textFormat.blockIndent etc… the quote says to make space and use loadMovie to get jpg-s on right place… the confusing part is the textFormat, not much info about it or tutorials… or am i blind?

Melbrop
