Combined Code
movieClip 18 {
}
movieClip 19 {
}
movieClip 20 {
}
movieClip 21 {
}
movieClip 22 {
}
movieClip 23 {
}
movieClip 24 {
}
movieClip 25 {
}
movieClip 26 {
}
movieClip 27 {
}
movieClip 28 {
}
movieClip 29 {
}
movieClip 30 {
}
movieClip 31 {
}
movieClip 32 {
}
movieClip 33 {
}
movieClip 34 {
}
movieClip 35 {
}
button 36 {
on () {
}
}
button 37 {
on () {
}
}
button 38 {
on () {
}
}
button 39 {
on () {
}
}
button 40 {
on () {
}
}
button 41 {
on () {
}
}
movieClip 42 {
}
movieClip 45 {
}
movieClip 47 {
}
movieClip 49 {
}
movieClip 50 {
}
movieClip 51 {
}
button 52 {
on (press) {
startDrag(false, _parent.fullwidth - 22, 40, _parent.fullwidth - 22, 40 + _parent.scrollbaryrange);
_parent.Dragging = 'v';
}
on (release, releaseOutside, dragOut) {
stopDrag();
_parent.refreshDrag();
_parent.Dragging = '';
}
}
movieClip 43 {
}
movieClip 55 {
}
movieClip 57 {
}
movieClip 59 {
}
movieClip 60 {
}
movieClip 61 {
}
button 62 {
on (press) {
startDrag(false, 10, _parent.fullheight - 22, 10 + _parent.scrollbarxrange, _parent.fullheight - 22);
_parent.Dragging = 'h';
}
on (release, releaseOutside, dragOut) {
stopDrag();
_parent.refreshDrag();
_parent.Dragging = '';
}
}
movieClip 53 {
}
movieClip 66 {
// unknown tag 82 length 9716
}
button 68 {
on (press) {
viewport.startDrag(false, left - scrollxrange, top - scrollyrange, left, top);
Dragging = 'xy';
}
on (release, releaseOutside, dragOut) {
viewport.stopDrag();
Dragging = '';
}
}
movieClip 69 {
}
frame 1 {
et_total_pages.text = viewport._totalframes;
swfwidth = viewport._width;
swfheight = viewport._height;
Dragging = '';
Stage.scaleMode = 'noScale';
Stage.align = 'LT';
fullwidth = Stage.width;
fullheight = Stage.height;
contentwidth = fullwidth - 40;
contentheight = fullheight - 70;
vscrollbar._x = fullwidth - 22;
hscrollbar._y = fullheight - 22;
p1._x = fullwidth - 25 - 20 - p1._width / 2;
o1._x = fullwidth - 50 - 20 - o1._width / 2;
z1._x = fullwidth - 75 - 20 - z1._width / 2;
m1._x = fullwidth - 100 - 20 - m1._width / 2;
l1._x = fullwidth / 2 - 100 - l1._width / 2;
r1._x = fullwidth / 2 + 100 - r1._width / 2;
et._x = fullwidth / 2 - (et._width + etmiddle._width + et_total_pages._width) / 2;
etmiddle._x = fullwidth / 2 - (et._width + etmiddle._width + et_total_pages._width) / 2 + et._width;
et_total_pages._x = fullwidth / 2 - (et._width + etmiddle._width + et_total_pages._width) / 2 + et._width + etmiddle._width;
background.lineStyle(1, 0, 96);
background.moveTo(10, fullheight - 20);
background.lineTo(10, fullheight - 10);
background.lineTo(10 + fullwidth - 40, fullheight - 10);
background.lineTo(10 + fullwidth - 40, fullheight - 20);
background.lineTo(10, fullheight - 20);
background.moveTo(fullwidth - 20, 40);
background.lineTo(fullwidth - 20, fullheight - 30);
background.lineTo(fullwidth - 10, fullheight - 30);
background.lineTo(fullwidth - 10, 40);
background.lineTo(fullwidth - 20, 40);
background.lineStyle(1, 0);
background.startFill(0);
background.moveTo(9, 39);
background.lineTo(fullwidth - 30 + 1, 39);
background.lineTo(fullwidth - 30 + 1, fullheight - 29);
background.lineTo(9, fullheight - 29);
background.lineTo(9, 39);
background.endFill();
areabutton._xscale = contentwidth;
areabutton._yscale = contentheight;
cliparea._xscale = contentwidth;
cliparea._yscale = contentheight;
viewport.setMask(cliparea);
lastzoom = 1;
zoom = 1;
setPageNr = function () {
current_pagenumber = pagenr;
viewport.gotoAndStop(pagenr);
};
setNoScrollZoomLevel = function () {
xscale = contentwidth / swfwidth;
yscale = contentheight / swfheight;
if (xscale >= yscale) {
zoom = yscale;
setZoomLevel();
} else {
zoom = xscale;
setZoomLevel();
}
};
setOneDirScrollZoomLevel = function () {
xscale = contentwidth / swfwidth;
yscale = contentheight / swfheight;
if (yscale >= xscale) {
zoom = yscale;
setZoomLevel();
} else {
zoom = xscale;
setZoomLevel();
}
};
set11ZoomLevel = function () {
zoom = 1.0;
setZoomLevel();
};
swfpos2scrollbars = function () {
if (!scrollxrange) {
hscrollbar._x = 10;
} else {
hscrollbar._x = 10 + (left - viewport._x) * scrollbarxrange / scrollxrange;
}
if (!scrollyrange) {
vscrollbar._y = 40;
} else {
vscrollbar._y = 40 + (top - viewport._y) * scrollbaryrange / scrollyrange;
}
};
setZoomLevel = function () {
width = contentwidth;
height = contentheight;
left = 10;
top = 40;
if (swfwidth * zoom < contentwidth) {
width = swfwidth * zoom;
left = 10 + (contentwidth - width) / 2;
}
if (swfheight * zoom < contentheight) {
height = swfheight * zoom;
top = 40 + (contentheight - height) / 2;
}
scrollxrange = swfwidth * zoom - width;
scrollyrange = swfheight * zoom - height;
hscrollbar._xscale = contentwidth * width / swfwidth * zoom;
vscrollbar._yscale = contentheight * height / swfheight * zoom;
scrollbarxrange = contentwidth - hscrollbar._xscale;
scrollbaryrange = contentheight - vscrollbar._yscale;
if (scrollbarxrange < 0) {
scrollbarxrange = 0;
}
if (scrollbaryrange < 0) {
scrollbaryrange = 0;
}
viewport._xscale = zoom * 100;
viewport._yscale = zoom * 100;
focusx = contentwidth / 2 - (viewport._x - 10);
focusy = contentheight / 2 - (viewport._y - 40);
viewport._x = left - focusx * zoom / lastzoom + width / 2;
viewport._y = top - focusy * zoom / lastzoom + height / 2;
if (left >= viewport._x) {
if (viewport._x < left - scrollxrange) {
viewport._x = left - scrollxrange;
}
} else {
viewport._x = left;
}
if (top >= viewport._y) {
if (viewport._y < top - scrollyrange) {
viewport._y = top - scrollyrange;
}
} else {
viewport._y = top;
}
swfpos2scrollbars();
if (!scrollxrange) {
} else {
hscrollbar._visible = 1;
}
if (!scrollyrange) {
} else {
vscrollbar._visible = 1;
}
lastzoom = zoom;
vscrollbar.t1._y = vscrollbar.t2._y - 600.0 / vscrollbar._yscale;
vscrollbar.t3._y = vscrollbar.t2._y + 600.0 / vscrollbar._yscale;
hscrollbar.th1._x = hscrollbar.th2._x - 600.0 / hscrollbar._xscale;
hscrollbar.th3._x = hscrollbar.th2._x + 700.0 / hscrollbar._xscale;
vscrollbar.vshadow._x = vscrollbar.vbox._x + 500 / vscrollbar._xscale;
vscrollbar.vshadow._y = vscrollbar.vbox._y + 500 / vscrollbar._yscale;
hscrollbar.hshadow._x = hscrollbar.hbox._x + 500 / hscrollbar._xscale;
hscrollbar.hshadow._y = hscrollbar.hbox._y + 500 / hscrollbar._yscale;
};
pagenr = 1;
setPageNr();
if (zoomtype != '1') {
if (zoomtype != '2') {
setOneDirScrollZoomLevel();
} else {
setNoScrollZoomLevel();
}
} else {
set11ZoomLevel();
}
et.onChanged = function () {
if (viewport._totalframes >= current_pagenumber) {
if (0 < current_pagenumber) {
pagenr = int(current_pagenumber);
setPageNr();
}
}
};
l1.onRelease = function () {
if (1 < pagenr) {
pagenr -= 1;
setPageNr();
}
};
r1.onRelease = function () {
if (pagenr < viewport._totalframes) {
pagenr += 1;
setPageNr();
}
};
p1.onRelease = function () {
if (zoom < 4) {
zoom += 1;
setZoomLevel();
}
};
m1.onRelease = function () {
if (1 < zoom) {
zoom -= 1;
if (zoom < 1) {
zoom = 1;
}
setZoomLevel();
}
};
o1.onRelease = function () {
setNoScrollZoomLevel();
};
z1.onRelease = function () {
setOneDirScrollZoomLevel();
};
refreshDrag = function () {
if (Dragging != 'h') {
if (Dragging != 'v') {
if (Dragging == 'xy') {
swfpos2scrollbars();
}
} else {
viewport._y = top + (40 - vscrollbar._y) * scrollyrange / scrollbaryrange;
}
} else {
viewport._x = left + (10 - hscrollbar._x) * scrollxrange / scrollbarxrange;
}
};
dragrefresh = setInterval(refreshDrag, 20);
}