R – Equivalent of Event.MOUSE_LEAVE in AS2

actionscript-2actionscript-3

What is the equivalent of this AS3 code in AS2?

stage.addEventListener(Event.MOUSE_LEAVE, callbackFunc);

private function callbackFunc(e:Event):void {
    // do something
}

Best Answer

I struggled with this for a while and ended up using JavaScript event listeners on the Flash HTML object and then tying that into Flash's External Interface to set flags for when the mouse over and out events occur. This seems to work perfectly without any bugs.

Related Topic