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

forked from: flash on 2011-1-22

Get Adobe Flash player
by itsuki_happy 02 Feb 2011
    Embed
/**
 * Copyright itsuki_happy ( http://wonderfl.net/user/itsuki_happy )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/ggM1
 */

// forked from itsuki_happy's flash on 2011-1-22
package {
    import flash.events.Event;
    
    import org.papervision3d.objects.parsers.DAE;
    import org.papervision3d.view.BasicView;

    [SWF(frameRate=50, backgroundColor="#222222")]
    public class Main extends BasicView
    {
        public var model:DAE;
        
        public function Main()
        {
            // DAEクラスのインスタンスmodelを作成
            model = new DAE();
            // daeファイルを読み込み
            model.load("http://mcmahon.asia/kingyo/mccc.dae");
            // サイズ調整 
            camera.zoom = 1500;            
            // addChild
            scene.addChild(model);
            // レンダリング開始
            startRendering();
        }
        override protected function onRenderTick(event:Event=null):void
        {
            // Y軸回転を少しだけ。
            model.yaw(11.11);
            // SuperクラスのonRenderTickを実行
            super.onRenderTick(event);
        }
    }
}