Frame 1
total = _root.getBytesTotal();
loaded = _root.getBytesLoaded();
baifenshu = int((loaded / total) * 100);
baifenbi = baifenshu + "%";
setProperty("jindutiao", _xscale , baifenshu);
Frame 2
if (baifenshu == 100) {
gotoAndPlay ("rest");
} else {
gotoAndPlay (1);
}
function nextStage() {
score = 0;
if ((++stageNum) <= 9) {
game.gotoAndPlay("map");
} else {
gotoAndStop ("gameover");
}
}
function timeUp() {
mask_btn._x = 0;
stopAllSounds();
this.gotoAndStop("gameover");
game.timeUp();
}
fscommand ("allowscale", false);
fscommand ("showmenu", false);
Frame 3
stageNum = 0;
totalScore = 0;
mask_btn._x = -1000;
i = 1;
while (i < 11) {
select_btn = this["btn" + i];
select_btn.id = i;
select_btn.onPress = function () {
stageNum = this.id;
score = 0;
gotoAndStop ("run");
};
i++;
}
stop();
Frame 5
i = 1;
while (i < 11) {
select_btn = this["btn" + i];
select_btn.id = i;
select_btn.onPress = function () {
stageNum = this.id;
score = 0;
gotoAndStop ("run");
};
i++;
}
stop();
Frame 6
aa = new Sound();
aa.attachSound("jgw");
aa.start(0, 100);
_root.onEnterFrame = function () {
aa.setVolume((100 * (a._x - 480)) / 90);
};
tellTarget ("/sound") {
gotoAndStop ("playing");
};
Frame 7
stop();
my_data = new Date();
year = my_data.getFullYear();
month = my_data.getMonth() + 1;
if (month < 10) {
m_month = "0" + month;
} else {
m_month = month;
}
my_date = my_data.getDate();
if (my_date < 10) {
m_date = "0" + my_date;
} else {
m_date = my_date;
}
hour = my_data.getHours();
if (hour < 10) {
m_hour = "0" + hour;
} else {
m_hour = hour;
}
minutes = my_data.getMinutes();
if (minutes < 10) {
m_minutes = "0" + minutes;
} else {
m_minutes = minutes;
}
seconds = my_data.getSeconds();
if (seconds < 10) {
m_seconds = "0" + seconds;
} else {
m_seconds = seconds;
}
i = 0;
while (i < 6) {
this["num" + i] = random(10);
i++;
}
my_str = new String();
_root.orderid = my_str.concat(year, m_month, m_date, m_hour, m_minutes, m_seconds, num0, num1, num2, num3, num4, num5);
Symbol 132 MovieClip [exp] Frame 18
this.removeMovieClip();
Symbol 136 MovieClip [scoreMove_mc] Frame 58
this.removeMovieClip();
Symbol 144 Button
on (release) {
_parent.gotoAndStop("rest");
this.enabled = false;
this._visible = false;
}
Symbol 146 MovieClip [timeUp_mc] Frame 78
stop();
Symbol 147 MovieClip [helpRec] Frame 9
stop();
Symbol 157 Button
on (release) {
getURL ("http://www.fishadultgames.com", "_blank");
}
Symbol 162 Button
on (release) {
fscommand ("quit");
}
Symbol 168 Button
on (press) {
gotoAndStop ("help");
}
Symbol 190 Button
on (press) {
gotoAndStop ("rest");
}
Symbol 198 Button
on (press) {
gotoAndStop ("rest");
}
Symbol 199 Button
on (press) {
gotoAndStop ("help");
}
Symbol 294 MovieClip Frame 1
stop();
Symbol 294 MovieClip Frame 2
stop();
Symbol 309 MovieClip Frame 70
stop();
_parent._parent.timer_mc.timeToScore();
Symbol 310 MovieClip Frame 1
function disorder(my_array) {
var _local5 = my_array.length;
var _local1 = 0;
while (_local1 < _local5) {
var _local3 = random(_local5);
var _local4 = my_array[_local1];
my_array[_local1] = my_array[_local3];
my_array[_local3] = _local4;
_local1++;
}
}
function connectAble(x1, y1, x2, y2) {
if (x1 == x2) {
if (y1 > y2) {
var _local7 = y1;
y1 = y2;
y2 = _local7;
}
var _local1 = y1;
while (_local1 <= y2) {
if (map[_local1][x1] > 0) {
return(false);
}
_local1++;
}
} else {
if (x1 > x2) {
var _local7 = x1;
x1 = x2;
x2 = _local7;
}
var _local2 = x1;
while (_local2 <= x2) {
if (map[y1][_local2] > 0) {
return(false);
}
_local2++;
}
}
return(true);
}
function getPoint(x1, y1, x2, y2) {
var _local8 = 10000;
var _local9 = new Array();
var _local2;
var _local1;
var _local7;
map[y1][x1] = 0;
map[y2][x2] = 0;
_local2 = x1 - 1;
while (_local2 >= 0) {
if (connectAble(x1, y1, _local2, y1)) {
if (connectAble(_local2, y1, _local2, y2) && (connectAble(_local2, y2, x2, y2))) {
_local8 = (Math.abs(_local2 - x1) + Math.abs(y2 - y1)) + Math.abs(x2 - _local2);
_local9 = [x1, y1, _local2, y1, _local2, y2, x2, y2];
break;
}
} else {
break;
}
_local2--;
}
_local2 = x1 + 1;
while (_local2 < w) {
if (connectAble(x1, y1, _local2, y1)) {
if (connectAble(_local2, y1, _local2, y2) && (connectAble(_local2, y2, x2, y2))) {
_local7 = (Math.abs(_local2 - x1) + Math.abs(y2 - y1)) + Math.abs(x2 - _local2);
if (_local7 < _local8) {
_local8 = _local7;
_local9 = [x1, y1, _local2, y1, _local2, y2, x2, y2];
}
break;
}
} else {
break;
}
_local2++;
}
_local1 = y1 - 1;
while (_local1 >= 0) {
if (connectAble(x1, y1, x1, _local1)) {
if (connectAble(x1, _local1, x2, _local1) && (connectAble(x2, _local1, x2, y2))) {
_local7 = (Math.abs(_local1 - y1) + Math.abs(x2 - x1)) + Math.abs(y2 - _local1);
if (_local7 < _local8) {
_local8 = _local7;
_local9 = [x1, y1, x1, _local1, x2, _local1, x2, y2];
}
break;
}
} else {
break;
}
_local1--;
}
_local1 = y1 + 1;
while (_local1 < h) {
if (connectAble(x1, y1, x1, _local1)) {
if (connectAble(x1, _local1, x2, _local1) && (connectAble(x2, _local1, x2, y2))) {
_local7 = (Math.abs(_local1 - y1) + Math.abs(x2 - x1)) + Math.abs(y2 - _local1);
if (_local7 < _local8) {
_local8 = _local7;
_local9 = [x1, y1, x1, _local1, x2, _local1, x2, y2];
}
break;
}
} else {
break;
}
_local1++;
}
map[y1][x1] = 1;
map[y2][x2] = 1;
return(_local9);
}
function checkAll() {
var _local5;
var _local7;
var _local1;
var _local2;
var _local6;
var _local3;
_local7 = 0;
while (_local7 < h) {
_local5 = 0;
while (_local5 < w) {
if (map[_local7][_local5] > 0) {
_local6 = mArea[(("m" + _local7) + "_") + _local5];
_local2 = 0;
while (_local2 < h) {
_local1 = 0;
while (_local1 < w) {
if ((_local5 == _local1) && (_local7 == _local2)) {
} else if (map[_local2][_local1] > 0) {
_local3 = mArea[(("m" + _local2) + "_") + _local1];
if (_local6._currentframe == _local3._currentframe) {
var _local4 = getPoint(_local6._x / dw, _local6._y / dh, _local3._x / dw, _local3._y / dh);
if (_local4.length > 0) {
return(_local4);
}
}
}
_local1++;
}
_local2++;
}
}
_local5++;
}
_local7++;
}
return(false);
}
function timeUp() {
delete this.onMouseDown;
delete recMov.onEnterFrame;
}
function disorder_m() {
do {
var _local3 = new Array();
var _local2 = 0;
while (_local2 < h) {
var _local1 = 0;
while (_local1 < w) {
if (map[_local2][_local1] > 0) {
_local3.push(mArea[(("m" + _local2) + "_") + _local1]._currentframe);
}
_local1++;
}
_local2++;
}
disorder(_local3);
var _local4 = 0;
_local2 = 0;
while (_local2 < h) {
var _local1 = 0;
while (_local1 < w) {
if (map[_local2][_local1] > 0) {
mArea[(("m" + _local2) + "_") + _local1].gotoAndStop(_local3[_local4++]);
}
_local1++;
}
_local2++;
}
} while (!checkAll());
}
w = 8;
h = 8;
dw = 55;
dh = 41;
totalPic = 28;
helpTimes = 0;
disorderTimes = 0;
addTimeTimes = 0;
game = this;
num_array = new Array();
i = 1;
while (i <= totalPic) {
num_array.push(i);
i++;
}
this.createEmptyMovieClip("vo_mc", 10000);
vo_sound = new Sound(vo_mc);
vo_sound.stop();
Symbol 310 MovieClip Frame 2
switch (_parent.stageNum) {
case 1 :
_parent.timer_mc.tTotal = 100;
map = [[1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0], [1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0], [1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0], [0, 1, 1, 1, 1, 0, 1, 0, 0, 0, 0, 0], [0, 1, 1, 0, 0, 1, 1, 0, 0, 0, 0, 0], [0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0], [0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0], [1, 1, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]];
break;
case 2 :
_parent.timer_mc.tTotal = 100;
map = [[1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0], [0, 1, 1, 1, 1, 1, 0, 1, 0, 0, 0, 0], [1, 0, 1, 1, 1, 0, 0, 1, 0, 0, 0, 0], [1, 1, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0], [1, 0, 1, 1, 0, 1, 0, 1, 0, 0, 0, 0], [0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0], [0, 1, 1, 0, 1, 1, 1, 1, 0, 0, 0, 0], [1, 0, 1, 0, 1, 0, 1, 1, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]];
break;
case 3 :
_parent.timer_mc.tTotal = 100;
map = [[1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0], [1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0], [1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0], [1, 1, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0], [1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0], [1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0], [1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0], [1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]];
break;
case 4 :
_parent.timer_mc.tTotal = 100;
map = [[1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0], [1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0], [1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0], [1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0], [1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0], [1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0], [1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0], [1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]];
break;
default :
_parent.timer_mc.tTotal = 290;
map = new Array(h);
y = 0;
for(;;){
if (y >= w) {
break;
}
map[y] = new Array(w);
x = 0;
while (x < h) {
map[y][x] = 1;
x++;
}
y++;
};
}
Symbol 310 MovieClip Frame 3
stop();
depth = 3;
disorder(num_array);
this.createEmptyMovieClip("mArea", 1);
this.attachMovie("selectRecLock", "rec", 2, {_x:-1000});
this.attachMovie("selectRec", "recMov", 3, {_x:-1000});
recMov.onEnterFrame = function () {
if (pause) {
return(0);
}
var _local3 = _xmouse;
var _local2 = _ymouse;
if ((((_local3 > 0) && (_local3 < (dw * w))) && (_local2 > 0)) && (_local2 < (dh * h))) {
_local3 = int(_local3 / dw);
_local2 = int(_local2 / dh);
var _local4 = mArea[(("m" + _local2) + "_") + _local3];
if (((map[_local2][_local3] == 1) && (_local4 != m1)) && (_local4 != m2)) {
this._x = _local3 * dw;
this._y = _local2 * dh;
} else {
this._x = -1000;
}
} else {
this._x = -1000;
}
};
this.createEmptyMovieClip("others", 4);
m1 = undefined;
m2 = undefined;
_parent.mask_btn._x = -1000;
totalM = 0;
pause = false;
comboTime = 0;
dScore = 15;
m_array = new Array();
y = 0;
while (y < h) {
x = 0;
while (x < w) {
if (map[y][x]) {
m_array.push(mArea.attachMovie("m", (("m" + y) + "_") + x, (y * w) + x, {_x:x * dw, _y:y * dh}));
totalM++;
}
x++;
}
y++;
}
j = 0;
k = 0;
L = m_array.length;
i = 0;
while (i < L) {
m_array[i].gotoAndStop(num_array[j]);
if ((++k) > 3) {
j++;
k = 0;
}
i++;
}
disorder_m();
_parent.timer_mc.run();
this.onMouseDown = function () {
if (pause) {
return(0);
}
x = _xmouse;
y = _ymouse;
if ((((x > 0) && (x < (dw * w))) && (y > 0)) && (y < (dh * h))) {
x = int(x / dw);
y = int(y / dh);
m = mArea[(("m" + y) + "_") + x];
if (m != undefined) {
rec1.removeMovieClip();
rec2.removeMovieClip();
vo_sound.attachSound("click");
vo_sound.start();
if (m1 == undefined) {
m1 = m;
rec._x = m1._x;
rec._y = m1._y;
} else {
m2 = m;
if (m1 == m2) {
m1 = undefined;
m2 = undefined;
rec._x = -1000;
} else if (m1._currentframe != m2._currentframe) {
comboTime = 0;
var _local4 = _parent.score;
_local4 = _local4 - 10;
if (_local4 < 0) {
_local4 = 0;
}
_local4 = _local4 - _parent.score;
_parent.score = _parent.score + _local4;
_parent.totalScore = _parent.totalScore + _local4;
depth++;
others.attachMovie("scoreMove_mc", "scoreMove_mc" + depth, depth, {_x:(m1._x + m2._x) / 2, _y:(m1._y + m2._y) / 2, txt:_local4});
m1 = undefined;
m2 = undefined;
rec._x = -1000;
} else {
point_array = getPoint(m1._x / dw, m1._y / dh, m2._x / dw, m2._y / dh);
if (point_array.length > 0) {
x1 = point_array[0];
y1 = point_array[1];
x2 = point_array[6];
y2 = point_array[7];
map[y1][x1] = 0;
map[y2][x2] = 0;
if (_parent.stageNum > 4) {
fall_array = new Array();
hole_array = [[x1, y1], [x2, y2]];
if (_parent.stageNum < 9) {
switch (_parent.stageNum) {
case 5 :
dx = 0;
dy = 1;
if (x1 == x2) {
hole_array = [[x1, ((y1 > y2) ? y1 : y2)]];
}
break;
case 6 :
dx = 0;
dy = -1;
if (x1 == x2) {
hole_array = [[x1, ((y1 < y2) ? y1 : y2)]];
}
break;
case 7 :
dx = 1;
dy = 0;
if (y1 == y2) {
hole_array = [[((x1 > x2) ? x1 : x2), y1]];
}
break;
case 8 :
dx = -1;
dy = 0;
if (y1 != y2) {
break;
}
hole_array = [[((x1 < x2) ? x1 : x2), y1]];
}
holeL = hole_array.length;
i = 0;
while (i < holeL) {
x = hole_array[i][0] - dx;
y = hole_array[i][1] - dy;
while ((((x > -1) && (x < w)) && (y > -1)) && (y < h)) {
if (map[y][x] > 0) {
map[y][x] = 0;
m = mArea[(("m" + y) + "_") + x];
m.dx = dx;
m.dy = dy;
fall_array.push(m);
}
x = x - dx;
y = y - dy;
}
i++;
}
} else {
switch (_parent.stageNum) {
case 9 :
if (x1 == x2) {
if ((y1 > ((h / 2) - 1)) && (y2 > ((h / 2) - 1))) {
hole_array = [[x1, ((y1 > y2) ? y1 : y2)]];
} else if ((y1 < (h / 2)) && (y2 < (h / 2))) {
hole_array = [[x1, ((y1 < y2) ? y1 : y2)]];
}
}
holeL = hole_array.length;
i = 0;
while (i < holeL) {
x = hole_array[i][0];
y = hole_array[i][1];
if (y > ((h / 2) - 1)) {
while ((--y) > ((h / 2) - 1)) {
if (map[y][x] > 0) {
map[y][x] = 0;
m = mArea[(("m" + y) + "_") + x];
m.dx = 0;
m.dy = 1;
fall_array.push(m);
}
}
} else {
while ((++y) < (h / 2)) {
if (map[y][x] > 0) {
map[y][x] = 0;
m = mArea[(("m" + y) + "_") + x];
m.dx = 0;
m.dy = -1;
fall_array.push(m);
}
}
}
i++;
}
break;
case 10 :
if (y1 == y2) {
if ((x1 > ((w / 2) - 1)) && (x2 > ((w / 2) - 1))) {
hole_array = [[((x1 > x2) ? x1 : x2), y1]];
} else if ((x1 < (w / 2)) && (x2 < (w / 2))) {
hole_array = [[((x1 < x2) ? x1 : x2), y1]];
}
}
holeL = hole_array.length;
i = 0;
for(;;){
if (i >= holeL) {
break;
}
x = hole_array[i][0];
y = hole_array[i][1];
if (x > ((w / 2) - 1)) {
while ((--x) > ((w / 2) - 1)) {
if (map[y][x] > 0) {
map[y][x] = 0;
m = mArea[(("m" + y) + "_") + x];
m.dx = 1;
m.dy = 0;
fall_array.push(m);
}
}
} else {
while ((++x) < (w / 2)) {
if (map[y][x] > 0) {
map[y][x] = 0;
m = mArea[(("m" + y) + "_") + x];
m.dx = -1;
m.dy = 0;
fall_array.push(m);
}
}
}
i++;
};
}
}
fallL = fall_array.length;
if (fallL > 0) {
pause = true;
this.onEnterFrame = function () {
var _local6 = 0;
while (_local6 < fallL) {
var _local3 = fall_array[_local6];
_local3._x = _local3._x + ((_local3.dx * dw) / 2);
_local3._y = _local3._y + ((_local3.dy * dh) / 2);
if (((_local3._x % dw) == 0) && ((_local3._y % dh) == 0)) {
var _local5 = _local3._x / dw;
var _local4 = _local3._y / dh;
_local3.swapDepths((_local4 * w) + _local5);
if ((((((_local3.dx > 0) && (_local5 == (w - 1))) || ((_local3.dx < 0) && (_local5 == 0))) || ((_local3.dy > 0) && (_local4 == (h - 1)))) || ((_local3.dy < 0) && (_local4 == 0))) || (map[_local4 + _local3.dy][_local5 + _local3.dx] > 0)) {
map[_local4][_local5] = 1;
_local3._name = (("m" + _local4) + "_") + _local5;
fall_array.splice(_local6, 1);
_local6--;
if ((--fallL) < 1) {
delete this.onEnterFrame;
pause = false;
if (!checkAll()) {
_parent.mask_btn._x = 0;
_parent.autoDisorder.nextFrame();
pause = true;
}
}
}
}
_local6++;
}
};
}
}
totalM = totalM - 2;
if (totalM < 1) {
_parent.timer_mc.timeStop();
_parent.mask_btn._x = 0;
} else if (pause == false) {
if (!checkAll()) {
_parent.mask_btn._x = 0;
_parent.autoDisorder.nextFrame();
pause = true;
}
}
rec._x = -1000;
if ((getTimer() - comboTime) < 1000) {
dScore = dScore + 10;
txt = " +" + dScore;
vo_sound.attachSound("continueclick");
vo_sound.start();
} else {
dScore = 15;
txt = "+" + dScore;
vo_sound.attachSound("correct");
vo_sound.start();
}
comboTime = getTimer();
depth++;
others.attachMovie("scoreMove_mc", "scoreMove_mc" + depth, depth, {_x:(this.m1._x + this.m2._x) / 2, _y:(this.m1._y + this.m2._y) / 2, txt:txt});
_parent.timer_mc.addTime(1);
_parent.score = _parent.score + dScore;
_parent.totalScore = _parent.totalScore + dScore;
depth++;
effect_mc = others.createEmptyMovieClip("effect" + depth, depth);
effect_mc._x = dw / 2;
effect_mc._y = dh / 2;
x0 = dw * point_array[0];
y0 = dh * point_array[1];
effect_mc.p_arr = [[x0, y0]];
i = 1;
while (i < 4) {
xt = dw * point_array[i * 2];
yt = dh * point_array[(i * 2) + 1];
if ((x0 == xt) && (y0 == yt)) {
} else {
effect_mc.p_arr.push([xt, yt]);
x0 = xt;
y0 = yt;
}
i++;
}
effect_mc.L = effect_mc.p_arr.length;
var _local5 = effect_mc.attachMovie("exp", "exp1", 1, {_x:m1._x, _y:m1._y});
_local5._rotation = 57.2958 * Math.atan2(effect_mc.p_arr[0][1] - effect_mc.p_arr[1][1], effect_mc.p_arr[0][0] - effect_mc.p_arr[1][0]);
_local5 = effect_mc.attachMovie("exp", "exp2", 2, {_x:m2._x, _y:m2._y});
_local5._rotation = 57.2958 * Math.atan2(effect_mc.p_arr[effect_mc.L - 1][1] - effect_mc.p_arr[effect_mc.L - 2][1], effect_mc.p_arr[effect_mc.L - 1][0] - effect_mc.p_arr[effect_mc.L - 2][0]);
m1.removeMovieClip();
m2.removeMovieClip();
m1 = undefined;
m2 = undefined;
effect_mc.delayTime = 15;
effect_mc.onEnterFrame = function () {
if (this.delayTime % 2) {
this.clear();
} else {
this.lineStyle(2, 39168, this.delayTime / 0.15);
var _local3 = this.p_arr[0];
this.moveTo(_local3[0], _local3[1]);
var _local2 = 1;
while (_local2 < (this.L - 1)) {
_local3 = this.p_arr[_local2];
this.lineTo(_local3[0], _local3[1]);
_local2++;
}
_local3 = this.p_arr[this.L - 1];
this.lineTo(_local3[0], _local3[1]);
}
if ((--this.delayTime) < 1) {
delete this.onEnterFrame;
this.removeMovieClip();
if (totalM < 1) {
gotoAndStop ("stageClear");
}
}
};
} else {
comboTime = 0;
var _local4 = _parent.score;
_local4 = _local4 - 10;
if (_local4 < 0) {
_local4 = 0;
}
_local4 = _local4 - _parent.score;
_parent.score = _parent.score + _local4;
_parent.totalScore = _parent.totalScore + _local4;
depth++;
others.attachMovie("scoreMove_mc", "scoreMove_mc" + depth, depth, {_x:(m1._x + m2._x) / 2, _y:(m1._y + m2._y) / 2, txt:_local4});
m1 = undefined;
m2 = undefined;
rec._x = -1000;
}
}
}
}
}
};
helpTimes = helpTimes + 3;
help_btn.enabled = true;
disorderTimes = disorderTimes + 3;
disorder_btn.enabled = true;
addTimeTimes = addTimeTimes + 3;
addTime_btn.enabled = true;
help_btn.onPress = function () {
if (pause) {
return(0);
}
if ((--helpTimes) < 1) {
this.enabled = false;
}
rec._x = -1000;
m1 = undefined;
m2 = undefined;
var _local2 = checkAll();
if (_local2.length > 0) {
game.attachMovie("helpRec", "rec1", 11, {_x:_local2[0] * dw, _y:_local2[1] * dh});
game.attachMovie("helpRec", "rec2", 12, {_x:_local2[6] * dw, _y:_local2[7] * dh});
}
};
disorder_btn.onPress = function () {
if (pause) {
return(0);
}
if ((--disorderTimes) < 1) {
this.enabled = false;
}
rec1.removeMovieClip();
rec2.removeMovieClip();
rec._x = -1000;
m1 = undefined;
m2 = undefined;
disorder_m();
};
addTime_btn.onPress = function () {
if (pause) {
return(0);
}
if ((--addTimeTimes) < 1) {
this.enabled = false;
}
_parent.timer_mc.addTime(10);
};
Symbol 317 Button
on (release) {
game.pause = true;
mask_btn._x = 0;
pause_mask.nextFrame();
}
Symbol 321 MovieClip Frame 1
stop();
Symbol 325 MovieClip Frame 1
function reset() {
timeStop();
timeToScoreSound_mc.stop();
timerBar._x = x0;
}
function run() {
reset();
time = getTimer() / 1000;
var _local3 = Number(tTotal);
if (isNaN(_local3)) {
_local3 = 60;
}
t = (tTotal = _local3);
this.onEnterFrame = function () {
if (_parent.game.pause) {
time = getTimer() / 1000;
return(0);
}
var _local2 = getTimer() / 1000;
t = t - (_local2 - time);
time = _local2;
timerBar._x = timerBar._x + ((((x0 * t) / tTotal) - timerBar._x) * 0.2);
if (t < (0.4 * tTotal)) {
if (pig._currentframe == 1) {
pig.play();
}
} else {
pig.gotoAndStop(1);
}
if (t < 5) {
if (timerBarFlash._currentframe == 1) {
timerBarFlash.nextFrame();
}
if (t <= 0) {
timeUp();
}
} else {
timerBarFlash.prevFrame();
}
};
}
function addTime(dTime) {
t = t + dTime;
if (t > tTotal) {
t = tTotal;
}
}
function timeStop() {
delete this.onEnterFrame;
pig.gotoAndStop(1);
timerBarFlash.prevFrame();
}
function timeToScore() {
vo_sound.attachSound("timeToScore.wav");
vo_sound.start(0, 1000);
this.onEnterFrame = function () {
_parent.score = _parent.score + 2;
_parent.totalScore = _parent.totalScore + 2;
if ((--t) <= 0) {
delete this.onEnterFrame;
vo_sound.stop();
vo_sound.attachSound("right.wav");
vo_sound.start();
vo_sound.onSoundComplete = function () {
_parent.nextStage();
};
_parent["score" + _parent.stageNum] = _parent.score;
}
timerBar._x = (x0 * t) / tTotal;
};
}
function timeUp() {
timeStop();
timerBar._x = -10;
_parent.timeUp();
}
var t = 0;
var time = 0;
var tTotal = 0;
var x0 = timerBar._x;
this.createEmptyMovieClip("vo_mc", 1);
var vo_sound = new Sound(vo_mc);
reset();
Symbol 336 Button
on (release) {
_parent.game.pause = false;
_parent.mask_btn._x = -1000;
this.prevFrame();
}
Symbol 337 MovieClip Frame 1
stop();
Symbol 341 Button
on (press) {
_parent.mask_btn._x = -1000;
_parent.game.pause = false;
_parent.game.disorder_m();
prevFrame();
}
Symbol 343 MovieClip Frame 1
stop();
Symbol 349 Button
on (release) {
tellTarget ("../sound") {
stopAllSounds();
gotoAndPlay ("start");
};
gotoAndStop ("playit");
}
Symbol 353 Button
on (release) {
tellTarget ("../sound") {
gotoAndPlay ("playing");
};
gotoAndStop ("stopit");
}
Symbol 354 MovieClip Frame 1
stop();
Symbol 357 Button
on (press) {
startDrag (a, true, 441, 450, 340, 450);
}
on (release, releaseOutside) {
stopDrag();
setProperty("_root.b", _xscale , 10 * ((a._x - 50) / 300));
}
Symbol 358 MovieClip Frame 1
gotoAndStop ("end");
Symbol 358 MovieClip Frame 3
gotoAndStop ("playing");
Symbol 362 Button
on (release) {
gotoAndStop ("rest");
}