Frame 1
stopAllSounds();
stop();
Instance of Symbol 19 MovieClip in Frame 1
onClipEvent (load) {
status = "loading...";
}
onClipEvent (enterFrame) {
myPercentLoaded = int((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
_root.bytesLoaded = int(_root.getBytesLoaded());
_root.bytesTotal = int(_root.getBytesTotal());
if (myPercentLoaded == 100) {
status = "loaded!";
ystep = (-50 - _y) / 5;
_y = (_y + ystep);
}
if (_y <= 20) {
_root.play();
}
}
Frame 7
_root.myurl = _root._url;
_root.domain1 = _root.myurl.substring(0, 28);
_root.domain2 = _root.myurl.substring(0, 27);
_root.domain3 = _root.myurl.substring(0, 24);
Frame 46
if (((_root.domain1 == "http://www.mindistortion.net") || (_root.domain2 == "http://www.mindistortion.tv")) || (_root.domain3 == "http://mindistortion.tv")) {
stolen = false;
athome = true;
} else {
stolen = true;
athome = false;
}
Frame 52
function initAutoQuality() {
myDate = new Date();
oldTime = myDate.getSeconds();
trigger = false;
framecounter = 1;
setdelay = 120;
initdelay = 40;
}
function runAutoQuality() {
if (initdelay > 0) {
initdelay--;
}
myDate = new Date();
if (trigger) {
currentTime = myDate.getSeconds();
trigger = !trigger;
} else {
oldTime = myDate.getSeconds();
trigger = !trigger;
}
if (oldTime != currentTime) {
_root.framerate = framecounter;
framecounter = 1;
} else {
framecounter++;
}
if (initdelay <= 0) {
if (_root.framerate < 20) {
_root._quality = "LOW";
} else {
setdelay--;
if (setdelay <= 0) {
_root._quality = "HIGH";
setdelay = 120;
}
}
}
}
function init() {
virii++;
_root.attachMovie("virus", "virus" + virii, 100 + virii);
setProperty("_root.virus" + _root.virii, _x , 275);
setProperty("_root.virus" + _root.virii, _y , 200);
}
function endLevel() {
removeMovieClip("HUD");
removeMovieClip("outro_anim");
removeMovieClip("screenager");
removeMovieClip("end_menu");
i = 1;
while (i <= virii) {
removeMovieClip("virus" + i);
i++;
}
i = 0;
while (i <= maxbloodcells) {
removeMovieClip("bloodcell" + i);
i++;
}
i = 0;
while (i <= wmaxbloodcells) {
removeMovieClip("antiA" + i);
removeMovieClip("antiB" + i);
removeMovieClip("antiC" + i);
i++;
}
i = 0;
while (i <= maxantibiotics) {
removeMovieClip("poison" + i);
i++;
}
i = 0;
while (i <= 10) {
removeMovieClip("bonus" + i);
i++;
}
}
function runningEngine() {
r = random(1000);
if (r <= delay) {
rX = Math.floor(random(550));
attachMovie("bloodcell", "bloodcell" + i, i);
setProperty("bloodcell" + i, _x , rX);
setProperty("bloodcell" + i, _y , 20);
if (i < maxbloodcells) {
i++;
} else {
i = 0;
}
}
if (_root.gamelevel >= 2) {
if (r <= wdelay) {
if (_root.gamelevel >= 8) {
rr = random(5);
if (rr <= 1) {
antitype = "C";
} else {
antitype = "B";
}
} else {
antitype = "B";
}
rX = Math.floor(random(450)) + 50;
attachMovie("white_bloodcell", ("anti" + antitype) + j, 700 + j);
setProperty(("anti" + antitype) + j, _x , rX);
setProperty(("anti" + antitype) + j, _y , 20);
if (j < wmaxbloodcells) {
j++;
} else {
j = 0;
}
}
if (_root.gamelevel >= 7) {
if (r <= adelay) {
rX = Math.floor(random(550));
attachMovie("antibiotic", "poison" + k, 800 + k);
setProperty("poison" + k, _x , rX);
setProperty("poison" + k, _y , -20);
if (k < maxantibiotics) {
k++;
} else {
k = 0;
}
}
}
}
if (r <= 1) {
rr = Math.floor(random(13));
rX = Math.floor(random(550));
if (rr < 4) {
attachMovie("bonus_biohazard", "bonus" + l, 900 + l);
} else if (rr == 4) {
attachMovie("bonus_mutagen", "bonus" + l, 900 + l);
} else if (rr == 5) {
if (_root.statlevel[3] <= 3) {
attachMovie("bonus_repro", "bonus" + l, 900 + l);
}
} else if (rr == 6) {
if (_root.statlevel[0] <= 4) {
attachMovie("bonus_latency", "bonus" + l, 900 + l);
}
} else if (rr == 7) {
if (_root.statlevel[2] <= 4) {
attachMovie("bonus_immunity", "bonus" + l, 900 + l);
}
} else if (rr == 8) {
if (_root.statlevel[1] <= 4) {
attachMovie("bonus_damage", "bonus" + l, 900 + l);
}
} else {
attachMovie("bonus_time", "bonus" + l, 900 + l);
}
setProperty("bonus" + l, _x , rX);
setProperty("bonus" + l, _y , -20);
if (l < 10) {
l++;
} else {
l = 0;
}
}
timer++;
if (timer == 24) {
time--;
timer = 0;
if (time <= 0) {
_root.gameover = true;
_root.gotoAndStop("timesup");
}
}
}
_root.musicVol = 100;
autoQuality = true;
if (stolen) {
}
Frame 53
stop();
_quality = "BEST";
Instance of Symbol 129 MovieClip "engine" in Frame 53
onClipEvent (load) {
menuMusic = new Sound(this);
menuMusic.attachSound("menumusic");
menuMusic.start(0, 9999);
menuMusic.setVolume(0);
build = true;
buttclip = new Array();
buttclip[0] = _root.buttclip0;
buttclip[1] = _root.buttclip1;
buttclip[2] = _root.buttclip2;
buttclip[3] = _root.buttclip3;
buttclip[4] = _root.buttclip4;
buttTarget = new Array();
backclip = new Array();
backclip[0] = _root.backclip0;
backclip[1] = _root.backclip1;
backclip[2] = _root.backclip2;
backclip[3] = _root.backclip3;
backclip[4] = _root.backclip4;
backTarget = new Array();
i = 0;
while (i <= 4) {
buttTarget[i] = buttclip[i]._x;
buttclip[i]._x = -280;
backTarget[i] = backclip[i]._x;
backclip[i]._x = -280;
i++;
}
}
onClipEvent (enterFrame) {
vstep = (_root.musicVol - menuMusic.getVolume()) / 20;
menuMusic.setVolume(menuMusic.getVolume() + vstep);
if (build) {
i = 0;
while (i <= 4) {
buttclip[i]._x = buttclip[i]._x + ((buttTarget[i] - buttclip[i]._x) / (i + 2));
backclip[i]._x = backclip[i]._x + ((backTarget[i] - backclip[i]._x) / (i + 2));
i++;
}
if (backclip[4]._x >= (backTarget[4] - 2)) {
build = false;
}
}
}
Instance of Symbol 141 MovieClip "backclip4" in Frame 53
/* no clip actions */
Instance of Symbol 239 MovieClip "infobox" in Frame 53
onClipEvent (load) {
_alpha = 0;
targetAlpha = 0;
}
onClipEvent (enterFrame) {
_alpha = (_alpha + ((targetAlpha - _alpha) / 2));
}
Frame 54
prevFrame();
Frame 60
_root.gameover = false;
totalscore = 0;
score = 0;
gamelevel = 1;
time = 25;
oldtargetinfection = 5;
targetinfection = 5;
i = 0;
delay = 100;
maxbloodcells = 50;
yStream = 2;
xStream = 0;
j = 0;
wdelay = 4;
wmaxbloodcells = 20;
k = 0;
adelay = 4;
maxantibiotics = 20;
l = 0;
latency = 40;
reproduction = 1;
immunity = 0;
damage = 0;
_root.statlevel = new Array();
i = 0;
while (i < 4) {
_root.statlevel[i] = 1;
i++;
}
_root.cost = new Array();
_root.cost[0] = 30;
_root.cost[1] = 30;
_root.cost[2] = 30;
_root.cost[3] = 60;
_root.statname = new Array();
_root.statname[0] = "latency";
_root.statname[1] = "damage";
_root.statname[2] = "immunity";
_root.statname[3] = "reproduction rate";
_root.stathelp = new Array();
_root.stathelp[0] = "the shorter your latency, the faster new viruses get spawned";
_root.stathelp[1] = "defend yourself against the immune system";
_root.stathelp[2] = "increases the possibility to survive antibiotics";
_root.stathelp[3] = "raises the number of viruses that get spawned from infected cells";
Frame 67
levelfinished = false;
virusArray = new Array();
timer = 0;
infected = false;
infectious = 0;
deadvirii = 0;
virii = 0;
infectedcells = 0;
biohazard = false;
_root.biohazardtime = 0;
init();
stop();
Instance of Symbol 262 MovieClip "HUD" in Frame 67
onClipEvent (load) {
this.swapDepths(9998);
}
Instance of Symbol 129 MovieClip in Frame 67
onClipEvent (load) {
if (_root.autoQuality) {
_root.initAutoQuality();
}
}
onClipEvent (enterFrame) {
if (_root.autoQuality) {
_root.runAutoQuality();
}
_root.runningEngine();
}
Instance of Symbol 129 MovieClip "jukebox" in Frame 67
onClipEvent (load) {
menuMusic = new Sound(this);
menuMusic.attachSound("gamemusic");
biohazardMusic = new Sound(this);
biohazardMusic.attachSound("biohazardmusic");
menuMusic.start(0, 9999);
menuMusic.setVolume(0);
}
onClipEvent (enterFrame) {
vstep = (_root.musicVol - menuMusic.getVolume()) / 20;
menuMusic.setVolume(menuMusic.getVolume() + vstep);
}
Instance of Symbol 31 MovieClip "screenager" in Frame 67
onClipEvent (load) {
this.swapDepths(9999);
}
Frame 68
prevFrame();
Instance of Symbol 265 MovieClip "outro_anim" in Frame 76
onClipEvent (load) {
this.swapDepths(9990);
}
Frame 96
_root.endLevel();
_root.jukebox.menuMusic.stop();
_root.jukebox.biohazardMusic.stop();
gotoAndStop ("upgrade");
Frame 97
if (_root.autoQuality) {
_quality = "HIGH";
}
stop();
Instance of Symbol 273 MovieClip "outro_anim" in Frame 97
onClipEvent (load) {
this.swapDepths(9990);
}
Instance of Symbol 296 MovieClip "end_menu" in Frame 97
onClipEvent (load) {
build = true;
target = _xscale;
_xscale = 5;
_yscale = 5;
this.swapDepths(9991);
}
onClipEvent (enterFrame) {
if (build) {
_xscale = (_xscale + ((target - _xscale) / 3));
_yscale = _xscale;
if (_xscale >= 95) {
_xscale = 100;
_yscale = 100;
build = false;
}
}
}
Frame 98
prevFrame();
Frame 99
if (_root.autoQuality) {
_quality = "HIGH";
}
stop();
Instance of Symbol 301 MovieClip "outro_anim" in Frame 99
onClipEvent (load) {
this.swapDepths(9990);
}
Frame 100
prevFrame();
Frame 112
if (_root.autoQuality) {
_quality = "HIGH";
}
_root.totalscore = _root.totalscore + _root.time;
stop();
Instance of Symbol 129 MovieClip in Frame 112
onClipEvent (load) {
build = true;
buttclip = new Array();
buttclip[0] = _root.butt0;
buttclip[1] = _root.butt1;
buttclip[2] = _root.butt2;
buttclip[3] = _root.butt3;
buttTarget = new Array();
costclip = new Array();
costclip[0] = _root.costclip0;
costclip[1] = _root.costclip1;
costclip[2] = _root.costclip2;
costclip[3] = _root.costclip3;
costTarget = new Array();
i = 0;
while (i <= 3) {
buttTarget[i] = buttclip[i]._x;
buttclip[i]._x = -280;
costTarget[i] = costclip[i]._x;
costclip[i]._x = -280;
i++;
}
scoreboardTarget = _root.scoreboard._y;
_root.scoreboard._y = 450;
statboardTarget = _root.statboard._y;
_root.statboard._y = 450;
}
onClipEvent (enterFrame) {
if (build) {
i = 0;
while (i <= 3) {
buttclip[i]._x = buttclip[i]._x + ((buttTarget[i] - buttclip[i]._x) / (i + 2));
costclip[i]._x = costclip[i]._x + ((costTarget[i] - costclip[i]._x) / (i + 4));
i++;
}
_root.scoreboard._y = _root.scoreboard._y + ((scoreboardTarget - _root.scoreboard._y) / 5);
_root.statboard._y = _root.statboard._y + ((statboardTarget - _root.statboard._y) / 4);
if (costclip[3]._x >= (costTarget[3] - 2)) {
build = false;
}
}
}
Instance of Symbol 129 MovieClip "jukebox" in Frame 112
onClipEvent (load) {
menuMusic = new Sound(this);
menuMusic.attachSound("upgrademusic");
menuMusic.start(0, 9999);
menuMusic.setVolume(0);
}
onClipEvent (enterFrame) {
vstep = (_root.musicVol - menuMusic.getVolume()) / 20;
menuMusic.setVolume(menuMusic.getVolume() + vstep);
}
Instance of Symbol 305 MovieClip "helpbox" in Frame 112
onClipEvent (load) {
_alpha = 0;
targetAlpha = 0;
}
onClipEvent (enterFrame) {
_alpha = (_alpha + ((targetAlpha - _alpha) / 2));
}
Instance of Symbol 138 MovieClip in Frame 112
/* no clip actions */
Frame 113
_root.gotoAndPlay(1);
Frame 114
stopAllSounds();
if (athome) {
gotoAndPlay (118);
}
Frame 117
stop();
Frame 122
stop();
Frame 123
prevFrame();
Frame 124
lock = 0;
stop();
Frame 125
prevFrame();
Symbol 13 MovieClip [virus] Frame 1
stop();
Instance of Symbol 12 MovieClip in Symbol 13 MovieClip [virus] Frame 1
onClipEvent (load) {
r = random(99) + 1;
if (r <= _root.immunity) {
_parent.immune = true;
} else {
_parent.immune = false;
}
moving = true;
rotstep = Math.floor(random(5) + 1);
r = Math.floor(random(3) - 1);
targetX = r * 650;
r = Math.floor(random(3) - 1);
targetY = r * 500;
_parent.me = Number(_parent._name.substr(5));
_root.virusArray[_parent.me] = _parent;
}
on (press) {
moving = false;
_root.infected = true;
_root.infectious = _parent.me;
startDrag (_parent);
}
on (release, releaseOutside) {
_root.infected = false;
moving = true;
stopDrag();
}
onClipEvent (enterFrame) {
if (moving) {
xstep = (targetX - _parent._x) / 1000;
ystep = (targetY - _parent._y) / 1000;
_parent._x = _parent._x + xstep;
_parent._y = _parent._y + ystep;
_parent._rotation = _parent._rotation + rotstep;
}
if ((((_parent._x > 560) || (_parent._x < -10)) || (_parent._y > 355)) || (_parent._y < 20)) {
_root.deadvirii++;
if (((_root.deadvirii >= _root.virii) && (!_root.gameover)) && (_root.infectedcells <= 0)) {
_root.gameover = true;
_root.gotoAndStop("extinct");
}
_parent.removeMovieClip();
}
}
Symbol 13 MovieClip [virus] Frame 10
_root.deadvirii++;
if (((_root.deadvirii >= _root.virii) && (!_root.gameover)) && (_root.infectedcells <= 0)) {
_root.gameover = true;
_root.gotoAndStop("extinct");
}
removeMovieClip(this);
Instance of Symbol 16 MovieClip in Symbol 19 MovieClip Frame 1
onClipEvent (enterFrame) {
_xscale = _parent.myPercentLoaded;
}
Symbol 27 Button
on (release) {
getURL ("http://www.mindistortion.tv", "_blank");
}
Symbol 47 MovieClip [bonus_biohazard] Frame 1
stop();
Instance of Symbol 38 MovieClip in Symbol 47 MovieClip [bonus_biohazard] Frame 1
onClipEvent (enterFrame) {
_parent._y = _parent._y + 2;
if (_parent._y > 355) {
_parent.removeMovieClip();
}
}
onClipEvent (mouseUp) {
if (_root.infected && (this.hitTest(_root._xmouse, _root._ymouse))) {
_root.biohazard = true;
_root.biohazardtime = 180;
_root.HUD.bhlogo._visible = true;
_root.HUD.bhbar._visible = true;
_root.jukebox.menuMusic.stop();
_root.jukebox.biohazardMusic.start(0, 9999);
_parent.play();
}
}
Symbol 47 MovieClip [bonus_biohazard] Frame 25
removeMovieClip(this);
Symbol 54 MovieClip [bonus_damage] Frame 1
stop();
Instance of Symbol 51 MovieClip in Symbol 54 MovieClip [bonus_damage] Frame 1
onClipEvent (enterFrame) {
_parent._y = _parent._y + 2;
if (_parent._y > 355) {
_parent.removeMovieClip();
}
}
onClipEvent (mouseUp) {
if (_root.infected && (this.hitTest(_root._xmouse, _root._ymouse))) {
_root.infected = false;
_root.statlevel[1]++;
_root.cost[1] = Math.round(_root.cost[1] * 3);
_root.damage = _root.statlevel[1] - 1;
_parent.play();
}
}
Symbol 54 MovieClip [bonus_damage] Frame 25
removeMovieClip(this);
Symbol 55 MovieClip [bonus_time] Frame 1
stop();
Instance of Symbol 46 MovieClip in Symbol 55 MovieClip [bonus_time] Frame 1
onClipEvent (enterFrame) {
_parent._y = _parent._y + 2;
if (_parent._y > 355) {
_parent.removeMovieClip();
}
}
onClipEvent (mouseUp) {
if (_root.infected && (this.hitTest(_root._xmouse, _root._ymouse))) {
_root.infected = false;
_root.time = _root.time + 15;
_parent.play();
}
}
Symbol 55 MovieClip [bonus_time] Frame 25
removeMovieClip(this);
Symbol 63 MovieClip [bonus_immunity] Frame 1
stop();
Instance of Symbol 60 MovieClip in Symbol 63 MovieClip [bonus_immunity] Frame 1
onClipEvent (enterFrame) {
_parent._y = _parent._y + 2;
if (_parent._y > 355) {
_parent.removeMovieClip();
}
}
onClipEvent (mouseUp) {
if (_root.infected && (this.hitTest(_root._xmouse, _root._ymouse))) {
_root.infected = false;
_root.statlevel[2]++;
_root.cost[2] = Math.round(_root.cost[2] * 3);
_root.immunity = Math.round(_root.immunity + (10 / Math.sqrt(_root.statlevel[2])));
_parent.play();
}
}
Symbol 63 MovieClip [bonus_immunity] Frame 25
removeMovieClip(this);
Symbol 72 MovieClip [bonus_latency] Frame 1
stop();
Instance of Symbol 69 MovieClip in Symbol 72 MovieClip [bonus_latency] Frame 1
onClipEvent (enterFrame) {
_parent._y = _parent._y + 2;
if (_parent._y > 355) {
_parent.removeMovieClip();
}
}
onClipEvent (mouseUp) {
if (_root.infected && (this.hitTest(_root._xmouse, _root._ymouse))) {
_root.infected = false;
_root.statlevel[0]++;
_root.cost[0] = Math.round(_root.cost[0] * 3);
_root.latency = Math.round(_root.latency - (7 / Math.sqrt(_root.statlevel[0])));
if (_root.latency <= 1) {
_root.latency = 1;
}
_parent.play();
}
}
Symbol 72 MovieClip [bonus_latency] Frame 25
removeMovieClip(this);
Symbol 94 MovieClip [bonus_mutagen] Frame 1
stop();
Instance of Symbol 91 MovieClip in Symbol 94 MovieClip [bonus_mutagen] Frame 1
onClipEvent (enterFrame) {
_parent._y = _parent._y + 2;
if (_parent._y > 355) {
_parent.removeMovieClip();
}
}
onClipEvent (mouseUp) {
if (_root.infected && (this.hitTest(_root._xmouse, _root._ymouse))) {
_root.infected = false;
_root.score = _root.score + 500;
_root.totalscore = _root.totalscore + 500;
_parent.play();
}
}
Symbol 94 MovieClip [bonus_mutagen] Frame 25
removeMovieClip(this);
Symbol 99 MovieClip [bonus_repro] Frame 1
stop();
Instance of Symbol 96 MovieClip in Symbol 99 MovieClip [bonus_repro] Frame 1
onClipEvent (enterFrame) {
_parent._y = _parent._y + 2;
if (_parent._y > 355) {
_parent.removeMovieClip();
}
}
onClipEvent (mouseUp) {
if (_root.infected && (this.hitTest(_root._xmouse, _root._ymouse))) {
_root.infected = false;
_root.statlevel[3]++;
_root.cost[3] = Math.round(_root.cost[3] * 5);
_root.reproduction = _root.statlevel[3];
_parent.play();
}
}
Symbol 99 MovieClip [bonus_repro] Frame 25
removeMovieClip(this);
Instance of Symbol 102 MovieClip in Symbol 105 MovieClip [antibiotic] Frame 1
onClipEvent (load) {
counter = 0;
}
onClipEvent (enterFrame) {
_parent._y = _parent._y + 2;
counter++;
if (counter == 18) {
i = 1;
while (i <= _root.virii) {
if (_parent.hitarea.hitTest(_root.virusArray[i]) && (!_root.virusArray[i].immune)) {
_root.virusArray[i].play();
_root.virusArray[i] = "dead";
if (_root.infectious == i) {
_root.infected = false;
}
}
i++;
}
counter = 0;
}
if (_parent._y > 430) {
_parent.removeMovieClip();
}
}
Symbol 109 MovieClip [bloodcell] Frame 1
stop();
Instance of Symbol 108 MovieClip in Symbol 109 MovieClip [bloodcell] Frame 1
onClipEvent (load) {
counter = 0;
_parent.infected = false;
_parent.latency = 0;
}
onClipEvent (mouseUp) {
if ((_root.infected && (!_parent.infected)) && (this.hitTest(_root._xmouse, _root._ymouse))) {
_parent.infected = true;
_root.infected = false;
removeMovieClip("_root.virus" + _root.infectious);
_root.deadvirii++;
_root.infectedcells++;
_visible = false;
_parent.sick._visible = true;
}
}
onClipEvent (enterFrame) {
_parent._y = _parent._y + _root.yStream;
_parent._x = _parent._x + _root.xStream;
if (_root.biohazard) {
counter++;
if (counter == 7) {
i = 1;
while (i <= _root.virii) {
if (_parent.hitarea.hitTest(_root.virusArray[i])) {
_visible = false;
_parent.sick._visible = true;
_root.score = _root.score + 10;
_root.totalscore = _root.totalscore + 10;
_root.targetinfection--;
removeMovieClip("_root.HUD.bloodicon" + _root.targetinfection);
if (((!_root.levelfinished) && (!_root.gameover)) && (_root.targetinfection <= 0)) {
_root.levelfinished = true;
_root.gotoAndPlay("outro");
}
_parent.play();
}
i++;
}
counter = 0;
}
}
if (_parent.infected) {
_parent.latency++;
if (_parent.latency >= _root.latency) {
_root.targetinfection--;
removeMovieClip("_root.HUD.bloodicon" + _root.targetinfection);
_root.score = _root.score + 10;
_root.totalscore = _root.totalscore + 10;
_root.infectedcells--;
if (((!_root.levelfinished) && (!_root.gameover)) && (_root.targetinfection <= 0)) {
_root.levelfinished = true;
_root.gotoAndPlay("outro");
}
i = 0;
while (i < _root.reproduction) {
_root.attachMovie("virus", "virus" + _root.virii, 100 + _root.virii);
setProperty("_root.virus" + _root.virii, _x , _parent._x);
setProperty("_root.virus" + _root.virii, _y , _parent._y);
_root.virii++;
i++;
}
_parent.play();
}
}
if (_parent._y > 355) {
if (_parent.infected) {
_root.infectedcells--;
if (((_root.deadvirii >= _root.virii) && (!_root.gameover)) && (_root.infectedcells <= 0)) {
_root.gameover = true;
_root.gotoAndStop("extinct");
}
}
_parent.removeMovieClip();
}
}
Instance of Symbol 108 MovieClip "sick" in Symbol 109 MovieClip [bloodcell] Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 109 MovieClip [bloodcell] Frame 10
removeMovieClip(this);
Instance of Symbol 112 MovieClip in Symbol 113 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (_rotation+1);
}
Symbol 114 MovieClip [white_bloodcell] Frame 1
stop();
Instance of Symbol 113 MovieClip in Symbol 114 MovieClip [white_bloodcell] Frame 1
onClipEvent (load) {
counter = 0;
_parent.mytype = _parent._name.substr(4, 1);
if (_parent.mytype == "A") {
health = 3;
_parent._xscale = 60;
_parent._yscale = 60;
} else if (_parent.mytype == "B") {
health = 10;
_parent._xscale = 100;
_parent._yscale = 100;
} else if (_parent.mytype == "C") {
health = 30;
_parent._xscale = 150;
_parent._yscale = 150;
}
r = random(2);
if (r == 0) {
r = -1;
}
rot = 0;
}
onClipEvent (enterFrame) {
_parent._y = _parent._y + 2;
rot = rot + 0.02;
_parent._y = _parent._y + (-1 * Math.sin(rot));
_parent._x = _parent._x + ((r * 5) * Math.cos(rot));
counter++;
if (counter == 5) {
i = 1;
while (i <= _root.virii) {
if (_parent.hitarea.hitTest(_root.virusArray[i])) {
_root.virusArray[i].play();
_root.virusArray[i] = "dead";
if (_root.infectious == i) {
_root.infected = false;
}
health = health - _root.damage;
if (_root.biohazard) {
health = health - _root.damage;
}
if (health <= 0) {
_parent.play();
}
}
i++;
}
counter = 0;
}
if (_parent._y > 400) {
_parent.removeMovieClip();
}
}
Symbol 114 MovieClip [white_bloodcell] Frame 15
if (mytype == "A") {
worth = 30;
} else if (mytype == "B") {
worth = 50;
} else if (mytype == "C") {
worth = 100;
}
_root.score = _root.score + worth;
_root.totalscore = _root.totalscore + worth;
removeMovieClip(this);
Symbol 119 MovieClip Frame 1
stop();
Symbol 120 Button
on (release) {
getURL ("http://www.mindistortion.tv", "_blank");
}
Symbol 123 Button
on (release) {
getURL ("http://www.mindistortion.net", "_blank");
}
Symbol 145 MovieClip Frame 10
stop();
Symbol 148 MovieClip Frame 5
stop();
Symbol 150 Button
on (release) {
getURL ("http://www.mindistortion.tv/tellafriend/?link=infect", "_blank");
}
Symbol 154 MovieClip Frame 10
stop();
Symbol 156 Button
on (release) {
_root.engine.menuMusic.stop();
gotoAndPlay (55);
}
Symbol 160 MovieClip Frame 10
stop();
Symbol 162 Button
on (release) {
infobox.targetAlpha = 100;
infobox.content.gotoAndStop("howtoplay");
}
Symbol 166 MovieClip Frame 10
stop();
Symbol 168 Button
on (release) {
getURL ("http://www.mindistortion.tv/highscores/infect", "_blank");
}
Symbol 172 MovieClip Frame 10
stop();
Symbol 174 Button
on (release) {
infobox.targetAlpha = 100;
infobox.content.gotoAndStop("gamesettings");
}
Symbol 178 MovieClip Frame 10
stop();
Symbol 180 Button
on (release) {
infobox.targetAlpha = 100;
infobox.content.gotoAndStop("credits");
}
Symbol 190 Button
on (release) {
nextFrame();
}
Symbol 204 Button
on (release) {
prevFrame();
}
Symbol 210 Button
on (release) {
_root.musicVol = 100;
_root.engine.menuMusic.setVolume(_root.musicVol);
offClip._visible = false;
onClip._visible = true;
}
Symbol 214 Button
on (release) {
_root.musicVol = 0;
_root.engine.menuMusic.setVolume(_root.musicVol);
offClip._visible = true;
onClip._visible = false;
}
Symbol 219 Button
on (release) {
_quality = "HIGH";
_root.autoQuality = true;
automatic._visible = true;
low._visible = false;
medium._visible = false;
high._visible = false;
}
Symbol 223 Button
on (release) {
_quality = "LOW";
_root.autoQuality = false;
automatic._visible = false;
low._visible = true;
medium._visible = false;
high._visible = false;
}
Symbol 227 Button
on (release) {
_quality = "MEDIUM";
_root.autoQuality = false;
automatic._visible = false;
low._visible = false;
medium._visible = true;
high._visible = false;
}
Symbol 231 Button
on (release) {
_quality = "HIGH";
_root.autoQuality = false;
automatic._visible = false;
low._visible = false;
medium._visible = false;
high._visible = true;
}
Symbol 234 MovieClip Frame 1
stop();
Instance of Symbol 218 MovieClip "automatic" in Symbol 234 MovieClip Frame 3
onClipEvent (load) {
if (_root.autoQuality) {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 222 MovieClip "low" in Symbol 234 MovieClip Frame 3
onClipEvent (load) {
if ((!_root.autoQuality) && (_quality == "LOW")) {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 226 MovieClip "medium" in Symbol 234 MovieClip Frame 3
onClipEvent (load) {
if ((!_root.autoQuality) && (_quality == "MEDIUM")) {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 230 MovieClip "high" in Symbol 234 MovieClip Frame 3
onClipEvent (load) {
if ((!_root.autoQuality) && (_quality == "HIGH")) {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 213 MovieClip "offClip" in Symbol 234 MovieClip Frame 3
onClipEvent (load) {
if (_root.musicVol == 0) {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 208 MovieClip "onClip" in Symbol 234 MovieClip Frame 3
onClipEvent (load) {
if (_root.musicVol == 100) {
_visible = true;
} else {
_visible = false;
}
}
Symbol 238 Button
on (release) {
targetAlpha = 0;
}
Symbol 251 Button
on (keyPress "q") {
if (!_root.autoQuality) {
if (_quality == "HIGH") {
_quality = "LOW";
} else if (_quality == "LOW") {
_quality = "MEDIUM";
} else if (_quality == "MEDIUM") {
_quality = "HIGH";
}
}
}
Symbol 252 Button
on (keyPress "m") {
if (_root.musicVol == 100) {
_root.musicVol = 0;
} else {
_root.musicVol = 100;
}
_root.jukebox.mainmenuMusic.setVolume(_root.musicVol);
_root.jukebox.biohazardMusic.setVolume(_root.musicVol);
}
Symbol 262 MovieClip Frame 1
distance = 200 / _root.targetinfection;
i = 0;
while (i < _root.targetinfection) {
attachMovie("bloodicon", "bloodicon" + i, 200 + i);
setProperty("bloodicon" + i, _x , -100 + (distance * i));
setProperty("bloodicon" + i, _y , 335);
i++;
}
onEnterFrame = function () {
seconds = _root.time % 60;
minutes = (_root.time - seconds) / 60;
if (seconds < 10) {
seconds = "0" + seconds;
}
timedisplay = (minutes + ":") + seconds;
};
Instance of Symbol 33 MovieClip "bhlogo" in Symbol 262 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 261 MovieClip "bhbar" in Symbol 262 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_visible) {
_xscale = ((100 * _root.biohazardtime) / 180);
_root.biohazardtime--;
if (_root.biohazardtime <= 0) {
_root.biohazard = false;
_parent.bhlogo._visible = false;
_root.jukebox.biohazardMusic.stop();
_root.jukebox.menuMusic.start(0, 9999);
_visible = false;
}
}
}
Symbol 265 MovieClip Frame 20
stop();
Symbol 273 MovieClip Frame 10
stop();
Symbol 278 MovieClip Frame 10
stop();
Symbol 280 Button
on (release) {
_root.jukebox.mainmenuMusic.stop();
_root.jukebox.biohazardMusic.stop();
_root.gotoAndPlay("newgame");
_root.endLevel();
}
Symbol 284 MovieClip Frame 10
stop();
Symbol 286 Button
on (release) {
_root.gotoAndPlay("highscore");
_root.endLevel();
}
Symbol 289 Button
on (release) {
getURL ("http://www.mindistortion.tv", "_blank");
}
Symbol 295 Button
on (release) {
_root.jukebox.mainmenuMusic.stop();
_root.jukebox.biohazardMusic.stop();
_root.gotoAndStop("mainmenu");
_root.endLevel();
}
Symbol 301 MovieClip Frame 10
stop();
Symbol 322 Button
on (release) {
_root.jukebox.menuMusic.stop();
_root.gamelevel++;
if (_root.gamelevel >= 7) {
a = 5 * (_root.gamelevel - 6);
} else {
a = 0;
}
if (_root.gamelevel >= 12) {
b = 3 * (_root.gamelevel - 11);
} else {
b = 0;
}
_root.time = ((30 + (3 * (_root.gamelevel - 1))) + a) + b;
if (_root.oldtargetinfection < 27) {
a = 1.5;
} else {
a = 1.3;
}
if (_root.gamelevel > 4) {
_root.wdelay = Math.round(_root.wdelay * 1.15);
}
if (_root.gamelevel > 7) {
_root.adelay = Math.round(_root.wdelay * 1.15);
}
_root.oldtargetinfection = Math.round(_root.oldtargetinfection * a);
_root.targetinfection = _root.oldtargetinfection;
_root.gotoAndStop("ingame");
}
Symbol 323 MovieClip Frame 1
onEnterFrame = function () {
latencyfield = (Math.round((1000 * _root.latency) / 24) / 1000) + "s";
immunityfield = _root.immunity + "%";
};
Symbol 326 MovieClip Frame 1
me = _name.substr(8);
onEnterFrame = function () {
cost = "cost: " + _root.cost[me];
};
Symbol 332 MovieClip Frame 10
stop();
Symbol 335 Button
on (rollOver) {
help = _root.stathelp[0];
helpbox.targetAlpha = 100;
}
on (rollOut, releaseOutside) {
help = "";
helpbox.targetAlpha = 0;
}
on (release) {
if (_root.cost[0] <= _root.score) {
_root.score = _root.score - _root.cost[0];
_root.statlevel[0]++;
_root.cost[0] = Math.round(_root.cost[0] * 3);
_root.latency = Math.round(_root.latency - (7 / Math.sqrt(_root.statlevel[0])));
if (_root.latency <= 1) {
_root.latency = 1;
}
}
}
Symbol 340 MovieClip Frame 10
stop();
Symbol 341 Button
on (rollOver) {
help = _root.stathelp[1];
helpbox.targetAlpha = 100;
}
on (rollOut, releaseOutside) {
help = "";
helpbox.targetAlpha = 0;
}
on (release) {
if (_root.cost[1] <= _root.score) {
_root.score = _root.score - _root.cost[1];
_root.statlevel[1]++;
_root.cost[1] = Math.round(_root.cost[1] * 3);
_root.damage = _root.statlevel[1] - 1;
}
}
Symbol 348 MovieClip Frame 10
stop();
Symbol 349 Button
on (rollOver) {
help = _root.stathelp[2];
helpbox.targetAlpha = 100;
}
on (rollOut, releaseOutside) {
help = "";
helpbox.targetAlpha = 0;
}
on (release) {
if (_root.cost[2] <= _root.score) {
_root.score = _root.score - _root.cost[2];
_root.statlevel[2]++;
_root.cost[2] = Math.round(_root.cost[2] * 3);
_root.immunity = Math.round(_root.immunity + (10 / Math.sqrt(_root.statlevel[2])));
}
}
Symbol 356 MovieClip Frame 10
stop();
Symbol 357 Button
on (rollOver) {
help = _root.stathelp[3];
helpbox.targetAlpha = 100;
}
on (rollOut, releaseOutside) {
help = "";
helpbox.targetAlpha = 0;
}
on (release) {
if (_root.cost[3] <= _root.score) {
_root.score = _root.score - _root.cost[3];
_root.statlevel[3]++;
_root.cost[3] = Math.round(_root.cost[3] * 5);
_root.reproduction = _root.statlevel[3];
}
}
Symbol 366 Button
on (release) {
gotoAndStop ("mainmenu");
}
Symbol 367 Button
on (release) {
getURL ("http://www.mindistortion.net", "_blank");
}
Symbol 378 Button
on (release) {
if (playername != "") {
play();
}
}
Symbol 472 MovieClip Frame 1
stop();
score = _root.totalscore;
playername = "";
loaded = "";
Symbol 472 MovieClip Frame 2
function bitOR(a, b) {
var _local1 = (a & 1) | (b & 1);
var _local2 = (a >>> 1) | (b >>> 1);
return((_local2 << 1) | _local1);
}
function bitXOR(a, b) {
var _local1 = (a & 1) ^ (b & 1);
var _local2 = (a >>> 1) ^ (b >>> 1);
return((_local2 << 1) | _local1);
}
function bitAND(a, b) {
var _local1 = (a & 1) & (b & 1);
var _local2 = (a >>> 1) & (b >>> 1);
return((_local2 << 1) | _local1);
}
function addme(x, y) {
var _local1 = (x & 65535) + (y & 65535);
var _local2 = ((x >> 16) + (y >> 16)) + (_local1 >> 16);
return((_local2 << 16) | (_local1 & 65535));
}
function rhex(num) {
str = "";
j = 0;
while (j <= 3) {
str = str + (hex_chr.charAt((num >> ((j * 8) + 4)) & 15) + hex_chr.charAt((num >> (j * 8)) & 15));
j++;
}
return(str);
}
function str2blks_MD5(str) {
nblk = ((str.length + 8) >> 6) + 1;
blks = new Array(nblk * 16);
i = 0;
while (i < (nblk * 16)) {
blks[i] = 0;
i++;
}
i = 0;
while (i < str.length) {
blks[i >> 2] = blks[i >> 2] | (str.charCodeAt(i) << ((((str.length * 8) + i) % 4) * 8));
i++;
}
blks[i >> 2] = blks[i >> 2] | (128 << ((((str.length * 8) + i) % 4) * 8));
var _local2 = str.length * 8;
blks[(nblk * 16) - 2] = _local2 & 255;
blks[(nblk * 16) - 2] = blks[(nblk * 16) - 2] | (((_local2 >>> 8) & 255) << 8);
blks[(nblk * 16) - 2] = blks[(nblk * 16) - 2] | (((_local2 >>> 16) & 255) << 16);
blks[(nblk * 16) - 2] = blks[(nblk * 16) - 2] | (((_local2 >>> 24) & 255) << 24);
return(blks);
}
function rol(num, cnt) {
return((num << cnt) | (num >>> (32 - cnt)));
}
function cmn(q, a, b, x, s, t) {
return(addme(rol(addme(addme(a, q), addme(x, t)), s), b));
}
function ff(a, b, c, d, x, s, t) {
return(cmn(bitOR(bitAND(b, c), bitAND(~b, d)), a, b, x, s, t));
}
function gg(a, b, c, d, x, s, t) {
return(cmn(bitOR(bitAND(b, d), bitAND(c, ~d)), a, b, x, s, t));
}
function hh(a, b, c, d, x, s, t) {
return(cmn(bitXOR(bitXOR(b, c), d), a, b, x, s, t));
}
function ii(a, b, c, d, x, s, t) {
return(cmn(bitXOR(c, bitOR(b, ~d)), a, b, x, s, t));
}
function calcMD5(str) {
x = str2blks_MD5(str);
a = 1732584193 /* 0x67452301 */;
b = -271733879;
c = -1732584194;
d = 271733878 /* 0x10325476 */;
var _local1;
i = 0;
while (i < x.length) {
olda = a;
oldb = b;
oldc = c;
oldd = d;
_local1 = 0;
a = ff(a, b, c, d, x[i + 0], 7, -680876936);
d = ff(d, a, b, c, x[i + 1], 12, -389564586);
c = ff(c, d, a, b, x[i + 2], 17, 606105819);
b = ff(b, c, d, a, x[i + 3], 22, -1044525330);
a = ff(a, b, c, d, x[i + 4], 7, -176418897);
d = ff(d, a, b, c, x[i + 5], 12, 1200080426);
c = ff(c, d, a, b, x[i + 6], 17, -1473231341);
b = ff(b, c, d, a, x[i + 7], 22, -45705983);
a = ff(a, b, c, d, x[i + 8], 7, 1770035416);
d = ff(d, a, b, c, x[i + 9], 12, -1958414417);
c = ff(c, d, a, b, x[i + 10], 17, -42063);
b = ff(b, c, d, a, x[i + 11], 22, -1990404162);
a = ff(a, b, c, d, x[i + 12], 7, 1804603682);
d = ff(d, a, b, c, x[i + 13], 12, -40341101);
c = ff(c, d, a, b, x[i + 14], 17, -1502002290);
b = ff(b, c, d, a, x[i + 15], 22, 1236535329);
a = gg(a, b, c, d, x[i + 1], 5, -165796510);
d = gg(d, a, b, c, x[i + 6], 9, -1069501632);
c = gg(c, d, a, b, x[i + 11], 14, 643717713);
b = gg(b, c, d, a, x[i + 0], 20, -373897302);
a = gg(a, b, c, d, x[i + 5], 5, -701558691);
d = gg(d, a, b, c, x[i + 10], 9, 38016083);
c = gg(c, d, a, b, x[i + 15], 14, -660478335);
b = gg(b, c, d, a, x[i + 4], 20, -405537848);
a = gg(a, b, c, d, x[i + 9], 5, 568446438);
d = gg(d, a, b, c, x[i + 14], 9, -1019803690);
c = gg(c, d, a, b, x[i + 3], 14, -187363961);
b = gg(b, c, d, a, x[i + 8], 20, 1163531501);
a = gg(a, b, c, d, x[i + 13], 5, -1444681467);
d = gg(d, a, b, c, x[i + 2], 9, -51403784);
c = gg(c, d, a, b, x[i + 7], 14, 1735328473);
b = gg(b, c, d, a, x[i + 12], 20, -1926607734);
a = hh(a, b, c, d, x[i + 5], 4, -378558);
d = hh(d, a, b, c, x[i + 8], 11, -2022574463);
c = hh(c, d, a, b, x[i + 11], 16, 1839030562);
b = hh(b, c, d, a, x[i + 14], 23, -35309556);
a = hh(a, b, c, d, x[i + 1], 4, -1530992060);
d = hh(d, a, b, c, x[i + 4], 11, 1272893353);
c = hh(c, d, a, b, x[i + 7], 16, -155497632);
b = hh(b, c, d, a, x[i + 10], 23, -1094730640);
a = hh(a, b, c, d, x[i + 13], 4, 681279174);
d = hh(d, a, b, c, x[i + 0], 11, -358537222);
c = hh(c, d, a, b, x[i + 3], 16, -722521979);
b = hh(b, c, d, a, x[i + 6], 23, 76029189);
a = hh(a, b, c, d, x[i + 9], 4, -640364487);
d = hh(d, a, b, c, x[i + 12], 11, -421815835);
c = hh(c, d, a, b, x[i + 15], 16, 530742520);
b = hh(b, c, d, a, x[i + 2], 23, -995338651);
a = ii(a, b, c, d, x[i + 0], 6, -198630844);
d = ii(d, a, b, c, x[i + 7], 10, 1126891415);
c = ii(c, d, a, b, x[i + 14], 15, -1416354905);
b = ii(b, c, d, a, x[i + 5], 21, -57434055);
a = ii(a, b, c, d, x[i + 12], 6, 1700485571);
d = ii(d, a, b, c, x[i + 3], 10, -1894986606);
c = ii(c, d, a, b, x[i + 10], 15, -1051523);
b = ii(b, c, d, a, x[i + 1], 21, -2054922799);
a = ii(a, b, c, d, x[i + 8], 6, 1873313359);
d = ii(d, a, b, c, x[i + 15], 10, -30611744);
c = ii(c, d, a, b, x[i + 6], 15, -1560198380);
b = ii(b, c, d, a, x[i + 13], 21, 1309151649);
a = ii(a, b, c, d, x[i + 4], 6, -145523070);
d = ii(d, a, b, c, x[i + 11], 10, -1120210379);
c = ii(c, d, a, b, x[i + 2], 15, 718787259);
b = ii(b, c, d, a, x[i + 9], 21, -343485551);
a = addme(a, olda);
b = addme(b, oldb);
c = addme(c, oldc);
d = addme(d, oldd);
i = i + 16;
}
return(((rhex(a) + rhex(b)) + rhex(c)) + rhex(d));
}
var hex_chr = "0123456789abcdef";
Symbol 472 MovieClip Frame 3
highscore_table = "highscore_infect";
list_size = 30;
r = Math.round(random(100)) + 1;
keycheck = calcMD5(String((score * r) + 1984));
loadVariables ("../../processing/writeHighscore.php", this, "POST");
Symbol 472 MovieClip Frame 7
if ((loaded == undefined) || (loaded == "")) {
gotoAndPlay(_currentframe - 2);
}
Symbol 472 MovieClip Frame 8
stop();
remoteVars = new LoadVars();
remoteVars.load("../../processing/readHighscore.php?list_size=30&highscore_table=highscore_infect");
remoteVars.onLoad = function () {
name1 = remoteVars.name1;
name2 = remoteVars.name2;
name3 = remoteVars.name3;
name4 = remoteVars.name4;
name5 = remoteVars.name5;
name6 = remoteVars.name6;
name7 = remoteVars.name7;
name8 = remoteVars.name8;
name9 = remoteVars.name9;
name10 = remoteVars.name10;
name11 = remoteVars.name11;
name12 = remoteVars.name12;
name13 = remoteVars.name13;
name14 = remoteVars.name14;
name15 = remoteVars.name15;
name16 = remoteVars.name16;
name17 = remoteVars.name17;
name18 = remoteVars.name18;
name19 = remoteVars.name19;
name20 = remoteVars.name20;
name21 = remoteVars.name21;
name22 = remoteVars.name22;
name23 = remoteVars.name23;
name24 = remoteVars.name24;
name25 = remoteVars.name25;
name26 = remoteVars.name26;
name27 = remoteVars.name27;
name28 = remoteVars.name28;
name29 = remoteVars.name29;
name30 = remoteVars.name30;
score1 = remoteVars.score1;
score2 = remoteVars.score2;
score3 = remoteVars.score3;
score4 = remoteVars.score4;
score5 = remoteVars.score5;
score6 = remoteVars.score6;
score7 = remoteVars.score7;
score8 = remoteVars.score8;
score9 = remoteVars.score9;
score10 = remoteVars.score10;
score11 = remoteVars.score11;
score12 = remoteVars.score12;
score13 = remoteVars.score13;
score14 = remoteVars.score14;
score15 = remoteVars.score15;
score16 = remoteVars.score16;
score17 = remoteVars.score17;
score18 = remoteVars.score18;
score19 = remoteVars.score19;
score20 = remoteVars.score20;
score21 = remoteVars.score21;
score22 = remoteVars.score22;
score23 = remoteVars.score23;
score24 = remoteVars.score24;
score25 = remoteVars.score25;
score26 = remoteVars.score26;
score27 = remoteVars.score27;
score28 = remoteVars.score28;
score29 = remoteVars.score29;
score30 = remoteVars.score30;
play();
};
Symbol 472 MovieClip Frame 10
stop();
Symbol 476 Button
on (keyPress "h") {
if (lock == 0) {
lock++;
} else {
lock--;
}
}
on (keyPress "e") {
if (lock == 1) {
lock++;
} else if (lock == 3) {
lock++;
} else {
lock--;
}
}
on (keyPress "r") {
if (lock == 2) {
lock++;
} else {
lock--;
}
}
on (keyPress "t") {
if (lock == 4) {
lock++;
} else {
lock--;
}
}
on (keyPress "i") {
if (lock == 5) {
lock++;
} else {
lock--;
}
}
on (keyPress "k") {
if (lock == 6) {
stolen = false;
gotoAndPlay (52);
}
}
Symbol 480 Button
on (release) {
getURL ("http://www.mindistortion.net", "_blank");
}