forked from: forked from: forked from: flash on 2013-4-16
/**
* Copyright geraldalewis ( http://wonderfl.net/user/geraldalewis )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/lPAh
*/
// forked from geraldalewis's forked from: forked from: flash on 2013-4-16
// forked from geraldalewis's forked from: flash on 2013-4-16
// forked from geraldalewis's flash on 2013-4-16
package {
import flash.display.Sprite;
import flash.geom.Matrix;
import flash.text.TextField;
public class Gradient extends Sprite {
public function Gradient() {
var width:int = 100;
var height:int = 100;
var matrix:Matrix = new Matrix();
matrix.createGradientBox(width, height, 0, 0, 0);
graphics.beginGradientFill('radial', [0xFFFFFF, 0x0], [1, 1], [0x0, 0xFF], matrix, 'pad', 'rgb', 1);
graphics.drawRect(0, 0, width, height);
}
}
}