# Triangle!

**URL:** <https://forum.kirupa.com/t/triangle/247407>\
**Category:** flash\
**Created:** [December 22, 2007, 3:27pm UTC](https://forum.kirupa.com/t/triangle/247407 "2007-12-22T15:27:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![onmosh](https://avatars.discourse-cdn.com/v4/letter/o/958977/32.png) [@onmosh](https://forum.kirupa.com/u/onmosh)\
**Post date:** [December 22, 2007, 3:27pm UTC](https://forum.kirupa.com/t/triangle/247407/1 "2007-12-22T15:27:34Z")

</div>

hey guys!

i have problem creating triangle but i have example for box

this one:

X & initX for the xmouse  
Y & initY for the ymouse

```auto

moveTo(initX, initY);
                lineTo(X, initY);
                lineTo(X, Y);
                lineTo(initX, Y);
                lineTo(initX, initY);

```

any idea guys?
