2 Replies Latest reply on Sep 11, 2006 12:45 PM by ntsiii

    reload component data

      I use a lable to display a data that I load from xml.
      I initialy load the data in the a function that I call using createComplete
      My xml file is refreshed every 5 minutes, how can call to reload the xml file?
      <mx:Canvas xmlns:mx=" http://www.adobe.com/2006/mxml" creationComplete="initApp()">
      public function initApp():void
      var loader:URLLoader = new URLLoader();
      var request:URLRequest = new URLRequest("sportOne.xml");
      loader.addEventListener(Event.COMPLETE, onComplete);
      public function onComplete(event:Event):void
      text = "";
      var loader:URLLoader = URLLoader(event.target);
      var counties:Number = 0;
      scoresXML = new XML(loader.data);