あれ?見れないよ
/**
* 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();
}
}
}