flash on 2010-3-2

by ushisantoasobu
♥0 | Line 15 | Modified 2010-03-02 23:03:09 | MIT License
play

ActionScript3 source code

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

package{
	
	import org.papervision3d.materials.*;
	import org.papervision3d.objects.primitives.*;
	import org.papervision3d.view.*;
	
	import flash.media.Camera;
	public class Sample1 extends BasicView{
		public function Sample1(){
			var material:WireframeMaterial = new WireframeMaterial(0xFF0000);
			
			var sphere:Sphere = new Sphere(material, 300, 90, 90);
			
			camera.addEventListener(
			
			scene.addChild(sphere);
			
			startRendering();
		}
	}
}