RE: [flexcoders] Detect if any of the Items on a List are Selected - thought it would be easier.

2009-11-09 Thread Quantum
Oh yeah, just get the count of one of these arrays. I guess that would be better than what I'm doing :) Thanks _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Fotis Chatzinikos Sent: Sunday, October 25, 2009 3:46 PM To: flexcoders@yahoogroups.com

[flexcoders] Detect if any of the Items on a List are Selected - thought it would be easier.

2009-10-25 Thread steveb805
The only property I could find, from the Flex docs, that tells you whether your List control has anything selected is: isItemSelected(). And this takes a parameter that refers to a specific item. So before my Delete button handler, I check if any item is selected with the following: private

Re: [flexcoders] Detect if any of the Items on a List are Selected - thought it would be easier.

2009-10-25 Thread Fotis Chatzinikos
you can use the list's properties (arrays of indices, or items): selectedItems selectedIndices On Sun, Oct 25, 2009 at 7:19 PM, steveb805 quantumcheese...@gmail.comwrote: The only property I could find, from the Flex docs, that tells you whether your List control

RE: [flexcoders] Detect if any of the Items on a List are Selected - thought it would be easier.

2009-10-25 Thread Alex Harui
If you want to know if anything or nothing is selected, simply test for selectedIndex==-1 Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Fotis