Frame 1
_fglv = new LoadVars();
_fglv.gid = 232;
_fglv.url = _root._url;
_fglv.sendAndLoad("http://www.freegamesforyourwebsite.com/stats.php", _fglv, "POST");
delete _fglv;
var debug = true;
var gameID = 217;
var gameName = "premiere_league_foosball";
stop();
fscommand ("showmenu", "false");
prel.onEnterFrame = function () {
prel.procent.text = Math.ceil((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
prel.gotoAndStop(prel.procent.text);
if (Number(prel.procent.text) >= 100) {
play();
delete this.onEnterFrame;
}
};
Frame 2
stop();
Frame 3
if (!okToPlay) {
gotoAndStop (2);
}
Frame 4
function randRange(min, max) {
var _local1 = Math.floor(Math.random() * ((max - min) + 1)) + min;
return(_local1);
}
MovieClip.prototype.bounceIn = function (delay, callback) {
this._visible = false;
xFinish = this._x;
yFinish = this._y;
rotFinish = this._rotation;
this._xscale = 0;
this._yscale = 0;
this._visible = true;
var startTime = getTimer();
this.onEnterFrame = function () {
currentTime = getTimer();
if (currentTime >= (startTime + delay)) {
this.gotoAndPlay(2);
var _local3 = new mx.transitions.Tween(this, "_xscale", mx.transitions.easing.Elastic.easeOut, 0, 100, 1, true);
var _local2 = new mx.transitions.Tween(this, "_yscale", mx.transitions.easing.Elastic.easeOut, 0, 100, 1, true);
xtween.onMotionFinished = callback;
delete this.onEnterFrame;
}
};
};
MovieClip.prototype.bounceFinal = function (delay, callback) {
this._visible = false;
xFinish = this._x;
yFinish = this._y;
rotFinish = this._rotation;
this._xscale = 0;
this._yscale = 0;
this._visible = true;
var startTime = getTimer();
this.onEnterFrame = function () {
currentTime = getTimer();
if (currentTime >= (startTime + delay)) {
var _local3 = new mx.transitions.Tween(this, "_xscale", mx.transitions.easing.Elastic.easeOut, 0, 100, 1, true);
var _local2 = new mx.transitions.Tween(this, "_yscale", mx.transitions.easing.Elastic.easeOut, 0, 100, 1, true);
xtween.onMotionFinished = callback;
delete this.onEnterFrame;
}
};
};
MovieClip.prototype.bounceBtnIn = function (amount) {
var _local3 = new mx.transitions.Tween(this, "_xscale", mx.transitions.easing.Elastic.easeOut, this._xscale, amount, 1, true);
var _local2 = new mx.transitions.Tween(this, "_yscale", mx.transitions.easing.Elastic.easeOut, this._yscale, amount, 1, true);
};
MovieClip.prototype.bounceBtnOut = function () {
var _local3 = new mx.transitions.Tween(this, "_xscale", mx.transitions.easing.Elastic.easeOut, this._xscale, 90, 1, true);
var _local2 = new mx.transitions.Tween(this, "_yscale", mx.transitions.easing.Elastic.easeOut, this._yscale, 90, 1, true);
};
MovieClip.prototype.bounceOut = function (delay, callback) {
this._visible = false;
var _local3 = this._x;
var _local2 = this._y;
var _local6 = this._rotation;
this._xscale = 100;
this._yscale = 100;
this._visible = true;
var startTime = getTimer();
this.onEnterFrame = function () {
currentTime = getTimer();
if (currentTime >= (startTime + delay)) {
var _local3 = new mx.transitions.Tween(this, "_xscale", mx.transitions.easing.Elastic.easeOut, 100, 0, 1.5, true);
var _local2 = new mx.transitions.Tween(this, "_yscale", mx.transitions.easing.Elastic.easeOut, 100, 0, 1.5, true);
xtween.onMotionFinished = callback;
delete this.onEnterFrame;
}
};
};
MovieClip.prototype.fadeOut = function (delay, callback) {
this._alpha = 100;
var startTime = getTimer();
this.onEnterFrame = function () {
currentTime = getTimer();
if (currentTime >= (startTime + delay)) {
var _local2 = new mx.transitions.Tween(this, "_alpha", mx.transitions.easing.Regular.easeOut, 100, 0, 1.5, true);
_local2.onMotionFinished = function () {
this._visible = false;
this._alpha = 100;
};
delete this.onEnterFrame;
}
};
};
MovieClip.prototype.slide = function (delay, callback) {
this._visible = false;
var xFinish = this._x;
this._x = Stage.width + this._width;
this._visible = true;
var startTime = getTimer();
this.onEnterFrame = function () {
currentTime = getTimer();
if (currentTime >= (startTime + delay)) {
var _local2 = new mx.transitions.Tween(this, "_x", mx.transitions.easing.Elastic.easeOut, this._x, xFinish, 1, true);
_local2.onMotionFinished = callback;
delete this.onEnterFrame;
}
};
};
ScaleRange = 350;
ScaleMin = 150;
Rotation = Math.random() * 4;
angle = 0;
angleRate = 0.1;
max = 12;
vx = randRange(-max, max);
vy = randRange(-max, max);
rot = randRange(-2, 2);
mouseX = _root._xmouse;
mouseY = _root._ymouse;
oldMouseX = mouseX;
oldMouseY = mouseY;
totalWidth = preloader_mc.percentbar_mc._width;
preloader_mc.percentbar_mc._width = 0;
preloader_mc.kPercent.text = "0%";
var myURL = _url;
var okDomain = "markfennell";
var okDomain1 = "209.200.250.151";
var okDomain2 = "127.0.0.1";
preloader_mc.onEnterFrame = function () {
var _local4 = _root.getBytesLoaded();
var _local3 = _root.getBytesTotal();
if (_local3 != -1) {
var _local6 = Math.round(_local4 / 1024);
var _local5 = Math.round(_local3 / 1024);
percent = Math.round((_local6 / _local5) * 100);
if (isNaN(percent)) {
this.kPercent.text = "0%";
} else {
this.kPercent.text = percent + "%";
this.percentbar_mc._width = totalWidth * (percent / 100);
}
if ((_local4 == _local3) && (_local3 > 0)) {
_root.gotoAndPlay("instructions");
delete this.onEnterFrame;
} else if (_local4 == -1) {
failureReport_txt.text = "The file is not currently available. Please try again later. If you continue to receive this message, please contact the system administrator.";
}
}
};
stop();
Frame 12
delete _global.teams;
delete _global.Me;
delete _global.Opponent;
_global.teams = new com.Teams();
_global.Me = new com.Player();
_global.Opponent = new com.Player();
stop();
Instance of Symbol 286 MovieClip in Frame 12
on (release) {
getURL ("http://www.freegamesforyourwebsite.com/click.php?gid=232&area=minilogo", "_blank");
}
Frame 21
stop();
Frame 28
stop();
Frame 46
stop();
function buildDisplay() {
scoreBoard.playerScore.text = 0;
scoreBoard.opponentScore.text = 0;
scoreBoard.opponentTeam.logos.gotoAndStop(_global.Opponent.getId() + 1);
scoreBoard.playerTeam.logos.gotoAndStop(_global.Me.getId() + 1);
scoreBoard.opponentTeam.nameText.text = _global.teams.getTeam(_global.Opponent.getId()).getName().toUpperCase();
scoreBoard.playerTeam.nameText.text = _global.teams.getTeam(_global.Me.getId()).getName().toUpperCase();
com.Fx.zoomIn(rods, 0, 0.5, -2000, rods._y, rods._x, rods._y, 10);
com.Fx.zoomIn(scoreBoard, 1, 0.5, 2000, scoreBoard._y, scoreBoard._x, scoreBoard._y, 10);
displayPlayers(_global.rowsOpponent, 0);
displayPlayers(_global.rowsPlayer, 0);
}
function hideDisplay() {
com.Fx.zoomIn(scoreBoard, 1, 0.5, scoreBoard._x, scoreBoard._y, 2000, scoreBoard._y, 10);
}
function displayPlayers(playerArray, wait) {
var _local5 = 0;
var _local6 = 50;
var _local3 = 0;
while (_local3 < playerArray.length) {
var _local2 = 0;
while (_local2 < playerArray[_local3].length) {
_local5++;
var _local1 = playerArray[_local3][_local2];
com.Fx.zoomIn(_local1, wait + (_local5 * _local6), 1, -2000, _local1._y, _local1._x, _local1._y, 10);
_local2++;
}
_local3++;
}
}
function setLayout(mc, type) {
if (type == 0) {
mc.gotoAndPlay(1);
var _local2 = [[mc.ball0, mc.ball1, mc.ball2], [mc.ball3, mc.ball4, mc.ball5, mc.ball6], [mc.ball7, mc.ball8], [mc.ball9]];
} else {
mc.gotoAndPlay(2);
var _local2 = [[mc.ball0, mc.ball1, mc.ball2, mc.ball3], [mc.ball4, mc.ball5, mc.ball6], [mc.ball7, mc.ball8], [mc.ball9]];
}
return(_local2);
}
function checkPause() {
if (!pauseFlag) {
trace("P Pressed");
pauseFlag = true;
mcPauseScr._visible = true;
} else if (pauseFlag) {
pauseFlag = false;
mcPauseScr._visible = false;
}
}
function scoring() {
if (!hasScored) {
if (ball.ball.hitTest(goalOpponent.hit)) {
hasScored = true;
goalDisplay.gotoAndPlay("goal");
ball.centerBall();
scoreOpponent++;
_global.Opponent.setScore(scoreOpponent);
scoreBoard.opponentScore.text = scoreOpponent;
} else if (ball.ball.hitTest(goalPlayer.hit)) {
hasScored = true;
goalDisplay.gotoAndPlay("goal");
ball.centerBall();
scorePlayer++;
_global.Me.setScore(scorePlayer);
scoreBoard.playerScore.text = scorePlayer;
}
}
}
function endGame() {
if (timer.getMili() <= 0) {
if (_global.Me.getScore() != _global.Opponent.getScore()) {
delete onEnterFrame;
timer.stop();
scoreBoard.timerText.text = "0:00:00";
gotoAndPlay ("game over");
return(undefined);
}
scoreBoard.timerText.text = "0:00:00";
if (!goldenGoal) {
timer.stop();
goldenGoal = true;
goldenGoalAnim.gotoAndPlay("play");
}
}
}
function restart() {
hasScored = false;
ball.init();
}
function controls() {
if (Key.isDown(39)) {
players._x = Math.min(players._x + MOVERATE, playersRightBoundary);
} else if (Key.isDown(37)) {
players._x = Math.max(players._x - MOVERATE, playersLeftBoundary);
}
if (Key.isDown(32) && (TURBO > 0)) {
TURBO = TURBO - TURBODEPLETE;
TURBO = Math.max(0, TURBO);
VMAX = VMAXBASE * TURBOMULTIPLIER;
MOVERATE = MOVERATEBASE * TURBOMULTIPLIER;
} else {
TURBO = TURBO + TURBOREPLENISH;
TURBO = Math.min(TURBOMAX, TURBO);
VMAX = VMAXBASE;
MOVERATE = MOVERATEBASE;
}
}
function display() {
scoreBoard.timerText.text = timer.displayTime();
scoreBoard.turboDisplay.mask._width = (turboBarWidth * TURBO) / TURBOMAX;
}
function moveOpponent() {
ballRelative = ball._y - opponents._y;
if (ball.vy < 0) {
if (ballRelative > _global.rowsOpponent[0][0]._y) {
activeRow = 0;
} else if (ballRelative > _global.rowsOpponent[1][0]._y) {
activeRow = 1;
} else if (ballRelative > _global.rowsOpponent[2][0]._y) {
activeRow = 2;
} else {
activeRow = 3;
}
} else if (ballRelative < _global.rowsOpponent[3][0]._y) {
activeRow = 3;
} else if (ballRelative < _global.rowsOpponent[2][0]._y) {
activeRow = 2;
} else if (ballRelative < _global.rowsOpponent[1][0]._y) {
activeRow = 1;
} else {
activeRow = 0;
}
column = 0;
distance = Stage.width;
i = 0;
while (i < _global.rowsOpponent[activeRow].length) {
testDistance = Math.abs((ball._x - _global.rowsOpponent[activeRow][i]._x) - opponents._x);
if (testDistance < distance) {
column = i;
distance = testDistance;
}
i++;
}
difference = (ball._x - _global.rowsOpponent[activeRow][column]._x) - opponents._x;
if (difference >= OPPONENTMOVERATE) {
opponents._x = Math.min(opponents._x + OPPONENTMOVERATE, opponentsRightBoundary);
} else if (difference <= (-OPPONENTMOVERATE)) {
opponents._x = Math.max(opponents._x - OPPONENTMOVERATE, opponentsLeftBoundary);
}
if (!collisions()) {
collisionsPlayer();
}
}
function aimOpponentGoal() {
var _local1 = 35;
var _local5 = ((Math.random() * _local1) * 2) - _local1;
var _local3 = (goalOpponent._x + _local5) - ball._x;
var _local2 = goalOpponent._y - ball._y;
var _local4 = Math.atan2(_local2, _local3);
return(_local4);
}
function aimOpponent(target) {
var _local2 = (target._x + opponents._x) - ball._x;
var _local1 = (target._y + opponents._y) - ball._y;
var _local3 = Math.atan2(_local1, _local2);
return(_local3);
}
function collisions() {
if (!colliding) {
i = 0;
while (i < _global.rowsOpponent.length) {
j = 0;
while (j < _global.rowsOpponent[i].length) {
if (ball.ball.hitTest(_global.rowsOpponent[i][j].hit)) {
isColliding();
_global.rowsOpponent[i][j].gotoAndPlay(2);
var _local2 = Math.random() > 0.1;
if ((i == 0) || (_local2)) {
ballAngle = aimOpponentGoal();
ballAngle = ballAngle + ((Math.random() * ACCURACY) - ACCURACY);
ball.kickBall(ballAngle, VMAXOPPONENT);
return(true);
}
row = i - 1;
var _local3 = com.Util.rand(_global.rowsOpponent[row].length - 1);
mc = _global.rowsOpponent[row][_local3];
ballAngle = aimOpponent(mc);
ballAngle = ballAngle + ((Math.random() * ACCURACY) - ACCURACY);
ball.kickBall(ballAngle, VMAXOPPONENT);
trace("VMAXOPPONENT " + VMAXOPPONENT);
return(true);
}
j++;
}
i++;
}
}
return(false);
}
function isColliding() {
colliding = true;
collideInterval = setInterval(clearCollision, 100);
}
function clearCollision() {
colliding = false;
clearInterval(collideInterval);
}
function collisionsPlayer() {
if (!colliding) {
i = 0;
while (i < _global.rowsPlayer.length) {
j = 0;
while (j < _global.rowsPlayer[i].length) {
if (ball.ball.hitTest(_global.rowsPlayer[i][j].hit)) {
isColliding();
_global.rowsPlayer[i][j].gotoAndPlay(2);
mc = _global.rowsPlayer[row][player];
var _local2 = com.Util.getPos(ball);
var _local3 = com.Util.getPos(_global.rowsPlayer[i][j]);
var _local4 = _local2.x - _local3.x;
ballAngle = (-90 + (_local4 * SCALE)) * deg2rad;
ball.kickBall(ballAngle, VMAX);
return(true);
}
j++;
}
i++;
}
}
return(false);
}
mcPauseScr._visible = false;
var CORRECTION = (_global.Me.getRound() * 0.25);
var SCALE = 2.5;
var VMAXBASE = (6 + CORRECTION);
var VMAX = VMAXBASE;
var VMAXOPPONENT = (5 + (CORRECTION * 1.2));
var ACCURACY = (Math.random() * 0.3);
var MOVERATEBASE = 3;
var MOVERATE = MOVERATEBASE;
var OPPONENTMOVERATE = (2 + CORRECTION);
var PLAYERGOALRANDOM = (10 * deg2rad);
var TURBO = 100;
var TURBOMAX = 100;
var TURBODEPLETE = 0.2;
var TURBOREPLENISH = 0.07;
var TURBOMULTIPLIER = 1.6;
var turboBarWidth = scoreBoard.turboDisplay.mask._width;
var goldenGoal = false;
var pauseFlag = false;
var pauseKey = new Object();
pauseKey.onKeyDown = function () {
if ((Key.getCode() == 80) || (Key.getCode() == 112)) {
checkPause();
}
};
Key.addListener(pauseKey);
var layout = Math.round(Math.random());
_global.rowsOpponent = setLayout(opponents, layout);
_global.rowsPlayer = setLayout(players, _global.Me.getLayout());
var timer = (new com.Timer(120000));
timer.start();
Sound1 = new Sound();
Sound1.attachSound("soccer_01");
Sound1.setVolume(10);
var playersLeftBoundary = 100;
var playersRightBoundary = 250;
var opponentsLeftBoundary = 10;
var opponentsRightBoundary = 140;
var hasScored = false;
var scorePlayer = 0;
var scoreOpponent = 0;
var deg2rad = (Math.PI/180);
var colliding = false;
var collideInterval;
_global.Opponent.setScore(0);
_global.Me.setScore(0);
buildDisplay();
var ball = _ball.attachMovie("Ball", "ball", 1, {startX:168, startY:244, players:_global.rowsPlayer, opponents:_global.rowsOpponent, VMAX:VMAX});
onEnterFrame = function () {
if (pauseFlag == false) {
display();
if (!ball.isRestarting()) {
controls();
moveOpponent();
}
scoring();
endGame();
}
};
btnplaymore.onRelease = function () {
getURL ("http://www.freegamesforyourwebsite.com/click.php?gid=232&area=paused", "_blank");
};
stop();
Frame 57
if (_global.Me.getScore() >= _global.Opponent.getScore()) {
playerWin.gotoAndPlay("play");
} else if (_global.Me.getScore() < _global.Opponent.getScore()) {
playerLose.play();
}
stop();
Frame 67
function buildDisplay() {
scoreBoard.playerScore.text = 0;
scoreBoard.opponentScore.text = 0;
scoreBoard.opponentTeam.logos.gotoAndStop(_global.Opponent.getId() + 1);
scoreBoard.playerTeam.logos.gotoAndStop(_global.Me.getId() + 1);
scoreBoard.opponentTeam.nameText.text = _global.teams.getTeam(_global.Opponent.getId()).getName().toUpperCase();
scoreBoard.playerTeam.nameText.text = _global.teams.getTeam(_global.Me.getId()).getName().toUpperCase();
com.Fx.zoomIn(rods, 0, 0.5, -2000, rods._y, rods._x, rods._y, 10);
com.Fx.zoomIn(scoreBoard, 1, 0.5, 2000, scoreBoard._y, scoreBoard._x, scoreBoard._y, 10);
displayPlayers(_global.rowsOpponent, 0);
displayPlayers(_global.rowsPlayer, 0);
}
function hideDisplay() {
com.Fx.zoomIn(scoreBoard, 1, 0.5, scoreBoard._x, scoreBoard._y, 2000, scoreBoard._y, 10);
}
function displayPlayers(playerArray, wait) {
var _local5 = 0;
var _local6 = 50;
var _local3 = 0;
while (_local3 < playerArray.length) {
var _local2 = 0;
while (_local2 < playerArray[_local3].length) {
_local5++;
var _local1 = playerArray[_local3][_local2];
com.Fx.zoomIn(_local1, wait + (_local5 * _local6), 1, -2000, _local1._y, _local1._x, _local1._y, 10);
_local2++;
}
_local3++;
}
}
hideDisplay();
Frame 75
stop();
Frame 76
stop();
btnBackToMain.onRelease = function () {
gotoAndPlay ("instructions");
};
Instance of Symbol 477 MovieClip [TMP6pbk6uzm9i] in Frame 76
//component parameters
onClipEvent (construct) {
gameID = 217;
}
Frame 86
stop();
btnPlay.onRelease = function () {
getURL ("http://www.markfennell.com/flash/premiere", "_top");
};
Symbol 22 MovieClip Frame 1
stop();
Symbol 23 MovieClip [Ball] Frame 1
#initclip 15
Object.registerClass("Ball", com.Ball);
#endinitclip
Symbol 87 MovieClip Frame 1
stop();
var tagctr = (random(55) + 1);
gotoAndStop(tagctr);
Symbol 88 MovieClip Frame 105
stop();
Symbol 98 Button
on (release) {
getURL ("http://www.freegamesforyourwebsite.com/click.php?gid=232&area=loader", "_blank");
}
Instance of Symbol 106 MovieClip "mcNotice" in Symbol 143 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 143 MovieClip Frame 120
stop();
if ((_url.indexOf("freeonlinegames.com") >= 0) && (_url.indexOf("file:") == -1)) {
_root.okToPlay = true;
_root.play();
} else if (_root.debug) {
_root.okToPlay = true;
_root.play();
} else {
_root.mcTaglines._visible = false;
mcNotice._visible = true;
}
Symbol 144 MovieClip Frame 71
stop();
var fogsound = new Sound();
fogsound.attachSound("fogaudio");
fogsound.start(0, 1);
Symbol 147 MovieClip Frame 1
_root.earl223 = function (val) {
var _local3 = new Array("_", "Z", "y", "x", "W", "v", "u", "T", "s", "r", "Q", "P", "O", "n", "m", "L", "K", "j", "i", "H", "g", "F", "e", "d", "C", "B", "a");
var _local2 = "";
val1 = 0;
while (val1 < val.length) {
if (val.substr(val1, 1) == ":") {
_local2 = _local2 + ":";
} else if (Number(val.substr(val1, 2)) > 26) {
_local2 = _local2 + _local3[Number(val.substr(val1, 1))];
} else if (Number(val.substr(val1, 1)) == 0) {
_local2 = _local2 + "_";
} else {
_local2 = _local2 + _local3[Number(val.substr(val1, 2))];
val1++;
}
val1++;
}
return(_local2);
};
Symbol 154 MovieClip Frame 1
stop();
Symbol 478 MovieClip [__Packages.com.Ball] Frame 0
class com.Ball extends MovieClip
{
var TOP, BOTTOM, LEFT, RIGHT, BOUNCE, _visible, isRestart, streaks, _x, startX, _y, startY, _rotation;
function Ball () {
super();
trace("// Ball Created");
TOP = 20;
BOTTOM = 475;
LEFT = 23;
RIGHT = 320;
BOUNCE = -1;
init();
}
function init() {
centerBall();
_visible = true;
isRestart = true;
var mc = this;
mc.ball.stop();
var _local2 = new mx.transitions.Tween(mc, "_xscale", mx.transitions.easing.Bounce.easeOut, 500, 100, 1.5, true);
var _local3 = new mx.transitions.Tween(mc, "_yscale", mx.transitions.easing.Bounce.easeOut, 500, 100, 1.5, true);
_local2.onMotionFinished = function () {
mc.vx = com.Util.rand(mc.VMAX / 4) + (mc.VMAX / 4);
if (Math.random() > 0.5) {
mc.vy = -mc.VMAX;
mc.vx = mc.vx * -1;
} else {
mc.vy = mc.VMAX;
}
mc.streaks._visible = true;
mc.ball.play();
this.displayBall();
mc.isRestart = false;
};
}
function centerBall() {
streaks._visible = false;
_visible = false;
_x = startX;
_y = startY;
vx = 0;
vy = 0;
}
function isRestarting() {
return(isRestart);
}
function kickBall(angle, VMAX) {
if (!isRestart) {
vx = Math.cos(angle) * VMAX;
vy = Math.sin(angle) * VMAX;
_x = _x + vx;
_y = _y + vy;
displayBall();
}
}
function displayBall() {
Sound1.start(0, 1);
var _local2 = Math.atan2(vy, vx);
_rotation = _local2 * RADTODEG;
streaks.play();
return(_local2);
}
function onEnterFrame() {
if (_root.pauseFlag == false) {
if (!isRestart) {
_x = _x + vx;
_y = _y + vy;
}
if (_x > RIGHT) {
_x = RIGHT;
vx = vx * BOUNCE;
displayBall();
} else if (_x < LEFT) {
_x = LEFT;
vx = vx * BOUNCE;
displayBall();
}
if (_y > BOTTOM) {
_y = BOTTOM;
vy = vy * BOUNCE;
displayBall();
} else if (_y < TOP) {
_y = TOP;
vy = vy * BOUNCE;
displayBall();
}
}
}
static var RADTODEG = 57.2957795130823;
var vx = 0;
var vy = 0;
}
Symbol 479 MovieClip [__Packages.mx.transitions.OnEnterFrameBeacon] Frame 0
class mx.transitions.OnEnterFrameBeacon
{
function OnEnterFrameBeacon () {
}
static function init() {
var _local4 = _global.MovieClip;
if (!_root.__OnEnterFrameBeacon) {
mx.transitions.BroadcasterMX.initialize(_local4);
var _local3 = _root.createEmptyMovieClip("__OnEnterFrameBeacon", 9876);
_local3.onEnterFrame = function () {
_global.MovieClip.broadcastMessage("onEnterFrame");
};
}
}
static var version = "1.1.0.52";
}
Symbol 480 MovieClip [__Packages.mx.transitions.BroadcasterMX] Frame 0
class mx.transitions.BroadcasterMX
{
var _listeners;
function BroadcasterMX () {
}
static function initialize(o, dontCreateArray) {
if (o.broadcastMessage != undefined) {
delete o.broadcastMessage;
}
o.addListener = mx.transitions.BroadcasterMX.prototype.addListener;
o.removeListener = mx.transitions.BroadcasterMX.prototype.removeListener;
if (!dontCreateArray) {
o._listeners = new Array();
}
}
function addListener(o) {
removeListener(o);
if (broadcastMessage == undefined) {
broadcastMessage = mx.transitions.BroadcasterMX.prototype.broadcastMessage;
}
return(_listeners.push(o));
}
function removeListener(o) {
var _local2 = _listeners;
var _local3 = _local2.length;
while (_local3--) {
if (_local2[_local3] == o) {
_local2.splice(_local3, 1);
if (!_local2.length) {
broadcastMessage = undefined;
}
return(true);
}
}
return(false);
}
function broadcastMessage() {
var _local5 = String(arguments.shift());
var _local4 = _listeners.concat();
var _local6 = _local4.length;
var _local3 = 0;
while (_local3 < _local6) {
_local4[_local3][_local5].apply(_local4[_local3], arguments);
_local3++;
}
}
static var version = "1.1.0.52";
}
Symbol 481 MovieClip [__Packages.mx.transitions.Tween] Frame 0
class mx.transitions.Tween
{
var obj, prop, begin, useSeconds, _listeners, addListener, prevTime, _time, looping, _duration, broadcastMessage, isPlaying, _fps, prevPos, _pos, change, _intervalID, _startTime;
function Tween (obj, prop, func, begin, finish, duration, useSeconds) {
mx.transitions.OnEnterFrameBeacon.init();
if (!arguments.length) {
return;
}
this.obj = obj;
this.prop = prop;
this.begin = begin;
position = (begin);
this.duration = (duration);
this.useSeconds = useSeconds;
if (func) {
this.func = func;
}
this.finish = (finish);
_listeners = [];
addListener(this);
start();
}
function set time(t) {
prevTime = _time;
if (t > duration) {
if (looping) {
rewind(t - _duration);
update();
broadcastMessage("onMotionLooped", this);
} else {
if (useSeconds) {
_time = _duration;
update();
}
stop();
broadcastMessage("onMotionFinished", this);
}
} else if (t < 0) {
rewind();
update();
} else {
_time = t;
update();
}
//return(time);
}
function get time() {
return(_time);
}
function set duration(d) {
_duration = (((d == null) || (d <= 0)) ? (_global.Infinity) : (d));
//return(duration);
}
function get duration() {
return(_duration);
}
function set FPS(fps) {
var _local2 = isPlaying;
stopEnterFrame();
_fps = fps;
if (_local2) {
startEnterFrame();
}
//return(FPS);
}
function get FPS() {
return(_fps);
}
function set position(p) {
setPosition(p);
//return(position);
}
function setPosition(p) {
prevPos = _pos;
obj[prop] = (_pos = p);
broadcastMessage("onMotionChanged", this, _pos);
updateAfterEvent();
}
function get position() {
return(getPosition());
}
function getPosition(t) {
if (t == undefined) {
t = _time;
}
return(func(t, begin, change, _duration));
}
function set finish(f) {
change = f - begin;
//return(finish);
}
function get finish() {
return(begin + change);
}
function continueTo(finish, duration) {
begin = position;
this.finish = (finish);
if (duration != undefined) {
this.duration = (duration);
}
start();
}
function yoyo() {
continueTo(begin, time);
}
function startEnterFrame() {
if (_fps == undefined) {
_global.MovieClip.addListener(this);
} else {
_intervalID = setInterval(this, "onEnterFrame", 1000 / _fps);
}
isPlaying = true;
}
function stopEnterFrame() {
if (_fps == undefined) {
_global.MovieClip.removeListener(this);
} else {
clearInterval(_intervalID);
}
isPlaying = false;
}
function start() {
rewind();
startEnterFrame();
broadcastMessage("onMotionStarted", this);
}
function stop() {
stopEnterFrame();
broadcastMessage("onMotionStopped", this);
}
function resume() {
fixTime();
startEnterFrame();
broadcastMessage("onMotionResumed", this);
}
function rewind(t) {
_time = ((t == undefined) ? 0 : (t));
fixTime();
update();
}
function fforward() {
time = (_duration);
fixTime();
}
function nextFrame() {
if (useSeconds) {
time = ((getTimer() - _startTime) / 1000);
} else {
time = (_time + 1);
}
}
function onEnterFrame() {
nextFrame();
}
function prevFrame() {
if (!useSeconds) {
time = (_time - 1);
}
}
function toString() {
return("[Tween]");
}
function fixTime() {
if (useSeconds) {
_startTime = getTimer() - (_time * 1000);
}
}
function update() {
position = (getPosition(_time));
}
static var version = "1.1.0.52";
static var __initBeacon = mx.transitions.OnEnterFrameBeacon.init();
static var __initBroadcaster = mx.transitions.BroadcasterMX.initialize(mx.transitions.Tween.prototype, true);
function func(t, b, c, d) {
return(((c * t) / d) + b);
}
}
Symbol 482 MovieClip [__Packages.mx.transitions.easing.Bounce] Frame 0
class mx.transitions.easing.Bounce
{
function Bounce () {
}
static function easeOut(t, b, c, d) {
t = t / d;
if (t < 0.363636363636364) {
return((c * ((7.5625 * t) * t)) + b);
}
if (t < 0.727272727272727) {
t = t - 0.545454545454545;
return((c * (((7.5625 * t) * t) + 0.75)) + b);
}
if (t < 0.909090909090909) {
t = t - 0.818181818181818;
return((c * (((7.5625 * t) * t) + 0.9375)) + b);
}
t = t - 0.954545454545455;
return((c * (((7.5625 * t) * t) + 0.984375)) + b);
}
static function easeIn(t, b, c, d) {
return((c - easeOut(d - t, 0, c, d)) + b);
}
static function easeInOut(t, b, c, d) {
if (t < (d / 2)) {
return((easeIn(t * 2, 0, c, d) * 0.5) + b);
}
return(((easeOut((t * 2) - d, 0, c, d) * 0.5) + (c * 0.5)) + b);
}
static var version = "1.1.0.52";
}
Symbol 483 MovieClip [__Packages.com.Util] Frame 0
class com.Util
{
function Util () {
}
static function rand(num) {
if (arguments.length == 1) {
return(Math.floor(Math.random() * num) + 1);
}
return(Math.floor(Math.random() * (Math.abs(arguments[1] - num) + 1)) + Math.min(num, arguments[1]));
}
static function getPos(clip) {
var _local1 = {x:0, y:0};
clip.localToGlobal(_local1);
return(_local1);
}
static function padScore(i, len) {
var _local2 = "000000000000000000000";
var _local1 = i.toString();
if (_local1.length < len) {
_local1 = _local2.substring(0, len - _local1.length) + _local1;
}
return(_local1);
}
}
Symbol 484 MovieClip [__Packages.mx.transitions.easing.Elastic] Frame 0
class mx.transitions.easing.Elastic
{
function Elastic () {
}
static function easeIn(t, b, c, d, a, p) {
if (t == 0) {
return(b);
}
t = t / d;
if (t == 1) {
return(b + c);
}
if (!p) {
p = d * 0.3;
}
if ((!a) || (a < Math.abs(c))) {
a = c;
var _local7 = p / 4;
} else {
var _local7 = (p / (Math.PI*2)) * Math.asin(c / a);
}
t = t - 1;
return((-((a * Math.pow(2, 10 * t)) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p))) + b);
}
static function easeOut(t, b, c, d, a, p) {
if (t == 0) {
return(b);
}
t = t / d;
if (t == 1) {
return(b + c);
}
if (!p) {
p = d * 0.3;
}
if ((!a) || (a < Math.abs(c))) {
a = c;
var _local7 = p / 4;
} else {
var _local7 = (p / (Math.PI*2)) * Math.asin(c / a);
}
return((((a * Math.pow(2, -10 * t)) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p)) + c) + b);
}
static function easeInOut(t, b, c, d, a, p) {
if (t == 0) {
return(b);
}
t = t / (d / 2);
if (t == 2) {
return(b + c);
}
if (!p) {
p = d * 0.45;
}
if ((!a) || (a < Math.abs(c))) {
a = c;
var _local7 = p / 4;
} else {
var _local7 = (p / (Math.PI*2)) * Math.asin(c / a);
}
if (t < 1) {
t = t - 1;
return((-0.5 * ((a * Math.pow(2, 10 * t)) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p))) + b);
}
t = t - 1;
return(((((a * Math.pow(2, -10 * t)) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p)) * 0.5) + c) + b);
}
static var version = "1.1.0.52";
}
Symbol 485 MovieClip [__Packages.mx.transitions.easing.Regular] Frame 0
class mx.transitions.easing.Regular
{
function Regular () {
}
static function easeIn(t, b, c, d) {
t = t / d;
return(((c * t) * t) + b);
}
static function easeOut(t, b, c, d) {
t = t / d;
return((((-c) * t) * (t - 2)) + b);
}
static function easeInOut(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return((((c / 2) * t) * t) + b);
}
t--;
return((((-c) / 2) * ((t * (t - 2)) - 1)) + b);
}
static var version = "1.1.0.52";
}
Symbol 486 MovieClip [__Packages.com.Player] Frame 0
class com.Player
{
var _round, _score, _goals, _difference, _id, _layout;
function Player () {
init();
}
function init() {
_round = 0;
_score = 0;
_goals = 0;
_difference = 0;
}
function getDifference() {
return(_difference);
}
function setDifference(difference) {
_difference = _difference + Math.max(0, difference);
}
function getGoals() {
return(_goals);
}
function setGoals(goals) {
_goals = _goals + getScore();
}
function getScore() {
return(_score);
}
function setScore(score) {
_score = score;
}
function getId() {
return(_id);
}
function setId(id) {
_id = id;
}
function setLayout(layout) {
_layout = layout;
}
function getLayout() {
return(_layout);
}
function getRound() {
return(_round);
}
function setRound() {
_round++;
}
function resetRound() {
_round = 0;
}
}
Symbol 487 MovieClip [__Packages.com.Team] Frame 0
class com.Team
{
var _results, _round, _id, _score, _name, _difference;
function Team (id, name) {
_results = [];
_round = 0;
_id = id;
_score = 0;
_name = name;
}
function setScore(score) {
_score = score;
}
function getScore() {
return(_score);
}
function setDiff(diff) {
_difference = diff;
}
function getDiff() {
return(_difference);
}
function getId() {
return(_id);
}
function getName() {
return(_name);
}
function getRound() {
return(_round);
}
function getResults(n) {
return(_results[n]);
}
}
Symbol 488 MovieClip [__Packages.com.Teams] Frame 0
class com.Teams
{
var teamsArray, teamNames, resultsArray, teamsPerRound;
function Teams () {
teamsArray = [];
teamNames = ["Arsenal", "Aston Villa ", "Blackburn ", "Bolton", "Charlton", "Chelsea", "Everton", "Fulham", "Liverpool", "Man City", "Man United", "Middlesbrough", "Newcastle", "Portsmouth", "Reading", "Sheffield United", "Tottenham ", "Watford ", "West Ham ", "Wigan"];
trace("// Teams constructed");
var _local2 = 0;
while (_local2 < teamNames.length) {
var _local3 = new com.Team(_local2, teamNames[_local2]);
teamsArray.push(_local3);
_local2++;
}
resultsArray = [[], [], [], [], []];
resultsArray[0] = teamsArray.slice();
teamsPerRound = [8, 4, 2];
}
function order(a, b) {
var _local2 = a.getScore();
var _local1 = b.getScore();
var _local3 = a.getDiff();
var _local4 = b.getDiff();
if (_local3 < _local4) {
return(1);
}
if (_local3 > _local4) {
return(-1);
}
if (_local2 < _local1) {
return(1);
}
if (_local2 > _local1) {
return(-1);
}
return(0);
}
function getTeamsInRound(round) {
return(teamsPerRound[round]);
}
function setTeams(round, Arr) {
resultsArray[round] = Arr;
}
function shuffleTeams(round) {
resultsArray[round] = shuffle(resultsArray[round]);
return(resultsArray[round]);
}
function getTeams(round) {
return(resultsArray[round]);
}
function getTeamId(name) {
var _local2 = 0;
while (_local2 < teamsArray.length) {
if (name == teamsArray[_local2].getName()) {
return(_local2);
}
_local2++;
}
}
function getTeam(id) {
return(teamsArray[id]);
}
function getNumTeams() {
return(teamsArray.length);
}
function shuffle(tempArray) {
var _local2 = 0;
while (_local2 < tempArray.length) {
var _local4 = tempArray[_local2];
var _local3 = random(tempArray.length);
tempArray[_local2] = tempArray[_local3];
tempArray[_local3] = _local4;
_local2++;
}
return(tempArray);
}
}
Symbol 489 MovieClip [__Packages.com.Fx] Frame 0
class com.Fx
{
function Fx () {
}
static function zoomIn(mc, delay, duration, startX, startY, finishX, finishY, blur, callBack) {
function _animate() {
mc.filters = [blur];
clearInterval(_interval);
var _local1 = new mx.transitions.Tween(mc, "_x", mx.transitions.easing.Regular.easeOut, startX, finishX, duration, true);
var _local2 = new mx.transitions.Tween(mc, "_y", mx.transitions.easing.Regular.easeOut, startY, finishY, duration, true);
_local1.onMotionFinished = function () {
mc.filters = [1];
callBack();
};
}
var _local7 = getTimer();
var _interval;
var _local1 = Math.atan2(finishY - startY, finishX - startX);
var _local3 = Math.abs(Math.floor(Math.cos(_local1) * blur));
var _local2 = Math.abs(Math.floor(Math.sin(_local1) * blur));
var _local6 = 1000 * delay;
mc._x = startX;
mc._y = startY;
var blur = (new flash.filters.BlurFilter(_local3, _local2, 1));
_interval = setInterval(_animate, delay);
}
}
Symbol 490 MovieClip [__Packages.com.Timer] Frame 0
class com.Timer
{
function Timer (ms) {
if (ms != undefined) {
isCountdown = true;
countdownTime = ms;
}
reset();
}
function two(x) {
return(((x > 9) ? "" : "0") + x);
}
function three(x) {
return((((x > 99) ? "" : "0") + ((x > 9) ? "" : "0")) + x);
}
function displayMili() {
var _local2 = getMili();
_local2 = _local2 % 1000;
return(_local2);
}
function displaySec() {
var _local3 = getMili();
var _local2 = Math.floor(_local3 / 1000);
_local2 = _local2 % 60;
return(_local2);
}
function displayMin() {
var _local3 = getMili();
var _local4 = Math.floor(_local3 / 1000);
var _local2 = Math.floor(_local4 / 60);
_local2 = _local2 % 60;
return(_local2);
}
function displayHour() {
var _local2 = getMili();
var _local3 = Math.floor(_local2 / 1000);
var _local5 = Math.floor(_local3 / 60);
var _local4 = Math.floor(_local5 / 60);
return(_local4);
}
function displayTime() {
var _local2 = three(displayMili());
_local2 = _local2.substring(0, 2);
var _local3 = (((displayMin() + ":") + two(displaySec())) + ":") + _local2;
return(_local3);
}
function reset() {
oldTime = 0;
pause = true;
totalTime = 0;
}
function stop() {
if (!pause) {
pause = true;
totalTime = totalTime + (getTimer() - oldTime);
}
}
function start() {
if (pause) {
pause = false;
oldTime = getTimer();
}
}
function getMili() {
var _local2 = totalTime;
if (!pause) {
_local2 = _local2 + (getTimer() - oldTime);
}
return(getTime(_local2));
}
function getSecs() {
var _local2 = totalTime / 1000;
if (!pause) {
_local2 = _local2 + ((getTimer() - oldTime) / 1000);
}
return(Math.round(getTime(_local2)));
}
function getMins() {
var _local2 = totalTime / 1000;
if (!pause) {
_local2 = _local2 + (((getTimer() - oldTime) / 1000) / 60);
}
return(Math.round(getTime(_local2)));
}
function addMili(ms) {
totalTime = Math.max(0, totalTime + ms);
}
function getTime(time) {
if (isCountdown) {
return(countdownTime - time);
}
return(time);
}
var oldTime = 0;
var pause = false;
var totalTime = 0;
var isCountdown = false;
var countdownTime = 0;
}
Symbol 491 MovieClip [__Packages.com.meychi.ascrypt.RC4] Frame 0
class com.meychi.ascrypt.RC4
{
function RC4 () {
}
static function encrypt(src, key) {
var _local3 = strToChars(src);
var _local1 = strToChars(key);
var _local2 = calculate(_local3, _local1);
return(charsToHex(_local2));
}
static function decrypt(src, key) {
var _local3 = hexToChars(src);
var _local1 = strToChars(key);
var _local2 = calculate(_local3, _local1);
return(charsToStr(_local2));
}
static function initialize(pwd) {
var _local2 = 0;
var _local3;
var _local4 = pwd.length;
var _local1 = 0;
while (_local1 <= 255) {
mykey[_local1] = pwd[_local1 % _local4];
sbox[_local1] = _local1;
_local1++;
}
_local1 = 0;
while (_local1 <= 255) {
_local2 = ((_local2 + sbox[_local1]) + mykey[_local1]) % 256;
_local3 = sbox[_local1];
sbox[_local1] = sbox[_local2];
sbox[_local2] = _local3;
_local1++;
}
}
static function calculate(plaintxt, psw) {
initialize(psw);
var _local1 = 0;
var _local2 = 0;
var _local9 = new Array();
var _local7;
var _local5;
var _local6;
var _local3 = 0;
while (_local3 < plaintxt.length) {
_local1 = (_local1 + 1) % 256;
_local2 = (_local2 + sbox[_local1]) % 256;
_local5 = sbox[_local1];
sbox[_local1] = sbox[_local2];
sbox[_local2] = _local5;
var _local4 = (sbox[_local1] + sbox[_local2]) % 256;
_local7 = sbox[_local4];
_local6 = plaintxt[_local3] ^ _local7;
_local9.push(_local6);
_local3++;
}
return(_local9);
}
static function charsToHex(chars) {
var _local4 = new String("");
var _local3 = new Array("0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f");
var _local1 = 0;
while (_local1 < chars.length) {
_local4 = _local4 + (_local3[chars[_local1] >> 4] + _local3[chars[_local1] & 15]);
_local1++;
}
return(_local4);
}
static function hexToChars(hex) {
var _local3 = new Array();
var _local1 = ((hex.substr(0, 2) == "0x") ? 2 : 0);
while (_local1 < hex.length) {
_local3.push(parseInt(hex.substr(_local1, 2), 16));
_local1 = _local1 + 2;
}
return(_local3);
}
static function charsToStr(chars) {
var _local3 = new String("");
var _local1 = 0;
while (_local1 < chars.length) {
_local3 = _local3 + String.fromCharCode(chars[_local1]);
_local1++;
}
return(_local3);
}
static function strToChars(str) {
var _local3 = new Array();
var _local1 = 0;
while (_local1 < str.length) {
_local3.push(str.charCodeAt(_local1));
_local1++;
}
return(_local3);
}
static var sbox = new Array(255);
static var mykey = new Array(255);
}
Symbol 158 MovieClip Frame 1
stop();
Symbol 228 MovieClip Frame 1
stop();
Symbol 228 MovieClip Frame 2
stop();
Symbol 228 MovieClip Frame 3
stop();
Symbol 228 MovieClip Frame 4
stop();
Symbol 228 MovieClip Frame 5
stop();
Symbol 228 MovieClip Frame 6
stop();
Symbol 228 MovieClip Frame 7
stop();
Symbol 228 MovieClip Frame 8
stop();
Symbol 228 MovieClip Frame 9
stop();
Symbol 228 MovieClip Frame 10
stop();
Symbol 228 MovieClip Frame 11
stop();
Symbol 228 MovieClip Frame 12
stop();
Symbol 228 MovieClip Frame 13
stop();
Symbol 228 MovieClip Frame 14
stop();
Symbol 228 MovieClip Frame 15
stop();
Symbol 228 MovieClip Frame 16
stop();
Symbol 228 MovieClip Frame 17
stop();
Symbol 228 MovieClip Frame 18
stop();
Symbol 228 MovieClip Frame 19
stop();
Symbol 228 MovieClip Frame 20
stop();
Symbol 242 MovieClip Frame 1
function zoomOut(callBack) {
com.Fx.zoomIn(btnPlay, 0, 0.25, btnPlay._x, btnPlay._y, 3000, btnPlay._y, 20, callBack);
com.Fx.zoomIn(btnHelp, 50, 0.5, btnHelp._x, btnHelp._y, 3000, btnHelp._y, 20);
com.Fx.zoomIn(btnScores, 100, 0.5, btnScores._x, btnScores._y, 3000, btnScores._y, 20);
com.Fx.zoomIn(btnMore, 150, 0.5, btnMore._x, btnMore._y, 3000, btnMore._y, 20);
}
stop();
com.Fx.zoomIn(btnPlay, 0, 0.75, -3000, btnPlay._y, btnPlay._x, btnPlay._y, 20);
com.Fx.zoomIn(btnHelp, 100, 0.75, -3000, btnHelp._y, btnHelp._x, btnHelp._y, 20);
com.Fx.zoomIn(btnScores, 200, 0.75, -3000, btnScores._y, btnScores._x, btnScores._y, 20);
com.Fx.zoomIn(btnMore, 300, 0.75, -3000, btnMore._y, btnMore._x, btnMore._y, 20);
btnPlay.onRelease = function () {
zoomOut(function () {
gotoAndPlay ("select");
});
};
btnHelp.onRelease = function () {
zoomOut(function () {
gotoAndPlay ("help");
});
};
btnScores.onRelease = function () {
_root.gotoAndPlay("scoreboard");
};
btnMore.onRelease = function () {
getURL ("http://www.freegamesforyourwebsite.com/click.php?gid=232&area=menu", "_blank");
};
Symbol 242 MovieClip Frame 2
function wipeOut(callBack) {
var _local1 = 0;
while (_local1 < buttonArray.length) {
var _local2 = buttonArray[_local1];
com.Fx.zoomIn(_local2, _local1 * 35, 0.5, _local2._x, _local2._y, 3000, _local2._y, 10);
_local1++;
}
com.Fx.zoomIn(txtSelect, 1, 0.75, txtSelect._x, txtSelect._y, 3000, txtSelect._y, 10, callBack);
}
com.Fx.zoomIn(txtSelect, 0, 0.5, -3000, txtSelect._y, txtSelect._x, txtSelect._y, 10);
var delay = 50;
var startDelay = 100;
var offsetX = 90;
var offsetY = 180;
var gapX = 70;
var gapY = 70;
var perRow = 5;
var buttonArray = [];
var col = 0;
var row = 0;
var filter = (new flash.filters.GlowFilter(16761856, 1, 4, 4, 4, 3, false, false));
trace("length" + _global.teams[0]);
var i = 0;
while (i < _global.teams.getNumTeams()) {
if ((i % perRow) == 0) {
offsetY = offsetY + gapY;
row = 0;
}
var logo = this.attachMovie("teamLogo", "logo" + i, i);
logo.id = i;
logo.logos.gotoAndStop(i + 1);
logo.nameText.text = _global.teams.getTeam(i).getName().toUpperCase();
logo.onRollOver = function () {
this.filters = [filter];
};
logo.onRollOut = function () {
this.filters = [];
};
logo.onRelease = function () {
_global.Me.setId(this.id);
trace("ID " + _global.Me.getId());
wipeOut(function () {
_parent.gotoAndPlay("layout");
});
};
com.Fx.zoomIn(logo, startDelay + (i * delay), 0.75, -3000, offsetY, offsetX + (gapX * row), offsetY, 10);
buttonArray.push(logo);
row++;
i++;
}
stop();
Symbol 242 MovieClip Frame 3
stop();
com.Fx.zoomIn(txtHow, 0, 0.75, -3000, txtHow._y, txtHow._x, txtHow._y, 10);
com.Fx.zoomIn(helpText, 100, 0.75, -3000, helpText._y, helpText._x, helpText._y, 10);
com.Fx.zoomIn(btnBack, 200, 0.75, -3000, btnBack._y, btnBack._x, btnBack._y, 10);
btnBack.onRelease = function () {
com.Fx.zoomIn(txtHow, 0, 0.75, txtHow._x, txtHow._y, 3000, txtHow._y, 10, function () {
gotoAndPlay ("menu");
});
com.Fx.zoomIn(helpText, 100, 0.75, helpText._x, helpText._y, 3000, helpText._y, 10);
com.Fx.zoomIn(btnBack, 200, 0.75, btnBack._x, btnBack._y, 3000, btnBack._y, 10);
};
Symbol 295 MovieClip Frame 1
function zoomOut(callBack) {
com.Fx.zoomIn(txt, 0, 0.5, txt._x, txt._y, 3000, txt._y, 10, callBack);
com.Fx.zoomIn(btn342, 0, 0.5, btn342._x, btn342._y, 3000, btn342._y, 20);
com.Fx.zoomIn(btn432, 50, 0.5, btn432._x, btn432._y, 3000, btn432._y, 20);
}
stop();
com.Fx.zoomIn(txt, 0, 0.75, -3000, txt._y, txt._x, txt._y, 10);
com.Fx.zoomIn(btn342, 100, 0.75, -3000, btn342._y, btn342._x, btn342._y, 20);
com.Fx.zoomIn(btn432, 200, 0.75, -3000, btn432._y, btn432._x, btn432._y, 20);
btn342.onRelease = function () {
_global.Me.setLayout(0);
zoomOut(function () {
_parent.gotoAndPlay("stage");
});
};
btn432.onRelease = function () {
_global.Me.setLayout(1);
zoomOut(function () {
_parent.gotoAndPlay("stage");
});
};
Symbol 311 MovieClip Frame 1
isMe.onEnterFrame = function () {
this._rotation = this._rotation + 5;
};
stop();
Symbol 315 MovieClip Frame 1
function zoomOut(callBack) {
com.Fx.zoomIn(txt, 0, 1, txt._x, txt._y, 3000, txt._y, 10, callBack);
com.Fx.zoomIn(btnPlay, 0, 0.5, btnPlay._x, btnPlay._y, 3000, btnPlay._y, 20);
var _local1 = 0;
while (_local1 < game_display.length) {
var _local2 = game_display[_local1];
com.Fx.zoomIn(_local2, _local1 * delay, 0.5, _local2._x, _local2._y, 3000, _local2._y, 20);
_local1++;
}
}
var tempArray = _global.teams.shuffleTeams(_global.Me.getRound());
var gameDepth = 0;
var offsetX = 120;
var offsetY = 220;
var startDelay = 1000;
var delay = 50;
var gap = 10;
var game_display = [];
var i = 0;
while (i < tempArray.length) {
gameDepth++;
var game_mc = this.attachMovie("roundTeam", "roundTeam" + gameDepth, gameDepth);
game_mc._x = offsetX;
game_mc._y = offsetY + (i * gap);
game_mc.left.nameText.text = tempArray[i].getName().toUpperCase();
game_mc.right.nameText.text = tempArray[i + 1].getName().toUpperCase();
game_mc.left.scoreText.text = "";
game_mc.right.scoreText.text = "";
if (_global.teams.getTeam(_global.Me.getId()).getName() == tempArray[i].getName()) {
game_mc.left.isMe._visible = true;
game_mc.right.isMe._visible = false;
var opponentTeam = tempArray[i + 1].getName();
_global.Opponent.setId(_global.teams.getTeamId(opponentTeam));
trace("left" + opponentTeam);
} else if (_global.teams.getTeam(_global.Me.getId()).getName() == tempArray[i + 1].getName()) {
game_mc.left.isMe._visible = false;
game_mc.right.isMe._visible = true;
var opponentTeam = tempArray[i].getName();
_global.Opponent.setId(_global.teams.getTeamId(opponentTeam));
trace("right" + opponentTeam);
} else {
game_mc.left.isMe._visible = false;
game_mc.right.isMe._visible = false;
}
com.Fx.zoomIn(game_mc, startDelay + (i * delay), 0.5, -3000, game_mc._y, game_mc._x, game_mc._y, 20);
game_display.push(game_mc);
i = i + 2;
}
txt.round.text = _global.Me.getRound() + 1;
com.Fx.zoomIn(txt, 0, 0.5, -3000, txt._y, txt._x, txt._y, 10);
com.Fx.zoomIn(btnPlay, 100, 0.5, -3000, btnPlay._y, btnPlay._x, btnPlay._y, 20);
btnPlay.onRelease = function () {
zoomOut(function () {
_parent.gotoAndPlay("start");
});
};
stop();
Symbol 346 MovieClip Frame 1
stop();
Symbol 347 MovieClip Frame 1
stop();
Symbol 347 MovieClip Frame 2
stop();
Symbol 358 MovieClip Frame 1
stop();
Symbol 359 MovieClip Frame 1
stop();
Symbol 359 MovieClip Frame 2
stop();
Symbol 362 MovieClip Frame 1
stop();
Symbol 362 MovieClip Frame 34
_parent.restart();
Symbol 367 MovieClip Frame 1
stop();
Symbol 367 MovieClip Frame 51
stop();
_parent.gotoAndPlay("results");
Symbol 371 MovieClip Frame 1
stop();
Symbol 371 MovieClip Frame 49
stop();
_parent.gotoAndPlay("results");
Symbol 376 MovieClip Frame 1
stop();
Symbol 376 MovieClip Frame 47
stop();
Symbol 390 Button
on (press) {
dragging = true;
startDrag (this, false, radius, radius, movieWIDTH - radius, movieHEIGHT - radius);
}
on (release, releaseOutside) {
dragging = false;
stopDrag();
}
Symbol 435 MovieClip Frame 1
btnRestart.onRelease = function () {
trace(_parent._parent);
_parent._parent.gotoAndPlay("instructions");
};
btnSubmit.onRelease = function () {
var _local3 = new LoadVars();
_local3.onLoad = function () {
getURL ("http://www.freeonlinegames.com/scoreboard.php?", "_blank");
};
_local3.score = _parent.totalScore;
_local3.score2 = _root.earl223(String(_parent.totalScore));
_local3.gamer = _root.gameID;
_local3.id = random(9999999);
_local3.toString();
_local3.sendAndLoad("http://www0.freeonlinegames.com/scoreboard/score_c.php", _local3, "POST");
};
btnplaymore.onRelease = function () {
getURL ("http://www.freegamesforyourwebsite.com/click.php?gid=232&area=gameover", "_blank");
};
stop();
Symbol 436 MovieClip Frame 1
function showResults() {
var _local6 = 0;
while (_local6 < tempArray.length) {
var _local7 = com.Util.rand(4);
var _local4 = com.Util.rand(scoreMax + _local7) + _local7;
var _local5 = com.Util.rand(scoreMax + _local7) + _local7;
if (_global.teams.getTeam(_global.Me.getId()).getName() == tempArray[_local6].getName()) {
_local4 = _global.Me.getScore();
_local5 = _global.Opponent.getScore();
if (_local4 > _local5) {
tempArray[_local6].setDiff(100);
tempArray[_local6 + 1].setDiff(0);
} else {
tempArray[_local6].setDiff(_local4 - _local5);
tempArray[_local6 + 1].setDiff(_local5 - _local4);
}
_global.Me.setDifference(_local4 - _local5);
} else if (_global.teams.getTeam(_global.Me.getId()).getName() == tempArray[_local6 + 1].getName()) {
_local4 = _global.Opponent.getScore();
_local5 = _global.Me.getScore();
if (_local4 < _local5) {
tempArray[_local6].setDiff(0);
tempArray[_local6 + 1].setDiff(100);
} else {
tempArray[_local6].setDiff(_local4 - _local5);
tempArray[_local6 + 1].setDiff(_local5 - _local4);
}
_global.Me.setDifference(_local5 - _local4);
} else {
if (_local4 == _local5) {
_local4++;
}
tempArray[_local6].setDiff(_local4 - _local5);
tempArray[_local6 + 1].setDiff(_local5 - _local4);
}
tempArray[_local6].setScore(_local4);
tempArray[_local6 + 1].setScore(_local5);
if (_local4 > _local5) {
nextRoundArray.push(tempArray[_local6]);
} else {
nextRoundArray.push(tempArray[_local6 + 1]);
}
scoresArray.push(tempArray[_local6]);
scoresArray.push(tempArray[_local6 + 1]);
_local6 = _local6 + 2;
}
nextRoundArray.sort(_global.teams.order);
nextRoundArray = nextRoundArray.slice(0, _global.teams.getTeamsInRound(_global.Me.getRound()));
_local6 = 0;
while (_local6 < nextRoundArray.length) {
trace((((nextRoundArray[_local6].getName() + " : ") + nextRoundArray[_local6].getDiff()) + " score: ") + nextRoundArray[_local6].getScore());
_local6++;
}
_local6 = 0;
while (_local6 < scoresArray.length) {
gameDepth++;
var _local3 = this.attachMovie("roundTeam", "roundTeam" + gameDepth, gameDepth);
_local3._x = offsetX;
_local3._y = offsetY + (_local6 * gap);
_local3.left.nameText.text = scoresArray[_local6].getName().toUpperCase();
_local3.right.nameText.text = scoresArray[_local6 + 1].getName().toUpperCase();
_local3.left.scoreText.text = scoresArray[_local6].getScore();
_local3.right.scoreText.text = scoresArray[_local6 + 1].getScore();
if (_global.teams.getTeam(_global.Me.getId()).getName() == tempArray[_local6].getName()) {
_local3.left.isMe._visible = true;
_local3.right.isMe._visible = false;
} else if (_global.teams.getTeam(_global.Me.getId()).getName() == tempArray[_local6 + 1].getName()) {
_local3.left.isMe._visible = false;
_local3.right.isMe._visible = true;
} else {
_local3.left.isMe._visible = false;
_local3.right.isMe._visible = false;
}
com.Fx.zoomIn(_local3, startDelay + (_local6 * delay), 0.5, -3000, _local3._y, _local3._x, _local3._y, 20);
game_display.push(_local3);
_local6 = _local6 + 2;
}
}
function zoomOut(callBack) {
com.Fx.zoomIn(txt, 0, 1, txt._x, txt._y, 3000, txt._y, 10, callBack);
com.Fx.zoomIn(btnPlay, 0, 0.5, btnPlay._x, btnPlay._y, 3000, btnPlay._y, 20);
var _local1 = 0;
while (_local1 < game_display.length) {
var _local2 = game_display[_local1];
com.Fx.zoomIn(_local2, _local1 * delay, 0.5, _local2._x, _local2._y, 3000, _local2._y, 20);
_local1++;
}
}
function setScores() {
var _local4 = _global.Me.getGoals();
gameOver.textGoals.text = _local4;
totalScore = _local4 * 100;
var _local3 = _global.Me.getDifference() * 150;
if (_global.Me.getRound() == 3) {
_local3 = _local3 + 2000;
gameOver.textBonus.text = _local3;
totalScore = totalScore + _local3;
} else {
totalScore = totalScore + _local3;
gameOver.textBonus.text = _local3;
}
gameOver.textTotal.text = totalScore;
_root.x1025 = totalScore;
}
var totalScore = 0;
var iWon = (_global.Me.getScore() > _global.Opponent.getScore());
var gameDepth = 0;
var offsetX = 110;
var offsetY = 220;
var startDelay = 1000;
var delay = 50;
var gap = 10;
var game_display = [];
var scoreMax = Math.abs((_global.Me.getScore() - _global.Opponent.getScore()) - 1);
var scoresArray = [];
var nextRoundArray = [];
var tempArray = _global.teams.getTeams(_global.Me.getRound());
gameOver._visible = false;
if (!iWon) {
_global.Me.setGoals();
setScores();
gameOver._visible = true;
txt._visible = false;
btnPlay._visible = false;
if (totalScore == 0) {
gameOver.btnSubmit._visible = false;
} else {
gameOver.btnSubmit._visible = true;
}
gameOver.titleText.text = "GAME OVER!";
com.Fx.zoomIn(gameOver, 0, 1, 3000, gameOver._y, gameOver._x, gameOver._y, 10, callBack);
} else if (_global.Me.getRound() < 3) {
txt._visible = true;
btnPlay._visible = true;
_global.Me.setGoals();
txt.round.text = _global.Me.getRound() + 1;
com.Fx.zoomIn(txt, 0, 0.5, -3000, txt._y, txt._x, txt._y, 10);
com.Fx.zoomIn(btnPlay, 100, 0.5, -3000, btnPlay._y, btnPlay._x, btnPlay._y, 20);
trace(_global.Me.getRound());
showResults();
} else {
setScores();
if (totalScore == 0) {
gameOver.btnSubmit._visible = false;
} else {
gameOver.btnSubmit._visible = true;
}
gameOver._visible = true;
txt._visible = false;
btnPlay._visible = false;
gameOver.titleText.text = "WELL DONE!";
com.Fx.zoomIn(gameOver, 0, 0.5, 3000, gameOver._y, gameOver._x, gameOver._y, 10, callBack);
}
btnPlay.onRelease = function () {
_global.Me.setRound();
_global.teams.setTeams(_global.Me.getRound(), nextRoundArray);
zoomOut(function () {
_parent.gotoAndPlay("layout");
});
};
stop();
Symbol 439 MovieClip Frame 8
stop();
Symbol 440 MovieClip Frame 26
stop();
Symbol 445 MovieClip Frame 1
txt_info = "YOUR SCORE " + _root.x1025;
Symbol 445 MovieClip Frame 26
function is_Empty(string) {
if (((string == "") || (string == undefined)) || (string == null)) {
return(true);
}
return(false);
}
function makeCountries() {
i = 0;
while (i < countries.length) {
countriesArray.push({data:countries[i][0], label:countries[i][1]});
i++;
}
form.my_cb.setDataProvider(countriesArray);
form.my_cb.select(0);
form.my_cb.onSelect = function (index) {
if (index != 0) {
country = countriesArray[index].data;
}
};
}
function is_null(string) {
if (((string == null) || (string == undefined)) || (string == "")) {
return("null");
}
return(string);
}
function submit(user, email) {
trace("submitting");
trace(_root.x1025);
score = _root.x1025;
score2 = is_null(_root.x1026);
img = country;
user = user.replace("|", "");
user = user.replace(",", "");
rc4_text = email + "|";
rc4_text = rc4_text + (user + "|");
rc4_text = rc4_text + (((score + "|") + score.toString(10).checksum()) + "|");
rc4_text = rc4_text + (((score2 + "|") + score2.toString(10).checksum()) + "|");
rc4_text = rc4_text + (((img + "|") + img.toString(10).checksum()) + "|");
rc4_text = rc4_text + email.checksum();
rc4_key = "topgun";
_root.rc4_hash = com.meychi.ascrypt.RC4.encrypt(rc4_text, rc4_key);
local_data.data.user_name = user;
local_data.data.user_email = email;
local_data.flush();
}
String.prototype.replace = function (pattern, replacement) {
return(this.split(pattern).join(replacement));
};
String.prototype.isEmail = function () {
var _local6 = "Invalid email address";
var _local3 = this;
var _local2 = new Array("@", ".");
var _local4 = new Array();
i = 0;
while (i < 200) {
if (((((((i >= 33) && (i <= 45)) || (i == 47)) || ((i >= 58) && (i <= 63))) || ((i > 91) && (i <= 96))) || ((i >= 123) && (i <= 126))) || ((i >= 161) && (i <= 199))) {
var _local5 = String.fromCharCode(i);
_local4.push(_local5);
}
i++;
}
i = 0;
while (i < _local4.length) {
if (_local3.indexOf(_local4[i]) != -1) {
var _local5 = _local4[i];
return(false);
}
i++;
}
i = 0;
while (i < _local2.length) {
if (_local3.indexOf(_local2[i]) != -1) {
index = _local3.indexOf(_local2[i]);
if ((_local3.indexOf(_local2[i], index + 1) != -1) && (_local2[i] != ".")) {
return(false);
}
} else {
return(false);
}
i++;
}
return(true);
};
String.prototype.checksum = function () {
sum = 0;
i = 0;
while (i < this.length) {
sum = sum + this.charCodeAt(i);
i++;
}
return(sum);
};
_global.countries = [[null, "Select Your Country"], ["AF", "Afghanistan"], ["AL", "Albania"], ["DZ", "Algeria"], ["AS", "American Samoa"], ["AG", "Antigua Barbuda"], ["AR", "Argentina"], ["AU", "Australia"], ["AT", "Austria"], ["AZ", "Azerbaijan"], ["BH", "Bahrain"], ["BD", "Bangladesh"], ["BB", "Barbados"], ["BY", "Belarus"], ["BE", "Belgium"], ["BZ", "Belize"], ["BJ", "Benin"], ["BM", "Bermuda"], ["BT", "Bhutan"], ["BO", "Bolivia"], ["BA", "Bosnia Herzegovina"], ["BW", "Botswana"], ["BR", "Brazil"], ["BN", "Brunei"], ["BG", "Bulgaria"], ["BF", "Burkina Faso"], ["BI", "Burundi"], ["KH", "Cambodia"], ["CM", "Cameroon"], ["CA", "Canada"], ["CV", "Cape Verde"], ["KY", "Cayman Islands"], ["CF", "Cent African Rep"], ["TD", "Chad"], ["JI", "Channel Islands"], ["CL", "Chile"], ["CN", "China"], ["CO", "Columbia"], ["KM", "Comoros"], ["CG", "Congo"], ["CK", "Cook Islands"], ["CR", "Costa Rica"], ["HR", "Croatia"], ["CU", "Cuba"], ["CY", "Cyprus"], ["CZ", "Czech Republic"], ["DK", "Denmark"], ["DM", "Dominica"], ["DO", "Dominican Republic"], ["TL", "East Timor"], ["EC", "Ecuador"], ["EG", "Egypt"], ["SV", "El Salvador"], ["GQ", "Equatorial Guinea"], ["ER", "Eritrea"], ["EE", "Estonia"], ["ET", "Ethiopia"], ["FJ", "Fiji"], ["FI", "Finland"], ["FR", "France"], ["GF", "French Guiana"], ["PF", "French Polynesia"], ["GM", "Gambia"], ["GE", "Georgia"], ["DE", "Germany"], ["GH", "Ghana"], ["GI", "Gibraltar"], ["GR", "Greece"], ["GL", "Greenland"], ["GD", "Grenada"], ["GP", "Guadeloupe"], ["GU", "Guam"], ["GT", "Guatemala"], ["GW", "Guinea Bissau"], ["GY", "Guyana"], ["HT", "Haiti"], ["HW", "Hawaii"], ["HN", "Honduras"], ["HK", "Hong Kong"], ["HU", "Hungary"], ["IS", "Iceland"], ["IN", "India"], ["ID", "Indonesia"], ["IR", "Iran"], ["IQ", "Iraq"], ["IE", "Ireland"], ["IM", "Isle of Man"], ["IL", "Israel"], ["IT", "Italy"], ["CI", "Ivory Coast"], ["JM", "Jamaica"], ["JP", "Japan"], ["JO", "Jordan"], ["KZ", "Kazakhstan"], ["KE", "Kenya"], ["KS", "Korea South"], ["KW", "Kuwait"], ["KG", "Kyrgyzstan"], ["LA", "Laos"], ["LV", "Latvia"], ["LB", "Lebanon"], ["LS", "Lesotho"], ["LR", "Liberia"], ["LY", "Libya"], ["LI", "Liechtenstein"], ["LT", "Lithuania"], ["LU", "Luxembourg"], ["MO", "Macau"], ["MK", "Macedonia"], ["MG", "Madagascar"], ["MW", "Malawi"], ["MY", "Malaysia"], ["MV", "Maldives"], ["ML", "Mali"], ["MT", "Malta"], ["MQ", "Martinique"], ["MU", "Mauritius"], ["YT", "Mayotte"], ["MX", "Mexico"], ["MD", "Moldova"], ["MC", "Monaco"], ["MN", "Mongolia"], ["MS", "Montserrat"], ["MA", "Morocco"], ["MZ", "Mozambique"], ["MM", "Myanmar"], ["NA", "Namibia"], ["NR", "Nauru"], ["NP", "Nepal"], ["NL", "Netherlands"], ["NC", "New Caledonia"], ["NZ", "New Zealand"], ["NI", "Nicaragua"], ["NE", "Niger"], ["NG", "Nigeria"], ["NO", "Norway"], ["OM", "Oman"], ["PK", "Pakistan"], ["PA", "Panama"], ["PG", "Papua New Guinea"], ["PY", "Paraguay"], ["PE", "Peru"], ["PH", "Philippines"], ["PN", "Pitcairn Island"], ["PL", "Poland"], ["PT", "Portugal"], ["PR", "Puerto Rico"], ["QA", "Qatar"], ["RE", "Reunion"], ["RO", "Romania"], ["RU", "Russia"], ["RW", "Rwanda"], ["SM", "San Marino"], ["ST", "Sao Tome Principe"], ["SA", "Saudi Arabia"], ["SN", "Senegal"], ["CS", "Serbia Montenegro"], ["SL", "Sierra Leone"], ["SG", "Singapore"], ["SK", "Slovakia"], ["SI", "Slovenia"], ["SB", "Solomon Islands"], ["SO", "Somalia"], ["ZA", "South Africa"], ["ES", "Spain"], ["LK", "Sri Lanka"], ["SH", "St Helena"], ["KN", "St Kitts-Nevis"], ["LC", "St Lucia"], ["MB", "St Maarten"], ["PM", "St Pierre Miquelon"], ["VC", "St Vincent Grenadines"], ["SD", "Sudan"], ["SR", "Suriname"], ["SZ", "Swaziland"], ["SE", "Sweden"], ["CH", "Switzerland"], ["SY", "Syria"], ["TA", "Tahiti"], ["TW", "Taiwan"], ["TJ", "Tajikistan"], ["TZ", "Tanzania"], ["TH", "Thailand"], ["TG", "Togo"], ["TT", "Trinidad Tobago"], ["TN", "Tunisia"], ["TR", "Turkey"], ["TM", "Turkmenistan"], ["UA", "Ukraine"], ["AE", "UAE"], ["GB", "United Kingdom"], ["US", "USA"], ["UY", "Uruguay"], ["UZ", "Uzbekistan"], ["VU", "Vanuatu"], ["VE", "Venezuela"], ["VN", "Vietnam"], ["VI", "Virgin Islands"], ["EH", "Western Sahara"], ["ZM", "Zambia"], ["ZW", "Zimbabwe"]];
var countriesArray = [];
var country = null;
var defaultTextName = "Enter your name";
var defaultTextEmail = "Enter email (optional)";
form.txtName.text = defaultTextName;
form.txtEmail.text = defaultTextEmail;
trace(form.txtName);
form.txtName.onSetFocus = function () {
if (this.text == defaultTextName) {
this.text = "";
}
};
form.txtEmail.onSetFocus = function () {
if (this.text == defaultTextEmail) {
this.text = "";
}
};
makeCountries();
local_data = SharedObject.getLocal("user_data");
stored_user_name = local_data.data.user_name;
stored_user_email = local_data.data.user_email;
if (!is_Empty(stored_user_name)) {
form.txtName.text = stored_user_name;
}
if (!is_Empty(stored_user_email)) {
form.txtEmail.text = stored_user_email;
}
txt_info = "YOUR SCORE " + _root.x1025;
form.btnSubmit.onRelease = function () {
trace("validating");
trace(form.txtName.text);
if ((form.txtName.text.length > 0) && (form.txtName.text != defaultTextName)) {
if ((form.txtEmail.text.isEmail() || (form.txtEmail.text == defaultTextEmail)) || (form.txtEmail.text.length == 0)) {
if (form.txtEmail.text == defaultTextEmail) {
submitMail = "";
} else {
submitMail = form.txtEmail.text;
}
if (country != null) {
submit(form.txtName.text, submitMail);
gotoAndPlay ("submitdata");
} else {
form.txtWarning.text = "Please select a country";
}
} else {
form.txtWarning.text = "Please enter a valid email";
}
} else {
form.txtWarning.text = "Please enter your name";
}
};
stop();
Symbol 445 MovieClip Frame 27
this.createEmptyMovieClip("xj22", 1);
xj22.xj25 = _root.rc4_hash;
xj22.loadVariables("http://www.markfennell.com/flash/premiere/submit.php", "POST");
xj22.onEnterFrame = function () {
if (this.Loaded == "done") {
if (this.msg != undefined) {
txt_info = this.msg.toUpperCase();
}
accessing._visible = false;
delete this.onEnterFrame;
}
};
stop();
Symbol 459 Button
on (press) {
sboard.dir = "up";
}
on (release) {
sboard.dir = "stop";
}
Symbol 460 Button
on (press) {
sboard.dir = "down";
}
on (release) {
sboard.dir = "stop";
}
Symbol 467 MovieClip Frame 1
stop();
Symbol 467 MovieClip Frame 2
stop();
Symbol 477 MovieClip [TMP6pbk6uzm9i] Frame 1
var arrScore = new Array();
mcScoreboard.sboard.dir = "stop";
mcScoreboard.sboard.mcScoreHolder.mcScore._visible = false;
mcLabel._visible = false;
var main = this;
xmlPlayer = new XML();
xmlPlayer.ignoreWhite = true;
xmlPlayer.onLoad = function (success) {
if (success) {
myPlayer = xmlPlayer.firstChild.childNodes;
ctr2 = 0;
while (ctr2 < myPlayer.length) {
thisPlayer = main.mcScoreboard.sboard.mcScoreHolder.mcScore.duplicateMovieClip("mcScore" + ctr2, ctr2);
thisPlayer._y = ctr2 * thisPlayer._height;
thisPlayer._visible = true;
if ((ctr2 % 2) > 0) {
thisPlayer.gotoAndStop(2);
}
thisPlayer.txtNumber.text = (ctr2 + 1) + ")";
thisPlayer.txtNickname.text = myPlayer[ctr2].attributes.player;
thisPlayer.txtScore.text = myPlayer[ctr2].attributes.score;
ctr2++;
}
main.mcScoreboard.mcLoading._visible = false;
main.mcScoreboard.sboard.mcScoreHolder.item = myPlayer.length;
main.mcScoreboard.sboard.mcScoreHolder.speedy = 0;
main.mcScoreboard.sboard.mcScoreHolder.desty = 0;
main.mcScoreboard.sboard.mcScoreHolder.onEnterFrame = function () {
if ((this.desty < 0) && (this._parent.dir == "up")) {
this.desty = this.desty + 10;
if (this.desty > 0) {
this.desty = 0;
}
}
if ((this.desty > (this._parent.mcBlock._height - (this.mcScore._height * this.item))) && (this._parent.dir == "down")) {
this.desty = this.desty - 10;
if (this.desty < (this._parent.mcBlock._height - (this.mcScore._height * this.item))) {
this.desty = this._parent.mcBlock._height - (this.mcScore._height * this.item);
}
}
this.speedy = (this.desty - this._y) + (this.speedy * 0.4);
this._y = this._y + this.speedy;
};
}
};
xmlPlayer.load(((("http://www.freeonlinegames.com/scoreboard/getTopPlayer.php?id=" + gameID) + "&rand=") + random(999999)) + "&filt=1");