I have a List Component with a custom itemRenderer that has a label
and a progressBar Component.  I can update the label just fine w/ the
data property when I update the ArrayCollection that is set as the
dataProvider...

What I want to be able to do is access the progressBar directly so i
can feed it the values of a progress event while uploading files to
the site.

this is the code used to instantiate the List:
<mx:List width="250" id="imageList" height="250"
dataProvider="{acImageList}" change="{makeImageRemovable()}"
itemRenderer="ir.imageList"/>

and this is the code for the itemRenderer called imageList.mxml

<?xml version="1.0" encoding="utf-8"?>
<mx:HBox xmlns:mx="http://www.adobe.com/2006/mxml"; width="250"
height="50">
        <mx:Label text="{data.title}" width="100" />
        <mx:Spacer width="10" />
        <mx:ProgressBar id="pbar" width="100" visible="{data.showLoader}" />
</mx:HBox>


The as file I am using to run all the code is in the same file that
the List is instantiated.  So i was hoping to be able to address the
elementy by   imageList.row.itemRenderer.progressBar.  So far it seems
that is an impossible task, but seems like it should be something easy
to do.  I was trying to avoid updating the ArrayCollection every time
there was a progress update because it seems that would it would
update the list everytime just to show a status update.  However, if
flex is smart enough to know that I am only updating one property and
it doesn't redraw the list everytime that might also be a viable solution.

Reply via email to