for(var i:number=0;i<15;i++)
{
var _btnItem:fgui.GButton=_list.getChildAt(i).asButton;
_btnItem["_idNum"]=i.toString();
}
_list.setVirtual();
_list.addEventListener()
_list.numItems=_ary.length;
var _list:fgui.GList=this.getChild("n4").asList; _list.addEventListener(fgui.ItemEvent.CLICK,this.onItem,this); private onItem(e:fgui.ItemEvent):void { var _btn:fgui.GButton=e.itemObject.asButton; console.log(_btn.name); }
this.zi_list=this.getChild("n14").asList;
// this.zi_list.selectedIndex = 0;
// this.zi_list.refreshVirtualList();
this.zi_list.setVirtual();
// this.zi_list.numItems = this.nowzi_arr.length;
this.zi_list.itemRenderer = this.renderListItem_icon_list;
this.zi_list.callbackThisObj = this;
this.zi_list.numItems =10;
private renderListItem_icon_list(index: number, obj: fgui.GObject): void {
var item: pinyinxuexi_ziWordItem = <pinyinxuexi_ziWordItem>obj;
item.title=this.nowzi_arr[index];
}