How to set Pan & Zoom limits?

Hola!

I’m having trouble finding a way to set my interactive map to Zoom & Pan within the stage area…

If you zoom out the map starts to get smaller & smaller & smaller…and u can see the background. I need to set a limit for the Pan as well so that it won’t go past the map and on to the background.

stage is 810X710
map: 1152x648

muchas gracias!:bounce:

any1?? :*(

[FONT=Georgia][COLOR=plum]zoom out code[/COLOR][/FONT]

on (release) {
 _root.map._xscale -= 10;
 _root.map._yscale -= 10;
}