# Image not getting loaded in dynamic textfield

**URL:** <https://forum.kirupa.com/t/image-not-getting-loaded-in-dynamic-textfield/144295>\
**Category:** Uncategorized\
**Created:** [April 13, 2005, 6:15am UTC](https://forum.kirupa.com/t/image-not-getting-loaded-in-dynamic-textfield/144295 "2005-04-13T06:15:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ashishchandras](https://avatars.discourse-cdn.com/v4/letter/a/7993a0/32.png) [@ashishchandras](https://forum.kirupa.com/u/ashishchandras)\
**Post date:** [April 13, 2005, 6:15am UTC](https://forum.kirupa.com/t/image-not-getting-loaded-in-dynamic-textfield/144295/1 "2005-04-13T06:15:52Z")

</div>

Hi,

I am creating a dynamic textfield(s) on to the stage…and loading image(s) inside each text field. But its not getting loaded/displayed inside a dynamic textfield.

Perhaps if i keep a dynamic textfield rather than creating it using createTextField method image is getting displayed perfectly. Here is the code i have tested with a sample file:

//----------- code begins here ------------------

this.createTextField(“myImage”, 1, 11, 18, 250, 200);  
myImage.html = true;  
myImage.selectable = false;  
myImage.multiline = true;  
myImage.border = true;

onLoad = function(){

//here image.jpg is not displayed/loaded  
myImage.htmlText = “\<img src=‘image.jpg’/\>”;

//here image.jpg is getting displayed/loaded  
test.htmlText = “\<img src=‘image.jpg’/\>”;

};

//-------------code ends here ----------

Has anyone faced this problem…please help me out…this is really weired

* * *

aShIsH
