Peter Elst

Founding Partner – Project Cocoon

Working with mx.core.Repeater

with 4 comments

I recently did some Flex work that involved quite extensive use the mx:Repeater tag and initially had some problems accessing the repeater instances using AS3.

To avoid the headache for anyone else trying to figure it out, I just did a quick example (right-click to view source).

[FLASH]/downloads/flex/repeater/checkboxrepeater.swf,300,150[/FLASH]

The basic idea is you access the component instance by array notation, for example: name_cb[0] is the first name_cb instance in the Repeater loop. Easy enough if you know how to do it ;-)

Creative Commons License
This work, unless otherwise expressly stated, is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 2.0 Belgium License.

No related posts.

Written by Peter

November 18th, 2006 at 8:35 pm

Posted in Flex