In case Flash no longer exists; a copy of this site is included in the Flashpoint archive's "ultimate" collection.

Dead Code Preservation :: Archived AS3 works from wonderfl.net

flash on 2009-9-23

use mouse drag to look, arrow key to navigate
this is just testing
Get Adobe Flash player
by LiftOver 22 Sep 2009
/**
 * Copyright LiftOver ( http://wonderfl.net/user/LiftOver )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/rVOL
 */

/*
use mouse drag to look, arrow key to navigate
this is just testing
*/
package
 {
     import flash.events.Event;
     import org.papervision3d.core.clipping.FrustumClipping;
     import org.papervision3d.materials.ColorMaterial;
     import org.papervision3d.materials.utils.MaterialsList;
     import org.papervision3d.objects.primitives.Cube;
     import org.papervision3d.view.BasicView;
    
     [SWF(width="640", height="480", frameRate="60")]
     public class PVCubeRoom extends BasicView
     {
        
         private var cube:Cube;
         public function PVCubeRoom():void
         {
             super(640, 480, true, true, "Debug");
             init();
             singleRender();
             addEventListener(Event.ENTER_FRAME, tick);
         }
        
         private function init():void
         {
            
             renderer.clipping = new FrustumClipping(FrustumClipping.NEAR);
             camera.z = -200;
             camera.useCulling = false;
            
             var matlist:MaterialsList = new MaterialsList( {
                 front:new ColorMaterial(Math.random() * 0xffffff),
                 back:new ColorMaterial(Math.random() * 0xffffff),
                 right:new ColorMaterial(Math.random() * 0xffffff),
                 left:new ColorMaterial(Math.random() * 0xffffff),
                 top:new ColorMaterial(Math.random() * 0xffffff),
                 bottom:new ColorMaterial(Math.random() * 0xffffff)
             });
        
             cube = new Cube(matlist, 7000, 9000, 2300,10,10,10,Cube.ALL );
             scene.addChild(cube);
         }
        
        
         private function tick(e:Event):void
         {
             singleRender();
         }
     }
 }