Frame 1
s = new Sound();
s.setVolume(100);
function sendFriend() {
messageData = new LoadVars();
dataResponse = new LoadVars();
messageData.senderName = senderName;
messageData.senderEmail = senderEmail;
messageData.recipName = recipName;
messageData.recipEmail = recipEmail;
messageData.sendAndLoad("http://www.sneakysanta.com.au/sendfriend.asp", dataResponse, "POST");
loadInt = setInterval(waitForSend, 10);
timeout = 0;
recipName = "";
recipEmail = "";
trackIt("sendfriend");
}
function validateForm() {
errorToggle = false;
if ((senderName == "") || (senderName == undefined)) {
panels.senderNameEx.gotoAndStop(2);
errorToggle = true;
} else {
panels.senderNameEx.gotoAndStop(1);
}
if ((recipName == "") || (recipName == undefined)) {
panels.recipNameEx.gotoAndStop(2);
errorToggle = true;
} else {
panels.recipNameEx.gotoAndStop(1);
}
if (testEmail(senderEmail) == false) {
panels.senderEmailEx.gotoAndStop(2);
errorToggle = true;
} else {
panels.senderEmailEx.gotoAndStop(1);
}
if (testEmail(recipEmail) == false) {
panels.recipEmailEx.gotoAndStop(2);
errorToggle = true;
} else {
panels.recipEmailEx.gotoAndStop(1);
}
if (errorToggle == true) {
return(false);
}
return(true);
}
function testEmail(email) {
var _local1 = email;
if ((((((_local1 == undefined) || (_local1.indexOf("@") == 0)) || (_local1.indexOf("@") == -1)) || (_local1.indexOf("@") == (_local1.length - 1))) || (_local1.indexOf(".") == 0)) || (_local1.indexOf(".") == -1)) {
return(false);
}
return(true);
}
function trackIt(action) {
var _local1 = action;
_local1 = (trackingBrand + ".sneakysanta-") + _local1;
loadMovieNum ((((("http://server-au.imrworldwide.com/cgi-bin/count?cid=" add CID) add "&url=") add _local1) add "&rnd=") add Math.ceil(Math.random() * 100000000), 100);
}
function preloader() {
loa = _root.getBytesLoaded();
tot = _root.getBytesTotal();
if ((loa == tot) && (tot > 0)) {
gotoAndStop ("game");
preloaderMov.gotoAndPlay("endPreload");
clearInterval(loadInt);
} else {
perc = Math.round((loa / tot) * 100);
}
preloaderMov.circle.gotoAndStop(perc);
}
function homePanel() {
showControls = false;
showTopbar = false;
controls.play();
topbar.play();
panels.nextAction = "homePanel";
panels.play();
}
function volumeSet(am) {
var _local1 = am;
var _local2 = _root;
i = 0;
while (i < soundAr.length) {
_local2[soundAr[i] + "S"].setVolume(_local1);
i++;
}
genSound.setVolume(_local1);
volumeAm = _local1;
}
function commonLoop() {
volumeSet(volumeAm);
if (gameOn == true) {
playerControl.broadcastMessage("movePlayer");
objectControl.broadcastMessage("checkObject");
placeLevel();
checkPlayerHits();
timer();
checkVolume();
checkPrices();
} else if (scrollerDown == true) {
scrollerInt();
}
displayVol = genSound.getVolume();
volumeSet(volumeAm);
updateAfterEvent();
}
function startGame() {
playerLives = 3;
setPlayerLivesDisplay();
fullLootScore = 0;
fullInsuredScore = 0;
currentLevel = 0;
levelDisplay = (("Level " + (currentLevel + 1)) + ": ") + levelDesc[currentLevel];
setInsuredRate(currentLevel);
panels.nextAction = "levelStart";
panels.play();
trackIt("startgame");
}
function newLevel() {
if (gotoNewLevel == true) {
currentLevel++;
}
interLevelMessageCount++;
if (interLevelMessageCount > 3) {
interLevelMessageCount = 1;
}
setInsuredRate(currentLevel);
panels.nextAction = "levelStart";
levelDisplay = (("Level " + (currentLevel + 1)) + ": ") + levelDesc[currentLevel];
panels.play();
}
function timer() {
now = new Date();
levelTime = now.getTime() - levelStartTime.getTime();
perc = 100 - Math.round((levelTime / levelMaxTime) * 100);
controls.meters.timer.clock.levelTimerDisp.gotoAndStop(perc);
if ((perc < 15) && ((ticktockS.position == 0) || (ticktockS.position == ticktockS.duration))) {
ticktockS.start(0);
}
if (perc <= 7) {
controls.meters.timer.clock.dinger.play();
if ((alarmS.position == 0) || (alarmS.position == alarmS.duration)) {
alarmS.start(0);
}
}
if (perc <= 0) {
levelEnd("time");
}
}
function checkVolume() {
if (levels.playerM.isNoisy == true) {
currentVolume = currentVolume + noiseUpRate;
} else {
currentVolume = currentVolume - noiseDownRate;
}
if (currentVolume < 0) {
currentVolume = 0;
}
if (currentVolume > 100) {
currentVolume = 100;
}
if (displayVolume != currentVolume) {
displayVolume = displayVolume + ((currentVolume - displayVolume) / volumeDisplayChangeRate);
}
controls.meters.sleep.gotoAndStop(100 - Math.round(displayVolume));
percZone = Math.floor(currentVolume / 33) + 1;
if (oldPercZone != percZone) {
if (((checkSoundEnded(snore1S) == true) && (checkSoundEnded(snore2S) == true)) && (checkSoundEnded(snore3S) == true)) {
_root[("snore" + percZone) + "S"].start();
oldPercZone = percZone;
}
}
if (Math.round(displayVolume) >= 100) {
levelEnd("noise");
}
}
function checkSoundEnded(s) {
var _local1 = s;
if ((_local1.position == 0) || (_local1.position == _local1.duration)) {
return(true);
}
return(false);
}
function volumeRamp(amount) {
currentVolume = currentVolume + amount;
}
function loseLife() {
playerLives--;
setPlayerLivesDisplay();
}
function setPlayerLivesDisplay() {
_root.controls.meters.meterLives.gotoAndStop(playerLives);
}
function checkGameOver() {
if (playerLives == 0) {
return(true);
}
return(false);
}
function levelEnd(why) {
gotoNewLevel = true;
gameOn = false;
levels.gotoAndStop("wait");
panels.nextAction = "levelEnd";
if (why == "noise") {
gotoNewLevel = false;
panels.nextAction = "loseLife";
panels.gameOverTitle = "tooloud";
loseLife();
} else if (why == "time") {
if (checkLootPrice() < levelInsuredPrice) {
gotoNewLevel = false;
panels.gameOverTitle = "outoftime";
panels.nextAction = "loseLife";
loseLife();
}
}
if (panels.nextAction == "levelEnd") {
fullInsuredScore = fullInsuredScore + levelInsuredPrice;
fullLootScore = fullLootScore + checkLootPrice();
}
if (checkGameOver() == true) {
trackIt("gameover");
panels.gameOverTitle = "gameover";
}
if ((currentLevel == maxLevel) && (panels.nextAction == "levelEnd")) {
setFinishScreenVars();
panels.nextAction = "gameOver";
}
ticktockS.stop();
alarmS.stop();
panels.gotoAndPlay("decide");
}
function setFinishScreenVars() {
fullInsuredScoreDisplay = ("$" + Math.round(fullInsuredScore)) + ".";
fullLootScoreDisplay = "$" + Math.round(fullLootScore);
}
function makeStolenItemsList() {
copyLeft = "";
copyRight = "";
i = 0;
while (i < collectedObjects.length) {
thisItems = itemsArray[collectedObjects[i]].items;
j = 0;
while (j < thisItems.length) {
copyLeft = copyLeft + (thisItems[j][0] + newline);
copyRight = copyRight + (("$" + thisItems[j][1]) + newline);
j++;
}
i++;
}
if (collectedObjects.length == 0) {
metrics = fontFormat1.getTextExtent(copyLeft);
} else {
metrics = fontFormat1.getTextExtent("No items collected!");
}
metrics = fontFormat1.getTextExtent(copyLeft);
panels.stolenItems.stolenList.createTextField("textLeft", 5, 0, 0, 155, metrics.height);
panels.stolenItems.stolenList.createTextField("textRight", 6, 167, 0, 70, metrics.height);
textLeft = panels.stolenItems.stolenList.textLeft;
textRight = panels.stolenItems.stolenList.textRight;
textLeft.setNewTextFormat(fontFormat1);
textRight.setNewTextFormat(fontFormat1);
textLeft.wordWrap = true;
textRight.wordWrap = true;
textLeft.embedFonts = true;
textRight.embedFonts = true;
if (collectedObjects.length == 0) {
textLeft.text = "No items collected!";
} else {
textLeft.text = copyLeft;
}
textRight.text = copyRight;
minScroll = 75;
maxScroll = 115;
minContent = (-metrics.height) + 85;
maxContent = 60;
}
function scrollerInt() {
textLeft = (panels.stolenItems.stolenList._y = maxContent - (((panels.stolenItems.scroller._y - minScroll) / (maxScroll - minScroll)) * (maxContent - minContent)));
}
function scrollerArrow(way) {
panels.stolenItems.scroller._y = panels.stolenItems.scroller._y + ((way == "up") ? -10 : 10);
if (panels.stolenItems.scroller._y < minScroll) {
panels.stolenItems.scroller._y = minScroll;
}
if (panels.stolenItems.scroller._y > maxScroll) {
panels.stolenItems.scroller._y = maxScroll;
}
scrollerInt();
}
function placeLevel() {
levels._x = playerShowPoint._x - levels.playerM._x;
levels._y = playerShowPoint._y - levels.playerM._y;
if (levels._x > levelPlacePoint._x) {
levels._x = levelPlacePoint._x;
}
if (levels._y > levelPlacePoint._y) {
levels._y = levelPlacePoint._y;
}
minPointX = -((levels.levelArea._width - playArea._width) - levelPlacePoint._x);
minPointY = -((levels.levelArea._height - playArea._height) - levelPlacePoint._y);
if (levels._x < minPointX) {
levels._x = minPointX;
}
if (levels._y < minPointY) {
levels._y = minPointY;
}
}
function toRadians(angle) {
var _local1 = angle;
_local1 = (Math.PI/180) * _local1;
return(_local1);
}
function getRealAngle(angle) {
var _local1 = angle;
if (_local1 > 360) {
_local1 = _local1 - 360;
} else if (_local1 < 0) {
_local1 = _local1 + 360;
}
return(_local1);
}
function setInsuredRate(level) {
var _local1 = level;
levelPerc = _local1 / levelPercInsuranceBottomsOut;
levelInsuredPerc = (minPercInsurance + ((maxPercInsurance - minPercInsurance) * levelPerc)) / 100;
totalLevelWorth = 0;
i = 0;
while (i < levelObjects[_local1].length) {
totalLevelWorth = totalLevelWorth + getObjectTotalPrice(levelObjects[_local1][i]);
i++;
}
levelInsuredPrice = levelInsuredPerc * totalLevelWorth;
levelInsuredDisplayPrice = "$" + Math.round(levelInsuredPrice);
}
function startNewLevel(level) {
var _local1 = level;
showControls = true;
showTopbar = true;
controls.play();
topbar.play();
gameOn = true;
levels.gotoAndStop(_local1 + 1);
levels.attachMovie("playerMov", "playerM", 5);
playerControl.broadcastMessage("placeInit");
collectedObjects = new Array();
levelStartTime = new Date();
levelMaxTime = levelTimes[_local1];
currentVolume = 0;
displayVolume = 0;
controls.meters.timer.clock.dinger.gotoAndStop(1);
lootPrice = "$0";
totalPrice = 0;
displayPrice = 0;
bonusesArray = new Array();
i = 1;
while (levels[(("level" + (_local1 + 1)) + "Bonus") + i]) {
rand = random(100);
if (rand > percChanceBonus) {
bonusType = (((random(100) > 30) || (playerLives >= 3)) ? "extraTime" : "extraLife");
levels[(("level" + (_local1 + 1)) + "Bonus") + i].gotoAndStop(bonusType);
levels[(("level" + (_local1 + 1)) + "Bonus") + i].bonusType = bonusType;
} else {
levels[(("level" + (_local1 + 1)) + "Bonus") + i].gotoAndStop("out");
}
bonusesArray.push((("level" + (_local1 + 1)) + "Bonus") + i);
i++;
}
i = 0;
while (i < levelObjects[_local1].length) {
obj = levels[levelObjects[_local1][i]];
obj.collect = true;
i++;
}
i = 0;
while (i < levelAnimations[_local1].length) {
obj = levels[levelAnimations[_local1][i]];
obj.animation = true;
i++;
}
i = 0;
while (i < bonusesArray.length) {
obj = levels[bonusesArray[i]];
obj.bonus = true;
i++;
}
placeLevel();
panels.bg.gotoAndPlay("out");
volumeSet(volumeAm);
}
function checkPlayerHits() {
for (i in levels) {
obj = levels[i];
if ((((((obj.popUp != true) && (obj._name != "playerM")) && (obj._name != "levelArea")) && (obj._name != "levelBackground")) && (obj._name != "levelForeground")) && (obj._name != "torchM")) {
if (obj.hitTest(levels.playerM.testBlock)) {
if (levels.playerM.testPointHit(obj) == true) {
if (obj.collect == true) {
collectObject(obj._name);
sack = levels.playerM.animMov.burglarSack.burglarSack;
sack._yscale = (sack._xscale = sack._xscale + 10);
} else if (obj.animation == true) {
animObject(obj._name);
obj.animation = false;
} else if (obj.bonus == true) {
bonusObject(obj._name, obj.bonusType);
obj.bonus = false;
} else if (obj.animation != false) {
levels.playerM.moveOffObject(obj, "player");
}
}
}
}
}
}
function makePopUpDisplay(itemId) {
coords = new Object();
coords.x = levels.playerM._x;
coords.y = levels.playerM._y;
levels.localToGlobal(coords);
popups.popUpDisplay.duplicateMovieClip("popUpDisplay" + collectedObjects.length, 10 + collectedObjects.length);
popUp = popups["popUpDisplay" + collectedObjects.length];
popUp.popUp = true;
popUp.myTitle = itemsArray[itemId].name;
popUp.myPrice = "$" + getObjectTotalPrice(itemId);
popUp._x = coords.x - 100;
popUp._y = coords.y;
}
function changePrices() {
lootPrice = "$" + checkLootPrice();
controls.meters.prices.lootPrice.play();
}
function checkLootPrice() {
totalPrice = 0;
i = 0;
while (i < collectedObjects.length) {
totalPrice = totalPrice + getObjectTotalPrice(collectedObjects[i]);
i++;
}
return(totalPrice);
}
function checkPrices() {
if (displayPrice != totalPrice) {
displayPrice = displayPrice + ((totalPrice - displayPrice) / priceDisplayChangeRate);
}
lootPrice = ("$" + Math.round(displayPrice)) + "*";
}
function getObjectTotalPrice(itemId) {
var _local1 = itemId;
price = 0;
j = 0;
while (j < itemsArray[_local1].items.length) {
price = price + itemsArray[_local1].items[j][1];
j++;
}
return(price);
}
function collectObject(itemId) {
var _local1 = itemId;
levels[_local1].gotoAndPlay("out");
collectedObjects.push(_local1);
makePopUpDisplay(_local1);
changePrices();
if (collectedObjects.length >= levelObjects[currentLevel].length) {
levelEnd("collectedAll");
}
}
function animObject(itemId) {
var _local1 = itemId;
levels[_local1].gotoAndPlay("animate");
if (animationsArray[_local1]) {
volumeRamp(animationsArray[_local1]);
}
}
function bonusObject(itemId, bonusType) {
bonusS.start(0);
if (bonusType == "extraTime") {
levelStartTime.setTime(levelStartTime.getTime() + 5000);
} else {
playerLives++;
setPlayerLivesDisplay();
}
levels[itemId].gotoAndPlay("out");
}
stop();
itemsArray = new Array();
itemsArray.coffeetable = new Array();
itemsArray.coffeetable.name = "Coffee Table";
itemsArray.coffeetable.items = new Array(["Coffee Table", 350], ["Remote Control", 200], ["Magazines", 20]);
itemsArray.xmastree = new Array();
itemsArray.xmastree.name = "Christmas Tree";
itemsArray.xmastree.items = new Array(["Christmas Tree", 300]);
itemsArray.bigrug1 = new Array();
itemsArray.bigrug1.name = "Rug";
itemsArray.bigrug1.items = new Array(["Rug", 150]);
itemsArray.bigrug2 = new Array();
itemsArray.bigrug2.name = "Rug";
itemsArray.bigrug2.items = new Array(["Rug", 150]);
itemsArray.smallrug = new Array();
itemsArray.smallrug.name = "Rug";
itemsArray.smallrug.items = new Array(["Rug", 100]);
itemsArray.computer = new Array();
itemsArray.computer.name = "Computer";
itemsArray.computer.items = new Array(["Computer", 1300]);
itemsArray.computerchair = new Array();
itemsArray.computerchair.name = "Computer Chair";
itemsArray.computerchair.items = new Array(["Computer Chair", 129]);
itemsArray.yogaball = new Array();
itemsArray.yogaball.name = "Yoga Ball";
itemsArray.yogaball.items = new Array(["Yoga Ball", 75]);
itemsArray.welcomemat = new Array();
itemsArray.welcomemat.name = "Welcome Mat";
itemsArray.welcomemat.items = new Array(["Welcome Mat", 70]);
itemsArray.snes = new Array();
itemsArray.snes.name = "Gaming Console";
itemsArray.snes.items = new Array(["Gaming Console", 300]);
itemsArray.potplant1 = new Array();
itemsArray.potplant1.name = "Pot Plant";
itemsArray.potplant1.items = new Array(["Pot Plant", 80]);
itemsArray.potplant2 = new Array();
itemsArray.potplant2.name = "Pot Plant";
itemsArray.potplant2.items = new Array(["Pot Plant", 60]);
itemsArray.potplant3 = new Array();
itemsArray.potplant3.name = "Pot Plant";
itemsArray.potplant3.items = new Array(["Pot Plant", 50]);
itemsArray.vacuum = new Array();
itemsArray.vacuum.name = "Vacuum Cleaner";
itemsArray.vacuum.items = new Array(["Vacuum", 299]);
itemsArray.shoes = new Array();
itemsArray.shoes.name = "Shoes";
itemsArray.shoes.items = new Array(["Shoes", 175]);
itemsArray.bookcase = new Array();
itemsArray.bookcase.name = "Bookcase";
itemsArray.bookcase.items = new Array(["Bookcase", 640]);
itemsArray.decks = new Array();
itemsArray.decks.name = "Sound Equipment";
itemsArray.decks.items = new Array(["Sound Equipment", 400], ["Headphones", 500], ["50 Records", 1000]);
itemsArray.brush = new Array();
itemsArray.brush.name = "Brush";
itemsArray.brush.items = new Array(["Brush", 20]);
itemsArray.fridge = new Array();
itemsArray.fridge.name = "Fridge";
itemsArray.fridge.items = new Array(["Fridge", 1500]);
itemsArray.stove = new Array();
itemsArray.stove.name = "Stove";
itemsArray.stove.items = new Array(["Stove", 1600]);
itemsArray.couchsmall = new Array();
itemsArray.couchsmall.name = "Couch";
itemsArray.couchsmall.items = new Array(["Small Couch", 900]);
itemsArray.couchbig = new Array();
itemsArray.couchbig.name = "Couch";
itemsArray.couchbig.items = new Array(["Big Couch", 1500]);
itemsArray.tv = new Array();
itemsArray.tv.name = "Television";
itemsArray.tv.items = new Array(["TV", 450], ["DVD Player", 90], ["Stereo", 1200]);
itemsArray.chair1 = new Array();
itemsArray.chair1.name = "Chair";
itemsArray.chair1.items = new Array(["Chair", 90]);
itemsArray.chair2 = new Array();
itemsArray.chair2.name = "Chair";
itemsArray.chair2.items = new Array(["Chair", 90]);
itemsArray.chair3 = new Array();
itemsArray.chair3.name = "Chair";
itemsArray.chair3.items = new Array(["Chair", 90]);
itemsArray.chair4 = new Array();
itemsArray.chair4.name = "Chair";
itemsArray.chair4.items = new Array(["Chair", 90]);
itemsArray.table = new Array();
itemsArray.table.name = "Table";
itemsArray.table.items = new Array(["Hairdryer", 50], ["Books", 100]);
itemsArray.bricks = new Array();
itemsArray.bricks.name = "Bricks";
itemsArray.bricks.items = new Array(["Bricks", 100]);
itemsArray.wheelbarrow = new Array();
itemsArray.wheelbarrow.name = "Wheelbarrow";
itemsArray.wheelbarrow.items = new Array(["Wheelbarrow", 100]);
itemsArray.sheditems = new Array();
itemsArray.sheditems.name = "Tools & Equipment";
itemsArray.sheditems.items = new Array(["Tools", 600], ["Edger", 200], ["Paints", 100]);
itemsArray.hammer = new Array();
itemsArray.hammer.name = "Hammer";
itemsArray.hammer.items = new Array(["Hammer", 100]);
itemsArray.drill = new Array();
itemsArray.drill.name = "Drill";
itemsArray.drill.items = new Array(["Drill", 50]);
itemsArray.barbeque = new Array();
itemsArray.barbeque.name = "Barbeque";
itemsArray.barbeque.items = new Array(["Barbeque", 225]);
itemsArray.gardentable = new Array();
itemsArray.gardentable.name = "Garden Table";
itemsArray.gardentable.items = new Array(["Garden Table", 100]);
itemsArray.gardenchair = new Array();
itemsArray.gardenchair.name = "Garden Chair";
itemsArray.gardenchair.items = new Array(["Garden Chair", 150]);
itemsArray.rake = new Array();
itemsArray.rake.name = "Rake";
itemsArray.rake.items = new Array(["Rake", 80]);
itemsArray.pool = new Array();
itemsArray.pool.name = "Pool";
itemsArray.pool.items = new Array(["Pool", 175]);
itemsArray.hose = new Array();
itemsArray.hose.name = "Hose";
itemsArray.hose.items = new Array(["Hose", 55]);
itemsArray.lawnmower = new Array();
itemsArray.lawnmower.name = "Lawn Mower";
itemsArray.lawnmower.items = new Array(["Lawn Mower", 260]);
itemsArray.anglegrinder = new Array();
itemsArray.anglegrinder.name = "Angle Grinder";
itemsArray.anglegrinder.items = new Array(["Angle Grinder", 100]);
itemsArray.bedsidetable = new Array();
itemsArray.bedsidetable.name = "Bedside Table";
itemsArray.bedsidetable.items = new Array(["Bedside Table", 225]);
itemsArray.bed = new Array();
itemsArray.bed.name = "Bed";
itemsArray.bed.items = new Array(["Bed", 1000]);
itemsArray.videocamera = new Array();
itemsArray.videocamera.name = "Video Camera";
itemsArray.videocamera.items = new Array(["Video Camera", 3500]);
itemsArray.rugblue = new Array();
itemsArray.rugblue.name = "Blue Rug";
itemsArray.rugblue.items = new Array(["Blue Rug", 200]);
itemsArray.rudolf = new Array();
itemsArray.rudolf.name = "Moose Head";
itemsArray.rudolf.items = new Array(["Moose Head", 200]);
itemsArray.safe = new Array();
itemsArray.safe.name = "Safe";
itemsArray.safe.items = new Array(["Safe", 299]);
itemsArray.cabinet1 = new Array();
itemsArray.cabinet1.name = "Cabinet";
itemsArray.cabinet1.items = new Array(["Cabinet", 200], ["Perfumes", 200], ["Cosmetics", 200], ["Clothes", 200]);
itemsArray.cabinet2 = new Array();
itemsArray.cabinet2.name = "Cabinet";
itemsArray.cabinet2.items = new Array(["Cabinet", 200], ["Camera", 200], ["Watch", 200]);
itemsArray.plasma = new Array();
itemsArray.plasma.name = "Plasma Screen";
itemsArray.plasma.items = new Array(["Plasma Screen", 3500]);
itemsArray.toiletroll = new Array();
itemsArray.toiletroll.name = "Toilet Fittings";
itemsArray.toiletroll.items = new Array(["Toilet Fittings", 200]);
itemsArray.toiletmat = new Array();
itemsArray.toiletmat.name = "Toilet Mat";
itemsArray.toiletmat.items = new Array(["Toilet Mat", 25]);
itemsArray.toiletbrush = new Array();
itemsArray.toiletbrush.name = "Toilet Brush";
itemsArray.toiletbrush.items = new Array(["Toilet Brush", 15]);
itemsArray.bathroomrug = new Array();
itemsArray.bathroomrug.name = "Bathroom Rug";
itemsArray.bathroomrug.items = new Array(["Bathroom Rug", 12]);
itemsArray.towels1 = new Array();
itemsArray.towels1.name = "Towels";
itemsArray.towels1.items = new Array(["Towels", 50]);
itemsArray.towels2 = new Array();
itemsArray.towels2.name = "Towels";
itemsArray.towels2.items = new Array(["Towels", 50]);
itemsArray.washingmachine = new Array();
itemsArray.washingmachine.name = "Washing Machine";
itemsArray.washingmachine.items = new Array(["Washing Machine", 600]);
itemsArray.dryer = new Array();
itemsArray.dryer.name = "Dryer";
itemsArray.dryer.items = new Array(["Dryer", 400]);
itemsArray.bin = new Array();
itemsArray.bin.name = "Bin";
itemsArray.bin.items = new Array(["Bin", 150]);
itemsArray.hairdryer = new Array();
itemsArray.hairdryer.name = "Hairdryer";
itemsArray.hairdryer.items = new Array(["Hairdryer", 70]);
itemsArray.potplantsmall = new Array();
itemsArray.potplantsmall.name = "Pot Plant";
itemsArray.potplantsmall.items = new Array(["Pot Plant", 100]);
animationsArray = new Array();
animationsArray.horn = 10;
animationsArray.kennel = 20;
animationsArray.possum = 3;
animationsArray.decoration = 2;
animationsArray.turd = 2;
animationsArray.rustynail = 8;
animationsArray.toilet = 12;
levelObjects = new Array();
levelAnimations = new Array();
levelObjects[0] = new Array("coffeetable", "xmastree", "bigrug1", "bigrug2", "smallrug", "computer", "computerchair", "yogaball", "welcomemat", "snes", "potplant1", "potplant2", "potplant3", "vacuum", "shoes", "bookcase", "decks", "brush", "fridge", "stove", "couchsmall", "couchbig", "tv", "chair1", "chair2", "chair3", "chair4", "table");
levelAnimations[0] = new Array("decoration");
levelObjects[1] = new Array("bricks", "wheelbarrow", "sheditems", "hammer", "drill", "barbeque", "gardentable", "gardenchair", "rake", "pool", "hose", "lawnmower", "anglegrinder");
levelAnimations[1] = new Array("horn", "kennel", "turd", "possum", "rustynail");
levelObjects[2] = new Array("bedsidetable", "bed", "videocamera", "rugblue", "rudolf", "safe", "cabinet1", "cabinet2", "plasma", "toiletroll", "toiletmat", "toiletbrush", "bathroomrug", "towels1", "washingmachine", "dryer", "bin", "potplantsmall", "hairdryer", "towels2");
levelAnimations[2] = new Array("toilet");
genSound = new Sound();
soundAr = new Array("snore1", "snore2", "snore3", "bonus", "alarm", "ticktock", "playGame", "butRollOver", "butClick", "loudFootStep", "pickUp");
i = 0;
while (i < soundAr.length) {
_root[soundAr[i] + "S"] = new Sound();
_root[soundAr[i] + "S"].attachSound(soundAr[i]);
i++;
}
levelTimes = new Array();
levelTimes[0] = 80000 /* 0x013880 */;
levelTimes[1] = 80000 /* 0x013880 */;
levelTimes[2] = 60000;
levelDesc = new Array();
levelDesc[0] = "Lounge & Kitchen";
levelDesc[1] = "Back Yard";
levelDesc[2] = "Bedroom & Bathroom";
levelTimerBottomsOut = 10;
minPercInsurance = 50;
maxPercInsurance = 90;
levelPercInsuranceBottomsOut = 10;
noiseUpRate = 0.5;
noiseDownRate = 0.4;
volumeDisplayChangeRate = 5;
priceDisplayChangeRate = 10;
interLevelMessageCount = random(3) + 1;
playerLives = 3;
fontFormat1 = fontRef1.getTextFormat();
percChanceBonus = 90;
maxLevel = 2;
brand = (((brand != "sgio") && (brand != "sgic")) ? "nrma" : (brand));
customerLink = ("http://www." + brand) + ".com.au/insurance";
CID = ("au_" + ((brand == "nrma") ? "nrmagi" : (brand))) + "_0";
trackingBrand = ((brand == "nrma") ? "iag" : (brand));
var playerControl = new Object();
AsBroadcaster.initialize(playerControl);
var objectControl = new Object();
AsBroadcaster.initialize(objectControl);
loadInt = setInterval(preloader, 10);
commonInt = setInterval(commonLoop, 10);
Frame 2
Symbol 34 MovieClip Frame 1
Symbol 38 MovieClip [playerMov] Frame 1
#initclip 2
Object.registerClass("playerMov", player);
#endinitclip
stop();
Symbol 41 Button
on (release) {
nextFrame();
}
Symbol 43 Button
on (release) {
prevFrame();
}
Symbol 44 MovieClip Frame 1
_root.volumeSet(100);
stop();
Symbol 44 MovieClip Frame 2
_root.volumeSet(0);
stop();
Symbol 55 MovieClip Frame 1
stop();
Symbol 63 MovieClip Frame 1
stop();
Symbol 63 MovieClip Frame 17
_parent.homePanel();
Symbol 63 MovieClip Frame 29
stop();
Symbol 687 MovieClip [__Packages.player] Frame 0
class player extends MovieClip
{
var footStepSound, _x, _y, _rotation;
function player () {
super();
_root.playerControl.addListener(this);
footStepSound = new Sound();
}
function placeInit() {
_x = _root.levels.initPlace._x;
_y = _root.levels.initPlace._y;
}
function movePlayer() {
var _local2 = this;
var _local1;
var savedAngle;
var _local3;
var moveAdj;
var xmove;
var ymove;
_local2.checkSpeed();
_local2.checkRotation();
_local2.checkSneak();
_local1 = (savedAngle = getRealAngle(_local2._rotation));
if (_local1 >= 270) {
_local1 = _local1 - 270;
} else if (_local1 >= 180) {
_local1 = 270 - _local1;
} else if (_local1 >= 90) {
_local1 = _local1 - 90;
} else {
_local1 = 90 - _local1;
}
_local3 = Math.sin(toRadians(_local1)) * _local2.speed;
moveAdj = Math.cos(toRadians(_local1)) * _local2.speed;
if (savedAngle >= 270) {
xmove = -moveAdj;
ymove = -_local3;
} else if (savedAngle >= 180) {
xmove = -moveAdj;
ymove = _local3;
} else if (savedAngle >= 90) {
xmove = moveAdj;
ymove = _local3;
} else {
xmove = moveAdj;
ymove = -_local3;
}
_local2._x = _local2._x + xmove;
_local2._y = _local2._y + ymove;
checkSideHit();
}
function checkSpeed() {
var _local1 = this;
var _local2;
var _local3;
var cf;
var tf;
var sp;
if (_local1.speed > 0) {
_local1.speed = _local1.speed - speedSlowDownRate;
}
if (_local1.speed < 0) {
_local1.speed = _local1.speed + speedSlowDownRate;
}
keyUpOn = Key.isDown(38);
keyDownOn = Key.isDown(40);
keyLeftOn = Key.isDown(37);
keyRightOn = Key.isDown(39);
if (((keyUpOn == true) && (keyRightOn == false)) && (keyLeftOn == false)) {
_local1._rotation = 0;
} else if (((keyRightOn == true) && (keyUpOn == false)) && (keyDownOn == false)) {
_local1._rotation = 90;
} else if (((keyDownOn == true) && (keyRightOn == false)) && (keyLeftOn == false)) {
_local1._rotation = 180;
} else if (((keyLeftOn == true) && (keyDownOn == false)) && (keyUpOn == false)) {
_local1._rotation = 270;
} else if ((keyUpOn == true) && (keyRightOn == true)) {
_local1._rotation = 45;
} else if ((keyUpOn == true) && (keyLeftOn == true)) {
_local1._rotation = 315;
} else if ((keyDownOn == true) && (keyRightOn == true)) {
_local1._rotation = 135;
} else if ((keyDownOn == true) && (keyLeftOn == true)) {
_local1._rotation = 225;
} else {
_local1.isNoisy = false;
_local1.speed = _local1.speed - speedUpRate;
}
if ((((keyUpOn == true) || (keyDownOn == true)) || (keyRightOn == true)) || (keyLeftOn == true)) {
_local1.isNoisy = true;
_local1.speed = _local1.speed + speedUpRate;
}
_root.controls.buttonsMov.keyPressUp.gotoAndStop(((keyUpOn == true) ? 2 : 1));
_root.controls.buttonsMov.keyPressLeft.gotoAndStop(((keyLeftOn == true) ? 2 : 1));
_root.controls.buttonsMov.keyPressRight.gotoAndStop(((keyRightOn == true) ? 2 : 1));
_root.controls.buttonsMov.keyPressDown.gotoAndStop(((keyDownOn == true) ? 2 : 1));
if (_local1.sneakingOn == true) {
_local1.isNoisy = false;
}
if (_local1.sneakingOn == true) {
if (_local1.speed > maxSneakSpeed) {
_local1.speed = maxSneakSpeed;
}
} else if (_local1.speed > maxSpeed) {
_local1.speed = maxSpeed;
}
if (_local1.speed < minSpeed) {
_local1.speed = minSpeed;
}
cf = _local1.animMov._currentframe;
tf = _local1.animMov._totalframes;
sp = Math.round(_local1.speed);
_local2 = 0;
if (sp > maxSneakSpeed) {
_local2 = 2;
} else if (sp > 0) {
_local2 = 1;
}
if ((cf + _local2) > tf) {
_local3 = _local2;
} else {
_local3 = cf + _local2;
}
_local1.animMov.gotoAndStop(_local3);
}
function checkRotation() {
if (Key.isDown(39)) {
_rotation = _rotation + rotationRate;
}
if (Key.isDown(37)) {
_rotation = _rotation - rotationRate;
}
}
function checkSneak() {
var _local1 = _root;
var _local2 = this;
if (Key.isDown(17)) {
_local2.sneakingOn = true;
if (_local1.volumeAm != 0) {
_local2.footStepSound.setVolume(50);
}
_local1.controls.buttonsMov.keyPressControl.gotoAndStop(2);
_local1.controls.sneakoption.gotoAndStop(2);
} else {
_local2.sneakingOn = false;
if (_local1.volumeAm != 0) {
_local2.footStepSound.setVolume(100);
}
_local1.controls.buttonsMov.keyPressControl.gotoAndStop(1);
_local1.controls.sneakoption.gotoAndStop(1);
}
}
function moveOffObject(obj, bounceType) {
var _local2 = this;
var _local3 = obj;
var xDiff;
var yDiff;
var hitting = true;
var _local1 = 2;
var i;
var testPoints;
hitting = _local2.testPointHit(_local3);
if (hitting == true) {
_local2.speed = 0;
}
while (hitting == true) {
xDiff = _local3._x - _local2._x;
yDiff = _local3._y - _local2._y;
if ((bounceType == "both") || (bounceType == "player")) {
_local2._x = _local2._x + ((xDiff < 0) ? (_local1) : (-_local1));
_local2._y = _local2._y + ((yDiff < 0) ? (_local1) : (-_local1));
}
if ((bounceType == "both") || (bounceType == "object")) {
_local3._x = _local3._x + ((xDiff < 0) ? (-_local1) : (_local1));
_local3._y = _local3._y + ((yDiff < 0) ? (-_local1) : (_local1));
}
hitting = _local2.testPointHit(_local3);
}
}
function testPointHit(obj) {
var _local1 = this;
var _local2 = obj;
i = 1;
while (i < 7) {
testPoints = new Object();
testPoints.x = _local1["hitTester" + i]._x;
testPoints.y = _local1["hitTester" + i]._y;
_local1.localToGlobal(testPoints);
if (_local2.hitTest(testPoints.x, testPoints.y, true)) {
hitting = true;
return(true);
}
i++;
}
return(false);
}
static var maxSpeed = 9;
static var minSpeed = 0;
static var maxSneakSpeed = 2;
static var speedSlowDownRate = 0.1;
static var speedUpRate = 1.7;
var speed = 0;
var sneakingOn = false;
var isNoisy = false;
}
Symbol 75 MovieClip Frame 1
stop();
Symbol 75 MovieClip Frame 3
this.swapDepths(3);
removeMovieClip(this);
stop();
Symbol 77 MovieClip Frame 1
stop();
Symbol 77 MovieClip Frame 3
this.swapDepths(3);
removeMovieClip(this);
stop();
Symbol 79 MovieClip Frame 1
stop();
Symbol 79 MovieClip Frame 3
this.swapDepths(3);
removeMovieClip(this);
stop();
Symbol 81 MovieClip Frame 1
stop();
Symbol 81 MovieClip Frame 3
this.swapDepths(3);
removeMovieClip(this);
stop();
Symbol 87 MovieClip Frame 1
stop();
Symbol 87 MovieClip Frame 3
this.swapDepths(3);
removeMovieClip(this);
stop();
Symbol 89 MovieClip Frame 1
stop();
Symbol 89 MovieClip Frame 3
this.swapDepths(3);
removeMovieClip(this);
stop();
Symbol 91 MovieClip Frame 1
stop();
Symbol 91 MovieClip Frame 3
this.swapDepths(3);
removeMovieClip(this);
stop();
Symbol 99 MovieClip Frame 1
stop();
Symbol 99 MovieClip Frame 3
this.swapDepths(3);
removeMovieClip(this);
stop();
Symbol 101 MovieClip Frame 1
stop();
Symbol 101 MovieClip Frame 3
this.swapDepths(3);
removeMovieClip(this);
stop();
Symbol 103 MovieClip Frame 1
stop();
Symbol 103 MovieClip Frame 3
this.swapDepths(3);
removeMovieClip(this);
stop();
Symbol 105 MovieClip Frame 1
stop();
Symbol 105 MovieClip Frame 3
this.swapDepths(3);
removeMovieClip(this);
stop();
Symbol 107 MovieClip Frame 1
stop();
Symbol 107 MovieClip Frame 3
this.swapDepths(3);
removeMovieClip(this);
stop();
Symbol 109 MovieClip Frame 1
stop();
Symbol 109 MovieClip Frame 3
this.swapDepths(3);
removeMovieClip(this);
stop();
Symbol 111 MovieClip Frame 1
stop();
Symbol 111 MovieClip Frame 3
this.swapDepths(3);
removeMovieClip(this);
stop();
Symbol 113 MovieClip Frame 1
stop();
Symbol 113 MovieClip Frame 3
this.swapDepths(3);
removeMovieClip(this);
stop();
Symbol 115 MovieClip Frame 1
stop();
Symbol 115 MovieClip Frame 3
this.swapDepths(3);
removeMovieClip(this);
stop();
Symbol 117 MovieClip Frame 1
stop();
Symbol 117 MovieClip Frame 3
this.swapDepths(3);
removeMovieClip(this);
stop();
Symbol 125 MovieClip Frame 1
stop();
Symbol 125 MovieClip Frame 3
this.swapDepths(3);
removeMovieClip(this);
stop();
Symbol 127 MovieClip Frame 1
stop();
Symbol 127 MovieClip Frame 3
this.swapDepths(3);
removeMovieClip(this);
stop();
Symbol 129 MovieClip Frame 1
stop();
Symbol 129 MovieClip Frame 3
this.swapDepths(3);
removeMovieClip(this);
stop();
Symbol 131 MovieClip Frame 1
stop();
Symbol 131 MovieClip Frame 3
this.swapDepths(3);
removeMovieClip(this);
stop();
Symbol 133 MovieClip Frame 1
stop();
Symbol 133 MovieClip Frame 3
this.swapDepths(3);
removeMovieClip(this);
stop();
Symbol 144 MovieClip Frame 1
stop();
Symbol 144 MovieClip Frame 4
this.swapDepths(3);
removeMovieClip(this);
stop();
Symbol 161 MovieClip Frame 1
stop();
Symbol 161 MovieClip Frame 3
this.swapDepths(3);
removeMovieClip(this);
stop();
Symbol 164 MovieClip Frame 1
stop();
Symbol 164 MovieClip Frame 3
this.swapDepths(3);
removeMovieClip(this);
stop();
Symbol 166 MovieClip Frame 1
stop();
Symbol 166 MovieClip Frame 3
this.swapDepths(3);
removeMovieClip(this);
stop();
Symbol 172 MovieClip Frame 1
stop();
Symbol 172 MovieClip Frame 3
this.swapDepths(3);
removeMovieClip(this);
stop();
Symbol 178 MovieClip Frame 1
stop();
Symbol 178 MovieClip Frame 3
this.swapDepths(3);
removeMovieClip(this);
stop();
Symbol 180 MovieClip Frame 1
stop();
Symbol 180 MovieClip Frame 3
this.swapDepths(3);
removeMovieClip(this);
stop();
Symbol 184 MovieClip Frame 1
stop();
Symbol 184 MovieClip Frame 3
this.swapDepths(3);
removeMovieClip(this);
stop();
Symbol 186 MovieClip Frame 1
stop();
Symbol 186 MovieClip Frame 3
this.swapDepths(3);
removeMovieClip(this);
stop();
Symbol 188 MovieClip Frame 1
stop();
Symbol 188 MovieClip Frame 3
this.swapDepths(3);
removeMovieClip(this);
stop();
Symbol 190 MovieClip Frame 1
stop();
Symbol 190 MovieClip Frame 3
this.swapDepths(3);
removeMovieClip(this);
stop();
Symbol 192 MovieClip Frame 1
stop();
Symbol 192 MovieClip Frame 3
this.swapDepths(3);
removeMovieClip(this);
stop();
Symbol 194 MovieClip Frame 1
stop();
Symbol 194 MovieClip Frame 3
this.swapDepths(3);
removeMovieClip(this);
stop();
Symbol 198 MovieClip Frame 1
stop();
Symbol 198 MovieClip Frame 3
this.swapDepths(3);
removeMovieClip(this);
stop();
Symbol 205 MovieClip Frame 1
stop();
Symbol 205 MovieClip Frame 9
stop();
Symbol 212 MovieClip Frame 1
stop();
Symbol 212 MovieClip Frame 2
stop();
Symbol 222 MovieClip Frame 1
if (_name == "popUpDisplay") {
stop();
}
Symbol 222 MovieClip Frame 2
_root.pickUpS.start();
Symbol 222 MovieClip Frame 24
removeMovieClip(this);
Symbol 240 MovieClip Frame 1
stop();
Symbol 240 MovieClip Frame 3
this.swapDepths(3);
removeMovieClip(this);
stop();
Symbol 242 MovieClip Frame 1
stop();
Symbol 242 MovieClip Frame 3
this.swapDepths(3);
removeMovieClip(this);
stop();
Symbol 244 MovieClip Frame 1
stop();
Symbol 244 MovieClip Frame 3
this.swapDepths(3);
removeMovieClip(this);
stop();
Symbol 246 MovieClip Frame 1
stop();
Symbol 246 MovieClip Frame 3
this.swapDepths(3);
removeMovieClip(this);
stop();
Symbol 248 MovieClip Frame 1
stop();
Symbol 248 MovieClip Frame 3
this.swapDepths(3);
removeMovieClip(this);
stop();
Symbol 250 MovieClip Frame 1
stop();
Symbol 250 MovieClip Frame 3
this.swapDepths(3);
removeMovieClip(this);
stop();
Symbol 252 MovieClip Frame 1
stop();
Symbol 252 MovieClip Frame 3
this.swapDepths(3);
removeMovieClip(this);
stop();
Symbol 254 MovieClip Frame 1
stop();
Symbol 254 MovieClip Frame 3
this.swapDepths(3);
removeMovieClip(this);
stop();
Symbol 256 MovieClip Frame 1
stop();
Symbol 256 MovieClip Frame 3
this.swapDepths(3);
removeMovieClip(this);
stop();
Symbol 258 MovieClip Frame 1
stop();
Symbol 258 MovieClip Frame 3
this.swapDepths(3);
removeMovieClip(this);
stop();
Symbol 260 MovieClip Frame 1
stop();
Symbol 260 MovieClip Frame 3
this.swapDepths(3);
removeMovieClip(this);
stop();
Symbol 262 MovieClip Frame 1
stop();
Symbol 262 MovieClip Frame 3
this.swapDepths(3);
removeMovieClip(this);
stop();
Symbol 264 MovieClip Frame 1
stop();
Symbol 264 MovieClip Frame 3
this.swapDepths(3);
removeMovieClip(this);
stop();
Symbol 266 MovieClip Frame 1
stop();
Symbol 266 MovieClip Frame 3
this.swapDepths(3);
removeMovieClip(this);
stop();
Symbol 268 MovieClip Frame 1
stop();
Symbol 268 MovieClip Frame 3
this.swapDepths(3);
removeMovieClip(this);
stop();
Symbol 270 MovieClip Frame 1
stop();
Symbol 270 MovieClip Frame 3
this.swapDepths(3);
removeMovieClip(this);
stop();
Symbol 272 MovieClip Frame 1
stop();
Symbol 272 MovieClip Frame 3
this.swapDepths(3);
removeMovieClip(this);
stop();
Symbol 274 MovieClip Frame 1
stop();
Symbol 274 MovieClip Frame 3
this.swapDepths(3);
removeMovieClip(this);
stop();
Symbol 276 MovieClip Frame 1
stop();
Symbol 276 MovieClip Frame 3
this.swapDepths(3);
removeMovieClip(this);
stop();
Symbol 279 MovieClip Frame 1
removeMovieClip(levelForeground);
stop();
Symbol 279 MovieClip Frame 2
levelForeground.swapDepths(5);
Symbol 279 MovieClip Frame 3
removeMovieClip(levelForeground);
Symbol 284 MovieClip Frame 1
stop();
Symbol 290 MovieClip Frame 1
stop();
Symbol 295 MovieClip Frame 1
stop();
Symbol 297 MovieClip Frame 1
stop();
Symbol 299 MovieClip Frame 1
stop();
Symbol 301 MovieClip Frame 1
stop();
Symbol 309 MovieClip Frame 1
gotoAndStop(_root.playerLives);
Symbol 309 MovieClip Frame 2
trace("2");
stop();
Symbol 309 MovieClip Frame 3
stop();
Symbol 319 MovieClip Frame 1
stop();
Symbol 319 MovieClip Frame 10
gotoAndPlay (2);
Symbol 321 MovieClip Frame 1
stop();
Symbol 332 MovieClip Frame 1
stop();
Symbol 349 MovieClip Frame 1
stop();
Symbol 352 MovieClip Frame 1
if (_root.showControls != true) {
gotoAndStop ("outwait");
}
Symbol 352 MovieClip Frame 10
if (_root.showControls == true) {
gotoAndStop ("inwait");
}
Symbol 352 MovieClip Frame 19
if (_root.showControls != true) {
gotoAndStop ("outwait");
}
Symbol 356 Button
on (release) {
getURL (_root.customerLink, "_blank");
}
Symbol 359 MovieClip Frame 1
gotoAndStop(_root.brand);
Symbol 359 MovieClip Frame 2
stop();
Symbol 378 MovieClip Frame 1
stop();
Symbol 379 MovieClip Frame 1
speechCount = 0;
speechMax = 4;
Symbol 379 MovieClip Frame 26
speechCount++;
if (speechCount > speechMax) {
speechCount = 1;
}
speechbubble.gotoAndStop(speechCount);
Symbol 379 MovieClip Frame 55
gotoAndPlay (2);
Symbol 387 MovieClip Frame 5
stop();
Symbol 388 MovieClip Frame 5
stop();
Symbol 389 Button
on (release) {
_root.gameOn = false;
_root.panels.nextAction = "instructions";
_root.panels.play();
}
Symbol 392 MovieClip Frame 5
stop();
Symbol 393 MovieClip Frame 5
stop();
Symbol 394 Button
on (release) {
_root.gameOn = false;
_root.panels.nextAction = "sendToAFriend";
_root.panels.play();
}
Symbol 397 MovieClip Frame 5
stop();
Symbol 398 MovieClip Frame 5
stop();
Symbol 399 Button
on (release) {
_root.gameOn = false;
_root.homePanel();
}
Symbol 401 MovieClip Frame 1
if (_root.showTopbar != true) {
gotoAndStop ("outwait");
}
Symbol 401 MovieClip Frame 10
if (_root.showTopbar == true) {
gotoAndStop ("inwait");
}
Symbol 401 MovieClip Frame 19
if (_root.showTopbar != true) {
gotoAndStop ("outwait");
}
Symbol 405 MovieClip Frame 1
stop();
Symbol 405 MovieClip Frame 11
stop();
Symbol 414 Button
on (release) {
nextAction = "gameOver";
play();
}
Symbol 462 MovieClip Frame 1
stop();
Symbol 464 MovieClip Frame 1
function goSpeech() {
if (burglarSpeechCount < burglarSpeechMax) {
speechBubble.burglarSpeech.gotoAndStop(burglarSpeechCount + 1);
} else {
burglarSpeechCount = 1;
}
burglarSpeechCount++;
}
burglarSpeechMax = 6;
burglarSpeechCount = 1;
trace("burglarSpeechMax " + burglarSpeechMax);
Symbol 464 MovieClip Frame 31
goSpeech();
Symbol 464 MovieClip Frame 156
gotoAndPlay (2);
Symbol 467 MovieClip Frame 6
stop();
Symbol 468 MovieClip Frame 6
stop();
Symbol 470 Button
on (release) {
nextAction = "playgame";
play();
}
Symbol 471 Button
on (release) {
_root.startGame();
_root.controls.gotoAndPlay("in");
_root.butClickS.start(0);
play();
}
on (rollOver) {
_root.butRollOverS.start(0);
}
Symbol 472 Button
on (release) {
nextAction = "sendToAFriend";
play();
}
Symbol 473 Button
on (release) {
nextAction = "instructions";
play();
}
Symbol 474 Button
on (release) {
nextAction = "sendToAFriend";
_root.butClickS.start(0);
play();
}
on (rollOver) {
_root.butRollOverS.start(0);
}
Symbol 475 Button
on (release) {
nextAction = "instructions";
_root.butClickS.start(0);
play();
}
on (rollOver) {
_root.butRollOverS.start(0);
}
Symbol 476 Button
on (release) {
nextAction = "instructions";
_root.butClickS.start(0);
play();
}
on (rollOver) {
_root.butRollOverS.start(0);
}
Symbol 482 MovieClip Frame 39
stop();
Symbol 505 MovieClip Frame 5
stop();
Symbol 509 MovieClip Frame 7
stop();
Symbol 510 MovieClip Frame 5
stop();
Symbol 514 MovieClip Frame 5
stop();
Symbol 518 MovieClip Frame 5
stop();
Symbol 519 Button
on (release) {
_parent.nextAction = "homePanel";
_parent.play();
}
Symbol 520 Button
on (release) {
valid = _root.validateForm();
_root.butClickS.start(0);
if (valid == true) {
_root.sendFriend();
nextAction = "sendAnother";
play();
}
}
on (rollOver) {
_root.butRollOverS.start(0);
}
Symbol 521 Button
on (release) {
nextAction = "homePanel";
_root.butClickS.start(0);
play();
}
on (rollOver) {
_root.butRollOverS.start(0);
}
Symbol 527 MovieClip Frame 1
stop();
Symbol 529 MovieClip Frame 1
if (_parent.valid == true) {
stop();
}
Symbol 529 MovieClip Frame 2
stop();
Symbol 532 MovieClip Frame 5
stop();
Symbol 534 MovieClip Frame 7
stop();
Symbol 535 MovieClip Frame 5
stop();
Symbol 536 Button
on (release) {
nextAction = "sendToAFriend";
_root.butClickS.start(0);
play();
}
on (rollOver) {
_root.butRollOverS.start(0);
}
Symbol 539 MovieClip Frame 5
stop();
Symbol 540 MovieClip Frame 5
stop();
Symbol 541 Button
on (release) {
nextAction = "homePanel";
_root.butClickS.start(0);
play();
}
on (rollOver) {
_root.butRollOverS.start(0);
}
Symbol 560 Button
on (release) {
_root.trackIt("calculator");
getURL (((("http://www." + _root.brand) + ".com.au/pub/") + _root.brand) + "/home/calculator/content/index.shtml", "_blank");
}
Symbol 584 MovieClip Frame 1
alarmon = false;
Symbol 584 MovieClip Frame 33
if (alarmon == true) {
gotoAndPlay ("quick");
} else {
gotoAndPlay (2);
}
Symbol 586 MovieClip Frame 1
gotoAndStop(_root.interLevelMessageCount);
Symbol 586 MovieClip Frame 3
topLine = _root.brand.toUpperCase() + " Home Security Alarm";
Symbol 588 Button
on (release) {
_root.scrollerArrow("up");
}
Symbol 596 Button
on (press) {
startDrag (this, false, this._x, _root.minScroll, this._x, _root.maxScroll);
_root.scrollerDown = true;
}
on (release, releaseOutside) {
_root.scrollerDown = false;
stopDrag();
}
Symbol 597 MovieClip Frame 1
stop();
Symbol 597 MovieClip Frame 2
stop();
Symbol 598 Button
on (release) {
_root.scrollerArrow("down");
}
Symbol 602 MovieClip Frame 1
_root.makeStolenItemsList();
Symbol 605 MovieClip Frame 5
stop();
Symbol 606 MovieClip Frame 5
stop();
Symbol 607 Button
on (release) {
_parent.nextAction = "nextLevel";
_root.butClickS.start(0);
_parent.play();
}
on (rollOver) {
_root.butRollOverS.start(0);
}
Symbol 610 MovieClip Frame 5
stop();
Symbol 611 MovieClip Frame 5
stop();
Symbol 612 Button
on (release) {
_parent.nextAction = "nextLevel";
_parent.play();
}
Symbol 613 MovieClip Frame 1
if (_root.gotoNewLevel == true) {
stop();
} else {
gotoAndStop ("tryagain");
}
Symbol 613 MovieClip Frame 2
stop();
Symbol 639 MovieClip Frame 1
gotoAndStop(_parent.gameOverTitle);
Symbol 661 MovieClip Frame 5
stop();
Symbol 662 MovieClip Frame 5
stop();
Symbol 664 Button
on (release) {
_parent.nextAction = "homePanel";
_root.butClickS.start(0);
_parent.play();
}
on (rollOver) {
_root.butRollOverS.start(0);
}
Symbol 675 MovieClip Frame 1
if (_root.checkGameOver() != true) {
stop();
}
Symbol 675 MovieClip Frame 2
_root.setFinishScreenVars();
stop();
Symbol 679 MovieClip Frame 1
if (_root.checkGameOver() != true) {
stop();
}
Symbol 679 MovieClip Frame 2
stop();
Symbol 682 MovieClip Frame 5
stop();
Symbol 683 MovieClip Frame 5
stop();
Symbol 684 Button
on (release) {
_root.butClickS.start(0);
_parent.play();
}
on (rollOver) {
_root.butRollOverS.start(0);
}
Symbol 686 MovieClip Frame 2
if ((nextAction == "") || (nextAction == undefined)) {
gotoAndStop ("wait");
hider._visible = true;
} else {
gotoAndPlay(nextAction);
nextAction = "";
hider._visible = false;
}
Symbol 686 MovieClip Frame 4
bg.gotoAndStop("in");
_root.showControls = false;
_root.showTopbar = false;
_root.controls.play();
_root.topbar.play();
Symbol 686 MovieClip Frame 156
stop();
Symbol 686 MovieClip Frame 199
gotoAndPlay ("decide");
Symbol 686 MovieClip Frame 221
bg.gotoAndStop("in");
_root.showControls = false;
_root.showTopbar = true;
_root.controls.play();
_root.topbar.play();
Symbol 686 MovieClip Frame 286
senderNameT.tabIndex = 1;
senderEmailT.tabIndex = 2;
recipNameT.tabIndex = 3;
recipEmailT.tabIndex = 4;
valid = false;
stop();
Symbol 686 MovieClip Frame 311
lettersAll.gotoAndPlay(1);
Symbol 686 MovieClip Frame 339
gotoAndPlay ("decide");
Symbol 686 MovieClip Frame 342
stop();
Symbol 686 MovieClip Frame 343
gotoAndPlay ("decide");
Symbol 686 MovieClip Frame 373
levelDisplay = "Level " + (_root.currentLevel + 1);
paraDisplay = ("These rooms are insured for " + _root.levelInsuredDisplayPrice) + ".\n\n";
paraDisplay = paraDisplay + "You need to collect at least this amount in loot ";
if (_root.currentLevel < 2) {
paraDisplay = paraDisplay + "before you can move to the next level.\n\n";
} else {
paraDisplay = paraDisplay + "to finish the game.\n\n";
}
paraDisplay = paraDisplay + "Keep an eye on the time, and be careful not to wake the owner!";
Symbol 686 MovieClip Frame 465
_root.startNewLevel(_root.currentLevel);
nextAction = "";
gotoAndPlay ("decide");
Symbol 686 MovieClip Frame 469
bg.gotoAndStop("in");
_root.showControls = false;
_root.showTopbar = true;
_root.controls.play();
_root.topbar.play();
Symbol 686 MovieClip Frame 512
stop();
Symbol 686 MovieClip Frame 529
if (nextAction == "nextLevel") {
_root.newLevel();
nextAction = "levelStart";
}
gotoAndPlay ("decide");
Symbol 686 MovieClip Frame 534
bg.gotoAndStop("in");
_root.showControls = false;
_root.showTopbar = false;
_root.controls.play();
_root.topbar.play();
Symbol 686 MovieClip Frame 674
if (_root.checkGameOver() == true) {
nextAction = "gameOver";
} else {
_root.newLevel();
}
gotoAndPlay ("decide");
Symbol 686 MovieClip Frame 675
_root.trackIt("instructions");
bg.gotoAndStop("in");
_root.showControls = false;
_root.showTopbar = true;
_root.controls.play();
_root.topbar.play();
Symbol 686 MovieClip Frame 709
stop();
Symbol 686 MovieClip Frame 730
gotoAndPlay ("decide");
Symbol 686 MovieClip Frame 734
_root.trackIt("finishedgame");
bg.gotoAndStop("in");
_root.showControls = false;
_root.showTopbar = true;
_root.controls.play();
_root.topbar.play();
Symbol 686 MovieClip Frame 764
trace(_root.fullInsuredScoreDisplay);
stop();
Symbol 686 MovieClip Frame 781
if ((nextAction != "sendToAFriend") && (nextAction != "instructions")) {
nextAction = "homePanel";
}
gotoAndPlay ("decide");
Symbol 686 MovieClip Frame 804
gotoAndPlay ("decide");