Mega Code Archive

 
Categories / Flash ActionScript / Graphics
 

Drawing Curves

package{   import flash.display.*;      public class Main extends Sprite{     public function Main(){         var canvas:Shape = new Shape(  );         addChild(canvas);         canvas.graphics.lineStyle(4);  // Set the stroke to 4-point, black         canvas.graphics.curveTo(50, 100, 100, 0);  // Draw the curve     }   } }