RESOLVED: Don’t add eventlistener to stage but to component

Software: Away3D 3.x

Avatar
Bas, Newbie
Posted: 26 September 2011 12:51 PM   Total Posts: 23

Hey all,

In my application i don’t want the complete stage to listen to mouse- and keyboard events. All the away3d code is in a separate class/component and in my mxml i just want the component to listen to mouse- and keyboard events that are related to the 3d viewer part. When i do

view.addEventListener(MouseEvent.MOUSE_DOWNonMouseDown); 
or in my case add an event listener to my component it won’t work…...
viewEngine.addEventListener(MouseEvent.MOUSE_DOWNonMouseDown); 


Does anyone know how to solve this?

   

Avatar
Bas, Newbie
Posted: 26 September 2011 02:01 PM   Total Posts: 23   [ # 1 ]

I added a background to my component! That did the trick.

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X