# Help with Zoom and Drag variables

**URL:** <https://forum.kirupa.com/t/help-with-zoom-and-drag-variables/297861>\
**Category:** flash\
**Created:** [October 9, 2009, 10:52am UTC](https://forum.kirupa.com/t/help-with-zoom-and-drag-variables/297861 "2009-10-09T10:52:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gusstav](https://avatars.discourse-cdn.com/v4/letter/g/4491bb/32.png) [@gusstav](https://forum.kirupa.com/u/gusstav)\
**Post date:** [October 9, 2009, 10:52am UTC](https://forum.kirupa.com/t/help-with-zoom-and-drag-variables/297861/1 "2009-10-09T10:52:27Z")

</div>

Hi!

Im using a modified version of the page flip engine and have set a zoom button which works perfect. The code below is to set the drag limits when the zoom is at 25%.

How would i modify this so it can determine the level of zoom and apply the correct drag values??? I have 4 levels of zoom.

pages.onMouseDown = function () {  
// check if page is zoomed  
if (pages.\_xscale != 25) {  
Dragging = true;  
updateCursor();  
Mouse.hide();  
dragCursor.\_visible=true;  
startDrag(this,false, 950,510,590,322);

Any help would be massivley appreciated.
