I want to fill color based on condition so I used conditional operator for the checkbox. But it's shows the error Implicit coercion of a value of type String to an unrelated type Array
. What did I do wrong ? How can I dynamically change the color of a checkbox ?
<mx:CheckBox id="home" enabled="false" fillColors="{(data.actualwin != '1') ?
'[#8CE912,#8CE912]' : '[#8CE912,#8CE912]'}" selected="{data.betting_home=='1'}"/>