package { import flash.display.Sprite; import flash.events.Event; import org.papervision3d.view.*; import org.papervision3d.objects.primitives.*; [SWF(width="465", height="465", backgroundColor="#ffffff", frameRate="60")] public class SphereRot extends Sprite { private var world:BasicView = new BasicView(); private var sphere:Sphere; public function SphereRot() { addEventListener(Event.ADDED_TO_STAGE, init); } private function init(e:Event):void{ removeEventListener(Event.ADDED_TO_STAGE, init); addChild(world); sphere = new Sphere(null, 200, 30, 30); world.camera.z = -300; world.camera.focus = 5; world.scene.addChild(sphere); world.startRendering(); addEventListener(Event.ENTER_FRAME, entFnc); } private function entFnc(e:Event):void { sphere.rotationY += 0.2; } } } PV3Dれんしゅー