it is one and the same, the cairngormevent class has been modified to implement 
a dispatch() method which does exactly what your code doesCairngormEvent. 
getInstance( ).dispatchEvent( myEvent); so you can use any of the 2 forms you 
like ...

C




________________________________
From: nathanpdaniel <[email protected]>
To: [email protected]
Sent: Monday, April 6, 2009 7:21:32 PM
Subject: [flexcoders] CairngormEvent dispatch question


What is the difference between:
CairngormEvent. getInstance( ).dispatchEvent( myEvent);
and 
myEvent.dispatch( );

where myEvent extends the CairngormEvent class?

I've been using the 1st code to dispatch my events but, saw in a post the 2nd.  
All my event classes extend the CairngormEvent class so, what exactly is the 
difference between the two?
Thanks!


   


      

Reply via email to