Please view
http://www.sergemedia.net/ds2/map/lissarazoomfix.html
This is similar to previous post…
Click on Lot 41. Notice that it snaps to a new position before tweening to center.
It is starting from map instance location (37.5, 449.2). I do not want it to start from there. I want it to start from whereever the mouse is clicking. So I may be looking for a code that identifies mouse location??
If you view this swf, click on lot 41 first. You will see the issue. Then click on lot 48, (off to the right) that will tween properly. Its just on the first lot clicked. Click on on lot 41 and 48 a few times, back and forth.
The swf doesn’t have a starting reference location so it just uses the map instance location.
_root.map_mc.map_gra.lot41_btn.onRelease = function(){
scalelot();
stopAllMCs();
hideAllslides();
_root.slide41_mc._visible=true
_root.range41._visible=true;
_root.map_mc.map_gra.lot41_btn.play();
_root.srchMC._visible=false;
_root.info_mc._visible=true;
_root.info_mc.gotoAndStop(41);
if (this.pressed) {
import mx.transitions.Tween;
import mx.transitions.easing.*;
var xmove41:Tween = new Tween(_root.map_mc, "_x", Regular.easeOut, _root.map_mc._x, (1250 - _root.map_mc.map_gra.lot41_btn._x), 2, true);
var Ymove41:Tween = new Tween(_root.map_mc, "_y", Regular.easeOut, _root.map_mc._y, (400 - _root.map_mc.map_gra.lot41_btn._y), 2, true);
var xscale41:Tween = new Tween(_root.map_mc, "_xscale", Regular.easeOut, _root.map_mc._xscale, _root.map_mc._xscale=100, 2, true);
var yscale41:Tween = new Tween(_root.map_mc, "_yscale", Regular.easeOut, _root.map_mc._yscale, _root.map_mc._yscale=100, 2, true);
} else {
var xmove41:Tween = new Tween(_root.map_mc, "_x", Regular.easeOut, _root.map_mc._x, (1250 - _root.map_mc.map_gra.lot41_btn._x), 2, true);
var Ymove41:Tween = new Tween(_root.map_mc, "_y", Regular.easeOut, _root.map_mc._y, (400 - _root.map_mc.map_gra.lot41_btn._y), 2, true);
var xscale41:Tween = new Tween(_root.map_mc, "_xscale", Regular.easeOut, _root.map_mc._xscale, _root.map_mc._xscale=100, 2, true);
var yscale41:Tween = new Tween(_root.map_mc, "_yscale", Regular.easeOut, _root.map_mc._yscale, _root.map_mc._yscale=100, 2, true);
}
};