HI,
I took a fast look it's always better to handle your parse and get
your meshes when your file (geometry and material is completely
loaded),
something like :
model1 = Collada.load(Charmesh, {scaling:1,
material:manaC}); //load is diffrent from parse , it retrun an
Object3DLoader instead of an ObjectContainer3D,
then you can had it a success event to make sure your geometry and
materials from your collada are welle loaded and parsed:

model1.addOnSuccess(getObject);

function getObject(e:LoaderEvent):void
{
now you are getting a
ObjectContainer3D(e.loader.handle).children   are the array of
object3D contained in your loader (usefull to trace)
if you have only one object
var mesha:Mesh = (ObjectCOntainer3D(e.loader.handle).children[0] as
Mesh;//or cast as Object3D
or
var mesha:Mesh  = ObjectCOntainer3D(e.loader.handle).getChildByName
("lpmodel") as Mesh;
then your stuff...
};

Reply via email to