Wednesday 2009/07/01
10:09 PM

Categories: Flash/Actionscript, Technology's Betrayal, Web Dev, Work

Event.ACTIVATE and WMode

Another classic case of finding things out the hard way: in ActionScript Event.ACTIVATE and Event.DEACTIVATE do not fire if the swf is embedded with wmode set to transparent. I was working on a project that needed to know when the user switched focus away from the swf, and couldn’t figure out why the event would fire in the standalone player but not when run in the browser.


Responses


graeme

Wednesday 2010/02/03 1:06 PM

Did you ever find a work around to this issue by chance?


ds

Wednesday 2010/02/03 1:16 PM

Graeme: If by workaround you mean “ditched the functionality that would have required this to work”, then yes. We couldn’t find a workaround in time, so we dropped it.


graeme

Tuesday 2010/02/09 5:35 PM

Thanks for the response and sorry to hear that no clean solution could be found.

FYI, Colin Moock talked about possibly making a workaround with Event.MOUSE_LEAVE here

http://www.moock.org/blog/archives/000252.html

Also, apparently, this issues has been flagged in the adobe bug tracker

http://bugs.adobe.com/jira/browse/FP-892


ds

Tuesday 2010/02/09 7:26 PM

Graeme: I recall that we started to go down the MOUSE_LEAVE direction, but didn’t get too far before we just ditched the functionality that required it. Thanks for the links to Moock and the bug entry.


Leave a Response