1 Reply Latest reply on Jun 27, 2007 4:52 AM by Marghoob Suleman

    Qustion about XML and actionscript

    oneofhero
      I try to open a UML in flash using actionscript

      There is my code:

      var request:URLRequest = new URLRequest("Request.xml");
      var loader:URLLoader = new URLLoader();

      function loadComplete(event:Event):String {
      this.loader = loader;
      return loader.data;
      }

      //output undefined
      trace(loader.data);


      The problem is my other function can not use loader.data.
      And I can not return it as a string
      Is there a way to use load.data in other place?