onClipEvent (load) {
climbing = 1;
speed = 2;
fall = 0;
gravity = 1.5;
}
onClipEvent (enterFrame) {
if (climbing == 1) {
_y -= speed;
} else if (climbing == 0) {
fall += gravity;
_y += fall;
}
}
on (press) {
if (climbing == 1) {
climbing = 0;
}
}
Copy and paste that into a movieclip.
speed is the speed of which the movieclip climbs the ladder.
gravity is the amount of gravity for the thing to fall once clicked (1-2 is a reasonable value).
ActionScript pwns tweening!