Hard to say.  You could be listening twice, dispatching twice or both.
The debugger should let you step out of the handler which should put you
at the dispatchEvent call and show you the call stack so you can see
what is going on.  FDB is good at showing instance #'s so you can know
if the event is the same object or another object.

 

________________________________

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of tchredeemed
Sent: Friday, April 18, 2008 10:22 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] <mx:List> itemRenderer catching event twice

 

I have a List.

the list uses an itemRenderer

the itemRenderer loads in another component dynamically depending on
data.type

the components that are loaded in listen for specified events

why is it that it is catching the event twice, when it is only
dispatched once?

It is listening on a singletonEnforced class, and it is not a bubbling
event.

Is this because of the itemRenderer? Is this a stupid mistake that I am
making?

 

Reply via email to