'fill in the following loop to get your ball to go back and forth across the screen 'make hspeed an integer property with a value of 5 'initially moves right until it hits the wall. When it touches the end of the canvas you need 'to set the movingRight flag to false and reverse the move movement. 'What variable reverses the direction of the ball? for i=0 to 5 graphics.ClearRect(0,0,Canvas1.width,Canvas1.height) graphics.drawOval(x,y, 50,50) graphics.fillOval(x,y, 50,50) if (movingRight = true) then if (BallX = canvas1.width - 25) then end elseif (movingRight = false) then if (BallX <= 25) then end end if BallX = BallX + hspeed next i