• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Drawing Shapes

Drawing shapes is really just drawing lines and adding a fill to them.

this.createEmptyMovieClip("line1",1);
with(line1) {
1.  lineStyle(5,0x0000FF);
2.  moveTo(400,100);
3.  beginFill(0x000000, 10);
    lineTo(300,300);
    lineTo(0,200);
4.  endFill();

    beginFill(0x0000FF, 40);
    moveTo(0,200);
    lineTo(300,0);
    lineTo(400,100);
    endFill();
}


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint