I have this script for scrolling a map, i whould like to now how can i add to this script the possibility of zooming when i click in any part of the map
If someone could help, thank´s in advanced :glasses:
scroll_width = mapMC._width - 550; // 550 is default width, change to your movie's
scroll_height = mapMC._height - 225; // same thing 400 is default height
mapMC.onEnterFrame = function() {
scroll_percentageX = _xmouse/550;
// again default width.
scroll_percentageY = _ymouse/225;
// again default height
mapMC._x = 0-scroll_percentageX*scroll_width;
mapMC._y = 0-scroll_percentageY*scroll_height;
};