When you get your component repeating, know that it will automatically create an indexed array of references to the repeated components using the base id string. For example, doing:
<GeometryGroup id="ing_mask"... You will be able to use ing_mask[n] to get a ref to each repeated component. "n" is the index of the item in the dataProvider. Tracy ________________________________ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Gordon Smith Sent: Monday, September 08, 2008 2:26 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] id of element inside repeater gives an error Repeater works with objects that implement IRepeaterClient, and the UIComponent base class implements this interface. Is your GeometryGroup component a UIComponent? If not, you'd need to make it implement this IRepeaterClient. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of David Pariente Sent: Friday, September 05, 2008 5:54 PM To: flexcoders Subject: [flexcoders] id of element inside repeater gives an error Hi all, Im trying to make a repeater to show me some elements, and those elements include a jpg and a masking for it. If i assign an id for the mask, in a simple way: <GeometryGroup id="ing_mask" x="0" y="0" > complains that the id is not a visual child... If i try to add the currentIndex value, for make the id allways different: <GeometryGroup id="ing_mask_{iIngredients.currentIndex}" x="0" y="0" > complains that is not a valid identifier... I guess i just dont know how should i write those IDs....neither i know if they should really be different inside a repeater or no need. Could somone help, plz? thnx a lot