Frame 1
stop();
loadervars = new LoadVars();
loadervars.load("/loadsize.txt");
loadervars.onLoad = function () {
play();
};
Frame 2
stop();
var loadmcwidth = loadervars.loadmcwidth;
var loadmcheight = loadervars.loadmcheight;
if (_root.getBytesLoaded() >= _root.getBytesTotal()) {
play();
} else {
_root.createEmptyMovieClip("loadmc", 1);
_root.loadmc.loadMovie("/preloader.swf");
_root.loadmc._x = (Stage.width / 2) - (loadmcwidth / 2);
_root.loadmc._y = (Stage.height / 2) - (loadmcheight / 2);
}
Frame 3
function drops(stage, lev, num, wait, limit) {
trace("WAIT = " + wait);
trace("Limit = " + limit);
trace("Num of Drops = " + num);
startWait = wait;
timeSinceLast = 0;
numDrops = num;
limitDrops = limit;
dropsUsed = 0;
stageNum = stage;
curStage = stageArray[stageNum];
levelNum = lev;
level = levelArray[levelNum];
timeToWait = wait;
dropsGot = 0;
dropsMissed = 0;
got.text = "Collected : " + dropsGot;
missed.text = "Missed : " + dropsMissed;
hat.gotoAndStop(level);
char.gotoAndStop(level);
if (levelNum == 1) {
clearAllWands();
}
trace("STARTING LEVEL NUM = " + levelNum);
this.onEnterFrame = function () {
if ((dropsUsed < numDrops) && (dropsGot < limitDrops)) {
if (timeSinceLast > timeToWait) {
spellDrop.duplicateMovieClip("drop" + dropsUsed, 10 + dropsUsed);
dropsUsed++;
timeSinceLast = 0;
timeToWait = (Math.random() * 15) + wait;
}
} else {
trace("ended");
delete this.onEnterFrame;
}
timeSinceLast++;
levelText.text = level + "'s Turn";
stageText.text = "Level : " + curStage;
};
}
function startGame(stage, lev, num, wait, limit) {
info.gotoAndStop("main");
video.loadMovie("");
drops(stage, lev, num, wait, limit);
}
function endGame() {
var _local1 = _root;
trace("END LEVEL NUM: " + levelNum);
if (dropsGot == limitDrops) {
if (levelNum == (levelArray.length - 1)) {
dropsGotTotal = dropsGotTotal + dropsGot;
dropsMissedTotal = dropsMissedTotal + dropsMissed;
info.gotoAndStop("end");
info.totalScore.text = "Total Score: " + _local1.score;
info.got.text = "";
info.missed.text = "";
info.percent.text = "";
trace((("drops got total: " + dropsGotTotal) + " drops missed total: ") + dropsMissedTotal);
} else {
info.gotoAndStop("endLevelWin");
dropsGotTotal = dropsGotTotal + dropsGot;
dropsMissedTotal = dropsMissedTotal + dropsMissed;
_local1.score = ((dropsGotTotal * 3) - (dropsMissedTotal * 3)) * 1000;
info.totalScore.text = "Total Score: " + _local1.score;
info.got.text = ("You collected " + dropsGot) + " spell drops";
info.missed.text = "You missed " + dropsMissed;
info.levelText.text = level + "'s Turn Complete!";
info.percent.text = Math.round((dropsGot / (dropsMissed + dropsGot)) * 100) + "%";
if (((levelNum == 3) || (levelNum == 6)) || (levelNum == 9)) {
info.stageText.text = curStage + " Level Complete!";
info.levelText.text = "Way to go DoReMi!!";
info.got.text = "";
info.missed.text = "";
info.percent.text = "";
}
trace((("drops got total: " + dropsGotTotal) + " drops missed total: ") + dropsMissedTotal);
}
} else if (levelNum == (levelArray.length - 1)) {
dropsGotTotal = dropsGotTotal + dropsGot;
dropsMissedTotal = dropsMissedTotal + dropsMissed;
info.gotoAndStop("end");
info.totalScore.text = "Total Score: " + _local1.score;
info.got.text = "";
info.missed.text = "";
info.percent.text = "";
trace((("drops got total: " + dropsGotTotal) + " drops missed total: ") + dropsMissedTotal);
} else {
info.gotoAndStop("endLevelLose");
dropsGotTotal = dropsGotTotal + dropsGot;
dropsMissedTotal = dropsMissedTotal + dropsMissed;
_local1.score = ((dropsGotTotal * 3) - (dropsMissedTotal * 3)) * 1000;
info.totalScore.text = "Total Score: " + _local1.score;
info.got.text = ("You collected " + dropsGot) + " spell drops";
info.missed.text = "You missed " + dropsMissed;
info.levelText.text = level + "'s Turn Incomplete!";
info.percent.text = Math.round((dropsGot / (dropsMissed + dropsGot)) * 100) + "%";
trace((("drops got total: " + dropsGotTotal) + " drops missed total: ") + dropsMissedTotal);
}
}
function advanceLevel() {
if (levelNum == 6) {
numDrops = numDrops + 10;
limitDrops = limitDrops + 10;
}
if (levelNum == 9) {
numDrops = numDrops + 50;
limitDrops = limitDrops + 50;
startWait = startWait + 5;
}
if (((levelNum == 3) || (levelNum == 6)) || (levelNum == 9)) {
clearAllWands();
stageNum++;
levelNum++;
startWait = startWait - 5;
startGame(stageNum, levelNum, numDrops, startWait, limitDrops);
} else {
levelNum++;
startWait--;
startGame(stageNum, levelNum, numDrops, startWait, limitDrops);
}
}
function replayLevel() {
if (levelNum > 6) {
eval (level + "Whirl").gotoAndStop(1);
} else {
eval (level).gotoAndStop(1);
}
startGame(stageNum, levelNum, numDrops, startWait, limitDrops);
}
function fillWand() {
if (levelNum > 6) {
eval (level + "Whirl").nextFrame();
} else {
eval (level).nextFrame();
}
}
function clearAllWands() {
if (levelNum >= 6) {
trace("show whandawhirl");
i = 1;
while (i <= 3) {
eval (levelArray[i])._visible = false;
eval (levelArray[i] + "Whirl")._visible = true;
eval (levelArray[i] + "Whirl").gotoAndStop(1);
i++;
}
} else {
trace("dont show whandawhirl");
i = 1;
while (i <= 3) {
eval (levelArray[i] + "Whirl")._visible = false;
eval (levelArray[i])._visible = true;
eval (levelArray[i]).gotoAndStop(1);
i++;
}
}
}
stop();
_root.gamename = "spellDrops";
_root.gameover;
_root.createEmptyMovieClip("codeHold", 10000);
codeHold.loadMovie("arcadecomm.swf");
levelText.embedFonts = true;
levelText.setTextFormat("spumoni");
stageText.embedFonts = true;
stageText.setTextFormat("spumoni");
info.got.embedFonts = true;
info.got.setTextFormat("spumoni");
info.missed.embedFonts = true;
info.missed.setTextFormat("spumoni");
info.percent.embedFonts = true;
info.percent.setTextFormat("spumoni");
info.levelText.embedFonts = true;
info.levelText.setTextFormat("spumoni");
info.stageText.embedFonts = true;
info.stageText.setTextFormat("spumoni");
info.totalScore.embedFonts = true;
info.totalScore.setTextFormat("spumoni");
plop = new Sound();
plop.attachSound("plop");
info.gotoAndStop("instructions");
stageArray = [blank, "First", "Middle", "Final", "Bonus"];
levelArray = [blank, "Dorie", "Reanne", "Mirabelle", "Dorie", "Reanne", "Mirabelle", "Dorie", "Reanne", "Mirabelle", "Bonus"];
trace("number of levels: " + levelArray.length);
clearAllWands();
Instance of Symbol 69 MovieClip "hat" in Frame 3
onClipEvent (enterFrame) {
this._x = _root._xmouse;
}
Instance of Symbol 76 MovieClip "spellDrop" in Frame 3
onClipEvent (load) {
function initLevels() {
var _local1 = this;
_local1._y = -25;
_local1.gravity = 2;
_local1.speed = 0;
_local1._x = (Math.random() * (Stage.width - 20)) + 10;
frame = Math.floor((Math.random() * 4) + 1);
_local1.gotoAndStop(frame);
}
initLevels();
}
onClipEvent (enterFrame) {
if (this._name == "spellDrop") {
} else {
this.speed = this.speed + this.gravity;
this._y = this._y + this.speed;
this._rotation = this._rotation + this.speed;
if (this.hitTest(_parent.hat.hatArea)) {
trace("hit it " + this._name);
_parent.hat.play();
_parent.plop.start();
this.speed = 0;
_parent.dropsGot++;
_parent.fillWand();
_parent.got.text = "Collected : " + _parent.dropsGot;
if ((_parent.dropsGot == _parent.limitDrops) || (this._name == ("drop" + (_parent.numDrops - 1)))) {
trace("end game");
_parent.endGame();
}
this.removeMovieClip();
}
if (this._y > Stage.height) {
trace("missed it " + this._name);
this.speed = 0;
_parent.dropsMissed++;
_parent.missed.text = "Missed : " + _parent.dropsMissed;
if (this._name == ("drop" + (_parent.numDrops - 1))) {
trace("end game");
_parent.endGame();
}
this.removeMovieClip();
}
}
}
Symbol 23 MovieClip Frame 1
stop();
Symbol 38 MovieClip Frame 1
stop();
Symbol 59 MovieClip Frame 1
stop();
Symbol 63 MovieClip Frame 1
stop();
Symbol 63 MovieClip Frame 2
stop();
Symbol 63 MovieClip Frame 3
stop();
Symbol 69 MovieClip Frame 1
stop();
Symbol 69 MovieClip Frame 4
gotoAndStop ("dorie");
Symbol 69 MovieClip Frame 8
gotoAndStop ("mirabelle");
Symbol 69 MovieClip Frame 12
gotoAndStop ("reanne");
Symbol 76 MovieClip Frame 1
stop();
Symbol 96 Button
on (release, keyPress "<Enter>") {
trace("works");
_root.gameover = 1;
submitspit = _root.score;
trace(_root.score);
}
Symbol 107 MovieClip Frame 1
stop();
Symbol 107 MovieClip Frame 2
stop();
Instance of Symbol 81 MovieClip in Symbol 107 MovieClip Frame 2
on (rollOver) {
this.onEnterFrame = function () {
var _local1 = this;
_local1._xscale = _local1._xscale + 10;
_local1._yscale = _local1._yscale + 10;
if (_local1._xscale >= 135) {
_local1._xscale = 125;
_local1._yscale = 125;
delete _local1.onEnterFrame;
}
};
}
on (rollOut) {
this.onEnterFrame = function () {
var _local1 = this;
_local1._xscale = _local1._xscale - 10;
_local1._yscale = _local1._yscale - 10;
if (_local1._xscale <= 75) {
_local1._xscale = 100;
_local1._yscale = 100;
delete _local1.onEnterFrame;
}
};
}
on (release) {
trace(_parent.cheatLevel.text + " this is what it should be");
if (_parent.cheatLevel.text == "3") {
_parent._parent.stageNum = 2;
_parent._parent.levelNum = 6;
_parent._parent.numDrops = 15;
_parent._parent.limitDrops = 10;
_parent._parent.startWait = 15;
_parent._parent.advanceLevel();
} else if (_parent.cheatLevel.text == "2") {
_parent._parent.stageNum = 1;
_parent._parent.levelNum = 3;
_parent._parent.numDrops = 15;
_parent._parent.limitDrops = 10;
_parent._parent.startWait = 18;
_parent._parent.advanceLevel();
} else {
_parent._parent.startGame(1, 1, 15, 20, 10);
}
}
Symbol 107 MovieClip Frame 3
stop();
Easy._visible = false;
wandaWhirlTxt._visible = false;
if ((_parent.level == "Mirabelle") && (_parent.curStage == "First")) {
_parent.video.loadMovie("games/perfect_harmony_video.swf");
percent.text = "Loading Perfect Harmony Video";
}
if ((_parent.level == "Mirabelle") && (_parent.curStage == "Middle")) {
wandaWhirlTxt._visible = true;
}
Instance of Symbol 86 MovieClip in Symbol 107 MovieClip Frame 3
on (rollOver) {
this.onEnterFrame = function () {
var _local1 = this;
_local1._xscale = _local1._xscale + 10;
_local1._yscale = _local1._yscale + 10;
if (_local1._xscale >= 135) {
_local1._xscale = 125;
_local1._yscale = 125;
delete _local1.onEnterFrame;
}
};
}
on (rollOut) {
this.onEnterFrame = function () {
var _local1 = this;
_local1._xscale = _local1._xscale - 10;
_local1._yscale = _local1._yscale - 10;
if (_local1._xscale <= 75) {
_local1._xscale = 100;
_local1._yscale = 100;
delete _local1.onEnterFrame;
}
};
}
on (release) {
_parent._parent.advanceLevel();
}
Instance of Symbol 100 MovieClip in Symbol 107 MovieClip Frame 4
on (rollOver) {
this.onEnterFrame = function () {
var _local1 = this;
_local1._xscale = _local1._xscale + 10;
_local1._yscale = _local1._yscale + 10;
if (_local1._xscale >= 135) {
_local1._xscale = 125;
_local1._yscale = 125;
delete _local1.onEnterFrame;
}
};
}
on (rollOut) {
this.onEnterFrame = function () {
var _local1 = this;
_local1._xscale = _local1._xscale - 10;
_local1._yscale = _local1._yscale - 10;
if (_local1._xscale <= 75) {
_local1._xscale = 100;
_local1._yscale = 100;
delete _local1.onEnterFrame;
}
};
}
on (release) {
_parent._parent.replayLevel();
}
Symbol 107 MovieClip Frame 5
stop();
_parent.video.loadMovie("games/wandawhirl_perfect_harmony_video.swf");
Instance of Symbol 100 MovieClip in Symbol 107 MovieClip Frame 5
on (rollOver) {
this.onEnterFrame = function () {
var _local1 = this;
_local1._xscale = _local1._xscale + 10;
_local1._yscale = _local1._yscale + 10;
if (_local1._xscale >= 135) {
_local1._xscale = 125;
_local1._yscale = 125;
delete _local1.onEnterFrame;
}
};
}
on (rollOut) {
this.onEnterFrame = function () {
var _local1 = this;
_local1._xscale = _local1._xscale - 10;
_local1._yscale = _local1._yscale - 10;
if (_local1._xscale <= 75) {
_local1._xscale = 100;
_local1._yscale = 100;
delete _local1.onEnterFrame;
}
};
}
on (release) {
_parent._parent.clearAllWands();
_parent._parent.dropsGotTotal = 0;
_parent._parent.dropsMissedTotal = 0;
_parent._parent.startGame(1, 1, 15, 20, 10);
}