Frame 1
_lockroot = true;
_root.pin = 0;
_root.tvc_media = "664";
_root.createEmptyMovieClip("TVC_mc", 0);
System.security.allowDomain("http://www.viralchart.com");
_root.TVC_mc.loadMovie("http://www.viralchart.com/tvc_tracker.swf");
var globalSound = new Sound(_root);
soundon_mc.onPress = function () {
if (!soundOff) {
globalSound.setVolume(0);
soundOff = true;
skipnext = true;
soundon_mc.gotoAndStop("5");
}
if (soundOff && (!skipnext)) {
globalSound.setVolume(100);
soundOff = false;
soundon_mc.gotoAndStop(1);
}
skipnext = false;
};
function preloadSite() {
var _local4 = _root.getBytesLoaded();
var _local3 = _root.getBytesTotal();
var _local2 = Math.round((_local4 / _local3) * 100);
loadingBar._xscale = _local2;
Whichframe = _local2 / 10;
_root.loader.gotoAndPlay(Whichframe);
_root.percentageLoaded = _local2;
if (Whichframe > 9) {
_root.loader.gotoAndPlay(11);
}
if (_local4 >= _local3) {
clearInterval(loadingCall);
gotoAndPlay ("officemelt");
}
}
stop();
loadingBar._xscale = 1;
var loadingCall = setInterval(preloadSite, 50);
Frame 5
stop();
Frame 40
stop();
Instance of Symbol 356 MovieClip "scene_mc" in Frame 40
/* no clip actions */
Symbol 16 MovieClip Frame 25
this.gotoAndPlay(14);
Symbol 28 Button
on (release) {
getURL ("http://www.tamba.co.uk", _blank);
}
Symbol 40 MovieClip Frame 1
stop();
Symbol 40 MovieClip Frame 5
stop();
Symbol 52 MovieClip Frame 167
_root.gotoAndStop("intro");
Symbol 59 MovieClip Frame 1
function NetServiceProxy(nc, serviceName, client) {
if (nc != null) {
this.nc = nc;
this.serviceName = serviceName;
this.client = client;
}
}
function addScore() {
_root.updating = "UPDATING SCORES PLEASE WAIT";
_root.bt1._visible = false;
_root.bt2._visible = false;
_root.bt3._visible = false;
gameService.updatePoints(updatePoints_responder, strUniqueID, _root.points);
}
trace("***** running NetServices");
load("RecordSet.as");
_global.NetServiceProxyResponder = function (service, methodName) {
this.service = service;
this.methodName = methodName;
};
NetServiceProxyResponder = _global.NetServiceProxyResponder;
NetServiceProxyResponder.prototype.onResult = function (result) {
var _local2 = this.service.client;
result._setParentService(this.service);
var _local3 = this.methodName + "_Result";
if (typeof(_local2[_local3]) == "function") {
_local2[_local3](result);
} else if (typeof(_local2.onResult) == "function") {
_local2.onResult(result);
} else {
NetServices.trace("NetServices", "info", 1, (_local3 + " was received from server: ") + result);
}
};
NetServiceProxyResponder.prototype.onStatus = function (result) {
var _local5 = this.service.client;
var _local6 = this.methodName + "_Status";
if (typeof(_local5[_local6]) == "function") {
_local5[_local6](result);
} else if (typeof(_local5.onStatus) == "function") {
_local5.onStatus(result);
} else if (typeof(_root.onStatus) == "function") {
_root.onStatus(result);
} else if (typeof(_global.System.onStatus) == "function") {
_global.System.onStatus(result);
} else {
NetServices.trace("NetServices", "info", 2, (((_local6 + " was received from server: ") + result.level) + " ") + result.description);
}
};
_global.NetServiceProxy = NetServiceProxy;
Object.registerClass("NetServiceProxy", NetServiceProxy);
NetServiceProxy.prototype._setParentService = function (service) {
this.nc = service.nc;
this.client = service.client;
};
NetServiceProxy.prototype.__resolve = function (methodName) {
var _local3 = function () {
if (this.client != null) {
arguments.unshift(new NetServiceProxyResponder(this, methodName));
} else if (typeof(arguments[0].onResult) != "function") {
NetServices.trace("NetServices", "warning", 3, "There is no defaultResponder, but no responder was given in call to " + methodName);
arguments.unshift(new NetServiceProxyResponder(this, methodName));
}
arguments.unshift((this.serviceName + ".") + methodName);
return(this.nc.call.apply(this.nc, arguments));
};
return(_local3);
};
NetConnection.prototype.getService = function (serviceName, client) {
var _local2 = new NetServiceProxy(this, serviceName, client);
return(_local2);
};
NetConnection.prototype.setCredentials = function (userid, password) {
this.addHeader("Credentials", false, {userid:userid, password:password});
};
NetConnection.prototype.RequestPersistentHeader = function (info) {
this.addHeader(info.name, info.mustUnderstand, info.data);
};
NetConnection.prototype.RequestUrlRewrite = function (urlSuffix) {
this.__urlSuffix = urlSuffix;
if (this.__originalUrl == null) {
this.__originalUrl = this.uri;
}
var _local2 = this.__originalUrl + urlSuffix;
this.connect(_local2);
};
NetConnection.prototype.clone = function () {
var _local2 = new NetConnection();
_local2.connect(((this.__originalUrl == null) ? (this.uri) : (this.__originalUrl)));
if (this.__urlSuffix != null) {
_local2.RequestUrlRewrite(this.__urlSuffix);
}
return(_local2);
};
if (_global.NetServices == null) {
_global.NetServices = new Object();
NetServices = _global.NetServices;
NetServices.gatewayUrl = gatewayUrl;
NetServices.urlSuffix = urlSuffix;
}
NetServices.setDefaultGatewayUrl = function (url) {
NetServices.defaultGatewayUrl = url;
};
NetServices.setGatewayUrl = function (url) {
NetServices.gatewayUrl = url;
};
NetServices.createGatewayConnection = function (url) {
if (url == undefined) {
if (NetServices.isHttpUrl(_root._url)) {
url = NetServices.gatewayUrl;
if (url == undefined) {
url = NetServices.defaultGatewayUrl;
if (url != undefined) {
if (NetServices.isHttpUrl(url)) {
var _local6 = url.indexOf("/", 8);
if (_local6 >= 0) {
url = url.substring(_local6);
}
}
var _local4 = NetServices.getHostUrl();
if (_local4 != null) {
url = _local4 + url;
}
}
}
} else {
url = NetServices.defaultGatewayUrl;
}
}
if (url == undefined) {
NetServices.trace("NetServices", "warning", 4, "createGatewayConnection - gateway url is undefined");
return(null);
}
var _local5 = new NetConnection();
_local5.connect(url);
if (NetServices.urlSuffix != null) {
this.RequestUrlRewrite(NetServices.urlSuffix);
}
return(_local5);
};
NetServices.getHostUrl = function () {
if (!NetServices.isHttpUrl(_root._url)) {
return(null);
}
var _local2 = _root._url.indexOf("/", 8);
if (_local2 < 0) {
return(null);
}
return(_root._url.substring(0, _local2));
};
NetServices.isHttpUrl = function (url) {
return((url.indexOf("http://") == 0) || (url.indexOf("https://") == 0));
};
NetServices.trace = function (who, severity, number, message) {
var _local1 = (((((who + " ") + severity) + " ") + number) + ": ") + message;
trace(_local1);
NetDebug.traceNetServices(who, severity, number, message);
};
NetServices.getVersion = function () {
return(1);
};
strTicketID = s;
intSpinLocked = 0;
_global.strRootURL = "http://www.thedaytheofficemelted.co.uk";
NetServices.setDefaultGatewayUrl(_global.strRootURL + "/gateway.php");
conn = NetServices.createGatewayConnection();
checkTicket_responder = new Object();
checkTicket_responder.onResult = function (arrUserInfo) {
_level0.currentPoints = arrUserInfo.points * 1;
strUniqueID = arrUserInfo.uniqueid;
strName = arrUserInfo.fullname;
};
updatePoints_responder = new Object();
updatePoints_responder.onResult = function () {
_root.updating = "";
_root.bt1._visible = true;
_root.bt2._visible = true;
_root.bt3._visible = true;
_root.dbstatus.text = "DB Updated!";
};
gameService = conn.getService("services");
gameService.checkTicket(checkTicket_responder, strTicketID);
stop();
Symbol 65 Button
on (release) {
gotoAndStop ("intro1");
}
Symbol 70 Button
on (release) {
gotoAndStop ("instructions");
}
Symbol 77 Button
on (release) {
getURL ("http://www.rapidheatbusters.com", "_blank");
}
Symbol 179 MovieClip Frame 698
stopAllSounds();
_root.gotoAndStop("game");
Symbol 186 Button
on (release) {
gotoAndStop ("game");
}
Symbol 200 MovieClip Frame 1
stop();
Symbol 206 MovieClip Frame 1
stop();
Symbol 206 MovieClip Frame 2
stop();
Symbol 210 MovieClip Frame 1
stop();
Symbol 210 MovieClip Frame 30
if ((_parent.hero_mc._x > (_x - 25)) && (_parent.hero_mc._x < (_x + 25))) {
_visible = false;
}
Symbol 215 MovieClip Frame 1
stop();
Symbol 215 MovieClip Frame 5
stop();
Symbol 220 MovieClip Frame 1
stop();
Symbol 220 MovieClip Frame 5
stop();
Symbol 225 MovieClip Frame 1
stop();
Symbol 225 MovieClip Frame 5
stop();
Symbol 230 MovieClip Frame 1
stop();
Symbol 230 MovieClip Frame 5
stop();
Symbol 234 MovieClip Frame 1
stop();
Symbol 234 MovieClip Frame 5
stop();
Symbol 239 MovieClip Frame 1
stop();
Symbol 239 MovieClip Frame 5
stop();
Symbol 276 MovieClip Frame 1
stop();
Symbol 276 MovieClip Frame 36
stop();
Symbol 277 MovieClip Frame 1
stop();
Symbol 277 MovieClip Frame 30
checkIcePos = function () {
if ((_parent.hero_mc._x > (_x - 25)) && (_parent.hero_mc._x < (_x + 25))) {
_visible = false;
_root.points = _root.points + 100;
_root.iceCubes++;
_parent.useIceCube();
_parent.resetTemps();
_root.menu_mc.thermometer_mc.gotoAndStop(1);
clearInterval(checkIcePos_INT);
}
};
checkIcePos_INT = setInterval(checkIcePos, 40);
Symbol 277 MovieClip Frame 141
clearInterval(checkIcePos_INT);
iceMelt_mc.gotoAndPlay(2);
stop();
Symbol 281 MovieClip Frame 1
stop();
Symbol 303 MovieClip Frame 19
stop();
Symbol 303 MovieClip Frame 23
this.gotoAndPlay(1);
Symbol 303 MovieClip Frame 28
stop();
Symbol 304 MovieClip Frame 1
stop();
Symbol 304 MovieClip Frame 5
stop();
Symbol 327 MovieClip Frame 8
stop();
Symbol 327 MovieClip Frame 16
stop();
Symbol 327 MovieClip Frame 17
this.gotoAndPlay(1);
Symbol 327 MovieClip Frame 22
stop();
Symbol 328 MovieClip Frame 1
stop();
Symbol 328 MovieClip Frame 5
stop();
Symbol 334 MovieClip Frame 1
heat = 4;
stop();
Symbol 334 MovieClip Frame 3
heat = 3;
stop();
Symbol 334 MovieClip Frame 5
heat = 2;
stop();
Symbol 334 MovieClip Frame 7
heat = 0;
stop();
Symbol 334 MovieClip Frame 9
heat = 2;
stop();
Symbol 334 MovieClip Frame 11
heat = 3;
stop();
Symbol 340 MovieClip Frame 1
stop();
Symbol 340 MovieClip Frame 5
stop();
Symbol 345 MovieClip Frame 1
stop();
Symbol 345 MovieClip Frame 5
stop();
Symbol 356 MovieClip Frame 1
_root.meltMask1_mc.levelChangeDisplay._visible = true;
_root.menu_mc.thermometer_mc.gotoAndStop(1);
_root.menu_mc.lives_mc.gotoAndStop(1);
_root.gameOver = false;
_root.level = 1;
_root.iceCubes = 0;
var level = {};
_root.level = 1;
level.points = 4500;
nextLevelpoints = 10000;
level.aiSpeed = 12;
level.heatTime = 35;
level.targetSpeed = 200;
level.windows = 5;
level.activeWindow = 1;
noOfObjects = 9;
resetLevel = function () {
resettingLevel = true;
delete onEnterFrame;
clearInterval(fadeTarget_INT);
clearInterval(heatObject_INT);
clearInterval(targetThrob_INT);
};
createLevel = function () {
target_mc._alpha = 0;
resettingLevel = false;
buildObjects();
aiSelectTarget();
ai.speed = level.aiSpeed;
runActions();
resetTemps();
ai.clip.ray_mc._visible = false;
};
checkLevel = function () {
if (_root.points >= level.points) {
resetLevel();
_root.meltMask1_mc.play();
clearInterval(checkIcePos_INT);
}
};
_root.points = 0;
ray_snd = new Sound(this);
ray_snd.attachSound("ray");
var hero = {};
hero.clip = this.hero_mc;
hero.x = hero.clip._x;
hero.tempx = hero.x;
hero.targetx = hero.x;
hero.targety = 0;
hero.speed = level.aiSpeed + 1;
hero.rayLength = 200;
hero.towardsTarget = false;
hero.targetObject = "";
hero.clip.ray_mc._visible = false;
hero.cooling = false;
hero.nextStep = heroCool();
heroCool = function () {
var _local3 = this[hero.targetObject];
target_mc._x = _local3._x;
target_mc._y = _local3._y;
target_mc._alpha = 100;
targetThrob_INT = setInterval(targetThrob, level.targetSpeed);
target_mc.gotoAndStop(7);
hero.cooling = true;
hero.towardsTarget = false;
checkDirection();
_root.scene_mc.hero_mc.animation_mc.gotoAndPlay(18);
};
var ai = {};
ai.clip = this.baddie_mc;
ai.x = hero.clip._x;
ai.tempx = hero.x;
ai.targetx = hero.x;
ai.targety = 0;
ai.speed = 12;
ai.rayLength = 250;
ai.towardsTarget = false;
ai.targetObject = "";
ai.clip.ray_mc._visible = false;
ai.heating = false;
var mouseListener = new Object();
mouseListener.onMouseDown = function () {
clearInterval(controlRays);
if (_ymouse < 550) {
if ((!stopGlobalClick) && (!hero.cooling)) {
hero.targetx = _xmouse;
hero.towardsTarget = false;
}
if (hero.cooling) {
clearInterval(targetThrob_INT);
var _local2 = _root.scene_mc[hero.targetObject];
_local2.heat = _local2.heat - target_mc.heat;
var _local3 = _local2.heat;
if (_local2.heat <= 0) {
_local2.heat = 0;
}
_root.points = _root.points + (target_mc.heat * 100);
_local2.gotoAndStop(_local3 + 1);
_local2.cool = true;
trace("HEAT = " + _local3);
hero.cooling = false;
fadeTarget_INT = setInterval(fadeTarget, 40);
hero.clip.ray_mc._visible = false;
_root.scene_mc.hero_mc.animation_mc.gotoAndPlay(23);
ray_snd.stop();
}
}
};
Mouse.addListener(mouseListener);
var scrollSpeed = 20;
var sceneWidth = _root.scene_mc._width;
scrollScene = function () {
if ((_root._xmouse > 650) && (_root.scene_mc._x > (-(sceneWidth - 750)))) {
_root.scene_mc._x = _root.scene_mc._x - scrollSpeed;
}
if ((_root._xmouse < 150) && (_root.scene_mc._x < 0)) {
_root.scene_mc._x = _root.scene_mc._x + scrollSpeed;
}
if (_root.scene_mc._x > (-(sceneWidth - 750))) {
_root.rightArrow_mc._visible = true;
} else {
_root.rightArrow_mc._visible = false;
}
if (_root.scene_mc._x < 0) {
_root.leftArrow_mc._visible = true;
} else {
_root.leftArrow_mc._visible = false;
}
};
runActions = function () {
onEnterFrame = function () {
if (!_root.gameOver) {
moveCharacter(ai);
moveCharacter(hero);
checkLevel();
scrollScene();
}
};
};
aiSelectTarget = function () {
targetObject = objectArray[Math.floor(Math.random() * (objectArray.length - 2))];
while ((targetObject == ai.targetObject) && (targetObject.clip.heat < 13)) {
targetObject = objectArray[Math.floor(Math.random() * (objectArray.length - 2))];
}
ai.towardsTarget = true;
if (ai.x < this._x) {
ai.targetx = targetObject.clip._x - ai.rayLength;
} else {
ai.targetx = targetObject.clip._x + ai.rayLength;
}
ai.targetObject = targetObject.clip.val;
};
aiHeat = function () {
_root.scene_mc.baddie_mc.animation_mc.gotoAndPlay(24);
ai.towardsTarget = false;
heatCountDown = level.heatTime;
heatObject_INT = setInterval(heatObject, 40);
};
heatObject = function () {
heatCountDown--;
if (((heatCountDown <= 0) || (_root.gameOver)) || (resettingLevel)) {
ai.clip.ray_mc._visible = false;
ray_snd.stop();
_root.scene_mc.baddie_mc.animation_mc.gotoAndPlay(29);
_root.scene_mc[ai.targetObject].heated = false;
aiSelectTarget();
clearInterval(heatObject_INT);
}
};
moveCharacter = function (ob) {
var _local2 = ob;
var _local4 = (_local2.speed / 2) + 2;
if ((_local2.x > (_local2.targetx - _local4)) && (_local2.x < (_local2.targetx + _local4))) {
_local2.targetx = _local2.x;
if (_local2.towardsTarget) {
var _local3 = this[_local2.targetObject];
_local2.clip.ray_mc._visible = true;
ray_snd.start(0, 9000);
controlRays(_local3, _local2);
if (_local2 == hero) {
heroCool();
} else {
_local3.heat = _local3.heat + 4;
_local3.heated = true;
_local3.cool = false;
_local3.gotoAndStop(_local3.heat + 1);
if (_local3.heat > 8) {
_local3.gotoAndStop("melted");
}
roomTemp();
aiHeat();
}
}
} else {
_local2.clip.animation_mc.play();
}
if (_local2.targetx > _local2.x) {
_local2.clip.gotoAndStop("right");
_local2.tempx = _local2.tempx + _local2.speed;
} else if (_local2.targetx < _local2.x) {
_local2.clip.gotoAndStop("left");
_local2.tempx = _local2.tempx - _local2.speed;
}
_local2.x = _local2.tempx;
_local2.clip._x = _local2.x;
};
controlRays = function (whatTarget, sprite) {
var _local5 = sprite.clip.ray_mc;
var _local6 = {x:_local5._x, y:_local5._y};
var _local3 = {x:whatTarget._x, y:whatTarget._y};
sprite.clip.localToGlobal(_local6);
_root.scene_mc.localToGlobal(_local3);
var _local7 = _local6.x - _local3.x;
var _local8 = _local6.y - _local3.y;
var _local2 = (Math.atan2(_local8, _local7) * 57.2957795130823) + 90;
_local5._rotation = _local2;
trace(_local2);
if (_local2 <= 0) {
_local2 = _local2 * -1;
sprite.clip.gotoAndStop("right");
trace("back rays" + _local2);
} else if (_local2 <= 180) {
sprite.clip.gotoAndStop("left");
} else {
sprite.clip.gotoAndStop("right");
}
};
resetTemps = function () {
i = 1;
while (i < noOfObjects) {
newName = "object" + i;
ob = this[newName];
ob.clip = this[newName + "_mc"];
ob.clip.heat = 0;
ob.clip.heated = false;
ob.clip.cool = true;
ob.heat = 0;
ob.clip.gotoAndStop(1);
i++;
}
};
useIceCube = function () {
i = 1;
while (i < noOfObjects) {
newName = "object" + i;
ob = this[newName];
ob.clip = this[newName + "_mc"];
ob.clip.heat = ob.clip.heat - 4;
ob.heat = ob.heat - 4;
ob.clip.gotoAndStop(ob.clip.heat + 1);
_root.scene_mc.iceCubeEffect_mc.gotoAndPlay(2);
i++;
}
roomTemp();
};
buildObjects = function () {
delete objectArray;
objectArray = [];
i = 1;
while (i < noOfObjects) {
var _local2 = "object" + i;
delete this[_local2];
this[_local2] = {};
ob = this[_local2];
ob.clip = this[_local2 + "_mc"];
ob.clip.val = _local2 + "_mc";
ob.clip.heat = 0;
ob.clip.cool = true;
ob.clip.heated = false;
ob.heat = 0;
ob.clip.onRollOver = function () {
stopGlobalClick = true;
};
ob.clip.onRollOut = function () {
stopGlobalClick = false;
};
ob.clip.onPress = function () {
if (((((target_mc._alpha == 0) && (this.heat >= 1)) && (this.heat <= 8)) && (!this.heated)) && (!this.cool)) {
hero.towardsTarget = true;
if (hero.x < this._x) {
hero.targetx = this._x - hero.rayLength;
} else {
hero.targetx = this._x + hero.rayLength;
}
checkDirection();
hero.targetObject = this.val;
}
};
objectArray.push(ob);
i++;
}
iceCube_mc._visible = false;
w = 1;
while (w <= level.windows) {
var _local3 = "window" + w;
this[_local3] = {};
ob = this[_local3];
ob.clip = this.wall_mc[_local3 + "_mc"];
if (w == level.activeWindow) {
ob.clip.active = true;
} else {
ob.clip.active = false;
}
ob.clip.onPress = function () {
this.play();
iceCube_mc.visible = true;
if (this.active) {
iceCube_mc._x = this._x;
iceCube_mc.play();
iceCube_mc._visible = true;
this.active = false;
}
};
w++;
}
};
livesLost = 0;
roomTemp = function () {
var _local3 = 0;
i = 1;
while (i < noOfObjects) {
newName = "object" + i;
ob = this[newName];
_local3 = _local3 + ob.clip.heat;
i++;
}
_root.menu_mc.thermometer_mc.gotoAndPlay(Math.floor(_local3 / 4));
if (Math.floor(_local3 / 4) >= 8) {
livesLost++;
if (livesLost == 4) {
_root.gameOver = true;
resetLevel();
_root.meltMask_mc.play();
} else {
_root.menu_mc.lives_mc.gotoAndStop(livesLost + 1);
resetTemps();
}
}
};
targetThrob = function () {
target_mc.play();
};
fadeTarget = function () {
var _local1 = target_mc;
_local1._alpha = _local1._alpha - 5;
if (_local1._alpha <= 0) {
_local1._alpha = 0;
clearInterval(fadeTarget_INT);
}
};
createLevel();
stop();
Instance of Symbol 210 MovieClip "extraLife_mc" in Symbol 356 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.scene_mc.hero_mc.animation_mc)) {
trace("extraLife!");
livesLost = livesLost - 1;
_root.menu_mc.lives_mc.prevFrame();
this._visible = false;
this._x = -100;
}
}
Symbol 356 MovieClip Frame 2
level.points = 10000;
nextLevelpoints = 15000;
level.aiSpeed = 13;
level.heatTime = 70;
level.targetSpeed = 190;
level.windows = 5;
noOfObjects = 11;
level.activeWindow = 1;
createLevel();
trace(livesLost);
_root.scene_mc.wall_mc.nextFrame();
stop();
Symbol 356 MovieClip Frame 3
level.points = 15000;
nextLevelpoints = 20000;
level.aiSpeed = 13;
level.heatTime = 60;
level.targetSpeed = 170;
level.windows = 5;
noOfObjects = 15;
level.activeWindow = 1;
createLevel();
_root.scene_mc.wall_mc.prevFrame();
stop();
Symbol 356 MovieClip Frame 4
level.points = 20000;
nextLevelpoints = 30000;
level.aiSpeed = 14;
level.heatTime = 50;
level.targetSpeed = 150;
level.windows = 5;
noOfObjects = 17;
level.activeWindow = 1;
createLevel();
_root.scene_mc.wall_mc.nextFrame();
stop();
Symbol 356 MovieClip Frame 5
level.points = 30000;
nextLevelpoints = 50000;
level.aiSpeed = 14;
level.heatTime = 40;
level.targetSpeed = 120;
level.windows = 5;
noOfObjects = 20;
level.activeWindow = 1;
createLevel();
_root.scene_mc.wall_mc.prevFrame();
stop();
Symbol 356 MovieClip Frame 6
level.points = 50000;
nextLevelpoints = 100000 /* 0x0186A0 */;
level.aiSpeed = 15;
level.heatTime = 30;
level.targetSpeed = 100;
level.windows = 5;
noOfObjects = 24;
level.activeWindow = 1;
createLevel();
_root.scene_mc.wall_mc.nextFrame();
stop();
Symbol 356 MovieClip Frame 7
_root.meltMask1_mc.levelChangeDisplay._visible = false;
level.points = 100000 /* 0x0186A0 */;
level.aiSpeed = 18;
level.heatTime = 10;
level.targetSpeed = 80;
level.windows = 5;
noOfObjects = 24;
level.activeWindow = 1;
createLevel();
_root.scene_mc.wall_mc.prevFrame();
stop();
Symbol 356 MovieClip Frame 8
_root.gameOver = true;
Symbol 362 MovieClip Frame 1
stop();
Symbol 362 MovieClip Frame 30
stopAllSounds();
_root.gotoAndStop("gameOver");
stop();
Symbol 369 MovieClip Frame 1
Symbol 374 MovieClip Frame 1
stop();
Symbol 374 MovieClip Frame 10
_root.level++;
if (_root.Level > 7) {
_root.meltMask1_mc.levelChangeDisplay._visible = false;
}
Symbol 374 MovieClip Frame 45
_root.scene_mc.gotoAndStop(_root.level);
Symbol 383 Button
on (release) {
getURL ("http://www.rapidheatbusters.com", "_blank");
}
Symbol 392 MovieClip Frame 1
stop();
Symbol 392 MovieClip Frame 2
stop();
Symbol 392 MovieClip Frame 3
stop();
Symbol 392 MovieClip Frame 4
stop();
Symbol 392 MovieClip Frame 5
stop();
Symbol 392 MovieClip Frame 6
stop();
Symbol 392 MovieClip Frame 7
stop();
Symbol 392 MovieClip Frame 22
this.gotoAndPlay(14);
Symbol 395 MovieClip Frame 8
stop();
Symbol 396 MovieClip Frame 1
stop();
Symbol 396 MovieClip Frame 4
function randRange(min, max) {
var _local1 = Math.floor(Math.random() * ((max - min) + 1)) + min;
return(_local1);
}
chance = 5;
var i = 0;
while (i < 1) {
var n = randRange(1, 100);
trace("random number" + n);
if (n < chance) {
_root.scene_mc.extraLife_mc.gotoAndPlay(2);
}
i++;
}
Instance of Symbol 396 MovieClip "lives_mc" in Symbol 401 MovieClip Frame 1
onClipEvent (load) {
this.menu_mc.lives_mc.gotoAndStop(1);
}
Symbol 411 Button
on (press) {
play();
}
Symbol 413 Button
on (release) {
submit_responder = new Object();
doNotSend = false;
strName = userName.text;
strEmail = userEmail.text;
indexOfAt = strEmail.indexOf("@");
lastIndexOfDot = strEmail.lastIndexOf(".");
if (((!strEmail) || (indexOfAt == -1)) || (lastIndexOfDot == -1)) {
doNotSend = true;
errorMsg.text = "PLEASE ENTER A VALID EMAIL ADDRESS";
}
if (!strName) {
doNotSend = true;
errorMsg.text = "PLEASE ENTER YOUR NAME";
}
if (!doNotSend) {
trace("SENDING");
errorMsg.text = "SUBMITTING SCORE PLEASE WAIT";
submit_responder.onResult = function (arrScores) {
_root.submitted = true;
play();
};
gameService.setHighScores(submit_responder, userName.text, userEmail.text, _root.points);
}
}
Symbol 427 Button
on (release) {
_root.gotoAndStop("game");
}
Symbol 432 Button
on (release) {
gotoAndStop ("highScores");
}
Symbol 433 Button
on (release) {
highscores_mc.play();
}
Symbol 437 Button
on (release) {
stf_mc.play();
}
Symbol 441 Button
on (release) {
getURL ("http://www.rapidheatbusters.com", "_blank");
}
Symbol 460 Button
on (press) {
_parent.play();
}
Symbol 461 MovieClip Frame 1
Button64.tabIndex = 4;
scrollFace_mc._y = upArrow_mc._y + upArrow_mc._height;
scoreList_mc.startPos = scoreList_mc._y;
scrollUp = function () {
if (scoreList_mc._y < scoreList_mc.startPos) {
scoreList_mc._y = scoreList_mc._y + 6;
moveScrollBar();
}
};
scrollDown = function () {
var _local1 = scoreList_mc._height - scrollMask_mc._height;
trace(_local1);
if (scoreList_mc._y > (scoreList_mc.startPos - _local1)) {
scoreList_mc._y = scoreList_mc._y + -6;
moveScrollBar();
}
};
moveScrollBar = function () {
var _local4 = upArrow_mc._y + upArrow_mc._height;
var _local7 = scrollTrack_mc._height - scrollFace_mc._height;
var _local1 = scoreList_mc.startPos;
var _local8 = scoreList_mc._y;
var _local3 = _local1 - _local8;
var _local2 = scoreList_mc._height - scrollMask_mc._height;
var _local5 = (_local3 / _local2) * 100;
var _local6 = _local4 + ((_local7 / 100) * _local5);
scrollFace_mc._y = _local6;
};
dragScrollBar = function () {
var _local4 = upArrow_mc._y + upArrow_mc._height;
var _local6 = scrollTrack_mc._height - scrollFace_mc._height;
var _local1 = scrollFace_mc._y;
var _local5 = ((_local1 - _local4) / _local6) * 100;
var _local2 = scoreList_mc.startPos;
var _local3 = (scoreList_mc._height - scrollMask_mc._height) - 4;
var _local7 = _local2 - ((_local3 / 100) * _local5);
scoreList_mc._y = _local7;
};
scrollFace_mc.onPress = function () {
var _local1 = upArrow_mc._y + upArrow_mc._height;
var _local4 = scrollTrack_mc._height - scrollFace_mc._height;
var _local3 = _local1 + _local4;
var _local2 = scrollFace_mc._x;
startDrag (scrollFace_mc, true, _local2, _local1, _local2, _local3);
dragScrollBarInt = setInterval(dragScrollBar, 40);
};
scrollFace_mc.onRelease = function () {
scrollFace_mc.stopDrag();
clearInterval(dragScrollBarInt);
};
scrollFace_mc.onReleaseOutside = function () {
scrollFace_mc.stopDrag();
clearInterval(dragScrollBarInt);
};
upArrow_mc.onPress = function () {
scrollUpInt = setInterval(scrollUp, 40);
};
upArrow_mc.onRelease = function () {
clearInterval(scrollUpInt);
};
upArrow_mc.onReleaseOutside = function () {
clearInterval(scrollUpInt);
};
downArrow_mc.onPress = function () {
scrollDownInt = setInterval(scrollDown, 40);
};
downArrow_mc.onRelease = function () {
clearInterval(scrollDownInt);
};
downArrow_mc.onReleaseOutside = function () {
clearInterval(scrollDownInt);
};
score_responder = new Object();
score_responder.onResult = function (arrScores) {
trace("LENGTH = " + arrScores.length);
i = 0;
while (i <= (arrScores.length - 1)) {
var _local5 = i + 10000;
var _local4 = ("scoreLine" + (i + 1)) + "_mc";
duplicateMovieClip (scoreList_mc.scoreLine_mc, _local4, _local5);
var _local2 = scoreList_mc[("scoreLine" + (i + 1)) + "_mc"];
_local2._y = 40 * i;
_local2.pos.text = i + 1;
_local2.playerName.text = arrScores[i].name;
_local2.score.text = arrScores[i].score;
_local2._rotation = _local2._rotation + (2.5 - (Math.random() * 5));
nextScorePos = this.scoreList_mc.scoreLine_mc._height;
i++;
}
};
_parent._parent.gameService.getHighScores(score_responder, 50);
this.scoreList_mc.scoreLine_mc._visible = false;
stop();
Symbol 462 MovieClip Frame 1
stop();
Symbol 462 MovieClip Frame 20
stop();
Symbol 477 Button
on (release) {
send_responder = new Object();
doNotSend = false;
strUserName = userName.text;
strUserEmail = userEmail.text;
userIndexOfAt = strUserEmail.indexOf("@");
userLastIndexOfDot = strUserEmail.lastIndexOf(".");
strFriendName = friendName.text;
strFriendEmail = friendEmail.text;
friendIndexOfAt = strFriendEmail.indexOf("@");
friendLastIndexOfDot = strFriendEmail.lastIndexOf(".");
if (((!strFriendEmail) || (friendIndexOfAt == -1)) || (friendLastIndexOfDot == -1)) {
doNotSend = true;
errorMsg.text = "YOUR FRIEND'S EMAIL ADDRESS IS NOT VALID";
}
if (!strFriendName) {
doNotSend = true;
errorMsg.text = "PLEASE ENTER YOUR FRIEND'S NAME";
}
if (((!strUserEmail) || (userIndexOfAt == -1)) || (userLastIndexOfDot == -1)) {
doNotSend = true;
errorMsg.text = "YOUR EMAIL ADDRESS IS NOT VALID";
}
if (!strUserName) {
doNotSend = true;
errorMsg.text = "PLEASE ENTER YOUR NAME";
}
if (!doNotSend) {
trace("SENDING");
errorMsg.text = "SENDING";
send_responder.onResult = function () {
friendName.text = "";
friendEmail.text = "";
errorMsg.text = "SENT - PLEASE SEND TO ANOTHER FRIEND ";
};
_parent._parent.gameService.sendToFriend(send_responder, userName.text, userEmail.text, friendName.text, friendEmail.text, _root.points);
}
}
Symbol 478 MovieClip Frame 1
Button64.tabIndex = 4;
userName.tabIndex = 1;
userEmail.tabIndex = 1;
friendName.tabIndex = 1;
friendEmail.tabIndex = 1;
scrollFace_mc._y = upArrow_mc._y + upArrow_mc._height;
scoreList_mc.startPos = scoreList_mc._y;
scrollUp = function () {
if (scoreList_mc._y < scoreList_mc.startPos) {
scoreList_mc._y = scoreList_mc._y + 6;
moveScrollBar();
}
};
scrollDown = function () {
var _local1 = scoreList_mc._height - scrollMask_mc._height;
trace(_local1);
if (scoreList_mc._y > (scoreList_mc.startPos - _local1)) {
scoreList_mc._y = scoreList_mc._y + -6;
moveScrollBar();
}
};
moveScrollBar = function () {
var _local4 = upArrow_mc._y + upArrow_mc._height;
var _local7 = scrollTrack_mc._height - scrollFace_mc._height;
var _local1 = scoreList_mc.startPos;
var _local8 = scoreList_mc._y;
var _local3 = _local1 - _local8;
var _local2 = scoreList_mc._height - scrollMask_mc._height;
var _local5 = (_local3 / _local2) * 100;
var _local6 = _local4 + ((_local7 / 100) * _local5);
scrollFace_mc._y = _local6;
};
dragScrollBar = function () {
var _local4 = upArrow_mc._y + upArrow_mc._height;
var _local6 = scrollTrack_mc._height - scrollFace_mc._height;
var _local1 = scrollFace_mc._y;
var _local5 = ((_local1 - _local4) / _local6) * 100;
var _local2 = scoreList_mc.startPos;
var _local3 = (scoreList_mc._height - scrollMask_mc._height) - 4;
var _local7 = _local2 - ((_local3 / 100) * _local5);
scoreList_mc._y = _local7;
};
scrollFace_mc.onPress = function () {
var _local1 = upArrow_mc._y + upArrow_mc._height;
var _local4 = scrollTrack_mc._height - scrollFace_mc._height;
var _local3 = _local1 + _local4;
var _local2 = scrollFace_mc._x;
startDrag (scrollFace_mc, true, _local2, _local1, _local2, _local3);
dragScrollBarInt = setInterval(dragScrollBar, 40);
};
scrollFace_mc.onRelease = function () {
scrollFace_mc.stopDrag();
clearInterval(dragScrollBarInt);
};
scrollFace_mc.onReleaseOutside = function () {
scrollFace_mc.stopDrag();
clearInterval(dragScrollBarInt);
};
upArrow_mc.onPress = function () {
scrollUpInt = setInterval(scrollUp, 40);
};
upArrow_mc.onRelease = function () {
clearInterval(scrollUpInt);
};
upArrow_mc.onReleaseOutside = function () {
clearInterval(scrollUpInt);
};
downArrow_mc.onPress = function () {
scrollDownInt = setInterval(scrollDown, 40);
};
downArrow_mc.onRelease = function () {
clearInterval(scrollDownInt);
};
downArrow_mc.onReleaseOutside = function () {
clearInterval(scrollDownInt);
};
score_responder = new Object();
score_responder.onResult = function (arrScores) {
trace("LENGTH = " + arrScores.length);
i = 0;
while (i <= (arrScores.length - 1)) {
var _local5 = i + 10000;
var _local4 = ("scoreLine" + (i + 1)) + "_mc";
duplicateMovieClip (scoreList_mc.scoreLine_mc, _local4, _local5);
var _local2 = scoreList_mc[("scoreLine" + (i + 1)) + "_mc"];
_local2._y = 40 * i;
_local2.pos.text = i + 1;
_local2.playerName.text = arrScores[i].name;
_local2.score.text = arrScores[i].score;
_local2._rotation = _local2._rotation + (2.5 - (Math.random() * 5));
nextScorePos = this.scoreList_mc.scoreLine_mc._height;
i++;
}
};
_parent._parent.gameService.getHighScores(score_responder, 50);
this.scoreList_mc.scoreLine_mc._visible = false;
stop();
Symbol 479 MovieClip Frame 1
stop();
Symbol 479 MovieClip Frame 20
stop();
Symbol 480 MovieClip Frame 1
Button64.tabIndex = 4;
Button63.tabIndex = 3;
function NetServiceProxy(nc, serviceName, client) {
if (nc != null) {
this.nc = nc;
this.serviceName = serviceName;
this.client = client;
}
}
function addScore() {
_root.updating = "UPDATING SCORES PLEASE WAIT";
_root.bt1._visible = false;
_root.bt2._visible = false;
_root.bt3._visible = false;
gameService.updatePoints(updatePoints_responder, strUniqueID, _root.points);
}
trace("***** running NetServices");
load("RecordSet.as");
_global.NetServiceProxyResponder = function (service, methodName) {
this.service = service;
this.methodName = methodName;
};
NetServiceProxyResponder = _global.NetServiceProxyResponder;
NetServiceProxyResponder.prototype.onResult = function (result) {
var _local2 = this.service.client;
result._setParentService(this.service);
var _local3 = this.methodName + "_Result";
if (typeof(_local2[_local3]) == "function") {
_local2[_local3](result);
} else if (typeof(_local2.onResult) == "function") {
_local2.onResult(result);
} else {
NetServices.trace("NetServices", "info", 1, (_local3 + " was received from server: ") + result);
}
};
NetServiceProxyResponder.prototype.onStatus = function (result) {
var _local5 = this.service.client;
var _local6 = this.methodName + "_Status";
if (typeof(_local5[_local6]) == "function") {
_local5[_local6](result);
} else if (typeof(_local5.onStatus) == "function") {
_local5.onStatus(result);
} else if (typeof(_root.onStatus) == "function") {
_root.onStatus(result);
} else if (typeof(_global.System.onStatus) == "function") {
_global.System.onStatus(result);
} else {
NetServices.trace("NetServices", "info", 2, (((_local6 + " was received from server: ") + result.level) + " ") + result.description);
}
};
_global.NetServiceProxy = NetServiceProxy;
Object.registerClass("NetServiceProxy", NetServiceProxy);
NetServiceProxy.prototype._setParentService = function (service) {
this.nc = service.nc;
this.client = service.client;
};
NetServiceProxy.prototype.__resolve = function (methodName) {
var _local3 = function () {
if (this.client != null) {
arguments.unshift(new NetServiceProxyResponder(this, methodName));
} else if (typeof(arguments[0].onResult) != "function") {
NetServices.trace("NetServices", "warning", 3, "There is no defaultResponder, but no responder was given in call to " + methodName);
arguments.unshift(new NetServiceProxyResponder(this, methodName));
}
arguments.unshift((this.serviceName + ".") + methodName);
return(this.nc.call.apply(this.nc, arguments));
};
return(_local3);
};
NetConnection.prototype.getService = function (serviceName, client) {
var _local2 = new NetServiceProxy(this, serviceName, client);
return(_local2);
};
NetConnection.prototype.setCredentials = function (userid, password) {
this.addHeader("Credentials", false, {userid:userid, password:password});
};
NetConnection.prototype.RequestPersistentHeader = function (info) {
this.addHeader(info.name, info.mustUnderstand, info.data);
};
NetConnection.prototype.RequestUrlRewrite = function (urlSuffix) {
this.__urlSuffix = urlSuffix;
if (this.__originalUrl == null) {
this.__originalUrl = this.uri;
}
var _local2 = this.__originalUrl + urlSuffix;
this.connect(_local2);
};
NetConnection.prototype.clone = function () {
var _local2 = new NetConnection();
_local2.connect(((this.__originalUrl == null) ? (this.uri) : (this.__originalUrl)));
if (this.__urlSuffix != null) {
_local2.RequestUrlRewrite(this.__urlSuffix);
}
return(_local2);
};
if (_global.NetServices == null) {
_global.NetServices = new Object();
NetServices = _global.NetServices;
NetServices.gatewayUrl = gatewayUrl;
NetServices.urlSuffix = urlSuffix;
}
NetServices.setDefaultGatewayUrl = function (url) {
NetServices.defaultGatewayUrl = url;
};
NetServices.setGatewayUrl = function (url) {
NetServices.gatewayUrl = url;
};
NetServices.createGatewayConnection = function (url) {
if (url == undefined) {
if (NetServices.isHttpUrl(_root._url)) {
url = NetServices.gatewayUrl;
if (url == undefined) {
url = NetServices.defaultGatewayUrl;
if (url != undefined) {
if (NetServices.isHttpUrl(url)) {
var _local6 = url.indexOf("/", 8);
if (_local6 >= 0) {
url = url.substring(_local6);
}
}
var _local4 = NetServices.getHostUrl();
if (_local4 != null) {
url = _local4 + url;
}
}
}
} else {
url = NetServices.defaultGatewayUrl;
}
}
if (url == undefined) {
NetServices.trace("NetServices", "warning", 4, "createGatewayConnection - gateway url is undefined");
return(null);
}
var _local5 = new NetConnection();
_local5.connect(url);
if (NetServices.urlSuffix != null) {
this.RequestUrlRewrite(NetServices.urlSuffix);
}
return(_local5);
};
NetServices.getHostUrl = function () {
if (!NetServices.isHttpUrl(_root._url)) {
return(null);
}
var _local2 = _root._url.indexOf("/", 8);
if (_local2 < 0) {
return(null);
}
return(_root._url.substring(0, _local2));
};
NetServices.isHttpUrl = function (url) {
return((url.indexOf("http://") == 0) || (url.indexOf("https://") == 0));
};
NetServices.trace = function (who, severity, number, message) {
var _local1 = (((((who + " ") + severity) + " ") + number) + ": ") + message;
trace(_local1);
NetDebug.traceNetServices(who, severity, number, message);
};
NetServices.getVersion = function () {
return(1);
};
strTicketID = s;
intSpinLocked = 0;
_global.strRootURL = "http://www.thedaytheofficemelted.co.uk";
NetServices.setDefaultGatewayUrl(_global.strRootURL + "/gateway.php");
conn = NetServices.createGatewayConnection();
checkTicket_responder = new Object();
checkTicket_responder.onResult = function (arrUserInfo) {
_level0.currentPoints = arrUserInfo.points * 1;
strUniqueID = arrUserInfo.uniqueid;
strName = arrUserInfo.fullname;
};
updatePoints_responder = new Object();
updatePoints_responder.onResult = function () {
_root.updating = "";
_root.bt1._visible = true;
_root.bt2._visible = true;
_root.bt3._visible = true;
_root.dbstatus.text = "DB Updated!";
};
gameService = conn.getService("services");
gameService.checkTicket(checkTicket_responder, strTicketID);
stop();
Symbol 480 MovieClip Frame 26
stop();