# Triangle from mouse

**URL:** <https://forum.kirupa.com/t/triangle-from-mouse/192309>\
**Category:** Uncategorized\
**Created:** [June 27, 2006, 6:25pm UTC](https://forum.kirupa.com/t/triangle-from-mouse/192309 "2006-06-27T18:25:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mario\_hater](https://avatars.discourse-cdn.com/v4/letter/m/e0b2c6/32.png) [@mario\_hater](https://forum.kirupa.com/u/mario_hater)\
**Post date:** [June 27, 2006, 6:25pm UTC](https://forum.kirupa.com/t/triangle-from-mouse/192309/1 "2006-06-27T18:25:53Z")

</div>

i want to make a tiangle appear from the mouse like the first pic on this site

[IMG][http://www.actionscript.org/tutorials/advanced/Mouse\_Angle\_Detection\_II/index.shtml[IMG/]](http://www.actionscript.org/tutorials/advanced/Mouse_Angle_Detection_II/index.shtml%5BIMG/%5D)

this is the code im using :

onClipEvent(enterFrame){  
clear()  
lineStyle(1,0,100)  
MoveTo(this.\_x,this.\_y)  
lineTo(\_xmouse,\_ymouse)

lineStyle(1,0,100)  
MoveTo(\_xmouse,\_ymouse)  
lineTo(\_xmouse,200)

lineStyle(1,0,100)  
MoveTo(275,200)  
lineTo(\_xmouse,200)  
}

but i dont know why it isnt working? does anybody else ?
