I'm trying to generate two random points and move the movie clip smoothly like a motion tween between them and i can't figure out what type of equation i would use.

ball._x = 0;

ball._y = 0;

var x2=Math.round(Math.random()*200)

var y2=Math.round(Math.random()*200)

trace(x2);

trace(y2);

this.onEnterFrame = function() {

if(ball._x<x2)

{ball._x+=x2/30}

if(ball._y<x2)

{ball._y+=y2/30}

}

that's what i have right now but it will not go directly to the x2,y2 it will go to diagonally between the two and untill one reaches its max before stopping and then will slide vertically and horizontally, i need an idea on how to make it take a straighter path? thanks for your support.