Drag and zoom function in interactive map

Dear Kirupa Members,

I had design a map that can be drag and zoom, but how do I control the drag function when I zoom in the map . I would not like the map been drag too far away until it see the untidy map at the corner. fla file had attached pls take a look. Thanks !

p/s: pls open the main_map.fla (main control interface) to start the interactive map. The rest of the swf is all diffrent map in movie clip.

pls download the attachment file here…

http://www.brandyoudesign.com/map.zip

THanks !

Regards,
Clement


clement