Set Movieclip Boundaries on zoom & pan

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/

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!!