Hi,
I’m doing a papervision3d interface and I what to use an XML file to import some images. I have found out on the internet how to extract XML data in AS3, I using this code :
var xmlLoader:URLLoader = new URLLoader();
var xmlData:XML;
xmlLoader.addEventListener(Event.COMPLETE, LoadXML);
xmlLoader.load(new URLRequest("motion.xml"));
var MotionImg:Array;
function LoadXML(e:Event):void {
xmlData = new XML(e.target.data);
}
The problem I have is that I’m not able to access hte xmlData variable outside of the function LoadXML wich is wierd cause I declare this variable outside of the function.
Thank you for your help