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>