All pastes #594540 Raw Edit

Bouncy ball.

public text v1 · immutable
#594540 ·published 2007-06-28 23:55 UTC
rendered paste body
On the ball instance:

onClipEvent (enterFrame) {
	bounceBall ();
}

On the main timeline:

function bounceBall () {
	if(ball1._y < 0){
		ball1._y += 5;
	}
	if(ball1.y > 399){
		ball1._y -= 5;
	}
}