- 最后登录
- 2013-6-5
- 注册时间
- 2013-1-8
- 阅读权限
- 10
- 积分
- 31
- 纳金币
- 31
- 精华
- 0
|
public function addPlane() : void{var material : ColorMaterial = new ColorMaterial(0xffffff);var geometry : PlaneGeometry = new PlaneGeometry(500, 500);var mesh : Mesh = new Mesh(geometry, material);mesh.y = -100;material.lightPicker = light;meshlist.push(mesh);view.scene.addChild(mesh);material.addEventListener(MouseEvent3D.MOUSE_DOWN, mouseDown);geometry.addEventListener(MouseEvent3D.MOUSE_DOWN, mouseDown);mesh.addEventListener(MouseEvent3D.MOUSE_DOWN, mouseDown);}private function mouseDown(e : MouseEvent3D) : void{trace("点击");}结果mouseDown方法没有执行,监听加错对象了吗? |
|