[Laszlo-dev] Losing mouse clicks in SWF8 (LPP-7981) when setFocus() is used

promanik@laszlosystems.com promanik at laszlosystems.com
Mon Jun 1 17:17:01 PDT 2009


Hi Max,

Perhaps you (or somebody on laszlo-dev) has some thoughts on 
http://www.openlaszlo.org/jira/browse/LPP-7981. This is a swf8-only 
issue (at least on a PC). If you open a window with a button that is 
displayed under the mouse, the button requires 2 clicks if the focus has 
been set to another element on the window. If the user moves the mouse a 
single pixel, the button receives the very next click. At first I looked 
for a general solution but right now I'm looking for a workaround in the 
application. The other way to make it work is to NOT call setFocus() and 
the button is clickable.

Andre added a simpler testcase that mostly uses native Flash code.

I have not found a workaround. I tried to simulate a mouseover event on 
the button but I don't think Flash likes me hijacking mouse events.

Any thoughts?

Thanks!

Phil


More information about the Laszlo-dev mailing list