Frame 1
function sendScore() {
sendOb.gCode = 2;
sendob.score = score;
scoreURL = "/servlet/trid.game.GameResultServlet";
sendOb.onData = function () {
this.removeMovieClip();
};
}
function urlChk() {
var i = 0;
while (i < (_url.length - 10)) {
if (_url.substr(i, 12) == "puppyred.com") {
return(1);
}
i++;
}
return(1);
}
fscommand ("trapallkeys");
levelup = 0;
if (!originallevel) {
originallevel = userlevel.split("")[0];
userlevel = userlevel.split("")[1];
}
userlevel = 1;
stopAllSounds();
if (urlChk()) {
} else {
stop();
fscommand ("quit");
getURL ("javascript:window.close();");
}
System.useCodepage = true;
stop();
Frame 2
stop();
fscommand ("allowscale", false);
Frame 3
play();
Frame 4
if (urlChk()) {
} else {
_root.gotoAndStop("loading");
fscommand ("quit");
getURL ("javascript:window.close();");
}
stop();
score = 0;
_root.enermyNum = 1;
bgs = new Sound();
Frame 5
if (urlChk()) {
} else {
_root.gotoAndStop("loading");
fscommand ("quit");
getURL ("javascript:window.close();");
}
_root.createEmptyMovieClip("itemOb", 10);
itemOb.uitem5 = uitem5;
itemOb.gCode = gCode;
itemOb.userkey = userkey;
ii = 1;
while (ii <= 5) {
if (_root["item" + ii] == 1) {
isItem = 1;
}
ii++;
}
itemOb.loadVariables(itemURL, "POST");
itemOb.onData = function () {
if (this.userTemp) {
if (_root.isItem) {
if (item1 && (item2)) {
scItem = "\"\uCC60\uC838 \uD29C\uB2DD, \uC735\uB2E8\uD3ED\uACA9\"";
} else if (item1) {
scItem = "\"\uCC60\uC838 \uD29C\uB2DD\"";
} else if (item2) {
scItem = "\"\uC735\uB2E8\uD3ED\uACA9\"";
}
getURL (("javascript:item_use_chk_ok(" + scItem) + ");");
_root.isItem = 0;
_root.gotoAndStop("itemView");
} else {
getURL ("javascript:item_use_chk_ok(0);");
start = getTimer() / 1000;
scoretime = getTimer() / 1000;
_root.gotoAndStop("start");
}
} else {
getURL ("javascript:not_logon();");
_root.gotoAndStop("loading");
}
};
Instance of Symbol 159 MovieClip "itemM1" in Frame 5
onClipEvent (load) {
this._visible = 0;
}
Instance of Symbol 159 MovieClip "itemM2" in Frame 5
onClipEvent (load) {
this._visible = 0;
}
Instance of Symbol 159 MovieClip "itemM3" in Frame 5
onClipEvent (load) {
this._visible = 0;
}
Frame 6
if (urlChk()) {
} else {
_root.gotoAndStop("loading");
fscommand ("quit");
getURL ("javascript:window.close();");
}
if (itemOb.userTemp) {
} else {
getURL ("javascript:not_logon();");
_root.gotoAndStop("loading");
}
jj = 0;
ii = 1;
while (ii <= 5) {
if (_root["item" + ii] == 1) {
jj++;
_root["itemM" + jj].gotoAndStop(ii + 1);
_root["itemM" + jj].timing = jj * 5;
_root["itemM" + jj].onEnterFrame = function () {
this.i++;
if (this.i == this.timing) {
this._visible = 1;
}
};
}
ii++;
}
this.onEnterFrame = function () {
this.kk++;
if (this.kk == 30) {
delete this.kk;
this.onEnterFrame = null;
start = getTimer() / 1000;
scoretime = getTimer() / 1000;
this.gotoAndStop("start");
}
};
Frame 7
if (urlChk()) {
} else {
_root.gotoAndStop("loading");
fscommand ("quit");
getURL ("javascript:window.close();");
}
if (itemOb.userTemp) {
} else {
getURL ("javascript:not_logon();");
_root.gotoAndStop("loading");
}
Frame 8
if (urlChk()) {
} else {
_root.gotoAndStop("loading");
fscommand ("quit");
getURL ("javascript:window.close();");
}
if (itemOb.userTemp) {
} else {
getURL ("javascript:not_logon();");
_root.gotoAndStop("loading");
}
Frame 9
if (urlChk()) {
} else {
_root.gotoAndStop("loading");
fscommand ("quit");
getURL ("javascript:window.close();");
}
if (itemOb.userTemp) {
} else {
getURL ("javascript:not_logon();");
_root.gotoAndStop("loading");
}
function stgView() {
s2 = Math.floor((stg % 100) / 10);
s1 = Math.floor((stg % 10) / 1);
if (s2 > 0) {
stgM.gotoAndStop(2);
} else {
stgM.gotoAndStop(1);
}
stgM.number2.gotoAndStop(s2 + 1);
stgM.number1.gotoAndStop(s1 + 1);
}
stop();
stgView();
bgs = new Sound();
bgs.attachSound("bgs");
bgs.start(0, 999);
_root.shootNum = 0;
Instance of Symbol 350 MovieClip "gameoverMovie" in Frame 9
onClipEvent (load) {
}
Instance of Symbol 368 MovieClip in Frame 9
onClipEvent (load) {
n1.stop();
n2.stop();
}
onClipEvent (enterFrame) {
dot10 = Math.floor(_parent.anglepin / 10);
dot1 = _parent.anglepin % 10;
n1.gotoAndStop(dot1 + 1);
n2.gotoAndStop(dot10 + 1);
}
Instance of Symbol 384 MovieClip "totalMovie" in Frame 9
onClipEvent (load) {
function scoreView() {
var s10 = Math.floor(_root.score / 1000000000);
var s9 = Math.floor((_root.score % 1000000000) / 100000000);
var s8 = Math.floor((_root.score % 100000000) / 10000000);
var s7 = Math.floor((_root.score % 10000000) / 1000000);
var s6 = Math.floor((_root.score % 1000000) / 100000);
var s5 = Math.floor((_root.score % 100000) / 10000);
var s4 = Math.floor((_root.score % 10000) / 1000);
var s3 = Math.floor((_root.score % 1000) / 100);
var s2 = Math.floor((_root.score % 100) / 10);
var s1 = Math.floor(_root.score % 10);
i = 1;
while (i <= 10) {
this["n" + i].gotoAndStop(eval ("s" + i) + 1);
i++;
}
}
i = 1;
while (i <= 10) {
this["n" + i].stop();
i++;
}
}
onClipEvent (enterFrame) {
scoreView();
}
Instance of Symbol 388 MovieClip in Frame 9
onClipEvent (load) {
this.setMask(_parent.energy);
}
Instance of Symbol 412 MovieClip "stgM" in Frame 9
onClipEvent (load) {
stop();
}
Instance of Symbol 417 MovieClip in Frame 9
onClipEvent (load) {
_root.sndvolume = new Sound();
if (_root.sndvolume.getVolume() > 0) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
Frame 10
if (urlChk()) {
} else {
_root.gotoAndStop("loading");
fscommand ("quit");
getURL ("javascript:window.close();");
}
if (itemOb.userTemp) {
} else {
getURL ("javascript:not_logon();");
_root.gotoAndStop("loading");
}
Frame 11
if (urlChk()) {
} else {
_root.gotoAndStop("loading");
fscommand ("quit");
getURL ("javascript:window.close();");
}
if (itemOb.userTemp) {
} else {
getURL ("javascript:not_logon();");
_root.gotoAndStop("loading");
}
Frame 12
if (urlChk()) {
} else {
_root.gotoAndStop("loading");
fscommand ("quit");
getURL ("javascript:window.close();");
}
if (itemOb.userTemp) {
} else {
getURL ("javascript:not_logon();");
_root.gotoAndStop("loading");
}
Frame 13
if (urlChk()) {
} else {
_root.gotoAndStop("loading");
fscommand ("quit");
getURL ("javascript:window.close();");
}
if (itemOb.userTemp) {
} else {
getURL ("javascript:not_logon();");
_root.gotoAndStop("loading");
}
Frame 14
if (urlChk()) {
} else {
_root.gotoAndStop("loading");
fscommand ("quit");
getURL ("javascript:window.close();");
}
if (itemOb.userTemp) {
} else {
getURL ("javascript:not_logon();");
_root.gotoAndStop("loading");
}
stop();
_root.enermyNum++;
if (_root.enermyNum > 8) {
_root.enermyNum = 5;
}
win1._visible = 0;
win2._visible = 0;
randNum = random(2) + 1;
eval ("win" + randNum)._visible = 1;
wintime = Math.floor(getTimer() / 1000);
win3.onEnterFrame = function () {
windelay = Math.floor(getTimer() / 1000) - wintime;
if (windelay > 1) {
totalMovie.scoreView();
gotoAndStop (9);
}
};
stopAllSounds();
stg++;
Instance of Symbol 197 MovieClip in Frame 14
onClipEvent (enterFrame) {
if (_global.dead) {
this.stop();
}
}
Instance of Symbol 201 MovieClip in Frame 14
onClipEvent (enterFrame) {
if (_global.dead) {
this.stop();
}
}
Instance of Symbol 368 MovieClip in Frame 14
onClipEvent (load) {
n1.stop();
n2.stop();
}
onClipEvent (enterFrame) {
dot10 = Math.floor(_parent.anglepin / 10);
dot1 = _parent.anglepin % 10;
n1.gotoAndStop(dot1 + 1);
n2.gotoAndStop(dot10 + 1);
}
Instance of Symbol 384 MovieClip "totalMovie" in Frame 14
onClipEvent (load) {
function scoreView() {
var s10 = Math.floor(_root.score / 1000000000);
var s9 = Math.floor((_root.score % 1000000000) / 100000000);
var s8 = Math.floor((_root.score % 100000000) / 10000000);
var s7 = Math.floor((_root.score % 10000000) / 1000000);
var s6 = Math.floor((_root.score % 1000000) / 100000);
var s5 = Math.floor((_root.score % 100000) / 10000);
var s4 = Math.floor((_root.score % 10000) / 1000);
var s3 = Math.floor((_root.score % 1000) / 100);
var s2 = Math.floor((_root.score % 100) / 10);
var s1 = Math.floor(_root.score % 10);
i = 1;
while (i <= 10) {
this["n" + i].gotoAndStop(eval ("s" + i) + 1);
i++;
}
}
i = 1;
while (i <= 10) {
this["n" + i].stop();
i++;
}
scoreView();
}
onClipEvent (enterFrame) {
}
Frame 15
if (urlChk()) {
} else {
_root.gotoAndStop("loading");
fscommand ("quit");
getURL ("javascript:window.close();");
}
if (itemOb.userTemp) {
} else {
getURL ("javascript:not_logon();");
_root.gotoAndStop("loading");
}
Frame 16
if (urlChk()) {
} else {
_root.gotoAndStop("loading");
fscommand ("quit");
getURL ("javascript:window.close();");
}
if (itemOb.userTemp) {
} else {
getURL ("javascript:not_logon();");
_root.gotoAndStop("loading");
}
Frame 17
if (urlChk()) {
} else {
_root.gotoAndStop("loading");
fscommand ("quit");
getURL ("javascript:window.close();");
}
if (itemOb.userTemp) {
} else {
getURL ("javascript:not_logon();");
_root.gotoAndStop("loading");
}
Frame 18
if (urlChk()) {
} else {
_root.gotoAndStop("loading");
fscommand ("quit");
getURL ("javascript:window.close();");
}
if (itemOb.userTemp) {
} else {
getURL ("javascript:not_logon();");
_root.gotoAndStop("loading");
}
Frame 19
if (urlChk()) {
} else {
_root.gotoAndStop("loading");
fscommand ("quit");
getURL ("javascript:window.close();");
}
if (itemOb.userTemp) {
} else {
getURL ("javascript:not_logon();");
_root.gotoAndStop("loading");
}
stop();
stopAllSounds();
Instance of Symbol 201 MovieClip in Frame 19
onClipEvent (enterFrame) {
if (_global.dead) {
this.stop();
}
}
Frame 20
if (urlChk()) {
} else {
_root.gotoAndStop("loading");
fscommand ("quit");
getURL ("javascript:window.close();");
}
if (itemOb.userTemp) {
} else {
getURL ("javascript:not_logon();");
_root.gotoAndStop("loading");
}
Frame 21
if (urlChk()) {
} else {
_root.gotoAndStop("loading");
fscommand ("quit");
getURL ("javascript:window.close();");
}
if (itemOb.userTemp) {
} else {
getURL ("javascript:not_logon();");
_root.gotoAndStop("loading");
}
Frame 22
if (urlChk()) {
} else {
_root.gotoAndStop("loading");
fscommand ("quit");
getURL ("javascript:window.close();");
}
if (itemOb.userTemp) {
} else {
getURL ("javascript:not_logon();");
_root.gotoAndStop("loading");
}
Frame 23
if (urlChk()) {
} else {
_root.gotoAndStop("loading");
fscommand ("quit");
getURL ("javascript:window.close();");
}
if (itemOb.userTemp) {
} else {
getURL ("javascript:not_logon();");
_root.gotoAndStop("loading");
}
Frame 24
if (urlChk()) {
} else {
_root.gotoAndStop("loading");
fscommand ("quit");
getURL ("javascript:window.close();");
}
Frame 25
if (urlChk()) {
} else {
_root.gotoAndStop("loading");
fscommand ("quit");
getURL ("javascript:window.close();");
}
Frame 26
if (urlChk()) {
} else {
_root.gotoAndStop("loading");
fscommand ("quit");
getURL ("javascript:window.close();");
}
Frame 27
if (urlChk()) {
} else {
_root.gotoAndStop("loading");
fscommand ("quit");
getURL ("javascript:window.close();");
}
Frame 28
if (urlChk()) {
} else {
_root.gotoAndStop("loading");
fscommand ("quit");
getURL ("javascript:window.close();");
}
Symbol 20 MovieClip Frame 1
stop();
Symbol 20 MovieClip Frame 2
balsa = 1;
_parent._parent.poz[_parent._parent.po]._alpha = 100;
Symbol 20 MovieClip Frame 20
stop();
Instance of Symbol 27 MovieClip in Symbol 28 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_global.dead) {
this.stop();
}
}
Symbol 46 MovieClip [enermy] Frame 1
stop();
Instance of Symbol 21 MovieClip "posin" in Symbol 46 MovieClip [enermy] Frame 1
onClipEvent (load) {
gravitation = 20;
angle = random(90) - 90;
fly = 0;
lock = 0;
t = 0;
v = 0;
posin2._rotation = -angle;
vy0 = v * Math.sin((angle * Math.PI) / 180);
vx0 = v * Math.cos((angle * Math.PI) / 180);
vy = vy0 - (gravitation * t);
enstartpo = Math.floor(getTimer() / 1000);
randangle = random(70) + 10;
if (_root.userlevel == 1) {
firetime = random(4) + 1;
} else if (_root.userlevel == 2) {
firetime = random(3) + 1;
} else if (_root.userlevel == 3) {
firetime = 1;
}
}
onClipEvent (enterFrame) {
if (!_global.dead) {
if (fly == 0) {
firedelay = Math.floor(getTimer() / 1000) - enstartpo;
if (firedelay >= firetime) {
if (angle > (-randangle)) {
this.angle--;
posin2._rotation = -angle;
}
if (angle < (-randangle)) {
this.angle++;
posin2._rotation = -angle;
}
poz.attachMovie("enpo", po, 1);
posin2._rotation = -angle;
poz[po]._rotation = -angle;
poz[po]._x = 0;
poz[po]._y = 0;
startx = poz[po]._x;
starty = poz[po]._y;
poz[po]._alpha = 0;
v = random(70) - 100;
posin2.play();
}
}
if ((angle == (-randangle)) && (posin2.balsa == 1)) {
fly = 1;
t = t + 0.15;
vy0 = v * Math.sin((angle * Math.PI) / 180);
vx0 = v * Math.cos((angle * Math.PI) / 180);
vy = vy0 - (gravitation * t);
poz[po]._x = (startx + (vx0 * t)) * 1.5;
poz[po]._y = ((starty - (vy0 * t)) + (((0.5 * gravitation) * t) * t)) * 1.5;
poz[po]._alpha = 100;
if (poz[po]._y >= 45) {
mispozx = poz[po]._x;
mispozy = poz[po]._y;
tankpozx = _parent._x;
tankpozy = _parent._y;
if (poz[po].hitTest(_parent._parent.rand)) {
p++;
_parent._parent.attachMovie("randmiss", randmiss, 40000 + p);
_parent._parent[randmiss]._x = mispozx + tankpozx;
_parent._parent[randmiss]._y = mispozy + tankpozy;
poz[po].removeMovieClip();
t = 0;
fly = 0;
posin2.balsa = 0;
enstartpo = Math.floor(getTimer() / 1000);
randangle = random(70) + 10;
firetime = random(4) + 1;
v = 0;
} else {
p++;
_parent._parent.attachMovie("miss", miss, 40000 + p);
_parent._parent[miss]._x = (mispozx + tankpozx) - 10;
_parent._parent[miss]._y = mispozy + tankpozy;
poz[po].removeMovieClip();
t = 0;
fly = 0;
posin2.balsa = 0;
enstartpo = Math.floor(getTimer() / 1000);
randangle = random(70) + 10;
firetime = random(4) + 1;
v = 0;
}
}
}
}
}
Symbol 46 MovieClip [enermy] Frame 73
stop();
_parent.hithit = 1;
if (_parent.score == _parent.enermyNum) {
_parent._parent.gotoAndStop("win");
}
this.removeMovieClip();
Symbol 75 MovieClip [wallani2] Frame 1
stop();
Symbol 75 MovieClip [wallani2] Frame 12
stop();
Symbol 75 MovieClip [wallani2] Frame 23
stop();
Symbol 75 MovieClip [wallani2] Frame 34
stop();
Symbol 75 MovieClip [wallani2] Frame 45
stop();
Symbol 82 MovieClip [miss] Frame 20
this.removeMovieClip();
Symbol 85 MovieClip [randmiss] Frame 15
this.removeMovieClip();
Symbol 96 MovieClip Frame 9
if (_root.getBytesLoaded() >= _root.getBytesTotal()) {
} else {
stop();
loadingbar.onEnterFrame = function () {
trace(this._x);
this._x = (((_root.getBytesLoaded() * 100) / _root.getBytesTotal()) * 1.47) + -143.7;
if (_root.getBytesLoaded() >= _root.getBytesTotal()) {
this._parent.gotoAndPlay("loadingOk");
this.onEnterFrame = null;
}
};
}
Symbol 96 MovieClip Frame 31
_parent.gotoAndPlay("loading_ok");
Symbol 97 MovieClip Frame 17
if (_global.reGameStart) {
gotoAndPlay(_currentframe + 2);
} else {
_global.reGameStart = 1;
}
Symbol 97 MovieClip Frame 18
stop();
Symbol 97 MovieClip Frame 33
_root.gotoAndStop("ready");
Symbol 107 MovieClip Frame 52
gotoAndPlay (1);
Symbol 132 Button
on (release) {
getURL ("http://www.puppyred.com", "_blank");
}
Symbol 140 Button
on (release, keyPress "<Enter>") {
if (!click) {
item1 = uitem1;
item2 = uitem2;
item3 = uitem3;
item4 = uitem4;
if (item2 == 1) {
shoot = 3;
}
stg = 1;
_global.dead = 0;
click = 1;
i = 0;
((snd_startBtn = new Sound())).attachSound("click");
snd_startBtn.start();
_root.onEnterFrame = function () {
trace(i);
i++;
if (i == 6) {
itemOb.userTemp = 1;
delete i;
delete click;
_root.onEnterFrame = null;
gotoAndStop (9);
}
};
}
}
Symbol 143 Button
on (release) {
gotoAndStop (24);
}
Symbol 159 MovieClip Frame 1
stop();
Symbol 171 MovieClip Frame 1
stop();
Instance of Symbol 167 MovieClip in Symbol 171 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_global.dead) {
this.stop();
}
}
Symbol 171 MovieClip Frame 2
stop();
Instance of Symbol 169 MovieClip in Symbol 171 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_global.dead) {
this.stop();
}
}
Symbol 171 MovieClip Frame 3
stop();
Symbol 171 MovieClip Frame 4
stop();
Symbol 177 MovieClip Frame 1
stop();
Symbol 177 MovieClip Frame 5
stop();
Symbol 177 MovieClip Frame 10
stop();
Symbol 177 MovieClip Frame 15
stop();
Symbol 178 MovieClip Frame 1
stop();
Symbol 189 MovieClip Frame 12
stop();
Symbol 190 MovieClip Frame 1
function sorts() {
var r = (random(3) - 1);
return(r);
}
i = 0;
ready = 1;
ranArr = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17];
ranArr.sort(sorts);
stop();
Symbol 190 MovieClip Frame 2
ready = 0;
Symbol 190 MovieClip Frame 11
if ((ranArr[0] + 10) == this._currentframe) {
m1._x = spaceship._x;
m1.play();
} else if ((ranArr[1] + 10) == this._currentframe) {
m2._x = spaceship._x;
m2.play();
} else if ((ranArr[2] + 10) == this._currentframe) {
m3._x = spaceship._x;
m3.play();
}
Symbol 190 MovieClip Frame 12
if ((ranArr[0] + 10) == this._currentframe) {
m1._x = spaceship._x;
m1.play();
} else if ((ranArr[1] + 10) == this._currentframe) {
m2._x = spaceship._x;
m2.play();
} else if ((ranArr[2] + 10) == this._currentframe) {
m3._x = spaceship._x;
m3.play();
}
Symbol 190 MovieClip Frame 13
if ((ranArr[0] + 10) == this._currentframe) {
m1._x = spaceship._x;
m1.play();
} else if ((ranArr[1] + 10) == this._currentframe) {
m2._x = spaceship._x;
m2.play();
} else if ((ranArr[2] + 10) == this._currentframe) {
m3._x = spaceship._x;
m3.play();
}
Symbol 190 MovieClip Frame 14
if ((ranArr[0] + 10) == this._currentframe) {
m1._x = spaceship._x;
m1.play();
} else if ((ranArr[1] + 10) == this._currentframe) {
m2._x = spaceship._x;
m2.play();
} else if ((ranArr[2] + 10) == this._currentframe) {
m3._x = spaceship._x;
m3.play();
}
Symbol 190 MovieClip Frame 15
if ((ranArr[0] + 10) == this._currentframe) {
m1._x = spaceship._x;
m1.play();
} else if ((ranArr[1] + 10) == this._currentframe) {
m2._x = spaceship._x;
m2.play();
} else if ((ranArr[2] + 10) == this._currentframe) {
m3._x = spaceship._x;
m3.play();
}
Symbol 190 MovieClip Frame 16
if ((ranArr[0] + 10) == this._currentframe) {
m1._x = spaceship._x;
m1.play();
} else if ((ranArr[1] + 10) == this._currentframe) {
m2._x = spaceship._x;
m2.play();
} else if ((ranArr[2] + 10) == this._currentframe) {
m3._x = spaceship._x;
m3.play();
}
Symbol 190 MovieClip Frame 17
if ((ranArr[0] + 10) == this._currentframe) {
m1._x = spaceship._x;
m1.play();
} else if ((ranArr[1] + 10) == this._currentframe) {
m2._x = spaceship._x;
m2.play();
} else if ((ranArr[2] + 10) == this._currentframe) {
m3._x = spaceship._x;
m3.play();
}
Symbol 190 MovieClip Frame 18
if ((ranArr[0] + 10) == this._currentframe) {
m1._x = spaceship._x;
m1.play();
} else if ((ranArr[1] + 10) == this._currentframe) {
m2._x = spaceship._x;
m2.play();
} else if ((ranArr[2] + 10) == this._currentframe) {
m3._x = spaceship._x;
m3.play();
}
Symbol 190 MovieClip Frame 19
if ((ranArr[0] + 10) == this._currentframe) {
m1._x = spaceship._x;
m1.play();
} else if ((ranArr[1] + 10) == this._currentframe) {
m2._x = spaceship._x;
m2.play();
} else if ((ranArr[2] + 10) == this._currentframe) {
m3._x = spaceship._x;
m3.play();
}
Symbol 190 MovieClip Frame 20
if ((ranArr[0] + 10) == this._currentframe) {
m1._x = spaceship._x;
m1.play();
} else if ((ranArr[1] + 10) == this._currentframe) {
m2._x = spaceship._x;
m2.play();
} else if ((ranArr[2] + 10) == this._currentframe) {
m3._x = spaceship._x;
m3.play();
}
Symbol 190 MovieClip Frame 21
if ((ranArr[0] + 10) == this._currentframe) {
m1._x = spaceship._x;
m1.play();
} else if ((ranArr[1] + 10) == this._currentframe) {
m2._x = spaceship._x;
m2.play();
} else if ((ranArr[2] + 10) == this._currentframe) {
m3._x = spaceship._x;
m3.play();
}
Symbol 190 MovieClip Frame 22
if ((ranArr[0] + 10) == this._currentframe) {
m1._x = spaceship._x;
m1.play();
} else if ((ranArr[1] + 10) == this._currentframe) {
m2._x = spaceship._x;
m2.play();
} else if ((ranArr[2] + 10) == this._currentframe) {
m3._x = spaceship._x;
m3.play();
}
Symbol 190 MovieClip Frame 23
if ((ranArr[0] + 10) == this._currentframe) {
m1._x = spaceship._x;
m1.play();
} else if ((ranArr[1] + 10) == this._currentframe) {
m2._x = spaceship._x;
m2.play();
} else if ((ranArr[2] + 10) == this._currentframe) {
m3._x = spaceship._x;
m3.play();
}
Symbol 190 MovieClip Frame 24
if ((ranArr[0] + 10) == this._currentframe) {
m1._x = spaceship._x;
m1.play();
} else if ((ranArr[1] + 10) == this._currentframe) {
m2._x = spaceship._x;
m2.play();
} else if ((ranArr[2] + 10) == this._currentframe) {
m3._x = spaceship._x;
m3.play();
}
Symbol 190 MovieClip Frame 25
if ((ranArr[0] + 10) == this._currentframe) {
m1._x = spaceship._x;
m1.play();
} else if ((ranArr[1] + 10) == this._currentframe) {
m2._x = spaceship._x;
m2.play();
} else if ((ranArr[2] + 10) == this._currentframe) {
m3._x = spaceship._x;
m3.play();
}
Symbol 190 MovieClip Frame 26
if ((ranArr[0] + 10) == this._currentframe) {
m1._x = spaceship._x;
m1.play();
} else if ((ranArr[1] + 10) == this._currentframe) {
m2._x = spaceship._x;
m2.play();
} else if ((ranArr[2] + 10) == this._currentframe) {
m3._x = spaceship._x;
m3.play();
}
Symbol 190 MovieClip Frame 27
if ((ranArr[0] + 10) == this._currentframe) {
m1._x = spaceship._x;
m1.play();
} else if ((ranArr[1] + 10) == this._currentframe) {
m2._x = spaceship._x;
m2.play();
} else if ((ranArr[2] + 10) == this._currentframe) {
m3._x = spaceship._x;
m3.play();
}
Symbol 207 MovieClip Frame 1
stop();
Symbol 216 MovieClip Frame 1
stop();
Symbol 216 MovieClip Frame 2
balsa = 1;
_parent._parent.poz[_parent._parent.po]._alpha = 100;
Symbol 216 MovieClip Frame 21
stop();
Symbol 227 MovieClip Frame 1
stop();
Symbol 232 MovieClip Frame 1
stop();
Instance of Symbol 219 MovieClip "posin" in Symbol 232 MovieClip Frame 1
onClipEvent (load) {
gravitation = 20;
angle = 0;
fly = 0;
lock = 0;
downlock = 0;
t = 0;
v = 0;
_parent._parent.anglepin = 0;
_parent._parent._parent.energy._width = 0;
_parent._x = 60;
_parent._y = 231;
posin2._rotation = -angle;
vy0 = v * Math.sin((angle * Math.PI) / 180);
vx0 = v * Math.cos((angle * Math.PI) / 180);
vy = vy0 - (gravitation * t);
}
onClipEvent (enterFrame) {
if (Key.isDown(38)) {
if (angle < 90) {
this.angle = this.angle + 2;
posin2._rotation = -angle;
_parent._parent._parent.anglepin = angle;
_parent._parent._parent.poarrow._rotation = -angle;
}
}
if (Key.isDown(40)) {
if (angle > 0) {
this.angle = this.angle - 2;
posin2._rotation = -angle;
_parent._parent._parent.anglepin = angle;
_parent._parent._parent.poarrow._rotation = -angle;
}
}
if ((fly == 0) && (downlock == 0)) {
if (Key.isDown(39)) {
if (_parent._x < 70) {
_parent._x = _parent._x + 2;
if (_parent.army._currentframe == _parent.army._totalframes) {
_parent.army.gotoAndStop(1);
} else {
_parent.army.nextFrame();
}
if (_parent.wheel._currentframe == _parent.wheel._totalframes) {
_parent.wheel.gotoAndStop(1);
} else {
_parent.wheel.nextFrame();
}
}
}
if (Key.isDown(37)) {
if (_parent._x > 30) {
_parent._x = _parent._x - 2;
if (_parent.army._currentframe == 1) {
_parent.army.gotoAndStop(_parent.army._totalframes);
} else {
_parent.army.prevFrame();
}
if (_parent.wheel._currentframe == 1) {
_parent.wheel.gotoAndStop(_parent.wheel._totalframes);
} else {
_parent.wheel.prevFrame();
}
}
}
if (Key.isDown(32)) {
poz.attachMovie("po", po, 40000);
posin2._rotation = -angle;
poz[po]._rotation = -angle;
poz[po]._x = 0;
poz[po]._y = 0;
startx = poz[po]._x;
starty = poz[po]._y;
poz[po]._alpha = 0;
lock = 1;
if ((v >= 0) & (v < 80)) {
v = v + 1;
_parent._parent._parent.energy._width = 132 * (v / 80);
_parent._parent._parent.energydisplay = v;
if (_root.item1 == 1) {
v = v + 1;
_parent._parent._parent.energy._width = 132 * (v / 80);
_parent._parent._parent.energydisplay = v;
}
} else if (v >= 80) {
v = 80;
}
}
}
if (((Key.isDown(32) == 0) && (lock == 1)) || ((lock == 1) && (v == 80))) {
_root.shootNum = _root.shootNum + 1;
posin2.gotoAndPlay(2);
fly = 1;
downlock = 1;
Sangle = angle;
Sv = v;
Svy0 = Sv * Math.sin((Sangle * Math.PI) / 180);
Svx0 = Sv * Math.cos((Sangle * Math.PI) / 180);
Svy = Svy0 - (gravitation * St);
lock = 0;
}
if (((downlock == 1) && (posin2._currentframe > 5)) && (posin2.balsa == 1)) {
if (Key.isDown(39)) {
if (_parent._x < 100) {
_parent._x = _parent._x + 2;
startx = startx - 1.35;
if (_parent.army._currentframe == _parent.army._totalframes) {
_parent.army.gotoAndStop(1);
} else {
_parent.army.nextFrame();
}
if (_parent.wheel._currentframe == _parent.wheel._totalframes) {
_parent.wheel.gotoAndStop(1);
} else {
_parent.wheel.nextFrame();
}
}
}
if (Key.isDown(37)) {
if (_parent._x > 20) {
_parent._x = _parent._x - 2;
startx = startx + 1.35;
if (_parent.army._currentframe == 1) {
_parent.army.gotoAndStop(_parent.army._totalframes);
} else {
_parent.army.prevFrame();
}
if (_parent.wheel._currentframe == 1) {
_parent.wheel.gotoAndStop(_parent.wheel._totalframes);
} else {
_parent.wheel.prevFrame();
}
}
}
t = t + 0.15;
Svy0 = Sv * Math.sin((Sangle * Math.PI) / 180);
Svx0 = Sv * Math.cos((Sangle * Math.PI) / 180);
Svy = Svy0 - (gravitation * t);
poz[po]._alpha = 100;
poz[po]._x = (startx + (Svx0 * t)) * 1.5;
poz[po]._y = ((starty - (Svy0 * t)) + (((0.5 * gravitation) * t) * t)) * 1.5;
if (poz[po]._y >= 30) {
trace(112);
mispozx = poz[po]._x;
mispozy = poz[po]._y;
if (poz[po].hitTest(_parent._parent.rand)) {
trace(111);
_parent._parent.attachMovie("randmiss", randmiss, 1000);
_parent._parent[randmiss]._x = (mispozx + _parent._x) + 15;
_parent._parent[randmiss]._y = (mispozy + _parent._y) - 10;
} else {
_parent._parent.attachMovie("miss", miss, 1000);
_parent._parent[miss]._x = (mispozx + _parent._x) + 25;
_parent._parent[miss]._y = (mispozy + _parent._y) + 3;
}
poz[po].removeMovieClip();
t = 0;
v = 0;
fly = 0;
downlock = 0;
posin2.balsa = 0;
}
if (poz[po]._y <= -110) {
trace(_parent._parent._parent.back._y);
main_y = -110 - poz[po]._y;
back_y = -24 - poz[po]._y;
_parent._parent._parent.main._y = main_y / 1;
_parent._parent._parent.back._y = back_y / 2;
} else {
_parent._parent._parent.main._y = -9;
_parent._parent._parent.back._y = 24;
}
}
}
Symbol 232 MovieClip Frame 2
_parent._parent.hit = 0;
Symbol 232 MovieClip Frame 45
function allstop(p) {
for (prop in p) {
p[prop].stop();
allstop(p[prop]);
}
}
stop();
_parent._parent.hithit = 1;
_global.dead = 1;
onEnterFrame = function () {
temp++;
if (temp == 20) {
onEnterFrame = null;
allstop(_root);
_root.gameoverMovie.play();
}
};
Symbol 235 MovieClip Frame 1
enermyNum = _root.enermyNum;
wallNum = 4;
hithit = 1;
score = 0;
a = 0;
var i = 1;
while (i <= wallNum) {
this.wallpoz.attachMovie("wall", "wall" + i, i);
this.wallpoz["wall" + i]._x = 20;
this.wallpoz["wall" + i]._y = 15 * i;
this.wallpoz["wall" + i]._alpha = 0;
i++;
}
this.wallpoz.attachMovie("wallani2", wallani, 0);
this.wallpoz[wallani]._x = 13;
this.wallpoz[wallani]._y = 60;
b = 1;
while (b <= enermyNum) {
attachMovie("enermy", "enermy" + b, b);
randenrmy = random(320) + 170;
this["enermy" + b]._x = randenrmy;
this["enermy" + b]._y = 225;
if (_root.userlevel == 1) {
speedX = random(3) - random(3);
} else if (_root.userlevel == 2) {
speedX = random(3) + 1;
} else if (_root.userlevel == 3) {
speedX = random(3) + 2;
}
if (speedX == 0) {
speedX = random(3) + 1;
}
this["speedX" + b] = speedX;
poz.attachMovie("po", po, 1);
posin2._rotation = -angle;
poz[po]._rotation = -angle;
poz[po]._x = 0;
poz[po]._y = 0;
startx = poz[po]._x;
starty = poz[po]._y;
b++;
}
this.onEnterFrame = function () {
if (!_global.dead) {
var j = 1;
while (j <= enermyNum) {
this["enermy" + j]._x = this["enermy" + j]._x + this["speedX" + j];
if (this["enermy" + j]._x >= 380) {
this["enermy" + j]._x = 380;
this["speedX" + j] = this["speedX" + j] * -1;
}
if (this["enermy" + j]._x <= 160) {
this["enermy" + j]._x = 160;
this["speedX" + j] = this["speedX" + j] * -1;
}
j++;
}
var j = 1;
while (j <= enermyNum) {
if (this["enermy" + j].enermyship.hitTest(tank.posin.poz[po]) && (hithit == 1)) {
this["enermy" + j].gotoAndPlay("hit");
tank.posin.poz[po].removeMovieClip();
score++;
tank.posin.t = 0;
tank.posin.v = 0;
tank.posin.lock = 0;
tank.posin.fly = 0;
tank.posin.downlock = 0;
tank.posin.posin2.balsa = 0;
_root.score = _root.score + 100;
} else if (this["enermy" + j].enermyship.hitTest(spaceship.m1.ms.hit) && (hithit == 1)) {
this["enermy" + j].gotoAndPlay("hit");
tank.posin.poz[po].removeMovieClip();
score++;
tank.posin.t = 0;
tank.posin.v = 0;
tank.posin.lock = 0;
tank.posin.fly = 0;
tank.posin.downlock = 0;
tank.posin.posin2.balsa = 0;
_root.score = _root.score + 100;
} else if (this["enermy" + j].enermyship.hitTest(spaceship.m2.ms.hit) && (hithit == 1)) {
this["enermy" + j].gotoAndPlay("hit");
tank.posin.poz[po].removeMovieClip();
score++;
tank.posin.t = 0;
tank.posin.v = 0;
tank.posin.lock = 0;
tank.posin.fly = 0;
tank.posin.downlock = 0;
tank.posin.posin2.balsa = 0;
_root.score = _root.score + 100;
} else if (this["enermy" + j].enermyship.hitTest(spaceship.m3.ms.hit) && (hithit == 1)) {
this["enermy" + j].gotoAndPlay("hit");
tank.posin.poz[po].removeMovieClip();
score++;
tank.posin.t = 0;
tank.posin.v = 0;
tank.posin.lock = 0;
tank.posin.fly = 0;
tank.posin.downlock = 0;
tank.posin.posin2.balsa = 0;
_root.score = _root.score + 100;
}
if (this["enermy" + j].posin.poz[po].hitTest(tank.posin.hitpoint) && (hithit == 1)) {
tank.hitX = tank._x;
trace(tank.hitX);
house.nextFrame();
tank.gotoAndPlay("hit");
this["enermy" + j].posin.poz[po].removeMovieClip();
}
if (househit.hitTest(this["enermy" + j].posin.poz[po])) {
this["enermy" + j].posin.poz[po].removeMovieClip();
poNum++;
houseNum = 1;
this["enermy" + j].posin.t = 0;
this["enermy" + j].posin.v = 0;
this["enermy" + j].posin.fly = 0;
this["enermy" + j].posin.enstartpo = Math.floor(getTimer() / 1000);
this["enermy" + j].posin.randangle = random(70) + 10;
this["enermy" + j].posin.firetime = random(4) + 1;
this["enermy" + j].posin.posin2.balsa = 0;
}
var i = (a + 1);
while (i <= wallNum) {
if (this.wallpoz["wall" + i].hitTest(this["enermy" + j].posin.poz[po])) {
this["enermy" + j].posin.poz[po].removeMovieClip();
a++;
this.wallpoz["wall" + a].removeMovieClip();
this.wallpoz[wallani].play();
this["enermy" + j].posin.t = 0;
this["enermy" + j].posin.v = 0;
this["enermy" + j].posin.fly = 0;
this["enermy" + j].posin.enstartpo = Math.floor(getTimer() / 1000);
this["enermy" + j].posin.randangle = random(70) + 10;
this["enermy" + j].posin.firetime = random(4) + 1;
this["enermy" + j].posin.posin2.balsa = 0;
}
i++;
}
var i = (a + 1);
while (i <= wallNum) {
if (this.wallpoz["wall" + i].hitTest(tank.posin.poz[po])) {
tank.posin.poz[po].removeMovieClip();
a++;
this.wallpoz["wall" + a].removeMovieClip();
this.wallpoz[wallani].play();
tank.posin.t = 0;
tank.posin.v = 0;
tank.posin.lock = 0;
tank.posin.fly = 0;
tank.posin.downlock = 0;
tank.posin.posin2.balsa = 0;
}
i++;
}
j++;
}
if ((((poNum % 1) == 0) && ((!poNum) == 0)) && (houseNum == 1)) {
if (house.house1._currentframe != house.house1._totalframes) {
house.house1.play();
houseNum = 0;
}
if (house.general._currentframe != house.general._totalframes) {
house.general.play();
houseNum = 0;
}
}
}
};
Instance of Symbol 190 MovieClip "spaceship" in Symbol 235 MovieClip Frame 1
onClipEvent (keyDown) {
if ((ready && (_root.shoot > 0)) && (Key.getCode() == 13)) {
_root["item2Num" + _root.shoot]._visible = 0;
_root.shoot = _root.shoot - 1;
this.play();
}
}
Instance of Symbol 197 MovieClip in Symbol 235 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_global.dead) {
this.stop();
}
}
Instance of Symbol 201 MovieClip in Symbol 235 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_global.dead) {
this.stop();
}
}
Instance of Symbol 232 MovieClip "tank" in Symbol 235 MovieClip Frame 1
onClipEvent (load) {
this.swapDepths(3000);
}
Symbol 247 Button
on (release) {
_parent.bgs.setVolume(0);
nextFrame();
}
Symbol 250 Button
on (release) {
_parent.bgs.setVolume(100);
prevFrame();
}
Symbol 251 MovieClip Frame 1
if (_parent.bgs.getVolume() == 0) {
nextFrame();
}
stop();
Symbol 270 MovieClip Frame 1
this._visible = 0;
stop();
Instance of Symbol 266 MovieClip "scoreView" in Symbol 271 MovieClip Frame 1
onClipEvent (load) {
function scoreView(score) {
this._parent._visible = 1;
var s8 = (Math.floor((score % 100000000) / 10000000) + 1);
var s7 = (Math.floor((score % 10000000) / 1000000) + 1);
var s6 = (Math.floor((score % 1000000) / 100000) + 1);
var s5 = (Math.floor((score % 100000) / 10000) + 1);
var s4 = (Math.floor((score % 10000) / 1000) + 1);
var s3 = (Math.floor((score % 1000) / 100) + 1);
var s2 = (Math.floor((score % 100) / 10) + 1);
var s1 = (Math.floor(score % 10) + 1);
if (score > 0) {
snd.start(0, 999);
}
num1.gotoAndStop(1);
num1.play();
num1.onEnterFrame = function () {
if (this._currentframe == (s1 + 1)) {
this.stop();
if (score < 10) {
snd.stop();
}
num2.gotoAndStop(1);
num2.play();
num2.onEnterFrame = function () {
if (this._currentframe == (s2 + 1)) {
this.stop();
if (score < 100) {
snd.stop();
}
num3.gotoAndStop(1);
num3.play();
num3.onEnterFrame = function () {
if (this._currentframe == (s3 + 1)) {
this.stop();
if (score < 1000) {
snd.stop();
}
num4.gotoAndStop(1);
num4.play();
num4.onEnterFrame = function () {
if (this._currentframe == (s4 + 1)) {
trace(1);
this.stop();
if (score < 10000) {
snd.stop();
}
num5.gotoAndStop(1);
num5.play();
num5.onEnterFrame = function () {
if (this._currentframe == (s5 + 1)) {
this.stop();
if (score < 100000) {
snd.stop();
}
num6.gotoAndStop(1);
num6.play();
num6.onEnterFrame = function () {
if (this._currentframe == (s6 + 1)) {
this.stop();
if (score < 100000) {
snd.stop();
}
num7.gotoAndStop(1);
num7.play();
num7.onEnterFrame = function () {
if (this._currentframe == (s7 + 1)) {
this.stop();
this._parent.snd.stop("dding");
this._parent._parent.scoreItemMovie.view();
this.onEnterFrame = null;
}
};
this.onEnterFrame = null;
}
};
this.onEnterFrame = null;
}
};
this.onEnterFrame = null;
}
};
this.onEnterFrame = null;
}
};
this.onEnterFrame = null;
}
};
this.onEnterFrame = null;
}
};
}
i = 1;
while (i <= 8) {
this["num" + i].stop();
i++;
}
snd = new Sound(this);
snd.attachSound("dding");
}
Instance of Symbol 270 MovieClip "scoreItemMovie" in Symbol 271 MovieClip Frame 1
onClipEvent (load) {
view = function () {
trace("item");
if (_root.item3 == 1) {
this.gotoAndStop(2);
} else if (_root.item4 == 1) {
this.gotoAndStop(3);
} else if (_root.item5 == 1) {
this.gotoAndStop(4);
} else {
this._visible = 0;
return(0);
}
this.onEnterFrame = function () {
this.i++;
if (this._i > 6) {
this._visible = 1;
}
if ((this.i >= 6) && (this.i < 12)) {
if ((this.i % 2) == 0) {
this._visible = 0;
} else {
this._visible = 1;
}
} else if (this.i == 24) {
_parent.scoreView.scoreView(_root.score);
this.onEnterFrame = null;
}
};
};
}
Symbol 278 Button
on (release, keyPress "<Enter>") {
_root.gotoAndStop("loading");
}
Symbol 291 MovieClip Frame 1
stop();
Symbol 291 MovieClip Frame 6
_parent._parent.play();
_root.mainMsg = _root.mainMsg + "\n-\uCD95\uD558\uD569\uB2C8\uB2E4. \uC2A4\uCF54\uC5B4 X 3 \uC785\uB2C8\uB2E4.";
_root.mainMsg.scroll = _root.mainMsg.maxscroll;
Symbol 294 MovieClip Frame 1
stop();
Symbol 294 MovieClip Frame 6
_parent._parent.play();
_root.mainMsg = _root.mainMsg + "\n-\uC548\uD0C0\uAE5D\uAD70\uC694. \uC2A4\uCF54\uC5B4 \u00F75 \uC785\uB2C8\uB2E4.";
_root.mainMsg.scroll = _root.mainMsg.maxscroll;
Symbol 297 MovieClip Frame 1
stop();
Symbol 297 MovieClip Frame 6
_parent._parent.play();
_root.mainMsg = _root.mainMsg + "\n-\uC548\uD0C0\uAE5D\uAD70\uC694. \uC2A4\uCF54\uC5B4 \u00F72 \uC785\uB2C8\uB2E4.";
_root.mainMsg.scroll = _root.mainMsg.maxscroll;
Symbol 300 MovieClip Frame 1
stop();
Symbol 300 MovieClip Frame 6
_parent._parent.play();
_root.mainMsg = _root.mainMsg + "\n-\uCD95\uD558\uD569\uB2C8\uB2E4. \uC2A4\uCF54\uC5B4 X 2 \uC785\uB2C8\uB2E4.";
_root.mainMsg.scroll = _root.mainMsg.maxscroll;
Symbol 303 MovieClip Frame 1
stop();
Symbol 303 MovieClip Frame 6
_parent._parent.play();
_root.mainMsg = _root.mainMsg + "\n-\uC548\uD0C0\uAE5D\uAD70\uC694. \uC2A4\uCF54\uC5B4 - 500 \uC785\uB2C8\uB2E4.";
_root.mainMsg.scroll = _root.mainMsg.maxscroll;
Symbol 306 MovieClip Frame 1
stop();
Symbol 306 MovieClip Frame 6
_parent._parent.play();
_root.mainMsg = _root.mainMsg + "\n-\uC548\uD0C0\uAE5D\uAD70\uC694. \uAF5D\uC785\uB2C8\uB2E4.";
_root.mainMsg.scroll = _root.mainMsg.maxscroll;
Symbol 318 MovieClip Frame 1
stop();
Instance of Symbol 339 MovieClip "n7" in Symbol 340 MovieClip Frame 1
onClipEvent (load) {
this.stop();
roll = function (val) {
this.play();
this.val = val;
this.onEnterFrame = function () {
i++;
if (i > 10) {
if ((this._currentframe - 1) == this.val) {
this.stop();
delete this.i;
delete this.val;
delete this._parent.v1;
if (!gos) {
_parent._parent.nextFrame();
} else {
delete gos;
_parent._parent.gotoAndPlay("save");
}
this.onEnterFrame = null;
}
}
};
};
}
Instance of Symbol 339 MovieClip "n6" in Symbol 340 MovieClip Frame 1
onClipEvent (load) {
this.stop();
roll = function (val) {
this.play();
this.val = val;
this.onEnterFrame = function () {
this.i++;
if (i == 2) {
this._parent.n7.roll(this._parent.v1);
} else if (i > 10) {
if ((this._currentframe - 1) == this.val) {
this.stop();
delete this.i;
delete this.val;
delete this._parent.v2;
this.onEnterFrame = null;
}
}
};
};
}
Instance of Symbol 339 MovieClip "n5" in Symbol 340 MovieClip Frame 1
onClipEvent (load) {
this.stop();
roll = function (val) {
this.play();
this.val = val;
this.onEnterFrame = function () {
this.i++;
if (i == 2) {
this._parent.n6.roll(this._parent.v2);
} else if (i > 10) {
if ((this._currentframe - 1) == this.val) {
this.stop();
delete this.i;
delete this.val;
delete this._parent.v3;
this.onEnterFrame = null;
}
}
};
};
}
Instance of Symbol 339 MovieClip "n4" in Symbol 340 MovieClip Frame 1
onClipEvent (load) {
this.stop();
roll = function (val) {
this.play();
this.val = val;
this.onEnterFrame = function () {
this.i++;
if (i == 2) {
this._parent.n5.roll(this._parent.v3);
} else if (i > 10) {
if ((this._currentframe - 1) == this.val) {
this.stop();
delete this.i;
delete this.val;
delete this._parent.v4;
this.onEnterFrame = null;
}
}
};
};
}
Instance of Symbol 339 MovieClip "n3" in Symbol 340 MovieClip Frame 1
onClipEvent (load) {
this.stop();
roll = function (val) {
this.play();
this.val = val;
this.onEnterFrame = function () {
this.i++;
if (i == 2) {
this._parent.n4.roll(this._parent.v4);
} else if (i > 10) {
if ((this._currentframe - 1) == this.val) {
this.stop();
delete this.i;
delete this.val;
delete this._parent.v5;
this.onEnterFrame = null;
}
}
};
};
}
Instance of Symbol 339 MovieClip "n2" in Symbol 340 MovieClip Frame 1
onClipEvent (load) {
this.stop();
roll = function (val) {
this.play();
this.val = val;
this.onEnterFrame = function () {
this.i++;
if (i == 2) {
this._parent.n3.roll(this._parent.v5);
} else if (i > 10) {
if ((this._currentframe - 1) == this.val) {
this.stop();
delete this.i;
delete this.val;
delete this._parent.v6;
this.onEnterFrame = null;
}
}
};
};
}
Instance of Symbol 339 MovieClip "n1" in Symbol 340 MovieClip Frame 1
onClipEvent (load) {
this.stop();
roll = function (val) {
this.play();
this.val = val;
this.onEnterFrame = function () {
this.i++;
if (i == 2) {
this._parent.n2.roll(this._parent.v6);
} else if (i > 10) {
if ((this._currentframe - 1) == this.val) {
this.stop();
delete this.i;
delete this.val;
delete this._parent.v7;
this.onEnterFrame = null;
}
}
};
};
}
Symbol 342 Button
on (release) {
if (!_global.betting) {
gotoAndPlay (60);
}
}
Symbol 344 Button
on (release) {
if (!_global.betting) {
_root.mainMsg = _root.mainMsg + "\n-\uBC30\uD305\uD569\uB2C8\uB2E4.";
_root.mainMsg.scroll = _root.mainMsg.maxscroll;
_global.betting = 1;
play();
okBtn.nextFrame();
}
}
Symbol 347 Button
on (release) {
if (!_global.betting) {
gotoAndPlay (1);
}
}
Symbol 348 Button
on (release) {
if (!_global.betting) {
_global.betting = 1;
roulette.spin();
okBtn.nextFrame();
nextFrame();
}
}
Instance of Symbol 318 MovieClip "rarrow" in Symbol 349 MovieClip Frame 1
onClipEvent (load) {
function move() {
this.onEnterFrame = function () {
if (_parent.roulette.i < 12) {
this.gotoAndStop(2);
} else {
this.j++;
if ((this.j % 25) == 0) {
this.nextFrame();
}
}
};
}
stop();
}
Symbol 350 MovieClip Frame 1
stop();
Instance of Symbol 271 MovieClip "finalScoreView" in Symbol 350 MovieClip Frame 11
onClipEvent (load) {
this._visible = 0;
}
Symbol 350 MovieClip Frame 12
function itemZero() {
var i = 0;
while (i < 10) {
_root["uitem" + i] = 0;
i++;
}
}
_root.shoot = 0;
stop();
_root.onEnterFrame = null;
var x = 1;
while (x <= 6) {
var y = 1;
while (y <= 6) {
_root[("redflag" + x) + y].removeMovieClip();
_root[("blueflag" + x) + y].removeMovieClip();
_root[("trap" + x) + y].removeMovieClip();
y++;
}
x++;
}
_root.tempscore = _root.score;
if (_root.item3 == 1) {
_root.score = _root.score * 2;
} else if (_root.item4 == 1) {
_root.score = _root.score * 3;
} else if (_root.item5 == 1) {
_root.score = _root.score * 5;
}
if (((_root.userlevel == _root.originallevel) && (_root.userlevel == 1)) && (_root.stg > 5)) {
_root.levelup = 1;
} else if (((_root.userlevel == _root.originallevel) && (_root.userlevel == 2)) && (_root.stg > 6)) {
_root.levelup = 1;
}
_root.sendScore();
stopAllSounds();
finalScoreView.scoreView.scoreView(_root.tempscore);
itemZero();
Symbol 350 MovieClip Frame 13
play();
Symbol 350 MovieClip Frame 20
function betting(score) {
ranValue = Math.floor(Math.random() * 100) + 1;
if (ranValue <= 5) {
var sc = (score * 3);
var result = 1;
} else if (ranValue <= 20) {
var sc = (score / 2);
var result = 2;
} else if (ranValue <= 25) {
var sc = (score / 5);
var result = 3;
} else if (ranValue <= 40) {
var sc = (score * 2);
var result = 4;
} else if (ranValue <= 70) {
var sc = (score - 500);
var result = 5;
} else if (ranValue <= 100) {
var sc = score;
var result = 6;
}
if (sc < 0) {
sc = 0;
}
var rarray = [result, Math.floor(sc)];
return(rarray);
}
Instance of Symbol 308 MovieClip "roulette" in Symbol 350 MovieClip Frame 20
onClipEvent (load) {
function spin() {
this._parent.rarrow.move();
this.rA = this._parent.betting(_global.score);
this.result = _parent.result;
trace(result);
this.onEnterFrame = function () {
this.i++;
this._rotation = this._rotation + this.rSpeed;
if (this.i >= 12) {
if (this.i == 12) {
this.snd = new Sound();
if (this.result == 1) {
this.snd.attachSound("bonusNo");
this._rotation = this._rotation - 40;
} else if (this.result == 2) {
this._rotation = this._rotation - 70;
this.snd.attachSound("bonusYes");
} else if (this.result == 3) {
this._rotation = this._rotation - 115;
this.snd.attachSound("bonusYes");
} else if (this.result == 4) {
this._rotation = this._rotation - 160;
this.snd.attachSound("bonusNo");
} else if (this.result == 5) {
this._rotation = this._rotation - 250;
this.snd.attachSound("bonusNo");
} else if (this.result == 6) {
this._rotation = this._rotation - 330;
this.snd.attachSound("bonusYes");
} else if (this.result == 7) {
this._rotation = this._rotation - 287;
this.snd.attachSound("bonusYes");
} else if (this.result == 8) {
this._rotation = this._rotation - 350;
this.snd.attachSound("bonusNo");
}
}
this.rSpeed = this.rSpeed - 1;
if (this.rSpeed == 10) {
this._parent.rarrow.gotoAndStop(1);
delete this._parent.rarrow.j;
this._parent.rarrow.onEnterFrame = null;
}
if (this.rSpeed == -5) {
_root.score = this.rA[1];
trace(this.i);
delete this.i;
delete this.rSpeed;
this._parent.bonusMovie.gotoAndStop(this.result);
this._parent.bonusMovie.move();
this.snd.start();
this.onEnterFrame = null;
}
}
};
}
this.rSpeed = 90;
}
Instance of Symbol 318 MovieClip "rarrow" in Symbol 350 MovieClip Frame 20
onClipEvent (load) {
function move() {
this.onEnterFrame = function () {
if (_parent.roulette.i < 12) {
this.gotoAndStop(2);
} else {
this.j++;
if ((this.j % 25) == 0) {
this.nextFrame();
}
}
};
}
stop();
}
Instance of Symbol 340 MovieClip "scorePlate" in Symbol 350 MovieClip Frame 20
onClipEvent (load) {
scoreView = function (val, as) {
v1 = Math.floor(val / 1000000);
v2 = Math.floor((val % 1000000) / 100000);
v3 = Math.floor((val % 100000) / 10000);
v4 = Math.floor((val % 10000) / 1000);
v5 = Math.floor((val % 1000) / 100);
v6 = Math.floor((val % 100) / 10);
v7 = Math.floor((val % 10) / 1);
n1.roll(v7);
if (as) {
n7.gos = 1;
}
trace(v1);
};
}
Symbol 350 MovieClip Frame 21
scorePlate.scoreView(_root.score);
stop();
Instance of Symbol 308 MovieClip "roulette" in Symbol 350 MovieClip Frame 21
onClipEvent (load) {
function spin() {
this._parent.rarrow.move();
this.rA = this._parent.betting(_global.score);
this.result = this.rA[0];
trace(result);
this.onEnterFrame = function () {
this.i++;
this._rotation = this._rotation + this.rSpeed;
if (this.i >= 12) {
if (this.i == 12) {
this.snd = new Sound();
if (this.result == 1) {
this.snd.attachSound("bonusNo");
this._rotation = this._rotation - 40;
} else if (this.result == 2) {
this._rotation = this._rotation - 70;
this.snd.attachSound("bonusYes");
} else if (this.result == 3) {
this._rotation = this._rotation - 115;
this.snd.attachSound("bonusYes");
} else if (this.result == 4) {
this._rotation = this._rotation - 160;
this.snd.attachSound("bonusNo");
} else if (this.result == 5) {
this._rotation = this._rotation - 250;
this.snd.attachSound("bonusNo");
} else if (this.result == 6) {
this._rotation = this._rotation - 330;
this.snd.attachSound("bonusYes");
} else if (this.result == 7) {
this._rotation = this._rotation - 287;
this.snd.attachSound("bonusYes");
} else if (this.result == 8) {
this._rotation = this._rotation - 350;
this.snd.attachSound("bonusNo");
}
}
this.rSpeed = this.rSpeed - 1;
if (this.rSpeed == 10) {
this._parent.rarrow.gotoAndStop(1);
delete this._parent.rarrow.j;
this._parent.rarrow.onEnterFrame = null;
}
if (this.rSpeed == -5) {
_root.score = this.rA[1];
trace(this.i);
delete this.i;
delete this.rSpeed;
this._parent.bonusMovie.gotoAndStop(this.result);
this._parent.bonusMovie.move();
this.snd.start();
this.onEnterFrame = null;
}
}
};
}
this.rSpeed = 90;
}
Instance of Symbol 308 MovieClip "roulette" in Symbol 350 MovieClip Frame 22
onClipEvent (load) {
function spin() {
this._parent.rarrow.move();
this.rA = this._parent.betting(_root.score);
this.result = this.rA[0];
trace(result);
this.onEnterFrame = function () {
this.i++;
this._rotation = this._rotation + this.rSpeed;
if (this.i >= 12) {
if (this.i == 12) {
this.snd = new Sound();
if (this.result == 1) {
this.snd.attachSound("bonusNo");
this._rotation = this._rotation - 80;
} else if (this.result == 2) {
this._rotation = this._rotation - 110;
this.snd.attachSound("bonusYes");
} else if (this.result == 3) {
this._rotation = this._rotation - 155;
this.snd.attachSound("bonusYes");
} else if (this.result == 4) {
this._rotation = this._rotation - 200;
this.snd.attachSound("bonusNo");
} else if (this.result == 5) {
this._rotation = this._rotation - 290;
this.snd.attachSound("bonusNo");
} else if (this.result == 6) {
this._rotation = this._rotation - 370;
this.snd.attachSound("bonusYes");
} else if (this.result == 7) {
this._rotation = this._rotation - 327;
this.snd.attachSound("bonusYes");
} else if (this.result == 8) {
this._rotation = this._rotation - 390;
this.snd.attachSound("bonusNo");
}
}
if (this.rSpeed > 10) {
this.rSpeed = this.rSpeed - 1;
} else if (this.rSpeed <= 10) {
this.rSpeed = this.rSpeed - 0.5;
}
if (this.rSpeed == 10) {
this._parent.rarrow.gotoAndStop(1);
delete this._parent.rarrow.j;
this._parent.rarrow.onEnterFrame = null;
}
if (this.rSpeed == -5) {
_root.tScore = _root.score;
_root.score = this.rA[1];
this["v" + this.result].play();
trace(this.i);
delete this.i;
delete this.rSpeed;
this._parent.bonusMovie.gotoAndStop(this.result);
this._parent.bonusMovie.move();
this.snd.start();
this.onEnterFrame = null;
}
}
};
}
this.rSpeed = 90;
}
Instance of Symbol 345 MovieClip in Symbol 350 MovieClip Frame 22
onClipEvent (load) {
this._visible = 0;
this.stop();
timer1 = getTimer();
}
onClipEvent (enterFrame) {
if (!_global.betting) {
if (((getTimer() - timer1) >= 5000) && (!this._visible)) {
this._visible = 1;
timer2 = getTimer();
}
if (this._visible) {
if ((getTimer() - timer2) >= 1000) {
if (this._currentframe < 6) {
this.nextFrame();
timer2 = getTimer();
} else {
_global.betting = 1;
_parent.gotoAndPlay("timeOut");
}
}
}
}
}
Instance of Symbol 340 MovieClip "scorePlate" in Symbol 350 MovieClip Frame 26
onClipEvent (load) {
scoreView = function (val, as) {
v1 = Math.floor(val / 1000000);
v2 = Math.floor((val % 1000000) / 100000);
v3 = Math.floor((val % 100000) / 10000);
v4 = Math.floor((val % 10000) / 1000);
v5 = Math.floor((val % 1000) / 100);
v6 = Math.floor((val % 100) / 10);
v7 = Math.floor((val % 10) / 1);
n1.roll(v7);
if (as) {
n7.gos = 1;
}
trace(v1);
};
}
Symbol 350 MovieClip Frame 31
roulette.spin();
stop();
Instance of Symbol 340 MovieClip "scorePlate" in Symbol 350 MovieClip Frame 32
onClipEvent (load) {
scoreView = function (val, as) {
v1 = Math.floor(val / 1000000);
v2 = Math.floor((val % 1000000) / 100000);
v3 = Math.floor((val % 100000) / 10000);
v4 = Math.floor((val % 10000) / 1000);
v5 = Math.floor((val % 1000) / 100);
v6 = Math.floor((val % 100) / 10);
v7 = Math.floor((val % 10) / 1);
n1.roll(v7);
if (as) {
n7.gos = 1;
}
trace(v1);
};
v1 = Math.floor(_root.tScore / 1000000);
v2 = Math.floor((_root.tScore % 1000000) / 100000);
v3 = Math.floor((_root.tScore % 100000) / 10000);
v4 = Math.floor((_root.tScore % 10000) / 1000);
v5 = Math.floor((_root.tScore % 1000) / 100);
v6 = Math.floor((_root.tScore % 100) / 10);
v7 = Math.floor((_root.tScore % 10) / 1);
n1.gotoAndStop(v7 + 1);
n2.gotoAndStop(v6 + 1);
n3.gotoAndStop(v5 + 1);
n4.gotoAndStop(v4 + 1);
n5.gotoAndStop(v3 + 1);
n6.gotoAndStop(v2 + 1);
n7.gotoAndStop(v1 + 1);
}
Instance of Symbol 340 MovieClip in Symbol 350 MovieClip Frame 35
onClipEvent (load) {
scoreView = function (val, as) {
v1 = Math.floor(val / 1000000);
v2 = Math.floor((val % 1000000) / 100000);
v3 = Math.floor((val % 100000) / 10000);
v4 = Math.floor((val % 10000) / 1000);
v5 = Math.floor((val % 1000) / 100);
v6 = Math.floor((val % 100) / 10);
v7 = Math.floor((val % 10) / 1);
n1.roll(v7);
if (as) {
n7.gos = 1;
}
trace(v1);
};
}
Instance of Symbol 340 MovieClip "scorePlate" in Symbol 350 MovieClip Frame 35
onClipEvent (load) {
scoreView = function (val, as) {
v1 = Math.floor(val / 1000000);
v2 = Math.floor((val % 1000000) / 100000);
v3 = Math.floor((val % 100000) / 10000);
v4 = Math.floor((val % 10000) / 1000);
v5 = Math.floor((val % 1000) / 100);
v6 = Math.floor((val % 100) / 10);
v7 = Math.floor((val % 10) / 1);
n1.roll(v7);
if (as) {
n7.gos = 1;
}
trace(v1);
};
v1 = Math.floor(_root.tScore / 1000000);
v2 = Math.floor((_root.tScore % 1000000) / 100000);
v3 = Math.floor((_root.tScore % 100000) / 10000);
v4 = Math.floor((_root.tScore % 10000) / 1000);
v5 = Math.floor((_root.tScore % 1000) / 100);
v6 = Math.floor((_root.tScore % 100) / 10);
v7 = Math.floor((_root.tScore % 10) / 1);
n1.gotoAndStop(v7 + 1);
n2.gotoAndStop(v6 + 1);
n3.gotoAndStop(v5 + 1);
n4.gotoAndStop(v4 + 1);
n5.gotoAndStop(v3 + 1);
n6.gotoAndStop(v2 + 1);
n7.gotoAndStop(v1 + 1);
}
Symbol 350 MovieClip Frame 40
scorePlate.scoreView(_root.score, 1);
stop();
Symbol 350 MovieClip Frame 60
score = _root.score;
this.loadVariables("http://heartwalk.com/score.php", "POST");
_root.mainMsg = _root.mainMsg + (("\n-\uCD5C\uC885\uC810\uC218 : " + score) + " \uC810");
_root.mainMsg = _root.mainMsg + "\n-\uAC8C\uC784\uACB0\uACFC\uB97C \uC800\uC7A5\uD569\uB2C8\uB2E4.";
_root.mainMsg.scroll = _root.mainMsg.maxscroll;
Instance of Symbol 340 MovieClip "scorePlate" in Symbol 350 MovieClip Frame 60
onClipEvent (load) {
scoreView = function (val) {
v1 = Math.floor(val / 1000000);
v2 = Math.floor((val % 1000000) / 100000);
v3 = Math.floor((val % 100000) / 10000);
v4 = Math.floor((val % 10000) / 1000);
v5 = Math.floor((val % 1000) / 100);
v6 = Math.floor((val % 100) / 10);
v7 = Math.floor((val % 10) / 1);
n1.gotoAndStop(v7 + 1);
n2.gotoAndStop(v6 + 1);
n3.gotoAndStop(v5 + 1);
n4.gotoAndStop(v4 + 1);
n5.gotoAndStop(v3 + 1);
n6.gotoAndStop(v2 + 1);
n7.gotoAndStop(v1 + 1);
};
scoreView(_root.score);
}
Symbol 350 MovieClip Frame 97
scorePlate.onEnterFrame = function () {
this.i++;
if (this.i < 2) {
this._y = this._y - 2;
} else if (this.i < 3) {
this._y = this._y + 2;
} else if (this.i < 20) {
this._y = this._y - 70;
} else {
_global.betting = 0;
_root.mainMsg = "";
_root.gotoAndStop("ready");
}
};
roul.onEnterFrame = function () {
this.i++;
if (this.i < 2) {
this._y = this._y - 2;
} else if (this.i < 3) {
this._y = this._y + 2;
} else {
this._y = this._y - 70;
}
};
roulette.onEnterFrame = function () {
this.i++;
if (this.i < 2) {
this._y = this._y - 2;
} else if (this.i < 3) {
this._y = this._y + 2;
} else {
this._y = this._y - 70;
}
};
trace("sc=" + sc);
stop();
Symbol 397 Button
on (release) {
getURL ("http://www.puppyred.com", "_blank");
}
Symbol 400 Button
on (release) {
getURL ("http://www.puppyred.com", "_blank");
}
Symbol 414 Button
on (release) {
_root.sndvolume.setVolume(0);
nextFrame();
}
Symbol 416 Button
on (release) {
_root.sndvolume.setVolume(100);
prevFrame();
}
Symbol 417 MovieClip Frame 1
stop();
Instance of Symbol 420 MovieClip in Symbol 421 MovieClip Frame 1
onClipEvent (enterFrame) {
i++;
if (i <= 24) {
this._rotation = this._rotation - 0.5;
} else if (i <= 48) {
this._rotation = this._rotation + 0.5;
} else {
i = 0;
}
}
Symbol 425 MovieClip Frame 8
stop();
Symbol 441 Button
on (release) {
gotoAndStop (4);
}
Symbol 480 Button
on (release) {
gotoAndStop (9);
}
Symbol 484 Button
on (release, keyPress "<Enter>") {
if (!click) {
item1 = uitem1;
item2 = uitem2;
item3 = uitem3;
item4 = uitem4;
if (item2 == 1) {
shoot = 3;
}
stg = 1;
_global.dead = 0;
click = 1;
i = 0;
((snd_startBtn = new Sound())).attachSound("click");
snd_startBtn.start();
_root.onEnterFrame = function () {
trace(i);
i++;
if (i == 6) {
itemOb.userTemp = 1;
delete i;
delete click;
_root.onEnterFrame = null;
gotoAndStop (9);
}
};
}
}