# Mouse Wheel ZOOM?

**URL:** <https://forum.kirupa.com/t/mouse-wheel-zoom/245229>\
**Category:** Uncategorized\
**Created:** [November 27, 2007, 5:52pm UTC](https://forum.kirupa.com/t/mouse-wheel-zoom/245229 "2007-11-27T17:52:39Z")\
**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:** [November 27, 2007, 5:52pm UTC](https://forum.kirupa.com/t/mouse-wheel-zoom/245229/1 "2007-11-27T17:52:39Z")

</div>

Hi I would like to apply a zoom feature where the user can scroll the mouse wheel to zoom in and out on a movieclip. I currently have zoom implemented as buttons. How would I go about implementing the wheel action?

button zoom code:

[AS]  
small.onPress = function(){  
ROOT.onEnterFrame = function(){  
zoom.\_xscale\*=0.9;  
zoom.\_yscale\*=0.9;  
checkBounds(0,0,0,0);  
}  
}

small.onRelease = function() {  
delete ROOT.onEnterFrame;  
}

small.onReleaseOutside = function() {  
delete ROOT.onEnterFrame;  
}

big.onPress = function(){  
ROOT.onEnterFrame = function(){  
zoom.\_xscale\*=1.1;  
zoom.\_yscale\*=1.1;  
checkBounds(0,0,0,0);  
}  
}

big.onRelease = function() {  
delete ROOT.onEnterFrame;  
}

big.onReleaseOutside = function() {  
delete ROOT.onEnterFrame;  
}  
[/AS]
