I find the best way to do this is to create a custom component (In your
case a panel) and then use an MXML repeater with the data source set as
the ArrayCollection. You would create public propertie(s) in your custom
component to receive each of the items in your ArrayCollection.
Something like:

<mx:Repeater id="imagePanelRepeater"
dataProvider="{imagesArrayCollection}">
     <CutomComponents:ImagePanel
theImageData="{imagePanelRepeater.currentItem}"/>
</mx:Repeater>



--- In [email protected], "flexnewbie999"
<wgb.jobsearch....@...> wrote:
>
> I have a ArrayCollection of objects that contain an image and other
fields. I need to dynamically created a panel for each image in
succession as the collection is iterated over (at least that's the idea
I've come up with). I can hard code each individual image via mxml into
a panel but that doesn' suit my purposes as I never know how many items
are in the collection. I've looked at itemRenderers but that doesn't
seem to go since they only appear to work with grids and lists etc. I'm
relatively new at this; is coding this type of thing the only solution
to this problem or are there components I'm missing?
>
> Thanks!
>

Reply via email to