Posted By

sidneydekoning on 07/14/09


Tagged

triangle


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

Zettt


Drawing a downward Triangle


 / Published in: ActionScript 3
 

  1. var _arrow:Shape = new Shape();
  2. _arrow.graphics.lineStyle(1, Colors.WHITE);
  3. _arrow.graphics.beginFill(Colors.GREY, 1);
  4. _arrow.graphics.moveTo(0, 0);
  5. _arrow.graphics.lineTo(0, 0);
  6. _arrow.graphics.lineTo(10, 0);
  7. _arrow.graphics.lineTo(5, 7);
  8. _arrow.graphics.endFill();
  9. addChild(_arrow);

Report this snippet  

You need to login to post a comment.