# Smooth Zoom AS

**URL:** <https://forum.kirupa.com/t/smooth-zoom-as/246166>\
**Category:** flash\
**Created:** [December 7, 2007, 5:14pm UTC](https://forum.kirupa.com/t/smooth-zoom-as/246166 "2007-12-07T17:14:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![paulcybulski](https://avatars.discourse-cdn.com/v4/letter/p/90db22/32.png) [@paulcybulski](https://forum.kirupa.com/u/paulcybulski)\
**Post date:** [December 7, 2007, 5:14pm UTC](https://forum.kirupa.com/t/smooth-zoom-as/246166/1 "2007-12-07T17:14:46Z")

</div>

I have a 2 buttons and the mouse wheel enabled with zoom functionality. Generally this is the AS:

[AS]  
//zoom out  
mcName.\_xscale \*= 0.9;  
mcName.\_yscale \*= 0.9;  
//zoom in  
mcName.\_xscale \*= 1.1;  
mcName.\_yscale \*= 1.1;  
[/AS]

this works fine and dandy, but its not so smooth…is there a way to transition between the zoom sizes to make a fluid motion or maybe with an easing effect…any ideas? can this be done with actionscript or is this more of a shape tween thing?
