[flexcoders] Dispatching Event Question?

2007-03-30 Thread paulwelling
Hello, Question on disipatching events that I hope someone can clear up... I have two custom components, A and B created at the Application level. I want to send a custom event from A to B. Inside of B creationComplete, I have addEventListener(myEvent, myBListenerFunc); Inside of A, on a

Re: [flexcoders] Dispatching Event Question?

2007-03-30 Thread Roman Protsiuk
When you are adding an event listener the only thing that tells who is to dispatch the event is who's addEventListener() is called. I mean if you are calling addEventListener(...) this means that you are listening to 'this' that will dispatch the event. If a.addEventListener(...) then 'a' will