10 Replies Latest reply on Mar 17, 2010 7:01 AM by scrubhead

    URLRequest in extended Application Class fails

    scrubhead

      I have extended my Application Class and try to load external xml file as such:

       

      public

       

       

      class ReserverComponent extends Application

      {

       

      var

       

       

      scheduler:XML = new XML();

      scheduler.ignoreWhite =

      true;

       

      var myXMLURL:URLRequest = new URLRequest("scheduler.xml");

       

      var myLoader:URLLoader = new URLLoader(myXMLURL);

      myLoader.addEventListener(

      "complete", xmlLoaded);

       

      function xmlLoaded()

      {

      process xml .....

      }

       

      }

       

      But for some reason the instance of myLoader never loads the URLRequest?

      The code works when its in the (root)Application Class but not in extended Clas file?

      Any one tell me what I need to do here?