# AS3.0 problem with changing center of MC while zooming

**URL:** https://forum.kirupa.com/t/as3-0-problem-with-changing-center-of-mc-while-zooming/284204
**Category:** flash
**Created:** [March 16, 2009, 4:30pm UTC](https://forum.kirupa.com/t/as3-0-problem-with-changing-center-of-mc-while-zooming/284204 "2009-03-16T16:30:01Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Trupti](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/trupti/32/3418_2.png) [@Trupti](https://forum.kirupa.com/u/Trupti)
#### Post date: [March 16, 2009, 4:30pm UTC](https://forum.kirupa.com/t/as3-0-problem-with-changing-center-of-mc-while-zooming/284204/1 "2009-03-16T16:30:01Z")

</div>

Hi,

I have one main movieclip which hold multiple movieclips in it.  
The center of the main MC is set at the center of the stage.  
What I need is, if I click on any MC inside main MC, then that position (mouseX, mouseY) should shift to the center of the stage and the main MC should zoom from that point.

But I am not able to figure out how to do this?  
If I use tween class it move the center of the main MC to mouseX and Y position.  
I need is it should zoom from mouseX and Y position and also that point should shift to the center of the stage.

I tried using “MatrixTransformer.matchInternalPointWithExternal(matrix, internalPoint, i);”  
but it does not show smooth scrolling instead directly jumps to the required point.

I hope I’m clear with what I need!

Any solutions will be helpfull

Thanks in advance  
Trupti
