def=moves the light source on the world's axes
Flash3DInstance..light.translate(x, y, z);
&sam=
//moves the light slowly right and left on the screen
myWorld = new Flash3D(270, 200, 0);
myWorld.newModel("oct", "octahedron");
myWorld.model["oct"].rotate(30,30,0);
myWorld.model["oct"].setFill(0x00FF00, 100);
dir = 1;
_root.createEmptyMovieClip("rotater", 2000);
rotater.onEnterFrame = function() {
myWorld.light.translate(300*dir,0,0);
myWorld.render();
if (myWorld.light.transform()[0] %3E 15000 || myWorld.light.transform()[0] %26lt%3B -15000) { dir *= -1 }
}