button放在DataGrid的itemRenderer里面,为什么调用方法,提示不存在
<mx:DataGrid id="dgSelUser" width="100%" height="50%" dataProvider="{flowPeoples}"> <mx:columns> <mx:DataGridColumn headerText="姓名" dataField="userid" /> <mx:DataGridColumn headerText="部门" /> <mx:DataGridColumn headerText="管理"> <mx:itemRenderer> <mx:Component> <mx:LinkButton label="选择人员" width="30" click="selUser()" /> </mx:Component> </mx:itemRenderer> </mx:DataGridColumn> </mx:columns> </mx:DataGrid>