0 Replies Latest reply on Mar 1, 2007 1:46 PM by dimival

    FaultEvent is being sent twice in DataService

    dimival Level 1
      I have a function for handling the fault event of a dataservice component which launches an alert with the error that happened, like this:

      dataService.addEventListener(DataServiceFaultEvent.FAULT, faultHandler);

      public function faultHandler(event:DataServiceFaultEvent) : void
      {
      Alert.show(event.fault.toString());
      }

      The thing is that everytime a fault happens, i get two Alert windows instead of one, that is that the listener is being called twice which also means i am receiving two events. Why is this? any way to fix it?