Frame 1
function addSound(clip, loops, volume) {
var _local1 = volume;
if (_local1 == undefined) {
_local1 = 100;
}
mySound = new Sound(createEmptyMovieClip(clip + "Sfx", getNextHighestDepth()));
mySound.setVolume(_local1);
mySound.attachSound(clip);
mySound.start(0, loops);
}
function all_control_fun(v1, v2, _mc) {
var _local3 = _root;
if (v1 == 2) {
_mc.thing6.underwear1_mc._visible = false;
}
_mc["thing" + v1].gotoAndStop(v2 + 1);
}
function cLoad(_mc) {
var _local2 = _root;
var _local15 = _mc.cload1;
var _local14 = _mc.hload1;
var _local13 = _mc.gload1;
var _local12 = _mc.j1load1;
var _local11 = _mc.j2load1;
var _local10 = _mc.tload1;
var _local16 = _root.myAsFlipPage.on_mc.model_mc;
var _local7 = _local2.cap_now;
var _local9 = _local2.hair_now;
var _local8 = _local2.glass_now;
var _local6 = _local2.jew1_now;
var _local5 = _local2.jew2_now;
var _local4 = _local2.top_now;
_local2.cap_loadmc1 = _local15.mc.attachMovie("cload" + _local7, "a3" + _local7, _local7);
_local2.hair_loadmc1 = _local14.mc.attachMovie("hload" + _local9, "a1" + _local9, _local9);
_local2.glass_loadmc1 = _local13.mc.attachMovie("gLoad" + _local8, "a6" + _local8, _local8);
_local2.jew1_loadmc1 = _local12.mc.attachMovie("j1Load" + _local6, "a4" + _local6, _local6);
_local2.jew2_loadmc1 = _local11.mc.attachMovie("j2Load" + _local5, "a5" + _local5, _local5);
_local2.top_loadmc1 = _local10.mc.attachMovie("tLoad" + _local4, "a2" + _local4, _local4);
_local2.menu_fun(_local15.mc);
_local2.menu_fun(_local14.mc);
_local2.menu_fun(_local13.mc);
_local2.menu_fun(_local12.mc);
_local2.menu_fun(_local11.mc);
_local2.menu_fun(_local10.mc);
}
function cLoadMove1(_mc) {
var _loc1 = _root;
var _local4 = _mc.cload1;
var _local3 = _loc1.cap_now;
var max = _loc1.cap_max;
var _local2;
if (_local3 == max) {
_local2 = 1;
} else {
_local2 = _local3 + 1;
}
cap_loadmc2 = _local4.mc.attachMovie("cload" + _local2, "a3" + _local2, _local2);
cap_loadmc2._x = cap_loadmc1._x + cap_loadmc2._width;
go_x = new mx.transitions.Tween(cap_loadmc1, "_x", mx.transitions.easing.Strong.easeOut, cap_loadmc1._x, cap_loadmc1._x - cap_loadmc1._width, 20, false);
go_x = new mx.transitions.Tween(cap_loadmc2, "_x", mx.transitions.easing.Strong.easeOut, cap_loadmc2._x, cap_loadmc2._x - cap_loadmc2._width, 20, false);
go_x.onMotionFinished = function () {
cap_loadmc1.removeMovieClip();
cap_loadmc1 = cap_loadmc2;
if (_loc1.cap_now == max) {
_loc1.cap_now = 1;
} else {
_loc1.cap_now++;
}
_mc.cper_btn.enabled = true;
_mc.cnext_btn.enabled = true;
};
_loc1.menu_fun(_local4.mc);
}
function cLoadMove2(_mc) {
var _loc1 = _root;
var _local4 = _mc.cload1;
var _local3 = _loc1.cap_now;
var max = _loc1.cap_max;
var _local2;
if (_local3 == 1) {
_local2 = max;
} else {
_local2 = _local3 - 1;
}
cap_loadmc2 = _local4.mc.attachMovie("cload" + _local2, "a3" + _local2, _local2);
cap_loadmc2._x = cap_loadmc1._x - cap_loadmc2._width;
go_x = new mx.transitions.Tween(cap_loadmc1, "_x", mx.transitions.easing.Strong.easeOut, cap_loadmc1._x, cap_loadmc1._x + cap_loadmc1._width, 20, false);
go_x = new mx.transitions.Tween(cap_loadmc2, "_x", mx.transitions.easing.Strong.easeOut, cap_loadmc2._x, cap_loadmc2._x + cap_loadmc2._width, 20, false);
go_x.onMotionFinished = function () {
cap_loadmc1.removeMovieClip();
cap_loadmc1 = cap_loadmc2;
if (_loc1.cap_now == 1) {
_loc1.cap_now = max;
} else {
_loc1.cap_now--;
}
_mc.cper_btn.enabled = true;
_mc.cnext_btn.enabled = true;
};
_loc1.menu_fun(_local4.mc);
}
function hLoadMove1(_mc) {
var _loc1 = _root;
var _local4 = _mc.hload1;
var _local3 = _loc1.hair_now;
var max = _loc1.hair_max;
var _local2;
if (_local3 == max) {
_local2 = 1;
} else {
_local2 = _local3 + 1;
}
hair_loadmc2 = _local4.mc.attachMovie("hload" + _local2, "a1" + _local2, _local2);
hair_loadmc2._x = hair_loadmc1._x + hair_loadmc2._width;
go_x = new mx.transitions.Tween(hair_loadmc1, "_x", mx.transitions.easing.Strong.easeOut, hair_loadmc1._x, hair_loadmc1._x - hair_loadmc1._width, 20, false);
go_x = new mx.transitions.Tween(hair_loadmc2, "_x", mx.transitions.easing.Strong.easeOut, hair_loadmc2._x, hair_loadmc2._x - hair_loadmc2._width, 20, false);
go_x.onMotionFinished = function () {
hair_loadmc1.removeMovieClip();
hair_loadmc1 = hair_loadmc2;
if (_loc1.hair_now == max) {
_loc1.hair_now = 1;
} else {
_loc1.hair_now++;
}
_mc.hper_btn.enabled = true;
_mc.hnext_btn.enabled = true;
};
_loc1.menu_fun(_local4.mc);
}
function hLoadMove2(_mc) {
var _loc1 = _root;
var _local4 = _mc.hload1;
var _local3 = _loc1.hair_now;
var max = _loc1.hair_max;
var _local2;
if (_local3 == 1) {
_local2 = max;
} else {
_local2 = _local3 - 1;
}
hair_loadmc2 = _local4.mc.attachMovie("hload" + _local2, "a1" + _local2, _local2);
hair_loadmc2._x = hair_loadmc1._x - hair_loadmc2._width;
go_x = new mx.transitions.Tween(hair_loadmc1, "_x", mx.transitions.easing.Strong.easeOut, hair_loadmc1._x, hair_loadmc1._x + hair_loadmc1._width, 20, false);
go_x = new mx.transitions.Tween(hair_loadmc2, "_x", mx.transitions.easing.Strong.easeOut, hair_loadmc2._x, hair_loadmc2._x + hair_loadmc2._width, 20, false);
go_x.onMotionFinished = function () {
hair_loadmc1.removeMovieClip();
hair_loadmc1 = hair_loadmc2;
if (_loc1.hair_now == 1) {
_loc1.hair_now = max;
} else {
_loc1.hair_now--;
}
_mc.hper_btn.enabled = true;
_mc.hnext_btn.enabled = true;
};
_loc1.menu_fun(_local4.mc);
}
function gLoadMove1(_mc) {
var _loc1 = _root;
var _local4 = _mc.gload1;
var _local3 = _loc1.glass_now;
var max = _loc1.glass_max;
var _local2;
if (_local3 == max) {
_local2 = 1;
} else {
_local2 = _local3 + 1;
}
glass_loadmc2 = _local4.mc.attachMovie("gLoad" + _local2, "a6" + _local2, _local2);
glass_loadmc2._x = glass_loadmc1._x + glass_loadmc2._width;
go_x = new mx.transitions.Tween(glass_loadmc1, "_x", mx.transitions.easing.Strong.easeOut, glass_loadmc1._x, glass_loadmc1._x - glass_loadmc1._width, 20, false);
go_x = new mx.transitions.Tween(glass_loadmc2, "_x", mx.transitions.easing.Strong.easeOut, glass_loadmc2._x, glass_loadmc2._x - glass_loadmc2._width, 20, false);
go_x.onMotionFinished = function () {
glass_loadmc1.removeMovieClip();
glass_loadmc1 = glass_loadmc2;
if (_loc1.glass_now == max) {
_loc1.glass_now = 1;
} else {
_loc1.glass_now++;
}
_mc.gper_btn.enabled = true;
_mc.gnext_btn.enabled = true;
};
_loc1.menu_fun(_local4.mc);
}
function gLoadMove2(_mc) {
var _loc1 = _root;
var _local4 = _mc.gload1;
var _local3 = _loc1.glass_now;
var max = _loc1.glass_max;
var _local2;
if (_local3 == 1) {
_local2 = max;
} else {
_local2 = _local3 - 1;
}
glass_loadmc2 = _local4.mc.attachMovie("gLoad" + _local2, "a6" + _local2, _local2);
glass_loadmc2._x = glass_loadmc1._x - glass_loadmc2._width;
go_x = new mx.transitions.Tween(glass_loadmc1, "_x", mx.transitions.easing.Strong.easeOut, glass_loadmc1._x, glass_loadmc1._x + glass_loadmc1._width, 20, false);
go_x = new mx.transitions.Tween(glass_loadmc2, "_x", mx.transitions.easing.Strong.easeOut, glass_loadmc2._x, glass_loadmc2._x + glass_loadmc2._width, 20, false);
go_x.onMotionFinished = function () {
glass_loadmc1.removeMovieClip();
glass_loadmc1 = glass_loadmc2;
if (_loc1.glass_now == 1) {
_loc1.glass_now = max;
} else {
_loc1.glass_now--;
}
_mc.gper_btn.enabled = true;
_mc.gnext_btn.enabled = true;
};
_loc1.menu_fun(_local4.mc);
}
function j1LoadMove1(_mc) {
var _loc1 = _root;
var _local4 = _mc.j1load1;
var _local3 = _loc1.jew1_now;
var max = _loc1.jew1_max;
var _local2;
if (_local3 == max) {
_local2 = 1;
} else {
_local2 = _local3 + 1;
}
jew1_loadmc2 = _local4.mc.attachMovie("j1Load" + _local2, "a4" + _local2, _local2);
jew1_loadmc2._x = jew1_loadmc1._x + jew1_loadmc2._width;
go_x = new mx.transitions.Tween(jew1_loadmc1, "_x", mx.transitions.easing.Strong.easeOut, jew1_loadmc1._x, jew1_loadmc1._x - jew1_loadmc1._width, 20, false);
go_x = new mx.transitions.Tween(jew1_loadmc2, "_x", mx.transitions.easing.Strong.easeOut, jew1_loadmc2._x, jew1_loadmc2._x - jew1_loadmc2._width, 20, false);
go_x.onMotionFinished = function () {
jew1_loadmc1.removeMovieClip();
jew1_loadmc1 = jew1_loadmc2;
if (_loc1.jew1_now == max) {
_loc1.jew1_now = 1;
} else {
_loc1.jew1_now++;
}
_mc.j1per_btn.enabled = true;
_mc.j1next_btn.enabled = true;
};
_loc1.menu_fun(_local4.mc);
}
function j1LoadMove2(_mc) {
var _loc1 = _root;
var _local4 = _mc.j1load1;
var _local3 = _loc1.jew1_now;
var max = _loc1.jew1_max;
var _local2;
if (_local3 == 1) {
_local2 = max;
} else {
_local2 = _local3 - 1;
}
jew1_loadmc2 = _local4.mc.attachMovie("j1Load" + _local2, "a4" + _local2, _local2);
jew1_loadmc2._x = jew1_loadmc1._x - jew1_loadmc2._width;
go_x = new mx.transitions.Tween(jew1_loadmc1, "_x", mx.transitions.easing.Strong.easeOut, jew1_loadmc1._x, jew1_loadmc1._x + jew1_loadmc1._width, 20, false);
go_x = new mx.transitions.Tween(jew1_loadmc2, "_x", mx.transitions.easing.Strong.easeOut, jew1_loadmc2._x, jew1_loadmc2._x + jew1_loadmc2._width, 20, false);
go_x.onMotionFinished = function () {
jew1_loadmc1.removeMovieClip();
jew1_loadmc1 = jew1_loadmc2;
if (_loc1.jew1_now == 1) {
_loc1.jew1_now = max;
} else {
_loc1.jew1_now--;
}
_mc.j1per_btn.enabled = true;
_mc.j1next_btn.enabled = true;
};
_loc1.menu_fun(_local4.mc);
}
function j2LoadMove1(_mc) {
var _loc1 = _root;
var _local4 = _mc.j2load1;
var _local3 = _loc1.jew2_now;
var max = _loc1.jew2_max;
var _local2;
if (_local3 == max) {
_local2 = 1;
} else {
_local2 = _local3 + 1;
}
jew2_loadmc2 = _local4.mc.attachMovie("j2Load" + _local2, "a5" + _local2, _local2);
jew2_loadmc2._x = jew2_loadmc1._x + jew2_loadmc2._width;
go_x = new mx.transitions.Tween(jew2_loadmc1, "_x", mx.transitions.easing.Strong.easeOut, jew2_loadmc1._x, jew2_loadmc1._x - jew2_loadmc1._width, 20, false);
go_x = new mx.transitions.Tween(jew2_loadmc2, "_x", mx.transitions.easing.Strong.easeOut, jew2_loadmc2._x, jew2_loadmc2._x - jew2_loadmc2._width, 20, false);
go_x.onMotionFinished = function () {
jew2_loadmc1.removeMovieClip();
jew2_loadmc1 = jew2_loadmc2;
if (_loc1.jew2_now == max) {
_loc1.jew2_now = 1;
} else {
_loc1.jew2_now++;
}
_mc.j2per_btn.enabled = true;
_mc.j2next_btn.enabled = true;
};
_loc1.menu_fun(_local4.mc);
}
function j2LoadMove2(_mc) {
var _loc1 = _root;
var _local4 = _mc.j2load1;
var _local3 = _loc1.jew2_now;
var max = _loc1.jew2_max;
var _local2;
if (_local3 == 1) {
_local2 = max;
} else {
_local2 = _local3 - 1;
}
jew2_loadmc2 = _local4.mc.attachMovie("j2Load" + _local2, "a5" + _local2, _local2);
jew2_loadmc2._x = jew2_loadmc1._x - jew2_loadmc2._width;
go_x = new mx.transitions.Tween(jew2_loadmc1, "_x", mx.transitions.easing.Strong.easeOut, jew2_loadmc1._x, jew2_loadmc1._x + jew2_loadmc1._width, 20, false);
go_x = new mx.transitions.Tween(jew2_loadmc2, "_x", mx.transitions.easing.Strong.easeOut, jew2_loadmc2._x, jew2_loadmc2._x + jew2_loadmc2._width, 20, false);
go_x.onMotionFinished = function () {
jew2_loadmc1.removeMovieClip();
jew2_loadmc1 = jew2_loadmc2;
if (_loc1.jew2_now == 1) {
_loc1.jew2_now = max;
} else {
_loc1.jew2_now--;
}
_mc.j2per_btn.enabled = true;
_mc.j2next_btn.enabled = true;
};
_loc1.menu_fun(_local4.mc);
}
function tLoadMove1(_mc) {
var _loc1 = _root;
var _local4 = _mc.tload1;
var _local3 = _loc1.top_now;
var max = _loc1.top_max;
var _local2;
if (_local3 == max) {
_local2 = 1;
} else {
_local2 = _local3 + 1;
}
top_loadmc2 = _local4.mc.attachMovie("tLoad" + _local2, "a2" + _local2, _local2);
top_loadmc2._x = top_loadmc1._x + top_loadmc2._width;
go_x = new mx.transitions.Tween(top_loadmc1, "_x", mx.transitions.easing.Strong.easeOut, top_loadmc1._x, top_loadmc1._x - top_loadmc1._width, 20, false);
go_x = new mx.transitions.Tween(top_loadmc2, "_x", mx.transitions.easing.Strong.easeOut, top_loadmc2._x, top_loadmc2._x - top_loadmc2._width, 20, false);
go_x.onMotionFinished = function () {
top_loadmc1.removeMovieClip();
top_loadmc1 = top_loadmc2;
if (_loc1.top_now == max) {
_loc1.top_now = 1;
} else {
_loc1.top_now++;
}
_mc.tper_btn.enabled = true;
_mc.tnext_btn.enabled = true;
};
_loc1.menu_fun(_local4.mc);
}
function tLoadMove2(_mc) {
var _loc1 = _root;
var _local4 = _mc.tload1;
var _local3 = _loc1.top_now;
var max = _loc1.top_max;
var _local2;
if (_local3 == 1) {
_local2 = max;
} else {
_local2 = _local3 - 1;
}
top_loadmc2 = _local4.mc.attachMovie("tLoad" + _local2, "a2" + _local2, _local2);
top_loadmc2._x = top_loadmc1._x - top_loadmc2._width;
go_x = new mx.transitions.Tween(top_loadmc1, "_x", mx.transitions.easing.Strong.easeOut, top_loadmc1._x, top_loadmc1._x + top_loadmc1._width, 20, false);
go_x = new mx.transitions.Tween(top_loadmc2, "_x", mx.transitions.easing.Strong.easeOut, top_loadmc2._x, top_loadmc2._x + top_loadmc2._width, 20, false);
go_x.onMotionFinished = function () {
top_loadmc1.removeMovieClip();
top_loadmc1 = top_loadmc2;
if (_loc1.top_now == 1) {
_loc1.top_now = max;
} else {
_loc1.top_now--;
}
_mc.tper_btn.enabled = true;
_mc.tnext_btn.enabled = true;
};
_loc1.menu_fun(_local4.mc);
}
function menu_fun(_mc) {
var _loc1 = _root;
var _loc2 = this._parent;
var _loc3 = _root.myAsFlipPage.on_mc.model_mc;
for (var _local6 in _mc) {
if (typeof(_mc[_local6]) == "movieclip") {
if (_mc[_local6]._name.substr(0, 1) == "a") {
_mc[_local6].x0 = _mc[_local6]._x;
_mc[_local6].y0 = _mc[_local6]._y;
_mc[_local6].xscale0 = _mc[_local6]._xscale;
_mc[_local6].yscale0 = _mc[_local6]._yscale;
_mc[_local6].onPress = function () {
Mouse.show();
_root.addSound("sd01");
_root._mc.removeMovieClip();
var _local3 = this._name.substr(1, 1);
var _local4 = this._name.substr(2);
if (_local3 != 0) {
this._visible = false;
_loc1.mc_drag = _loc1.attachMovie(("a" + _local3) + _local4, "_mc", 1);
go_xscale = new mx.transitions.Tween(_loc1.mc_drag, "_xscale", mx.transitions.easing.Elastic.easeOut, 0, _loc1.scaleNo, 20, false);
go_yscale = new mx.transitions.Tween(_loc1.mc_drag, "_yscale", mx.transitions.easing.Elastic.easeOut, 0, _loc1.scaleNo, 20, false);
_loc1.mc_drag._x = _loc1._xmouse;
_loc1.mc_drag._y = _loc1._ymouse;
_loc1.mc_drag.startDrag();
}
};
_mc[_local6].onRelease = function () {
this._visible = true;
var _local2 = Number(this._name.substr(1, 1));
var _local3 = Number(this._name.substr(2));
if (_local2 == 0) {
_loc1.all_control_fun(_local2, _local3 - 1);
}
if (_local2 == 1) {
if (_loc1._xmouse < 400) {
_loc1.all_control_fun(_local2, _local3 - 1, _loc3);
}
} else if (_loc1._xmouse < 400) {
_loc1.all_control_fun(_local2, _local3, _loc3);
}
_loc1.mc_drag.removeMovieClip();
_loc2.sound1();
};
_mc[_local6].onReleaseOutside = function () {
this._visible = true;
var _local3 = Number(this._name.substr(1, 1));
var _local4 = Number(this._name.substr(2));
if (_local3 == 0) {
_loc1.all_control_fun(_local3, _local4 - 1);
}
if (_local3 == 1) {
if (_loc3.hitTest(_xmouse, _ymouse)) {
_loc1.all_control_fun(_local3, _local4 - 1, _loc3);
_root.addSound("sd02");
}
} else if (_loc3.hitTest(_xmouse, _ymouse)) {
_loc1.all_control_fun(_local3, _local4, _loc3);
_root.addSound("sd02");
}
_loc1.mc_drag.removeMovieClip();
};
}
}
}
}
function Mbtn_fun(_mc) {
var _loc2 = _root.myAsFlipPage.on_mc;
for (var _local6 in _mc) {
if ((typeof(_mc[_local6]) == "movieclip") and (_mc[_local6]._name.substr(0, 1) == "M")) {
_mc[_local6].act = false;
_mc[_local6].onPress = function () {
_root.addSound("sd01");
var _local3 = 1;
while (_local3 < 8) {
_root.myAsFlipPage.on_mc["Mbtn" + _local3].act = false;
_local3++;
}
this.act = true;
var _local5 = this._name.substr(4, 1);
var _local4;
_local4 = _root.attachMovie("tool" + _local5, "_mc", 1);
_local4._xscale = _root.scaleNo_btn;
_local4._yscale = _root.scaleNo_btn;
_local4._x = _root._xmouse;
_local4._y = _root._ymouse;
go_xscale = new mx.transitions.Tween(_local4, "_xscale", mx.transitions.easing.Elastic.easeOut, 50, 100, 20, false);
go_yscale = new mx.transitions.Tween(_local4, "_yscale", mx.transitions.easing.Elastic.easeOut, 50, 100, 20, false);
_local4.startDrag();
Mouse.hide();
};
_mc[_local6].onRollOver = function () {
var _local3 = this._name.substr(4, 1);
_root.addSound("sd03");
_loc2["btn" + _local3].gotoAndStop(2);
};
_mc[_local6].onRollOut = function () {
var _local2 = this._name.substr(4, 1);
_loc2["btn" + _local2].gotoAndStop(3);
};
_mc[_local6].onReleaseOutside = function () {
var _local2 = this._name.substr(4, 1);
_loc2["btn" + _local2].gotoAndStop(3);
};
}
}
}
function ok_fun() {
var _local3 = _root.myAsFlipPage.on_mc;
var _local2 = _root.myAsFlipPage.on_mc.model_mc;
_local2._x = -60;
}
function OnFinishFlip_fun() {
var _local5 = _root.myAsFlipPage.on_mc;
var _local3 = _root.myAsFlipPage.on_mc.model_mc;
var _local4 = _root.myAsFlipPage.on_mc.mask_mc;
var _local2 = _local5._currentframe;
if (_local2 == 4) {
trace("run4");
_local3._x = -110;
_local3.setMask(_local4);
}
if ((_local2 == 3) || (_local2 == 2)) {
_local3._x = 20;
}
}
stop();
mymenu = new ContextMenu();
mymenu.hideBuiltInItems();
mymenu.builtInItems.print = true;
_root.menu = mymenu;
var cap_arry = new Array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10);
var cap_now = 1;
var hair_now = 1;
var glass_now = 1;
var jew1_now = 1;
var jew2_now = 1;
var top_now = 1;
var cap_max = 11;
var hair_max = 7;
var glass_max = 3;
var jew1_max = 4;
var jew2_max = 4;
var top_max = 7;
var cap_loadmc1;
var cap_loadmc2;
var hair_loadmc1;
var hair_loadmc2;
var glass_loadmc1;
var glass_loadmc2;
var jew1_loadmc1;
var jew1_loadmc2;
var jew2_loadmc1;
var jew2_loadmc2;
var top_loadmc1;
var top_loadmc2;
var mc_temp;
var mc_drag;
var scaleNo = 100;
var mouseListener = new Object();
mouseListener.onMouseDown = function () {
var _local3 = 1;
while (_local3 < 8) {
var _local4 = _root.myAsFlipPage.on_mc["Mbtn" + _local3];
var _local2 = _root.myAsFlipPage.on_mc.model_mc["dress" + _local3];
if (_local2.hit.hitTest(_xmouse, _ymouse) && (_local4.act == true)) {
if (_local2._currentframe >= _local2._totalframes) {
_local2.gotoAndStop(1);
} else {
_local2.nextFrame();
}
}
_local3++;
}
};
Instance of Symbol 40 MovieClip [AsFlipPage] "myAsFlipPage" in Frame 1
//component parameters
onClipEvent (construct) {
Register_object = {};
Register_object.RegisterName = "Ameng";
Register_object.SimpleName = "Ameng";
Register_object.RegisterNumber = "Ameng";
print_number = "";
book_mc = "pages";
load_page_title_array = [];
load_page_title_array[0] = "";
load_page_title_array[1] = "";
all_page_v = 4;
if_auto_filp = false;
auto_filp_time = 3;
bg_sound_array = [];
bg_sound_array[0] = 0;
bg_sound_array[1] = 1;
bg_sound_array[2] = 1;
bg_sound_array[3] = 2;
bg_sound_array[4] = 2;
bg_sound_array[5] = 3;
bg_sound_array[6] = 0;
bg_sound_array[7] = 2;
bg_sound_array[8] = 0;
bottom_shadow_b = true;
BufferCoefficient = 2;
CueHitArea = true;
end_filp_distance_v = 5;
events_fun_object = {};
events_fun_object.OnStartFlip = "OnStartFlip_fun";
events_fun_object.OnFinishFlip = "OnFinishFlip_fun";
events_fun_object.OnStartCueHitAreaing = "";
events_fun_object.OnFinishCueHitAreaing = "";
exit_mc_str = "exit_mc";
filp_sound_str = "filp_sound";
FlipKey_object = {};
FlipKey_object.PrevPageKey = 37;
FlipKey_object.NextPageKey = 39;
FlipKey_object.CoverPageKey = 38;
FlipKey_object.BackPageKey = 40;
FlipKey_object.ListPageKey = 32;
FlipOnKeyUpDown_b = "OnKeyDown";
FlipOnRelease_b = true;
flip_speed = 1;
fullscreen_b = false;
HighModeSetting_object = {};
HighModeSetting_object.RightBottomShadowMC = "book_shadow_bottom1";
HighModeSetting_object.LeftBottomShadowMC = "book_shadow_bottom2";
HighModeSetting_object.RightPageSideMC = "right_page_side_mc";
HighModeSetting_object.LeftPageSideMC = "left_page_side_mc";
HighModeSetting_object.FlipShadowMC1 = "flip_shadow1_mc";
HighModeSetting_object.FlipShadowMC2 = "flip_shadow2_mc";
hit_area_object = {};
hit_area_object.LiftTopWidth = 30;
hit_area_object.LiftTopHigh = 30;
hit_area_object.RightTopWidth = 30;
hit_area_object.RightTopHigh = 30;
hit_area_object.LiftBottomWidth = 30;
hit_area_object.LiftBottomHigh = 30;
hit_area_object.RightBottomWidth = 30;
hit_area_object.RightBottomHigh = 30;
list_page_v = 4;
shadow_b = true;
page_side_b = true;
page_title_array = [];
page_title_array[0] = "\u9996\u9875";
page_title_array[1] = "\u76EE\u5F55";
page_title_array[2] = "\u4E00\u9875";
page_title_array[3] = "\u4E8C\u9875";
page_title_array[4] = "\u4E09\u9875";
page_title_array[5] = "\u56DB\u9875";
page_title_array[6] = "\u4E94\u9875";
page_title_array[7] = "\u516D\u9875";
page_title_array[8] = "\u4E03\u9875";
page_title_array[9] = "\u5C3E\u9875";
if_set_local = false;
setContextMenuFun_b = false;
on_page_v = 1;
StartFilpInclineX = 150;
StartFilpInclineY = 100;
}
Symbol 40 MovieClip [AsFlipPage] Frame 1
#initclip 7
Object.registerClass("AsFlipPage", AsFlipPage);
#endinitclip
stop();
Symbol 59 MovieClip Frame 17
stop();
Symbol 60 Button
on (release) {
_root.myAsFlipPage.flipNextPage();
}
Symbol 70 MovieClip Frame 1
stop();
Symbol 85 MovieClip Frame 1
stop();
Instance of Symbol 88 MovieClip in Symbol 89 MovieClip [a51] Frame 1
onClipEvent (load) {
n = random(59) + 1;
this.gotoAndPlay(n);
}
Instance of Symbol 88 MovieClip in Symbol 89 MovieClip [a51] Frame 1
onClipEvent (load) {
n = random(59) + 1;
this.gotoAndPlay(n);
}
Instance of Symbol 88 MovieClip in Symbol 89 MovieClip [a51] Frame 1
onClipEvent (load) {
n = random(59) + 1;
this.gotoAndPlay(n);
}
Instance of Symbol 88 MovieClip in Symbol 89 MovieClip [a51] Frame 1
onClipEvent (load) {
n = random(59) + 1;
this.gotoAndPlay(n);
}
Instance of Symbol 88 MovieClip in Symbol 89 MovieClip [a51] Frame 1
onClipEvent (load) {
n = random(59) + 1;
this.gotoAndPlay(n);
}
Instance of Symbol 88 MovieClip in Symbol 91 MovieClip [a52] Frame 1
onClipEvent (load) {
n = random(59) + 1;
this.gotoAndPlay(n);
}
Instance of Symbol 88 MovieClip in Symbol 91 MovieClip [a52] Frame 1
onClipEvent (load) {
n = random(59) + 1;
this.gotoAndPlay(n);
}
Instance of Symbol 88 MovieClip in Symbol 91 MovieClip [a52] Frame 1
onClipEvent (load) {
n = random(59) + 1;
this.gotoAndPlay(n);
}
Instance of Symbol 88 MovieClip in Symbol 91 MovieClip [a52] Frame 1
onClipEvent (load) {
n = random(59) + 1;
this.gotoAndPlay(n);
}
Instance of Symbol 88 MovieClip in Symbol 93 MovieClip [a53] Frame 1
onClipEvent (load) {
n = random(59) + 1;
this.gotoAndPlay(n);
}
Instance of Symbol 88 MovieClip in Symbol 93 MovieClip [a53] Frame 1
onClipEvent (load) {
n = random(59) + 1;
this.gotoAndPlay(n);
}
Instance of Symbol 88 MovieClip in Symbol 93 MovieClip [a53] Frame 1
onClipEvent (load) {
n = random(59) + 1;
this.gotoAndPlay(n);
}
Instance of Symbol 88 MovieClip in Symbol 95 MovieClip [a54] Frame 1
onClipEvent (load) {
n = random(59) + 1;
this.gotoAndPlay(n);
}
Instance of Symbol 88 MovieClip in Symbol 95 MovieClip [a54] Frame 1
onClipEvent (load) {
n = random(59) + 1;
this.gotoAndPlay(n);
}
Instance of Symbol 88 MovieClip in Symbol 95 MovieClip [a54] Frame 1
onClipEvent (load) {
n = random(59) + 1;
this.gotoAndPlay(n);
}
Symbol 96 MovieClip Frame 1
stop();
Symbol 104 MovieClip Frame 1
stop();
Symbol 115 MovieClip Frame 1
stop();
Symbol 125 MovieClip Frame 1
stop();
Symbol 136 MovieClip Frame 1
stop();
Symbol 147 MovieClip Frame 1
stop();
Symbol 162 MovieClip Frame 1
stop();
Symbol 169 MovieClip Frame 1
stop();
Symbol 193 MovieClip Frame 1
stop();
Instance of Symbol 88 MovieClip in Symbol 195 MovieClip [a41] Frame 1
onClipEvent (load) {
n = random(59) + 1;
this.gotoAndPlay(n);
}
Instance of Symbol 88 MovieClip in Symbol 195 MovieClip [a41] Frame 1
onClipEvent (load) {
n = random(59) + 1;
this.gotoAndPlay(n);
}
Instance of Symbol 88 MovieClip in Symbol 195 MovieClip [a41] Frame 1
onClipEvent (load) {
n = random(59) + 1;
this.gotoAndPlay(n);
}
Instance of Symbol 88 MovieClip in Symbol 197 MovieClip [a42] Frame 1
onClipEvent (load) {
n = random(59) + 1;
this.gotoAndPlay(n);
}
Instance of Symbol 88 MovieClip in Symbol 197 MovieClip [a42] Frame 1
onClipEvent (load) {
n = random(59) + 1;
this.gotoAndPlay(n);
}
Instance of Symbol 88 MovieClip in Symbol 199 MovieClip [a43] Frame 1
onClipEvent (load) {
n = random(59) + 1;
this.gotoAndPlay(n);
}
Instance of Symbol 88 MovieClip in Symbol 199 MovieClip [a43] Frame 1
onClipEvent (load) {
n = random(59) + 1;
this.gotoAndPlay(n);
}
Instance of Symbol 88 MovieClip in Symbol 199 MovieClip [a43] Frame 1
onClipEvent (load) {
n = random(59) + 1;
this.gotoAndPlay(n);
}
Instance of Symbol 88 MovieClip in Symbol 199 MovieClip [a43] Frame 1
onClipEvent (load) {
n = random(59) + 1;
this.gotoAndPlay(n);
}
Instance of Symbol 88 MovieClip in Symbol 201 MovieClip [a44] Frame 1
onClipEvent (load) {
n = random(59) + 1;
this.gotoAndPlay(n);
}
Instance of Symbol 88 MovieClip in Symbol 201 MovieClip [a44] Frame 1
onClipEvent (load) {
n = random(59) + 1;
this.gotoAndPlay(n);
}
Instance of Symbol 88 MovieClip in Symbol 201 MovieClip [a44] Frame 1
onClipEvent (load) {
n = random(59) + 1;
this.gotoAndPlay(n);
}
Instance of Symbol 88 MovieClip in Symbol 201 MovieClip [a44] Frame 1
onClipEvent (load) {
n = random(59) + 1;
this.gotoAndPlay(n);
}
Symbol 202 MovieClip Frame 1
stop();
Symbol 218 MovieClip Frame 15
stop();
Symbol 219 MovieClip Frame 15
stop();
Symbol 220 MovieClip Frame 1
stop();
Symbol 225 MovieClip Frame 15
stop();
Symbol 226 MovieClip Frame 15
stop();
Symbol 227 MovieClip Frame 1
stop();
Symbol 231 MovieClip Frame 15
stop();
Symbol 232 MovieClip Frame 15
stop();
Symbol 233 MovieClip Frame 1
stop();
Symbol 238 MovieClip Frame 15
stop();
Symbol 239 MovieClip Frame 15
stop();
Symbol 240 MovieClip Frame 1
stop();
Symbol 244 MovieClip Frame 15
stop();
Symbol 245 MovieClip Frame 15
stop();
Symbol 246 MovieClip Frame 1
stop();
Symbol 250 MovieClip Frame 15
stop();
Symbol 251 MovieClip Frame 15
stop();
Symbol 252 MovieClip Frame 1
stop();
Symbol 273 MovieClip [pages] Frame 1
stop();
_root.prev_page_btn._visible = false;
_root.next_page_btn._visible = false;
Symbol 273 MovieClip [pages] Frame 2
Mouse.removeListener(_root.mouseListener);
Mouse.show();
_root._mc.removeMovieClip();
cper_btn.onRelease = function () {
_root.cLoadMove2(this._parent);
this.enabled = false;
this._parent.cnext_btn.enabled = false;
};
cnext_btn.onRelease = function () {
_root.cLoadMove1(this._parent);
this.enabled = false;
this._parent.cper_btn.enabled = false;
};
hper_btn.onRelease = function () {
_root.hLoadMove2(this._parent);
this.enabled = false;
this._parent.hnext_btn.enabled = false;
};
hnext_btn.onRelease = function () {
_root.hLoadMove1(this._parent);
this.enabled = false;
this._parent.hnext_btn.enabled = false;
};
_root.cLoad(this);
_root.prev_page_btn._visible = true;
_root.next_page_btn._visible = true;
Symbol 273 MovieClip [pages] Frame 3
stop();
Mouse.addListener(_root.mouseListener);
_root.Mbtn_fun(this);
_root.cLoad(this);
gper_btn.onRelease = function () {
_root.gLoadMove2(this._parent);
this.enabled = false;
this._parent.gnext_btn.enabled = false;
};
gnext_btn.onRelease = function () {
_root.gLoadMove1(this._parent);
this.enabled = false;
this._parent.gper_btn.enabled = false;
};
j1per_btn.onRelease = function () {
_root.j1LoadMove2(this._parent);
this.enabled = false;
this._parent.j1next_btn.enabled = false;
};
j1next_btn.onRelease = function () {
_root.j1LoadMove1(this._parent);
this.enabled = false;
this._parent.j1per_btn.enabled = false;
};
j2per_btn.onRelease = function () {
_root.j2LoadMove2(this._parent);
this.enabled = false;
this._parent.j2next_btn.enabled = false;
};
j2next_btn.onRelease = function () {
_root.j2LoadMove1(this._parent);
this.enabled = false;
this._parent.j2per_btn.enabled = false;
};
tper_btn.onRelease = function () {
_root.tLoadMove2(this._parent);
this.enabled = false;
this._parent.tnext_btn.enabled = false;
};
tnext_btn.onRelease = function () {
_root.tLoadMove1(this._parent);
this.enabled = false;
this._parent.tper_btn.enabled = false;
};
_root.prev_page_btn._visible = true;
_root.next_page_btn._visible = true;
Symbol 273 MovieClip [pages] Frame 4
Mouse.removeListener(_root.mouseListener);
Mouse.show();
_root._mc.removeMovieClip();
_root.prev_page_btn._visible = true;
_root.next_page_btn._visible = true;
Symbol 278 Button
on (release) {
getURL ("http://www.i-dressup.com", "_self");
}
Symbol 281 Button
on (release) {
myAsFlipPage.flipNextPage();
Mouse.show();
_root._mc.removeMovieClip();
}
Symbol 284 Button
on (release) {
myAsFlipPage.flipPrevPage();
Mouse.show();
_root._mc.removeMovieClip();
}
Symbol 357 MovieClip [__Packages.mx.transitions.OnEnterFrameBeacon] Frame 0
class mx.transitions.OnEnterFrameBeacon
{
function OnEnterFrameBeacon () {
}
static function init() {
var _local3 = _global.MovieClip;
if (!_root.__OnEnterFrameBeacon) {
mx.transitions.BroadcasterMX.initialize(_local3);
var _local4 = _root.createEmptyMovieClip("__OnEnterFrameBeacon", 9876);
_local4.onEnterFrame = function () {
_global.MovieClip.broadcastMessage("onEnterFrame");
};
}
}
static var version = "1.1.0.52";
}
Symbol 358 MovieClip [__Packages.mx.transitions.BroadcasterMX] Frame 0
class mx.transitions.BroadcasterMX
{
var _listeners;
function BroadcasterMX () {
}
static function initialize(o, dontCreateArray) {
if (o.broadcastMessage != undefined) {
delete o.broadcastMessage;
}
o.addListener = mx.transitions.BroadcasterMX.prototype.addListener;
o.removeListener = mx.transitions.BroadcasterMX.prototype.removeListener;
if (!dontCreateArray) {
o._listeners = new Array();
}
}
function addListener(o) {
removeListener(o);
if (broadcastMessage == undefined) {
broadcastMessage = mx.transitions.BroadcasterMX.prototype.broadcastMessage;
}
return(_listeners.push(o));
}
function removeListener(o) {
var _local2 = _listeners;
var _local3 = _local2.length;
while (_local3--) {
if (_local2[_local3] == o) {
_local2.splice(_local3, 1);
if (!_local2.length) {
broadcastMessage = undefined;
}
return(true);
}
}
return(false);
}
function broadcastMessage() {
var _local6 = String(arguments.shift());
var _local4 = _listeners.concat();
var _local5 = _local4.length;
var _local3 = 0;
while (_local3 < _local5) {
_local4[_local3][_local6].apply(_local4[_local3], arguments);
_local3++;
}
}
static var version = "1.1.0.52";
}
Symbol 359 MovieClip [__Packages.mx.transitions.Tween] Frame 0
class mx.transitions.Tween
{
var obj, prop, begin, useSeconds, _listeners, addListener, prevTime, _time, looping, _duration, broadcastMessage, isPlaying, _fps, prevPos, _pos, change, _intervalID, _startTime;
function Tween (obj, prop, func, begin, finish, duration, useSeconds) {
mx.transitions.OnEnterFrameBeacon.init();
if (!arguments.length) {
return;
}
this.obj = obj;
this.prop = prop;
this.begin = begin;
position = (begin);
this.duration = (duration);
this.useSeconds = useSeconds;
if (func) {
this.func = func;
}
this.finish = (finish);
_listeners = [];
addListener(this);
start();
}
function set time(t) {
prevTime = _time;
if (t > duration) {
if (looping) {
rewind(t - _duration);
update();
broadcastMessage("onMotionLooped", this);
} else {
if (useSeconds) {
_time = _duration;
update();
}
stop();
broadcastMessage("onMotionFinished", this);
}
} else if (t < 0) {
rewind();
update();
} else {
_time = t;
update();
}
//return(time);
}
function get time() {
return(_time);
}
function set duration(d) {
_duration = (((d == null) || (d <= 0)) ? (_global.Infinity) : (d));
//return(duration);
}
function get duration() {
return(_duration);
}
function set FPS(fps) {
var _local2 = isPlaying;
stopEnterFrame();
_fps = fps;
if (_local2) {
startEnterFrame();
}
//return(FPS);
}
function get FPS() {
return(_fps);
}
function set position(p) {
setPosition(p);
//return(position);
}
function setPosition(p) {
prevPos = _pos;
obj[prop] = (_pos = p);
broadcastMessage("onMotionChanged", this, _pos);
updateAfterEvent();
}
function get position() {
return(getPosition());
}
function getPosition(t) {
if (t == undefined) {
t = _time;
}
return(func(t, begin, change, _duration));
}
function set finish(f) {
change = f - begin;
//return(finish);
}
function get finish() {
return(begin + change);
}
function continueTo(finish, duration) {
begin = position;
this.finish = (finish);
if (duration != undefined) {
this.duration = (duration);
}
start();
}
function yoyo() {
continueTo(begin, time);
}
function startEnterFrame() {
if (_fps == undefined) {
_global.MovieClip.addListener(this);
} else {
_intervalID = setInterval(this, "onEnterFrame", 1000 / _fps);
}
isPlaying = true;
}
function stopEnterFrame() {
if (_fps == undefined) {
_global.MovieClip.removeListener(this);
} else {
clearInterval(_intervalID);
}
isPlaying = false;
}
function start() {
rewind();
startEnterFrame();
broadcastMessage("onMotionStarted", this);
}
function stop() {
stopEnterFrame();
broadcastMessage("onMotionStopped", this);
}
function resume() {
fixTime();
startEnterFrame();
broadcastMessage("onMotionResumed", this);
}
function rewind(t) {
_time = ((t == undefined) ? 0 : (t));
fixTime();
update();
}
function fforward() {
time = (_duration);
fixTime();
}
function nextFrame() {
if (useSeconds) {
time = ((getTimer() - _startTime) / 1000);
} else {
time = (_time + 1);
}
}
function onEnterFrame() {
nextFrame();
}
function prevFrame() {
if (!useSeconds) {
time = (_time - 1);
}
}
function toString() {
return("[Tween]");
}
function fixTime() {
if (useSeconds) {
_startTime = getTimer() - (_time * 1000);
}
}
function update() {
position = (getPosition(_time));
}
function func(t, b, c, d) {
return(((c * t) / d) + b);
}
static var version = "1.1.0.52";
static var __initBeacon = mx.transitions.OnEnterFrameBeacon.init();
static var __initBroadcaster = mx.transitions.BroadcasterMX.initialize(mx.transitions.Tween.prototype, true);
}
Symbol 360 MovieClip [__Packages.mx.transitions.easing.Elastic] Frame 0
class mx.transitions.easing.Elastic
{
function Elastic () {
}
static function easeIn(t, b, c, d, a, p) {
if (t == 0) {
return(b);
}
t = t / d;
if (t == 1) {
return(b + c);
}
if (!p) {
p = d * 0.3;
}
if ((!a) || (a < Math.abs(c))) {
a = c;
var _local5 = p / 4;
} else {
var _local5 = (p / 6.283185) * Math.asin(c / a);
}
t = t - 1;
return((((-a) * Math.pow(2, 10 * t)) * Math.sin((((t * d) - _local5) * 6.283185) / p)) + b);
}
static function easeOut(t, b, c, d, a, p) {
if (t == 0) {
return(b);
}
t = t / d;
if (t == 1) {
return(b + c);
}
if (!p) {
p = d * 0.3;
}
if ((!a) || (a < Math.abs(c))) {
a = c;
var _local5 = p / 4;
} else {
var _local5 = (p / 6.283185) * Math.asin(c / a);
}
return((((a * Math.pow(2, -10 * t)) * Math.sin((((t * d) - _local5) * 6.283185) / p)) + c) + b);
}
static function easeInOut(t, b, c, d, a, p) {
if (t == 0) {
return(b);
}
t = t / (d / 2);
if (t == 2) {
return(b + c);
}
if (!p) {
p = d * 0.45;
}
if ((!a) || (a < Math.abs(c))) {
a = c;
var _local5 = p / 4;
} else {
var _local5 = (p / 6.283185) * Math.asin(c / a);
}
if (t < 1) {
t = t - 1;
return((-0.5 * ((a * Math.pow(2, 10 * t)) * Math.sin((((t * d) - _local5) * 6.283185) / p))) + b);
}
t = t - 1;
return(((((a * Math.pow(2, -10 * t)) * Math.sin((((t * d) - _local5) * 6.283185) / p)) * 0.5) + c) + b);
}
static var version = "1.1.0.52";
}
Symbol 361 MovieClip [__Packages.mx.transitions.easing.Strong] Frame 0
class mx.transitions.easing.Strong
{
function Strong () {
}
static function easeIn(t, b, c, d) {
t = t / d;
return((((((c * t) * t) * t) * t) * t) + b);
}
static function easeOut(t, b, c, d) {
t = (t / d) - 1;
return((c * (((((t * t) * t) * t) * t) + 1)) + b);
}
static function easeInOut(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return(((((((c / 2) * t) * t) * t) * t) * t) + b);
}
t = t - 2;
return(((c / 2) * (((((t * t) * t) * t) * t) + 2)) + b);
}
static var version = "1.1.0.52";
}
Symbol 19 MovieClip [__Packages.AsFlipPage] Frame 0
class AsFlipPage extends MovieClip
{
var _width, _height, stage_mc, stage_w, stage_h, pax, pay, pbx, pby, pcx, pcy, pdx, pdy, pex, pey, pfx, pfy, fullscreen_b, HighModeSetting_object, setContextMenuFun_b, Register_object, Register_user, createTextField, attachMovie, createEmptyMovieClip, all_page_v, logo_test_txt, book_mc, on_mc, on_page_v, bottom_shadow_b, shadow_bottom2, shadow_bottom1, page_side_b, page_side1_mc, page_side2_mc, load_page_title_array, drag_area, triangle, flip_mc, next_triangle, next_mc, on_triangle, hit_area_object, _ymouse, _xmouse, stop_time_si, FlipOnRelease_b, press_xmouse, press_ymouse, CueHitArea, onEnterFrame, flip_win, aim_x, aim_y, BufferCoefficient, end_filp_distance_v, removeMovieClip, if_auto_filp, StartFilpInclineX, StartFilpInclineY, go_to_page_v, bg_sound_array, bg_sound_v, bg_sound, bg_sound_position, shadow_b, shadow1_mc, shadow2_mc, shadow3_mc, mask1_shadow, mask2_shadow, mask3_shadow, shadow_alpha_v, auto_filp_time, page_title_array, so_gl, local_stop_time_si, filp_sound_str, filping_sound, list_page_v, events_fun_object, _parent, my_pj, _root_empiremue, empiremue, menu, getURL, exit_mc_str, if_set_local, _x, _y, FlipOnKeyUpDown_b, onKeyUp, onKeyDown, FlipKey_object;
function AsFlipPage () {
super();
init();
}
function init() {
super.init();
var _local4 = _width;
var _local3 = _height;
_width = 746;
_height = 535;
stage_mc._x = 0;
stage_mc._y = 0;
stage_w = (stage_mc._width = _local4);
stage_h = (stage_mc._height = _local3);
pax = stage_mc._x;
pay = stage_mc._y;
pbx = stage_mc._x;
pby = stage_mc._y + stage_h;
pcx = stage_mc._x + (stage_w / 2);
pcy = stage_mc._y;
pdx = stage_mc._x + (stage_w / 2);
pdy = stage_mc._y + stage_h;
pex = stage_mc._x + stage_w;
pey = stage_mc._y;
pfx = stage_mc._x + stage_w;
pfy = stage_mc._y + stage_h;
setFullscreenFun(fullscreen_b);
stage_mc._visible = false;
if ((HighModeSetting_object.RightBottomShadowMC == "default") or (HighModeSetting_object.RightBottomShadowMC == "")) {
HighModeSetting_object.RightBottomShadowMC = "shadow_bottom1";
}
if ((HighModeSetting_object.LeftBottomShadowMC == "default") or (HighModeSetting_object.LeftBottomShadowMC == "")) {
HighModeSetting_object.LeftBottomShadowMC = "shadow_bottom2";
}
if ((HighModeSetting_object.RightPageSideMC == "default") or (HighModeSetting_object.RightPageSideMC == "")) {
HighModeSetting_object.RightPageSideMC = "page_side1_mc";
}
if ((HighModeSetting_object.LeftPageSideMC == "default") or (HighModeSetting_object.LeftPageSideMC == "")) {
HighModeSetting_object.LeftPageSideMC = "page_side2_mc";
}
if ((HighModeSetting_object.FlipShadowMC1 == "default") or (HighModeSetting_object.FlipShadowMC1 == "")) {
HighModeSetting_object.FlipShadowMC1 = "shadow1_mc";
}
if ((HighModeSetting_object.FlipShadowMC2 == "default") or (HighModeSetting_object.FlipShadowMC2 == "")) {
HighModeSetting_object.FlipShadowMC2 = "shadow2_mc";
}
init_copy_mc_fun();
remove_flip_next_page_fun();
getLocalFun();
FlipOnKeyUpDown_fun();
_root_setContextMenuFun();
if (setContextMenuFun_b) {
setContextMenuFun();
}
}
function init_copy_mc_fun() {
if (((Register_object.RegisterName == _RN) and (Register_object.RegisterNumber == _RNU)) and (Register_object.SimpleName == _SN)) {
Register_user = _SN;
Register_ed = true;
} else {
Register_ed = false;
var r1 = String.fromCharCode(97 + random(24));
var r2 = random(24);
var r3 = String.fromCharCode(65 + random(24));
var nrt = ((r1 + r2) + r3);
createTextField(nrt, 19999 + random(9999), 100, 100, 300, 100);
var myformat = new TextFormat();
myformat.color = 16711680 /* 0xFF0000 */;
this[nrt].text = "AsFlipPage4.0.0";
this[nrt].selectable = false;
this[nrt].setTextFormat(myformat);
this[nrt]._x = pcx - 14;
this[nrt]._y = (pcy + (stage_h / 2)) - 11;
var r1 = String.fromCharCode(97 + random(24));
var r2 = random(24);
var r3 = String.fromCharCode(65 + random(24));
var r4 = random(99);
var nrm = (((r1 + r2) + r3) + r4);
attachMovie("test_txt", nrm, 29999 + random(9999));
this[nrm]._x = pcx - 10;
this[nrm]._y = pcy + (stage_h / 2);
var r1 = String.fromCharCode(97 + random(24));
var r2 = random(24);
var r4 = String.fromCharCode(65 + random(24));
var r3 = random(99);
var r6 = random(99);
var r5 = String.fromCharCode(65 + random(24));
var nrmn = (((((r1 + r2) + r3) + r4) + r5) + r6);
createEmptyMovieClip(nrmn, 9999 + random(99999));
with (this[nrmn]) {
beginFill(13421772, 30);
moveTo(_parent.pcx - 80, (_parent.pcy + (_parent.stage_h / 2)) - 10);
lineTo(_parent.pcx + 80, (_parent.pcy + (_parent.stage_h / 2)) - 10);
lineTo(_parent.pcx + 80, (_parent.pcy + (_parent.stage_h / 2)) + 30);
lineTo(_parent.pcx - 80, (_parent.pcy + (_parent.stage_h / 2)) + 30);
lineTo(_parent.pcx - 80, (_parent.pcy + (_parent.stage_h / 2)) - 10);
endFill();
}
this[nrmn].onRelease = function () {
(this.getURL("http://ssbx.39u.cn/afp.html", "_blank"));// not popped
};
Register_user = "!!!!\u672A\u6CE8\u518C!!!!";
if (all_page_v > 10) {
all_page_v = 10;
}
}
attachMovie("logo_test_txt", "logo_test_txt", 9998);
logo_test_txt._x = pcx;
logo_test_txt._y = pcy + (stage_h / 2);
attachMovie(book_mc, "on_mc", 90);
on_mc.gotoAndStop(on_page_v);
on_mc._x = pcx;
on_mc._y = pcy;
on_mc_MovieClipLoader_fun(on_mc);
if (bottom_shadow_b) {
attachMovie(HighModeSetting_object.RightBottomShadowMC, "shadow_bottom1", 10);
attachMovie(HighModeSetting_object.LeftBottomShadowMC, "shadow_bottom2", 20);
shadow_bottom1._x = (shadow_bottom2._x = pcx);
shadow_bottom1._y = (shadow_bottom2._y = pcy);
shadow_bottom1._width = (shadow_bottom2._width = (stage_w / 2) + 10);
shadow_bottom1._height = (shadow_bottom2._height = stage_h + 10);
}
if (page_side_b) {
attachMovie(HighModeSetting_object.RightPageSideMC, "page_side1_mc", 30);
attachMovie(HighModeSetting_object.LeftPageSideMC, "page_side2_mc", 40);
page_side1_mc._x = pex;
page_side1_mc._y = pey;
page_side2_mc._x = pax;
page_side2_mc._y = pay;
page_side1_mc._height = (page_side2_mc._height = stage_h);
}
}
function on_mc_MovieClipLoader_fun(_mc) {
_mc.Loader_mc.removeMovieClip(this);
if (load_page_title_array[on_page_v - 1].length >= 1) {
_mc.createEmptyMovieClip("Loader_mc", 100);
if (on_page_v == 1) {
_mc.Loader_mc._x = 0;
_mc.Loader_mc._y = 0;
} else {
_mc.Loader_mc._x = (-stage_w) / 2;
_mc.Loader_mc._y = 0;
}
_mc._mcl = new MovieClipLoader();
_mc._Listener = new Object();
_mc._Listener.onLoadStart = function (target_mc) {
target_mc._x = (-target_mc._parent._parent.stage_w) / 2;
target_mc._y = 0;
};
_mc._Listener.onLoadComplete = function (target_mc) {
target_mc._x = (-target_mc._parent._parent.stage_w) / 2;
target_mc._y = 0;
};
_mc._Listener.onLoadInit = function (target_mc) {
target_mc._x = (-target_mc._parent._parent.stage_w) / 2;
target_mc._y = 0;
};
_mc._mcl.addListener(_mc._Listener);
_mc._mcl.loadClip(load_page_title_array[on_page_v - 1], _mc.Loader_mc);
}
}
function set_mc_color_fun(mc, c) {
if (c.length > 2) {
var _local1 = Number(c);
var _local2 = Math.floor((_local1 / 256) / 256);
var _local4 = Math.floor((_local1 - ((_local2 * 256) * 256)) / 256);
var _local5 = Math.floor(((_local1 - ((_local2 * 256) * 256)) / 256) - (_local4 * 256));
var _local6 = new Color(mc);
var _local3 = new Object();
_local3 = {ra:"100", rb:_local2, ga:"100", gb:_local4, ba:"100", bb:_local5, aa:"100", ab:"0"};
_local6.setTransform(_local3);
}
}
function getDist(px1, py1, px2, py2) {
var _local3 = px2 - px1;
var _local2 = py2 - py1;
var _local1 = Math.sqrt(Math.pow(_local3, 2) + Math.pow(_local2, 2));
return(_local1);
}
function getAngle(px1, py1, px2, py2) {
var _local3 = px2 - px1;
var _local2 = py2 - py1;
var _local4 = Math.sqrt(Math.pow(_local3, 2) + Math.pow(_local2, 2));
var _local5 = _local3 / _local4;
var _local6 = Math.acos(_local5);
var _local1 = 180 / (Math.PI / _local6);
if (_local2 < 0) {
_local1 = -_local1;
} else if ((_local2 == 0) && (_local3 < 0)) {
_local1 = 180;
}
return(_local1);
}
function point_xy_arry_fun() {
switch (drag_area) {
case 1 :
var _local3 = getDist(pfx, pfy, point_xy_arry[0].x, point_xy_arry[0].y) / 2;
var _local2 = (pfx - point_xy_arry[0].x) / 2;
point_xy_arry[1].x = pfx - ((_local3 * _local3) / _local2);
point_xy_arry[1].y = pfy;
if (point_xy_arry[1].x < pdx) {
point_xy_arry[1].x = pdx;
point_xy_arry[1].y = pdy;
var _local16 = pdx + (((point_xy_arry[0].x - pdx) * (stage_w / 2)) / getDist(pdx, pdy, point_xy_arry[0].x, point_xy_arry[0].y));
var _local14 = pdy + ((((point_xy_arry[0].y - pdy) * stage_w) / 2) / getDist(pdx, pdy, point_xy_arry[0].x, point_xy_arry[0].y));
point_xy_arry[0].x = _local16;
point_xy_arry[0].y = _local14;
_local3 = getDist(pfx, pfy, point_xy_arry[0].x, point_xy_arry[0].y) / 2;
}
_local2 = (pfy - point_xy_arry[0].y) / 2;
var _local8 = (_local3 * _local3) / _local2;
point_xy_arry[2].x = pfx;
point_xy_arry[2].y = pfy - _local8;
if ((point_xy_arry[2].y < pey) or (point_xy_arry[0].y > pfy)) {
var _local4 = pex - (((pfx - point_xy_arry[1].x) * (pey - point_xy_arry[2].y)) / _local8);
var _local9 = pey;
if (_local4 < pcx) {
_local4 = pcx;
var _local13 = Math.atan2(point_xy_arry[0].y - pcy, point_xy_arry[0].x - pcx);
var _local12 = Math.acos((stage_w / 2) / getDist(pcx, pcy, point_xy_arry[0].x, point_xy_arry[0].y));
var _local7 = _local13 - _local12;
var _local6 = pcx + ((stage_w / 2) * Math.cos(_local7));
var _local5 = pcy + ((stage_w / 2) * Math.sin(_local7));
var _local10 = (stage_h / Math.sqrt(Math.pow(getDist(pcx, pcy, point_xy_arry[0].x, point_xy_arry[0].y), 2) - Math.pow(stage_w / 2, 2))) * 0.999;
var _local17 = _local6 + ((point_xy_arry[0].x - _local6) * _local10);
var _local15 = _local5 + ((point_xy_arry[0].y - _local5) * _local10);
point_xy_arry[0].x = _local17;
point_xy_arry[0].y = _local15;
point_xy_arry_fun();
return(undefined);
}
var _local11 = getDist(point_xy_arry[2].x, point_xy_arry[2].y, _local4, _local9);
_local3 = ((pex - _local4) * (pey - point_xy_arry[2].y)) / _local11;
_local2 = (_local3 * _local3) / (pex - _local4);
point_xy_arry[3].x = pex - (_local2 * 2);
_local2 = (_local3 * _local3) / (pey - point_xy_arry[2].y);
point_xy_arry[3].y = pey - (_local2 * 2);
point_xy_arry[2].x = _local4;
point_xy_arry[2].y = _local9;
} else {
point_xy_arry[3].x = point_xy_arry[2].x;
point_xy_arry[3].y = point_xy_arry[2].y;
}
break;
case 2 :
_local3 = getDist(pbx, pby, point_xy_arry[0].x, point_xy_arry[0].y) / 2;
_local2 = (point_xy_arry[0].x - pbx) / 2;
point_xy_arry[1].x = pbx + ((_local3 * _local3) / _local2);
point_xy_arry[1].y = pby;
if (point_xy_arry[1].x > pdx) {
point_xy_arry[1].x = pdx;
point_xy_arry[1].y = pdy;
var _local16 = pdx + (((point_xy_arry[0].x - pdx) * (stage_w / 2)) / getDist(pdx, pdy, point_xy_arry[0].x, point_xy_arry[0].y));
var _local14 = pdy + ((((point_xy_arry[0].y - pdy) * stage_w) / 2) / getDist(pdx, pdy, point_xy_arry[0].x, point_xy_arry[0].y));
point_xy_arry[0].x = _local16;
point_xy_arry[0].y = _local14;
_local3 = getDist(pbx, pby, point_xy_arry[0].x, point_xy_arry[0].y) / 2;
}
_local2 = (pby - point_xy_arry[0].y) / 2;
_local8 = (_local3 * _local3) / _local2;
point_xy_arry[2].x = pbx;
point_xy_arry[2].y = pby - _local8;
if ((point_xy_arry[2].y < pay) or (point_xy_arry[0].y > pby)) {
var _local4 = pax + (((point_xy_arry[1].x - pbx) * (pay - point_xy_arry[2].y)) / _local8);
var _local9 = pay;
if (_local4 > pcx) {
_local4 = pcx;
var _local13 = Math.atan2(point_xy_arry[0].y - pcy, point_xy_arry[0].x - pcx);
var _local12 = Math.acos((stage_w / 2) / getDist(pcx, pcy, point_xy_arry[0].x, point_xy_arry[0].y));
var _local7 = _local13 - _local12;
var _local6 = pcx + ((stage_w / 2) * Math.cos(_local7));
var _local5 = pcy + ((stage_w / 2) * Math.sin(_local7));
var _local10 = (stage_h / Math.sqrt(Math.pow(getDist(pcx, pcy, point_xy_arry[0].x, point_xy_arry[0].y), 2) - Math.pow(stage_w / 2, 2))) * 0.999;
var _local17 = _local6 + ((point_xy_arry[0].x - _local6) * _local10);
var _local15 = _local5 + ((point_xy_arry[0].y - _local5) * _local10);
point_xy_arry[0].x = _local17;
point_xy_arry[0].y = _local15;
point_xy_arry_fun();
return(undefined);
}
var _local11 = getDist(point_xy_arry[2].x, point_xy_arry[2].y, _local4, _local9);
_local3 = ((_local4 - pax) * (pay - point_xy_arry[2].y)) / _local11;
_local2 = (_local3 * _local3) / (_local4 - pax);
point_xy_arry[3].x = pax + (_local2 * 2);
_local2 = (_local3 * _local3) / (pay - point_xy_arry[2].y);
point_xy_arry[3].y = pay - (_local2 * 2);
point_xy_arry[2].x = _local4;
point_xy_arry[2].y = _local9;
} else {
point_xy_arry[3].x = point_xy_arry[2].x;
point_xy_arry[3].y = point_xy_arry[2].y;
}
break;
case 3 :
_local3 = getDist(pex, pey, tem_array[0].x, tem_array[0].y) / 2;
_local2 = (pex - tem_array[0].x) / 2;
tem_array[1].x = pex - ((_local3 * _local3) / _local2);
tem_array[1].y = pey;
if (tem_array[1].x < pcx) {
tem_array[1].x = pcx;
tem_array[1].y = pcy;
var _local16 = pcx + (((tem_array[0].x - pcx) * (stage_w / 2)) / getDist(pcx, pcy, tem_array[0].x, tem_array[0].y));
var _local14 = pcy + (((tem_array[0].y - pcy) * (stage_w / 2)) / getDist(pcx, pcy, tem_array[0].x, tem_array[0].y));
tem_array[0].x = _local16;
tem_array[0].y = _local14;
_local3 = getDist(pex, pey, tem_array[0].x, tem_array[0].y) / 2;
}
_local2 = (pey - tem_array[0].y) / 2;
_local8 = (_local3 * _local3) / _local2;
tem_array[2].x = pex;
tem_array[2].y = pey - _local8;
if ((tem_array[2].y > pfy) or (tem_array[0].y < pey)) {
var _local4 = pfx - (((pex - tem_array[1].x) * (pfy - tem_array[2].y)) / _local8);
var _local9 = pfy;
if (_local4 < pdx) {
_local4 = pdx;
var _local13 = Math.atan2(tem_array[0].y - pdy, tem_array[0].x - pdx);
var _local12 = Math.acos((stage_w / 2) / getDist(pdx, pdy, tem_array[0].x, tem_array[0].y));
var _local7 = _local13 - _local12;
var _local6 = pdx + ((stage_w / 2) * Math.cos(_local7));
var _local5 = pdy + ((stage_w / 2) * Math.sin(_local7));
var _local10 = (stage_h / Math.sqrt(Math.pow(getDist(pdx, pdy, tem_array[0].x, tem_array[0].y), 2) - Math.pow(stage_w / 2, 2))) * 0.999;
var _local17 = _local6 + ((tem_array[0].x - _local6) * _local10);
var _local15 = _local5 + ((tem_array[0].y - _local5) * _local10);
tem_array[0].x = _local17;
tem_array[0].y = _local15;
point_xy_arry_fun();
return(undefined);
}
var _local11 = getDist(tem_array[2].x, tem_array[2].y, _local4, _local9);
_local3 = ((pfx - _local4) * (pfy - tem_array[2].y)) / _local11;
_local2 = (_local3 * _local3) / (pfx - _local4);
tem_array[3].x = pfx - (_local2 * 2);
_local2 = (_local3 * _local3) / (pfy - tem_array[2].y);
tem_array[3].y = pfy - (_local2 * 2);
tem_array[2].x = _local4;
tem_array[2].y = _local9;
} else {
tem_array[3].x = tem_array[2].x;
tem_array[3].y = tem_array[2].y;
}
point_xy_arry[0].x = tem_array[3].x;
point_xy_arry[0].y = tem_array[3].y;
point_xy_arry[1].x = tem_array[2].x;
point_xy_arry[1].y = tem_array[2].y;
point_xy_arry[2].x = tem_array[1].x;
point_xy_arry[2].y = tem_array[1].y;
point_xy_arry[3].x = tem_array[0].x;
point_xy_arry[3].y = tem_array[0].y;
break;
case 4 :
_local3 = getDist(pax, pay, tem_array[0].x, tem_array[0].y) / 2;
_local2 = (pax - tem_array[0].x) / 2;
tem_array[1].x = pax - ((_local3 * _local3) / _local2);
tem_array[1].y = pey;
if (tem_array[1].x > pcx) {
tem_array[1].x = pcx;
tem_array[1].y = pcy;
var _local16 = pcx + (((tem_array[0].x - pcx) * (stage_w / 2)) / getDist(pcx, pcy, tem_array[0].x, tem_array[0].y));
var _local14 = pcy + (((tem_array[0].y - pcy) * (stage_w / 2)) / getDist(pcx, pcy, tem_array[0].x, tem_array[0].y));
tem_array[0].x = _local16;
tem_array[0].y = _local14;
_local3 = getDist(pax, pay, tem_array[0].x, tem_array[0].y) / 2;
}
_local2 = (pay - tem_array[0].y) / 2;
_local8 = (_local3 * _local3) / _local2;
tem_array[2].x = pax;
tem_array[2].y = pay - _local8;
if ((tem_array[2].y > pby) or (tem_array[0].y < pay)) {
var _local4 = pbx - (((pax - tem_array[1].x) * (pby - tem_array[2].y)) / _local8);
var _local9 = pby;
if (_local4 > pdx) {
_local4 = pdx;
var _local13 = Math.atan2(tem_array[0].y - pdy, tem_array[0].x - pdx);
var _local12 = Math.acos((stage_w / 2) / getDist(pdx, pdy, tem_array[0].x, tem_array[0].y));
var _local7 = _local13 - _local12;
var _local6 = pdx + ((stage_w / 2) * Math.cos(_local7));
var _local5 = pdy + ((stage_w / 2) * Math.sin(_local7));
var _local10 = (stage_h / Math.sqrt(Math.pow(getDist(pdx, pdy, tem_array[0].x, tem_array[0].y), 2) - Math.pow(stage_w / 2, 2))) * 0.999;
var _local17 = _local6 + ((tem_array[0].x - _local6) * _local10);
var _local15 = _local5 + ((tem_array[0].y - _local5) * _local10);
tem_array[0].x = _local17;
tem_array[0].y = _local15;
point_xy_arry_fun();
return(undefined);
}
var _local11 = getDist(tem_array[2].x, tem_array[2].y, _local4, _local9);
_local3 = ((pbx - _local4) * (pby - tem_array[2].y)) / _local11;
_local2 = (_local3 * _local3) / (pbx - _local4);
tem_array[3].x = pbx - (_local2 * 2);
_local2 = (_local3 * _local3) / (pby - tem_array[2].y);
tem_array[3].y = pby - (_local2 * 2);
tem_array[2].x = _local4;
tem_array[2].y = _local9;
} else {
tem_array[3].x = tem_array[2].x;
tem_array[3].y = tem_array[2].y;
}
point_xy_arry[0].x = tem_array[3].x;
point_xy_arry[0].y = tem_array[3].y;
point_xy_arry[1].x = tem_array[2].x;
point_xy_arry[1].y = tem_array[2].y;
point_xy_arry[2].x = tem_array[1].x;
point_xy_arry[2].y = tem_array[1].y;
point_xy_arry[3].x = tem_array[0].x;
point_xy_arry[3].y = tem_array[0].y;
}
}
function drawMask1_fun() {
createEmptyMovieClip("triangle", 301);
with (triangle) {
beginFill(16777215, 100);
moveTo(_parent.point_xy_arry[0].x, _parent.point_xy_arry[0].y);
lineTo(_parent.point_xy_arry[1].x, _parent.point_xy_arry[1].y);
lineTo(_parent.point_xy_arry[2].x, _parent.point_xy_arry[2].y);
lineTo(_parent.point_xy_arry[3].x, _parent.point_xy_arry[3].y);
lineTo(_parent.point_xy_arry[0].x, _parent.point_xy_arry[0].y);
endFill();
}
flip_mc.setMask(triangle);
}
function drawMask2_fun() {
createEmptyMovieClip("next_triangle", 201);
with (next_triangle) {
beginFill(16777215, 100);
moveTo(_parent.point_xy_arry[1].x, _parent.point_xy_arry[1].y);
if ((_parent.drag_area == 1) or (_parent.drag_area == 3)) {
lineTo(_parent.pfx, _parent.pfy);
lineTo(_parent.pex, _parent.pey);
} else if ((_parent.drag_area == 2) or (_parent.drag_area == 4)) {
lineTo(_parent.pbx, _parent.pby);
lineTo(_parent.pax, _parent.pay);
}
lineTo(_parent.point_xy_arry[2].x, _parent.point_xy_arry[2].y);
lineTo(_parent.point_xy_arry[1].x, _parent.point_xy_arry[1].y);
endFill();
}
next_mc.setMask(next_triangle);
}
function drawMask3_fun() {
createEmptyMovieClip("on_triangle", 101);
with (on_triangle) {
beginFill(16777215, 100);
if ((!_parent.flip_end) or _parent.CueHitArea_ing) {
moveTo(_parent.point_xy_arry[1].x, _parent.point_xy_arry[1].y);
if (_parent.drag_area == 1) {
lineTo(_parent.pbx, _parent.pby);
lineTo(_parent.pax, _parent.pay);
if (_parent.point_xy_arry[2].y > _parent.pcy) {
lineTo(_parent.pex, _parent.pey);
lineTo(_parent.point_xy_arry[2].x, _parent.point_xy_arry[2].y);
} else {
lineTo(_parent.point_xy_arry[2].x, _parent.point_xy_arry[2].y);
}
} else if (_parent.drag_area == 3) {
if (_parent.point_xy_arry[1].y < _parent.pdy) {
lineTo(_parent.pfx, _parent.pfy);
}
lineTo(_parent.pbx, _parent.pby);
lineTo(_parent.pax, _parent.pay);
lineTo(_parent.point_xy_arry[2].x, _parent.point_xy_arry[2].y);
} else if (_parent.drag_area == 2) {
lineTo(_parent.pfx, _parent.pfy);
lineTo(_parent.pex, _parent.pey);
if (_parent.point_xy_arry[2].y > _parent.pcy) {
lineTo(_parent.pax, _parent.pay);
lineTo(_parent.point_xy_arry[2].x, _parent.point_xy_arry[2].y);
} else {
lineTo(_parent.point_xy_arry[2].x, _parent.point_xy_arry[2].y);
}
} else if (_parent.drag_area == 4) {
if (_parent.point_xy_arry[1].y < _parent.pdy) {
lineTo(_parent.pbx, _parent.pby);
}
lineTo(_parent.pfx, _parent.pfy);
lineTo(_parent.pex, _parent.pey);
lineTo(_parent.point_xy_arry[2].x, _parent.point_xy_arry[2].y);
}
lineTo(_parent.point_xy_arry[1].x, _parent.point_xy_arry[1].y);
endFill();
} else {
moveTo(_parent.pax, _parent.pay);
lineTo(_parent.pex, _parent.pey);
lineTo(_parent.pfx, _parent.pfy);
lineTo(_parent.pbx, _parent.pby);
lineTo(_parent.pax, _parent.pay);
endFill();
}
}
on_mc.setMask(on_triangle);
if (CueHitArea_ing) {
}
}
function set_flip_mc_fun() {
var _local4 = getAngle(point_xy_arry[0].x, point_xy_arry[0].y, point_xy_arry[3].x, point_xy_arry[3].y);
flip_mc._rotation = _local4 + 90;
var _local2 = getDist(pbx, pby, pcx, pcy);
if (drag_area == 1) {
var _local3 = getAngle(pbx, pby, pcx, pcy);
flip_mc._x = point_xy_arry[0].x + (Math.cos(((flip_mc._rotation + _local3) * Math.PI) / 180) * _local2);
flip_mc._y = point_xy_arry[0].y + (Math.sin(((flip_mc._rotation + _local3) * Math.PI) / 180) * _local2);
} else if (drag_area == 2) {
var _local3 = getAngle(pfx, pfy, pcx, pcy);
flip_mc._x = point_xy_arry[0].x + (Math.cos(((flip_mc._rotation + _local3) * Math.PI) / 180) * _local2);
flip_mc._y = point_xy_arry[0].y + (Math.sin(((flip_mc._rotation + _local3) * Math.PI) / 180) * _local2);
} else if (drag_area == 3) {
flip_mc._x = point_xy_arry[3].x + ((Math.cos((flip_mc._rotation * Math.PI) / 180) * stage_w) / 2);
flip_mc._y = point_xy_arry[3].y + ((Math.sin((flip_mc._rotation * Math.PI) / 180) * stage_w) / 2);
} else if (drag_area == 4) {
flip_mc._x = point_xy_arry[3].x - ((Math.cos((flip_mc._rotation * Math.PI) / 180) * stage_w) / 2);
flip_mc._y = point_xy_arry[3].y - ((Math.sin((flip_mc._rotation * Math.PI) / 180) * stage_w) / 2);
}
}
function onMouseDown() {
Stage.showMenu = true;
if ((!flip_ing) and flip_end) {
if (if_out_page_area_fun()) {
var _local4;
var _local3;
var _local2;
if ((_xmouse > (pfx - hit_area_object.RightBottomWidth)) and (_ymouse > (pfy - hit_area_object.RightBottomHigh))) {
_local2 = 1;
_local4 = pfx;
_local3 = pfy;
} else if ((_xmouse < (pbx + hit_area_object.LiftBottomWidth)) and (_ymouse > (pby - hit_area_object.LiftBottomHigh))) {
_local2 = 2;
_local4 = pbx;
_local3 = pby;
} else if ((_xmouse > (pex - hit_area_object.RightTopWidth)) and (_ymouse < (pey + hit_area_object.RightTopHigh))) {
_local2 = 3;
_local4 = pex;
_local3 = pey;
} else if ((_xmouse < (pax + hit_area_object.LiftTopWidth)) and (_ymouse < (pay + hit_area_object.LiftTopHigh))) {
_local2 = 4;
_local4 = pax;
_local3 = pay;
} else {
_local2 = 0;
}
if ((((_local2 == 1) or (_local2 == 3)) and (on_page_v < all_page_v)) or (((_local2 == 2) or (_local2 == 4)) and (on_page_v > 1))) {
drag_area = _local2;
OnStartFlip();
clearInterval(stop_time_si);
if (FlipOnRelease_b) {
press_xmouse = _xmouse;
press_ymouse = _ymouse;
}
if (CueHitArea) {
point_xy_arry[0].x = (tem_array[0].x = _xmouse);
point_xy_arry[0].y = (tem_array[0].y = _ymouse);
} else {
point_xy_arry[0].x = (tem_array[0].x = _local4);
point_xy_arry[0].y = (tem_array[0].y = _local3);
}
if (CueHitArea_ing) {
CueHitArea_ing = false;
OnFinishCueHitAreaing();
}
flip_ing = true;
flip_end = false;
on_mc._visible = true;
attachMovie(book_mc, "flip_mc", 300);
attachMovie(book_mc, "next_mc", 200);
next_mc._x = pcx;
next_mc._y = pcy;
if ((drag_area == 1) or (drag_area == 3)) {
next_mc.gotoAndStop(on_page_v + 1);
flip_mc.gotoAndStop(on_page_v + 1);
} else if ((drag_area == 2) or (drag_area == 4)) {
next_mc.gotoAndStop(on_page_v - 1);
flip_mc.gotoAndStop(on_page_v - 1);
}
onEnterFrame = onMouseMove_filp_fun;
onMouseMove_filp_fun();
}
}
}
}
function press_filp_fun() {
if (FlipOnRelease_b) {
var _local2 = 8;
if (Math.sqrt(Math.pow(press_xmouse - _xmouse, 2) + Math.pow(press_ymouse - _ymouse, 2)) <= _local2) {
return(true);
}
return(false);
}
return(false);
}
function onMouseUp() {
if (flip_ing) {
flip_ing = false;
flip_end = false;
if (drag_area == 1) {
if ((point_xy_arry[0].x < pcx) or press_filp_fun()) {
flip_win = true;
aim_x = pbx;
aim_y = pby;
filp_sound_fun();
onEnterFrame = function () {
this.point_xy_arry[0].x = this.point_xy_arry[0].x + ((this.aim_x - this.point_xy_arry[0].x) / (1 + this.flip_speed));
this.point_xy_arry[0].y = this.point_xy_arry[0].y + ((this.aim_y - this.point_xy_arry[0].y) / (1 + this.flip_speed));
this.flip_ing_fun();
if (Math.sqrt(Math.pow(this.point_xy_arry[0].x - this.aim_x, 2) + Math.pow(this.point_xy_arry[0].y - this.aim_y, 2)) <= this.end_filp_distance_v) {
this.show_next_page_fun();
}
};
} else {
flip_win = false;
aim_x = pfx;
aim_y = pfy;
filp_sound_fun();
onEnterFrame = function () {
this.point_xy_arry[0].x = this.point_xy_arry[0].x + ((this.aim_x - this.point_xy_arry[0].x) / (1 + this.flip_speed));
this.point_xy_arry[0].y = this.point_xy_arry[0].y + ((this.aim_y - this.point_xy_arry[0].y) / (1 + this.flip_speed));
this.flip_ing_fun();
if (Math.sqrt(Math.pow(this.point_xy_arry[0].x - this.aim_x, 2) + Math.pow(this.point_xy_arry[0].y - this.aim_y, 2)) <= this.end_filp_distance_v) {
this.no_flip_page_fun();
}
};
}
} else if (drag_area == 3) {
if ((point_xy_arry[3].x < pcx) or press_filp_fun()) {
flip_win = true;
aim_x = pax;
aim_y = pay;
filp_sound_fun();
onEnterFrame = function () {
this.tem_array[0].x = this.tem_array[0].x + ((this.aim_x - this.tem_array[0].x) / (1 + this.flip_speed));
this.tem_array[0].y = this.tem_array[0].y + ((this.aim_y - this.tem_array[0].y) / (1 + this.flip_speed));
this.flip_ing_fun();
if (Math.sqrt(Math.pow(this.point_xy_arry[3].x - this.aim_x, 2) + Math.pow(this.point_xy_arry[3].y - this.aim_y, 2)) <= this.end_filp_distance_v) {
this.show_next_page_fun();
}
};
} else {
flip_win = false;
aim_x = pex;
aim_y = pey;
filp_sound_fun();
onEnterFrame = function () {
this.tem_array[0].x = this.tem_array[0].x + ((this.aim_x - this.tem_array[0].x) / (1 + this.flip_speed));
this.tem_array[0].y = this.tem_array[0].y + ((this.aim_y - this.tem_array[0].y) / (1 + this.flip_speed));
this.flip_ing_fun();
if (Math.sqrt(Math.pow(this.point_xy_arry[3].x - this.aim_x, 2) + Math.pow(this.point_xy_arry[3].y - this.aim_y, 2)) <= this.end_filp_distance_v) {
this.no_flip_page_fun();
}
};
}
} else if (drag_area == 2) {
if ((point_xy_arry[0].x > pcx) or press_filp_fun()) {
flip_win = true;
aim_x = pfx;
aim_y = pfy;
filp_sound_fun();
onEnterFrame = function () {
this.point_xy_arry[0].x = this.point_xy_arry[0].x + ((this.aim_x - this.point_xy_arry[0].x) / (1 + this.flip_speed));
this.point_xy_arry[0].y = this.point_xy_arry[0].y + ((this.aim_y - this.point_xy_arry[0].y) / (1 + this.flip_speed));
this.flip_ing_fun();
if (Math.sqrt(Math.pow(this.point_xy_arry[0].x - this.aim_x, 2) + Math.pow(this.point_xy_arry[0].y - this.aim_y, 2)) <= this.end_filp_distance_v) {
this.show_prev_page_fun();
}
};
} else {
flip_win = false;
aim_x = pbx;
aim_y = pby;
filp_sound_fun();
onEnterFrame = function () {
this.point_xy_arry[0].x = this.point_xy_arry[0].x + ((this.aim_x - this.point_xy_arry[0].x) / (1 + this.flip_speed));
this.point_xy_arry[0].y = this.point_xy_arry[0].y + ((this.aim_y - this.point_xy_arry[0].y) / (1 + this.flip_speed));
this.flip_ing_fun();
if (Math.sqrt(Math.pow(this.point_xy_arry[0].x - this.aim_x, 2) + Math.pow(this.point_xy_arry[0].y - this.aim_y, 2)) <= this.end_filp_distance_v) {
this.no_flip_page_fun();
}
};
}
} else if (drag_area == 4) {
if ((point_xy_arry[3].x > pcx) or press_filp_fun()) {
flip_win = true;
aim_x = pex;
aim_y = pey;
filp_sound_fun();
onEnterFrame = function () {
this.tem_array[0].x = this.tem_array[0].x + ((this.aim_x - this.tem_array[0].x) / (1 + this.flip_speed));
this.tem_array[0].y = this.tem_array[0].y + ((this.aim_y - this.tem_array[0].y) / (1 + this.flip_speed));
this.flip_ing_fun();
if (Math.sqrt(Math.pow(this.point_xy_arry[3].x - this.aim_x, 2) + Math.pow(this.point_xy_arry[3].y - this.aim_y, 2)) <= this.end_filp_distance_v) {
this.show_prev_page_fun();
}
};
} else {
flip_win = false;
aim_x = pax;
aim_y = pay;
filp_sound_fun();
onEnterFrame = function () {
this.tem_array[0].x = this.tem_array[0].x + ((this.aim_x - this.tem_array[0].x) / (1 + this.flip_speed));
this.tem_array[0].y = this.tem_array[0].y + ((this.aim_y - this.tem_array[0].y) / (1 + this.flip_speed));
this.flip_ing_fun();
if (Math.sqrt(Math.pow(this.point_xy_arry[3].x - this.aim_x, 2) + Math.pow(this.point_xy_arry[3].y - this.aim_y, 2)) <= this.end_filp_distance_v) {
this.no_flip_page_fun();
}
};
}
}
}
}
function onMouseMove_filp_fun() {
var _local3;
var _local2;
if (drag_area == 1) {
if (_xmouse > pfx) {
_local3 = pfx - 0.01;
_local2 = pfy - 0.01;
} else {
_local3 = _xmouse;
_local2 = _ymouse;
}
} else if (drag_area == 3) {
if (_xmouse > pfx) {
_local3 = pex - 0.01;
_local2 = pey + 0.01;
} else {
_local3 = _xmouse;
_local2 = _ymouse;
}
} else if (drag_area == 2) {
if (_xmouse < pax) {
_local3 = pbx + 0.01;
_local2 = pby - 0.01;
} else {
_local3 = _xmouse;
_local2 = _ymouse;
}
} else if (drag_area == 4) {
if (_xmouse < pax) {
_local3 = pax + 0.01;
_local2 = pay + 0.01;
} else {
_local3 = _xmouse;
_local2 = _ymouse;
}
}
if ((drag_area == 1) or (drag_area == 2)) {
point_xy_arry[0].x = point_xy_arry[0].x + ((_local3 - point_xy_arry[0].x) / BufferCoefficient);
point_xy_arry[0].y = point_xy_arry[0].y + ((_local2 - point_xy_arry[0].y) / BufferCoefficient);
} else if ((drag_area == 3) or (drag_area == 4)) {
tem_array[0].x = tem_array[0].x + ((_local3 - tem_array[0].x) / BufferCoefficient);
tem_array[0].y = tem_array[0].y + ((_local2 - tem_array[0].y) / BufferCoefficient);
}
flip_ing_fun();
}
function set_CueHitArea_fun() {
var _local3;
var _local2;
if (!CueHitArea_ing) {
if (if_out_page_area_fun()) {
if ((_xmouse > (pfx - hit_area_object.RightBottomWidth)) and (_ymouse > (pfy - hit_area_object.RightBottomHigh))) {
drag_area = 1;
_local3 = pfx;
_local2 = pfy;
} else if ((_xmouse < (pbx + hit_area_object.LiftBottomWidth)) and (_ymouse > (pby - hit_area_object.LiftBottomHigh))) {
drag_area = 2;
_local3 = pbx;
_local2 = pby;
} else if ((_xmouse > (pex - hit_area_object.RightTopWidth)) and (_ymouse < (pey + hit_area_object.RightTopHigh))) {
drag_area = 3;
_local3 = pex;
_local2 = pey;
} else if ((_xmouse < (pax + hit_area_object.LiftTopWidth)) and (_ymouse < (pay + hit_area_object.LiftTopHigh))) {
drag_area = 4;
_local3 = pax;
_local2 = pay;
} else {
drag_area = 0;
}
if ((((drag_area == 1) or (drag_area == 3)) and (on_page_v < all_page_v)) or (((drag_area == 2) or (drag_area == 4)) and (on_page_v > 1))) {
clearInterval(stop_time_si);
point_xy_arry[0].x = (tem_array[0].x = _local3);
point_xy_arry[0].y = (tem_array[0].y = _local2);
on_mc._visible = true;
attachMovie(book_mc, "flip_mc", 300);
attachMovie(book_mc, "next_mc", 200);
next_mc._x = pcx;
next_mc._y = pcy;
if ((drag_area == 1) or (drag_area == 3)) {
next_mc.gotoAndStop(on_page_v + 1);
flip_mc.gotoAndStop(on_page_v + 1);
} else if ((drag_area == 2) or (drag_area == 4)) {
next_mc.gotoAndStop(on_page_v - 1);
flip_mc.gotoAndStop(on_page_v - 1);
}
onMouseMove_filp_fun();
CueHitArea_ing = true;
OnStartCueHitAreaing();
}
}
} else {
if (drag_area == 1) {
if (((_xmouse < (pfx - hit_area_object.RightBottomWidth)) or (_ymouse < (pfy - hit_area_object.RightBottomHigh))) or (!if_out_page_area_fun())) {
_local3 = pfx;
_local2 = pfy;
if (Math.sqrt(Math.pow(point_xy_arry[0].x - _local3, 2) + Math.pow(point_xy_arry[0].y - _local2, 2)) <= end_filp_distance_v) {
no_flip_page_fun();
}
} else {
_local3 = _xmouse;
_local2 = _ymouse;
}
} else if (drag_area == 3) {
if (((_xmouse < (pex - hit_area_object.RightTopWidth)) or (_ymouse > (pey + hit_area_object.RightTopHigh))) or (!if_out_page_area_fun())) {
_local3 = pex;
_local2 = pey;
if (Math.sqrt(Math.pow(tem_array[0].x - _local3, 2) + Math.pow(tem_array[0].y - _local2, 2)) <= end_filp_distance_v) {
no_flip_page_fun();
}
} else {
_local3 = _xmouse;
_local2 = _ymouse;
}
} else if (drag_area == 2) {
if (((_xmouse > (pbx + hit_area_object.LiftBottomWidth)) or (_ymouse < (pby - hit_area_object.LiftBottomHigh))) or (!if_out_page_area_fun())) {
_local3 = pbx;
_local2 = pby;
if (Math.sqrt(Math.pow(point_xy_arry[0].x - _local3, 2) + Math.pow(point_xy_arry[0].y - _local2, 2)) <= end_filp_distance_v) {
no_flip_page_fun();
}
} else {
_local3 = _xmouse;
_local2 = _ymouse;
}
} else if (drag_area == 4) {
if (((_xmouse > (pax + hit_area_object.LiftTopWidth)) or (_ymouse > (pay + hit_area_object.LiftTopHigh))) or (!if_out_page_area_fun())) {
_local3 = pax;
_local2 = pay;
if (Math.sqrt(Math.pow(tem_array[0].x - _local3, 2) + Math.pow(tem_array[0].y - _local2, 2)) <= end_filp_distance_v) {
no_flip_page_fun();
}
} else {
_local3 = _xmouse;
_local2 = _ymouse;
}
}
if ((drag_area == 1) or (drag_area == 2)) {
point_xy_arry[0].x = point_xy_arry[0].x + ((_local3 - point_xy_arry[0].x) / BufferCoefficient);
point_xy_arry[0].y = point_xy_arry[0].y + ((_local2 - point_xy_arry[0].y) / BufferCoefficient);
} else if ((drag_area == 3) or (drag_area == 4)) {
tem_array[0].x = tem_array[0].x + ((_local3 - tem_array[0].x) / BufferCoefficient);
tem_array[0].y = tem_array[0].y + ((_local2 - tem_array[0].y) / BufferCoefficient);
}
flip_ing_fun();
}
}
function if_out_page_area_fun() {
if ((((_xmouse > pax) and (_xmouse < pex)) and (_ymouse > pay)) and (_ymouse < pby)) {
return(true);
}
return(false);
}
function show_next_page_fun() {
flip_end = true;
on_page_v++;
on_mc.gotoAndStop(on_page_v);
remove_flip_next_page_fun();
on_mc_MovieClipLoader_fun(on_mc);
}
function show_prev_page_fun() {
flip_end = true;
on_page_v--;
on_mc.gotoAndStop(on_page_v);
remove_flip_next_page_fun();
on_mc_MovieClipLoader_fun(on_mc);
}
function show_the_page_fun(v) {
flip_end = true;
on_page_v = v;
on_mc.gotoAndStop(on_page_v);
remove_flip_next_page_fun();
on_mc_MovieClipLoader_fun(on_mc);
}
function no_flip_page_fun() {
flip_end = true;
remove_flip_next_page_fun();
}
function remove_flip_next_page_fun() {
delete onEnterFrame;
if (!shadow_bottom1._visible) {
shadow_bottom1._visible = true;
shadow_bottom1._alpha = 0;
shadow_bottom1.onEnterFrame = function () {
this._visible = true;
this._alpha = this._alpha + 20;
if (this._alpha >= 100) {
delete this.onEnterFrame;
}
};
}
if (!shadow_bottom2._visible) {
shadow_bottom2._visible = true;
shadow_bottom2._alpha = 0;
shadow_bottom2.onEnterFrame = function () {
this._visible = true;
this._alpha = this._alpha + 20;
if (this._alpha >= 100) {
delete this.onEnterFrame;
}
};
}
if (on_page_v == 1) {
shadow_bottom2._visible = false;
delete shadow_bottom2.onEnterFrame;
} else if (on_page_v == all_page_v) {
shadow_bottom1._visible = false;
delete shadow_bottom1.onEnterFrame;
}
if (!page_side1_mc._visible) {
page_side1_mc._visible = true;
page_side1_mc._alpha = 0;
page_side1_mc.onEnterFrame = function () {
this._visible = true;
this._alpha = this._alpha + 20;
if (this._alpha >= 100) {
delete this.onEnterFrame;
}
};
}
if (!page_side2_mc._visible) {
page_side2_mc._visible = true;
page_side2_mc._alpha = 0;
page_side2_mc.onEnterFrame = function () {
this._visible = true;
this._alpha = this._alpha + 20;
if (this._alpha >= 100) {
delete this.onEnterFrame;
}
};
}
if ((on_page_v == 1) or (on_page_v == all_page_v)) {
page_side2_mc._visible = false;
delete page_side2_mc.onEnterFrame;
page_side1_mc._visible = false;
delete page_side1_mc.onEnterFrame;
}
drawMask3_fun();
on_mc._visible = true;
flip_mc._visible = false;
next_mc._visible = false;
next_triangle._visible = false;
triangle._visible = false;
(removeMovieClip());// not popped
(removeMovieClip());// not popped
(removeMovieClip());// not popped
(removeMovieClip());// not popped
set_bg_sound_fun();
set_page_title_fun();
set_end_shadow_fun();
if (if_auto_filp) {
auto_filp_fun();
}
if (CueHitArea) {
if (CueHitArea_ing) {
CueHitArea_ing = false;
OnFinishCueHitAreaing();
} else {
OnFinishFlip();
}
onEnterFrame = set_CueHitArea_fun;
} else {
OnFinishFlip();
}
}
function go_next_page_fun() {
if ((on_page_v < all_page_v) and flip_end) {
OnStartFlip();
clearInterval(stop_time_si);
flip_ing = false;
flip_end = false;
drag_area = 1;
flip_win = true;
attachMovie(book_mc, "flip_mc", 300);
attachMovie(book_mc, "next_mc", 200);
next_mc._x = pcx;
next_mc._y = pcy;
next_mc.gotoAndStop(on_page_v + 1);
flip_mc.gotoAndStop(on_page_v + 1);
on_mc._visible = true;
point_xy_arry[0].x = pfx - StartFilpInclineX;
point_xy_arry[0].y = pfy - StartFilpInclineY;
flip_ing_fun();
aim_x = pbx;
aim_y = pby;
filp_sound_fun();
onEnterFrame = function () {
this.point_xy_arry[0].x = this.point_xy_arry[0].x + ((this.aim_x - this.point_xy_arry[0].x) / (1 + this.flip_speed));
this.point_xy_arry[0].y = this.point_xy_arry[0].y + ((this.aim_y - this.point_xy_arry[0].y) / (1 + this.flip_speed));
this.flip_ing_fun();
if (Math.sqrt(Math.pow(this.point_xy_arry[0].x - this.aim_x, 2) + Math.pow(this.point_xy_arry[0].y - this.aim_y, 2)) <= this.end_filp_distance_v) {
this.show_next_page_fun();
}
};
}
}
function go_prev_page_fun() {
if ((on_page_v > 1) and flip_end) {
OnStartFlip();
clearInterval(stop_time_si);
flip_ing = false;
flip_end = false;
drag_area = 2;
flip_win = true;
attachMovie(book_mc, "flip_mc", 300);
attachMovie(book_mc, "next_mc", 200);
next_mc._x = pcx;
next_mc._y = pcy;
next_mc.gotoAndStop(on_page_v - 1);
flip_mc.gotoAndStop(on_page_v - 1);
on_mc._visible = true;
point_xy_arry[0].x = pbx + StartFilpInclineX;
point_xy_arry[0].y = pby - StartFilpInclineY;
flip_ing_fun();
aim_x = pfx;
aim_y = pfy;
filp_sound_fun();
onEnterFrame = function () {
this.point_xy_arry[0].x = this.point_xy_arry[0].x + ((this.aim_x - this.point_xy_arry[0].x) / (1 + this.flip_speed));
this.point_xy_arry[0].y = this.point_xy_arry[0].y + ((this.aim_y - this.point_xy_arry[0].y) / (1 + this.flip_speed));
this.flip_ing_fun();
if (Math.sqrt(Math.pow(this.point_xy_arry[0].x - this.aim_x, 2) + Math.pow(this.point_xy_arry[0].y - this.aim_y, 2)) <= this.end_filp_distance_v) {
this.show_prev_page_fun();
}
};
}
}
function go_to_page_fun(v) {
if ((((v >= 1) and (v <= all_page_v)) and (v != on_page_v)) and flip_end) {
OnStartFlip();
clearInterval(stop_time_si);
go_to_page_v = v;
flip_ing = false;
flip_end = false;
if (v > on_page_v) {
drag_area = 1;
point_xy_arry[0].x = pfx - StartFilpInclineX;
point_xy_arry[0].y = pfy - StartFilpInclineY;
aim_x = pbx;
aim_y = pby;
} else {
drag_area = 2;
point_xy_arry[0].x = pbx + StartFilpInclineX;
point_xy_arry[0].y = pby - StartFilpInclineY;
aim_x = pfx;
aim_y = pfy;
}
if (v == 1) {
shadow_bottom2._visible = false;
} else if (v == all_page_v) {
shadow_bottom1._visible = false;
}
if (v <= 1) {
page_side2_mc._visible = false;
} else if (v >= all_page_v) {
page_side1_mc._visible = false;
}
flip_win = true;
attachMovie(book_mc, "flip_mc", 300);
attachMovie(book_mc, "next_mc", 200);
next_mc._x = pcx;
next_mc._y = pcy;
next_mc.gotoAndStop(v);
flip_mc.gotoAndStop(v);
on_mc._visible = true;
flip_ing_fun();
filp_sound_fun();
onEnterFrame = function () {
this.point_xy_arry[0].x = this.point_xy_arry[0].x + ((this.aim_x - this.point_xy_arry[0].x) / (1 + this.flip_speed));
this.point_xy_arry[0].y = this.point_xy_arry[0].y + ((this.aim_y - this.point_xy_arry[0].y) / (1 + this.flip_speed));
this.flip_ing_fun();
if (Math.sqrt(Math.pow(this.point_xy_arry[0].x - this.aim_x, 2) + Math.pow(this.point_xy_arry[0].y - this.aim_y, 2)) <= this.end_filp_distance_v) {
this.show_the_page_fun(this.go_to_page_v);
}
};
}
}
function set_bg_sound_fun() {
if ((bg_sound_v != bg_sound_array[on_page_v - 1]) or pauseBgSound_b) {
pauseBgSound_b = false;
bg_sound_v = bg_sound_array[on_page_v - 1];
bg_sound.stop();
bg_sound = new Sound(stage_mc);
bg_sound.stop();
bg_sound.attachSound("bg_sound" + bg_sound_v);
bg_sound.setVolume(bg_s_volume);
bg_sound.start(0, 1);
bg_sound.onSoundComplete = function () {
this.start(0, 1);
};
}
}
function setBgSoundVolumeFun(v) {
bg_sound.setVolume(v);
}
function pauseBgSoundFun() {
pauseBgSound_b = true;
bg_sound_position = bg_sound.position / 1000;
bg_sound.stop();
}
function continueBgSoundFun() {
pauseBgSound_b = false;
bg_sound.stop();
bg_sound.start(bg_sound_position, 1);
bg_sound.onSoundComplete = function () {
this.start(0, 1);
};
}
function set_shadow_fun() {
if (shadow_b) {
on_triangle.duplicateMovieClip("mask3_shadow", 492);
next_triangle.duplicateMovieClip("mask2_shadow", 502);
triangle.duplicateMovieClip("mask1_shadow", 512);
if ((drag_area == 1) or (drag_area == 3)) {
attachMovie(HighModeSetting_object.FlipShadowMC1, "shadow1_mc", 511);
attachMovie(HighModeSetting_object.FlipShadowMC2, "shadow2_mc", 501);
attachMovie(HighModeSetting_object.FlipShadowMC1, "shadow3_mc", 491);
} else if ((drag_area == 2) or (drag_area == 4)) {
attachMovie(HighModeSetting_object.FlipShadowMC1, "shadow2_mc", 501);
attachMovie(HighModeSetting_object.FlipShadowMC2, "shadow1_mc", 511);
attachMovie(HighModeSetting_object.FlipShadowMC2, "shadow3_mc", 491);
}
shadow1_mc._visible = true;
shadow2_mc._visible = true;
shadow3_mc._visible = true;
var _local3 = getAngle(point_xy_arry[1].x, point_xy_arry[1].y, point_xy_arry[2].x, point_xy_arry[2].y);
var _local2 = getDist(point_xy_arry[1].x, point_xy_arry[1].y, point_xy_arry[2].x, point_xy_arry[2].y);
shadow1_mc._x = (shadow2_mc._x = (shadow3_mc._x = point_xy_arry[1].x));
shadow1_mc._y = (shadow2_mc._y = (shadow3_mc._y = point_xy_arry[1].y));
shadow1_mc.shadow_mc._width = (shadow2_mc.shadow_mc._width = (shadow3_mc.shadow_mc._width = _local2 + 250));
shadow3_mc.shadow_mc._yscale = shadow1_mc.shadow_mc._yscale * 0.3;
shadow1_mc._rotation = (shadow2_mc._rotation = (shadow3_mc._rotation = _local3));
shadow1_mc.setMask(mask1_shadow);
shadow2_mc.setMask(mask2_shadow);
shadow3_mc.setMask(mask3_shadow);
}
}
function set_end_shadow_fun() {
if (shadow_b) {
shadow_alpha_v = 100;
stage_mc.onEnterFrame = function () {
this._parent.shadow_alpha_v = this._parent.shadow_alpha_v - 20;
this._parent.shadow1_mc._alpha = (this._parent.shadow2_mc._alpha = (this._parent.shadow3_mc._alpha = this._parent.shadow_alpha_v));
if (this._parent.shadow_alpha_v <= 0) {
this._parent.shadow1_mc._visible = false;
this._parent.shadow2_mc._visible = false;
this._parent.shadow3_mc._visible = false;
delete this.stage_mc.onEnterFrame;
}
};
}
}
function set_bottom_shadow_fun() {
if (bottom_shadow_b) {
if (on_page_v >= (all_page_v - 1)) {
if ((drag_area == 1) or (drag_area == 3)) {
shadow_bottom1._visible = false;
if (!shadow_bottom2._visible) {
shadow_bottom2._visible = true;
shadow_bottom2._alpha = 0;
shadow_bottom2.onEnterFrame = function () {
this._alpha = this._alpha + 20;
if (this._alpha == 100) {
delete this.onEnterFrame;
}
};
}
}
} else if (on_page_v <= 2) {
if ((drag_area == 2) or (drag_area == 4)) {
shadow_bottom2._visible = false;
if (!shadow_bottom1._visible) {
shadow_bottom1._visible = true;
shadow_bottom1._alpha = 0;
shadow_bottom1.onEnterFrame = function () {
this._alpha = this._alpha + 20;
if (this._alpha == 100) {
delete this.onEnterFrame;
}
};
}
}
}
}
if (page_side_b) {
if (on_page_v >= (all_page_v - 1)) {
if ((drag_area == 1) or (drag_area == 3)) {
page_side1_mc._visible = false;
}
} else if (on_page_v <= 2) {
if ((drag_area == 2) or (drag_area == 4)) {
page_side2_mc._visible = false;
}
}
}
}
function auto_filp_fun() {
stop_time_si = setInterval(this, "auto_go_next_filp_fun", auto_filp_time * 1000);
}
function auto_go_next_filp_fun() {
go_next_page_fun();
clearInterval(stop_time_si);
}
function set_page_title_fun() {
return(page_title_array[on_page_v - 1]);
}
function play_one_sound_fun() {
var _local3 = new Sound(on_mc);
_local3.setVolume(100);
var _local2 = new Sound(flip_mc);
_local2.setVolume(0);
var _local4 = new Sound(next_mc);
_local4.setVolume(0);
}
function getLocalFun() {
so_gl = SharedObject.getLocal("AsFlipPage");
if (so_gl.data.if_show == 1) {
local_stop_time_si = setInterval(this, "on_open_go_to_page_fun", 200, so_gl.data.n_page);
}
}
function on_open_go_to_page_fun(v) {
go_to_page_fun(Number(v));
clearInterval(local_stop_time_si);
}
function setLocalFun(b) {
so_gl = SharedObject.getLocal("AsFlipPage");
so_gl.data.n_page = on_page_v;
if (b) {
so_gl.data.if_show = 1;
} else {
so_gl.data.if_show = 0;
}
so_gl.flush();
fscommand ("quit");
}
function filp_sound_fun() {
if (filp_sound_str.length > 0) {
filping_sound = new Sound(this);
filping_sound.attachSound(filp_sound_str);
filping_sound.start(0, 1);
}
}
function flipNextPage() {
go_next_page_fun();
}
function flipPrevPage() {
go_prev_page_fun();
}
function flipCertainPage(v) {
go_to_page_fun(v);
}
function flipCoverPage() {
go_to_page_fun(1);
}
function flipBackPage() {
go_to_page_fun(all_page_v);
}
function flipListPage() {
go_to_page_fun(list_page_v);
}
function stopAutoFilp() {
if_auto_filp = false;
clearInterval(stop_time_si);
}
function startAutoFilp() {
if_auto_filp = true;
auto_filp_fun();
}
function getPageNumber() {
return(on_page_v);
}
function getAllPageNumber() {
return(all_page_v);
}
function getPageTitle() {
return(set_page_title_fun());
}
function getStageWidth() {
return(stage_w);
}
function getStageHeight() {
return(stage_h);
}
function setLoadPageTitle(arry) {
load_page_title_array = arry;
}
function OnStartFlip() {
_parent[events_fun_object.OnStartFlip].apply(null, [on_page_v]);
}
function OnFinishFlip() {
_parent[events_fun_object.OnFinishFlip].apply(null, [on_page_v, set_page_title_fun()]);
}
function OnStartCueHitAreaing() {
_parent[events_fun_object.OnStartCueHitAreaing].apply(null, []);
}
function OnFinishCueHitAreaing() {
_parent[events_fun_object.OnFinishCueHitAreaing].apply(null, []);
}
function SetPrintJob() {
my_pj = new PrintJob();
my_pj.start();
my_pj.addPage("_root", {printAsBitmap:true});
my_pj.send();
delete my_pj;
}
function flip_ing_fun() {
point_xy_arry_fun();
drawMask1_fun();
drawMask2_fun();
drawMask3_fun();
set_flip_mc_fun();
set_shadow_fun();
set_bottom_shadow_fun();
play_one_sound_fun();
}
function _root_setContextMenuFun() {
_root_empiremue = new ContextMenu();
_root_empiremue.hideBuiltInItems();
if (!Register_ed) {
_root_empiremue.customItems.push(new ContextMenuItem("AsFlipPage4.0.0 ", link_web_fun, true));
_root_empiremue.customItems.push(new ContextMenuItem("\u6CE8\u518C:" + Register_user, link_web_fun));
}
_root.menu = _root_empiremue;
}
function setContextMenuFun() {
empiremue = new ContextMenu();
empiremue.hideBuiltInItems();
empiremue.customItems.push(new ContextMenuItem("\u9996\u9875", menu_cover_page_fun));
empiremue.customItems.push(new ContextMenuItem("\u76EE\u5F55", menu_list_page_fun));
empiremue.customItems.push(new ContextMenuItem("\u4E0B\u4E00\u9875", menu_next_page_fun));
empiremue.customItems.push(new ContextMenuItem("\u4E0A\u4E00\u9875", menu_prev_page_fun));
empiremue.customItems.push(new ContextMenuItem("\u5C3E\u9875", menu_back_page_fun));
empiremue.customItems.push(new ContextMenuItem("\u9000\u51FA", mouseFlashExitFun));
if (!Register_ed) {
empiremue.customItems.push(new ContextMenuItem("AsFlipPage4.0.0", link_web_fun, true));
empiremue.customItems.push(new ContextMenuItem("\u6CE8\u518C\uFF1A" + Register_user, link_web_fun));
}
menu = empiremue;
}
function menu_cover_page_fun(item, item_menu) {
item.flipCoverPage();
}
function menu_list_page_fun(item, item_menu) {
item.flipListPage();
}
function menu_next_page_fun(item, item_menu) {
item.flipNextPage();
}
function menu_prev_page_fun(item, item_menu) {
item.flipPrevPage();
}
function menu_back_page_fun(item, item_menu) {
item.flipBackPage();
}
function link_web_fun(item, item_menu) {
item.getURL_fun();
}
function getURL_fun() {
(getURL("http://ssbx.39u.cn/afp.html", "_blank"));// not popped
}
function mouseFlashExitFun(item, item_menu) {
if (item.if_set_local and (item.exit_mc_str.length >= 1)) {
item._parent[item.exit_mc_str].swapDepths(item._parent.getNextHighestDepth());
item._parent[item.exit_mc_str]._x = item._x + (item.stage_w / 2);
item._parent[item.exit_mc_str]._y = item._y + (item.stage_h / 2);
clearInterval(item.stop_time_si);
} else {
fscommand ("quit");
}
}
function FlashExitFun() {
if (if_set_local and (exit_mc_str.length >= 1)) {
_parent[exit_mc_str].swapDepths(_parent.getNextHighestDepth());
_parent[exit_mc_str]._x = _x + (stage_w / 2);
_parent[exit_mc_str]._y = _y + (stage_h / 2);
clearInterval(stop_time_si);
} else {
fscommand ("quit");
}
}
function CancelFlashExitFun() {
_parent[exit_mc_str]._x = -1000;
if (if_auto_filp) {
auto_filp_fun();
}
}
function getFullscreenFun() {
return(fullscreen_b);
}
function setFullscreenFun(b) {
if (b) {
fullscreen_b = b;
fscommand ("fullscreen", true);
} else {
fullscreen_b = b;
fscommand ("fullscreen", false);
}
}
function FlipOnKeyUpDown_fun() {
if (FlipOnKeyUpDown_b == "OnKeyUp") {
onKeyUp = OnKeyUpDown_fun;
Key.addListener(this);
} else if (FlipOnKeyUpDown_b == "OnKeyDown") {
onKeyDown = OnKeyUpDown_fun;
Key.addListener(this);
}
}
function OnKeyUpDown_fun() {
var _local2 = Key.getCode();
if (_local2 == FlipKey_object.PrevPageKey) {
flipPrevPage();
} else if (_local2 == FlipKey_object.NextPageKey) {
flipNextPage();
} else if (_local2 == FlipKey_object.CoverPageKey) {
flipCoverPage();
} else if (_local2 == FlipKey_object.BackPageKey) {
flipBackPage();
} else if (_local2 == FlipKey_object.ListPageKey) {
flipListPage();
}
}
var _RN = "Ameng";
var _SN = "Ameng";
var _RNU = "Ameng";
var bg_s_volume = 100;
var point_xy_arry = [{}, {}, {}, {}];
var tem_array = [{}, {}, {}, {}];
var pauseBgSound_b = false;
var Register_ed = false;
var flip_end = true;
var flip_ing = false;
var CueHitArea_ing = false;
}