# Flash Map City Limits

**URL:** https://forum.kirupa.com/t/flash-map-city-limits/50716
**Category:** flash
**Created:** [May 5, 2004, 6:40pm UTC](https://forum.kirupa.com/t/flash-map-city-limits/50716 "2004-05-05T18:40:01Z")
**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 5, 2004, 6:40pm UTC](https://forum.kirupa.com/t/flash-map-city-limits/50716/1 "2004-05-05T18:40:01Z")

</div>

Hiya Flashers;  
This is a tricky q so itll take a sharp mind to solve…  
I have a zooming map that uses buttons to navigate the clip  
however I wanna set a variable on the buttons so it doesnt  
move outside the designated area on the map… :-/  
I tried this code b-low but it passes the variable if the  
mouse is held down…

```auto

on(press) {
	if (zoomMC.tzoom <= 140){
	zoomMC.tzoomc=0;
	}
	else{
	zoomMC.tzoomc=-2;
	}
	
}

on (release, releaseOutside) {
	_level0.host.zoomMC.tzoomc=0;
}

```

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

Theres a link to the fla, I know some AS guru should be  
able to come up with a solution, myself and ‘Lunatic’  
came close 2 cracking, but no cigar!!!

Any help mucho appreciated… :thumb:
