Flash 5 i Flash 8-problem

Siema, moj problem jest nastepujacy-robilem ten kurs http://www.digit.pl/artykuly/21238_3/Tworzenie.gier.w.Macromedia.Flash.5.html pod Flasha 5 i wszystko ladnie dzialalo… Prolbem pojawil sie, gdy chcialem wykonac ta gre we Flashu 8… Wszystko ladnie i pieknie, ale skrypt nie dziala… Moglby ktos go zmienic tak, zeby dzialalo? Zalezy mi na czasie, z gory dziekuje;]

A tu skrypt:

onClipEvent(enterFrame) {

velocityDown += .1;



if (Key.isDown(Key.UP)){

 velocityDown -= .5;

 gotoAndStop(2);


} else if (Key.isDown(Key.RIGHT)){

 velocitySide += .1;

 gotoAndStop(3);


} else if (Key.isDown(Key.LEFT)){

 velocitySide -= .1;

 gotoAndStop(4);


} else {

 gotoAndStop(1);

}




_y += velocityDown;

_x += velocitySide;



hit = false;


hit = hit or _root.ground.hitTest(_x+_width/2,_y+_height/2,true);

hit = hit or _root.ground.hitTest(_x-_width/2,_y+_height/2,true);

hit = hit or _root.ground.hitTest(_x+_width/2,_y-_height/2,true);

hit = hit or _root.ground.hitTest(_x-_width/2,_y-_height/2,true);


land = false;


land = land or _root.pad.hitTest(_x+_width/2,_y+_height/2,true);

land = land or _root.pad.hitTest(_x-_width/2,_y+_height/2,true);



if (land) {

 _root.gotoAndStop(2);

} else if (hit) {

 _root.gotoAndStop(3);

}

}