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

Ultimate Ramen forked from: colin challenge for amateurs

Draw a Tasty Ramen !
* 
* You can edit and modify every piece of this code.
* Load more pictures of GU (ingredients of ramen)
* from flickr or draw one by yourself.
* Make it look tasty.
*
/**
 * Copyright k3lab ( http://wonderfl.net/user/k3lab )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/vJGS
 */

// forked from checkmate's colin challenge for amateurs
/*
 * 
 * Draw a Tasty Ramen !
 * 
 * You can edit and modify every piece of this code.
 * Load more pictures of GU (ingredients of ramen)
 * from flickr or draw one by yourself.
 * Make it look tasty.
 *
 */
package 
{
    import flash.display.Sprite;
    import flash.events.Event;
    import org.papervision3d.materials.BitmapFileMaterial;
    import org.papervision3d.objects.parsers.Collada;
    import org.papervision3d.view.BasicView;
    import org.papervision3d.materials.utils.MaterialsList;
    [SWF(width="465", height="465", frameRate="50", backgroundColor="0x000000")]
    public class Main extends BasicView{
        private var collada:Collada;
        public function Main():void {
            super(0, 0, true, false);
            init();
        }
        private function init():void {
            var ramen:BitmapFileMaterial = new BitmapFileMaterial("http://www.k3lab.com/wonderfl/ramen/test.jpg");
            ramen.doubleSided = false;
            var plane:BitmapFileMaterial = new BitmapFileMaterial("http://www.k3lab.com/wonderfl/ramen/plane01completemap.jpg");
            plane.doubleSided = false;
            camera.y = 30000;
            camera.z = 10000;
            var materialsList:MaterialsList = new MaterialsList();
            materialsList.addMaterial( ramen, "baked_mymaterial" );
            materialsList.addMaterial( plane, "baked_02_-_Default" );
            collada = new Collada("http://www.k3lab.com/wonderfl/ramen/test2.dae", materialsList, .11);
            scene.addChild(collada);
            startRendering(); 	
        }
        override protected function onRenderTick(event:Event = null):void { 
            collada.yaw(1); 
            camera.y += ((2000 - mouseY*2) - camera.y) / 12
            camera.z+=((1600 - mouseY) - camera.z) / 22
            super.onRenderTick(event); 
        }
    }
}