Need bouncing script

Ok, I’m new to Flash gaming, but I need a code to have a ball ‘bounce’ off a wall then ‘bounce’ down the same wall. I tried _x = -_x ect and that didn’t work. Help!:rd: