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

forked from: forked from: forked from: flash on 2013-4-16

Get Adobe Flash player
by geraldalewis 15 Apr 2013
    Embed
/**
 * 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);
            
        }
    }
}