Working with mx.core.Repeater

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 ;-)

4 Comments

  • ys
    November 28, 2006 - 1:36 am | Permalink

    hi,
    i get an error at this example :
    Type was not found or was not a compile-time constant: repeater. [Generated code (use -keep to save): Path: repeater-generated.as …

    have you any idea, why i get this?

  • November 28, 2006 - 1:53 am | Permalink

    mmm interesting, what Flash Player version are you using?

  • ys
    November 28, 2006 - 2:33 am | Permalink

    i have version 9,0,28,0 installed.

  • December 23, 2006 - 8:54 am | Permalink

    I still have problem too. Anyone can help?

  • Comments are closed.

    .