7 Replies Latest reply on Feb 6, 2009 1:27 AM by RUSH-ME

    Problem dispatching event a second time

    mtgna Level 1
      When the page is first loaded I dispatch an event to get data as follows:

      public function init():void
      {
      CairngormEventDispatcher.getInstance().dispatchEvent( new CairngormEvent( GetTransactionsEvent.EVENT_GET_TRANSACTIONS ) );

      In one of my functions to insert new data, I dispatch getTransactions event again but it doesnt fire:

      private function insertTransactions():void
      { CairngormEventDispatcher.getInstance().dispatchEvent( new CairngormEvent( GetTransactionsEvent.EVENT_GET_TRANSACTIONS ) );

      It's only when I remove the first getTransactions event that the second instance fires. I am guessing there is some problem dispatching a same event twice??
      Can somebody please advise?
      Thanks in advance.