# Drawing an arrow with a line - Trig?

**URL:** https://forum.kirupa.com/t/drawing-an-arrow-with-a-line-trig/179414
**Category:** flash
**Created:** [February 20, 2006, 12:44am UTC](https://forum.kirupa.com/t/drawing-an-arrow-with-a-line-trig/179414 "2006-02-20T00:44:44Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![matthewjumps](https://avatars.discourse-cdn.com/v4/letter/m/49beb7/32.png) [@matthewjumps](https://forum.kirupa.com/u/matthewjumps)
#### Post date: [February 20, 2006, 12:44am UTC](https://forum.kirupa.com/t/drawing-an-arrow-with-a-line-trig/179414/1 "2006-02-20T00:44:44Z")

</div>

Im using the drawing API to draw lines between movie clips, join the dots style, but is there a way to draw an arrow in the centre of the line indicating which direction its going?

I know it will involve trig i think and i guess it will be something like (1 find the mid point of the line (2 find the direction by checking the start point and end point (3 draw a triangle somehow that goes in the right spot.

Any suggestions? It shouldnt be too hard if u know your trig i bet…
