graphicsの勉強2

by knowt
BackGround
♥0 | Line 17 | Modified 2010-09-01 17:50:49 | MIT License
play

ActionScript3 source code

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

package {
    import flash.display.Graphics;
    import flash.display.Shape;
    import flash.display.Stage;
    import flash.display.Sprite;
    [SWF( backgroundColor='0x000000')] // BackGround
    public class FlashTest extends Sprite {
        public function FlashTest() {
            // write as3 code here..
            var shape:Shape = new Shape();
            stage.addChild(shape);
            var g:Graphics = shape.graphics;
            
            g.lineStyle ( 1, 0x000000, 1.0);
            g.beginFill (0xFF0000,1.0);
            
            g.drawCircle (100,200,50);
        }
    }
}