Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/batch-file/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Events Flex4:DataGrid不';t截获从自定义itemRender发送的事件_Events_Datagrid_Flex4_Renderer_Dispatch - Fatal编程技术网

Events Flex4:DataGrid不';t截获从自定义itemRender发送的事件

Events Flex4:DataGrid不';t截获从自定义itemRender发送的事件,events,datagrid,flex4,renderer,dispatch,Events,Datagrid,Flex4,Renderer,Dispatch,我正试图截获自定义呈现程序以以下方式发送的事件: this.owner.dispatchEvent(new ResultEvent("eventName",true,false,parameter)); 这是我的表格: <mx:DataGrid id="calendarGrid"> <mx:columns> <mx:DataGridColumn headerText="header"

我正试图截获自定义呈现程序以以下方式发送的事件:

this.owner.dispatchEvent(new ResultEvent("eventName",true,false,parameter));
这是我的表格:

<mx:DataGrid id="calendarGrid">
        <mx:columns>
          <mx:DataGridColumn headerText="header"
                             id="h"
                             sortable="false"
                             itemRenderer="myRenderer"/>
        </mx:columns>
</mx:DataGrid>
handler函数从未被调用。 请帮忙

对不起我的错。。。 addEventListener在creationComplete函数中,该函数(我不知道为什么)从不触发。
现在开始工作了

对不起我的错。。。addEventListener在creationComplete函数中,该函数(我不知道为什么)从不触发。现在开始工作了

calendarGrid
是否调度过“eventName”事件?你在听什么节目?看起来你回答了自己的问题。您应该将此添加为答案,并将其标记为已回答,以便其他人将从您的解决方案中受益。
calendarGrid.addEventListener("eventName", handlerFunction);