# Can someone help me with this mouse drag effect

**URL:** <https://forum.kirupa.com/t/can-someone-help-me-with-this-mouse-drag-effect/32335>\
**Category:** flash\
**Created:** [October 5, 2003, 11:28am UTC](https://forum.kirupa.com/t/can-someone-help-me-with-this-mouse-drag-effect/32335 "2003-10-05T11:28:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![answer10](https://avatars.discourse-cdn.com/v4/letter/a/50afbb/32.png) [@answer10](https://forum.kirupa.com/u/answer10)\
**Post date:** [October 5, 2003, 11:28am UTC](https://forum.kirupa.com/t/can-someone-help-me-with-this-mouse-drag-effect/32335/1 "2003-10-05T11:28:10Z")

</div>

Lets say I have a movieclip with 20 frames. How can I script it so when i click and drag my mouse on the movieclip and to the left the movieclip will auto play from frames 1 to 10 then when I drag back and to the right the movieclip will play backward from 10 to 1 and then play from 11 to 20. This effect should also work vice versa if user first chooses to move to the right.
