i have this in a class wich extends from plane
//listen to click
this.mouseEnabled = true;
this.addEventListener(MouseEvent3D.CLICK , onClick_plane);
this.addEventListener(MouseEvent3D.MOUSE_OVER , onClick_plane);
this.addEventListener(MouseEvent3D.MOUSE_OUT , onClick_plane);
this.addEventListener(MouseEvent3D.MOUSE_MOVE , onClick_plane);
this.addEventListener(MouseEvent3D.MOUSE_DOWN , onClick_plane);
the planes get added to a container
//add mesh to projectContainer
_projectContainer.addChild(plane);
and, finally, i have a view to show it all to me.
//setup view
_view = new View3D(sceneManager.scene, sceneManager.camera);
_view.antiAlias = 8;
_view.mouseEnabled = true;
_view.mouseChildren = true;
_view.backgroundColor = 0xFFFFFF;
addChild(_view);
as i mentioned in earlier, my code i pretty straight forward, unless i’m missing something really important.