Frame 1
cHOSTSERVER = "";
cURLHOME = "http://www.dacamyo.net/";
Frame 3
gotoAndPlay (10);
Frame 10
stop();
Frame 19
gotoAndPlay (10);
Frame 29
gotoAndStop(_totalframes);
Frame 30
getURL (cURLHOME, "_blank");
stop();
Symbol 6 MovieClip Frame 1
_root.stop();
vPercentLoaded = Math.floor((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
if (vPercentLoaded != 100) {
vDynTxtLoading = vPercentLoaded + "%";
} else {
gotoAndPlay (10);
}
Symbol 6 MovieClip Frame 9
gotoAndPlay (1);
Symbol 6 MovieClip Frame 10
_root.play();
stop();
Symbol 7 MovieClip Frame 1
function myoCopyrightOk() {
var bOk = false;
var sProtocol;
var sServer;
var sDoubleSlash;
sProtocol = _url.substr(0, _url.indexOf(":"));
sProtocol = sProtocol.toLowerCase();
if ((sProtocol == "http") or (sProtocol == "https")) {
if (_root.cHOSTSERVER == "") {
bOk = true;
} else {
sDoubleSlash = _url.indexOf("//");
sServer = _url.substr(sDoubleSlash + 2, (_url.indexOf("/", sDoubleSlash + 2) - sDoubleSlash) - 2);
sServer = sServer.toLowerCase();
if (sServer.indexOf("www.") != -1) {
sServer = sServer.substr(sServer.indexOf("www.") + 4, sServer.length);
}
bOk = sServer.indexOf(_root.cHOSTSERVER) != -1;
}
} else if (sProtocol == "file") {
bOk = false;
} else {
bOk = false;
}
return(bOk);
}
_root.stop();
if (myoCopyrightOk() != true) {
_root.gotoAndStop(_root._totalframes);
} else {
_root.play();
}
stop();
Symbol 11 MovieClip [mcPlayerShot] Frame 1
_visible = false;
iShotType = 1;
stop();
Symbol 11 MovieClip [mcPlayerShot] Frame 2
_x = (_parent.mcPlayer._x + 60);
_y = _parent.mcPlayer._y;
_visible = true;
gotoAndPlay("goType" + iShotType);
Symbol 11 MovieClip [mcPlayerShot] Frame 4
gotoAndStop (1);
Symbol 11 MovieClip [mcPlayerShot] Frame 5
xstep = 60;
ystep = 0;
Symbol 11 MovieClip [mcPlayerShot] Frame 6
_x = (_x + xstep);
_y = (_y + ystep);
Symbol 11 MovieClip [mcPlayerShot] Frame 8
if (_visible and (_x < 570)) {
gotoAndPlay (6);
}
Symbol 11 MovieClip [mcPlayerShot] Frame 9
this.removeMovieClip();
stop();
Symbol 14 MovieClip Frame 1
if (_root.mcGame.vOptSfxOn) {
_root.mcGame.oSoundfx.attachSound("sfxExplosion");
_root.mcGame.oSoundfx.start(0, 0);
}
Symbol 14 MovieClip Frame 10
_parent.play();
Symbol 14 MovieClip Frame 11
stop();
Symbol 18 MovieClip Frame 10
gotoAndPlay (1);
Symbol 22 MovieClip Frame 1
bHowtoMode = false;
stop();
Symbol 22 MovieClip Frame 2
if (_root.mcGame.vOptSfxOn and (!bHowtoMode)) {
_root.mcGame.oSoundfx.attachSound("sfxPlayerFire");
_root.mcGame.oSoundfx.start(0, 0);
}
Symbol 22 MovieClip Frame 4
gotoAndStop (1);
Symbol 24 MovieClip Frame 1
stop();
Symbol 24 MovieClip Frame 2
if (_root.mcGame.vOptSfxOn) {
_root.mcGame.oSoundfx.attachSound("sfxPlayerShield");
_root.mcGame.oSoundfx.start(0, 0);
}
Symbol 24 MovieClip Frame 4
gotoAndStop (1);
Symbol 25 MovieClip Frame 1
function myFire() {
var bResult = false;
var sInstanceName;
if (iFireDelay > 1) {
iFireDelay--;
} else {
iFireDelay = 2;
sInstanceName = (_name + "Shot") + iFireShot;
_root.mcGame.mcBoard.mcArea.attachMovie("mcPlayerShot", sInstanceName, (10000 + iFireShot) - this.getDepth());
eval ("_root.mcGame.mcBoard.mcArea." + sInstanceName).gotoAndPlay("goMove");
mcPlayerFire.play();
if (iFireShot < 4) {
iFireShot++;
} else {
iFireShot = 1;
}
bResult = true;
}
return(bResult);
}
function myHitArea() {
var bResult = false;
if (this.hittest(_root.mcGame.mcBoard.mcArea.mcAreaTop) or this.hittest(_root.mcGame.mcBoard.mcArea.mcAreaBtm)) {
iDefence--;
bResult = true;
}
return(bResult);
}
Mouse.show();
_visible = false;
iPlayerType = 1;
iDefence = 0;
iPower = 1;
iFireDelay = 0;
iFireShot = 1;
bFireOn = false;
stop();
Symbol 25 MovieClip Frame 2
_x = _root.mcGame.mcBoard.mcArea._xmouse;
_y = _root.mcGame.mcBoard.mcArea._ymouse;
_visible = true;
Mouse.hide();
gotoAndPlay("goType" + iPlayerType);
Symbol 25 MovieClip Frame 4
gotoAndStop (1);
Symbol 25 MovieClip Frame 5
bFireOn = false;
Symbol 25 MovieClip Frame 9
_visible = false;
stop();
Symbol 25 MovieClip Frame 10
if (iDefence < 1) {
iDefence = 300;
_root.mcGame.mcDisplay.mcDisplayShield.cMaxValue = iDefence;
}
Instance of Symbol 20 MovieClip "mcPlayerType1" in Symbol 25 MovieClip Frame 10
onClipEvent (mouseMove) {
var newx = _root.mcGame.mcBoard.mcArea._xmouse;
if (newx < 30) {
newx = 30;
} else if (newx > 510) {
newx = 510;
}
var newy = _root.mcGame.mcBoard.mcArea._ymouse;
if (newy < 30) {
newy = 30;
} else if (newy > 330) {
newy = 330;
}
_parent._x = newx;
_parent._y = newy;
}
onClipEvent (mouseDown) {
iFireDelay = 0;
_parent.myFire();
_parent.bFireOn = true;
}
onClipEvent (mouseUp) {
_parent.bFireOn = false;
}
Symbol 25 MovieClip Frame 11
if (myHitArea()) {
mcPlayerShield.play();
}
if (bFireOn) {
myFire();
}
Symbol 25 MovieClip Frame 13
if (iDefence < 1) {
gotoAndPlay (5);
} else {
gotoAndPlay (11);
}
Symbol 25 MovieClip Frame 14
gotoAndPlay (2);
Symbol 27 MovieClip Frame 1
stop();
Symbol 29 MovieClip Frame 1
stop();
Symbol 35 MovieClip Frame 20
gotoAndPlay (1);
Symbol 39 MovieClip Frame 1
stop();
Symbol 39 MovieClip Frame 2
if (_root.mcGame.vOptSfxOn) {
_root.mcGame.oSoundfx.attachSound("sfxEnemyShield");
_root.mcGame.oSoundfx.start(0, 0);
}
Symbol 39 MovieClip Frame 4
gotoAndStop (1);
Symbol 46 MovieClip Frame 1
function myHitShot() {
var bResult = false;
var i;
var curShot;
i = 1;
while (i <= 4) {
curShot = eval ("_root.mcGame.mcBoard.mcArea.mcPlayerShot" + i);
if (this.hittest(curShot)) {
curShot._visible = false;
iDefence = iDefence - _root.mcGame.mcBoard.mcArea.mcPlayer.iPower;
bResult = true;
}
i++;
}
return(bResult);
}
function myHitPlayer() {
var bResult = false;
if (this.hittest(_root.mcGame.mcBoard.mcArea.mcPlayer)) {
if (iEnemyType > 0) {
with (_root.mcGame.mcBoard.mcArea.mcPlayer) {
iDefence--;
mcPlayerShield.play();
}
} else {
bCollected = true;
}
bResult = true;
}
return(bResult);
}
function myHitArea() {
var bResult = false;
if (this.hittest(_root.mcGame.mcBoard.mcArea.mcAreaTop)) {
ystep = 6 + Math.floor(Math.Random() * 12);
bResult = true;
} else if (this.hittest(_root.mcGame.mcBoard.mcArea.mcAreaBtm)) {
ystep = -(6 + Math.floor(Math.Random() * 12));
bResult = true;
}
return(bResult);
}
_visible = false;
iEnemyType = 1;
iDefence = 0;
iPoints = 0;
bCollected = false;
bMoveOn = false;
stop();
Symbol 46 MovieClip Frame 2
bMoveOn = true;
Symbol 46 MovieClip Frame 3
if (bMoveOn) {
_x = 570;
_y = (30 + Math.floor(Math.Random() * 300));
_visible = true;
r = 1 + Math.floor(Math.Random() * 12);
if (!(r % 12)) {
iEnemyType = 4;
} else if (!(r % 6)) {
iEnemyType = 3;
} else if (!(r % 3)) {
iEnemyType = 2;
} else {
iEnemyType = 1;
}
gotoAndPlay("goType" + iEnemyType);
}
Symbol 46 MovieClip Frame 4
gotoAndStop (1);
Symbol 46 MovieClip Frame 5
iEnemyType = 0;
r = 1 + Math.floor(Math.Random() * 12);
if (!(r % 12)) {
iPoints = 1;
mcEnemyBonus.vDynTxtPoints = "POWER";
} else if (!(r % 6)) {
iPoints = 2;
mcEnemyBonus.vDynTxtPoints = "SHIELD";
} else {
iPoints = (25 * (1 + Math.floor(Math.Random() * 20))) * _root.mcGame.mcBoard.mcArea.iLevel;
mcEnemyBonus.vDynTxtPoints = iPoints;
}
bCollected = false;
Symbol 46 MovieClip Frame 6
myHitPlayer();
myHitArea();
_x = (_x + xstep);
_y = (_y + ystep);
Symbol 46 MovieClip Frame 8
if ((!bCollected) and (_x > -30)) {
gotoAndPlay (6);
}
Symbol 46 MovieClip Frame 9
if (bCollected) {
switch (this.iPoints) {
case 1 :
_root.mcGame.mcBoard.mcArea.mcPlayer.iPower++;
_root.mcGame.oSoundfx.attachSound("sfxBonusPower");
break;
case 2 :
_root.mcGame.mcBoard.mcArea.mcPlayer.iDefence = _root.mcGame.mcDisplay.mcDisplayShield.cMaxValue;
_root.mcGame.oSoundfx.attachSound("sfxBonusShield");
break;
default :
_root.mcGame.vCountPoints = _root.mcGame.vCountPoints + this.iPoints;
_root.mcGame.oSoundfx.attachSound("sfxBonusExtra");
}
if (_root.mcGame.vOptSfxOn) {
_root.mcGame.oSoundfx.start(0, 0);
}
}
gotoAndPlay (3);
Symbol 46 MovieClip Frame 10
stop();
Symbol 46 MovieClip Frame 14
_root.mcGame.vCountPoints = _root.mcGame.vCountPoints + this.iPoints;
gotoAndPlay (3);
Symbol 46 MovieClip Frame 15
iPoints = 10 * _root.mcGame.mcBoard.mcArea.iLevel;
xstep = -((12 + Math.floor(Math.Random() * 24)) * _root.mcGame.mcBoard.mcArea.iLevel);
ystep = 0;
iDefence = 1;
Symbol 46 MovieClip Frame 16
myHitShot();
myHitPlayer();
myHitArea();
_x = (_x + xstep);
_y = (_y + ystep);
Symbol 46 MovieClip Frame 18
if (iDefence < 1) {
gotoAndPlay (10);
} else if (_x > -30) {
gotoAndPlay (16);
}
Symbol 46 MovieClip Frame 19
gotoAndPlay (3);
Symbol 46 MovieClip Frame 20
iPoints = 25 * _root.mcGame.mcBoard.mcArea.iLevel;
xstep = -((12 + Math.floor(Math.Random() * 24)) * _root.mcGame.mcBoard.mcArea.iLevel);
ystep = 0;
iDefence = 3;
Symbol 46 MovieClip Frame 21
if (myHitShot()) {
mcEnemyShield.play();
}
myHitPlayer();
myHitArea();
y1 = Math.floor(_parent.mcPlayer._y / 12);
y2 = Math.floor(_y / 12);
if (y1 < y2) {
ystep = -12;
} else if (y1 > y2) {
ystep = 12;
} else {
ystep = 0;
}
_x = (_x + xstep);
_y = (_y + ystep);
Symbol 46 MovieClip Frame 23
if (iDefence < 1) {
gotoAndPlay (10);
} else if (_x > -30) {
gotoAndPlay (21);
}
Symbol 46 MovieClip Frame 24
gotoAndPlay (3);
Symbol 46 MovieClip Frame 25
iPoints = 100 * _root.mcGame.mcBoard.mcArea.iLevel;
xstep = -((12 + Math.floor(Math.Random() * 24)) * _root.mcGame.mcBoard.mcArea.iLevel);
ystep = 0;
iDefence = 7;
Symbol 46 MovieClip Frame 26
if (myHitShot()) {
mcEnemyShield.play();
}
myHitPlayer();
myHitArea();
_x = (_x + xstep);
_y = (_y + ystep);
Symbol 46 MovieClip Frame 28
if (iDefence < 1) {
gotoAndPlay (5);
} else if (_x > -30) {
gotoAndPlay (26);
}
Symbol 46 MovieClip Frame 29
gotoAndPlay (3);
Symbol 46 MovieClip Frame 30
iPoints = 0 * _root.mcGame.mcBoard.mcArea.iLevel;
xstep = -((12 + Math.floor(Math.Random() * 24)) * _root.mcGame.mcBoard.mcArea.iLevel);
ystep = 0;
iDefence = 999;
Symbol 46 MovieClip Frame 31
if (myHitShot()) {
mcEnemyShield.play();
}
myHitPlayer();
myHitArea();
_x = (_x + xstep);
_y = (_y + ystep);
Symbol 46 MovieClip Frame 33
if (iDefence < 1) {
gotoAndPlay (10);
} else if (_x > -30) {
gotoAndPlay (31);
}
Symbol 46 MovieClip Frame 34
gotoAndPlay (3);
Symbol 47 MovieClip [mcDefenceShot] Frame 1
function myHitPlayer() {
var bResult = false;
if (this.hittest(_root.mcGame.mcBoard.mcArea.mcPlayer)) {
if (iShotType > 0) {
_visible = false;
with (_root.mcGame.mcBoard.mcArea.mcPlayer) {
iDefence--;
mcPlayerShield.play();
}
}
bResult = true;
}
return(bResult);
}
_visible = false;
iShotType = 1;
stop();
Symbol 47 MovieClip [mcDefenceShot] Frame 2
_visible = true;
gotoAndPlay("goType" + iShotType);
Symbol 47 MovieClip [mcDefenceShot] Frame 4
gotoAndStop (1);
Symbol 47 MovieClip [mcDefenceShot] Frame 5
xstep = 60;
ystep = 0;
Symbol 47 MovieClip [mcDefenceShot] Frame 6
myHitPlayer();
_x = (_x - xstep);
_y = (_y - ystep);
Symbol 47 MovieClip [mcDefenceShot] Frame 8
if (_visible and (_x > -30)) {
gotoAndPlay (6);
}
Symbol 47 MovieClip [mcDefenceShot] Frame 9
this.removeMovieClip();
stop();
Symbol 49 MovieClip Frame 25
gotoAndPlay (1);
Symbol 53 MovieClip Frame 1
stop();
Symbol 53 MovieClip Frame 2
if (_root.mcGame.vOptSfxOn) {
_root.mcGame.oSoundfx.attachSound("sfxDefenceFire");
_root.mcGame.oSoundfx.start(0, 0);
}
Symbol 53 MovieClip Frame 4
gotoAndStop (1);
Symbol 55 MovieClip Frame 1
stop();
Symbol 55 MovieClip Frame 2
if (_root.mcGame.vOptSfxOn) {
_root.mcGame.oSoundfx.attachSound("sfxEnemyShield");
_root.mcGame.oSoundfx.start(0, 0);
}
Symbol 55 MovieClip Frame 4
gotoAndStop (1);
Symbol 56 MovieClip Frame 1
function myFire() {
var bResult = false;
var sInstanceName;
var curShot;
if (iFireDelay > 1) {
iFireDelay--;
} else {
iFireDelay = 2 + Math.floor(Math.random() * 25);
sInstanceName = (_name + "Shot") + iFireShot;
_root.mcGame.mcBoard.mcArea.attachMovie("mcDefenceShot", sInstanceName, (10000 + iFireShot) - this.getDepth());
curShot = eval ("_root.mcGame.mcBoard.mcArea." + sInstanceName);
curShot._x = _root.mcGame.mcBoard.mcArea.mcBoss._x + this._x;
curShot._y = _root.mcGame.mcBoard.mcArea.mcBoss._y + this._y;
curShot.gotoAndPlay("goMove");
mcDefenceFire.play();
if (iFireShot < 4) {
iFireShot++;
} else {
iFireShot = 1;
}
bResult = true;
}
return(bResult);
}
function myHitShot() {
var bResult = false;
var i;
var curShot;
i = 1;
while (i <= 4) {
curShot = eval ("_root.mcGame.mcBoard.mcArea.mcPlayerShot" + i);
if (this.hittest(curShot)) {
curShot._visible = false;
iDefence = iDefence - _root.mcGame.mcBoard.mcArea.mcPlayer.iPower;
bResult = true;
}
i++;
}
return(bResult);
}
_visible = false;
iDefenceType = 1;
iDefence = 0;
iPoints = 0;
iFireDelay = 0;
iFireShot = 1;
bFireOn = false;
Symbol 56 MovieClip Frame 2
_visible = true;
bFireOn = true;
gotoAndPlay("goType" + iDefenceType);
Symbol 56 MovieClip Frame 4
gotoAndStop (1);
Symbol 56 MovieClip Frame 5
bFireOn = false;
stop();
Symbol 56 MovieClip Frame 9
_root.mcGame.vCountPoints = _root.mcGame.vCountPoints + this.iPoints;
stop();
Symbol 56 MovieClip Frame 10
iPoints = 500 * _root.mcGame.mcBoard.mcArea.iLevel;
iDefence = 25;
Symbol 56 MovieClip Frame 11
if (myHitShot()) {
mcDefenceShield.play();
}
myHitPlayer();
if (bFireOn) {
myFire();
}
Symbol 56 MovieClip Frame 13
if (iDefence < 1) {
gotoAndPlay (5);
} else {
gotoAndPlay (11);
}
Symbol 56 MovieClip Frame 14
gotoAndPlay (2);
Symbol 57 MovieClip Frame 25
gotoAndPlay (1);
Symbol 58 MovieClip Frame 1
function myHitShot() {
var bResult = false;
var i;
var curShot;
i = 1;
while (i <= 4) {
curShot = eval ("_root.mcGame.mcBoard.mcArea.mcPlayerShot" + i);
if (hittest(curShot)) {
curShot._visible = false;
_parent.iDefence = _parent.iDefence - _root.mcGame.mcBoard.mcArea.mcPlayer.iPower;
bResult = true;
}
i++;
}
return(bResult);
}
Symbol 58 MovieClip Frame 2
if (myHitShot()) {
_parent.mcBossShield.play();
}
Symbol 58 MovieClip Frame 4
gotoAndPlay (2);
Symbol 59 MovieClip Frame 1
stop();
Symbol 59 MovieClip Frame 2
if (_root.mcGame.vOptSfxOn) {
_root.mcGame.oSoundfx.attachSound("sfxBossShield");
_root.mcGame.oSoundfx.start(0, 0);
}
Symbol 59 MovieClip Frame 4
gotoAndStop (1);
Symbol 60 MovieClip Frame 1
function myHitShot() {
var bResult = false;
var i;
var curShot;
i = 1;
while (i <= 4) {
curShot = eval ("_root.mcGame.mcBoard.mcArea.mcPlayerShot" + i);
if (this.hittest(curShot) and (curShot._x > this._x)) {
curShot._visible = false;
bResult = true;
}
i++;
}
return(bResult);
}
function myHitPlayer() {
var bResult = false;
if (this.hittest(_root.mcGame.mcBoard.mcArea.mcPlayer)) {
with (_root.mcGame.mcBoard.mcArea.mcPlayer) {
iDefence--;
mcPlayerShield.play();
}
bResult = true;
}
return(bResult);
}
_visible = false;
_x = 630;
_y = 180;
xmin = _x;
xmax = _x;
iDefence = 50;
iPoints = 3000 * _root.mcGame.mcBoard.mcArea.iLevel;
bMoveOn = false;
stop();
Symbol 60 MovieClip Frame 2
bMoveOn = true;
Symbol 60 MovieClip Frame 3
if (bMoveOn) {
_visible = true;
if (_x > xmax) {
if (_root.mcGame.vOptSfxOn) {
_root.mcGame.oSoundfx.attachSound("sfxBossMove");
_root.mcGame.oSoundfx.start(0, 0);
}
gotoAndPlay (5);
} else {
gotoAndPlay (10);
}
}
Symbol 60 MovieClip Frame 4
gotoAndStop (1);
Symbol 60 MovieClip Frame 5
xstep = -(12 + Math.floor(Math.Random() * 12));
ystep = 0;
xmin = 90;
xmin = xmin + Math.floor(Math.Random() * (xmax - xmin));
Symbol 60 MovieClip Frame 6
myHitShot();
myHitPlayer();
_x = (_x + xstep);
_y = (_y + ystep);
Symbol 60 MovieClip Frame 8
if (iDefence < 1) {
gotoAndPlay (15);
} else if (_x > xmin) {
gotoAndPlay (6);
}
Symbol 60 MovieClip Frame 9
gotoAndPlay (3);
Symbol 60 MovieClip Frame 10
xstep = 12 + Math.floor(Math.Random() * 12);
ystep = 0;
xmax = 540;
xmax = xmax + Math.floor(Math.Random() * (xmin - xmax));
Symbol 60 MovieClip Frame 11
myHitShot();
myHitPlayer();
_x = (_x + xstep);
_y = (_y + ystep);
Symbol 60 MovieClip Frame 13
if (iDefence < 1) {
gotoAndPlay (15);
} else if (_x < xmax) {
gotoAndPlay (11);
}
Symbol 60 MovieClip Frame 14
gotoAndPlay (3);
Symbol 60 MovieClip Frame 15
bMoveOn = false;
Symbol 60 MovieClip Frame 19
_root.mcGame.vCountPoints = _root.mcGame.vCountPoints + this.iPoints;
_visible = false;
stop();
Symbol 62 MovieClip Frame 1
iLevel = 0;
iLoop = 0;
stop();
Symbol 62 MovieClip Frame 2
iLevel = 1;
Symbol 62 MovieClip Frame 4
mcAreaTop._y = -200;
mcAreaBtm._y = 360;
mcPlayer.gotoAndPlay("goMove");
Symbol 62 MovieClip Frame 10
stopAllSounds();
if (_root.mcGame.vOptSfxOn) {
_root.mcGame.oSoundfx.attachSound("mscLevelLoop");
_root.mcGame.oSoundfx.start(0, 9999);
}
iLoop = 250;
Symbol 62 MovieClip Frame 11
var i = 1;
while (i <= 6) {
eval ("mcEnemy" + i).gotoAndPlay("goMove");
i++;
}
if (_root.mcGame.vOptSfxOn) {
_root.mcGame.oSoundfx.attachSound("sfxAttack");
_root.mcGame.oSoundfx.start(0, 0);
}
Symbol 62 MovieClip Frame 12
if (!(iLoop % 10)) {
if (mcAreaTop._y < -110) {
if (_root.mcGame.vOptSfxOn) {
_root.mcGame.oSoundfx.attachSound("sfxCreak");
_root.mcGame.oSoundfx.start(0, 0);
}
mcAreaTop._y = mcAreaTop._y + 6;
mcAreaBtm._y = mcAreaBtm._y - 6;
}
}
Symbol 62 MovieClip Frame 18
iLoop--;
if (!mcPlayer._visible) {
gotoAndPlay (70);
} else if (iLoop > 0) {
gotoAndPlay (12);
}
Symbol 62 MovieClip Frame 19
var i = 1;
while (i <= 6) {
eval ("mcEnemy" + i).bMoveOn = false;
i++;
}
Symbol 62 MovieClip Frame 22
if (!mcPlayer._visible) {
gotoAndPlay (70);
} else {
var i = 1;
while (i <= 6) {
if (eval ("mcEnemy" + i)._visible) {
gotoAndPlay (20);
}
i++;
}
}
Symbol 62 MovieClip Frame 25
stopAllSounds();
if (_root.mcGame.vOptSfxOn) {
_root.mcGame.oSoundfx.attachSound("mscBossLoop");
_root.mcGame.oSoundfx.start(0, 9999);
}
mcAreaTop._y = -110;
mcAreaBtm._y = 270;
Symbol 62 MovieClip Frame 26
mcBoss.gotoAndPlay("goMove");
Symbol 62 MovieClip Frame 33
if (!mcPlayer._visible) {
gotoAndPlay (70);
} else if (mcBoss._visible) {
gotoAndPlay (27);
}
Symbol 62 MovieClip Frame 36
if (_root.mcGame.vOptSfxOn) {
_root.mcGame.oSoundfx.attachSound("sfxSteam");
_root.mcGame.oSoundfx.start(0, 0);
}
Symbol 62 MovieClip Frame 68
Symbol 62 MovieClip Frame 69
iLevel++;
gotoAndPlay (4);
Symbol 62 MovieClip Frame 71
stopAllSounds();
if (_root.mcGame.vOptSfxOn) {
_root.mcGame.oSoundfx.attachSound("sfxGameOver");
_root.mcGame.oSoundfx.start(0, 0);
}
Symbol 62 MovieClip Frame 120
_root.mcGame.mcBoard.gotoAndPlay("goGameOver");
stop();
Symbol 63 MovieClip Frame 1
if (!vInitOk) {
vInitOk = true;
}
Mouse.show();
stop();
Symbol 63 MovieClip Frame 2
mcArea.gotoAndPlay("goPlay");
Mouse.show();
stop();
Symbol 63 MovieClip Frame 3
Symbol 63 MovieClip Frame 24
_root.mcGame.gotoAndPlay("goPlayWin");
Symbol 63 MovieClip Frame 25
Mouse.show();
stop();
Symbol 67 MovieClip Frame 1
vDynTxtTime = _root.mcGame.mcDisplay.myGetTimeStr(_root.mcGame.vCountTime);
stop();
Symbol 67 MovieClip Frame 2
vDynTxtTime = _root.mcGame.mcDisplay.myGetTimeStr(getTimer() - _root.mcGame.vCountTime);
_root.mcGame.mcDisplay.vDynTxtPoints = _root.mcGame.vCountPoints;
with (_root.mcGame.mcDisplay.mcDisplayShield) {
mcProgressBar._width = cMaxWidth * (_root.mcGame.mcBoard.mcArea.mcPlayer.iDefence / cMaxValue);
if (mcProgressBar._width > (cMaxWidth * 0.5)) {
colBar.setRGB(52224);
} else if (mcProgressBar._width > (cMaxWidth * 0.25)) {
colBar.setRGB(16763955);
} else {
colBar.setRGB(16724736);
}
}
Symbol 67 MovieClip Frame 4
gotoAndPlay (2);
Symbol 70 Button
on (release) {
with (_root.mcGame) {
vOptSfxOn = !vOptSfxOn;
if (vOptSfxOn) {
this.vDynTxtOptSfxOn = "ON";
} else {
stopAllSounds();
this.vDynTxtOptSfxOn = "OFF";
}
}
}
Symbol 73 Button
on (release) {
_root.mcGame.myoMenuHighscoresClick();
}
Symbol 87 MovieClip Frame 1
with (mcPlayerFire) {
bHowtoMode = true;
play();
}
Symbol 87 MovieClip Frame 12
with (mcPlayerFire) {
bHowtoMode = true;
play();
}
Symbol 87 MovieClip Frame 25
with (mcPlayerFire) {
bHowtoMode = true;
play();
}
Symbol 87 MovieClip Frame 37
with (mcPlayerFire) {
bHowtoMode = true;
play();
}
Symbol 87 MovieClip Frame 50
gotoAndPlay (1);
Symbol 93 Button
on (release) {
_root.mcGame.gotoAndPlay("goPlay");
}
Symbol 100 MovieClip Frame 1
colBar = new Color(mcProgressBar);
cMaxValue = 0;
cMaxWidth = 320;
Symbol 107 Button
on (release) {
_root.mcGame.myoMenuSendClick();
}
Symbol 109 Button
on (release) {
_root.mcGame.gotoAndPlay("goHowto");
}
Symbol 112 MovieClip Frame 1
function myGetNickStr() {
var strNick;
var i;
var c;
strNick = "";
i = 0;
while (i < vEdtTxtNickname.length) {
c = vEdtTxtNickname.charCodeAt(i);
if ((((c >= 48) && (c <= 57)) || ((c >= 65) && (c <= 90))) || ((c >= 97) && (c <= 122))) {
strNick = strNick + String.fromCharCode(c);
}
i++;
}
if (strNick == "") {
strNick = _root.mcGame.cDEFAULTNICK;
}
return(strNick);
}
function myGetTimeStr(ATime) {
var strTime;
var h;
var m;
var s;
ATime = Math.floor(ATime / 1000);
h = Math.floor(ATime / 3600);
ATime = ATime - (h * 3600);
m = Math.floor(ATime / 60);
ATime = ATime - (m * 60);
s = ATime;
strTime = "";
if (h < 10) {
strTime = strTime + "0";
}
strTime = strTime + (h + ":");
if (m < 10) {
strTime = strTime + "0";
}
strTime = strTime + (m + ":");
if (s < 10) {
strTime = strTime + "0";
}
strTime = strTime + s;
return(strTime);
}
Symbol 112 MovieClip Frame 4
stop();
Symbol 112 MovieClip Frame 5
mcDisplayTime.gotoAndStop("goHold");
vDynTxtPoints = _root.mcGame.vCountPoints;
Symbol 112 MovieClip Frame 9
stop();
Symbol 112 MovieClip Frame 10
mcDisplayTime.gotoAndStop("goHold");
vDynTxtPoints = _root.mcGame.vCountPoints;
if (_root.mcGame.vOptSfxOn) {
vDynTxtOptSfxOn = "ON";
} else {
vDynTxtOptSfxOn = "OFF";
}
Symbol 112 MovieClip Frame 14
stop();
Symbol 112 MovieClip Frame 15
mcDisplayTime.gotoAndPlay("goLoop");
vDynTxtPoints = _root.mcGame.vCountPoints;
Symbol 112 MovieClip Frame 19
stop();
Symbol 112 MovieClip Frame 20
mcDisplayTime.gotoAndStop("goHold");
vDynTxtPoints = _root.mcGame.vCountPoints;
vEdtTxtNickname = myGetNickStr();
vDynTxtResult = (_root.mcGame.vCountPoints + " points in ") + myGetTimeStr(_root.mcGame.vCountTime);
if (_root.mcGame.myIsHighscore()) {
_root.mcGame.vCountPointsHs = _root.mcGame.vCountPoints;
_root.mcGame.vCountTimeHs = _root.mcGame.vCountTime;
vDynTxtResult = vDynTxtResult + " ( Highscore! )";
vDynTxtResultHs = (("Best result is " + _root.mcGame.vCountPointsHs) + " points in ") + myGetTimeStr(_root.mcGame.vCountTimeHs);
}
Symbol 112 MovieClip Frame 24
stop();
Symbol 113 MovieClip Frame 1
sDummy = "";
sNick = "";
sCom = "";
iScore = 0;
iTime = 0;
Symbol 113 MovieClip Frame 2
stop();
Symbol 132 MovieClip Frame 1
stop();
Symbol 133 MovieClip Frame 1
function myIsHighscore() {
var bHs;
bHs = false;
if (vCountPoints >= vCountPointsHs) {
if (!((vCountPoints == vCountPointsHs) && (vCountTime > vCountTimeHs))) {
bHs = true;
}
}
return(bHs);
}
function myoLinkClick(AUrl) {
getURL (AUrl, "_blank");
}
function myoMenuSendClick() {
with (mcSendDat) {
sNick = _root.mcGame.mcDisplay.myGetNickStr();
sCom = _root._url;
iScore = _root.mcGame.vCountPointsHs;
iTime = _root.mcGame.vCountTimeHs;
getURL(_root.mcGame.cURLSEND, "_blank", "POST");
}
}
function myoMenuHighscoresClick() {
myoLinkClick(cURLHIGHSCORES);
}
cGAME = "eggattack2";
cURLHOME = "http://flash.dacamyo.net/en/";
cURLSEND = ("http://flash.dacamyo.net/en/" + cGAME) + "/send.php";
cURLHIGHSCORES = ("http://flash.dacamyo.net/en/" + cGAME) + "/highscores.php";
cDEFAULTNICK = "Guest" + new Date().getSeconds();
vCountPointsHs = 0;
vCountTimeHs = 0;
stopAllSounds();
oSoundfx = new Sound();
vOptSfxOn = true;
Symbol 133 MovieClip Frame 2
vCountPoints = 0;
vCountTime = 0;
stopAllSounds();
mcBoard.gotoAndStop("goEmpty");
mcDisplay.gotoAndPlay("goInit");
Symbol 133 MovieClip Frame 3
stopAllSounds();
if (vOptSfxOn) {
oSoundfx.attachSound("mscThemeLoop");
oSoundfx.start(0, 9999);
}
mcBoard.gotoAndStop("goSolution");
mcDisplay.gotoAndPlay("goHowto");
Symbol 133 MovieClip Frame 39
stop();
Symbol 133 MovieClip Frame 40
vCountPoints = 0;
vCountTime = getTimer();
stopAllSounds();
mcBoard.gotoAndStop("goPlay");
mcDisplay.gotoAndStop("goPlay");
Symbol 133 MovieClip Frame 43
stop();
Symbol 133 MovieClip Frame 44
gotoAndPlay (2);
Symbol 133 MovieClip Frame 45
vCountTime = getTimer() - vCountTime;
stopAllSounds();
if (vOptSfxOn) {
oSoundfx.attachSound("mscThemeLoop");
oSoundfx.start(0, 9999);
}
mcBoard.gotoAndStop("goSolution");
mcDisplay.gotoAndStop("goPlayWin");
Symbol 133 MovieClip Frame 78
stop();
Symbol 133 MovieClip Frame 79
gotoAndPlay (3);
Symbol 133 MovieClip Frame 80
gotoAndPlay (2);