PDA

View Full Version : Finding the state of an item in Flex


theGuru
07-27-2009, 12:03 PM
How would i know the item state, whether its open or closed through programming in flex.

I am using Accordian...

Peter Cowling
07-27-2009, 07:22 PM
Accordion gives you insight into its state through selectedindex and selectedchild. Taking the former, -1 means the accordion has no children, 0 is the first child, and so on. You have one child in view at a time, therefore that child is 'open', and the other child are 'closed'.