Application registration point get’s *@$#* when using a div over the application
February 20th, 2008 by
Jaap Kooiker
This is like…. what?
I recently discovered that there’s a problem with the registration point when a html layer (eg div) is placed above the flash runtime. For some weird reason the Application registration point is set to zero according to the x and y of the overlay div (see sample). I for sure cannot change that registration point so why is it changing. The other thing is that all content stays in place at the right coordinates, but the mouse position shows us (see example below) that the registration point changes - it looks like that anyway.
From my opinion this is a bug of the player. The weird thing is that this only occurs in FireFox and not in IE.
It could be a serious problem when you wan’t to know last registered mouseX and mouseY before “leaving” the stage.
note:
I got a rather “innovative” (read: not nice) sollution to know the last real mouseX and mouseY postion.
Keep the last 2 known positions in an array and stop registering on Event.MouseLeave. Use the fore-last position in you’re application to determine the last valid position.
Is there someone who can tell me why this “Phenomenon” occurs? I would like to know….why…
Edit Firefox 2.0.0.12 / Fp 9.0.115.0:

Jaap Kooiker
Posted in Actionscript 3.0, Bugs, Components, Did you know?, Flex |
4 Comments »