# Need mc to zoom to mouse x&y coords

**URL:** https://forum.kirupa.com/t/need-mc-to-zoom-to-mouse-x-y-coords/232332
**Category:** Uncategorized
**Created:** [July 12, 2007, 9:54pm UTC](https://forum.kirupa.com/t/need-mc-to-zoom-to-mouse-x-y-coords/232332 "2007-07-12T21:54:15Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![lariat1997](https://avatars.discourse-cdn.com/v4/letter/l/df705f/32.png) [@lariat1997](https://forum.kirupa.com/u/lariat1997)
#### Post date: [July 12, 2007, 9:54pm UTC](https://forum.kirupa.com/t/need-mc-to-zoom-to-mouse-x-y-coords/232332/1 "2007-07-12T21:54:15Z")

</div>

Hey all,

I have an mc that when I press a key it will either zoom in or out. Right now it zooms in/out, but it does with with the up-left corner as the point to zoom from.

Can anyone direct me on how to zoom in/out where ever the mouse is relative to the mc? If the mouse is in the middle, then it zooms from the middle and so on.

Thanks!
