I'm targeting Flex 4 on Air 2, but I don't think that changes the answer to 
this question.

I have a Spark DropDownList which I've written a custom itemRenderer for. In my 
item renderer I have a spark.button. I have event bindings in the mxml and the 
target functions in respective classes, and I'm listening for the dropdownlist 
change event along with my itemrenderer.spark.button click event.

My problem is that I can't seem to get any event in my item renderer to fire. 
It's like when I'm clicking the button, it fires the dropdownlist.change event 
and destroys the itemrenderer before it can handle the click event. So I 
thought maybe I could fix this by adding listeners in AS instead of using the 
mxml binding but same problem. Finally, I just put a trace in the mxml click 
event and nothing. It's not dealing with the item in the list before getting 
rid of the list.

So, simply, how do I capture the itemRenderer events before allowing the 
DropDownList change event? Or why does the click go through the button and 
cause the dropdownlist to be destroyed? It's as if the hitarea for the 
dropdownlist is above anything I put in my itemRenderer. 

Reply via email to