Frame 1
function tooltip(btname) {
if (tooltipsOK) {
if (btname == false) {
ttLayer.gotoAndStop("idle");
}
ttlayer.tt.gotoAndStop(btname);
ttLayer.gotoAndPlay("active");
}
}
Stage.showMenu = false;
system.useCodePage = true;
var tooltipsOK = 1;
ttLayer.tt.tt_face = gtt_face;
ttLayer.tt.tt_all = gtt_all;
ttLayer.tt.tt_panup = gtt_panup;
ttLayer.tt.tt_pandown = gtt_pandown;
ttLayer.tt.tt_panleft = gtt_panleft;
ttLayer.tt.tt_panright = gtt_panright;
ttLayer.tt.tt_zoomin = gtt_zoomin;
ttLayer.tt.tt_zoomout = gtt_zoomout;
Symbol 5 MovieClip Frame 1
if (_parent.initInfo != 0) {
_parent.init();
_parent.initInfo = 0;
}
if (_parent.panX || (_parent.panY)) {
_parent.sendPanCommand();
} else if (_parent.moveSlider) {
_parent.moveZoomSlider();
_parent.sendZoomCommand();
} else if (_parent.zoom) {
_parent.sendZoomCommand();
}
Symbol 10 Button
on (press) {
reset();
}
on (rollOver) {
_root.tooltip("reset");
}
on (rollOut) {
_root.tooltip(false);
}
Symbol 15 Button
on (press) {
_parent.setZoomDirection(1);
_parent.zoom = 1;
_parent.moveSlider = 1;
}
on (release, releaseOutside) {
_parent.moveSlider = 0;
_parent.zoom = 0;
}
on (rollOver) {
_root.tooltip("zoomin");
}
on (rollOut) {
_root.tooltip(false);
}
Symbol 17 MovieClip Frame 1
stop();
Symbol 17 MovieClip Frame 2
stop();
Symbol 22 Button
on (press) {
_parent.setZoomDirection(-1);
_parent.zoom = 1;
_parent.moveSlider = 1;
}
on (release, releaseOutside) {
_parent.moveSlider = 0;
_parent.zoom = 0;
}
on (rollOver) {
_root.tooltip("zoomout");
}
on (rollOut) {
_root.tooltip(false);
}
Symbol 23 MovieClip Frame 1
stop();
Symbol 23 MovieClip Frame 2
stop();
Symbol 29 Button
on (press) {
_parent.setPanDirection(1);
_parent.panY = 1;
}
on (release, releaseOutside) {
_parent.panY = 0;
}
on (rollOver) {
_root.tooltip("panup");
}
on (rollOut) {
_root.tooltip(false);
}
Symbol 30 MovieClip Frame 1
stop();
Symbol 34 Button
on (press) {
_parent.setPanDirection(1);
_parent.panX = 1;
}
on (release, releaseOutside) {
_parent.panX = 0;
}
on (rollOver) {
_root.tooltip("panleft");
}
on (rollOut) {
_root.tooltip(false);
}
Symbol 35 MovieClip Frame 1
stop();
Symbol 39 Button
on (press) {
_parent.setPanDirection(-1);
_parent.panX = 1;
}
on (release, releaseOutside) {
_parent.panX = 0;
}
on (rollOver) {
_root.tooltip("panright");
}
on (rollOut) {
_root.tooltip(false);
}
Symbol 40 MovieClip Frame 1
stop();
Symbol 44 Button
on (press) {
_parent.setPanDirection(-1);
_parent.panY = 1;
}
on (release, releaseOutside) {
_parent.panY = 0;
}
on (rollOver) {
_root.tooltip("pandown");
}
on (rollOut) {
_root.tooltip(false);
}
Symbol 45 MovieClip Frame 1
stop();
Symbol 50 Button
on (press) {
resetFaceZoom();
}
on (rollOver) {
_root.tooltip("face");
}
on (rollOut) {
_root.tooltip(false);
}
Symbol 60 MovieClip Frame 1
function init() {
parseInitInfo();
initSlider(savedZoom);
sendInitInfo();
bStates = "0,0,0,0";
}
function sendInitInfo() {
fscommand ("initinfo", initInfo);
}
function reset() {
initSlider(ZOOM_MIN);
fscommand ("reset");
}
function resetFaceZoom() {
initSlider(FACE_ZOOM);
fscommand ("zoomface");
}
function initSlider(zoomP) {
newPos = (zoomP - ZOOM_MIN) / (ZOOM_MAX - ZOOM_MIN);
slider._x = sliderTrack._x + (sliderTrack._width * newPos);
sendZoomCommand();
}
function parseInitInfo() {
var _local1 = initInfo.split(",");
if (_local1[0] != null) {
savedX = parseInt(_local1[0]);
}
if (_local1[1] != null) {
savedY = parseInt(_local1[1]);
}
if (_local1[2] != null) {
savedZoom = parseInt(_local1[2]);
}
}
function sendPanCommand() {
if (panX) {
fscommand ("panX", panDirection);
} else if (panY) {
fscommand ("panY", panDirection);
}
}
function sendZoomCommand() {
fscommand ("zoom", getScale());
}
function setPanDirection(dir) {
panDirection = dir;
}
function setZoomDirection(dir) {
zoomDirection = dir;
}
function getScale() {
var _local1 = (slider._x - sliderTrack._x) / sliderTrack._width;
if (_local1 < 0.01) {
_local1 = 0;
} else if (_local1 > 0.99) {
_local1 = 1;
}
return(_local1);
}
function moveZoomSlider() {
if ((zoomDirection > 0) && (Math.floor(slider._x) < getSliderLimit("right"))) {
slider._x = slider._x + zoomStep;
if (slider._x > getSliderLimit("right")) {
slider._x = getSliderLimit("right");
}
} else if ((zoomDirection < 0) && (Math.floor(slider._x) > getSliderLimit("left"))) {
slider._x = slider._x - zoomStep;
if (slider._x < getSliderLimit("left")) {
slider._x = getSliderLimit("left");
}
}
}
function enableZoomIn(act) {
if (act) {
zoomin.gotoAndStop("active");
} else {
zoomin.gotoAndStop("inactive");
moveSlider = 0;
}
}
function enableZoomOut(act) {
if (act) {
zoomout.gotoAndStop("active");
} else {
zoomout.gotoAndStop("inactive");
moveSlider = 0;
}
}
function enablePan(act) {
var _local1 = act;
enablePanLeft(_local1);
enablePanRight(_local1);
enablePanUp(_local1);
enablePanDown(_local1);
}
function enablePanLeft(act) {
if (act) {
panleft.star._visible = false;
} else {
panleft.star._visible = true;
}
}
function enablePanRight(act) {
if (act) {
panright.star._visible = false;
} else {
panright.star._visible = true;
}
}
function enablePanUp(act) {
if (act) {
panup.star._visible = false;
} else {
panup.star._visible = true;
}
}
function enablePanDown(act) {
if (act) {
pandown.star._visible = false;
} else {
pandown.star._visible = true;
}
}
function getSliderLimit(which) {
var _local1 = sliderTrack._x + sliderTrack._width;
if ((which == "left") || (which == -1)) {
_local1 = sliderTrack._x;
}
return(Math.floor(_local1));
}
function getZoomStep() {
return(sliderTrack._width / 20);
}
var ZOOM_MAX = 400;
var ZOOM_MIN = 100;
var FACE_ZOOM = 316;
var panDirection = 1;
var zoomDirection = 1;
var moveSlider = 0;
var prevScale;
var zoomStep = getZoomStep();
var savedZoom = 100;
var savedX = 0;
var savedY = 0;
var bStates;
var panX = 0;
var panY = 0;
var zoom = 0;
initInfo = 0;
var ct = 0;
Instance of Symbol 57 MovieClip "slider" in Symbol 60 MovieClip Frame 1
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
startDrag (this, false, _parent.getSliderLimit("left"), _parent.sliderTrack._y, _parent.getSliderLimit("right"), _parent.sliderTrack._y);
_parent.zoom = 1;
}
}
onClipEvent (mouseUp) {
stopDrag();
_parent.zoom = 0;
}
Symbol 76 MovieClip Frame 1
stop();
Symbol 76 MovieClip Frame 10
tti_face.autoSize = true;
tti_face.border = true;
tti_face.borderColor = 0;
tti_face.backgroundColor = 16777164 /* 0xFFFFCC */;
if ((tt_face == null) || (tt_face == "")) {
tti_face._visible = 0;
}
stop();
Symbol 76 MovieClip Frame 19
tti_all.autoSize = true;
tti_all.border = true;
tti_all.borderColor = 0;
tti_all.backgroundColor = 16777164 /* 0xFFFFCC */;
if ((tt_all == null) || (tt_all == "")) {
tti_all._visible = 0;
}
stop();
Symbol 76 MovieClip Frame 29
tti_panleft.autoSize = true;
tti_panleft.border = true;
tti_panleft.borderColor = 0;
tti_panleft.backgroundColor = 16777164 /* 0xFFFFCC */;
if ((tt_panleft == null) || (tt_panleft == "")) {
tti_panleft._visible = 0;
}
stop();
Symbol 76 MovieClip Frame 39
tti_panright.autoSize = true;
tti_panright.border = true;
tti_panright.borderColor = 0;
tti_panright.backgroundColor = 16777164 /* 0xFFFFCC */;
if ((tt_panright == null) || (tt_panright == "")) {
tti_panright._visible = 0;
}
stop();
Symbol 76 MovieClip Frame 49
tti_panup.autoSize = true;
tti_panup.border = true;
tti_panup.borderColor = 0;
tti_panup.backgroundColor = 16777164 /* 0xFFFFCC */;
if ((tt_panup == null) || (tt_panup == "")) {
tti_panup._visible = 0;
}
stop();
Symbol 76 MovieClip Frame 59
tti_pandown.autoSize = true;
tti_pandown.border = true;
tti_pandown.borderColor = 0;
tti_pandown.backgroundColor = 16777164 /* 0xFFFFCC */;
if ((tt_pandown == null) || (tt_pandown == "")) {
tti_pandown._visible = 0;
}
stop();
Symbol 76 MovieClip Frame 69
tti_zoomin.autoSize = true;
tti_zoomin.border = true;
tti_zoomin.borderColor = 0;
tti_zoomin.backgroundColor = 16777164 /* 0xFFFFCC */;
if ((tt_zoomin == null) || (tt_zoomin == "")) {
tti_zoomin._visible = 0;
}
stop();
Symbol 76 MovieClip Frame 79
tti_zoomout.autoSize = true;
tti_zoomout.border = true;
tti_zoomout.borderColor = 0;
tti_zoomout.backgroundColor = 16777164 /* 0xFFFFCC */;
if ((tt_zoomout == null) || (tt_zoomout == "")) {
tti_zoomout._visible = 0;
}
stop();
Symbol 77 MovieClip Frame 1
tt._visible = false;
stop();
Symbol 77 MovieClip Frame 18
tt._visible = true;
stop();