MIREN MI PERSONAJE (NOSEPORQUE) NO PISA EL SUELO EN FLASH.ES DECIR PISA PERO MAS ARRIBA

EL CODIGO DEL PERSONAJE ES

Código ActionScript :

onClipEvent (load) {
xvel = 6;
yvel = 1;
salto = -17;
limite = 10;
}
onClipEvent (enterFrame) {
if (_root.suelo.hitTest(_x, _y+_height/2, true)) {
while (_root.suelo.hitTest(_x, -2+_y+_height/2, true)) {
_y--;
}
yvel = 0;
if (Key.isDown(Key.UP)) {
yvel = salto;
_y += yvel;
}
} else if (_root.suelo.hitTest(_x, _y-_height/2, true)) {
yvel = yvel*-1;
_y += yvel;
while (_root.suelo.hitTest(_x, _y-_height/2, true)) {
_y++;
}
} else {
_y += yvel;
if (yvel<=limite) {
yvel++;
}
}
_x += (Key.isDown(Key.RIGHT)-Key.isDown(Key.LEFT))*xvel;
while (_root.suelo.hitTest(_x+_width/2, _y, true)) {
_x--;
} while (_root.suelo.hitTest(_x-_width/2, _y, true)) {
_x++;
}
}


espero que puedan ayudarme
SALUDOS