# Control playspeed by mouse position

**URL:** <https://forum.kirupa.com/t/control-playspeed-by-mouse-position/267022>\
**Category:** flash\
**Created:** [July 27, 2008, 4:34pm UTC](https://forum.kirupa.com/t/control-playspeed-by-mouse-position/267022 "2008-07-27T16:34:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![TDN169](https://avatars.discourse-cdn.com/v4/letter/t/ecb155/32.png) [@TDN169](https://forum.kirupa.com/u/TDN169)\
**Post date:** [July 27, 2008, 4:34pm UTC](https://forum.kirupa.com/t/control-playspeed-by-mouse-position/267022/1 "2008-07-27T16:34:21Z")

</div>

Can anyone suggest some code which will use the mouse’s x-co-ordinate to determine playspeed- let’s say you have the mouse in the middle- for sake of argument, I have a movie 200px wide- at x=100- here speed=0. at x=0, speed=-1 so the timeline plays full speed backwards, and at x=200, speed=1 so the timeline plays full speed forward  
[FONT=Courier New]  
[FONT=Arial]The real problem is managing to change the timeline play speed.  
So… any advice?:trout:[/FONT][/FONT]
