Frame 1
startDrag ("/tracker", true);
ifFrameLoaded (2) {
gotoAndStop (2);
}
Symbol 3 MovieClip Frame 2
Set("/:x", _x);
Set("/:y", _y);
Symbol 4 MovieClip Frame 1
mouseX = getProperty("/tracker", _x);
mouseY = getProperty("/tracker", _y);
myX = getProperty("../", _x);
myY = getProperty("../", _y);
diffX = myX - mouseX;
diffY = myY - mouseY;
if ((diffX < "0") and ("0" < diffY)) {
setProperty("../", _rotation , "0");
setProperty("../", _xscale , diffX * "-1");
setProperty("../", _yscale , diffY * "1");
} else if (("0" < diffX) and ("0" < diffY)) {
setProperty("../", _rotation , "-90");
setProperty("../", _xscale , diffY * "1");
setProperty("../", _yscale , diffX * "1");
} else if (("0" < diffX) and (diffY < "0")) {
setProperty("../", _rotation , "180");
setProperty("../", _xscale , diffX * "1");
setProperty("../", _yscale , diffY * "-1");
} else if ((diffX < "0") and (diffY < "0")) {
setProperty("../", _rotation , "90");
setProperty("../", _xscale , diffY * "-1");
setProperty("../", _yscale , diffX * "-1");
}
Symbol 4 MovieClip Frame 2
mouseX = getProperty("/tracker", _x);
mouseY = getProperty("/tracker", _y);
myX = getProperty("../", _x);
myY = getProperty("../", _y);
diffX = myX - mouseX;
diffY = myY - mouseY;
if ((diffX < "0") and ("0" < diffY)) {
setProperty("../", _rotation , "0");
setProperty("../", _xscale , diffX * "-1");
setProperty("../", _yscale , diffY * "1");
} else if (("0" < diffX) and ("0" < diffY)) {
setProperty("../", _rotation , "-90");
setProperty("../", _xscale , diffY * "1");
setProperty("../", _yscale , diffX * "1");
} else if (("0" < diffX) and (diffY < "0")) {
setProperty("../", _rotation , "180");
setProperty("../", _xscale , diffX * "1");
setProperty("../", _yscale , diffY * "-1");
} else if ((diffX < "0") and (diffY < "0")) {
setProperty("../", _rotation , "90");
setProperty("../", _xscale , diffY * "-1");
setProperty("../", _yscale , diffX * "-1");
}