# Can anyone tell me what's wrong?

**URL:** https://forum.kirupa.com/t/can-anyone-tell-me-whats-wrong/13981
**Category:** flash
**Created:** [February 20, 2003, 4:03pm UTC](https://forum.kirupa.com/t/can-anyone-tell-me-whats-wrong/13981 "2003-02-20T16:03:07Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![georgia](https://avatars.discourse-cdn.com/v4/letter/g/77aa72/32.png) [@georgia](https://forum.kirupa.com/u/georgia)
#### Post date: [February 20, 2003, 4:03pm UTC](https://forum.kirupa.com/t/can-anyone-tell-me-whats-wrong/13981/1 "2003-02-20T16:03:07Z")

</div>

I’m trying to work this out myself (tutorial) but, I still need a little help.

I have clip1. On mouseDown, clip1 is supposed to move clip2 down. It does move, but the tutorial was for deceleration and that part doesn’t seem to work.☹

## Here is the action attached to clip1. Both clips are at \_y 20

## onClipEvent(load) { endPosy = 250; } onClipEvent(mouseDown) { currentPosy = \_root.clip2.\_y; diffPosy = endPosy - currentPosy; movey = diffPosy/2; \_root.clip2.\_y = \_root.clip2.\_y + movey; }

It does move clip2, just not with deceleration

thanks for any help

---

<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: [February 21, 2003, 12:49am UTC](https://forum.kirupa.com/t/can-anyone-tell-me-whats-wrong/13981/2 "2003-02-21T00:49:36Z")

</div>

You have to put the motion code in an enterFrame, otherwise it executes only once, when you press the mouse button.

Are you using F5 or FMX?
