Hey everyone,
I'm using Flash AS3.0 and I am struggling to load an Image from an XML file to a movieclip in my flash project.
I have the XML loaded fine, here is my XML content:
<GALLERY>
<IMAGE TITLE="school" image="image1.jpg">pic 1</IMAGE>
</GALLERY>
It loads with this code:
var myXML:XML;
var myLoader:URLLoader = new URLLoader();
myLoader.load(new URLRequest("content.xml"));
myLoader.addEventListener(Event.COMPLETE, processXML);
function processXML(e:Event):void
{
myXML = new XML(e.target.data);
}
If I have a movieclip "image_mc" in the library in flash, any idea what action script would load the image into the mc???
Any help would be great, thanks!
Eric