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
Sent from the FlexCoders mailing list archive at Nabble.com.

Reply via email to