2 Replies Latest reply on May 5, 2007 5:51 AM by renspr

    Modify global variable

      Hello all,

      My code looks like this:
      public var ItemsXML:XML = new XML();
      public function GetDataDB_result(evt:Event):void
      var s:String = WSGetItems.GetData.lastResult;
      ItemsXML = XML(s);
      In this function, ItemsXML gets the right value. The problem is that if I want to use ItemsXML outside the function, it has no value. I want to use it as dataprovider for a datagrid...