Frame 1
var my_cm = new ContextMenu();
my_cm.hideBuiltInItems();
this.menu = my_cm;
_global.masterDomain = "swarm.killerviral.com";
_global.masterURL = (isDev ? "" : (("http://" + _global.masterDomain) + "/standupstandoff/"));
_global.isMaster = _root._url.indexOf(_global.masterDomain) >= 0;
_global.domain = ((_root._url.split("/")[0].indexOf("http") == -1) ? "Local" : (_root._url.split("/")[2].split("?")[0]));
_global.playerVersion = Number(getVersion().substr(getVersion().indexOf(" ") + 1).split(",")[0]);
_global.movieVersion = (_root.getSWFVersion ? (_root.getSWFVersion()) : 8);
_global.ori_dom = (_root.ori_dom ? (_root.ori_dom) : (domain));
_global.assetsURL = "http://meetordelete.sitedone.com/";
_global.highscoresURL = "http://highscores.killerviral.com/stand-up-standoff/";
System.security.allowDomain(_global.masterDomain);
var game_version = 8;
if (!testMode) {
stop();
if (playerVersion < 8) {
loadMovie (_global.masterURL + "error.swf", _root);
} else if (isMaster) {
play();
} else {
var vc_lv = new LoadVars();
vc_lv.onLoad = function (success) {
clearInterval(tOIntId);
delete tOIntId;
if (success) {
if (Number(vc_lv.v) > game_version) {
loadMovie ((_global.masterURL + "game.swf?ori_dom=") + ori_dom, _root);
} else {
play();
}
} else {
play();
}
delete vc_lv;
};
tOIntId = setInterval(timeout, 2000);
vc_lv.load(_global.masterURL + "v.php");
}
}
sony_btn.onMouseDown = function () {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.kvClick(393);
}
};
killerviral_btn.onMouseDown = function () {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.kvClick(394);
}
};
Frame 2
stop();
i = -16734;
createEmptyMovieClip("kv_mc", i);
kv_mc.kv_v = {c:266, td:"266.memecounter.com"};
System.security.allowDomain(kv_mc.kv_v.td);
kv_mc.kv_v.c_so = SharedObject.getLocal(kv_mc.kv_v.c, "/");
kv_mc.kv_v.d = (_root.ori_dom ? (_root.ori_dom) : (((_root._url.split("/")[0].indexOf("http") == -1) ? "Local" : (_root._url.split("/")[2].split("?")[0]))));
kv_mc.kv_v.fpv = getVersion().split(" ")[1].split(",")[0];
kv_mc.kv_v.lurl = ((((((((((("http://" + kv_mc.kv_v.td) + "/tracker.php") + "?c=") + kv_mc.kv_v.c) + "&r=") + Math.floor(Math.random() * 10000000000)) + "&d=") + kv_mc.kv_v.d) + "&u=") + (kv_mc.kv_v.c_so.data.u ? "1" : "")) + "&p=") + kv_mc.kv_v.fpv;
kv_mc.kv_v.c_so.data.u = true;
kv_mc.kv_v.c_so.flush();
kv_mc.kv_v.t_mc = kv_mc.createEmptyMovieClip("kv_tracker", i - 1);
kv_mc.kv_v.l_mcl = new MovieClipLoader();
if (kv_mc.kv_v.l_mcl.loadClip) {
kv_mc.kv_v.l_mcl.loadClip(kv_mc.kv_v.lurl, kv_mc.kv_v.t_mc);
} else {
loadMovie (kv_mc.kv_v.lurl, kv_mc.kv_v.t_mc);
}
_root.tvc_media = "729";
_root.createEmptyMovieClip("TVC_mc", 0);
System.security.allowDomain("http://www.viralchart.com");
TVC_mc.loadMovie("http://www.viralchart.com/tvc_tracker.swf");
Frame 4
stop();
Frame 5
function playAttackAnimation() {
outro.anim.chubby.gotoAndPlay("attack" + animationArray[level][round - 2][animationIndex % 5]);
}
function animOver() {
animationIndex++;
if (animationArray[level][round - 2][animationIndex % 5]) {
playAttackAnimation();
} else {
outro.anim.chubby.stop();
}
}
function chooseNewOpponent(n) {
opponent = opponentArray[n];
if ((n + 1) > opponentArray.length) {
rightOpponent = opponentArray[0];
} else {
rightOpponent = opponentArray[n + 1];
}
if ((n - 1) < 0) {
leftOpponent = opponentArray[opponentArray.length - 1];
} else {
leftOpponent = opponentArray[n - 1];
}
}
function setChubbyMood(t) {
t.gotoAndStop(chubbyMood);
}
function levelCompleted() {
levelScore = totalScore;
level++;
round = 1;
chooseNewOpponent(level);
delete introState;
chubbyMood = "thinking";
gotoAndStop ("intro");
}
function levelFailed() {
totalScore = levelScore;
delete introState;
chubbyMood = "thinking";
round = 1;
gotoAndStop ("intro");
}
function startYouFatBastard() {
fatBastardSound = _global.sndman.newSound("fat_bastard");
fatBastardSound.setVolume(0);
fatBastardSound.fadeTo(100, 20);
fatBastardSound.start(0, 999);
}
function startTimeUpSound() {
timeUpSound = _global.sndman.newSound("timeUp");
timeUpSound.onSoundComplete = function () {
this.remove();
};
timeUpSound.start();
}
function stopYouFatBastard() {
fatBastardSound.fadeTo(0, 20);
fatBastardSound.onFadeComplete = function () {
this.remove();
};
}
function setStarRating() {
i = 1;
while (i <= 5) {
if (i <= brainScore) {
starRating["star" + i].gotoAndStop("on");
} else {
starRating["star" + i].gotoAndStop("off");
}
i++;
}
}
function setFinalStarRating() {
i = 1;
while (i <= 5) {
if (i <= brainScore) {
starRating["star" + i].gotoAndStop("on");
} else {
starRating["star" + i].gotoAndStop("off");
}
i++;
}
if (_parent.brainScore == -100) {
starRating.gotoAndStop("timeUp");
} else if (brainScore < brainScoreFailThreshold) {
starRating.gotoAndStop("fatal");
} else if (brainScore >= allStars) {
starRating.gotoAndStop("allStars");
}
}
function prepareRetort() {
playSuccess = false;
if (brainScore >= allStars) {
playSuccess = true;
nextRetort = chubbySpeechArray[level][round - 2];
nextRetortSpeech = chubbySubtitle[chubbySpeechArray[level][round - 2]].subtitle;
} else if (chubbyMood == "failed") {
nextRetortSpeech = chubbySubtitle["fail" + (failIndex % 3)].subtitle;
nextRetort = "fail" + (failIndex % 3);
failIndex++;
} else if (chubbyMood == "timeUp") {
nextRetortSpeech = chubbySubtitle["fail" + (failIndex % 3)].subtitle;
nextRetort = "fail" + (failIndex % 3);
failIndex++;
} else {
playSuccess = true;
nextRetort = chubbySpeechArray[level][round - 1];
nextRetortSpeech = chubbySubtitle[chubbySpeechArray[level][round - 1]].subtitle;
}
}
function updateChubbySpeech(t) {
t.heckleSpeech.text = nextRetortSpeech;
}
function startSuccess() {
successSound = _global.sndman.newSound("success");
successSound.start(0, 99);
}
function playChubbyRetort(t) {
chubbyRetort = _global.sndman.newSound(nextRetort);
chubbyRetort.t = t;
blackBar.onEnterFrame = laughWhenNearlyDone;
chubbyRetort.onSoundComplete = function () {
outro.chubbySpeechBubble.play();
if (playSuccess) {
outro.play();
} else {
booSound = _global.sndman.newSound("boo");
booSound.start();
booSound.onSoundComplete = function () {
this.remove();
};
}
this.remove();
};
chubbyRetort.start();
}
function laughWhenNearlyDone() {
if ((chubbyRetort.position / chubbyRetort.duration) >= 0.6) {
startLaughter();
laughing = true;
delete blackBar.onEnterFrame;
}
}
function playHeckle(t) {
heckleSound = _global.sndman.newSound(String(opponentArray[level]) + round);
heckleSound.t = t;
heckleSound.onSoundComplete = function () {
intro.heckleBubble.play();
intro.chubbsView.bg.heckler.stop();
intro.play();
this.remove();
};
heckleSound.start();
}
function updateHeckleSpeech(t) {
t.heckleSpeech.text = heckleSubtitle[opponentArray[level]][round - 1];
}
function startSlowHeckle() {
slowHeckleSound = _global.sndman.newSound((String(opponentArray[level]) + round) + "Slow");
slowHeckleSound.setVolume(0);
slowHeckleSound.start(0, 999);
slowHeckleSound.fadeTo(40, 2);
slowHeckleSound.onFadeComplete = function () {
};
}
function stopSlowHeckle() {
slowHeckleSound.fadeTo(0, 5);
slowHeckleSound.onFadeComplete = function () {
this.remove();
};
}
function fadeOutSuccess() {
successSound.fadeTo(0, 20);
successSound.onFadeComplete = function () {
this.remove();
};
}
function startAmbience() {
if (!playingAmbience) {
ambienceSound = _global.sndman.newSound("ambience");
ambienceSound.setVolume(0);
ambienceSound.start(0, 999);
ambienceSound.fadeTo(ambienceVol, 10);
ambienceSound.onFadeComplete = function () {
playingAmbience = true;
};
}
}
function stopAmbience() {
playingAmbience = false;
ambienceSound.fadeTo(0, 20);
ambienceSound.onFadeComplete = function () {
this.remove();
};
}
function startLaughter() {
outro.anim.bg.audience.leftOpponent.play();
outro.anim.bg.audience.rightOpponent.play();
laughterSound = _global.sndman.newSound("laughter");
laughterSound.setVolume(laughterVol);
laughterSound.start();
laughterSound.onSoundComplete = function () {
this.remove();
};
}
function playWhoosh() {
whooshSound = _global.sndman.newSound("whoosh");
whooshSound.start();
whooshSound.onSoundComplete = function () {
this.remove();
};
}
function playWhooshReverse() {
whooshSound = _global.sndman.newSound("whoosh_reverse");
whooshSound.start();
whooshSound.onSoundComplete = function () {
this.remove();
};
}
function playPunchline() {
punchlineSound = _global.sndman.newSound("punchline" + (punchlineIndex % 3));
punchlineSound.setVolume(0);
punchlineSound.fadeTo(100, 50);
punchlineIndex++;
punchlineSound.start(0, 0);
punchlineSound.onSoundComplete = function () {
startAmbience();
this.remove();
};
}
function playFart() {
fartSound = _global.sndman.newSound("fart" + (fartIndex % 4));
fartSound.onSoundComplete = function () {
this.remove();
};
fartSound.start(0, 0);
fartIndex++;
}
function playStartLoop() {
startLoopSound = _global.musman.newSound("startLoop");
startLoopSound.setVolume(0);
startLoopSound.fadeTo(100, 20);
startLoopSound.start(0, 999);
}
function fadeOutStartLoop() {
startLoopSound.fadeTo(0, 20);
startLoopSound.onFadeComplete = function () {
this.remove();
};
}
function playGameLoop() {
gameLoopSound = _global.musman.newSound("gameLoop");
gameLoopSound.start(0, 999);
}
function fadeOutGameLoop() {
gameLoopSound.fadeTo(0, 5);
gameLoopSound.onFadeComplete = function () {
this.remove();
};
}
function fadeOutPunchline() {
startAmbience();
punchlineSound.fadeTo(0, 20);
punchlineSound.onFadeComplete = function () {
this.remove();
};
}
ambienceVol = 20;
laughterVol = 30;
theatreFrame = 1;
round = 1;
level = 0;
maxLevels = 10;
genericIndex = 0;
failIndex = 0;
opponentArray = ["chav", "veryFatMan", "fatLady", "fatMan", "granny", "poshGuy", "randomMan", "pageThree", "snobMan", "fattyGirl", "toughGuy"];
chubbyMood = "thinking";
brainScoreFailThreshold = 1;
allStars = 4;
punchlineIndex = 0;
fartIndex = 0;
attackIndex = 0;
animationIndex = 0;
function makeSoundClips() {
_global.sndman = new SoundManager(_root.createEmptyMovieClip("snd_mc", _root.getNextHighestDepth()));
_global.musman = new SoundManager(_root.createEmptyMovieClip("mus_mc", _root.getNextHighestDepth()));
}
function resetSoundClips() {
stopAllSounds();
removeMovieClip(snd_mc);
removeMovieClip(mus_mc);
delete _global.sndman;
delete _global.musman;
makeSoundClips();
}
totalScore = 0;
levelScore = 0;
if (!_global.sndman) {
makeSoundClips();
}
stop();
Frame 6
stop();
Frame 7
gotoAndStop ("intro");
Frame 8
heckleSpeechArray = [];
heckleSpeechArray[0] = ["You're a bit blue, arent' you?", "I hate excessive vulgarity!! BOOO!", "You're mean!"];
heckleSpeechArray[1] = ["I do not approve!", "Think of the children!", ""];
heckleSpeechArray[2] = ["Break your head!", "Stomp your head!!", "...your head!!"];
heckleSpeechArray[3] = ["Pish posh!", "I insult your puny vocabulary!", ""];
heckleSpeechArray[4] = ["You'll make the kittens cry!", "Eek! You're a scary man!", ""];
heckleSpeechArray[5] = ["Oh, do try to control yourself!", "Wash your mouth out with soap!", "I hate excessive vulgarity!!"];
heckleSpeechArray[6] = ["BLAARG.", "BLAAAAARRG!!", "Rubbish!"];
heckleSpeechArray[7] = ["This really isn't cricket you know.", "I'm going to give you such a thrashing!", "Be quiet!"];
heckleSpeechArray[8] = ["Oh! Yes! More baby! Yeah!", "Oh you always know exactly what to say!", "I hate excessive vulgarity!!"];
heckleSpeechArray[9] = ["I believe you have some supressed rage.", "Would you like to talk?", "My ears hurt."];
heckleSpeechArray[10] = ["Oy oy wanna go for a drink like, yeah?", "Let's go, yeah, c'mon!", "Be quiet!"];
heckleSpeechArray[11] = ["I do not approve!", "Think of the children!", "I hate excessive vulgarity!!"];
chubbySpeechArray = [];
chubbySpeechArray[0] = ["inflatable_doll", "oxfams_closed"];
chubbySpeechArray[1] = ["paid_for_two_seats", "has_your_mum_come_for_you"];
chubbySpeechArray[2] = ["skunks_arse", "wrinkled_old_cunt"];
chubbySpeechArray[3] = ["zookeeper", "split_arse"];
chubbySpeechArray[4] = ["iron_lung", "wrinkled_old_cunt"];
chubbySpeechArray[5] = ["turd_burglar", "we_know_youre_there"];
chubbySpeechArray[6] = ["bouncer", "arsehole"];
chubbySpeechArray[7] = ["minge", "all_round_clumsy_cunt"];
chubbySpeechArray[8] = ["cocksucker", "split_arse"];
chubbySpeechArray[9] = ["frankenstein", "has_your_mum_come_for_you"];
chubbySpeechArray[10] = ["two_hours", "arsehole"];
chubbySpeechArray[11] = ["has_your_mum_come_for_you", "oxfams_closed"];
animationArray = [];
animationArray[0] = [[0, 1, 2, 3], [1, 2, 3, 4]];
animationArray[1] = [[0, 1, 2, 3], [1, 2, 3, 4]];
animationArray[2] = [[0, 1, 2, 3], [1, 2, 3, 4]];
animationArray[3] = [[0, 1, 2, 3], [1, 2, 3, 4]];
animationArray[4] = [[0, 1, 2, 3], [1, 2, 3, 4]];
animationArray[5] = [[0, 1, 2, 3], [1, 2, 3, 4]];
animationArray[6] = [[0, 1, 2, 3], [1, 2, 3, 4]];
animationArray[7] = [[0, 1, 2, 3], [1, 2, 3, 4]];
animationArray[8] = [[0, 1, 2, 3], [1, 2, 3, 4]];
animationArray[9] = [[0, 1, 2, 3], [1, 2, 3, 4]];
animationArray[10] = [[0, 1, 2, 3], [1, 2, 3, 4]];
animationArray[11] = [[0, 1, 2, 3], [1, 2, 3, 4]];
chubbyFailArray = ["Um...er...", "Um...er...", "Um...er..."];
chubbyGenericArray = ["fuck_off", "cock", "you_cunt", "pack_o_cunts"];
wordsList = ["CHAV", "LARDY", "CRONE", "MONKEY", "WRINKLY", "NANCY", "TOOL", "TITS", "COCK", "HEIFFER", "AMATEUR"];
heckleSubtitle = {};
heckleSubtitle.chav = ["Wheey, Chubby's got a BROWN HELMET!", "You're a bit blue ain't ya?!"];
heckleSubtitle.fatLady = ["Nice coat, Joseph!", "Think of the children!!"];
heckleSubtitle.fatMan = ["Wheeey! You fat bastard!", "Wheeyyy, aaarghhh!!"];
heckleSubtitle.granny = ["I've been to funnier funerals!", "You're SHIT!"];
heckleSubtitle.poshGuy = ["You're wearing your wife's knickers!", "I can't believe what I'm hearing!"];
heckleSubtitle.veryFatMan = ["C'mon, I'm missin' me dinner!", "It's nearly last orders!"];
heckleSubtitle.randomMan = ["Give Monkhouse his book back!", ""];
heckleSubtitle.pageThree = ["Come on Chubby, I thought you were dirty!", ""];
heckleSubtitle.snobMan = ["You filthy working class scumbag!", ""];
heckleSubtitle.fattyGirl = ["Ohhh Chubby, you're GORGEOUS!", ""];
heckleSubtitle.toughGuy = ["That was out of a christmas cracker!", ""];
chubbySubtitle = {};
chubbySubtitle.pack_o_cunts = {subtitle:"Pack o' cunts!"};
chubbySubtitle.turd_burglar = {subtitle:"Shirt liftin' fuckin' obnoxious lying backstabbin' fuckin' turd-burglar!"};
chubbySubtitle.all_round_clumsy_cunt = {subtitle:"Are you an all-round clumsy cunt?"};
chubbySubtitle.bastard = {subtitle:"Bastard!"};
chubbySubtitle.fuck_off = {subtitle:"Fuck off!"};
chubbySubtitle.split_arse = {subtitle:"Fuckin' split arse.."};
chubbySubtitle.cock = {subtitle:"Cock."};
chubbySubtitle.we_know_youre_there = {subtitle:"Yes, you're alright, we know you're there..."};
chubbySubtitle.zookeeper = {subtitle:"Give my regards to t'zookeeper when you get back to Hartlepool."};
chubbySubtitle.fuck_off2 = {subtitle:"Fuck off."};
chubbySubtitle.you_cunt = {subtitle:"You cunt."};
chubbySubtitle.pack_o_cunts2 = {subtitle:"Pack o' cunts!"};
chubbySubtitle.fuckin_drop_dead = {subtitle:"Fuckin' drop dead!"};
chubbySubtitle.has_your_mum_come_for_you = {subtitle:"Has yer mam come for you yer fat twat?!"};
chubbySubtitle.get_the_twat_on_the_way_back = {subtitle:"I'll get the twat on the way back!"};
chubbySubtitle.paid_for_two_seats = {subtitle:"I hope you paid for two seats yer fat cunt!"};
chubbySubtitle.skunks_arse = {subtitle:"Could you face that way, your breath's like a fuckin' skunk's arse."};
chubbySubtitle.clumsy_cunt = {subtitle:"Clumsy cunt!"};
chubbySubtitle.fuck_off3 = {subtitle:"Fuck off!"};
chubbySubtitle.wrinkled_old_cunt = {subtitle:"You wrinkled old cunt!"};
chubbySubtitle.oxfams_closed = {subtitle:"Oxfam's closed at 7 o'clock you scruffy cunt!"};
chubbySubtitle.bastards = {subtitle:"Bastards."};
chubbySubtitle.arsehole = {subtitle:"Who're you shoutin' at you fuckin' arsehole?"};
chubbySubtitle.bouncer = {subtitle:"Give us a wave! Aye! Now the bouncer's seen where you're fuckin' sat."};
chubbySubtitle.cocksucker = {subtitle:"I was gonna call ya cocksucker but I know you're tryin' to give it up."};
chubbySubtitle.frankenstein = {subtitle:"Is it true Frankenstein went to a fuckin' party dressed up as you?"};
chubbySubtitle.inflatable_doll = {subtitle:"You save yer breath for your fuckin' inflatable doll when you get home, aright?"};
chubbySubtitle.iron_lung = {subtitle:"I'll seeya after the show, I won't recognise ya 'cos you'll be in an iron lung with a bit of luck, you.. cunt!"};
chubbySubtitle.minge = {subtitle:"Minge fanny split cunt twat whore, beef curt-LOVEBUCKET."};
chubbySubtitle.two_hours = {subtitle:"Takes me two hours to make a fuckin' twat out've meself an' he did it in about 20 seconds there."};
chubbySubtitle.fail0 = {subtitle:"Um..er.."};
chubbySubtitle.fail1 = {subtitle:"Um..er.."};
chubbySubtitle.fail2 = {subtitle:"Um..er.."};
chubbySubtitle.fail3 = {subtitle:"Um..er.."};
chooseNewOpponent(level);
chubbyMood = "thinking";
stop();
Instance of Symbol 186 MovieClip in Frame 8
onClipEvent (load) {
if (new Sound().getVolume() == 0) {
gotoAndStop ("off");
}
this.onRelease = function () {
if (new Sound().getVolume() == 0) {
gotoAndStop ("on");
new Sound().setVolume(100);
} else {
gotoAndStop ("off");
new Sound().setVolume(0);
}
};
}
Frame 9
stop();
Instance of Symbol 636 MovieClip "starRating" in Frame 9
onClipEvent (load) {
_parent.setStarRating();
}
Frame 10
stopSlowHeckle();
introState = "round";
round++;
laughing = false;
animationIndex = 0;
setFinalStarRating();
stop();
Frame 11
score = totalScore;
_global.submitScore = totalScore;
_global.submitLevel = level;
stop();
Symbol 8 MovieClip [windGust] Frame 1
#initclip 5
Object.registerClass("windGust", WindGust);
#endinitclip
Symbol 8 MovieClip [windGust] Frame 12
gotoAndPlay (1);
Symbol 706 MovieClip [__Packages.WindGust] Frame 0
class WindGust extends MovieClip
{
var _parent, strength, _alpha;
function WindGust () {
super();
if (!_parent._parent.winds) {
_parent._parent.winds = [];
}
_parent._parent.winds.push(this);
}
function init(s) {
strength = s;
_alpha = strength * 5;
}
}
Symbol 707 MovieClip [__Packages.Snd] Frame 0
class Snd extends Sound
{
var target, manager, position, start, duration, onFadeComplete, fId, getVolume, setVolume, setPan;
function Snd (targ, sndman) {
super(targ);
target = (targ ? (targ) : _root);
manager = sndman;
}
function switchSound(id, loops) {
var _local3 = position;
super.stop();
super.attachSound(id);
start((_local3 % duration) / 1000, loops);
}
function fade(dVol, tVol, handler) {
onFadeComplete = handler;
if (fId) {
stopFade(fId);
}
fId = setInterval(this, "changeVolTowards", FADE_RATE, dVol * (FADE_RATE / 1000), tVol, true);
}
function fadeBy(dVol, t, handler) {
onFadeComplete = handler;
if (fId) {
stopFade(fId);
}
if (t > 0) {
fId = setInterval(this, "changeVolTowards", FADE_RATE, dVol * (FADE_RATE / 1000), dVol * t, true);
}
}
function fadeTo(tVol, t, handler) {
onFadeComplete = handler;
if (fId) {
stopFade(fId);
}
if (t > 0) {
var _local3 = (tVol - getVolume()) / t;
fId = setInterval(this, "changeVolTowards", FADE_RATE, _local3, tVol, true);
} else {
setVolume(tVol);
}
}
function changeVolTowards(dVol, tVol, fading) {
var _local2 = getVolume();
if (Math.abs(dVol) < Math.abs(tVol - _local2)) {
changeVolume(dVol);
} else {
setVolume(tVol);
if (fading) {
stopFade();
}
}
}
function stopFade() {
if (fId) {
clearInterval(fId);
delete fId;
onFadeComplete();
delete onFadeComplete;
}
}
function positionSound(a, d, f, t) {
if (d < f) {
t = (isNaN(t) ? 100 : (((t < 0) ? 0 : (t))));
d = ((d < 1) ? 1 : (d));
var _local4 = 1 / ((d / f) * 100);
setVolume(Math.ceil(_local4 * t));
setPan((-Math.sin(a)) * 100);
} else {
setVolume(0);
}
}
function positionSoundLinear(a, d, f, t) {
if (d < f) {
t = (isNaN(t) ? 100 : (((t < 0) ? 0 : (t))));
setVolume(((f - d) / f) * t);
setPan((-Math.sin(a)) * 100);
} else {
setVolume(0);
}
}
function changeVolume(n) {
setVolume(getVolume() + n);
}
function remove() {
super.stop();
delete manager.sounds[target.getDepth()];
target.removeMovieClip();
}
function toString() {
return(("(target=" + target) + ")");
}
static var FADE_RATE = 100;
}
Symbol 708 MovieClip [__Packages.SoundManager] Frame 0
class SoundManager extends Snd
{
var sounds, mc_holder, getVolume;
function SoundManager (hld_mc) {
super();
sounds = new Object();
mc_holder = (hld_mc ? (hld_mc) : _root);
}
function playAndRemove(snd_id, offset, loops) {
offset = (isNaN(offset) ? 0 : (offset));
loops = (isNaN(loops) ? 0 : (loops));
var _local2 = newSound(snd_id);
_local2.start(offset, loops);
_local2.onSoundComplete = _local2.remove;
return(_local2);
}
function clearAllSounds() {
for (var _local2 in sounds) {
sounds[_local2].remove();
}
}
function newSound() {
var _local5 = mc_holder.getNextHighestDepth();
var _local6 = mc_holder.createEmptyMovieClip("sh_mc" + _local5, _local5);
var _local4 = new Snd(_local6, this);
var _local3 = 0;
while (_local3 < arguments.length) {
if (arguments[_local3] != undefined) {
_local4.attachSound(arguments[_local3]);
}
_local3++;
}
sounds[_local5] = _local4;
return(_local4);
}
function deleteSound(snd) {
snd.remove();
}
function setVolume(vol) {
if (muted) {
curVol = vol;
} else {
super.setVolume(vol);
}
}
function get mute() {
return(muted);
}
function set mute(b) {
muted = b;
if (b) {
curVol = getVolume();
super.setVolume(0);
} else {
super.setVolume(curVol);
}
//return(mute);
}
var muted = false;
var curVol = 100;
}
Symbol 709 MovieClip [__Packages.Particle] Frame 0
class Particle extends MovieClip
{
var follow, getForce, gotoAndStop, _parent, _x, _y, gotoAndPlay, _name;
function Particle () {
super();
}
function init(t) {
if (t) {
follow = t;
getForce = followForce;
} else {
animState = "";
gotoAndStop("leader");
getForce = mouseForce;
}
var _local5 = 0;
var _local4 = 0;
var _local2 = 0;
}
function update() {
if (_parent.gameIsOn) {
hitVisc = 1;
if (_parent.wall.hitTest(_x, _y, true)) {
_parent.redOut._alpha = _parent.redOut._alpha + 10;
_parent.hurt++;
_parent.calculateBrainScore();
gotoAndPlay("hurt");
dead = true;
hitVisc = 0.5;
_parent.updateHurtCount();
}
var _local5 = getForce();
var _local4 = new flash.geom.Point();
var _local3;
var _local2 = 0;
while (_local2 < _parent.winds.length) {
if (_parent.winds[_local2].hitTest(_x, _y, true)) {
_local3 = (_parent.winds[_local2]._rotation - 90) * (Math.PI/180);
_local4.x = _local4.x - (Math.cos(_local3) * _parent.winds[_local2].strength);
_local4.y = _local4.y - (Math.sin(_local3) * _parent.winds[_local2].strength);
}
_local2++;
}
_local5 = _local5.add(_local4);
vx = vx + _local5.x;
vy = vy + _local5.y;
speed = Math.sqrt((vx * vx) + (vy * vy));
var _local6 = Math.atan2(vy, vx);
speed = speed * (FRICTION * hitVisc);
speed = Math.min(speed, MAX_SPEED);
vx = speed * Math.cos(_local6);
vy = speed * Math.sin(_local6);
_x = _x + vx;
_y = _y + vy;
if (_parent.winZone.hitTest(_x, _y, true)) {
_parent.winCount++;
if (animState != "out") {
gotoAndPlay("out");
animState = "out";
}
_parent.winZone._alpha = _parent.minWinZoneAlpha + ((_parent.winCount / _parent.totalFollowers) * (100 - _parent.minWinZoneAlpha));
}
if (_parent.winCount >= _parent.totalFollowers) {
_parent.nextLevel();
}
if (_name == "f0") {
_parent.winCount = 0;
}
}
}
function mouseForce() {
return(calculateForce(_parent._xmouse - _x, _parent._ymouse - _y));
}
function followForce() {
return(calculateForce(follow._x - _x, follow._y - _y));
}
function calculateForce(dx, dy) {
var _local1 = Math.sqrt((dx * dx) + (dy * dy));
var _local3 = Math.atan2(dy, dx);
var _local7 = (_local1 / DIST_CO) * FORCE_CO;
var _local4 = (-(1 / Math.pow(_local1, REP_DIST_POW))) * REP_FORCE_CO;
var _local6 = flash.geom.Point.polar(_local7 + _local4, _local3);
return(_local6);
}
var speed = 0;
var vx = 0;
var vy = 0;
var dead = false;
var mass = 0.1;
var hurt = 0;
var hitVisc = 0;
var animState = "";
static var FRICTION = 0.6;
static var MAX_SPEED = 20;
static var FORCE_CO = 1;
static var DIST_CO = 5;
static var REP_FORCE_CO = 150;
static var REP_DIST_POW = 1.2;
}
Symbol 27 MovieClip [kvSpark] Frame 70
stop();
Symbol 37 MovieClip Frame 100
gotoAndPlay (1);
Instance of Symbol 21 MovieClip in Symbol 38 MovieClip Frame 1
onClipEvent (load) {
this._visible = 0;
}
Symbol 38 MovieClip Frame 7
function onEnterFrame() {
var _local2 = _root.getBytesLoaded() / _root.getBytesTotal();
if (getTimer() >= (startTime + 4000)) {
animDone = true;
}
if ((Math.ceil(bar._width) >= width) && (animDone)) {
stopSparks = true;
delete onEnterFrame;
gotoAndPlay ("out");
} else {
setProgress(_local2);
}
}
function fadeOut() {
setProgress(progress);
this._alpha = this._alpha - 5;
if (this._alpha <= -50) {
this._visible = false;
_parent.play();
}
}
function makeSpark() {
if (!stopSparks) {
attachMovie("kvSpark", "spark" + i, this.getNextHighestDepth());
this["spark" + i]._x = bar._x + bar._width;
this["spark" + i]._y = bar._y + (Math.random() * 20);
this["spark" + i].grav = 0.1;
this["spark" + i].wind = (Math.random() * 4) - 3;
this["spark" + i].spin = Math.random() * 10;
this["spark" + i].onEnterFrame = sparkControl;
i++;
}
}
function sparkControl() {
if (!stopSparks) {
this._y = this._y + this.grav;
this._x = this._x + this.wind;
this.grav = this.grav * gravity;
this._alpha = this._alpha - this.grav;
this._rotation = this._rotation + this.spin;
if (this._alpha <= 0) {
this.removeMovieClip();
}
} else {
this.removeMovieClip();
}
}
function setProgress(p) {
bar._width = ((bar._width * 2) + (p * width)) / 3;
if (progress != 1) {
makeSpark();
}
}
width = 200;
i = 0;
gravity = 1.3;
startTime = getTimer();
if (this._name == "loader_mc") {
myName = _global.language.loadingAssets;
} else {
myName = _global.language.initLevel;
}
setProgress(0);
Symbol 38 MovieClip Frame 23
stop();
Symbol 38 MovieClip Frame 28
_parent.play();
Symbol 101 MovieClip Frame 1
stop();
Symbol 125 Button
on (release) {
_root.kvEvent(438);
new Sound().setVolume(0);
play();
}
Symbol 126 Button
on (release) {
_root.kvEvent(422);
play();
}
Symbol 128 MovieClip Frame 41
stop();
Symbol 128 MovieClip Frame 49
_parent.play();
Symbol 160 MovieClip Frame 1
stop();
Symbol 171 Button
on (release) {
getURL ("http://highscores.killerviral.com/stand-up-standoff/buyit.php", "_blank");
_root.kvClick(392);
}
Symbol 181 Button
on (release) {
getURL ("http://highscores.killerviral.com/enter/stand-up-standoff/", "_blank");
_root.kvClick(390);
}
Symbol 182 Button
on (release) {
getURL ("http://highscores.killerviral.com/stand-up-standoff/buyit.php", "_blank");
_root.kvClick(392);
}
Symbol 186 MovieClip Frame 1
stop();
Symbol 186 MovieClip Frame 5
stop();
Symbol 188 Button
on (release) {
play();
}
Symbol 206 MovieClip Frame 1
stop();
Symbol 207 Button
on (release) {
nextMenu = "instructions";
play();
}
Symbol 208 Button
on (release) {
getURL ("http://highscores.killerviral.com/stand-up-standoff/challenge.php", "_blank");
_root.kvClick(391);
}
Symbol 209 Button
on (release) {
getURL ("http://highscores.killerviral.com/stand-up-standoff/buyit.php", "_blank");
_root.kvClick(392);
}
Symbol 210 Button
on (release) {
getURL ("http://highscores.killerviral.com/stand-up-standoff/highscores.php", "_blank");
_root.kvClick(389);
}
Symbol 211 Button
on (release) {
getURL ("http://highscores.killerviral.com/enter/stand-up-standoff/", "_blank");
_root.kvClick(390);
}
Symbol 213 Button
on (release) {
_parent.fadeOutStartLoop();
nextMenu = "playGame";
_root.kvEvent(437);
play();
}
Symbol 224 Button
on (release) {
nextMenu = "mainMenu";
play();
}
Symbol 234 MovieClip Frame 1
_parent.playStartLoop();
Instance of Symbol 186 MovieClip in Symbol 234 MovieClip Frame 56
onClipEvent (load) {
if (new Sound().getVolume() == 0) {
gotoAndStop ("off");
}
this.onRelease = function () {
if (new Sound().getVolume() == 0) {
gotoAndStop ("on");
new Sound().setVolume(100);
} else {
gotoAndStop ("off");
new Sound().setVolume(0);
}
};
}
Symbol 234 MovieClip Frame 62
stop();
Instance of Symbol 206 MovieClip in Symbol 234 MovieClip Frame 88
onClipEvent (load) {
if (new Sound().getVolume() == 0) {
gotoAndStop ("off");
}
this.onRelease = function () {
if (new Sound().getVolume() == 0) {
gotoAndStop ("on");
new Sound().setVolume(100);
} else {
gotoAndStop ("off");
new Sound().setVolume(0);
}
};
}
Symbol 234 MovieClip Frame 90
stop();
Symbol 234 MovieClip Frame 95
gotoAndPlay(nextMenu);
Symbol 234 MovieClip Frame 108
stop();
Symbol 234 MovieClip Frame 114
gotoAndPlay(nextMenu);
Symbol 234 MovieClip Frame 157
gotoAndPlay(nextMenu);
Symbol 234 MovieClip Frame 169
_parent.gotoAndStop("setupGame");
Symbol 247 MovieClip Frame 1
stop();
Symbol 252 MovieClip Frame 1
stop();
Symbol 305 MovieClip Frame 1
stop();
Symbol 307 MovieClip Frame 1
function setOpponentPortrait() {
opponentPortrait.gotoAndStop(_parent._parent.opponent);
}
function setDefeatedPortrait() {
opponentPortrait.gotoAndStop(_parent._parent.opponent + "Hurt");
}
if ((_parent._parent.chubbyMood == "success") || (_parent._parent.chubbyMood == "shout")) {
gotoAndPlay ("defeatedOpponent");
}
Symbol 307 MovieClip Frame 5
_parent._parent.playFart();
_parent.shakeX = _parent.shakeX + 15;
Symbol 307 MovieClip Frame 11
_parent._parent.playFart();
_parent.shakeY = _parent.shakeY + 15;
Symbol 307 MovieClip Frame 13
setOpponentPortrait();
Symbol 307 MovieClip Frame 17
_parent._parent.playFart();
_parent.shakeX = _parent.shakeX + 15;
setOpponentPortrait();
Symbol 307 MovieClip Frame 18
setOpponentPortrait();
Symbol 307 MovieClip Frame 19
setOpponentPortrait();
Symbol 307 MovieClip Frame 20
setOpponentPortrait();
Symbol 307 MovieClip Frame 21
setOpponentPortrait();
ri.gotoAndStop("round" + Number(_parent._parent.level + 1));
Symbol 307 MovieClip Frame 25
_parent._parent.playFart();
ri.gotoAndStop("round" + Number(_parent._parent.level + 1));
Symbol 307 MovieClip Frame 26
ri.gotoAndStop("round" + Number(_parent._parent.level + 1));
Symbol 307 MovieClip Frame 27
ri.gotoAndStop("round" + Number(_parent._parent.level + 1));
Symbol 307 MovieClip Frame 39
setOpponentPortrait();
Symbol 307 MovieClip Frame 44
setOpponentPortrait();
Symbol 307 MovieClip Frame 49
ri.gotoAndStop("round" + Number(_parent._parent.level + 1));
Symbol 307 MovieClip Frame 56
stop();
_parent.play();
Symbol 307 MovieClip Frame 59
_parent._parent.introState = "round1";
gotoAndPlay ("round1");
Symbol 307 MovieClip Frame 66
_parent.shakeY = _parent.shakeY + 15;
Symbol 307 MovieClip Frame 86
setDefeatedPortrait();
Symbol 307 MovieClip Frame 92
setDefeatedPortrait();
Symbol 307 MovieClip Frame 97
setDefeatedPortrait();
Symbol 307 MovieClip Frame 98
setDefeatedPortrait();
Symbol 307 MovieClip Frame 99
setDefeatedPortrait();
Symbol 307 MovieClip Frame 100
setDefeatedPortrait();
Symbol 307 MovieClip Frame 101
setDefeatedPortrait();
Symbol 307 MovieClip Frame 108
stop();
Symbol 451 MovieClip Frame 6
stop();
Symbol 451 MovieClip Frame 22
stop();
Symbol 451 MovieClip Frame 40
gotoAndPlay ("fatManHappy");
Symbol 451 MovieClip Frame 58
_parent._parent.hecklerAnimOver();
Symbol 451 MovieClip Frame 66
stop();
Symbol 451 MovieClip Frame 84
stop();
Symbol 451 MovieClip Frame 104
gotoAndPlay ("fatLadyHappy");
Symbol 451 MovieClip Frame 112
stop();
Symbol 451 MovieClip Frame 129
stop();
Symbol 451 MovieClip Frame 155
gotoAndPlay ("poshGuyHappy");
Symbol 451 MovieClip Frame 165
stop();
Symbol 451 MovieClip Frame 185
stop();
Symbol 451 MovieClip Frame 207
gotoAndPlay ("chavHappy");
Symbol 451 MovieClip Frame 223
stop();
Symbol 451 MovieClip Frame 237
stop();
Symbol 451 MovieClip Frame 264
gotoAndPlay ("pageThreeHappy");
Symbol 451 MovieClip Frame 279
stop();
Symbol 451 MovieClip Frame 296
stop();
Symbol 451 MovieClip Frame 320
gotoAndPlay ("grannyHappy");
Symbol 451 MovieClip Frame 340
stop();
Symbol 451 MovieClip Frame 360
stop();
Symbol 451 MovieClip Frame 383
gotoAndPlay ("veryFatManHappy");
Symbol 451 MovieClip Frame 400
stop();
Symbol 451 MovieClip Frame 415
stop();
Symbol 451 MovieClip Frame 431
gotoAndPlay ("snobManHappy");
Symbol 451 MovieClip Frame 444
stop();
Symbol 451 MovieClip Frame 459
stop();
Symbol 451 MovieClip Frame 480
gotoAndPlay ("fattyGirlHappy");
Symbol 451 MovieClip Frame 495
stop();
Symbol 451 MovieClip Frame 509
stop();
Symbol 451 MovieClip Frame 525
gotoAndPlay ("toughGuyHappy");
Symbol 451 MovieClip Frame 526
gotoAndPlay ("crazyManHappy");
Symbol 451 MovieClip Frame 539
stop();
Symbol 451 MovieClip Frame 554
stop();
Symbol 451 MovieClip Frame 570
gotoAndPlay ("randomManHappy");
Symbol 456 MovieClip Frame 1
_parent.setAudience();
if (_parent._parent.heckled) {
gotoAndPlay ("heckled");
}
Symbol 456 MovieClip Frame 12
stop();
Symbol 456 MovieClip Frame 59
stop();
Symbol 456 MovieClip Frame 60
_parent.setAudience();
heckler.onEnterFrame = function () {
this._x = hecklerTarget._x;
this._y = hecklerTarget._y;
};
_parent._parent._parent.starRating.yVel = 1;
_parent._parent._parent.starRating.onEnterFrame = function () {
this._y = this._y + this.yVel;
this.yVel = this.yVel * 1.2;
if (this._y > 500) {
delete this.onEnterFrame;
}
};
Symbol 456 MovieClip Frame 78
_parent._parent._parent.startYouFatBastard(this);
Symbol 456 MovieClip Frame 88
_parent.chubby.gotoAndPlay("dead");
Symbol 456 MovieClip Frame 108
_parent._parent.endOfOutro();
Symbol 456 MovieClip Frame 147
stop();
Symbol 464 MovieClip Frame 1
_parent._parent.micActive = false;
stop();
Symbol 464 MovieClip Frame 5
stop();
Symbol 464 MovieClip Frame 14
_parent._parent.micActive = false;
Symbol 464 MovieClip Frame 18
gotoAndStop ("off");
Symbol 474 MovieClip Frame 1
function animOver() {
_parent._parent._parent.animOver();
}
Symbol 474 MovieClip Frame 2
chubbyBreathing = true;
stop();
Symbol 474 MovieClip Frame 37
Symbol 474 MovieClip Frame 43
_parent.hitHeckler(3);
Symbol 474 MovieClip Frame 50
animOver();
Symbol 474 MovieClip Frame 57
_parent.hitHeckler(3);
Symbol 474 MovieClip Frame 62
animOver();
Symbol 474 MovieClip Frame 71
_parent.hitHeckler(3);
Symbol 474 MovieClip Frame 78
animOver();
Symbol 474 MovieClip Frame 84
_parent.hitHeckler(3);
Symbol 474 MovieClip Frame 88
_parent.hitHeckler(3);
Symbol 474 MovieClip Frame 92
_parent.hitHeckler(3);
Symbol 474 MovieClip Frame 96
_parent.hitHeckler(3);
Symbol 474 MovieClip Frame 99
animOver();
Symbol 474 MovieClip Frame 105
_parent.hitHeckler(3);
Symbol 474 MovieClip Frame 107
_parent.hitHeckler(3);
Symbol 474 MovieClip Frame 109
_parent.hitHeckler(3);
Symbol 474 MovieClip Frame 114
stop();
animOver();
Symbol 474 MovieClip Frame 130
animOver();
Symbol 474 MovieClip Frame 135
gotoAndPlay ("dying");
Symbol 474 MovieClip Frame 140
stop();
Symbol 474 MovieClip Frame 147
gotoAndPlay ("anger");
Symbol 475 MovieClip Frame 1
function setAudience() {
if (_parent._parent.chubbyMood == "thinking") {
bg.heckler.gotoAndPlay(_parent._parent.opponent + "Happy");
bg.audience.leftOpponent.gotoAndStop(_parent._parent.leftOpponent);
bg.audience.rightOpponent.gotoAndStop(_parent._parent.rightOpponent);
} else if ((_parent._parent.chubbyMood == "success") || (_parent._parent.chubbyMood == "shout")) {
bg.heckler.gotoAndPlay(_parent._parent.opponent + "Hurt");
bg.audience.leftOpponent.gotoAndStop(_parent._parent.leftOpponent + "Happy");
bg.audience.rightOpponent.gotoAndStop(_parent._parent.rightOpponent + "Happy");
} else if ((_parent._parent.chubbyMood == "failed") || (_parent._parent.chubbyMood == "beaten")) {
bg.heckler.gotoAndPlay(_parent._parent.opponent + "Happy");
bg.audience.leftOpponent.gotoAndStop(_parent._parent.leftOpponent + "Happy");
bg.audience.rightOpponent.gotoAndStop(_parent._parent.rightOpponent + "Happy");
}
}
Symbol 480 MovieClip Frame 4
_parent._parent.updateHeckleSpeech(this);
stop();
Symbol 480 MovieClip Frame 10
stop();
Symbol 482 MovieClip Frame 1
_parent.fadeOutSuccess();
_parent.playPunchline();
function shakeMe(t) {
t._x = t.startX + (t.shakeX * t.polarity);
t._y = t.startY + (t.shakeY * t.polarity);
t.shakeX = t.shakeX * shakeDecay;
t.shakeY = t.shakeY * shakeDecay;
if (t.polarity == -1) {
t.polarity = 1;
} else {
t.polarity = -1;
}
if ((t.shakeX <= 0.1) && (t.shakeY <= 0.1)) {
t.shakeX = 0;
t.shakeY = 0;
t._x = t.startX;
t._y = t.startY;
}
}
startX = _x;
startY = _y;
shakeX = 0;
shakeY = 0;
polarity = 1;
shakeDecay = 0.7;
this.onEnterFrame = function () {
if (shakeX || (shakeY)) {
shakeMe(this);
}
};
Symbol 482 MovieClip Frame 93
stop();
Symbol 482 MovieClip Frame 102
_parent.fadeOutPunchline();
Symbol 482 MovieClip Frame 108
_parent.playHeckle();
Symbol 482 MovieClip Frame 115
chubbsView.chubby.gotoAndPlay("anger");
stop();
Symbol 482 MovieClip Frame 136
_parent.setChubbyMood(chubby);
_parent.startSlowHeckle();
Symbol 482 MovieClip Frame 142
_parent.setChubbyMood(chubby);
Symbol 482 MovieClip Frame 143
_parent.playWhoosh();
Symbol 482 MovieClip Frame 147
_parent.setChubbyMood(chubby);
Symbol 482 MovieClip Frame 148
_parent.setChubbyMood(chubby);
Symbol 482 MovieClip Frame 154
_parent.setChubbyMood(chubby);
Symbol 482 MovieClip Frame 155
_parent.setChubbyMood(chubby);
Symbol 482 MovieClip Frame 157
_parent.setChubbyMood(chubby);
Symbol 482 MovieClip Frame 158
_parent.gotoAndStop("game");
Symbol 482 MovieClip Frame 168
stop();
Symbol 482 MovieClip Frame 184
stop();
Symbol 489 MovieClip Frame 17
if (Math.random() < 0.6) {
gotoAndPlay (1);
}
Symbol 489 MovieClip Frame 25
if (Math.random() < 0.7) {
gotoAndPlay (1);
}
Symbol 491 MovieClip Frame 1
stop();
Instance of Symbol 8 MovieClip [windGust] "w1" in Symbol 491 MovieClip Frame 4
onClipEvent (load) {
init(8);
}
Instance of Symbol 8 MovieClip [windGust] "w2" in Symbol 491 MovieClip Frame 11
onClipEvent (load) {
init(6);
}
Instance of Symbol 8 MovieClip [windGust] "w1" in Symbol 491 MovieClip Frame 11
onClipEvent (load) {
init(6);
}
Symbol 498 MovieClip Frame 360
gotoAndPlay (1);
Symbol 501 MovieClip Frame 360
gotoAndPlay (1);
Symbol 504 MovieClip Frame 360
gotoAndPlay (1);
Symbol 524 MovieClip Frame 20
gotoAndPlay (1);
Symbol 527 MovieClip Frame 67
gotoAndPlay (1);
Symbol 530 MovieClip Frame 6
gotoAndPlay (1);
Symbol 533 MovieClip Frame 80
gotoAndPlay (1);
Symbol 536 MovieClip Frame 360
gotoAndPlay (1);
Symbol 539 MovieClip Frame 50
gotoAndPlay (1);
Symbol 550 MovieClip Frame 25
gotoAndPlay (1);
Symbol 551 MovieClip Frame 20
gotoAndPlay (1);
Symbol 555 MovieClip Frame 1
stop();
Instance of Symbol 494 MovieClip "startMarker" in Symbol 555 MovieClip Frame 1
onClipEvent (load) {
startDirection = "up";
}
Instance of Symbol 513 MovieClip in Symbol 555 MovieClip Frame 2
onClipEvent (load) {
a = 0;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 10);
a = a + 5;
_yscale = (100 + (Math.sin(a / 30) * 30));
_xscale = (100 + (Math.sin(a / 30) * 30));
}
Instance of Symbol 515 MovieClip in Symbol 555 MovieClip Frame 2
onClipEvent (enterFrame) {
_rotation = (_rotation * -1);
}
Instance of Symbol 517 MovieClip in Symbol 555 MovieClip Frame 3
onClipEvent (enterFrame) {
_rotation = (_rotation - 10);
}
Instance of Symbol 517 MovieClip in Symbol 555 MovieClip Frame 3
onClipEvent (enterFrame) {
_rotation = (_rotation + 10);
}
Instance of Symbol 517 MovieClip in Symbol 555 MovieClip Frame 3
onClipEvent (enterFrame) {
_rotation = (_rotation + 10);
}
Instance of Symbol 544 MovieClip in Symbol 555 MovieClip Frame 7
onClipEvent (enterFrame) {
_rotation = (_rotation - 10);
}
Instance of Symbol 546 MovieClip in Symbol 555 MovieClip Frame 8
onClipEvent (load) {
a = 0;
startScale = _xscale;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 10);
a = a + 5;
_yscale = (startScale + (Math.sin(a / 30) * 30));
_xscale = (startScale + (Math.sin(a / 30) * 30));
}
Instance of Symbol 546 MovieClip in Symbol 555 MovieClip Frame 8
onClipEvent (load) {
a = 0;
startScale = _xscale;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 10);
a = a + 5;
_yscale = (startScale + (Math.sin(a / 30) * 30));
_xscale = (startScale + (Math.sin(a / 30) * 30));
}
Instance of Symbol 546 MovieClip in Symbol 555 MovieClip Frame 8
onClipEvent (load) {
a = 0;
startScale = _xscale;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 10);
a = a + 5;
_yscale = (startScale + (Math.sin(a / 30) * 30));
_xscale = (startScale + (Math.sin(a / 30) * 30));
}
Instance of Symbol 546 MovieClip in Symbol 555 MovieClip Frame 8
onClipEvent (load) {
a = 0;
startScale = _xscale;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 10);
a = a + 5;
_yscale = (startScale + (Math.sin(a / 30) * 30));
_xscale = (startScale + (Math.sin(a / 30) * 30));
}
Instance of Symbol 546 MovieClip in Symbol 555 MovieClip Frame 8
onClipEvent (load) {
a = 0;
startScale = _xscale;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 10);
a = a + 5;
_yscale = (startScale + (Math.sin(a / 30) * 30));
_xscale = (startScale + (Math.sin(a / 30) * 30));
}
Instance of Symbol 550 MovieClip in Symbol 555 MovieClip Frame 10
onClipEvent (load) {
speed = 2;
}
onClipEvent (enterFrame) {
if (_parent._parent.f0._x < _x) {
_x = (_x - speed);
} else {
_x = (_x + speed);
}
if (_parent._parent.f0._y < _y) {
_y = (_y - speed);
} else {
_y = (_y + speed);
}
}
Instance of Symbol 550 MovieClip in Symbol 555 MovieClip Frame 10
onClipEvent (load) {
speed = 2;
}
onClipEvent (enterFrame) {
if (_parent._parent.f0._x < _x) {
_x = (_x - speed);
} else {
_x = (_x + speed);
}
if (_parent._parent.f0._y < _y) {
_y = (_y - speed);
} else {
_y = (_y + speed);
}
}
Instance of Symbol 553 MovieClip in Symbol 555 MovieClip Frame 11
onClipEvent (load) {
a = 0;
}
onClipEvent (enterFrame) {
a++;
_rotation = (_rotation + (Math.sin(a) * 10));
}
Instance of Symbol 527 MovieClip in Symbol 555 MovieClip Frame 13
onClipEvent (load) {
gotoAndPlay(Math.floor(_totalframes / 2));
}
Instance of Symbol 550 MovieClip in Symbol 555 MovieClip Frame 15
onClipEvent (load) {
speed = 1.5;
}
onClipEvent (enterFrame) {
if (_parent._parent.f0._x < _x) {
_x = (_x - speed);
} else {
_x = (_x + speed);
}
if (_parent._parent.f0._y < _y) {
_y = (_y - speed);
} else {
_y = (_y + speed);
}
}
Instance of Symbol 550 MovieClip in Symbol 555 MovieClip Frame 15
onClipEvent (load) {
speed = 2;
}
onClipEvent (enterFrame) {
if (_parent._parent.f0._x < _x) {
_x = (_x - speed);
} else {
_x = (_x + speed);
}
if (_parent._parent.f0._y < _y) {
_y = (_y - speed);
} else {
_y = (_y + speed);
}
}
Symbol 559 MovieClip Frame 18
gotoAndPlay (1);
Instance of Symbol 559 MovieClip in Symbol 560 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay(Math.floor(Math.random() * this._totalframes) + 1);
}
Instance of Symbol 559 MovieClip in Symbol 560 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay(Math.floor(Math.random() * this._totalframes) + 1);
}
Instance of Symbol 559 MovieClip in Symbol 560 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay(Math.floor(Math.random() * this._totalframes) + 1);
}
Symbol 570 MovieClip Frame 1
stop();
Symbol 584 Button
on (release) {
_parent.go = true;
_parent._parent.gameIsOn = true;
play();
}
Symbol 585 MovieClip Frame 1
stop();
Symbol 585 MovieClip Frame 8
stop();
Symbol 591 MovieClip Frame 6
stop();
Symbol 596 MovieClip [follower] Frame 1
#initclip 6
Object.registerClass("follower", Particle);
#endinitclip
stop();
Symbol 596 MovieClip [follower] Frame 4
stop();
Instance of Symbol 585 MovieClip "startButton" in Symbol 596 MovieClip [follower] Frame 4
onClipEvent (load) {
if (_parent.go) {
gotoAndStop ("off");
}
}
Symbol 596 MovieClip [follower] Frame 15
stop();
Symbol 596 MovieClip [follower] Frame 22
stop();
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = _parent.arrow2._x;
this._y = _parent.arrow2._y;
this._rotation = _parent.arrow2._rotation;
}
Instance of Symbol 600 MovieClip in Symbol 601 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = _parent.arrow1._x;
this._y = _parent.arrow1._y;
this._rotation = _parent.arrow1._rotation;
}
Symbol 602 MovieClip Frame 1
stop();
Symbol 603 MovieClip Frame 1
stop();
Symbol 603 MovieClip Frame 3
play();
Symbol 603 MovieClip Frame 79
_parent.waitForInstructions = false;
_parent.f0.startButton.gotoAndStop("on");
_parent.startTime = getTimer();
Symbol 603 MovieClip Frame 93
gotoAndStop ("off");
Symbol 604 MovieClip Frame 1
function setVars() {
if (!level) {
level = _parent.level + 1;
levelDisplay.text = level;
wall.gotoAndStop(level);
wind.gotoAndStop(level);
}
_parent.playGameLoop();
_parent.brainScore = 5;
_parent.setStarRating();
perfChk = 0;
wordsList = _parent.wordsList;
levelTime = [20, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10];
startDirection = [-1, 1, -1, -1, 1, 1, 1, 1, 1, 1, -1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1];
theWord = wordsList[level - 1];
hurt = 0;
wordDir = startDirection[level - 1];
minWinZoneAlpha = 40;
winZone._alpha = minWinZoneAlpha;
totalFollowers = theWord.length;
timeLimit = levelTime[level - 1];
startTime = getTimer();
followerSpeed = 5;
distance = 20;
f0._x = wall.startMarker._x + wall._x;
f0._y = wall.startMarker._y + wall._y;
winCount = 0;
winZone._x = wall.finishMarker._x + wall._x;
winZone._y = wall.finishMarker._y + wall._y;
if (wordDir == -1) {
f0.letter.txtShadow.text = (f0.letter.wrapper.txt.text = theWord.substr(0, 1));
} else {
f0.letter.txtShadow.text = (f0.letter.wrapper.txt.text = theWord.substr(theWord.length - 1, 1));
f0._y = f0._y + ((theWord.length - 1) * f0._height);
}
letters = [f0];
f0.init();
i = 1;
while (i < totalFollowers) {
mc = attachMovie("follower", "f" + i, this.getNextHighestDepth());
letters.push(mc);
if (wordDir == -1) {
mc.letter.txtShadow.text = (this["f" + i].letter.wrapper.txt.text = theWord.substr(i, 1));
} else {
mc.letter.wrapper.txt.text = (this["f" + i].letter.txtShadow.text = theWord.substr((theWord.length - i) - 1, 1));
}
mc._x = (this["f" + i].targetX = f0._x);
mc._y = (this["f" + i].targetY = f0._y - ((i * 20) * wordDir));
mc.init(this["f" + (i - 1)]);
i++;
}
if (level == 1) {
instructionsClip.gotoAndPlay("on");
f0.startButton.gotoAndStop("off");
waitForInstructions = true;
}
}
function onMouseDown() {
if (gameIsOn == undefined) {
}
}
function redOutControl() {
redOut._alpha = redOut._alpha - 5;
if (redOut._alpha <= 0) {
redOut._alpha = 0;
} else if (redOut._alpha >= 60) {
redOut._alpha = 60;
}
}
function updateHurtCount() {
hurtCount.text = hurt;
}
function calculateBrainScore() {
deadCount = 0;
i = 0;
while (i < totalFollowers) {
if (this["f" + i].dead) {
deadCount++;
}
i++;
}
_parent.brainScore = (5 - deadCount) - Math.floor(hurt / 10);
_parent.setStarRating();
}
function nextLevel() {
if (!nextLevelOnce) {
play();
_parent.playWhooshReverse();
_parent.fadeOutGameLoop();
addScore = (_parent.brainScore * 2) + Math.floor((101 - time) / 15);
if (addScore < 0) {
addScore = 0;
}
_parent.totalScore = _parent.totalScore + addScore;
if (_parent.brainScore < _parent.brainScoreFailThreshold) {
_parent.chubbyMood = "failed";
} else {
_parent.chubbyMood = "success";
}
}
nextLevelOnce = true;
}
function cueCutscene() {
_parent.gotoAndStop("outro");
}
function timeControl() {
if (!waitForInstructions) {
time = Math.floor((101 * ((getTimer() - startTime) / timeLimit)) * 0.001);
clock.gotoAndStop(time);
if (time > 101) {
_parent.brainScore = -100;
_parent.chubbyMood = "timeUp";
_parent.startTimeUpSound();
_parent.playWhooshReverse();
_parent.fadeOutGameLoop();
play();
}
}
}
perfChkInt = 25;
Mouse.addListener(this);
this.onEnterFrame = function () {
timeControl();
if (((++perfChk) % perfChkInt) == 0) {
perfMon.update();
}
if (redOut._alpha > 0) {
redOutControl();
}
glow.clear();
glow.lineStyle(15, 16711680);
f0.update();
glow.moveTo(f0._x, f0._y);
var _local2;
var _local1 = 1;
while (_local1 < letters.length) {
_local2 = letters[_local1];
_local2.update();
glow.lineTo(_local2._x, _local2._y);
_local1++;
}
};
setVars();
level = 1;
Symbol 604 MovieClip Frame 4
stop();
Symbol 604 MovieClip Frame 8
stop();
cueCutscene();
Symbol 612 MovieClip Frame 5
stop();
Symbol 613 MovieClip Frame 1
stop();
Symbol 613 MovieClip Frame 4
stop();
Symbol 619 MovieClip Frame 11
stop();
Instance of Symbol 627 MovieClip in Symbol 628 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay (5);
}
Instance of Symbol 627 MovieClip in Symbol 628 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay (2);
}
Instance of Symbol 627 MovieClip in Symbol 628 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay (5);
}
Instance of Symbol 627 MovieClip in Symbol 628 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay (5);
}
Symbol 636 MovieClip Frame 1
stop();
Symbol 636 MovieClip Frame 5
stop();
Symbol 636 MovieClip Frame 10
stop();
Symbol 636 MovieClip Frame 17
stop();
Symbol 639 MovieClip Frame 4
_parent._parent.updateChubbySpeech(this);
stop();
Symbol 639 MovieClip Frame 9
stop();
Symbol 640 MovieClip Frame 1
_parent.setChubbyMood(chubby);
function shakeMe(t) {
t._x = t.startX + (t.shakeX * t.polarity);
t._y = t.startY + (t.shakeY * t.polarity);
t.shakeX = t.shakeX * shakeDecay;
t.shakeY = t.shakeY * shakeDecay;
if (t.polarity == -1) {
t.polarity = 1;
} else {
t.polarity = -1;
}
if ((t.shakeX <= 0.1) && (t.shakeY <= 0.1)) {
t.shakeX = 0;
t.shakeY = 0;
t._x = t.startX;
t._y = t.startY;
}
}
_parent.prepareRetort();
startX = _x;
startY = _y;
shakeX = 0;
shakeY = 0;
polarity = 1;
shakeDecay = 0.7;
heckled = true;
this.onEnterFrame = function () {
if (shakeX || (shakeY)) {
shakeMe(this);
}
};
function endOfOutro() {
_parent.gotoAndStop("over");
}
function checkBrainScore() {
if (_parent.chubbyMood == "timeUp") {
_parent.chubbyMood = "failed";
}
gotoAndPlay(_parent.chubbyMood);
}
Symbol 640 MovieClip Frame 3
_parent.setChubbyMood(chubby);
Symbol 640 MovieClip Frame 4
_parent.setChubbyMood(chubby);
Symbol 640 MovieClip Frame 13
if (_parent.chubbyMood == "success") {
_parent.chubbyMood = "shout";
}
if (_parent.chubbyMood == "failed") {
_parent.chubbyMood = "beaten";
}
_parent.setChubbyMood(chubby);
Symbol 640 MovieClip Frame 23
_parent.setChubbyMood(chubby);
if (_parent.chubbyMood == "beaten") {
_parent.chubbyMood = "failed";
}
checkBrainScore();
Symbol 640 MovieClip Frame 33
_parent.playChubbyRetort(this);
_parent.stopAmbience();
_parent.playAttackAnimation();
stop();
Symbol 640 MovieClip Frame 34
if (!_parent.starRating.onEnterFrame) {
_parent.starRating.xVel = 1;
_parent.starRating.onEnterFrame = function () {
this._x = this._x + this.xVel;
this.xVel = this.xVel * 2;
if (this._x > 600) {
delete this.onEnterFrame;
}
};
}
Symbol 640 MovieClip Frame 43
endOfOutro();
Symbol 640 MovieClip Frame 44
_parent.playChubbyRetort(this);
_parent.stopAmbience();
Symbol 640 MovieClip Frame 53
anim.chubby.gotoAndPlay("dying");
anim.bg.gotoAndPlay("chubbyDead");
stop();
Symbol 653 Button
on (release) {
play();
_value = !_value;
}
Symbol 655 MovieClip Frame 1
stop();
Symbol 655 MovieClip Frame 2
stop();
Symbol 662 Button
on (release) {
_parent.play();
}
Symbol 663 MovieClip Frame 1
function onhttpstatus(httpStatus) {
var _local1;
if (httpStatus < 100) {
_local1 = "flashError";
} else if (httpStatus < 200) {
_local1 = "informational";
} else if (httpStatus < 300) {
_local1 = "successful";
} else if (httpStatus < 400) {
_local1 = "redirection";
} else if (httpStatus < 500) {
_local1 = "clientError";
} else if (httpStatus < 600) {
_local1 = "serverError";
}
}
function onload(success) {
if (success) {
if (this.status == "saved") {
_parent._parent.menu.submitScore.gotoAndStop("off");
_parent.play();
} else {
feedback_txt.text = this.feedback;
}
} else {
feedback_txt.text = "unable to save game - please check your internet connection";
}
}
username_txt.maxChars = 16;
save_btn.onRelease = function () {
var _local2 = new LoadVars();
var _local3 = new LoadVars();
_local2.score = (isNaN(_global.submitScore) ? 0 : (_global.submitScore));
_local2.level = (isNaN(_global.submitLevel) ? 1 : (_global.submitLevel));
_local2.email = email_txt.text;
_local2.username = username_txt.text;
_local2.optIn1st = (optIn1st_mc._value ? true : false);
_local2.optInKV = (optInKV_mc._value ? true : false);
_local3.onLoad = onload;
_local3.onHTTPStatus = onhttpstatus;
_local2.sendAndLoad((_global.highscoresURL + "save.php?var=") + Math.random(), _local3);
};
Symbol 664 MovieClip Frame 1
stop();
Instance of Symbol 643 MovieClip in Symbol 664 MovieClip Frame 2
onClipEvent (load) {
this.useHandCursor = false;
this.onRollOver = function () {
};
}
Symbol 664 MovieClip Frame 10
stop();
Symbol 664 MovieClip Frame 20
gotoAndStop ("off");
Symbol 665 Button
on (release) {
getURL ("http://highscores.killerviral.com/stand-up-standoff/buyit.php", "_blank");
_root.kvClick(392);
}
Symbol 668 Button
on (release) {
getURL ("http://highscores.killerviral.com/stand-up-standoff/challenge.php", "_blank");
_root.kvClick(391);
}
Symbol 671 Button
on (release) {
_parent.nextMenu = true;
}
Symbol 673 Button
on (release) {
getURL ("http://highscores.killerviral.com/enter/stand-up-standoff/", "_blank");
_root.kvClick(390);
}
Symbol 678 Button
on (release) {
_parent._parent.highScores.gotoAndPlay("in");
}
Symbol 679 MovieClip Frame 1
stop();
Symbol 679 MovieClip Frame 3
stop();
Symbol 683 Button
on (release) {
_parent._parent._parent.fadeOutSuccess();
_parent.restartGame = true;
_parent.nextMenu = true;
}
Symbol 684 MovieClip Frame 1
scoreDisplay.text = _parent._parent._parent.totalScore;
stop();
Symbol 684 MovieClip Frame 2
scoreDisplay.text = _parent._parent._parent.totalScore;
stop();
Symbol 693 Button
on (release) {
_parent.nextMenu = true;
}
Symbol 697 MovieClip Frame 1
scoreDisplay.text = _parent._parent._parent.totalScore;
stop();
Symbol 700 MovieClip Frame 2
function checkEndGame() {
if (_parent._parent.level >= _parent._parent.maxLevels) {
menu.gotoAndStop("endOfGame");
}
}
checkEndGame();
Symbol 700 MovieClip Frame 11
checkEndGame();
Symbol 700 MovieClip Frame 12
checkEndGame();
Symbol 700 MovieClip Frame 13
checkEndGame();
Symbol 700 MovieClip Frame 32
_root.kvEvent(411 + _parent._parent.level);
Symbol 700 MovieClip Frame 33
if (!nextMenu) {
gotoAndPlay(_currentframe - 1);
}
Symbol 700 MovieClip Frame 42
checkEndGame();
Symbol 700 MovieClip Frame 46
checkEndGame();
Symbol 700 MovieClip Frame 47
if (!restartGame) {
_parent._parent.levelCompleted();
} else {
_parent._parent.resetSoundClips();
_parent._parent.gotoAndStop("warning");
}
Symbol 700 MovieClip Frame 86
if (!nextMenu) {
gotoAndPlay(_currentframe - 1);
}
Symbol 700 MovieClip Frame 87
_parent._parent.stopYouFatBastard();
Symbol 700 MovieClip Frame 100
_parent._parent.levelFailed();
Symbol 703 Button
on (release) {
play();
}
Symbol 705 MovieClip Frame 1
if (_parent.chubbyMood != "failed") {
gotoAndPlay ("won");
} else {
gotoAndPlay ("lost");
}
function shakeMe(t) {
t._x = t.startX + (t.shakeX * t.polarity);
t._y = t.startY + (t.shakeY * t.polarity);
t.shakeX = t.shakeX * shakeDecay;
t.shakeY = t.shakeY * shakeDecay;
if (t.polarity == -1) {
t.polarity = 1;
} else {
t.polarity = -1;
}
if ((t.shakeX <= 0.1) && (t.shakeY <= 0.1)) {
t.shakeX = 0;
t.shakeY = 0;
t._x = t.startX;
t._y = t.startY;
}
}
startX = _x;
startY = _y;
shakeX = 0;
shakeY = 0;
polarity = 1;
shakeDecay = 0.7;
this.onEnterFrame = function () {
if (shakeX || (shakeY)) {
shakeMe(this);
}
};
Symbol 705 MovieClip Frame 2
_parent.startSuccess();
Symbol 705 MovieClip Frame 20
stop();
Symbol 705 MovieClip Frame 34
Symbol 705 MovieClip Frame 70
menu.gotoAndPlay("failed");
Symbol 705 MovieClip Frame 79
stop();
Instance of Symbol 206 MovieClip in Symbol 705 MovieClip Frame 108
onClipEvent (load) {
if (new Sound().getVolume() == 0) {
gotoAndStop ("off");
}
this.onRelease = function () {
if (new Sound().getVolume() == 0) {
gotoAndStop ("on");
new Sound().setVolume(100);
} else {
gotoAndStop ("off");
new Sound().setVolume(0);
}
};
}