Hello Anjum,

I think you should bind the enable property of your components to a public 
Bindable variable.
eg
    [Bindable]
    public var buttonsEnabled:Boolean;
    .
    .
    .
 <mx:Button label="Submit" enabled= {buttonsEnabled}/>
 <mx:Button label="Cancel" enabled= {buttonsEnabled}/>

This way, anytime you set buttonsEnabled to true or false, the buttons get 
enabled or disabled respectively

Hope this helps
MayorBrain




________________________________
From: Anjum Shahzad <[email protected]>
To: [email protected]
Sent: Monday, June 8, 2009 9:04:44 AM
Subject: [flexcomponents] how to make read only component at run time





Hi,
 i want to make non-editable component except 
buttons,link buttons.my case is these controls(buttons e.t.c) contained on a 
canvas.i want to make ready only the whole canvas except buttons.
enable and disable deciesion is taken at runtime.i 
do not want to set editable/enable the property of each control.
 
please provide the solution.
 
regrads
 
anjum
   


      

Reply via email to