Depends on what movement you want to have? A linear movement from A to B? Then just move your ball with the move function.
If you want to move the ball where your mouse is, if you click, you need to get the correct vector first (with very simple math (B - A) and then normalize it, so you always move with the same speed.
Maybe you can specify more on what you need exactly?