flash on 2010-6-24

by enecre
♥0 | Line 19 | Modified 2010-06-24 12:42:40 | MIT License
play

ActionScript3 source code

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

package {
    import flash.display.Graphics;
    import flash.display.Sprite;
    public class FlashTest extends Sprite {
        public function FlashTest() {
            // write as3 code here..
            var g:Graphics = this.graphics;
            //g.beginFill(0xaaaaff);
            //g.drawRect(0,0,200,200);
            //g.endFill();
            circle(200,200);
            circle(400,200);
            circle(200,400);
            circle(400,400);
        }
        private function circle(x:Number,y:Number):void{
            var g:Graphics = this.graphics;
            g.beginFill(0xaaaaff,0.25);
            g.drawCircle(x,y,200);
            g.endFill();
        }

    }
}