I want to make a list of progress bars and want to update the list accordingly. I have group data in the array
& lt; Mx: array id = "arr" & gt; & Lt; Mx: object label = "group one" min = "0" max = "200" current = "60" /> & Lt; Mx: object label = "group two" min = "0" max = "300" current = "50" /> & Lt; / Mx: array & gt;
The values in the array object indicate the name of the group, the minimum, maximum and current value of the group (can be used in the progress bar).
I used the list as the item "mx.controls.progress bar" as
;
Now when I need the currentValue field in the field of array "arr", then I "progress" value of " progress " currentValue (where the minimum and highest progress bar value is stored in the array "arr")
How can I do this?
thanks all
I think your progressors are not showing anything, because all this Wrong item renderer one There is a square that is getting a single item from the data provider to the function set (value: object): zero
. To get the value within ProgressBar, you can sub-class it, Add data function (gator and setter) and set properties from there - this will be the class item renderer.
Next, item renders are not guaranteed to start immediately all the time. Prepares because They should be shown, and unused stores in a pool. This means that you can not talk to special list items - any item from the pool can play its role. To change the progress, you need to update the data provider and It has to be set up again.
Comments
Post a Comment