private function button_click(evt:Event):void { var selArr:Array =[]; var idx:int; var len:int = arr.length; for (idx=0; idx<len; idx++){ if (checkBox[idx].selected){ selArr.push(checkBox[idx].label); } }
var title:String = selArr.length +" of "+ len +" item(s) selected."; var message:String = selArr.join("\n"); Alert.show(message, title); }
private function doFilter(element:*, index:int, arr:Array):Boolean { return element.selected; }
private function checkBox_change(evt:Event):void { var ch:CheckBox = evt.currentTarget as CheckBox; Alert.show(ch.getRepeaterItem().data); } ]]>