Below is my code, everything works fine with the loading of the text, yet I cannot get the images to show. “txtBox_mc.buttonText.htmlText = contentInput.callout.button;” is my basic structure… Im pretty sure I need a loader to place the images in but I am unsure on how the syntax looks… Please help… And Thanks…
var xmlLoader:URLLoader = new URLLoader();
var xmlData:XML = new XML();
xmlLoader.addEventListener(Event.COMPLETE, LoadXML);
xmlLoader.load(new URLRequest("CalloutContent.xml"));
function LoadXML(e:Event):void {
trace("LoadXML");
xmlData = new XML(e.target.data);
ParseContent(xmlData);
}
function ParseContent(contentInput:XML):void {
trace("ParseContent");
txtBox_mc.buttonText.htmlText = contentInput.callout.button;
txtBox2_mc.buttonText.htmlText = contentInput.callout.button2;
txtBox3_mc.buttonText.htmlText = contentInput.callout.button3;
//this is where my path to the images would go but Im not sure where to go from here
imageBox.image.MovieClip = contentInput.callout.images;
//This shows no errors but no image either
trace("XML Output");
trace("------------------------");
trace(contentInput);
}