Stroked Circle : drawCircle « Graphics « Flash / Flex / ActionScript






Stroked Circle

 

package {

     import flash.display.Sprite;
     import flash.events.MouseEvent;
     
     [SWF(width=550, height=400)]
     
     public class Main extends Sprite {
          protected var _fillColor:uint = 0xE6E6E6;
          protected var _strokeColor:uint = 0x5C5C5C;
          
          public function Main() {
               var square:Sprite = new Sprite();
               graphics.lineStyle(1, _strokeColor);
               graphics.beginFill(_fillColor);
               graphics.drawCircle(25, 25, 25);
               graphics.endFill();
               addChild(square);
          }
     }
}

        








Related examples in the same category