Frame 1
stop();
Instance of Symbol 30 MovieClip in Frame 1
on (press) {
so = new Sound();
so.attachSound("sou5");
so.start(0, 1);
_root.gotoAndStop(2);
}
Instance of Symbol 32 MovieClip in Frame 1
on (press) {
so = new Sound();
so.attachSound("sou5");
so.start(0, 1);
_root.gotoAndStop(20);
}
Frame 2
_global.attachcount = 100;
stop();
Instance of Symbol 45 MovieClip in Frame 2
onClipEvent (enterFrame) {
if (this.flag2 == 1) {
this._alpha = this._alpha - 20;
if (this._alpha <= 0) {
_root.gotoAndPlay(_root._currentframe + 2);
}
}
}
Instance of Symbol 46 MovieClip in Frame 2
onClipEvent (load) {
starttime = getTimer();
flag = 0;
}
onClipEvent (enterFrame) {
if ((flag == 0) && (_root._currentframe == 18)) {
flag++;
lasttime = getTimer();
lasttime = lasttime - starttime;
hour = Math.floor(lasttime / 3600000);
lasttime = lasttime - (hour * 3600000);
minute = Math.floor(lasttime / 60000);
lasttime = lasttime - (minute * 60000);
second = Math.floor(lasttime / 1000);
lasttime = lasttime - (second * 1000);
_root.clear = (((((hour + ":") + minute) + ":") + second) + ":") + lasttime;
}
}
Frame 3
_root.gotoAndPlay(1);
Frame 4
stop();
Instance of Symbol 62 MovieClip in Frame 4
onClipEvent (load) {
this._alpha = 0;
flag = 0;
}
onClipEvent (enterFrame) {
if ((flag == 0) && (this._alpha >= 100)) {
flag = 1;
} else if (flag == 0) {
this._alpha = this._alpha + 20;
} else if (flag == 2) {
this._alpha = this._alpha - 20;
if (this._alpha <= 0) {
_root.gotoAndPlay(_root._currentframe + 2);
}
}
}
Frame 5
_root.gotoAndPlay(1);
Frame 6
stop();
Instance of Symbol 77 MovieClip in Frame 6
onClipEvent (load) {
this._alpha = 0;
flag2 = 0;
}
onClipEvent (enterFrame) {
if ((flag2 == 0) && (this._alpha >= 100)) {
flag2 = 1;
} else if (flag2 == 0) {
this._alpha = this._alpha + 20;
} else if (flag2 == 2) {
this._alpha = this._alpha - 20;
if (this._alpha <= 0) {
_root.gotoAndPlay(_root._currentframe + 2);
}
}
}
Frame 7
_root.gotoAndPlay(1);
Frame 8
stop();
Instance of Symbol 112 MovieClip in Frame 8
onClipEvent (load) {
this._alpha = 0;
flag2 = 0;
}
onClipEvent (enterFrame) {
if ((flag2 == 0) && (this._alpha >= 100)) {
flag2 = 1;
} else if (flag2 == 0) {
this._alpha = this._alpha + 20;
} else if (flag2 == 2) {
this._alpha = this._alpha - 20;
if (this._alpha <= 0) {
_root.gotoAndPlay(_root._currentframe + 2);
}
}
}
Frame 9
gotoAndPlay (1);
Frame 10
stop();
Instance of Symbol 140 MovieClip in Frame 10
onClipEvent (load) {
this._alpha = 0;
flag2 = 0;
}
onClipEvent (enterFrame) {
if ((flag2 == 0) && (this._alpha >= 100)) {
flag2 = 1;
} else if (flag2 == 0) {
this._alpha = this._alpha + 20;
} else if (flag2 == 2) {
this._alpha = this._alpha - 20;
if (this._alpha <= 0) {
_root.gotoAndPlay(_root._currentframe + 2);
}
}
}
Frame 11
_root.gotoAndPlay(1);
Frame 12
stop();
Instance of Symbol 153 MovieClip in Frame 12
onClipEvent (load) {
this._alpha = 0;
flag2 = 0;
}
onClipEvent (enterFrame) {
if ((flag2 == 0) && (this._alpha >= 100)) {
flag2 = 1;
} else if (flag2 == 0) {
this._alpha = this._alpha + 20;
} else if (flag2 == 2) {
this._alpha = this._alpha - 20;
if (this._alpha <= 0) {
_root.gotoAndPlay(_root._currentframe + 2);
}
}
}
Frame 13
_root.gotoAndPlay(1);
Frame 14
stop();
Instance of Symbol 194 MovieClip in Frame 14
onClipEvent (load) {
this._alpha = 0;
flag2 = 0;
}
onClipEvent (enterFrame) {
if ((flag2 == 0) && (this._alpha >= 100)) {
flag2 = 1;
} else if (flag2 == 0) {
this._alpha = this._alpha + 20;
} else if (flag2 == 2) {
this._alpha = this._alpha - 20;
if (this._alpha <= 0) {
_root.gotoAndPlay(_root._currentframe + 2);
}
}
}
Frame 15
_root.gotoAndPlay(1);
Frame 16
stop();
Instance of Symbol 217 MovieClip in Frame 16
onClipEvent (load) {
this._alpha = 0;
flag2 = 0;
}
onClipEvent (enterFrame) {
if ((flag2 == 0) && (this._alpha >= 100)) {
flag2 = 1;
} else if (flag2 == 0) {
this._alpha = this._alpha + 20;
} else if (flag2 == 2) {
this._alpha = this._alpha - 20;
if (this._alpha <= 0) {
_root.gotoAndPlay(_root._currentframe + 2);
}
}
}
Frame 17
_root.gotoAndPlay(1);
Frame 18
stop();
Instance of Symbol 223 MovieClip in Frame 18
on (press) {
so = new Sound();
so.attachSound("sou5");
so.start(0, 1);
_root.gotoAndStop(1);
}
Frame 19
_root.gotoAndPlay(1);
Frame 20
stop();
Instance of Symbol 235 MovieClip in Frame 20
onClipEvent (load) {
this._alpha = 0;
flag = 0;
}
onClipEvent (enterFrame) {
if ((flag == 0) && (this._alpha >= 100)) {
flag = 1;
} else if (flag == 0) {
this._alpha = this._alpha + 20;
} else if (flag == 2) {
this._alpha = this._alpha - 20;
if (this._alpha <= 0) {
_root.gotoAndPlay(_root._currentframe + 2);
}
}
}
Frame 21
_root.gotoAndPlay(1);
Frame 22
stop();
Instance of Symbol 251 MovieClip in Frame 22
onClipEvent (load) {
this._alpha = 0;
flag = 0;
}
onClipEvent (enterFrame) {
if ((flag == 0) && (this._alpha >= 100)) {
flag = 1;
} else if (flag == 0) {
this._alpha = this._alpha + 20;
} else if (flag == 2) {
this._alpha = this._alpha - 20;
if (this._alpha <= 0) {
_root.gotoAndPlay(_root._currentframe + 2);
}
}
}
Frame 23
_root.gotoAndPlay(1);
Frame 24
stop();
Instance of Symbol 287 MovieClip in Frame 24
onClipEvent (load) {
this._alpha = 0;
flag = 0;
}
onClipEvent (enterFrame) {
if ((flag == 0) && (this._alpha >= 100)) {
flag = 1;
} else if (flag == 0) {
this._alpha = this._alpha + 20;
} else if (flag == 2) {
this._alpha = this._alpha - 20;
if (this._alpha <= 0) {
_root.gotoAndPlay(_root._currentframe + 2);
}
}
}
Frame 25
_root.gotoAndPlay(1);
Frame 26
stop();
Instance of Symbol 349 MovieClip in Frame 26
onClipEvent (load) {
this._alpha = 0;
flag = 0;
}
onClipEvent (enterFrame) {
if ((flag == 0) && (this._alpha >= 100)) {
flag = 1;
} else if (flag == 0) {
this._alpha = this._alpha + 20;
} else if (flag == 2) {
this._alpha = this._alpha - 20;
if (this._alpha <= 0) {
_root.gotoAndPlay(18);
}
}
}
Instance of Symbol 14 MovieClip in Symbol 15 MovieClip [2] Frame 1
onClipEvent (load) {
count = 0;
this._xscale = 0;
this._yscale = 0;
}
onClipEvent (enterFrame) {
count++;
this._xscale = this._xscale + 10;
this._yscale = this._yscale + 10;
this._alpha = this._alpha - 5;
if (count >= 20) {
_parent.removeMovieClip();
}
}
Instance of Symbol 17 MovieClip in Symbol 18 MovieClip [ef2] Frame 1
onClipEvent (load) {
function intrandomizer(min, max) {
ans = Math.floor((Math.random() * (max - min)) + min);
return(ans);
}
_parent._rotation = _parent._rotation + intrandomizer(0, 360);
}
onClipEvent (enterFrame) {
this._xscale = this._xscale - 5;
this._yscale = this._yscale - 5;
this._alpha = this._alpha - 5;
this._x = this._x + 2;
if (this._yscale <= 0) {
_parent.removeMovieClip();
}
}
Instance of Symbol 17 MovieClip in Symbol 19 MovieClip [4] Frame 1
onClipEvent (load) {
count = 0;
this._alpha = 70;
}
onClipEvent (enterFrame) {
count++;
this._xscale = this._xscale - 12;
this._yscale = this._yscale - 12;
this._alpha = this._alpha - 12;
if (count >= 7) {
_parent.removeMovieClip();
}
}
Symbol 23 MovieClip [ef1] Frame 16
trace(1);
Symbol 23 MovieClip [ef1] Frame 21
this.removeMovieClip();
Symbol 37 MovieClip Frame 1
stop();
Symbol 42 MovieClip Frame 1
stop();
Symbol 42 MovieClip Frame 20
gotoAndPlay (2);
Symbol 45 MovieClip Frame 1
count2 = 0;
Instance of Symbol 37 MovieClip in Symbol 45 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.bottun1._currentframe == 1) {
this.gotoAndStop(1);
} else {
this.gotoAndPlay(2);
}
}
Instance of Symbol 42 MovieClip "bottun1" in Symbol 45 MovieClip Frame 1
on (press) {
if (this._currentframe == 1) {
this.gotoAndPlay(2);
_parent.count++;
so = new Sound();
so.attachSound("sou5");
so.start(0, 1);
} else {
this.gotoAndPlay(1);
_parent.count--;
so = new Sound();
so.attachSound("sou5");
so.start(0, 1);
}
}
Instance of Symbol 37 MovieClip in Symbol 45 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.bottun3._currentframe == 1) {
this.gotoAndStop(1);
} else {
this.gotoAndPlay(2);
}
}
Instance of Symbol 42 MovieClip "bottun3" in Symbol 45 MovieClip Frame 1
on (press) {
so = new Sound();
so.attachSound("sou5");
so.start(0, 1);
if (this._currentframe == 1) {
this.gotoAndPlay(2);
_parent.count++;
} else {
this.gotoAndPlay(1);
_parent.count--;
}
}
Instance of Symbol 37 MovieClip in Symbol 45 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.bottun4._currentframe == 1) {
this.gotoAndStop(1);
} else {
this.gotoAndPlay(2);
}
}
Instance of Symbol 37 MovieClip in Symbol 45 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.bottun2._currentframe == 1) {
this.gotoAndStop(1);
} else {
this.gotoAndPlay(2);
}
}
Instance of Symbol 42 MovieClip "bottun2" in Symbol 45 MovieClip Frame 1
on (press) {
so = new Sound();
so.attachSound("sou5");
so.start(0, 1);
if (this._currentframe == 1) {
this.gotoAndPlay(2);
_parent.count++;
} else {
this.gotoAndPlay(1);
_parent.count--;
}
}
Instance of Symbol 42 MovieClip "bottun4" in Symbol 45 MovieClip Frame 1
on (press) {
so = new Sound();
so.attachSound("sou5");
so.start(0, 1);
if (this._currentframe == 1) {
this.gotoAndPlay(2);
_parent.count++;
} else {
this.gotoAndPlay(1);
_parent.count--;
}
}
Instance of Symbol 42 MovieClip in Symbol 45 MovieClip Frame 1
on (press) {
so = new Sound();
so.attachSound("sou5");
so.start(0, 1);
if (this._currentframe == 1) {
this.gotoAndPlay(2);
_parent.count2++;
} else {
this.gotoAndPlay(1);
_parent.count2--;
}
}
Instance of Symbol 42 MovieClip in Symbol 45 MovieClip Frame 1
on (press) {
so = new Sound();
so.attachSound("sou5");
so.start(0, 1);
if (this._currentframe == 1) {
this.gotoAndPlay(2);
_parent.count2++;
} else {
this.gotoAndPlay(1);
_parent.count2--;
}
}
Instance of Symbol 42 MovieClip in Symbol 45 MovieClip Frame 1
on (press) {
so = new Sound();
so.attachSound("sou5");
so.start(0, 1);
if (this._currentframe == 1) {
this.gotoAndPlay(2);
_parent.count2++;
} else {
this.gotoAndPlay(1);
_parent.count2--;
}
}
Instance of Symbol 42 MovieClip in Symbol 45 MovieClip Frame 1
on (press) {
so = new Sound();
so.attachSound("sou5");
so.start(0, 1);
if (this._currentframe == 1) {
this.gotoAndPlay(2);
_parent.count2++;
} else {
this.gotoAndPlay(1);
_parent.count2--;
}
}
Instance of Symbol 42 MovieClip in Symbol 45 MovieClip Frame 1
on (press) {
if ((_parent.count == 4) && (_parent.count2 == 0)) {
so = new Sound();
so.attachSound("sou12");
so.start(0, 1);
_parent.flag2 = 1;
this.gotoAndPlay(2);
} else {
so = new Sound();
so.attachSound("sou5");
so.start(0, 1);
}
}
Symbol 46 MovieClip Frame 1
function sidemove(degreeinc, movewidth) {
if (sidemoveflag != 0) {
sidemoveflag = 0;
firstX = _parent._x;
moveinc = degreeinc;
sideDegree = sideDegree - moveinc;
}
sideDegree = sideDegree + moveinc;
sideRadian = (Math.PI * sideDegree) / 180;
_parent._x = _parent._x + (Math.sin(sideRadian) * movewidth);
}
function verticalmove(degreeinc, movelength) {
verticalDegree = verticalDegree + degreeinc;
verticalRadian = (Math.PI * verticalDegree) / 180;
_parent._y = _parent._y + (Math.sin(verticalRadian) * movelength);
}
function verticalmove2(degreeInc2, moveLength2, verticalspeed, cycleflag) {
if (firstflag != 0) {
firstflag = 0;
nowLength = moveLength2;
cycleflag2 = 0;
maxLength = moveLength2;
minLength = moveLength2 / 10;
}
verticalDegree2 = verticalDegree2 + degreeInc2;
verticalRadian2 = (Math.PI * verticalDegree2) / 180;
_parent._y = _parent._y + (Math.sin(verticalRadian2) * nowLength);
if ((nowLength > minLength) && (cycleflag2 == 0)) {
nowLength = nowLength * ((100 - verticalspeed) / 100);
if ((nowLength <= minLength) && (cycleflag)) {
cycleflag2 = 1;
}
} else if ((nowLength < maxLength) && (cycleflag2 == 1)) {
nowLength = nowLength * ((100 + verticalspeed) / 100);
if (nowLength >= maxLength) {
cycleflag2 = 0;
}
}
}
function lighting(maxlight, minlight, lightspeed) {
if ((lightflag != 0) && (lightflag != 1)) {
_parent._alpha = maxlight;
lightflag = 0;
} else if ((_parent._alpha > minlight) && (lightflag == 0)) {
_parent._alpha = _parent._alpha - lightspeed;
if (_parent._alpha <= minlight) {
lightflag = 1;
}
} else {
_parent._alpha = _parent._alpha + lightspeed;
if (_parent._alpha >= maxlight) {
lightflag = 0;
}
}
}
function attaching(ID, attachx, attachy) {
_global.attachcount++;
attachObject = "object" + _global.attachcount;
_parent.attachMovie(ID, attachObject, _global.attachcount);
_parent[attachObject]._x = attachx;
_parent[attachObject]._y = attachy;
}
function remove(removeAlpha) {
if (_parent._alpha <= removeAlpha) {
_parent.removeMovieClip();
}
}
function scaling(scaleSpeedx, scaleSpeedy, scaleFlag) {
if (scaleFlag) {
_parent._xscale = _parent._xscale + scaleSpeedx;
_parent._yscale = _parent._yscale + scaleSpeedy;
} else {
_parent._xscale = _parent._xscale - scaleSpeedx;
_parent._yscale = _parent._yscale - scaleSpeedy;
}
}
function moveing(moveX, moveY) {
_parent._x = _parent._x + moveX;
_parent._y = _parent._y + moveY;
}
function swapformat() {
_parent.swapDepths(Math.floor(_parent._y));
}
function randomizer(min, max) {
ans = (Math.random() * (max - min)) + min;
return(ans);
}
function intrandomizer(min, max) {
ans = Math.floor((Math.random() * (max - min)) + min);
return(ans);
}
Instance of Symbol 46 MovieClip in Symbol 49 MovieClip Frame 1
onClipEvent (load) {
frame = 20;
}
onClipEvent (enterFrame) {
if (frame == _root._currentframe) {
if (_parent._alpha > 0) {
_parent._alpha = _parent._alpha - 2;
}
} else {
frame = _root._currentframe;
_parent._alpha = 100;
}
_parent.level = (frame / 2) - 9;
}
Symbol 54 MovieClip Frame 1
stop();
Symbol 57 MovieClip Frame 1
stop();
Symbol 61 MovieClip Frame 1
stop();
Symbol 61 MovieClip Frame 2
sounder = new Sound(this);
sounder.attachSound("sou5");
sounder.start(0, 1);
Symbol 62 MovieClip Frame 1
inputkey = new Array(0, 0, 0, 0, 0, 0);
inputcount = 0;
Instance of Symbol 54 MovieClip in Symbol 62 MovieClip Frame 1
onClipEvent (load) {
function intrandomizer(min, max) {
ans = Math.floor((Math.random() * (max - min)) + min);
return(ans);
}
flag = 0;
count = 0;
act = 0;
keycord = 0;
_parent.keyarray = new Array(7);
}
on (press) {
sounder = new Sound(this);
sounder.attachSound("sou1");
sounder.start(0.1);
this.gotoAndPlay(2);
if (flag == 0) {
flag = 1;
_parent.inputcount = 0;
}
}
onClipEvent (enterFrame) {
if (flag == 1) {
count++;
if (count >= 7) {
act = intrandomizer(1, 8);
_parent["bottun" + act].gotoAndPlay(2);
_parent.keyarray[keycord] = act;
count = 0;
keycord++;
}
if (keycord >= 6) {
flag = 0;
keycord = 0;
act = 0;
count = 0;
}
}
}
Instance of Symbol 54 MovieClip in Symbol 62 MovieClip Frame 1
onClipEvent (load) {
flag = 0;
}
on (press) {
this.gotoAndPlay(2);
a = 0;
while (a <= 5) {
if (_parent.inputkey[a] != _parent.keyarray[a]) {
sounder = new Sound(_parent);
sounder.attachSound("sou10");
sounder.start(0.1);
break;
}
if (a == 5) {
flag = 1;
_parent.flag = 2;
sounder = new Sound(this);
sounder.attachSound("sou8");
sounder.start(0.2);
}
a++;
}
}
Instance of Symbol 61 MovieClip in Symbol 62 MovieClip Frame 1
on (press) {
_parent.inputkey[_parent.inputcount] = 1;
_parent.inputcount++;
this.gotoAndPlay(2);
}
Instance of Symbol 61 MovieClip in Symbol 62 MovieClip Frame 1
on (press) {
_parent.inputkey[_parent.inputcount] = 3;
_parent.inputcount++;
this.gotoAndPlay(2);
}
Instance of Symbol 61 MovieClip in Symbol 62 MovieClip Frame 1
on (press) {
_parent.inputkey[_parent.inputcount] = 5;
_parent.inputcount++;
this.gotoAndPlay(2);
}
Instance of Symbol 61 MovieClip in Symbol 62 MovieClip Frame 1
on (press) {
_parent.inputkey[_parent.inputcount] = 7;
_parent.inputcount++;
this.gotoAndPlay(2);
}
Instance of Symbol 61 MovieClip in Symbol 62 MovieClip Frame 1
on (press) {
_parent.inputkey[_parent.inputcount] = 2;
_parent.inputcount++;
this.gotoAndPlay(2);
}
Instance of Symbol 61 MovieClip in Symbol 62 MovieClip Frame 1
on (press) {
_parent.inputkey[_parent.inputcount] = 4;
_parent.inputcount++;
this.gotoAndPlay(2);
}
Instance of Symbol 61 MovieClip in Symbol 62 MovieClip Frame 1
on (press) {
_parent.inputkey[_parent.inputcount] = 6;
_parent.inputcount++;
this.gotoAndPlay(2);
}
Symbol 68 MovieClip Frame 1
stop();
Symbol 74 MovieClip Frame 1
stop();
Symbol 77 MovieClip Frame 1
KeyArray = new Array(12);
CorrectArray = new Array(2, 6, 4, 8, 5, 7, 2, 3, 1, 5, 9, 1);
flag = 1;
count = 0;
Instance of Symbol 68 MovieClip in Symbol 77 MovieClip Frame 1
on (press) {
sounder1 = new Sound();
sounder1.attachSound("sou5");
sounder1.start(0, 1);
gotoAndPlay (2);
_parent.KeyArray[_parent.count] = 7;
_parent.count++;
}
Instance of Symbol 68 MovieClip in Symbol 77 MovieClip Frame 1
on (press) {
sounder1 = new Sound();
sounder1.attachSound("sou5");
sounder1.start(0, 1);
gotoAndPlay (2);
_parent.KeyArray[_parent.count] = 8;
_parent.count++;
}
Instance of Symbol 68 MovieClip in Symbol 77 MovieClip Frame 1
on (press) {
sounder1 = new Sound();
sounder1.attachSound("sou5");
sounder1.start(0, 1);
gotoAndPlay (2);
_parent.KeyArray[_parent.count] = 9;
_parent.count++;
}
Instance of Symbol 68 MovieClip in Symbol 77 MovieClip Frame 1
on (press) {
sounder1 = new Sound();
sounder1.attachSound("sou5");
sounder1.start(0, 1);
gotoAndPlay (2);
_parent.KeyArray[_parent.count] = 4;
_parent.count++;
}
Instance of Symbol 68 MovieClip in Symbol 77 MovieClip Frame 1
on (press) {
sounder1 = new Sound();
sounder1.attachSound("sou5");
sounder1.start(0, 1);
gotoAndPlay (2);
_parent.KeyArray[_parent.count] = 1;
_parent.count++;
}
Instance of Symbol 68 MovieClip in Symbol 77 MovieClip Frame 1
on (press) {
sounder1 = new Sound();
sounder1.attachSound("sou5");
sounder1.start(0, 1);
gotoAndPlay (2);
_parent.KeyArray[_parent.count] = 5;
_parent.count++;
}
Instance of Symbol 68 MovieClip in Symbol 77 MovieClip Frame 1
on (press) {
sounder1 = new Sound();
sounder1.attachSound("sou5");
sounder1.start(0, 1);
gotoAndPlay (2);
_parent.KeyArray[_parent.count] = 6;
_parent.count++;
}
Instance of Symbol 68 MovieClip in Symbol 77 MovieClip Frame 1
on (press) {
sounder1 = new Sound();
sounder1.attachSound("sou5");
sounder1.start(0, 1);
gotoAndPlay (2);
_parent.KeyArray[_parent.count] = 2;
_parent.count++;
}
Instance of Symbol 68 MovieClip in Symbol 77 MovieClip Frame 1
on (press) {
sounder1 = new Sound();
sounder1.attachSound("sou5");
sounder1.start(0, 1);
gotoAndPlay (2);
_parent.KeyArray[_parent.count] = 3;
_parent.count++;
}
Instance of Symbol 74 MovieClip in Symbol 77 MovieClip Frame 1
onClipEvent (load) {
correctcount = 0;
}
on (press) {
gotoAndPlay (2);
a = 0;
while (a <= 11) {
if (_parent.CorrectArray[a] == _parent.KeyArray[a]) {
correctcount++;
}
trace(_parent.KeyArray[a]);
trace(_parent.CorrectArray[a]);
a++;
}
trace(correctcount);
if (correctcount == 12) {
_parent.flag2 = 2;
sounder = new Sound(this);
sounder.attachSound("sou8");
sounder.start(0.1);
} else {
sounder = new Sound();
sounder.attachSound("sou1");
sounder.start(0.1);
correctcount = 0;
_parent.count = 0;
}
}
Symbol 84 MovieClip Frame 1
stop();
Symbol 89 MovieClip Frame 1
stop();
Symbol 94 MovieClip Frame 1
stop();
Symbol 99 MovieClip Frame 1
stop();
Symbol 107 MovieClip Frame 70
gotoAndPlay (31);
Symbol 111 MovieClip Frame 1
stop();
Symbol 111 MovieClip Frame 10
stop();
Instance of Symbol 80 MovieClip "wall" in Symbol 112 MovieClip Frame 1
onClipEvent (load) {
this.swapDepths(9999);
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent.ball._x + 150, _parent.ball._y + 130, true)) {
_parent.flag = 5;
}
}
Instance of Symbol 84 MovieClip in Symbol 112 MovieClip Frame 1
onClipEvent (load) {
this.swapDepths(10000);
}
on (press) {
sounder = new Sound(this);
sounder.attachSound("sou3");
sounder.start(0.1);
_parent.flag = 1;
this.gotoAndPlay(2);
}
Instance of Symbol 89 MovieClip in Symbol 112 MovieClip Frame 1
onClipEvent (load) {
this.swapDepths(10002);
}
on (press) {
sounder = new Sound(this);
sounder.attachSound("sou3");
sounder.start(0.1);
_parent.flag = 4;
this.gotoAndPlay(2);
}
Instance of Symbol 94 MovieClip in Symbol 112 MovieClip Frame 1
onClipEvent (load) {
this.swapDepths(10001);
}
on (press) {
sounder = new Sound(this);
sounder.attachSound("sou3");
sounder.start(0.1);
_parent.flag = 3;
this.gotoAndPlay(2);
}
Instance of Symbol 99 MovieClip in Symbol 112 MovieClip Frame 1
onClipEvent (load) {
this.swapDepths(10003);
}
on (press) {
sounder = new Sound(this);
sounder.attachSound("sou3");
sounder.start(0.1);
_parent.flag = 2;
this.gotoAndPlay(2);
}
Instance of Symbol 107 MovieClip "ball" in Symbol 112 MovieClip Frame 1
onClipEvent (load) {
nowx = this._x;
nowy = this._y;
_parent.flag = 0;
this.swapDepths(9988);
}
onClipEvent (enterFrame) {
if (_parent.flag == 1) {
this._y--;
} else if (_parent.flag == 2) {
this._x--;
} else if (_parent.flag == 3) {
this._x++;
} else if (_parent.flag == 4) {
this._y++;
} else if (_parent.flag == 6) {
this._x = nowx;
this._y = nowy;
this.gotoAndPlay(1);
}
}
Instance of Symbol 46 MovieClip "sc" in Symbol 112 MovieClip Frame 1
onClipEvent (load) {
_parent._alpha = 0;
_parent.flag2 = 0;
count = 0;
}
onClipEvent (enterFrame) {
count++;
if (count == 10) {
count = 0;
attaching("ef2", _parent.ball._x, _parent.ball._y);
}
if (_parent.flag == 5) {
a = 0;
while (a <= 5) {
attaching("ef2", _parent.ball._x, _parent.ball._y);
a++;
}
sounder = new Sound();
sounder.attachSound("sou9");
sounder.start(0.1);
_parent.flag = 6;
}
}
Instance of Symbol 111 MovieClip in Symbol 112 MovieClip Frame 1
onClipEvent (load) {
flag = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent.ball._x + 150, _parent.ball._y + 130, true) && (flag == 0)) {
this.gotoAndPlay(2);
_parent.flag2 = 2;
sounder = new Sound(this);
sounder.attachSound("sou8");
sounder.start(0.1);
flag = 1;
}
}
Symbol 119 MovieClip Frame 1
stop();
Symbol 119 MovieClip Frame 2
stop();
Symbol 119 MovieClip Frame 3
stop();
Symbol 119 MovieClip Frame 4
stop();
Symbol 119 MovieClip Frame 5
stop();
Symbol 119 MovieClip Frame 6
stop();
Symbol 119 MovieClip Frame 7
stop();
Symbol 122 MovieClip Frame 1
stop();
Symbol 122 MovieClip Frame 80
_parent.flag = 0;
a = 1;
while (a <= 10) {
_parent[a].gotoAndStop(1);
a++;
}
so = new Sound();
so.attachSound("sou4");
so.start(0, 1);
Symbol 139 MovieClip Frame 1
stop();
Symbol 140 MovieClip Frame 1
correct = new Array(10);
input = new Array(10);
flag = 0;
count = 1;
Instance of Symbol 122 MovieClip "parts1" in Symbol 140 MovieClip Frame 1
on (press) {
this.gotoAndPlay(2);
}
Instance of Symbol 125 MovieClip in Symbol 140 MovieClip Frame 1
onClipEvent (load) {
answer = 0;
}
on (press) {
so = new Sound();
so.attachSound("sou5");
so.start(0, 1);
name = "x" + _parent.count;
num = _parent.count - 1;
_parent.input[num] = 4;
_parent[name].gotoAndPlay(4);
_parent.count++;
if (_parent.count >= 11) {
a = 0;
while (a <= 9) {
trace(_parent.input[a]);
trace(_parent.correct[a]);
if (_parent.input[a] == _parent.correct[a]) {
answer++;
}
a++;
}
if (answer == 10) {
_parent.flag2 = 2;
trace("OK");
}
trace("answer=" + answer);
answer = 0;
}
}
Instance of Symbol 127 MovieClip in Symbol 140 MovieClip Frame 1
onClipEvent (load) {
answer = 0;
}
on (press) {
so = new Sound();
so.attachSound("sou5");
so.start(0, 1);
name = "x" + _parent.count;
num = _parent.count - 1;
_parent.input[num] = 7;
_parent[name].gotoAndPlay(7);
_parent.count++;
if (_parent.count >= 11) {
a = 0;
while (a <= 9) {
_parent.count = 0;
trace(_parent.input[a]);
trace(_parent.correct[a]);
if (_parent.input[a] == _parent.correct[a]) {
answer++;
}
a++;
}
if (answer == 10) {
_parent.flag2 = 2;
trace("OK");
}
trace("answer=" + answer);
answer = 0;
}
}
Instance of Symbol 129 MovieClip in Symbol 140 MovieClip Frame 1
onClipEvent (load) {
answer = 0;
}
on (press) {
so = new Sound();
so.attachSound("sou5");
so.start(0, 1);
name = "x" + _parent.count;
num = _parent.count - 1;
_parent.input[num] = 2;
_parent[name].gotoAndPlay(2);
_parent.count++;
if (_parent.count >= 11) {
a = 0;
while (a <= 9) {
trace(_parent.input[a]);
trace(_parent.correct[a]);
if (_parent.input[a] == _parent.correct[a]) {
answer++;
}
a++;
}
if (answer == 10) {
_parent.flag2 = 2;
trace("OK");
}
trace("answer=" + answer);
answer = 0;
}
}
Instance of Symbol 131 MovieClip in Symbol 140 MovieClip Frame 1
onClipEvent (load) {
answer = 0;
}
on (press) {
so = new Sound();
so.attachSound("sou5");
so.start(0, 1);
name = "x" + _parent.count;
num = _parent.count - 1;
_parent.input[num] = 3;
_parent[name].gotoAndPlay(3);
_parent.count++;
if (_parent.count >= 11) {
a = 0;
while (a <= 9) {
trace(_parent.input[a]);
trace(_parent.correct[a]);
if (_parent.input[a] == _parent.correct[a]) {
answer++;
}
a++;
}
if (answer == 10) {
_parent.flag2 = 2;
trace("OK");
}
trace("answer=" + answer);
answer = 0;
}
}
Instance of Symbol 133 MovieClip in Symbol 140 MovieClip Frame 1
onClipEvent (load) {
answer = 0;
}
on (press) {
so = new Sound();
so.attachSound("sou5");
so.start(0, 1);
name = "x" + _parent.count;
num = _parent.count - 1;
_parent.input[num] = 5;
_parent[name].gotoAndPlay(5);
_parent.count++;
if (_parent.count >= 11) {
a = 0;
while (a <= 9) {
trace(_parent.input[a]);
trace(_parent.correct[a]);
if (_parent.input[a] == _parent.correct[a]) {
answer++;
}
a++;
}
if (answer == 10) {
_parent.flag2 = 2;
trace("OK");
}
trace("answer=" + answer);
answer = 0;
}
}
Instance of Symbol 135 MovieClip in Symbol 140 MovieClip Frame 1
onClipEvent (load) {
answer = 0;
}
on (press) {
so = new Sound();
so.attachSound("sou5");
so.start(0, 1);
name = "x" + _parent.count;
num = _parent.count - 1;
_parent.input[num] = 6;
_parent[name].gotoAndPlay(6);
_parent.count++;
if (_parent.count >= 11) {
a = 0;
while (a <= 9) {
trace(_parent.input[a]);
trace(_parent.correct[a]);
if (_parent.input[a] == _parent.correct[a]) {
answer++;
}
a++;
}
if (answer == 10) {
_parent.flag2 = 2;
trace("OK");
}
trace("answer=" + answer);
answer = 0;
}
}
Instance of Symbol 139 MovieClip in Symbol 140 MovieClip Frame 1
onClipEvent (load) {
function intrandomizer(min, max) {
ans = Math.floor((Math.random() * (max - min)) + min);
return(ans);
}
}
on (press) {
so = new Sound();
so.attachSound("sou4");
so.start(0, 1);
if (_parent.flag == 0) {
_parent.flag = 1;
a = 0;
while (a <= 9) {
_parent.correct[a] = intrandomizer(2, 7);
num2 = _parent.correct[a];
_parent[a + 1].gotoAndPlay(num2);
num = "x" + (a + 1);
trace(num);
_parent[num].gotoAndStop(1);
a++;
}
_parent.count = 1;
_parent.parts1.gotoAndPlay(2);
}
}
Symbol 146 MovieClip Frame 1
stop();
count = 0;
Symbol 146 MovieClip Frame 21
gotoAndPlay (2);
Symbol 152 MovieClip Frame 1
stop();
Symbol 152 MovieClip Frame 50
gotoAndPlay (31);
Instance of Symbol 146 MovieClip in Symbol 153 MovieClip Frame 1
on (press) {
so = new Sound();
so.attachSound("sou5");
so.start(0, 1);
if (_parent.x8.count == 0) {
_parent.x8.count = 1;
} else {
_parent.x8.count = 0;
}
if (_parent.x4.count == 0) {
_parent.x4.count = 1;
} else {
_parent.x4.count = 0;
}
if (_parent.x7.count == 0) {
_parent.x7.count = 1;
} else {
_parent.x7.count = 0;
}
}
Instance of Symbol 146 MovieClip in Symbol 153 MovieClip Frame 1
on (press) {
so = new Sound();
so.attachSound("sou5");
so.start(0, 1);
if (_parent.x3.count == 0) {
_parent.x3.count = 1;
} else {
_parent.x3.count = 0;
}
if (_parent.x4.count == 0) {
_parent.x4.count = 1;
} else {
_parent.x4.count = 0;
}
}
Instance of Symbol 146 MovieClip in Symbol 153 MovieClip Frame 1
on (press) {
so = new Sound();
so.attachSound("sou5");
so.start(0, 1);
if (_parent.x1.count == 0) {
_parent.x1.count = 1;
} else {
_parent.x1.count = 0;
}
if (_parent.x3.count == 0) {
_parent.x3.count = 1;
} else {
_parent.x3.count = 0;
}
if (_parent.x4.count == 0) {
_parent.x4.count = 1;
} else {
_parent.x4.count = 0;
}
}
Instance of Symbol 146 MovieClip in Symbol 153 MovieClip Frame 1
on (press) {
so = new Sound();
so.attachSound("sou5");
so.start(0, 1);
if (_parent.x2.count == 0) {
_parent.x2.count = 1;
} else {
_parent.x2.count = 0;
}
if (_parent.x1.count == 0) {
_parent.x1.count = 1;
} else {
_parent.x1.count = 0;
}
if (_parent.x4.count == 0) {
_parent.x4.count = 1;
} else {
_parent.x4.count = 0;
}
}
Instance of Symbol 146 MovieClip in Symbol 153 MovieClip Frame 1
on (press) {
so = new Sound();
so.attachSound("sou5");
so.start(0, 1);
if (_parent.x2.count == 0) {
_parent.x2.count = 1;
} else {
_parent.x2.count = 0;
}
if (_parent.x3.count == 0) {
_parent.x3.count = 1;
} else {
_parent.x3.count = 0;
}
}
Instance of Symbol 146 MovieClip in Symbol 153 MovieClip Frame 1
on (press) {
so = new Sound();
so.attachSound("sou5");
so.start(0, 1);
if (_parent.x6.count == 0) {
_parent.x6.count = 1;
} else {
_parent.x6.count = 0;
}
if (_parent.x5.count == 0) {
_parent.x5.count = 1;
} else {
_parent.x5.count = 0;
}
}
Instance of Symbol 146 MovieClip in Symbol 153 MovieClip Frame 1
on (press) {
so = new Sound();
so.attachSound("sou5");
so.start(0, 1);
if (_parent.x9.count == 0) {
_parent.x9.count = 1;
} else {
_parent.x9.count = 0;
}
if (_parent.x12.count == 0) {
_parent.x12.count = 1;
} else {
_parent.x12.count = 0;
}
if (_parent.x10.count == 0) {
_parent.x10.count = 1;
} else {
_parent.x10.count = 0;
}
}
Instance of Symbol 146 MovieClip in Symbol 153 MovieClip Frame 1
on (press) {
so = new Sound();
so.attachSound("sou5");
so.start(0, 1);
if (_parent.x7.count == 0) {
_parent.x7.count = 1;
} else {
_parent.x7.count = 0;
}
if (_parent.x9.count == 0) {
_parent.x9.count = 1;
} else {
_parent.x9.count = 0;
}
}
Instance of Symbol 146 MovieClip in Symbol 153 MovieClip Frame 1
on (press) {
so = new Sound();
so.attachSound("sou5");
so.start(0, 1);
if (_parent.x8.count == 0) {
_parent.x8.count = 1;
} else {
_parent.x8.count = 0;
}
if (_parent.x7.count == 0) {
_parent.x7.count = 1;
} else {
_parent.x7.count = 0;
}
}
Instance of Symbol 146 MovieClip in Symbol 153 MovieClip Frame 1
on (press) {
so = new Sound();
so.attachSound("sou5");
so.start(0, 1);
if (_parent.x6.count == 0) {
_parent.x6.count = 1;
} else {
_parent.x6.count = 0;
}
if (_parent.x5.count == 0) {
_parent.x5.count = 1;
} else {
_parent.x5.count = 0;
}
}
Instance of Symbol 146 MovieClip in Symbol 153 MovieClip Frame 1
on (press) {
so = new Sound();
so.attachSound("sou5");
so.start(0, 1);
if (_parent.x11.count == 0) {
_parent.x11.count = 1;
} else {
_parent.x11.count = 0;
}
if (_parent.x5.count == 0) {
_parent.x5.count = 1;
} else {
_parent.x5.count = 0;
}
if (_parent.x10.count == 0) {
_parent.x10.count = 1;
} else {
_parent.x10.count = 0;
}
}
Instance of Symbol 146 MovieClip in Symbol 153 MovieClip Frame 1
on (press) {
so = new Sound();
so.attachSound("sou5");
so.start(0, 1);
if (_parent.x11.count == 0) {
_parent.x11.count = 1;
} else {
_parent.x11.count = 0;
}
if (_parent.x12.count == 0) {
_parent.x12.count = 1;
} else {
_parent.x12.count = 0;
}
if (_parent.x9.count == 0) {
_parent.x9.count = 1;
} else {
_parent.x9.count = 0;
}
if (_parent.x5.count == 0) {
_parent.x5.count = 1;
} else {
_parent.x5.count = 0;
}
}
Instance of Symbol 146 MovieClip "x1" in Symbol 153 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.count == 1) {
this.gotoAndPlay(2);
} else {
this.gotoAndPlay(1);
}
}
Instance of Symbol 146 MovieClip "x2" in Symbol 153 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.count == 1) {
this.gotoAndPlay(2);
} else {
this.gotoAndPlay(1);
}
}
Instance of Symbol 146 MovieClip "x6" in Symbol 153 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.count == 1) {
this.gotoAndPlay(2);
} else {
this.gotoAndPlay(1);
}
}
Instance of Symbol 146 MovieClip "x5" in Symbol 153 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.count == 1) {
this.gotoAndPlay(2);
} else {
this.gotoAndPlay(1);
}
}
Instance of Symbol 146 MovieClip "x11" in Symbol 153 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.count == 1) {
this.gotoAndPlay(2);
} else {
this.gotoAndPlay(1);
}
}
Instance of Symbol 146 MovieClip "x3" in Symbol 153 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.count == 1) {
this.gotoAndPlay(2);
} else {
this.gotoAndPlay(1);
}
}
Instance of Symbol 146 MovieClip "x9" in Symbol 153 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.count == 1) {
this.gotoAndPlay(2);
} else {
this.gotoAndPlay(1);
}
}
Instance of Symbol 146 MovieClip "x12" in Symbol 153 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.count == 1) {
this.gotoAndPlay(2);
} else {
this.gotoAndPlay(1);
}
}
Instance of Symbol 146 MovieClip "x8" in Symbol 153 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.count == 1) {
this.gotoAndPlay(2);
} else {
this.gotoAndPlay(1);
}
}
Instance of Symbol 146 MovieClip "x7" in Symbol 153 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.count == 1) {
this.gotoAndPlay(2);
} else {
this.gotoAndPlay(1);
}
}
Instance of Symbol 146 MovieClip "x4" in Symbol 153 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.count == 1) {
this.gotoAndPlay(2);
} else {
this.gotoAndPlay(1);
}
}
Instance of Symbol 146 MovieClip "x10" in Symbol 153 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.count == 1) {
this.gotoAndPlay(2);
} else {
this.gotoAndPlay(1);
}
}
Instance of Symbol 152 MovieClip in Symbol 153 MovieClip Frame 1
onClipEvent (enterFrame) {
if (((((((((this._currentframe == 1) && (_parent.x2.count == 1)) && (_parent.x3.count == 1)) && (_parent.x4.count == 1)) && (_parent.x5.count == 1)) && (_parent.x7.count == 1)) && (_parent.x9.count == 1)) && (_parent.x10.count == 1)) && (_parent.x11.count == 1)) {
trace("OK");
this.gotoAndPlay(2);
}
}
on (press) {
if (this._currentframe >= 30) {
so = new Sound();
so.attachSound("sou8");
so.start(0, 1);
_parent.flag2 = 2;
}
}
Symbol 170 MovieClip Frame 1
stop();
Symbol 175 MovieClip Frame 1
stop();
Symbol 175 MovieClip Frame 30
gotoAndStop (1);
Symbol 175 MovieClip Frame 60
gotoAndPlay (31);
Symbol 178 MovieClip Frame 1
stop();
Symbol 181 MovieClip Frame 1
stop();
Symbol 184 MovieClip Frame 1
stop();
Symbol 187 MovieClip Frame 1
stop();
Symbol 194 MovieClip Frame 1
input = new Array();
correct = new Array(0, 2, 4, 6, 1, 3, 5);
display = "";
swap = 1;
Instance of Symbol 44 MovieClip in Symbol 194 MovieClip Frame 1
on (press) {
a = 1;
while (a <= 6) {
trace(_parent.input[a]);
a++;
}
}
Instance of Symbol 158 MovieClip "1" in Symbol 194 MovieClip Frame 1
onClipEvent (load) {
flag = 0;
}
Instance of Symbol 158 MovieClip "2" in Symbol 194 MovieClip Frame 1
onClipEvent (load) {
flag = 0;
}
Instance of Symbol 158 MovieClip "3" in Symbol 194 MovieClip Frame 1
onClipEvent (load) {
flag = 0;
}
Instance of Symbol 158 MovieClip "4" in Symbol 194 MovieClip Frame 1
onClipEvent (load) {
flag = 0;
}
Instance of Symbol 158 MovieClip "5" in Symbol 194 MovieClip Frame 1
onClipEvent (load) {
flag = 0;
}
Instance of Symbol 158 MovieClip "6" in Symbol 194 MovieClip Frame 1
onClipEvent (load) {
flag = 0;
}
Instance of Symbol 166 MovieClip "9" in Symbol 194 MovieClip Frame 1
onClipEvent (load) {
flag = 0;
}
onClipEvent (enterFrame) {
if (flag == 0) {
_parent.display = "";
}
}
Instance of Symbol 170 MovieClip "b1" in Symbol 194 MovieClip Frame 1
onClipEvent (load) {
nowx = this._x;
nowy = this._y;
temp = 0;
}
on (press) {
_parent.swap++;
so = new Sound();
so.attachSound("sou6");
so.start(0, 1);
this.swapDepths(_parent.swap + 100);
this.startDrag();
_parent.input[temp] = 0;
_parent[temp].flag = 0;
this.temp = 0;
if (flag == 2) {
_parent[9].flag = 0;
}
this.flag = 0;
}
on (release) {
this.swapDepths(_parent.swap);
so1 = new Sound();
so1.attachSound("sou7");
so1.start(0, 1);
this.stopDrag();
this.gotoAndPlay(2);
a = 1;
while (a <= 6) {
if (this.hitTest(_parent[a]) && (_parent[a].flag == 0)) {
this._x = _parent[a]._x;
this._y = _parent[a]._y;
flag = 1;
_parent.input[a] = 1;
_parent[a].flag = 1;
temp = a;
break;
}
flag = 0;
a++;
}
if (this.hitTest(_parent[9]) && (_parent[9].flag == 0)) {
this._x = _parent[9]._x;
this._y = _parent[9]._y;
this.flag = 2;
_parent[9].flag = 1;
_parent.display = "half";
}
if (flag == 0) {
this._x = nowx;
this._y = nowy;
}
}
onClipEvent (enterFrame) {
this.flag1 = flag;
this.flag2 = temp;
}
Instance of Symbol 175 MovieClip "b2" in Symbol 194 MovieClip Frame 1
onClipEvent (load) {
nowx = this._x;
nowy = this._y;
temp = 0;
}
on (press) {
if (_parent.startflag == 1) {
a = 1;
while (a <= 6) {
if (_parent.correct[a] == _parent.input[a]) {
count++;
}
a++;
}
if (count == 6) {
_parent.flag2 = 2;
so = new Sound();
so.attachSound("sou12");
so.start(0, 1);
} else {
so = new Sound();
so.attachSound("sou6");
so.start(0, 1);
}
count = 0;
} else {
so = new Sound();
so.attachSound("sou6");
so.start(0, 1);
_parent.swap++;
this.swapDepths(_parent.swap + 100);
this.startDrag();
_parent.input[temp] = 0;
_parent[temp].flag = 0;
this.temp = 0;
if (flag == 2) {
_parent[9].flag = 0;
}
this.flag = 0;
}
}
on (release) {
if (_parent.flag2 != 2) {
so1 = new Sound();
so1.attachSound("sou7");
so1.start(0, 1);
}
if (_parent.startflag == 0) {
this.swapDepths(_parent.swap);
this.stopDrag();
this.gotoAndPlay(2);
a = 1;
while (a <= 6) {
if (this.hitTest(_parent[a]) && (_parent[a].flag == 0)) {
this._x = _parent[a]._x;
this._y = _parent[a]._y;
flag = 1;
_parent.input[a] = 2;
_parent[a].flag = 1;
temp = a;
break;
}
flag = 0;
a++;
}
if (this.hitTest(_parent[9]) && (_parent[9].flag == 0)) {
this._x = _parent[9]._x;
this._y = _parent[9]._y;
this.flag = 2;
_parent[9].flag = 1;
_parent.display = "first zone 100";
}
if (flag == 0) {
this._x = nowx;
this._y = nowy;
}
}
}
onClipEvent (enterFrame) {
if ((_parent.startflag == 1) && (this._currentframe <= 30)) {
this.gotoAndPlay(31);
} else if ((_parent.startflag == 0) && (this._currentframe >= 31)) {
this.gotoAndPlay(1);
}
}
Instance of Symbol 178 MovieClip "b3" in Symbol 194 MovieClip Frame 1
onClipEvent (load) {
nowx = this._x;
nowy = this._y;
temp = 0;
}
on (press) {
so = new Sound();
so.attachSound("sou6");
so.start(0, 1);
_parent.swap++;
this.swapDepths(_parent.swap + 100);
this.startDrag();
_parent.input[temp] = 0;
_parent[temp].flag = 0;
this.temp = 0;
if (flag == 2) {
_parent[9].flag = 0;
}
this.flag = 0;
}
on (release) {
so1 = new Sound();
so1.attachSound("sou7");
so1.start(0, 1);
this.swapDepths(_parent.swap);
this.stopDrag();
this.gotoAndPlay(2);
a = 1;
while (a <= 6) {
if (this.hitTest(_parent[a]) && (_parent[a].flag == 0)) {
this._x = _parent[a]._x;
this._y = _parent[a]._y;
flag = 1;
_parent.input[a] = 3;
_parent[a].flag = 1;
temp = a;
break;
}
flag = 0;
a++;
}
if (this.hitTest(_parent[9]) && (_parent[9].flag == 0)) {
this._x = _parent[9]._x;
this._y = _parent[9]._y;
this.flag = 2;
_parent[9].flag = 1;
_parent.display = "-40";
}
if (flag == 0) {
this._x = nowx;
this._y = nowy;
}
}
onClipEvent (enterFrame) {
this.flag1 = flag;
this.flag2 = temp;
}
Instance of Symbol 181 MovieClip "b6" in Symbol 194 MovieClip Frame 1
onClipEvent (load) {
nowx = this._x;
nowy = this._y;
temp = 0;
}
on (press) {
so = new Sound();
so.attachSound("sou6");
so.start(0, 1);
_parent.swap++;
this.swapDepths(_parent.swap + 100);
this.startDrag();
_parent.input[temp] = 0;
_parent[temp].flag = 0;
this.temp = 0;
if (flag == 2) {
_parent[9].flag = 0;
}
this.flag = 0;
}
on (release) {
so1 = new Sound();
so1.attachSound("sou7");
so1.start(0, 1);
this.swapDepths(_parent.swap);
this.stopDrag();
this.gotoAndPlay(2);
a = 1;
while (a <= 6) {
if (this.hitTest(_parent[a]) && (_parent[a].flag == 0)) {
this._x = _parent[a]._x;
this._y = _parent[a]._y;
flag = 1;
_parent.input[a] = 6;
_parent[a].flag = 1;
temp = a;
break;
}
flag = 0;
a++;
}
if (this.hitTest(_parent[9]) && (_parent[9].flag == 0)) {
this._x = _parent[9]._x;
this._y = _parent[9]._y;
this.flag = 2;
_parent[9].flag = 1;
_parent.display = "70 over left or 70 under right";
}
if (flag == 0) {
this._x = nowx;
this._y = nowy;
}
}
onClipEvent (enterFrame) {
this.flag1 = flag;
this.flag2 = temp;
}
Instance of Symbol 184 MovieClip "b4" in Symbol 194 MovieClip Frame 1
onClipEvent (load) {
nowx = this._x;
nowy = this._y;
temp = 0;
}
on (press) {
so = new Sound();
so.attachSound("sou6");
so.start(0, 1);
_parent.swap++;
this.swapDepths(_parent.swap + 100);
this.startDrag();
_parent.input[temp] = 0;
_parent[temp].flag = 0;
this.temp = 0;
if (flag == 2) {
_parent[9].flag = 0;
}
this.flag = 0;
}
on (release) {
so1 = new Sound();
so1.attachSound("sou7");
so1.start(0, 1);
this.swapDepths(_parent.swap);
this.stopDrag();
this.gotoAndPlay(2);
a = 1;
while (a <= 6) {
if (this.hitTest(_parent[a]) && (_parent[a].flag == 0)) {
this._x = _parent[a]._x;
this._y = _parent[a]._y;
flag = 1;
_parent.input[a] = 4;
_parent[a].flag = 1;
temp = a;
break;
}
flag = 0;
a++;
}
if (this.hitTest(_parent[9]) && (_parent[9].flag == 0)) {
this._x = _parent[9]._x;
this._y = _parent[9]._y;
this.flag = 2;
_parent[9].flag = 1;
_parent.display = "-20";
}
if (flag == 0) {
this._x = nowx;
this._y = nowy;
}
}
onClipEvent (enterFrame) {
this.flag1 = flag;
this.flag2 = temp;
}
Instance of Symbol 187 MovieClip "b5" in Symbol 194 MovieClip Frame 1
onClipEvent (load) {
nowx = this._x;
nowy = this._y;
temp = 0;
}
on (press) {
so = new Sound();
so.attachSound("sou6");
so.start(0, 1);
_parent.swap++;
this.swapDepths(_parent.swap + 100);
this.startDrag();
_parent.input[temp] = 0;
_parent[temp].flag = 0;
this.temp = 0;
if (flag == 2) {
_parent[9].flag = 0;
}
this.flag = 0;
}
on (release) {
so1 = new Sound();
so1.attachSound("sou7");
so1.start(0, 1);
this.swapDepths(_parent.swap);
this.stopDrag();
this.gotoAndPlay(2);
a = 1;
while (a <= 6) {
if (this.hitTest(_parent[a]) && (_parent[a].flag == 0)) {
this._x = _parent[a]._x;
this._y = _parent[a]._y;
flag = 1;
_parent.input[a] = 5;
_parent[a].flag = 1;
temp = a;
break;
}
flag = 0;
a++;
}
if (this.hitTest(_parent[9]) && (_parent[9].flag == 0)) {
this._x = _parent[9]._x;
this._y = _parent[9]._y;
this.flag = 2;
_parent[9].flag = 1;
_parent.display = "double";
}
if (flag == 0) {
this._x = nowx;
this._y = nowy;
}
}
onClipEvent (enterFrame) {
this.flag1 = flag;
this.flag2 = temp;
}
Instance of Symbol 46 MovieClip in Symbol 194 MovieClip Frame 1
onClipEvent (unload) {
count = 0;
}
onClipEvent (enterFrame) {
a = 1;
while (a <= 6) {
if (_parent.input[a] >= 1) {
count++;
}
a++;
}
if (count == 6) {
_parent.startflag = 1;
} else {
_parent.startflag = 0;
}
count = 0;
}
Symbol 199 MovieClip Frame 1
stop();
Symbol 199 MovieClip Frame 40
_parent.flag2 = 2;
stop();
Symbol 202 MovieClip Frame 1
stop();
Symbol 202 MovieClip Frame 40
stop();
Symbol 203 MovieClip Frame 1
stop();
Instance of Symbol 201 MovieClip in Symbol 203 MovieClip Frame 1
on (press) {
}
Symbol 203 MovieClip Frame 40
stop();
Symbol 209 MovieClip Frame 1
stop();
Symbol 214 MovieClip Frame 1
stop();
Symbol 217 MovieClip Frame 1
function intrandomizer(min, max) {
ans = Math.floor((Math.random() * (max - min)) + min);
return(ans);
}
input = new Array(0, 0, 0);
flag = 0;
count = 0;
Instance of Symbol 199 MovieClip "switch" in Symbol 217 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = -109.4 + ((_parent.str2 - 1) * 31.3);
this._y = -103.8 + ((_parent.str1 - 1) * 42.5);
}
on (press) {
if (this._currentframe == 1) {
so = new Sound();
so.attachSound("sou12");
so.start(0, 1);
this.gotoAndPlay(2);
}
}
Instance of Symbol 46 MovieClip "master" in Symbol 217 MovieClip Frame 1
onClipEvent (load) {
count = 0;
flag = 0;
changeflag = 0;
}
onClipEvent (enterFrame) {
if (_parent.flag == 1) {
count++;
if (((_parent.input[0] == 1) || (_parent.input[0] == 3)) && (count == 1)) {
_parent.door["1-1"].gotoAndPlay(2);
_parent.door[targetdoor2].gotoAndPlay(41);
flag = 0;
so = new Sound();
so.attachSound("sou4");
so.start(0, 1);
} else if (count == 1) {
_parent.door["1-2"].gotoAndPlay(2);
so = new Sound();
so.attachSound("sou4");
so.start(0, 1);
_parent.door[targetdoor2].gotoAndPlay(41);
flag = 4;
}
if (count == 35) {
targetdoor1 = "2-" + (flag + _parent.input[1]);
trace(targetdoor1);
_parent.door[targetdoor1].gotoAndPlay(2);
so = new Sound();
so.attachSound("sou4");
so.start(0, 1);
}
if (count == 70) {
targetdoor2 = "3-" + (((4 * (flag + _parent.input[1])) - 4) + _parent.input[2]);
trace(targetdoor2);
_parent.door[targetdoor2].gotoAndPlay(2);
so = new Sound();
so.attachSound("sou4");
so.start(0, 1);
}
if (count == 110) {
if (flag == 0) {
_parent.door["1-1"].gotoAndPlay(41);
} else {
_parent.door["1-2"].gotoAndPlay(41);
}
_parent.door[targetdoor1].gotoAndPlay(41);
so = new Sound();
so.attachSound("sou4");
so.start(0, 1);
}
if (count == 140) {
count = 0;
_parent.flag = 0;
_parent.count = 0;
_parent.input = [0, 0, 0];
changeflag = 0;
}
}
if (changeflag == 0) {
str1 = _parent.intrandomizer(2, 5);
str2 = _parent.intrandomizer(2, 9);
_parent.str1 = str1;
_parent.str2 = str2;
changeflag++;
}
}
Instance of Symbol 209 MovieClip in Symbol 217 MovieClip Frame 1
on (press) {
so = new Sound();
so.attachSound("sou5");
so.start(0, 1);
_parent.input[_parent.count] = 1;
_parent.count++;
this.gotoAndPlay(2);
if (_parent.count >= 3) {
_parent.flag = 1;
}
}
Instance of Symbol 209 MovieClip in Symbol 217 MovieClip Frame 1
on (press) {
so = new Sound();
so.attachSound("sou5");
so.start(0, 1);
_parent.input[_parent.count] = 3;
_parent.count++;
this.gotoAndPlay(2);
if (_parent.count >= 3) {
_parent.flag = 1;
}
}
Instance of Symbol 214 MovieClip in Symbol 217 MovieClip Frame 1
on (press) {
so = new Sound();
so.attachSound("sou5");
so.start(0, 1);
_parent.input[_parent.count] = 2;
_parent.count++;
this.gotoAndPlay(2);
if (_parent.count >= 3) {
_parent.flag = 1;
}
}
Instance of Symbol 214 MovieClip in Symbol 217 MovieClip Frame 1
on (press) {
so = new Sound();
so.attachSound("sou5");
so.start(0, 1);
_parent.input[_parent.count] = 4;
_parent.count++;
this.gotoAndPlay(2);
if (_parent.count >= 3) {
_parent.flag = 1;
}
}
Symbol 234 MovieClip Frame 1
stop();
Symbol 234 MovieClip Frame 2
sounder = new Sound(this);
sounder.attachSound("sou5");
sounder.start(0, 1);
Instance of Symbol 226 MovieClip "b2" in Symbol 235 MovieClip Frame 1
onClipEvent (load) {
flg = 0;
ans = 0;
targetrotate = 0;
count = 5;
}
on (press) {
if (flg == 0) {
so = new Sound();
so.attachSound("sou8");
so.start(0, 1);
flg = 1;
count = 0;
}
}
onClipEvent (enterFrame) {
if (count != 5) {
this._rotation = this._rotation - 3;
count++;
} else if (flg == 1) {
flg = 0;
}
if (this._rotation == 15) {
ans = 1;
} else {
ans = 0;
}
}
Instance of Symbol 226 MovieClip "b1" in Symbol 235 MovieClip Frame 1
onClipEvent (load) {
flg = 0;
ans = 0;
targetrotate = 0;
count = 5;
}
on (press) {
if (flg == 0) {
so = new Sound();
so.attachSound("sou8");
so.start(0, 1);
flg = 1;
count = 0;
}
}
onClipEvent (enterFrame) {
if (count != 5) {
this._rotation = this._rotation - 3;
count++;
} else if (flg == 1) {
flg = 0;
}
if (this._rotation == -45) {
ans = 1;
} else {
ans = 0;
}
}
Instance of Symbol 226 MovieClip "b3" in Symbol 235 MovieClip Frame 1
onClipEvent (load) {
flg = 0;
ans = 0;
targetrotate = 0;
count = 5;
}
on (press) {
if (flg == 0) {
so = new Sound();
so.attachSound("sou8");
so.start(0, 1);
flg = 1;
count = 0;
}
}
onClipEvent (enterFrame) {
if (count != 5) {
this._rotation = this._rotation - 3;
count++;
} else if (flg == 1) {
flg = 0;
}
if (this._rotation == -105) {
ans = 1;
} else {
ans = 0;
}
}
Instance of Symbol 226 MovieClip "b4" in Symbol 235 MovieClip Frame 1
onClipEvent (load) {
flg = 0;
ans = 0;
targetrotate = 0;
count = 5;
}
on (press) {
if (flg == 0) {
so = new Sound();
so.attachSound("sou8");
so.start(0, 1);
flg = 1;
count = 0;
}
}
onClipEvent (enterFrame) {
if (count != 5) {
this._rotation = this._rotation - 3;
count++;
} else if (flg == 1) {
flg = 0;
}
if (this._rotation == -30) {
ans = 1;
} else {
ans = 0;
}
}
Instance of Symbol 226 MovieClip "b5" in Symbol 235 MovieClip Frame 1
onClipEvent (load) {
flg = 0;
ans = 0;
targetrotate = 0;
count = 5;
}
on (press) {
if (flg == 0) {
so = new Sound();
so.attachSound("sou8");
so.start(0, 1);
flg = 1;
count = 0;
}
}
onClipEvent (enterFrame) {
if (count != 5) {
this._rotation = this._rotation - 3;
count++;
} else if (flg == 1) {
flg = 0;
}
if (this._rotation == 75) {
ans = 1;
} else {
ans = 0;
}
}
Instance of Symbol 234 MovieClip in Symbol 235 MovieClip Frame 1
onClipEvent (load) {
count = 0;
}
on (press) {
this.gotoAndPlay(2);
a = 1;
while (a <= 5) {
name = "b" + a;
if (_parent[name].ans == 1) {
count++;
}
trace(count);
a++;
}
if (count == 5) {
_parent.flag = 2;
}
count = 0;
}
Symbol 240 MovieClip Frame 1
stop();
count = 0;
Symbol 240 MovieClip Frame 12
stop();
Symbol 244 MovieClip Frame 1
stop();
Symbol 244 MovieClip Frame 40
gotoAndPlay (2);
Symbol 250 MovieClip Frame 1
stop();
Instance of Symbol 240 MovieClip "s6" in Symbol 251 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((((((_parent.b1._currentframe != 1) && (_parent.b6._currentframe != 1)) && (_parent.b5._currentframe != 1)) && (_parent.b4._currentframe != 1)) && (_parent.b3._currentframe != 1)) && (_parent.b2._currentframe != 1)) {
_parent.flag = 2;
}
}
Instance of Symbol 244 MovieClip "b5" in Symbol 251 MovieClip Frame 1
onClipEvent (load) {
}
Instance of Symbol 246 MovieClip "bottunx" in Symbol 251 MovieClip Frame 1
onClipEvent (load) {
moveflg = 1;
turnflg = 0;
}
onClipEvent (enterFrame) {
if (moveflg == 0) {
if (turnflg == 0) {
this._x++;
if (this._x >= 273) {
turnflg = 1;
}
} else {
this._x--;
if (this._x <= 208) {
turnflg = 0;
}
}
}
}
Instance of Symbol 246 MovieClip "bottuny" in Symbol 251 MovieClip Frame 1
onClipEvent (load) {
moveflg = 1;
turnflg = 0;
}
onClipEvent (enterFrame) {
if (moveflg == 0) {
if (turnflg == 0) {
this._y++;
if (this._y >= 283) {
turnflg = 1;
}
} else {
this._y--;
if (this._y <= 218) {
turnflg = 0;
}
}
}
}
Instance of Symbol 250 MovieClip in Symbol 251 MovieClip Frame 1
onClipEvent (load) {
flg = 0;
}
on (press) {
so = new Sound();
so.attachSound("sou12");
so.start(0, 1);
this.gotoAndPlay(2);
if ((_parent.bottunx.moveflg == 0) && (_parent.bottuny.moveflg == 0)) {
_parent.bottunx.moveflg = 1;
} else if ((_parent.bottunx.moveflg == 1) && (_parent.bottuny.moveflg == 0)) {
targetx = (((_parent.bottunx._x - 208) / 65) * 190) + 55;
targety = (((_parent.bottuny._y - 218) / 65) * 190) + 25;
flg = 0;
_parent.bottuny.moveflg = 1;
if (((_parent.b1._currentframe == 1) && ((targetx >= (_parent.b1._x - 10)) && (targetx <= (_parent.b1._x + 10)))) && ((targety >= (_parent.b1._y - 10)) && (targety <= (_parent.b1._y + 10)))) {
_parent.b1.gotoAndPlay(2);
flg = 1;
} else if (((_parent.b2._currentframe == 1) && ((targetx >= (_parent.b2._x - 10)) && (targetx <= (_parent.b2._x + 10)))) && ((targety >= (_parent.b2._y - 10)) && (targety <= (_parent.b2._y + 10)))) {
_parent.b2.gotoAndPlay(2);
flg = 1;
} else if (((_parent.b3._currentframe == 1) && ((targetx >= (_parent.b3._x - 10)) && (targetx <= (_parent.b3._x + 10)))) && ((targety >= (_parent.b3._y - 10)) && (targety <= (_parent.b3._y + 10)))) {
_parent.b3.gotoAndPlay(2);
flg = 1;
} else if (((_parent.b4._currentframe == 1) && ((targetx >= (_parent.b4._x - 7.5)) && (targetx <= (_parent.b4._x + 7.5)))) && ((targety >= (_parent.b4._y - 7.5)) && (targety <= (_parent.b4._y + 7.5)))) {
_parent.b4.gotoAndPlay(2);
flg = 1;
} else if (((_parent.b5._currentframe == 1) && ((targetx >= (_parent.b5._x - 23)) && (targetx <= (_parent.b5._x + 23)))) && ((targety >= (_parent.b5._y - 23)) && (targety <= (_parent.b5._y + 23)))) {
_parent.b5.gotoAndPlay(2);
flg = 1;
} else if (((_parent.b6._currentframe == 1) && ((targetx >= (_parent.b6._x - 10)) && (targetx <= (_parent.b6._x + 10)))) && ((targety >= (_parent.b6._y - 10)) && (targety <= (_parent.b6._y + 10)))) {
_parent.b6.gotoAndPlay(2);
flg = 1;
}
if (flg == 0) {
a = 1;
while (a <= 6) {
name = "b" + a;
_parent[name].gotoAndStop(1);
name = "s" + a;
_parent[name].gotoAndPlay(13);
a++;
}
} else if (flg == 1) {
a = 1;
while (a <= 6) {
name = "s" + a;
if (_parent[name]._currentframe == 1) {
_parent[name].gotoAndPlay(2);
break;
}
a++;
}
}
} else if ((_parent.bottunx.moveflg == 1) && (_parent.bottuny.moveflg == 1)) {
_parent.bottunx.moveflg = 0;
_parent.bottuny.moveflg = 0;
}
}
Symbol 287 MovieClip Frame 1
a = 1;
while (a <= 10) {
name = "place" + a;
this[name] = 0;
a++;
}
swapnum = 1;
checkflg = 0;
checkflg1 = 0;
checkflg2 = 0;
checkflg3 = 0;
checkflg4 = 0;
Instance of Symbol 260 MovieClip "s1" in Symbol 287 MovieClip Frame 1
onClipEvent (load) {
firstx = this._x;
firsty = this._y;
placeflg = 0;
placenum = 0;
flg = 0;
name = "null";
}
on (press) {
if (_parent.checkflg1 == 0) {
so = new Sound();
so.attachSound("sou6");
so.start(0, 1);
this.startDrag();
name = "place" + placeflg;
if ((_parent[name] = 1)) {
_parent[name] = 0;
}
this.swapDepths(_parent.swapnum);
_parent.swapnum++;
}
}
on (release, releaseOutside) {
if (_parent.checkflg1 == 0) {
so = new Sound();
so.attachSound("sou7");
so.start(0, 1);
this.stopDrag();
a = 0;
while (a <= 2) {
b = 0;
while (b <= 2) {
if ((((this._x >= ((45 + (a * 40)) - 20)) && (this._x <= ((45 + (a * 40)) + 20))) && (this._y >= ((45 + (b * 40)) - 20))) && (this._y <= ((45 + (b * 40)) + 20))) {
placenum = ((a * 3) + b) + 1;
name = "place" + placenum;
if (_parent[name] == 0) {
this._x = 45 + (a * 40);
this._y = 45 + (b * 40);
_parent[name] = 1;
placeflg = ((a * 3) + b) + 1;
flg = 1;
}
}
b++;
}
a++;
}
if ((((this._x >= 170) && (this._x <= 210)) && (this._y <= 140)) && (this._y >= 100)) {
name = "place10";
if (_parent[name] == 0) {
placeflg = 10;
_parent[name] = 1;
flg = 1;
this._x = 193;
this._y = 123;
}
}
if (flg == 0) {
this._x = firstx;
this._y = firsty;
placeflg = null;
} else {
flg = 0;
}
}
}
Instance of Symbol 264 MovieClip "s2" in Symbol 287 MovieClip Frame 1
onClipEvent (load) {
firstx = this._x;
firsty = this._y;
placeflg = 0;
placenum = 0;
flg = 0;
name = "null";
}
on (press) {
if ((_parent.checkflg1 == 0) && (_parent.checkflg4 == 0)) {
this.startDrag();
name = "place" + placeflg;
so = new Sound();
so.attachSound("sou6");
so.start(0, 1);
if ((_parent[name] = 2)) {
_parent[name] = 0;
}
this.swapDepths(_parent.swapnum);
_parent.swapnum++;
}
}
on (release, releaseOutside) {
if ((_parent.checkflg1 == 0) && (_parent.checkflg4 == 0)) {
so = new Sound();
so.attachSound("sou7");
so.start(0, 1);
this.stopDrag();
a = 0;
while (a <= 2) {
b = 0;
while (b <= 2) {
if ((((this._x >= ((45 + (a * 40)) - 20)) && (this._x <= ((45 + (a * 40)) + 20))) && (this._y >= ((45 + (b * 40)) - 20))) && (this._y <= ((45 + (b * 40)) + 20))) {
placenum = ((a * 3) + b) + 1;
name = "place" + placenum;
if (_parent[name] == 0) {
this._x = 45 + (a * 40);
this._y = 45 + (b * 40);
_parent[name] = 2;
placeflg = ((a * 3) + b) + 1;
flg = 1;
}
}
b++;
}
a++;
}
if ((((this._x >= 170) && (this._x <= 210)) && (this._y <= 140)) && (this._y >= 100)) {
name = "place10";
if (_parent[name] == 0) {
placeflg = 10;
_parent[name] = 2;
flg = 1;
this._x = 193;
this._y = 123;
}
}
if (flg == 0) {
this._x = firstx;
this._y = firsty;
placeflg = null;
} else {
flg = 0;
}
}
}
Instance of Symbol 265 MovieClip "s3" in Symbol 287 MovieClip Frame 1
onClipEvent (load) {
firstx = this._x;
firsty = this._y;
placeflg = 0;
placenum = 0;
flg = 0;
name = "null";
}
on (press) {
if (_parent.checkflg4 == 0) {
this.startDrag();
name = "place" + placeflg;
so = new Sound();
so.attachSound("sou6");
so.start(0, 1);
if ((_parent[name] = 3)) {
_parent[name] = 0;
}
this.swapDepths(_parent.swapnum);
_parent.swapnum++;
}
}
on (release, releaseOutside) {
if (_parent.checkflg4 == 0) {
so = new Sound();
so.attachSound("sou7");
so.start(0, 1);
this.stopDrag();
a = 0;
while (a <= 2) {
b = 0;
while (b <= 2) {
if ((((this._x >= ((45 + (a * 40)) - 20)) && (this._x <= ((45 + (a * 40)) + 20))) && (this._y >= ((45 + (b * 40)) - 20))) && (this._y <= ((45 + (b * 40)) + 20))) {
placenum = ((a * 3) + b) + 1;
name = "place" + placenum;
if (_parent[name] == 0) {
this._x = 45 + (a * 40);
this._y = 45 + (b * 40);
_parent[name] = 3;
placeflg = ((a * 3) + b) + 1;
flg = 1;
}
}
b++;
}
a++;
}
if ((((this._x >= 170) && (this._x <= 210)) && (this._y <= 140)) && (this._y >= 100)) {
name = "place10";
if (_parent[name] == 0) {
placeflg = 10;
_parent[name] = 3;
flg = 1;
this._x = 193;
this._y = 123;
}
}
if (flg == 0) {
this._x = firstx;
this._y = firsty;
placeflg = null;
} else {
flg = 0;
}
}
}
Instance of Symbol 267 MovieClip "s4" in Symbol 287 MovieClip Frame 1
onClipEvent (load) {
firstx = this._x;
firsty = this._y;
placeflg = 0;
placenum = 0;
flg = 0;
name = "null";
}
on (press) {
if ((_parent.checkflg1 == 0) && (_parent.checkflg2 == 0)) {
so = new Sound();
so.attachSound("sou6");
so.start(0, 1);
this.startDrag();
name = "place" + placeflg;
if ((_parent[name] = 4)) {
_parent[name] = 0;
}
this.swapDepths(_parent.swapnum);
_parent.swapnum++;
}
}
on (release, releaseOutside) {
if ((_parent.checkflg1 == 0) && (_parent.checkflg2 == 0)) {
so = new Sound();
so.attachSound("sou7");
so.start(0, 1);
this.stopDrag();
a = 0;
while (a <= 2) {
b = 0;
while (b <= 2) {
if ((((this._x >= ((45 + (a * 40)) - 20)) && (this._x <= ((45 + (a * 40)) + 20))) && (this._y >= ((45 + (b * 40)) - 20))) && (this._y <= ((45 + (b * 40)) + 20))) {
placenum = ((a * 3) + b) + 1;
name = "place" + placenum;
if (_parent[name] == 0) {
this._x = 45 + (a * 40);
this._y = 45 + (b * 40);
_parent[name] = 4;
placeflg = ((a * 3) + b) + 1;
flg = 1;
}
}
b++;
}
a++;
}
if ((((this._x >= 170) && (this._x <= 210)) && (this._y <= 140)) && (this._y >= 100)) {
name = "place10";
if (_parent[name] == 0) {
placeflg = 10;
_parent[name] = 4;
flg = 1;
this._x = 193;
this._y = 123;
}
}
if (flg == 0) {
this._x = firstx;
this._y = firsty;
placeflg = null;
} else {
flg = 0;
}
}
}
Instance of Symbol 269 MovieClip "s5" in Symbol 287 MovieClip Frame 1
onClipEvent (load) {
firstx = this._x;
firsty = this._y;
placeflg = 0;
placenum = 0;
flg = 0;
name = "null";
}
on (press) {
if (((_parent.checkflg1 == 0) && (_parent.checkflg2 == 0)) && (_parent.checkflg4 == 0)) {
so = new Sound();
so.attachSound("sou6");
so.start(0, 1);
this.startDrag();
name = "place" + placeflg;
if ((_parent[name] = 5)) {
_parent[name] = 0;
}
this.swapDepths(_parent.swapnum);
_parent.swapnum++;
}
}
on (release, releaseOutside) {
if (((_parent.checkflg1 == 0) && (_parent.checkflg2 == 0)) && (_parent.checkflg4 == 0)) {
so = new Sound();
so.attachSound("sou7");
so.start(0, 1);
this.stopDrag();
a = 0;
while (a <= 2) {
b = 0;
while (b <= 2) {
if ((((this._x >= ((45 + (a * 40)) - 20)) && (this._x <= ((45 + (a * 40)) + 20))) && (this._y >= ((45 + (b * 40)) - 20))) && (this._y <= ((45 + (b * 40)) + 20))) {
placenum = ((a * 3) + b) + 1;
name = "place" + placenum;
if (_parent[name] == 0) {
this._x = 45 + (a * 40);
this._y = 45 + (b * 40);
_parent[name] = 5;
placeflg = ((a * 3) + b) + 1;
flg = 1;
}
}
b++;
}
a++;
}
if ((((this._x >= 170) && (this._x <= 210)) && (this._y <= 140)) && (this._y >= 100)) {
name = "place10";
if (_parent[name] == 0) {
placeflg = 10;
_parent[name] = 5;
flg = 1;
this._x = 193;
this._y = 123;
}
}
if (flg == 0) {
this._x = firstx;
this._y = firsty;
placeflg = null;
} else {
flg = 0;
}
}
}
Instance of Symbol 271 MovieClip "s8" in Symbol 287 MovieClip Frame 1
onClipEvent (load) {
firstx = this._x;
firsty = this._y;
placeflg = 0;
placenum = 0;
flg = 0;
name = "null";
}
on (press) {
if ((_parent.checkflg1 == 0) && (_parent.checkflg4 == 0)) {
so = new Sound();
so.attachSound("sou6");
so.start(0, 1);
this.startDrag();
name = "place" + placeflg;
if ((_parent[name] = 8)) {
_parent[name] = 0;
}
this.swapDepths(_parent.swapnum);
_parent.swapnum++;
}
}
on (release, releaseOutside) {
if ((_parent.checkflg1 == 0) && (_parent.checkflg4 == 0)) {
so = new Sound();
so.attachSound("sou7");
so.start(0, 1);
this.stopDrag();
a = 0;
while (a <= 2) {
b = 0;
while (b <= 2) {
if ((((this._x >= ((45 + (a * 40)) - 20)) && (this._x <= ((45 + (a * 40)) + 20))) && (this._y >= ((45 + (b * 40)) - 20))) && (this._y <= ((45 + (b * 40)) + 20))) {
placenum = ((a * 3) + b) + 1;
name = "place" + placenum;
if (_parent[name] == 0) {
this._x = 45 + (a * 40);
this._y = 45 + (b * 40);
_parent[name] = 8;
placeflg = ((a * 3) + b) + 1;
flg = 1;
}
}
b++;
}
a++;
}
if ((((this._x >= 170) && (this._x <= 210)) && (this._y <= 140)) && (this._y >= 100)) {
name = "place10";
if (_parent[name] == 0) {
placeflg = 10;
_parent[name] = 8;
flg = 1;
this._x = 193;
this._y = 123;
}
}
if (flg == 0) {
this._x = firstx;
this._y = firsty;
placeflg = null;
} else {
flg = 0;
}
}
}
Instance of Symbol 272 MovieClip "s6" in Symbol 287 MovieClip Frame 1
onClipEvent (load) {
firstx = this._x;
firsty = this._y;
placeflg = 0;
placenum = 0;
flg = 0;
name = "null";
}
on (press) {
if ((_parent.checkflg3 == 0) && (_parent.checkflg2 == 0)) {
so = new Sound();
so.attachSound("sou6");
so.start(0, 1);
this.startDrag();
name = "place" + placeflg;
if ((_parent[name] = 6)) {
_parent[name] = 0;
}
this.swapDepths(_parent.swapnum);
_parent.swapnum++;
}
}
on (release, releaseOutside) {
if ((_parent.checkflg3 == 0) && (_parent.checkflg2 == 0)) {
so = new Sound();
so.attachSound("sou7");
so.start(0, 1);
this.stopDrag();
a = 0;
while (a <= 2) {
b = 0;
while (b <= 2) {
if ((((this._x >= ((45 + (a * 40)) - 20)) && (this._x <= ((45 + (a * 40)) + 20))) && (this._y >= ((45 + (b * 40)) - 20))) && (this._y <= ((45 + (b * 40)) + 20))) {
placenum = ((a * 3) + b) + 1;
name = "place" + placenum;
if (_parent[name] == 0) {
this._x = 45 + (a * 40);
this._y = 45 + (b * 40);
_parent[name] = 6;
placeflg = ((a * 3) + b) + 1;
flg = 1;
}
}
b++;
}
a++;
}
if ((((this._x >= 170) && (this._x <= 210)) && (this._y <= 140)) && (this._y >= 100)) {
name = "place10";
if (_parent[name] == 0) {
placeflg = 10;
_parent[name] = 6;
flg = 1;
this._x = 193;
this._y = 123;
}
}
if (flg == 0) {
this._x = firstx;
this._y = firsty;
placeflg = null;
} else {
flg = 0;
}
}
}
Instance of Symbol 274 MovieClip "s9" in Symbol 287 MovieClip Frame 1
onClipEvent (load) {
firstx = this._x;
firsty = this._y;
placeflg = 0;
placenum = 0;
flg = 0;
name = "null";
}
on (press) {
if (_parent.checkflg1 == 0) {
so = new Sound();
so.attachSound("sou6");
so.start(0, 1);
this.startDrag();
name = "place" + placeflg;
if ((_parent[name] = 9)) {
_parent[name] = 0;
}
this.swapDepths(_parent.swapnum);
_parent.swapnum++;
}
}
on (release, releaseOutside) {
if (_parent.checkflg1 == 0) {
so = new Sound();
so.attachSound("sou7");
so.start(0, 1);
this.stopDrag();
a = 0;
while (a <= 2) {
b = 0;
while (b <= 2) {
if ((((this._x >= ((45 + (a * 40)) - 20)) && (this._x <= ((45 + (a * 40)) + 20))) && (this._y >= ((45 + (b * 40)) - 20))) && (this._y <= ((45 + (b * 40)) + 20))) {
placenum = ((a * 3) + b) + 1;
name = "place" + placenum;
if (_parent[name] == 0) {
this._x = 45 + (a * 40);
this._y = 45 + (b * 40);
_parent[name] = 9;
placeflg = ((a * 3) + b) + 1;
flg = 1;
}
}
b++;
}
a++;
}
if ((((this._x >= 170) && (this._x <= 210)) && (this._y <= 140)) && (this._y >= 100)) {
name = "place10";
if (_parent[name] == 0) {
placeflg = 10;
_parent[name] = 9;
flg = 1;
this._x = 193;
this._y = 123;
}
}
if (flg == 0) {
this._x = firstx;
this._y = firsty;
placeflg = null;
} else {
flg = 0;
}
}
}
Instance of Symbol 276 MovieClip "s7" in Symbol 287 MovieClip Frame 1
onClipEvent (load) {
firstx = this._x;
firsty = this._y;
placeflg = 0;
placenum = 0;
flg = 0;
name = "null";
}
on (press) {
if (((_parent.checkflg1 == 0) && (_parent.checkflg4 == 0)) && (_parent.checkflg3 == 0)) {
so = new Sound();
so.attachSound("sou6");
so.start(0, 1);
this.startDrag();
name = "place" + placeflg;
if ((_parent[name] = 7)) {
_parent[name] = 0;
}
this.swapDepths(_parent.swapnum);
_parent.swapnum++;
}
}
on (release, releaseOutside) {
if (((_parent.checkflg1 == 0) && (_parent.checkflg4 == 0)) && (_parent.checkflg3 == 0)) {
so = new Sound();
so.attachSound("sou7");
so.start(0, 1);
this.stopDrag();
a = 0;
while (a <= 2) {
b = 0;
while (b <= 2) {
if ((((this._x >= ((45 + (a * 40)) - 20)) && (this._x <= ((45 + (a * 40)) + 20))) && (this._y >= ((45 + (b * 40)) - 20))) && (this._y <= ((45 + (b * 40)) + 20))) {
placenum = ((a * 3) + b) + 1;
name = "place" + placenum;
if (_parent[name] == 0) {
this._x = 45 + (a * 40);
this._y = 45 + (b * 40);
_parent[name] = 7;
placeflg = ((a * 3) + b) + 1;
flg = 1;
}
}
b++;
}
a++;
}
if ((((this._x >= 170) && (this._x <= 210)) && (this._y <= 140)) && (this._y >= 100)) {
name = "place10";
if (_parent[name] == 0) {
placeflg = 10;
_parent[name] = 7;
flg = 1;
this._x = 193;
this._y = 123;
}
}
if (flg == 0) {
this._x = firstx;
this._y = firsty;
placeflg = null;
} else {
flg = 0;
}
}
}
Instance of Symbol 278 MovieClip in Symbol 287 MovieClip Frame 1
onClipEvent (load) {
firstx = this._x;
firsty = this._y;
count = 0;
}
on (press) {
this.startDrag();
this.swapDepths(_parent.swapnum);
_parent.swapnum++;
}
on (release, releaseOutside) {
this.stopDrag();
a = 1;
while (a <= 9) {
this.name = "place" + a;
if (_parent[name] != 0) {
count++;
}
a++;
}
if (count == 9) {
name = "place5";
if ((_parent[name] = 5)) {
count++;
}
name = "place3";
if ((_parent[name] = 3)) {
count++;
}
name = "place8";
if ((_parent[name] = 8)) {
count++;
}
name = "s3";
if (_parent[name].roll._rotation == -45) {
count++;
}
if ((((this._x > 30.5) && (this._x <= 70.5)) && (this._y >= 100.2)) && (this._y <= 140.2)) {
count++;
}
}
trace(count);
if (count == 14) {
this._x = 49.8;
this._y = 120;
_parent.checkflg4 = 1;
} else {
this._x = firstx;
this._y = firsty;
_parent.checkflg4 = 0;
}
count = 0;
}
Instance of Symbol 280 MovieClip in Symbol 287 MovieClip Frame 1
onClipEvent (load) {
firstx = this._x;
firsty = this._y;
count = 0;
}
on (press) {
this.startDrag();
this.swapDepths(_parent.swapnum);
_parent.swapnum++;
}
on (release, releaseOutside) {
this.stopDrag();
a = 1;
while (a <= 9) {
this.name = "place" + a;
if (_parent[name] != 0) {
count++;
}
a++;
}
if (count == 9) {
name = "place7";
if ((_parent[name] = 7)) {
count++;
}
name = "place8";
if ((_parent[name] = 8)) {
count++;
}
if ((((this._x > 125) && (this._x <= 165)) && (this._y >= 17)) && (this._y <= 57)) {
count++;
}
}
trace(count);
if (count == 12) {
this._x = 145;
this._y = 37;
_parent.checkflg3 = 1;
} else {
this._x = firstx;
this._y = firsty;
_parent.checkflg3 = 0;
}
count = 0;
}
Instance of Symbol 282 MovieClip in Symbol 287 MovieClip Frame 1
onClipEvent (load) {
firstx = this._x;
firsty = this._y;
count = 0;
}
on (press) {
this.startDrag();
this.swapDepths(_parent.swapnum);
_parent.swapnum++;
}
on (release, releaseOutside) {
this.stopDrag();
a = 1;
while (a <= 9) {
this.name = "place" + a;
if (_parent[name] != 0) {
count++;
}
a++;
}
if (count == 9) {
name = "place4";
if ((_parent[name] = 4)) {
count++;
}
name = "place5";
if ((_parent[name] = 5)) {
count++;
}
name = "place7";
if ((_parent[name] = 7)) {
count++;
}
if ((((this._x >= 65) && (this._x <= 105)) && (this._y >= 25)) && (this._y <= 65)) {
count++;
}
}
if (count == 13) {
this._x = 85;
this._y = 45;
_parent.checkflg2 = 1;
} else {
this._x = firstx;
this._y = firsty;
_parent.checkflg2 = 0;
}
count = 0;
}
Instance of Symbol 284 MovieClip in Symbol 287 MovieClip Frame 1
onClipEvent (load) {
firstx = this._x;
firsty = this._y;
count = 0;
}
on (press) {
this.startDrag();
this.swapDepths(_parent.swapnum);
_parent.swapnum++;
}
on (release, releaseOutside) {
this.stopDrag();
a = 1;
while (a <= 9) {
this.name = "place" + a;
if (_parent[name] != 0) {
count++;
}
a++;
}
if (count == 9) {
name = "place1";
if ((_parent[name] = 1)) {
count++;
}
name = "place3";
if ((_parent[name] = 3)) {
count++;
}
name = "s1";
if (_parent[name].roll._rotation == 45) {
count++;
}
if ((((this._x >= 30) && (this._x <= 70)) && (this._y >= 30)) && (this._y <= 70)) {
count++;
}
}
if (count == 13) {
this._x = 50;
this._y = 50;
_parent.checkflg1 = 1;
} else {
this._x = firstx;
this._y = firsty;
_parent.checkflg1 = 0;
}
count = 0;
}
Instance of Symbol 286 MovieClip in Symbol 287 MovieClip Frame 1
onClipEvent (load) {
checkflg = 0;
count = 15;
name = "place10";
targets = "s";
}
onClipEvent (enterFrame) {
if (count != 15) {
_parent[targets].roll._rotation = _parent[targets].roll._rotation - 3;
count++;
} else if (checkflg == 1) {
checkflg = 0;
}
}
on (press) {
if ((_parent[this.name] == 1) || (_parent[this.name] == 3)) {
so = new Sound();
so.attachSound("sou11");
so.start(0, 1);
if (checkflg == 0) {
checkflg = 1;
count = 0;
if (_parent[name] == 1) {
targets = "s1";
} else {
targets = "s3";
}
}
}
}
Instance of Symbol 286 MovieClip in Symbol 287 MovieClip Frame 1
onClipEvent (load) {
checkflg = 0;
count = 15;
name = "place10";
targets = "s";
}
onClipEvent (enterFrame) {
if (count != 15) {
_parent[targets].roll._rotation = _parent[targets].roll._rotation + 3;
count++;
} else if (checkflg == 1) {
checkflg = 0;
}
}
on (press) {
if ((_parent[this.name] == 1) || (_parent[this.name] == 3)) {
so = new Sound();
so.attachSound("sou11");
so.start(0, 1);
if (checkflg == 0) {
checkflg = 1;
count = 0;
if (_parent[name] == 1) {
targets = "s1";
} else {
targets = "s3";
}
}
}
}
Instance of Symbol 46 MovieClip in Symbol 287 MovieClip Frame 1
onClipEvent (load) {
flg = 0;
}
onClipEvent (enterFrame) {
if (((((_parent.checkflg1 == 1) && (_parent.checkflg2 == 1)) && (_parent.checkflg3 == 1)) && (_parent.checkflg4 == 1)) && (flg == 0)) {
so = new Sound();
so.attachSound("sou4");
so.start(0, 1);
_parent.flag = 2;
flg++;
}
}
Symbol 292 MovieClip Frame 1
stop();
Symbol 292 MovieClip Frame 2
stop();
Instance of Symbol 295 MovieClip in Symbol 306 MovieClip Frame 1
on (press) {
so = new Sound();
so.attachSound("sou10");
so.start(0, 1);
_parent._parent.wall.gotoAndPlay(2);
}
Instance of Symbol 297 MovieClip in Symbol 306 MovieClip Frame 1
onClipEvent (load) {
flg = 0;
}
on (press) {
if ((((_parent._parent.s6.flg == 1) && (_parent._parent.s4.flg == 1)) && (_parent._parent.s5.flg == 1)) && (flg == 0)) {
so = new Sound();
so.attachSound("sou12");
so.start(0, 1);
_parent._parent.unlock.flg++;
this.flg++;
} else {
so = new Sound();
so.attachSound("sou10");
so.start(0, 1);
_parent._parent.wall.gotoAndPlay(2);
}
}
Instance of Symbol 299 MovieClip in Symbol 306 MovieClip Frame 1
on (press) {
so = new Sound();
so.attachSound("sou10");
so.start(0, 1);
_parent._parent.wall.gotoAndPlay(2);
}
Instance of Symbol 301 MovieClip in Symbol 306 MovieClip Frame 1
on (press) {
so = new Sound();
so.attachSound("sou10");
so.start(0, 1);
_parent._parent.wall.gotoAndPlay(2);
}
Instance of Symbol 303 MovieClip in Symbol 306 MovieClip Frame 1
on (press) {
so = new Sound();
so.attachSound("sou10");
so.start(0, 1);
_parent._parent.wall.gotoAndPlay(2);
}
Instance of Symbol 305 MovieClip in Symbol 306 MovieClip Frame 1
onClipEvent (load) {
flg = 0;
}
on (press) {
if (((_parent._parent.s1.flg == 1) && (_parent._parent.s7.flg == 0)) && (flg == 0)) {
so = new Sound();
so.attachSound("sou12");
so.start(0, 1);
_parent._parent.unlock.flg++;
this.flg++;
} else {
so = new Sound();
so.attachSound("sou10");
so.start(0, 1);
_parent._parent.wall.gotoAndPlay(2);
}
}
Symbol 320 MovieClip Frame 1
stop();
Symbol 320 MovieClip Frame 20
stop();
Symbol 328 MovieClip Frame 1
stop();
Symbol 328 MovieClip Frame 2
stop();
Symbol 328 MovieClip Frame 3
stop();
Symbol 328 MovieClip Frame 4
stop();
Symbol 328 MovieClip Frame 5
stop();
Symbol 328 MovieClip Frame 6
stop();
Symbol 328 MovieClip Frame 7
stop();
Symbol 339 MovieClip Frame 1
stop();
Symbol 339 MovieClip Frame 20
stop();
Symbol 348 MovieClip Frame 1
stop();
Instance of Symbol 342 MovieClip in Symbol 348 MovieClip Frame 2
on (press) {
}
Instance of Symbol 344 MovieClip in Symbol 348 MovieClip Frame 2
on (press) {
}
Instance of Symbol 342 MovieClip in Symbol 348 MovieClip Frame 27
on (press) {
_root.gotoAndStop(1);
}
Instance of Symbol 344 MovieClip in Symbol 348 MovieClip Frame 27
on (press) {
_root.gotoAndStop(1);
}
Symbol 348 MovieClip Frame 28
stop();
Instance of Symbol 223 MovieClip in Symbol 348 MovieClip Frame 28
on (press) {
_root.gotoAndStop(1);
}
Instance of Symbol 292 MovieClip in Symbol 349 MovieClip Frame 1
onClipEvent (load) {
firsttime = getTimer();
alltime == 30000;
minute = 4;
second1 = 0;
second2 = 0;
flg = 0;
flg2 = 0;
}
onClipEvent (enterFrame) {
now = getTimer();
pasttime = Math.floor((now - firsttime) / 600);
pastminute = Math.floor(pasttime / 60);
pastsecond1 = Math.floor((pasttime - (pastminute * 60)) / 10);
pastsecond2 = (pasttime - (pastminute * 60)) - (pastsecond1 * 10);
time = (((minute - pastminute) + ":") + (5 - pastsecond1)) + (9 - pastsecond2);
if ((((minute - pastminute) == 0) && ((5 - pastsecond1) == 0)) && ((9 - pastsecond2) == 0)) {
flg2++;
_parent.wall.gotoAndPlay(2);
}
if ((pastminute == 4) && (flg == 0)) {
gotoAndStop (2);
flg++;
}
}
Instance of Symbol 329 MovieClip "s6" in Symbol 349 MovieClip Frame 1
onClipEvent (load) {
flg = 0;
}
onClipEvent (enterFrame) {
if (flg == 0) {
s1.gotoAndStop(3);
s2.gotoAndStop(1);
} else {
s1.gotoAndStop(1);
s2.gotoAndStop(2);
}
}
on (press) {
if (bottun._currentframe == 1) {
bottun.gotoAndPlay(2);
flg = 1;
}
if (bottun._currentframe == 20) {
bottun.gotoAndPlay(21);
flg = 0;
}
}
Instance of Symbol 329 MovieClip "s3" in Symbol 349 MovieClip Frame 1
onClipEvent (load) {
flg = 0;
}
onClipEvent (enterFrame) {
if (flg == 0) {
s1.gotoAndStop(5);
s2.gotoAndStop(1);
} else {
s1.gotoAndStop(1);
s2.gotoAndStop(7);
}
}
on (press) {
if (bottun._currentframe == 1) {
bottun.gotoAndPlay(2);
flg = 1;
}
if (bottun._currentframe == 20) {
bottun.gotoAndPlay(21);
flg = 0;
}
}
Instance of Symbol 329 MovieClip "s2" in Symbol 349 MovieClip Frame 1
onClipEvent (load) {
flg = 0;
}
onClipEvent (enterFrame) {
if (flg == 0) {
s1.gotoAndStop(7);
s2.gotoAndStop(1);
} else {
s1.gotoAndStop(1);
s2.gotoAndStop(4);
}
}
on (press) {
if (bottun._currentframe == 1) {
bottun.gotoAndPlay(2);
flg = 1;
}
if (bottun._currentframe == 20) {
bottun.gotoAndPlay(21);
flg = 0;
}
}
Instance of Symbol 329 MovieClip "s4" in Symbol 349 MovieClip Frame 1
onClipEvent (load) {
flg = 0;
}
onClipEvent (enterFrame) {
if (flg == 0) {
s1.gotoAndStop(5);
s2.gotoAndStop(1);
} else {
s1.gotoAndStop(1);
s2.gotoAndStop(2);
}
}
on (press) {
if (bottun._currentframe == 1) {
bottun.gotoAndPlay(2);
flg = 1;
}
if (bottun._currentframe == 20) {
bottun.gotoAndPlay(21);
flg = 0;
}
}
Instance of Symbol 329 MovieClip "s1" in Symbol 349 MovieClip Frame 1
onClipEvent (load) {
flg = 0;
}
onClipEvent (enterFrame) {
if (flg == 0) {
s1.gotoAndStop(4);
s2.gotoAndStop(1);
} else {
s1.gotoAndStop(1);
s2.gotoAndStop(6);
}
}
on (press) {
if (bottun._currentframe == 1) {
bottun.gotoAndPlay(2);
flg = 1;
}
if (bottun._currentframe == 20) {
bottun.gotoAndPlay(21);
flg = 0;
}
}
Instance of Symbol 329 MovieClip "s7" in Symbol 349 MovieClip Frame 1
onClipEvent (load) {
flg = 0;
}
onClipEvent (enterFrame) {
if (flg == 0) {
s1.gotoAndStop(6);
s2.gotoAndStop(1);
} else {
s1.gotoAndStop(1);
s2.gotoAndStop(5);
}
}
on (press) {
if (bottun._currentframe == 1) {
bottun.gotoAndPlay(2);
flg = 1;
}
if (bottun._currentframe == 20) {
bottun.gotoAndPlay(21);
flg = 0;
}
}
Instance of Symbol 329 MovieClip "s5" in Symbol 349 MovieClip Frame 1
onClipEvent (load) {
flg = 0;
}
onClipEvent (enterFrame) {
if (flg == 0) {
s1.gotoAndStop(3);
s2.gotoAndStop(1);
} else {
s1.gotoAndStop(1);
s2.gotoAndStop(2);
}
}
on (press) {
if (bottun._currentframe == 1) {
bottun.gotoAndPlay(2);
flg = 1;
}
if (bottun._currentframe == 20) {
bottun.gotoAndPlay(21);
flg = 0;
}
}
Instance of Symbol 334 MovieClip "unlock" in Symbol 349 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.flg == 1) {
s1.gotoAndStop(4);
} else if (this.flg == 2) {
s2.gotoAndStop(4);
_parent.flag = 2;
}
}
Instance of Symbol 320 MovieClip "light" in Symbol 349 MovieClip Frame 1
on (press) {
if (this._currentframe == 1) {
_parent.night.gotoAndPlay(2);
this.gotoAndPlay(2);
} else if (this._currentframe == 20) {
_parent.night.gotoAndPlay(21);
this.gotoAndPlay(21);
}
}
Instance of Symbol 339 MovieClip "night" in Symbol 349 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = _root._xmouse;
this._y = _root._ymouse;
}