thanks jester, that helped and thanks to Steven Webster's book, chapter 7 :-)
here is what worked and what I did...
mx:Scriptfunction changeOther( event ){if ( event.target == summaryCHB )detailCHB.enabled = !detailCHB.enabled;if ( event.target == detailCHB )summaryCHB.enabled = !summaryCHB.enabled;}/mx:Script
mx:FormItem mx:CheckBox label="Summary" labelPlacement="bottom" id="summaryCHB" click="changeOther( event );"/ /mx:FormItem mx:FormItem mx:CheckBox label="Detail" labelPlacement="bottom" id="detailCHB" click="changeOther( event );"/ /mx:FormItem
Craig Newroth
JesterXL [EMAIL PROTECTED] wrote:
Check out the enabled property, almost all controls support this gem.radioButton.enabled = false;- Original Message - From: "cnewroth55" [EMAIL PROTECTED]To: flexcoders@yahoogroups.comSent: Thursday, April 14, 2005 10:10 AMSubject: [flexcoders] how to make an object active?Here's a quickie that I am sure someone can answer pretty quickly; I have a radio group that has x number of items, and what I want to do is make a coulple of checkboxes either be greyed out (active) or in-active depending on which radiobutton a user clicks on; my code:if a user click on the first radiobutton I want the summary check box to be active and the detail check box to gey out...can reply to [EMAIL PROTECTED] or
here... mx:RadioButtonGroup id="thrustReportsGroup" / mx:RadioButton label="All" groupName="thrustReportsGroup" x="24" y="14" / mx:RadioButton label="ASMT - Affordable Structures amp; Mfg. Tech." groupName="thrustReportsGroup" x="24" y="34" / mx:RadioButton label="ALE - Advanced Lean amp; Efficient" groupName="thrustReportsGroup" x="24" y="54" / mx:RadioButton label="ASC - Advanced Support Concepts" groupName="thrustReportsGroup" x="24" y="74" / mx:RadioButton label="APS -
Advanced Platform Systems" groupName="thrustReportsGroup" x="24" y="94" / mx:RadioButton label="NCO - Netcentric Operations" groupName="thrustReportsGroup" x="24" y="114" / /mx:VBox mx:VBox mx:FormItem label="Summary" mx:CheckBox label="Checkbox" / /mx:FormItem mx:FormItem label="Detail" mx:CheckBox label="Checkbox" /
/mx:FormItem /mx:VBoxYahoo! Groups Links
Do you Yahoo!?
Yahoo! Small Business - Try our new resources site!
Yahoo! Groups Links
To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.