Prove your actionscript mastery!

I’ve got a draggable clip that is also “zoomable” (scaled by zoom in and zoom out buttons). The problem that I’m struggling with is when the clip’s center is dragged away from the center of the screen, it obviously no longer “zooms” directly on the point that is in the center of the screen. I understand why but I just cant get my mind around the code needed to account for this offset and adjust accordingly. So basically what I need is for the clip to “zoom” in or out around whatever point of the clip is in the center of the screen.

I mocked up a simple example of what I’m trying to do and attached the .FLA. If you think you can help, have a look at it and see what you can do. The orange dot inside the gray box should stay perfectly centered in the crosshairs when the box is resized using the zoom buttons. The code should work for any position of the orange dot/gray box.