Drawing Curves in a Graphics Object : Curve : Graphics Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » Graphics » Curve »

 

Drawing Curves in a Graphics Object


 

package{
  import flash.display.Sprite;
  
  public class Main extends Sprite{
    public function Main(){

      var spr:Sprite = new Sprite();
      spr.graphics.beginFill(0x0000ff1.0);
      spr.graphics.lineStyle(10x0000ff);
      spr.graphics.moveTo(3030);
      spr.graphics.curveTo(1802025030);
      spr.graphics.endFill();
      addChild(spr);

    }
  }
}

        



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


Flash / Flex / ActionScript examples

 Navioo Graphics
» Curve