Frame 1
var getxmldata1 = new XML();
var getxmldata2 = new XML();
var getxmldata3 = new XML();
var getxmldata4 = new XML();
var getxmldata5 = new XML();
var getxmldata6 = new XML();
var getxmldata7 = new XML();
XML.prototype.ignoreWhite = true;
getxmldata1.load("/triwizardchallenges/games/eggXML/loading.xml");
getxmldata2.load("/triwizardchallenges/games/eggXML/loaded.xml");
getxmldata3.load("/triwizardchallenges/games/eggXML/welcome.xml");
getxmldata4.load("/triwizardchallenges/games/eggXML/instructions.xml");
getxmldata5.load("/triwizardchallenges/games/eggXML/game.xml");
getxmldata6.load("/triwizardchallenges/games/eggXML/well_done.xml");
getxmldata7.load("/triwizardchallenges/games/eggXML/fail.xml");
System.security.allowDomain("dev.harrypotter.warnerbros.com");
System.security.allowDomain("preview.harrypotter.warnerbros.com");
System.security.allowDomain("dev6.harrypotter.warnerbros.com");
System.security.allowDomain("preview6.harrypotter.warnerbros.com");
System.security.allowDomain("harrypotter.warnerbros.com");
System.security.allowDomain("pdl.warnerbros.com");
System.security.allowDomain("*.warnerbros.com");
Object.prototype.gameMC = this;
Object.prototype.containerMC = _parent;
if (containerMC != null) {
containerMC.init();
_root.gDebug = "InContainer\n";
}
gameMC.gLoadInit = false;
gameMC.gGameState = "INIT";
gameMC.gLoadStartTime = 0;
gameMC.gVersionNum = "1.0";
gameMC.gPaused = false;
gameMC.gInitGame = null;
gameMC.min_score = -1;
trace("GameParent: " + _parent);
if (gameMC.gGameID == undefined) {
gameMC.gGameID = "HP_Egg";
}
if (gameMC.gHSRoot_swf == undefined) {
gameMC.gHSRoot_swf = "/games/med/";
}
if (gameMC.gHSRoot_jsp == undefined) {
gameMC.gHSRoot_jsp = "/web/load_variables/games/";
}
if (gameMC.gHSRoot_top100 == undefined) {
gameMC.gHSRoot_top100 = "/web/triwizardchallenges/";
}
function getScore() {
return(gameMC.gScore);
}
function showDebugWindow() {
gameMC.debug_clip.showDebug();
}
function hideDebugWindow() {
gameMC.debug_clip.hideDebug();
}
function pause() {
gameMC.gPaused = true;
}
function unPause() {
gameMC.gPaused = false;
}
function restart() {
containerMC.resetContainer();
containerMC.init();
gameMC.gScore = 0;
gameMC.gLevel = 1;
}
gameMC.HSLoading = function () {
if (gameMC.gLoadInit != true) {
gameMC.gGameState = "LOADING";
gameMC.gLoadStartTime = int(getTimer() / 1000);
gameMC.gLoadInit = true;
}
};
gameMC.HSLoaded = function () {
tellTarget (gameMC.hs_scripts) {
call("mLoaded");
};
};
gameMC.HSPlay = function () {
tellTarget (gameMC.hs_scripts) {
call("mPlay");
};
};
gameMC.HSLevelStart = function () {
tellTarget (gameMC.hs_scripts) {
call("mLevelStart");
};
};
gameMC.HSGameOver = function () {
gameMC.gScore = Number(_root.gScore);
gameMC.gLevel = Number(_root.gLevel);
if (containerMC != null) {
containerMC.hs_placeholder._x = 125;
containerMC.hs_placeholder._y = 60;
} else {
gameMC.hs_placeholder._x = 125;
gameMC.hs_placeholder._y = 60;
}
tellTarget (gameMC.hs_scripts) {
call("mGameOver");
};
};
function cTimer() {
this.startTime = getTimer();
}
cTimer.prototype.restartTimer = function () {
this.startTime = getTimer();
};
cTimer.prototype.milliseconds = function () {
return(getTimer() - this.startTime);
};
cTimer.prototype.seconds = function () {
return(this.getSeconds());
};
cTimer.prototype.getSeconds = function () {
return(int((getTimer() - this.startTime) / 1000));
};
gameMC.iReadyScreenTimer = new cTimer();
gameMC.iLevelPauseTimer = new cTimer();
gameMC.btn_handler_next_screen = function () {
gameMC.play();
};
gameMC.btn_handler_play = function () {
gameMC.gotoAndPlay("NextLevel");
};
gameMC.btn_handler_gameover = function () {
gameMC.gotoAndPlay("GameOver");
};
gameMC.btn_handler_restart = function () {
gameMC.gotoAndPlay(1);
};
gameMC.btn_handler_instructions = function () {
trace("boo");
};
Frame 4
var aNode = getxmldata1.firstChild;
while (aNode != null) {
loading_txt.text = String(aNode.attributes.text1);
aNode = aNode.nextSibling;
}
ifFrameLoaded (89) {
if (gameMC.gLoadHSScripts == true) {
_root.gDebug = _root.gDebug + "WaitingForScripts\n";
if (gameMC.hs_scripts.gLoaded == true) {
gameMC.gotoAndPlay("loaded");
}
} else {
gameMC.gotoAndPlay("loaded");
}
}
gameMC.HSLoading();
Instance of Symbol 88 MovieClip "debug_clip" in Frame 4
onClipEvent (load) {
function showDebug() {
_visible = true;
_x = 200;
}
function hideDebug() {
_visible = false;
_x = -200;
}
function displayDebugSettings() {
_root.gDebug = "Settings:\n";
_root.gDebug = _root.gDebug + (gameMC.gGameID + newline);
_root.gDebug = _root.gDebug + (gameMC.gDB_domain + newline);
_root.gDebug = _root.gDebug + (gameMC.gHSRoot_swf + newline);
_root.gDebug = _root.gDebug + (gameMC.gHSRoot_jsp + newline);
_root.gDebug = _root.gDebug + (gameMC.gHSRoot_top100 + newline);
}
_visible = false;
_root.gDebug = _root.gDebug + "Loaded";
if (gameMC.gDebugMode == true) {
showDebug();
}
}
Frame 6
gameMC.gotoAndPlay("loading");
Frame 9
var aNode = getxmldata2.firstChild;
while (aNode != null) {
loaded_txt.text = String(aNode.attributes.text1);
aNode = aNode.nextSibling;
}
gameMC.HSLoaded();
Frame 15
instructions_btn.onRelease = gameMC.btn_handler_next_screen;
initText1 = function () {
var _local1 = getxmldata3.firstChild;
while (_local1 != null) {
welcome_txt.text = String(_local1.attributes.text1);
name_txt.text = String(_local1.attributes.text2);
blurb_txt.htmlText = ("<p align='center'>" + String(_local1.attributes.text3)) + "</p>";
play_btn.playBtn_txt.text = String(_local1.attributes.text4);
play_btn.roll_txt.text = String(_local1.attributes.text4);
instructions_btn.insBtn_txt.text = String(_local1.attributes.text5);
instructions_btn.roll_txt.text = String(_local1.attributes.text5);
_local1 = _local1.nextSibling;
}
};
play_btn.onRelease = function () {
gotoAndPlay ("play");
};
initText1();
Instance of Symbol 104 MovieClip "instructions_btn" in Frame 15
on (rollOver) {
this.gotoAndPlay("on");
_parent.initText1();
}
on (rollOut) {
this.gotoAndPlay("off");
_parent.initText1();
}
Instance of Symbol 107 MovieClip "play_btn" in Frame 15
on (rollOver) {
this.gotoAndPlay("on");
_parent.initText1();
}
on (rollOut) {
this.gotoAndPlay("off");
_parent.initText1();
}
Instance of Symbol 117 MovieClip "Cr_clip" in Frame 15
onClipEvent (load) {
function mKeyStroke() {
var _local1;
var _local2 = -1;
if ((getTimer() - pCrTimer) > 400) {
_local1 = 1;
while (_local1 < 91) {
if (Key.isDown(_local1)) {
_local2 = _local1;
}
_local1++;
}
if (_local2 >= 48) {
pCrCheck = (pCrCheck + _local2) + ":";
trace("CrCheck: " + pCrCheck);
pCrTimer = getTimer();
if (pCrCheck == "87:66:67:72:48:52:") {
trace("OK");
pCrCheck = "";
pCrOn = true;
mCr();
}
} else if ((_local2 == 13) || (_local2 == 32)) {
pCrCheck = "";
pCrTimer = getTimer();
}
}
}
function mCr() {
trace("mCr");
this.gotoAndPlay("show");
gameMC.debug_clip.showDebug();
gameMC.debug_clip.displayDebugSettings();
}
}
onClipEvent (enterFrame) {
mKeyStroke();
}
Frame 21
stop();
Frame 26
initText2 = function () {
var _local1 = getxmldata4.firstChild;
while (_local1 != null) {
title_txt.text = String(_local1.attributes.text1);
blurb_txt.text = String(_local1.attributes.text2);
blurb2_txt.htmlText = ("<p align='right'>" + String(_local1.attributes.text3)) + "</p>";
blurb2_txt.htmlText = blurb2_txt.htmlText + (("<p align='right'>" + String(_local1.attributes.text4)) + "</p>");
blurb2_txt.htmlText = blurb2_txt.htmlText + (("<p align='right'>" + String(_local1.attributes.text5)) + "</p>");
blurb2_txt.htmlText = blurb2_txt.htmlText + (("<p align='right'>" + String(_local1.attributes.text6)) + "</p>");
blurb2_txt.htmlText = blurb2_txt.htmlText + (("<p align='right'><font size='10'>" + String(_local1.attributes.text7)) + "</p></font>");
blurb2_txt.htmlText = blurb2_txt.htmlText + (("<p align='right'>" + String(_local1.attributes.text8)) + "</p>");
play_btn.playBtn_txt.text = String(_local1.attributes.text9);
play_btn.roll_txt.text = String(_local1.attributes.text9);
_local1 = _local1.nextSibling;
}
};
initText2();
Instance of Symbol 107 MovieClip "play_btn" in Frame 26
on (rollOver) {
this.gotoAndPlay("on");
_parent.initText2();
}
on (rollOut) {
this.gotoAndPlay("off");
_parent.initText2();
}
Frame 27
play_btn.onRelease = function () {
gotoAndPlay ("play");
};
stop();
Frame 34
function startGame() {
gameRunning = true;
heroSpeed = 5;
heroJumpPower = 13;
gravForce = 2;
jumpForce = 0;
dragonSpeed = 4;
fireballSpeed = 10;
hero_mc.isFlying = false;
hero_mc.isJumping = false;
hero_mc._x = heroStartX;
hero_mc._y = heroStartY;
hero_mc.gotoAndStop("standing");
broom._visible = true;
dragon_mc.hasMovePoint = false;
dragon_mc.isDragonShooting = false;
dragon_mc.attackState = "aggresive";
dragon_mc.aim = 10;
dragon_mc._x = dragonStartX;
dragon_mc._y = dragonStartY;
pos = "";
score = 0;
}
function doTimer() {
if (myInt == undefined) {
myInt = setInterval(tick, 1000);
}
}
function tick() {
score++;
score_txt.text = score + " POINTS";
}
function pauseGame() {
stop();
clearInterval(myInt);
}
function unPauseGame() {
play();
myInt = setInterval(tick, 1000);
}
function gameOver(win) {
stop();
gameRunning = false;
this.fireball_mc.removeMovieClip();
clearInterval(myInt);
if (win) {
gameMC.gotoAndPlay("Win");
} else {
hero_mc.gotoAndPlay("dead");
hero_mc.onEnterFrame = function () {
hero_mc._y = hero_mc._y + 12;
if (hero_mc._y >= floor._y) {
gameMC.gotoAndPlay("GameOver");
}
};
}
}
function detectBroom() {
if (broom._visible) {
if (broom.hitTest(hero_mc)) {
broom._visible = false;
message_mc._visible = true;
spaceBarTrap = new Object();
spaceBarTrap.onKeyDown = function () {
if (Key.isDown(32)) {
Key.removeListener(spaceBarTrap);
unPauseGame();
message_mc._visible = false;
delete spaceBarTrap;
}
};
Key.addListener(spaceBarTrap);
pauseGame();
hero_mc.gotoAndStop("flying");
hero_mc.isFlying = true;
heroSpeed = 6;
}
}
}
function detectDeath() {
if (dragon_mc.hitTest(hero_mc._x, hero_mc._y - hero_mc._height, true)) {
trace("hit Dragon with Head");
gameOver(false);
} else if (dragon_mc.hitTest(hero_mc._x, hero_mc._y, true)) {
trace("hit Dragon with feet");
gameOver(false);
} else if (dragon_mc.hitTest(hero_mc._x + (hero_mc._width / 2), hero_mc._y - (hero_mc._height / 2), true)) {
trace("hit Dragon with right side");
gameOver(false);
} else if (dragon_mc.hitTest(hero_mc._x - (hero_mc._width / 2), hero_mc._y - (hero_mc._height / 2), true)) {
trace("hit Dragon with left side");
gameOver(false);
}
if (fireball_mc.hitTest(hero_mc._x, hero_mc._y - hero_mc._height, true)) {
trace("hit Fireball with Head");
gameOver(false);
} else if (fireball_mc.hitTest(hero_mc._x, hero_mc._y, true)) {
trace("hit Fireball with feet");
gameOver(false);
} else if (fireball_mc.hitTest(hero_mc._x + (hero_mc._width / 2), hero_mc._y - (hero_mc._height / 2), true)) {
trace("hit Fireball with right side");
gameOver(false);
} else if (fireball_mc.hitTest(hero_mc._x - (hero_mc._width / 2), hero_mc._y - (hero_mc._height / 2), true)) {
trace("hit Fireball with left side");
gameOver(false);
}
if (egg_mc.hitTest(hero_mc._x, hero_mc._y - hero_mc._height, true)) {
trace("hit Egg with Head");
gameOver(true);
} else if (egg_mc.hitTest(hero_mc._x, hero_mc._y, true)) {
trace("hit Egg with feet");
gameOver(true);
} else if (egg_mc.hitTest(hero_mc._x + (hero_mc._width / 2), hero_mc._y - (hero_mc._height / 2), true)) {
trace("hit Egg with right side");
gameOver(true);
} else if (egg_mc.hitTest(hero_mc._x - (hero_mc._width / 2), hero_mc._y - (hero_mc._height / 2), true)) {
trace("hit Egg with left side");
gameOver(true);
}
}
function determineDragonState() {
hx = hero_mc._x;
hy = hero_mc._y;
if (!hero_mc.isFlying) {
if (hitdetecttail_mc.hitTest(hx, hy, false)) {
dragon_mc.attackState = "tailattack";
} else {
dragon_mc.attackState = "aggresive";
}
} else if (dragonzonefoolish_mc.hitTest(hx, hy, false)) {
dragon_mc.attackState = "foolish";
} else {
dragon_mc.attackState = "protect";
}
}
function doDragonAI() {
switch (dragon_mc.attackState) {
case "aggresive" :
moveDragonToPoint(dragonzoneaggresive_mc);
shootDragonFireBalls();
return;
case "foolish" :
moveDragonToPoint(dragonzonefoolish_zone_mc);
return;
case "protect" :
moveDragonToPoint(dragonzoneprotect_mc);
shootDragonFireBalls();
return;
case "tailattack" :
moveDragonToPoint(dragonzonetail_mc);
}
}
function moveFireballs() {
if (dragon_mc.isDragonShooting) {
var _local2 = fireball_mc.targetAngle;
var _local4 = fireballSpeed * Math.cos((_local2 * Math.PI) / 180);
var _local3 = fireballSpeed * Math.sin((_local2 * Math.PI) / 180);
if ((((fireball_mc._y >= floor._y) || (fireball_mc._y <= bg._y)) || (fireball_mc._x < bg._x)) || (fireball_mc._x > bg._width)) {
this.fireball_mc.removeMovieClip();
dragon_mc.isDragonShooting = false;
} else {
fireball_mc._x = fireball_mc._x + _local4;
fireball_mc._y = fireball_mc._y + _local3;
}
}
}
function shootDragonFireBalls() {
if (!dragon_mc.isDragonShooting) {
dragon_mc.isDragonShooting = true;
var _local3 = dragon_mc._y + dragon_mc.fireballStart_mc._y;
var _local4 = dragon_mc._x + dragon_mc.fireballStart_mc._x;
var _local2 = this.attachMovie("fireball", "fireball_mc", 20, {_x:_local4, _y:_local3});
var _local5 = (Math.random() * (dragon_mc.aim * 2)) - dragon_mc.aim;
_local2.targetAngle = getPredatorAngle(_local2, hero_mc) + _local5;
}
}
function moveDragonToPoint(zone_mc) {
if (!dragon_mc.hasMovePoint) {
pos = getDGZonePoint(zone_mc);
dragon_mc.hasMovePoint = true;
}
angle = (Math.atan2(pos.y - dragon_mc._y, pos.x - dragon_mc._x) * 180) / Math.PI;
newx = dragonSpeed * Math.cos((angle * Math.PI) / 180);
newy = dragonSpeed * Math.sin((angle * Math.PI) / 180);
distance = Math.sqrt(((dragon_mc._x - pos.x) * (dragon_mc._x - pos.x)) + ((dragon_mc._y - pos.y) * (dragon_mc._y - pos.y)));
if ((distance < 4) && (distance > -4)) {
dragon_mc._x = pos.x;
dragon_mc._y = pos.y;
dragon_mc.hasMovePoint = false;
} else {
dragon_mc._x = dragon_mc._x + newx;
dragon_mc._y = dragon_mc._y + newy;
}
}
function getPredatorAngle(thePredator, thePrey) {
xdiff = thePrey._x - thePredator._x;
ydiff = thePrey._y - thePredator._y;
angle = Math.atan2(ydiff, xdiff);
angle = (angle * 180) / Math.PI;
return(angle);
}
function moveDragonHead() {
}
function getDGZonePoint(dgzone) {
pos = new Object();
pos.x = (Math.random() * dgzone._width) + dgzone._x;
pos.y = (Math.random() * dgzone._height) + dgzone._y;
return(pos);
}
function detectBoundries() {
if (hero_mc._x <= (hero_mc._width / 2)) {
hero_mc._x = hero_mc._width / 2;
} else if (hero_mc._x >= (bg._width - (hero_mc._width / 2))) {
hero_mc._x = bg._width - (hero_mc._width / 2);
}
if ((hero_mc._y - hero_mc._height) <= bg._y) {
hero_mc._y = bg._y + hero_mc._height;
}
if (hero_mc._y >= floor._y) {
hero_mc._y = floor._y + 4;
}
}
function doJumping() {
if (hero_mc.isJumping) {
newY = (hero_mc._y - jumpForce) + gravForce;
if (newY >= floor._y) {
hero_mc.isJumping = false;
hero_mc._y = floor._y - 4;
jumpForce = 0;
} else {
heroSpeed = 6;
hero_mc._y = newY;
jumpForce--;
}
}
}
function detectKeys() {
keyDetected = false;
hero_mc.isStanding = true;
if (Key.isDown(40)) {
keyDetected = true;
if (!hero_mc.isCrouching) {
moveHero("down");
}
} else {
hero_mc.isCrouching = false;
}
if (Key.isDown(38)) {
if (!hero_mc.isCrouching) {
keyDetected = true;
moveHero("up");
}
}
if (Key.isDown(37)) {
keyDetected = true;
moveHero("left");
}
if (Key.isDown(39)) {
keyDetected = true;
moveHero("right");
}
if ((!keyDetected) && (hero_mc.isFlying == false)) {
hero_mc.isStanding = true;
hero_mc.isCrouching = false;
hero_mc.gotoAndStop("standing");
}
}
function moveHero(dir) {
var _local3 = 0;
var _local2 = 0;
switch (dir) {
case "down" :
if (hero_mc.isFlying) {
_local2 = heroSpeed;
} else {
hero_mc.isCrouching = true;
hero_mc.gotoAndStop("crouch");
heroSpeed = 2;
}
break;
case "left" :
if ((!hero_mc.isFlying) && (hero_mc.isCrouching == false)) {
heroSpeed = 5;
hero_mc.gotoAndStop("running");
} else if (hero_mc.isCrouching && (!hero_mc.isFlying)) {
hero_mc.gotoAndStop("crawling");
}
hero_mc._xscale = -100;
_local3 = -heroSpeed;
break;
case "right" :
hero_mc._xscale = 100;
if ((!hero_mc.isFlying) && (hero_mc.isCrouching == false)) {
heroSpeed = 5;
hero_mc.gotoAndStop("running");
} else if (hero_mc.isCrouching && (!hero_mc.isFlying)) {
hero_mc.gotoAndStop("crawling");
}
_local3 = heroSpeed;
break;
case "up" :
if (hero_mc.isFlying) {
_local2 = -heroSpeed;
} else {
if (hero_mc.isJumping) {
break;
}
hero_mc.isJumping = true;
jumpForce = heroJumpPower;
_local2 = -2;
}
}
var _local1 = hero_mc._x + _local3;
var _local4 = hero_mc._y + _local2;
if (!platform_mc.hitTest(_local1, _local4, true)) {
if ((_local1 > 50) || (_local1 > hero_mc._x)) {
hero_mc._x = _local1;
hero_mc._y = _local4;
}
}
}
btn_temp.onRelease = gameMC.btn_handler_play;
heroStartX = hero_mc._x;
heroStartY = hero_mc._y;
dragonStartX = dragon_mc._x;
dragonStartY = dragon_mc._y;
gameRunning = false;
delete myInt;
gameMC.gotoAndPlay("MainLoop");
gameMC.HSPlay();
gameMC.HSLevelStart();
gotoAndPlay ("main_loop");
Frame 35
stop();
Frame 39
gameMC.gotoAndPlay("Ready");
gameMC.HSLevelStart();
Frame 45
gameMC.iReadyScreenTimer.restartTimer();
Frame 46
if (iReadyScreenTimer.getSeconds() < 1) {
} else {
gameMC.gotoAndPlay("MainLoop");
}
Frame 47
gameMC.gotoAndPlay(_currentframe - 1);
Frame 52
reset_btn.onRelease = gameMC.btn_handler_gameover;
if (!gameMC.gPaused) {
if (Key.isDown(81)) {
gameMC.gotoAndPlay("GameOver");
}
}
if (!gameRunning) {
trace("start game");
startGame();
}
doTimer();
detectKeys();
determineDragonState();
doJumping();
detectBoundries();
detectBroom();
doDragonAI();
moveFireballs();
moveDragonHead();
detectDeath();
Instance of Symbol 294 MovieClip "message_mc" in Frame 52
onClipEvent (load) {
this._visible = false;
}
Frame 53
gameMC.gotoAndPlay("MainLoop");
Frame 59
gameMC.iLevelPauseTimer.restartTimer();
Instance of Symbol 107 MovieClip "btn_temp" in Frame 59
on (rollOver) {
this.gotoAndPlay("on");
_parent.initText3();
}
on (rollOut) {
this.gotoAndPlay("off");
_parent.initText3();
}
Instance of Symbol 104 MovieClip "btn_Ins" in Frame 59
on (rollOver) {
this.gotoAndPlay("on");
_parent.initText3();
}
on (rollOut) {
this.gotoAndPlay("off");
_parent.initText3();
}
Frame 60
if (_root.iLevelPauseTimer.seconds() > 10) {
gameMC.gLevel = gameMC.gLevel + 1;
gameMC.gotoAndPlay("NextLevel");
}
Frame 61
gameMC.gotoAndPlay(_currentframe - 1);
btn_Ins.onRelease = function () {
gameMC.gotoAndPlay("instructions");
};
initText3 = function () {
var _local1 = getxmldata6.firstChild;
while (_local1 != null) {
title_txt.text = String(_local1.attributes.text1);
blurb_txt.htmlText = ("<p align='center'>" + String(_local1.attributes.text2)) + "</p>";
blurb_txt.htmlText = ("<p align='center'>" + String(_local1.attributes.text3)) + "</p>";
final_score_txt = String(_local1.attributes.text4);
btn_temp.playBtn_txt.text = String(_local1.attributes.text5);
btn_temp.roll_txt.text = String(_local1.attributes.text5);
btn_Ins.insBtn_txt.text = String(_local1.attributes.text6);
btn_Ins.roll_txt.text = String(_local1.attributes.text6);
_local1 = _local1.nextSibling;
}
};
initText3();
Frame 70
final_score_txt.text = ("YOUR SCORE:" + score) + " ";
endSpaceBarTrap = new Object();
endSpaceBarTrap.onKeyDown = function () {
if (Key.isDown(32)) {
Key.removeListener(endSpaceBarTrap);
gotoAndPlay ("play");
}
};
Key.addListener(endSpaceBarTrap);
btn_temp.onRelease = function () {
Key.removeListener(endSpaceBarTrap);
gotoAndPlay ("play");
};
stop();
btn_Ins.onRelease = function () {
gameMC.gotoAndPlay("instructions");
};
gScore = score;
gameMC.HSGameOver();
Frame 76
initText4 = function () {
var _local1 = getxmldata7.firstChild;
while (_local1 != null) {
title_txt.text = String(_local1.attributes.text1);
blurb_txt.htmlText = ("<p align='center'>" + String(_local1.attributes.text2)) + "</p>";
blurb_txt.htmlText = blurb_txt.htmlText + (("<br><p align='center'>" + String(_local1.attributes.text3)) + "</p>");
blurb_txt.htmlText = blurb_txt.htmlText + (("<br><p align='center'>" + String(_local1.attributes.text4)) + "</p>");
btn_temp.playBtn_txt.text = String(_local1.attributes.text5);
btn_temp.roll_txt.text = String(_local1.attributes.text5);
btn_Ins.insBtn_txt.text = String(_local1.attributes.text6);
btn_Ins.roll_txt.text = String(_local1.attributes.text6);
_local1 = _local1.nextSibling;
}
};
initText4();
endSpaceBarTrap = new Object();
endSpaceBarTrap.onKeyDown = function () {
if (Key.isDown(32)) {
Key.removeListener(endSpaceBarTrap);
gotoAndPlay ("play");
}
};
Key.addListener(endSpaceBarTrap);
btn_temp.onRelease = function () {
Key.removeListener(endSpaceBarTrap);
gotoAndPlay ("play");
};
stop();
btn_Ins.onRelease = function () {
gameMC.gotoAndPlay("instructions");
};
gScore = score;
gameMC.HSGameOver();
Instance of Symbol 104 MovieClip "btn_Ins" in Frame 76
on (rollOver) {
this.gotoAndPlay("on");
_parent.initText4();
}
on (rollOut) {
this.gotoAndPlay("off");
_parent.initText4();
}
Instance of Symbol 107 MovieClip "btn_temp" in Frame 76
on (rollOver) {
this.gotoAndPlay("on");
_parent.initText4();
}
on (rollOut) {
this.gotoAndPlay("off");
_parent.initText4();
}
Frame 97
stop();
Symbol 63 MovieClip [hs_placeholder] Frame 5
stop();
Symbol 65 MovieClip [hs_placeholder] Frame 1
_visible = false;
Symbol 65 MovieClip [hs_placeholder] Frame 5
stop();
Symbol 69 MovieClip Frame 1
this.loadMovie(gameMC.gHSRoot_swf + "HSScripts.swf");
Symbol 69 MovieClip Frame 4
stop();
Symbol 78 MovieClip Frame 1
stop();
Symbol 86 Button
on (press) {
startDrag ("");
}
on (release) {
stopDrag();
}
Symbol 87 Button
on (release) {
gameMC.gDebug = "";
}
Symbol 88 MovieClip Frame 5
stop();
Symbol 93 MovieClip Frame 1
_visible = false;
this.loadMovie(gameMC.gHSRoot_swf + "HSMinScore.swf");
Symbol 93 MovieClip Frame 4
stop();
Symbol 104 MovieClip Frame 1
stop();
Symbol 104 MovieClip Frame 2
stop();
Symbol 107 MovieClip Frame 1
stop();
Symbol 107 MovieClip Frame 2
stop();
Symbol 109 Button
on (release) {
gameMC.gotoAndPlay("GameOver");
}
Symbol 117 MovieClip Frame 4
stop();
Symbol 117 MovieClip Frame 9
stop();
Symbol 207 MovieClip Frame 1
stop();
Symbol 207 MovieClip Frame 2
stop();
Symbol 207 MovieClip Frame 3
stop();
Symbol 207 MovieClip Frame 4
trace("running");
stop();
Symbol 207 MovieClip Frame 5
trace("crawling");
stop();
Symbol 207 MovieClip Frame 6
stop();
Symbol 294 MovieClip Frame 1
var aNode = getxmldata5.firstChild;
while (aNode != null) {
gameTitle_txt.text = String(aNode.attributes.text1);
blurb_txt.text = String(aNode.attributes.text2);
info_txt.text = info_txt.text + String(aNode.attributes.text3);
aNode = aNode.nextSibling;
}