Scaling, Registration point where art thou?

Hiya,

I’ve a perlinmap stuck unto a bitmap which is in a movieclip. Basically its a pretty starscape its tiled (2x2) so i can zoom around on it without scaling and the edges all “meet” so it appears like I have a smooth scrolling infinite bitmap.

You can see it here http://stephenf.deviantart.com/#/d2izfj0

Theres some buttons on the top right that you can use to pan and scale.

Now my problem is that all scaling is tied into the (0,0) registration point thats the default for the clip. The result is that scaling/zooming results in distorted zoom that angles off towards the origin.

How can I implement a centred scaling that zooms in and out of the center of the current displayed portion of the bitmap?:puzzled: