I have this message, always when I paste something in my datagrid. I tried to figure out why that is, but I cant find Any ListEvent in the functions which do get called... Can anyone give me a hint how I could approach to reason of that problem? I tried to comment parts of the code but I still couldn't find the basic of that error... When I go through all the code with the debugger, I finally get to the UIComponent.as class and the in the meantime the error message gets shown. The debugger goes to the following function:
* Callback that then calls queued functions.
private function callLaterDispatcher(event:Event):void
// trace(">>calllaterdispatcher " + this);
// At run-time, callLaterDispatcher2() is called
// without a surrounding try-catch.
// At design-time, callLaterDispatcher2() is called
// with a surrounding try-catch.
var callLaterErrorEvent:DynamicEvent = new DynamicEvent("callLaterError");
callLaterErrorEvent.error = e;
Any help is appreciated!
You need to find which event is dispatched and check your listener method signature. I think your event listener takes a mx.events.ListEvent as an argument when it should actually be an flash.events.Event.
This error occurs when there is a listener for a ListEvent but some code
dispatches a regular Event with the same name. The error occurs as the
handler is about to be entered so there is no useful information on the call
I usually just divide and conquer by commenting out handlers and code until
the error goes away. You can also try a capture phase handler on
SystemManager for various ListEvents to see which one was last before the
This is the main reason folks should not bubble events as it often leads to
problems like this.