Frame 1
stopAllSounds();
Instance of Symbol 15 MovieClip "1" in Frame 1
onClipEvent (load) {
myNum = _name;
}
onClipEvent (enterFrame) {
_root[("r" + myNum) + "Diff"] = _root[("r" + myNum) + "New"] - _root[("r" + myNum) + "Old"];
_root[("r" + myNum) + "Change"] = _root[("r" + myNum) + "Diff"] / 3;
_root[("g" + myNum) + "Diff"] = _root[("g" + myNum) + "New"] - _root[("g" + myNum) + "Old"];
_root[("g" + myNum) + "Change"] = _root[("g" + myNum) + "Diff"] / 3;
_root[("b" + myNum) + "Diff"] = _root[("b" + myNum) + "New"] - _root[("b" + myNum) + "Old"];
_root[("b" + myNum) + "Change"] = _root[("b" + myNum) + "Diff"] / 3;
swatchColor = new Color(this);
swatchColor.setRGB(((_root[("r" + myNum) + "Change"] << 16) | (_root[("g" + myNum) + "Change"] << 8)) | _root[("b" + myNum) + "Change"]);
_root[("r" + myNum) + "Old"] = _root[("r" + myNum) + "Old"] - (_root[("r" + myNum) + "New"] - _root[("r" + myNum) + "Change"]);
_root[("g" + myNum) + "Old"] = _root[("g" + myNum) + "Old"] - (_root[("g" + myNum) + "New"] - _root[("g" + myNum) + "Change"]);
_root[("b" + myNum) + "Old"] = _root[("b" + myNum) + "Old"] - (_root[("b" + myNum) + "New"] - _root[("b" + myNum) + "Change"]);
if (i < 3) {
i++;
_root[("r" + i) + "New"] = random(255);
_root[("g" + i) + "New"] = random(255);
_root[("b" + i) + "New"] = random(255);
_root[("b" + i) + "New"] = random(255);
} else {
i = 0;
}
}
Instance of Symbol 15 MovieClip "2" in Frame 1
onClipEvent (load) {
myNum = _name;
}
onClipEvent (enterFrame) {
_root[("r" + myNum) + "Diff"] = _root[("r" + myNum) + "New"] - _root[("r" + myNum) + "Old"];
_root[("r" + myNum) + "Change"] = _root[("r" + myNum) + "Diff"] / 3;
_root[("g" + myNum) + "Diff"] = _root[("g" + myNum) + "New"] - _root[("g" + myNum) + "Old"];
_root[("g" + myNum) + "Change"] = _root[("g" + myNum) + "Diff"] / 3;
_root[("b" + myNum) + "Diff"] = _root[("b" + myNum) + "New"] - _root[("b" + myNum) + "Old"];
_root[("b" + myNum) + "Change"] = _root[("b" + myNum) + "Diff"] / 3;
swatchColor = new Color(this);
swatchColor.setRGB(((_root[("r" + myNum) + "Change"] << 16) | (_root[("g" + myNum) + "Change"] << 8)) | _root[("b" + myNum) + "Change"]);
_root[("r" + myNum) + "Old"] = _root[("r" + myNum) + "Old"] - (_root[("r" + myNum) + "New"] - _root[("r" + myNum) + "Change"]);
_root[("g" + myNum) + "Old"] = _root[("g" + myNum) + "Old"] - (_root[("g" + myNum) + "New"] - _root[("g" + myNum) + "Change"]);
_root[("b" + myNum) + "Old"] = _root[("b" + myNum) + "Old"] - (_root[("b" + myNum) + "New"] - _root[("b" + myNum) + "Change"]);
if (i < 3) {
i++;
_root[("r" + i) + "New"] = random(255);
_root[("g" + i) + "New"] = random(255);
_root[("b" + i) + "New"] = random(255);
_root[("b" + i) + "New"] = random(255);
} else {
i = 0;
}
}
Instance of Symbol 15 MovieClip "3" in Frame 1
onClipEvent (load) {
myNum = _name;
}
onClipEvent (enterFrame) {
_root[("r" + myNum) + "Diff"] = _root[("r" + myNum) + "New"] - _root[("r" + myNum) + "Old"];
_root[("r" + myNum) + "Change"] = _root[("r" + myNum) + "Diff"] / 3;
_root[("g" + myNum) + "Diff"] = _root[("g" + myNum) + "New"] - _root[("g" + myNum) + "Old"];
_root[("g" + myNum) + "Change"] = _root[("g" + myNum) + "Diff"] / 3;
_root[("b" + myNum) + "Diff"] = _root[("b" + myNum) + "New"] - _root[("b" + myNum) + "Old"];
_root[("b" + myNum) + "Change"] = _root[("b" + myNum) + "Diff"] / 3;
swatchColor = new Color(this);
swatchColor.setRGB(((_root[("r" + myNum) + "Change"] << 16) | (_root[("g" + myNum) + "Change"] << 8)) | _root[("b" + myNum) + "Change"]);
_root[("r" + myNum) + "Old"] = _root[("r" + myNum) + "Old"] - (_root[("r" + myNum) + "New"] - _root[("r" + myNum) + "Change"]);
_root[("g" + myNum) + "Old"] = _root[("g" + myNum) + "Old"] - (_root[("g" + myNum) + "New"] - _root[("g" + myNum) + "Change"]);
_root[("b" + myNum) + "Old"] = _root[("b" + myNum) + "Old"] - (_root[("b" + myNum) + "New"] - _root[("b" + myNum) + "Change"]);
if (i < 3) {
i++;
_root[("r" + i) + "New"] = random(255);
_root[("g" + i) + "New"] = random(255);
_root[("b" + i) + "New"] = random(255);
_root[("b" + i) + "New"] = random(255);
} else {
i = 0;
}
}
Frame 2
ifFrameLoaded (10) {
gotoAndStop (4);
}
Frame 3
gotoAndPlay (2);
Frame 6
s_sword = new Sound();
s_sword.attachSound("sword");
s_sword2 = new Sound();
s_sword2.attachSound("sword2");
s_punch = new Sound();
s_punch.attachSound("punch");
s_splat = new Sound();
s_splat.attachSound("splat");
milliseconds = 60;
time = 90;
rightlimit = 530;
leftlimit = 20;
goo_speed = 4;
score = 0;
lives = 4;
Instance of Symbol 15 MovieClip "1" in Frame 7
onClipEvent (load) {
myNum = _name;
}
onClipEvent (enterFrame) {
_root[("r" + myNum) + "Diff"] = _root[("r" + myNum) + "New"] - _root[("r" + myNum) + "Old"];
_root[("r" + myNum) + "Change"] = _root[("r" + myNum) + "Diff"] / 3;
_root[("g" + myNum) + "Diff"] = _root[("g" + myNum) + "New"] - _root[("g" + myNum) + "Old"];
_root[("g" + myNum) + "Change"] = _root[("g" + myNum) + "Diff"] / 3;
_root[("b" + myNum) + "Diff"] = _root[("b" + myNum) + "New"] - _root[("b" + myNum) + "Old"];
_root[("b" + myNum) + "Change"] = _root[("b" + myNum) + "Diff"] / 3;
swatchColor = new Color(this);
swatchColor.setRGB(((_root[("r" + myNum) + "Change"] << 16) | (_root[("g" + myNum) + "Change"] << 8)) | _root[("b" + myNum) + "Change"]);
_root[("r" + myNum) + "Old"] = _root[("r" + myNum) + "Old"] - (_root[("r" + myNum) + "New"] - _root[("r" + myNum) + "Change"]);
_root[("g" + myNum) + "Old"] = _root[("g" + myNum) + "Old"] - (_root[("g" + myNum) + "New"] - _root[("g" + myNum) + "Change"]);
_root[("b" + myNum) + "Old"] = _root[("b" + myNum) + "Old"] - (_root[("b" + myNum) + "New"] - _root[("b" + myNum) + "Change"]);
if (i < 3) {
i++;
_root[("r" + i) + "New"] = random(255);
_root[("g" + i) + "New"] = random(255);
_root[("b" + i) + "New"] = random(255);
_root[("b" + i) + "New"] = random(255);
} else {
i = 0;
}
}
Instance of Symbol 15 MovieClip "2" in Frame 7
onClipEvent (load) {
myNum = _name;
}
onClipEvent (enterFrame) {
_root[("r" + myNum) + "Diff"] = _root[("r" + myNum) + "New"] - _root[("r" + myNum) + "Old"];
_root[("r" + myNum) + "Change"] = _root[("r" + myNum) + "Diff"] / 3;
_root[("g" + myNum) + "Diff"] = _root[("g" + myNum) + "New"] - _root[("g" + myNum) + "Old"];
_root[("g" + myNum) + "Change"] = _root[("g" + myNum) + "Diff"] / 3;
_root[("b" + myNum) + "Diff"] = _root[("b" + myNum) + "New"] - _root[("b" + myNum) + "Old"];
_root[("b" + myNum) + "Change"] = _root[("b" + myNum) + "Diff"] / 3;
swatchColor = new Color(this);
swatchColor.setRGB(((_root[("r" + myNum) + "Change"] << 16) | (_root[("g" + myNum) + "Change"] << 8)) | _root[("b" + myNum) + "Change"]);
_root[("r" + myNum) + "Old"] = _root[("r" + myNum) + "Old"] - (_root[("r" + myNum) + "New"] - _root[("r" + myNum) + "Change"]);
_root[("g" + myNum) + "Old"] = _root[("g" + myNum) + "Old"] - (_root[("g" + myNum) + "New"] - _root[("g" + myNum) + "Change"]);
_root[("b" + myNum) + "Old"] = _root[("b" + myNum) + "Old"] - (_root[("b" + myNum) + "New"] - _root[("b" + myNum) + "Change"]);
if (i < 3) {
i++;
_root[("r" + i) + "New"] = random(255);
_root[("g" + i) + "New"] = random(255);
_root[("b" + i) + "New"] = random(255);
_root[("b" + i) + "New"] = random(255);
} else {
i = 0;
}
}
Instance of Symbol 15 MovieClip "3" in Frame 7
onClipEvent (load) {
myNum = _name;
}
onClipEvent (enterFrame) {
_root[("r" + myNum) + "Diff"] = _root[("r" + myNum) + "New"] - _root[("r" + myNum) + "Old"];
_root[("r" + myNum) + "Change"] = _root[("r" + myNum) + "Diff"] / 3;
_root[("g" + myNum) + "Diff"] = _root[("g" + myNum) + "New"] - _root[("g" + myNum) + "Old"];
_root[("g" + myNum) + "Change"] = _root[("g" + myNum) + "Diff"] / 3;
_root[("b" + myNum) + "Diff"] = _root[("b" + myNum) + "New"] - _root[("b" + myNum) + "Old"];
_root[("b" + myNum) + "Change"] = _root[("b" + myNum) + "Diff"] / 3;
swatchColor = new Color(this);
swatchColor.setRGB(((_root[("r" + myNum) + "Change"] << 16) | (_root[("g" + myNum) + "Change"] << 8)) | _root[("b" + myNum) + "Change"]);
_root[("r" + myNum) + "Old"] = _root[("r" + myNum) + "Old"] - (_root[("r" + myNum) + "New"] - _root[("r" + myNum) + "Change"]);
_root[("g" + myNum) + "Old"] = _root[("g" + myNum) + "Old"] - (_root[("g" + myNum) + "New"] - _root[("g" + myNum) + "Change"]);
_root[("b" + myNum) + "Old"] = _root[("b" + myNum) + "Old"] - (_root[("b" + myNum) + "New"] - _root[("b" + myNum) + "Change"]);
if (i < 3) {
i++;
_root[("r" + i) + "New"] = random(255);
_root[("g" + i) + "New"] = random(255);
_root[("b" + i) + "New"] = random(255);
_root[("b" + i) + "New"] = random(255);
} else {
i = 0;
}
}
Frame 9
final = score;
Symbol 12 Button
on (release) {
getURL ("http://www.etgames.com", "_blank");
}
Symbol 28 Button
on (release) {
_root.nextFrame();
}
Symbol 29 MovieClip Frame 85
stop();
Symbol 33 Button
on (release) {
nextFrame();
}
Symbol 35 MovieClip Frame 1
x = _x + _parent._x;
y = _y + _parent._y;
width = _width / 2;
if (((((x - width) < _root.mascot._x) && (_root.mascot._x < (x + width))) && (((y - 30) < (_root.mascot._y + 40)) && ((_root.mascot._y + 40) < (y + 30)))) && (_root.mascot.jumping != true)) {
_root.mascot.air = false;
_root.mascot._y = y - 40;
mascot = true;
} else if (mascot == true) {
_root.mascot.air = true;
mascot = false;
}
Symbol 35 MovieClip Frame 2
gotoAndPlay (1);
Symbol 44 MovieClip Frame 1
if (0 < _parent.death_timer) {
_parent.death_timer--;
} else {
_parent.alive = true;
}
if (Key.isDown(83)) {
if (((_parent.attack_key != true) && (_parent._currentFrame < 5)) && ((_parent.air != true) || ((_parent.jumping != true) && (_parent.air == true)))) {
if (_parent.air == true) {
_parent.pushed = true;
if (0 < _parent._xscale) {
_parent.dest_x = _parent._x + 140;
} else {
_parent.dest_x = _parent._x - 140;
}
}
_root.s_sword.start();
_parent.gotoAndStop("attack");
}
_parent.attack_key = true;
} else {
_parent.attack_key = false;
}
if (Key.isDown(65)) {
if ((_parent.air != true) && (_parent._currentFrame < 3)) {
_parent.jumpspeed = _parent.jumpspeed_max;
_parent.jumping = true;
_parent.dest_y = _parent._y - 120;
_parent.gotoAndStop("jump");
}
}
if ((_parent.air == true) && (_parent.jumping != true)) {
_parent._y = _parent._y + _parent.jumpspeed;
if (_parent.jumpspeed < _parent.jumpspeed_max) {
_parent.jumpspeed = _parent.jumpspeed + 2;
}
}
if ((_parent.jumping == true) && (_parent.dest_y < _parent._y)) {
_parent._y = _parent._y - _parent.jumpspeed;
if (_parent.jumpspeed_min < _parent.jumpspeed) {
_parent.jumpspeed = _parent.jumpspeed - 2;
}
} else {
_parent.jumping = false;
}
if (((_parent.pushed == true) && (_parent.air == true)) && ((_parent.dest_x + _parent.jumpspeed) < _parent._x)) {
_parent._x = _parent._x - _parent.jumpspeed;
if (0 < _parent._xscale) {
_parent._xscale = _parent._xscale * -1;
}
} else if (((_parent.pushed == true) && (_parent.air == true)) && (_parent._x < (_parent.dest_x - _parent.jumpspeed))) {
_parent._x = _parent._x + _parent.jumpspeed;
if (_parent._xscale < 0) {
_parent._xscale = _parent._xscale * -1;
}
} else {
_parent.pushed = false;
}
if (Key.isDown(Key.RIGHT)) {
_parent.right++;
} else {
_parent.right = 0;
}
if (Key.isDown(Key.LEFT)) {
_parent.left++;
} else {
_parent.left = 0;
}
if ((Key.isDown(Key.RIGHT) || (Key.isDown(Key.LEFT))) && (_parent.pushed != true)) {
_parent.walking = true;
} else {
_parent.walking = false;
}
if ((Key.isDown(Key.RIGHT) && ((_parent.left == 0) || (_parent.right < _parent.left))) && ((_parent.pushed != true) && (_parent._currentFrame < 5))) {
_parent._x = _parent._x + _parent.speed;
if (((200 < _parent._x) == true) && ((_root.level_limit + _parent.speed) < _root.level._x)) {
_root.Scroll();
}
if (_parent._xscale < 0) {
_parent._xscale = _parent._xscale * -1;
}
}
if ((Key.isDown(Key.LEFT) && ((_parent.right == 0) || (_parent.left < _parent.right))) && ((_parent.pushed != true) && (_parent._currentFrame < 5))) {
_parent._x = _parent._x - _parent.speed;
if (0 < _parent._xscale) {
_parent._xscale = _parent._xscale * -1;
}
}
if ((_parent._currentFrame == 1) && (_parent.walking == true)) {
_parent.gotoAndStop("walk");
} else if (((_parent._currentFrame < 4) && (_parent.jumping != true)) && (_parent.air == true)) {
_parent.gotoAndStop("fall");
} else if (((_parent._currentFrame == 2) && (_parent.walking == false)) || ((((_parent._currentFrame == 3) || (_parent._currentFrame == 4)) && (_parent.air != true)) && (_parent.jumping != true))) {
_parent.gotoAndStop("stand");
}
if (_root.rightlimit < _parent._x) {
_parent._x = _root.rightlimit;
} else if (_parent._x < _root.leftlimit) {
_parent._x = _root.leftlimit;
}
Symbol 44 MovieClip Frame 2
gotoAndPlay (1);
Symbol 76 MovieClip Frame 1
if (_parent.air != true) {
_root.above = false;
} else {
_root.above = true;
}
Symbol 76 MovieClip Frame 4
i = 1;
while (2 >= i) {
if ((((((_parent._x - 155) < _root["goo" + i]._x) && (_root["goo" + i]._x < _parent._x)) && (_parent._xscale < 0)) || (((_root["goo" + i]._x < (_parent._x + 155)) && (_parent._x < _root["goo" + i]._x)) && (0 < _parent._xscale))) && ((_parent._y < _root["goo" + i]._y) && (_root["goo" + i]._y < (_parent._y + 90)))) {
_root["goo" + i].gotoAndStop("die");
}
i++;
}
Symbol 76 MovieClip Frame 5
if (_parent.air == true) {
gotoAndPlay(_currentframe - 1);
}
Symbol 76 MovieClip Frame 7
_parent.gotoAndStop("stand");
Symbol 97 MovieClip Frame 1
_root.s_punch.start();
Symbol 97 MovieClip Frame 9
_root.s_sword2.start();
Symbol 97 MovieClip Frame 51
if (_root.lives == 0) {
_root.gotoAndStop("gameover");
stop();
} else {
_root.lives--;
if (_parent._xscale < 0) {
_parent._xscale = _parent._xscale * -1;
}
_parent._x = 275;
_parent._y = -200;
_parent.death_timer = 50;
_parent.gotoAndStop("stand");
}
Symbol 98 MovieClip Frame 1
if ((_parent.air == true) && (_parent.jumping != true)) {
_parent._y = _parent._y + _parent.jumpspeed;
if (_parent.jumpspeed < _parent.jumpspeed_max) {
_parent.jumpspeed = _parent.jumpspeed + 2;
}
}
Symbol 98 MovieClip Frame 2
gotoAndPlay (1);
Symbol 99 MovieClip Frame 1
speed = 11;
jumpspeed_max = 20;
jumpspeed_min = 10;
jumpspeed = jumpspeed_max;
stop();
Symbol 99 MovieClip Frame 6
alive = false;
jumping = false;
pushed = false;
Symbol 99 MovieClip Frame 7
jumping = false;
pushed = false;
Symbol 111 MovieClip Frame 1
if ((_parent._x + _root.goo_speed) < _parent.dest_x) {
_parent._x = _parent._x + _root.goo_speed;
if (_parent._xscale < 0) {
_parent._xscale = _parent._xscale * -1;
}
} else if (_parent.dest_x < (_parent._x - _root.goo_speed)) {
_parent._x = _parent._x - _root.goo_speed;
if (0 < _parent._xscale) {
_parent._xscale = _parent._xscale * -1;
}
} else {
_parent.dest_x = random(450) + 50;
}
if ((((_parent._x < (_root.mascot._x + 70)) && ((_root.mascot._x - 70) < _parent._x)) && ((_parent._y < (_root.mascot._y + 90)) && ((_root.mascot._y - 90) < _parent._y))) && (_root.mascot.alive == true)) {
_root.mascot.gotoAndStop("die");
}
Symbol 111 MovieClip Frame 2
gotoAndPlay (1);
Symbol 120 MovieClip Frame 19
_parent.gotoAndStop(1);
Symbol 121 MovieClip Frame 1
if (_name == "goo1") {
_x = -80;
} else {
_x = 630;
}
dest_x = random(175) + 175;
stop();
Symbol 121 MovieClip Frame 2
if (_root.above == true) {
_root.score = _root.score + 20;
} else {
_root.score = _root.score + 10;
}
_root.s_splat.start();
Symbol 122 MovieClip Frame 1
if (_name == "goo1") {
_x = -80;
} else {
_x = 630;
}
dest_x = random(175) + 175;
stop();
Symbol 122 MovieClip Frame 2
if (_root.above == true) {
_root.score = _root.score + 20;
} else {
_root.score = _root.score + 10;
}
_root.s_splat.start();
Symbol 147 MovieClip Frame 1
_root.milliseconds = _root.milliseconds - 2;
if ((_root.milliseconds == 0) && (0 < _root.time)) {
_root.milliseconds = 60;
_root.time--;
} else if (_root.milliseconds == 0) {
_root.gotoAndStop("win");
}
Symbol 147 MovieClip Frame 2
gotoAndPlay (1);
Symbol 166 MovieClip Frame 66
_root.gotoAndStop("end");
Symbol 168 MovieClip Frame 96
_root.gotoAndStop("end");
Symbol 171 Button
on (release) {
gotoAndStop (6);
}
Symbol 176 Button
on (release) {
_root.gotoAndStop("scores");
}
Symbol 178 MovieClip Frame 1
if (_root.local == 1) {
stop();
}
Symbol 178 MovieClip Frame 2
stop();
Symbol 187 Button
on (release) {
if (((_root.scoredone == "done") and (_root.hiscore20 < _root.score)) and (_root.old_score != _root.score)) {
_root.old_score = _root.score;
_root.hiscore = _root.score;
if (_root.xname eq "Name Here") {
_root.xname = "etgames";
}
loadVariablesNum ((((((("/scores.php?action=sendscore&game=" + _root.game) + "&hiscore=") + _root.hiscore) + "&xname=") + _root.xname) + "&randx=") + random(100), 0, "POST");
}
_visible = 0;
}
Symbol 190 MovieClip Frame 1
if ((_root.hiscore20 < _root.score) and (_root.local == 1)) {
_visible = 1;
} else {
_visible = 0;
stop();
}
Symbol 232 MovieClip Frame 1
if (_root.local == 1) {
_visible = 1;
} else {
_visible = 0;
stop();
}
Symbol 232 MovieClip Frame 2
_root.game = "gooslasher";
loadVariablesNum ((("/scores.php?action=getscores&game=" + _root.game) + "&randx=") + random(100000), 0, "POST");
Symbol 232 MovieClip Frame 5
if (_root.scoredone == "done") {
nothing = nothing;
} else {
gotoAndPlay (3);
}
Symbol 232 MovieClip Frame 7
stop();
Symbol 233 Button
on (release) {
_root.gotoAndStop("end");
}