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 2013-2-20

import org.papervision3d.core.animation.clip.AnimationClip3D;
Get Adobe Flash player
by ohisama 23 Feb 2013
    Embed
/**
 * Copyright ohisama ( http://wonderfl.net/user/ohisama )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/gLkw
 */

package 
{
    import flash.events.Event;
    import org.papervision3d.objects.parsers.DAE;
    import org.papervision3d.view.BasicView;
    public class Main extends BasicView
    {
        private var i : Number;
        public function Main()
        {
            var dae : DAE = new DAE(true, null, true);
            dae.load("http://yumekikaku.dip.jp/obj/astroBoy_walk_Maya.dae");
            scene.addChild(dae);
            dae.scale = 5;
            dae.y = -30;
            i = 0;
            startRendering();
        } 
        override protected function onRenderTick(event : Event = null) : void
        {
            i += 0.02; 
            camera.x = Math.sin(i) * 100;
            camera.z = Math.cos(i) * 100;
            super.onRenderTick(event);
        }
    }
}