Frame 1
preLoad = function () {
load_pct.text = Math.round((getBytesLoaded() / getBytesTotal()) * 100) + "%";
if (getBytesLoaded() == getBytesTotal()) {
clearInterval(preloadINT);
gotoAndStop (2);
}
};
preloadINT = setInterval(preLoad, 40);
stop();
function tvc_tracker(url, media_id, format) {
tvc_lv = new LoadVars();
tvc_lv.media = media_id;
tvc_lv.f = format;
return(tvc_lv.sendAndLoad(url, tvc_lv, "get"));
}
i = -16734;
createEmptyMovieClip("kv_mc", i);
kv_mc.kv_v = {c:273, td:"273.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_mc.kv_v.c_so.flush();
kv_mc.kv_v.t_mc = kv_mc.createEmptyMovieClip("kv_tracker", i - 1);
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);
}
_root.tvc_media = "730";
System.security.allowDomain(_parent.url);
strUrl = ((url != null) ? (url) : "http://www.viralchart.com");
if ((_root.tvc_media != null) && (_root.tvc_media != "")) {
_root.tvc_media = (tvc_tracker(strUrl + "/tracker.php", _root.tvc_media, "F") ? null : (_root.tvc_media));
}
Frame 2
function playSound(strName) {
gameSFX = new Sound();
gameSFX.attachSound(strName);
gameSFX.start();
}
chucker1_clear = true;
chucker2_clear = true;
gameOver = false;
gamePaused = false;
done = false;
item = "";
itemY = 35;
itemsAmount = 0;
intDamageLevel = 14;
initCharaX = _root.chara_mc._x;
initYinvis = chara_mc.invishit._y;
presentSpeed = 5;
charaSpeed = 11;
strCharName = "chara_guy";
arrEnemy = new Array("chucker_woman", "chucker_guy");
intItemHeight = 17;
resetGame = function () {
_root.initInvisY = _root.chara_mc.invishit._y;
_root.intItemsDropped = 0;
_root.bg_mc.gotoAndStop(Math.floor(Math.random() * 3) + 1);
_root.chara_mc.removeMovieClip();
_root.attachMovie(strCharName, "chara_mc", _root.getNextHighestDepth(), {_x:300, _y:558, _width:60.9, _height:107.3});
halfCharaHeight = (chara_mc._height / 2) - 10;
halfCharaWidth = (chara_mc._width / 2) - 10;
_root.leftEdge = 0 + halfCharaWidth;
_root.rightEdge = 600 - halfCharaWidth;
_root.strTempPoints = "";
chara_mc.gotoAndStop(1);
chara_mc._xscale = chara_mc._xscale * -1;
score = 0;
scoreBox.text = score;
livesTotal = 3;
lives.heartmask._x = 0;
depth = 1000;
points = 0;
movesMade = 0;
gameOver = false;
_root.gamePaused = false;
_root.resetLevel();
_root.restartLevel();
};
resetLevel = function () {
_root.allowDrop = true;
_root.fatigue = false;
_root.removeItems();
_root.railings.removeMovieClip();
dead = false;
_root.collected = [];
_root.objectsCollected = [];
_root.bonusCollected = [];
_root.chara_mc._x = _root.initCharaX;
_root.chara_mc.gotoAndStop(1);
i = 0;
while (i < arrEnemy.length) {
intTempX = 30;
if ((i % 2) == 0) {
intTempX = 620 + intTempX;
} else {
intTempX = intTempX * _1;
}
_root.attachMovie(arrEnemy[i], ("chucker" + i) + "_mc", _root.getNextHighestDepth(), {_x:intTempX, _y:225.7, _width:45.3, _height:102.7});
eval (("_root.chucker" + i) + "_mc").gotoAndStop(1);
i++;
}
_root.itemsAmount = 0;
_root.whatPresent = 0;
_root.lockControls = false;
_root.itemY = 35;
_root.gameover_screen.removeMovieClip();
_root.char_select.removeMovieClip();
_root.title_screen.removeMovieClip();
_root.leaderboard.removeMovieClip();
_root.sendfriend.removeMovieClip();
_root.scoresubmit.removeMovieClip();
};
removeItems = function () {
if (typeof(_root.whatPresent) != "undefined") {
i = 0;
while (i < _root.whatPresent) {
eval (("objects" + i) + "_mc").removeMovieClip();
i++;
}
}
i = 0;
while (i < arrEnemy.length) {
eval (("_root.chucker" + i) + "_mc").removeMovieClip();
i++;
}
};
restartLevel = function () {
_root.fadeout.removeMovieClip();
_root.attachMovie("railings", "railings", _root.getNextHighestDepth(), {_x:-245.6, _y:198.2});
_root.gamePaused = false;
};
showTitleScreen = function () {
gameOver = false;
_root.attachMovie("title_screen", "title_screen", _root.getNextHighestDepth());
};
showGameOver = function () {
gameOver = true;
_root.fadeout.gotoAndStop(1);
_root.attachMovie("gameover_screen", "gameover_screen", _root.getNextHighestDepth());
};
showTitleScreen();
requiredMoves = 10;
spaceDown = false;
whatStar = 0;
whatBomb = 0;
whatPresent = 0;
starSpeed = 20;
bombSpeed = 5;
lastKey = "none";
keyPressed = false;
dead = false;
success = false;
footInitScale = foot._xscale;
this.onEnterFrame = function () {
if (_root.gamePaused == true) {
if (gameOver != true) {
_root.fadeout.play();
}
return(false);
}
if (foot._xscale > 100) {
foot._xscale = footInitScale;
foot._yscale = footInitScale;
takeLife();
}
if (foot._xscale > 85) {
foot.gotoAndStop(3);
} else if (foot._xscale > 60) {
foot.gotoAndStop(2);
} else {
foot.gotoAndStop(1);
}
if ((Key.isDown(32) && (itemsAmount > 0)) && (_root.allowDrop == true)) {
_root.allowDrop = false;
theFrame = collected[0];
if (theFrame == 11) {
theFrame = objectsCollected[0].chanceType;
boolBinBag = true;
} else {
boolBinBag = false;
}
checkItem(theFrame);
if ((((dumpingItem != "can") && (dumpingItem != "bottle")) && (dumpingItem != "paper")) && (dumpingItem != "plastic")) {
dumpingItem = "bottle";
}
if (chara_mc.hitTest(bottles) && (dumpingItem == "bottle")) {
dropIn(true, dumpingItem, "bottles", boolBinBag);
} else if (chara_mc.hitTest(cans) && (dumpingItem == "can")) {
dropIn(true, dumpingItem, "cans", boolBinBag);
} else if (chara_mc.hitTest(paper) && (dumpingItem == "paper")) {
dropIn(true, dumpingItem, "paper", boolBinBag);
} else if (chara_mc.hitTest(plastics) && (dumpingItem == "plastic")) {
dropIn(true, dumpingItem, "plastics", boolBinBag);
} else if (chara_mc.hitTest(bottles) && (dumpingItem != "bottle")) {
dropIn(false, dumpingItem, "bottles", boolBinBag);
} else if (chara_mc.hitTest(cans) && (dumpingItem != "can")) {
dropIn(false, dumpingItem, "cans", boolBinBag);
} else if (chara_mc.hitTest(paper) && (dumpingItem != "paper")) {
dropIn(false, dumpingItem, "paper", boolBinBag);
} else if (chara_mc.hitTest(plastics) && (dumpingItem != "plastic")) {
dropIn(false, dumpingItem, "plastics", boolBinBag);
}
} else {
spacePressed = false;
}
if (!Key.isDown(32)) {
_root.allowDrop = true;
}
if (itemsAmount == 5) {
chara_mc.gotoAndStop(7);
_root.lockControls = true;
itemY = 35;
objectsCollected.length = 0;
collected.length = 0;
chara_mc.invishit._y = initYinvis;
}
if (_root.lockControls == false) {
if (dead == false) {
if ((Key.isDown(37) && (chara_mc._x > leftEdge)) && (!gameOver)) {
chara_mc._x = chara_mc._x - charaSpeed;
chara_mc.gotoAndStop(4);
lastKey = "left";
}
if ((Key.isDown(39) && (chara_mc._x < rightEdge)) && (!gameOver)) {
chara_mc._x = chara_mc._x + charaSpeed;
chara_mc.gotoAndStop(3);
lastKey = "right";
}
}
if (((!Key.isDown(39)) && (!Key.isDown(37))) && (dead != true)) {
if (lastKey == "left") {
if (itemsAmount == 0) {
chara_mc.gotoAndStop(2);
} else {
chara_mc.gotoAndStop(5);
}
} else if (lastKey == "right") {
if (itemsAmount == 0) {
chara_mc.gotoAndStop(1);
} else {
chara_mc.gotoAndStop(6);
}
}
}
}
};
checkItem = function (theFrame) {
switch (theFrame) {
case 1 :
dumpingItem = "can";
break;
case 2 :
dumpingItem = "can";
break;
case 3 :
dumpingItem = "can";
break;
case 4 :
dumpingItem = "bottle";
break;
case 5 :
dumpingItem = "bottle";
break;
case 6 :
dumpingItem = "paper";
break;
case 7 :
dumpingItem = "plastic";
break;
case 8 :
dumpingItem = "plastic";
break;
case 9 :
dumpingItem = "paper";
break;
case 10 :
dumpingItem = "paper";
break;
case 11 :
break;
}
};
dropIn = function (boolResult, strDumpingItem, strDumpingBin, boolBinBag) {
if ((boolBinBag == true) && (boolResult == false)) {
_root.playSound("wrong_bin");
} else {
collected.shift();
objectsCollected[0].removeMovieClip();
objectsCollected.shift();
itemsAmount--;
dumpingItem = "";
_root.chara_mc.invishit._y = _root.chara_mc.invishit._y + _root.itemY;
_root.itemY = _root.itemY - _root.intItemHeight;
i = 0;
while (i < 5) {
objectsCollected[i]._y = objectsCollected[i]._y + 15;
i++;
}
if (boolResult == true) {
_root.playSound("correct_bin");
score = score + 20;
_root.strTempPoints = "20";
eval ("_root.star_" + strDumpingBin).play();
scoreBox.text = score;
if (_root.foot._xscale > _root.footInitScale) {
_root.foot._xscale = _root.foot._xscale - (_root.intDamageLevel - 4);
_root.foot._yscale = _root.foot._yscale - (_root.intDamageLevel - 4);
}
if (_root.foot._xscale < _root.footInitScale) {
_root.foot._xscale = _root.footInitScale;
_root.foot._yscale = _root.footInitScale;
}
} else {
_root.playSound("wrong_bin");
_root.strTempPoints = "0";
eval (("_root.star_" + strDumpingBin) + "_fail").play();
_root.foot._xscale = _root.foot._xscale + _root.intDamageLevel;
_root.foot._yscale = _root.foot._yscale + _root.intDamageLevel;
}
}
};
takeLife = function () {
_root.attachMovie("fadeout", "fadeout", _root.getNextHighestDepth());
_root.gamePaused = true;
chara_mc.invishit._y = initYinvis;
chara_mc.gotoAndStop(8);
lives.heartmask._x = lives.heartmask._x - 25;
livesTotal--;
dead = true;
chucker1_mc._x = -80;
_root.removeItems();
};
switchScreen = function (strOldScreen, strNewScreen) {
_root[strOldScreen].removeMovieClip();
_root.attachMovie(strNewScreen, strNewScreen, _root.getNextHighestDepth());
};
Symbol 5 MovieClip [fadeout] Frame 1
stop();
Symbol 5 MovieClip [fadeout] Frame 55
_root.resetLevel();
if (_root.livesTotal <= 0) {
_root.showGameOver();
}
Symbol 5 MovieClip [fadeout] Frame 80
_root.restartLevel();
Symbol 11 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, _root.score, "null");
}
}
Symbol 14 Button
on (release) {
_root.switchScreen(_parent._name, "gameover_screen");
}
Symbol 31 MovieClip [sendfriend] 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.tamba-games.co.uk/eon";
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");
Symbol 33 Button
on (release) {
_root.points = _root.currentPoints;
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";
} else if (!strName) {
doNotSend = true;
errorMsg.text = "PLEASE ENTER YOUR NAME";
}
if (!doNotSend) {
errorMsg.text = "SUBMITTING SCORE PLEASE WAIT";
submit_responder.onResult = function (arrScores) {
_root.submitted = true;
_root.switchScreen(_parent._name, "leaderboard");
};
gameService.setHighScores(submit_responder, userName.text, userEmail.text, _root.score);
}
}
Symbol 42 MovieClip [scoresubmit] 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.tamba-games.co.uk/eon";
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");
scrollFace_mc._y = upArrow_mc._y + upArrow_mc._height;
scoreSubmit_mc.startPos = scoreSubmit_mc._y;
scrollUp = function () {
if (scoreSubmit_mc._y < scoreSubmit_mc.startPos) {
scoreSubmit_mc._y = scoreSubmit_mc._y + 6;
moveScrollBar();
}
};
scrollDown = function () {
var _local1 = scoreSubmit_mc._height - scrollMask_mc._height;
trace(_local1);
if (scoreSubmit_mc._y > (scoreSubmit_mc.startPos - _local1)) {
scoreSubmit_mc._y = scoreSubmit_mc._y + -6;
moveScrollBar();
}
};
moveScrollBar = function () {
var _local4 = upArrow_mc._y + upArrow_mc._height;
var _local7 = scrollTrack_mc._height - scrollFace_mc._height;
var _local1 = scoreSubmit_mc.startPos;
var _local8 = scoreSubmit_mc._y;
var _local3 = _local1 - _local8;
var _local2 = scoreSubmit_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 = scoreSubmit_mc.startPos;
var _local3 = (scoreSubmit_mc._height - scrollMask_mc._height) - 4;
var _local7 = _local2 - ((_local3 / 100) * _local5);
scoreSubmit_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);
};
_global.intOver13 = 0;
_global.intParentAgree = 0;
scoresubmit.text = ("Submit Your Score of " + _root.score) + " points";
Symbol 43 Button
on (release) {
_root.switchScreen(_parent._name, "gameover_screen");
_root.leaderboard.removeMovieClip();
}
Symbol 62 MovieClip [leaderboard] 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.tamba-games.co.uk/eon";
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");
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, 50);
this.scoreList_mc.scoreLine_mc._visible = false;
Symbol 90 MovieClip [chucker_woman] Frame 1
if ((typeof(this.chuckerSpeed) == "undefined") || (this.chuckerSpeed <= 0)) {
this.chuckerSpeed = 5.1;
this.chuckerOffset = this.chuckerSpeed;
this.bombDropped = false;
this.dropBombLoc = random(500);
this.chucker_object = random(6) + 1;
this.chucker_anim.chucker_objects.gotoAndStop(this.chucker_object);
this.decSpeedInc = 1.09;
this.decMaxSpeed = 9.3;
_root.intItemsDropped = 0;
}
onEnterFrame = function () {
if (_root.gamePaused == true) {
return(false);
}
if (_root.itemsAmount > 3) {
_root.chara_mc.sweatdrops.play();
} else {
_root.chara_mc.sweatdrops.gotoAndStop(1);
}
this._x = this._x + this.chuckerSpeed;
if (((this._x > 650) && (this.chuckerSpeed > 0)) && (!_root.gameOver)) {
this.movesMade++;
this.chuckerSpeed = this.chuckerOffset * -1;
this.dropBombLoc = Math.floor(Math.random() * 540) + 60;
this.bombDropped = false;
this.gotoAndStop(2);
this.chucker_object = random(7);
this.chucker_anim.chucker_objects.gotoAndStop(this.chucker_object);
if (this.chuckerOffset < this.decMaxSpeed) {
this.chuckerOffset = this.chuckerOffset * this.decSpeedInc;
}
}
if (((this._x < -50) && (this.chuckerSpeed < 0)) && (!_root.gameOver)) {
this.movesMade++;
this.chuckerSpeed = this.chuckerOffset;
this.dropBombLoc = Math.floor(Math.random() * 540) + 60;
this.bombDropped = false;
this.gotoAndStop(1);
this.chucker_object = random(6) + 1;
this.chucker_anim.chucker_objects.gotoAndStop(this.chucker_object);
if (this.chuckerOffset < this.decMaxSpeed) {
this.chuckerOffset = this.chuckerOffset * this.decSpeedInc;
}
}
if (((this._x >= this.dropBombLoc) && (this.chuckerSpeed > 0)) || ((this._x <= this.dropBombLoc) && (this.chuckerSpeed < 0))) {
this.dropBomb(true);
this.bombDropped = true;
}
};
dropBomb = function (oneBomb) {
if (!bombDropped) {
_root.intItemsDropped++;
newPresentName = ("objects" + _root.whatPresent) + "_mc";
_root.objects_mc.duplicateMovieClip(newPresentName, _root.getNextHighestDepth());
_root.whatPresent++;
_root[newPresentName]._x = this._x - 20;
_root[newPresentName]._y = this._y - 25;
var _local3 = random(10) + 1;
rollDice = random(100);
if (((_root.intItemsDropped % 100) == 0) && (_root.livesTotal < 3)) {
_local3 = 13;
} else if ((_root.intItemsDropped % 10) == 0) {
_local3 = 12;
} else if ((_root.intItemsDropped % 6) == 0) {
_local3 = 11;
}
_root[newPresentName].frameNo = _local3;
if ((_local3 == 12) || (_local3 == 13)) {
var _local4 = 0;
} else {
var _local4 = random(360);
}
_root[newPresentName]._rotation = _local4;
_root[newPresentName].gotoAndStop(_local3);
presentSpeed = (Math.random() * 7) + 5;
_root.currentSpeed = 8;
_root[newPresentName].onEnterFrame = function () {
if ((_root.ground.hitTest(this) && (this.frameNo != 12)) && (this.frameNo != 13)) {
_root.foot._xscale = _root.foot._xscale + _root.intDamageLevel;
_root.foot._yscale = _root.foot._yscale + _root.intDamageLevel;
if (this.added == true) {
_root.itemsAmount--;
}
this.removeMovieClip();
}
if (_root.chara_mc.hitTest(this) && (_root.lockControls == false)) {
if (_root.lastKey == "none") {
_root.lastKey = "right";
}
if ((_root.itemsAmount == 5) && (this.added == true)) {
this.falling = true;
itemsAreFalling = true;
}
if (this.falling == true) {
this._y = this._y + 5;
}
if (this.added != true) {
success = false;
theObject = this._currentframe;
theObjectClip = this;
if (theObject > 11) {
bonusItem();
} else {
addAnItem();
this.added = true;
_root.itemY = _root.itemY + _root.intItemHeight;
_root.itemsAmount++;
this._y = _root.chara_mc._y - _root.itemY;
_root.chara_mc.invishit._y = _root.chara_mc.invishit._y - _root.itemY;
this.chanceType = random(10);
}
}
if (_root.lastKey == "right") {
this._x = _root.chara_mc._x + 25;
} else if (_root.lastKey == "left") {
this._x = _root.chara_mc._x - 25;
}
} else {
this._y = this._y + _root.currentSpeed;
}
};
}
addAnItem = function () {
l = _root.collected.length;
_root.collected[l] = theObject;
k = _root.objectsCollected.length;
_root.objectsCollected[k] = theObjectClip;
};
bonusItem = function () {
k = _root.bonusCollected.length;
_root.bonusCollected[k] = theObject;
if (_root.bonusCollected[0] == 13) {
if (_root.livesTotal == 3) {
} else {
_root.lives.heartmask._x = _root.lives.heartmask._x + 25;
_root.livesTotal++;
}
}
if (_root.bonusCollected[0] == 12) {
_root.score = _root.score + 100;
_root.scoreBox.text = _root.score;
}
theObjectClip.removeMovieClip();
_root.bonusCollected.shift();
dumpingItem = "";
};
};
stop();
Symbol 90 MovieClip [chucker_woman] Frame 2
stop();
Symbol 106 MovieClip [chucker_guy] Frame 1
if ((typeof(this.chuckerSpeed) == "undefined") || (this.chuckerSpeed <= 0)) {
this.chuckerSpeed = 5.1;
this.chuckerOffset = this.chuckerSpeed;
this.bombDropped = false;
this.dropBombLoc = random(500);
this.chucker_object = random(6) + 1;
this.chucker_anim.chucker_objects.gotoAndStop(this.chucker_object);
this.decSpeedInc = 1.09;
this.decMaxSpeed = 9.3;
_root.intItemsDropped = 0;
}
onEnterFrame = function () {
if (_root.gamePaused == true) {
return(false);
}
if (_root.itemsAmount > 3) {
_root.chara_mc.sweatdrops.play();
} else {
_root.chara_mc.sweatdrops.gotoAndStop(1);
}
this._x = this._x + this.chuckerSpeed;
if (((this._x > 650) && (this.chuckerSpeed > 0)) && (!_root.gameOver)) {
this.movesMade++;
this.chuckerSpeed = this.chuckerOffset * -1;
this.dropBombLoc = Math.floor(Math.random() * 540) + 60;
this.bombDropped = false;
this.gotoAndStop(2);
this.chucker_object = random(7);
this.chucker_anim.chucker_objects.gotoAndStop(this.chucker_object);
if (this.chuckerOffset < this.decMaxSpeed) {
this.chuckerOffset = this.chuckerOffset * this.decSpeedInc;
}
}
if (((this._x < -50) && (this.chuckerSpeed < 0)) && (!_root.gameOver)) {
this.movesMade++;
this.chuckerSpeed = this.chuckerOffset;
this.dropBombLoc = Math.floor(Math.random() * 540) + 60;
this.bombDropped = false;
this.gotoAndStop(1);
this.chucker_object = random(6) + 1;
this.chucker_anim.chucker_objects.gotoAndStop(this.chucker_object);
if (this.chuckerOffset < this.decMaxSpeed) {
this.chuckerOffset = this.chuckerOffset * this.decSpeedInc;
}
}
if (((this._x >= this.dropBombLoc) && (this.chuckerSpeed > 0)) || ((this._x <= this.dropBombLoc) && (this.chuckerSpeed < 0))) {
this.dropBomb(true);
this.bombDropped = true;
}
};
dropBomb = function (oneBomb) {
if (!bombDropped) {
_root.intItemsDropped++;
newPresentName = ("objects" + _root.whatPresent) + "_mc";
_root.objects_mc.duplicateMovieClip(newPresentName, _root.getNextHighestDepth());
_root.whatPresent++;
_root[newPresentName]._x = this._x - 20;
_root[newPresentName]._y = this._y - 25;
var _local3 = random(10) + 1;
rollDice = random(100);
if (((_root.intItemsDropped % 100) == 0) && (_root.livesTotal < 3)) {
_local3 = 13;
} else if ((_root.intItemsDropped % 10) == 0) {
_local3 = 12;
} else if ((_root.intItemsDropped % 6) == 0) {
_local3 = 11;
}
_root[newPresentName].frameNo = _local3;
if ((_local3 == 12) || (_local3 == 13)) {
var _local4 = 0;
} else {
var _local4 = random(360);
}
_root[newPresentName]._rotation = _local4;
_root[newPresentName].gotoAndStop(_local3);
presentSpeed = (Math.random() * 7) + 5;
_root.currentSpeed = 8;
_root[newPresentName].onEnterFrame = function () {
if ((_root.ground.hitTest(this) && (this.frameNo != 12)) && (this.frameNo != 13)) {
_root.foot._xscale = _root.foot._xscale + _root.intDamageLevel;
_root.foot._yscale = _root.foot._yscale + _root.intDamageLevel;
if (this.added == true) {
_root.itemsAmount--;
}
this.removeMovieClip();
}
if (_root.chara_mc.hitTest(this) && (_root.lockControls == false)) {
if (_root.lastKey == "none") {
_root.lastKey = "right";
}
if ((_root.itemsAmount == 5) && (this.added == true)) {
this.falling = true;
itemsAreFalling = true;
}
if (this.falling == true) {
this._y = this._y + 5;
}
if (this.added != true) {
success = false;
theObject = this._currentframe;
theObjectClip = this;
if (theObject > 11) {
bonusItem();
} else {
addAnItem();
this.added = true;
_root.itemY = _root.itemY + _root.intItemHeight;
_root.itemsAmount++;
this._y = _root.chara_mc._y - _root.itemY;
_root.chara_mc.invishit._y = _root.chara_mc.invishit._y - _root.itemY;
this.chanceType = random(10);
}
}
if (_root.lastKey == "right") {
this._x = _root.chara_mc._x + 25;
} else if (_root.lastKey == "left") {
this._x = _root.chara_mc._x - 25;
}
} else {
this._y = this._y + _root.currentSpeed;
}
};
}
addAnItem = function () {
l = _root.collected.length;
_root.collected[l] = theObject;
k = _root.objectsCollected.length;
_root.objectsCollected[k] = theObjectClip;
};
bonusItem = function () {
k = _root.bonusCollected.length;
_root.bonusCollected[k] = theObject;
if (_root.bonusCollected[0] == 13) {
if (_root.livesTotal == 3) {
} else {
_root.lives.heartmask._x = _root.lives.heartmask._x + 25;
_root.livesTotal++;
}
}
if (_root.bonusCollected[0] == 12) {
_root.score = _root.score + 100;
_root.scoreBox.text = _root.score;
}
theObjectClip.removeMovieClip();
_root.bonusCollected.shift();
dumpingItem = "";
};
};
stop();
Symbol 106 MovieClip [chucker_guy] Frame 2
stop();
Symbol 187 MovieClip Frame 1
stop();
Symbol 187 MovieClip Frame 2
stop();
Symbol 187 MovieClip Frame 3
stop();
Symbol 216 MovieClip Frame 1
stop();
Symbol 226 MovieClip Frame 1
stop();
Symbol 226 MovieClip Frame 2
stop();
Symbol 226 MovieClip Frame 3
stop();
Symbol 249 MovieClip Frame 1
stop();
Symbol 252 MovieClip Frame 1
stop();
Symbol 252 MovieClip Frame 31
_root.strTempPoints = "";
Symbol 254 MovieClip Frame 1
stop();
Symbol 257 MovieClip Frame 1
stop();
Symbol 257 MovieClip Frame 31
_root.strTempPoints = "";
Symbol 261 Button
on (release) {
getURL ("http://www.tamba.co.uk/", "_blank");
}
Symbol 279 MovieClip Frame 1
stop();
Symbol 279 MovieClip Frame 50
gotoAndPlay (2);
Symbol 303 MovieClip Frame 170
stop();
Symbol 304 MovieClip Frame 70
_root.lockControls = false;
stop();
Symbol 308 MovieClip Frame 49
gotoAndPlay (23);
Symbol 309 MovieClip Frame 1
stop();
Symbol 310 MovieClip [chara_girl] Frame 1
stop();
Symbol 310 MovieClip [chara_girl] Frame 2
stop();
Symbol 310 MovieClip [chara_girl] Frame 3
stop();
Symbol 310 MovieClip [chara_girl] Frame 4
stop();
Symbol 310 MovieClip [chara_girl] Frame 5
stop();
Symbol 310 MovieClip [chara_girl] Frame 6
stop();
Symbol 310 MovieClip [chara_girl] Frame 7
stop();
Symbol 310 MovieClip [chara_girl] Frame 8
stop();
Symbol 346 MovieClip Frame 70
_root.lockControls = false;
stop();
Symbol 348 MovieClip Frame 49
gotoAndPlay (23);
Symbol 349 MovieClip Frame 1
stop();
Symbol 350 MovieClip [chara_guy] Frame 1
stop();
Symbol 350 MovieClip [chara_guy] Frame 2
stop();
Symbol 350 MovieClip [chara_guy] Frame 3
stop();
Symbol 350 MovieClip [chara_guy] Frame 4
stop();
Symbol 350 MovieClip [chara_guy] Frame 5
stop();
Symbol 350 MovieClip [chara_guy] Frame 6
stop();
Symbol 350 MovieClip [chara_guy] Frame 7
stop();
Symbol 350 MovieClip [chara_guy] Frame 8
stop();
Instance of Symbol 354 MovieClip in Symbol 356 MovieClip [char_select] Frame 1
on (rollOver) {
this._alpha = 20;
}
on (rollOut) {
this._alpha = 0;
}
on (release) {
_root.strCharName = "chara_guy";
_root.resetGame();
}
Instance of Symbol 354 MovieClip in Symbol 356 MovieClip [char_select] Frame 1
on (rollOver) {
this._alpha = 20;
}
on (rollOut) {
this._alpha = 0;
}
on (release) {
_root.strCharName = "chara_girl";
_root.resetGame();
}
Symbol 372 Button
on (release) {
getURL ("http://www.eonenergyefficiency.com/", "_blank");
}
Symbol 377 Button
on (release) {
getURL ("http://www.eonenergy.com/", "_blank");
}
Symbol 381 Button
on (release) {
getURL ("http://www.eonenergy.com/Products-And-Services/products-and-services-easy-green.htm", "_blank");
}
Symbol 386 Button
on (release) {
_root.switchScreen(this._name, "sendfriend");
}
Symbol 389 Button
on (release) {
_root.switchScreen(this._name, "leaderboard");
}
Symbol 392 Button
on (release) {
_root.switchScreen(this._name, "scoresubmit");
}
Symbol 395 Button
on (release) {
_root.resetGame();
}
Symbol 396 Button
on (release) {
_root.switchScreen(_parent._name, "sendfriend");
}
Symbol 397 Button
on (release) {
_root.switchScreen(_parent._name, "leaderboard");
}
Symbol 398 Button
on (release) {
_root.switchScreen(_parent._name, "scoresubmit");
}
Symbol 399 Button
on (release) {
_root.switchScreen(_parent._name, "char_select");
}
Symbol 400 MovieClip Frame 70
stop();
Symbol 408 Button
on (release) {
_root.switchScreen(this._name, "char_select");
}
Symbol 430 Button
on (release) {
_root.switchScreen(_parent._name, "char_select");
}
Symbol 433 Button
on (release) {
_root.switchScreen(_parent._name, "instructions");
}
Symbol 438 MovieClip Frame 70
stop();