# Set Movieclip Boundaries on zoom & pan

**URL:** https://forum.kirupa.com/t/set-movieclip-boundaries-on-zoom-pan/250397
**Category:** flash
**Created:** [January 29, 2008, 8:19am UTC](https://forum.kirupa.com/t/set-movieclip-boundaries-on-zoom-pan/250397 "2008-01-29T08:19:42Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Scooby2008](https://avatars.discourse-cdn.com/v4/letter/s/ea666f/32.png) [@Scooby2008](https://forum.kirupa.com/u/Scooby2008)
#### Post date: [January 29, 2008, 8:19am UTC](https://forum.kirupa.com/t/set-movieclip-boundaries-on-zoom-pan/250397/1 "2008-01-29T08:19:42Z")

</div>

This is my first post here at kirupa… I’m not too sure how this works here, but I have a problem trying to set some boundaries…

Here is what I have so far: [http://www.rickdu.net/examples/boundaries/](http://www.rickdu.net/examples/boundaries/)

It works fine until a zoom button is pushed… I’m looking for some help or ideas as to how I should go about getting this sucka to work…

What I’m trying to do is get the image to stop panning when the edge lines up with the stage edge, forcing the image to always be in view… You would never see the stage background if it were working properly…

Well I hope I get some responses because I’m out of ideas and really need this to work… Just let me know if any other information is needed…

Thanks a bunch peoples!!
