Detach item, send it to mouse co-ordinates

hey pplz, me and a freind are making a footy game and were setting a few things up, for the kicking the ball just dettaches from the player and it’s gonna fly through to the co-ordinates of the mouse but im not sure how i would put it, can someone help? thanx. heres the detach code

 _root.ball.attach = "";
_root.ball.wait = 6;
}

kieran