Check out the enabled property, almost all controls support this gem.

radioButton.enabled = false;


----- Original Message ----- 
From: "cnewroth55" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Thursday, April 14, 2005 10:10 AM
Subject: [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:VBox>






 
Yahoo! Groups Links



 




 
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:
    http://docs.yahoo.com/info/terms/
 



Reply via email to