I am able to load xml into my textBox just fine, but I am not getting my image to load.
What I have done so far:
Created MC to hold image: gave it instance name img_hldr; but how do I tell it in the xml source below to load the image?
function loadXML(loaded) {
if (loaded) {
xmlNode = this.firstChild;
headline = [];
publisher = [];
body = [];
total = xmlNode.childNodes.length;
for (i=0; i<total; i++) {
headline* = xmlNode.childNodes*.childNodes[0].firstChild.nodeValue;
publisher* = xmlNode.childNodes*.childNodes[1].firstChild.nodeValue;
body* = xmlNode.childNodes*.childNodes[2].firstChild.nodeValue;
}
firstImage();
} else {
content = "file not loaded!";
}
}
// Initialize the TextArea component
story_details.html=true;
story_details.wordWrap = true;
story_details.multiline = true;
story_details.label.condenseWhite =true;
// Load xml content
fullstory = new XML ();
fullstory.ignoreWhite = true;
fullstory.load(“fullstory.xml”);
fullstory.onLoad = function (success)
{
if (success)
{
story_details.text = fullstory;
}
}