0
我有一箇中繼器內的進度條,因此我需要使用getRepeaterItem來設置它的進度,如this問題中所建議的。如何使用getRepeaterItem設置進度條的進度?
我該怎麼做,以便進度值可以從repMonitor.currentItem.threatLevel中取得?
<mx:Accordion id="monAccordian" includeIn="Monitoring" x="10" y="10" width="554" height="242" change="monAccordianChange()" >
<mx:Repeater id="repMonitor" dataProvider="{monitoringArray}">
<mx:Canvas width="100%" height="100%" label="{repMonitor.currentItem.firstName+' '+ repMonitor.currentItem.lastName}" >
<mx:Image x="10" y="10" source="{repMonitor.currentItem.imageName}" width="175" height="118"/>
<s:Label x="200" y="14" text="Threat Level:"/>
<mx:ProgressBar x="200" y="30" mode="manual" label="" id="bar" width="200" />
</mx:Canvas>
</mx:Repeater>
</mx:Accordion>