Frame 1
stop();
bl = this.getBytesLoaded();
bt = this.getBytesTotal();
if (((bl / bt) * 100) >= 100) {
this.alreadyloaded = true;
gotoAndStop ("dagame");
} else {
this.alreadyloaded = false;
this.onEnterFrame = function () {
bl = this.getBytesLoaded();
bt = this.getBytesTotal();
perc = (bl / bt) * 100;
this.dabar._xscale = perc;
if (perc >= 100) {
delete this.onEnterFrame;
gotoAndStop ("dagame");
}
};
}
Frame 2
stop();
Frame 3
function setDiff(d) {
this.difficulty = d;
if (d == 1) {
this.maxnotes = 2;
this.multis = false;
} else if (d == 2) {
this.maxnotes = 3;
this.multis = true;
} else {
this.maxnotes = 4;
this.multis = true;
}
}
function showDiff() {
p = attachMovie("ww_game_diff", "diff", 200, {_x:-48, _y:35});
p.guts.d0.onPress = function () {
_root.WPI_SimpleSound(2);
if (debugmode) {
trace("EASY");
}
this._parent._parent.unloadMovie();
this._parent._parent.removeMovieClip();
setDiff(1);
Launcher();
};
p.guts.d1.onPress = function () {
_root.WPI_SimpleSound(2);
if (debugmode) {
trace("NORMAL");
}
this._parent._parent.unloadMovie();
this._parent._parent.removeMovieClip();
setDiff(2);
Launcher();
};
p.guts.d2.onPress = function () {
_root.WPI_SimpleSound(2);
if (debugmode) {
trace("HARD");
}
this._parent._parent.unloadMovie();
this._parent._parent.removeMovieClip();
setDiff(3);
Launcher();
};
}
function StartGame(type) {
this.menu.unloadMovie();
this.menu.removeMovieClip();
mt = new Array();
this.score = 0;
this.multiplier = 1;
this.chain = 0;
satietybar._xscale = 100;
this.registered = 0;
UpdateScore();
cv = 0;
while (cv < 6) {
var wk = eval ("this.wigkey" + (cv + 1));
wk.text = keysetnams[this.curkeyset][cv];
cv++;
}
if (type < 0) {
showDiff();
} else {
Launcher();
}
}
function Launcher() {
BuildGrid();
GetSongs();
this.notefreq = this.datfreq[this.cursong];
trace("NOTE FREQ=" + this.datfreq[this.cursong]);
this.marginerr = (this.notefreq / 2) - 1;
this.delay = this.notefreq * 3;
this.bgm = attachMovie("song" + this.cursong, "song", 0);
this.pts = {miss:this.difficulty * 2, hit:this.difficulty, perfect:this.difficulty * 3};
this.gamestarted = true;
}
function StopGame(winlose) {
UpdateScore();
delete this.onEnterFrame;
main.danotes.unloadMovie();
main.danotes.removeMovieClip();
main.dahit.unloadMovie();
main.dahit.removeMovieClip();
Key.removeListener(this.keyob);
this.gamestarted = false;
this.bgm.unloadMovie();
this.bgm.removeMovieClip();
this.winlose = winlose;
var _local2 = this.attachMovie("winlosescreen", "winlose", 20, {_x:115, _y:95});
if (!winlose) {
_local2.win._visible = false;
_local2.lose._visible = true;
} else {
_local2.win._visible = true;
_local2.lose._visible = false;
}
_local2.finalscore.text = this.score;
_local2.finalhits.text = this.perfect + this.yes;
_local2.finalmisses.text = this.no;
_local2.acc = int(((this.perfect + this.yes) / ((this.perfect + this.yes) + this.no)) * 100);
_local2.finalaccuracy.text = _local2.acc + "%";
_local2.finalhighest.text = "x" + int((this.bestchain / this.nextmultiplier) + 1);
_local2.multiplier = int(this.bestchain / this.nextmultiplier) + 1;
_local2.rank = 0;
if (_local2.multiplier >= 3) {
_local2.rank = Number(_local2.rank) + 1;
}
if (_local2.multiplier >= 5) {
_local2.rank = Number(_local2.rank) + 1;
}
if (_local2.multiplier >= 15) {
_local2.rank = Number(_local2.rank) + 1;
}
if ((_local2.acc >= 95) && (Number(_local2.finalhits.text) > 50)) {
_local2.rank = Number(_local2.rank) + 1;
}
if ((_local2.acc >= 85) && (Number(_local2.finalhits.text) > 50)) {
_local2.rank = Number(_local2.rank) + 1;
}
if (wNumber(_local2.finalhits.text) > 60) {
_local2.rank = Number(_local2.rank) + 1;
}
if (this.score > 250) {
_local2.rank = Number(_local2.rank) + 1;
}
if (this.score > 1000) {
_local2.rank = Number(_local2.rank) + 1;
}
if (this.score > 2000) {
_local2.rank = Number(_local2.rank) + 1;
}
if (this.score > 4000) {
_local2.rank = Number(_local2.rank) + 1;
}
_local2.attachMovie("ranker", "rankbar", 5000, {val:_local2.rank});
_local2.ok.onPress = function () {
this.gameoversound.stop();
trace(this._parent._parent);
this._parent._parent.attachMenu();
this._parent.unloadMovie();
this._parent.removeMovieClip();
};
}
function BuildGrid() {
this.notes = new Array();
this.noteatbat = -1;
this.curnote = -1;
this.latesthole = null;
this.perfect = 0;
this.yes = 0;
this.no = 0;
this.chain = 0;
this.bestchain = 0;
main.grid = new Array();
var _local2 = 0;
while (_local2 < main.maxnotes) {
tmp = 0;
while ((!tmp) || (main.grid[tmp])) {
tmp = int(Math.random() * wigpos.length);
}
main.grid[tmp] = _local2 + 1;
_local2++;
}
_local2 = 0;
while (_local2 < wigpos.length) {
if (!main.grid[_local2]) {
main.grid[_local2] = int(Math.random() * main.maxnotes) + 1;
}
ChangeWigCol(_local2, main.grid[_local2], 1);
ChangeWigCol(_local2, int(Math.random() * main.maxnotes) + 1, 0);
_local2++;
}
}
function Trigger() {
main.clip_danotes = main.createEmptyMovieClip("danotes", main.wigs1.getDepth() + 1);
main.clip_dahit = main.createEmptyMovieClip("dahit", 9999);
this.fullcount = 0;
this.count = main.notefreq;
this.countdown = main.datlen[main.cursong];
satietybar.gotHurt = 0;
satietybar.onEnterFrame = function () {
if (this.gotHurt != 0) {
if (this.gotHurt < 0) {
hurting = -1;
} else {
hurting = 1;
}
this.gotHurt = this.gotHurt - hurting;
this._xscale = this._xscale + hurting;
}
if (this._xscale > 100) {
this._xscale = 100;
this.gotHurt = 0;
}
if (this._xscale < 0) {
this._xscale = 0;
this.gotHurt = 0;
}
};
this.onEnterFrame = function () {
this.fullcount++;
this.count--;
if (this.count == 0) {
this.countdown--;
if (this.countdown == 0) {
StopGame(1);
}
this.count = notefreq;
if ((this.dats[this.cursong][this.curnote + 1].t - this.fullcount) == 0) {
this.curnote++;
this.nextnote = this.dats[this.cursong][this.curnote];
mt.push(main.clip_danotes.attachMovie("note", "note" + this.curnote, this.curnote, {val:this.nextnote.b, val2:this.nextnote.b2, pitch:this.nextnote.n, pitch2:this.nextnote.n2}));
this.notes.push(this.nextnote);
}
}
if ((this.notes[this.noteatbat + 1].t - this.fullcount) == (-1 * int(main.delay - (main.notefreq / 2)))) {
main.registered = 0;
this.noteatbat++;
nxt.text = this.notes[this.noteatbat].b;
}
if (satietybar._xscale == 0) {
StopGame(0);
}
};
this.keyob = new Object();
this.keyob.onKeyDown = function () {
if (!main.gamestarted) {
return(undefined);
}
acc = main.count - main.offset;
fullacc = main.fullcount - main.offset;
keypressed = Key.getCode();
var cv = 0;
while (cv < keysets[main.curkeyset].length) {
if (int(keypressed) == int(keysets[main.curkeyset][cv])) {
main.pos = cv + 1;
}
cv++;
}
if (main.pos) {
q = eval ("main.wigs" + main.pos);
main.pos--;
acc = GetAccuracy(acc, fullacc, q);
accuracy.text = ((("Wiggi " + main.pos) + ": ") + acc) + "%";
}
trace(keypressed);
main.pos = 0;
};
Key.addListener(this.keyob);
}
function ChangeLatestHole(q) {
if (!isLastNote(q)) {
v = int(Math.random() * this.maxnotes) + 1;
ChangeWigCol(q.pos, q.ondeck, 1);
ChangeWigCol(q.pos, int(Math.random() * main.maxnotes) + 1, 0);
}
}
function isLastNote(q) {
var count = new Array();
var cv = 0;
while (cv < main.maxnotes) {
count.push(0);
cv++;
}
var cv = 0;
while (cv < wigpos.length) {
w = eval ("main.wigs" + (cv + 1));
count[w.val - 1]++;
cv++;
}
if (count[q.val - 1] == 1) {
return(true);
}
return(false);
}
function UpdateScore() {
if (this.chain >= (this.multiplier * this.nextmultiplier)) {
this.multiplier++;
} else if (this.chain < (this.multiplier * this.nextmultiplier)) {
this.multiplier = int(this.chain / this.nextmultiplier) + 1;
}
if (main.score < 0) {
main.score = 0;
}
correcttxt.text = "correct: " + main.yes;
perfecttxt.text = "perfect: " + main.perfect;
chaintxt.text = "chain: " + main.chain;
bestchaintxt.text = "best chain: " + main.bestchain;
missedtxt.text = "missed: " + main.no;
main.hud.guts.scoretxt.text = main.score;
main.hud.guts.multipliertxt.text = "x" + main.multiplier;
trace("SCORE: " + main.score);
trace("CHAIN: " + main.chain);
}
function ChangeSatiety(chg) {
main.hud.guts.satietymeter.gotHurt = main.hud.guts.satietymeter.gotHurt + chg;
}
function Incorrect(a) {
main.registered = 7;
if (a != 6) {
q.shoottype = 0;
q.tongue.gotoAndPlay("shoot");
if (main.sound) {
SimpleSound("incorrect");
}
}
main.chain = 0;
main.no++;
main.score = main.score - main.pts.miss;
ChangeSatiety(this.satietymiss);
UpdateScore();
return(0);
}
function Correct(val, q) {
q.shoottype = true;
q.tongue.gotoAndPlay("shoot");
ChangeLatestHole(q);
if (val > 85) {
if (val == 100) {
main.perfect++;
main.score = main.score + (main.pts.perfect * main.multiplier);
} else {
main.score = main.score + (main.pts.hit * main.multiplier);
}
if (main.sound) {
if (main.registered == 1) {
var _local1 = new Sound(mt[main.noteatbat]);
_local1.setVolume(20);
_local1.attachSound(mt[main.noteatbat].pitch);
_local1.start();
} else if ((main.registered == 2) && (main.multis)) {
var _local1 = new Sound(mt[main.noteatbat]);
_local1.setVolume(20);
_local1.attachSound(mt[main.noteatbat].pitch2);
_local1.start();
}
}
} else {
if (main.sound) {
SimpleSound("ok");
}
main.score = main.score + (main.pts.hit * main.multiplier);
}
main.yes++;
main.chain++;
if (main.chain > main.bestchain) {
main.bestchain = main.chain;
}
UpdateScore();
mt[main.noteatbat]._visible = false;
return(val);
}
function AttachHit(hittype) {
trace("DEPTH:" + (2001 + main.registered));
main.clip_dahit.attachMovie("hit", "hit" + main.registered, 2001 + main.registered, {val:hittype, _x:mt[main.noteatbat]._x, _y:mt[main.noteatbat]._y});
}
function GetAccuracy(c, d, q) {
if (main.registered > 3) {
return(Incorrect(1));
}
if (main.noteatbat == -1) {
return(Incorrect(2));
}
if ((q.val != main.notes[main.noteatbat].b) && (q.val != main.notes[main.noteatbat].b2)) {
return(Incorrect(3));
}
e = main.notes[main.noteatbat].t + main.delay;
if (Math.abs(e - d) > main.marginerr) {
return(Incorrect(4));
}
main.registered++;
if (Math.abs(c - main.marginerr) >= main.marginerr) {
hittype = "perfect";
AttachHit(hittype);
ChangeSatiety(this.satietyhit + 2);
return(Correct(100, q));
}
val = Math.round((Math.abs(c - main.marginerr) / main.marginerr) * 100, 3);
trueval = Math.round(((c - main.marginerr) / main.marginerr) * 100, 3);
if ((val > 45) && (val < 70)) {
if (trueval > 0) {
hittype = "late";
} else {
hittype = "early";
}
AttachHit(hittype);
return(Incorrect(4));
}
if (val >= 70) {
if (val > 85) {
hittype = "good";
ChangeSatiety(this.satietyhit + 1);
} else {
hittype = "ok";
ChangeSatiety(this.satietyhit);
}
AttachHit(hittype);
return(Correct(val, q));
}
}
function GetSongs() {
this.datlen = new Array();
this.dats = new Array();
this.datfreq = new Array(25, 25, 25);
this.dats[0] = new Array();
s = this.datfreq[0];
var _local2 = 0;
while (_local2 < 45) {
anote = new Object();
anote.t = s;
anote.b = int(Math.random() * this.maxnotes) + 1;
anote.n = notenames[int(Math.random() * notenames.length)];
if (this.multis) {
anote.b2 = int(Math.random() * this.maxnotes) + 1;
anote.n2 = notenames[int(Math.random() * notenames.length)];
} else {
anote.b2 = anote.b;
anote.n2 = anote.n;
}
this.dats[0].push(anote);
s = s + this.datfreq[0];
_local2++;
}
this.dats[1] = new Array();
s = 25;
this.dats[1].push({t:s, b:1, n:"dsharp3"});
s = s + 25;
this.dats[1].push({t:s, b:2, n:"e3"});
s = s + 25;
this.dats[1].push({t:s, b:3, n:"dsharp3"});
s = s + 25;
this.dats[1].push({t:s, b:4, n:"csharp3"});
s = s + 25;
this.dats[1].push({t:s, b:1, n:"dsharp3"});
s = s + 25;
this.dats[1].push({t:s, b:2, n:"e3"});
s = s + 25;
this.dats[1].push({t:s, b:4, n:"dsharp3"});
s = s + 50;
this.dats[1].push({t:s, b:1, n:"dsharp3"});
s = s + 25;
this.dats[1].push({t:s, b:2, n:"e3"});
s = s + 25;
this.dats[1].push({t:s, b:3, n:"dsharp3"});
s = s + 25;
this.dats[1].push({t:s, b:4, n:"csharp3"});
s = s + 25;
this.dats[1].push({t:s, b:1, n:"dsharp3"});
s = s + 25;
this.dats[1].push({t:s, b:2, n:"e3"});
s = s + 50;
this.dats[1].push({t:s, b:4, n:"dsharp3"});
s = s + 25;
this.dats[1].push({t:s, b:1, n:"gsharp3"});
s = s + 25;
this.dats[1].push({t:s, b:2, n:"e3"});
s = s + 25;
this.dats[1].push({t:s, b:3, n:"gsharp3"});
s = s + 25;
this.dats[1].push({t:s, b:4, n:"asharp3"});
s = s + 25;
this.dats[1].push({t:s, b:1, n:"gsharp3"});
s = s + 25;
this.dats[1].push({t:s, b:2, n:"e3"});
s = s + 25;
this.dats[1].push({t:s, b:4, n:"gsharp3"});
s = s + 50;
this.dats[1].push({t:s, b:1, n:"gsharp3"});
s = s + 25;
this.dats[1].push({t:s, b:2, n:"a3"});
s = s + 25;
this.dats[1].push({t:s, b:3, n:"gsharp3"});
s = s + 25;
this.dats[1].push({t:s, b:4, n:"fsharp3"});
s = s + 25;
this.dats[1].push({t:s, b:1, n:"gsharp3"});
s = s + 25;
this.dats[1].push({t:s, b:2, n:"a3"});
s = s + 50;
this.dats[1].push({t:s, b:4, n:"gsharp3"});
s = s + 25;
this.dats[1].push({t:s, b:1, n:"dsharp3"});
s = s + 25;
this.dats[1].push({t:s, b:2, n:"e3"});
s = s + 25;
this.dats[1].push({t:s, b:3, n:"dsharp3"});
s = s + 25;
this.dats[1].push({t:s, b:4, n:"csharp3"});
s = s + 25;
this.dats[1].push({t:s, b:1, n:"dsharp3"});
s = s + 25;
this.dats[1].push({t:s, b:2, n:"e3"});
s = s + 25;
this.dats[1].push({t:s, b:4, n:"dsharp3"});
s = s + 50;
this.dats[1].push({t:s, b:1, n:"dsharp3"});
s = s + 25;
this.dats[1].push({t:s, b:2, n:"e3"});
s = s + 25;
this.dats[1].push({t:s, b:3, n:"dsharp3"});
s = s + 25;
this.dats[1].push({t:s, b:4, n:"csharp3"});
s = s + 25;
this.dats[1].push({t:s, b:1, n:"dsharp3"});
s = s + 25;
this.dats[1].push({t:s, b:2, n:"e3"});
s = s + 50;
this.dats[1].push({t:s, b:4, n:"dsharp3"});
s = s + 25;
_local2 = 0;
while (_local2 < this.dats.length) {
this.datlen.push((this.dats[_local2][this.dats[_local2].length - 1].t / 25) + 5);
cv2 = 0;
while (cv2 < this.dats[_local2].length) {
this.dats[_local2][cv2].b = int(Math.random() * this.maxnotes) + 1;
this.dats[_local2][cv2].b2 = int(Math.random() * this.maxnotes) + 1;
this.dats[_local2][cv2].n = (this.insts[this.curinst] + "_") + this.dats[_local2][cv2].n;
if (_local2 > 0) {
if (!this.multis) {
this.dats[_local2][cv2].b2 = this.dats[_local2][cv2].b;
this.dats[_local2][cv2].n2 = this.dats[_local2][cv2].n;
}
}
this.dats[_local2][cv2].n2 = (this.insts[this.curinst] + "_") + this.dats[_local2][cv2].n2;
cv2++;
}
_local2++;
}
}
stop();
this.soundlayer = this.createEmptyMovieClip("sounds", -1000);
this.attachMenu = function () {
trace("LOADING MENU");
this.menu = attachMovie("menus", "menu", 2000, {_x:391, _y:286});
};
this.attachMenu();
this.bgcols = new Array("0xE60007", "0xE6D700", "0x99E600", "0x58B2C0");
var notenames = new Array("c3", "csharp3", "d3", "dsharp3", "e3", "f3", "fsharp3", "g3", "gsharp3", "a3", "asharp3", "b3", "c4");
var wigpos = new Array();
wigpos.push({xval:224, yval:345});
wigpos.push({xval:85, yval:424});
wigpos.push({xval:222, yval:535});
wigpos.push({xval:550, yval:331});
wigpos.push({xval:649, yval:426});
wigpos.push({xval:546, yval:532});
var keysets = new Array();
keysets.push(new Array(69, 87, 81, 73, 79, 80));
keysets.push(new Array(87, 65, 90, 69, 68, 88));
keysets.push(new Array(87, 83, 88, 85, 74, 77));
var keysetnams = new Array();
keysetnams.push(new Array("E", "W", "Q", "I", "O", "P"));
keysetnams.push(new Array("W", "A", "Z", "E", "D", "X"));
keysetnams.push(new Array("W", "S", "X", "U", "J", "M"));
var insts = new Array("bell", "crystal");
txt.text = 0;
this.satietymiss = -5;
this.satietyhit = 1;
this.multis = true;
this.sound = 1;
this.rows = 4;
this.cols = 3;
this.cursong = 1;
this.curinst = 0;
this.offset = 2;
this.nextmultiplier = 5;
this.curkeyset = 0;
this.pts = new Array();
main = this;
mt = new Array();
satietybar = main.hud.guts.satietymeter;
ChangeWigCol = function (cv, val, which) {
w = eval ("main.wigs" + (cv + 1));
if (which == 1) {
var thing = new Color(w.col1);
w.val = val;
} else {
var thing = new Color(w.col0);
w.ondeck = val;
}
thing.setRGB(main.bgcols[val - 1]);
};
this.onMouseDown = function () {
trace((("Mouse is at: " + _xmouse) + ", ") + _ymouse);
};
this.SimpleSound = function (x) {
if (!_root.soundmute) {
var _local3 = new Sound(this.soundlayer);
_local3.setVolume(20);
_local3.attachSound(x);
_local3.start();
}
};
var cv = 0;
while (cv < wigpos.length) {
w = eval ("main.wigs" + (cv + 1));
w.pos = cv;
cv++;
}
Symbol 43 MovieClip [ranker] Frame 1
function updateMe(num) {
i = 0;
while (i < 9) {
thing = eval ("b" + i);
thing.num = i + 1;
n = 0;
while (n < 3) {
hid = eval ("thing.r" + n);
hid._visible = false;
n++;
}
i++;
}
i = 0;
while (i < 9) {
var thing = eval ("b" + i);
if (i < num) {
if (i < 3) {
thing.r0._visible = true;
}
if ((i >= 3) && (i < 6)) {
thing.r1._visible = true;
}
if ((i >= 6) && (i < 10)) {
thing.r2._visible = true;
}
}
i++;
}
}
this._x = 272.8;
this._y = 281.9;
updateMe(this.val);
Symbol 45 MovieClip Frame 1
this.onPress = function () {
};
Symbol 75 MovieClip [note] Frame 1
this._x = 750;
this._y = 65;
this.xrate = (6.9 * (this._parent._parent.notefreq / 30)) + ((25 - this._parent._parent.notefreq) * 0.55);
this.yrate = (24.8 * (this._parent._parent.notefreq / 30)) + ((25 - this._parent._parent.notefreq) * 1.5);
this.grid_danote = this.createEmptyMovieClip("thenote", 1000);
if (this.val == this.val2) {
this.n = this.grid_danote.attachMovie((("note" + this.val) + "_") + this.val2, "note", 1);
} else {
this.n = this.grid_danote.attachMovie("note" + this.val, "note", 1);
this.n._x = -21;
this.m = this.grid_danote.attachMovie("note" + this.val2, "note2", 2);
this.m._x = 21;
}
this._rotation = 90;
this.cacheAsBitmap = true;
this.turnrate = 0;
this.falling = false;
while (!this.turnrate) {
this.turnrate = -1 * ((int(Math.random() * 5) * 5) + 5);
}
this.turnelapsetotal = 7 - ((25 - this._parent._parent.notefreq) / 2.5);
this.turnelapse = 0;
this.onEnterFrame = function () {
if (!this._parent._parent.gamestarted) {
this.destroy();
}
if (this._x > 405) {
this._x = this._x - this.xrate;
if (this._x < 440) {
this.turnelapse++;
this._y = this._y + this.turnelapse;
this._rotation = this._rotation - (90 / this.turnelapsetotal);
}
} else if (this._x > 0) {
if (!this.falling) {
this.turnrate = this.turnrate * -1;
this.falling = true;
trace("TIME ELAPSED: " + this.turnelapse);
this.turnelapse = this.turnelapse + (6.7 + ((25 - this._parent._parent.notefreq) * 1.3));
}
if (this._y < 650) {
this._y = this._y + this.turnelapse;
if (this.turnelapse < 30) {
this.turnelapse = this.turnelapse + 0.5;
}
} else {
this.KillNote();
}
} else {
this.KillNote();
}
};
this.KillNote = function () {
delete this.onEnterFrame;
this.grid_danote.unloadMovie();
this.grid_danote.removeMovieClip();
};
this.PlayNote = function () {
trace("PARENT REGISTERED: " + this._parent._parent.registered);
if (this._parent._parent.registered == 1) {
this.s = new Sound(this);
this.s.attachSound(this.pitch);
this.s.start();
} else {
this.s = new Sound(this);
this.s.attachSound(this.pitch2);
this.s.start();
}
};
this.destroy = function () {
this.unloadMovie();
this.removeMovieClip();
};
Symbol 84 MovieClip [dahole] Frame 1
this.grid_dahole = this.createEmptyMovieClip("thehole", 1000);
this.n = this.grid_dahole.attachMovie("dahole" + this.val, "hole", 1);
this.cacheAsBitmap = true;
Symbol 85 MovieClip [hit] Frame 1
this.attachMovie("hit_" + this.val, "guts", 1);
this.lifeleft = 12;
trace("ATTACHED IT " + this.val);
this.onEnterFrame = function () {
this.lifeleft--;
if ((this.lifeleft == 10) || (this.lifeleft == 6)) {
this._visible = false;
} else if ((this.lifeleft == 8) || (this.lifeleft == 4)) {
this._visible = true;
} else if (this.lifeleft == 0) {
this.unloadMovie();
this.removeMovieClip();
}
};
Symbol 119 MovieClip [winlosescreen] Frame 1
if (this._parent.winlose) {
this.attachMovie("winsound", "wins", 0);
} else {
this.attachMovie("losesound", "loses", 0);
}
Symbol 128 MovieClip Frame 1
this.onRelease = function () {
getURL ("http://www.armorgames.com", "_blank");
};
Symbol 132 MovieClip Frame 1
this.onRelease = function () {
getURL ("http://www.armorgames.com", "_blank");
};
Symbol 138 Button
on (release) {
getURL ("http://www.newgrounds.com", "_blank");
}
Symbol 142 Button
on (release) {
getURL ("http://www.armorgames.com", "_blank");
}
Symbol 159 Button
on (release) {
getURL ("http://www.wiggiworld.com", "_blank");
}
Symbol 163 Button
on (release) {
this._parent._parent.gotoAndStop("choosesong");
}
Symbol 166 Button
on (release) {
this._parent._parent._parent.cursong = 0;
this._parent._parent._parent.curinst = 0;
this._parent._parent._parent.StartGame(-1);
}
Symbol 169 Button
on (release) {
this._parent._parent.gotoAndStop("controls");
}
Symbol 174 MovieClip Frame 1
this.cacheAsBitmap = true;
Symbol 176 MovieClip Frame 59
stop();
so = sharedobject.getlocal("kookie");
trace(so);
if (!(so.data.frame === undefined)) {
so.data.frame++;
} else {
so.data.frame = 0;
}
this.kookietxt.text = Number(so.data.frame);
Symbol 185 MovieClip Frame 1
function updateChk(num) {
i = 0;
while (i < 3) {
this["c" + i].chk._visible = false;
i++;
}
this["c" + num].chk._visible = true;
this._parent._parent.curkeyset = num;
}
i = 0;
while (i < 3) {
this["c" + i].id = i;
this["c" + i].onPress = function () {
updateChk(this.id);
};
i++;
}
ex.onPress = function () {
this._parent._parent.gotoAndStop("main");
};
updateChk(this._parent._parent.curkeyset);
Symbol 190 Button
on (release) {
this._parent.gotoAndStop("main");
}
Symbol 197 Button
on (release) {
this._parent._parent._parent.StartGame(-1);
}
Symbol 204 MovieClip Frame 1
function freshSongSel(num) {
i = 0;
while (i < 3) {
this["s" + i].chk._visible = false;
i++;
}
this["s" + num].chk._visible = true;
this._parent._parent._parent.cursong = num + 1;
}
function freshInstSel(num) {
b = 0;
while (b < 3) {
this["i" + b].chk._visible = false;
b++;
}
this["i" + num].chk._visible = true;
this._parent._parent._parent.curinst = num;
}
j = 0;
while (j < 2) {
var thing = this["i" + j];
thing.id = j;
thing.onPress = function () {
freshInstSel(this.id);
};
j++;
}
if (this._parent._parent._parent.cursong < 1) {
this._parent._parent._parent.cursong = 1;
}
freshInstSel(this._parent._parent._parent.curinst);
Symbol 207 MovieClip Frame 1
this.onPress = function () {
};
Symbol 221 MovieClip Frame 1
Symbol 223 MovieClip [menus] Frame 1
stop();
bl = this.getBytesLoaded();
bt = this.getBytesTotal();
if (((bl / bt) * 100) >= 100) {
this.alreadyloaded = true;
gotoAndStop ("main");
} else {
this.alreadyloaded = false;
this.onEnterFrame = function () {
bl = this.getBytesLoaded();
bt = this.getBytesTotal();
perc = (bl / bt) * 100;
this.dabar._xscale = perc;
if (perc >= 100) {
delete this.onEnterFrame;
gotoAndStop ("main");
}
};
}
Symbol 223 MovieClip [menus] Frame 2
attachMovie("menumusic", "damus", 1001);
if (this.alreadyloaded) {
this.thetitleguts.gotoAndPlay("restarthere");
}
stop();
Symbol 223 MovieClip [menus] Frame 3
stop();
Symbol 223 MovieClip [menus] Frame 4
stop();
Symbol 223 MovieClip [menus] Frame 5
stop();
Symbol 228 MovieClip [song0] Frame 115
_root.Trigger();
Symbol 229 MovieClip [song1] Frame 115
_root.Trigger();
Symbol 251 MovieClip Frame 10
stop();
Symbol 267 MovieClip Frame 1
stop();
Symbol 268 MovieClip Frame 1
function Blink() {
this.nextblink = int(Math.random() * 40) + 80;
this.bcv = 0;
this.lefteye.gotoAndPlay(1);
this.righteye.gotoAndPlay(1);
}
this.setCol0 = function (dacol) {
var _local2 = new Color(col0);
_local2.setRGB(this._parent.bgcols[dacol - 1]);
};
this.setCol1 = function (dacol) {
var _local2 = new Color(col1);
_local2.setRGB(this._parent.bgcols[dacol - 1]);
};
this.onEnterFrame = function () {
this.bcv++;
if (this.bcv == this.nextblink) {
Blink();
}
};
Blink();
Symbol 286 MovieClip Frame 1
stop();
Symbol 287 MovieClip Frame 1
function Blink() {
this.nextblink = int(Math.random() * 40) + 80;
this.bcv = 0;
this.eye.gotoAndPlay(1);
}
this.setCol0 = function (dacol) {
var _local2 = new Color(col0);
_local2.setRGB(this._parent.bgcols[dacol - 1]);
};
this.setCol1 = function (dacol) {
var _local2 = new Color(col1);
_local2.setRGB(this._parent.bgcols[dacol - 1]);
};
this.onEnterFrame = function () {
this.bcv++;
if (this.bcv == this.nextblink) {
Blink();
}
};
Blink();
Symbol 305 MovieClip Frame 1
stop();
Symbol 306 MovieClip Frame 1
this.setCol0 = function (dacol) {
var _local2 = new Color(col0);
_local2.setRGB(this._parent.bgcols[dacol - 1]);
};
this.setCol1 = function (dacol) {
var _local2 = new Color(col1);
_local2.setRGB(this._parent.bgcols[dacol - 1]);
};