That is because those events are not cancelable. Are you just trying to reset what the selectedIndex was? I'd just store the last good one somewhere.
________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of carkraus Sent: Wednesday, November 21, 2007 5:54 AM To: [email protected] Subject: [flexcoders] Preventing default onClick-behaviour in List-Component Hi all, I want to cancel a list component to change the selection under some circumstances. Neither works: list.addEventListener( ListEvent.ITEM_CLICK, handleChange ); list.addEventListener( ListEvent.CHANGE, handleChange ); private function handleChange (e:ListEvent):void { e.preventDefault(); return; } To workaround I tried to manually set selectedIndex to the selected value prior user-click, but I´m also unable to retrieve the previous value. I read a post by Alex Harui, where he suggested to use the change-event in capture phase, but that doesnt ever get fired. Thanks for directions! carsten -- View this message in context: http://www.nabble.com/Preventing-default-onClick-behaviour-in-List-Component-tf4850282.html#a13877597 <http://www.nabble.com/Preventing-default-onClick-behaviour-in-List-Component-tf4850282.html#a13877597> Sent from the FlexCoders mailing list archive at Nabble.com.

