Frame 2
function _showHelp() {
_root.guiHelp._visible = true;
}
function _scrollLeft() {
if (_root.slide._x < (Stage.width / 2)) {
_root.slide._x = _root.slide._x + _SCROLL_SPEED;
}
}
function _scrollTop() {
if (_root.slide._y < (Stage.height / 2)) {
_root.slide._y = _root.slide._y + _SCROLL_SPEED;
}
}
function _scrollRight() {
if ((Stage.width / 2) < (_root.slide._x + _root.slide._width)) {
_root.slide._x = _root.slide._x - _SCROLL_SPEED;
}
}
function _scrollBottom() {
if ((Stage.height / 2) < (_root.slide._y + _root.slide._height)) {
_root.slide._y = _root.slide._y - _SCROLL_SPEED;
}
}
function _scrollLeftTop() {
if (_root.slide._x < (Stage.width / 2)) {
_root.slide._x = _root.slide._x + _SCROLL_SPEED;
}
if (_root.slide._y < (Stage.height / 2)) {
_root.slide._y = _root.slide._y + _SCROLL_SPEED;
}
}
function _scrollRightTop() {
if ((Stage.width / 2) < (_root.slide._x + _root.slide._width)) {
_root.slide._x = _root.slide._x - _SCROLL_SPEED;
}
if (_root.slide._y < (Stage.height / 2)) {
_root.slide._y = _root.slide._y + _SCROLL_SPEED;
}
}
function _scrollRightBottom() {
if ((Stage.width / 2) < (_root.slide._x + _root.slide._width)) {
_root.slide._x = _root.slide._x - _SCROLL_SPEED;
}
if ((Stage.height / 2) < (_root.slide._y + _root.slide._height)) {
_root.slide._y = _root.slide._y - _SCROLL_SPEED;
}
}
function _scrollLeftBottom() {
if (_root.slide._x < (Stage.width / 2)) {
_root.slide._x = _root.slide._x + _SCROLL_SPEED;
}
if ((Stage.height / 2) < (_root.slide._y + _root.slide._height)) {
_root.slide._y = _root.slide._y - _SCROLL_SPEED;
}
}
function _showScrollAll() {
_root.scroll_left._visible = (_root.scroll_top._visible = (_root.scroll_right._visible = (_root.scroll_bottom._visible = true)));
_root.scroll_leftTop._visible = (_root.scroll_rightTop._visible = (_root.scroll_rightBottom._visible = (_root.scroll_leftBottom._visible = true)));
}
function _hideScrollAll() {
_root.scroll_left._visible = (_root.scroll_top._visible = (_root.scroll_right._visible = (_root.scroll_bottom._visible = false)));
_root.scroll_leftTop._visible = (_root.scroll_rightTop._visible = (_root.scroll_rightBottom._visible = (_root.scroll_leftBottom._visible = false)));
}
var slide_max_width = 1;
var slide_max_height = 1;
var isInitialized = 0;
var isFullScale = 0;
var isScroll = 0;
var isScrolling = 0;
var _GUI_SCALE = 150;
var _SCROLL_SPEED = 8;
var _MENU_ITEM_NAME_1 = "How to use...";
var _APP_NAME = "SlideShow Flash";
var _APP_AUTHOR = "Developed by aonan.";
var _APP_COPYRIGHT = "Copyright(C)2012 aonan all rights reserved.";
var _APP_MAJOR_VER = 1;
var _APP_MINOR_VER = 2;
var _APP_REVISION_VER = 1;
var _APP_VERSION = ((((_APP_MAJOR_VER + ".") + _APP_MINOR_VER) + ".") + _APP_REVISION_VER);
var menu_cm = new ContextMenu();
menu_cm.builtInItems.forward_back = false;
menu_cm.builtInItems.loop = false;
menu_cm.builtInItems.play = false;
menu_cm.builtInItems.print = false;
menu_cm.builtInItems.quality = true;
menu_cm.builtInItems.rewind = false;
menu_cm.builtInItems.zoom = false;
var menu_item_1 = new ContextMenuItem();
menu_item_1.caption = _MENU_ITEM_NAME_1;
menu_item_1.enabled = true;
menu_item_1.separatorBefore = false;
menu_item_1.visible = true;
menu_item_1.onSelect = function () {
_showHelp();
};
var menu_item_2 = new ContextMenuItem();
menu_item_2.caption = (_APP_NAME + " ver") + _APP_VERSION;
menu_item_2.enabled = false;
menu_item_2.separatorBefore = true;
menu_item_2.visible = true;
menu_item_2.onSelect = function () {
};
var menu_item_3 = new ContextMenuItem();
menu_item_3.caption = _APP_AUTHOR;
menu_item_3.enabled = false;
menu_item_3.separatorBefore = false;
menu_item_3.visible = true;
menu_item_3.onSelect = function () {
};
var menu_item_4 = new ContextMenuItem();
menu_item_4.caption = _APP_COPYRIGHT;
menu_item_4.enabled = false;
menu_item_4.separatorBefore = false;
menu_item_4.visible = true;
menu_item_4.onSelect = function () {
};
menu_cm.customItems = [menu_item_1, menu_item_2, menu_item_3, menu_item_4];
_root.menu = menu_cm;
Instance of Symbol 19960 MovieClip [slide] "slide" in Frame 3
onClipEvent (enterFrame) {
if (_root.isScrolling == 1) {
_root._scrollLeft();
} else if (_root.isScrolling == 2) {
_root._scrollTop();
} else if (_root.isScrolling == 3) {
_root._scrollRight();
} else if (_root.isScrolling == 4) {
_root._scrollBottom();
} else if (_root.isScrolling == 5) {
_root._scrollLeftTop();
} else if (_root.isScrolling == 6) {
_root._scrollRightTop();
} else if (_root.isScrolling == 7) {
_root._scrollRightBottom();
} else if (_root.isScrolling == 8) {
_root._scrollLeftBottom();
}
_root.isScrolling;
}
Instance of Symbol 19942 MovieClip [scroll_left] "scroll_left" in Frame 3
onClipEvent (load) {
this._visible = false;
var _quotWidth = (Stage.width / ((this._width * (parseInt(_root._GUI_SCALE) / 100)) * 3));
var _quotHeight = (Stage.height / ((this._height * (parseInt(_root._GUI_SCALE) / 100)) * 3));
if (1 < _quotWidth) {
this._x = 0;
this._xscale = parseInt(_root._GUI_SCALE);
}
if (1 < _quotHeight) {
this._y = (Stage.height / 2) - ((this._height * (parseInt(_root._GUI_SCALE) / 100)) / 2);
this._yscale = parseInt(_root._GUI_SCALE);
}
if (_quotWidth < 1) {
this._x = 0;
this._xscale = parseInt(_root._GUI_SCALE) * _quotWidth;
}
if (_quotHeight < 1) {
this._y = (Stage.height / 2) - (((this._height * (parseInt(_root._GUI_SCALE) / 100)) * _quotHeight) / 2);
this._yscale = parseInt(_root._GUI_SCALE) * _quotHeight;
}
}
Instance of Symbol 19944 MovieClip [scroll_leftTop] "scroll_leftTop" in Frame 3
onClipEvent (load) {
this._visible = false;
var _quotWidth = (Stage.width / ((this._width * (parseInt(_root._GUI_SCALE) / 100)) * 2));
var _quotHeight = (Stage.height / ((this._height * (parseInt(_root._GUI_SCALE) / 100)) * 2));
if (1 < _quotWidth) {
this._x = 0;
this._xscale = parseInt(_root._GUI_SCALE);
}
if (1 < _quotHeight) {
this._y = 0;
this._yscale = parseInt(_root._GUI_SCALE);
}
if (_quotWidth < 1) {
this._x = 0;
this._xscale = parseInt(_root._GUI_SCALE) * _quotWidth;
}
if (_quotHeight < 1) {
this._y = 0;
this._yscale = parseInt(_root._GUI_SCALE) * _quotHeight;
}
}
Instance of Symbol 19946 MovieClip [scroll_top] "scroll_top" in Frame 3
onClipEvent (load) {
this._visible = false;
var _quotWidth = (Stage.width / ((this._width * (parseInt(_root._GUI_SCALE) / 100)) * 3));
var _quotHeight = (Stage.height / ((this._height * (parseInt(_root._GUI_SCALE) / 100)) * 3));
if (1 < _quotWidth) {
this._x = (Stage.width / 2) - ((this._width * (parseInt(_root._GUI_SCALE) / 100)) / 2);
this._xscale = parseInt(_root._GUI_SCALE);
}
if (1 < _quotHeight) {
this._y = 0;
this._yscale = parseInt(_root._GUI_SCALE);
}
if (_quotWidth < 1) {
this._x = (Stage.width / 2) - (((this._width * (parseInt(_root._GUI_SCALE) / 100)) * _quotWidth) / 2);
this._xscale = parseInt(_root._GUI_SCALE) * _quotWidth;
}
if (_quotHeight < 1) {
this._y = 0;
this._yscale = parseInt(_root._GUI_SCALE) * _quotHeight;
}
}
Instance of Symbol 19948 MovieClip [scroll_rightTop] "scroll_rightTop" in Frame 3
onClipEvent (load) {
this._visible = false;
var _quotWidth = (Stage.width / ((this._width * (parseInt(_root._GUI_SCALE) / 100)) * 2));
var _quotHeight = (Stage.height / ((this._height * (parseInt(_root._GUI_SCALE) / 100)) * 2));
if (1 < _quotWidth) {
this._x = Stage.width - ((this._width * (parseInt(_root._GUI_SCALE) / 100)) * 0.7);
this._xscale = parseInt(_root._GUI_SCALE);
}
if (1 < _quotHeight) {
this._y = 0;
this._yscale = parseInt(_root._GUI_SCALE);
}
if (_quotWidth < 1) {
this._x = Stage.width - ((this._width * ((parseInt(_root._GUI_SCALE) / 100) * _quotWidth)) * 0.7);
this._xscale = parseInt(_root._GUI_SCALE) * _quotWidth;
}
if (_quotHeight < 1) {
this._y = 0;
this._yscale = parseInt(_root._GUI_SCALE) * _quotHeight;
}
}
Instance of Symbol 19950 MovieClip [scroll_right] "scroll_right" in Frame 3
onClipEvent (load) {
this._visible = false;
var _quotWidth = (Stage.width / ((this._width * (parseInt(_root._GUI_SCALE) / 100)) * 3));
var _quotHeight = (Stage.height / ((this._height * (parseInt(_root._GUI_SCALE) / 100)) * 3));
if (1 < _quotWidth) {
this._x = Stage.width - (this._width * (parseInt(_root._GUI_SCALE) / 100));
this._xscale = parseInt(_root._GUI_SCALE);
}
if (1 < _quotHeight) {
this._y = (Stage.height / 2) - ((this._height * (parseInt(_root._GUI_SCALE) / 100)) / 2);
this._yscale = parseInt(_root._GUI_SCALE);
}
if (_quotWidth < 1) {
this._x = Stage.width - ((this._width * (parseInt(_root._GUI_SCALE) / 100)) * _quotWidth);
this._xscale = parseInt(_root._GUI_SCALE) * _quotWidth;
}
if (_quotHeight < 1) {
this._y = (Stage.height / 2) - (((this._height * (parseInt(_root._GUI_SCALE) / 100)) * _quotHeight) / 2);
this._yscale = parseInt(_root._GUI_SCALE) * _quotHeight;
}
}
Instance of Symbol 19952 MovieClip [scroll_rightBottom] "scroll_rightBottom" in Frame 3
onClipEvent (load) {
this._visible = false;
var _quotWidth = (Stage.width / ((this._width * (parseInt(_root._GUI_SCALE) / 100)) * 2));
var _quotHeight = (Stage.height / ((this._height * (parseInt(_root._GUI_SCALE) / 100)) * 2));
if (1 < _quotWidth) {
this._x = Stage.width - ((this._width * (parseInt(_root._GUI_SCALE) / 100)) * 0.7);
this._xscale = parseInt(_root._GUI_SCALE);
}
if (1 < _quotHeight) {
this._y = Stage.height - ((this._height * (parseInt(_root._GUI_SCALE) / 100)) * 0.7);
this._yscale = parseInt(_root._GUI_SCALE);
}
if (_quotWidth < 1) {
this._x = Stage.width - ((this._width * ((parseInt(_root._GUI_SCALE) / 100) * _quotWidth)) * 0.7);
this._xscale = parseInt(_root._GUI_SCALE) * _quotWidth;
}
if (_quotHeight < 1) {
this._y = Stage.height - ((this._height * ((parseInt(_root._GUI_SCALE) / 100) * _quotHeight)) * 0.7);
this._yscale = parseInt(_root._GUI_SCALE) * _quotHeight;
}
}
Instance of Symbol 19954 MovieClip [scroll_bottom] "scroll_bottom" in Frame 3
onClipEvent (load) {
this._visible = false;
var _quotWidth = (Stage.width / ((this._width * (parseInt(_root._GUI_SCALE) / 100)) * 3));
var _quotHeight = (Stage.height / ((this._height * (parseInt(_root._GUI_SCALE) / 100)) * 3));
if (1 < _quotWidth) {
this._x = (Stage.width / 2) - ((this._width * (parseInt(_root._GUI_SCALE) / 100)) / 2);
this._xscale = parseInt(_root._GUI_SCALE);
}
if (1 < _quotHeight) {
this._y = Stage.height - (this._height * (parseInt(_root._GUI_SCALE) / 100));
this._yscale = parseInt(_root._GUI_SCALE);
}
if (_quotWidth < 1) {
this._x = (Stage.width / 2) - (((this._width * (parseInt(_root._GUI_SCALE) / 100)) * _quotWidth) / 2);
this._xscale = parseInt(_root._GUI_SCALE) * _quotWidth;
}
if (_quotHeight < 1) {
this._y = Stage.height - ((this._height * (parseInt(_root._GUI_SCALE) / 100)) * _quotHeight);
this._yscale = parseInt(_root._GUI_SCALE) * _quotHeight;
}
}
Instance of Symbol 19956 MovieClip [scroll_leftBottom] "scroll_leftBottom" in Frame 3
onClipEvent (load) {
this._visible = false;
var _quotWidth = (Stage.width / ((this._width * (parseInt(_root._GUI_SCALE) / 100)) * 2));
var _quotHeight = (Stage.height / ((this._height * (parseInt(_root._GUI_SCALE) / 100)) * 2));
if (1 < _quotWidth) {
this._x = 0;
this._xscale = parseInt(_root._GUI_SCALE);
}
if (1 < _quotHeight) {
this._y = Stage.height - ((this._height * (parseInt(_root._GUI_SCALE) / 100)) * 0.7);
this._yscale = parseInt(_root._GUI_SCALE);
}
if (_quotWidth < 1) {
this._x = 0;
this._xscale = parseInt(_root._GUI_SCALE) * _quotWidth;
}
if (_quotHeight < 1) {
this._y = Stage.height - ((this._height * ((parseInt(_root._GUI_SCALE) / 100) * _quotHeight)) * 0.7);
this._yscale = parseInt(_root._GUI_SCALE) * _quotHeight;
}
}
Instance of Symbol 19936 MovieClip [guiControl] "guiControl" in Frame 3
onClipEvent (load) {
var _quotWidth = (Stage.width / (this._width * (parseInt(_root._GUI_SCALE) / 100)));
var _quotHeight = (Stage.width / (this._height * (parseInt(_root._GUI_SCALE) / 100)));
if (1 < _quotWidth) {
this._x = (Stage.width / 2) - ((this._width * (parseInt(_root._GUI_SCALE) / 100)) / 2);
this._xscale = parseInt(_root._GUI_SCALE);
}
if (1 < _quotHeight) {
this._y = 0;
this._yscale = parseInt(_root._GUI_SCALE);
}
if (_quotWidth < 1) {
this._x = (Stage.width / 2) - (((this._width * (parseInt(_root._GUI_SCALE) / 100)) * _quotWidth) / 2);
this._xscale = parseInt(_root._GUI_SCALE) * _quotWidth;
}
if (_quotHeight < 1) {
this._y = 0;
this._yscale = parseInt(_root._GUI_SCALE) * _quotHeight;
}
}
onClipEvent (mouseMove) {
updateAfterEvent();
}
Instance of Symbol 19958 MovieClip [guiHelp] "guiHelp" in Frame 3
onClipEvent (load) {
this._visible = false;
var _quotWidth = (Stage.width / (this._width * (parseInt(_root._GUI_SCALE) / 100)));
var _quotHeight = (Stage.height / (this._height * (parseInt(_root._GUI_SCALE) / 100)));
if (1 < _quotWidth) {
this._x = (Stage.width / 2) - ((this._width * (parseInt(_root._GUI_SCALE) / 100)) / 2);
this._xscale = parseInt(_root._GUI_SCALE);
}
if (1 < _quotHeight) {
this._y = (Stage.height / 2) - ((this._height * (parseInt(_root._GUI_SCALE) / 100)) / 2);
this._yscale = parseInt(_root._GUI_SCALE);
}
if (_quotWidth < 1) {
this._x = (Stage.width / 2) - (((this._width * (parseInt(_root._GUI_SCALE) / 100)) * _quotWidth) / 2);
this._xscale = parseInt(_root._GUI_SCALE) * _quotWidth;
}
if (_quotHeight < 1) {
this._y = (Stage.height / 2) - (((this._height * (parseInt(_root._GUI_SCALE) / 100)) * _quotHeight) / 2);
this._yscale = parseInt(_root._GUI_SCALE) * _quotHeight;
}
}
onClipEvent (mouseMove) {
updateAfterEvent();
}
Frame 3
stop();
Symbol 20000 Button
on (press) {
this.startDrag(false, 0, 0, Stage.width - this._width, Stage.height - this._height);
}
on (release, releaseOutside) {
this.stopDrag();
}
on () {
}
Symbol 20001 Button
on (release) {
this._Back();
}
on () {
}
Symbol 20002 Button
on (release) {
if (_root.isFullScale) {
if (!_root.isScroll) {
_root.isScroll = 1;
} else {
_root.isScroll = 0;
}
if (!_root.isScroll) {
_root._hideScrollAll();
} else {
_root._showScrollAll();
}
}
}
on () {
}
Symbol 20003 Button
on (press) {
this.startDrag(false, 0, 0, Stage.width - this._width, Stage.height - this._height);
}
on (release, releaseOutside) {
this.stopDrag();
}
on () {
}
Symbol 20004 Button
on (release) {
this._Forward();
}
on () {
}
Instance of Symbol 19940 MovieClip [btnReduce] "btnReduce" in Symbol 19936 MovieClip [guiControl] Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 19936 MovieClip [guiControl] Frame 1
function _Refresh() {
_calcPosition();
}
function _Back() {
_root.slide.prevFrame();
_calcPosition();
}
function _Forward() {
_root.slide.nextFrame();
_calcPosition();
}
function _calcPosition() {
this.lblPages = (parseInt(_root.slide._currentframe) + "/") + parseInt(_root.slide._totalframes);
}
_Refresh();
Symbol 20005 Button
on (release) {
_root.slide._width = _root.slide_max_width;
_root.slide._height = _root.slide_max_height;
_root.slide._x = (Stage.width / 2) - (_root.slide._width / 2);
_root.slide._y = (Stage.height / 2) - (_root.slide._height / 2);
_parent.btnExpand._visible = false;
_parent.btnReduce._visible = true;
if (_root.isScroll) {
_root._showScrollAll();
}
_root.isFullScale = 1;
}
on () {
}
Symbol 20006 Button
on (release) {
var _quotWidth = 0;
var _quotHeight = 0;
_quotWidth = Stage.width / _root.slide._width;
_quotHeight = Stage.height / _root.slide._height;
if (_quotHeight >= _quotWidth) {
if (_quotWidth < _quotHeight) {
_root.slide._width = Stage.width;
_root.slide._height = _quotWidth * _root.slide._height;
}
} else {
_root.slide._width = _quotHeight * _root.slide._width;
_root.slide._height = Stage.height;
}
_root.slide._x = (Stage.width / 2) - (_root.slide._width / 2);
_root.slide._y = (Stage.height / 2) - (_root.slide._height / 2);
_parent.btnExpand._visible = true;
_parent.btnReduce._visible = false;
_root._hideScrollAll();
_root.isFullScale = 0;
}
on () {
}
Symbol 20007 Button
on (rollOver) {
_root.isScrolling = 1;
}
on (rollOut) {
_root.isScrolling = 0;
}
on () {
}
Symbol 20008 Button
on (rollOver) {
_root.isScrolling = 5;
}
on (rollOut) {
_root.isScrolling = 0;
}
on () {
}
Symbol 20009 Button
on (rollOver) {
_root.isScrolling = 2;
}
on (rollOut) {
_root.isScrolling = 0;
}
on () {
}
Symbol 20010 Button
on (rollOver) {
_root.isScrolling = 6;
}
on (rollOut) {
_root.isScrolling = 0;
}
on () {
}
Symbol 20011 Button
on (rollOver) {
_root.isScrolling = 3;
}
on (rollOut) {
_root.isScrolling = 0;
}
on () {
}
Symbol 20012 Button
on (rollOver) {
_root.isScrolling = 7;
}
on (rollOut) {
_root.isScrolling = 0;
}
on () {
}
Symbol 20013 Button
on (rollOver) {
_root.isScrolling = 4;
}
on (rollOut) {
_root.isScrolling = 0;
}
on () {
}
Symbol 20014 Button
on (rollOver) {
_root.isScrolling = 8;
}
on (rollOut) {
_root.isScrolling = 0;
}
on () {
}
Symbol 20015 Button
on (press) {
this.startDrag(false, 0, 0, Stage.width - this._width, Stage.height - this._height);
}
on (release, releaseOutside) {
this.stopDrag();
}
on () {
}
Symbol 20016 Button
on (release) {
_root.guiHelp._visible = false;
}
on () {
}
Symbol 19960 MovieClip [slide] Frame 1
_root.slide_max_width = 640;
_root.slide_max_height = 1900;
if (!_root.isInitialized) {
var _quotWidth = 0;
var _quotHeight = 0;
if (0 >= _root.slide_max_width) {
_root.slide_max_width = 1;
}
if (0 >= _root.slide_max_height) {
_root.slide_max_height = 1;
}
_root.slide._width = _root.slide_max_width;
_root.slide._height = _root.slide_max_height;
_quotWidth = Stage.width / _root.slide._width;
_quotHeight = Stage.height / _root.slide._height;
if (_quotHeight >= _quotWidth) {
if (_quotWidth < _quotHeight) {
_root.slide._width = Stage.width;
_root.slide._height = _quotWidth * _root.slide._height;
}
} else {
_root.slide._width = _quotHeight * _root.slide._width;
_root.slide._height = Stage.height;
}
_root.slide._x = (Stage.width / 2) - (_root.slide._width / 2);
_root.slide._y = (Stage.height / 2) - (_root.slide._height / 2);
this.stop();
_root.isInitialized = 1;
}