2 Replies Latest reply on Oct 17, 2007 10:50 PM by AScracker

    can any one Help me for Loading the xml file in As FIle

    AScracker Level 1

      hi ,
      i am As2.0 functionality it's working fine if i wriiten all the script inside the suceess loop
      but if i tried to pass the file then it's not working

      public function getEmpDetailsFrmXML() {
      var xmlFileName:String = "emp.xml";
      var employee_xml:XML = new XML();
      employee_xml.ignoreWhite = true;
      employee_xml.onLoad = function(success) {
      if (success) {
      var xmlData = this;
      } else {
      trace("file not found");
      public function getetailsfrmXML(details) {
      trace(employee_xml.toString()+" mkmop");

      can any give some ides how to call the getetailsfrmXML()