Frame 1
System.security.allowDomain("www.thearmchairgames.tv");
version = System.capabilities.version.split(",")[0].split(" ")[1];
function openPage(p) {
switch (p) {
case "prize" :
if (_root._url.indexOf("armchairgames") != -1) {
getURL (("javascript:MM_openBrWindow( 'http://www.killerviral.com/redir.php?urlId=47', '" + p) + "', 'scrollbars=yes,resizable=yes,width=490,height=550');");
} else {
getURL ("http://www.killerviral.com/redir.php?urlId=47", "_blank");
}
break;
case "dealer" :
if (_root._url.indexOf("armchairgames") != -1) {
getURL (("javascript:MM_openBrWindow( 'http://www.killerviral.com/redir.php?urlId=48', '" + p) + "', 'scrollbars=yes,resizable=yes,width=490,height=550');");
} else {
getURL ("http://www.killerviral.com/redir.php?urlId=48", "_blank");
}
break;
case "bravia" :
if (_root._url.indexOf("armchairgames") != -1) {
getURL (("javascript:MM_openBrWindow( 'http://www.killerviral.com/redir.php?urlId=49', '" + p) + "', 'scrollbars=yes,resizable=yes,width=490,height=550');");
} else {
getURL ("http://www.killerviral.com/redir.php?urlId=49", "_blank");
}
break;
case "highscores" :
if (_root._url.indexOf("armchairgames") != -1) {
getURL (("javascript:MM_openBrWindow( 'http://www.killerviral.com/redir.php?urlId=50', '" + p) + "', 'scrollbars=yes,resizable=yes,width=490,height=550');");
} else {
getURL ("http://www.killerviral.com/redir.php?urlId=50", "_blank");
}
break;
case "dtv" :
if (_root._url.indexOf("armchairgames") != -1) {
getURL (("javascript:MM_openBrWindow( 'http://www.killerviral.com/redir.php?urlId=53', '" + p) + "', 'scrollbars=yes,resizable=yes,width=490,height=550');");
} else {
getURL ("http://www.killerviral.com/redir.php?urlId=53", "_blank");
}
}
}
function enterComp(s, e) {
if (_root._url.indexOf("armchairgames") != -1) {
getURL (((("javascript:MM_openBrWindow( 'http://www.thearmchairgames.tv/competition2.php" + buildQS(s, e)) + "', '") + p) + "', 'scrollbars=yes,resizable=yes,width=490,height=550');");
} else {
getURL ("http://www.thearmchairgames.tv/competition2.php" + buildQS(s, e), "_blank");
}
}
function challenge(s, e) {
if (_root._url.indexOf("armchairgames") != -1) {
getURL (((("javascript:MM_openBrWindow( 'http://www.thearmchairgames.tv/challenge2.php" + buildQS(s, e)) + "', '") + p) + "', 'scrollbars=yes,resizable=yes,width=490,height=550');");
} else {
getURL ("http://www.thearmchairgames.tv/challenge2.php" + buildQS(s, e), "_blank");
}
}
function buildQS(s, e) {
switch (e) {
case "adbreak" :
e = "d";
break;
case "hurdles" :
e = "h";
break;
case "sofa" :
e = "j";
break;
case "pizza" :
e = "c";
break;
case "salsa" :
e = "s";
}
return((((("?sessId=" + escape(base64_encode(((("ch1ck3n," + s) + ",") + buildScore(s)) + ",b01lh34d"))) + "&") + e) + "=") + escape(base64_encode(((("ch1ck3n," + s) + ",") + buildScore(s)) + ",b01lh34d")));
}
function buildScore(score) {
return(Math.floor(Math.pow(Math.log(Math.atan2(15.07, score * 103)), 9)));
}
function b64array() {
var _local1 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
var _local2 = new Array();
i = 0;
while (i < _local1.length) {
_local2[i] = _local1.charAt(i);
i++;
}
return(_local2);
}
function f64array() {
var _local1 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
var _local2 = new Array();
i = 0;
while (i < _local1.length) {
_local2[_local1.charAt(i)] = i;
i++;
}
return(_local2);
}
function utf8t2d(t) {
var _local1 = new Array();
var _local5 = String.fromCharCode(237);
if (_local5.charCodeAt(0) < 0) {
var _local3 = 0;
while (_local3 < t.length) {
var _local2 = t.charCodeAt(_local3);
if (_local2 > 0) {
_local1[_local1.length] = _local2;
} else {
_local1[_local1.length] = ((256 + _local2) >> 6) | 192;
_local1[_local1.length] = ((256 + _local2) & 63) | 128;
}
_local3++;
}
} else {
var _local3 = 0;
while (_local3 < t.length) {
var _local2 = t.charCodeAt(_local3);
if (_local2 < 128) {
_local1[_local1.length] = _local2;
} else if ((_local2 > 127) && (_local2 < 2048)) {
_local1[_local1.length] = (_local2 >> 6) | 192;
_local1[_local1.length] = (_local2 & 63) | 128;
} else {
_local1[_local1.length] = (_local2 >> 12) | 224;
_local1[_local1.length] = ((_local2 >> 6) & 63) | 128;
_local1[_local1.length] = (_local2 & 63) | 128;
}
_local3++;
}
}
return(_local1);
}
function b64d2t(d, b64) {
var _local1 = new Array();
var _local2 = 0;
var _local5 = d.length;
if ((_local5 % 3) == 1) {
d[d.length] = 0;
d[d.length] = 0;
}
if ((_local5 % 3) == 2) {
d[d.length] = 0;
}
while (_local2 < d.length) {
_local1[_local1.length] = b64[d[_local2] >> 2];
_local1[_local1.length] = b64[((d[_local2] & 3) << 4) | (d[_local2 + 1] >> 4)];
_local1[_local1.length] = b64[((d[_local2 + 1] & 15) << 2) | (d[_local2 + 2] >> 6)];
_local1[_local1.length] = b64[d[_local2 + 2] & 63];
if ((_local2 % 57) == 54) {
_local1[_local1.length] = newline;
}
_local2 = _local2 + 3;
}
if ((_local5 % 3) == 1) {
_local1[_local1.length - 1] = (_local1[_local1.length - 2] = "=");
}
if ((_local5 % 3) == 2) {
_local1[_local1.length - 1] = "=";
}
var _local6 = _local1.join("");
return(_local6);
}
function base64_encode(str) {
return(b64d2t(utf8t2d(str), b64array()));
}
Instance of Symbol 12 MovieClip "sound" in Frame 1
onClipEvent (load) {
_root.globalsound = new Sound();
if (!_root.soundOff) {
stopAllSounds();
_root.fader.onEnterFrame = null;
_root.globalsound.setVolume(100);
_root.soundOff = false;
this.gotoAndPlay("start");
}
}
Instance of Symbol 9 MovieClip in Frame 6
onClipEvent (enterFrame) {
loadPct = _root.getBytesLoaded() / _root.getBytesTotal();
gotoAndStop(int(_totalframes * loadPct));
if (loadPct == 1) {
_root.play();
} else {
_root.stop();
}
}
Instance of Symbol 20 MovieClip in Frame 12
onClipEvent (load) {
_parent.stop();
}
Frame 15
loadMovie ("http://www.thearmchairgames.tv/tracking.swf?tid=" + Math.round(Math.random() * 10000), ph_mc);
Frame 28
stop();
Instance of Symbol 128 MovieClip "fader" in Frame 29
onClipEvent (load) {
_root.globalsound = new Sound();
this.onEnterFrame = function () {
currvolume = _root.globalsound.getVolume();
if (currvolume >= 10) {
_root.globalsound.setVolume(currvolume - 10);
} else {
_root.globalsound.setVolume(0);
}
};
}
Frame 42
trace("loading...");
var container = _root.createEmptyMovieClip("container", _root.getNextHighestDepth());
container.swapDepths(_root.kvBar);
var mcLoader = new MovieClipLoader();
var listener = new Object();
listener.onLoadStart = function () {
trace("load started");
};
listener.onLoadError = function () {
trace("load error!");
};
listener.onLoadInit = function () {
trace("load finished!");
};
mcLoader.addListener(listener);
if (version >= 8) {
mcLoader.loadClip(("http://www.thearmchairgames.tv/" + game) + ".swf", container);
} else {
mcLoader.loadClip(("http://www.thearmchairgames.tv/" + game) + "7.swf", container);
}
stop();
Symbol 9 MovieClip Frame 1
stop();
Symbol 12 MovieClip Frame 1
stop();
Symbol 20 MovieClip Frame 91
_parent.play();
Symbol 67 Button
on (release) {
_root.wegaInfo();
}
Symbol 69 Button
on (release) {
_root.wegaInfo();
}
Symbol 80 MovieClip Frame 1
this.qual_txt.text = _root._quality + " DETAIL";
this.onRelease = function () {
switch (_root._quality) {
case "BEST" :
_root._quality = "LOW";
break;
case "HIGH" :
_root._quality = "BEST";
break;
case "MEDIUM" :
_root._quality = "HIGH";
break;
case "LOW" :
_root._quality = "MEDIUM";
}
this.qual_txt.text = _root._quality + " DETAIL";
};
Symbol 82 MovieClip Frame 1
stop();
Symbol 82 MovieClip Frame 2
stop();
Symbol 83 Button
on (release) {
_root.openPage("dealer");
}
Symbol 84 Button
on (release) {
_root.openPage("bravia");
}
Symbol 85 Button
on (release) {
_root.openPage("highscores");
}
Symbol 86 Button
on (release) {
_root.openPage("prize");
}
Symbol 88 MovieClip Frame 1
stop();
Symbol 88 MovieClip Frame 2
stop();
Symbol 89 MovieClip Frame 1
stop();
Symbol 89 MovieClip Frame 2
stop();
Symbol 90 MovieClip Frame 1
stop();
Symbol 90 MovieClip Frame 9
stop();
Instance of Symbol 89 MovieClip in Symbol 90 MovieClip Frame 9
onClipEvent (load) {
if (_root.soundOff == true) {
this.gotoAndStop(4);
}
this.onRelease = function () {
if (!(_root.soundOff === true)) {
_root.soundOff = true;
_root.sound.gotoAndStop(1);
stopAllSounds();
this.gotoAndStop("off");
} else {
_root.soundOff = false;
_root.sound.gotoAndPlay("start");
this.gotoAndStop("on");
}
};
this.onRollOver = function () {
this.btn.gotoAndStop("over");
};
this.onRollOut = function () {
this.btn.gotoAndStop("out");
};
}
Symbol 94 Button
on (release) {
gotoAndPlay ("menuOpen");
menuButts.gotoAndPlay("open");
}
Symbol 99 Button
on (release) {
gotoAndPlay ("menuClose");
menuButts.gotoAndPlay("close");
}
Symbol 100 MovieClip Frame 1
stop();
Symbol 100 MovieClip Frame 7
stop();
Symbol 110 Button
on (release) {
getURL ("http://www.killerviral.com/redir.php?urlId=55", "_blank");
}
Symbol 113 Button
on (release) {
_root.game = "salsa";
_root.play();
}
Symbol 115 Button
on (release) {
_root.game = "adbreak";
_root.play();
}
Symbol 117 Button
on (release) {
_root.game = "sofa";
_root.play();
}
Symbol 119 Button
on (release) {
_root.game = "hurdles";
_root.play();
}
Symbol 121 Button
on (release) {
_root.game = "pizza";
_root.play();
}
Symbol 125 Button
on (release) {
_root.openPage("dtv");
}
Symbol 126 Button
on (release) {
_root.openPage("prize");
}