Measure distance help

hey guys, i need help, im making a game where as you need to reach a house, the fastest time is the winner., i wanna be able to have a movieclip on the bottom, to show how much distance is left to reach home, in the code i have

if (house._yscale > 300) {
//trace(“I got home”);
this._parent.gotoAndStop(86);

}

}

now i based movement on x,y scale so when the house scale is greater then 300, it will gotoandstop at 86 which is the game finish screen

can any help me assp???

i really appreicate it

cheers