--- In [email protected], "Tom McNeer" <[EMAIL PROTECTED]> wrote:
>
> I need to have a repeater iterate over an array, displaying an 
instance of a
> custom component for each iteration.
> 
> However, for testing, I am simply attempting to output a button 
with a
> static label within the repeater.
> 
> Here's the basic code on the repeater:
> 
> 
>     <mx:ArrayCollection id="configAC" 
source="{estimate.configArray}"/>
>     <mx:VBox width="100%" id="configDisplay">
>         <mx:Repeater dataProvider="{configAC}" id="configRepeater">
>             <mx:Button label="D'oh" />
>         </mx:Repeater>
>     </mx:VBox>
> 
> Setting a breakpoint after the array is populated, I can see that:
> 
> a) the original array (estimate.configArray) is populated with a 
single
> member, a custom ActionScript object. Length is 1, there is an 
object of the
> correct type at position 0.
> b) the array collection with the original array as source 
(configAC) shows
> the same contents.
> c) the dataprovider on the repeater, which is the array collection, 
shows
> the correction contents, an AC with a length of 1.
> d) the currentItem in the repeater shows the correct object from 
the AC.
> 
> Yet the contents of the repeater, which should just be a simple 
button, do
> not display.
> 
> I'm mystified. So I must be missing something simple.

If I were in your place, I'd make a temporary event handler for 
repeatStart, then put a breakpoint there and step through the code, 
inspecting every variable that seems relevant.

HTH;

Amy

Reply via email to