1 Reply Latest reply on Jul 20, 2011 12:51 PM by Amy Blankenship

    Resizing a circle

    chriswillis100

      Hey guys,

       

      How do you change the radius on a circle/resize the circle once it's been drawn,

       

      I've tried used height and width, and scaleX and scaleY and none of them work properly

       

      This is the code i used to create the circle:

       

       

      var circle:Shape = new Shape();

      var ui:UIComponent = new UIComponent();

       

       

      protected function windowedapplication1_creationCompleteHandler(event:FlexEvent):void

      {

       

       

      circle.graphics.lineStyle(5,0,1);

      circle.graphics.drawCircle(250,250, 20)

      ui.addChild(circle);

      addElement(ui);

      }

       

       

      Thanks

      Chris