Frame 1
var introLoop = 0;
Frame 2
introLoop++;
Frame 10
var loadAmount = (_root._totalframes - 5);
if ((_root._framesloaded >= loadAmount) && (introLoop >= 5)) {
_root.gotoAndStop("start");
} else {
loaded = Math.round(_root.getBytesLoaded() / 1024);
total = Math.round(_root.getBytesTotal() / 1024);
percent = Math.round((loaded / total) * 100);
bar_mc._width = percent;
bytesLoadedOutput = loaded;
bytesTotalOutput = total;
percentOutput = percent + "%";
_root.gameLogo_mc._alpha = percent;
gotoAndPlay ("load");
}
Frame 15
function resetGame() {
levelN = 1;
prevLevel = 0;
int2 = 1050;
speed = 2;
itemCntMax = 5;
totalScore = 0;
}
var speed = 2;
var itemCntMax = 5;
var dropHeight = 360;
var objectN = "";
var objectsCollected = 0;
var objectDepth = 1000;
var width = 550;
var height = 400;
var levelN = 1;
var prevLevel = 0;
var int1 = 1000;
var int2 = 1050;
var totalScore = 0;
player_mc._alpha = 100;
Clamp = function (min, n, max) {
var _local1 = n;
if (_local1 < min) {
return(min);
}
if (_local1 > max) {
return(max);
}
return(_local1);
};
stop();
Frame 21
function determineLevel() {
diff = Math.abs(levelN - prevLevel);
if (diff > 0) {
speed++;
itemCntMax++;
prevLevel++;
int2 = int2 - 150;
}
}
function getRandom(max) {
minNum = 0;
rand = Math.ceil(Math.random() * ((max - minNum) + 1)) + (minNum - 1);
return(rand);
}
function placeAndDrop() {
var _local1 = _root;
if (itemCnt < itemCntMax) {
objNum = getRandom(5);
while (objNum == objRand) {
objNum = getRandom(5);
}
_local1.objRand = objNum;
holderNum = getRandom(3);
while (holderNum == holderRand) {
holderNum = getRandom(3);
}
_local1.holderRand = holderNum;
clipHolder = ("clip" + holderNum) + "_mc";
_local1.itemCnt++;
_local1[clipHolder].attachMovie("object" + objNum, "object" + objectDepth, objectDepth++);
_local1[("leaf" + holderNum) + "_mc"].play();
}
if (((((itemsClicked == 7) || (itemsClicked == 18)) || (itemsClicked == 40)) || (itemsClicked == 76)) || (itemsClicked == 93)) {
if (_local1.tmp == 0) {
_local1.tmp = 1;
holderNum = getRandom(3);
while (holderNum == holderRand) {
holderNum = getRandom(3);
}
_local1.holderRand = holderNum;
clipHolder = ("clip" + holderNum) + "_mc";
_local1[clipHolder].attachMovie("special1", "special1", objectDepth++);
}
}
if ((((itemsClicked == 10) || (itemsClicked == 25)) || (itemsClicked == 38)) || (itemsClicked == 63)) {
if (_local1.tmp2 == 0) {
_local1.tmp2 = 1;
_local1.itemCnt++;
_local1.sideShot_mc.attachMovie("object7", "object7", objectDepth++);
}
}
}
function updateClock() {
if (firstClick == true) {
timer--;
}
if (timer <= 0) {
clearInterval(timerClock);
clearInterval(placeItems);
_root.gotoAndStop("over");
}
}
function increaseTime(n) {
timer = timer + n;
if (timer > 30) {
timer = 30;
}
}
var timer = 30;
var itemCnt = 0;
var score = 0;
var tmp = 0;
var tmp2 = 0;
var firstClick = false;
var objRand;
var holderRand;
var itemsClicked = 0;
determineLevel();
cursor_mc.isActive = false;
cursor_mc.swapDepths(7000);
cursor_mc.onMouseMove = function () {
var _local1 = this;
if (_local1._visible) {
Mouse.hide();
if ((_local1.isActive = board.hitTest(_local1._parent._xmouse, _local1._parent._ymouse, true))) {
_local1._x = Clamp(board._x, _local1._parent._xmouse, board._x + board._width);
_local1._y = Clamp(board._y, _local1._parent._ymouse, board._y + board._height);
if (cursor_visible) {
cursor_visible = Mouse.hide();
}
updateAfterEvent();
} else if (!cursor_visible) {
cursor_visible = Mouse.show();
}
} else {
_local1.isActive = false;
}
};
this.attachMovie("leafOne", "leaf0_mc", 6000);
this.leaf0_mc._x = 25;
this.leaf0_mc._y = 0;
this.leaf0_mc.stop();
this.attachMovie("leafTwo", "leaf1_mc", 6001);
this.leaf1_mc._x = 155;
this.leaf1_mc._y = 0;
this.attachMovie("leafTwo", "leaf2_mc", 6002);
this.leaf2_mc._x = 270;
this.leaf2_mc._y = 0;
this.attachMovie("leafFour", "leaf3_mc", 6003);
this.leaf3_mc._x = 390;
this.leaf3_mc._y = 0;
i = 0;
while (i < 4) {
createEmptyMovieClip(("clip" + i) + "_mc", i + "00");
i++;
}
createEmptyMovieClip("sideShot_mc", "450");
clip0_mc._x = 70;
clip1_mc._x = 170;
clip2_mc._x = 290;
clip3_mc._x = 410;
clip0_mc._y = -30;
clip1_mc._y = -30;
clip2_mc._y = -30;
clip3_mc._y = -30;
sideShot_mc._y = 250;
sideShot_mc._x = -20;
createEmptyMovieClip("hhPose_mc", "451");
hhPose_mc._x = -20;
hhPose_mc._y = 205;
hhPose_mc.attachMovie("holly_mc", "holly_mc", 452);
var timerClock = setInterval(updateClock, int1);
var placeItems = setInterval(placeAndDrop, int2);
_root.onMouseUp = function () {
_root.firstClick = true;
};
stop();
Frame 27
Mouse.show();
i = 0;
while (i < 4) {
theClip = ("clip" + i) + "_mc";
_root[theClip].removeMovieClip();
i++;
}
leaf0_mc.removeMovieClip();
leaf1_mc.removeMovieClip();
leaf2_mc.removeMovieClip();
leaf3_mc.removeMovieClip();
sideShot_mc.removeMovieClip();
hhPose_mc.holly_mc.removeMovieClip();
cursor_mc.removeMovieClip();
btn1_txt = "NEXT LEVEL";
btn2_txt = "RESTART";
totalScore = totalScore + score;
btn1_mc.onRelease = function () {
levelN++;
gotoAndStop ("game");
};
btn2_mc.onRelease = function () {
resetGame();
gotoAndStop ("game");
};
switch (levelN) {
case 4 :
btn1_mc._visible = false;
finalMsg_mc.gotoAndStop("level4");
break;
case 3 :
finalMsg_mc.gotoAndStop("level3");
break;
case 2 :
finalMsg_mc.gotoAndStop("level2");
break;
case 1 :
finalMsg_mc.gotoAndStop("level1");
break;
default :
finalMsg_mc.gotoAndStop("level1");
_root.hollyGreat_mc.play();
}
stop();
Symbol 4 MovieClip [leafOne] Frame 14
gotoAndStop (1);
Symbol 7 MovieClip [leafTwo] Frame 1
stop();
Symbol 7 MovieClip [leafTwo] Frame 8
gotoAndStop (1);
Symbol 10 MovieClip [leafFour] Frame 1
stop();
Symbol 10 MovieClip [leafFour] Frame 8
gotoAndStop (1);
Symbol 14 MovieClip [object1] Frame 1
drop_mc.onPress = function () {
_root.score++;
_root.itemsClicked++;
this.enabled = false;
play();
};
drop_mc.onEnterFrame = function () {
var _local1 = this;
var _local2 = _root;
if (_local1._y < _local2.dropHeight) {
_local1._y = _local1._y + _local2.speed;
} else if (_local1._y >= _local2.dropHeight) {
play();
}
};
stop();
Symbol 14 MovieClip [object1] Frame 2
this._alpha = 30;
_root.itemCnt--;
Symbol 14 MovieClip [object1] Frame 4
this._alpha = 100;
Symbol 14 MovieClip [object1] Frame 6
this._alpha = 30;
Symbol 14 MovieClip [object1] Frame 8
this._alpha = 100;
Symbol 14 MovieClip [object1] Frame 10
this._alpha = 30;
Symbol 14 MovieClip [object1] Frame 12
this.removeMovieClip();
Symbol 19 MovieClip Frame 1
stop();
Symbol 20 MovieClip [special1] Frame 1
drop_mc.onPress = function () {
_root.increaseTime(5);
hollyPerfect_mc.play();
this.enabled = false;
play();
};
drop_mc.onEnterFrame = function () {
var _local1 = this;
var _local2 = _root;
if (_local1._y < _local2.dropHeight) {
_local1._y = _local1._y + _local2.speed;
} else if (_local1._y >= _local2.dropHeight) {
play();
}
};
stop();
Symbol 20 MovieClip [special1] Frame 3
this._alpha = 30;
_root.itemCnt--;
Symbol 20 MovieClip [special1] Frame 5
this._alpha = 100;
Symbol 20 MovieClip [special1] Frame 7
this._alpha = 30;
Symbol 20 MovieClip [special1] Frame 9
this._alpha = 100;
Symbol 20 MovieClip [special1] Frame 11
this._alpha = 30;
Symbol 20 MovieClip [special1] Frame 13
_root.tmp = 0;
this.removeMovieClip();
Symbol 24 MovieClip [object5] Frame 1
drop_mc.onPress = function () {
_root.score++;
_root.itemsClicked++;
this.enabled = false;
play();
};
drop_mc.onEnterFrame = function () {
var _local1 = this;
var _local2 = _root;
if (_local1._y < _local2.dropHeight) {
_local1._y = _local1._y + _local2.speed;
} else if (_local1._y >= _local2.dropHeight) {
play();
}
};
stop();
Symbol 24 MovieClip [object5] Frame 2
this._alpha = 30;
_root.itemCnt--;
Symbol 24 MovieClip [object5] Frame 4
this._alpha = 100;
Symbol 24 MovieClip [object5] Frame 6
this._alpha = 30;
Symbol 24 MovieClip [object5] Frame 8
this._alpha = 100;
Symbol 24 MovieClip [object5] Frame 10
this._alpha = 30;
Symbol 24 MovieClip [object5] Frame 12
this.removeMovieClip();
Symbol 28 MovieClip [object4] Frame 1
drop_mc.onPress = function () {
_root.score++;
_root.itemsClicked++;
this.enabled = false;
play();
};
drop_mc.onEnterFrame = function () {
var _local1 = this;
var _local2 = _root;
if (_local1._y < _local2.dropHeight) {
_local1._y = _local1._y + _local2.speed;
} else if (_local1._y >= _local2.dropHeight) {
play();
}
};
stop();
Symbol 28 MovieClip [object4] Frame 2
this._alpha = 30;
_root.itemCnt--;
Symbol 28 MovieClip [object4] Frame 4
this._alpha = 100;
Symbol 28 MovieClip [object4] Frame 6
this._alpha = 30;
Symbol 28 MovieClip [object4] Frame 8
this._alpha = 100;
Symbol 28 MovieClip [object4] Frame 10
this._alpha = 30;
Symbol 28 MovieClip [object4] Frame 12
this.removeMovieClip();
Symbol 32 MovieClip [object3] Frame 1
drop_mc.onPress = function () {
_root.score++;
_root.itemsClicked++;
this.enabled = false;
play();
};
drop_mc.onEnterFrame = function () {
var _local1 = this;
var _local2 = _root;
if (_local1._y < _local2.dropHeight) {
_local1._y = _local1._y + _local2.speed;
} else if (_local1._y >= _local2.dropHeight) {
play();
}
};
stop();
Symbol 32 MovieClip [object3] Frame 2
this._alpha = 30;
_root.itemCnt--;
Symbol 32 MovieClip [object3] Frame 4
this._alpha = 100;
Symbol 32 MovieClip [object3] Frame 6
this._alpha = 30;
Symbol 32 MovieClip [object3] Frame 8
this._alpha = 100;
Symbol 32 MovieClip [object3] Frame 10
this._alpha = 30;
Symbol 32 MovieClip [object3] Frame 12
this.removeMovieClip();
Symbol 36 MovieClip [object0] Frame 1
drop_mc.onPress = function () {
_root.score++;
_root.itemsClicked++;
this.enabled = false;
play();
};
drop_mc.onEnterFrame = function () {
var _local1 = this;
var _local2 = _root;
if (_local1._y < _local2.dropHeight) {
_local1._y = _local1._y + _local2.speed;
} else if (_local1._y >= _local2.dropHeight) {
play();
}
};
stop();
Symbol 36 MovieClip [object0] Frame 2
this._alpha = 30;
_root.itemCnt--;
Symbol 36 MovieClip [object0] Frame 4
this._alpha = 100;
Symbol 36 MovieClip [object0] Frame 6
this._alpha = 30;
Symbol 36 MovieClip [object0] Frame 8
this._alpha = 100;
Symbol 36 MovieClip [object0] Frame 10
this._alpha = 30;
Symbol 36 MovieClip [object0] Frame 12
this.removeMovieClip();
Symbol 40 MovieClip [object2] Frame 1
drop_mc.onPress = function () {
var _local1 = _root;
_local1.score = _local1.score + 2;
_local1.itemsClicked++;
this.enabled = false;
play();
};
drop_mc.onEnterFrame = function () {
var _local1 = this;
var _local2 = _root;
if (_local1._y < _local2.dropHeight) {
_local1._y = _local1._y + _local2.speed;
} else if (_local1._y >= _local2.dropHeight) {
play();
}
};
stop();
Symbol 40 MovieClip [object2] Frame 2
this._alpha = 30;
_root.itemCnt--;
Symbol 40 MovieClip [object2] Frame 4
this._alpha = 100;
Symbol 40 MovieClip [object2] Frame 6
this._alpha = 30;
Symbol 40 MovieClip [object2] Frame 8
this._alpha = 100;
Symbol 40 MovieClip [object2] Frame 10
this._alpha = 30;
Symbol 40 MovieClip [object2] Frame 12
this.removeMovieClip();
Symbol 43 MovieClip Frame 1
stop();
Symbol 44 MovieClip [object7] Frame 1
frisbee_mc.onPress = function () {
var _local1 = _root;
_local1.doodles_mc.gotoAndStop("stand");
_local1.score = _local1.score + 2;
_local1.itemsClicked++;
clicked = true;
_local1.tmp2 = 0;
doodlesPlay_mc.play();
this.enabled = false;
};
frisbee_mc.onEnterFrame = function () {
var _local1 = this;
var _local2 = _root;
if (_local1._x < (_local2.width + 25)) {
_local1._x = _local1._x + _local2.speed;
}
if (_local1._x > 330) {
_local2.doodles_mc.gotoAndStop("lookRight");
}
};
if (this.hitTest("_root.doodlesHit_mc") && (clicked == true)) {
_root.doodles_mc.gotoAndStop("lookLeft");
this.removeMovieClip();
}
if (this.hitTest("_root.engine_mc")) {
_root.doodles_mc.gotoAndStop("lookLeft");
this.removeMovieClip();
}
Symbol 76 MovieClip Frame 5
if (_parent.kbLoaded < _parent.kbTotal) {
displayTxt = "streaming...";
gotoAndPlay (1);
} else {
play();
}
Symbol 76 MovieClip Frame 315
gotoAndPlay ("start");
Symbol 84 MovieClip Frame 1
function playMusic() {
if (musicStatus == "") {
music = new Sound(this);
music.loadSound("music/hhf-theme.mp3", true);
music.start(0);
music.setVolume(18);
musicStatus = "true";
}
}
_soundbuftime = 10;
musicStatus = "";
playPos = 0;
playMusic();
_root.pctLoaded;
play_mc.enabled = false;
stop_mc.onPress = function () {
play_mc.enabled = true;
stop_mc.enabled = false;
playPos = Math.floor(music.position / 1000);
music.stop();
musicStatus = "";
};
play_mc.onPress = function () {
play_mc.enabled = false;
stop_mc.enabled = true;
musicStatus = "";
music.start(playPos);
};
rev_mc.onPress = function () {
play_mc.enabled = false;
stop_mc.enabled = true;
musicStatus = "";
playMusic();
};
this.onEnterFrame = function () {
if (_root.percent >= 100) {
trackLength = music.duration - 1000;
playHead = music.position;
if (playHead >= trackLength) {
musicStatus = "";
playMusic(0);
}
}
};
stop();
Symbol 120 MovieClip Frame 1
var playCnt = 1;
var playTime = 40;
next_mc.onRelease = function () {
gotoAndStop ("instructions");
};
Instance of Symbol 95 MovieClip in Symbol 120 MovieClip Frame 1
on (press) {
_root.gotoAndPlay("game");
}
Symbol 120 MovieClip Frame 9
if (playCnt < playTime) {
playCnt++;
gotoAndPlay ("replay");
} else {
play();
}
Symbol 120 MovieClip Frame 10
play_mc.onPress = function () {
_root.play();
};
back_mc.onPress = function () {
gotoAndPlay (1);
};
stop();
Symbol 130 MovieClip Frame 1
stop();
Symbol 151 MovieClip Frame 1
stop();
Symbol 155 MovieClip Frame 6
stop();
Symbol 158 MovieClip Frame 6
stop();