Need help with making a game(how to collect points)

i need help. i made a wall movie clip with the instance name wall, and a ball with the instance name ball. and a c oin with the instance name coin. but when i type in the instance name wall for the wall movie clip, the score goes down by -2 and it hasn’t even hit the wall. could someone plz help, and when the ball goes over the coin, nothing happens. could someone plz give me the AS, i had to switch off my laptop with the flash 8 file on. its annoying. i got the AS for the char but it goes out the screen and u can’t find it afterwards. the coin won’t work either. it’s so annoying. i just switched my laptop on and i gonna find out the AS for the char. here it is.I am using Flash 8.0 and AS 2.0

[FONT=Verdana][COLOR=black]
[LIST=1]
[][FONT=Verdana]onClipEvent[/FONT][SIZE=3][FONT=Times New Roman] (load)[/FONT][/SIZE]
[
][FONT=Verdana]yspeed = 0;[/FONT]
[][FONT=Verdana]xspeed = 0;[/FONT]
[
][FONT=Verdana]wind = 0.00;[/FONT]
[][FONT=Verdana]power = 0.65;[/FONT]
[
][FONT=Verdana]gravity = 0.1;[/FONT]
[][FONT=Verdana]upconstant = 0.75;[/FONT]
[
][FONT=Verdana]friction = 0.99;[/FONT]
[][FONT=Verdana]}[/FONT]
[
][FONT=Verdana]onClipEvent (enterFrame) {[/FONT]
[][FONT=Verdana]if (Key.isDown(Key.LEFT)) {[/FONT]
[
][FONT=Verdana]xspeed = xspeed-power;[/FONT]
[][FONT=Verdana]}[/FONT]
[
][FONT=Verdana]if (Key.isDown(Key.RIGHT)) {[/FONT]
[][FONT=Verdana]xspeed = xspeed+power;[/FONT]
[
][FONT=Verdana]}[/FONT]
[][FONT=Verdana]if (Key.isDown(Key.UP)) {[/FONT]
[
][FONT=Verdana]yspeed = yspeed-powerupconstant;[/FONT]
[
][FONT=Verdana]}[/FONT]
[][FONT=Verdana]if (Key.isDown(Key.DOWN)) {[/FONT]
[
][FONT=Verdana]yspeed = yspeed+powerupconstant;[/FONT]
[
][FONT=Verdana]}[/FONT]
[][FONT=Verdana]xspeed = (xspeed+wind)friction;[/FONT]
[
][FONT=Verdana]yspeed = yspeed+gravity;[/FONT]
[
][FONT=Verdana]_y = _y+yspeed;[/FONT]
[][FONT=Verdana]_x = _x+xspeed;[/FONT]
[
][FONT=Verdana]_rotation = _rotation+xspeed;[/FONT]
[][FONT=Verdana]if (_root.wall.hitTest(_x, _y, true)) {[/FONT]
[
][FONT=Verdana]xspeed = 0;[/FONT]
[][FONT=Verdana]yspeed = 0;[/FONT]
[
][FONT=Verdana]_x = 120;[/FONT]
[][FONT=Verdana]_y = 120;[/FONT]
[
][FONT=Verdana]_root.score -=2;[/FONT]
[][FONT=Verdana]}[/FONT]
[
][FONT=Verdana]if (_root.coin.hitTest(this.hero_hit)) {[/FONT]
[][FONT=Verdana]_root.coin._x = Math.random()400+50;[/FONT]
[
][FONT=Verdana]_root.score ++;[/FONT]
[
][FONT=Verdana]}[/FONT]
[*][FONT=Verdana]} [/FONT][/LIST][/COLOR][/FONT]
[FONT=Verdana][COLOR=black]that is the exact actionscript i typed. could anyone tell me what is wrong. and if there is actionscript for the coin plz could someone tell me. or even the wall. plz help me, i am actually really new to AS2.0. i am using Flash 8.[/COLOR][/FONT][/font]