Folks,
Got a question regarding a zoomable map I’m building. I’ve got the zoom function sorted, but I’d like to build something that zooms in on the current mouse position, rather than setting the map’s x & y to that of the mouse, that’s not quite right, attached is the code I’m using, anyone any ideas how I acheive this?
onMouseDown = function() {
curMouseX = _root._xmouse;
curMouseY = _root._ymouse;
map._xscale += 10;
map._yscale += 10;
map._x = curMouseX;
map._y = curMouseY;
}
Cheers