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.

Check this Sample

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 Responses

  1. Another reason not to mix HTML and Flash/Flex: Labs@flexcoders Says:

    […] Check out the rest of the article here. […]

  2. mattjpoole Says:

    The firefox flash plugin obvioulsly cant recieve mouse input through overlaid divs…

  3. ian Says:

    not having an issue with OSX FF 2.0.0.11 and FP 9.0.115.0

  4. Jaap Kooiker Says:

    @mattjpoole: I know, but that’s not the point… see sample image

Leave a Comment

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.