Drawing a downward Triangle


/ Published in: ActionScript 3
Save to your folder(s)



Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.