Draw three shapes : Graphics : Graphics Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » Graphics » Graphics »

 

Draw three shapes


 

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

        var lineA:Shape = new Shape();
        var lineB:Shape = new Shape();
        var lineC:Shape = new Shape();
        
        addChild(lineA);
        addChild(lineB);
        addChild(lineC);
        
        lineA.x = 100;
        lineA.y = 100;
        lineA.graphics.lineStyle(2001, false, "none""round");
        lineA.graphics.lineTo(1000);
        
        lineB.x = 100;
        lineB.y = 150;
        lineB.graphics.lineStyle(2001, false, "none""square");
        lineB.graphics.lineTo(1000);
        
        lineC.x = 100;
        lineC.y = 200;
        lineC.graphics.lineStyle(2001, false, "none""none");
        lineC.graphics.lineTo(1000);

    }
  }
}

        



Leave a Comment / Note


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


Flash / Flex / ActionScript examples

 Navioo Graphics
» Graphics