For something like this you would want to update the ProgressBar in the set data override function. But, remember to call super.invalidateDisplayList(), in that function, to render the changes. -TH CYNERGY
Sorry if this comes acros twice. --- In [email protected], "Tracy Spratt" <[EMAIL PROTECTED]> wrote: > > Are you updating the ProgressBar in the set data() override function? > (or updateDisplayList, I am not sure when to use which.) > > Tracy > > > > ________________________________ > > From: [email protected] [mailto:[EMAIL PROTECTED] On > Behalf Of Roman Protsiuk > Sent: Wednesday, March 28, 2007 9:21 AM > To: [email protected] > Subject: Re: [flexcoders] Accessing Item Renderer in a List. > > > > All the interaction with item renderer is expected to be done via data > set to it. And the feedback may be for example bubbling event (though, > I use this technique very seldom). > When list-based control is created it creates as many item renderer > instances as needed and only substitutes data afterwards. > > R. > > On 28 Mar 2007 06:06:00 -0700, ivansebastiansurya > <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > > wrote: > > Hi everyone, > > I need bit of a help in displaying items from a List. > > I have an item renderer which is associated to the List. > > The items in the list contains lots of data, one of which is an > indication of how many percent a task has been completed. > > My custom item renderer has a ProgressBar in it. > > Every 5 minutes, the data source for my list is updated, hence the > progress bar should be updated. > > How can I detect the change in data source from the item renderer's > class, so that I can change the progress bar status? > > I have always thought that new item renderer object is created > everytime the list is updated (everytime the data source is updated, > I cleared the array collection which is the source of the list and re > add the new items). > > At the moment, my progress bar only looks right when the application > first run. However, seems like the progress bar is updated randomly > afterwards. > > Thanks. > > Ivan. >

