Hi again,
I’m having a hard time getting my head around this. I have a simple sphere that i’m loading as a .3DS and I want to make it mouse enabled. From the stuff I’ve gathered in examples and around this forum the next step is to make a mesh for it.(?) I poached some of the code from examples and tried to form it for my needs and this is what I’ve gotten so far:
Loader3D.enableParser(Max3DSParser);
_container = new Loader3D();
_container.scale(1);
_container.load(new URLRequest('assets/models/Spheres_01.3ds'));
_container.z = 200;
_container.x = 0;
_container.y = 0;
_view.scene.addChild(_container);
var mesh : Mesh;
for (var l : int = 0; l < _container.numChildren; ++l) {
mesh = Mesh(_container.getChildAt(l));
mesh.geometry.scale(1);
mesh.z = _container.z;
mesh.x = _container.x;
mesh.y = _container.y;
mesh.material = material;
mesh.mouseEnabled = true;
mesh.addEventListener(MouseEvent3D.CLICK,onStageDown);
}
The .3DS loads wonderfully but I still am not getting any sort of mouse reaction from it. Not sure if i’m on the right track or if I need to step in a new direction.
Thanks for any help!
-Alex