Drawing Lines in a Graphics Object : Graphics : Graphics Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » Graphics » Graphics »

 

Drawing Lines in a Graphics Object


 

package{
  import flash.display.Sprite;
  
  public class Main extends Sprite{
    public function Main(){
      var spr:Sprite = new Sprite();
      spr.graphics.lineStyle(10x0000ff);
      spr.graphics.moveTo(3030);
      spr.graphics.lineTo(10030);
    
      spr.graphics.lineTo(100100);
      spr.graphics.lineTo(30100);
      spr.graphics.lineTo(3030);
      spr.graphics.endFill();
    
      addChild(spr);

    }
  }
}

        



Leave a Comment / Note


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


Flash / Flex / ActionScript examples

 Navioo Graphics
» Graphics