flash on 2009-11-13

by muu
♥0 | Line 16 | Modified 2009-11-13 18:18:15 | MIT License
play

ActionScript3 source code

/**
 * Copyright muu ( http://wonderfl.net/user/muu )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/b9Ge
 */

package{
    import org.papervision3d.view.*;
    import org.papervision3d.objects.primitives.*;

    public class Test extends BasicView {
      
        private var mySphere : Sphere;
        public function Test() {
            super (0,0,true,false,"CAMERA3D")
            camera.z = -300;
            camera.focus = 100;
            camera.zoom = 1;      
            mySphere =new Sphere(null,200,20,20);
            scene.addChild(mySphere); 
            startRendering();
        }
        /*
        override protected function onRenderTick(event:Event=null):void {
            mySphere.rotationX += 0.5;
            mySphere.rotationY += 0.2;
            mySphere.rotationZ += 0.1;
            super.onRenderTick(event);
        }
        */
    }
}