AS3 Stage3D Mouse click problem?
Posted
by
Martin K
on Game Development
See other posts from Game Development
or by Martin K
Published on 2012-09-12T12:18:03Z
Indexed on
2012/09/12
15:52 UTC
Read the original article
Hit count: 460
I have a problem with Mouse interaction and Stage3D.
The only way I found to register to listen to mouse clicks and interact with Stage3D, is to add a mouse eventListener directly to the .stage.
However this will result in any time i click anywhere in the flash application the mouse click will fire, even if there is an overlaid 2D menu where the user intended to click.
IE I have a 3D application running in the background, which listens to clicks, and I have some floating User Interface elements in the foreground, and ideally if I clicked a button in the foreground, then that would NOT fire a click event that the Stage3D would register.
Any idea how to solve this problem?
© Game Development or respective owner