Frame 1
function sitelock(urls_allowed) {
lock = true;
domain_parts = _url.split("://");
real_domain = domain_parts[1].split("/");
domain.text = real_domain[0];
for (x in urls_allowed) {
if (urls_allowed[x] == real_domain[0]) {
lock = false;
}
}
if (lock) {
lockme = true;
showAds();
fakeBox._visible = false;
}
}
function showAds() {
trace("showing");
var _local1 = "4820ZA3350D47";
System.security.allowDomain("server.cpmstar.com");
adBox.loadMovie("http://server.cpmstar.com/adviewas2.swf?contentspotid=" + _local1);
}
urls_allowed = ["www.flashgamelicense.com", "flashgamelicense.com", "www8.agame.com", "3.xiaoyouxi.cn", "files.game.com.cn", "files.game.asia", "www.addictinggames.com", "addictinggames.com"];
sitelock(urls_allowed);
function EncrpytString(strVal) {
var _local7 = "aHfEjcDebChGiAfIjDbEjacD";
var _local8 = _local7.length;
var _local11 = "0";
var _local3 = "";
var _local9 = strVal.length;
var _local1 = 0;
_local3 = "";
var _local4;
var _local6;
var _local2;
var _local5 = 0;
nCnt = 0;
while (nCnt < _local9) {
_local4 = strVal.charCodeAt(nCnt);
if (_local4 >= 128) {
_local4 = "X";
}
_local6 = _local7.charCodeAt(_local1);
_local1 = _local1 + 1;
if (_local1 >= _local8) {
_local1 = 0;
}
_local2 = (_local4 % 16) + _local6;
_local3 = _local3 + String.fromCharCode(_local2);
_local5 = _local5 + _local2;
_local6 = _local7.charCodeAt(_local1);
_local1 = _local1 + 1;
if (_local1 >= _local8) {
_local1 = 0;
}
_local2 = Math.floor(_local4 / 16) + _local6;
_local3 = _local3 + String.fromCharCode(_local2);
_local5 = _local5 + _local2;
nCnt++;
}
_local5 = _local5 % 256;
_local6 = _local7.charCodeAt(_local1);
_local1 = _local1 + 1;
if (_local1 >= _local8) {
_local1 = 0;
}
_local2 = (_local5 % 16) + _local6;
_local3 = _local3 + String.fromCharCode(_local2);
_local6 = _local7.charCodeAt(_local1);
_local1 = _local1 + 1;
if (_local1 >= _local8) {
_local1 = 0;
}
_local2 = Math.floor(_local5 / 16) + _local6;
_local3 = _local3 + String.fromCharCode(_local2);
return(_local3);
}
function GetUrlParam(strUrl, strParam) {
var _local4 = strUrl.toLowerCase();
var _local1 = _local4.indexOf(strParam);
var _local5 = strParam.length;
if (_local1 > 0) {
var _local3;
var _local2 = _local4.indexOf("&", _local1 + _local5);
if (_local2 > 0) {
_local3 = _local2 - _local1;
} else {
_local3 = strUrl.length - _local1;
}
return(strUrl.substr(_local1 + _local5, _local3));
}
return("");
}
function GetBaseUrl(strUrl) {
var _local1 = strUrl.toLowerCase();
var _local2 = _local1.length;
var _local3 = _local1.indexOf("?", 0);
if (_local3 > 0) {
_local2 = _local3;
}
var _local4 = "download";
if (_local1.substr(0, 4) == "http") {
_local4 = strUrl.substr(7, _local2 - 7);
}
return(_local4);
}
function groundscore(urls_newgrounds) {
newGrounds = false;
domain_ground = _url.split("://");
real_domain_ground = domain_ground[1].split("/");
domainground.text = real_domain_ground[0];
for (x in urls_newgrounds) {
if (urls_newgrounds[x] == real_domain_ground[0]) {
newGrounds = true;
}
}
if (newGrounds) {
trace("newgroundson");
} else {
trace("offMindground");
}
}
urls_newgrounds = ["www.newgrounds.com", "newgrounds.com", "dump.newgrounds.com"];
groundscore(urls_newgrounds);
var blipsound = new Sound();
blipsound.attachSound("blipsound");
pressedonce2 = false;
bellTop2 = 600;
onEnterFrame = function () {
if (Key.isDown(32)) {
if (!pressedonce2) {
stopAllSounds();
gotoAndStop (2);
_root.blipsound.start(0, 1);
pressedonce2 = true;
}
} else {
pressedonce2 = false;
}
};
mochi.as2.MochiServices.connect("4fd1e5cb3f50a232");
function onEnterFrame() {
percentage = Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * 100) + "%";
if (((_root.getBytesLoaded() / _root.getBytesTotal()) >= 1) && (timer <= 0)) {
clearInterval(countdownInterval);
delete this.onEnterFrame;
loadingbox._visible = true;
playbtn._visible = true;
}
}
loadingbox._visible = false;
playbtn._visible = false;
stop();
timer = 10;
countdown = function () {
timer--;
if (timer == 0) {
clearInterval(countdownInterval);
}
};
countdownInterval = setInterval(countdown, 1000);
Instance of Symbol 98 MovieClip in Frame 1
onClipEvent (load) {
this.tabEnabled = false;
if (_root.lockme) {
this.enabled = true;
} else {
this.enabled = false;
}
if (_root.newGrounds) {
this.gotoAndStop(4);
}
}
on (release) {
if (_root.newGrounds) {
getURL ("http://www.newgrounds.com/", "_blank");
} else {
getURL ("http://www.arcadetown.com/index.asp?gameid=samurairun", "_blank");
}
}
Instance of Symbol 149 MovieClip "arcadetownsplash" in Frame 1
onClipEvent (load) {
this.tabEnabled = false;
}
on (release) {
getURL ("http://www.arcadetown.com/index.asp?gameid=samurairun", "_blank");
}
Frame 2
normalon = false;
easyon = false;
var choosesound = new Sound();
choosesound.attachSound("choosesound");
var eatsound = new Sound();
eatsound.attachSound("eatsound");
var stabsound = new Sound();
stabsound.attachSound("stabsound");
var chargesound = new Sound();
chargesound.attachSound("chargesound");
var fireballsound = new Sound();
fireballsound.attachSound("fireballsound");
var stormambience = new Sound();
stormambience.attachSound("stormambience");
stop();
i = 0;
while (i < (bellTotal + 99)) {
_root.bellHolder["bell" + i].removeMovieClip();
i++;
}
g = 0;
while (g < (bellTotal2 + 99)) {
_root.bellHolder["bellb" + g].removeMovieClip();
g++;
}
h = 0;
while (h < (bellTotal3 + 99)) {
_root.bellHolder["bellc" + h].removeMovieClip();
h++;
}
j = 0;
while (j < (bellTotal4 + 99)) {
_root.bellHolder["belld" + j].removeMovieClip();
j++;
}
k = 0;
while (k < (bellTotal5 + 99)) {
_root.bellHolder["belle" + k].removeMovieClip();
k++;
}
n = 0;
while (n < (totalBgShapes + 99)) {
_root.bellHolder["bellf" + n].removeMovieClip();
n++;
}
onEnterFrame = function () {
if (Key.isDown(88)) {
getURL ("http://www.arcadetown.com/samurairun/view_high_scores.asp", "_blank");
}
if (Key.isDown(32)) {
if (!pressedonce2) {
gotoAndStop (3);
_root.blipsound.start(0, 1);
pressedonce2 = true;
}
} else {
pressedonce2 = false;
}
};
this.onEnterFrame = function () {
if (mindJolt) {
viewhiscores._visible = false;
}
};
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
var pv;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
pv = ((fv == 5) ? (getVersion()) : (System.capabilities.version));
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=8&fv=") + fv) + "&v=") + escape(pv)) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
__com_mochibot__("f92e5aee", this, 10301, true);
Instance of Symbol 98 MovieClip in Frame 2
onClipEvent (load) {
this.tabEnabled = false;
if (_root.lockme) {
this.enabled = true;
} else {
this.enabled = false;
}
if (_root.newGrounds) {
this.gotoAndStop(2);
}
}
on (release) {
if (_root.newGrounds) {
getURL ("http://www.newgrounds.com/", "_blank");
} else {
getURL ("http://www.arcadetown.com/index.asp?gameid=samurairun", "_blank");
}
}
Instance of Symbol 168 MovieClip in Frame 2
onClipEvent (load) {
this.tabEnabled = false;
}
on (release) {
getURL ("http://www.astiggames.com/", "_blank");
}
Instance of Symbol 173 MovieClip "viewhiscores" in Frame 2
on (rollOver) {
this.gotoAndStop(2);
_root.choosesound.start(0, 1);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (releaseOutside) {
this.gotoAndStop(1);
}
on (release) {
getURL ("http://www.arcadetown.com/samurairun/view_high_scores.asp", "_blank");
}
Frame 3
stop();
normalselected = true;
pressedonce4 = false;
onEnterFrame = function () {
if (Key.isDown(32)) {
if (!pressedonce2) {
stopAllSounds();
_root.blipsound.start(0, 1);
if (normalselected) {
gotoAndStop (4);
}
if (!normalselected) {
gotoAndStop (5);
}
pressedonce2 = true;
}
} else {
pressedonce2 = false;
}
if (Key.isDown(39)) {
if (!pressedonce3) {
_root.select_mc.gotoAndStop(3);
pressedonce3 = true;
_root.choosesound.start(0, 1);
normalselected = false;
_root.infointro = "Use Up and Down Arrow Keys to play. Press Spacebar to do a Dash Attack (unlimited). Does -50% Damage. Keep on running over enemies to win.";
}
} else {
pressedonce3 = false;
}
if (Key.isDown(37)) {
if (!pressedonce4) {
_root.select_mc.gotoAndStop(2);
_root.choosesound.start(0, 1);
pressedonce4 = true;
normalselected = true;
_root.infointro = "Use Up and Down Arrow Keys to play. Collect 5 Blue Orbs and press Spacebar to do a dash attack. Keep on running over enemies to win.";
}
} else {
pressedonce4 = false;
}
};
Instance of Symbol 205 MovieClip in Frame 3
on (rollOver) {
_root.choosesound.start(0, 1);
_root.select_mc.gotoAndStop(2);
_root.normalselected = true;
}
on (release) {
stopAllSounds();
_root.blipsound.start(0, 1);
_root.gotoAndStop(4);
}
Instance of Symbol 210 MovieClip in Frame 3
on (rollOver) {
_root.choosesound.start(0, 1);
_root.select_mc.gotoAndStop(3);
_root.normalselected = false;
}
on (release) {
stopAllSounds();
_root.blipsound.start(0, 1);
_root.gotoAndStop(5);
}
Frame 4
function submitHighscore() {
var _local3 = {n:[5, 13, 5, 4, 6, 1, 12, 12, 5, 14, 2, 9, 8, 8, 15, 7], f:function (i, s) {
if (s.length == 16) {
return(s);
}
return(this.f(i + 1, s + this.n[i].toString(16)));
}};
var _local4 = _local3.f(0, "");
mochi.as2.MochiScores.showLeaderboard({boardID:_local4, score:_root.score});
}
returntotitle.onEnterFrame = function () {
if (Key.isDown(27)) {
_root.mcMain.removeMovieClip();
stopAllSounds();
_root.gameexited = true;
_root.bellTop2 = _root.bellTop;
i = 0;
while (i < (bellTotal + 99)) {
_root.bellHolder["bell" + i].removeMovieClip();
i++;
}
g = 0;
while (g < (bellTotal2 + 99)) {
_root.bellHolder["bellb" + g].removeMovieClip();
g++;
}
h = 0;
while (h < (bellTotal3 + 99)) {
_root.bellHolder["bellc" + h].removeMovieClip();
h++;
}
j = 0;
while (j < (bellTotal4 + 99)) {
_root.bellHolder["belld" + j].removeMovieClip();
j++;
}
k = 0;
while (k < (bellTotal5 + 99)) {
_root.bellHolder["belle" + k].removeMovieClip();
k++;
}
n = 0;
while (n < (totalBgShapes + 99)) {
_root.bellHolder["bellf" + n].removeMovieClip();
n++;
}
o = 0;
while (o < (totalBgShapes + 99)) {
bellHolder["bird" + o].removeMovieClip();
o++;
}
bellHolder["txt" + this._name].removeMovieClip();
_root.gotoAndStop(2);
}
};
function fadeInSound() {
if (bgsound.getVolume() > 0) {
bgsound.setVolume(_root.bgsound.getVolume() - 10);
} else {
clearInterval(nIntervalk);
}
}
function mainJump() {
if (mainJumping) {
if (jumpSpeed < 0) {
jumpSpeed = jumpSpeed * (1 - (jumpSpeedLimit / 143));
if (jumpSpeed > ((-jumpSpeedLimit) * 0.1)) {
jumpSpeed = jumpSpeed * -1;
mcMain.gotoAndStop(1);
if (rideon) {
mcMain.gotoAndStop(5);
}
}
}
if ((jumpSpeed > 0) && (jumpSpeed <= jumpSpeedLimit)) {
jumpSpeed = jumpSpeed * (1 + (jumpSpeedLimit / 273));
}
mcMain._x = mcMain._x - jumpSpeed;
if ((mcMain._x <= (mcMain._width / 2)) && (totalHeight <= (Stage.width - mcMain._width))) {
if (!gameexited) {
mainJumping = false;
footHolder._x = footHolder._x - 175;
if (!startedJumping) {
mcMain._x = mcMain._width / 2;
}
bounceonce = true;
if (startedJumping) {
gameOver = true;
mcBg.stop();
footdeath.gotoAndStop(2);
mcMain.gotoAndStop(4);
showFinalStats();
nInterval = setInterval(fadeInSound, 100);
mcBg.stormbring.gotoAndStop(1);
comboholder._visible = false;
scoreInc = 2;
if (level2on && (!level4on)) {
infotxt = "Manage your timing and conserve Dash Attacks.";
}
}
}
}
totalHeight = totalHeight + jumpSpeed;
}
if (mcMain._y > 387.5) {
mcMain._y = 387.5;
}
if (mcMain._x >= 575) {
mcMain._x = 575;
}
}
function makeLvl() {
bellTime++;
bellTime2++;
bellTime3++;
bellTime4++;
bellTime5++;
bellTime6++;
if (!enemy1passed) {
if (bellTime >= bellLimit) {
bellTotal++;
bellHolder.attachMovie("mcBell", "bell" + bellTotal, bellHolder.getNextHighestDepth());
if (bellTotal == 1) {
bellHolder["bell" + bellTotal]._y = Math.floor(Math.random() * 256) + 120;
} else {
bellHolder["bell" + bellTotal]._y = (bellHolder["bell" + (bellTotal - 1)]._y + (Math.random() * 500)) - 200;
if (bellHolder["bell" + bellTotal]._y > 375) {
bellHolder["bell" + bellTotal]._y = bellHolder["bell" + bellTotal]._y - 250;
} else if (bellHolder["bell" + bellTotal]._y < 80) {
bellHolder["bell" + bellTotal]._y = bellHolder["bell" + bellTotal]._y + 250;
}
}
bellHolder["bell" + bellTotal]._x = bellTop;
bellHolder["bell" + bellTotal].onEnterFrame = function () {
this._x = this._x - 7;
if (this.hitTest(mcMain)) {
if (!firstclick2) {
infotxt2 = "";
infotxt = "Keep doing combos to rack up your combo damage!";
firstclick2 = true;
}
_root.mainJumping = true;
if (rideon) {
mcMain.gotoAndStop(6);
} else {
mcMain.gotoAndStop(3);
}
bounceonce = true;
_root.stabsound.start(0, 1);
comboholder._visible = true;
comboholder.combohit.gotoAndPlay(2);
jumpSpeed = jumpSpeedLimit * -1;
if (level4on) {
_root.scoreInc = 250;
_root.score = _root.score + scoreInc;
bellHolder.attachMovie("mcScoreAdd", "txt" + this._name, bellHolder.getNextHighestDepth());
bellHolder["txt" + this._name]._x = this._x;
bellHolder["txt" + this._name]._y = this._y;
bellHolder["txt" + this._name].txtScore.text = _root.scoreInc;
} else {
_root.score = _root.score + 2;
bellHolder.attachMovie("mcScoreAdd", "txt" + this._name, bellHolder.getNextHighestDepth());
bellHolder["txt" + this._name]._x = this._x;
bellHolder["txt" + this._name]._y = this._y;
bellHolder["txt" + this._name].txtScore.text = 2;
}
startedJumping = true;
if (!footcoming) {
footcoming = true;
firstattack.gotoAndPlay(2);
}
this.removeMovieClip();
}
if ((this._x <= 0) && (totalHeight <= (Stage.width - this._width))) {
this.removeMovieClip();
}
if (_root.gameOver) {
this.removeMovieClip();
}
};
bellTime = 0;
}
}
if ((!enemy2passed) && (level2on)) {
if (bellTime2 >= bellLimit2) {
bellTotal2++;
bellHolder.attachMovie("mcBellb_mc", "bellb" + bellTotal2, bellHolder.getNextHighestDepth());
if (bellTotal == 1) {
infotxt = "Blue orcs increase gives bonus combo per hit!";
bellHolder["bellb" + bellTotal2]._y = Math.floor(Math.random() * 256) + 120;
} else {
bellHolder["bellb" + bellTotal2]._y = (bellHolder["bellb" + (bellTotal2 - 1)]._y + (Math.random() * 500)) - 250;
if (bellHolder["bellb" + bellTotal2]._y > 375) {
bellHolder["bellb" + bellTotal2]._y = bellHolder["bellb" + bellTotal2]._y - 250;
} else if (bellHolder["bellb" + bellTotal2]._y < 80) {
bellHolder["bellb" + bellTotal2]._y = bellHolder["bellb" + bellTotal2]._y + 250;
}
}
bellHolder["bellb" + bellTotal2]._x = bellTop;
bellHolder["bellb" + bellTotal2].onEnterFrame = function () {
this._x = this._x - 4;
if (this._x <= 0) {
this.removeMovieClip();
}
if (this.hitTest(mcMain)) {
_root.mainJumping = true;
mcMain.gotoAndStop(3);
comboholder._visible = true;
_root.stabsound.start(0, 1);
comboholder.combohit.gotoAndPlay(2);
bounceonce = true;
jumpSpeed = jumpSpeedLimit * -1;
_root.scoreInc = 5;
_root.score = _root.score + scoreInc;
bellHolder.attachMovie("mcScoreAdd", "txt" + this._name, bellHolder.getNextHighestDepth());
bellHolder["txt" + this._name]._x = this._x;
bellHolder["txt" + this._name]._y = this._y;
bellHolder["txt" + this._name].txtScore.text = _root.scoreInc;
startedJumping = true;
this.removeMovieClip();
}
if ((this._x <= 0) && (totalHeight <= (Stage.width - this._width))) {
this.removeMovieClip();
}
if (_root.gameOver) {
this.removeMovieClip();
}
};
bellTime2 = 0;
}
}
if (level3on && (!level4on)) {
if (bellTime3 >= bellLimit3) {
bellTotal3++;
bellHolder.attachMovie("mcBellc_mc", "bellc" + bellTotal3, bellHolder.getNextHighestDepth());
if (bellTotal == 1) {
bellHolder["bellc" + bellTotal3]._y = Math.floor(Math.random() * 256) + 120;
} else {
bellHolder["bellc" + bellTotal3]._y = (bellHolder["bellc" + (bellTotal3 - 1)]._y + (Math.random() * 500)) - 250;
if (bellHolder["bellc" + bellTotal3]._y > 375) {
bellHolder["bellc" + bellTotal3]._y = bellHolder["bellc" + bellTotal3]._y - 250;
} else if (bellHolder["bellc" + bellTotal3]._y < 80) {
bellHolder["bellc" + bellTotal3]._y = bellHolder["bellc" + bellTotal3]._y + 250;
}
}
bellHolder["bellc" + bellTotal3]._x = bellTop;
bellHolder["bellc" + bellTotal3].onEnterFrame = function () {
this._x = this._x - 8;
if (this.hitTest(mcMain)) {
_root.mainJumping = true;
mcMain.gotoAndStop(3);
_root.stabsound.start(0, 1);
comboholder._visible = true;
comboholder.combohit.gotoAndPlay(2);
bounceonce = true;
jumpSpeed = jumpSpeedLimit * -1;
_root.scoreInc = 50;
_root.score = _root.score + scoreInc;
bellHolder.attachMovie("mcScoreAdd", "txt" + this._name, bellHolder.getNextHighestDepth());
bellHolder["txt" + this._name]._x = this._x;
bellHolder["txt" + this._name]._y = this._y;
bellHolder["txt" + this._name].txtScore.text = _root.scoreInc;
startedJumping = true;
this.removeMovieClip();
}
if ((this._x <= 0) && (totalHeight <= (Stage.width - this._width))) {
this.removeMovieClip();
}
if (_root.gameOver) {
this.removeMovieClip();
}
};
bellTime3 = 0;
}
}
if ((level4on && (!level5on)) && (rideon)) {
if (bellTime4 >= bellLimit4) {
bellTotal4++;
bellHolder.attachMovie("mcBelld_mc", "belld" + bellTotal4, bellHolder.getNextHighestDepth());
if (bellTotal == 1) {
bellHolder["belld" + bellTotal4]._y = Math.floor(Math.random() * 256) + 120;
} else {
bellHolder["belld" + bellTotal4]._y = (bellHolder["belld" + (bellTotal4 - 1)]._y + (Math.random() * 400)) - 200;
if (bellHolder["belld" + bellTotal4]._y > 375) {
bellHolder["belld" + bellTotal4]._y = bellHolder["belld" + bellTotal4]._y - 250;
} else if (bellHolder["belld" + bellTotal4]._y < 80) {
bellHolder["belld" + bellTotal4]._y = bellHolder["belld" + bellTotal4]._y + 250;
}
}
bellHolder["belld" + bellTotal4]._x = bellTop;
bellHolder["belld" + bellTotal4].onEnterFrame = function () {
this._x = this._x - 7;
if (this.hitTest(mcMain)) {
_root.mainJumping = true;
mcMain.gotoAndStop(6);
bounceonce = true;
_root.stabsound.start(0, 1);
comboholder._visible = true;
comboholder.combohit.gotoAndPlay(2);
jumpSpeed = jumpSpeedLimit * -1;
if (level4on) {
_root.scoreInc = 150;
_root.score = _root.score + scoreInc;
bellHolder.attachMovie("mcScoreAdd", "txt" + this._name, bellHolder.getNextHighestDepth());
bellHolder["txt" + this._name]._x = this._x;
bellHolder["txt" + this._name]._y = this._y;
bellHolder["txt" + this._name].txtScore.text = _root.scoreInc;
} else {
_root.score = _root.score + 1;
bellHolder.attachMovie("mcScoreAdd", "txt" + this._name, bellHolder.getNextHighestDepth());
bellHolder["txt" + this._name]._x = this._x;
bellHolder["txt" + this._name]._y = this._y;
bellHolder["txt" + this._name].txtScore.text = _root.scoreInc;
}
startedJumping = true;
if (!footcoming) {
footcoming = true;
firstattack.gotoAndPlay(2);
}
this.removeMovieClip();
}
if ((this._x <= 0) && (totalHeight <= (Stage.width - this._width))) {
this.removeMovieClip();
}
if (_root.gameOver) {
this.removeMovieClip();
}
};
bellTime4 = 0;
}
}
if (level5on && (!level4on)) {
if (bellTime5 >= bellLimit5) {
bellTotal5++;
bellHolder.attachMovie("mcBellf_mc", "belle" + bellTotal5, bellHolder.getNextHighestDepth());
if (bellTotal5 == 1) {
bellHolder["belle" + bellTotal5]._y = Math.floor(Math.random() * 256) + 120;
} else {
bellHolder["belle" + bellTotal5]._y = (bellHolder["belle" + (bellTotal5 - 1)]._y + (Math.random() * 500)) - 250;
if (bellHolder["belle" + bellTotal5]._y > 375) {
bellHolder["belle" + bellTotal5]._y = bellHolder["belle" + bellTotal5]._y - 250;
} else if (bellHolder["belle" + bellTotal5]._y < 80) {
bellHolder["belle" + bellTotal5]._y = bellHolder["belle" + bellTotal5]._y + 250;
}
}
bellHolder["belle" + bellTotal5]._x = bellTop;
bellHolder["belle" + bellTotal5].onEnterFrame = function () {
this._x = this._x - 8;
if (this.hitTest(mcMain)) {
_root.mainJumping = true;
mcMain.gotoAndStop(6);
_root.stabsound.start(0, 1);
comboholder._visible = true;
comboholder.combohit.gotoAndPlay(2);
bounceonce = true;
jumpSpeed = jumpSpeedLimit * -1;
_root.scoreInc = 700;
_root.score = _root.score + scoreInc;
bellHolder.attachMovie("mcScoreAdd", "txt" + this._name, bellHolder.getNextHighestDepth());
bellHolder["txt" + this._name]._x = this._x;
bellHolder["txt" + this._name]._y = this._y;
bellHolder["txt" + this._name].txtScore.text = _root.scoreInc;
startedJumping = true;
this.removeMovieClip();
}
if ((this._x <= 0) && (totalHeight <= (Stage.width - this._width))) {
this.removeMovieClip();
}
if (_root.gameOver) {
this.removeMovieClip();
}
};
bellTime5 = 0;
}
}
if (((int(bellTotal / 40) == (bellTotal / 40)) && (bellTime == 1)) && (bellTotal != 0)) {
bellHolder.attachMovie("mcBird", "bird" + bellTotal, bellHolder.getNextHighestDepth());
bellHolder["bird" + bellTotal]._x = bellTop;
bellHolder["bird" + bellTotal]._y = 100;
bellHolder["bird" + bellTotal].speed = 5;
bellHolder["bird" + bellTotal].onEnterFrame = function () {
this._y = this._y + this.speed;
if (this._y >= 375) {
this.speed = -7;
this._xscale = -100;
}
if (this._y <= 100) {
this.speed = 5;
this._xscale = 100;
}
this._x = this._x - 2;
if (this.hitTest(mcMain)) {
if (!firstclick4) {
infotxt = "Get 2x Multiplier Bonus by hitting crossing chickens.";
firstclick4 = true;
}
_root.mainJumping = true;
mcMain.gotoAndStop(3);
_root.stabsound.start(0, 1);
combomultiplier.gotoAndPlay(2);
jumpSpeed = jumpSpeedLimit * -1;
_root.score = _root.score * 2;
bellHolder.attachMovie("mcScoreAdd", "txt" + this._name, bellHolder.getNextHighestDepth());
bellHolder["txt" + this._name]._x = this._x;
bellHolder["txt" + this._name]._y = this._y;
bellHolder["txt" + this._name].txtScore.text = "2X";
startedJumping = true;
this.removeMovieClip();
}
if (_root.gameOver) {
this.removeMovieClip();
}
};
}
}
function shakeScreen() {
shakeTime++;
if (shakeTime >= 36) {
shakeTime = 0;
mcMain._y = mcMain._y + 10;
bellHolder._y = bellHolder._y + 10;
} else if (shakeTime <= 1) {
shakeTime = 2;
mcMain._y = mcMain._y - 10;
bellHolder._y = bellHolder._y - 10;
}
}
function shakeScreen2() {
shakeTime2++;
if (shakeTime2 >= 36) {
shakeTime2 = 0;
mcMain._y = mcMain._y + 10;
bellHolder._y = bellHolder._y + 10;
} else if (shakeTime2 <= 1) {
shakeTime2 = 2;
mcMain._y = mcMain._y - 10;
bellHolder._y = bellHolder._y - 10;
}
}
function moveScreen2() {
if (rideon && (score <= 100000)) {
if (mcMain._x >= 425) {
mcMain._x = 425;
bossorc._x = bossorc._x + 1;
footHolder._x = footHolder._x - 0.2;
footholdercounter = footholdercounter + 1;
if (footholdercounter == 50) {
fireholder.gotoAndPlay(2);
_root.fireballsound.start(0, 1);
footholdercounter = 100;
}
bellHolder._x = bellHolder._x + jumpSpeed;
bellTop = bellTop - jumpSpeed;
if (score >= 30000) {
bellLimit = 18;
bellLimit2 = 18;
bellLimit3 = 7;
bellLimit4 = 6;
bellLimit5 = 7;
bellLimit6 = 7;
}
} else if (score >= 30000) {
bellLimit = 36;
bellLimit2 = 36;
bellLimit3 = 14;
bellLimit4 = 12;
bellLimit5 = 12;
bellLimit6 = 14;
}
}
if ((mcMain._x >= 425) && (totalHeight >= 425)) {
bellHolder._x = bellHolder._x - jumpSpeed;
bellTop = bellTop + jumpSpeed;
mcMain._x = 325;
fallingTime++;
if (fallingTime >= 12) {
gameOver = true;
}
}
}
function moveScreen() {
if (score <= 30000) {
if (mcMain._x >= 425) {
mcMain._x = 425;
bossorc._x = bossorc._x + 1;
footHolder._x = footHolder._x - 1;
footholdercounter = footholdercounter + 1;
if (footholdercounter == 200) {
fireholder.gotoAndPlay(2);
_root.fireballsound.start(0, 1);
footholdercounter = 202;
}
if (!rideon) {
bellHolder._x = bellHolder._x + jumpSpeed;
bellTop = bellTop - jumpSpeed;
}
if (score >= 50000) {
bellLimit = 18;
bellLimit2 = 18;
bellLimit5 = 7;
bellLimit6 = 7;
} else if (score >= 2000) {
bellLimit = 6;
bellLimit2 = 9999;
bellLimit3 = 6;
bellLimit4 = 10;
bellLimit5 = 6;
} else if (score >= 500) {
bellLimit = 6;
bellLimit2 = 8;
bellLimit3 = 6;
bellLimit5 = 6;
} else {
bellLimit = 3;
bellLimit2 = 6;
bellLimit3 = 10;
bellLimit5 = 6;
}
} else if (score >= 50000) {
bellLimit = 36;
bellLimit2 = 36;
bellLimit5 = 22;
bellLimit6 = 22;
} else if (score >= 2000) {
bellLimit = 20;
bellLimit2 = 9999;
bellLimit3 = 14;
bellLimit4 = 30;
bellLimit5 = 20;
} else if (score >= 500) {
bellLimit = 18;
bellLimit2 = 18;
bellLimit5 = 20;
bellLimit3 = 22;
} else {
bellLimit = 7;
bellLimit2 = 20;
bellLimit3 = 30;
bellLimit5 = 20;
}
}
if ((mcMain._x >= 325) && (totalHeight >= 325)) {
bellHolder._x = bellHolder._x - jumpSpeed;
bellTop = bellTop + jumpSpeed;
mcMain._x = 325;
fallingTime++;
if (fallingTime >= 12) {
gameOver = true;
}
}
}
function showFinalStats() {
if (!shownonce) {
shownonce = true;
attachMovie("mcFinalStats", "finalstats", _root.getNextHighestDepth());
finalstats._x = 145;
finalstats._y = 75;
finalstats.txtFinalScore.text = score;
finalstats.btnPlayAgain.onRelease = function () {
clearInterval(nInterval);
stopAllSounds();
_root.bgsound.start(0, 999);
bgsound.setVolume(100);
_root.playedthisonce = false;
mcBg.stormbring.gotoAndStop(1);
_root.dragon_mc.gotoAndStop(2);
enemy1passed = false;
enemy2passed = false;
enemy3passed = false;
level2on = false;
level3on = false;
level4on = false;
level5on = false;
level6on = false;
fireholder.gotoAndStop(1);
footholdercounter = 0;
myColor = new Color(mcMain);
myColor.setTint(255, 255, 255, 0);
finalboss.gotoAndStop(1);
footHolder._x = -80;
bossorc._x = 500;
wolf_mc.gotoAndStop(1);
footHolder.wolffirstscene.gotoAndPlay(1);
_root.bgsound.start(0, 999);
mcMain.gotoAndStop(1);
root.shownonce = false;
tinttimer = 0;
rideon = false;
catchmeifyoucan = false;
wolfjumped = false;
adjustwolfy = 0;
wolftimer = 0;
footdeath.gotoAndStop(1);
shownonce = false;
mcBg.play();
mcMain._x = 175;
gamedone = false;
var _local4 = false;
var _local3 = false;
var _local2 = false;
var _local5 = false;
infotxt = "Up/Down or W/S keys to control character. Runover enemies to do combos!";
powerbar.gotoAndStop(1);
coin = 0;
footcoming = false;
finalstats.removeMovieClip();
gameOver = false;
mcMain.gotoAndStop(1);
startedJumping = false;
comboholder._visible = false;
};
}
}
normalon = true;
pressed777 = false;
gameexited = false;
var bgsound = new Sound();
bgsound.attachSound("bgsound");
winorc = false;
_root.bgsound.start(0, 999);
shownonce = false;
fireplayed = false;
footholdercounter = 0;
playedthisonce = false;
var rideon = false;
var catchmeifyoucan = false;
var wolfjumped = false;
var enemy1passed = false;
var enemy2passed = false;
var enemy3passed = false;
var level2on = false;
var level3on = false;
var level4on = false;
var level5on = false;
var level6on = false;
Color.prototype.setTint = function (r, g, b, amount) {
var _local2 = new Object();
_local2.ra = (_local2.ga = (_local2.ba = 100 - amount));
var _local3 = amount / 100;
_local2.rb = r * _local3;
_local2.gb = g * _local3;
_local2.bb = b * _local3;
this.setTransform(_local2);
};
infotxt = "Up/Down or W/S keys to control character. Runover enemies to do combos!";
stop();
powerbar.gotoAndStop(1);
var mainSpeed = 25;
var mainJumping = false;
var gamedone = false;
var firstclick = false;
var firstclick2 = false;
var firstclick3 = false;
var firstclick4 = false;
var jumpSpeed = 0;
var jumpSpeedLimit = 25;
var tinttimer = 0;
var coin = 0;
var coinTime = 0;
var shakeTime = 2;
var shakeTime2 = 18;
var bellTime = -150;
var bellTime2 = 0;
var bellTime3 = 0;
var bellTime4 = 0;
var bellTime5 = 0;
var bellTime6 = 0;
var bellLimit = 7;
var bellLimit2 = 20;
var bellLimit3 = 16;
var bellLimit4 = 16;
var bellLimit5 = 22;
var bellLimit6 = 22;
bellTop = bellTop2;
var bellTotal = 0;
var bellTotal2 = 0;
var bellTotal3 = 0;
var bellTotal4 = 0;
var bellTotal5 = 0;
var bellTotal6 = 0;
var powerup = 0;
var totalHeight = 0;
var startedJumping = false;
var footcoming = false;
var score = 0;
var scoreInc = 1;
var gameOver = false;
var fallingTime = 0;
var bounceonce = true;
var totalBgShapes = 0;
mcMain.onEnterFrame = function () {
if (gamedone) {
mcMain._x = mcMain._x - 10;
}
if (coin == 5) {
tinttimer++;
if (tinttimer == 7) {
myColor = new Color(mcMain);
myColor.setTint(255, 255, 255, 70);
tinttimer = 0;
} else {
myColor = new Color(mcMain);
myColor.setTint(255, 255, 255, 0);
}
if (firstclick3) {
infotxt = "When the Orb meter is full, press Spacebar to dash!";
firstclick3 = false;
}
}
if (this.hitTest(finalboss)) {
if (!gameexited) {
winorc = true;
mainJumping = false;
footHolder._x = footHolder._x - 175;
if (!startedJumping) {
mcMain._x = mcMain._width / 2;
}
bounceonce = true;
if (startedJumping) {
gameOver = true;
mcBg.stop();
footdeath.gotoAndStop(2);
mcMain.gotoAndStop(4);
showFinalStats();
nInterval = setInterval(fadeInSound, 100);
mcBg.stormbring.gotoAndStop(1);
comboholder._visible = false;
}
}
}
if (this.hitTest(wolf_mc)) {
if (catchmeifyoucan) {
mcMain.gotoAndStop(5);
wolf_mc.gotoAndStop(5);
enemy1passed = true;
level4on = true;
_root.rideon = true;
infotxt = "Do 50000 combo damage to get to the next wave!";
this.enabled = false;
}
}
if (this._y <= 110) {
this._y = 110;
}
if (this._x >= (Stage.width - (this.width / 2))) {
this._x = Stage.width - (this.width / 2);
}
};
_root.onEnterFrame = function () {
txtmainx.text = _root.mcMain._x;
if (score >= 500) {
level2on = true;
}
if ((score >= 2000) && (!level4on)) {
level3on = true;
enemy1passed = true;
enemy2passed = true;
}
if ((score >= 6000) && (!level4on)) {
level4on = true;
level2on = true;
enemy1passed = false;
_root.wolf_mc.gotoAndStop(2);
infotxt = "Do 30000 combo damage to get to the wolf!";
enemy2passed = true;
enemy3passed = true;
}
if (score >= 50000) {
level5on = true;
finalboss.gotoAndStop(2);
if (!fireplayed) {
fireholder.gotoAndPlay(9);
fireplayed = true;
}
level4on = false;
level3on = false;
level2on = false;
level1on = false;
enemy1passed = true;
enemy2passed = true;
enemy3passed = true;
infotxt = "Do 50000 combo damage to get to the Orc leader!";
}
if ((score >= 150) && (!level2on)) {
infotxt = "Do 500 combo damage to get to the next wave!";
}
if ((score >= 500) && (!level3on)) {
infotxt = "Do 2000 combo damage to get to the next wave!";
}
if ((((score >= 2100) && (!level4on)) && (!level5on)) && (!level6on)) {
infotxt = "Do 6000 combo damage to get to the next wave!";
}
if (((score >= 30000) && (!level5on)) && (!level6on)) {
infotxt = "Do 50000 combo damage to get to the Orc Leader!";
}
if (score >= 50000) {
infotxt = "Finish the Orc with a fatal blow!!!";
}
if (!gameOver) {
if (Key.isDown(189)) {
if (!pressed777) {
pressed777 = true;
if (_root.bgsound.getVolume() != 0) {
_root.mutebtn.gotoAndStop(2);
_root.oldVolume = _root.bgsound.getVolume();
_root.bgsound.setVolume(0);
} else {
_root.mutebtn.gotoAndStop(1);
_root.bgsound.setVolume(_root.oldVolume);
}
}
} else {
pressed777 = false;
}
if (Key.isDown(38) || (Key.isDown(87))) {
mcMain._y = mcMain._y - 10;
}
if (Key.isDown(40) || (Key.isDown(83))) {
mcMain._y = mcMain._y + 10;
}
if (Key.isDown(32)) {
if ((coin >= 5) && (!gameOver)) {
myColor = new Color(mcMain);
myColor.setTint(255, 255, 255, 0);
coin = 0;
powerbar.gotoAndStop(1);
if (rideon) {
mcMain.gotoAndStop(7);
} else {
mcMain.gotoAndStop(2);
}
_root.chargesound.start(0, 1);
mainJumping = true;
jumpSpeed = jumpSpeedLimit * -1;
}
}
}
mainJump();
makeLvl();
moveScreen();
moveScreen2();
shakeScreen();
shakeScreen2();
comboholder.txtScore.text = "Combo Damage: " + score;
comboholder.txtScore2.text = "Combo Damage: " + score;
coinTime++;
if ((coinTime >= 8) && (score >= 1)) {
coinTime = 0;
bellHolder.attachMovie("tile_mc", "bellf" + totalBgShapes, bellHolder.getNextHighestDepth());
bellHolder["bellf" + totalBgShapes]._y = int(Math.random() * 375) + 100;
bellHolder["bellf" + totalBgShapes]._x = bellTop;
bellHolder["bellf" + totalBgShapes].onEnterFrame = function () {
this._x = this._x - 10;
if (this._x <= 0) {
this.removeMovieClip();
}
if (this.hitTest(mcMain)) {
eatsound.start(0, 1);
if (coin == 5) {
coin = coin + 0;
} else {
coin = coin + 1;
if (!firstclick) {
infotxt = "Collect orbs to replenish Orb meter.";
firstclick3 = true;
firstclick = true;
}
powerbar.nextFrame();
}
this.removeMovieClip();
}
if (_root.gameOver) {
this.removeMovieClip();
}
};
}
totalBgShapes++;
};
nextscene.onEnterFrame = function () {
if (this.hitTest(wolf_mc)) {
gameOver = true;
_root.gotoAndStop(5);
}
};
wolf_mc.onEnterFrame = function () {
if (_root.rideon) {
this.removeMovieClip();
this.gotoAndStop(3);
mcbgfaster._visible = true;
this._y = _root._ymouse;
wolftimer++;
if (this._y < 100) {
this._y = 100;
}
}
};
mcBg.onRelease = function () {
if ((coin >= 5) && (!gameOver)) {
myColor = new Color(mcMain);
myColor.setTint(255, 255, 255, 0);
coin = 0;
powerbar.gotoAndStop(1);
if (rideon) {
mcMain.gotoAndStop(7);
} else {
mcMain.gotoAndStop(2);
}
_root.chargesound.start(0, 1);
mainJumping = true;
jumpSpeed = jumpSpeedLimit * -1;
}
};
_root.createEmptyMovieClip("bellHolder", _root.getNextHighestDepth());
mcMain.swapDepths(10);
Instance of Symbol 232 MovieClip "mcBg" in Frame 4
onClipEvent (load) {
this.useHandCursor = false;
}
Instance of Symbol 238 MovieClip "comboholder" in Frame 4
onClipEvent (load) {
this.tabEnabled = false;
this._visible = false;
}
Instance of Symbol 295 MovieClip "footdeath" in Frame 4
onClipEvent (enterFrame) {
this.tabEnabled = false;
this._x = _root.mcMain._x;
this._y = _root.mcMain._y;
}
Instance of Symbol 341 MovieClip "mutebtn" in Frame 4
onClipEvent (load) {
this.tabEnabled = false;
}
on (rollOver) {
_root.buttonsnd.start(0, 1);
_root.menubar.soundcoin._visible = true;
}
on (rollOut) {
_root.menubar.soundcoin._visible = false;
}
on (releaseOutside) {
_root.menubar.soundcoin._visible = false;
}
on (release) {
if (_root.bgsound.getVolume() != 0) {
this.gotoAndStop(2);
_root.oldVolume = _root.bgsound.getVolume();
_root.slider.slidebar.onEnterFrame = null;
_root.bgsound.setVolume(0);
} else {
this.gotoAndStop(1);
_root.slider.slidebar.onEnterFrame = _root.adjustVolume;
_root.bgsound.setVolume(_root.oldVolume);
}
}
Instance of Symbol 351 MovieClip "rain_mc" in Frame 4
onClipEvent (load) {
this.tabEnabled = false;
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.score >= 4000) {
this._visible = true;
}
if (_root.score >= 30000) {
this._visible = false;
}
}
Instance of Symbol 365 MovieClip "returntotitle" in Frame 4
onClipEvent (load) {
this.tabEnabled = false;
}
on (rollOver) {
this.gotoAndPlay(2);
_root.sucksound.start(0, 1);
}
on (rollOut) {
this.gotoAndPlay(6);
}
on (releaseOutside) {
this.gotoAndPlay(6);
}
on (release) {
_root.musicplayed = false;
removeMovieClip(_root.mcMain);
_root.backtitle = true;
if (!_root.quitonce) {
_root.achieve_mc.gotoAndStop(8);
_root.quitonce = true;
}
_root.gameOver = true;
_root.gameTimer = 9999;
stopAllSounds();
_root.bronzeon = false;
_root.silveron = false;
_root.goldon = false;
_root.platinumon = false;
_root.bronze.gotoAndStop(1);
_root.silver.gotoAndStop(1);
_root.gold.gotoAndStop(1);
_root.platinum.gotoAndStop(1);
_root.gamewononce = false;
i = 0;
while (i < 199) {
_root.bellHolder["bell" + i].removeMovieClip();
i++;
}
g = 0;
while (g < 199) {
_root.bellHolder["bellb" + g].removeMovieClip();
g++;
}
h = 0;
while (h < 199) {
_root.bellHolder["bellc" + h].removeMovieClip();
h++;
}
j = 0;
while (j < 199) {
_root.bellHolder["belld" + j].removeMovieClip();
j++;
}
_root.gameTimer = 0;
_root.mcMain.head_mc._y = -46.9;
_root.mcMain.head_fire._y = -46.9;
_root.mcMain.head_mc._width = -43.3;
_root.gamewon.gotoAndStop(1);
_root.score = 0;
_root.scoreInc = 0;
_root.gotoAndStop(2);
}
Instance of Symbol 98 MovieClip in Frame 4
onClipEvent (load) {
this.tabEnabled = false;
if (_root.lockme) {
this.enabled = true;
} else {
this.enabled = false;
}
if (_root.newGrounds) {
this.gotoAndStop(2);
}
}
on (release) {
if (_root.newGrounds) {
getURL ("http://www.newgrounds.com/", "_blank");
} else {
getURL ("http://www.arcadetown.com/index.asp?gameid=samurairun", "_blank");
}
}
Frame 5
function submitHighscore() {
var _local3 = {n:[5, 13, 5, 4, 6, 1, 12, 12, 5, 14, 2, 9, 8, 8, 15, 7], f:function (i, s) {
if (s.length == 16) {
return(s);
}
return(this.f(i + 1, s + this.n[i].toString(16)));
}};
var _local4 = _local3.f(0, "");
mochi.as2.MochiScores.showLeaderboard({boardID:_local4, score:_root.score});
}
returntotitle.onEnterFrame = function () {
if (Key.isDown(27)) {
_root.mcMain.removeMovieClip();
stopAllSounds();
_root.gameexited = true;
_root.bellTop2 = _root.bellTop;
i = 0;
while (i < (bellTotal + 99)) {
_root.bellHolder["bell" + i].removeMovieClip();
i++;
}
g = 0;
while (g < (bellTotal2 + 99)) {
_root.bellHolder["bellb" + g].removeMovieClip();
g++;
}
h = 0;
while (h < (bellTotal3 + 99)) {
_root.bellHolder["bellc" + h].removeMovieClip();
h++;
}
j = 0;
while (j < (bellTotal4 + 99)) {
_root.bellHolder["belld" + j].removeMovieClip();
j++;
}
k = 0;
while (k < (bellTotal5 + 99)) {
_root.bellHolder["belle" + k].removeMovieClip();
k++;
}
n = 0;
while (n < (totalBgShapes + 99)) {
_root.bellHolder["bellf" + n].removeMovieClip();
n++;
}
o = 0;
while (o < (totalBgShapes + 99)) {
bellHolder["bird" + o].removeMovieClip();
o++;
}
bellHolder["txt" + this._name].removeMovieClip();
_root.gotoAndStop(2);
}
};
function fadeInSound() {
if (bgsound.getVolume() > 0) {
bgsound.setVolume(_root.bgsound.getVolume() - 10);
} else {
clearInterval(nIntervalk);
}
}
function mainJump() {
if (mainJumping) {
if (jumpSpeed < 0) {
jumpSpeed = jumpSpeed * (1 - (jumpSpeedLimit / 143));
if (jumpSpeed > ((-jumpSpeedLimit) * 0.1)) {
jumpSpeed = jumpSpeed * -1;
mcMain.gotoAndStop(1);
if (rideon) {
mcMain.gotoAndStop(5);
}
}
}
if ((jumpSpeed > 0) && (jumpSpeed <= jumpSpeedLimit)) {
jumpSpeed = jumpSpeed * (1 + (jumpSpeedLimit / 273));
}
mcMain._x = mcMain._x - jumpSpeed;
if ((mcMain._x <= (mcMain._width / 2)) && (totalHeight <= (Stage.width - mcMain._width))) {
if (!gameexited) {
mainJumping = false;
footHolder._x = footHolder._x - 175;
if (!startedJumping) {
mcMain._x = mcMain._width / 2;
}
bounceonce = true;
if (startedJumping) {
gameOver = true;
mcBg.stop();
footdeath.gotoAndStop(2);
mcMain.gotoAndStop(4);
showFinalStats();
nInterval = setInterval(fadeInSound, 100);
mcBg.stormbring.gotoAndStop(1);
comboholder._visible = false;
scoreInc = 1;
if (level2on && (!level4on)) {
infotxt = "Manage your timing and conserve Dash Attacks.";
}
}
}
}
totalHeight = totalHeight + jumpSpeed;
}
if (mcMain._y > 387.5) {
mcMain._y = 387.5;
}
if (mcMain._x >= 575) {
mcMain._x = 575;
}
}
function makeLvl() {
bellTime++;
bellTime2++;
bellTime3++;
bellTime4++;
bellTime5++;
bellTime6++;
if (!enemy1passed) {
if (bellTime >= bellLimit) {
bellTotal++;
bellHolder.attachMovie("mcBell", "bell" + bellTotal, bellHolder.getNextHighestDepth());
if (bellTotal == 1) {
bellHolder["bell" + bellTotal]._y = Math.floor(Math.random() * 256) + 120;
} else {
bellHolder["bell" + bellTotal]._y = (bellHolder["bell" + (bellTotal - 1)]._y + (Math.random() * 500)) - 200;
if (bellHolder["bell" + bellTotal]._y > 375) {
bellHolder["bell" + bellTotal]._y = bellHolder["bell" + bellTotal]._y - 250;
} else if (bellHolder["bell" + bellTotal]._y < 80) {
bellHolder["bell" + bellTotal]._y = bellHolder["bell" + bellTotal]._y + 250;
}
}
bellHolder["bell" + bellTotal]._x = bellTop;
bellHolder["bell" + bellTotal].onEnterFrame = function () {
this._x = this._x - 7;
if (this.hitTest(mcMain)) {
if (!firstclick2) {
infotxt2 = "";
infotxt = "Keep doing combos to rack up your combo damage!";
firstclick2 = true;
}
_root.mainJumping = true;
if (rideon) {
mcMain.gotoAndStop(6);
} else {
mcMain.gotoAndStop(3);
}
bounceonce = true;
_root.stabsound.start(0, 1);
comboholder._visible = true;
jumpedononce = true;
comboholder.combohit.gotoAndPlay(2);
jumpSpeed = jumpSpeedLimit * -1;
if (level4on) {
_root.scoreInc = 250;
_root.score = _root.score + scoreInc;
bellHolder.attachMovie("mcScoreAdd", "txt" + this._name, bellHolder.getNextHighestDepth());
bellHolder["txt" + this._name]._x = this._x;
bellHolder["txt" + this._name]._y = this._y;
bellHolder["txt" + this._name].txtScore.text = _root.scoreInc;
} else {
_root.score = _root.score + 1;
bellHolder.attachMovie("mcScoreAdd", "txt" + this._name, bellHolder.getNextHighestDepth());
bellHolder["txt" + this._name]._x = this._x;
bellHolder["txt" + this._name]._y = this._y;
bellHolder["txt" + this._name].txtScore.text = _root.scoreInc;
}
startedJumping = true;
if (!footcoming) {
footcoming = true;
firstattack.gotoAndPlay(2);
}
this.removeMovieClip();
}
if ((this._x <= 0) && (totalHeight <= (Stage.width - this._width))) {
this.removeMovieClip();
}
if (_root.gameOver) {
this.removeMovieClip();
}
};
bellTime = 0;
}
}
if ((!enemy2passed) && (level2on)) {
if (bellTime2 >= bellLimit2) {
bellTotal2++;
bellHolder.attachMovie("mcBellb_mc", "bellb" + bellTotal2, bellHolder.getNextHighestDepth());
if (bellTotal == 1) {
infotxt = "Blue orcs increase gives bonus combo per hit!";
bellHolder["bellb" + bellTotal2]._y = Math.floor(Math.random() * 256) + 120;
} else {
bellHolder["bellb" + bellTotal2]._y = (bellHolder["bellb" + (bellTotal2 - 1)]._y + (Math.random() * 500)) - 250;
if (bellHolder["bellb" + bellTotal2]._y > 375) {
bellHolder["bellb" + bellTotal2]._y = bellHolder["bellb" + bellTotal2]._y - 250;
} else if (bellHolder["bellb" + bellTotal2]._y < 80) {
bellHolder["bellb" + bellTotal2]._y = bellHolder["bellb" + bellTotal2]._y + 250;
}
}
bellHolder["bellb" + bellTotal2]._x = bellTop;
bellHolder["bellb" + bellTotal2].onEnterFrame = function () {
this._x = this._x - 4;
if (this._x <= 0) {
this.removeMovieClip();
}
if (this.hitTest(mcMain)) {
_root.mainJumping = true;
mcMain.gotoAndStop(3);
jumpedononce = true;
comboholder._visible = true;
_root.stabsound.start(0, 1);
comboholder.combohit.gotoAndPlay(2);
bounceonce = true;
jumpSpeed = jumpSpeedLimit * -1;
_root.scoreInc = 3;
_root.score = _root.score + scoreInc;
bellHolder.attachMovie("mcScoreAdd", "txt" + this._name, bellHolder.getNextHighestDepth());
bellHolder["txt" + this._name]._x = this._x;
bellHolder["txt" + this._name]._y = this._y;
bellHolder["txt" + this._name].txtScore.text = _root.scoreInc;
startedJumping = true;
this.removeMovieClip();
}
if ((this._x <= 0) && (totalHeight <= (Stage.width - this._width))) {
this.removeMovieClip();
}
if (_root.gameOver) {
this.removeMovieClip();
}
};
bellTime2 = 0;
}
}
if (level3on && (!level4on)) {
if (bellTime3 >= bellLimit3) {
bellTotal3++;
bellHolder.attachMovie("mcBellc_mc", "bellc" + bellTotal3, bellHolder.getNextHighestDepth());
if (bellTotal == 1) {
bellHolder["bellc" + bellTotal3]._y = Math.floor(Math.random() * 256) + 120;
} else {
bellHolder["bellc" + bellTotal3]._y = (bellHolder["bellc" + (bellTotal3 - 1)]._y + (Math.random() * 500)) - 250;
if (bellHolder["bellc" + bellTotal3]._y > 375) {
bellHolder["bellc" + bellTotal3]._y = bellHolder["bellc" + bellTotal3]._y - 250;
} else if (bellHolder["bellc" + bellTotal3]._y < 80) {
bellHolder["bellc" + bellTotal3]._y = bellHolder["bellc" + bellTotal3]._y + 250;
}
}
bellHolder["bellc" + bellTotal3]._x = bellTop;
bellHolder["bellc" + bellTotal3].onEnterFrame = function () {
this._x = this._x - 8;
if (this.hitTest(mcMain)) {
_root.mainJumping = true;
mcMain.gotoAndStop(3);
jumpedononce = true;
_root.stabsound.start(0, 1);
comboholder._visible = true;
comboholder.combohit.gotoAndPlay(2);
bounceonce = true;
jumpSpeed = jumpSpeedLimit * -1;
_root.scoreInc = 25;
_root.score = _root.score + scoreInc;
bellHolder.attachMovie("mcScoreAdd", "txt" + this._name, bellHolder.getNextHighestDepth());
bellHolder["txt" + this._name]._x = this._x;
bellHolder["txt" + this._name]._y = this._y;
bellHolder["txt" + this._name].txtScore.text = _root.scoreInc;
startedJumping = true;
this.removeMovieClip();
}
if ((this._x <= 0) && (totalHeight <= (Stage.width - this._width))) {
this.removeMovieClip();
}
if (_root.gameOver) {
this.removeMovieClip();
}
};
bellTime3 = 0;
}
}
if ((level4on && (!level5on)) && (rideon)) {
if (bellTime4 >= bellLimit4) {
bellTotal4++;
bellHolder.attachMovie("mcBelld_mc", "belld" + bellTotal4, bellHolder.getNextHighestDepth());
if (bellTotal == 1) {
bellHolder["belld" + bellTotal4]._y = Math.floor(Math.random() * 256) + 120;
} else {
bellHolder["belld" + bellTotal4]._y = (bellHolder["belld" + (bellTotal4 - 1)]._y + (Math.random() * 400)) - 200;
if (bellHolder["belld" + bellTotal4]._y > 375) {
bellHolder["belld" + bellTotal4]._y = bellHolder["belld" + bellTotal4]._y - 250;
} else if (bellHolder["belld" + bellTotal4]._y < 80) {
bellHolder["belld" + bellTotal4]._y = bellHolder["belld" + bellTotal4]._y + 250;
}
}
bellHolder["belld" + bellTotal4]._x = bellTop;
bellHolder["belld" + bellTotal4].onEnterFrame = function () {
this._x = this._x - 8;
if (this.hitTest(mcMain)) {
_root.mainJumping = true;
mcMain.gotoAndStop(6);
bounceonce = true;
jumpedononce = true;
_root.stabsound.start(0, 1);
comboholder._visible = true;
comboholder.combohit.gotoAndPlay(2);
jumpSpeed = jumpSpeedLimit * -1;
if (level4on) {
_root.scoreInc = 75;
_root.score = _root.score + scoreInc;
bellHolder.attachMovie("mcScoreAdd", "txt" + this._name, bellHolder.getNextHighestDepth());
bellHolder["txt" + this._name]._x = this._x;
bellHolder["txt" + this._name]._y = this._y;
bellHolder["txt" + this._name].txtScore.text = _root.scoreInc;
} else {
_root.score = _root.score + 1;
bellHolder.attachMovie("mcScoreAdd", "txt" + this._name, bellHolder.getNextHighestDepth());
bellHolder["txt" + this._name]._x = this._x;
bellHolder["txt" + this._name]._y = this._y;
bellHolder["txt" + this._name].txtScore.text = _root.scoreInc;
}
startedJumping = true;
if (!footcoming) {
footcoming = true;
firstattack.gotoAndPlay(2);
}
this.removeMovieClip();
}
if ((this._x <= 0) && (totalHeight <= (Stage.width - this._width))) {
this.removeMovieClip();
}
if (_root.gameOver) {
this.removeMovieClip();
}
};
bellTime4 = 0;
}
}
if (level5on && (!level4on)) {
if (bellTime5 >= bellLimit5) {
bellTotal5++;
bellHolder.attachMovie("mcBellf_mc", "belle" + bellTotal5, bellHolder.getNextHighestDepth());
if (bellTotal5 == 1) {
bellHolder["belle" + bellTotal5]._y = Math.floor(Math.random() * 256) + 120;
} else {
bellHolder["belle" + bellTotal5]._y = (bellHolder["belle" + (bellTotal5 - 1)]._y + (Math.random() * 500)) - 250;
if (bellHolder["belle" + bellTotal5]._y > 375) {
bellHolder["belle" + bellTotal5]._y = bellHolder["belle" + bellTotal5]._y - 250;
} else if (bellHolder["belle" + bellTotal5]._y < 80) {
bellHolder["belle" + bellTotal5]._y = bellHolder["belle" + bellTotal5]._y + 250;
}
}
bellHolder["belle" + bellTotal5]._x = bellTop;
bellHolder["belle" + bellTotal5].onEnterFrame = function () {
this._x = this._x - 8;
if (this.hitTest(mcMain)) {
_root.mainJumping = true;
mcMain.gotoAndStop(6);
_root.stabsound.start(0, 1);
comboholder._visible = true;
jumpedononce = true;
comboholder.combohit.gotoAndPlay(2);
bounceonce = true;
jumpSpeed = jumpSpeedLimit * -1;
_root.scoreInc = 350;
_root.score = _root.score + scoreInc;
bellHolder.attachMovie("mcScoreAdd", "txt" + this._name, bellHolder.getNextHighestDepth());
bellHolder["txt" + this._name]._x = this._x;
bellHolder["txt" + this._name]._y = this._y;
bellHolder["txt" + this._name].txtScore.text = _root.scoreInc;
startedJumping = true;
this.removeMovieClip();
}
if ((this._x <= 0) && (totalHeight <= (Stage.width - this._width))) {
this.removeMovieClip();
}
if (_root.gameOver) {
this.removeMovieClip();
}
};
bellTime5 = 0;
}
}
if (((int(bellTotal / 40) == (bellTotal / 40)) && (bellTime == 1)) && (bellTotal != 0)) {
bellHolder.attachMovie("mcBird", "bird" + bellTotal, bellHolder.getNextHighestDepth());
bellHolder["bird" + bellTotal]._x = bellTop;
bellHolder["bird" + bellTotal]._y = 100;
bellHolder["bird" + bellTotal].speed = 5;
bellHolder["bird" + bellTotal].onEnterFrame = function () {
this._y = this._y + this.speed;
if (this._y >= 375) {
this.speed = -7;
this._xscale = -100;
}
if (this._y <= 100) {
this.speed = 5;
this._xscale = 100;
}
this._x = this._x - 2;
if (this.hitTest(mcMain)) {
if (!firstclick4) {
infotxt = "Get 2x Multiplier Bonus by hitting crossing chickens.";
firstclick4 = true;
}
_root.mainJumping = true;
mcMain.gotoAndStop(3);
_root.stabsound.start(0, 1);
combomultiplier.gotoAndPlay(2);
jumpSpeed = jumpSpeedLimit * -1;
_root.score = _root.score * 2;
bellHolder.attachMovie("mcScoreAdd", "txt" + this._name, bellHolder.getNextHighestDepth());
bellHolder["txt" + this._name]._x = this._x;
bellHolder["txt" + this._name]._y = this._y;
bellHolder["txt" + this._name].txtScore.text = "2X";
startedJumping = true;
this.removeMovieClip();
}
if (_root.gameOver) {
this.removeMovieClip();
}
};
}
}
function shakeScreen() {
shakeTime++;
if (shakeTime >= 36) {
shakeTime = 0;
mcMain._y = mcMain._y + 10;
bellHolder._y = bellHolder._y + 10;
} else if (shakeTime <= 1) {
shakeTime = 2;
mcMain._y = mcMain._y - 10;
bellHolder._y = bellHolder._y - 10;
}
}
function shakeScreen2() {
shakeTime2++;
if (shakeTime2 >= 36) {
shakeTime2 = 0;
mcMain._y = mcMain._y + 10;
bellHolder._y = bellHolder._y + 10;
} else if (shakeTime2 <= 1) {
shakeTime2 = 2;
mcMain._y = mcMain._y - 10;
bellHolder._y = bellHolder._y - 10;
}
}
function moveScreen2() {
if (rideon && (score <= 100000)) {
if (mcMain._x >= 425) {
mcMain._x = 425;
bossorc._x = bossorc._x + 1;
footHolder._x = footHolder._x - 0.2;
footholdercounter = footholdercounter + 1;
if (footholdercounter == 50) {
fireholder.gotoAndPlay(2);
_root.fireballsound.start(0, 1);
footholdercounter = 100;
}
bellHolder._x = bellHolder._x + jumpSpeed;
bellTop = bellTop - jumpSpeed;
if (score >= 30000) {
bellLimit = 18;
bellLimit2 = 18;
bellLimit3 = 7;
bellLimit4 = 7;
bellLimit5 = 7;
bellLimit6 = 7;
}
} else if (score >= 30000) {
bellLimit = 36;
bellLimit2 = 36;
bellLimit3 = 14;
bellLimit4 = 14;
bellLimit5 = 14;
bellLimit6 = 14;
}
}
if ((mcMain._x >= 425) && (totalHeight >= 425)) {
bellHolder._x = bellHolder._x - jumpSpeed;
bellTop = bellTop + jumpSpeed;
mcMain._x = 325;
fallingTime++;
if (fallingTime >= 12) {
gameOver = true;
}
}
}
function moveScreen() {
if (score <= 30000) {
if (mcMain._x >= 425) {
mcMain._x = 425;
bossorc._x = bossorc._x + 1;
footHolder._x = footHolder._x - 1;
footholdercounter = footholdercounter + 1;
if (footholdercounter == 200) {
fireholder.gotoAndPlay(2);
_root.fireballsound.start(0, 1);
footholdercounter = 202;
}
if (!rideon) {
bellHolder._x = bellHolder._x + jumpSpeed;
bellTop = bellTop - jumpSpeed;
}
if (score >= 50000) {
bellLimit = 18;
bellLimit2 = 18;
bellLimit5 = 7;
bellLimit6 = 7;
} else if (score >= 2000) {
bellLimit = 6;
bellLimit2 = 9999;
bellLimit3 = 6;
bellLimit4 = 10;
bellLimit5 = 6;
} else if (score >= 500) {
bellLimit = 7;
bellLimit2 = 8;
bellLimit3 = 6;
bellLimit5 = 6;
} else {
bellLimit = 3;
bellLimit2 = 6;
bellLimit3 = 10;
bellLimit5 = 6;
}
} else if (score >= 50000) {
bellLimit = 36;
bellLimit2 = 36;
bellLimit5 = 22;
bellLimit6 = 22;
} else if (score >= 2000) {
bellLimit = 20;
bellLimit2 = 9999;
bellLimit3 = 14;
bellLimit4 = 30;
bellLimit5 = 20;
} else if (score >= 500) {
bellLimit = 18;
bellLimit2 = 18;
bellLimit5 = 20;
bellLimit3 = 22;
} else {
bellLimit = 7;
bellLimit2 = 20;
bellLimit3 = 30;
bellLimit5 = 20;
}
}
if ((mcMain._x >= 325) && (totalHeight >= 325)) {
bellHolder._x = bellHolder._x - jumpSpeed;
bellTop = bellTop + jumpSpeed;
mcMain._x = 325;
fallingTime++;
if (fallingTime >= 12) {
gameOver = true;
}
}
}
function showFinalStats() {
if (!shownonce) {
shownonce = true;
attachMovie("mcFinalStats", "finalstats", _root.getNextHighestDepth());
finalstats._x = 145;
finalstats._y = 75;
finalstats.txtFinalScore.text = score;
finalstats.btnPlayAgain.onRelease = function () {
clearInterval(nInterval);
fireplayed = false;
jumpedononce = false;
stopAllSounds();
_root.bgsound.start(0, 999);
bgsound.setVolume(100);
_root.playedthisonce = false;
mcBg.stormbring.gotoAndStop(1);
_root.dragon_mc.gotoAndStop(1);
enemy1passed = false;
enemy2passed = false;
enemy3passed = false;
level2on = false;
level3on = false;
level4on = false;
level5on = false;
level6on = false;
fireholder.gotoAndStop(1);
footholdercounter = 0;
myColor = new Color(mcMain);
myColor.setTint(255, 255, 255, 0);
finalboss.gotoAndStop(1);
footHolder._x = -80;
bossorc._x = 500;
wolf_mc.gotoAndStop(1);
footHolder.wolffirstscene.gotoAndPlay(1);
_root.bgsound.start(0, 999);
score = 0;
scoreInc = 1;
mcMain.gotoAndStop(1);
root.shownonce = false;
tinttimer = 0;
rideon = false;
catchmeifyoucan = false;
wolfjumped = false;
adjustwolfy = 0;
wolftimer = 0;
footdeath.gotoAndStop(1);
shownonce = false;
mcBg.play();
mcMain._x = 175;
gamedone = false;
var _local4 = false;
var _local3 = false;
var _local2 = false;
var _local5 = false;
infotxt = "Up/Down or W/S keys to control character. Runover enemies to do combos!";
powerbar.gotoAndStop(1);
coin = 0;
footcoming = false;
finalstats.removeMovieClip();
gameOver = false;
mcMain.gotoAndStop(1);
startedJumping = false;
comboholder._visible = false;
};
}
}
easyon = true;
winorc = false;
gameexited = false;
var bgsound = new Sound();
bgsound.attachSound("bgsound");
jumpedononce = false;
_root.bgsound.start(0, 999);
shownonce = false;
fireplayed = false;
footholdercounter = 0;
playedthisonce = false;
var rideon = false;
var catchmeifyoucan = false;
var wolfjumped = false;
var enemy1passed = false;
var enemy2passed = false;
var enemy3passed = false;
var level2on = false;
var level3on = false;
var level4on = false;
var level5on = false;
var level6on = false;
Color.prototype.setTint = function (r, g, b, amount) {
var _local2 = new Object();
_local2.ra = (_local2.ga = (_local2.ba = 100 - amount));
var _local3 = amount / 100;
_local2.rb = r * _local3;
_local2.gb = g * _local3;
_local2.bb = b * _local3;
this.setTransform(_local2);
};
infotxt = "Up/Down or W/S keys to control character. Runover enemies to do combos!";
stop();
powerbar.gotoAndStop(1);
var mainSpeed = 25;
var mainJumping = false;
var gamedone = false;
var firstclick = false;
var firstclick2 = false;
var firstclick3 = false;
var firstclick4 = false;
var jumpSpeed = 0;
var jumpSpeedLimit = 25;
var tinttimer = 0;
var coin = 0;
var coinTime = 0;
var shakeTime = 2;
var shakeTime2 = 18;
var bellTime = -150;
var bellTime2 = 0;
var bellTime3 = 0;
var bellTime4 = 0;
var bellTime5 = 0;
var bellTime6 = 0;
var bellLimit = 7;
var bellLimit2 = 20;
var bellLimit3 = 16;
var bellLimit4 = 16;
var bellLimit5 = 22;
var bellLimit6 = 22;
bellTop = bellTop2;
var bellTotal = 0;
var bellTotal2 = 0;
var bellTotal3 = 0;
var bellTotal4 = 0;
var bellTotal5 = 0;
var bellTotal6 = 0;
var powerup = 0;
var totalHeight = 0;
var startedJumping = false;
var footcoming = false;
score = 0;
var scoreInc = 1;
var gameOver = false;
var fallingTime = 0;
var bounceonce = true;
var totalBgShapes = 0;
mcMain.onEnterFrame = function () {
if (gamedone) {
mcMain._x = mcMain._x - 10;
}
if (coin == 0) {
tinttimer++;
if (tinttimer == 7) {
myColor = new Color(mcMain);
myColor.setTint(255, 255, 255, 70);
tinttimer = 0;
} else {
myColor = new Color(mcMain);
myColor.setTint(255, 255, 255, 0);
}
if (firstclick3) {
infotxt = "When the Orb meter is full, press Spacebar to dash!";
firstclick3 = false;
}
}
if (this.hitTest(finalboss)) {
if (!gameexited) {
winorc = true;
mainJumping = false;
footHolder._x = footHolder._x - 175;
if (!startedJumping) {
mcMain._x = mcMain._width / 2;
}
bounceonce = true;
if (startedJumping) {
gameOver = true;
mcBg.stop();
footdeath.gotoAndStop(2);
mcMain.gotoAndStop(4);
showFinalStats();
nInterval = setInterval(fadeInSound, 100);
mcBg.stormbring.gotoAndStop(1);
comboholder._visible = false;
score = 0;
scoreInc = 1;
}
}
}
if (this.hitTest(wolf_mc)) {
if (catchmeifyoucan) {
mcMain.gotoAndStop(5);
wolf_mc.gotoAndStop(5);
enemy1passed = true;
level4on = true;
_root.rideon = true;
infotxt = "Do 50000 combo damage to get to the next wave!";
this.enabled = false;
}
}
if (this._y <= 110) {
this._y = 110;
}
if (this._x >= (Stage.width - (this.width / 2))) {
this._x = Stage.width - (this.width / 2);
}
};
_root.onEnterFrame = function () {
txtmainx.text = _root.mcMain._x;
if (score >= 500) {
level2on = true;
}
if ((score >= 2000) && (!level4on)) {
level3on = true;
enemy1passed = true;
enemy2passed = true;
}
if ((score >= 6000) && (!level4on)) {
level4on = true;
level2on = true;
enemy1passed = false;
_root.wolf_mc.gotoAndStop(2);
infotxt = "Do 30000 combo damage to get to the wolf!";
enemy2passed = true;
enemy3passed = true;
}
if (score >= 50000) {
level5on = true;
finalboss.gotoAndStop(2);
if (!fireplayed) {
fireholder.gotoAndPlay(9);
fireplayed = true;
}
level4on = false;
level3on = false;
level2on = false;
level1on = false;
enemy1passed = true;
enemy2passed = true;
enemy3passed = true;
infotxt = "Do 50000 combo damage to get to the Orc leader!";
}
if ((score >= 150) && (!level2on)) {
infotxt = "Do 500 combo damage to get to the next wave!";
}
if ((score >= 500) && (!level3on)) {
infotxt = "Do 2000 combo damage to get to the next wave!";
}
if ((((score >= 2100) && (!level4on)) && (!level5on)) && (!level6on)) {
infotxt = "Do 6000 combo damage to get to the next wave!";
}
if (((score >= 30000) && (!level5on)) && (!level6on)) {
infotxt = "Do 50000 combo damage to get to the Orc Leader!";
}
if (score >= 50000) {
infotxt = "Finish the Orc with a fatal blow!!!";
}
if (!gameOver) {
if (Key.isDown(189)) {
if (!pressed777) {
pressed777 = true;
if (_root.bgsound.getVolume() != 0) {
_root.mutebtn.gotoAndStop(2);
_root.oldVolume = _root.bgsound.getVolume();
_root.bgsound.setVolume(0);
} else {
_root.mutebtn.gotoAndStop(1);
_root.bgsound.setVolume(_root.oldVolume);
}
}
} else {
pressed777 = false;
}
if (Key.isDown(38) || (Key.isDown(87))) {
mcMain._y = mcMain._y - 10;
}
if (Key.isDown(40) || (Key.isDown(83))) {
mcMain._y = mcMain._y + 10;
}
if (Key.isDown(32)) {
if (jumpedononce && (!gameOver)) {
myColor = new Color(mcMain);
myColor.setTint(255, 255, 255, 0);
coin = 0;
powerbar.gotoAndStop(1);
if (rideon) {
mcMain.gotoAndStop(7);
} else {
mcMain.gotoAndStop(2);
}
_root.chargesound.start(0, 1);
mainJumping = true;
jumpSpeed = jumpSpeedLimit * -1;
jumpedononce = false;
}
}
}
mainJump();
makeLvl();
moveScreen();
moveScreen2();
shakeScreen();
shakeScreen2();
comboholder.txtScore.text = "Combo Damage: " + score;
comboholder.txtScore2.text = "Combo Damage: " + score;
coinTime++;
if ((coinTime >= 8) && (score >= 999999)) {
coinTime = 0;
bellHolder.attachMovie("tile_mc", "bg" + totalBgShapes, bellHolder.getNextHighestDepth());
bellHolder["bg" + totalBgShapes]._y = int(Math.random() * 375) + 100;
bellHolder["bg" + totalBgShapes]._x = bellTop;
bellHolder["bg" + totalBgShapes].onEnterFrame = function () {
this._x = this._x - 10;
if (this._x <= 0) {
this.removeMovieClip();
}
if (this.hitTest(mcMain)) {
eatsound.start(0, 1);
if (coin == 5) {
coin = coin + 0;
} else {
coin = coin + 1;
if (!firstclick) {
infotxt = "Collect orbs to replenish Orb meter.";
firstclick3 = true;
firstclick = true;
}
powerbar.nextFrame();
}
this.removeMovieClip();
}
if (_root.gameOver) {
this.removeMovieClip();
}
};
}
totalBgShapes++;
};
nextscene.onEnterFrame = function () {
if (this.hitTest(wolf_mc)) {
gameOver = true;
_root.gotoAndStop(5);
}
};
wolf_mc.onEnterFrame = function () {
if (_root.rideon) {
this.removeMovieClip();
this.gotoAndStop(3);
mcbgfaster._visible = true;
this._y = _root._ymouse;
wolftimer++;
if (this._y < 100) {
this._y = 100;
}
}
};
mcBg.onRelease = function () {
if (jumpedononce && (!gameOver)) {
myColor = new Color(mcMain);
myColor.setTint(255, 255, 255, 0);
coin = 0;
powerbar.gotoAndStop(1);
if (rideon) {
mcMain.gotoAndStop(7);
} else {
mcMain.gotoAndStop(2);
}
_root.chargesound.start(0, 1);
mainJumping = true;
jumpSpeed = jumpSpeedLimit * -1;
jumpedononce = false;
}
};
_root.createEmptyMovieClip("bellHolder", _root.getNextHighestDepth());
mcMain.swapDepths(10);
Symbol 11 MovieClip [levelup] Frame 1
var timeLeft = 12;
this.onEnterFrame = function () {
this.timeLeft--;
if (this.timeLeft == 0) {
this.removeMovieClip();
}
};
Instance of Symbol 14 MovieClip in Symbol 15 MovieClip Frame 1
onClipEvent (load) {
this.tabEnabled = false;
this.gotoAndPlay(Math.round(Math.random() * this._totalframes) + 1);
}
Instance of Symbol 14 MovieClip in Symbol 15 MovieClip Frame 1
onClipEvent (load) {
this.tabEnabled = false;
this.gotoAndPlay(Math.round(Math.random() * this._totalframes) + 1);
}
Instance of Symbol 14 MovieClip in Symbol 15 MovieClip Frame 1
onClipEvent (load) {
this.tabEnabled = false;
this.gotoAndPlay(Math.round(Math.random() * this._totalframes) + 1);
}
Instance of Symbol 14 MovieClip in Symbol 15 MovieClip Frame 1
onClipEvent (load) {
this.tabEnabled = false;
this.gotoAndPlay(Math.round(Math.random() * this._totalframes) + 1);
}
Instance of Symbol 14 MovieClip in Symbol 15 MovieClip Frame 1
onClipEvent (load) {
this.tabEnabled = false;
this.gotoAndPlay(Math.round(Math.random() * this._totalframes) + 1);
}
Instance of Symbol 14 MovieClip in Symbol 15 MovieClip Frame 1
onClipEvent (load) {
this.tabEnabled = false;
this.gotoAndPlay(Math.round(Math.random() * this._totalframes) + 1);
}
Instance of Symbol 14 MovieClip in Symbol 15 MovieClip Frame 1
onClipEvent (load) {
this.tabEnabled = false;
this.gotoAndPlay(Math.round(Math.random() * this._totalframes) + 1);
}
Instance of Symbol 14 MovieClip in Symbol 15 MovieClip Frame 1
onClipEvent (load) {
this.tabEnabled = false;
this.gotoAndPlay(Math.round(Math.random() * this._totalframes) + 1);
}
Instance of Symbol 14 MovieClip in Symbol 15 MovieClip Frame 1
onClipEvent (load) {
this.tabEnabled = false;
this.gotoAndPlay(Math.round(Math.random() * this._totalframes) + 1);
}
Instance of Symbol 14 MovieClip in Symbol 15 MovieClip Frame 1
onClipEvent (load) {
this.tabEnabled = false;
this.gotoAndPlay(Math.round(Math.random() * this._totalframes) + 1);
}
Instance of Symbol 14 MovieClip in Symbol 15 MovieClip Frame 1
onClipEvent (load) {
this.tabEnabled = false;
this.gotoAndPlay(Math.round(Math.random() * this._totalframes) + 1);
}
Instance of Symbol 14 MovieClip in Symbol 15 MovieClip Frame 1
onClipEvent (load) {
this.tabEnabled = false;
this.gotoAndPlay(Math.round(Math.random() * this._totalframes) + 1);
}
Instance of Symbol 14 MovieClip in Symbol 15 MovieClip Frame 1
onClipEvent (load) {
this.tabEnabled = false;
this.gotoAndPlay(Math.round(Math.random() * this._totalframes) + 1);
}
Instance of Symbol 14 MovieClip in Symbol 15 MovieClip Frame 1
onClipEvent (load) {
this.tabEnabled = false;
this.gotoAndPlay(Math.round(Math.random() * this._totalframes) + 1);
}
Instance of Symbol 14 MovieClip in Symbol 15 MovieClip Frame 1
onClipEvent (load) {
this.tabEnabled = false;
this.gotoAndPlay(Math.round(Math.random() * this._totalframes) + 1);
}
Instance of Symbol 14 MovieClip in Symbol 15 MovieClip Frame 1
onClipEvent (load) {
this.tabEnabled = false;
this.gotoAndPlay(Math.round(Math.random() * this._totalframes) + 1);
}
Instance of Symbol 14 MovieClip in Symbol 15 MovieClip Frame 1
onClipEvent (load) {
this.tabEnabled = false;
this.gotoAndPlay(Math.round(Math.random() * this._totalframes) + 1);
}
Instance of Symbol 14 MovieClip in Symbol 15 MovieClip Frame 1
onClipEvent (load) {
this.tabEnabled = false;
this.gotoAndPlay(Math.round(Math.random() * this._totalframes) + 1);
}
Instance of Symbol 14 MovieClip in Symbol 15 MovieClip Frame 1
onClipEvent (load) {
this.tabEnabled = false;
this.gotoAndPlay(Math.round(Math.random() * this._totalframes) + 1);
}
Instance of Symbol 14 MovieClip in Symbol 15 MovieClip Frame 1
onClipEvent (load) {
this.tabEnabled = false;
this.gotoAndPlay(Math.round(Math.random() * this._totalframes) + 1);
}
Instance of Symbol 14 MovieClip in Symbol 15 MovieClip Frame 1
onClipEvent (load) {
this.tabEnabled = false;
this.gotoAndPlay(Math.round(Math.random() * this._totalframes) + 1);
}
Instance of Symbol 14 MovieClip in Symbol 15 MovieClip Frame 1
onClipEvent (load) {
this.tabEnabled = false;
this.gotoAndPlay(Math.round(Math.random() * this._totalframes) + 1);
}
Instance of Symbol 14 MovieClip in Symbol 15 MovieClip Frame 1
onClipEvent (load) {
this.tabEnabled = false;
this.gotoAndPlay(Math.round(Math.random() * this._totalframes) + 1);
}
Instance of Symbol 14 MovieClip in Symbol 15 MovieClip Frame 1
onClipEvent (load) {
this.tabEnabled = false;
this.gotoAndPlay(Math.round(Math.random() * this._totalframes) + 1);
}
Instance of Symbol 14 MovieClip in Symbol 15 MovieClip Frame 1
onClipEvent (load) {
this.tabEnabled = false;
this.gotoAndPlay(Math.round(Math.random() * this._totalframes) + 1);
}
Instance of Symbol 14 MovieClip in Symbol 15 MovieClip Frame 1
onClipEvent (load) {
this.tabEnabled = false;
this.gotoAndPlay(Math.round(Math.random() * this._totalframes) + 1);
}
Instance of Symbol 14 MovieClip in Symbol 15 MovieClip Frame 1
onClipEvent (load) {
this.tabEnabled = false;
this.gotoAndPlay(Math.round(Math.random() * this._totalframes) + 1);
}
Instance of Symbol 14 MovieClip in Symbol 15 MovieClip Frame 1
onClipEvent (load) {
this.tabEnabled = false;
this.gotoAndPlay(Math.round(Math.random() * this._totalframes) + 1);
}
Instance of Symbol 14 MovieClip in Symbol 15 MovieClip Frame 1
onClipEvent (load) {
this.tabEnabled = false;
this.gotoAndPlay(Math.round(Math.random() * this._totalframes) + 1);
}
Instance of Symbol 14 MovieClip in Symbol 15 MovieClip Frame 1
onClipEvent (load) {
this.tabEnabled = false;
this.gotoAndPlay(Math.round(Math.random() * this._totalframes) + 1);
}
Instance of Symbol 14 MovieClip in Symbol 15 MovieClip Frame 1
onClipEvent (load) {
this.tabEnabled = false;
this.gotoAndPlay(Math.round(Math.random() * this._totalframes) + 1);
}
Instance of Symbol 14 MovieClip in Symbol 15 MovieClip Frame 1
onClipEvent (load) {
this.tabEnabled = false;
this.gotoAndPlay(Math.round(Math.random() * this._totalframes) + 1);
}
Instance of Symbol 14 MovieClip in Symbol 15 MovieClip Frame 1
onClipEvent (load) {
this.tabEnabled = false;
this.gotoAndPlay(Math.round(Math.random() * this._totalframes) + 1);
}
Instance of Symbol 14 MovieClip in Symbol 15 MovieClip Frame 1
onClipEvent (load) {
this.tabEnabled = false;
this.gotoAndPlay(Math.round(Math.random() * this._totalframes) + 1);
}
Instance of Symbol 14 MovieClip in Symbol 15 MovieClip Frame 1
onClipEvent (load) {
this.tabEnabled = false;
this.gotoAndPlay(Math.round(Math.random() * this._totalframes) + 1);
}
Instance of Symbol 14 MovieClip in Symbol 15 MovieClip Frame 1
onClipEvent (load) {
this.tabEnabled = false;
this.gotoAndPlay(Math.round(Math.random() * this._totalframes) + 1);
}
Instance of Symbol 14 MovieClip in Symbol 15 MovieClip Frame 1
onClipEvent (load) {
this.tabEnabled = false;
this.gotoAndPlay(Math.round(Math.random() * this._totalframes) + 1);
}
Instance of Symbol 14 MovieClip in Symbol 15 MovieClip Frame 1
onClipEvent (load) {
this.tabEnabled = false;
this.gotoAndPlay(Math.round(Math.random() * this._totalframes) + 1);
}
Instance of Symbol 14 MovieClip in Symbol 15 MovieClip Frame 1
onClipEvent (load) {
this.tabEnabled = false;
this.gotoAndPlay(Math.round(Math.random() * this._totalframes) + 1);
}
Instance of Symbol 14 MovieClip in Symbol 15 MovieClip Frame 1
onClipEvent (load) {
this.tabEnabled = false;
this.gotoAndPlay(Math.round(Math.random() * this._totalframes) + 1);
}
Symbol 16 MovieClip [mcScoreAdd] Frame 1
var timeLeft = 12;
this.onEnterFrame = function () {
this.timeLeft--;
if (this.timeLeft == 0) {
this.removeMovieClip();
}
};
Symbol 33 MovieClip [mcBellc_mc] Frame 1
stop();
Symbol 49 MovieClip Frame 1
stop();
Symbol 49 MovieClip Frame 2
stop();
Symbol 54 MovieClip [mcBellf_mc] Frame 1
stop();
Symbol 60 MovieClip [mcBellb_mc] Frame 1
stop();
Symbol 63 MovieClip [mcBellg_mc] Frame 1
stop();
Symbol 67 MovieClip [mcBelld_mc] Frame 1
stop();
Instance of Symbol 66 MovieClip in Symbol 67 MovieClip [mcBelld_mc] Frame 1
onClipEvent (load) {
this.tabEnabled = false;
this.gotoAndPlay(Math.round(Math.random() * this._totalframes) + 1);
}
Symbol 68 MovieClip Frame 11
stop();
Symbol 69 MovieClip [mcBell] Frame 1
stop();
Instance of Symbol 49 MovieClip in Symbol 69 MovieClip [mcBell] Frame 1
onClipEvent (load) {
this.tabEnabled = false;
this.gotoAndPlay(Math.round(Math.random() * this._totalframes) + 1);
}
Symbol 98 MovieClip Frame 1
stop();
Symbol 98 MovieClip Frame 3
stop();
Symbol 102 MovieClip Frame 1
stop();
Symbol 111 MovieClip Frame 7
stop();
Symbol 112 MovieClip [mcFinalStats] Frame 1
pressedonce2 = false;
submittedonce = false;
flash_mc.onEnterFrame = function () {
if (Key.isDown(37)) {
_root.finalstats.swapDepths(10);
_root.rain_mc._visible = false;
_root.gameOver = false;
_root.jumpedononce = false;
clearInterval(_root.nInterval);
stopAllSounds();
_root.bgsound.start(0, 999);
_root.bgsound.setVolume(100);
_root.playedthisonce = false;
_root.mcBg.stormbring.gotoAndStop(1);
_root.enemy1passed = false;
_root.enemy2passed = false;
_root.enemy3passed = false;
_root.level2on = false;
_root.level3on = false;
_root.level4on = false;
_root.level5on = false;
_root.level6on = false;
_root.fireholder.gotoAndStop(1);
_root.footholdercounter = 0;
_root.myColor = new Color(_root.mcMain);
_root.myColor.setTint(255, 255, 255, 0);
_root.finalboss.gotoAndStop(1);
_root.footHolder._x = -80;
_root.bossorc._x = 500;
_root.wolf_mc.gotoAndStop(1);
_root.footHolder.wolffirstscene.gotoAndPlay(1);
_root.bgsound.start(0, 999);
_root.score = 0;
_root.scoreInc = 1;
_root.mcMain.gotoAndStop(1);
_root.shownonce = false;
_root.tinttimer = 0;
_root.rideon = false;
_root.catchmeifyoucan = false;
_root.wolfjumped = false;
_root.adjustwolfy = 0;
_root.wolftimer = 0;
_root.footdeath.gotoAndStop(1);
_root.shownonce = false;
_root.mcBg.play();
_root.mcMain._x = 175;
_root.gamedone = false;
_root.firstclick = false;
_root.firstclick2 = false;
_root.firstclick3 = false;
_root.firstclick4 = false;
_root.infotxt = "Up/Down or W/S keys to control character. Runover enemies to do combos!";
_root.powerbar.gotoAndStop(1);
_root.coin = 0;
_root.footcoming = false;
_root.mcMain.gotoAndStop(1);
_root.startedJumping = false;
_root.comboholder._visible = false;
_root.finalstats.removeMovieClip();
}
};
Selection.setFocus("playerName");
winorc.onEnterFrame = function () {
if (Key.isDown(39)) {
if (_root.mindJolt) {
if (_root.easyon) {
_root.mindJoltScoreeasy();
} else if (_root.normalon) {
_root.mindJoltScorenormal();
}
} else if (((!submittedonce) && (playerName != "Type your name here")) && (playerName != "")) {
submitinst = "Score sent!";
var _local2 = (playerName + "|") + _root.score;
var _local3 = _root.EncrpytString(_local2);
getURL ("http://www.arcadetown.com/samurairun/hs.asp?" + _local3, "_blank");
submittedonce = true;
}
}
if (Key.isDown(13)) {
if (!pressedonce2) {
getURL ("http://www.arcadetown.com/index.asp?gameid=samurairun", "_blank");
pressedonce2 = true;
}
} else {
pressedonce2 = false;
}
if (Key.isDown(27)) {
_root.finalstats.swapDepths(10);
clearInterval(_root.nInterval);
stopAllSounds();
_root.bgsound.start(0, 999);
_root.bgsound.setVolume(100);
_root.mcMain.removeMovieClip();
stopAllSounds();
_root.gameexited = true;
_root.bellTop2 = _root.bellTop;
i = 0;
while (i < (bellTotal + 99)) {
_root.bellHolder["bell" + i].removeMovieClip();
i++;
}
g = 0;
while (g < (bellTotal2 + 99)) {
_root.bellHolder["bellb" + g].removeMovieClip();
g++;
}
h = 0;
while (h < (bellTotal3 + 99)) {
_root.bellHolder["bellc" + h].removeMovieClip();
h++;
}
j = 0;
while (j < (bellTotal4 + 99)) {
_root.bellHolder["belld" + j].removeMovieClip();
j++;
}
k = 0;
while (k < (bellTotal5 + 99)) {
_root.bellHolder["belle" + k].removeMovieClip();
k++;
}
n = 0;
while (n < (totalBgShapes + 99)) {
_root.bellHolder["bellf" + n].removeMovieClip();
n++;
}
o = 0;
while (o < (totalBgShapes + 99)) {
bellHolder["bird" + o].removeMovieClip();
o++;
}
_root.gotoAndStop(2);
_root.finalstats.removeMovieClip();
}
};
submitbtn.onRelease = function () {
_root.blipsound.start(0, 1);
if (_root.mindJolt) {
if (_root.easyon) {
_root.mindJoltScoreeasy();
} else if (_root.normalon) {
_root.mindJoltScorenormal();
}
} else if (((!submittedonce) && (playerName != "Type your name here")) && (playerName != "")) {
_root.finalstats.submitinst = "Score sent!";
var _local2 = (playerName.text + "|") + _root.score;
var _local3 = _root.EncrpytString(_local2);
getURL ("http://www.arcadetown.com/samurairun/hs.asp?" + _local3, "_blank");
submittedonce = true;
}
};
stop();
Instance of Symbol 81 MovieClip "winorc" in Symbol 112 MovieClip [mcFinalStats] Frame 1
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.winorc) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 98 MovieClip in Symbol 112 MovieClip [mcFinalStats] Frame 1
onClipEvent (load) {
this.tabEnabled = false;
if (_root.lockme) {
this.enabled = true;
} else {
this.enabled = false;
}
if (_root.newGrounds) {
this.gotoAndStop(3);
}
}
on (release) {
if (_root.newGrounds) {
getURL ("http://www.newgrounds.com/", "_blank");
} else {
getURL ("http://www.arcadetown.com/index.asp?gameid=samurairun", "_blank");
}
}
Instance of Symbol 102 MovieClip "submitbtn" in Symbol 112 MovieClip [mcFinalStats] Frame 1
on (rollOver) {
this.gotoAndStop(2);
_root.choosesound.start(0, 1);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (releaseOutside) {
this.gotoAndStop(1);
}
Instance of Symbol 102 MovieClip in Symbol 112 MovieClip [mcFinalStats] Frame 1
on (rollOver) {
this.gotoAndStop(2);
_root.choosesound.start(0, 1);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (releaseOutside) {
this.gotoAndStop(1);
}
on (release) {
_root.blipsound.start(0, 1);
_root.finalstats.swapDepths(10);
clearInterval(_root.nInterval);
stopAllSounds();
_root.bgsound.start(0, 999);
_root.bgsound.setVolume(100);
_root.mcMain.removeMovieClip();
stopAllSounds();
_root.gameexited = true;
_root.bellTop2 = _root.bellTop;
i = 0;
while (i < (bellTotal + 99)) {
_root.bellHolder["bell" + i].removeMovieClip();
i++;
}
g = 0;
while (g < (bellTotal2 + 99)) {
_root.bellHolder["bellb" + g].removeMovieClip();
g++;
}
h = 0;
while (h < (bellTotal3 + 99)) {
_root.bellHolder["bellc" + h].removeMovieClip();
h++;
}
j = 0;
while (j < (bellTotal4 + 99)) {
_root.bellHolder["belld" + j].removeMovieClip();
j++;
}
k = 0;
while (k < (bellTotal5 + 99)) {
_root.bellHolder["belle" + k].removeMovieClip();
k++;
}
n = 0;
while (n < (totalBgShapes + 99)) {
_root.bellHolder["bellf" + n].removeMovieClip();
n++;
}
o = 0;
while (o < (totalBgShapes + 99)) {
bellHolder["bird" + o].removeMovieClip();
o++;
}
_root.gotoAndStop(2);
_root.finalstats.removeMovieClip();
}
Instance of Symbol 102 MovieClip in Symbol 112 MovieClip [mcFinalStats] Frame 1
on (rollOver) {
this.gotoAndStop(2);
_root.choosesound.start(0, 1);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (releaseOutside) {
this.gotoAndStop(1);
}
on (release) {
_root.blipsound.start(0, 1);
_root.finalstats.swapDepths(10);
_root.rain_mc._visible = false;
_root.gameOver = false;
_root.jumpedononce = false;
clearInterval(_root.nInterval);
stopAllSounds();
_root.bgsound.start(0, 999);
_root.bgsound.setVolume(100);
_root.playedthisonce = false;
_root.mcBg.stormbring.gotoAndStop(1);
_root.enemy1passed = false;
_root.enemy2passed = false;
_root.enemy3passed = false;
_root.level2on = false;
_root.level3on = false;
_root.level4on = false;
_root.level5on = false;
_root.level6on = false;
_root.fireholder.gotoAndStop(1);
_root.footholdercounter = 0;
_root.myColor = new Color(_root.mcMain);
_root.myColor.setTint(255, 255, 255, 0);
_root.finalboss.gotoAndStop(1);
_root.footHolder._x = -80;
_root.bossorc._x = 500;
_root.wolf_mc.gotoAndStop(1);
_root.footHolder.wolffirstscene.gotoAndPlay(1);
_root.bgsound.start(0, 999);
_root.score = 0;
_root.scoreInc = 1;
_root.mcMain.gotoAndStop(1);
_root.shownonce = false;
_root.tinttimer = 0;
_root.rideon = false;
_root.catchmeifyoucan = false;
_root.wolfjumped = false;
_root.adjustwolfy = 0;
_root.wolftimer = 0;
_root.footdeath.gotoAndStop(1);
_root.shownonce = false;
_root.mcBg.play();
_root.mcMain._x = 175;
_root.gamedone = false;
_root.firstclick = false;
_root.firstclick2 = false;
_root.firstclick3 = false;
_root.firstclick4 = false;
_root.infotxt = "Up/Down or W/S keys to control character. Runover enemies to do combos!";
_root.powerbar.gotoAndStop(1);
_root.coin = 0;
_root.footcoming = false;
_root.mcMain.gotoAndStop(1);
_root.startedJumping = false;
_root.comboholder._visible = false;
_root.finalstats.removeMovieClip();
}
Instance of Symbol 102 MovieClip in Symbol 112 MovieClip [mcFinalStats] Frame 1
on (rollOver) {
this.gotoAndStop(2);
_root.choosesound.start(0, 1);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (releaseOutside) {
this.gotoAndStop(1);
}
on (release) {
_root.blipsound.start(0, 1);
getURL ("http://www.arcadetown.com/index.asp?gameid=samurairun", "_blank");
}
Symbol 128 Button
on (release) {
if (_root.newGrounds) {
_root.gotoAndStop(2);
} else {
_root.arcadetownsplash.gotoAndPlay(2);
}
}
Symbol 149 MovieClip Frame 1
stop();
Symbol 149 MovieClip Frame 85
stop();
_root.gotoAndStop(2);
Symbol 458 MovieClip [__Packages.mochi.as2.MochiSync] Frame 0
class mochi.as2.MochiSync
{
var _syncContainer;
function MochiSync () {
_syncContainer = {};
}
function getProp(name) {
return(_syncContainer[name]);
}
function setProp(name, value) {
if (_syncContainer[name] == value) {
return(undefined);
}
_syncContainer[name] = value;
mochi.as2.MochiServices.send("sync_propUpdate", {name:name, value:value});
}
function triggerEvent(eventType, args) {
switch (eventType) {
case SYNC_REQUEST :
mochi.as2.MochiServices.send("sync_syncronize", _syncContainer);
break;
case SYNC_PROPERTY :
_syncContainer[args.name] = args.value;
}
}
static var SYNC_REQUEST = "SyncRequest";
static var SYNC_PROPERTY = "UpdateProperty";
}
Symbol 459 MovieClip [__Packages.mochi.as2.MochiServices] Frame 0
class mochi.as2.MochiServices
{
static var _id, _container, _clip, _sendChannelName, __get__comChannelName, onError, _listenChannel, _sendChannel;
function MochiServices () {
}
static function get id() {
return(_id);
}
static function get clip() {
return(_container);
}
static function get childClip() {
return(_clip);
}
static function getVersion() {
return("3.7 as2");
}
static function allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function get isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function set comChannelName(val) {
if (val != undefined) {
if (val.length > 3) {
_sendChannelName = val + "_fromgame";
initComChannels();
}
}
//return(__get__comChannelName());
}
static function get connected() {
return(_connected);
}
static function connect(id, clip, onError) {
warnID(id, false);
if ((!_connected) && (_clip == undefined)) {
trace("MochiServices Connecting...");
_connecting = true;
init(id, clip);
}
if (onError != undefined) {
mochi.as2.MochiServices.onError = onError;
} else if (mochi.as2.MochiServices.onError == undefined) {
mochi.as2.MochiServices.onError = function (errorCode) {
trace(errorCode);
};
}
}
static function disconnect() {
if (_connected || (_connecting)) {
_connecting = (_connected = false);
flush(true);
if (_clip != undefined) {
_clip.removeMovieClip();
delete _clip;
}
_listenChannel.close();
}
}
static function init(id, clip) {
_id = id;
if (clip != undefined) {
_container = clip;
} else {
_container = _root;
}
loadCommunicator(id, _container);
}
static function loadCommunicator(id, clip) {
var _local6 = "_mochiservices_com_" + id;
var _local5 = new MovieClipLoader();
var _local3 = {};
if (_clip != null) {
return(_clip);
}
if (!isNetworkAvailable) {
return(null);
}
if (urlOptions().servURL) {
_servURL = urlOptions().servURL;
}
var _local4 = _servURL + _services;
if (urlOptions().servicesURL) {
_local4 = urlOptions().servicesURL;
}
allowDomains(_local4);
_clip = clip.createEmptyMovieClip(_local6, 10336, false);
_listenChannelName = _listenChannelName + ((Math.floor(new Date().getTime()) + "_") + Math.floor(Math.random() * 99999));
listen();
if (_local3.waitInterval != null) {
clearInterval(_local3.waitInterval);
}
_local3.onLoadError = loadError;
_local3.onLoadStart = function (target_mc) {
this.isLoading = true;
};
_local3.onLoadComplete = function (target_mc) {
target_mc.MochiServices = mochi.as2.MochiServices;
};
_local3.startTime = getTimer();
_local3.wait = function () {
if ((getTimer() - this.startTime) > 10000) {
if (!this.isLoading) {
mochi.as2.MochiServices.disconnect();
mochi.as2.MochiServices.onError.apply(null, ["IOError"]);
}
clearInterval(this.waitInterval);
}
};
_local3.waitInterval = setInterval(_local3, "wait", 1000);
_local5.addListener(_local3);
_local5.loadClip((((((_local4 + "?listenLC=") + _listenChannelName) + "&mochiad_options=") + escape(_root.mochiad_options)) + "&api_version=") + getVersion(), _clip);
_sendChannel = new LocalConnection();
_sendChannel._queue = [];
return(_clip);
}
static function loadError(target_mc, errorCode, httpStatus) {
trace("MochiServices could not load.");
disconnect();
onError.apply(null, [errorCode]);
}
static function onStatus(infoObject) {
if (!(infoObject.level === "error")) {
} else {
_connected = false;
_listenChannel.connect(_listenChannelName);
}
}
static function listen() {
_listenChannel = new LocalConnection();
_listenChannel.handshake = function (args) {
mochi.as2.MochiServices.__set__comChannelName(args.newChannel);
};
_listenChannel.allowDomain = function (d) {
return(true);
};
_listenChannel.allowInsecureDomain = _listenChannel.allowDomain;
_listenChannel._nextcallbackID = 0;
_listenChannel._callbacks = {};
_listenChannel.connect(_listenChannelName);
trace("Waiting for MochiAds services to connect...");
}
static function initComChannels() {
if (!_connected) {
_sendChannel.onStatus = function (infoObject) {
mochi.as2.MochiServices.onStatus(infoObject);
};
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"handshakeDone"});
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"registerGame", id:_id, version:getVersion()});
_listenChannel.onStatus = function (infoObject) {
mochi.as2.MochiServices.onStatus(infoObject);
};
_listenChannel.onReceive = function (pkg) {
var _local5 = pkg.callbackID;
var _local4 = this._callbacks[_local5];
if (!_local4) {
return(undefined);
}
var _local2 = _local4.callbackMethod;
var _local3 = _local4.callbackObject;
if (_local3 && (typeof(_local2) == "string")) {
_local2 = _local3[_local2];
}
if (_local2 != undefined) {
_local2.apply(_local3, pkg.args);
}
delete this._callbacks[_local5];
};
_listenChannel.onEvent = function (pkg) {
switch (pkg.target) {
case "events" :
mochi.as2.MochiEvents.triggerEvent(pkg.event, pkg.args);
break;
case "coins" :
mochi.as2.MochiSocial.triggerEvent(pkg.event, pkg.args);
break;
case "sync" :
mochi.as2.MochiServices.servicesSync.triggerEvent(pkg.event, pkg.args);
}
};
_listenChannel.onError = function () {
mochi.as2.MochiServices.onError.apply(null, ["IOError"]);
};
trace("[SERVICES_API] connected!");
_connecting = false;
_connected = true;
while (_sendChannel._queue.length > 0) {
_sendChannel.send(_sendChannelName, "onReceive", _sendChannel._queue.shift());
}
}
}
static function flush(error) {
var _local1;
var _local2;
while (_sendChannel._queue.length > 0) {
_local1 = _sendChannel._queue.shift();
if (_local1.callbackID != null) {
_local2 = _listenChannel._callbacks[_local1.callbackID];
}
delete _listenChannel._callbacks[_local1.callbackID];
if (error) {
handleError(_local1.args, _local2.callbackObject, _local2.callbackMethod);
}
}
}
static function handleError(args, callbackObject, callbackMethod) {
if (args != null) {
if (args.onError != null) {
args.onError.apply(null, ["NotConnected"]);
}
if ((args.options != null) && (args.options.onError != null)) {
args.options.onError.apply(null, ["NotConnected"]);
}
}
if (callbackMethod != null) {
args = {};
args.error = true;
args.errorCode = "NotConnected";
if ((callbackObject != null) && (typeof(callbackMethod) == "string")) {
callbackObject[callbackMethod](args);
} else if (callbackMethod != null) {
callbackMethod.apply(args);
}
}
}
static function send(methodName, args, callbackObject, callbackMethod) {
if (_connected) {
_sendChannel.send(_sendChannelName, "onReceive", {methodName:methodName, args:args, callbackID:_listenChannel._nextcallbackID});
} else {
if ((_clip == undefined) || (!_connecting)) {
trace("Error: MochiServices not connected. Please call MochiServices.connect(). Function: " + methodName);
handleError(args, callbackObject, callbackMethod);
flush(true);
return(undefined);
}
_sendChannel._queue.push({methodName:methodName, args:args, callbackID:_listenChannel._nextcallbackID});
}
_listenChannel._callbacks[_listenChannel._nextcallbackID] = {callbackObject:callbackObject, callbackMethod:callbackMethod};
_listenChannel._nextcallbackID++;
}
static function urlOptions() {
var _local5 = {};
var _local6;
if (_root._url.indexOf("mochiad_options") != -1) {
var _local2 = (_root._url.indexOf("mochiad_options") + "mochiad_options".length) + 1;
_local6 = _root._url.substr(_local2, _root._url.length);
} else if (_root.mochiad_options) {
_local6 = _root.mochiad_options;
}
if (_local6) {
var _local4 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = _local4[_local2].split("=");
_local5[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
return(_local5);
}
static function warnID(bid, leaderboard) {
bid = bid.toLowerCase();
if (bid.length != 16) {
trace(("WARNING: " + (leaderboard ? "board" : "game")) + " ID is not the appropriate length");
return(undefined);
}
if (bid == "1e113c7239048b3f") {
if (leaderboard) {
trace("WARNING: Using testing board ID");
} else {
trace("WARNING: Using testing board ID as game ID");
}
return(undefined);
}
if (bid == "84993a1de4031cd8") {
if (leaderboard) {
trace("WARNING: Using testing game ID as board ID");
} else {
trace("WARNING: Using testing game ID");
}
return(undefined);
}
var _local1 = 0;
while (_local1 < bid.length) {
switch (bid.charAt(_local1)) {
case "0" :
case "1" :
case "2" :
case "3" :
case "4" :
case "5" :
case "6" :
case "7" :
case "8" :
case "9" :
case "a" :
case "b" :
case "c" :
case "d" :
case "e" :
case "f" :
break;
default :
trace("WARNING: Board ID contains illegal characters: " + bid);
return(undefined);
}
_local1++;
}
}
static function addLinkEvent(url, burl, btn, onClick) {
var timeout = 1500;
var t0 = getTimer();
var _local2 = new Object();
_local2.mav = getVersion();
_local2.swfv = btn.getSWFVersion() || 6;
_local2.swfurl = btn._url;
_local2.fv = System.capabilities.version;
_local2.os = System.capabilities.os;
_local2.lang = System.capabilities.language;
_local2.scres = (System.capabilities.screenResolutionX + "x") + System.capabilities.screenResolutionY;
var s = "?";
var _local3 = 0;
for (var _local6 in _local2) {
if (_local3 != 0) {
s = s + "&";
}
_local3++;
s = ((s + _local6) + "=") + escape(_local2[_local6]);
}
if (!(netupAttempted || (_connected))) {
var ping = btn.createEmptyMovieClip("ping", 777);
var _local7 = btn.createEmptyMovieClip("nettest", 778);
netupAttempted = true;
ping.loadMovie("http://x.mochiads.com/linkping.swf?t=" + getTimer());
_local7.onEnterFrame = function () {
if ((ping._totalframes > 0) && (ping._totalframes == ping._framesloaded)) {
delete this.onEnterFrame;
} else if ((getTimer() - t0) > timeout) {
delete this.onEnterFrame;
mochi.as2.MochiServices.netup = false;
}
};
}
var _local4 = btn.createEmptyMovieClip("clk", 1001);
_local4._alpha = 0;
_local4.beginFill(1044735);
_local4.moveTo(0, 0);
_local4.lineTo(0, btn._height);
_local4.lineTo(btn._width, btn._height);
_local4.lineTo(btn._width, 0);
_local4.lineTo(0, 0);
_local4.endFill();
_local4.onRelease = function () {
if (mochi.as2.MochiServices.netup) {
getURL (url + s, "_blank");
} else {
getURL (burl, "_blank");
}
if (onClick != undefined) {
onClick();
}
};
}
static function setContainer(clip) {
}
static function stayOnTop(clip) {
}
static var _servURL = "http://www.mochiads.com/static/lib/services/";
static var _services = "services.swf";
static var _mochiLC = "MochiLC.swf";
static var _listenChannelName = "__ms_";
static var _connecting = false;
static var _connected = false;
static var netup = true;
static var netupAttempted = false;
static var servicesSync = new mochi.as2.MochiSync();
}
Symbol 460 MovieClip [__Packages.mochi.as2.MochiEventDispatcher] Frame 0
class mochi.as2.MochiEventDispatcher
{
var eventTable;
function MochiEventDispatcher () {
eventTable = {};
}
function buildDelegate(thisObject, thatObject) {
var _local2 = {thisObject:thisObject, thatObject:thatObject};
if (thatObject != undefined) {
var funct = ((typeof(thatObject) == "string") ? (thisObject[thatObject]) : (thatObject));
_local2.delegate = function (args) {
funct.call(thisObject, args);
};
} else {
_local2.delegate = thisObject;
}
return(_local2);
}
function compareDelegate(d_A, d_B) {
if ((d_A.thisObject != d_B.thisObject) || (d_A.thatObject != d_B.thatObject)) {
return(false);
}
return(true);
}
function addEventListener(event, thisObject, thatObject) {
removeEventListener(event, thisObject, thatObject);
eventTable[event].push(buildDelegate(thisObject, thatObject));
}
function removeEventListener(event, thisObject, thatObject) {
var _local3 = buildDelegate(thisObject, thatObject);
if (eventTable[event] == undefined) {
eventTable[event] = [];
return(undefined);
}
for (var _local4 in eventTable[event]) {
if (!compareDelegate(eventTable[event][_local4], _local3)) {
continue;
}
eventTable[event].splice(Number(_local4), 1);
}
}
function triggerEvent(event, args) {
if (eventTable[event] == undefined) {
return(undefined);
}
for (var _local4 in eventTable[event]) {
eventTable[event][_local4].delegate(args);
}
}
}
Symbol 461 MovieClip [__Packages.mochi.as2.MochiEvents] Frame 0
class mochi.as2.MochiEvents
{
static var gameStart, levelStart;
function MochiEvents () {
}
static function getVersion() {
return(mochi.as2.MochiServices.getVersion());
}
static function startSession(achievementID) {
mochi.as2.MochiServices.send("events_beginSession", {achievementID:achievementID}, null, null);
}
static function trigger(kind, obj) {
if (obj == undefined) {
obj = {};
} else if (obj.kind != undefined) {
trace("WARNING: optional arguements package contains key 'id', it will be overwritten");
obj.kind = kind;
}
mochi.as2.MochiServices.send("events_triggerEvent", {eventObject:obj}, null, null);
}
static function setNotifications(clip, style) {
var _local2 = {};
for (var _local3 in style) {
_local2[_local3] = style[_local3];
}
_local2.clip = clip;
mochi.as2.MochiServices.send("events_setNotifications", _local2, null, null);
}
static function addEventListener(eventType, thisObject, thatObject) {
_dispatcher.addEventListener(eventType, thisObject, thatObject);
}
static function triggerEvent(eventType, args) {
_dispatcher.triggerEvent(eventType, args);
}
static function removeEventListener(eventType, thisObject, thatObject) {
_dispatcher.removeEventListener(eventType, thisObject, thatObject);
}
static function startGame() {
gameStart = new Date().getTime();
trigger("start_game");
}
static function endGame() {
var _local1 = new Date().getTime() - gameStart;
trigger("end_game", {time:_local1});
}
static function startLevel() {
levelStart = new Date().getTime();
trigger("start_level");
}
static function endLevel() {
var _local1 = new Date().getTime() - levelStart;
trigger("end_level", {time:_local1});
}
static var ACHIEVEMENT_RECEIVED = "AchievementReceived";
static var ALIGN_TOP_LEFT = "ALIGN_TL";
static var ALIGN_TOP = "ALIGN_T";
static var ALIGN_TOP_RIGHT = "ALIGN_TR";
static var ALIGN_LEFT = "ALIGN_L";
static var ALIGN_CENTER = "ALIGN_C";
static var ALIGN_RIGHT = "ALIGN_R";
static var ALIGN_BOTTOM_LEFT = "ALIGN_BL";
static var ALIGN_BOTTOM = "ALIGN_B";
static var ALIGN_BOTTOM_RIGHT = "ALIGN_BR";
static var FORMAT_SHORT = "ShortForm";
static var FORMAT_LONG = "LongForm";
static var _dispatcher = new mochi.as2.MochiEventDispatcher();
}
Symbol 462 MovieClip [__Packages.mochi.as2.MochiSocial] Frame 0
class mochi.as2.MochiSocial
{
function MochiSocial () {
}
static function getVersion() {
return(mochi.as2.MochiServices.getVersion());
}
static function showLoginWidget(options) {
mochi.as2.MochiServices.setContainer();
mochi.as2.MochiServices.stayOnTop();
mochi.as2.MochiServices.send("coins_showLoginWidget", {options:options});
}
static function hideLoginWidget() {
mochi.as2.MochiServices.send("coins_hideLoginWidget");
}
static function requestLogin() {
mochi.as2.MochiServices.send("coins_requestLogin");
}
static function getUserInfo() {
mochi.as2.MochiServices.send("coins_getUserInfo");
}
static function saveUserProperties(properties) {
mochi.as2.MochiServices.send("coins_saveUserProperties", properties);
}
static function addEventListener(eventType, delegate) {
_dispatcher.addEventListener(eventType, delegate);
}
static function triggerEvent(eventType, args) {
_dispatcher.triggerEvent(eventType, args);
}
static function removeEventListener(eventType, delegate) {
_dispatcher.removeEventListener(eventType, delegate);
}
static var LOGGED_IN = "LoggedIn";
static var LOGGED_OUT = "LoggedOut";
static var LOGIN_SHOW = "LoginShow";
static var LOGIN_HIDE = "LoginHide";
static var LOGIN_SHOWN = "LoginShown";
static var PROFILE_SHOW = "ProfileShow";
static var PROFILE_HIDE = "ProfileHide";
static var PROPERTIES_SAVED = "PropertySaved";
static var WIDGET_LOADED = "WidgetLoaded";
static var USER_INFO = "UserInfo";
static var ERROR = "Error";
static var IO_ERROR = "IOError";
static var NO_USER = "NoUser";
static var PROPERTIES_SIZE = "PropertiesSize";
static var _dispatcher = new mochi.as2.MochiEventDispatcher();
}
Symbol 463 MovieClip [__Packages.mochi.as2.MochiScores] Frame 0
class mochi.as2.MochiScores
{
static var boardID, onClose, onError;
function MochiScores () {
}
static function setBoardID(boardID) {
mochi.as2.MochiServices.warnID(boardID, true);
mochi.as2.MochiScores.boardID = boardID;
mochi.as2.MochiServices.send("scores_setBoardID", {boardID:boardID});
}
static function showLeaderboard(options) {
options.clip = mochi.as2.MochiServices.clip;
if ((options.clip != mochi.as2.MochiServices.__get__clip()) || (mochi.as2.MochiServices.__get__childClip()._target == undefined)) {
mochi.as2.MochiServices.disconnect();
trace("WARNING! This application is attempting to connect to MochiServices inside a showLeaderboard call!");
trace("make sure MochiServices.connect is called as early in the application runtime as possible.");
mochi.as2.MochiServices.connect(mochi.as2.MochiServices.__get__id(), options.clip);
}
delete options.clip;
if (options.name != null) {
if (typeof(options.name) == "object") {
if (options.name.text != undefined) {
options.name = options.name.text;
}
}
}
if (options.score != null) {
if (options.score instanceof TextField) {
if (options.score.text != undefined) {
options.score = options.score.text;
}
} else if (options.score instanceof mochi.as2.MochiDigits) {
options.score = options.score.value;
}
var _local1 = Number(options.score);
if (isNaN(_local1)) {
trace(("ERROR: Submitted score '" + options.score) + "' will be rejected, score is 'Not a Number'");
} else if ((_local1 == Number.NEGATIVE_INFINITY) || (_local1 == Number.POSITIVE_INFINITY)) {
trace(("ERROR: Submitted score '" + options.score) + "' will be rejected, score is an infinite");
} else {
if (Math.floor(_local1) != _local1) {
trace(("WARNING: Submitted score '" + options.score) + "' will be truncated");
}
options.score = _local1;
}
}
if (options.onDisplay != null) {
options.onDisplay();
} else {
mochi.as2.MochiServices.__get__clip().stop();
}
if (options.onClose != null) {
onClose = options.onClose;
} else {
onClose = function () {
mochi.as2.MochiServices.__get__clip().stop();
};
}
if (options.onError != null) {
onError = options.onError;
} else {
onError = onClose;
}
if (options.boardID == null) {
if (boardID != null) {
options.boardID = boardID;
}
}
mochi.as2.MochiServices.warnID(options.boardID, true);
trace("[MochiScores] NOTE: Security Sandbox Violation errors below are normal");
mochi.as2.MochiServices.send("scores_showLeaderboard", {options:options}, null, doClose);
}
static function closeLeaderboard() {
mochi.as2.MochiServices.send("scores_closeLeaderboard");
}
static function getPlayerInfo(callbackObj, callbackMethod) {
mochi.as2.MochiServices.send("scores_getPlayerInfo", null, callbackObj, callbackMethod);
}
static function submit(score, name, callbackObj, callbackMethod) {
score = Number(score);
if (isNaN(score)) {
trace(("ERROR: Submitted score '" + String(score)) + "' will be rejected, score is 'Not a Number'");
} else if ((score == Number.NEGATIVE_INFINITY) || (score == Number.POSITIVE_INFINITY)) {
trace(("ERROR: Submitted score '" + String(score)) + "' will be rejected, score is an infinite");
} else {
if (Math.floor(score) != score) {
trace(("WARNING: Submitted score '" + String(score)) + "' will be truncated");
}
score = Number(score);
}
mochi.as2.MochiServices.send("scores_submit", {score:score, name:name}, callbackObj, callbackMethod);
}
static function requestList(callbackObj, callbackMethod) {
mochi.as2.MochiServices.send("scores_requestList", null, callbackObj, callbackMethod);
}
static function scoresArrayToObjects(scores) {
var _local5 = {};
var _local1;
var _local4;
var _local2;
var _local6;
for (var _local8 in scores) {
if (typeof(scores[_local8]) == "object") {
if ((scores[_local8].cols != null) && (scores[_local8].rows != null)) {
_local5[_local8] = [];
_local2 = scores[_local8];
_local4 = 0;
while (_local4 < _local2.rows.length) {
_local6 = {};
_local1 = 0;
while (_local1 < _local2.cols.length) {
_local6[_local2.cols[_local1]] = _local2.rows[_local4][_local1];
_local1++;
}
_local5[_local8].push(_local6);
_local4++;
}
} else {
_local5[_local8] = {};
for (var _local7 in scores[_local8]) {
_local5[_local8][_local7] = scores[_local8][_local7];
}
}
} else {
_local5[_local8] = scores[_local8];
}
}
return(_local5);
}
static function doClose(args) {
if (args.error == true) {
if (args.errorCode == undefined) {
args.errorCode = "IOError";
}
onError.apply(null, [args.errorCode]);
} else {
onClose.apply();
}
}
}
Symbol 464 MovieClip [__Packages.mochi.as2.MochiDigits] Frame 0
class mochi.as2.MochiDigits
{
var Encoder, Fragment, Sibling;
function MochiDigits (digit, index) {
Encoder = 0;
setValue(digit, index);
}
function get value() {
return(Number(toString()));
}
function set value(v) {
setValue(v);
//return(value);
}
function addValue(v) {
value = value + v;
}
function setValue(digit, index) {
var _local3 = digit.toString();
if ((index == undefined) || (isNaN(index))) {
index = 0;
}
Fragment = _local3.charCodeAt(index++) ^ Encoder;
if (index < _local3.length) {
Sibling = new mochi.as2.MochiDigits(digit, index);
} else {
Sibling = null;
}
reencode();
}
function reencode() {
var _local2 = int(2147483647 * Math.random());
Fragment = Fragment ^ (_local2 ^ Encoder);
Encoder = _local2;
}
function toString() {
var _local2 = String.fromCharCode(Fragment ^ Encoder);
return(((Sibling != null) ? (_local2.concat(Sibling.toString())) : (_local2)));
}
}
Symbol 164 MovieClip Frame 16
_root.stabsound.start(0, 1);
Symbol 164 MovieClip Frame 25
_root.menuhandler.gotoAndPlay(2);
stop();
Symbol 173 MovieClip Frame 1
stop();
Symbol 179 MovieClip Frame 1
stop();
Symbol 179 MovieClip Frame 2
stop();
Symbol 183 MovieClip Frame 1
stop();
Symbol 187 MovieClip Frame 1
stop();
Symbol 191 MovieClip Frame 1
stop();
Symbol 192 MovieClip Frame 1
stop();
Instance of Symbol 179 MovieClip "startbtn" in Symbol 192 MovieClip Frame 1
onClipEvent (load) {
this.tabEnabled = false;
}
on (rollOver) {
this.gotoAndPlay(2);
}
on (rollOut) {
this.gotoAndPlay(6);
}
on (release) {
_root.nextsnd.start(0, 1);
_root.gotoAndStop("startgame");
}
Instance of Symbol 183 MovieClip in Symbol 192 MovieClip Frame 1
onClipEvent (load) {
this.tabEnabled = false;
}
on (rollOver) {
this.gotoAndPlay(2);
}
on (rollOut) {
this.gotoAndPlay(6);
}
on (release) {
getURL ("http://www.arcadetown.com/index.asp?gameid=samurairun", "_blank");
}
Instance of Symbol 179 MovieClip "startbtn" in Symbol 192 MovieClip Frame 4
onClipEvent (load) {
this.tabEnabled = false;
}
on (rollOver) {
this.gotoAndStop(2);
_root.choosesound.start(0, 1);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (releaseOutside) {
this.gotoAndStop(1);
}
on (release) {
_root.nextsnd.start(0, 1);
_root.gotoAndStop("startgame");
}
Instance of Symbol 183 MovieClip in Symbol 192 MovieClip Frame 16
on (rollOver) {
this.gotoAndStop(2);
_root.choosesound.start(0, 1);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (releaseOutside) {
this.gotoAndStop(1);
}
on (release) {
getURL ("http://www.arcadetown.com/index.asp?gameid=samurairun", "_blank");
}
Instance of Symbol 187 MovieClip in Symbol 192 MovieClip Frame 16
onClipEvent (load) {
this.tabEnabled = false;
if (_root.lockme) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 187 MovieClip in Symbol 192 MovieClip Frame 21
onClipEvent (load) {
this.tabEnabled = false;
if (_root.lockme) {
this._visible = true;
} else {
this._visible = false;
}
}
on (rollOver) {
this.gotoAndStop(2);
_root.choosesound.start(0, 1);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (releaseOutside) {
this.gotoAndStop(1);
}
on (release) {
getURL ("http://www.arcadetown.com/free_content/index.asp", "_blank");
}
Instance of Symbol 191 MovieClip in Symbol 192 MovieClip Frame 21
onClipEvent (load) {
this.tabEnabled = false;
if (_root.lockme) {
this._visible = true;
} else {
this._visible = false;
}
}
Symbol 192 MovieClip Frame 25
stop();
Instance of Symbol 191 MovieClip in Symbol 192 MovieClip Frame 25
onClipEvent (load) {
this.tabEnabled = false;
if (_root.lockme) {
this._visible = true;
} else {
this._visible = false;
}
}
on (rollOver) {
this.gotoAndStop(2);
_root.choosesound.start(0, 1);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (releaseOutside) {
this.gotoAndStop(1);
}
on (release) {
getURL ("http://www.arcadetown.com/gamename/download.asp", "_blank");
}
Symbol 198 MovieClip Frame 1
stop();
Symbol 198 MovieClip Frame 10
_root.select_mc.gotoAndStop(2);
stop();
Symbol 205 MovieClip Frame 15
_root.modeselect_mc.gotoAndPlay(2);
stop();
Symbol 210 MovieClip Frame 15
stop();
Symbol 216 MovieClip Frame 1
stop();
Symbol 216 MovieClip Frame 2
stop();
Symbol 223 MovieClip Frame 1
stop();
Symbol 226 MovieClip Frame 1
stop();
Symbol 226 MovieClip Frame 240
stop();
Instance of Symbol 223 MovieClip "stormbring" in Symbol 232 MovieClip Frame 1
onClipEvent (load) {
this.tabEnabled = false;
}
onClipEvent (enterFrame) {
if (_root.score >= 1000) {
if (!_root.playedthisonce) {
_root.stormambience.start(0, 999);
this.gotoAndStop(2);
_root.playedthisonce = true;
}
}
}
Symbol 272 MovieClip Frame 1
stop();
Symbol 288 MovieClip Frame 9
stop();
Symbol 289 MovieClip Frame 1
stop();
Symbol 289 MovieClip Frame 4
stop();
Symbol 289 MovieClip Frame 5
stop();
Symbol 289 MovieClip Frame 6
stop();
Symbol 289 MovieClip Frame 7
stop();
Symbol 294 MovieClip Frame 3
stop();
Symbol 295 MovieClip Frame 1
stop();
Symbol 295 MovieClip Frame 2
stop();
Symbol 301 MovieClip Frame 48
stop();
Symbol 309 MovieClip Frame 1
stop();
Symbol 309 MovieClip Frame 40
stop();
Symbol 321 MovieClip Frame 1
stop();
Symbol 321 MovieClip Frame 2
stop();
Symbol 321 MovieClip Frame 3
stop();
Symbol 321 MovieClip Frame 4
stop();
Symbol 321 MovieClip Frame 5
stop();
Symbol 321 MovieClip Frame 6
stop();
Symbol 323 MovieClip Frame 31
_root.catchmeifyoucan = true;
stop();
Symbol 326 MovieClip Frame 27
_root.wolfjumped = false;
_root.wolf_mc.gotoAndStop(3);
Symbol 327 MovieClip Frame 1
stop();
Symbol 341 MovieClip Frame 1
stop();
Symbol 346 MovieClip Frame 1
stop();
Symbol 346 MovieClip Frame 8
stop();
Symbol 346 MovieClip Frame 13
_root.dragon_mc.gotoAndPlay(2);
stop();
Symbol 347 MovieClip Frame 38
stop();
Symbol 348 MovieClip Frame 1
stop();
Symbol 362 MovieClip Frame 227
stop();
Symbol 365 MovieClip Frame 1
stop();
Symbol 400 MovieClip Frame 1
stop();
Symbol 416 MovieClip Frame 9
stop();
Symbol 417 MovieClip Frame 1
stop();
Symbol 417 MovieClip Frame 4
stop();
Symbol 417 MovieClip Frame 5
stop();
Symbol 417 MovieClip Frame 6
stop();
Symbol 417 MovieClip Frame 7
stop();
Symbol 425 MovieClip Frame 31
_root.catchmeifyoucan = true;
stop();
Symbol 433 MovieClip Frame 27
_root.wolfjumped = false;
_root.wolf_mc.gotoAndStop(3);
Symbol 434 MovieClip Frame 1
stop();
Symbol 447 MovieClip Frame 48
stop();
Symbol 457 MovieClip Frame 227
stop();