Combined Code
movieClip 22 {
}
movieClip 23 {
}
movieClip 26 {
}
frame 1 {
}
// unknown tag 88 length 59
// unknown tag 88 length 79
movieClip 42 {
}
movieClip 49 {
}
movieClip 51 {
}
movieClip 52 {
}
movieClip 54 {
}
movieClip 56 {
}
movieClip 58 {
}
movieClip 60 {
}
movieClip 62 {
}
movieClip 64 {
}
movieClip 65 {
}
movieClip 67 {
}
movieClip 69 {
}
movieClip 71 {
}
movieClip 73 {
}
movieClip 75 {
}
movieClip 77 {
}
movieClip 79 {
}
movieClip 80 {
}
movieClip 82 {
}
movieClip 84 {
}
movieClip 85 {
}
movieClip 87 {
}
movieClip 88 {
frame 42 {
gotoAndPlay(11);
}
}
button 89 {
on (release) {
getURL('http://www.qiaohule.com/', '_blank');
}
}
movieClip 90 {
}
frame 6 {
function loading() {
var v1 = getBytesTotal();
var v2 = getBytesLoaded();
if (v2 == v1) {
gotoAndStop('_intro');
} else {
gotoAndPlay(1);
}
}
stop();
loading();
}
frame 7 {
function allreset() {
map.splice(0);
map2.splice(0);
map3.splice(0);
map4.splice(0);
map5.splice(0);
map6.splice(0);
myeat = 0;
totalgold = 0;
now = 0;
tack = 0;
_root._sc.text = 0;
_root._life.text = 9;
_root._time.text = -1;
}
function Rollin(num) {
Efc.attachSound('E' + num);
Efc.start();
}
function Rollout(num) {
Efc.stop('E' + num);
}
function entergo(nn) {
Efc.stop('E' + nn);
CK.start();
if (nn == 1) {
SETMAP();
gotoAndStop('_set');
} else {
gotoAndStop('_explain');
}
}
function SETMAP() {
map2.push([1, 1, 1, 1, 1, 1, 2, 1, 2, 2, 2, 1, 1, 1, 1]);
map2.push([0, 2, 1, 2, 2, 1, 2, 1, 2, 2, 2, 1, 2, 2, 0]);
map2.push([1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 1]);
map2.push([1, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 1, 1, 1]);
map2.push([1, 1, 1, 2, 2, 1, 2, 2, 1, 2, 2, 2, 2, 1, 2]);
map2.push([2, 2, 1, 2, 2, 1, 2, 2, 1, 1, 1, 0, 1, 1, 2]);
map2.push([1, 1, 1, 2, 2, 1, 2, 2, 1, 2, 2, 2, 2, 1, 2]);
map2.push([0, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]);
map2.push([1, 2, 1, 2, 2, 1, 2, 1, 2, 2, 2, 1, 2, 2, 0]);
map2.push([1, 1, 1, 1, 1, 1, 2, 1, 2, 2, 2, 1, 1, 1, 1]);
map3.push([1, 1, 1, 1, 1, 1, 2, 1, 2, 1, 1, 1, 1, 1, 1]);
map3.push([1, 2, 0, 2, 2, 1, 2, 1, 2, 1, 2, 1, 2, 2, 1]);
map3.push([1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 1, 1, 2, 2, 0]);
map3.push([1, 2, 1, 1, 1, 1, 2, 2, 1, 2, 2, 1, 1, 1, 1]);
map3.push([1, 2, 1, 2, 2, 1, 2, 2, 1, 1, 1, 1, 2, 2, 1]);
map3.push([1, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 0, 2, 2, 1]);
map3.push([1, 2, 1, 1, 1, 1, 2, 2, 1, 2, 2, 1, 1, 1, 1]);
map3.push([0, 1, 1, 2, 2, 1, 1, 1, 1, 1, 1, 1, 2, 2, 1]);
map3.push([1, 2, 1, 2, 2, 1, 2, 1, 2, 1, 2, 1, 2, 2, 1]);
map3.push([1, 1, 1, 1, 1, 1, 2, 1, 2, 1, 1, 1, 0, 1, 1]);
map4.push([2, 1, 1, 1, 1, 1, 2, 1, 2, 1, 1, 1, 1, 1, 1]);
map4.push([2, 0, 2, 1, 2, 1, 2, 1, 2, 0, 2, 2, 1, 2, 1]);
map4.push([2, 1, 2, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1]);
map4.push([1, 1, 1, 1, 1, 1, 2, 2, 1, 2, 1, 2, 1, 1, 1]);
map4.push([1, 2, 1, 2, 2, 1, 2, 2, 1, 1, 1, 1, 1, 2, 1]);
map4.push([1, 1, 1, 2, 2, 1, 2, 2, 1, 2, 1, 0, 1, 2, 1]);
map4.push([1, 2, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 0, 2, 1]);
map4.push([1, 1, 0, 1, 2, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1]);
map4.push([2, 1, 2, 1, 1, 1, 2, 1, 2, 1, 2, 1, 2, 2, 1]);
map4.push([2, 1, 1, 1, 2, 2, 2, 1, 2, 1, 1, 1, 1, 1, 1]);
map5.push([1, 1, 1, 1, 1, 1, 2, 1, 2, 1, 1, 1, 1, 1, 1]);
map5.push([1, 2, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 2, 0]);
map5.push([1, 2, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]);
map5.push([1, 1, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1]);
map5.push([1, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1]);
map5.push([0, 2, 1, 1, 1, 1, 2, 2, 1, 1, 1, 0, 1, 1, 1]);
map5.push([1, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1]);
map5.push([1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1]);
map5.push([1, 2, 2, 1, 1, 1, 2, 1, 2, 2, 1, 2, 2, 0, 2]);
map5.push([1, 1, 1, 1, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 2]);
map6.push([1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]);
map6.push([1, 2, 2, 2, 1, 2, 1, 2, 1, 2, 2, 0, 2, 2, 1]);
map6.push([1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1]);
map6.push([1, 2, 2, 1, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1]);
map6.push([1, 2, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 2, 1]);
map6.push([1, 2, 0, 2, 2, 1, 2, 2, 1, 2, 2, 2, 0, 1, 1]);
map6.push([1, 2, 1, 2, 1, 1, 2, 2, 1, 2, 2, 2, 1, 2, 1]);
map6.push([1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]);
map6.push([1, 2, 2, 1, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 0]);
map6.push([1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]);
map.push(map2);
map.push(map3);
map.push(map4);
map.push(map5);
map.push(map6);
}
var map = new Array();
var map2 = new Array();
var map3 = new Array();
var map4 = new Array();
var map5 = new Array();
var map6 = new Array();
var enemy = new Array(3, 3, 3, 3, 3);
var atten = new Array(1, 1, 1, 1, 1);
var addsc = 20;
var spsc = 100;
var Treasure = 4;
var gameframe = 26;
var n = 0;
var now = 0;
var Dep = 1000;
var myDep;
var myeat = 0;
var totalgold = 0;
var tack = 0;
var Efc = new Sound();
var itouch = new Sound();
itouch.attachSound('err');
var eatG = new Sound();
eatG.attachSound('eatG');
var tip = new Sound();
tip.attachSound('tip');
var CK = new Sound();
CK.attachSound('ck');
var actefc = new Sound();
var spact = new Sound();
var end = new Sound();
end.onSoundComplete = function () {
_root._btn3._visible = true;
_root._btn4._visible = true;
};
i = 1;
while (i < 3) {
_root['_btn' + i].gotoAndStop(1);
_root['_btn' + i].onRollOver = function () {
this.gotoAndStop(2);
Rollin(this._name.substr(4));
};
_root['_btn' + i].onRollOut = function () {
this.gotoAndStop(1);
Rollout(this._name.substr(4));
};
_root['_btn' + i].onRelease = function () {
this.gotoAndStop(3);
entergo(this._name.substr(4));
};
++i;
}
}
movieClip 94 {
}
movieClip 97 {
}
movieClip 110 {
}
movieClip 119 {
}
movieClip 121 {
}
movieClip 123 {
}
movieClip 126 {
}
movieClip 129 {
}
movieClip 135 {
}
movieClip 137 {
}
movieClip 138 {
}
movieClip 140 {
}
movieClip 141 {
}
movieClip 146 {
}
frame 13 {
stop();
_root.epp.onEnterFrame = function () {
if (this._currentframe == this._totalframes) {
SETMAP();
_root.gotoAndStop('_set');
}
};
}
movieClip 148 {
}
movieClip 156 {
}
movieClip 163 {
}
movieClip 164 {
}
movieClip 176 {
}
movieClip 181 {
}
movieClip 182 {
}
movieClip 187 {
}
movieClip 190 {
}
movieClip 191 {
}
movieClip 194 {
}
movieClip 201 {
}
movieClip 211 {
}
movieClip 216 {
}
movieClip 228 {
}
movieClip 230 {
}
movieClip 237 {
}
movieClip 238 {
frame 278 {
stop();
}
}
button 239 {
on (release) {
getURL('http://www.qiaohule.com/', '_blank');
}
}
frame 21 {
if (now >= 3) {
stopAllSounds();
_root.gotoAndStop('_win');
} else {
stopAllSounds();
_root._life.text = 9;
_root.gotoAndStop('_game');
}
}
frame 26 {
function stip() {
if (_root._act.tim > 0) {
--_root._act.tim;
if (_root._act._xscale == 110) {
_root._act.ad *= -1;
} else {
if (_root._act._xscale == 100) {
_root._act.ad = 2;
}
}
_root._act._yscale += _root._act.ad;
_root._act._xscale = _root._act._yscale;
} else {
_root._act.onEnterFrame = null;
Spdisplay('_act');
}
}
function Spdisplay(STR) {
_root[STR].onEnterFrame = function () {
if (this._alpha > 0) {
this._yscale += 10;
this._xscale = this._yscale;
this._alpha -= 10;
} else {
this.swapDepths(this.real);
this._visible = false;
this._alpha = 100;
this.onEnterFrame = null;
_root._st.real = _root._st.getDepth();
_root._st.sec = 3;
_root._st.swapDepths(Dep);
timedown();
timekeep = setInterval(dis, 1000);
}
};
}
function timedown() {
var v3 = new Sound();
if (_root._st.sec <= 0) {
v3.attachSound('go');
} else {
v3.attachSound('do');
}
v3.start();
this._st._alpha = 100;
_root._st._yscale = 100;
_root._st._xscale = 100;
_root._st.gotoAndStop(4 - _root._st.sec);
_root._st.onEnterFrame = function () {
if (this._alpha > 0) {
this._yscale += 10;
this._xscale = this._yscale;
this._alpha -= 10;
} else {
this.onEnterFrame = null;
if (this.sec <= 0) {
this.swapDepths(this.real);
_root._MMC.gotoAndStop(1);
GameSet();
}
}
};
}
function dis() {
if (_root._st.sec > 0) {
--_root._st.sec;
timedown();
} else {
clearInterval(timekeep);
}
}
function StopAll() {
_root._bg.gotoAndStop(now + 1);
Gel = setInterval(Freeze, 1000);
i = 1;
while (i <= Treasure) {
_root['star' + i].gotoAndStop(1);
_root['star' + i]._visible = true;
++i;
}
gotoAndStop(gameframe + now);
_root._stage._num.gotoAndStop(now + 1);
_root._mylife.n1.gotoAndStop(1);
_root._mylife.n2.gotoAndStop(int(_root._life.text) + 1);
i = 1;
while (i < 7) {
_root._thissc._sc['n' + i].onEnterFrame = function () {
var v3 = String(int(_root._sc.text));
var v4 = this._name.substr(1);
if (int(v3) < 10) {
v3 = '00000' + v3;
} else {
if (int(v3) < 100) {
v3 = '0000' + v3;
} else {
if (int(v3) < 1000) {
v3 = '000' + v3;
} else {
if (int(v3) < 10000) {
v3 = '00' + v3;
} else {
if (int(v3) < 100000) {
v3 = '0' + v3;
}
}
}
}
}
if (v3.substr(v4 - 1, 1) == '0') {
this.gotoAndStop(1);
} else {
this.play();
}
if (this._currentframe == int(v3.substr(v4 - 1, 1)) + 1) {
this.stop();
}
};
++i;
}
n = 1;
i = 0;
while (i < map[now].length) {
j = 0;
while (j < map[now][i].length) {
if (map[now][i][j] == 1) {
duplicateMovieClip(_root.gold, 'gg' + n, n);
_root['gg' + n].gotoAndStop(1);
_root['gg' + n]._act.gotoAndPlay(Number(random(4)) * 3 + 2);
_root['gg' + n]._x = j * 50 + 40;
_root['gg' + n]._y = i * 50 + 80.8;
_root['gg' + n].onEnterFrame = function () {
if (this._currentframe == 2) {
if (this._act._currentframe == this._act._totalframes) {
this._act.stop();
removeMovieClip(this);
}
}
};
++n;
++totalgold;
}
++j;
}
++i;
}
_root._tg.gotoAndStop(2);
_root._tg._act.gotoAndStop(1);
_root._tg.t1._alpha = 0;
_root._tg.t2._alpha = 0;
_root._tg.t3._alpha = 0;
_root._tg.t4._alpha = 0;
_root._tg.tb._alpha = 0;
i = 1;
while (i <= enemy[now]) {
_root['_En' + i].gotoAndStop(2);
_root['_En' + i]._act.gotoAndStop(1);
++i;
}
}
function ClearSet() {
clearInterval(Gel);
trace(_root._stage.myd);
trace(_root._thissc.myd);
trace(_root._mylife.myd);
_root._stage.swapDepths(_root._stage.myd);
_root._thissc.swapDepths(_root._thissc.myd);
_root._mylife.swapDepths(_root._mylife.myd);
_root._thissc._sc.onEnterFrame = null;
_root._tg.swapDepths(myDep);
_root._tg.onEnterFrame = null;
i = 1;
while (i <= enemy[now]) {
_root['_En' + i].swapDepths(_root['_En' + i].myDep);
_root['_En' + i].onEnterFrame = null;
_root['_En' + i].gotoAndStop(1);
_root['_En' + i]._act.gotoAndStop(1);
++i;
}
_root._time.text = -1;
myeat = 0;
totalgold = 0;
}
function GameSet() {
function imatt() {
var v3 = 0;
var v2 = 0;
i = 1;
while (i <= enemy[now]) {
if (_root['_En' + i].ich == 1) {
trace(i);
++v3;
if (v3 > atten[now]) {
v2 = i;
i = enemy[now];
}
}
++i;
}
if (v2 != 0) {
i = v2;
while (i <= enemy[now]) {
_root['_En' + i].ich = 0;
++i;
}
}
}
trace(_root._stage.myd);
trace(_root._thissc.myd);
trace(_root._mylife.myd);
_root._stage.swapDepths(Dep + 1);
_root._thissc.swapDepths(Dep + 2);
_root._mylife.swapDepths(Dep + 3);
myDep = _root._tg.getDepth();
_root._tg.gotoAndStop(1);
_root._tg._act.gotoAndStop(1);
_root._tg.swapDepths(Dep);
_root._tg.loc = 4;
_root._tg.speed = 10;
_root._tg._xscale = 120;
_root._tg.onEnterFrame = function () {
if (this._alpha < 100) {
this._alpha += 1;
if (this._alpha >= 80) {
this._alpha = 100;
}
}
if (this._currentframe == 1) {
if (Key.isDown(38)) {
if (_root._bg._touch.hitTest(this.t1._x + this._x, this.t1._y + this._y, true)) {
this._act.gotoAndStop(3);
this.loc = 1;
}
} else {
if (Key.isDown(40)) {
if (_root._bg._touch.hitTest(this.t2._x + this._x, this.t2._y + this._y, true)) {
this._act.gotoAndStop(2);
this.loc = 2;
}
} else {
if (Key.isDown(37)) {
if (_root._bg._touch.hitTest(this.t3._x + this._x, this.t3._y + this._y, true)) {
this._act.gotoAndStop(1);
this._xscale = -120;
this.loc = 3;
}
} else {
if (Key.isDown(39)) {
if (_root._bg._touch.hitTest(this.t4._x + this._x, this.t4._y + this._y, true)) {
this._act.gotoAndStop(1);
this._xscale = 120;
this.loc = 4;
}
}
}
}
}
if (this.loc == 1 & _root._bg._touch.hitTest(this.t1._x + this._x, this.t1._y + this._y, true)) {
this._y -= this.speed;
} else {
if (this.loc == 2 & _root._bg._touch.hitTest(this.t2._x + this._x, this.t2._y + this._y, true)) {
this._y += this.speed;
} else {
if (this.loc == 3 & _root._bg._touch.hitTest(this.t3._x + this._x, this.t3._y + this._y, true)) {
this._x -= this.speed;
} else {
if (this.loc == 4 & _root._bg._touch.hitTest(this.t4._x + this._x, this.t4._y + this._y, true)) {
this._x += this.speed;
}
}
}
}
} else {
if (this._currentframe == 3) {
if (this._act._currentframe == this._act._totalframes) {
_root['_En' + (Number(random(3)) + 1)].ich = 1;
imatt();
this._act.stop();
this._alpha = 50;
_root._add._y = -100;
this.gotoAndStop(1);
if (this.loc == 1) {
this._act.gotoAndStop(3);
} else {
if (this.loc == 2) {
this._act.gotoAndStop(2);
} else {
if (this.loc == 3) {
this._act.gotoAndStop(1);
} else {
if (this.loc == 4) {
this._act.gotoAndStop(1);
}
}
}
}
}
}
}
TouchSomething();
};
i = 1;
while (i <= enemy[now]) {
_root['_En' + i].gotoAndStop(5);
_root['_En' + i].loc = 2;
_root['_En' + i].long = 0;
_root['_En' + i].sp = 5;
_root['_En' + i].live = 1;
_root['_En' + i].myDep = _root['_En' + i].getDepth();
_root['_En' + i].swapDepths(Dep - i);
_root['_En' + i].ich = Number(random(2));
_root['_En' + i].onEnterFrame = function () {
if (this._currentframe == 1 || this._currentframe == 2) {
if (this.loc == 1) {
this._act.gotoAndStop(3);
} else {
if (this.loc == 2) {
this._act.gotoAndStop(1);
} else {
if (this.loc == 3) {
this._xscale = -100;
this._act.gotoAndStop(2);
} else {
if (this.loc == 4) {
this._xscale = 100;
this._act.gotoAndStop(2);
}
}
}
}
} else {
if (this._currentframe == 5) {
if (this._act._currentframe == this._act._totalframes) {
this._act.stop();
if (_root._bg._touch.hitTest(this._x, this._y, true)) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
} else {
if (this._currentframe == 4) {
if (this.live == 0) {
this._alpha -= 5;
}
if (this._act._currentframe == this._act._totalframes) {
this._act.stop();
if (this.live == 1) {
this._x = 350;
this._y = 196;
this.gotoAndStop(5);
} else {
if (this.live == 0) {
this._alpha = 100;
this.live = 1;
this._x = 379;
this._y = 305;
this.gotoAndStop(5);
}
}
}
}
}
}
if (_root._bg._touch.hitTest(this._x, this._y, true)) {
if (this._currentframe == 1 & this.long < 40) {
if (this.loc == 1 & _root._bg._touch.hitTest(this._x, this._y - 20, true)) {
this._y -= this.sp;
if (this.ich == 0) {
++this.long;
} else {
this.long += 4;
}
} else {
if (this.loc == 2 & _root._bg._touch.hitTest(this._x, this._y + 20, true)) {
this._y += this.sp;
if (this.ich == 0) {
++this.long;
} else {
this.long += 4;
}
} else {
if (this.loc == 3 & _root._bg._touch.hitTest(this._x - 20, this._y, true)) {
this._x -= this.sp;
if (this.ich == 0) {
++this.long;
} else {
this.long += 4;
}
} else {
if (this.loc == 4 & _root._bg._touch.hitTest(this._x + 20, this._y, true)) {
this._x += this.sp;
if (this.ich == 0) {
++this.long;
} else {
this.long += 4;
}
} else {
if (this.ich == 0) {
this.loc = Number(random(4)) + 1;
} else {
Chase(this._name.substr(3));
}
}
}
}
}
} else {
this.long = 0;
if (this.ich == 0) {
this.loc = Number(random(4)) + 1;
} else {
Chase(this._name.substr(3));
}
}
} else {
if (Number(random(10)) == 0) {
this.gotoAndStop(4);
}
}
};
++i;
}
imatt();
}
function TouchSomething() {
var v3 = 0;
var v4 = [2, 1];
var v5 = [-50, 100];
i = 1;
while (i < 3) {
v3 = i - 1;
if (_root._bg['_cg' + i].hitTest(_root._tg['t' + i])) {
_root._tg._x = _root._bg._x + _root._bg['_cg' + v4[v3]]._x;
_root._tg._y = _root._bg._y + _root._bg['_cg' + v4[v3]]._y + v5[v3];
i = 3;
}
++i;
}
i = 1;
while (i <= n) {
if (_root['gg' + i].hitTest(_root._tg.tb) & _root['gg' + i]._currentframe == 1) {
eatG.start();
_root['gg' + i].gotoAndStop(2);
_root._sc.text = int(_root._sc.text) + addsc;
++myeat;
}
++i;
}
i = 1;
while (i < 5) {
if (_root['star' + i].hitTest(_root._tg.tb) && _root['star' + i]._currentframe == 1) {
eatG.start();
_root['star' + i].gotoAndStop(2);
_root._time.text = int(_root._time.text) + 6;
_root['star' + i].onEnterFrame = function () {
if (this._act._currentframe == this._act._totalframes) {
this._act.stop();
this._visible = false;
this.onEnterFrame = null;
}
};
}
++i;
}
i = 1;
while (i <= enemy[now]) {
if (_root['_En' + i]._tou.hitTest(_root._tg.tb)) {
if (_root._tg._currentframe < 3) {
if ((_root['_En' + i]._currentframe == 1 || _root['_En' + i]._currentframe == 2) & _root._tg._alpha == 100) {
itouch.start();
_root['_En' + i].ich = 0;
_root._life.text = int(_root._life.text) - 1;
_root._add._x = _root._tg._x;
_root._add._y = _root._tg._y - 80;
_root._mylife.n2.gotoAndStop(int(_root._life.text) + 1);
_root._tg.gotoAndStop(3);
} else {
if (_root['_En' + i]._currentframe == 3) {
eatG.start();
_root['_En' + i].live = 0;
_root['_En' + i].gotoAndStop(4);
_root._sc.text = int(_root._sc.text) + spsc;
}
}
}
}
++i;
}
GoodGame();
}
function GoodGame() {
if (int(_root._life.text) <= 0) {
_root._tg._alpha = 100;
_root._tg.gotoAndStop(5);
actefc.attachSound('iloser');
ClearSet();
stopAllSounds();
tack = 1;
actefc.start();
} else {
if (myeat >= totalgold) {
_root._tg._alpha = 100;
_root._tg.gotoAndStop(4);
actefc.attachSound('iwinner');
ClearSet();
tack = 2;
actefc.start();
}
}
}
function Chase(num) {
var v3 = _root['_En' + num]._x - _root._tg._x;
var v4 = _root['_En' + num]._y - _root._tg._y;
var v5 = v3;
var v6 = v4;
if (v3 < 0) {
v3 *= -1;
}
if (v4 < 0) {
v4 *= -1;
}
if (v3 >= v4) {
if (v5 < 0 & _root._bg._touch.hitTest(_root['_En' + num]._x + 20, _root['_En' + num]._y, true)) {
_root['_En' + num].loc = 4;
} else {
if (v5 >= 0 & _root._bg._touch.hitTest(_root['_En' + num]._x - 20, _root['_En' + num]._y, true)) {
_root['_En' + num].loc = 3;
} else {
if (v6 < 0 & _root._bg._touch.hitTest(_root['_En' + num]._x, _root['_En' + num]._y + 20, true)) {
_root['_En' + num].loc = 2;
} else {
if (v6 >= 0 & _root._bg._touch.hitTest(_root['_En' + num]._x, _root['_En' + num]._y - 20, true)) {
_root['_En' + num].loc = 1;
} else {
root['_En' + num].loc = Number(random(4)) + 1;
}
}
}
}
} else {
if (v6 < 0 & _root._bg._touch.hitTest(_root['_En' + num]._x, _root['_En' + num]._y + 20, true)) {
_root['_En' + num].loc = 2;
} else {
if (v6 >= 0 & _root._bg._touch.hitTest(_root['_En' + num]._x, _root['_En' + num]._y - 20, true)) {
_root['_En' + num].loc = 1;
} else {
if (v5 < 0 & _root._bg._touch.hitTest(_root['_En' + num]._x + 20, _root['_En' + num]._y, true)) {
_root['_En' + num].loc = 4;
} else {
if (v5 >= 0 & _root._bg._touch.hitTest(_root['_En' + num]._x - 20, _root['_En' + num]._y, true)) {
_root['_En' + num].loc = 3;
} else {
root['_En' + num].loc = Number(random(4)) + 1;
}
}
}
}
}
}
function Freeze() {
if (int(_root._time.text) > 0) {
_root._time.text = int(_root._time.text) - 1;
i = 1;
while (i <= enemy[now]) {
if (_root['_En' + i]._currentframe < 3) {
_root['_En' + i].gotoAndStop(3);
}
++i;
}
} else {
if (int(_root._time.text) == 0) {
_root._time.text = -1;
i = 1;
while (i <= enemy[now]) {
if (_root['_En' + i]._currentframe == 3) {
_root['_En' + i].gotoAndStop(1);
}
++i;
}
}
}
}
_root._stage.myd = _root._stage.getDepth();
_root._thissc.myd = _root._thissc.getDepth();
_root._mylife.myd = _root._mylife.getDepth();
_root._MMC.gotoAndStop(2);
StopAll();
spact.attachSound('no' + (now + 1));
spact.start();
tip.start();
_root._act._stg.gotoAndStop(now + 1);
_root._act._visible = true;
_root._act.ad = 2;
_root._act.tim = 60;
_root._act.real = _root._act.getDepth();
_root._act.swapDepths(Dep);
_root._act.onEnterFrame = function () {
stip();
};
_root._st.gotoAndStop(1);
actefc.onSoundComplete = function () {
i = 1;
while (i <= n) {
removeMovieClip(_root['gg' + i]);
++i;
}
if (tack == 1) {
gotoAndStop('_lose');
} else {
if (tack == 2) {
++now;
gotoAndStop('_set');
}
}
};
}
movieClip 242 {
frame 1 {
stop();
}
}
movieClip 244 {
frame 1 {
stop();
}
}
movieClip 246 {
frame 1 {
stop();
}
}
movieClip 249 {
}
movieClip 253 {
}
movieClip 257 {
}
movieClip 261 {
}
movieClip 262 {
}
movieClip 264 {
}
movieClip 269 {
}
movieClip 270 {
}
movieClip 272 {
}
movieClip 277 {
}
movieClip 282 {
}
movieClip 287 {
}
movieClip 288 {
}
movieClip 291 {
}
movieClip 294 {
}
movieClip 297 {
}
movieClip 298 {
}
movieClip 305 {
}
movieClip 318 {
}
movieClip 332 {
}
movieClip 333 {
}
movieClip 334 {
}
movieClip 339 {
}
movieClip 344 {
}
movieClip 345 {
}
movieClip 346 {
}
movieClip 349 {
}
movieClip 352 {
}
movieClip 353 {
}
movieClip 366 {
}
movieClip 379 {
}
movieClip 380 {
}
movieClip 385 {
}
movieClip 390 {
}
movieClip 395 {
}
movieClip 396 {
}
movieClip 399 {
}
movieClip 402 {
}
movieClip 405 {
}
movieClip 406 {
}
movieClip 413 {
}
movieClip 426 {
}
movieClip 439 {
}
movieClip 440 {
}
movieClip 442 {
}
movieClip 444 {
}
movieClip 446 {
}
movieClip 448 {
}
movieClip 450 {
}
movieClip 451 {
}
movieClip 456 {
}
movieClip 461 {
}
movieClip 462 {
}
movieClip 465 {
}
movieClip 472 {
}
movieClip 481 {
}
movieClip 485 {
}
movieClip 486 {
}
movieClip 490 {
}
movieClip 491 {
}
movieClip 492 {
}
movieClip 497 {
}
movieClip 499 {
}
movieClip 503 {
}
frame 31 {
_root._btn3.gotoAndStop(1);
_root._btn4.gotoAndStop(1);
end.attachSound('en1');
end.start();
_root._btn3.onRollOver = function () {
this.gotoAndStop(2);
Rollin(this._name.substr(4));
};
_root._btn3.onRollOut = function () {
this.gotoAndStop(1);
Rollout(this._name.substr(4));
};
_root._btn3.onRelease = function () {
fscommand('quit');
getURL('javascript:window.close();', '');
};
_root._btn4.onRollOver = function () {
this.gotoAndStop(2);
Rollin(this._name.substr(4));
};
_root._btn4.onRollOut = function () {
this.gotoAndStop(1);
Rollout(this._name.substr(4));
};
_root._btn3.onRelease = function () {
allreset();
SETMAP();
Efc.stop('E' + this._name.substr(4));
stopAllSounds();
gotoAndStop('_game');
};
}
movieClip 507 {
}
movieClip 512 {
}
movieClip 515 {
}
movieClip 516 {
}
frame 37 {
_root._btn3.gotoAndStop(1);
_root._btn4.gotoAndStop(1);
end.attachSound('en2');
end.start();
_root._btn3.onRollOver = function () {
this.gotoAndStop(2);
Rollin(this._name.substr(4));
};
_root._btn3.onRollOut = function () {
this.gotoAndStop(1);
Rollout(this._name.substr(4));
};
_root._btn3.onRelease = function () {
fscommand('quit');
getURL('javascript:window.close();', '');
};
_root._btn4.onRollOver = function () {
this.gotoAndStop(2);
Rollin(this._name.substr(4));
};
_root._btn4.onRollOut = function () {
this.gotoAndStop(1);
Rollout(this._name.substr(4));
};
_root._btn3.onRelease = function () {
allreset();
SETMAP();
Efc.stop('E' + this._name.substr(4));
stopAllSounds();
gotoAndStop('_game');
};
}
movieClip 536 {
}