Store the last selectedIndex somewhere and compare when you get the next CHANGE 
event?

Alex Harui
Flex SDK Developer
Adobe Systems Inc.<http://www.adobe.com/>
Blog: http://blogs.adobe.com/aharui

From: [email protected] [mailto:[email protected]] On Behalf 
Of steveb805
Sent: Friday, November 13, 2009 6:02 PM
To: [email protected]
Subject: [flexcoders] Getting the Prev ious Index of a List (and Combo later)



Hey all, It looks like my original plan to detect a user trying to change the 
List selection, and then stopping them from doing so isn't possible from what I 
can see.

( The most hopeful sign that this is possible is the itemFocusOut event, but I 
can't use this, anyway, due to the editable value of my renderer 
(editable=false))

So my next best attempt to accomplish what I'm trying to do, is to get the last 
item that was just selected (the selectedIndex) before the user changed it.

Is there anyway to do this without having to subclass the List ?

Thanks,
Steve

Reply via email to