Do I put that on the car or tree?

Here is the total code for the car.

```
onClipEvent(load) {
speed = 0;
}
onClipEvent(enterFrame) {
if (Key.isDown(Key.UP)) {speed += 1;
moving=1}
if (Key.isDown(Key.DOWN)) {
speed -= 1;
}
if (speed>10) {
speed = 10;
}
if (speed<-10) {
speed = -10;
}
if (Key.isDown(Key.LEFT)) {
_rotation -= 1*(Math.abs(speed));
//Makes sure you can only turn if you're moving
}
if (Key.isDown(Key.RIGHT)) {
_rotation += 1*(Math.abs(speed));
}
speed *= .9;
x = Math.sin(_rotation*Math.PI/180)*speed;
y = Math.cos(_rotation*Math.PI/180)*speed*-1;
_x = (_x+x);
_y = (_y+y);
}
if (car.hitTest(_root.tree)){
speed=0;
}
```

When I tested, I got this error:

**Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 33: Statement must appear within on/onClipEvent handler

if (car.hitTest(_root.tree)){

Total ActionScript Errors: 1 Reported Errors: 1

Anyways, here is the .fla

And remember, I am new to this. please don’t make fun of my drawing.

http://venus.walagata.com/w/kwikemart614/carwontwork.fla