# Set limit on zoom variable

**URL:** https://forum.kirupa.com/t/set-limit-on-zoom-variable/109256
**Category:** Uncategorized
**Created:** [May 3, 2004, 8:51pm UTC](https://forum.kirupa.com/t/set-limit-on-zoom-variable/109256 "2004-05-03T20:51:56Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![darrengeraghty](https://avatars.discourse-cdn.com/v4/letter/d/f08c70/32.png) [@darrengeraghty](https://forum.kirupa.com/u/darrengeraghty)
#### Post date: [May 3, 2004, 8:51pm UTC](https://forum.kirupa.com/t/set-limit-on-zoom-variable/109256/1 "2004-05-03T20:51:56Z")

</div>

Whazzup;  
Im stuck on this and need an “Action Script Hero”  
to solve the prob…  
Ive got this zoomable map working pretty well  
but it keeps zooming out (ie. it dont stop!)  
so I need to set a variable that limits the zooming out of  
the map to a certain value like 200 and then pauses or  
stops the movie clip.This would need to be set on  
the rollover function see below.Does anybody know  
a easy way of doing this!

on (rollOver) {  
zoomMC.tzoomc=2;  
}  
on (rollOut, releaseOutside) {  
zoomMC.tzoomc=0;  
}

Im pulling my hair out ovr this!! Here is a link to the  
fla file…

[http://home.ripway.com/2004-3/80050/zoom\_map.zip](http://home.ripway.com/2004-3/80050/zoom_map.zip)

Any help appreciated!!
