Flash As3 Event.MOUSE_LEAVE Not Firing.

March 8th, 2009

Really quick post this time. Wanted to share some recent found knowledge that i wish i had known twenty minutes prior to testing functionality in an RIA earlier on tonight.

1
stage.addEventListener(Event.MOUSE_LEAVE, exitHandler);

This will not work in the Flash IDE! The embedded player just never fires the event.
The only work around i could find is to publish the swf and view it in a browser.

Twitter / RazPeel

One Response to “Flash As3 Event.MOUSE_LEAVE Not Firing.”

  1. Daniel Goulding on June 8, 2010 7:52 am

    These are my findings on the subject…

    + outputting from the IDE the Event.MOUSE_LEAVE event just doesn’t fire at all
    + on a Mac, flash player 10 with HTML wrapper:
    + Chrome: event doesn’t fire
    + Safari: works
    + Firefox: works

Trackback URI | Comments RSS

Name (required)

Email (required)

Website


Speak Your Mind





Powered by WP Hashcash

About

Name: Raz Peel

Raz Peel 2009

Employer: Sapient
Occupation: Web Developer
Contact: raz@wizardelraz.com