Hi there, I'm writing a platform to import some 3d objects for
manipulation, translation, rotation, insertion etc.
I have loaded some 3d object with the file type obj. for instance:

var loader0:Object3DLoader= Obj.load("resources/obj/oneH.obj",
{material:mat,name:"oneH",scaling:0.7, x:0, y:0, z:0,ownCanvas:true,
alpha:0.8, useHandCursor:true});

after that, I'm trying to get the loader0's properties once I selected
it on the screen through mouse left click, the code shows here:
//global var selectedObject:Mesh = new Mesh;

//local function after a clicked,
selectedObject = (event.object as Mesh);

the selectedObject is returned, the objectWidth can be successfully
found like 150, 21 etc...
by selectedObject.objectWidth;

However, I tried to find its name, I used selectedObject.name;
but when I trace( selectedObject.name );
the output shows obj_0;

all object3d show the same result, how can I solve this problem ?
thx

Reply via email to