Using the <img> tags

Hi all!,

I’m trying to use the <img> tags to display a picture in my dynamically loaded text (from a .txt file) .

Here is the code I’m using to load my external text file:

on (release) {
loadText = new LoadVars();
loadText.load(“TEXT1.txt”);
loadText.onLoad = function(success) {
if (success) {
textBox.html = true;
textBox.htmlText = this.textContent;
}
};

}

Here is what is in my text file that I load:

<img src=‘image.jpg’>

The text that is also in my file loads and I can see that, the <img> tag code is invisible meaning it recognized it as code and did not display it as text. Even though the <img> text is gone it refuses to show my image. I have tried just about everything I know of and can’t get it to work.

Please help!

Thanx in advance

I know this is an old thread but was hoping I could resurrect it.

I’m having similar problems to the guys above, I can get the image to load into my text field if I have the action on a frame, but as soon as I call for the action from a button it wont work?

Does anyone have any bright ideas?

Any help would be great.

Cheers, J