ObjectContainer3D MouseEvent3D only works once with e.stopPropagation

Software: Away3D 4.x

Avatar
FlyOn, Jr. Member
Posted: 24 October 2012 12:44 AM   Total Posts: 36

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(planeGeometrymat);
    
plane.mouseEnabled true;
    
    var 
view:ObjectContainer3D = new ObjectContainer3D();
    
view.addChild(plane);
    
view.mouseEnabled true;
    
view.addEventListener(MouseEvent3D.CLICKactivateRectangle);
    
    
addChild(view);

 private function 
doSomething(e:MouseEvent3D):void 
 {
  e
.stopPropagation();
  
trace('clicked!');
 

First time I click prints ‘clicked!’, second the function is never called.

   

Avatar
FlyOn, Jr. Member
Posted: 24 October 2012 01:01 AM   Total Posts: 36   [ # 1 ]

some debugging in Mouse3DManager shows the MouseEvent3D.bubbles is set to true the first time.
But second time bubbles = false.

stopPropagation shouldn’t change whether an event bubbles at all the next time should it?

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X