# Flash actionscript3 Click and drag

**URL:** <https://forum.kirupa.com/t/flash-actionscript3-click-and-drag/634894>\
**Category:** flash\
**Created:** [July 6, 2016, 3:35pm UTC](https://forum.kirupa.com/t/flash-actionscript3-click-and-drag/634894 "2016-07-06T15:35:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rogaforyn](https://avatars.discourse-cdn.com/v4/letter/r/7c8e57/32.png) [@rogaforyn](https://forum.kirupa.com/u/rogaforyn)\
**Post date:** [July 6, 2016, 3:35pm UTC](https://forum.kirupa.com/t/flash-actionscript3-click-and-drag/634894/1 "2016-07-06T15:35:49Z")

</div>

I want to when i click and drag on a direction, a action is executed(and animation played).  
I found this [https://www.kirupa.com/developer/flashcs3/detecting\_direction\_mouse\_movement.htm](https://www.kirupa.com/developer/flashcs3/detecting_direction_mouse_movement.htm)  
But it doesn’t is activated on click.
