00.Flex,Flash,ActionScript2013. 5. 20. 13:52
반응형

<init시 itemrenderer를 갖고 있는 start_addr_deny(datagrid)에 접근할 addEventListener추가>

private function init():void{
start_addr_deny.addEventListener("status_bt", status_btHandler);

}

<dispatchEvent를 이용한 클릭시 외부 접근>

<mx:DataGridColumn id="check_Add" width="50">
<mx:itemRenderer>
<mx:Component>
<mx:HBox horizontalAlign="center">
<mx:CheckBox click="dispatchEvent(new Event('status_bt', true))"/>
</mx:HBox>
</mx:Component>
</mx:itemRenderer>
</mx:DataGridColumn>

Posted by 1010