Set Shape position : Graphics : Graphics Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » Graphics » Graphics »

 

Set Shape position


 
package{
  import flash.display.*;
  
  public class Main extends Sprite{
    public function Main(){
        var rectangleB:Shape = new Shape();
        rectangleB.graphics.lineStyle(10100, false, "none");
        rectangleB.graphics.lineTo(1000);
        rectangleB.graphics.lineTo(10050);
        rectangleB.graphics.lineTo(050);
        rectangleB.graphics.lineTo(00);
        rectangleB.y = 1;
        rectangleB.scaleX = 400;
        addChild(rectangleB);
    }
  }
}

        



Leave a Comment / Note


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


Flash / Flex / ActionScript examples

 Navioo Graphics
» Graphics