try this:
first declare mesha, meshb and meshc as Object3D not Mesh in your
private var
then:
function llamo(e:LoaderEvent):void{
var temporaryRef:Object3D = ObjectContainer3D
(e.loader.handle).getChildByName("polySurface1") as Object3D;
trace(temporaryRef)///hope your sure to have a polySurface1 in your
scene
/// 1 - now we are cloning the geometry and materials of the object as
Mesh:
mesha = Mesh(temporaryRef).clone();
meshb = Mesh(temporaryRef).clone();
meshc = Mesh(temporaryRef).clone();
//2 - and here the other variable of the object as Object3D
(transform, position, canvas, session, etc...), you probably don't
need it
temporaryRef.clone(mesha);
temporaryRef.clone(meshb);
temporaryRef.clone(meshc);
///
scene.addChild(mesha);
scene.addChild(meshb);
scene.addChild(meshc);
}
and try also to add;
mesha = new Object3D;
then call cloning...
meshb = new Object3D;
then call cloning...
tell me...I don't see anything else (but I'm workin in the meanTime
so, I could skip one error...)