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

PaperVision3Dの練習1

ClokMakerさんのブログ記事を参考にして、矢印を回転させてみた
Get Adobe Flash player
by flabaka 12 Mar 2009
//ClokMakerさんのブログ記事を参考にして、矢印を回転させてみた

package {
    import org.papervision3d.objects.primitives.*;
    import org.papervision3d.view.BasicView;
    import flash.display.Sprite;
    import flash.events.*;

    public class Main extends Sprite {
        
        private var arrow:Arrow;
        private var world:BasicView;
        
        public function Main() {
            
            world = new BasicView();
            addChild(world);

            arrow = new Arrow();

            world.scene.addChild(arrow);


            world.startRendering();

            addEventListener(Event.ENTER_FRAME,loop);

        function loop(e:Event):void{
	    arrow.rotationX +=  5;

        }    
    }
}
}