Can someone tell me what im doing wrong?

hello,

ok in flash mx 2004 i am trying to setup an action script on frame one that will manipulate an object forward and back but stopping at a certain pixel so it doesnt keep going off the screen.

This is the code that i have and it moves the object but doesnt stop the object at the certain pixel.

the screen resolution is 550x400

stop();
if (car._x < 458){
go.onPress = function(){
car._x+=10;
onEnterFrame = function(){
car._x+=10;
}
}
} else if(car._x == 458){
go.onPress = function(){
car._x+=0;
onEnterFrame = function(){
car._x+=0;
}
}
}

if you can please let me know what i am doing wrong.

thanks

Albert