Recenter Movieclip Based On Mouse Click

Basically what I want to do is to make the center of the movie clip the place that is clicked and then move the movie clip accordingly.

I’ve got it somewhat working, except I need to figure out how to make the click spot the place that become the center point of the movie.

I attached the fla.

You’ll need to add your own image in the actionscript.

There is a control panel, click on the “magnifying glass” icon I created and then click anywhere on the image to see what I’m talking about.