Can anyone tell me what's wrong?

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.:frowning:

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

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?