You have to wait for the onLoad Event

class LoadXML {

   function LoadXML() {
       var xmlData:XML = new XML();

       xmlData.ignoreWhite= true;
       xmlData.onLoad = function (success) {
           if(success) {
               trace("loaded");
trace(xmlData); }
       }
       xmlData.load("data.xml");
}
}



Omar Fouad escribió:
class LoadXML {

    function LoadXML() {
        var xmlData:XML = new XML();

        xmlData.ignoreWhite= true;
        xmlData.onLoad = function (success) {
            if(success) {
                trace("loaded");
            }
        }
        xmlData.load("data.xml");
        trace(xmlData);
    }
}
this is not working



--
Enrique Chavez aka Tmeister
http://www.klr20mg.com
http://www.tmeister.net
http://desktoptwo.com


_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to