1 Reply Latest reply on Aug 2, 2007 4:33 PM by ntsiii

    How to pass parameters to an event handler...?

    saliksyed
      public function addGraph(dataUrl:String, GraphName:String):void
      {

      var loader:URLLoader = new URLLoader();
      var request:URLRequest = new URLRequest(dataUrl);
      loader.load(request);
      loader.addEventListener(Event.COMPLETE, displayData)
      }

      I want DIsplay data to get the graphName variable as well.. Is there a better way then setting some global variable ? Not that that would be safe anyways because we may get multiple files in the event queue