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

あれ?見れないよ

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

package {
    import flash.system.LoaderContext;
    import flash.net.URLRequest;
    import flash.display.Loader;
    import flash.display.Sprite;
    import flash.events.Event;
    
    public class FlashTest extends Sprite {
        public function FlashTest() {
            Wonderfl.disable_capture();
            var loader:Loader = new Loader();
            addChild(loader);
            loader.contentLoaderInfo.addEventListener(Event.COMPLETE, function():void {
                loader.width = 410;
                loader.height = 200;
                loader.x = 465 / 2 - 205;
                loader.y = 465 / 2 - 100;
            });
            loader.load(new URLRequest("http://wonderfl.net/img/event/invisibleman/character/ja/ranking_"+zeroPad(Math.random()*19>>0+1)+".png"), new LoaderContext(true));
        }
        
        private function zeroPad(num:int):String
        {
            if (num < 10) return "0" + num;
            return num.toString();
        }

    }
}