Collision problems! Please help!

Well, I have another problem…

I am creating a small car game (Maze car game), and I have a SERIOUS problem, and I really need it answered quick PLEASE!

I am trying to get boundaries to work, but there are several problems:

My script for collision:


 if (!_root.whatever.hitTest(_x+x, _y+y, true)) {
 _x += x;
 _y += y;
 } else {
 speed *= 0;
 }

Problems:

It doesn’t work right.

It only collides with the MIDDLE of the car.

The car can cut through it at slow speeds.

Now, it doesn’t even work, the car drives right through it, and occasionally stops.

Also, how can I have the game change frames when you hit things, like hit a green area, and get teleported to the second maze?

I REALLY need this to be fixed VERY soon, so can anyone PLEASE help?