Hi, guys I am a designer and I am trying to dynamically load HTML coded text into a textfield through bio.txt file.
I am currently uing this code to load the text but the image doesnt show.
Any ideas why?
var url:String = “bio.txt”;
var loadit:URLLoader = new URLLoader();
loadit.addEventListener(Event.COMPLETE, completeHandler);
loadit.load(new URLRequest(url));
function completeHandler(event:Event):void {
bio_txt.text = event.target.data as ;
}
and in the bio.txt I am using this
text text text text<img src=“images/profile.jpg”/> text text
Thanks a lot in advance.