flash on 2009-10-18
♥0 |
Line 22 |
Modified 2009-10-18 05:40:04 |
MIT License
archived:2017-03-20 08:52:52
ActionScript3 source code
/**
* Copyright sinclairc5 ( http://wonderfl.net/user/sinclairc5 )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/7iij
*/
package
{
import flash.display.*;
import flash.geom.*;
import flash.filters.BlurFilter;
import flash.display.Graphics
public class FlashTest extends Sprite
{
public function FlashTest()
{
// write as3 code here..
var fillType:String = GradientType.LINEAR;
var colors:Array = [0xFF0000, 0x0000FF];
var alphas:Array = [1, 1];
var ratios:Array = [0x00, 0xFF];
var matr:Matrix = new Matrix();
matr.createGradientBox(20, 20, 0, 0, 0);
var spreadMethod:String = SpreadMethod.PAD;
this.graphics.beginGradientFill(fillType, colors, alphas, ratios, matr, spreadMethod);
this.graphics.drawRect(0,0,14,13);
}
}
}