for some reason the ball wont stop at the bottem of the frame, and start the direct 1 loop agian...
-------------------------------------
onClipEvent (load) {
BallSpeed = 10;
Friction = .85;
Acc = 1.25;
radius = this._height/2;
direct = 1;
bottem = 400;
}
onClipEvent (enterFrame){
if (direct == 1) {
this._y -= BallSpeed;
BallSpeed *= Friction;
if (BallSpeed <= .5) {
direct = 2;
}
}
else if (direct == 2) {
this._y += BallSpeed;
BallSpeed *= Acc;
if (BallSpeed >= 10) {
BallSpeed = 10
}
else if (this._y + radius == bottem){
direct = 1;
BallSpeed = 20;}
}
}