画像を読み込む1
Loaderごとステージに置く例
*
/**
* Copyright umhr ( http://wonderfl.net/user/umhr )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/iKW8
*/
/*
* Loaderごとステージに置く例
* */
package {
import flash.display.Loader;
import flash.display.Sprite;
import flash.net.URLRequest;
[SWF(backgroundColor="0xCCCCCC")]
public class Main extends Sprite {
public function Main() {
var loader:Loader = new Loader();
var uRLRequest:URLRequest = new URLRequest("http://assets.wonderfl.net/images/related_images/b/b1/b1a6/b1a642c6afafa6148d3be3e2732c5627a9e490bb");
loader.load(uRLRequest);
//Loaderごとステージに置く例
addChild(loader);
}
}
}