I have a Repeater that creates a dynamic number of CheckBoxs. This Repeater is also within a Repeater. I have the selected value of the CheckBox bound to a (bindable) boolean variable. When I change the value of the variable, the selected value of the CheckBox does not change. If I bind something else to that boolean OUTSIDE of the Repeater (try uncommenting the checkbox below the button to see what i mean), then the CheckBox's selected property will change...but ONLY if I bind to the boolean outside of the Repeater as well. Also, if the CheckBoxs were only within 1 repeater (not a nested repeater) then it will function as you expect, but its the nested repeater that seems to be the source of the problem. What could cause this behavior and what could be done to solve the problem?
Thanks
Code:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application
xmlns:mx="http://www.adobe.com/2006/mxml"
layout="vertical"
width="900" height="700">
<mx:Script>
<![CDATA[
[Bindable]private var bool:Boolean=false;
]]>
</mx:Script>
<mx:Button label="bool" click="bool=!bool;"/>
<!--<mx:CheckBox label="uncommenting this also fixes it" selected="{bool}"/> -->
<mx:Repeater dataProvider="{[1]}">
<mx:Repeater dataProvider="{[1,2,3]}" >
<mx:CheckBox label="test" selected="{bool}"/>
</mx:Repeater>
</mx:Repeater>
</mx:Application>