Hi

I would like to create my own MyMesh class which extends Away3dLite
Mesh class adding few new custom properties, but I have a little
problem with that.

After loading awd in event.loader.handle I get a Mesh, So I:

var myMesh:MyMesh = event.loader.handle as MyMesh
trace(myMesh) //null

Why null? How to "insert" loaded Mesh into MyMesh?

This is my mega MyMesh class:

package src.model {

        import away3dlite.arcane;
        import away3dlite.core.base.Mesh;
        import away3dlite.materials.Material;

        use namespace arcane;

        public class MyMesh extends Mesh {

                public var extra:Object;

                public function MyMesh(material:Material = null) {
                        super(material);
                }

        }

}

regards
Paweł

Reply via email to