Change line style while drawing : LineStyle : Graphics Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » Graphics » LineStyle »

 

Change line style while drawing


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

        var canvas:Shape = new Shape(  );
        canvas.graphics.lineStyle(10x000000);
        canvas.graphics.lineTo(1000);
        canvas.graphics.lineStyle(50xFF0000);
        canvas.graphics.lineTo(100100);
        canvas.graphics.lineStyle(100x00FF00);
        canvas.graphics.lineTo(0100);
        canvas.graphics.lineStyle(150x0000FF);
        canvas.graphics.lineTo(00);
        addChild(canvas);

    }
  }
}

        



Leave a Comment / Note


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


Flash / Flex / ActionScript examples

 Navioo Graphics
» LineStyle