def=sets the renderMode of the specified model (each model can have a separate renderMode)

Flash3DInstance..model[modelID].setRenderMode(renderMode);

modes include "solid" which contains sides with solid fills, "wire" which shows a one sided wireframe (backfaceculling is still turned on), and "wire2side" which is the traditional wireframe with backface culling turned off &sam=

//toggles the renderMode of the model "myCube"


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

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

myWorld.model["myCube"].rotate(30,30,0);

rmArray = ["solid", "wire", "wire2side"];

_root.createEmptyMovieClip("toggle", 1000);

toggle.onMouseDown = function() {

renderNum %3D renderNum%2B%2B %3E 1 ? 0 : renderNum%2B%2B;

myWorld.model["myCube"].setRenderMode(rmArray[renderNum]);

myWorld.render();

}

myWorld.render();