I think the repeater for this would be:

 

<mx:Repeater id=”r” dataProvider=”{thrustData}”>

  <mx:CheckBox label=”{r.currentItem}” />

</mx:Repeater>

 

So it’s pretty easy, though if thrustData isn’t going to change I think it’s more efficient code-wise to write it out by hand.

 

Matt

 


From: [email protected] [mailto:[email protected]] On Behalf Of cnewroth55
Sent: Thursday, May 12, 2005 10:57 AM
To: [email protected]
Subject: [flexcoders] how to use a repeater question

 

is it possible to use a repeater control to 'duplicate' a group of
checkboxes? I have this text array i would like to have put into a
group of checkboxes;
<![CDATA[
      var thrustData:Array = ["All Reports", "ASMT - Affordable
Structures & Mfg. Tech.", "ALE - Advanced Lean & Efficient", "ASC -
Advanced Support Concepts", "APS - Advanced Platform Systems", "NCO -
Netcentric Operations" ];  
]]>
and would like for it to be the checkboxes label.
is it faster to do a repeater or just make them up normally..

Craig Newroth
Structures Technology - STL
Executive Computing Support
The Boeing Company





Yahoo! Groups Links

Reply via email to