So far ive got the programming for up and down, but i cannot get the left and right to work. ive tried making my own code and copying other codes and left and right still dont work. they work in the original code i copied them from, but cease to work on mine. if anyone can take a look at my coding and tell me why the left and right codes arent working, please help!!! up and down work fine.
ball._x = 400;
ball._x = 1;
onEnterFrame = function() {
ball._x = ball._x + 4;
if (Key.isDown(Key.UP)) {
ball._y -=10;
}
if (Key.isDown(Key.DOWN)) {
ball._y +=10;
}
if (Key.isDown(Key.RIGHT)) {
ball._x +=10;
}
if (Key.isDown(Key.LEFT)) {
ball._x -=10;
}
ball._x = 5;
}