# Problem ! Loading img from XML

**URL:** <https://forum.kirupa.com/t/problem-loading-img-from-xml/64432>\
**Category:** Uncategorized\
**Created:** [September 16, 2004, 7:13am UTC](https://forum.kirupa.com/t/problem-loading-img-from-xml/64432 "2004-09-16T07:13:45Z")\
**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:** [September 16, 2004, 7:13am UTC](https://forum.kirupa.com/t/problem-loading-img-from-xml/64432/1 "2004-09-16T07:13:45Z")

</div>

HI,

This one of the weired problem i am facing while loading an img into a dynamic textfield from XML at run-time.  
Here is attaching my .fla and .xml file. Things i want u look into :

In Lib there is a MC called A4-P in whcih i am creating my dynamic textField. I am loading my XML first on \_root.  
But there is a small complexity involved if u look at the script inside MC. There are 5 function u wiil find on the first frame of MC. But thats essential.

I am not getting my data this way  
myTextField.htmlText = “\<IMG SRC=‘img1.jpg’\>”

It comes through diff fucntions. I guess there might the problem. Now why i am doing this?. Actually I want to manipulate the String which i am geting from XML. Like if user set  
font size to 5, through fuction i am changing it to 10. Like that. So my code somewhat looks like:

myString = function1(myArray.xmlData); // Suppose xmlData = “\<font size=‘4’ face=‘verdana’\>\<b\>hello how are you\</b\>\</p\>\<IMG SRC=‘img1.jpg’ align=‘left’\>\<br\>Ashish”  
myTextField.htmlText = function2(myString); //

I ve really given up …can anyone come out with any suggession. PLS I NEEEEEED my functions to be their…so just overlook that. 😉

Any doubts let me know…

## Thanx in adv

aShIsH
