Frame 2
_lockroot = true;
var i = -1;
while (getInstanceAtDepth(i)) {
i--;
}
createEmptyMovieClip("kv_mc", i);
kv_mc.kv_v = {c:73, td:"tambainternet.73.memecounter.com"};
System.security.allowDomain(kv_mc.kv_v.td);
kv_mc.kv_v.c_so = SharedObject.getLocal(kv_mc.kv_v.c, "/");
kv_mc.kv_v.d = (_root.ori_dom ? (_root.ori_dom) : (((_root._url.split("/")[0].indexOf("http") == -1) ? "Local" : (_root._url.split("/")[2].split("?")[0]))));
kv_mc.kv_v.fpv = getVersion().split(" ")[1].split(",")[0];
kv_mc.kv_v.lurl = ((((((((((("http://" + kv_mc.kv_v.td) + "/tracker.php") + "?c=") + kv_mc.kv_v.c) + "&r=") + Math.floor(Math.random() * 10000000000)) + "&d=") + kv_mc.kv_v.d) + "&u=") + (kv_mc.kv_v.c_so.data.u ? "1" : "")) + "&p=") + kv_mc.kv_v.fpv;
kv_mc.kv_v.c_so.data.u = true;
kv_v.c_so.flush();
kv_mc.kv_v.t_mc = kv_mc.createEmptyMovieClip("kv_tracker", 0);
kv_mc.kv_v.l_mcl = new MovieClipLoader();
if (kv_mc.kv_v.l_mcl.loadClip) {
kv_mc.kv_v.l_mcl.loadClip(kv_mc.kv_v.lurl, kv_mc.kv_v.t_mc);
} else {
loadMovie (kv_mc.kv_v.lurl, kv_mc.kv_v.t_mc);
}
System.security.allowDomain("*");
_root.tvc_media = "482";
_root.createEmptyMovieClip("TVC_mc", 0);
System.security.allowDomain("http://www.viralchart.com");
_root.TVC_mc.loadMovie("http://www.viralchart.com/tvc_tracker.swf");
Mouse.hide();
preLoad = function () {
var _local3 = _root.getBytesTotal() + _root.soundHolder_mc.getBytesTotal();
var _local2 = _root.getBytesLoaded() + _root.soundHolder_mc.getBytesLoaded();
trace(_local2);
loaderBar_mc._width = (_local2 / _local3) * 235;
if (_local2 == _local3) {
clearInterval(preloadINT);
gotoAndStop (3);
}
};
preloadINT = setInterval(preLoad, 40);
loadMovie ("http://www.bentley-jennison-game.co.uk/soundfx.swf", _root.soundHolder_mc);
stop();
Frame 3
Mouse.hide();
_root.onEnterFrame = function () {
target_mc._x = _root._xmouse;
target_mc._y = _root._ymouse;
};
_root.soundHolder_mc.theme_snd.start(0, 9999);
stop();
Instance of Symbol 168 MovieClip "instructions_mc" in Frame 3
onClipEvent (load) {
this._visible = false;
}
Frame 26
noOfCharacters = 9;
levelDiff = new Array(1800, 1600, 1500, 1100, 1000, 900, 800, 650, 550, 450, 350, 300, 250, 200, 200);
levelAccountants = new Array(10, 12, 14, 16, 18, 20, 24, 28, 36, 40, 48, 54, 60, 70, 300);
levelSanta = new Array(7, 10, 12, 12, 14, 16, 20, 22, 30, 32, 40, 45, 54, 64, 300);
levelJumpers = new Array(1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 8, 9);
levelPoints = new Array(0, 500, 1200, 2000, 2800, 3900, 5000, 6500, 9500, 10500, 12500, 15500, 18500, 20000, 24000);
_root.gamePaused = true;
_root.levelThreshold = 3;
_root.startJump = false;
_root.accountantsLeft = 0;
_root.santasLeft = 0;
_root.santasHit = 0;
gameOver = false;
level = -1;
_root.points = 0;
i = 1;
while (i <= 9) {
var whatChar = _root[("characterHolder" + i) + "_mc"];
whatChar.char_mc.onPress = function () {
var _local4 = 50 - (this.speed * 3);
if (this._currentframe != 1) {
if (_local4 > 0) {
_root.points = _root.points + _local4;
var _local3 = "+ " + _local4;
} else {
var _local3 = "+ 0";
}
this._parent.points.val.howManyPoints1.text = _local3.toString();
this._parent.points.val.howManyPoints2.text = _local3.toString();
this._parent.points.val.howManyPoints3.text = _local3.toString();
this._parent.points.play();
} else {
_root.santasHit++;
if (_root.santasHit < 4) {
_root.lives_mc.gotoAndStop(_root.santasHit + 1);
}
if (_root.santasHit == 3) {
gameOver = true;
_root.accountantsLeft = 0;
_root.santasLeft = 0;
nextLevel();
}
var _local5 = (_root.level + 1) * 10;
_root.points = _root.points - _local5;
var _local3 = "- " + _local5;
this._parent.points1.val.howManyPoints1.text = _local3.toString();
this._parent.points1.val.howManyPoints2.text = _local3.toString();
this._parent.points1.val.howManyPoints3.text = _local3.toString();
this._parent.points1.play();
}
trace(this.speed);
this._parent.snowball_mc._y = this._y;
this._parent.snowball_mc.gotoAndPlay(2);
this._visible = false;
};
i++;
}
nextLevel = function () {
level++;
_root.gamePaused = true;
_root.noOfJumpers = levelJumpers[level];
_root.accountantsLeft = levelAccountants[level];
_root.santasLeft = levelSanta[level];
_root.levelVal = "LEVEL " + (level + 1);
_root.level_mc.gotoAndPlay(2);
_root.startTime = getTimer();
trace(_root.noOfJumpers);
};
jumpChar = function () {
var _local6 = false;
while (!_local6) {
var _local4 = Math.ceil(Math.random() * noOfCharacters);
var _local3 = _root[("characterHolder" + _local4) + "_mc"].char_mc;
var _local5 = _root[("chimney" + _local4) + "_mc"];
if (!_local3.jumping) {
chooseCharacter = Math.ceil(Math.random() * 2);
if (accountantsLeft == 0) {
chooseCharacter = 1;
}
if (santasLeft == 0) {
chooseCharacter = 2;
}
if ((accountantsLeft == 0) && (santasLeft == 0)) {
_root.startJump = false;
if (_root.noOfJumpers == levelJumpers[level]) {
nextLevel();
}
break;
}
if (chooseCharacter == 2) {
_root.accountantsLeft--;
chooseCharacter = Math.ceil(Math.random() * 2) + 1;
} else {
_root.santasLeft--;
}
_local3.speed = -Math.ceil((Math.random() * 10) + 20);
_local3.starty = _local3._y;
_local3.jumping = true;
_root.noOfJumpers = _root.noOfJumpers + -1;
_root.startTime = getTimer();
_root.startJump = false;
_local6 = true;
_local5.gotoAndPlay(2);
_local3.gotoAndStop(chooseCharacter);
_local3.onEnterFrame = function () {
if (!_root.gamePaused) {
this._y = this._y + this.speed;
this.speed++;
if (this.speed == 2) {
this.char_mc.gotoAndPlay(2);
}
}
if ((this._y > this.starty) || (gameOver)) {
this.jumping = false;
this._y = this.starty;
_root.noOfJumpers++;
if (!this._visible) {
this._visible = true;
}
this.char_mc.gotoAndStop(1);
delete this.onEnterFrame;
}
};
}
}
};
Mouse.hide();
_root.onEnterFrame = function () {
target_mc._x = _root._xmouse;
target_mc._y = _root._ymouse;
if (((((getTimer() - _root.startTime) > levelDiff[level]) && (!_root.startJump)) && (_root.noOfJumpers > 0)) && (!_root.gamePaused)) {
startJump = true;
jumpChar();
}
};
nextLevel();
stop();
Symbol 24 MovieClip Frame 1
stop();
Symbol 24 MovieClip Frame 7
_root.soundHolder_mc.pop_snd.start();
Symbol 34 MovieClip Frame 1
stop();
Symbol 34 MovieClip Frame 8
gotoAndPlay (2);
Symbol 41 MovieClip Frame 1
stop();
Symbol 41 MovieClip Frame 8
gotoAndPlay (2);
Symbol 48 MovieClip Frame 1
stop();
Symbol 48 MovieClip Frame 8
gotoAndPlay (2);
Symbol 49 MovieClip Frame 1
stop();
Symbol 52 MovieClip Frame 1
stop();
Symbol 52 MovieClip Frame 2
_root.soundHolder_mc.hit_snd.start();
Symbol 58 MovieClip Frame 1
stop();
Symbol 63 MovieClip Frame 1
stop();
Symbol 78 MovieClip Frame 11
stop();
Symbol 81 MovieClip Frame 1
stop();
Symbol 91 MovieClip Frame 1
_root.hit_snd.start();
Symbol 91 MovieClip Frame 11
stop();
Symbol 122 Button
on (press) {
play();
}
Symbol 126 Button
on (press) {
gotoAndPlay ("friend");
}
Symbol 137 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 friends email address is not valid";
}
if (!strFriendName) {
doNotSend = true;
errorMsg.text = "Please enter your friends 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! Would you like to challenge more friends?";
};
gameService.sendToFriend(send_responder, userName.text, userEmail.text, friendName.text, friendEmail.text, _level0.points, _root.points);
}
}
Symbol 144 MovieClip Frame 1
stop();
Symbol 144 MovieClip Frame 2
if (((_root.santasHit >= _root.levelThreshold) || (_root.points < _root.levelPoints[_root.level])) || (_root.level == 15)) {
gotoAndPlay ("gameover");
}
if (gameEnded) {
gotoAndPlay (10);
}
play();
Symbol 144 MovieClip Frame 10
gameEnded = false;
Symbol 144 MovieClip Frame 23
if (_root.level != 14) {
levelText.text = ("YOU MUST HAVE " + _root.levelPoints[_root.level + 1]) + " POINTS AT THE END OF THIS LEVEL TO CONTINUE!";
} else {
levelText.text = "THIS IS THE FINAL LEVEL! HOW MANY POINTS WILL YOU END UP WITH?";
}
Symbol 144 MovieClip Frame 104
_root.gamePaused = false;
gotoAndStop (1);
Symbol 144 MovieClip Frame 109
gameEnded = true;
Symbol 144 MovieClip Frame 128
stop();
Symbol 144 MovieClip Frame 129
_root.lives_mc.gotoAndStop(1);
_root.santasHit = 0;
_root.level = -1;
_root.points = 0;
Symbol 144 MovieClip Frame 150
_root.gameOver = false;
_root.nextLevel();
stop();
Symbol 144 MovieClip Frame 164
function NetServiceProxy(nc, serviceName, client) {
if (nc != null) {
this.nc = nc;
this.serviceName = serviceName;
this.client = client;
}
}
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);
};
_global.strRootURL = "http://www.bentley-jennison.co.uk";
NetServices.setDefaultGatewayUrl(_global.strRootURL + "/gateway.php");
conn = NetServices.createGatewayConnection();
gameService = conn.getService("GameServices");
stop();
Symbol 144 MovieClip Frame 165
_root.lives_mc.gotoAndStop(1);
_root.santasHit = 0;
_root.level = -1;
_root.points = 0;
Symbol 144 MovieClip Frame 185
_root.gameOver = false;
_root.nextLevel();
stop();
Symbol 157 Button
on (release) {
_root.instructions_mc._visible = false;
_root.play();
}
Symbol 160 Button
on (release) {
_root.instructions_mc._visible = true;
}
Symbol 165 Button
on (release) {
this._visible = false;
}