Frame 1
stop();
k.setMask(m);
m._height = 0;
m.c = 0;
m.onEnterFrame = function () {
if (this._height < 50) {
var _local2 = int((50 * getBytesLoaded()) / getBytesTotal());
if (this._height > (_local2 - 2)) {
this.height = _local2;
} else {
this._height = this._height + 2;
}
l._visible = !l._visible;
} else {
delete this.onEnterFrame;
nextFrame();
}
};
Frame 2
mac = String($version).indexOf("WIN") < 0;
if (_url.substr(0, 23) != "http://escape-game.com/") {
nextFrame();
} else {
stop();
}
fps_s = getTimer();
fcnt = 0;
this.onEnterFrame = function () {
fcnt++;
if ((getTimer() - fps_s) >= 1000) {
fps_s = getTimer();
fps_t.text = fcnt;
fps = fcnt;
fcnt = 0;
}
};
this.tabChildren = false;
Symbol 18 MovieClip [door] Frame 1
stop();
Symbol 18 MovieClip [door] Frame 10
stop();
Symbol 67 MovieClip Frame 1
stop();
Symbol 72 MovieClip Frame 1
stop();
Symbol 94 MovieClip Frame 1
stop();
Symbol 119 MovieClip Frame 1
switch (_root.lang) {
case "en" :
gotoAndStop (2);
break;
default :
stop();
}
Symbol 124 MovieClip Frame 1
d.stop();
t = this;
k._visible = (d._visible = false);
_alpha = 50;
s.onPress = function () {
_parent.seplay("chi");
this.c = 0;
this.onEnterFrame = function () {
if (((++this.c) % 2) == 0) {
k._visible = (d._visible = !d._visible);
_alpha = (k._visible ? 100 : 50);
}
if (this.c > 7) {
k._visible = (d._visible = true);
_alpha = 100;
delete this.onEnterFrame;
}
};
delete this.onPress;
};
k.onPress = function () {
_parent.seplay("getkey");
this._visible = false;
delete this.onPress;
};
d.c.onPress = function () {
if (!k._visible) {
_parent.qv();
delete this.onPress;
_parent.endf(d);
} else {
_parent.seplay("dclose");
}
};
Symbol 129 MovieClip Frame 1
stop();
Symbol 133 MovieClip Frame 1
_parent.key._visible = false;
stop();
n.text = "No." + (_parent._currentframe - 2);
b.onRollOver = function () {
Mouse.show();
this.gotoAndStop(2);
};
b.onRollOut = function () {
if (_parent.cm.onSelect != undefined) {
_parent.cm.onSelect();
}
this.gotoAndStop(1);
};
b.onPress = function () {
_parent.gend("quit");
};
Symbol 136 MovieClip Frame 90
stop();
Symbol 138 MovieClip Frame 1
stop();
Symbol 138 MovieClip Frame 2
stop();
Symbol 142 MovieClip Frame 1
d.stop();
t = this;
this.setMask(m);
m.c = 2;
m.onEnterFrame = function () {
this._x = _xmouse;
this._y = _ymouse;
this._xscale = this._xscale + this.c;
this._yscale = this._yscale + this.c;
if (this._xscale < 60) {
this._xscale = (this._yscale = 60);
this.c = -this.c;
} else if (this._xscale > 100) {
this._xscale = (this._yscale = 100);
this.c = -this.c;
}
};
k.onPress = function () {
_parent.seplay("getkey");
this._visible = false;
delete this.onPress;
};
d.c.onPress = function () {
if (!k._visible) {
_parent.qv();
delete this.onPress;
m.onEnterFrame = function () {
if (this._width < 1060) {
this._width = (this._height = this._height + ((1080 - this._width) * 0.1));
} else {
delete this.onEnterFrame;
_parent.endf(d);
}
};
} else {
_parent.seplay("dclose");
}
};
Symbol 144 MovieClip Frame 1
t = this;
m0.onRelease = (m0.onRelease = true);
m0.useHandCursor = (m1.useHandCursor = false);
k.onPress = function () {
_parent.seplay("getkey");
this._visible = false;
delete this.onPress;
delete this.onEnterFrame;
};
d.c.onPress = function () {
if (!k._visible) {
delete this._parent.onEnterFrame;
m0._visible = (m1._visible = false);
_parent.qv();
delete this.onPress;
_parent.endf(d);
} else {
_parent.seplay("dclose");
}
};
d.g = (k.g = 0);
d.p = 1;
k.p = 0.5;
d.r = 2;
k.r = 4;
d._rotation = int(random(360));
k._rotation = int(random(360));
d._x = random(300) + 90;
k._x = random(380) + 50;
d.onEnterFrame = (k.onEnterFrame = function () {
this._y = this._y + ((this.g = this.g + this.p));
this._rotation = this._rotation + this.r;
if (this._y > 360) {
this._y = -60 + random(10);
this.g = 0;
this._rotation = int(random(360));
this._x = random(300) + 90;
this.r = (random(2) ? (-this.r) : (this.r));
}
});
Symbol 150 MovieClip Frame 1
stop();
Symbol 154 MovieClip Frame 1
t = this;
Mouse.hide();
_parent.cm.onSelect = function () {
Mouse.hide();
};
_root.menu = _parent.cm;
c._x = int(_xmouse);
c._y = int(_ymouse);
c.g = -6;
c.xx = c._x;
c.c = 0;
c.m = 2;
this.onMouseMove = function () {
c.onEnterFrame = function () {
if ((++c.c) < 4) {
} else if (c.c < 10) {
c._x = c.xx - c.m;
c.m = -c.m;
} else if (c.c < 24) {
c._x = c.xx;
} else {
this._y = this._y + ((this.g = this.g + 2));
this._x = this._x - 2;
if (this._y > 260) {
this._y = 260;
_parent.seplay("zuta");
t.onEnterFrame = function () {
dl.text = int(_parent.Distance(_xmouse, _ymouse, 380, 220));
kl.text = int(_parent.Distance(_xmouse, _ymouse, k._x, k._y));
};
k.onPress = function () {
_parent.seplay("getkey");
this._visible = false;
delete this.onPress;
};
d.c.onPress = function () {
if (!k._visible) {
_parent.qv();
delete this.onPress;
m._visible = false;
this.onEnterFrame = function () {
c._x = c._x + ((_xmouse - c._x) * 0.5);
c._y = c._y + ((_ymouse - c._y) * 0.5);
if (c._rotation != 0) {
if (Math.abs(c._rotation) < 40) {
c._rotation = 0;
} else {
c._rotation = c._rotation + 40;
}
}
if (Math.abs(_xmouse - c._x) < 2) {
c._rotation = 0;
c._visible = false;
_parent.defaultMenu();
delete this.onEnterFrame;
Mouse.show();
_parent.endf(d);
}
};
} else {
_parent.seplay("dclose");
}
};
delete this.onEnterFrame;
} else {
this._rotation = this._rotation - 10;
}
}
};
delete this.onMouseMove;
};
Symbol 161 MovieClip Frame 1
t = this;
c.onRelease = true;
c.useHandCursor = false;
k.onPress = function () {
_parent.seplay("getkey");
this._visible = false;
delete this.onPress;
};
p.my = p._y;
p.gy = p._y - 20;
creturn = function () {
c.onEnterFrame = function () {
if (p._y != p.my) {
p._y = p._y + 0.4;
if (p._y >= p.my) {
p._y = p.my;
delete this.onEnterFrame;
}
this._yscale = int(100 - (((p.my - p._y) / 20) * 99));
}
};
};
_parent.cm.onSelect = function () {
creturn();
};
_root.menu = _parent.cm;
p.onPress = function () {
this.startDrag(false, this._x, this.my, this._x, p.gy);
c.onEnterFrame = function () {
this._yscale = int(100 - (((p.my - p._y) / 20) * 99));
};
this.onEnterFrame = function () {
if (!this.hitTest(_xmouse, _ymouse)) {
this.stopDrag();
creturn();
delete this.onEnterFrame;
}
};
};
p.onRelease = function () {
this.stopDrag();
creturn();
};
d.c.onPress = function () {
if (!k._visible) {
_parent.defaultMenu();
_parent.qv();
delete this.onPress;
_parent.endf(d);
} else {
_parent.seplay("dclose");
}
};
Symbol 163 MovieClip Frame 1
t = this;
kf = false;
df = false;
d.setMask(m);
c.onRelease = true;
c.useHandCursor = false;
this.onEnterFrame = function () {
if ((!kf) && (Key.isDown(40))) {
kf = true;
k.g = 2;
k.onEnterFrame = function () {
this._y = this._y + ((this.g = this.g + 2));
this._rotation = this._rotation + 6;
if (this._y > 230) {
this._y = int(this._y);
_parent.seplay("zuta");
this.onPress = function () {
_parent.seplay("getkey");
this._visible = false;
delete this.onPress;
};
delete this.onEnterFrame;
}
};
}
if ((!df) && (Key.isDown(38))) {
df = true;
_parent.seplay("zuuu");
d.onEnterFrame = function () {
this._y = this._y - 3;
if (this._y < 184.4) {
this._y = 184.4;
_parent.sestop("zuuu");
m._visible = false;
this.setMask(null);
d.c.onPress = function () {
if (!k._visible) {
_parent.qv();
delete this.onPress;
_parent.endf(d);
} else {
_parent.seplay("dclose");
}
};
delete this.onEnterFrame;
}
};
}
};
Symbol 172 MovieClip Frame 1
function csmove() {
if (sc._xscale != sc.mx) {
sc._xscale = sc._xscale + 2;
if (Math.abs(sc._xscale - sc.mx) < 2) {
sc._xscale = sc.mx;
}
}
cs._x = _xmouse;
cs._y = _ymouse;
if (!c._visible) {
sc._rotation = (Math.atan2(_ymouse - sc._y, _xmouse - sc._x) * 180) / Math.PI;
cs.m._rotation = cs.m._rotation + 5;
cs.m._visible = !cs.m._visible;
}
}
function shot() {
if ((!kf) || (!df)) {
_parent.seplay("bomb");
}
cs.m._visible = false;
c._x = sc._x + (int((Math.cos((sc._rotation * Math.PI) / 180) * 25) * 10) / 10);
c._y = sc._y + (int((Math.sin((sc._rotation * Math.PI) / 180) * 25) * 10) / 10);
c.mx = int((Math.cos((sc._rotation * Math.PI) / 180) * 12) * 10) / 10;
c.my = int((Math.sin((sc._rotation * Math.PI) / 180) * 12) * 10) / 10;
smk._x = sc._x + (int((Math.cos((sc._rotation * Math.PI) / 180) * 30) * 10) / 10);
smk._y = sc._y + (int((Math.sin((sc._rotation * Math.PI) / 180) * 30) * 10) / 10);
smk._alpha = 100;
smk._xscale = (smk._yscale = 100);
smk.onEnterFrame = function () {
if (this._alpha > 0) {
this._alpha = this._alpha - 5;
this._y = this._y - 0.5;
smk._xscale = smk._xscale + 10;
smk._yscale = smk._yscale + 2;
} else {
delete this.onEnterFrame;
}
};
sc._xscale = sc.mx - 10;
c._visible = true;
c.onEnterFrame = function () {
this._x = this._x + this.mx;
this._y = this._y + this.my;
this.my = this.my + 0.3;
if ((!kf) && (_parent.Distance(this._x, this._y, k._x, k._y) < 50)) {
if (k.hitTest(this._x, this._y)) {
this.gotoAndStop(2);
k.myOnPress();
kf = true;
} else {
this.gotoAndStop(1);
delete t.onMouseDown;
}
} else if ((!df) && (_parent.Distance(this._x, this._y, d._x, d._y) < 100)) {
if (d.c.hitTest(this._x, this._y)) {
this.gotoAndStop(2);
if (!dm) {
dm = true;
d.c.myOnPress();
if (kf) {
df = true;
}
}
} else {
this.gotoAndStop(1);
delete t.onMouseDown;
}
} else if (this._currentframe != 1) {
this.gotoAndStop(1);
}
if (((this._x < -20) || (this._x > 500)) || (this._y > 340)) {
this._visible = (dm = false);
t.onMouseDown = shot;
delete this.onEnterFrame;
}
};
delete this.onMouseDown;
}
t = this;
c._visible = false;
kf = false;
df = false;
dm = false;
sc.mx = sc._xscale;
Mouse.hide();
_parent.cm.onSelect = function () {
Mouse.hide();
};
_root.menu = _parent.cm;
cs._x = _xmouse;
cs._y = _ymouse;
cs.c = 0;
this.onEnterFrame = csmove;
this.onMouseDown = shot;
k.myOnPress = function () {
_parent.seplay("getkey");
this._visible = false;
delete this.onPress;
};
d.c.myOnPress = function () {
if (!k._visible) {
_parent.qv();
delete this.onPress;
_parent.endf(d);
} else {
_parent.seplay("dclose");
}
};
Symbol 177 MovieClip Frame 1
stop();
Symbol 177 MovieClip Frame 10
stop();
Symbol 184 MovieClip Frame 1
function dswitch() {
_parent.seplay("chi");
delete dj.c.onPress;
delete d.c.onPress;
if (!dbg._visible) {
tg.onEnterFrame = function () {
if (this._y < 180) {
this._y = this._y + 2;
} else {
this.tg.onEnterFrame = function () {
if (this._y > 100) {
this._y = this._y - 2;
} else {
this.c.onPress = this.c.myOnPress;
s.onPress = dswitch;
tg = this;
delete this.onEnterFrame;
_parent.sestop("zuuu");
}
};
delete this.onEnterFrame;
}
};
} else {
gy = ((d._y == 100) ? 180 : 100);
gm = ((d._y == 100) ? 2 : -2);
d.onEnterFrame = function () {
if (this._y != gy) {
this._y = this._y + gm;
} else {
this.c.onPress = this.c.myOnPress;
s.onPress = dswitch;
delete this.onEnterFrame;
_parent.sestop("zuuu");
}
};
delete this.onEnterFrame;
}
mf = !mf;
delete this.onPress;
this.onEnterFrame = function () {
_parent.seplay("zuuu");
delete this.onEnterFrame;
};
}
t = this;
_parent.setVisible(false, [dbg, k]);
dj.setMask(m0);
d.setMask(m1);
s.onPress = dswitch;
kn = 0;
kf = (bf = (mf = false));
d.tg = dj;
dj.tg = d;
tg = d;
dj.c.myOnPress = function () {
if ((++kn) >= 15) {
_parent.seplay("doga");
this._parent.d._xscale = 110;
this._parent.d._yscale = 110;
this._parent.d.onEnterFrame = function () {
if (this._xscale > 100) {
this._xscale = (this._yscale = this._yscale - 5);
} else {
delete this.onEnterFrame;
}
};
if (kn >= 20) {
this._parent.setMask(null);
m0._visible = false;
this._parent.my = 2;
this._parent.onEnterFrame = function () {
if (this._y < 360) {
this._y = this._y + (++this.my);
this._rotation = this._rotation + 2;
this._x++;
} else {
k.onPress = function () {
kf = true;
_parent.seplay("getkey");
this._visible = false;
delete this.onPress;
};
delete this.onEnterFrame;
}
};
_parent.setVisible(true, [k, dbg]);
delete this.onPress;
}
} else {
_parent.seplay("dclose");
}
};
d.c.myOnPress = function () {
if (kf) {
_parent.qv();
this._parent.setMask(null);
m1._visible = false;
delete this.onPress;
delete s.onPress;
_parent.endf(d);
} else {
_parent.seplay("dclose");
}
};
d.c.onPress = d.c.myOnPress;
Symbol 186 MovieClip Frame 1
d.stop();
t = this;
this.setMask(m);
this.onMouseDown = function () {
m.startDrag(false, m._width / 2, m._height / 2, 480 - (m._width / 2), 320 - (m._height / 2));
};
this.onMouseUp = function () {
m.stopDrag();
};
k.onPress = function () {
_parent.seplay("getkey");
this._visible = false;
delete this.onPress;
};
d.c.onPress = function () {
if (!k._visible) {
_parent.qv();
delete t.onMouseDown;
delete t.onMouseUp;
m.stopDrag();
m._x = d._x + 25;
m._y = d._y + 25;
delete this.onPress;
_parent.endf(d);
} else {
_parent.seplay("dclose");
}
};
Symbol 190 MovieClip Frame 1
function arrows() {
if (random(5) == 0) {
var _local3 = 0;
while (_local3 < 10) {
var _local2 = this["a" + _local3];
_local2._rotation = (Math.atan2((b._y + 2) - _local2._y, (b._x + 2) - _local2._x) * 180) / Math.PI;
_local3++;
}
} else {
arrowsr();
}
}
function arrowsr() {
var _local2 = 0;
while (_local2 < 10) {
var _local3 = this["a" + _local2];
_local3._rotation = random(360);
_local2++;
}
}
d.stop();
t = this;
k.setMask(m0);
d.setMask(m1);
b.onPress = function () {
_parent.seplay("guin");
k.onEnterFrame = function () {
if (this._y != 235) {
this._y = this._y + ((235 - this._y) * 0.1);
if (Math.abs(this._y - 235) < 0.5) {
this._y = 235;
}
} else {
this.onPress = function () {
_parent.seplay("getkey");
this._visible = false;
delete this.onPress;
};
delete this.onEnterFrame;
}
};
this._x = this._x - 190;
this._y = this._y - 30;
this.onPress = function () {
_parent.seplay("guin");
delete s.onPress;
delete s.onRelease;
delete s.onEnterFrame;
d.onEnterFrame = function () {
if (this._y != 206) {
this._y = this._y + ((206 - this._y) * 0.1);
if (Math.abs(this._y - 20) < 0.5) {
this._y = 206;
}
} else {
d.c.onPress = function () {
if (!k._visible) {
d.setMask(null);
_parent.defaultMenu();
_parent.qv();
delete this.onPress;
_parent.endf(d);
} else {
_parent.seplay("dclose");
}
};
delete this.onEnterFrame;
}
};
delete this.onPress;
};
};
b.useHandCursor = false;
arrowsr();
s.onPress = function () {
_parent.seplay("chi");
arrows();
_parent.cm.onSelect = function () {
s.onRelease();
};
_root.menu = _parent.cm;
s.onRelease = function () {
arrowsr();
_parent.defaultMenu();
delete this.onRelease;
};
s.onEnterFrame = function () {
if (!this.hitTest(_xmouse, _ymouse)) {
this.onRelease();
}
};
};
Symbol 195 MovieClip Frame 1
if (_root.mac) {
gotoAndStop (2);
} else {
stop();
}
Symbol 200 MovieClip Frame 1
stop();
Symbol 201 MovieClip Frame 1
function setMenu() {
var _local4;
_local4 = new ContextMenuItem();
_local4.caption = itemTxt[mf];
_local4.visible = true;
_local4.onSelect = function () {
if (mf == 0) {
k.cnt = 0;
k.onEnterFrame = function () {
if ((++this.cnt) > 10) {
this._visible = true;
k.onPress = function () {
kf = true;
_parent.seplay("getkey");
this._visible = false;
delete this.onPress;
};
delete this.onEnterFrame;
} else {
this._visible = !this._visible;
this._y++;
}
};
txt.nextFrame();
} else {
d.cnt = 0;
d.onEnterFrame = function () {
if ((++this.cnt) > 10) {
this._visible = true;
d.c.onPress = function () {
if (kf) {
_parent.qv();
delete this.onPress;
_parent.endf(d);
} else {
_parent.seplay("dclose");
}
};
delete this.onEnterFrame;
} else {
this._visible = !this._visible;
}
};
txt.gotoAndStop(5);
}
mf++;
setMenu();
_parent.seplay("pyuin");
};
if (mf < 2) {
_parent.cm.customItems = [_local4];
_root.menu = _parent.cm;
} else {
_parent.defaultMenu();
}
}
t = this;
_parent.setVisible(false, [k, d]);
kf = false;
switch (_root.lang) {
case "en" :
itemTxt = ["I want a key", "I want the door"];
txt.gotoAndStop(3);
break;
default :
itemTxt = ["\u9375\u304C\u307B\u3057\u3044", "\u30C9\u30A2\u3082\u307B\u3057\u3044"];
}
mf = 0;
setMenu();
Symbol 202 MovieClip Frame 1
function unSetBt() {
var _local2 = 1;
while (_local2 < 5) {
delete this["c" + _local2].onPress;
_local2++;
}
}
function setBt() {
k.onPress = function () {
kf = true;
_parent.seplay("getkey");
this._visible = false;
delete this.onPress;
};
c0._x = 60;
c0._y = 30;
var _local3 = 1;
while (_local3 < 5) {
var _local4 = this["c" + _local3];
_local4.mx = (((_local3 == 1) || (_local3 == 3)) ? 0 : (((_local3 == 2) ? 30 : -30)));
_local4.my = (((_local3 == 2) || (_local3 == 4)) ? 0 : (((_local3 == 3) ? 30 : -30)));
_local4._x = 60 + _local4.mx;
_local4._y = 30 + _local4.my;
_local4.onPress = function () {
if (!mf) {
mf = true;
}
mx = this.mx;
my = this.my;
_parent.seplay("chi");
moveArea();
};
_local4._alpha = 0;
_local3++;
}
}
function moveArea() {
var _local3 = 0;
while (_local3 < 5) {
var _local2 = this["c" + _local3];
_local2._x = _local2._x + mx;
_local2._y = _local2._y + my;
if ((((_local2._x < 60) || (_local2._y < 30)) || (_local2._x > 390)) || (_local2._y > 250)) {
_local2._visible = false;
} else {
_local2._visible = true;
}
_local3++;
}
checkHit();
}
function checkHit() {
if (c0.hitTest(k)) {
if (!kf) {
k._visible = true;
}
} else {
k._visible = false;
}
if (c0.hitTest(d.c)) {
d._visible = true;
} else {
d._visible = false;
}
}
t = this;
kf = (mf = false);
_parent.setVisible(false, [k, d, c1, c4]);
mx = (my = 0);
k._x = k._x + ((random(5) - 2) * 30);
d._x = d._x + ((random(5) - 2) * 30);
k._y = k._y + ((random(6) - 3) * 30);
d._y = d._y + ((random(6) - 3) * 30);
setBt();
m.onEnterFrame = function () {
if (mf) {
if (this._width > 0) {
this._width = this._width - 1;
} else {
_parent.removeKey();
kf = (mf = false);
_parent.setVisible(true, [c2, c3]);
_parent.setVisible(false, [k, d, c1, c4]);
this._width = 360;
setBt();
}
}
};
d.c.onPress = function () {
if (kf) {
_parent.qv();
delete this.onPress;
unSetBt();
mf = false;
_parent.endf(d);
} else {
_parent.seplay("dclose");
}
};
Symbol 207 MovieClip Frame 1
function cCheck() {
if ((cnt == 0) && (!df)) {
cnt = 3;
kf = false;
_parent.setVisible(true, [k, c0, c1, c2]);
_parent.removeKey();
}
}
function csmove() {
if (sc._xscale != sc.mx) {
sc._xscale = sc._xscale + 2;
if (Math.abs(sc._xscale - sc.mx) < 2) {
sc._xscale = sc.mx;
}
}
cs._x = _xmouse;
cs._y = _ymouse;
if (!c._visible) {
sc._rotation = (Math.atan2(_ymouse - sc._y, _xmouse - sc._x) * 180) / Math.PI;
cs.m._rotation = cs.m._rotation + 5;
cs.m._visible = !cs.m._visible;
}
}
function shot() {
if ((!kf) || (!df)) {
_parent.seplay("bomb");
}
if (cnt > 0) {
this["c" + (--cnt)]._visible = false;
}
cs.m._visible = false;
c._x = sc._x + (int((Math.cos((sc._rotation * Math.PI) / 180) * 25) * 10) / 10);
c._y = sc._y + (int((Math.sin((sc._rotation * Math.PI) / 180) * 25) * 10) / 10);
smk._x = sc._x + (int((Math.cos((sc._rotation * Math.PI) / 180) * 30) * 10) / 10);
smk._y = sc._y + (int((Math.sin((sc._rotation * Math.PI) / 180) * 30) * 10) / 10);
smk._alpha = 100;
smk._xscale = (smk._yscale = 100);
smk.onEnterFrame = function () {
if (this._alpha > 0) {
this._alpha = this._alpha - 5;
this._y = this._y - 0.5;
smk._xscale = smk._xscale + 10;
smk._yscale = smk._yscale + 2;
} else {
delete this.onEnterFrame;
}
};
sc._xscale = sc.mx - 10;
c._visible = true;
c.mx = int((Math.cos((sc._rotation * Math.PI) / 180) * 12) * 10) / 10;
c.my = int((Math.sin((sc._rotation * Math.PI) / 180) * 12) * 10) / 10;
c.onEnterFrame = function () {
var _local3 = this._x;
var _local4 = this._y;
this._x = this._x + this.mx;
this._y = this._y + this.my;
if (this.mx > 0) {
if ((this._y >= ((118 - this._height) + 4)) && (this._y <= 280)) {
if ((_local3 <= (194 - this._width)) && (this._x >= (194 - this._width))) {
ln._alpha = 100;
ln.m = this.mx / 5;
ln._x = 190;
ln.onEnterFrame = function () {
this._x = this._x + this.m;
this._alpha = this._alpha - 15;
if (this._alpha <= 0) {
delete this.onEnterFrame;
}
};
this.mx = -this.mx;
this._x = 194 - this._width;
_parent.seplay("ka");
}
}
}
this.my = this.my + 0.3;
if ((!kf) && (_parent.Distance(this._x, this._y, k._x, k._y) < 50)) {
if (k.hitTest(this._x, this._y)) {
this.gotoAndStop(2);
t.onMouseDown = function () {
k.myOnPress();
kf = true;
delete this.onMouseDown;
};
} else {
this.gotoAndStop(1);
delete t.onMouseDown;
}
} else if ((!df) && (_parent.Distance(this._x, this._y, d._x, d._y) < 100)) {
if (d.c.hitTest(this._x, this._y)) {
this.gotoAndStop(2);
t.onMouseDown = function () {
d.c.myOnPress();
if (kf) {
df = true;
delete this.onMouseDown;
}
};
} else {
this.gotoAndStop(1);
delete t.onMouseDown;
}
} else if (this._currentframe != 1) {
this.gotoAndStop(1);
}
if (((this._x < -20) || (this._x > 500)) || (this._y > 340)) {
this._visible = false;
t.onMouseDown = shot;
delete this.onEnterFrame;
cCheck();
}
};
delete this.onMouseDown;
}
d.stop();
t = this;
c._visible = false;
kf = false;
df = false;
sc.mx = sc._xscale;
Mouse.hide();
_parent.cm.onSelect = function () {
Mouse.hide();
};
_root.menu = _parent.cm;
cs._x = _xmouse;
cs._y = _ymouse;
cs.c = 0;
cnt = 0;
cCheck();
this.onEnterFrame = csmove;
this.onMouseDown = shot;
k.myOnPress = function () {
_parent.seplay("getkey");
this._visible = false;
delete this.onPress;
};
d.c.myOnPress = function () {
if (!k._visible) {
_parent.qv();
delete this.onPress;
_parent.endf(d);
} else {
_parent.seplay("dclose");
}
};
Symbol 221 MovieClip Frame 1
stop();
Symbol 227 MovieClip Frame 1
function checkPos() {
var _local4 = 0;
var _local3 = 0;
while (_local3 < 7) {
if (chAr[_local3] == this["nn" + _local3]._currentframe) {
_local4++;
}
_local3++;
}
if (_local4 == 7) {
ps.text = _local4;
_local3 = 0;
while (_local3 < 7) {
delete this["nn" + _local3].onPress;
_local3++;
}
m1.onEnterFrame = function () {
if (this._xscale < 100) {
this._xscale = this._xscale + 2;
} else {
_parent.seplay("bi");
this._visible = false;
delete this.onEnterFrame;
d._visible = true;
}
};
} else {
var _local5 = _local4 - (random(2) + 1);
_local5 = ((_local5 < 0) ? 0 : (_local5));
var _local6 = _local4 + random(2);
_local6 = ((_local5 > 6) ? 6 : (_local6));
ps.text = (_local5 + "-") + _local6;
}
}
function setNum() {
var _local4 = [1, 2, 3, 4, 5, 6, 7];
chAr = new Array(7);
var _local3 = 0;
while (_local3 < 7) {
var _local2 = this["n" + _local3];
_local2.gotoAndStop(_local3 + 1);
var _local5 = ((_local3 == 0) ? (random(_local4.length - 1)) : (random(_local4.length)));
chAr[_local4[_local5] - 1] = _local3 + 1;
_local2.x = _local2._x;
_local2.y = _local2._y;
_local2.mx = (200 - (_local2._x + 15)) * 2;
_local2.my = (145 - (_local2._y + 15)) * 2;
_local2.swapDepths(_local4[_local5]);
_local2 = this["nn" + _local3];
_local2.gotoAndStop(_local3 + 1);
_local2.v = _local4[_local5];
_local2._alpha = 50;
_local4.splice(_local5, 1);
_local3++;
}
}
t = this;
m0._xscale = (m1._xscale = 0);
_parent.setVisible(false, [k, d]);
kf = (mf = false);
s0.onPress = function () {
this.startDrag(false, 130, this._y, 270, this._y);
};
s0.onRelease = (s0.onReleaseOutside = function () {
this.stopDrag();
});
s1.onPress = function () {
this.startDrag(false, this._x, 80, this._x, 220);
};
s1.onRelease = (s1.onReleaseOutside = function () {
this.stopDrag();
});
this.onEnterFrame = function () {
var _local4;
var _local3;
if (!mf) {
m0._xscale = int((100 * (270 - s0._x)) / 140);
if (m0._xscale == 100) {
s0.stopDrag();
_parent.seplay("bi");
checkPos();
k.setMask(m0);
k._visible = true;
mf = true;
_local4 = 0;
while (_local4 < 7) {
_local3 = this["nn" + _local4];
_local3._alpha = 100;
_local3.onPress = function () {
if (ch == this) {
this._x = this._x - 5;
delete ch;
} else if (ch == undefined) {
this._x = this._x + 5;
ch = this;
} else {
ch._x = this._x;
var _local2 = ch._currentframe;
ch.gotoAndStop(this._currentframe);
this.gotoAndStop(_local2);
delete ch;
checkPos();
}
};
_local4++;
}
}
}
var _local7 = (s0._x - 130) / 140;
var _local6 = (220 - s1._y) / 140;
_local4 = 0;
while (_local4 < 7) {
_local3 = this["n" + _local4];
if (mf) {
_local3._x = int((_local3.mx * _local7) + _local3.x);
}
_local3._y = int((_local3.my * _local6) + _local3.y);
_local4++;
}
};
k.onPress = function () {
kf = true;
_parent.seplay("getkey");
this._visible = false;
delete this.onPress;
};
d.c.onPress = function () {
if (kf) {
_parent.qv();
delete this.onPress;
_parent.endf(d);
} else {
_parent.seplay("dclose");
}
};
setNum();
Symbol 267 MovieClip Frame 1
stop();
Symbol 267 MovieClip Frame 20
stop();
Symbol 267 MovieClip Frame 39
stop();
Symbol 268 MovieClip Frame 1
function wmove() {
wf = true;
this.y = _ymouse;
this.onMouseUp = function () {
if (!d._visible) {
wf = false;
}
delete this.onMouseUp;
};
this.onEnterFrame = function () {
if (wf) {
var _local4 = ((_ymouse > this.y) ? (this.y) : (((_ymouse < 3) ? 3 : (_ymouse))));
var _local3 = this._totalframes - 20;
this.gotoAndStop(int((this.y - _local4) / ((this.y - 3) / _local3)) + 20);
if ((this._currentframe == this._totalframes) && (!d._visible)) {
d._visible = true;
_parent.seplay("chi");
delete this.onEnterFrame;
}
if (this.ff && (this._currentframe == 20)) {
_parent.seplay("dosu");
cnt = 5;
wf = false;
}
this.ff = ((this._currentframe > 20) ? true : false);
} else if (this._currentframe > 20) {
this.prevFrame();
} else {
if (this.ff) {
this.ff = false;
_parent.seplay("dosu");
cnt = 5;
}
this.onPress = wmove;
delete this.onEnterFrame;
}
};
delete this.onPress;
}
t = this;
d._visible = false;
_parent.cm.onSelect = function () {
delete b.onEnterFrame;
delete b.onMouseUp;
wf = false;
};
_root.menu = _parent.cm;
cnt = 0;
yy = 2;
this.onEnterFrame = function () {
if (cnt > 0) {
_y = yy;
yy = -yy;
cnt--;
} else if (_y != 0) {
_y = 0;
}
};
b.onPress = function () {
this.x = _xmouse;
this.onMouseUp = function () {
delete this.onEnterFrame;
delete this.onMouseUp;
};
this.onEnterFrame = function () {
if (this.hitTest(_xmouse, _ymouse)) {
this._x = this._x - ((this.x - _xmouse) / 10);
this.x = _xmouse;
if ((this._x <= -133) || (this._x >= 313)) {
this._x = ((this._x <= -133) ? -133 : 313);
b.m = ((this._x <= -133) ? -183 : 363);
w.c = 0;
w.g = 1;
delete this.onEnterFrame;
delete this.onMouseUp;
delete this.onPress;
w.onEnterFrame = function () {
if (b._x != b.m) {
b._x = b._x + ((b.m - b._x) * 0.15);
if (Math.abs(b.m - n._x) < 0.2) {
b._x = b.m;
}
}
this._y = this._y + ((this.g = this.g + 0.5));
if (this._y >= 52) {
this._y = 52;
this.g = -(this.g - 1);
_parent.seplay("ka");
if ((++this.c) >= 5) {
this.play();
this.onEnterFrame = function () {
if (this._currentframe == 20) {
_parent.seplay("dosu");
cnt = 5;
k.onPress = function () {
_parent.seplay("getkey");
this._visible = false;
delete this.onPress;
w.onPress = wmove;
};
delete this.onEnterFrame;
}
};
}
}
};
}
} else {
delete this.onEnterFrame;
delete this.onMouseUp;
}
};
};
d.c.onPress = function () {
if (!k._visible) {
_parent.qv();
delete this.onPress;
_parent.endf(d);
} else {
_parent.seplay("dclose");
}
};
Symbol 272 MovieClip Frame 1
function nextHit() {
this.xp = this._x + int(Math.cos(((this._rotation + 90) * Math.PI) / 180) * 60);
this.yp = this._y + int(Math.sin(((this._rotation + 90) * Math.PI) / 180) * 60);
if (this.tg.hitTest(this.xp, this.yp, true)) {
if ((bcnt < 60) || (kcnt == "OK")) {
_parent.seplay("ka");
}
bcnt++;
var _local3;
if (t["m" + i] == undefined) {
_local3 = t.attachMovie("hit", "m" + i, i);
col = new Color(_local3);
col.setRGB(16757248);
_local3._y = 290;
_local3._rotation = 180;
_local3._width = 15;
_local3._height = 60;
} else {
_local3 = t["m" + i];
}
n = (((i - 1) < 0) ? 20 : (i - 1));
if (kcnt != "OK") {
_local3._x = t["m" + n]._x + 50;
}
_local3.n = i;
i = (i + 1) % 21;
tg = this.tg;
this.tg.tg = t["m" + ((this.tg.n + 1) % 21)];
this.tg.rt = 2;
this._rotation = this._rotation - 2;
this.onEnterFrame = function () {
if (this._x < -60) {
this.rt = 0;
this._rotation = 180;
this._width = 15;
this._height = 60;
delete this.onEnterFrame;
} else {
this.xp = this._x + int(Math.cos(((this._rotation + 90) * Math.PI) / 180) * 60);
this.yp = this._y + int(Math.sin(((this._rotation + 90) * Math.PI) / 180) * 60);
if (this.tg.hitTest(this.xp, this.yp, true)) {
this.rt = 0;
} else {
this._rotation = this._rotation + ((this.rt = this.rt + 0.5));
}
}
};
this.tg.onEnterFrame = nextHit;
} else {
this._rotation = this._rotation + ((this.rt = this.rt + 0.5));
}
if ((this._rotation >= -90) && (this._rotation < 0)) {
this._rotation = -90;
_parent.seplay("dosu");
me = true;
delete this.onEnterFrame;
}
}
t = this;
kcnt = 0;
bcnt = 0;
_parent.setVisible(false, [k, d]);
kf = (df = false);
me = false;
i = 0;
while (i < 12) {
var bb = this.attachMovie("hit", "m" + i, i);
col = new Color(bb);
col.setRGB(16757248);
bb._x = ((i == 0) ? ((bf = 23)) : ((bf = bf + 50)));
bb._y = 290;
bb._width = 15;
bb._height = 60;
bb._rotation = 180;
bb.n = i;
i++;
}
m0.onPress = function () {
m0.rt = 2;
m0.tg = m1;
m0.onEnterFrame = nextHit;
delete this.onPress;
};
tg = m0;
m.onPress = function () {
kcnt++;
};
this.onEnterFrame = function () {
if ((Math.abs(kcnt - bcnt) > 1) && (kcnt < 100)) {
kcnt = (bcnt = 0);
}
if (((kcnt == 50) && (!kf)) && (!k._visible)) {
k.v = 0;
k.onEnterFrame = function () {
if ((++this.v) > 2) {
this._visible = true;
delete this.onEnterFrame;
k.onPress = function () {
kf = true;
_parent.seplay("getkey");
this._visible = false;
delete this.onPress;
};
} else {
this._visible = !this._visible;
}
};
} else if (kcnt == 100) {
delete m.onPress;
d._visible = true;
kcnt = "OK";
}
btxt.text = ((bcnt >= 100) ? 100 : (((bcnt < 30) ? (bcnt) : (((bcnt < 70) ? (String(bcnt).substr(0, String(bcnt).length - 1) + "?") : "??")))));
ktxt.text = kcnt;
var _local5;
if ((kcnt > 80) && (kcnt < 100)) {
_local5 = 20 + ((kcnt - 80) * 15);
} else {
_local5 = ((kcnt == "OK") ? 320 : 20);
}
if (tg._x > _local5) {
if (kcnt == "OK") {
_local5 = -Math.ceil(Math.abs((_local5 - tg._x) * 0.1));
} else {
_local5 = int(((_local5 - tg._x) * 0.5) / 10);
}
var _local4 = 0;
var _local3 = 0;
while (_local3 < 21) {
if (df) {
delete this["m" + _local3].onEnterFrame;
} else if (this["m" + _local3] != undefined) {
this["m" + _local3]._x = this["m" + _local3]._x + _local5;
if (this["m" + _local3]._x > _local4) {
d._x = this["m" + _local3]._x + 70;
_local4 = this["m" + _local3]._x;
}
}
_local3++;
}
} else if (me) {
var _local3 = 0;
while (_local3 < 21) {
delete this["m" + _local3].onEnterFrame;
_local3++;
}
d.c.onPress = function () {
if (kf) {
df = true;
_parent.qv();
delete this.onPress;
_parent.endf(d);
} else {
_parent.seplay("dclose");
}
};
delete this.onEnterFrame;
}
};
Symbol 330 MovieClip Frame 1
Symbol 334 MovieClip Frame 1
stop();
Symbol 339 MovieClip Frame 1
stop();
Symbol 340 MovieClip Frame 1
function hStartDrag() {
this.startDrag(false, int(this._width / 2), int(this._height / 2), 480 - int(this._width / 2), 320 - int(this._height / 2));
}
function hStopDrag() {
this.stopDrag();
if (h0.h.hitTest(h1)) {
_parent.seplay("zuta");
h1._visible = false;
delete h0.onRelease;
delete h0.onReleaseOutside;
delete h1.onPress;
delete h1.onRelease;
delete h1.onReleaseOutside;
h0.onPress = function () {
_parent.seplay("zuta");
Mouse.hide();
_parent.cm.onSelect = function () {
Mouse.hide();
if (h2._currentframe == 2) {
h2.gotoAndPlay(3);
}
};
_root.menu = _parent.cm;
h2.onEnterFrame = function () {
this._x = _xmouse;
this._y = _ymouse;
};
h2.onPress = function () {
if (this._currentframe == 1) {
this.gotoAndStop(2);
if (this.h.hitTest(hc)) {
_parent.seplay("ka");
g_broken();
delete this.onRelease;
delete this.onPress;
delete this.onEnterFrame;
} else if (this.h.hitTest(m)) {
_parent.seplay("ka");
}
}
};
h2.onRelease = function () {
if (this._currentframe == 2) {
this.gotoAndPlay(3);
}
};
this._visible = false;
delete this.onPress;
};
h0.gotoAndStop(2);
}
}
function g_broken() {
var _local4 = 0;
while (_local4 < 28) {
var _local3 = t["g" + _local4];
_local3.m = random(4) + 4;
_local3.r = random(7) - 3;
_local4++;
}
m._visible = false;
gl.cnt = 0;
gl._visible = true;
gl.setMask(hc);
gl.onEnterFrame = function () {
if (hc._width < 600) {
hc._width = hc._width + 40;
hc._height = hc._height + 40;
} else {
var _local5 = (((++this.cnt) > 4) ? 0 : (((this.cnt > 3) ? 9 : (((this.cnt > 2) ? 18 : 28)))));
if (gl._visible && (this.cnt > 2)) {
hc._visible = false;
gl._visible = false;
gl.setMask(null);
_parent.seplay("parin");
h2._visible = false;
}
var _local4 = 27;
while (_local4 >= _local5) {
var _local3 = t["g" + _local4];
_local3._y = _local3._y + (++_local3.m);
_local3._rotation = _local3._rotation + _local3.r;
_local4--;
}
if (t.g5._y > 600) {
d.c.onPress = function () {
if (!k._visible) {
_parent.qv();
delete this.onPress;
_parent.endf(d);
} else {
_parent.seplay("dclose");
}
};
_parent.defaultMenu();
Mouse.show();
delete this.onEnterFrame;
}
}
};
}
t = this;
gl._visible = false;
h0.onPress = (h1.onPress = hStartDrag);
h0.onRelease = (h0.onReleaseOutside = (h1.onRelease = (h1.onReleaseOutside = hStopDrag)));
k.onPress = function () {
_parent.seplay("getkey");
this._visible = false;
delete this.onPress;
};
Symbol 373 MovieClip Frame 1
stop();
Symbol 373 MovieClip Frame 53
stop();
Symbol 377 MovieClip Frame 1
function mHP(n) {
hp = hp - n;
if (hp <= 0) {
hpbar._width = 0;
removeOEF();
t._y = 0;
maxhp = maxhp + 300;
hp = maxhp;
mHP(0);
qes.text = "START";
qnum = 0;
qmax = qes.text.length;
enhp = enmax;
setKey();
} else {
hpbar._width = Math.ceil((hp / maxhp) * 160);
}
}
function damage(v) {
_parent.seplay("dosu");
mHP(v);
t._y = 2;
k.cnt = 0;
k.onEnterFrame = function () {
if ((++this.cnt) > 2) {
t._y = 0;
delete this.onEnterFrame;
}
};
}
function setWords() {
if (qes.text == "START") {
sec_st = getTimer();
d.onEnterFrame = function () {
mHP(2);
sec = sec + (getTimer() - sec_st);
sec_st = getTimer();
if (hp < 0) {
delete this.onEnterFrame;
Key.removeListener(obj);
}
};
}
var _local2;
do {
_local2 = words[random(words.length)];
} while (_local2 == qes.text);
qes.text = _local2;
qnum = 0;
qmax = _local2.length;
mytype.text = "";
}
function attack() {
_parent.seplay("doga");
tnum++;
if (((--enhp) <= 0) && (hp > 0)) {
removeOEF();
if (!kf) {
k._visible = true;
words = words2;
} else {
d._visible = true;
}
w.gotoAndStop(1);
w.onEnterFrame = function () {
if (this._currentframe == 8) {
_parent.seplay("bomb");
}
if (this._currentframe != this._totalframes) {
this.nextFrame();
} else {
if (!kf) {
k.onPress = function () {
kf = true;
_parent.seplay("getkey");
this._visible = false;
delete this.onPress;
w.onEnterFrame = function () {
if (this._currentframe != 9) {
this.prevFrame();
} else {
delete this.onEnterFrame;
hp = maxhp;
mHP(0);
qes.text = "START";
qnum = 0;
qmax = qes.text.length;
enhp = (enmax = 115);
setKey();
}
};
};
} else {
t.createTextField("txt", t.getNextHighestDepth(), 160, 50, 160, 60);
if (mnum > 999) {
mnum = "over-999";
}
hpbar._visible = false;
qes.text = (((int((tnum / sec) * 10000) / 10) + "/s ") + " miss ") + mnum;
d.c.onPress = function () {
if (kf) {
_parent.qv();
delete this.onPress;
_parent.endf(d);
} else {
_parent.seplay("dclose");
}
};
}
delete this.onEnterFrame;
}
};
} else {
w.gotoAndStop(random(5) + 15);
w.c = 0;
w.onEnterFrame = function () {
if ((++this.c) > 2) {
this.gotoAndStop(1);
delete this.onEnterFrame;
}
};
}
}
function setKey() {
obj = new Object();
obj.onKeyDown = function () {
if (qnum < qmax) {
if (t["k" + Key.getCode()] == qes.text.substr(qnum, 1)) {
mytype.text = mytype.text + t["k" + Key.getCode()];
qnum++;
if (qes.text != "START") {
attack();
} else {
_parent.seplay("bi");
}
} else if (qes.text != "START") {
damage(12);
mnum++;
}
}
if ((qnum == qmax) && (t.onEnterFrame == undefined)) {
t.cnt = 0;
t.onEnterFrame = function () {
if (enhp <= 0) {
delete this.onEnterFrame;
} else if ((++this.cnt) > 5) {
setWords();
delete this.onEnterFrame;
}
};
}
};
Key.addListener(obj);
}
function removeOEF() {
Key.removeListener(obj);
qes.text = "";
mytype.text = "";
delete t.onEnterFrame;
delete k.onEnterFrame;
delete d.onEnterFrame;
}
t = this;
tnum = 0;
mnum = 0;
sec = 0;
sec_st = 0;
_parent.setVisible(false, [k, d]);
t.k48 = "0";
t.k49 = "1";
t.k50 = "2";
t.k51 = "3";
t.k52 = "4";
t.k53 = "5";
t.k54 = "6";
t.k55 = "7";
t.k56 = "8";
t.k57 = "9";
t.k65 = "A";
t.k66 = "B";
t.k67 = "C";
t.k68 = "D";
t.k69 = "E";
t.k70 = "F";
t.k71 = "G";
t.k72 = "H";
t.k73 = "I";
t.k74 = "J";
t.k75 = "K";
t.k76 = "L";
t.k77 = "M";
t.k78 = "N";
t.k79 = "O";
t.k80 = "P";
t.k81 = "Q";
t.k82 = "R";
t.k83 = "S";
t.k84 = "T";
t.k85 = "U";
t.k86 = "V";
t.k87 = "W";
t.k88 = "X";
t.k89 = "Y";
t.k90 = "Z";
t.k96 = "0";
t.k97 = "1";
t.k98 = "2";
t.k99 = "3";
t.k100 = "4";
t.k101 = "5";
t.k102 = "6";
t.k103 = "7";
t.k104 = "8";
t.k105 = "9";
words2 = ["KAGINOCHITOBIRA", "KEYBOARD", "BASEBALL", "SUKIYAKI", "PUSHPUSHPUSH", "DADADADADADA", "ABCDEFG", "CAPSLOCK", "COMPUTER", "COMPLETE"];
words = ["APPLE", "END", "FLASH", "ESCAPE", "ORANGE", "123456789", "TYPING", "KEY", "DOOR", "JUMP", "ENTER", "NINJA", "PLUS"];
hp = 2700;
maxhp = 2700;
qes.text = "START";
qnum = 0;
qmax = qes.text.length;
enhp = (enmax = 70);
setKey();
Symbol 398 MovieClip Frame 1
stop();
Symbol 398 MovieClip Frame 16
stop();
Symbol 399 MovieClip Frame 1
function setBT(n) {
if ((n == 1) || (n == 3)) {
b.b0.useHandCursor = ((n == 1) ? false : true);
b.b0.onPress = function () {
b.gotoAndStop(16);
setBT(0);
};
} else if (n == 2) {
b.b0.useHandCursor = (b.b1.useHandCursor = false);
b.b0.onPress = function () {
b.gotoAndStop(17);
_parent.seplay("za");
setBT(1);
};
b.b1.onPress = function () {
b.gotoAndStop(16);
setBT(0);
};
} else {
b.b0.useHandCursor = (b.b1.useHandCursor = (b.b2.useHandCursor = (b.b3.useHandCursor = false)));
k._visible = false;
d._visible = false;
b.b0.onPress = function () {
_parent.seplay("za");
b.gotoAndStop(17);
setBT(1);
};
b.b1.onPress = function () {
_parent.seplay("za");
b.gotoAndStop(18);
setBT(2);
};
b.b2.onPress = function () {
b.gotoAndStop(19);
if (!kf) {
k._visible = true;
b.b1.onPress = true;
b.b1.useHandCursor = false;
}
setBT(3);
};
b.b3.onPress = function () {
b.gotoAndStop(20);
d._visible = true;
setBT(3);
};
b.b3.onRollOver = function () {
if (kf) {
_parent.seplay("chi");
}
};
}
}
t = this;
kf = false;
_parent.setVisible(false, [k, d]);
_parent.cm.onSelect = function () {
if (b._currentframe == 1) {
delete b.onEnterFrame;
}
};
_root.menu = _parent.cm;
b.onPress = function () {
b.x = _xmouse;
b.onEnterFrame = function () {
if ((this.x - _xmouse) > 100) {
_parent.defaultMenu();
_parent.seplay("guan");
delete this.onPress;
delete this.onRelease;
delete this.onReleaseOutside;
this.onEnterFrame = function () {
if (this._currentframe != 16) {
this.nextFrame();
} else {
delete this.onEnterFrame;
setBT(0);
}
};
}
b.x = _xmouse;
};
};
b.onRelease = (b.onReleaseOutside = function () {
delete this.onEnterFrame;
});
k.onPress = function () {
kf = true;
_parent.seplay("getkey");
this._visible = false;
delete this.onPress;
};
d.c.onPress = function () {
if (kf) {
delete b.b0.onPress;
_parent.qv();
delete this.onPress;
_parent.endf(d);
} else {
_parent.seplay("dclose");
}
};
Symbol 424 MovieClip Frame 1
stop();
Symbol 424 MovieClip Frame 20
stop();
Symbol 431 MovieClip Frame 1
function countTime() {
ms = getTimer();
if (old == undefined) {
old = ms;
}
if ((ms - old) >= 1000) {
tn._visible = true;
old = ms;
}
if (((ms - old) >= 500) && (tn._visible)) {
tn._visible = false;
}
}
function checkTime() {
var _local3 = new Date();
if ((h == _local3.getHours()) && (m == _local3.getMinutes())) {
delete b0.onPress;
delete b1.onPress;
delete this.onEnterFrame;
tn._visible = true;
_parent.seplay("karan");
k.onEnterFrame = function () {
if (this._y < 210) {
this._y = this._y + 15;
} else {
this.c = 0;
this.onEnterFrame = function () {
if ((++this.c) < 4) {
this._rotation = this._rotation + 10;
this._y = this._y + 4;
this._xscale = (this._yscale = this._yscale + 5);
} else {
this.onPress = k_press;
delete this.onEnterFrame;
}
};
}
};
}
}
function k_press() {
_parent.seplay("getkey");
this._visible = false;
delete this.onPress;
to.onPress = function () {
this.onEnterFrame = function () {
if (this._currentframe != 1) {
this.prevFrame();
} else {
cl.onEnterFrame = clock;
_parent.setVisible(false, [b0, b1, n0, n1, n2, n3, tn, o]);
this.onEnterFrame = function () {
if (cl._xscale != 100) {
var _local2 = cl._width;
cl._y = cl._y + ((50 - cl._y) * 0.15);
this._y = this._y + ((50 - this._y) * 0.15);
cl._xscale = cl._xscale + ((100 - cl._xscale) * 0.15);
cl._yscale = cl._xscale;
if (Math.abs(100 - cl._xscale) < 0.2) {
cl._xscale = 100;
cl._yscale = 100;
cl._y = (this._y = 50);
cl.d._visible = false;
d._visible = true;
k._y = cl.k._y + 50;
d._y = cl.d._y + 50;
delete this.onEnterFrame;
}
_local2 = cl._width / _local2;
this._xscale = this._xscale * _local2;
this._yscale = this._yscale * _local2;
}
};
}
};
delete this.onPress;
};
}
t = this;
h = ((new Date().getHours() < 12) ? 11 : 23);
m = (new Date().getMinutes() + 36) % 60;
c = 0;
k.setMask(mk);
d._visible = false;
to.onPress = function () {
this.play();
this.onEnterFrame = function () {
if (this._currentframe == this._totalframes) {
delete this.onEnterFrame;
}
};
delete this.onPress;
};
b0.onPress = function () {
_parent.seplay("chi");
h = (++h) % 24;
if (h < 10) {
n0.gotoAndStop(1);
n1.gotoAndStop(h + 1);
} else {
n0.gotoAndStop(1 + int(h / 10));
n1.gotoAndStop(1 + (h % 10));
}
checkTime();
};
b1.onPress = function () {
_parent.seplay("chi");
m = (++m) % 60;
if (m < 10) {
n2.gotoAndStop(1);
n3.gotoAndStop(m + 1);
} else {
n2.gotoAndStop(1 + int(m / 10));
n3.gotoAndStop(1 + (m % 10));
}
checkTime();
};
b1.onPress();
b0.onPress();
stopAllSounds();
this.onEnterFrame = countTime;
d.c.onPress = function () {
if (!k._visible) {
_parent.qv();
delete this.onPress;
_parent.endf(d);
} else {
_parent.seplay("dclose");
}
};
function clock() {
this.sb._rotation = new Date().getSeconds() * 6;
this.mb._rotation = new Date().getMinutes() * 6;
this.hb._rotation = (new Date().getHours() % 12) * 30;
}
Symbol 433 MovieClip Frame 1
t = this;
k.onPress = function () {
_parent.seplay("getkey");
this._visible = false;
delete this.onPress;
};
d.c.onPress = function () {
if (!k._visible) {
_parent.qv();
delete this.onPress;
_parent.endf(d);
} else {
_parent.seplay("dclose");
}
};
Symbol 435 MovieClip Frame 1
_parent.setVisible(false, [k, d]);
kf = (df = false);
k.onPress = function () {
if (this.cf) {
kf = true;
_parent.seplay("getkey");
this._visible = false;
delete this.onPress;
}
};
d.c.onPress = function () {
if (kf) {
stopAllSounds();
_parent.qv();
df = true;
delete this.onPress;
_parent.endf(d);
}
};
k.useHandCursor = (d.c.useHandCursor = false);
Symbol 436 MovieClip Frame 1
stop();
Symbol 439 MovieClip Frame 1
stop();
Symbol 448 MovieClip Frame 1
function defaultMenu() {
cm = new ContextMenu();
cm.hideBuiltInItems();
_root.menu = cm;
}
function setVisible(v, ar) {
for (var _local3 in ar) {
ar[_local3]._visible = v;
}
}
function removeKey() {
key._visible = false;
}
function Distance(x1, y1, x2, y2) {
return(int(Math.sqrt(Math.pow(x1 - x2, 2) + Math.pow(y1 - y2, 2))));
}
function qv() {
quit._visible = false;
}
function gend() {
msk._visible = false;
delete md;
gotoAndStop (2);
}
function endf(d) {
md = d;
seplay("usekey");
se5.onSoundComplete = function () {
md.cnt = 0;
md.max = ((_currentframe == 40) ? 20 : (((_currentframe > 2) ? 120 : 50)));
md.play();
seplay("dopen");
md.onEnterFrame = function () {
if (this._currentframe == this._totalframes) {
if (this.cnt == 0) {
se0.stop();
}
if ((++this.cnt) > this.max) {
delete this.onEnterFrame;
delete _root.menu;
gend();
} else if (_currentframe == 1) {
if ((this.cnt > 20) && (msk._alpha < 100)) {
msk._alpha = msk._alpha + 4;
}
} else if ((_currentframe > 2) && (_currentframe < 23)) {
if ((clear_mc._currentframe == 1) && (this.cnt > 10)) {
clear_mc.gotoAndStop(2);
}
if (this.cnt == 14) {
seplay("clear");
}
if (this.cnt == 30) {
var _local4 = SharedObject.getLocal("dakData");
if (_local4.data.cl[0] == undefined) {
_local4.data.cl = new Array();
var _local3 = 0;
while (_local3 < st) {
_local4.data.cl[_local3] = 1;
_local3++;
}
}
_local4.data.cl[_currentframe - 3] = 2;
_local4.flush();
}
}
}
};
};
}
function seplay(v) {
switch (v) {
case "dopen" :
se0.start();
break;
case "dclose" :
se1.stop();
se1.start();
break;
case "zuta" :
se2.start();
break;
case "zuuu" :
se3.onSoundComplete = function () {
this.start();
};
se3.start();
break;
case "getkey" :
se4.start();
key._visible = true;
break;
case "usekey" :
se5.start();
break;
case "bomb" :
se6.start();
break;
case "guin" :
se7.start();
break;
case "chi" :
se8.start();
break;
case "karan" :
se9.start();
break;
case "ka" :
se10.start();
break;
case "bi" :
se11.start();
break;
case "doga" :
se12.start();
break;
case "dosu" :
se13.start();
break;
case "subkey" :
se14.start();
break;
case "pyuin" :
se15.start();
break;
case "za" :
se16.start();
break;
case "guan" :
se17.start();
break;
case "parin" :
se18.start();
break;
case "clear" :
se19.start();
}
}
function sestop(v) {
if (!(v === "zuuu")) {
} else {
se3.stop();
delete se3.onSoundComplete;
}
}
defaultMenu();
msk._alpha = 0;
selist = ["dopen", "dclose", "zuta", "zuuu", "getkey", "usekey", "bomb", "guin", "chi", "karan", "ka", "bi", "doga", "dosu", "subkey", "pyuin", "za", "guan", "parin", "clear"];
i = 0;
while (i < selist.length) {
this["se" + i] = new Sound(this);
this["se" + i].attachSound(selist[i]);
i++;
}
delete selist;
stop();
d.c.onPress = function () {
if (!k._visible) {
delete this.onPress;
endf(d);
} else {
seplay("dclose");
}
};
k.onPress = function () {
seplay("getkey");
this._visible = false;
delete this.onPress;
};
key._visible = false;
gosite.onRelease = function () {
getURL ("http://escape-game.com/");
};
Symbol 448 MovieClip Frame 2
function setStages() {
var _local5 = SharedObject.getLocal("dakData");
if (_local5.data.cl[0] == undefined) {
_local5.data.cl = new Array();
var _local3 = 0;
while (_local3 < st) {
_local5.data.cl[_local3] = 1;
_local3++;
}
_local5.flush();
}
var _local3 = 0;
while (_local3 <= st) {
var _local2 = ar.attachMovie("area", "dr" + _local3, _local3);
if (_local5.data.cl[_local3] == 2) {
_local2.anum.gotoAndStop(2);
clpt++;
} else {
_local2._alpha = 70;
}
if (_local3 == 20) {
if (clpt < 20) {
_local2._visible = false;
} else {
_local2._alpha = 100;
_local2.anum.gotoAndStop(2);
_local2.anum.n.text = "E";
_local2._x = 100;
_local2._y = -120;
_local2.goto = 40;
}
} else {
if (_local3 == 12) {
if (clpt < 12) {
_local2._visible = false;
}
} else if (_local3 != 0) {
var _local4 = 0;
while (_local4 < arcp[_local3].length) {
if (_local5.data.cl[arcp[_local3][_local4]] == 2) {
_local2._visible = true;
break;
}
_local2._visible = false;
_local4++;
}
}
_local2.anum.n.text = _local3 + 1;
_local2._x = ((arpos[_local3][0] * 25) + 15) - 240;
_local2._y = ((arpos[_local3][1] * 25) + 35) - 160;
_local2.goto = 3 + _local3;
}
_local2.i.gotoAndStop(1 + _local3);
_local2.m._visible = false;
_local2.onRelease = function () {
gotoAndStop(this.goto);
ar.removeMovieClip();
};
_local3++;
}
}
stop();
stopAllSounds();
Mouse.show();
delete _root.menu;
delete cm;
defaultMenu();
t = this;
st = 20;
ar = this.createEmptyMovieClip("ar", 200);
ar._x = 240;
ar._y = 160;
arpos = [[0, 4], [0, 2], [0, 6], [2, 0], [2, 8], [4, 0], [4, 8], [6, 0], [6, 8], [8, 2], [8, 6], [8, 4], [10, 3], [12, 3], [12, 5], [14, 3], [12, 7], [16, 3], [16, 5], [16, 7]];
arcp = [[0], [0, 3], [0, 4], [1, 5], [2, 6], [3, 7], [4, 8], [5, 9], [6, 10], [7, 11], [8, 11], [9, 10], [0], [12], [13], [13], [14], [15], [17], [18]];
se0.setVolume(100);
clpt = 0;
setStages();
Symbol 448 MovieClip Frame 40
s = 0;
qv();
se0.setVolume(5);
ee.ff = false;
if (_root.fps >= 30) {
ex = 6;
} else {
ex = 5;
}
var i = 0;
while (i < 6) {
this["o" + i].ii = i;
this["o" + i].onPress = function () {
if (this.pp != undefined) {
this.pp = !this.pp;
this._parent["t" + this.ii].text = ((!this.pp) ? "ON" : "OFF");
}
};
i++;
}
al.onEnterFrame = function () {
if (this._y > 0) {
this._y--;
al2._y = (this._y + 160) % 320;
} else {
this._y = 320;
al2._y = 160;
}
if (s > (ex * 32)) {
if (ee._y > -900) {
ee._y = ee._y - 1;
} else if (!ee.ff) {
ee.ff = true;
ee.k.cnt = 0;
ee.d.cnt = 0;
ee.k.onEnterFrame = (ee.d.onEnterFrame = function () {
if ((++this.cnt) > 5) {
this.cf = true;
this._visible = true;
this._parent.k.useHandCursor = (this._parent.d.c.useHandCursor = true);
delete this.onEnterFrame;
} else {
this._visible = !this._visible;
}
});
}
}
if ((s % (ex * 2)) == 1) {
if (o0.pp == undefined) {
o0.pp = false;
t0.text = "ON";
}
if ((!ee.df) && (!o0.pp)) {
seplay("subkey");
o0.play();
}
}
if ((s > (ex * 32)) && ((s % (ex * 2)) == (ex + 1))) {
if (o1.pp == undefined) {
o1.pp = false;
t1.text = "ON";
}
if ((!ee.df) && (!o1.pp)) {
seplay("ka");
o1.play();
}
}
if ((s > (ex * 64)) && ((s % (ex * 4)) == 1)) {
if (o4.pp == undefined) {
o4.pp = false;
t4.text = "ON";
}
if ((!ee.df) && (!o4.pp)) {
seplay("dopen");
o4.gotoAndStop(1);
o4.cnt = 0;
o4.onEnterFrame = function () {
if ((this.cnt == 0) && (this._currentframe == this._totalframes)) {
this.cnt = 1;
} else if (this.cnt == 0) {
this.nextFrame();
} else if ((this.cnt == 1) && (this._currentframe != 1)) {
this.prevFrame();
} else {
delete this.onEnterFrame;
}
};
}
}
if ((s > (ex * 96)) && ((((s % (ex * 16)) == ex) || ((s % (ex * 16)) == (ex * 3))) || ((s % (ex * 16)) == (ex * 4)))) {
if (o2.pp == undefined) {
o2.pp = false;
t2.text = "ON";
}
if ((!ee.df) && (!o2.pp)) {
seplay("dosu");
o2.gotoAndPlay(2);
}
}
if ((s > (ex * 96)) && ((s % (ex * 32)) == (ex * 5))) {
if (o3.pp == undefined) {
o3.pp = false;
t3.text = "ON";
}
if ((!ee.df) && (!o3.pp)) {
seplay("bomb");
if (o3.sc.mx == undefined) {
o3.sc.mx = o3.sc._xscale;
}
o3.smk._x = o3.sc._x + 30;
o3.smk._y = o3.sc._y;
o3.smk._alpha = 100;
o3.smk._visible = true;
o3.smk._xscale = (o3.smk._yscale = 100);
o3.smk.onEnterFrame = function () {
if (o3.sc._xscale < o3.sc.mx) {
o3.sc._xscale = o3.sc._xscale + 2;
}
if (this._alpha > 0) {
this._alpha = this._alpha - 5;
this._y = this._y - 0.5;
this._xscale = this._xscale + 10;
this._yscale = this._yscale + 2;
} else {
this._visible = false;
delete this.onEnterFrame;
}
};
o3.sc._xscale = o3.sc.mx - 10;
}
}
if (((s > (ex * 128)) && ((s % (ex * 32)) == (ex * 10))) || ((s > (ex * 32)) && ((s % (ex * 16)) == (ex * 8)))) {
if (o5.pp == undefined) {
o5.pp = false;
t5.text = "ON";
}
if ((!ee.df) && (!o5.pp)) {
seplay("doga");
o5.w.gotoAndPlay(52);
o5.w.onEnterFrame = function () {
if (this._currentframe == this._totalframes) {
this.gotoAndStop(1);
delete this.onEnterFrame;
}
};
}
}
if ((++s) > (ex * 512)) {
if (_root.fps >= 30) {
ex = 6;
} else {
ex = 5;
}
s = (s % (ex * 128)) + (ex * 128);
}
if (se0.getVolume() < 50) {
se0.setVolume(se0.getVolume() + 1);
}
};