Reputation: 4957
I am using Flex AS3, i have a accordian with two tabs each tab contains some text boxes and i am trying to access these child controls from button event handler which resides outside the accordian, Problem is these controls are null until i open the tabs of accordian.
Upvotes: 2
Views: 1530
Reputation: 351
You could try programatically opening and closing the accordion on something like creationComplete to force the creation of the components in the repeater. I would second avoiding repeaters. I have found with a little creativity you can do much better with basic lists and custom item renders. This gives you a lot more control over the creation of the child components.
Upvotes: 0
Reputation: 11054
Add this to the MXML of your accordion
creationPolicy="all"
It will then create everything at the beginning so those children will be there for you to reference.
Upvotes: 8