I would create 2 variables moveToX and moveToY and define them when the player clicks, for instance:
On player Left Click -> set moveToX = Mouse.X; set moveToY = Mouse.Y
Do intended action here
You can make a global variable or a local variable or instanced variable; whichever you prefer.
You'll have to set the variables back to 0, however otherwise you would have some weird things happening lol.
If you look at my post ProjectDL and play the game you will see that it works.
Moving to the targeted object should be simple, I think there is a move to action; I'm at work right now and cannot verify.