Sorry, I should have been clearer. The script is not for applying to a button but for placing on a timeline. Actually it is not for a button, but for a movieclip instance "mcMap".
By the way you said "expert mode" - do you mean you are using Flash 6? If so this won't work as I used AS2 syntax.
Here are the steps for Flash 6, this time with a "reset" button plus configurable zoom factor:
1. Create a movieclip with your map graphic in it.
2. Open the movieclip and move your map inside to (0, 0)
3. Place the movieclip on stage and name it "mcMap"
4. Create a "reset" button but make it as a simple 1 frame movieclip for now
5. Place the reset movieclip on stage and name it "mcBtn"
6. Create a new layer and name it "Actions"
7. In the Actions layer place the following script:
[tt]//
var initX = mcMap._x;
var initY = mcMap._y;
var factor = 4;
stop();
//
mcMap.onPress = function() {
var x = this._xmouse;
var y = this._ymouse;
this._x = this._x-x*factor+this._width/2;
this._y = this._y-y*factor+this._height/2;
this._xscale = factor*100;
this._yscale = factor*100;
};
//
mcBtn.onPress = function() {
mcMap._x = initX;
mcMap._y = initY;
mcMap._xscale = 100;
mcMap._yscale = 100;
};
//[/tt]
Remember, this is not to be applied to movieclips but to the frame. Make sure your Actions panel says "Actions - Frame".
I set the zoom factor to 4, meaning 4^2 = 16 x zoom. You can set it to any number - even to a number less than 1 or a negative number!
If you're using Flash 5 this won't work and you have to use button symbols - let me know if you are.
Kenneth Kawamoto