import mx.effects.DefaultListEffect;
import mx.collections.ArrayCollection;
[Bindable]
private var myDP:ArrayCollection = new ArrayCollection
(['Flex','Flash','Life Cycle','Cold Fusion','Struts']);
private function deleteItem():void {
var toRemove:Array = [];
for (var i:int=0; i
toRemove.push(list0.selectedItems[i]);
for (i=0; i
myDP.removeItemAt(myDP.getItemIndex(toRemove[i]));
}
private var zcount:int = 0;
private function addItem():void {
myDP.addItemAt("NEW" + zcount++, myDP.length);
}
]]>
variableRowHeight="true" fontSize="24"
allowMultipleSelection="true"
itemsChangeEffect="{myDLE}"
/>
阅读(1202) | 评论(0) | 转发(0) |