Draw lines : Graphics : Graphics Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » Graphics » Graphics »

 

Draw lines


 

package{
  import flash.display.*;
  
  public class Main extends Sprite{
    public function Main(){
        var rectangleA:Sprite = new Sprite();
        rectangleA.graphics.lineStyle(10x000000100false);
        rectangleA.graphics.lineTo(1000.4);
        rectangleA.graphics.lineTo(100.450);
        rectangleA.graphics.lineTo(050.4);
        rectangleA.graphics.lineTo(0.40)
        addChild(rectangleA);

    }
  }
}

        



Leave a Comment / Note


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


Flash / Flex / ActionScript examples

 Navioo Graphics
» Graphics