# Question About Zooming

**URL:** <https://forum.kirupa.com/t/question-about-zooming/222749>\
**Category:** flash\
**Created:** [April 16, 2007, 6:23pm UTC](https://forum.kirupa.com/t/question-about-zooming/222749 "2007-04-16T18:23:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![saveth](https://avatars.discourse-cdn.com/v4/letter/s/7c8e57/32.png) [@saveth](https://forum.kirupa.com/u/saveth)\
**Post date:** [April 16, 2007, 6:23pm UTC](https://forum.kirupa.com/t/question-about-zooming/222749/1 "2007-04-16T18:23:52Z")

</div>

I have created a slider to control the width and height of a movieclip. However the numbers currently go the opposite way I would like them to go. currently if the slider is at the top that counts as 0 because of the y coordinate and the bottom counts as 200. what type of equation would I need to flip this so if the slider is at the top it’s 200 and at the bottom it is 0?

```auto
 
zoom_mc.slider_mc.onPress = function() {
 this.startDrag(false, 0, 0, 0, 192);
};
zoom_mc.slider_mc.onRelease = zoom_mc.slider_mc.onReleaseOutside=function () {
 this.stopDrag();
 container_mc._xscale = this._y;
 container_mc._yscale = this._y;
};

```

Thanks,  
Saveth
