Detect object stop with x & y

Folks,

I’m trying to detect when an object (a golf ball) in my game stops bouncing. I need to track it’s x and y position and tell when they both equal a set figure (the hole) a hitTest wasn’t working as it was detecting each ball bounce not when it stopped rolling. So when the x and y both equal a figure. I’m not sure of the two operators needed to get this figure, can anyone help.

if ((this._x = -106.5) && (this 47.55)){
_root.cheer.play();
}

This doesn’t seem to work.

Cheers all

Munki