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

Huh? I can't see...

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

// forked from paq's あれ?見れないよ
package {
    import flash.display.Loader;
    import flash.display.Sprite;
    import flash.events.MouseEvent;
    import flash.net.navigateToURL;
    import flash.net.URLRequest;
    import flash.system.LoaderContext;
    
    public class FlashTest extends Sprite {
        public function FlashTest() {
            Loader(addChild(new Loader())).load(new URLRequest("http://wonderfl.net/img/event/invisibleman/character/en/bp_"+zeroPad(Math.random()*19+1>>0)+".png"), new LoaderContext(true));
            stage.addEventListener(MouseEvent.CLICK, function():void{navigateToURL(new URLRequest("http://wonderfl.net/event/invisibleman/"))});
            buttonMode = true;
        }
        
        private function zeroPad(num:int):String
        {
            if (num < 10) return "0" + num;
            return num.toString();
        }
    }
}