Capturing Events for Meshes under flash display objects?

Software: Away3D 4.x

batiali, Newbie
Posted: 30 July 2012 03:43 PM   Total Posts: 5

Hello there,

I have a problem that I failed to find any answers in forums.

I need to capture MouseEvent3D on a mesh under GUI. GUI is made of flash’s own Bitmap. And even though I add this Bitmap to a Sprite and set mouseEnabled and mouseChildren properties of this Sprite to false (and it doesn’t react to mouse events), it still prevents me from capturing MouseEvent3D’s from the mesh behind it. The only way I found is to set visibility of this GUI element to false but that’s not actually what I want.

Any help appreciated.

   

Richard Olsson, Administrator
Posted: 31 July 2012 08:49 AM   Total Posts: 1192   [ # 1 ]

Setting mouseEnabled and mouseChildren to false on your GUI should work. If it doesn’t, that sounds like a (very weird) bug. Please file a bug report at http://github.com/away3d/away3d-core-fp11/issues .

To work around the issue until we fix it, add your View3D after everything else so that it’s on top of those GUI elements that do not need mouse interaction.

The 3D scene is always rendered behind everything else, per the rules of Stage3D, regardless of where the View3D is added. However, the View3D contains an invisible hit area for mouse input so it’s stacking in the display list does actually matter when you need it to react to mouse interaction.

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X