# Xscale & yscale question

**URL:** <https://forum.kirupa.com/t/xscale-yscale-question/213030>\
**Category:** Uncategorized\
**Created:** [January 16, 2007, 2:01pm UTC](https://forum.kirupa.com/t/xscale-yscale-question/213030 "2007-01-16T14:01:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pdx05](https://avatars.discourse-cdn.com/v4/letter/p/f08c70/32.png) [@pdx05](https://forum.kirupa.com/u/pdx05)\
**Post date:** [January 16, 2007, 2:01pm UTC](https://forum.kirupa.com/t/xscale-yscale-question/213030/1 "2007-01-16T14:01:34Z")

</div>

Hey there, I’m quite new to Flash and Actionscript, as I’m sure my crappy code will show you 🙂

I’m trying to make a map with zooming and panning functions, I just started on the zooming. What I’ve understood is that I’ll need two nested movieclips, and that I’ll use the outermost to zoom - by scaling it.

I’ve tried to use some tweens to make the zooming look okay, and thats fine.

However, when I use the - button to zoom out, the movieclip resizes not to the original size, but to some other dimension - check out the .fla to see what I mean. I think this happens because I resize the movieclip on the stage, because if I dont resize the clip after drawing it on stage, it scales correctly when zooming out.

How can I make the clip zoom correctly no matter what I’ve made the dimensions of the clip on the stage?

Thanks 🙂
