Arkanoid - x-value of an object?

Hey there, I’m brand spankin new to this board. I dig the tutorials here.

So I’m making an arkanoid type game. I’m wondering if anybody knows how to find out where on the paddle (rectangle at bottom of window that you move to hit ball back up toward the blocks) the ball hits.

It seems to be pretty standard that the ball should reflect off of the paddle according to how far left or right of center it collides with it. So, I need to figure out how to grab the x-value of the paddle that the ball comes in contact with.

Any help would be great. Thanks.

Cool, that works, thanks.

Now, if you care to help more, I have two more issues. I have all the movement acting as it should with two exceptions.

With the speed of the ball:
[AS]onClipEvent(enterFrame) {
this._x += speedx;
this._y += speedy;[/AS]

right now I have both speeds set to 10.
At that speed, the ball goes a little ways into the colliding object before it heads the other way. The base code I’m using an if statement within onEnterFrame to reflect the ball:
[AS]if (_root.ball, hitTest(_root.boardtop)) {
speedy = speedy * -1;
with the other conditions needed for other tests of course.
I noticed at a speed of 1 or 2, the ball reflects from the edge, instead of crossing into the other object.

—Next issue—
When the ball hits 2 blocks simultaneously, the ball doesn’t reflect, it keeps going the same direction. I’m using a for loop to test if the ball is colliding with any block that’s being dynamically drawn onto the stage.

Thanks again for any help.