are you throwing the object with physics ? If so then I think it would just be a case of
every tick text:set text object.Y
or are you trying to calculate the position with gravity and mass and velocity... ?
edit - altered capx so displaying height only while object is moving. (is physics sleeping/else)