private function selectedAllProduct(e:Event):void
{
// e.target 是一个CheckBox,用来控制List是否全选
if (e.target.selected)
{
// 全选productList
productList.selectedItems = (productList.dataProvider as ArrayCollection).toArray();
}
else
{
// 取消全选
productList.selectedItems = new Array();
}
}