Mouse events in Flex

Software: Away3D 4.x

mole, Newbie
Posted: 25 October 2013 03:29 PM   Total Posts: 29

I used to have an away 3D based model viewer in a flex based project. It was shown in a popup, and I masked the entire application (including the popup) to be able to see the 3D view. This hack is needed, because stage3D is rendered behind the display tree.

Now.. I’m refactoring the application, and I’m no longer using a popup. The view is added in a UIComponent. For some reason the mouse event no longer come trough. I can’t seem to figure out why. Anyone experienced something like this before?

   

fmax, Newbie
Posted: 26 October 2013 06:49 AM   Total Posts: 10   [ # 1 ]

Try it:
component.mouseEnabled = false;

   

mole, Newbie
Posted: 28 October 2013 10:33 AM   Total Posts: 29   [ # 2 ]

I don’t understand… I’m no longer receiving mouse events… and you say the solution is to turn OFF mouse events?

   

fmax, Newbie
Posted: 28 October 2013 11:59 AM   Total Posts: 10   [ # 3 ]

I think Flex2D context is overlay Stage3D context and your app can’t receive any event. I solved the same problem with FlashGUI (not Flex) + Away3D.
See my demo: http://snzflash.com/planner/
Here is the flash2d gradient fill: http://shot.qip.ru/00eBeQ-311BE1KkHO/

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X