Frame 1
stop();
function load(url) {
var _local3 = createEmptyMovieClip("loader_mc", getNextHighestDepth());
var _local2 = new MovieClipLoader();
_local2.addListener(this);
_local2.loadClip(url, _local3);
}
function onLoadInit(mc) {
g_loaded = true;
gs_gameServices = new GameServices(gameServicesCallback);
gs_scoreSubmit = new GSScoreSubmit(gameServicesCallback);
gs_sendToFriend = new GSSendToFriend(stfCallback);
GameServices.initGameTracking(null, true);
trace((("Game Services module " + g_mtvnGSPath) + " loaded, GS ver=") + GameServices.getVersionString());
trace("BaseDir=" + GameServices.getBaseDir());
trace("Send to friend " + showSTFStartupVars());
trace("we've loaded the SDK, lets load up the triva XML");
loadTrivia();
}
function gameServicesCallback(gsResponseInfo, whichCommand) {
if (gsResponseInfo.isError()) {
trace((("Error=" + gsResponseInfo.message) + "; ") + gsResponseInfo.extended_info);
startupVars.text = (gsResponseInfo.message + "; ") + gsResponseInfo.extended_info;
} else {
var _local7 = gsResponseInfo.success;
if (_local7) {
switch (whichCommand) {
case "SetUserScoreGetScores" :
case "SetUserScoreGetScoresUnauth" :
case "GetScoreRanks" :
case "GetScoreRanksUnauth" :
case "GetUserScoreRanks" :
case "GetUserRatingRanks" :
case "GetRatingRanks" :
var _local2 = gsResponseInfo.results;
leaderBoardText = "";
if (_local2.length > 0) {
i = 0;
while (i < _local2.length) {
nextName = _local2[i].user_name + newline;
nextScore = _local2[i].score + newline;
if (i == 0) {
leaderNameText1 = nextName;
leaderScoreText1 = nextScore;
} else {
leaderNameText1 = leaderNameText1 + nextName;
leaderScoreText1 = leaderScoreText1 + nextScore;
}
leaderBoardText = (((((leaderBoardText + (i + 1)) + ". ") + _local2[i].user_name) + "\t\t") + _local2[i].score) + newline;
i++;
}
} else {
leaderBoardText = "There are no entries";
}
showData.text = leaderBoardText;
break;
case "SetUserScoreGetRank" :
case "SetUserScoreGetRankUnauth" :
case "GetSiteUserRank" :
var _local6 = gsResponseInfo.outparams.user_rank;
showData.text = "Your rank is " + _local6;
break;
case "GetRegistrationStatus" :
case "UserLogin" :
var _local4 = gsResponseInfo.results[0];
showData.text = (((((((("User " + _local4.user_name) + " (id=") + _local4.user_id) + ") created on ") + _local4.date_created) + "\nLogged in ") + _local4.login_count) + " times, last login on ") + _local4.last_login;
GameServices.loadAvatar(1, _root, "myAvatar", _root.getNextHighestDepth());
break;
case "GetUserGameGroupExperiencePoints" :
case "GetUserGameExperiencePoints" :
case "GetUserSiteExperiencePoints" :
var _local8 = gsResponseInfo.results[0].experience_points;
showData.text = ("You currently have " + _local8) + " experience points.";
}
if (whichCommand.indexOf("SetUserScore") != -1) {
resultCode = gsResponseInfo.message;
if (resultCode == "UNCHANGED") {
startupVars.text = "You already have a better score.";
} else {
startupVars.text = "Score submitted!";
}
}
} else {
showData.text = (("Command " + whichCommand) + " failed: ") + gsResponseInfo.message;
}
}
}
function send_load() {
gs_gameTracking.sendHit(GSGameTracking.LOAD, gameEventDetails.text);
trace((("Tracking hit " + GSGameTracking.LOAD) + ", details=") + gameEventDetails.text);
}
function send_play() {
trace((("Tracking hit " + GSGameTracking.PLAY) + ", details=") + gameEventDetails.text);
if (!gs_gameTracking.sendHit(GSGameTracking.PLAY, gameEventDetails.text)) {
trace("PLAY failed");
} else {
trace("PLAY sent");
}
}
function send_gameover() {
trace((("Tracking hit " + GSGameTracking.GAMEOVER) + ", details=") + gameEventDetails.text);
if (!gs_gameTracking.sendHit(GSGameTracking.GAMEOVER, gameEventDetails.text)) {
trace("GAMEOVER failed");
} else {
trace("GAMEOVER sent");
}
}
function showPassedVars() {
return((("GameId=" + game_id) + "; SiteID=") + site_id);
}
var g_isDev = false;
var g_mtvnGSPath = "gs1.swf";
var gs_gameServices = null;
var gs_scoreSubmit = null;
var gs_sendToFriend = null;
var g_loaded = false;
if (!g_loaded) {
var pathToGSSwf = "";
if (!g_isDev) {
pathToGSSwf = "/modules/";
}
pathToGSSwf = pathToGSSwf + g_mtvnGSPath;
trace(("Loading " + pathToGSSwf) + ": remember to get it from /modules/gs1.swf for delivery");
load(pathToGSSwf);
}
function loadTrivia() {
var _local1 = GameServices.getBaseDir(null);
trace(("loading XML from:" + _local1) + "heart_trivia.xml");
trivia_xml.load(_local1 + "heart_trivia.xml");
}
function initTrivia() {
trace("recreating disposable trivia array");
trivData = Array();
i = 0;
while (i < trivia_arr.length) {
trivData.push(trivia_arr[i].trivia);
i++;
}
}
trivia_arr = new Array();
trivia_xml = new XML();
trivia_xml.ignoreWhite = true;
trivia_xml.onLoad = function (success) {
if (success) {
var _local3 = trivia_xml.firstChild;
var _local2 = 0;
while (_local2 < _local3.childNodes.length) {
var _local4 = new Object();
var _local1 = 0;
while (_local1 < _local3.childNodes[_local2].childNodes.length) {
_local4[_local3.childNodes[_local2].childNodes[_local1].nodeName] = _local3.childNodes[_local2].childNodes[_local1].firstChild.nodeValue;
_local1++;
}
trivia_arr.push(_local4);
_local2++;
}
trace("loaded trivia xml");
} else {
trace("Error loading playlist.");
}
delete trivia_xml;
};
function initGame() {
trace("init game");
gameOn = false;
level = 0;
score = 0;
playerLives = 3;
gameScore = 0;
scoreDisplay = 0;
updateHUD();
playerArtCount = 0;
level = 0;
initTrivia();
playerStartX = 275;
playerStartY = 240;
bonusFrameCount = 350;
}
function initLevel() {
level = level + 1;
trace("initLevel: " + level);
totalHearts = 5;
heartsGrabbed = 0;
heartsMC.gotoAndStop(heartsGrabbed + 1);
totalBaddies = 6;
smartBaddies = 3;
removeAllSprites();
spawnPlayer();
placeHearts(totalHearts);
spawnBaddies(totalBaddies);
baddyFrameDelay = 30;
updateHUD();
if (level <= 7) {
levelMarker = "level" + level;
} else {
levelMarker = "level7";
}
frameCount = 0;
levelCard.gotoAndPlay(levelMarker);
}
function placeHearts(numberOfHearts) {
heartLocs = Array(Array(85, 50), Array(180, 50), Array(275, 50), Array(370, 50), Array(465, 50), Array(85, 115), Array(180, 115), Array(370, 115), Array(465, 115), Array(85, 200), Array(465, 200), Array(85, 285), Array(180, 285), Array(370, 285), Array(465, 285), Array(85, 375), Array(180, 375), Array(275, 375), Array(370, 375), Array(465, 375));
heartCount = 0;
while (heartCount < numberOfHearts) {
newLocIndex = randomIn(0, heartLocs.length - 1);
newLoc = heartLocs[newLocIndex];
newX = heartLocs[newLocIndex][0];
newY = heartLocs[newLocIndex][1];
heartLocs.splice(newLocIndex, 1);
zLevel = (newY * 100) + (heartCount + 10);
if (heartCount < 2) {
tHeart = gameBoard.attachMovie("heartSprite", "heart_" + heartCount, zLevel);
tHeart.popup = true;
} else {
tHeart = gameBoard.attachMovie("heartSprite2", "heart_" + heartCount, zLevel);
tHeart.popup = false;
}
tHeart._x = newX;
tHeart._y = newY;
tHeart.z = zLevel;
heartCount++;
}
}
stop();
_global.gameApp = this;
_global.scripts = this;
musicSound = new Sound();
musicSound.attachSound("music");
userName = "";
function spawnBaddies(baddyCount) {
if (level == 1) {
baddySpeed = 6;
smartBaddies = 0;
badDelayIn = 2;
badDelayOut = 5;
}
if (level == 2) {
baddySpeed = 7;
smartBaddies = 1;
badDelayIn = 2;
badDelayOut = 4;
}
if (level == 3) {
baddySpeed = 8;
smartBaddies = 2;
badDelayIn = 1;
badDelayOut = 4;
}
if (level == 4) {
baddySpeed = 9;
smartBaddies = 3;
badDelayIn = 0.5;
badDelayOut = 4;
}
if (level == 5) {
baddySpeed = 10;
smartBaddies = 4;
badDelayIn = 0.25;
badDelayOut = 4;
}
if (level == 6) {
baddySpeed = 11;
smartBaddies = 5;
badDelayIn = 0.25;
badDelayOut = 3;
}
if (level == 7) {
baddySpeed = 12;
smartBaddies = 5;
badDelayIn = 0.125;
badDelayOut = 2.5;
}
if (level > 7) {
baddySpeed = 13;
smartBaddies = 5;
badDelayIn = 0.125;
badDelayOut = 2;
}
badLocs = Array(Array(60, 75), Array(60, 220), Array(60, 360), Array(490, 75), Array(490, 220), Array(490, 360));
i = 0;
while (i < baddyCount) {
newLocIndex = randomIn(0, badLocs.length - 1);
newLoc = badLocs[newLocIndex];
newX = badLocs[newLocIndex][0];
newY = badLocs[newLocIndex][1];
badLocs.splice(newLocIndex, 1);
zLevel = (newY * 100) + (i + 40);
if (level == 1) {
baddy = gameBoard.attachMovie("baddy1", "baddy_" + i, zLevel);
}
if (level == 2) {
baddy = gameBoard.attachMovie("baddy2", "baddy_" + i, zLevel);
}
if (level == 3) {
baddy = gameBoard.attachMovie("baddy3", "baddy_" + i, zLevel);
}
if (level == 4) {
baddy = gameBoard.attachMovie("baddy4", "baddy_" + i, zLevel);
}
if (level == 5) {
baddy = gameBoard.attachMovie("baddy5", "baddy_" + i, zLevel);
}
if (level == 6) {
baddy = gameBoard.attachMovie("baddy6", "baddy_" + i, zLevel);
}
if (level >= 7) {
badType = "baddy" + randomIn(1, 6);
baddy = gameBoard.attachMovie(badType, "baddy_" + i, zLevel);
}
baddy.gotoAndStop(1);
baddy._x = newX;
baddy._y = newY;
baddy.id = i;
baddy.myCount = baddyCount;
baddy.z = zLevel;
baddy.active = true;
baddy.topSpeed = baddySpeed;
myDir = randomIn(1, 4);
if (myDir == 1) {
baddy.deltaY = -1;
baddy.deltaX = 1;
}
if (myDir == 2) {
baddy.deltaY = 1;
baddy.deltaX = 1;
}
if (myDir == 3) {
baddy.deltaY = 1;
baddy.deltaX = -1;
}
if (myDir == 4) {
baddy.deltaY = -1;
baddy.deltaX = -1;
}
if (i < smartBaddies) {
trace("setting up a smart baddy:" + baddy);
baddy.smartMC.gotoAndStop("smart");
baddy.smart = true;
baddy.targetDelay = randomIn(badDelayIn, badDelayOut) * 10;
baddy.frameCount = randomIn(badDelayIn, badDelayOut) * 10;
} else {
baddy.smart = false;
}
speedScaling(baddy);
i++;
}
}
function replaceBaddies() {
trace("moving bad guys back to starting positions");
badLocs = Array(Array(60, 75), Array(60, 220), Array(60, 360), Array(490, 75), Array(490, 220), Array(490, 360));
trace(badLocs.toString());
trace(totalBaddies);
i = 0;
while (i < totalBaddies) {
newLocIndex = randomIn(0, badLocs.length - 1);
newLoc = badLocs[newLocIndex];
newX = badLocs[newLocIndex][0];
newY = badLocs[newLocIndex][1];
badLocs.splice(newLocIndex, 1);
tBaddy = eval ("gameBoard.baddy_" + i);
tBaddy.gotoAndStop(1);
tBaddy._x = newX;
tBaddy._y = newY;
i++;
}
}
function moveBaddy() {
i = 0;
while (i < totalBaddies) {
baddy = eval ("gameBoard.baddy_" + i);
newX = baddy._x + baddy.deltaX;
newY = baddy._y + baddy.deltaY;
if (baddy.smart) {
baddy.frameCount++;
if (baddy.frameCount > baddy.targetDelay) {
baddy.frameCount = 0;
targetBaddyPos(baddy);
}
}
if ((newY < 50) || (newY > 400)) {
baddy.deltaY = baddy.deltaY * -1;
newY = baddy._y + baddy.deltaY;
}
if ((newX < 50) || (newX > 520)) {
baddy.deltaX = baddy.deltaX * -1;
newX = baddy._x + baddy.deltaX;
}
if (baddy.deltaX >= 0) {
baddy._xscale = -100;
} else {
baddy._xscale = 100;
}
zLevel = (newY * 100) + (baddy.myCount + 40);
if (baddy.active) {
baddy._x = newX;
baddy._y = newY;
}
baddy.z = zLevel;
baddy.swapDepths(zLevel);
i++;
}
}
function targetBaddyPos(baddy) {
xDif = player._x - baddy._x;
yDif = player._y - baddy._y;
baddy.deltaX = xDif;
baddy.deltaY = yDif;
speedScaling(baddy);
}
function spawnPlayer() {
player.removeMovieClip();
zLevel = (playerStartY * 100) + 50;
player = gameBoard.attachMovie("playerMC", "player", zLevel);
player.gotoAndStop("stand");
player._x = playerStartX;
player._y = playerStartY;
player.z = zLevel;
player.baseSpeed = 10;
player.turboSpeed = 20;
player.topSpeed = 10;
player.deltaX = 0;
player.deltaY = 0;
player.power = false;
player.powerFrameCount = 0;
player.powerEndCount = 150;
}
function replacePlayer() {
zLevel = (playerStartY * 100) + 50;
player._x = playerStartX;
player._y = playerStartY;
player.gotoAndStop("stand");
player.topSpeed = player.baseSpeed;
player.power = false;
player.deltaX = 0;
player.deltaY = 0;
}
function movePlayer() {
xMin = 35;
yMin = 45;
xMax = 515;
yMax = 400;
targetPlayerPos2();
newX = player._x + player.deltaX;
newY = player._y + player.deltaY;
if (newY > yMax) {
newY = yMax;
}
if (newY < yMin) {
newY = yMin;
}
if (newX > xMax) {
newX = xMax;
}
if (newX < xMin) {
newX = xMin;
}
player._x = newX;
player._y = newY;
zLevel = (Math.floor(player._y) * 100) + 20;
player.z = zLevel;
player.swapDepths(zLevel);
i = 0;
while (i < totalHearts) {
tHeart = eval ("gameBoard.heart_" + i);
if (player.hitMask.hitTest(tHeart.hitMask)) {
trace("hit heart");
heartsGrabbed++;
heartsMC.gotoAndStop(heartsGrabbed + 1);
oldScore = gameScore;
newScore = gameScore + 500;
gameScore = newScore;
checkBonusLife(oldScore, newScore);
scoreDisplay = addCommas(gameScore);
tHeart.gotoAndPlay("hit");
if (tHeart.popup) {
gameOn = false;
player.gotoAndStop("stand");
popupMC.gotoAndPlay("popup");
} else {
scripts.checkGameOver();
}
}
i++;
}
i = 0;
while (i < totalBaddies) {
tBaddy = eval ("gameBoard.baddy_" + i);
if (player.hitMask.hitTest(tBaddy.hitMask)) {
if ((player.power == true) && (player.powerType == 1)) {
trace("powerHit baddy");
tBaddy.gotoAndStop("hit");
tBaddy.active = false;
} else {
trace("hit baddy");
musicSound.stop();
player.power == false;
gameBoard.bonus.removeMovieClip();
playerLives--;
tBaddy.gotoAndStop("hit");
player.gotoAndStop("hit");
gameOn = false;
if (playerLives > 0) {
continueMC.gotoAndPlay("showMe");
} else {
messaging.gotoAndPlay("gameOver");
}
}
}
i++;
}
if (player.hitMask.hitTest(gameBoard.bonus.hitMask)) {
bonusType = gameBoard.bonus.bonusType;
gameBoard.bonus.gotoAndPlay("hit");
player.power = true;
player.powerType = bonusType;
if (bonusType == 2) {
player.topSpeed = player.turboSpeed;
}
player.gotoAndStop("power");
player.powerFrameCount = 0;
player.powerEndCount = 150;
}
player.powerFrameCount++;
if (player.powerFrameCount > player.powerEndCount) {
player.power = false;
player.topSpeed = player.baseSpeed;
}
}
function checkBonusLife(oldScore, newScore) {
if ((oldScore < 10000) && (newScore >= 10000)) {
playerLives++;
}
if ((oldScore < 5000) && (newScore >= 50000)) {
playerLives++;
}
if ((oldScore < 10000) && (newScore >= 100000)) {
playerLives++;
}
}
function updateHUD() {
if (playerHealth < 0) {
playerHealth = 0;
}
if (enemyHealth < 0) {
enemyHealth = 0;
}
playerHealthMeter.updateBar(playerHealth);
enemyHealthMeter.updateBar(enemyHealth);
playerWinMeter.gotoAndStop(playerWins + 1);
enemyWinMeter.gotoAndStop(enemyWins + 1);
hud.score = gameScore;
}
function removeAllSprites() {
player.removeMovieClip();
gameBoard.bonus.removeMovieClip();
i = 0;
while (i < 10) {
tHeart = eval ("gameBoard.heart_" + i);
tBaddy = eval ("gameBoard.baddy_" + i);
tHeart.removeMovieClip();
tBaddy.removeMovieClip();
i++;
}
}
function resumeLevel() {
player.power = false;
i = 0;
while (i < totalBaddies) {
tBaddy = eval ("gameBoard.baddy_" + i);
if (tBaddy._currentframe == 3) {
tBaddy.removeMovieClip();
}
i++;
}
player.gotoAndStop("stand");
messaging.gotoAndPlay("ready");
trace("resuming music");
musicSound.start(0, 200);
}
function spawnBonus() {
gameBoard.bonus.removeMovieClip();
bonusStartX = playerStartX;
bonusStartY = playerStartY;
zLevel = (bonusStartY * 100) + 55;
bonusType = randomIn(1, 2);
if (bonusType == 1) {
bonusSprite = "butterfly";
} else {
bonusSprite = "lightning";
}
bonusMC = gameBoard.attachMovie(bonusSprite, "bonus", zLevel);
bonusMC.gotoAndPlay(1);
bonusMC._x = bonusStartX;
bonusMC._y = bonusStartY;
bonusMC.z = zLevel;
bonusMC.frameCount = 0;
bonusMC.dieCount = 150;
bonusMC.bonusType = bonusType;
}
function addCommas(inNumber) {
inNumber = "" + inNumber;
if (inNumber.length > 3) {
var _local1 = inNumber.length % 3;
var _local3 = ((_local1 > 0) ? (inNumber.substring(0, _local1)) : "");
i = 0;
while (i < Math.floor(inNumber.length / 3)) {
if ((_local1 == 0) && (i == 0)) {
_local3 = _local3 + inNumber.substring(_local1 + (3 * i), (_local1 + (3 * i)) + 3);
} else {
_local3 = _local3 + ("," + inNumber.substring(_local1 + (3 * i), (_local1 + (3 * i)) + 3));
}
i++;
}
return(_local3);
}
return(inNumber);
}
function randomIn(lowerbound, upperbound) {
return(Math.round(((upperbound - lowerbound) * Math.random()) + lowerbound));
}
function unitVector(input) {
myVal = (1 / Math.sqrt((this.deltaX * this.deltaX) + (this.deltaY * this.deltaY))) * input;
return(myVal);
}
function myDelta(deltaX, deltaY) {
return(Math.sqrt((deltaX * deltaX) + (deltaY * deltaY)));
}
function speedScaling(obMC) {
currentSpeed = myDelta(obMC.deltaX, obMC.deltaY);
targetSpeed = obMC.topSpeed;
if (currentSpeed != targetSpeed) {
speedFactor = targetSpeed / currentSpeed;
obMC.deltaX = obMC.deltaX * speedFactor;
obMC.deltaY = obMC.deltaY * speedFactor;
}
}
function speedScalingPlayer(obMC) {
currentSpeed = myDelta(obMC.deltaX, obMC.deltaY);
targetSpeed = obMC.topSpeed;
if (currentSpeed > targetSpeed) {
speedFactor = targetSpeed / currentSpeed;
obMC.deltaX = obMC.deltaX * speedFactor;
obMC.deltaY = obMC.deltaY * speedFactor;
}
}
function getTrivQuote() {
rNum = randomIn(0, trivData.length - 1);
rQuote = trivData[rNum];
trivData.splice(rNum, 1);
return(rQuote);
}
function checkGameOver() {
if (heartsGrabbed >= totalHearts) {
musicSound.stop();
gameOn = false;
player.gotoAndPlay("win");
}
}
function checkGameOverPop() {
if (heartsGrabbed >= totalHearts) {
musicSound.stop();
player.gotoAndPlay("win");
} else {
gameOn = true;
}
}
function targetPlayerPos() {
newX = gameApp._xmouse;
newY = gameApp._ymouse;
player.targetX = newX;
player.targetY = newY;
}
function targetPlayerPos2() {
xDif = gameApp._xmouse - player._x;
yDif = gameApp._ymouse - player._y;
player.deltaX = xDif;
player.deltaY = yDif;
speedScalingPlayer(player);
if (player.power == false) {
if ((Math.abs(player.deltaX) < 1) && (Math.abs(player.deltaY) < 1)) {
player.gotoAndStop("stand");
} else if (player._currentframe != 2) {
player.gotoAndStop("walk");
}
}
}
function checkBonusDelays() {
bonusFrameCount = 250;
gameBoard.bonus.frameCount++;
if (gameBoard.bonus.frameCount > gameBoard.bonus.dieCount) {
gameBoard.bonus.removeMovieClip();
}
frameCount++;
if (frameCount > bonusFrameCount) {
frameCount = 0;
spawnBonus();
}
}
function mainLoop() {
if (gameOn) {
checkBonusDelays();
moveBaddy();
targetPlayerPos();
movePlayer();
}
}
Frame 7
stop();
Frame 23
stop();
Instance of Symbol 228 MovieClip "gameBoard" in Frame 39
onClipEvent (load) {
_global.boardMC = this();
}
onClipEvent (enterFrame) {
if (scripts.gameOn) {
scripts.mainLoop();
}
}
Frame 43
initGame();
Frame 47
initLevel();
stop();
Frame 63
function submitScoreGetScores() {
trace("trying to submit and get");
userNameStr = userName;
if (userNameStr == "") {
userNameStr = "---";
}
if (userNameStr == undefined) {
userNameStr = "---";
}
trace("score submitting:" + score);
if (gameId > 0) {
var _local1 = GSScoreSubmit.setGameId(gameId);
if (!_local1) {
trace("That's a bad game id:" + gameId);
}
}
firstScore = 1;
numScores = 11;
GSScoreSubmit.unauthSubmitScoreGetScores(score, score, "", userNameStr, firstScore, numScores);
gotoAndPlay ("hiscores");
}
musicSound.stop();
userName = "";
Selection.setFocus(this);
removeAllSprites();
score = gameScore;
trace("score to submit=" + score);
userName = scripts.userName;
var keyListener = new Object();
keyListener.onKeyDown = function () {
myCode = Key.getCode();
myChar = chr(Key.getAscii());
deleteCode = false;
switch (myCode) {
case 37 :
deleteCode = true;
break;
case 46 :
deleteCode = true;
break;
case 8 :
deleteCode = true;
}
trace("deleteCode:" + deleteCode);
trace("userName.length:" + userName.length);
if (deleteCode) {
if (userName.length > 0) {
userName = userName.slice(0, userName.length - 1);
}
} else if (userName.length < 3) {
userName = userName + myChar;
}
trace("userName:" + userName);
};
Key.addListener(keyListener);
stop();
Instance of Symbol 331 MovieClip in Frame 63
onClipEvent (enterFrame) {
if (_parent.userName.length == 0) {
if (this._currentframe != 1) {
this.gotoAndStop(1);
}
}
if (_parent.userName.length == 1) {
if (this._currentframe != 2) {
this.gotoAndStop(2);
}
}
if (_parent.userName.length == 2) {
if (this._currentframe != 3) {
this.gotoAndStop(3);
}
}
if (_parent.userName.length == 3) {
if (this._currentframe != 4) {
this.gotoAndStop(4);
}
}
}
Frame 64
if (getScoreError == false) {
scoreBlocker._visible = false;
} else {
scoreBlocker._visible = true;
}
Frame 70
stop();
Frame 85
gotoAndStop ("intro");
Symbol 22 MovieClip [cudaSprite] Frame 22
gotoAndPlay ("photo");
Symbol 34 MovieClip Frame 8
Symbol 51 MovieClip [playerMC] Frame 1
stop();
Instance of Symbol 24 MovieClip "hitMask" in Symbol 51 MovieClip [playerMC] Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 51 MovieClip [playerMC] Frame 2
stop();
Symbol 51 MovieClip [playerMC] Frame 3
stop();
Symbol 51 MovieClip [playerMC] Frame 4
stop();
Symbol 51 MovieClip [playerMC] Frame 75
scripts.initLevel();
stop();
Symbol 61 MovieClip Frame 1
fscommand ("allowscale", true);
fscommand ("showmenu", false);
versionString = String(getVersion());
theVersion = substring(versionString, 5, 1);
if (theVersion >= 8) {
gotoAndPlay ("load");
}
Symbol 61 MovieClip Frame 4
this.stop();
Symbol 61 MovieClip Frame 5
loadBarLength = 71;
LOADED = Math.round(_root.getBytesLoaded());
TOTAL = Math.round(_root.getBytesTotal());
PERCENT = LOADED / TOTAL;
this.loadBar._width = PERCENT * loadBarLength;
if (TOTAL < 1) {
TEXT = "0%";
} else {
TEXT = (PERCENT * 100) + "%";
}
this.loadPercent = TEXT;
Symbol 61 MovieClip Frame 8
if (LOADED == TOTAL) {
_parent.gotoAndStop("intro");
} else {
gotoAndPlay ("load");
}
Symbol 64 MovieClip Frame 1
stop();
Symbol 79 Button
on (release) {
this.gotoAndPlay("popDown");
}
Symbol 84 MovieClip Frame 1
stop();
Symbol 84 MovieClip Frame 12
poptext = scripts.getTrivQuote();
stop();
Symbol 84 MovieClip Frame 26
scripts.checkGameOverPop();
this.gotoAndStop(1);
stop();
Symbol 87 MovieClip Frame 1
stop();
Instance of Symbol 24 MovieClip "hitMask" in Symbol 99 MovieClip [heartSprite] Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 99 MovieClip [heartSprite] Frame 11
gotoAndPlay ("standby");
Symbol 99 MovieClip [heartSprite] Frame 16
this.removeMovieClip();
Symbol 108 MovieClip Frame 8
gotoAndPlay ("walk");
Symbol 108 MovieClip Frame 9
stop();
Symbol 109 MovieClip Frame 30
_parent.removeMovieClip();
Symbol 111 MovieClip [baddy2] Frame 1
stop();
Instance of Symbol 24 MovieClip "hitMask" in Symbol 111 MovieClip [baddy2] Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 114 MovieClip Frame 31
_parent.removeMovieClip();
Symbol 118 MovieClip Frame 1
stop();
Symbol 119 MovieClip [baddy1] Frame 1
stop();
Instance of Symbol 24 MovieClip "hitMask" in Symbol 119 MovieClip [baddy1] Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 126 MovieClip Frame 8
gotoAndPlay ("walk");
Symbol 126 MovieClip Frame 9
stop();
Symbol 127 MovieClip Frame 30
_parent.removeMovieClip();
Symbol 129 MovieClip [baddy3] Frame 1
stop();
Instance of Symbol 24 MovieClip "hitMask" in Symbol 129 MovieClip [baddy3] Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 136 MovieClip Frame 8
gotoAndPlay ("walk");
Symbol 136 MovieClip Frame 9
stop();
Symbol 137 MovieClip Frame 30
_parent.removeMovieClip();
Symbol 139 MovieClip [baddy4] Frame 1
stop();
Instance of Symbol 24 MovieClip "hitMask" in Symbol 139 MovieClip [baddy4] Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 152 MovieClip Frame 24
gotoAndPlay ("walk");
Symbol 152 MovieClip Frame 25
stop();
Symbol 153 MovieClip Frame 30
_parent.removeMovieClip();
Symbol 155 MovieClip [baddy5] Frame 1
stop();
Instance of Symbol 24 MovieClip "hitMask" in Symbol 155 MovieClip [baddy5] Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 164 MovieClip Frame 12
gotoAndPlay ("walk");
Symbol 164 MovieClip Frame 13
stop();
Symbol 165 MovieClip Frame 30
_parent.removeMovieClip();
Symbol 167 MovieClip [baddy6] Frame 1
stop();
Instance of Symbol 24 MovieClip "hitMask" in Symbol 167 MovieClip [baddy6] Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 24 MovieClip "hitMask" in Symbol 173 MovieClip [heartSprite2] Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 173 MovieClip [heartSprite2] Frame 11
gotoAndPlay ("standby");
Symbol 173 MovieClip [heartSprite2] Frame 16
this.removeMovieClip();
Instance of Symbol 24 MovieClip "hitMask" in Symbol 178 MovieClip [lightning] Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 178 MovieClip [lightning] Frame 16
gotoAndPlay (1);
Symbol 178 MovieClip [lightning] Frame 31
this.removeMovieClip();
Instance of Symbol 24 MovieClip "hitMask" in Symbol 182 MovieClip [butterfly] Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 182 MovieClip [butterfly] Frame 16
gotoAndPlay (1);
Symbol 182 MovieClip [butterfly] Frame 31
this.removeMovieClip();
Symbol 188 Button
on (release) {
play();
}
Symbol 209 Button
on (release) {
play();
}
Symbol 249 Button
on (release) {
this.gotoAndPlay("hide");
_parent.messaging.gotoAndPlay("ready");
}
Symbol 263 MovieClip Frame 1
stop();
Symbol 263 MovieClip Frame 21
stop();
Symbol 263 MovieClip Frame 32
stop();
Symbol 263 MovieClip Frame 60
stop();
Symbol 263 MovieClip Frame 88
stop();
Symbol 263 MovieClip Frame 115
stop();
Symbol 263 MovieClip Frame 142
stop();
Symbol 263 MovieClip Frame 169
stop();
Symbol 263 MovieClip Frame 170
Symbol 263 MovieClip Frame 196
levelNum = "LEVEL " + scripts.level;
stop();
Symbol 280 MovieClip Frame 1
stop();
Symbol 280 MovieClip Frame 5
player.gotoAndStop("stand");
Symbol 280 MovieClip Frame 73
_parent.musicSound.start(0, 200);
scripts.gameOn = true;
this.gotoAndStop("idle");
Symbol 280 MovieClip Frame 130
trace("game over message complete, moving on");
_parent.play();
this.gotoAndStop("idle");
stop();
Symbol 286 Button
on (release) {
this.gotoAndStop(1);
if (scripts.playerLives > 0) {
scripts.resumeLevel();
} else {
_parent.gotoAndStop("subScore");
}
}
Symbol 287 MovieClip Frame 1
stop();
Symbol 287 MovieClip Frame 45
scripts.replacePlayer();
scripts.replaceBaddies();
_parent.messaging.gotoAndPlay("ready");
this.gotoAndStop(1);
stop();
Symbol 325 Button
on (release) {
if (((userName == "") || (userName == undefined)) || (userName == eval("Null"))) {
trace("must input valid username");
} else {
scripts.userName = userName;
submitScoreGetScores();
}
}
Symbol 327 Button
on (release) {
if (((userName == "") || (userName == undefined)) || (userName == eval("Null"))) {
trace("must input valid username");
} else {
Key.removeListener(keyListener);
scripts.userName = userName;
submitScoreGetScores();
}
}
Symbol 331 MovieClip Frame 1
stop();
Symbol 337 Button
on (release) {
play();
}