Move Upwards 10 Pixels When Hit

Ive got an object called “heart” and I have another object called “k”. The heart follows the mouse and when the heart hits the k I want the k to move upwards by 10 pixels. Can anyone give me the AS on how to do this?

Thx & cheers :sen:


heart.onMouseMove = function(){
if(this.hitTest(k)){
k._y +=10;
}
}