Hi,
I’m getting some strange behaviour..
Can anyone confirm this is a bug?
var planeGeometry:PlaneGeometry = new PlaneGeometry();
var mat:ColorMaterial = new ColorMaterial(0x00ff00);
var plane:Mesh = new Mesh(planeGeometry, mat);
plane.mouseEnabled = true;
var view:ObjectContainer3D = new ObjectContainer3D();
view.addChild(plane);
view.mouseEnabled = true;
view.addEventListener(MouseEvent3D.CLICK, activateRectangle);
addChild(view);
private function doSomething(e:MouseEvent3D):void
{
e.stopPropagation();
trace('clicked!');
}
First time I click prints ‘clicked!’, second the function is never called.