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