serious problem about 4.0 gold

Software: Away3D 4.x

datouaizi, Member
Posted: 18 July 2012 03:26 PM   Total Posts: 98

before update to gold, my project running correct, after update ,some of mesh can`t accept MouseEvent3d listener.

   

Richard Olsson, Administrator
Posted: 18 July 2012 03:55 PM   Total Posts: 1192   [ # 1 ]

The mouse picking system has changed. See the following thread as well as the example linked from that thread for some pointers: http://away3d.com/forum/viewthread/2514

   

datouaizi, Member
Posted: 18 July 2012 11:11 PM   Total Posts: 98   [ # 2 ]
if(loader.getChildByName(elementName))
{
  Mesh
(loader.getChildByName(elementName)).mouseEnabled true 
  
Mesh(loader.getChildByName(elementName)).shaderPickingDetails true ;
  
Mesh(loader.getChildByName(elementName)).addEventListener(MouseEvent3D.DOUBLE_CLICK,hideElement); 
  
Mesh(loader.getChildByName(elementName)).addEventListener(MouseEvent3D.CLICK,moveToElement);
  
Mesh(loader.getChildByName(elementName)).addEventListener(MouseEvent3D.MOUSE_OVER,showRedBox);
  
Mesh(loader.getChildByName(elementName)).addEventListener(MouseEvent3D.MOUSE_OUT,hideRedBox);

here is my code,loader3D has many mesh child named like 001,001001,001001001,my problem is that 001,001001,can accept mouseEvent3D ,but 001001001 can`t ,and make sure I hava this mesh.

beta 4.0 shows correct ! get childByName is my own method.

   

datouaizi, Member
Posted: 18 July 2012 11:33 PM   Total Posts: 98   [ # 3 ]

i got the bug details!  two mesh ,one is room only contains wall floor ,another is bed ,all have MouseEvent3D event ,if bed in room position ,bed mouseEvent3D can`t work ,if bed out room it can work.

   

Richard Olsson, Administrator
Posted: 19 July 2012 08:08 AM   Total Posts: 1192   [ # 4 ]

Try setting mouseChildren = true on the container (loader) and see if that helps.

   

Avatar
Alejandro Santander, Administrator
Posted: 19 July 2012 01:51 PM   Total Posts: 414   [ # 5 ]

Yes, try Richard’s suggestion and pls let us know how it goes. If there is a problem we’ll fix it!

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X