forked from: forked from: Ripple01
6-ww.com/my_test/img/leafs.jpg";
/**
* Copyright hacker_y4fu5_wp ( http://wonderfl.net/user/hacker_y4fu5_wp )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/aOd6
*/
pakege{
Public Class Myclass{
import flash.display.*;
import flash.net.URLRequest;
var rect:Shape = new Shape();
rect.graphics.beginFill(0xFFFFFF);
rect.graphics.drawRect(0, 0, 100, 100);
rect.graphics.endFill();
addChild(rect);
var ldr:Loader = new Loader();
ldr.mask = rect;
var url:String = "http://6-ww.com/my_test/img/leafs.jpg";
var urlReq:URLRequest = new URLRequest(url);
ldr.load(urlReq);
addChild(ldr);
}
}
// private const IMAGE_URL:String = "http://www.chutaicho.com/image/leafs.jpg";