Adobe Flex Actionscript Question:
Download Questions PDF

How do we identify a component created in a repeater using flex?

Answer:

If currentIndex value is greater than startIndex value means a component is created in Repeater. We can use count property to find number of children.
A Repeater component executes initially when it is instantiated. If the Repeater component's dataProvider property exists, it proceeds to instantiate its children, and they instantiate their children, recursively.
The Repeater component re-executes whenever its dataProvider, startingIndex, or count properties are set or modified either explicitly in ActionScript, or implicitly by data binding.
When a Repeater component re-executes, it destroys any children that it previously created (assuming the recycleChildren property is set to false), and then reinstantiates its children based on the current dataProvider property.

Download Adobe Flex Actionscript Interview Questions And Answers PDF

Previous QuestionNext Question
Explain the difference between creating an effect and setting the target as opposed to adding an effectListener?Differences between defining bindings in MXML and ActionScript?