Seems that some code was eaten by this mailing list.
Just another try:
<s:ItemRenderer xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
autoDrawBackground="true">
<*script>
private function onClick(event:Event):void {
if(event.target is CheckBox) {
// Handle "checkbox" stuff
Alert.show("Checkbox was clicked");
}
else {
/*
// Handle "item change" stuff, eg.
dispatch custom event
var customEvent:CustomEvent = new
CustomEvent(CustomEvent.CHANGE);
customEvent.newIndex = itemIndex;
owner.dispatchEvent(customEvent);
spark.components.List(owner).selectedIndex
*/
}
}
</*script>
<s:Group width="100%" click="onClick(event)">
<s:layout>
<s:HorizontalLayout />
</s:layout>
<s:CheckBox/>
</s:Group>
</s:ItemRenderer>
--
View this message in context:
http://apache-flex-users.2333346.n4.nabble.com/Chain-of-events-when-checkbox-is-in-List-tp12581p12599.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.