I am trying to deselect all checkboxes on a button click. I've tried creating a binded boolean variable like this:
[Bindable]
public var allselected:Boolean;
and then on my checkboxes:
<s:CheckBox selected="{allselected}" label="PT Identified" />
<s:CheckBox selected="{allselected}" label="Chart Reviewed"/>
<s:CheckBox selected="{allselected}" label="H&P"/>
<s:CheckBox selected="{allselected}" label="Permit Signed"/>
On a separate button click I set the boolean variable to false and nothing happens after I've already checked a checkbox. If I set the boolean variable to true, all the checkboxes get checked. So, if I wanted to select all, then it works. However, I want to deselect all selected checkboxes.
The checkboxes only reside withing a tilegroup and are not inside a datagrid or datagroup. I would think that there is a simple way to do this but I've yet to figure it out. Any suggestions would be greatly appreciated.