Ball bouncing off paddle

Hi, could anyone help me with actionscript for a ball boucning off a paddle?

ive managed to get the ball bouncing off the paddle, but now i want to specify which direction the ball should travel depending on which side of the paddle it hits.

This is wat ive written so far: the actionscript for the paddle

onClipEvent(enterFrame) {

{
if (this.hitTest(_root.ball)) //if the movieclip ‘ball’ hits this movieclip
{

tellTarget(_root.ball) //tell the ball to reverse the X and Y speed, thus
//change directions
{speedX = -speedX;
speedY = -speedY;
}
}
}
}

PLease HELP ME!