code in frame 1 layer 1

//ballOOP
//demonstrates turning ballMove into an Object-oriented program

ball.dx = 5;
ball.dy = 5;

ball.onEnterFrame = function(){
  ball.move();
  ball.checkBoundaries();
} // end enterFrame

ball.move = function(){
  ball._x += ball.dx;
  ball._y += ball.dy;
} // end move

ball.checkBoundaries = function(){
  //do nothing for now
} // end