Frame 1
_lockroot = true;
_root.tvc_media = "639";
_root.createEmptyMovieClip("TVC_mc", 0);
System.security.allowDomain("http://www.viralchart.com");
_root.TVC_mc.loadMovie("http://www.viralchart.com/tvc_tracker.swf");
music_snd = new Sound();
soundon_mc.onPress = function () {
if (!soundOff) {
music_snd.setVolume(0);
soundOff = true;
skipnext = true;
soundon_mc.gotoAndStop("5");
}
if (soundOff && (!skipnext)) {
music_snd.setVolume(100);
soundOff = false;
soundon_mc.gotoAndStop(1);
}
skipnext = false;
};
preLoad = function () {
loaderBar_mc._height = (getBytesLoaded() / getBytesTotal()) * 155;
var _local2 = Math.ceil((getBytesLoaded() / getBytesTotal()) * 100);
var _local1 = Math.ceil(getBytesLoaded() / 100);
perc.text = (("0" + _local2) + " L04D1NG ") + _local1;
if (getBytesLoaded() == getBytesTotal()) {
perc.text = (("0" + _local2) + " L04D3D ") + _local1;
trace("LOADED");
clearInterval(preloadINT);
gotoAndStop ("startScreen");
}
};
preloadINT = setInterval(preLoad, 40);
stop();
Frame 40
movementDeg = 8;
level = 0;
availablePoints = 60;
pointsNeeded = 0;
levels_mc.gotoAndStop("level" + level);
Mouse.hide();
cd = 0;
_root.points = 0;
resetGame = function () {
level = 0;
availablePoints = 60;
pointsNeeded = 0;
levels_mc.gotoAndStop("level" + level);
cd = 0;
_root.points = 0;
_root.whatLevel = "level " + level;
};
resetGame();
var mouseClickListener = new Object();
mouseClickListener.onMouseDown = function () {
gun_mc.clip_mc.gotoAndPlay("fire");
_root.splat_mc._x = _root.cross_mc._x;
_root.splat_mc._y = _root.cross_mc._y;
_root.splat_mc.gotoAndPlay(5);
};
Mouse.addListener(mouseClickListener);
rotateGun = function () {
cross_mc._x = _xmouse;
cross_mc._y = _ymouse;
var _local1 = (Math.atan2(-(550 - _ymouse), _xmouse) * 180) / Math.PI;
if ((_xmouse > 30) && (_ymouse < 550)) {
gun_mc._rotation = _local1 + 105;
}
};
barcodeColours = ["red", "blue", "yellow", "green"];
this.onEnterFrame = function () {
rotateGun();
};
controlGame = function () {
controls();
showTime();
countdownTime();
};
countdownTime = function () {
if (((getTimer() - setBarcodes) > 1500) && (barcodesShown)) {
invisibleBarcodes();
barcodesShown = false;
targetBarcode_mc.gotoAndPlay(1);
}
};
buildButtons = function () {
i = 1;
while (i <= 12) {
_root.levels_mc.targets_mc[("target" + i) + "_mc"].barcode_mc.onPress = function () {
barcodesShown = false;
if (_root.points > 0) {
_root.points = _root.points + 5;
}
if ((getTimer() - setBarcodes) < 5000) {
var _local3 = Math.ceil((5000 - (getTimer() - setBarcodes)) / 50);
if (this.colour == _root.whatColour) {
_root.points = _root.points + _local3;
_root.lastScan = "+ " + _local3;
} else {
_root.points = _root.points - _local3;
_root.lastScan = "- " + _local3;
if (_root.points < 0) {
_root.points = 0;
}
}
}
cross_mc.gotoAndPlay(2);
invisibleBarcodes();
targetBarcode_mc.gotoAndPlay(1);
};
i++;
}
};
buildButtons();
invisibleBarcodes = function () {
i = 1;
while (i <= 12) {
_root.levels_mc.targets_mc[("target" + i) + "_mc"]._visible = false;
i++;
}
barcodes = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
};
invisibleBarcodes();
chooseBarcode = function () {
_root.whatColour = barcodeColours[Math.floor(Math.random() * barcodeColours.length)];
targetBarcode_mc.gotoAndStop(whatColour);
targetBarcode_mc.selected_mc.gotoAndPlay(5);
timeAllowed = timeAllowed + (_root.totalTimeLeft - Math.floor(timeAllowed - (Math.ceil(getTimer() - startTime) / 1000)));
randomBarcode();
};
resetTime = function () {
startTime = getTimer();
timeAllowed = 45;
};
_root.resetTime();
showTime = function () {
_root.totalTimeLeft = Math.floor(timeAllowed - (Math.ceil(getTimer() - startTime) / 1000));
if (_root.totalTimeLeft <= 0) {
doors_mc.play();
}
};
barcodes = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
difficulty = [2, 3, 4, 5, 6];
randomBarcode = function () {
if (level == 1) {
i = 1;
while (i <= 2) {
var _local4 = false;
do {
var _local3 = Math.ceil(Math.random() * 12);
var _local5 = barcodes[_local3];
if (_local5 == 0) {
barcodes[_local3] = 1;
_local4 = true;
}
} while (!_local4);
var _local7 = _root.levels_mc.targets_mc[("target" + _local3) + "_mc"];
_local7._visible = true;
_local7.barcode_mc.gotoAndStop(_root.whatColour);
_local7.barcode_mc.colour = _root.whatColour;
i++;
}
} else {
var _local3 = Math.ceil(Math.random() * 12);
barcodes[_local3] = 1;
var _local7 = _root.levels_mc.targets_mc[("target" + _local3) + "_mc"];
_local7._visible = true;
_local7.barcode_mc.gotoAndStop(_root.whatColour);
_local7.barcode_mc.colour = _root.whatColour;
}
n = 1;
while (n <= difficulty[level - 1]) {
var _local4 = false;
do {
var _local3 = Math.ceil(Math.random() * 12);
var _local5 = barcodes[_local3];
if (_local5 == 0) {
barcodes[_local3] = 1;
_local4 = true;
}
} while (!_local4);
var _local6 = false;
do {
var _local2 = barcodeColours[Math.floor(Math.random() * barcodeColours.length)];
if (_local2 != _root.whatColour) {
trace("RANDOM = " + _local2);
_local6 = true;
}
} while (!_local6);
var _local7 = _root.levels_mc.targets_mc[("target" + _local3) + "_mc"];
_local7._visible = true;
_local7.barcode_mc.gotoAndStop(_local2);
_local7.barcode_mc.colour = _local2;
n++;
}
barcodesShown = true;
setBarcodes = getTimer();
};
doors_mc.play();
stop();
Symbol 15 Button
on (release) {
getURL ("http://www.tamba.co.uk", _blank);
}
Symbol 28 MovieClip Frame 1
stop();
Symbol 28 MovieClip Frame 5
stop();
Symbol 42 Button
on (press) {
_root.nonGame = true;
_root.whatScreen = "weaponSelect";
gotoAndStop ("game");
}
Symbol 48 Button
on (release) {
gotoAndStop ("game");
}
Symbol 53 Button
on (release) {
getURL ("http://www.justgiving.com/datascan", _blank);
}
Symbol 55 Button
on (release) {
gotoAndPlay ("instructions");
}
Symbol 56 Button
on (release) {
play();
}
Symbol 57 Button
on (release) {
_root.gotoAndStop("game");
}
Symbol 61 MovieClip Frame 30
stop();
Symbol 61 MovieClip Frame 60
_root.nonGame = true;
_root.whatScreen = "weaponSelect";
_root.gotoAndStop("game");
stop();
Symbol 61 MovieClip Frame 105
_root.nonGame = true;
_root.whatScreen = "instructions";
_root.gotoAndStop("game");
stop();
Symbol 61 MovieClip Frame 130
_root.gotoAndStop("game");
stop();
Symbol 91 MovieClip Frame 1
stop();
Symbol 93 MovieClip Frame 60
gotoAndPlay (1);
Symbol 101 MovieClip Frame 1
_root.invisibleBarcodes();
Symbol 101 MovieClip Frame 84
_root.buildButtons();
_root.targetBarcode_mc.gotoAndPlay(1);
_root.resetTime();
_root.controlGameINT = setInterval(_root.controlGame, 40);
stop();
Symbol 122 MovieClip Frame 1
moveSpeed = 3;
moveTargets = function () {
i = 1;
while (i <= 7) {
var _local2 = _root.levels_mc.targets_mc[("target" + i) + "_mc"];
var _local3 = _root.levels_mc.targets_mc[("sprite" + i) + "_mc"];
_local2._x = _local2._x + moveSpeed;
_local3._x = _local3._x + moveSpeed;
trace(_local2._x);
if (_local2._x > 480) {
_local2._x = _local2._x - 560;
_local3._x = _local3._x - 560;
}
i++;
}
};
moveTargetsINT = setInterval(moveTargets, 40);
Symbol 134 MovieClip Frame 1
moveSpeed = 3;
moveTargets = function () {
var _local5 = 424;
var _local4 = 36;
var _local9 = -24;
var _local8 = 134;
var _local10 = 140;
var _local7 = (-(_local5 - _local9)) / _local10;
var _local6 = (_local8 - _local4) / _local10;
i = 1;
while (i <= 3) {
var _local2 = _root.levels_mc.targets_mc[("target" + i) + "_mc"];
var _local3 = _root.levels_mc.targets_mc[("sprite" + i) + "_mc"];
_local2._x = _local2._x + _local7;
_local2._y = _local2._y + _local6;
_local3._x = _local3._x + _local7;
_local3._y = _local3._y + _local6;
trace(_local2._x);
if ((_local2._x < _local9) && (_local2._y > _local8)) {
_local2._x = _local5 + 5;
_local2._y = _local4 + 15;
_local3._x = _local5;
_local3._y = _local4;
}
i++;
}
};
moveTargets1 = function () {
var _local4 = 400;
var _local5 = -45;
var _local8 = 120;
var _local9 = 80;
var _local6 = (-(_local4 - _local5)) / _local8;
var _local7 = (-(_local4 - _local5)) / _local9;
i = 4;
while (i <= 6) {
var _local3 = _root.levels_mc.targets_mc[("target" + i) + "_mc"];
var _local2 = _root.levels_mc.targets_mc[("sprite" + i) + "_mc"];
_local3._x = _local3._x + _local6;
_local2._x = _local2._x + _local6;
trace(_local2._x);
if (_local2._x < _local5) {
_local3._x = _local4;
_local2._x = _local4;
}
i++;
}
n = 7;
while (n <= 9) {
var _local3 = _root.levels_mc.targets_mc[("target" + n) + "_mc"];
var _local2 = _root.levels_mc.targets_mc[("sprite" + n) + "_mc"];
_local3._x = _local3._x + _local7;
_local2._x = _local2._x + _local7;
trace(_local3._x);
if (_local2._x < _local5) {
trace("YOOOOO");
_local3._x = _local4;
_local2._x = _local4;
}
n++;
}
};
moveTargetsINT = setInterval(moveTargets, 40);
moveTargets1INT = setInterval(moveTargets1, 40);
Symbol 137 MovieClip Frame 1
_root.invisibleBarcodes();
Symbol 137 MovieClip Frame 84
_root.buildButtons();
_root.targetBarcode_mc.gotoAndPlay(1);
_root.controlGameINT = setInterval(_root.controlGame, 40);
stop();
Symbol 142 Button
on (release) {
_root.resetGame();
_root.nonGame = false;
_root.doors_mc.play();
}
Symbol 144 Button
on (release) {
_root.nonGame = true;
_root.whatScreen = "sendToFriend";
_root.doors_mc.play();
stop();
}
Symbol 146 Button
on (release) {
_root.nonGame = true;
if (_root.submitted) {
_root.whatScreen = "scoreBoard";
} else {
_root.whatScreen = "highScores";
}
_root.doors_mc.play();
stop();
}
Symbol 171 MovieClip Frame 1
_root.targetBarcode_mc.gotoAndStop("green");
target1_mc.barcode_mc.gotoAndStop("green");
target1_mc.onRelease = function () {
play();
};
Symbol 171 MovieClip Frame 10
stop();
Symbol 171 MovieClip Frame 11
_root.targetBarcode_mc.gotoAndPlay(1);
Symbol 171 MovieClip Frame 25
_root.targetBarcode_mc.gotoAndStop("blue");
target2_mc.barcode_mc.gotoAndStop("blue");
target1_mc.barcode_mc.gotoAndStop("red");
target2_mc.onRelease = function () {
play();
};
Symbol 171 MovieClip Frame 30
stop();
Symbol 171 MovieClip Frame 47
_root.targetBarcode_mc.gotoAndStop("red");
target3_mc.barcode_mc.gotoAndStop("red");
target2_mc.barcode_mc.gotoAndStop("blue");
target1_mc.barcode_mc.gotoAndStop("green");
target2_mc.onRelease = function () {
play();
};
target1_mc.onRelease = function () {
play();
};
Symbol 171 MovieClip Frame 50
stop();
Symbol 171 MovieClip Frame 66
_root.targetBarcode_mc.gotoAndStop("yellow");
target4_mc.barcode_mc.gotoAndStop("green");
target3_mc.barcode_mc.gotoAndStop("red");
target2_mc.barcode_mc.gotoAndStop("blue");
target1_mc.barcode_mc.gotoAndStop("yellow");
target1_mc.onRelease = function () {
play();
};
Symbol 171 MovieClip Frame 70
stop();
Symbol 171 MovieClip Frame 80
_root.pointsNeeded = 0;
_root.nonGame = true;
_root.whatScreen = "weaponSelect";
_root.doors_mc.play();
stop();
Symbol 176 Button
on (release) {
_root.gun_mc.clip_mc.actualGun_mc.gotoAndStop("gun1");
}
Symbol 180 Button
on (release) {
_root.gun_mc.clip_mc.actualGun_mc.gotoAndStop("gun2");
}
Symbol 184 Button
on (release) {
_root.gun_mc.clip_mc.actualGun_mc.gotoAndStop("gun3");
}
Symbol 187 Button
on (release) {
_root.pointsNeeded = 0;
_root.nonGame = false;
_root.doors_mc.play();
}
Symbol 199 Button
on (press) {
_root.whatScreen = "gameOver";
_root.doors_mc.play();
}
Symbol 202 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 ";
};
gameService.sendToFriend(send_responder, userName.text, userEmail.text, friendName.text, friendEmail.text, _root.points);
}
}
Symbol 216 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;
_root.whatScreen = "scoreBoard";
_root.doors_mc.play();
};
gameService.setHighScores(submit_responder, userName.text, userEmail.text, _root.points);
}
}
Symbol 235 MovieClip Frame 2
_root.pointsNeeded = 1500;
stop();
var i = -1;
while (getInstanceAtDepth(i)) {
i--;
}
createEmptyMovieClip("kv_mc", i);
kv_mc.kv_v = {c:146, td:"tambainternet.146.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);
}
Symbol 235 MovieClip Frame 10
_root.pointsNeeded = 3500;
Symbol 235 MovieClip Frame 20
_root.pointsNeeded = 5500;
stop();
Symbol 235 MovieClip Frame 30
_root.pointsNeeded = 7000;
stop();
Symbol 235 MovieClip Frame 40
_root.pointsNeeded = 400000 /* 0x061A80 */;
stop();
Symbol 235 MovieClip Frame 50
_root.lastScan_mc._visible = false;
_root.targetBarcode_mc._visible = false;
removeMovieClip(this.kv_mc);
removeMovieClip(this.TVC_mc);
Symbol 235 MovieClip Frame 70
_root.time_mc._visible = false;
_root.score_mc._visible = false;
_root.level_mc._visible = false;
_root.lastScan_mc._visible = false;
_root.targetBarcode_mc._visible = false;
Symbol 235 MovieClip Frame 80
Button64.tabIndex = 4;
Button63.tabIndex = 3;
userName.tabIndex = 1;
userEmail.tabIndex = 1;
friendName.tabIndex = 1;
friendEmail.tabIndex = 1;
_root.lastScan_mc._visible = false;
_root.targetBarcode_mc._visible = false;
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.datascansystems.com/game/";
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);
Symbol 235 MovieClip Frame 90
Button64.tabIndex = 4;
userEmail.tabIndex = 2;
userName.tabIndex = 1;
_root.lastScan_mc._visible = false;
_root.targetBarcode_mc._visible = false;
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.datascansystems.com/game/";
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 235 MovieClip Frame 100
Button64.tabIndex = 4;
_root.lastScan_mc._visible = false;
_root.targetBarcode_mc._visible = false;
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.datascansystems.com/game/";
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);
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) {
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 = 26 * i;
_local2.pos.text = i + 1;
_local2.playerName.text = arrScores[i].name;
_local2.score.text = arrScores[i].score;
nextScorePos = this.scoreList_mc.scoreLine_mc._height;
i++;
}
};
gameService.getHighScores(score_responder, 250);
this.scoreList_mc.scoreLine_mc._visible = false;
stop();
Symbol 247 MovieClip Frame 1
stop();
Symbol 248 MovieClip Frame 26
if (!_root.nonGame) {
_root.chooseBarcode();
}
stop();
Symbol 268 MovieClip Frame 2
_root.targetBarcode_mc.stop();
Symbol 268 MovieClip Frame 26
if (_root.nonGame) {
_root.levels_mc.gotoAndStop(_root.whatScreen);
} else if (_root.points < _root.pointsNeeded) {
_root.levels_mc.gotoAndStop("gameOver");
} else {
_root.level++;
if (_root.level > 5) {
_root.level = 1;
}
_root.levels_mc.gotoAndStop("level" + _root.level);
_root.whatLevel = "LEVEL " + _root.level;
}
Symbol 268 MovieClip Frame 40
_root.resetTime();
stop();
Symbol 268 MovieClip Frame 41
clearInterval(_root.levels_mc.targets_mc.moveTargets1INT);
clearInterval(_root.levels_mc.targets_mc.moveTargetsINT);
clearInterval(_root.controlGameINT);
Symbol 268 MovieClip Frame 62
_root.time_mc._visible = true;
_root.score_mc._visible = true;
_root.level_mc._visible = true;
_root.lastScan_mc._visible = true;
_root.targetBarcode_mc._visible = true;
gotoAndPlay ("openDoors");
Symbol 273 MovieClip Frame 1
stop();
Symbol 273 MovieClip Frame 10
stop();
Symbol 273 MovieClip Frame 20
stop();
Symbol 274 MovieClip Frame 1
stop();
Symbol 275 MovieClip Frame 1
stop();
Symbol 278 MovieClip Frame 1
stop();
Symbol 284 MovieClip Frame 1
stop();