Combined Code
frame 1 {
model.frm = 1;
model.stop();
}
movieClip 181 {
}
instance model of movieClip 181 {
onClipEvent (mouseDown) {
down = 1;
down_x = _xmouse;
currentFrm = frm;
}
onClipEvent (mouseUp) {
down = 0;
drag = 0;
frm = currentFrm;
}
onClipEvent (mouseMove) {
if (down) {
drag = 1;
up_x = _xmouse;
distance = -1 * Math.floor((down_x - up_x) * 100 / 480);
turn = Math.floor(distance / 3.33);
currentFrm = frm + turn;
if (currentFrm < 1) {
currentFrm = Math.abs(90 + currentFrm);
}
if (currentFrm > 90) {
currentFrm = Math.abs(currentFrm - 90);
}
gotoAndStop(currentFrm);
}
}
}
movieClip 184 {
}