# Experiment Succeded(LostinBeta)

**URL:** https://forum.kirupa.com/t/experiment-succeded-lostinbeta/16166
**Category:** flash
**Created:** [March 21, 2003, 7:22pm UTC](https://forum.kirupa.com/t/experiment-succeded-lostinbeta/16166 "2003-03-21T19:22:55Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![BullDog\_Flash](https://avatars.discourse-cdn.com/v4/letter/b/d07c76/32.png) [@BullDog\_Flash](https://forum.kirupa.com/u/BullDog_Flash)
#### Post date: [March 21, 2003, 7:22pm UTC](https://forum.kirupa.com/t/experiment-succeded-lostinbeta/16166/1 "2003-03-21T19:22:55Z")

</div>

Well i was folloing around with LostInBetea’s easing mouse code and this is what i have came up with.

```php
 onClipEvent (load) {
    _x = 0;
    speed = 3;
}
onClipEvent (enterFrame) {
    if (Key.isDown(Key.SPACE)) {
        endX = _root._xmouse;
        _x += (endX-_x)/speed;
    }
}

```

Guess what it does.

If you dont kno see it in action.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [March 21, 2003, 7:34pm UTC](https://forum.kirupa.com/t/experiment-succeded-lostinbeta/16166/2 "2003-03-21T19:34:50Z")

</div>

Hey BullDog: test out this code:

```php

onClipEvent(load){
        speed = 5;
}
onClipEvent (enterFrame) {
	if (Key.isDown(Key.SPACE)) {
		nRandom = Math.round(Math.random()*Stage.width);
	}
	ball._x += (nRandom-ball._x)/speed;
}

```

its a little different than yours…
