Hi,
I am trying to load a xml image inside of movie clip my code does not working
pls help me.
My as3 code:
var myXML:XML;
var myLoader:URLLoader = new URLLoader();
myLoader.load(new URLRequest(“oman3d.xml”));
myLoader.addEventListener(Event.COMPLETE, processXML);
function processXML(e:Event):void {
myXML = new XML(e.target.data);
for (var i:int = 0; i<myXML..length(); i++){
trace( myXML.IMAGE);
mc.addChild( myXML.IMAGE*);
};
}
///////////////////////XML///////////////////////////////////////
<?xml version=“1.0” encoding=“utf-8”?>
<GALLERY>
<IMAGE >img_1.jpg</IMAGE>
<IMAGE >img_2.jpg</IMAGE>
<IMAGE >img_3.jpg</IMAGE>
<IMAGE >img_4.jpg</IMAGE>
<IMAGE >img_5.jpg</IMAGE>
<IMAGE >img_6.jpg</IMAGE>
</GALLERY>