flash on 2010-10-27

by rfkrocktk
♥0 | Line 12 | Modified 2010-10-27 13:18:51 | MIT License
play

ActionScript3 source code

/**
 * Copyright rfkrocktk ( http://wonderfl.net/user/rfkrocktk )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/j3ZZ
 */

package {
    import flash.geom.Matrix;
    import flash.display.Sprite;
    public class FlashTest extends Sprite {
        public function FlashTest() {
            // write as3 code here..
            var matrix:Matrix = new Matrix();
            matrix.createGradientBox(200, 10, 0, 0, 0);
            
            this.graphics.beginGradientFill("linear", [0x009900, 0xFFA200, 0xFF1900], [1, 1, 1], [0, 150, 255], matrix);
            this.graphics.drawRect(0, 0, 200, 10);
        }
    }
}