# Speed of an object by user input in Flash 8

**URL:** https://forum.kirupa.com/t/speed-of-an-object-by-user-input-in-flash-8/185445
**Category:** flash
**Created:** [April 13, 2006, 12:50pm UTC](https://forum.kirupa.com/t/speed-of-an-object-by-user-input-in-flash-8/185445 "2006-04-13T12:50:21Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![bachchun](https://avatars.discourse-cdn.com/v4/letter/b/e56c9b/32.png) [@bachchun](https://forum.kirupa.com/u/bachchun)
#### Post date: [April 13, 2006, 12:50pm UTC](https://forum.kirupa.com/t/speed-of-an-object-by-user-input-in-flash-8/185445/1 "2006-04-13T12:50:21Z")

</div>

How can I change the speed of a vertically moving ball based on user input values? Also, how can I make it stop when it touches another ball or is at a certain distance from its start?
