Frame 1
stop();
Stage.showMenu = false;
barbie_mc._x = -36;
_root.onEnterFrame = function () {
var $reg2 = _root;
var $reg1 = Math.round(($reg2.getBytesLoaded() / $reg2.getBytesTotal()) * 100);
loadingTxt.text = ("loading... " + $reg1.toString()) + "%";
lastStep = step;
step = Math.floor($reg1 / 10);
if (lastStep != step) {
barbie_mc._x = (step * 72) - 36;
barbie_mc.gotoAndPlay(1);
}
if ($reg1 == 100) {
delete $reg2.onEnterFrame;
gotoAndStop (3);
}
};
Frame 3
function initSounds() {
_root.soundOn = true;
_root.createEmptyMovieClip("soundHolder", 25000);
soundDepth = 0;
createSound("ffg_playmusic.mp3", "playMusic_snd");
createSound("ffg_trk6_Xloop.mp3", "playTrack_snd");
createSound("ffg_goal.wav", "goal_snd");
createSound("ffg_jumpingonhand.mp3", "jumpingonhand_snd");
createSound("ffg_booo.mp3", "booo_snd");
createSound("ffg_year.mp3", "year_snd");
createSound("ffg_collective_yearh.mp3", "collective_yearh_snd");
createSound("ffg_rolling.mp3", "rolling_snd");
createSound("ffg_bonus.mp3", "bonus_snd");
createSound("ffg_footkick1.mp3", "footkick_snd");
createSound("BL_barbie_hit1.wav", "barbie_hit1_snd");
createSound("BL_barbie_hit2.wav", "barbie_hit2_snd");
createSound("BL_barbie_hit3.wav", "barbie_hit3_snd");
playMusic_snd.setVolume(80);
playTrack_snd.setVolume(100);
goal_snd.setVolume(100);
jumpingonhand_snd.setVolume(100);
booo_snd.setVolume(100);
year_snd.setVolume(100);
collective_yearh_snd.setVolume(70);
rolling_snd.setVolume(100);
bonus_snd.setVolume(100);
footkick_snd.setVolume(100);
barbie_hit1_snd.setVolume(60);
barbie_hit2_snd.setVolume(60);
barbie_hit3_snd.setVolume(60);
ooof_snd_arr = [barbie_hit1_snd, barbie_hit2_snd, barbie_hit3_snd];
}
function createSound(id, name) {
soundDepth++;
instName = ("sound" + soundDepth) + "_mc";
soundHolder.createEmptyMovieClip(instName, soundDepth);
var $reg1 = soundHolder[instName];
_root[name] = new Sound($reg1);
_root[name].attachSound(id);
}
function playSound(snd) {
if (soundOn) {
snd.start();
}
}
function playSoundOoof() {
if (soundOn) {
ooof_snd_arr[random(3)].start();
}
}
function playSoundDelay(snd, delay) {
if (soundOn) {
snd.start(delay);
}
}
function playSoundLoop(snd) {
if (soundOn) {
snd.start(0, 5000);
}
}
function playSoundVolume(snd, volume) {
if (soundOn) {
snd.setVolume(volume);
snd.start();
}
}
function stopSound(snd) {
snd.stop();
}
function fadeSound(snd) {
var $reg2 = _root;
soundFaderCounter++;
var str = ("fader" + soundFaderCounter);
var $reg3 = (100000 + soundFaderCounter);
$reg2.createEmptyMovieClip(str, $reg3);
$reg2[str].onEnterFrame = function () {
var $reg1 = snd.getVolume();
$reg1 = $reg1 - 5;
snd.setVolume($reg1);
if ($reg1 <= 0) {
delete _root[str].onEnterFrame;
snd.setVolume(100);
stopSound(snd);
}
};
}
function calculateVolume(velocity) {
var $reg1 = Math.floor((dist(0, 0, velocity.x, velocity.y) * 100) / maxSpeed);
if ($reg1 > 100) {
$reg1 = 100;
}
var $reg0 = $reg1;
return($reg0);
}
play();
initSounds();
Frame 318
stop();
Frame 446
nextFrame();
Frame 447
function dist(x1, y1, x2, y2) {
return(Math.sqrt(((x2 - x1) * (x2 - x1)) + ((y2 - y1) * (y2 - y1))));
}
function squareDist(x1, y1, x2, y2) {
return(((x2 - x1) * (x2 - x1)) + ((y2 - y1) * (y2 - y1)));
}
function normalizeVect(v) {
var $reg1 = v;
var $reg3 = ($reg1.x / $reg1.norm);
var $reg2 = ($reg1.y / $reg1.norm);
var $reg0 = new tVector($reg3, $reg2);
return($reg0);
}
function normalizeVector(v) {
var $reg2 = v;
var $reg1 = dist(0, 0, $reg2.x, $reg2.y);
if ($reg1 != 0) {
$reg2.x = $reg2.x / $reg1;
$reg2.y = $reg2.y / $reg1;
$reg2.z = $reg2.z / $reg1;
}
}
function DotProduct(v1, v2) {
var $reg1 = v2;
var $reg2 = v1;
var $reg0 = ((($reg2.x * $reg1.x) + ($reg2.y * $reg1.y)) + ($reg2.z * $reg1.z));
return($reg0);
}
function ScaleVector(v, scale) {
var $reg2 = v;
var $reg3 = scale;
var $reg1 = new tVector();
$reg1.x = $reg2.x * $reg3;
$reg1.y = $reg2.y * $reg3;
$reg1.z = $reg2.z * $reg3;
var $reg0 = $reg1;
return($reg0);
}
function VectorSum(v1, v2) {
var $reg2 = v2;
var $reg3 = v1;
var $reg1 = new tVector();
$reg1.x = $reg3.x + $reg2.x;
$reg1.y = $reg3.y + $reg2.y;
$reg1.z = $reg3.z + $reg2.z;
var $reg0 = $reg1;
return($reg0);
}
function VectorDifference(v1, v2) {
var $reg2 = v2;
var $reg3 = v1;
var $reg1 = new tVector();
$reg1.x = $reg3.x - $reg2.x;
$reg1.y = $reg3.y - $reg2.y;
$reg1.z = $reg3.z - $reg2.z;
var $reg0 = $reg1;
return($reg0);
}
function sumVect(v1, v2, v3) {
var $reg2 = ((v1.x + v2.x) + v3.x);
var $reg1 = ((v1.y + v2.y) + v3.y);
var $reg0 = new tVector($reg2, $reg1);
return($reg0);
}
function randomVelocity(norm, angle, range) {
var $reg2 = (angle + ((Math.random() * range) - (range / 2)));
var $reg1 = ($reg2 * toRad);
var $reg0 = new Position(norm * Math.cos($reg1), norm * Math.sin($reg1));
return($reg0);
}
function pFactor(val) {
return(1 + (val / perspectiveFactor));
}
function offsetArr_noSameValue(arr, offset) {
var $reg1 = arr;
var $reg2 = offset;
for (var i in $reg1) {
for (var $reg3 in $reg1) {
if ($reg3 == i) {
continue;
}
if ($reg1[i] == $reg1[$reg3]) {
for (k in $reg1) {
if ($reg1[k] >= $reg1[$reg3]) {
$reg1[k] = $reg1[k] + $reg2;
}
}
}
}
}
}
function doBallCollision(b1, b2) {
var $reg1 = b1;
var $reg3 = b2;
var $reg2 = VectorDifference($reg1.pos, $reg3.pos);
var distBall = dist($reg1.pos.x, $reg1.pos.y, $reg3.pos.x, $reg3.pos.y);
if (distBall < (2 * $reg1.radius)) {
normalizeVector($reg2);
var relativeVelocity = DotProduct($reg2, $reg1.vel);
if (relativeVelocity < 0) {
var VdotN = DotProduct($reg2, $reg1.vel);
var Vn = ScaleVector($reg2, VdotN);
var Vn1 = ScaleVector(Vn, $reg1.physic.bounce);
var Vt = VectorDifference($reg1.vel, Vn1);
if ($reg1.mode != "hit") {
$reg1.vel = VectorDifference(Vt, Vn1);
}
if ($reg3.mode != "hit") {
$reg3.vel = VectorSum(Vn, $reg3.vel);
}
}
}
}
function doProjectileCollision(b, p, pStrength) {
var $reg1 = b;
var $reg3 = p;
var $reg2 = VectorDifference($reg1.pos, $reg3.pos);
var distBall = dist($reg1.pos.x, $reg1.pos.y, $reg3.pos.x, $reg3.pos.y);
if (distBall < (2 * $reg1.radius)) {
normalizeVector($reg2);
var relativeVelocity = DotProduct($reg2, $reg1.vel);
if (relativeVelocity < 0) {
$reg1.vel.x = $reg2.x * maxSpeed;
$reg1.vel.y = -maxSpeed;
$reg3.stopProjectile();
if (pStrength > 75) {
$reg1.changeMode("hit");
}
}
}
}
function doBallCollisionHit(b, p) {
var $reg1 = p;
var $reg2 = b;
var $reg3 = VectorDifference($reg2.pos, $reg1.pos);
var distBall = dist($reg2.pos.x, $reg2.pos.y, $reg1.pos.x, $reg1.pos.y);
if (distBall < (2 * $reg2.radius)) {
normalizeVector($reg3);
var relativeVelocity = DotProduct($reg3, $reg2.vel);
if (relativeVelocity < 0) {
$reg1.vel.x = $reg3.x * maxSpeed;
$reg1.vel.y = -maxSpeed;
$reg1.changeMode("hit");
}
}
}
function initAllObjects() {
initMain();
initBall();
initHand();
initProj();
initScore();
initWagon();
initGoal();
initQuality();
}
function initMain() {
_global.toRad = (Math.PI/180);
_global.toDeg = 57.2957795130823;
perspectiveFactor = 550;
myGame = new tGame();
}
function initBall() {
tBall.prototype.reset();
ball = [];
radius = 40;
maxSpeed = 20;
TOP = -435;
BOTTOM = 0;
LEFT = -220;
RIGHT = 220;
barbieCount = 0;
barbieMax = 15;
barbieNum = 0;
ampCounter = 0;
jumpFlag = false;
jumpCounter = 0;
}
function initHand() {
myHand.handMC.removeMovieClip();
var $reg1 = handHolder.attachMovie("hand", "hand_mc", 1);
myHand = new tHand($reg1, powerBar_mc);
}
function initWagon() {
myWagon = new tWagon();
}
function initGoal() {
var $reg1 = gameScreen_mc.attachMovie("goal", "goal_mc", 191);
myGoal = new tGoal($reg1);
$reg1._x = -3.5;
$reg1._y = -395;
introGoal_mc._visible = false;
}
function initProj() {
var $reg2 = new Position(0, 0);
var $reg3 = new Position(0, 0);
var $reg1 = gameScreen_mc.attachMovie("proj", "proj_mc", 6000);
myProj = new tBall($reg1, $reg2, $reg3, $reg1);
myProj.mode = "follow";
myProj.shadowMC = gameScreen_mc.attachMovie("shadow", "shadow_mc", 5999);
myProj.xStart = undefined;
myProj.physic.friction = 0.98;
}
function initScore() {
myScore = new tScore(scoreDisplay_mc);
}
function initQuality() {
myQuality = new tQuality(quality_mc);
}
function checkKeypressed() {
if ((!keyPressedFlag) && (Key.isDown(Key.getCode("p")))) {
keyPressedFlag = true;
keyPressed_pause();
}
if (keyPressedFlag && (!Key.isDown(Key.getCode("p")))) {
keyPressedFlag = false;
}
}
function checkBalls(i) {
var $reg2 = i;
var $reg1 = ball[$reg2];
for (j in Ball) {
if (j == $reg2) {
continue;
}
if (Ball[j].hitZone.hitTest($reg1.hitZone)) {
doBallCollision($reg1, ball[j]);
}
}
}
function checkBallsHit(i) {
var $reg2 = i;
var $reg1 = ball[$reg2];
for (j in Ball) {
if (j == $reg2) {
continue;
}
if (Ball[j].hitZone.hitTest($reg1.hitZone)) {
doBallCollisionHit($reg1, ball[j]);
}
}
}
function checkOut(i) {
var $reg1 = ball[i];
var $reg2 = (-450 + Math.abs($reg1.pos.x / 5));
if ($reg1.pos.y > BOTTOM) {
$reg1.changeMode("out");
}
if ($reg1.pos.y < $reg2) {
$reg1.pos.y = $reg2;
$reg1.vel.y = $reg1.vel.y * -1;
}
if (($reg1.pos.x < LEFT) || ($reg1.pos.x > RIGHT)) {
$reg1.vel.x = $reg1.vel.x * -1;
}
}
function checkInPitch(i) {
var $reg1 = ball[i];
if (Math.abs($reg1.pos.x) < 150) {
$reg1.changeMode("chase");
$reg1.physic.changeGravity(new Position(0, 0.1));
}
}
function checkPositionProj() {
if (myProj.pos.y < -450) {
myProj.stopProjectile();
}
}
function checkGoal() {
if (myProj.hitZone.hitTest(myGoal.hitZone) && (myProj.pos.y > -410)) {
myScore.addScore("goal", myProj.pos.x, myProj.pos.y - 20);
myProj.stopProjectile();
}
}
function checkSpeedProj() {
if (myProj.vel.y > -0.5) {
myProj.stopProjectile();
}
}
function checkCollisionProj(i) {
if (myHand.ballMoving) {
var $reg1 = ball[i];
if (myProj.mc.hitZone.hitTest($reg1.hitZone)) {
doProjectileCollision($reg1, myProj, myProj.strength);
}
}
}
function checkEndHitMode(i) {
var $reg1 = ball[i];
if ($reg1.mode == "hit") {
if ($reg1.vel.y > 0) {
$reg1.changeMode("knocked");
}
}
}
function checkGameOver(i) {
var $reg1 = ball[i];
if ($reg1.pos.y > -100) {
trace("find B out: " + $reg1.mc._name);
myGame.stopGame();
myHand.handMC.gotoAndStop("upturned");
myHand.ballMoving = true;
myProj.mc.removeMovieClip();
myProj.shadowMC.removeMovieClip();
var $reg3 = handHolder.attachMovie("barbieHIGH" + $reg1.type, "jumpingB", 2);
$reg3._x = $reg1.pos.x;
$reg3._y = $reg1.pos.y;
$reg1.mc.removeMovieClip();
$reg1.mc = $reg3;
doPerspective($reg1);
for (var $reg2 in ball) {
ball[$reg2].changeMode("gameOver");
ball[$reg2].physic.changeGravity(new Position(0, 0));
}
$reg1.changeMode("toHand");
var timeInt = setInterval(function () {
popupGameOver();
clearInterval(timeInt);
}, 8000);
fadeSound(playTrack_snd);
playTrack_sndFlag = false;
myQuality.setHigh();
}
}
function checkCollisionProjWagon() {
if (myProj.hitZone.hitTest(myWagon.hitZone)) {
myScore.addScore("bonus", myWagon.mc._x, myWagon.mc._y);
myProj.stopProjectile();
myWagon.changeMode("hit");
playSound(bonus_snd);
stopSound(rolling_snd);
for (var $reg2 in ball) {
var $reg1 = ball[$reg2];
$reg1.vel.x = 0;
$reg1.vel.y = -maxSpeed;
$reg1.changeMode("hit");
}
}
}
function startMainEngine() {
_root.onEnterFrame = function () {
if (myGame.gameStarted) {
myGame.doTiming();
generateBarbie();
myHand.move();
moveProj();
doPerspective(myProj);
checkPositionProj();
checkGoal();
checkSpeedProj();
myWagon.generate();
}
switch (myWagon.mode) {
case "disabled" :
break;
case "roll" :
myWagon.move();
checkCollisionProjWagon();
break;
case "hit" :
}
for (i in ball) {
ball[i].collision = 0;
checkCollisionProj(i);
remapBarbieDepth(i);
switch (ball[i].mode) {
case "toPitch" :
doPerspective(ball[i]);
moveBall(i, myGame.maxSpeed);
checkInPitch(i);
break;
case "chase" :
doPerspective(ball[i]);
chaseHand(i);
checkBalls(i);
moveBall(i, myGame.maxSpeed);
checkOut(i);
checkGameOver(i);
break;
case "hit" :
doPerspective(ball[i]);
ball[i].updateSquid();
checkBallsHit(i);
moveBall(i, 20);
checkEndHitMode(i);
checkOut(i);
break;
case "knocked" :
doPerspective(ball[i]);
checkBalls(i);
break;
case "dead" :
break;
case "out" :
removeBall(i);
break;
case "toHand" :
doPerspective(ball[i]);
var $reg2 = (myHand.pos.x - ball[i].pos.x);
var $reg1 = (-50 - ball[i].pos.y);
ball[i].pos.x = ball[i].pos.x + ($reg2 / 5);
ball[i].pos.y = ball[i].pos.y + ($reg1 / 5);
ball[i].mc._x = ball[i].pos.x;
ball[i].mc._y = ball[i].pos.y;
if ((Math.abs($reg2) + Math.abs($reg1)) < 2) {
ball[i].vel.x = 0;
ball[i].vel.y = 0;
ball[i].changeMode("jump");
jumpCounter = 0;
jumpYstart = ball[i].pos.y;
}
break;
case "jump" :
if (!jumpFlag) {
jumpFlag = true;
ball[i].mc.gotoAndStop("jump");
ball[i].mc.numLoop = 4;
playSound(jumpingonhand_snd);
playSound(booo_snd);
jumperBarbie = ball[i];
jumperBarbie.mc.callBack = function () {
jumperBarbie.mc.gotoAndStop("armRised");
playSound(year_snd);
for (var $reg1 in ball) {
if (ball[$reg1] == jumperBarbie) {
continue;
}
ball[$reg1].changeMode("stop");
}
jumperBarbie.mc.callBack = function () {
for (var $reg1 in ball) {
ball[$reg1].mc.gotoAndStop("armRised");
playSound(collective_yearh_snd);
}
};
};
}
jumpCounter++;
moveBall(i, 100);
break;
case "gameOver" :
if (ball[i].pos.y > -130) {
ball[i].vel.x = ball[i].vel.x * 0.9;
ball[i].vel.y = -2;
} else {
ball[i].vel.x = ball[i].vel.x * 0.9;
ball[i].vel.y = ball[i].vel.y * 0.9;
}
if ((Math.abs(ball[i].vel.x) + Math.abs(ball[i].vel.y)) < 0.1) {
ball[i].vel.x = 0;
ball[i].vel.y = 0;
ball[i].changeMode("stop");
}
moveBall(i, 5);
break;
case "stop" :
}
}
};
}
function stopMainEngine() {
delete _root.onEnterFrame;
}
function launchNewBall() {
barbieNum = ball.length;
if (barbieNum < barbieMax) {
oldEntrance = entrance;
do {
entrance = random(4);
} while (oldEntrance == entrance);
var $reg2 = [new Position(-204, -407), new Position(-137, -431), new Position(137, -431), new Position(204, -407)];
var $reg1 = [randomVelocity(2, 30, 0), randomVelocity(2, 30, 0), randomVelocity(2, 150, 0), randomVelocity(2, 150, 0)];
var ballStartGravity = [new Position(0.03, 0.01), new Position(0.03, 0.01), new Position(-0.03, 0.01), new Position(-0.03, 0.01)];
var $reg3 = $reg2[entrance];
var vel = $reg1[entrance];
ball.push((newBall = new tBall(gameScreen_mc, $reg3, vel)));
newBall.changeMode("toPitch");
newBall.physic.changeGravity(ballStartGravity[entrance]);
}
}
function resetAllBall() {
for (var $reg1 in ball) {
removeBall($reg1);
}
tBall.prototype.reset();
}
function removeBall(i) {
ball[i].mc.removeMovieClip();
ball.splice(i, 1);
}
function moveBall(i, maxSpeed) {
var $reg3 = maxSpeed;
var $reg1 = ball[i];
$reg1.oldPos.x = $reg1.pos.x;
$reg1.oldPos.y = $reg1.pos.y;
$reg1.vel.x = $reg1.vel.x + $reg1.physic.gravity.x;
$reg1.vel.y = $reg1.vel.y + $reg1.physic.gravity.y;
$reg1.vel.x = $reg1.vel.x * $reg1.physic.friction;
$reg1.vel.y = $reg1.vel.y * $reg1.physic.friction;
var $reg2 = new tVector($reg1.vel.x, $reg1.vel.y);
if ($reg2.norm > $reg3) {
$reg1.vel.x = $reg3 * Math.cos($reg2.phiRad);
$reg1.vel.y = $reg3 * Math.sin($reg2.phiRad);
}
var appVelX = ($reg1.vel.x * pFactor($reg1.pos.x));
var appVelY = ($reg1.vel.y * pFactor($reg1.pos.y));
$reg1.pos.x = $reg1.pos.x + appVelX;
$reg1.pos.y = $reg1.pos.y + appVelY;
$reg1.mc._x = $reg1.pos.x;
$reg1.mc._y = $reg1.pos.y;
if ($reg1.vel.y < 0) {
$reg1.vel.x = $reg1.vel.x * 0.8;
$reg1.vel.y = $reg1.vel.y * 0.8;
}
}
function refreshBallPos(pos, ball) {
var $reg1 = ball;
$reg1.pos.x = pos.x;
$reg1.mc._x = $reg1.pos.x;
$reg1.pos.y = pos.y;
$reg1.mc._y = $reg1.pos.y;
}
function stopBall(ball) {
var $reg1 = ball;
$reg1.vel.x = 0;
$reg1.vel.y = 0;
$reg1.physic.changeGravity(new Vector2d(0, 0));
}
function doPerspective(b) {
var $reg1 = b;
var $reg2 = (1 + ($reg1.pos.y / perspectiveFactor));
$reg1.mc._yscale = $reg2 * 100;
$reg1.mc._xscale = $reg1.mc._yscale;
$reg1.radius = radius * $reg2;
}
function chaseHand(i) {
var $reg1 = ball[i];
var $reg2 = (Math.abs(myHand.pos.x - $reg1.pos.x) / (myHand.pos.x - $reg1.pos.x));
$reg1.vel.x = $reg1.vel.x + ($reg2 / 20);
}
function remapBarbieDepth(i) {
var $reg1 = ball[i];
$reg1.mc.swapDepths((Math.floor($reg1.pos.y) + 500) * 2);
}
function remapAllBarbiesDepth() {
var $reg1 = [];
for (var $reg2 in ball) {
$reg1[$reg2] = ball[$reg2].mc.getDepth();
}
offsetArr_noSameValue($reg1, 2);
for ($reg2 in ball) {
ball[$reg2].mc.swapDepths($reg1[$reg2]);
}
}
function generateBarbie() {
if ((barbieCount % myGame.barbieFrequency) == 0) {
launchNewBall();
}
barbieCount++;
}
function moveProj() {
switch (myProj.mode) {
case "follow" :
myProj.pos.x = myHand.pos.x;
myProj.pos.y = -59;
ampBounceMax = 100;
ampCounter = 0;
ampBounce = 0;
break;
case "launch" :
calculateProjBounce();
myProj.vel.y = myProj.vel.y * myProj.physic.friction;
myProj.strength = myProj.strength * myProj.physic.friction;
var $reg1 = (myProj.vel.y * pFactor(myProj.pos.y));
myProj.vel.x = ((myProj.xStart * myProj.vel.y) / perspectiveFactor) * 0.6;
myProj.pos.x = myProj.pos.x + myProj.vel.x;
myProj.pos.y = myProj.pos.y + $reg1;
}
updatePositionProj();
}
function updatePositionProj() {
myProj.mc._x = myProj.pos.x;
myProj.mc._y = myProj.pos.y + ampBounce;
myProj.shadowMC._x = myProj.pos.x;
myProj.shadowMC._y = myProj.pos.y + (myProj.mc._height / 6);
gameScreen_mc.shadow_mc._yscale = myProj.mc._xscale;
myProj.shadowMC._xscale = gameScreen_mc.shadow_mc._yscale;
}
function calculateProjBounce() {
ampBounceMax = ampBounceMax * 0.95;
ampBounce = -Math.abs(Math.sin(ampCounter) * ampBounceMax);
ampCounter = ampCounter + 0.3;
}
function popupGameOver() {
myQuality.reset();
var $reg1 = _root.gameScreen_mc.attachMovie("popupGameOver", "popupGameOver_mc", 10000);
$reg1._x = 2;
$reg1._y = -281;
}
function doHeartBeat() {
setInterval(function () {
sc = 1;
loadVariables ("heartbeat.aspx", this, "POST");
}, 300000);
}
function popupReady() {
myQuality.reset();
var $reg1 = _root.attachMovie("popupReady", "popupReady_mc", 5);
$reg1._x = 324;
$reg1._y = 261;
if (!playMusic_sndFlag) {
playSound(playMusic_snd);
}
}
function keyPressed_reset() {
resetAllBall();
stopMainEngine();
initAllObjects();
}
function keyPressed_start() {
startMainEngine();
myGame.startGame();
fadeSound(playMusic_snd);
playMusic_sndFlag = false;
playSoundLoop(playTrack_snd);
playTrack_sndFlag = true;
}
function keyPressed_restart() {
resetAllBall();
stopMainEngine();
initAllObjects();
startMainEngine();
myGame.startGame();
}
function keyPressed_pause() {
trace("keypressed pause");
if (!pauseFlag) {
setPause();
} else {
setUnpause();
}
}
function setPause() {
pauseFlag = true;
stopMainEngine();
_root.onEnterFrame = function () {
checkKeyPressed();
};
ballMode = [];
for (var $reg1 in ball) {
ballMode[$reg1] = ball[$reg1].mode;
ball[$reg1].changeMode("stop");
}
}
function setUnpause() {
pauseFlag = false;
startMainEngine();
for (var $reg1 in ball) {
ball[$reg1].changeMode(ballMode[$reg1]);
}
}
_global.tPhysic = function () {
this.reset();
};
_global.tPhysic.prototype.reset = function (newVect) {
var $reg1 = this;
$reg1.gravity = new Vector2d(0, 0.01);
$reg1.bounce = 0.2;
$reg1.friction = 0.998;
};
_global.tPhysic.prototype.changeGravity = function (newVect) {
this.gravity = newVect;
};
_global.Position = function (x, y) {
this.x = x;
this.y = y;
};
_global.Position.prototype.toString = function () {
return((("x: " + this.x) + " , y: ") + this.y);
};
_global.Vector2d = function (x, y) {
this.x = x;
this.y = y;
};
_global.Vector2d.prototype.toString = function () {
return((("x: " + this.x) + " , y: ") + this.y);
};
_global.tVector = function (x, y) {
var $reg1 = this;
var $reg2 = y;
var $reg3 = x;
$reg1.x = $reg3;
$reg1.y = $reg2;
$reg1.norm = dist(0, 0, $reg3, $reg2);
$reg1.phiRad = Math.atan2($reg2, $reg3);
$reg1.phiDeg = $reg1.phiRad * toDeg;
};
_global.tVector.prototype.toString = function () {
var $reg2 = this;
var $reg1 = ((("x: " + $reg2.x) + " , y: ") + $reg2.y);
$reg1 = $reg1 + ("\nnorm: " + $reg2.norm);
$reg1 = $reg1 + ("\nphiRad: " + $reg2.phiRad);
$reg1 = $reg1 + ("\nphiDeg: " + $reg2.phiDeg);
var $reg0 = $reg1;
return($reg0);
};
_global.tBall = function (where, pos, vel, mc) {
var $reg1 = this;
$reg1.mc = mc || ($reg1.createBall(where));
$reg1.hitZone = $reg1.mc.hitZone;
$reg1.pos = pos;
$reg1.vel = vel;
$reg1.physic = new tPhysic();
$reg1.oldPos = new Position();
$reg1.mode = undefined;
$reg1.oldMode = undefined;
$reg1.collision = 0;
$reg1.radius = radius;
};
_global.tBall.prototype.nextDepth = function () {
_global.tBall.nextDepthCounter++;
return(_global.tBall.nextDepthCounter);
};
_global.tBall.prototype.createBall = function (where) {
var $reg1 = this;
_global.tBall.numBallInPlay++;
var $reg2 = $reg1.nextDepth();
$reg1.type = myGame.barbieType[random(myGame.barbieType.length)];
$reg1.numLife = $reg1.type;
var $reg3 = where.attachMovie(myQuality.barbieClip + $reg1.numLife, (str = "barbie" + $reg2), $reg2);
var $reg0 = $reg3;
return($reg0);
};
_global.tBall.prototype.changeHolder = function (where) {
var $reg1 = this;
if ($reg1.mc._parent != where) {
var $reg2 = $reg1.mc.getDepth();
var $reg3 = where.attachMovie("ball", (str = "ball" + $reg2), $reg2);
$reg1.mc.removeMovieClip();
$reg1.mc = $reg3;
$reg1.hitZone = $reg3.hitZone;
}
};
_global.tBall.prototype.decreaseNumLife = function () {
if (this.numLife > 0) {
this.numLife--;
}
};
_global.tBall.prototype.changeMode = function (mode) {
var $reg1 = this;
$reg1.oldMode = $reg1.mode;
$reg1.mode = mode;
if ($reg1.oldMode != $reg1.mode) {
switch (mode) {
case "chase" :
$reg1.mc.gotoAndStop("walk");
return;
case "hit" :
$reg1.mc.gotoAndStop("hit");
$reg1.decreaseNumLife();
myScore.addScore("hit", $reg1.mc._x, $reg1.mc._y - (140 * pFactor($reg1.mc._y)));
return;
case "knocked" :
$reg1.mc.gotoAndStop("knocked");
$reg1.startTimeOut();
return;
case "dead" :
$reg1.mc.gotoAndStop("dead");
var thisObj = $reg1;
$reg1.mc.callBack = function () {
thisObj.changeMode("out");
};
return;
case "gameOver" :
$reg1.mc.gotoAndStop("walk");
return;
case "stop" :
$reg1.mc.gotoAndStop("stop");
}
}
};
_global.tBall.prototype.startTimeOut = function () {
var $reg1 = this;
var thisObj = $reg1;
clearInterval($reg1.timeOutInt);
$reg1.timeOutInt = setInterval(function () {
if (!pauseFlag) {
if (thisObj.numLife == 0) {
switch (thisObj.type) {
case 1 :
myScore.addScore("dead1", thisObj.mc._x, thisObj.mc._y - (140 * pFactor(thisObj.mc._y)));
break;
case 2 :
myScore.addScore("dead2", thisObj.mc._x, thisObj.mc._y - (140 * pFactor(thisObj.mc._y)));
break;
case 3 :
myScore.addScore("dead3", thisObj.mc._x, thisObj.mc._y - (140 * pFactor(thisObj.mc._y)));
}
thisObj.changeMode("dead");
} else {
thisObj.changeMode("chase");
}
clearInterval(thisObj.timeOutInt);
}
}, 2000);
};
_global.tBall.prototype.teleport = function (pos, vel, mode) {
var $reg1 = this;
$reg1.pos = pos;
$reg1.vel = vel;
$reg1.changeMode(mode);
refreshBallPos(pos, $reg1);
};
_global.tBall.prototype.reset = function () {
_global.tBall.nextDepthCounter = 0;
};
_global.tBall.prototype.toString = function (mode) {
return(this.mc._name);
};
_global.tBall.prototype.stopProjectile = function () {
this.changeMode("follow");
myHand.ballMoving = false;
if (myHand.pressMouse) {
myHand.startPowerUp();
}
};
_global.tHand = function (handMC, powerMC) {
var $reg1 = this;
$reg1.handMC = handMC;
$reg1.powerMC = powerMC;
$reg1.pos = new Position();
$reg1.xMax = 200;
$reg1.xMin = -200;
$reg1.incSpeed = 5;
$reg1.decSpeed = -10;
$reg1.power = undefined;
$reg1.resetPowerBar();
$reg1.ballMoving = false;
$reg1.strength = undefined;
};
_global.tHand.prototype.move = function () {
var $reg1 = this;
$reg1.pos.x = gameScreen_mc._xmouse;
if ($reg1.pos.x > $reg1.xMax) {
$reg1.pos.x = $reg1.xMax;
}
if ($reg1.pos.x < $reg1.xMin) {
$reg1.pos.x = $reg1.xMin;
}
$reg1.handMC._x = $reg1.pos.x;
};
_global.tHand.prototype.resetPowerBar = function () {
this.powerMC.bar._yscale = 0;
this.power = 0;
};
_global.tHand.prototype.startPowerUp = function () {
var $reg1 = this;
$reg1.handMC.gotoAndStop("brace");
ths = $reg1;
$reg1.powerMC.onEnterFrame = function () {
ths.power = ths.power + ths.incSpeed;
if (ths.power > 100) {
ths.power = 100;
}
ths.powerMC.bar._yscale = ths.power;
};
};
_global.tHand.prototype.releasePower = function () {
var $reg1 = this;
$reg1.handMC.gotoAndPlay("fire");
ths = $reg1;
$reg1.powerMC.onEnterFrame = function () {
ths.power = ths.power + ths.decSpeed;
if (ths.power < 0) {
ths.power = 0;
}
ths.powerMC.bar._yscale = ths.power;
};
};
_global.tScore = function (mc) {
var $reg1 = this;
$reg1.mc = mc;
$reg1.txtField = mc.scoreDisplayTxt;
$reg1.mainScore = undefined;
$reg1.reset();
};
_global.tScore.prototype.reset = function () {
var $reg1 = this;
$reg1.mainScore = 0;
$reg1.bDepth = 3000;
$reg1.updateDisplay();
};
_global.tScore.prototype.updateDisplay = function () {
this.txtField.text = this.mainScore;
};
_global.tScore.prototype.addScore = function (type, x, y) {
var $reg1 = this;
var $reg2 = y;
var $reg3 = x;
switch (type) {
case "hit" :
$reg1.mainScore++;
$reg1.displayBonus("+1", $reg3, $reg2, 0);
playSoundOoof();
break;
case "dead1" :
$reg1.mainScore++;
$reg1.displayBonus("+1", $reg3, $reg2, 13500424);
break;
case "dead2" :
$reg1.mainScore = $reg1.mainScore + 2;
$reg1.displayBonus("+2", $reg3, $reg2, 13500424);
break;
case "dead3" :
$reg1.mainScore = $reg1.mainScore + 3;
$reg1.displayBonus("+3", $reg3, $reg2, 13500424);
break;
case "goal" :
$reg1.mainScore = $reg1.mainScore + 15;
$reg1.displayBonus("+15", $reg3, $reg2, 22990);
playSound(goal_snd);
break;
case "bonus" :
$reg1.mainScore = $reg1.mainScore + 50;
$reg1.displayBonus("+50", $reg3, $reg2, 22990);
}
$reg1.updateDisplay();
};
_global.tScore.prototype.displayBonusHIGH = function (dispStr, x, y, tColor) {
var $reg1 = ("b" + (this.bDepth++));
var mc = gameScreen_mc.attachMovie("bonus", $reg1, this.bDepth);
mc.disp_bonus.text = dispStr;
mc.disp_bonus.textColor = tColor;
mc._x = x;
mc._y = y;
var counter = 0;
mc.onEnterFrame = function () {
mc._x = x + (Math.sin((counter = counter + 0.15)) * 7);
mc._y = mc._y - 2;
mc._alpha = mc._alpha - 2;
if (mc._alpha < 5) {
delete mc.onEnterFrame;
mc.removeMovieClip();
}
};
};
_global.tScore.prototype.displayBonusLOW = function (dispStr, x, y, tColor) {
var $reg1 = ("b" + (this.bDepth++));
var mc = gameScreen_mc.attachMovie("bonus", $reg1, this.bDepth);
mc.disp_bonus.text = dispStr;
mc.disp_bonus.textColor = tColor;
mc._x = x;
mc._y = y;
mc.timeInt = setInterval(function () {
mc.removeMovieClip();
clearInterval(mc.timeInt);
}, 1600);
};
_global.tWagon = function () {
var $reg1 = this;
$reg1.mc = undefined;
$reg1.counter = 0;
$reg1.frequency = 900;
$reg1.xStart = 280;
$reg1.yMin = -410;
$reg1.yMax = -270;
$reg1.maxSpeed = 8;
$reg1.currSpeed = undefined;
$reg1.dir = undefined;
$reg1.changeMode("disabled");
};
_global.tWagon.prototype.changeMode = function (mode) {
var $reg1 = this;
$reg1.mode = mode;
switch (mode) {
case "disabled" :
return;
case "roll" :
switch ($reg1.dir) {
case -1 :
$reg1.mc.gotoAndStop("fromLeft");
break;
case 1 :
$reg1.mc.gotoAndStop("fromRight");
}
return;
case "hit" :
$reg1.mc.gotoAndStop("hit");
thisObj = $reg1;
$reg1.mc.callBack = function () {
thisObj.remove();
};
}
};
_global.tWagon.prototype.generate = function () {
var $reg1 = this;
$reg1.counter++;
if (($reg1.counter % $reg1.frequency) == 0) {
$reg1.createNewWagon();
playSound(rolling_snd);
}
};
_global.tWagon.prototype.findNewDepth = function (y) {
var $reg1 = ((Math.floor(y + 500) * 2)+1);
var $reg0 = $reg1;
return($reg0);
};
_global.tWagon.prototype.createNewWagon = function () {
var $reg1 = this;
$reg1.mc.removeMovieClip();
$reg1.enabled = true;
var dirArr = [-1, 1];
$reg1.dir = dirArr[random(2)];
var $reg2 = (random($reg1.yMax - $reg1.yMin) + $reg1.yMin);
var wDepth = $reg1.findNewDepth($reg2);
var str = ("w" + wDepth);
$reg1.mc = _root.gameScreen_mc.attachMovie("wagon", str, wDepth);
$reg1.hitZone = $reg1.mc.hitZone;
$reg1.mc._x = $reg1.xStart * $reg1.dir;
$reg1.mc._y = $reg2;
$reg1.changeMode("roll");
var $reg3 = (pFactor($reg2) * 1.82);
$reg1.currSpeed = $reg1.maxSpeed * $reg3;
$reg1.mc._yscale = $reg3 * 100;
$reg1.mc._xscale = $reg1.mc._yscale;
};
_global.tWagon.prototype.move = function () {
var $reg1 = this;
$reg1.mc._x = $reg1.mc._x + ((-$reg1.currSpeed) * $reg1.dir);
if (Math.abs($reg1.mc._x) > $reg1.xStart) {
$reg1.remove();
}
};
_global.tWagon.prototype.remove = function () {
this.mc.removeMovieClip();
this.changeMode("disabled");
};
_global.tGame = function () {
var $reg1 = this;
$reg1.gameStarted = false;
$reg1.startTime = undefined;
$reg1.stopTime = undefined;
$reg1.lastCurrTime = 0;
$reg1.currTime = 0;
$reg1.dificultyLevel = 0;
$reg1.maxSpeed = undefined;
$reg1.barbieFrequency = undefined;
$reg1.incDificulty();
};
_global.tGame.prototype.startGame = function () {
this.gameStarted = true;
this.startTime = getTimer();
};
_global.tGame.prototype.stopGame = function () {
this.gameStarted = false;
this.stopTime = getTimer();
};
_global.tGame.prototype.doTiming = function () {
var $reg1 = this;
$reg1.lastCurrTime = $reg1.currTime;
$reg1.currTime = Math.floor((getTimer() - $reg1.startTime) / 1000);
if ($reg1.lastCurrTime != $reg1.currTime) {
if (($reg1.currTime % 20) == 0) {
$reg1.incDificulty();
}
}
};
_global.tGame.prototype.incDificulty = function () {
var $reg1 = this;
$reg1.dificultyLevel++;
switch ($reg1.dificultyLevel) {
case 1 :
$reg1.maxSpeed = 2;
$reg1.barbieFrequency = 60;
$reg1.barbieType = [1];
return;
case 2 :
$reg1.maxSpeed = 3;
$reg1.barbieFrequency = 60;
$reg1.barbieType = [1];
return;
case 3 :
$reg1.maxSpeed = 3;
$reg1.barbieFrequency = 55;
$reg1.barbieType = [1, 2];
return;
case 4 :
$reg1.maxSpeed = 4;
$reg1.barbieFrequency = 55;
$reg1.barbieType = [1, 2];
return;
case 5 :
$reg1.maxSpeed = 4;
$reg1.barbieFrequency = 50;
$reg1.barbieType = [1, 2, 3];
return;
case 6 :
$reg1.maxSpeed = 5;
$reg1.barbieFrequency = 50;
$reg1.barbieType = [1, 2, 3];
return;
case 7 :
$reg1.dificultyLevel--;
}
};
_global.tGame.prototype.toString = function () {
var $reg1 = this;
trace("dificulty: " + $reg1.dificultyLevel);
trace("maxSpeed: " + $reg1.maxSpeed);
trace("barbieFrequency: " + $reg1.barbieFrequency);
};
_global.tGoal = function (mc) {
this.mc = mc;
this.hitZone = _root.gameScreen_mc.goalHitZone;
};
_global.tQuality = function (mc) {
var $reg1 = this;
$reg1.mc = mc;
$reg1.currQuality = undefined;
$reg1.barbieClip = undefined;
$reg1.reset();
};
_global.tQuality.prototype.reset = function () {
var $reg1 = this;
$reg1.setHigh();
$reg1.freezeQuality = "high";
$reg1.testDone = false;
};
_global.tQuality.prototype.setHigh = function () {
var $reg1 = this;
trace("setHigh");
$reg1.currQuality = "HIGH";
$reg1.barbieClip = "barbieHIGH";
$reg1.mc.gotoAndStop("high");
_quality = "HIGH";
_global.tScore.prototype.displayBonus = _global.tScore.prototype.displayBonusHIGH;
};
_global.tQuality.prototype.setMedium = function () {
var $reg1 = this;
trace("setMedium");
$reg1.currQuality = "LOW";
$reg1.barbieClip = "barbieHIGH";
$reg1.mc.gotoAndStop("medium");
_quality = "LOW";
_global.tScore.prototype.displayBonus = _global.tScore.prototype.displayBonusHIGH;
};
_global.tQuality.prototype.setLow = function () {
var $reg1 = this;
trace("setLow");
$reg1.currQuality = "LOW";
$reg1.barbieClip = "barbieLOW";
$reg1.mc.gotoAndStop("low");
_quality = "LOW";
_global.tScore.prototype.displayBonus = _global.tScore.prototype.displayBonusLOW;
};
this.onMouseDown = function () {
if (_ymouse > 30) {
myHand.pressMouse = true;
if ((!myHand.ballMoving) && (myGame.gameStarted)) {
myHand.startPowerUp();
}
}
};
this.onMouseUp = function () {
if (_ymouse > 30) {
myHand.pressMouse = false;
if (!myHand.ballMoving) {
playSound(footkick_snd);
myHand.ballMoving = true;
myHand.releasePower();
myProj.strength = myHand.power;
var $reg1 = ((-myHand.power) / 3);
myProj.vel = new Position(0, $reg1);
myProj.changeMode("launch");
myProj.xStart = myHand.pos.x;
}
}
};
popupReady();
doHeartBeat();
Symbol 123 MovieClip Frame 1
this._visible = false;
Symbol 161 MovieClip Frame 1
gotoAndPlay((random(300)+1));
Symbol 205 MovieClip Frame 17
loop++;
trace("EEEEEE " + _parent.numLoop);
if (loop < _parent.numLoop) {
gotoAndPlay (1);
} else {
_parent.callBack();
}
Symbol 206 MovieClip Frame 60
stop();
_parent.callBack();
Symbol 207 MovieClip Frame 9
stop();
Symbol 155 MovieClip Frame 13
_parent.callBack();
Symbol 208 MovieClip [barbieLOW2] Frame 1
stop();
Symbol 245 Button
on (release) {
_root.popupReady();
this.removeMovieClip();
}
Symbol 248 Button
on (release) {
sc = Number(disp_score) / 115;
_root.gameover = 1;
}
Symbol 254 Button
on (release) {
getURL ("http://www.graphico.co.uk/", "_blank");
}
Symbol 255 MovieClip [popupGameOver] Frame 1
disp_score = _root.myScore.mainScore.toString();
Symbol 182 MovieClip Frame 1
gotoAndPlay((random(300)+1));
Symbol 211 MovieClip Frame 17
loop++;
trace("EEEEEE " + _parent.numLoop);
if (loop < _parent.numLoop) {
gotoAndPlay (1);
} else {
_parent.callBack();
}
Symbol 212 MovieClip Frame 60
stop();
_parent.callBack();
Symbol 213 MovieClip Frame 9
stop();
Symbol 214 MovieClip [barbieLOW3] Frame 1
stop();
Symbol 273 MovieClip Frame 1
if (!firstTime) {
firstTime = true;
gotoAndPlay((random(30)+1));
}
Symbol 265 MovieClip Frame 1
this._visible = false;
Symbol 274 MovieClip Frame 1
if (!firstTime) {
firstTime = true;
gotoAndPlay((random(30)+1));
}
Symbol 275 MovieClip [wagon] Frame 1
stop();
Symbol 129 MovieClip Frame 1
gotoAndPlay((random(300)+1));
Symbol 199 MovieClip Frame 17
loop++;
trace("EEEEEE " + _parent.numLoop);
if (loop < _parent.numLoop) {
gotoAndPlay (1);
} else {
_parent.callBack();
}
Symbol 200 MovieClip Frame 60
stop();
_parent.callBack();
Symbol 201 MovieClip Frame 9
stop();
Symbol 202 MovieClip [barbieLOW1] Frame 1
stop();
Symbol 219 MovieClip [hand] Frame 1
stop();
Symbol 134 MovieClip Frame 17
loop++;
trace("EEEEEE " + _parent.numLoop);
if (loop < _parent.numLoop) {
gotoAndPlay (1);
} else {
trace("CALL callback");
_parent.callBack();
}
Symbol 141 MovieClip Frame 60
stop();
_parent.callBack();
Symbol 144 MovieClip Frame 9
stop();
Symbol 156 MovieClip [barbieHIGH1] Frame 1
stop();
Symbol 167 MovieClip Frame 17
loop++;
trace("EEEEEE " + _parent.numLoop);
if (loop < _parent.numLoop) {
gotoAndPlay (1);
} else {
_parent.callBack();
}
Symbol 172 MovieClip Frame 60
stop();
_parent.callBack();
Symbol 175 MovieClip Frame 9
stop();
Symbol 176 MovieClip [barbieHIGH2] Frame 1
stop();
Symbol 227 Button
on (release) {
play();
}
Symbol 229 Button
on (release) {
play();
}
Symbol 240 Button
on (release) {
play();
}
Symbol 241 MovieClip [popup_instructions] Frame 1
stop();
Symbol 241 MovieClip [popup_instructions] Frame 11
stop();
_root._quality = "BEST";
Symbol 264 MovieClip [popupReady] Frame 1
_root.keyPressed_reset();
Symbol 264 MovieClip [popupReady] Frame 108
_root.keyPressed_start();
this.removeMovieClip();
Symbol 185 MovieClip Frame 17
loop++;
trace("EEEEEE " + _parent.numLoop);
if (loop < _parent.numLoop) {
gotoAndPlay (1);
} else {
_parent.callBack();
}
Symbol 192 MovieClip Frame 60
stop();
_parent.callBack();
Symbol 195 MovieClip Frame 9
stop();
Symbol 196 MovieClip [barbieHIGH3] Frame 1
stop();
Symbol 120 MovieClip Frame 11
stop();
Symbol 113 MovieClip Frame 1
if (this.sessionstarted != 1) {
this.arcade = new LoadVars();
this.sessionvars = new LoadVars();
this.arcade.gamename = "fingerfooty";
this.arcade.sessdo = "sessionstart";
this.arcade.sendAndLoad("arcade.php", sessionvars, "POST");
if (this.sessionvars.sessiontype == 2) {
_root.is_a_challenge = 1;
} else {
_root.is_a_challenge = 0;
}
this.sessionstarted = 1;
}
if (_root.gameover == 1) {
if ((this.askpermission != 1) && (this.sessionvars.connStatus == 1)) {
this.prequestvars = new LoadVars();
this.pranswer = new LoadVars();
this.prequestvars.gametime = this.sessionvars.gametime;
this.prequestvars.fakekey = this.sessionvars.initbar;
_root.score = int(Number(_root.myScore.mainScore));
if (_root.score == 0) {
this.prequestvars.score = -1;
} else {
this.prequestvars.score = _root.score;
}
this.prequestvars.id = this.sessionvars.lastid;
this.prequestvars.sessdo = "permrequest";
this.prequestvars.note = (this.prequestvars.id * this.prequestvars.score) * this.prequestvars.fakekey;
this.prequestvars.sendAndLoad("./arcade.php", this.pranswer, "POST");
this.askpermission = 1;
}
if ((this.pranswer.validate == 1) && (this.finalsent != 1)) {
this.burnscore = new LoadVars();
this.burnscore.microone = this.pranswer.microone;
this.burnscore.gametime = this.prequestvars.gametime;
this.burnscore.id = this.prequestvars.id;
if (_root.score == 0) {
this.burnscore.noscore = 1;
}
this.burnscore.sessdo = "burn";
this.burnscore.send("./arcade.php", "_self", "POST");
this.finalsent = 1;
}
}
Symbol 283 Button
on (release) {
gotoAndStop ("title");
}
Symbol 309 Button
on (release) {
getURL ("http://www.pepsi.co.uk/football/", "_blank");
}
Symbol 313 Button
on (release) {
play();
}
Symbol 314 Button
on (release) {
if (!playBtnFlag) {
gotoAndPlay ("title");
playSound(playMusic_snd);
playMusic_sndFlag = true;
playBtnFlag = true;
}
}
Symbol 335 Button
on (release) {
getURL ("http://www.pepsi.co.uk/football/");
}
Symbol 339 Button
on (release) {
switch (_root.myQuality.freezeQuality) {
case "high" :
gotoAndStop ("medium");
_root.myQuality.setMedium();
break;
case "medium" :
break;
case "low" :
}
}
Symbol 341 Button
on (release) {
switch (_root.myQuality.freezeQuality) {
case "high" :
gotoAndStop ("low");
_root.myQuality.setLow();
break;
case "medium" :
gotoAndStop ("low");
_root.myQuality.setLow();
break;
case "low" :
}
}
Symbol 342 Button
on (release) {
switch (_root.myQuality.freezeQuality) {
case "high" :
gotoAndStop ("high");
_root.myQuality.setHigh();
break;
case "medium" :
gotoAndStop ("medium");
_root.myQuality.setMedium();
break;
case "low" :
}
}
Symbol 343 MovieClip Frame 1
stop();
Symbol 345 Button
on (release) {
nextFrame();
}
Symbol 347 Button
on (release) {
prevFrame();
}
Symbol 348 MovieClip Frame 1
stop();
_root.soundOn = true;
if (_root.playTrack_sndFlag) {
_root.playSound(_root.playTrack_snd);
}
Symbol 348 MovieClip Frame 2
_root.soundOn = false;
_root.stopSound(_root.playTrack_snd);
_root.stopSound(_root.playMusic_snd);
Symbol 351 Button
on (release) {
if (_root.myGame.gameStarted) {
play();
_root.setPause();
}
}
Symbol 352 MovieClip Frame 1
stop();
Symbol 352 MovieClip Frame 11
stop();
_root._quality = "BEST";
Symbol 352 MovieClip Frame 17
_root.setUnpause();
Symbol 355 MovieClip Frame 1
st = getTimer();
Symbol 355 MovieClip Frame 31
fps = 30;
disp_frameRate = Math.round((fps / (getTimer() - st)) * 10000) / 10;
if (!_root.myQuality.testDone) {
if (disp_frameRate < 27) {
_root.myQuality.setMedium();
_root.myQuality.freezeQuality = "medium";
}
if (disp_frameRate < 24) {
_root.myQuality.setLow();
_root.myQuality.freezeQuality = "low";
_root.myQuality.testDone = true;
}
}