We have reduced support for legacy browsers.

What does this mean for me? You will always be able to play your favorite games on Kongregate. However, certain site features may suddenly stop working and leave you with a severely degraded experience.

What should I do? We strongly urge all our users to upgrade to modern browsers for a better experience and improved security.

dispatching event

So here is the problem:
I have a class called classA. here are a few EventListeners like MouseEvent.MOUSE\_UP and MOUSE\_DOWN. in this class happens some checks (like, is the object disabled etc). I dispatch this event, since I would like to use this in the document class. but only when the checks return true
`
protected function MouseUpHandler(me:MouseEvent) {
if (checks){
dispatchEvent(me);
}
}
`
another `classB extends classA`. here these EventListerners are overridden to add extra functionality
`
override protected function MouseUpHandler(me:MouseEvent) {
super.MouseUpHandler(me);
AddExtraFunctionalities();
}`
in the main class, I make a new `classB`. and `classB.addEventListener(MouseEvent.MOUSE_UP, MouseUpHandler);`
however, when the `MOUSE_UP` happens, `classA` and `classB` become in a unending loop.
`
Error #2094: Event dispatch recursion overflow.
`
how should I do it right? without using custom events.
great thanks

`protected function MouseUpHandler(me:MouseEvent) {
if (checks){
return true;
}
else {
return false;
}
}``override protected function MouseUpHandler(me:MouseEvent) {
if(super.MouseUpHandler(me)) {
AddExtraFunctionalities();
}
}`
What you actually did was to cause a mouse event to trigger a function that then passed that original event _back to itself._ Anytime classB dispatches the MOUSE\_UP event, the handler for that function _dispatches a MOUSE\_UP event from that same object._ That’s what you told it to do.