# Please help with a pan and zoom file!

**URL:** https://forum.kirupa.com/t/please-help-with-a-pan-and-zoom-file/246730
**Category:** flash
**Created:** [December 13, 2007, 9:32pm UTC](https://forum.kirupa.com/t/please-help-with-a-pan-and-zoom-file/246730 "2007-12-13T21:32:44Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![celica](https://avatars.discourse-cdn.com/v4/letter/c/9fc29f/32.png) [@celica](https://forum.kirupa.com/u/celica)
#### Post date: [December 13, 2007, 9:32pm UTC](https://forum.kirupa.com/t/please-help-with-a-pan-and-zoom-file/246730/1 "2007-12-13T21:32:44Z")

</div>

Hopefully someone will be able to help me with this file. I found a cool flash file online that allows the view to pan and zoom with the mouse. For my own uses, I modified it somewhat, adding buttons that triggered pop up windows, changed out the graphic, and also the zooming increments.

However, I have not been able to figure out how to keep the panning feature constrained by the boundaries of my graphic, which is going to be an aerial map. I want to limit the boundaries to the dimensions of the actual map, so the viewer does not continue to pan beyond the graphic, if that makes any sense. I am uploading a revised copy of the fla, I swapped out the bitmap graphics with generic vector shapes making it look more generic. If anyone can figure this out, I would really really appreciate it!
