private function onRender(cell:Box,index:int):void
{
// TODO Auto Generated method stub
var cell:Box=my_list.getCell(index) as Box;
var my_btn:Button=cell.getChildByName("my_btn") as Button;
var my_clip:Clip=cell.getChildByName("my_clip") as Clip;
my_btn.on(Event.CLICK,this,onBtnClick,["my_btn"]);
my_clip.on(Event.CLICK,this,onClipClick,["my_clip"]);
}
private function onBtnClick(name:String):void
{
// TODO Auto Generated method stub
trace(name);
}
private function onClipClick(name:String):void
{
// TODO Auto Generated method stub
trace(name);
}
1 个回复
cuixueying
赞同来自: