def=Creates a new instance of a model in the 3D world

Flash3DInstance.newModel(newModelID, primitiveID);

If the primitive type does not exist (is not predefined, nor has the user created it), then a blank model is created with which the user can define new vertices and sides.

The method returns a reference to the new model. &sam=

//creates a new cube model


myWorld = new Flash3D(270, 200, 1);

myWorld.newModel("mod", "cube");

myWorld.render();



//creates a new blank model


myWorld = new Flash3D(270, 200, 1);

myWorld.newModel("mod", "myMesh");