Action Script for making interactive map

Somebody can you help me to guide me making interactive map for user.
I need action script for this problem.
1.How to making map movement when cursor moving on the border of the map.
2.How to make it right back to the point that i make, when cursor are out from the border of map.

Please… I need the script…
Thax before.
:jailbreak