To dynamically change the color of an object straight from the properties, bind the inline "if" condition on the properties of the object.
Example, you would want to make the disabled color of an object set to #000000 when the check box is selected (checked), and set it to #B5B5B5 when not selected.
disabledColor="{(checkbox1.selected == true)?uint('0x000000'):uint('0xB5B5B5')}"
So, you would have a code that looks like:
<mx:TextInput disabledColor="{(checkbox1.selected == true)?uint('0x000000'):uint('0xB5B5B5')}">
The inline "if" condition syntax...
{(condition)?condition is true:condition is false}
RSS Feed 


0 comments:
Post a Comment