Frame 1
function gotoFrame(fframe) {
_root.sscreen.play();
_root.gFrame = fframe;
}
Object.prototype.setCookie = function (c, n, v) {
var _local1 = SharedObject.getLocal(c);
_local1.data[n] = v;
_local1.flush();
};
Object.prototype.getCookie = function (c, n) {
var _local1 = SharedObject.getLocal(c);
return(_local1.data[n]);
};
var iPlayed = this.getCookie("database", "iPlayed");
trace("iPlayed " + iPlayed);
if (((iPlayed == null) || (iPlayed == undefined)) || (iPlayed == false)) {
var eyes = [0, 1, 9, 1, 23, 12, 13, 6, 6, 8, 15, 16, 25, 8, 30, 24, 26, 1, 16, 12, 13, 14, 39, 10, 41, 30, 9, 37, 32, 19, 18, 43, 43, 43, 7, 12, 29, 7, 27, 39, 13, 3, 9, 27, 25, 10, 39, 10, 39, 23, 11, 13, 43, 43, 43, 16, 25, 38, 1, 20, 44, 41, 42, 38, 17, 1, 27, 1, 9, 14, 2, 28, 16, 28, 6, 1, 1, 8, 1, 8, 26, 16, 37, 1, 16, 39, 30, 1, 10, 1, 10, 10, 1, 1, 30, 10, 6];
var mouth = [0, 11, 4, 2, 17, 17, 18, 17, 17, 17, 10, 10, 15, 16, 18, 20, 5, 2, 21, 9, 6, 7, 5, 10, 2, 7, 22, 13, 4, 21, 8, 18, 18, 21, 22, 2, 1, 18, 21, 7, 4, 21, 21, 20, 21, 21, 19, 23, 21, 22, 8, 1, 22, 16, 8, 4, 6, 7, 6, 16, 19, 9, 11, 7, 8, 6, 16, 4, 11, 18, 6, 15, 7, 16, 13, 1, 23, 22, 4, 13, 2, 2, 11, 1, 16, 11, 13, 4, 19, 18, 19, 8, 2, 19, 1, 2, 4];
var nose = [0, 9, 8, 9, 4, 7, 7, 1, 9, 9, 10, 10, 10, 8, 3, 10, 8, 4, 5, 9, 1, 1, 5, 2, 8, 2, 5, 2, 9, 1, 6, 7, 9, 9, 1, 1, 1, 8, 1, 1, 9, 9, 10, 9, 9, 9, 5, 4, 6, 10, 4, 10, 3, 1, 6, 3, 3, 10, 1, 4, 10, 2, 2, 1, 5, 7, 6, 1, 1, 10, 6, 5, 3, 10, 9, 9, 6, 4, 7, 6, 3, 10, 6, 8, 5, 5, 1, 10, 5, 9, 9, 1, 5, 1, 1, 5, 9];
var beard = [0, 48, 88, 1, 26, 24, 24, 32, 37, 34, 72, 72, 72, 51, 88, 39, 7, 12, 3, 20, 19, 19, 59, 92, 61, 70, 98, 93, 47, 39, 56, 45, 89, 69, 59, 12, 18, 76, 80, 39, 10, 11, 1, 11, 12, 7, 84, 100, 11, 8, 3, 41, 70, 33, 1, 89, 92, 28, 76, 42, 93, 61, 61, 56, 10, 15, 78, 1, 1, 6, 98, 48, 49, 99, 72, 21, 100, 52, 100, 39, 43, 1, 3, 12, 1, 98, 45, 1, 1, 1, 6, 1, 1, 1, 1, 1, 1];
var brows = [0, 41, 42, 19, 43, 44, 44, 38, 42, 41, 53, 55, 46, 42, 38, 44, 13, 5, 4, 10, 9, 11, 13, 9, 33, 8, 29, 8, 8, 38, 29, 10, 8, 11, 4, 2, 11, 49, 48, 8, 6, 9, 40, 34, 36, 38, 25, 44, 25, 42, 38, 43, 108, 9, 40, 9, 43, 36, 8, 44, 42, 2, 22, 22, 10, 37, 47, 36, 41, 42, 18, 11, 35, 17, 50, 11, 1, 43, 44, 38, 39, 42, 1, 9, 43, 52, 9, 8, 14, 3, 7, 8, 34, 7, 12, 41, 40];
var hair = [0, 49, 89, 2, 8, 56, 9, 75, 75, 75, 83, 67, 88, 63, 5, 110, 14, 31, 37, 35, 35, 36, 98, 33, 51, 87, 52, 26, 47, 24, 66, 94, 93, 70, 32, 32, 32, 78, 4, 38, 42, 29, 1, 40, 37, 31, 45, 54, 24, 27, 58, 15, 68, 3, 90, 90, 105, 22, 88, 14, 28, 59, 57, 54, 23, 34, 97, 109, 106, 23, 58, 50, 55, 11, 67, 37, 75, 9, 70, 95, 45, 30, 44, 26, 44, 73, 109, 23, 21, 23, 23, 10, 91, 33, 4, 95, 34];
var skinColor = [0, 1, 5, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 7, 1, 6, 3, 3, 3, 5, 6, 4, 2, 7, 3, 3, 1, 3, 7, 4, 5, 4, 3, 3, 5, 6, 5, 1, 2, 2, 6, 2, 1, 1, 3, 3, 3, 4, 6, 7, 4, 3, 6, 8, 4, 6, 5, 2, 2, 1, 1, 1, 1, 1, 4, 3, 4, 4, 5, 5, 3, 2, 3, 4, 7, 3, 5, 1, 2, 7, 3, 2, 2, 1, 1, 1, 2, 6, 3, 5, 5, 5, 3, 1, 1, 1, 1];
var shirtColor = [0, 29, 29, 29, 18, 18, 18, 29, 29, 29, 11, 11, 11, 26, 26, 26, 11, 11, 11, 10, 10, 10, 8, 8, 8, 4, 4, 4, 6, 6, 6, 15, 15, 15, 1, 1, 1, 16, 16, 16, 17, 17, 17, 26, 26, 26, 12, 12, 12, 14, 14, 14, 8, 8, 8, 10, 10, 10, 24, 24, 24, 29, 29, 29, 26, 26, 26, 11, 11, 11, 13, 13, 13, 23, 23, 23, 6, 6, 6, 19, 19, 19, 3, 3, 3, 11, 11, 11, 28, 28, 28, 11, 11, 11, 2, 2, 2];
var shortColor = [0, 4, 4, 4, 29, 29, 29, 29, 29, 29, 27, 27, 27, 29, 29, 29, 11, 11, 11, 15, 15, 15, 27, 27, 27, 14, 14, 14, 29, 29, 29, 29, 29, 29, 1, 1, 1, 22, 22, 22, 26, 26, 26, 26, 26, 26, 26, 26, 26, 19, 19, 19, 8, 8, 8, 8, 8, 8, 6, 6, 6, 26, 26, 26, 2, 2, 2, 1, 1, 1, 27, 27, 27, 26, 26, 26, 16, 16, 16, 19, 19, 19, 29, 29, 29, 29, 29, 29, 29, 29, 29, 2, 2, 2, 2, 2, 2];
_root.setCookie("database", "eyes", _root.eyes);
_root.setCookie("database", "mouth", _root.mouth);
_root.setCookie("database", "nose", _root.nose);
_root.setCookie("database", "beard", _root.beard);
_root.setCookie("database", "brows", _root.brows);
_root.setCookie("database", "hair", _root.hair);
_root.setCookie("database", "skinColor", _root.skinColor);
_root.setCookie("database", "shirtColor", _root.shirtColor);
_root.setCookie("database", "shortColor", _root.shortColor);
var playerPlusJump = [0, 0, 0, 0, 0, -2, -2, -1, -1, -1, 0, 0, 0, 0, 3.5, 3.5, 0, 2, 2, 0, 0, 0, 0, -1, -1, 0, 4, 4, 0, 4, 4, 0, 2, 2, 0, -2, -2, 0, 4, 4, 0, 3.5, 3.5, 0, 2, 2, 0, 0, 0, 0, -2, -2, 0, 5, 5, 0, 5, 5, 0, -1, -1, 0, 2, 2, 0, -1, -1, 0, -2, -2, 0, 3.5, 3.5, 0, 5, 5, 0, 5, 5, 0, 3.5, 3.5, 0, 4, 4, 0, 3.5, 3.5, 0, 4, 4, 0, 5, 5, 0, 5, 5];
var playerPlusSpeed = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2.5, 2.5, 2.5, 0, 2, 2, 1, 1, 1, 0, 0, 0, 3, 3, 3, 3, 3, 3, 2, 2, 2, 0, 0, 0, 3, 3, 3, 2.5, 2.5, 2.5, 2, 2, 2, 1, 1, 1, 0, 0, 0, 2, 2, 4, 4, 4, 4, 0, 0, 0, 2, 2, 2, 0, 0, 0, 0, 0, 0, 2.5, 2.5, 2.5, 4, 4, 4, 4, 4, 4, 2.5, 2.5, 2.5, 3, 3, 3, 2.5, 2.5, 2.5, 3, 3, 3, 4, 4, 4, 4, 4, 4];
var playerPlusStrength = [0, 0, 0, 0, -0.2, -0.2, -0.2, -0.1, -0.1, -0.1, 0, 0, 0, 0, 0, 0, -0.1, -0.1, -0.1, 0, 0, 0, -0.1, -0.1, -0.1, 0, -0.2, 0, 0, -0.2, 0, -0.1, -0.1, -0.1, -0.2, -0.2, -0.2, 0, -0.2, 0, 0, 0, 0, -0.1, -0.1, -0.1, 0, 0, 0, -0.2, -0.2, -0.21, 0.2, 0, 0.2, 0.2, 0, 0.2, -0.1, -0.1, -0.1, -0.1, -0.1, -0.1, -0.1, -0.1, -0.1, -0.2, -0.2, -0.2, 0, 0, 0, 0, 0, 0.2, 0, 0, 0.2, 0, 0, 0, 0, -0.2, 0, 0, 0, 0, 0, -0.2, 0, 0, 0, 0.2, 0, 0, 0.2];
var playerTtw = [0, 0, 0, 0, 80, 70, 70, 50, 50, 50, 30, 30, 30, 20, 20, 20, 35, 35, 35, 30, 30, 30, 50, 50, 50, 21, 20, 23, 17, 25, 20, 35, 35, 35, 70, 70, 70, 20, 20, 21, 20, 20, 20, 35, 35, 35, 30, 30, 30, 70, 70, 70, 0, 10, 10, 0, 7, 7, 50, 50, 50, 35, 35, 35, 50, 50, 50, 70, 70, 70, 20, 20, 20, 0, 10, 10, 0, 7, 7, 20, 20, 20, 20, 21, 16, 20, 20, 20, 20, 20, 21, 0, 0, 0, 0, 0, 0];
var playerTtws = [0, 0, 0, 0, 10, 5, 5, 5, 5, 5, 10, 10, 10, 5, 5, 5, 10, 10, 10, 10, 10, 10, 5, 5, 5, 3, 3, 3, 3, 3, 3, 10, 10, 10, 0, 0, 0, 3, 3, 3, 5, 5, 5, 10, 10, 10, 10, 10, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 5, 5, 10, 10, 10, 5, 5, 5, 0, 0, 0, 5, 5, 5, 0, 0, 0, 0, 0, 0, 5, 5, 5, 3, 3, 3, 5, 5, 5, 3, 3, 3, 0, 16, 10, 0, 7, 10];
var playerSmartQuo = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 15, 16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 25, 25, 0, 25, 25, 0, 0, 0, 0, 0, 0, 0, 25, 25, 15, 15, 15, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 25, 50, 0, 25, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 15, 0, 0, 50, 0, 25, 50, 0, 15, 15, 0, 0, 25, 0, 15, 15, 0, 25, 25, 0, 0, 40, 0, 10, 61];
var playerUpper = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -5, -5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 10, 0, 10, 10, 0, 0, 0, 0, 0, 0, 0, 10, 10, 0, -5, -5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -5, -7, 0, -5, -7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -5, -5, 0, -5, -7, 0, -5, -7, 0, -5, -5, 0, 10, 10, 0, -5, -5, 0, 10, 10, 0, -5, -7, 0, -5, -7];
var playerUpperStiff = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 0, 0, 5, 0, 0, 5, 0, 0, 10, 0, 0, -7, 0, 0, 10, 0, 0, -7, 0, 0, 5, 0, 0, 5, 0];
var playerAlt = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 80, 80, 81, 81, 80, 77, 0, 0, 0, 0, 0, 0, 80, 77, 80, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 80, 90, 80, 80, 80, 90, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 80, 80, 80, 80, 80, 81, 0, 0, 0, 80, 70, 88, 0, 0, 0, 80, 80, 81, 80, 70, 75, 60, 80, 81];
var playerTricks = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 3, 3, 0, 1, 3, 0, 1, 2, 0, 0, 0, 0, 1, 1, 0, 2, 3, 0, 0, 3, 0, 0, 0, 0, 0, 0, 1, 3, 3, 1, 1, 3, 0, 0, 0, 0, 1, 2, 0, 0, 0, 0, 0, 0, 0, 1, 2, 1, 1, 3, 1, 3, 1, 0, 1, 3, 1, 1, 1, 0, 1, 1, 0, 1, 3, 3, 1, 3, 0, 0, 0];
_root.setCookie("database", "playerPlusJump", _root.playerPlusJump);
_root.setCookie("database", "playerPlusSpeed", _root.playerPlusSpeed);
_root.setCookie("database", "playerPlusStrength", _root.playerPlusStrength);
_root.setCookie("database", "playerTtw", _root.playerTtw);
_root.setCookie("database", "playerTtws", _root.playerTtws);
_root.setCookie("database", "playerSmartQuo", _root.playerSmartQuo);
_root.setCookie("database", "playerUpper", _root.playerUpper);
_root.setCookie("database", "playerUpperStiff", _root.playerUpperStiff);
_root.setCookie("database", "playerAlt", _root.playerAlt);
_root.setCookie("database", "playerTricks", _root.playerTricks);
_quality = "MEDIUM";
var qty = 2;
var sndo = true;
_root.setCookie("database", "qty", _root.qty);
_root.setCookie("database", "sndo", _root.sndo);
var teamNames = ["", "Super Team", "Soft Kickers", "Marshmallows", "Fire Heads", "Blasters", "Macarons", "Afromen", "The 3 Musketeers", "Shooters", "Green Fury", "Sushi Guys", "Bubble Boys", "All In", "Net Breakers", "Rock Team", "Tough Guys", "Fast Players", "Eskimos", "Soccer Army", "Ball Exploders", "Sieger", "Goal Land", "Coast Boys", "Jags", "Nightmare Team", "Day 2 Lose", "Men In Pink", "Incubo di Calcio", "Dream Team", "Awesome Team!", "Brazilian Force", "God sons"];
_root.setCookie("database", "teamNames", _root.teamNames);
var teamLevel = [0, 4, 4, 5, 6, 8, 7, 6, 5, 9, 9, 7, 4, 9, 8, 7, 6, 4, 10, 10, 5, 7, 5, 4, 8, 10, 10, 8, 9, 8, 9, 10, 10];
_root.setCookie("database", "teamLevel", _root.teamLevel);
var gPhase = 0;
var gPoints = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
var gGoals = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
var gTeams = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
var gTeams2 = [0, 0, 0, 0, 0, 0, 0, 0, 0];
var gTeams3 = [0, 0, 0, 0, 0];
var gTeams4 = [0, 0, 0];
var gCal = [0, 0, 0, 0, 0, 0, 0, 0, 0];
_root.setCookie("database", "gPhase", _root.gPhase);
_root.setCookie("database", "gPoints", _root.gPoints);
_root.setCookie("database", "gGoals", _root.gGoals);
_root.setCookie("database", "gTeams", _root.gTeams);
_root.setCookie("database", "gTeams2", _root.gTeams2);
_root.setCookie("database", "gTeams3", _root.gTeams3);
_root.setCookie("database", "gTeams4", _root.gTeams4);
_root.setCookie("database", "gCal", _root.gCal);
trace("gphase " + gPhase);
var myPoints = 0;
_root.setCookie("database", "myPoints", _root.myPoints);
var avaiLeague = false;
_root.setCookie("database", "avaiLeague", _root.avaiLeague);
var unlockedHair = 0;
var unlockedEyes = 0;
var unlockedNose = 0;
var unlockedMouth = 0;
var unlockedBall = 0;
_root.setCookie("database", "unlockedHair", _root.unlockedHair);
_root.setCookie("database", "unlockedEyes", _root.unlockedEyes);
_root.setCookie("database", "unlockedNose", _root.unlockedNose);
_root.setCookie("database", "unlockedMouth", _root.unlockedMouth);
_root.setCookie("database", "unlockedBall", _root.unlockedBall);
var leaPhase = 0;
var leaPicked = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
var leaTeams = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
var leaMatchTeams = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
var leaPoints = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
var leaCal = 0;
_root.setCookie("database", "leaPhase", _root.leaPhase);
_root.setCookie("database", "leaPicked", _root.leaPicked);
_root.setCookie("database", "leaTeams", _root.leaTeams);
_root.setCookie("database", "leaMatchTeams", _root.leaMatchTeams);
_root.setCookie("database", "leaPoints", _root.leaPoints);
_root.setCookie("database", "leaCal", _root.leaCal);
var trophiesUnlocked = [0, 0, 0, 0, 0, 0, 0, 0];
_root.setCookie("database", "trophiesUnlocked", _root.trophiesUnlocked);
var arcPhase = 0;
var arcBeaten = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
var arcWon = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
var arcAlive = true;
_root.setCookie("database", "arcPhase", _root.arcPhase);
_root.setCookie("database", "arcBeaten", _root.arcBeaten);
_root.setCookie("database", "arcWon", _root.arcWon);
_root.setCookie("database", "arcAlive", _root.arcAlive);
var secs = 70;
_root.setCookie("database", "secs", _root.secs);
var autoPickUp = true;
_root.setCookie("database", "autoPickUp", _root.autoPickUp);
var autoPick = true;
_root.setCookie("database", "autoPick", _root.autoPick);
var apick1 = true;
var apick2 = true;
var alift1 = true;
var alift2 = true;
_root.setCookie("database", "apick1", _root.apick1);
_root.setCookie("database", "apick2", _root.apick2);
_root.setCookie("database", "alift1", _root.alift1);
_root.setCookie("database", "alift2", _root.alift2);
var gScore = 0;
var leaScore = 0;
var arcScore = 0;
_root.setCookie("database", "gScore", _root.gScore);
_root.setCookie("database", "leaScore", _root.leaScore);
_root.setCookie("database", "arcScore", _root.arcScore);
var firstTime = true;
iPlayed = true;
_root.setCookie("database", "iPlayed", _root.iPlayed);
} else {
var eyes = this.getCookie("database", "eyes");
var mouth = this.getCookie("database", "mouth");
var nose = this.getCookie("database", "nose");
var beard = this.getCookie("database", "beard");
var brows = this.getCookie("database", "brows");
var hair = this.getCookie("database", "hair");
var skinColor = this.getCookie("database", "skinColor");
var shirtColor = this.getCookie("database", "shirtColor");
var shortColor = this.getCookie("database", "shortColor");
var playerPlusJump = this.getCookie("database", "playerPlusJump");
var playerPlusSpeed = this.getCookie("database", "playerPlusSpeed");
var playerPlusStrength = this.getCookie("database", "playerPlusStrength");
var playerTtw = this.getCookie("database", "playerTtw");
var playerTtws = this.getCookie("database", "playerTtws");
var playerSmartQuo = this.getCookie("database", "playerSmartQuo");
var playerUpper = this.getCookie("database", "playerUpper");
var playerUpperStiff = this.getCookie("database", "playerUpperStiff");
var playerAlt = this.getCookie("database", "playerAlt");
var playerTricks = this.getCookie("database", "playerTricks");
var qty = this.getCookie("database", "qty");
if (qty == 1) {
_quality = "HIGH";
} else if (qty == 2) {
_quality = "MEDIUM";
} else if (qty == 3) {
_quality = "LOW";
}
var sndo = this.getCookie("database", "sndo");
var teamNames = this.getCookie("database", "teamNames");
var teamLevel = this.getCookie("database", "teamLevel");
var gPhase = this.getCookie("database", "gPhase");
var gPoints = this.getCookie("database", "gPoints");
var gGoals = this.getCookie("database", "gGoals");
var gTeams = this.getCookie("database", "gTeams");
var gTeams2 = this.getCookie("database", "gTeams2");
var gTeams3 = this.getCookie("database", "gTeams3");
var gTeams4 = this.getCookie("database", "gTeams4");
var gCal = this.getCookie("database", "gCal");
var myPoints = this.getCookie("database", "myPoints");
var unlockedHair = this.getCookie("database", "unlockedHair");
var unlockedEyes = this.getCookie("database", "unlockedEyes");
var unlockedNose = this.getCookie("database", "unlockedNose");
var unlockedMouth = this.getCookie("database", "unlockedMouth");
var unlockedBall = this.getCookie("database", "unlockedBall");
var avaiLeague = this.getCookie("database", "avaiLeague");
var leaPhase = this.getCookie("database", "leaPhase");
var leaPicked = this.getCookie("database", "leaPicked");
var leaTeams = this.getCookie("database", "leaTeams");
var leaMatchTeams = this.getCookie("database", "leaMatchTeams");
var leaPoints = this.getCookie("database", "leaPoints");
var leaCal = this.getCookie("database", "leaCal");
var trophiesUnlocked = this.getCookie("database", "trophiesUnlocked");
var arcPhase = this.getCookie("database", "arcPhase");
var arcBeaten = this.getCookie("database", "arcBeaten");
var arcWon = this.getCookie("database", "arcWon");
var arcAlive = this.getCookie("database", "arcAlive");
var secs = this.getCookie("database", "secs");
var autoPickUp = this.getCookie("database", "autoPickUp");
var autoPick = this.getCookie("database", "autoPick");
var alift1 = this.getCookie("database", "alift1");
var alift2 = this.getCookie("database", "alift2");
var apick1 = this.getCookie("database", "apick1");
var apick2 = this.getCookie("database", "apick2");
var gScore = this.getCookie("database", "gScore");
var leaScore = this.getCookie("database", "leaScore");
var arcScore = this.getCookie("database", "arcScore");
var firstTime = false;
}
var team1 = 1;
var team2 = 19;
var ballStyle = 1;
var dayTimes = ["day", "rainy day", "night", "rainy night", "sunset"];
var dayTime = dayTimes[random(5)];
var playerName = ["", "Elpidio Marcus", "Giorgino Roc", "Donald Patrick", "Josef Charlton", "Helmut Leopold", "Diego Sigiswald", "Leith Lenard", "Gisbert Lake", "Daniele Demetrio", "Lieven Guilherme", "Stephen Marten", "Wayne Philips", "Emil Vern", "Loren Grey", "Bill Louis", "Creighton Edmond", "Gregorio Beau", "Andr\u00E9s Clarence", "Herberto Ikaia", "Miquel Taonga", "Mortimer Bonifaz", "Bonaventure Jacobs", "Tsubasa Kai", "Vencesl\u00E1s Ingvar", "Bruno Caelan", "Pio Gervasio", "Dennis Ram\u00EDrez", "\u00C9milien Cobus", "Jess Uffe", "Earl Kolman", "Choi Choi", "Yen Noi", "Muy Chui", "Telmo Nobu", "Barney Cyrille", "Brad Nicolau", "Wekesa Osbert", "Jacopo Lacy", "Pedro Kesler", "Ambrogino Kekoa", "Rub\u00E9n Feliu", "Algernon Valentin", "Matt Kurou", "Faustino Johnson", "Donny Langdon", "Grier Steffen", "Radclyffe Ingvar", "Chris Joshua", "Carl Kermit", "Kiefer Forest", "Virgil Mwenye", "Orrell Orval", "Placido Deven", "Antonius Anselme", "Frank Liberatore", "Jesper Jerrik", "Samuele Archie", "Emil Federigo", "Michael Kenrick", "Klement Kwesi", "Rokuro Tatton", "Ib Kodey", "Manny Carvalho", "Didier Balleck", "Arie Jensen", "Costanzo Krujen", "Willis Chico", "Barnaby Attilio", "Remigio Cornelio", "Emeric Wiebe", "Cedric Jhones", "Jepson Finnegan", "Lino Lambert", "Cosme Daisuke", "Caleb Morris", "Jesper Lawrie", "Whitaker Olegario", "Les Ferdie", "Zavier Charlton", "Eugen Braxton", "Agapito Sargon", "Bruno Veti", "Hieronymus Emilioni", "Colozzo", "Jaden Stanislas", "Patrick Malone", "Emiliano Eckehard", "Grahame Kobina", "Nuriof Savigny", "Fito Argueta", "Fernando Arredondo", "Pablo Rayo", "Oscar D\u00EDaz", "Dudo", "Kok\u00F3", "Rumualdo", "Oscar Kle\u00E9", "Oscar G\u00E1lvez", "Angel Rojas"];
var iWin = false;
var teamToFace;
var gFrame;
var plusPoints;
var pplayer;
var playingNow = 1;
var afterPartido = false;
var arcPick;
var atSite = true;
var playedMusic = false;
stop();
fscommand ("trapallkeys", "true");
Stage.showMenu = false;
var cfm = false;
var lv = 1;
urlStart = _url.indexOf("://") + 3;
urlEnd = _url.indexOf("/", urlStart);
domain = _url.substring(urlStart, urlEnd);
LastDot = domain.lastIndexOf(".") - 1;
domEnd = domain.lastIndexOf(".", LastDot) + 1;
domain = domain.substring(domEnd, domain.length);
var insite;
if ((domain != "minijuegos.com") || (domain != "minijuegosgratis.com")) {
insite = false;
} else {
insite = true;
}
var CPMStarContentSpotID = "0";
System.security.allowDomain("server.cpmstar.com");
adBox.loadMovie("http://server.cpmstar.com/adviewas2.swf?contentspotid=1151Q894C3254");
_quality = "HIGH";
mochi.as2.MochiServices.connect("496526728da3ace1");
Instance of Symbol 80 MovieClip in Frame 1
onClipEvent (load) {
gotoAndStop (3);
}
onClipEvent (enterFrame) {
if ((Key.isDown(38) && (Key.isDown(39))) && (Key.isDown(32))) {
_root._visible = true;
}
}
Instance of Symbol 103 MovieClip in Frame 1
onClipEvent (enterFrame) {
this.bar._xscale = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (_root.getBytesLoaded() == _root.getBytesTotal()) {
gotoAndStop (2);
}
}
onClipEvent (load) {
}
Frame 2
stop();
Frame 3
stop();
Frame 4
stop();
team1 = 1;
afterPartido = false;
var yesChanged = false;
if (qty == 1) {
_quality = "HIGH";
} else if (qty == 2) {
_quality = "MEDIUM";
} else if (qty == 3) {
_quality = "LOW";
}
Frame 5
var ttext = "";
Instance of Symbol 313 MovieClip in Frame 5
onClipEvent (enterFrame) {
if (_root.avaiLeague) {
_y = -85;
}
if (hitTest(_root._xmouse, _root._ymouse, true)) {
_root.msg.cc++;
if (_root.lv == 1) {
_root.ttext = "Get to 2nd round in Championship Mode to unlock it.";
} else if (_root.lv == 2) {
_root.ttext = "Llega a la segunda ronda en el Campeonato para desbloquear.";
}
}
}
Instance of Symbol 313 MovieClip in Frame 5
onClipEvent (enterFrame) {
if (hitTest(_root._xmouse, _root._ymouse, true)) {
_root.msg.cc++;
if (_root.lv == 1) {
_root.ttext = "Available at www.minijuegos.com";
} else if (_root.lv == 2) {
_root.ttext = "Disponible en www.minijuegos.com";
}
}
if (_root.insite) {
_y = -107;
}
}
Instance of Symbol 343 MovieClip "msg" in Frame 5
onClipEvent (load) {
var ttext = "";
var cc = 0;
}
onClipEvent (enterFrame) {
_x = _root._xmouse;
_y = _root._ymouse;
if (cc > 0) {
ttext = _root.ttext;
} else {
ttext = "";
}
cc = 0;
}
Instance of Symbol 80 MovieClip in Frame 6
onClipEvent (load) {
gotoAndStop (3);
}
Frame 8
var teamUniform;
var ttush = teamNames[1];
Instance of Symbol 313 MovieClip in Frame 8
onClipEvent (enterFrame) {
if (hitTest(_root._xmouse, _root._ymouse, true)) {
_root.msg.cc++;
if (_root.lv == 1) {
_root.ttext = "Available at www.minijuegos.com";
} else if (_root.lv == 2) {
_root.ttext = "Disponible en www.minijuegos.com";
}
}
if (_root.insite) {
_y = -107;
}
}
Instance of Symbol 978 MovieClip "pl1" in Frame 8
onClipEvent (load) {
var ctrl = false;
var plNum = 0;
var theNum = (((_root.team1 * 3) - 2) + plNum);
var eyes = _root.eyes[theNum];
var mouth = _root.mouth[theNum];
var nose = _root.nose[theNum];
var beard = _root.beard[theNum];
var brows = _root.brows[theNum];
var hair = _root.hair[theNum];
var shirt = _root.shirtColor[theNum];
var short = _root.shortColor[theNum];
var skinn = _root.skinColor[theNum];
}
Instance of Symbol 978 MovieClip "pl2" in Frame 8
onClipEvent (load) {
var ctrl = false;
var plNum = 1;
var theNum = (((_root.team1 * 3) - 2) + plNum);
var eyes = _root.eyes[theNum];
var mouth = _root.mouth[theNum];
var nose = _root.nose[theNum];
var beard = _root.beard[theNum];
var brows = _root.brows[theNum];
var hair = _root.hair[theNum];
var shirt = _root.shirtColor[theNum];
var short = _root.shortColor[theNum];
var skinn = _root.skinColor[theNum];
}
Instance of Symbol 978 MovieClip "pl3" in Frame 8
onClipEvent (load) {
var ctrl = false;
var plNum = 2;
var theNum = (((_root.team1 * 3) - 2) + plNum);
var eyes = _root.eyes[theNum];
var mouth = _root.mouth[theNum];
var nose = _root.nose[theNum];
var beard = _root.beard[theNum];
var brows = _root.brows[theNum];
var hair = _root.hair[theNum];
var shirt = _root.shirtColor[theNum];
var short = _root.shortColor[theNum];
var skinn = _root.skinColor[theNum];
}
Instance of Symbol 1565 MovieClip "ballAviso" in Frame 8
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 343 MovieClip "msg" in Frame 8
onClipEvent (load) {
var ttext = "";
var cc = 0;
}
onClipEvent (enterFrame) {
_x = _root._xmouse;
_y = _root._ymouse;
if (cc > 0) {
ttext = _root.ttext;
} else {
ttext = "";
}
cc = 0;
}
Frame 9
yesChanged = true;
Frame 10
_root.setCookie("database", "gTeams", _root.gTeams);
_root.setCookie("database", "gTeams2", _root.gTeams2);
_root.setCookie("database", "gTeams3", _root.gTeams3);
_root.setCookie("database", "gTeams4", _root.gTeams4);
if (gPhase < 4) {
_root.setCookie("database", "gPhase", _root.gPhase);
_root.setCookie("database", "gPoints", _root.gPoints);
_root.setCookie("database", "gGoals", _root.gGoals);
_root.setCookie("database", "gCal", _root.gCal);
nextFrame();
} else if ((gPhase == 4) || (gPhase == 5)) {
gotoAndStop (12);
} else if ((gPhase == 6) || (gPhase == 7)) {
gotoAndStop (13);
} else if ((gPhase == 8) || (gPhase == 9)) {
gotoAndStop (14);
} else if ((gPhase == 10) || (gPhase == 11)) {
gotoAndStop (15);
}
stop();
Frame 11
stop();
if (iWin && (afterPartido)) {
if (gPhase < 4) {
gPoints[1] = gPoints[1] + 3;
}
}
Instance of Symbol 1645 MovieClip in Frame 11
onClipEvent (load) {
function calcWin(tm1, tm2) {
var _local9 = ((random(teamLevel[tm1]) + random(teamLevel[tm1])) + random(teamLevel[tm1])) + random(teamLevel[tm1]);
var _local8 = ((random(teamLevel[tm2]) + random(teamLevel[tm2])) + random(teamLevel[tm2])) + random(teamLevel[tm2]);
var _local3 = (random(teamLevel[tm1]) * 0.25) * _local9;
var _local2 = (random(teamLevel[tm2]) * 0.25) * _local8;
var _local5;
var _local7;
if (_local3 > _local2) {
_local5 = 1;
} else if (_local3 < _local2) {
_local5 = 2;
} else if (_local3 == _local2) {
_local7 = random(2) + 1;
this["pgoals" + _local7]++;
_local5 = _local7;
}
chartGoals1 = Math.round(_local3);
chartGoals2 = Math.round(_local2);
return(_local5);
}
var tm1 = 1;
var tm2 = 2;
var chartGoals1;
var chartGoals2;
var teamLevel = _root.teamLevel;
var phase = _root.gPhase;
var twin;
if (((phase > 0) && (phase < 4)) && (_root.gCal[1] < _root.gPhase)) {
if (phase == 1) {
if (!_root.iWin) {
_root.gPoints[2] = _root.gPoints[2] + 3;
}
_root.gGoals[1] = _root.gGoals[1] + _root.g1;
_root.gGoals[2] = _root.gGoals[2] + _root.g2;
twin = calcWin(3, 4);
if (twin == 1) {
_root.gPoints[3] = _root.gPoints[3] + 3;
} else if (twin == 2) {
_root.gPoints[4] = _root.gPoints[4] + 3;
}
_root.gGoals[3] = _root.gGoals[3] + chartGoals1;
_root.gGoals[4] = _root.gGoals[4] + chartGoals2;
} else if (phase == 2) {
if (!_root.iWin) {
_root.gPoints[3] = _root.gPoints[3] + 3;
}
_root.gGoals[1] = _root.gGoals[1] + _root.g1;
_root.gGoals[3] = _root.gGoals[3] + _root.g2;
twin = calcWin(2, 4);
if (twin == 1) {
_root.gPoints[2] = _root.gPoints[2] + 3;
} else if (twin == 2) {
_root.gPoints[4] = _root.gPoints[4] + 3;
}
_root.gGoals[3] = _root.gGoals[3] + chartGoals1;
_root.gGoals[4] = _root.gGoals[4] + chartGoals2;
} else if (phase == 3) {
if (!_root.iWin) {
_root.gPoints[4] = _root.gPoints[4] + 3;
}
_root.gGoals[1] = _root.gGoals[1] + _root.g1;
_root.gGoals[4] = _root.gGoals[4] + _root.g2;
twin = calcWin(2, 3);
if (twin == 1) {
_root.gPoints[2] = _root.gPoints[2] + 3;
} else if (twin == 2) {
_root.gPoints[3] = _root.gPoints[3] + 3;
}
_root.gGoals[3] = _root.gGoals[3] + chartGoals1;
_root.gGoals[4] = _root.gGoals[4] + chartGoals2;
}
_root.gCal[1]++;
}
if (_root.lv == 1) {
var grp = "Group A";
} else if (_root.lv == 2) {
var grp = "Grupo A";
}
var t1 = _root.teamNames[1];
var t2 = _root.teamNames[2];
var t3 = _root.teamNames[3];
var t4 = _root.teamNames[4];
var p1 = _root.gPoints[1];
var p2 = _root.gPoints[2];
var p3 = _root.gPoints[3];
var p4 = _root.gPoints[4];
var g1 = _root.gGoals[1];
var g2 = _root.gGoals[2];
var g3 = _root.gGoals[3];
var g4 = _root.gGoals[4];
var teamPosition = [0, 4, 4, 4, 4];
var teamArray = [0, 0, 0];
var cc;
teamArray = [2, 3, 4];
cc = 0;
while (cc < 3) {
if (p1 > this["p" + teamArray[cc]]) {
teamPosition[1]--;
} else if (p1 == this["p" + teamArray[cc]]) {
if (g1 > this["g" + teamArray[cc]]) {
teamPosition[1]--;
}
}
cc++;
}
teamArray = [1, 3, 4];
cc = 0;
while (cc < 3) {
if (p2 > this["p" + teamArray[cc]]) {
teamPosition[2]--;
} else if (p2 == this["p" + teamArray[cc]]) {
if (g2 > this["g" + teamArray[cc]]) {
teamPosition[2]--;
}
}
cc++;
}
teamArray = [1, 2, 4];
cc = 0;
while (cc < 3) {
if (p3 > this["p" + teamArray[cc]]) {
teamPosition[3]--;
} else if (p3 == this["p" + teamArray[cc]]) {
if (g3 > this["g" + teamArray[cc]]) {
teamPosition[3]--;
}
}
cc++;
}
teamArray = [1, 2, 3];
cc = 0;
while (cc < 3) {
if (p4 > this["p" + teamArray[cc]]) {
teamPosition[4]--;
} else if (p4 == this["p" + teamArray[cc]]) {
if (g4 > this["g" + teamArray[cc]]) {
teamPosition[4]--;
}
}
cc++;
}
cc = 1;
while (cc < 5) {
cc++;
}
if (phase == 3) {
cc = 1;
while (cc < 5) {
if (teamPosition[cc] == 1) {
_root.gTeams[1] = cc;
}
cc++;
}
cc = 1;
while (cc < 5) {
if (teamPosition[cc] == 2) {
_root.gTeams[2] = cc;
}
cc++;
}
}
var cucu = 0;
}
Instance of Symbol 1645 MovieClip in Frame 11
onClipEvent (load) {
function calcWin(tm1, tm2) {
var _local9 = ((random(teamLevel[tm1]) + random(teamLevel[tm1])) + random(teamLevel[tm1])) + random(teamLevel[tm1]);
var _local8 = ((random(teamLevel[tm2]) + random(teamLevel[tm2])) + random(teamLevel[tm2])) + random(teamLevel[tm2]);
var _local3 = (random(teamLevel[tm1]) * 0.25) * _local9;
var _local2 = (random(teamLevel[tm2]) * 0.25) * _local8;
var _local5;
var _local7;
if (_local3 > _local2) {
_local5 = 1;
} else if (_local3 < _local2) {
_local5 = 2;
} else if (_local3 == _local2) {
_local7 = random(2) + 1;
this["pgoals" + _local7]++;
_local5 = _local7;
}
chartGoals1 = Math.round(_local3);
chartGoals2 = Math.round(_local2);
return(_local5);
}
var tm1 = 1;
var tm2 = 2;
var chartGoals1;
var chartGoals2;
var teamLevel = _root.teamLevel;
var phase = _root.gPhase;
var twin;
if (((phase > 0) && (phase < 4)) && (_root.gCal[2] < _root.gPhase)) {
if (phase == 1) {
twin = calcWin(5, 6);
if (twin == 1) {
_root.gPoints[5] = _root.gPoints[5] + 3;
} else if (twin == 2) {
_root.gPoints[6] = _root.gPoints[6] + 3;
}
_root.gGoals[5] = _root.gGoals[5] + chartGoals1;
_root.gGoals[6] = _root.gGoals[6] + chartGoals2;
twin = calcWin(7, 8);
if (twin == 1) {
_root.gPoints[7] = _root.gPoints[7] + 3;
} else if (twin == 2) {
_root.gPoints[8] = _root.gPoints[8] + 3;
}
_root.gGoals[7] = _root.gGoals[7] + chartGoals1;
_root.gGoals[8] = _root.gGoals[8] + chartGoals2;
} else if (phase == 2) {
twin = calcWin(5, 7);
if (twin == 1) {
_root.gPoints[5] = _root.gPoints[5] + 3;
} else if (twin == 2) {
_root.gPoints[7] = _root.gPoints[7] + 3;
}
_root.gGoals[5] = _root.gGoals[5] + chartGoals1;
_root.gGoals[7] = _root.gGoals[7] + chartGoals2;
twin = calcWin(6, 8);
if (twin == 1) {
_root.gPoints[6] = _root.gPoints[6] + 3;
} else if (twin == 2) {
_root.gPoints[8] = _root.gPoints[8] + 3;
}
_root.gGoals[6] = _root.gGoals[6] + chartGoals1;
_root.gGoals[8] = _root.gGoals[8] + chartGoals2;
} else if (phase == 3) {
twin = calcWin(5, 8);
if (twin == 1) {
_root.gPoints[5] = _root.gPoints[5] + 3;
} else if (twin == 2) {
_root.gPoints[8] = _root.gPoints[8] + 3;
}
_root.gGoals[5] = _root.gGoals[5] + chartGoals1;
_root.gGoals[8] = _root.gGoals[8] + chartGoals2;
twin = calcWin(6, 7);
if (twin == 1) {
_root.gPoints[6] = _root.gPoints[6] + 3;
} else if (twin == 2) {
_root.gPoints[7] = _root.gPoints[7] + 3;
}
_root.gGoals[6] = _root.gGoals[6] + chartGoals1;
_root.gGoals[7] = _root.gGoals[7] + chartGoals2;
}
_root.gCal[2]++;
}
if (_root.lv == 1) {
var grp = "Group B";
} else if (_root.lv == 2) {
var grp = "Grupo B";
}
var t1 = _root.teamNames[5];
var t2 = _root.teamNames[6];
var t3 = _root.teamNames[7];
var t4 = _root.teamNames[8];
var p1 = _root.gPoints[5];
var p2 = _root.gPoints[6];
var p3 = _root.gPoints[7];
var p4 = _root.gPoints[8];
var g1 = _root.gGoals[5];
var g2 = _root.gGoals[6];
var g3 = _root.gGoals[7];
var g4 = _root.gGoals[8];
var teamPosition = [0, 4, 4, 4, 4];
var teamArray = [0, 0, 0];
var cc;
teamArray = [2, 3, 4];
cc = 0;
while (cc < 3) {
if (p1 > this["p" + teamArray[cc]]) {
teamPosition[1]--;
} else if (p1 == this["p" + teamArray[cc]]) {
if (g1 > this["g" + teamArray[cc]]) {
teamPosition[1]--;
}
}
cc++;
}
teamArray = [1, 3, 4];
cc = 0;
while (cc < 3) {
if (p2 > this["p" + teamArray[cc]]) {
teamPosition[2]--;
} else if (p2 == this["p" + teamArray[cc]]) {
if (g2 > this["g" + teamArray[cc]]) {
teamPosition[2]--;
}
}
cc++;
}
teamArray = [1, 2, 4];
cc = 0;
while (cc < 3) {
if (p3 > this["p" + teamArray[cc]]) {
teamPosition[3]--;
} else if (p3 == this["p" + teamArray[cc]]) {
if (g3 > this["g" + teamArray[cc]]) {
teamPosition[3]--;
}
}
cc++;
}
teamArray = [1, 2, 3];
cc = 0;
while (cc < 3) {
if (p4 > this["p" + teamArray[cc]]) {
teamPosition[4]--;
} else if (p4 == this["p" + teamArray[cc]]) {
if (g4 > this["g" + teamArray[cc]]) {
teamPosition[4]--;
}
}
cc++;
}
cc = 1;
while (cc < 5) {
cc++;
}
var plusNumber = 4;
if (phase == 3) {
cc = 1;
while (cc < 5) {
if (teamPosition[cc] == 1) {
_root.gTeams[3] = plusNumber + cc;
}
cc++;
}
cc = 1;
while (cc < 5) {
if (teamPosition[cc] == 2) {
_root.gTeams[4] = plusNumber + cc;
}
cc++;
}
}
}
Instance of Symbol 1645 MovieClip in Frame 11
onClipEvent (load) {
function calcWin(tm1, tm2) {
var _local9 = ((random(teamLevel[tm1]) + random(teamLevel[tm1])) + random(teamLevel[tm1])) + random(teamLevel[tm1]);
var _local8 = ((random(teamLevel[tm2]) + random(teamLevel[tm2])) + random(teamLevel[tm2])) + random(teamLevel[tm2]);
var _local3 = (random(teamLevel[tm1]) * 0.25) * _local9;
var _local2 = (random(teamLevel[tm2]) * 0.25) * _local8;
var _local5;
var _local7;
if (_local3 > _local2) {
_local5 = 1;
} else if (_local3 < _local2) {
_local5 = 2;
} else if (_local3 == _local2) {
_local7 = random(2) + 1;
this["pgoals" + _local7]++;
_local5 = _local7;
}
chartGoals1 = Math.round(_local3);
chartGoals2 = Math.round(_local2);
return(_local5);
}
var tm1 = 1;
var tm2 = 2;
var chartGoals1;
var chartGoals2;
var teamLevel = _root.teamLevel;
var phase = _root.gPhase;
var twin;
if (((phase > 0) && (phase < 4)) && (_root.gCal[3] < _root.gPhase)) {
if (phase == 1) {
twin = calcWin(9, 10);
if (twin == 1) {
_root.gPoints[9] = _root.gPoints[9] + 3;
} else if (twin == 2) {
_root.gPoints[10] = _root.gPoints[10] + 3;
}
_root.gGoals[9] = _root.gGoals[9] + chartGoals1;
_root.gGoals[10] = _root.gGoals[10] + chartGoals2;
twin = calcWin(11, 12);
if (twin == 1) {
_root.gPoints[11] = _root.gPoints[11] + 3;
} else if (twin == 2) {
_root.gPoints[12] = _root.gPoints[12] + 3;
}
_root.gGoals[11] = _root.gGoals[11] + chartGoals1;
_root.gGoals[12] = _root.gGoals[12] + chartGoals2;
} else if (phase == 2) {
twin = calcWin(9, 11);
if (twin == 1) {
_root.gPoints[9] = _root.gPoints[9] + 3;
} else if (twin == 2) {
_root.gPoints[11] = _root.gPoints[11] + 3;
}
_root.gGoals[9] = _root.gGoals[9] + chartGoals1;
_root.gGoals[11] = _root.gGoals[11] + chartGoals2;
twin = calcWin(10, 12);
if (twin == 1) {
_root.gPoints[10] = _root.gPoints[10] + 3;
} else if (twin == 2) {
_root.gPoints[12] = _root.gPoints[12] + 3;
}
_root.gGoals[10] = _root.gGoals[10] + chartGoals1;
_root.gGoals[12] = _root.gGoals[12] + chartGoals2;
} else if (phase == 3) {
twin = calcWin(9, 12);
if (twin == 1) {
_root.gPoints[9] = _root.gPoints[9] + 3;
} else if (twin == 2) {
_root.gPoints[12] = _root.gPoints[12] + 3;
}
_root.gGoals[9] = _root.gGoals[9] + chartGoals1;
_root.gGoals[12] = _root.gGoals[12] + chartGoals2;
twin = calcWin(10, 11);
if (twin == 1) {
_root.gPoints[10] = _root.gPoints[10] + 3;
} else if (twin == 2) {
_root.gPoints[11] = _root.gPoints[11] + 3;
}
_root.gGoals[10] = _root.gGoals[10] + chartGoals1;
_root.gGoals[11] = _root.gGoals[11] + chartGoals2;
}
_root.gCal[3]++;
}
if (_root.lv == 1) {
var grp = "Group C";
} else if (_root.lv == 2) {
var grp = "Grupo C";
}
var t1 = _root.teamNames[9];
var t2 = _root.teamNames[10];
var t3 = _root.teamNames[11];
var t4 = _root.teamNames[12];
var p1 = _root.gPoints[9];
var p2 = _root.gPoints[10];
var p3 = _root.gPoints[11];
var p4 = _root.gPoints[12];
var g1 = _root.gGoals[9];
var g2 = _root.gGoals[10];
var g3 = _root.gGoals[11];
var g4 = _root.gGoals[12];
var teamPosition = [0, 4, 4, 4, 4];
var teamArray = [0, 0, 0];
var cc;
teamArray = [2, 3, 4];
cc = 0;
while (cc < 3) {
if (p1 > this["p" + teamArray[cc]]) {
teamPosition[1]--;
} else if (p1 == this["p" + teamArray[cc]]) {
if (g1 > this["g" + teamArray[cc]]) {
teamPosition[1]--;
}
}
cc++;
}
teamArray = [1, 3, 4];
cc = 0;
while (cc < 3) {
if (p2 > this["p" + teamArray[cc]]) {
teamPosition[2]--;
} else if (p2 == this["p" + teamArray[cc]]) {
if (g2 > this["g" + teamArray[cc]]) {
teamPosition[2]--;
}
}
cc++;
}
teamArray = [1, 2, 4];
cc = 0;
while (cc < 3) {
if (p3 > this["p" + teamArray[cc]]) {
teamPosition[3]--;
} else if (p3 == this["p" + teamArray[cc]]) {
if (g3 > this["g" + teamArray[cc]]) {
teamPosition[3]--;
}
}
cc++;
}
teamArray = [1, 2, 3];
cc = 0;
while (cc < 3) {
if (p4 > this["p" + teamArray[cc]]) {
teamPosition[4]--;
} else if (p4 == this["p" + teamArray[cc]]) {
if (g4 > this["g" + teamArray[cc]]) {
teamPosition[4]--;
}
}
cc++;
}
var plusNumber = 8;
if (phase == 3) {
cc = 1;
while (cc < 5) {
if (teamPosition[cc] == 1) {
_root.gTeams[5] = plusNumber + cc;
}
cc++;
}
cc = 1;
while (cc < 5) {
if (teamPosition[cc] == 2) {
_root.gTeams[6] = plusNumber + cc;
}
cc++;
}
}
}
Instance of Symbol 1645 MovieClip in Frame 11
onClipEvent (load) {
function calcWin(tm1, tm2) {
var _local9 = ((random(teamLevel[tm1]) + random(teamLevel[tm1])) + random(teamLevel[tm1])) + random(teamLevel[tm1]);
var _local8 = ((random(teamLevel[tm2]) + random(teamLevel[tm2])) + random(teamLevel[tm2])) + random(teamLevel[tm2]);
var _local3 = (random(teamLevel[tm1]) * 0.25) * _local9;
var _local2 = (random(teamLevel[tm2]) * 0.25) * _local8;
var _local5;
var _local7;
if (_local3 > _local2) {
_local5 = 1;
} else if (_local3 < _local2) {
_local5 = 2;
} else if (_local3 == _local2) {
_local7 = random(2) + 1;
this["pgoals" + _local7]++;
_local5 = _local7;
}
chartGoals1 = Math.round(_local3);
chartGoals2 = Math.round(_local2);
return(_local5);
}
var tm1 = 1;
var tm2 = 2;
var chartGoals1;
var chartGoals2;
var teamLevel = _root.teamLevel;
var phase = _root.gPhase;
var twin;
if (((phase > 0) && (phase < 4)) && (_root.gCal[4] < _root.gPhase)) {
if (phase == 1) {
twin = calcWin(13, 14);
if (twin == 1) {
_root.gPoints[13] = _root.gPoints[13] + 3;
} else if (twin == 2) {
_root.gPoints[14] = _root.gPoints[14] + 3;
}
_root.gGoals[13] = _root.gGoals[13] + chartGoals1;
_root.gGoals[14] = _root.gGoals[14] + chartGoals2;
twin = calcWin(15, 16);
if (twin == 1) {
_root.gPoints[15] = _root.gPoints[15] + 3;
} else if (twin == 2) {
_root.gPoints[16] = _root.gPoints[16] + 3;
}
_root.gGoals[15] = _root.gGoals[15] + chartGoals1;
_root.gGoals[16] = _root.gGoals[16] + chartGoals2;
} else if (phase == 2) {
twin = calcWin(13, 15);
if (twin == 1) {
_root.gPoints[13] = _root.gPoints[13] + 3;
} else if (twin == 2) {
_root.gPoints[15] = _root.gPoints[15] + 3;
}
_root.gGoals[13] = _root.gGoals[13] + chartGoals1;
_root.gGoals[15] = _root.gGoals[15] + chartGoals2;
twin = calcWin(14, 16);
if (twin == 1) {
_root.gPoints[14] = _root.gPoints[14] + 3;
} else if (twin == 2) {
_root.gPoints[16] = _root.gPoints[16] + 3;
}
_root.gGoals[14] = _root.gGoals[14] + chartGoals1;
_root.gGoals[16] = _root.gGoals[16] + chartGoals2;
} else if (phase == 3) {
twin = calcWin(13, 16);
if (twin == 1) {
_root.gPoints[13] = _root.gPoints[13] + 3;
} else if (twin == 2) {
_root.gPoints[16] = _root.gPoints[16] + 3;
}
_root.gGoals[13] = _root.gGoals[13] + chartGoals1;
_root.gGoals[16] = _root.gGoals[16] + chartGoals2;
twin = calcWin(14, 15);
if (twin == 1) {
_root.gPoints[14] = _root.gPoints[14] + 3;
} else if (twin == 2) {
_root.gPoints[15] = _root.gPoints[15] + 3;
}
_root.gGoals[14] = _root.gGoals[14] + chartGoals1;
_root.gGoals[15] = _root.gGoals[15] + chartGoals2;
}
_root.gCal[4]++;
}
if (_root.lv == 1) {
var grp = "Group D";
} else if (_root.lv == 2) {
var grp = "Grupo D";
}
var t1 = _root.teamNames[13];
var t2 = _root.teamNames[14];
var t3 = _root.teamNames[15];
var t4 = _root.teamNames[16];
var p1 = _root.gPoints[13];
var p2 = _root.gPoints[14];
var p3 = _root.gPoints[15];
var p4 = _root.gPoints[16];
var g1 = _root.gGoals[13];
var g2 = _root.gGoals[14];
var g3 = _root.gGoals[15];
var g4 = _root.gGoals[16];
var teamPosition = [0, 4, 4, 4, 4];
var teamArray = [0, 0, 0];
var cc;
teamArray = [2, 3, 4];
cc = 0;
while (cc < 3) {
if (p1 > this["p" + teamArray[cc]]) {
teamPosition[1]--;
} else if (p1 == this["p" + teamArray[cc]]) {
if (g1 > this["g" + teamArray[cc]]) {
teamPosition[1]--;
}
}
cc++;
}
teamArray = [1, 3, 4];
cc = 0;
while (cc < 3) {
if (p2 > this["p" + teamArray[cc]]) {
teamPosition[2]--;
} else if (p2 == this["p" + teamArray[cc]]) {
if (g2 > this["g" + teamArray[cc]]) {
teamPosition[2]--;
}
}
cc++;
}
teamArray = [1, 2, 4];
cc = 0;
while (cc < 3) {
if (p3 > this["p" + teamArray[cc]]) {
teamPosition[3]--;
} else if (p3 == this["p" + teamArray[cc]]) {
if (g3 > this["g" + teamArray[cc]]) {
teamPosition[3]--;
}
}
cc++;
}
teamArray = [1, 2, 3];
cc = 0;
while (cc < 3) {
if (p4 > this["p" + teamArray[cc]]) {
teamPosition[4]--;
} else if (p4 == this["p" + teamArray[cc]]) {
if (g4 > this["g" + teamArray[cc]]) {
teamPosition[4]--;
}
}
cc++;
}
cc = 1;
while (cc < 5) {
cc++;
}
var plusNumber = 12;
if (phase == 3) {
cc = 1;
while (cc < 5) {
if (teamPosition[cc] == 1) {
_root.gTeams[7] = plusNumber + cc;
}
cc++;
}
cc = 1;
while (cc < 5) {
if (teamPosition[cc] == 2) {
_root.gTeams[8] = plusNumber + cc;
}
cc++;
}
}
}
Instance of Symbol 1645 MovieClip in Frame 11
onClipEvent (load) {
function calcWin(tm1, tm2) {
var _local9 = ((random(teamLevel[tm1]) + random(teamLevel[tm1])) + random(teamLevel[tm1])) + random(teamLevel[tm1]);
var _local8 = ((random(teamLevel[tm2]) + random(teamLevel[tm2])) + random(teamLevel[tm2])) + random(teamLevel[tm2]);
var _local3 = (random(teamLevel[tm1]) * 0.25) * _local9;
var _local2 = (random(teamLevel[tm2]) * 0.25) * _local8;
var _local5;
var _local7;
if (_local3 > _local2) {
_local5 = 1;
} else if (_local3 < _local2) {
_local5 = 2;
} else if (_local3 == _local2) {
_local7 = random(2) + 1;
this["pgoals" + _local7]++;
_local5 = _local7;
}
chartGoals1 = Math.round(_local3);
chartGoals2 = Math.round(_local2);
return(_local5);
}
var tm1 = 1;
var tm2 = 2;
var chartGoals1;
var chartGoals2;
var teamLevel = _root.teamLevel;
var phase = _root.gPhase;
var twin;
if (((phase > 0) && (phase < 4)) && (_root.gCal[5] < _root.gPhase)) {
if (phase == 1) {
twin = calcWin(17, 18);
if (twin == 1) {
_root.gPoints[17] = _root.gPoints[17] + 3;
} else if (twin == 2) {
_root.gPoints[18] = _root.gPoints[18] + 3;
}
_root.gGoals[17] = _root.gGoals[17] + chartGoals1;
_root.gGoals[18] = _root.gGoals[18] + chartGoals2;
twin = calcWin(19, 20);
if (twin == 1) {
_root.gPoints[19] = _root.gPoints[19] + 3;
} else if (twin == 2) {
_root.gPoints[20] = _root.gPoints[20] + 3;
}
_root.gGoals[19] = _root.gGoals[19] + chartGoals1;
_root.gGoals[20] = _root.gGoals[20] + chartGoals2;
} else if (phase == 2) {
twin = calcWin(17, 19);
if (twin == 1) {
_root.gPoints[17] = _root.gPoints[17] + 3;
} else if (twin == 2) {
_root.gPoints[19] = _root.gPoints[19] + 3;
}
_root.gGoals[17] = _root.gGoals[17] + chartGoals1;
_root.gGoals[19] = _root.gGoals[19] + chartGoals2;
twin = calcWin(18, 20);
if (twin == 1) {
_root.gPoints[18] = _root.gPoints[18] + 3;
} else if (twin == 2) {
_root.gPoints[20] = _root.gPoints[20] + 3;
}
_root.gGoals[18] = _root.gGoals[18] + chartGoals1;
_root.gGoals[20] = _root.gGoals[20] + chartGoals2;
} else if (phase == 3) {
twin = calcWin(17, 20);
if (twin == 1) {
_root.gPoints[17] = _root.gPoints[17] + 3;
} else if (twin == 2) {
_root.gPoints[20] = _root.gPoints[20] + 3;
}
_root.gGoals[17] = _root.gGoals[17] + chartGoals1;
_root.gGoals[20] = _root.gGoals[20] + chartGoals2;
twin = calcWin(18, 19);
if (twin == 1) {
_root.gPoints[18] = _root.gPoints[18] + 3;
} else if (twin == 2) {
_root.gPoints[19] = _root.gPoints[19] + 3;
}
_root.gGoals[18] = _root.gGoals[18] + chartGoals1;
_root.gGoals[19] = _root.gGoals[19] + chartGoals2;
}
_root.gCal[5]++;
}
if (_root.lv == 1) {
var grp = "Group E";
} else if (_root.lv == 2) {
var grp = "Grupo E";
}
var t1 = _root.teamNames[17];
var t2 = _root.teamNames[18];
var t3 = _root.teamNames[19];
var t4 = _root.teamNames[20];
var p1 = _root.gPoints[17];
var p2 = _root.gPoints[18];
var p3 = _root.gPoints[19];
var p4 = _root.gPoints[20];
var g1 = _root.gGoals[17];
var g2 = _root.gGoals[18];
var g3 = _root.gGoals[19];
var g4 = _root.gGoals[20];
var teamPosition = [0, 4, 4, 4, 4];
var teamArray = [0, 0, 0];
var cc;
teamArray = [2, 3, 4];
cc = 0;
while (cc < 3) {
if (p1 > this["p" + teamArray[cc]]) {
teamPosition[1]--;
} else if (p1 == this["p" + teamArray[cc]]) {
if (g1 > this["g" + teamArray[cc]]) {
teamPosition[1]--;
}
}
cc++;
}
teamArray = [1, 3, 4];
cc = 0;
while (cc < 3) {
if (p2 > this["p" + teamArray[cc]]) {
teamPosition[2]--;
} else if (p2 == this["p" + teamArray[cc]]) {
if (g2 > this["g" + teamArray[cc]]) {
teamPosition[2]--;
}
}
cc++;
}
teamArray = [1, 2, 4];
cc = 0;
while (cc < 3) {
if (p3 > this["p" + teamArray[cc]]) {
teamPosition[3]--;
} else if (p3 == this["p" + teamArray[cc]]) {
if (g3 > this["g" + teamArray[cc]]) {
teamPosition[3]--;
}
}
cc++;
}
teamArray = [1, 2, 3];
cc = 0;
while (cc < 3) {
if (p4 > this["p" + teamArray[cc]]) {
teamPosition[4]--;
} else if (p4 == this["p" + teamArray[cc]]) {
if (g4 > this["g" + teamArray[cc]]) {
teamPosition[4]--;
}
}
cc++;
}
cc = 1;
while (cc < 5) {
cc++;
}
var plusNumber = 16;
if (phase == 3) {
cc = 1;
while (cc < 5) {
if (teamPosition[cc] == 1) {
_root.gTeams[9] = plusNumber + cc;
}
cc++;
}
cc = 1;
while (cc < 5) {
if (teamPosition[cc] == 2) {
_root.gTeams[10] = plusNumber + cc;
}
cc++;
}
}
}
Instance of Symbol 1645 MovieClip in Frame 11
onClipEvent (load) {
function calcWin(tm1, tm2) {
var _local9 = ((random(teamLevel[tm1]) + random(teamLevel[tm1])) + random(teamLevel[tm1])) + random(teamLevel[tm1]);
var _local8 = ((random(teamLevel[tm2]) + random(teamLevel[tm2])) + random(teamLevel[tm2])) + random(teamLevel[tm2]);
var _local3 = (random(teamLevel[tm1]) * 0.25) * _local9;
var _local2 = (random(teamLevel[tm2]) * 0.25) * _local8;
var _local5;
var _local7;
if (_local3 > _local2) {
_local5 = 1;
} else if (_local3 < _local2) {
_local5 = 2;
} else if (_local3 == _local2) {
_local7 = random(2) + 1;
this["pgoals" + _local7]++;
_local5 = _local7;
}
chartGoals1 = Math.round(_local3);
chartGoals2 = Math.round(_local2);
return(_local5);
}
var tm1 = 1;
var tm2 = 2;
var chartGoals1;
var chartGoals2;
var teamLevel = _root.teamLevel;
var phase = _root.gPhase;
var twin;
if (((phase > 0) && (phase < 4)) && (_root.gCal[6] < _root.gPhase)) {
if (phase == 1) {
twin = calcWin(21, 22);
if (twin == 1) {
_root.gPoints[21] = _root.gPoints[21] + 3;
} else if (twin == 2) {
_root.gPoints[22] = _root.gPoints[22] + 3;
}
_root.gGoals[21] = _root.gGoals[21] + chartGoals1;
_root.gGoals[22] = _root.gGoals[22] + chartGoals2;
twin = calcWin(23, 24);
if (twin == 1) {
_root.gPoints[23] = _root.gPoints[23] + 3;
} else if (twin == 2) {
_root.gPoints[24] = _root.gPoints[24] + 3;
}
_root.gGoals[23] = _root.gGoals[23] + chartGoals1;
_root.gGoals[24] = _root.gGoals[24] + chartGoals2;
} else if (phase == 2) {
twin = calcWin(21, 23);
if (twin == 1) {
_root.gPoints[21] = _root.gPoints[21] + 3;
} else if (twin == 2) {
_root.gPoints[23] = _root.gPoints[23] + 3;
}
_root.gGoals[21] = _root.gGoals[21] + chartGoals1;
_root.gGoals[23] = _root.gGoals[23] + chartGoals2;
twin = calcWin(22, 24);
if (twin == 1) {
_root.gPoints[22] = _root.gPoints[22] + 3;
} else if (twin == 2) {
_root.gPoints[24] = _root.gPoints[24] + 3;
}
_root.gGoals[22] = _root.gGoals[22] + chartGoals1;
_root.gGoals[24] = _root.gGoals[24] + chartGoals2;
} else if (phase == 3) {
twin = calcWin(21, 24);
if (twin == 1) {
_root.gPoints[21] = _root.gPoints[21] + 3;
} else if (twin == 2) {
_root.gPoints[24] = _root.gPoints[24] + 3;
}
_root.gGoals[21] = _root.gGoals[21] + chartGoals1;
_root.gGoals[24] = _root.gGoals[24] + chartGoals2;
twin = calcWin(22, 23);
if (twin == 1) {
_root.gPoints[22] = _root.gPoints[22] + 3;
} else if (twin == 2) {
_root.gPoints[23] = _root.gPoints[23] + 3;
}
_root.gGoals[22] = _root.gGoals[22] + chartGoals1;
_root.gGoals[23] = _root.gGoals[23] + chartGoals2;
}
_root.gCal[6]++;
}
if (_root.lv == 1) {
var grp = "Group F";
} else if (_root.lv == 2) {
var grp = "Grupo F";
}
var t1 = _root.teamNames[21];
var t2 = _root.teamNames[22];
var t3 = _root.teamNames[23];
var t4 = _root.teamNames[24];
var p1 = _root.gPoints[21];
var p2 = _root.gPoints[22];
var p3 = _root.gPoints[23];
var p4 = _root.gPoints[24];
var g1 = _root.gGoals[21];
var g2 = _root.gGoals[22];
var g3 = _root.gGoals[23];
var g4 = _root.gGoals[24];
var teamPosition = [0, 4, 4, 4, 4];
var teamArray = [0, 0, 0];
var cc;
teamArray = [2, 3, 4];
cc = 0;
while (cc < 3) {
if (p1 > this["p" + teamArray[cc]]) {
teamPosition[1]--;
} else if (p1 == this["p" + teamArray[cc]]) {
if (g1 > this["g" + teamArray[cc]]) {
teamPosition[1]--;
}
}
cc++;
}
teamArray = [1, 3, 4];
cc = 0;
while (cc < 3) {
if (p2 > this["p" + teamArray[cc]]) {
teamPosition[2]--;
} else if (p2 == this["p" + teamArray[cc]]) {
if (g2 > this["g" + teamArray[cc]]) {
teamPosition[2]--;
}
}
cc++;
}
teamArray = [1, 2, 4];
cc = 0;
while (cc < 3) {
if (p3 > this["p" + teamArray[cc]]) {
teamPosition[3]--;
} else if (p3 == this["p" + teamArray[cc]]) {
if (g3 > this["g" + teamArray[cc]]) {
teamPosition[3]--;
}
}
cc++;
}
teamArray = [1, 2, 3];
cc = 0;
while (cc < 3) {
if (p4 > this["p" + teamArray[cc]]) {
teamPosition[4]--;
} else if (p4 == this["p" + teamArray[cc]]) {
if (g4 > this["g" + teamArray[cc]]) {
teamPosition[4]--;
}
}
cc++;
}
cc = 1;
while (cc < 5) {
cc++;
}
var plusNumber = 20;
if (phase == 3) {
cc = 1;
while (cc < 5) {
if (teamPosition[cc] == 1) {
_root.gTeams[11] = plusNumber + cc;
}
cc++;
}
cc = 1;
while (cc < 5) {
if (teamPosition[cc] == 2) {
_root.gTeams[12] = plusNumber + cc;
}
cc++;
}
}
}
Instance of Symbol 1645 MovieClip in Frame 11
onClipEvent (load) {
function calcWin(tm1, tm2) {
var _local9 = ((random(teamLevel[tm1]) + random(teamLevel[tm1])) + random(teamLevel[tm1])) + random(teamLevel[tm1]);
var _local8 = ((random(teamLevel[tm2]) + random(teamLevel[tm2])) + random(teamLevel[tm2])) + random(teamLevel[tm2]);
var _local3 = (random(teamLevel[tm1]) * 0.25) * _local9;
var _local2 = (random(teamLevel[tm2]) * 0.25) * _local8;
var _local5;
var _local7;
if (_local3 > _local2) {
_local5 = 1;
} else if (_local3 < _local2) {
_local5 = 2;
} else if (_local3 == _local2) {
_local7 = random(2) + 1;
this["pgoals" + _local7]++;
_local5 = _local7;
}
chartGoals1 = Math.round(_local3);
chartGoals2 = Math.round(_local2);
return(_local5);
}
var tm1 = 1;
var tm2 = 2;
var chartGoals1;
var chartGoals2;
var teamLevel = _root.teamLevel;
var phase = _root.gPhase;
var twin;
if (((phase > 0) && (phase < 4)) && (_root.gCal[7] < _root.gPhase)) {
if (phase == 1) {
twin = calcWin(25, 26);
if (twin == 1) {
_root.gPoints[25] = _root.gPoints[25] + 3;
} else if (twin == 2) {
_root.gPoints[26] = _root.gPoints[26] + 3;
}
_root.gGoals[25] = _root.gGoals[25] + chartGoals1;
_root.gGoals[26] = _root.gGoals[26] + chartGoals2;
twin = calcWin(27, 28);
if (twin == 1) {
_root.gPoints[27] = _root.gPoints[27] + 3;
} else if (twin == 2) {
_root.gPoints[28] = _root.gPoints[28] + 3;
}
_root.gGoals[27] = _root.gGoals[27] + chartGoals1;
_root.gGoals[28] = _root.gGoals[28] + chartGoals2;
} else if (phase == 2) {
twin = calcWin(25, 27);
if (twin == 1) {
_root.gPoints[25] = _root.gPoints[25] + 3;
} else if (twin == 2) {
_root.gPoints[27] = _root.gPoints[27] + 3;
}
_root.gGoals[25] = _root.gGoals[25] + chartGoals1;
_root.gGoals[27] = _root.gGoals[27] + chartGoals2;
twin = calcWin(26, 28);
if (twin == 1) {
_root.gPoints[26] = _root.gPoints[26] + 3;
} else if (twin == 2) {
_root.gPoints[28] = _root.gPoints[28] + 3;
}
_root.gGoals[26] = _root.gGoals[26] + chartGoals1;
_root.gGoals[28] = _root.gGoals[28] + chartGoals2;
} else if (phase == 3) {
twin = calcWin(25, 28);
if (twin == 1) {
_root.gPoints[25] = _root.gPoints[25] + 3;
} else if (twin == 2) {
_root.gPoints[28] = _root.gPoints[28] + 3;
}
_root.gGoals[25] = _root.gGoals[25] + chartGoals1;
_root.gGoals[28] = _root.gGoals[28] + chartGoals2;
twin = calcWin(26, 27);
if (twin == 1) {
_root.gPoints[26] = _root.gPoints[26] + 3;
} else if (twin == 2) {
_root.gPoints[27] = _root.gPoints[27] + 3;
}
_root.gGoals[26] = _root.gGoals[26] + chartGoals1;
_root.gGoals[27] = _root.gGoals[27] + chartGoals2;
}
_root.gCal[7]++;
}
if (_root.lv == 1) {
var grp = "Group G";
} else if (_root.lv == 2) {
var grp = "Grupo G";
}
var t1 = _root.teamNames[25];
var t2 = _root.teamNames[26];
var t3 = _root.teamNames[27];
var t4 = _root.teamNames[28];
var p1 = _root.gPoints[25];
var p2 = _root.gPoints[26];
var p3 = _root.gPoints[27];
var p4 = _root.gPoints[28];
var g1 = _root.gGoals[25];
var g2 = _root.gGoals[26];
var g3 = _root.gGoals[27];
var g4 = _root.gGoals[28];
var teamPosition = [0, 4, 4, 4, 4];
var teamArray = [0, 0, 0];
var cc;
teamArray = [2, 3, 4];
cc = 0;
while (cc < 3) {
if (p1 > this["p" + teamArray[cc]]) {
teamPosition[1]--;
} else if (p1 == this["p" + teamArray[cc]]) {
if (g1 > this["g" + teamArray[cc]]) {
teamPosition[1]--;
}
}
cc++;
}
teamArray = [1, 3, 4];
cc = 0;
while (cc < 3) {
if (p2 > this["p" + teamArray[cc]]) {
teamPosition[2]--;
} else if (p2 == this["p" + teamArray[cc]]) {
if (g2 > this["g" + teamArray[cc]]) {
teamPosition[2]--;
}
}
cc++;
}
teamArray = [1, 2, 4];
cc = 0;
while (cc < 3) {
if (p3 > this["p" + teamArray[cc]]) {
teamPosition[3]--;
} else if (p3 == this["p" + teamArray[cc]]) {
if (g3 > this["g" + teamArray[cc]]) {
teamPosition[3]--;
}
}
cc++;
}
teamArray = [1, 2, 3];
cc = 0;
while (cc < 3) {
if (p4 > this["p" + teamArray[cc]]) {
teamPosition[4]--;
} else if (p4 == this["p" + teamArray[cc]]) {
if (g4 > this["g" + teamArray[cc]]) {
teamPosition[4]--;
}
}
cc++;
}
cc = 1;
while (cc < 5) {
cc++;
}
var plusNumber = 24;
if (phase == 3) {
cc = 1;
while (cc < 5) {
if (teamPosition[cc] == 1) {
_root.gTeams[13] = plusNumber + cc;
}
cc++;
}
cc = 1;
while (cc < 5) {
if (teamPosition[cc] == 2) {
_root.gTeams[14] = plusNumber + cc;
}
cc++;
}
}
}
Instance of Symbol 1645 MovieClip in Frame 11
onClipEvent (load) {
function calcWin(tm1, tm2) {
var _local9 = ((random(teamLevel[tm1]) + random(teamLevel[tm1])) + random(teamLevel[tm1])) + random(teamLevel[tm1]);
var _local8 = ((random(teamLevel[tm2]) + random(teamLevel[tm2])) + random(teamLevel[tm2])) + random(teamLevel[tm2]);
var _local3 = (random(teamLevel[tm1]) * 0.25) * _local9;
var _local2 = (random(teamLevel[tm2]) * 0.25) * _local8;
var _local5;
var _local7;
if (_local3 > _local2) {
_local5 = 1;
} else if (_local3 < _local2) {
_local5 = 2;
} else if (_local3 == _local2) {
_local7 = random(2) + 1;
this["pgoals" + _local7]++;
_local5 = _local7;
}
chartGoals1 = Math.round(_local3);
chartGoals2 = Math.round(_local2);
return(_local5);
}
var tm1 = 1;
var tm2 = 2;
var chartGoals1;
var chartGoals2;
var teamLevel = _root.teamLevel;
var phase = _root.gPhase;
var twin;
if (((phase > 0) && (phase < 4)) && (_root.gCal[8] < _root.gPhase)) {
if (phase == 1) {
twin = calcWin(29, 30);
if (twin == 1) {
_root.gPoints[29] = _root.gPoints[29] + 3;
} else if (twin == 2) {
_root.gPoints[30] = _root.gPoints[30] + 3;
}
_root.gGoals[29] = _root.gGoals[29] + chartGoals1;
_root.gGoals[30] = _root.gGoals[30] + chartGoals2;
twin = calcWin(31, 32);
if (twin == 1) {
_root.gPoints[31] = _root.gPoints[31] + 3;
} else if (twin == 2) {
_root.gPoints[32] = _root.gPoints[32] + 3;
}
_root.gGoals[31] = _root.gGoals[31] + chartGoals1;
_root.gGoals[32] = _root.gGoals[32] + chartGoals2;
} else if (phase == 2) {
twin = calcWin(29, 31);
if (twin == 1) {
_root.gPoints[29] = _root.gPoints[29] + 3;
} else if (twin == 2) {
_root.gPoints[31] = _root.gPoints[31] + 3;
}
_root.gGoals[29] = _root.gGoals[29] + chartGoals1;
_root.gGoals[31] = _root.gGoals[31] + chartGoals2;
twin = calcWin(30, 32);
if (twin == 1) {
_root.gPoints[30] = _root.gPoints[30] + 3;
} else if (twin == 2) {
_root.gPoints[32] = _root.gPoints[32] + 3;
}
_root.gGoals[30] = _root.gGoals[30] + chartGoals1;
_root.gGoals[32] = _root.gGoals[32] + chartGoals2;
} else if (phase == 3) {
twin = calcWin(29, 32);
if (twin == 1) {
_root.gPoints[29] = _root.gPoints[29] + 3;
} else if (twin == 2) {
_root.gPoints[32] = _root.gPoints[32] + 3;
}
_root.gGoals[29] = _root.gGoals[29] + chartGoals1;
_root.gGoals[32] = _root.gGoals[32] + chartGoals2;
twin = calcWin(30, 31);
if (twin == 1) {
_root.gPoints[30] = _root.gPoints[30] + 3;
} else if (twin == 2) {
_root.gPoints[31] = _root.gPoints[31] + 3;
}
_root.gGoals[30] = _root.gGoals[30] + chartGoals1;
_root.gGoals[31] = _root.gGoals[31] + chartGoals2;
}
_root.gCal[8]++;
}
if (_root.lv == 1) {
var grp = "Group H";
} else if (_root.lv == 2) {
var grp = "Grupo H";
}
var t1 = _root.teamNames[29];
var t2 = _root.teamNames[30];
var t3 = _root.teamNames[31];
var t4 = _root.teamNames[32];
var p1 = _root.gPoints[29];
var p2 = _root.gPoints[30];
var p3 = _root.gPoints[31];
var p4 = _root.gPoints[32];
var g1 = _root.gGoals[29];
var g2 = _root.gGoals[30];
var g3 = _root.gGoals[31];
var g4 = _root.gGoals[32];
var teamPosition = [0, 4, 4, 4, 4];
var teamArray = [0, 0, 0];
var cc;
teamArray = [2, 3, 4];
cc = 0;
while (cc < 3) {
if (p1 > this["p" + teamArray[cc]]) {
teamPosition[1]--;
} else if (p1 == this["p" + teamArray[cc]]) {
if (g1 > this["g" + teamArray[cc]]) {
teamPosition[1]--;
}
}
cc++;
}
teamArray = [1, 3, 4];
cc = 0;
while (cc < 3) {
if (p2 > this["p" + teamArray[cc]]) {
teamPosition[2]--;
} else if (p2 == this["p" + teamArray[cc]]) {
if (g2 > this["g" + teamArray[cc]]) {
teamPosition[2]--;
}
}
cc++;
}
teamArray = [1, 2, 4];
cc = 0;
while (cc < 3) {
if (p3 > this["p" + teamArray[cc]]) {
teamPosition[3]--;
} else if (p3 == this["p" + teamArray[cc]]) {
if (g3 > this["g" + teamArray[cc]]) {
teamPosition[3]--;
}
}
cc++;
}
teamArray = [1, 2, 3];
cc = 0;
while (cc < 3) {
if (p4 > this["p" + teamArray[cc]]) {
teamPosition[4]--;
} else if (p4 == this["p" + teamArray[cc]]) {
if (g4 > this["g" + teamArray[cc]]) {
teamPosition[4]--;
}
}
cc++;
}
cc = 1;
while (cc < 5) {
cc++;
}
var plusNumber = 28;
if (phase == 3) {
cc = 1;
while (cc < 5) {
if (teamPosition[cc] == 1) {
_root.gTeams[15] = plusNumber + cc;
}
cc++;
}
cc = 1;
while (cc < 5) {
if (teamPosition[cc] == 2) {
_root.gTeams[16] = plusNumber + cc;
}
cc++;
}
}
}
Instance of Symbol 1651 MovieClip in Frame 11
onClipEvent (load) {
if (_root.gPhase == 0) {
gotoAndPlay (2);
var yes = true;
} else {
stop();
}
var c = 0;
}
onClipEvent (enterFrame) {
if (yes) {
c++;
if (c > 250) {
if (_alpha > 0) {
_alpha = (_alpha - 5);
}
}
}
}
Frame 12
avaiLeague = true;
_root.setCookie("database", "avaiLeague", _root.avaiLeague);
Instance of Symbol 1681 MovieClip in Frame 12
onClipEvent (load) {
function calcWin(tm1, tm2) {
var _local9 = ((random(teamLevel[tm1]) + random(teamLevel[tm1])) + random(teamLevel[tm1])) + random(teamLevel[tm1]);
var _local8 = ((random(teamLevel[tm2]) + random(teamLevel[tm2])) + random(teamLevel[tm2])) + random(teamLevel[tm2]);
var _local3 = (random(teamLevel[tm1]) * 0.25) * _local9;
var _local2 = (random(teamLevel[tm2]) * 0.25) * _local8;
var _local5;
var _local7;
if (_local3 > _local2) {
_local5 = 1;
} else if (_local3 < _local2) {
_local5 = 2;
} else if (_local3 == _local2) {
_local7 = random(2) + 1;
this["pgoals" + _local7]++;
_local5 = _local7;
}
chartGoals1 = Math.round(_local3);
chartGoals2 = Math.round(_local2);
return(_local5);
}
var gameArray = [0];
gameArray.push(_root.gTeams[1]);
gameArray.push(_root.gTeams[4]);
gameArray.push(_root.gTeams[2]);
gameArray.push(_root.gTeams[3]);
gameArray.push(_root.gTeams[5]);
gameArray.push(_root.gTeams[8]);
gameArray.push(_root.gTeams[6]);
gameArray.push(_root.gTeams[7]);
gameArray.push(_root.gTeams[9]);
gameArray.push(_root.gTeams[12]);
gameArray.push(_root.gTeams[10]);
gameArray.push(_root.gTeams[11]);
gameArray.push(_root.gTeams[13]);
gameArray.push(_root.gTeams[16]);
gameArray.push(_root.gTeams[14]);
gameArray.push(_root.gTeams[15]);
var cc = 1;
while (cc < 17) {
this["t" + cc] = _root.teamNames[gameArray[cc]];
cc++;
}
var iam;
if (_root.gTeams[1] == 1) {
_root.teamToFace = _root.gTeams[4];
iam = 1;
} else if (_root.gTeams[2] == 1) {
_root.teamToFace = _root.gTeams[3];
iam = 2;
}
var tm1 = 1;
var tm2 = 2;
var chartGoals1;
var chartGoals2;
var teamLevel = _root.teamLevel;
var twin;
var tteam1;
var tteam2;
if (_root.gPhase == 5) {
trace("PHASE = 5 SO WE'RE DECIDING DA TEAMSAH!!!!!!!!");
if (iam == 1) {
if (_root.iWin) {
w1.gotoAndStop(2);
_root.gTeams2[1] = 1;
} else {
w2.gotoAndStop(2);
_root.gTeams2[1] = gameArray[2];
}
tteam1 = gameArray[3];
tteam2 = gameArray[4];
twin = calcWin(tteam1, tteam2);
if (twin == 1) {
w3.gotoAndStop(2);
_root.gTeams2[2] = tteam1;
} else if (twin == 2) {
w4.gotoAndStop(2);
_root.gTeams2[2] = tteam2;
}
tteam1 = gameArray[5];
tteam2 = gameArray[6];
twin = calcWin(tteam1, tteam2);
if (twin == 1) {
w5.gotoAndStop(2);
_root.gTeams2[3] = tteam1;
} else if (twin == 2) {
w6.gotoAndStop(2);
_root.gTeams2[3] = tteam2;
}
tteam1 = gameArray[7];
tteam2 = gameArray[8];
twin = calcWin(tteam1, tteam2);
if (twin == 1) {
w7.gotoAndStop(2);
_root.gTeams2[4] = tteam1;
} else if (twin == 2) {
w8.gotoAndStop(2);
_root.gTeams2[4] = tteam2;
}
tteam1 = gameArray[9];
tteam2 = gameArray[10];
twin = calcWin(tteam1, tteam2);
if (twin == 1) {
w9.gotoAndStop(2);
_root.gTeams2[5] = tteam1;
} else if (twin == 2) {
w10.gotoAndStop(2);
_root.gTeams2[5] = tteam2;
}
tteam1 = gameArray[11];
tteam2 = gameArray[12];
twin = calcWin(tteam1, tteam2);
if (twin == 1) {
w11.gotoAndStop(2);
_root.gTeams2[6] = tteam1;
} else if (twin == 2) {
w12.gotoAndStop(2);
_root.gTeams2[6] = tteam2;
}
tteam1 = gameArray[13];
tteam2 = gameArray[14];
twin = calcWin(tteam1, tteam2);
if (twin == 1) {
w13.gotoAndStop(2);
_root.gTeams2[7] = tteam1;
} else if (twin == 2) {
w14.gotoAndStop(2);
_root.gTeams2[7] = tteam2;
}
tteam1 = gameArray[15];
tteam2 = gameArray[16];
twin = calcWin(tteam1, tteam2);
if (twin == 1) {
w15.gotoAndStop(2);
_root.gTeams2[8] = tteam1;
} else if (twin == 2) {
w16.gotoAndStop(2);
_root.gTeams2[8] = tteam2;
}
} else if (iam == 2) {
if (_root.iWin) {
w3.gotoAndStop(2);
_root.gTeams2[2] = 1;
} else {
w4.gotoAndStop(2);
_root.gTeams2[2] = gameArray[4];
}
tteam1 = gameArray[1];
tteam2 = gameArray[2];
twin = calcWin(tteam1, tteam2);
if (twin == 1) {
_root.gTeams2[1] = tteam1;
w1.gotoAndStop(2);
} else if (twin == 2) {
w2.gotoAndStop(2);
_root.gTeams2[1] = tteam2;
}
tteam1 = gameArray[5];
tteam2 = gameArray[6];
twin = calcWin(tteam1, tteam2);
if (twin == 1) {
w5.gotoAndStop(2);
_root.gTeams2[3] = tteam1;
} else if (twin == 2) {
w6.gotoAndStop(2);
_root.gTeams2[3] = tteam2;
}
tteam1 = gameArray[7];
tteam2 = gameArray[8];
twin = calcWin(tteam1, tteam2);
if (twin == 1) {
w7.gotoAndStop(2);
_root.gTeams2[4] = tteam1;
} else if (twin == 2) {
w8.gotoAndStop(2);
_root.gTeams2[4] = tteam2;
}
tteam1 = gameArray[9];
tteam2 = gameArray[10];
twin = calcWin(tteam1, tteam2);
if (twin == 1) {
w9.gotoAndStop(2);
_root.gTeams2[5] = tteam1;
} else if (twin == 2) {
w10.gotoAndStop(2);
_root.gTeams2[5] = tteam2;
}
tteam1 = gameArray[11];
tteam2 = gameArray[12];
twin = calcWin(tteam1, tteam2);
if (twin == 1) {
w11.gotoAndStop(2);
_root.gTeams2[6] = tteam1;
} else if (twin == 2) {
w12.gotoAndStop(2);
_root.gTeams2[6] = tteam2;
}
tteam1 = gameArray[13];
tteam2 = gameArray[14];
twin = calcWin(tteam1, tteam2);
if (twin == 1) {
w13.gotoAndStop(2);
_root.gTeams2[7] = tteam1;
} else if (twin == 2) {
w14.gotoAndStop(2);
_root.gTeams2[7] = tteam2;
}
tteam1 = gameArray[15];
tteam2 = gameArray[16];
twin = calcWin(tteam1, tteam2);
if (twin == 1) {
w15.gotoAndStop(2);
_root.gTeams2[8] = tteam1;
} else if (twin == 2) {
w16.gotoAndStop(2);
_root.gTeams2[8] = tteam2;
}
}
}
if (_root.iWin) {
}
}
Instance of Symbol 1695 MovieClip in Frame 12
onClipEvent (load) {
if (_root.gPhase == 5) {
if (_root.iWin) {
_visible = true;
gotoAndStop (2);
} else {
_visible = true;
}
} else {
_visible = false;
}
}
Instance of Symbol 1703 MovieClip in Frame 12
onClipEvent (load) {
if (_root.gPhase == 4) {
gotoAndStop (2);
} else if (_root.gPhase == 5) {
if (_root.iWin) {
gotoAndStop (2);
} else {
stop();
}
}
}
Instance of Symbol 1718 MovieClip in Frame 13
onClipEvent (load) {
function calcWin(tm1, tm2) {
var _local9 = ((random(teamLevel[tm1]) + random(teamLevel[tm1])) + random(teamLevel[tm1])) + random(teamLevel[tm1]);
var _local8 = ((random(teamLevel[tm2]) + random(teamLevel[tm2])) + random(teamLevel[tm2])) + random(teamLevel[tm2]);
var _local3 = (random(teamLevel[tm1]) * 0.25) * _local9;
var _local2 = (random(teamLevel[tm2]) * 0.25) * _local8;
var _local5;
var _local7;
if (_local3 > _local2) {
_local5 = 1;
} else if (_local3 < _local2) {
_local5 = 2;
} else if (_local3 == _local2) {
_local7 = random(2) + 1;
this["pgoals" + _local7]++;
_local5 = _local7;
}
chartGoals1 = Math.round(_local3);
chartGoals2 = Math.round(_local2);
return(_local5);
}
var gameArray = [0];
gameArray.push(_root.gTeams2[1]);
gameArray.push(_root.gTeams2[2]);
gameArray.push(_root.gTeams2[3]);
gameArray.push(_root.gTeams2[4]);
gameArray.push(_root.gTeams2[5]);
gameArray.push(_root.gTeams2[6]);
gameArray.push(_root.gTeams2[7]);
gameArray.push(_root.gTeams2[8]);
var cc = 1;
while (cc < 9) {
this["t" + cc] = _root.teamNames[gameArray[cc]];
cc++;
}
var iam;
if (_root.gTeams2[1] == 1) {
_root.teamToFace = _root.gTeams2[2];
iam = 1;
} else if (_root.gTeams2[2] == 1) {
_root.teamToFace = _root.gTeams2[1];
iam = 2;
}
var tm1 = 1;
var tm2 = 2;
var chartGoals1;
var chartGoals2;
var teamLevel = _root.teamLevel;
var twin;
var tteam1;
var tteam2;
if (_root.gPhase == 7) {
trace("PHASE = 7 SO WE'RE DECIDING DA TEAMSAH YO!!!!!!!!");
if (_root.iWin) {
w1.gotoAndStop(2);
_root.gTeams3[1] = 1;
} else {
w2.gotoAndStop(2);
_root.gTeams3[1] = gameArray[2];
}
tteam1 = gameArray[3];
tteam2 = gameArray[4];
twin = calcWin(tteam1, tteam2);
if (twin == 1) {
w3.gotoAndStop(2);
_root.gTeams3[2] = tteam1;
} else if (twin == 2) {
w4.gotoAndStop(2);
_root.gTeams3[2] = tteam2;
}
tteam1 = gameArray[5];
tteam2 = gameArray[6];
twin = calcWin(tteam1, tteam2);
if (twin == 1) {
w5.gotoAndStop(2);
_root.gTeams3[3] = tteam1;
} else if (twin == 2) {
w6.gotoAndStop(2);
_root.gTeams3[3] = tteam2;
}
tteam1 = gameArray[7];
tteam2 = gameArray[8];
twin = calcWin(tteam1, tteam2);
if (twin == 1) {
w7.gotoAndStop(2);
_root.gTeams3[4] = tteam1;
} else if (twin == 2) {
w8.gotoAndStop(2);
_root.gTeams3[4] = tteam2;
}
}
if (_root.iWin) {
}
}
Instance of Symbol 1695 MovieClip in Frame 13
onClipEvent (load) {
if (_root.gPhase == 7) {
if (_root.iWin) {
_visible = true;
gotoAndStop (2);
} else {
_visible = true;
}
} else {
_visible = false;
}
}
Instance of Symbol 1703 MovieClip in Frame 13
onClipEvent (load) {
if (_root.gPhase == 6) {
gotoAndStop (2);
} else if (_root.gPhase == 7) {
if (_root.iWin) {
gotoAndStop (2);
} else {
stop();
}
}
}
Instance of Symbol 1726 MovieClip in Frame 14
onClipEvent (load) {
function calcWin(tm1, tm2) {
var _local9 = ((random(teamLevel[tm1]) + random(teamLevel[tm1])) + random(teamLevel[tm1])) + random(teamLevel[tm1]);
var _local8 = ((random(teamLevel[tm2]) + random(teamLevel[tm2])) + random(teamLevel[tm2])) + random(teamLevel[tm2]);
var _local3 = (random(teamLevel[tm1]) * 0.25) * _local9;
var _local2 = (random(teamLevel[tm2]) * 0.25) * _local8;
var _local5;
var _local7;
if (_local3 > _local2) {
_local5 = 1;
} else if (_local3 < _local2) {
_local5 = 2;
} else if (_local3 == _local2) {
_local7 = random(2) + 1;
this["pgoals" + _local7]++;
_local5 = _local7;
}
chartGoals1 = Math.round(_local3);
chartGoals2 = Math.round(_local2);
return(_local5);
}
var gameArray = [0];
gameArray.push(_root.gTeams3[1]);
gameArray.push(_root.gTeams3[2]);
gameArray.push(_root.gTeams3[3]);
gameArray.push(_root.gTeams3[4]);
var cc = 1;
while (cc < 5) {
this["t" + cc] = _root.teamNames[gameArray[cc]];
cc++;
}
var iam;
if (_root.gTeams3[1] == 1) {
_root.teamToFace = _root.gTeams3[2];
iam = 1;
} else if (_root.gTeams3[2] == 1) {
_root.teamToFace = _root.gTeams3[1];
iam = 2;
}
var tm1 = 1;
var tm2 = 2;
var chartGoals1;
var chartGoals2;
var teamLevel = _root.teamLevel;
var twin;
var tteam1;
var tteam2;
if (_root.gPhase == 9) {
trace("PHASE = 9 SO WE'RE DECIDING DA TEAMSAH YO DOODLE!!!!!!!!");
if (_root.iWin) {
w1.gotoAndStop(2);
_root.gTeams4[1] = 1;
} else {
w2.gotoAndStop(2);
_root.gTeams4[1] = gameArray[2];
}
tteam1 = gameArray[3];
tteam2 = gameArray[4];
twin = calcWin(tteam1, tteam2);
if (twin == 1) {
w3.gotoAndStop(2);
_root.gTeams4[2] = tteam1;
} else if (twin == 2) {
w4.gotoAndStop(2);
_root.gTeams4[2] = tteam2;
}
}
if (_root.iWin) {
}
}
Instance of Symbol 1695 MovieClip in Frame 14
onClipEvent (load) {
if (_root.gPhase == 9) {
if (_root.iWin) {
_visible = true;
gotoAndStop (2);
} else {
_visible = true;
}
} else {
_visible = false;
}
}
Instance of Symbol 1703 MovieClip in Frame 14
onClipEvent (load) {
if (_root.gPhase == 8) {
gotoAndStop (2);
} else if (_root.gPhase == 9) {
if (_root.iWin) {
gotoAndStop (2);
} else {
stop();
}
}
}
Frame 15
if ((gPhase == 11) && (iWin)) {
nextFrame();
}
Instance of Symbol 1737 MovieClip in Frame 15
onClipEvent (load) {
function calcWin(tm1, tm2) {
var _local9 = ((random(teamLevel[tm1]) + random(teamLevel[tm1])) + random(teamLevel[tm1])) + random(teamLevel[tm1]);
var _local8 = ((random(teamLevel[tm2]) + random(teamLevel[tm2])) + random(teamLevel[tm2])) + random(teamLevel[tm2]);
var _local3 = (random(teamLevel[tm1]) * 0.25) * _local9;
var _local2 = (random(teamLevel[tm2]) * 0.25) * _local8;
var _local5;
var _local7;
if (_local3 > _local2) {
_local5 = 1;
} else if (_local3 < _local2) {
_local5 = 2;
} else if (_local3 == _local2) {
_local7 = random(2) + 1;
this["pgoals" + _local7]++;
_local5 = _local7;
}
chartGoals1 = Math.round(_local3);
chartGoals2 = Math.round(_local2);
return(_local5);
}
var gameArray = [0];
gameArray.push(_root.gTeams4[1]);
gameArray.push(_root.gTeams4[2]);
var cc = 1;
while (cc < 3) {
this["t" + cc] = _root.teamNames[gameArray[cc]];
cc++;
}
var iam;
if (_root.gTeams3[1] == 1) {
_root.teamToFace = _root.gTeams4[2];
iam = 1;
} else if (_root.gTeams3[2] == 1) {
_root.teamToFace = _root.gTeams4[1];
iam = 2;
}
var tm1 = 1;
var tm2 = 2;
var chartGoals1;
var chartGoals2;
var teamLevel = _root.teamLevel;
var twin;
var tteam1;
var tteam2;
if (_root.gPhase == 9) {
trace("PHASE = 11 SO WE'RE DECIDING DA TEAMSAH YO DOODLE!!!!!!!!");
if (_root.iWin) {
w1.gotoAndStop(2);
trace("THANK GOD WE WON!!!");
} else {
w2.gotoAndStop(2);
}
}
if (_root.iWin) {
}
}
Instance of Symbol 1695 MovieClip in Frame 15
onClipEvent (load) {
if (_root.gPhase == 11) {
if (_root.iWin) {
_visible = true;
gotoAndStop (4);
} else {
gotoAndStop (3);
_visible = true;
}
} else {
_visible = false;
}
}
Instance of Symbol 1703 MovieClip in Frame 15
onClipEvent (load) {
if (_root.gPhase == 10) {
gotoAndStop (2);
} else if (_root.gPhase == 11) {
if (_root.iWin) {
gotoAndStop (2);
} else {
stop();
}
}
}
Frame 16
trophiesUnlocked[1] = 1;
Instance of Symbol 1754 MovieClip in Frame 16
onClipEvent (load) {
stop();
}
Instance of Symbol 1780 MovieClip in Frame 18
onClipEvent (load) {
trace("GAD GAD GAD GAD GAD GAD GAD");
if (_root.playingNow == 1) {
stop();
var sscore = _root.gScore;
} else if (_root.playingNow == 2) {
gotoAndStop (2);
var sscore = _root.leaScore;
} else if (_root.playingNow == 3) {
gotoAndStop (3);
var sscore = _root.arcScore;
}
}
Frame 19
if (playingNow == 1) {
if ((gPhase >= 0) && (gPhase < 4)) {
team2 = gPhase + 2;
} else {
team2 = teamToFace;
}
}
stop();
stopAllSounds();
Frame 20
stop();
var g1 = 0;
var g2 = 0;
var didTrick = 0;
playedMusic = false;
Instance of Symbol 2157 MovieClip in Frame 20
onClipEvent (load) {
_yscale = 70;
_xscale = 70;
}
Frame 21
var leaDraw = false;
gup1.text = g1;
gup2.text = g2;
if (g1 > g2) {
myPoints = myPoints + (g1 - g2);
plusPoints = g1 - g2;
if (_root.playingNow == 1) {
_root.gScore = _root.gScore + (50 + (plusPoints * 20));
if (!autoPickUp) {
_root.gScore = _root.gScore + 20;
}
if (!autoPick) {
_root.gScore = _root.gScore + 40;
}
_root.setCookie("database", "gScore", _root.gScore);
} else if (_root.playingNow == 2) {
_root.leaScore = _root.leaScore + (50 + (plusPoints * 20));
if (!autoPickUp) {
_root.leaScore = _root.leaScore + 20;
}
if (!autoPick) {
_root.leaScore = _root.leaScore + 40;
}
_root.setCookie("database", "leaScore", _root.leaScore);
plusPoints = plusPoints + 2;
myPoints = myPoints + 2;
} else if (_root.playingNow == 3) {
_root.arcScore = _root.arcScore + (50 + (plusPoints * 20));
if (!autoPickUp) {
_root.arcScore = _root.arcScore + 20;
}
if (!autoPick) {
_root.arcScore = _root.arcScore + 40;
}
_root.setCookie("database", "arcScore", _root.arcScore);
_root.arcWon[arcPick] = 1;
_root.setCookie("database", "arcScore", _root.arcWon);
}
} else {
plusPoints = 0;
if ((_root.playingNow == 2) && (g1 == g2)) {
myPoints++;
plusPoints++;
leaDraw = true;
if (!autoPickUp) {
_root.leaScore = _root.leaScore + 10;
}
if (!autoPick) {
_root.leaScore = _root.leaScore + 20;
}
}
}
if (_root.lv == 1) {
var plusMsg = ("Points earned: " + plusPoints);
var myMsg = ("Total points: " + myPoints);
} else if (_root.lv == 2) {
var plusMsg = ("Puntos ganados: " + plusPoints);
var myMsg = ("Total de puntos: " + myPoints);
}
_root.setCookie("database", "myPoints", _root.myPoints);
if (teamLevel[team2] > teamLevel[1]) {
teamLevel[1] = teamLevel[team2];
_root.setCookie("database", "teamLevel", _root.teamLevel);
}
var score;
var strurl;
Instance of Symbol 313 MovieClip in Frame 21
onClipEvent (enterFrame) {
if (hitTest(_root._xmouse, _root._ymouse, true)) {
_root.msg.cc++;
if (_root.lv == 1) {
_root.ttext = "When submitting your score it will reset to 0. It is saved though, so you can keep it for later sessions.";
} else if (_root.lv == 2) {
_root.ttext = "Cuando tu punteo sea ingresado ser\u00E1 regresado a 0, pero tu punteo actual se graba para cuando vuelvas a jugar.";
}
}
}
Instance of Symbol 1780 MovieClip in Frame 21
onClipEvent (load) {
trace("GAD GAD GAD GAD GAD GAD GAD");
if (_root.playingNow == 1) {
stop();
var sscore = _root.gScore;
} else if (_root.playingNow == 2) {
gotoAndStop (2);
var sscore = _root.leaScore;
} else if (_root.playingNow == 3) {
gotoAndStop (3);
var sscore = _root.arcScore;
}
}
Instance of Symbol 2282 MovieClip in Frame 21
onClipEvent (load) {
_visible = false;
if (_root.didTrick == 3) {
_visible = true;
_root.trophiesUnlocked[7] = 1;
_root.trophiesUnlocked[6] = 1;
if (_root.trophiesUnlocked[7] == 0) {
inner.gotoAndStop(7);
} else if (_root.trophiesUnlocked[6] == 0) {
inner.gotoAndStop(6);
}
} else if ((_root.didTrick == 1) && (_root.trophiesUnlocked[6] == 0)) {
_visible = true;
_root.trophiesUnlocked[6] = 1;
inner.gotoAndStop(6);
}
if ((_root.didTrick == 2) && (_root.trophiesUnlocked[7] == 0)) {
_visible = true;
_root.trophiesUnlocked[7] = 1;
inner.gotoAndStop(7);
}
if ((_root.g2 == 0) && (_root.trophiesUnlocked[4] == 0)) {
_visible = true;
_root.trophiesUnlocked[4] = 1;
inner.gotoAndStop(4);
}
if ((_root.g1 >= 10) && (_root.trophiesUnlocked[5] == 0)) {
_visible = true;
_root.trophiesUnlocked[5] = 1;
inner.gotoAndStop(5);
}
if (_visible) {
_root.msx._x = 81.7;
}
_root.setCookie("database", "trophiesUnlocked", _root.trophiesUnlocked);
if (inner._currentframe == 1) {
inner.gotoAndStop(7);
}
}
Instance of Symbol 313 MovieClip "msx" in Frame 21
onClipEvent (enterFrame) {
if (hitTest(_root._xmouse, _root._ymouse, true)) {
_root.msg.cc++;
_root.ttext = "Too look at your trophies go to the Trophies section in the main menu.";
}
}
Instance of Symbol 343 MovieClip "msg" in Frame 21
onClipEvent (load) {
var ttext = "";
var cc = 0;
}
onClipEvent (enterFrame) {
_x = _root._xmouse;
_y = _root._ymouse;
if (cc > 0) {
ttext = _root.ttext;
} else {
ttext = "";
}
cc = 0;
}
Instance of Symbol 978 MovieClip "pl1" in Frame 22
onClipEvent (load) {
var ctrl = false;
var plNum = 0;
var theNum = (((_root.team1 * 3) - 2) + plNum);
var eyes = _root.eyes[theNum];
var mouth = _root.mouth[theNum];
var nose = _root.nose[theNum];
var beard = _root.beard[theNum];
var brows = _root.brows[theNum];
var hair = _root.hair[theNum];
var shirt = _root.shirtColor[theNum];
var short = _root.shortColor[theNum];
var skinn = _root.skinColor[theNum];
}
Instance of Symbol 978 MovieClip "pl2" in Frame 22
onClipEvent (load) {
var ctrl = false;
var plNum = 1;
var theNum = (((_root.team1 * 3) - 2) + plNum);
var eyes = _root.eyes[theNum];
var mouth = _root.mouth[theNum];
var nose = _root.nose[theNum];
var beard = _root.beard[theNum];
var brows = _root.brows[theNum];
var hair = _root.hair[theNum];
var shirt = _root.shirtColor[theNum];
var short = _root.shortColor[theNum];
var skinn = _root.skinColor[theNum];
}
Instance of Symbol 978 MovieClip "pl3" in Frame 22
onClipEvent (load) {
var ctrl = false;
var plNum = 2;
var theNum = (((_root.team1 * 3) - 2) + plNum);
var eyes = _root.eyes[theNum];
var mouth = _root.mouth[theNum];
var nose = _root.nose[theNum];
var beard = _root.beard[theNum];
var brows = _root.brows[theNum];
var hair = _root.hair[theNum];
var shirt = _root.shirtColor[theNum];
var short = _root.shortColor[theNum];
var skinn = _root.skinColor[theNum];
}
Frame 23
var limJump = 6;
var limSpeed = 2;
var limStrength = 0.3;
if (playerTricks[pplayer] == 1) {
bb1._alpha = 52;
ms1._x = 517;
} else if (playerTricks[pplayer] == 2) {
bb2._alpha = 52;
ms2._x = 516;
} else if (playerTricks[pplayer] == 3) {
bb1._alpha = 52;
bb2._alpha = 52;
ms1._x = 517;
ms2._x = 516;
}
Instance of Symbol 313 MovieClip "ms1" in Frame 23
onClipEvent (enterFrame) {
if (hitTest(_root._xmouse, _root._ymouse, true)) {
_root.msg.cc++;
if (_root.lv == 1) {
_root.ttext = "Use this trick by pressing S when hitting the ball in the air. To learn how to use it go to the training.";
} else if (_root.lv == 2) {
_root.ttext = "Usa este truco presionando S cuando le pegues al bal\u00F3n en el aire. Para aprender a usarlo ve al entrenamiento.";
}
}
}
Instance of Symbol 978 MovieClip "pl1" in Frame 23
onClipEvent (load) {
var ctrl = false;
var plNum = 0;
var theNum = _parent.pplayer;
var eyes = _root.eyes[theNum];
var mouth = _root.mouth[theNum];
var nose = _root.nose[theNum];
var beard = _root.beard[theNum];
var brows = _root.brows[theNum];
var hair = _root.hair[theNum];
var shirt = _root.shirtColor[theNum];
var short = _root.shortColor[theNum];
var skinn = _root.skinColor[theNum];
}
Instance of Symbol 2299 MovieClip in Frame 23
onClipEvent (load) {
var sscale;
}
onClipEvent (enterFrame) {
sscale = ((0.6 + _root.playerPlusStrength[_root.pplayer]) / 0.9) * 100;
inner._xscale = sscale;
}
Instance of Symbol 2299 MovieClip in Frame 23
onClipEvent (load) {
var sscale;
}
onClipEvent (enterFrame) {
sscale = ((7 + _root.playerPlusSpeed[_root.pplayer]) / 9) * 100;
inner._xscale = sscale;
}
Instance of Symbol 2299 MovieClip in Frame 23
onClipEvent (load) {
var sscale;
}
onClipEvent (enterFrame) {
sscale = ((_root.playerPlusJump[_root.pplayer] + 14) / 20) * 100;
inner._xscale = sscale;
}
Instance of Symbol 313 MovieClip "ms2" in Frame 23
onClipEvent (enterFrame) {
if (hitTest(_root._xmouse, _root._ymouse, true)) {
_root.msg.cc++;
if (_root.lv == 1) {
_root.ttext = "Use this trick by holding S and Down when hitting the ball in the air. To learn how to use it go to the training.";
} else if (_root.lv == 2) {
_root.ttext = "Usa este truco presionando S y Abajo al pegarle al bal\u00F3n. Para aprender a usarlo ve al entrenamiento.";
}
}
}
Instance of Symbol 343 MovieClip "msg" in Frame 23
onClipEvent (load) {
var ttext = "";
var cc = 0;
}
onClipEvent (enterFrame) {
_x = _root._xmouse;
_y = _root._ymouse;
if (cc > 0) {
ttext = _root.ttext;
} else {
ttext = "";
}
cc = 0;
}
Frame 24
var inStyle = (_root.unlockedBall + 2);
Instance of Symbol 2470 MovieClip "h1" in Frame 24
onClipEvent (load) {
var eyes = 1;
var mouth = 4;
var nose = 1;
var beard = 1;
var brows = 1;
var hair = (111 + _root.unlockedHair);
var shirt = 1;
var short = 1;
var skinn = 1;
}
Instance of Symbol 2470 MovieClip "h2" in Frame 24
onClipEvent (load) {
var eyes = (45 + _root.unlockedEyes);
var mouth = 4;
var nose = 1;
var beard = 1;
var brows = 1;
var hair = 1;
var shirt = 1;
var short = 1;
var skinn = 1;
}
Instance of Symbol 2470 MovieClip "h3" in Frame 24
onClipEvent (load) {
var eyes = 1;
var mouth = 4;
var nose = (11 + _root.unlockedNose);
var beard = 1;
var brows = 1;
var hair = 1;
var shirt = 1;
var short = 1;
var skinn = 1;
}
Instance of Symbol 2470 MovieClip "h4" in Frame 24
onClipEvent (load) {
var eyes = 1;
var mouth = (24 + _root.unlockedMouth);
var nose = 1;
var beard = 1;
var brows = 1;
var hair = 1;
var shirt = 1;
var short = 1;
var skinn = 1;
}
Instance of Symbol 2475 MovieClip in Frame 24
onClipEvent (load) {
this.ballStyle = _root.inStyle;
}
Instance of Symbol 2478 MovieClip in Frame 24
onClipEvent (load) {
if (_root.unlockedBall >= 6) {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 2478 MovieClip in Frame 24
onClipEvent (load) {
if (_root.unlockedHair >= 8) {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 2478 MovieClip in Frame 24
onClipEvent (load) {
if (_root.unlockedEyes >= 8) {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 2478 MovieClip in Frame 24
onClipEvent (load) {
if (_root.unlockedNose >= 3) {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 2478 MovieClip in Frame 24
onClipEvent (load) {
if (_root.unlockedMouth >= 5) {
_visible = true;
} else {
_visible = false;
}
}
Frame 26
gotoAndStop (24);
Frame 27
if (leaPhase == 0) {
var rrndm;
var llcount = 2;
leaTeams[1] = 1;
leaPicked[1] = 1;
while (llcount < 33) {
rrndm = random(32) + 1;
while (leaPicked[rrndm] == 1) {
rrndm = random(32) + 1;
}
leaPicked[rrndm] = 1;
leaTeams[llcount] = rrndm;
llcount++;
}
_root.setCookie("database", "leaTeams", _root.leaTeams);
trace("teams" + leaTeams);
leaPhase = 1;
}
if (leaPhase == 1) {
leaMatchTeams = [0, 1, 16, 2, 15, 3, 14, 4, 13, 5, 12, 6, 11, 7, 10, 8, 9];
} else if (leaPhase == 2) {
leaMatchTeams = [0, 15, 1, 16, 14, 2, 13, 3, 12, 4, 11, 5, 10, 6, 9, 7, 8];
} else if (leaPhase == 3) {
leaMatchTeams = [0, 1, 14, 15, 13, 16, 12, 2, 11, 3, 10, 4, 9, 5, 8, 6, 7];
} else if (leaPhase == 4) {
leaMatchTeams = [0, 13, 1, 14, 12, 15, 11, 16, 10, 2, 9, 3, 8, 4, 7, 5, 6];
} else if (leaPhase == 5) {
leaMatchTeams = [0, 1, 12, 13, 11, 14, 10, 15, 9, 16, 8, 2, 7, 3, 6, 4, 5];
} else if (leaPhase == 6) {
leaMatchTeams = [0, 11, 1, 12, 10, 13, 9, 14, 8, 15, 7, 16, 6, 2, 5, 3, 4];
} else if (leaPhase == 7) {
leaMatchTeams = [0, 1, 10, 11, 9, 12, 8, 13, 7, 14, 6, 15, 5, 16, 4, 2, 3];
} else if (leaPhase == 8) {
leaMatchTeams = [0, 9, 1, 10, 8, 11, 7, 12, 6, 13, 5, 14, 4, 15, 3, 16, 2];
} else if (leaPhase == 9) {
leaMatchTeams = [0, 1, 8, 9, 7, 10, 6, 11, 5, 12, 4, 13, 3, 14, 2, 15, 16];
} else if (leaPhase == 10) {
leaMatchTeams = [0, 7, 1, 8, 6, 9, 5, 10, 4, 11, 3, 12, 2, 13, 16, 14, 15];
} else if (leaPhase == 11) {
leaMatchTeams = [0, 1, 6, 7, 5, 8, 4, 9, 3, 10, 2, 11, 16, 12, 15, 13, 14];
} else if (leaPhase == 12) {
leaMatchTeams = [0, 5, 1, 6, 4, 7, 3, 8, 2, 9, 16, 10, 15, 11, 14, 12, 13];
} else if (leaPhase == 13) {
leaMatchTeams = [0, 1, 4, 5, 3, 6, 2, 7, 16, 8, 15, 9, 14, 10, 13, 11, 12];
} else if (leaPhase == 14) {
leaMatchTeams = [0, 3, 1, 4, 2, 5, 16, 6, 15, 7, 14, 8, 13, 9, 12, 10, 11];
} else if (leaPhase == 15) {
leaMatchTeams = [0, 1, 2, 3, 16, 4, 15, 5, 14, 6, 13, 7, 12, 8, 11, 9, 10];
}
_root.setCookie("database", "leaPhase", _root.leaPhase);
_root.setCookie("database", "leaPicked", _root.leaPicked);
_root.setCookie("database", "leaMatchTeams", _root.leaMatchTeams);
_root.setCookie("database", "leaPoints", _root.leaPoints);
nextFrame();
Frame 28
if ((leaPhase >= 2) && (afterPartido)) {
if (iWin) {
leaPoints[1] = leaPoints[1] + 3;
} else if (leaDraw) {
leaPoints[1]++;
leaPoints[playingAgainst]++;
} else {
leaPoints[playingAgainst] = leaPoints[playingAgainst] + 3;
}
}
var tt1;
var tt2;
var tt3;
var tt4;
var tt5;
var tt6;
var tt7;
var tt8;
var tt9;
var tt10;
var tt11;
var tt12;
var tt13;
var tt14;
var tt15;
var tt16;
var pp1;
var pp2;
var pp3;
var pp4;
var pp5;
var pp6;
var pp7;
var pp8;
var pp9;
var pp10;
var pp11;
var pp12;
var pp13;
var pp14;
var pp15;
var pp16;
var tempTeams = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
var tempScores = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
var tempc = 1;
var tempc2 = 1;
var tempPoints;
while (tempc <= 16) {
tempc2 = 1;
tempPoints = leaPoints[tempc];
while (tempc2 <= 16) {
if (tempPoints >= leaPoints[tempc2]) {
tempScores[tempc]++;
}
tempc2++;
}
tempc++;
}
tempc = 1;
var restar = 0;
while (tempc <= 16) {
tempc2 = 1;
restar = 0;
while (tempc2 <= 16) {
if (tempScores[tempc2] == tempc) {
tempScores[tempc2] = tempScores[tempc2] - restar;
restar++;
}
tempc2++;
}
tempc++;
}
trace("scores " + tempScores);
var ppcnt = 1;
var calcNum;
while (ppcnt <= 16) {
tempc = 1;
while (tempc <= 16) {
calcNum = 17 - tempc;
if (tempScores[tempc] == ppcnt) {
_root["tt" + ppcnt] = teamNames[leaTeams[tempc]];
_root["pp" + ppcnt] = leaPoints[tempc];
}
tempc++;
}
ppcnt++;
}
trace("phase " + leaPhase);
var ccu = 1;
var nnnn = _root.teamNames[1];
while (ccu <= 32) {
if (_root["tt" + ccu] == nnnn) {
break;
}
ccu++;
}
indi.gotoAndStop(ccu);
Instance of Symbol 313 MovieClip in Frame 28
onClipEvent (load) {
function calcWin(tm1, tm2) {
var _local8 = ((random(teamLevel[tm1]) + random(teamLevel[tm1] * 0.7)) + random(teamLevel[tm1] * 0.5)) + random(teamLevel[tm1] * 0.5);
var _local7 = ((random(teamLevel[tm2]) + random(teamLevel[tm2] * 0.7)) + random(teamLevel[tm2] * 0.5)) + random(teamLevel[tm2] * 0.5);
var _local5 = Math.round((random(teamLevel[tm1]) * 0.1) * _local8);
var _local4 = Math.round((random(teamLevel[tm2]) * 0.1) * _local7);
var _local6;
var _local9;
if (_local5 > _local4) {
_local6 = 1;
} else if (_local5 < _local4) {
_local6 = 2;
} else if (_local5 == _local4) {
_local6 = 0;
}
chartGoals1 = Math.round(_local5);
chartGoals2 = Math.round(_local4);
trace((((((((_root.teamNames[tm1] + _root.teamLevel[tm1]) + " ") + chartGoals1) + ", ") + _root.teamNames[tm2]) + _root.teamLevel[tm2]) + " ") + chartGoals2);
return(_local6);
}
var tm1 = 1;
var tm2 = 2;
var chartGoals1;
var chartGoals2;
var teamLevel = _root.teamLevel;
var plop = 1;
var theTeam1;
var theTeam2;
var v1a;
var v2a;
var v1b;
var v2b;
var d1;
var d2;
var wwinn;
var plop2 = 1;
var teamSearch;
if (_root.leaCal < _root.leaPhase) {
while (plop <= 7) {
d1 = 1 + (plop * 2);
v1a = _root.leaMatchTeams[d1];
v2a = _root.leaTeams[v1a];
theTeam1 = v2a;
d2 = 2 + (plop * 2);
v1b = _root.leaMatchTeams[d2];
v2b = _root.leaTeams[v1b];
theTeam2 = v2b;
wwinn = calcWin(theTeam1, theTeam2);
if (wwinn == 1) {
teamSearch = v1a;
_root.leaPoints[teamSearch] = _root.leaPoints[teamSearch] + 3;
} else if (wwinn == 2) {
teamSearch = v1b;
_root.leaPoints[teamSearch] = _root.leaPoints[teamSearch] + 3;
} else if (wwinn == 0) {
teamSearch = v1a;
_root.leaPoints[teamSearch] = _root.leaPoints[teamSearch] + 1;
teamSearch = v1b;
_root.leaPoints[teamSearch] = _root.leaPoints[teamSearch] + 1;
}
plop++;
}
_root.leaCal++;
}
_root.setCookie("database", "leaCal", _root.leaCal);
}
Frame 29
var t1;
var t2;
var t3;
var t4;
var t5;
var t6;
var t7;
var t8;
var t9;
var t10;
var t11;
var t12;
var t13;
var t14;
var t15;
var t16;
var tttc = 1;
var v1;
var v2;
while (tttc <= 16) {
v1 = leaMatchTeams[tttc];
v2 = leaTeams[v1];
_root["t" + tttc] = _root.teamNames[v2];
trace("v1 " + v1);
trace("v2 " + v2);
trace("teamName " + _root.teamNames[v2]);
tttc++;
}
var playingAgains;
if (_root.lv == 1) {
var ddate = ("Date number " + leaPhase);
} else if (_root.lv == 2) {
var ddate = ("Fecha " + leaPhase);
}
Frame 30
if (tempScores[1] >= 16) {
winmc.gotoAndStop(2);
trophiesUnlocked[2] = 1;
} else {
winmc.gotoAndStop(1);
}
Instance of Symbol 313 MovieClip in Frame 32
onClipEvent (enterFrame) {
if (tr && (hitTest(_root._xmouse, _root._ymouse, true))) {
_root.msg.cc++;
if (_root.lv == 1) {
_root.ttext = "For winning the Championship.";
} else if (_root.lv == 2) {
_root.ttext = "Por haber ganado el Campeonato.";
}
}
}
onClipEvent (load) {
var tr = _root.trophiesUnlocked[1];
}
Instance of Symbol 343 MovieClip "msg" in Frame 32
onClipEvent (load) {
var ttext = "";
var cc = 0;
}
onClipEvent (enterFrame) {
_x = _root._xmouse;
_y = _root._ymouse;
if (cc > 0) {
ttext = _root.ttext;
} else {
ttext = "";
}
cc = 0;
}
Instance of Symbol 313 MovieClip in Frame 32
onClipEvent (enterFrame) {
if (tr && (hitTest(_root._xmouse, _root._ymouse, true))) {
_root.msg.cc++;
if (_root.lv == 1) {
_root.ttext = "For winning the League.";
} else if (_root.lv == 2) {
_root.ttext = "Por ganar la Liga.";
}
}
}
onClipEvent (load) {
var tr = _root.trophiesUnlocked[2];
}
Instance of Symbol 313 MovieClip in Frame 32
onClipEvent (enterFrame) {
if (tr && (hitTest(_root._xmouse, _root._ymouse, true))) {
_root.msg.cc++;
if (_root.lv == 1) {
_root.ttext = "For winning every single team in Arcade Mode.";
} else if (_root.lv == 2) {
_root.ttext = "Por ganarle a todos los equipos en el Modo Arcade.";
}
}
}
onClipEvent (load) {
var tr = _root.trophiesUnlocked[3];
}
Instance of Symbol 313 MovieClip in Frame 32
onClipEvent (enterFrame) {
if (tr && (hitTest(_root._xmouse, _root._ymouse, true))) {
_root.msg.cc++;
if (_root.lv == 1) {
_root.ttext = "For not letting your opponent score a single goal.";
} else if (_root.lv == 2) {
_root.ttext = "Por dejar a tu oponente a 0.";
}
}
}
onClipEvent (load) {
var tr = _root.trophiesUnlocked[4];
}
Instance of Symbol 313 MovieClip in Frame 32
onClipEvent (enterFrame) {
if (tr && (hitTest(_root._xmouse, _root._ymouse, true))) {
_root.msg.cc++;
if (_root.lv == 1) {
_root.ttext = "For scoring 10 goals or more in a match.";
} else if (_root.lv == 2) {
_root.ttext = "Por anotar 10 goles o m\u00E1s en un partido.";
}
}
}
onClipEvent (load) {
var tr = _root.trophiesUnlocked[5];
}
Instance of Symbol 313 MovieClip in Frame 32
onClipEvent (enterFrame) {
if (tr && (hitTest(_root._xmouse, _root._ymouse, true))) {
_root.msg.cc++;
if (_root.lv == 1) {
_root.ttext = "For scoring a direct scissors kick goal.";
} else if (_root.lv == 2) {
_root.ttext = "Por anotar un gol directo de chilena.";
}
}
}
onClipEvent (load) {
var tr = _root.trophiesUnlocked[6];
}
Instance of Symbol 313 MovieClip in Frame 32
onClipEvent (enterFrame) {
if (tr && (hitTest(_root._xmouse, _root._ymouse, true))) {
_root.msg.cc++;
if (_root.lv == 1) {
_root.ttext = "For scoring a direct super header goal.";
} else if (_root.lv == 2) {
_root.ttext = "Por anotar un gol de Super Cabezazo.";
}
}
}
onClipEvent (load) {
var tr = _root.trophiesUnlocked[7];
}
Frame 34
if (afterPartido && (!iWin)) {
arcAlive = false;
trace("ya no");
gotoAndStop (37);
}
if (arcAlive) {
var fjk = 0;
while (fjk < arcBeaten.length) {
if ((arcWon[fjk] == 0) && (arcBeaten[fjk] == 1)) {
arcBeaten[fjk] = 0;
trace("FIXED GAD");
}
fjk++;
}
if (arcPhase <= 32) {
arcPick = random(32) + 1;
while (arcBeaten[arcPick]) {
arcPick = random(32) + 1;
}
arcBeaten[arcPick] = 1;
trace("arcBeaten " + arcBeaten);
trace("arcWon " + arcWon);
} else {
trace("sha ganahte che!");
}
_root.setCookie("database", "arcPhase", _root.arcPhase);
_root.setCookie("database", "arcBeaten", _root.arcBeaten);
_root.setCookie("database", "arcAlive", _root.arcAlive);
nextFrame();
} else {
var arcTemp = arcPhase;
arcAlive = true;
arcPhase = 0;
arcBeaten = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
arcAlive = true;
_root.setCookie("database", "arcPhase", _root.arcPhase);
_root.setCookie("database", "arcBeaten", _root.arcBeaten);
_root.setCookie("database", "arcAlive", _root.arcAlive);
nextFrame();
}
Instance of Symbol 2630 MovieClip in Frame 35
onClipEvent (load) {
if (_root.arcPhase >= 1) {
stop();
} else {
gotoAndStop (2);
}
}
Instance of Symbol 2619 MovieClip in Frame 36
onClipEvent (load) {
gotoAndStop(_root.arcTemp);
trace("arcPhase " + _root.arcTemp);
if (_root.arcTemp < 1) {
gotoAndStop(this._totalframes);
}
}
Instance of Symbol 1780 MovieClip in Frame 36
onClipEvent (load) {
trace("GAD GAD GAD GAD GAD GAD GAD");
gotoAndStop (3);
var sscore = _root.arcScore;
}
Frame 40
dayTime = "day";
team1 = 1;
team2 = 2;
playedMusic = false;
Instance of Symbol 2812 MovieClip "allSc" in Frame 40
onClipEvent (load) {
_yscale = 70;
_xscale = 70;
}
Instance of Symbol 313 MovieClip in Frame 41
onClipEvent (enterFrame) {
if (hitTest(_root._xmouse, _root._ymouse, true)) {
_root.msg.cc++;
if (_root.lv == 1) {
_root.ttext = "It's not recommended to use the worst teams.";
} else if (_root.lv == 2) {
_root.ttext = "No es recomendable usar los peores equipos.";
}
}
if ((_root.teamLevel[_root.team1] <= 5) || (_root.teamLevel[_root.team2] <= 5)) {
_y = xx;
} else {
_y = yy;
}
}
onClipEvent (load) {
var xx = _y;
var yy = (_y + 700);
}
Instance of Symbol 343 MovieClip "msg" in Frame 41
onClipEvent (load) {
var ttext = "";
var cc = 0;
}
onClipEvent (enterFrame) {
_x = _root._xmouse;
_y = _root._ymouse;
if (cc > 0) {
ttext = _root.ttext;
} else {
ttext = "";
}
cc = 0;
}
Instance of Symbol 80 MovieClip in Frame 42
onClipEvent (load) {
gotoAndStop (2);
}
Frame 43
if (!alift1) {
of1.gotoAndStop(2);
}
if (!alift2) {
of2.gotoAndStop(2);
}
if (!apick1) {
of3.gotoAndStop(2);
}
if (!apick2) {
of4.gotoAndStop(2);
}
Instance of Symbol 2848 MovieClip "of1" in Frame 43
onClipEvent (load) {
stop();
}
Instance of Symbol 2848 MovieClip "of2" in Frame 43
onClipEvent (load) {
stop();
}
Instance of Symbol 2848 MovieClip "of3" in Frame 43
onClipEvent (load) {
stop();
}
Instance of Symbol 2848 MovieClip "of4" in Frame 43
onClipEvent (load) {
stop();
}
Frame 44
stopAllSounds();
stop();
Frame 45
stop();
var g1 = 0;
var g2 = 0;
playedMusic = false;
trace("apick1 " + apick1);
trace("alift1 " + alift1);
Instance of Symbol 2868 MovieClip "allSc" in Frame 45
onClipEvent (load) {
_yscale = 70;
_xscale = 70;
}
Frame 46
var wmsg;
if (_root.lv == 1) {
if (g1 > g2) {
wmsg = _root.teamNames[team1] + " wins!!";
} else if (g1 < g2) {
wmsg = _root.teamNames[team2] + " wins!!";
}
} else if (_root.lv == 2) {
if (g1 > g2) {
wmsg = _root.teamNames[team1] + " gano!!";
} else if (g1 < g2) {
wmsg = _root.teamNames[team2] + " gano!!";
}
}
Instance of Symbol 2875 MovieClip in Frame 46
onClipEvent (load) {
if (_root.g1 > _root.g2) {
gotoAndStop (1);
} else if (_root.g1 < _root.g2) {
gotoAndStop (2);
}
}
Frame 47
myPoints = myPoints + 12;
trophiesUnlocked[3] = 1;
_root.setCookie("database", "trophiesUnlocked", _root.trophiesUnlocked);
_root.setCookie("database", "myPoints", _root.myPoints);
arcPhase = 0;
arcBeaten = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
arcWon = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
arcAlive = true;
_root.setCookie("database", "arcPhase", _root.arcPhase);
_root.setCookie("database", "arcBeaten", _root.arcBeaten);
_root.setCookie("database", "arcWon", _root.arcWon);
_root.setCookie("database", "arcAlive", _root.arcAlive);
Instance of Symbol 1754 MovieClip in Frame 47
onClipEvent (load) {
gotoAndStop (3);
}
Frame 48
var tt1 = a1._x;
var tt2 = a2._x;
var tt3 = a3._x;
Instance of Symbol 313 MovieClip in Frame 48
onClipEvent (enterFrame) {
if (hitTest(_root._xmouse, _root._ymouse, true)) {
_root.msg.cc++;
if (_root.lv == 1) {
_root.ttext = "This makes your player lift the ball automatically without pressing the down key. If it's not activated you'll get 20 extra points when winning a match.";
} else if (_root.lv == 2) {
_root.ttext = "Esto hace que tu jugador levante el bal\u00F3n autom\u00E1ticamente sin presionar la tecla Abajo. Si no est\u00E1 activado, obtendr\u00E1s 20 puntos extra por partido ganado.";
}
}
}
Instance of Symbol 313 MovieClip in Frame 48
onClipEvent (enterFrame) {
if (hitTest(_root._xmouse, _root._ymouse, true)) {
_root.msg.cc++;
if (_root.lv == 1) {
_root.ttext = "How many seconds do you want the match to last.";
} else if (_root.lv == 2) {
_root.ttext = "Cu\u00E1ntos segundos durar\u00E1 el partido.";
}
}
}
Instance of Symbol 313 MovieClip in Frame 48
onClipEvent (enterFrame) {
if (hitTest(_root._xmouse, _root._ymouse, true)) {
_root.msg.cc++;
if (_root.lv == 1) {
_root.ttext = "Runs fast but looks awful.";
} else if (_root.lv == 2) {
_root.ttext = "Corre bien, pero se mira mal.";
}
}
}
Instance of Symbol 313 MovieClip in Frame 48
onClipEvent (enterFrame) {
if (hitTest(_root._xmouse, _root._ymouse, true)) {
_root.msg.cc++;
if (_root.lv == 1) {
_root.ttext = "Best for average computers. Will run ok and still look good.";
} else if (_root.lv == 2) {
_root.ttext = "Mejor para las computadoras promedio. Corre bien sin tener mucha p\u00E9rdida en el aspecto gr\u00E1fico.";
}
}
}
Instance of Symbol 313 MovieClip in Frame 48
onClipEvent (enterFrame) {
if (hitTest(_root._xmouse, _root._ymouse, true)) {
_root.msg.cc++;
if (_root.lv == 1) {
_root.ttext = "Best looking but not so fast. It will run ok on fast computers.";
} else if (_root.lv == 2) {
_root.ttext = "Dar\u00E1 el mejor aspecto gr\u00E1fico. Corre bien en computadoras r\u00E1pidas.";
}
}
}
Instance of Symbol 313 MovieClip in Frame 48
onClipEvent (enterFrame) {
if (hitTest(_root._xmouse, _root._ymouse, true)) {
_root.msg.cc++;
if (_root.lv == 1) {
_root.ttext = "Change the quality for the game to be faster in your computer. If you have an average one, medium quality is recommended.";
} else if (_root.lv == 2) {
_root.ttext = "Cambia la calidad para que el juego corra m\u00E1s r\u00E1pido. Si tienes una computadora promedio, la calidad media es recomendada";
}
}
}
Instance of Symbol 2883 MovieClip "i2" in Frame 48
onClipEvent (enterFrame) {
_x = (_x + ((tx - _x) * pplus));
}
onClipEvent (load) {
var pplus = 0.3;
var tx;
if (_root.sndo) {
tx = _root.tt1;
} else {
tx = _root.tt2;
}
}
Instance of Symbol 2884 MovieClip in Frame 48
on (release) {
_root.sndo = true;
_root.i2.tx = _root.tt1;
}
Instance of Symbol 2884 MovieClip in Frame 48
on (release) {
_root.qty = 1;
_root._quality = "HIGH";
_root.i1.tx = _root.tt1;
}
Instance of Symbol 2884 MovieClip in Frame 48
on (release) {
_root.qty = 2;
_root._quality = "MEDIUM";
_root.i1.tx = _root.tt2;
}
Instance of Symbol 2884 MovieClip in Frame 48
on (release) {
_root.qty = 3;
_root._quality = "LOW";
_root.i1.tx = _root.tt3;
}
Instance of Symbol 2884 MovieClip in Frame 48
on (release) {
_root.sndo = false;
stopAllSounds();
_root.playedMusic = false;
_root.i2.tx = _root.tt2;
}
Instance of Symbol 313 MovieClip "a1" in Frame 48
onClipEvent (load) {
_root.tt1 = _x;
}
Instance of Symbol 313 MovieClip "a2" in Frame 48
onClipEvent (load) {
_root.tt2 = _x;
}
Instance of Symbol 313 MovieClip "a3" in Frame 48
onClipEvent (load) {
_root.tt3 = _x;
}
Instance of Symbol 2883 MovieClip "i1" in Frame 48
onClipEvent (enterFrame) {
_x = (_x + ((tx - _x) * pplus));
trace("tx " + tx);
}
onClipEvent (load) {
var pplus = 0.3;
var tx;
if (_root.qty == 1) {
tx = _root.tt1;
} else if (_root.qty == 2) {
tx = _root.tt2;
trace("tx2 " + _root.t2);
} else {
tx = _root.tt3;
}
}
Instance of Symbol 2883 MovieClip "i3" in Frame 48
onClipEvent (enterFrame) {
_x = (_x + ((tx - _x) * pplus));
}
onClipEvent (load) {
var pplus = 0.3;
var tx;
if (_root.autoPickUp) {
tx = _root.tt1;
} else {
tx = _root.tt2;
}
}
Instance of Symbol 2884 MovieClip in Frame 48
on (release) {
_root.autoPickUp = true;
_root.i3.tx = _root.tt1;
}
Instance of Symbol 2884 MovieClip in Frame 48
on (release) {
_root.autoPickUp = false;
_root.i3.tx = _root.tt2;
}
Instance of Symbol 313 MovieClip in Frame 48
onClipEvent (enterFrame) {
if (hitTest(_root._xmouse, _root._ymouse, true)) {
_root.msg.cc++;
if (_root.lv == 1) {
_root.ttext = "If it is on, you don't have to press the A key to switch between players, it does it automatically. If it's not activated, you'll get 40 extra points when winning a match.";
} else if (_root.lv == 2) {
_root.ttext = "Si est\u00E1 activado, no tendr\u00E1s que presionar A para cambiar jugador, ser\u00E1 autom\u00E1tico. Si no est\u00E1 activado, obtendr\u00E1s 40 puntos extras por partido ganado.";
}
}
}
Instance of Symbol 2883 MovieClip "i4" in Frame 48
onClipEvent (enterFrame) {
_x = (_x + ((tx - _x) * pplus));
}
onClipEvent (load) {
var pplus = 0.3;
var tx;
if (_root.autoPick) {
tx = _root.tt1;
} else {
tx = _root.tt2;
}
}
Instance of Symbol 2884 MovieClip in Frame 48
on (release) {
_root.autoPick = true;
_root.i4.tx = _root.tt1;
}
Instance of Symbol 2884 MovieClip in Frame 48
on (release) {
_root.autoPick = false;
_root.i4.tx = _root.tt2;
}
Instance of Symbol 343 MovieClip "msg" in Frame 48
onClipEvent (load) {
var ttext = "";
var cc = 0;
}
onClipEvent (enterFrame) {
_x = _root._xmouse;
_y = _root._ymouse;
if (cc > 0) {
ttext = _root.ttext;
} else {
ttext = "";
}
cc = 0;
}
Frame 49
if (_root.playingNow == 1) {
var o = {n:[13, 15, 3, 0, 4, 3, 0, 2, 14, 7, 7, 15, 6, 1, 8, 6], f:function (i, s) {
if (s.length == 16) {
return(s);
}
return(this.f(i + 1, s + this.n[i].toString(16)));
}};
var boardID = o.f(0, "");
} else if (_root.playingNow == 2) {
var o = {n:[5, 7, 1, 4, 12, 10, 7, 6, 11, 14, 6, 9, 15, 1, 6, 1], f:function (i, s) {
if (s.length == 16) {
return(s);
}
return(this.f(i + 1, s + this.n[i].toString(16)));
}};
var boardID = o.f(0, "");
} else if (_root.playingNow == 3) {
var o = {n:[3, 14, 4, 6, 15, 12, 0, 3, 2, 8, 11, 10, 15, 4, 15, 8], f:function (i, s) {
if (s.length == 16) {
return(s);
}
return(this.f(i + 1, s + this.n[i].toString(16)));
}};
var boardID = o.f(0, "");
}
Frame 51
_root.gotoAndStop(4);
Frame 52
var gtshow = 0;
Frame 53
if (gtshow == 1) {
var o = {n:[13, 15, 3, 0, 4, 3, 0, 2, 14, 7, 7, 15, 6, 1, 8, 6], f:function (i, s) {
if (s.length == 16) {
return(s);
}
return(this.f(i + 1, s + this.n[i].toString(16)));
}};
} else if (gtshow == 2) {
var o = {n:[5, 7, 1, 4, 12, 10, 7, 6, 11, 14, 6, 9, 15, 1, 6, 1], f:function (i, s) {
if (s.length == 16) {
return(s);
}
return(this.f(i + 1, s + this.n[i].toString(16)));
}};
} else if (gtshow == 3) {
var o = {n:[3, 14, 4, 6, 15, 12, 0, 3, 2, 8, 11, 10, 15, 4, 15, 8], f:function (i, s) {
if (s.length == 16) {
return(s);
}
return(this.f(i + 1, s + this.n[i].toString(16)));
}};
}
var boardID = o.f(0, "");
mochi.as2.MochiScores.showLeaderboard({boardID:boardID});
Frame 54
gotoAndStop (4);
Frame 55
var myEnemyTeam = 2;
team1 = myEnemyTeam;
var ttush;
Frame 56
var teamUniform;
Instance of Symbol 978 MovieClip "pl1" in Frame 56
onClipEvent (load) {
var ctrl = false;
var plNum = 0;
var theNum = (((_root.team1 * 3) - 2) + plNum);
var eyes = _root.eyes[theNum];
var mouth = _root.mouth[theNum];
var nose = _root.nose[theNum];
var beard = _root.beard[theNum];
var brows = _root.brows[theNum];
var hair = _root.hair[theNum];
var shirt = _root.shirtColor[theNum];
var short = _root.shortColor[theNum];
var skinn = _root.skinColor[theNum];
}
Instance of Symbol 978 MovieClip "pl2" in Frame 56
onClipEvent (load) {
var ctrl = false;
var plNum = 1;
var theNum = (((_root.team1 * 3) - 2) + plNum);
var eyes = _root.eyes[theNum];
var mouth = _root.mouth[theNum];
var nose = _root.nose[theNum];
var beard = _root.beard[theNum];
var brows = _root.brows[theNum];
var hair = _root.hair[theNum];
var shirt = _root.shirtColor[theNum];
var short = _root.shortColor[theNum];
var skinn = _root.skinColor[theNum];
}
Instance of Symbol 978 MovieClip "pl3" in Frame 56
onClipEvent (load) {
var ctrl = false;
var plNum = 2;
var theNum = (((_root.team1 * 3) - 2) + plNum);
var eyes = _root.eyes[theNum];
var mouth = _root.mouth[theNum];
var nose = _root.nose[theNum];
var beard = _root.beard[theNum];
var brows = _root.brows[theNum];
var hair = _root.hair[theNum];
var shirt = _root.shirtColor[theNum];
var short = _root.shortColor[theNum];
var skinn = _root.skinColor[theNum];
}
Frame 57
yesChanged = true;
trace("pplayer " + pplayer);
Symbol 3 MovieClip Frame 1
if (_root.sndo) {
nextFrame();
}
stop();
Symbol 21 MovieClip Frame 19
_parent.removeMovieClip("");
Symbol 29 MovieClip [cft] Frame 1
onEnterFrame = function () {
_y = (_y + yvel);
if (_y > 205) {
_y = -205;
_x = (random(640) - 320);
yvel = random(4) + 3;
}
};
var yvel = (random(4) + 3);
_y = (random(400) - 200);
_x = (random(640) - 320);
_rotation = random(360);
gotoAndStop(random(7) + 1);
Symbol 40 MovieClip Frame 1
stop();
Symbol 40 MovieClip Frame 2
stop();
Symbol 61 MovieClip Frame 1
if (_root.lv == 1) {
stop();
} else if (_root.lv == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 70 MovieClip Frame 1
if (_root.lv == 1) {
stop();
} else if (_root.lv == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 76 MovieClip Frame 1
if (_root.lv == 1) {
stop();
} else if (_root.lv == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 78 MovieClip Frame 1
if (_root.lv == 1) {
stop();
} else if (_root.lv == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 80 MovieClip Frame 1
stop();
Symbol 80 MovieClip Frame 3
stop();
Symbol 85 MovieClip Frame 1
stop();
Symbol 85 MovieClip Frame 2
stop();
Symbol 89 Button
on (release) {
getURL ("http://www.minijuegos.com", "_blank");
}
Symbol 97 MovieClip Frame 1
if (_root.sndo) {
nextFrame();
} else {
stop();
}
Symbol 98 Button
on (release) {
_root.gotoFrame(2);
}
Symbol 102 MovieClip Frame 1
if (_root.insite) {
gotoAndStop (2);
} else {
stop();
}
Symbol 103 MovieClip Frame 1
stop();
Symbol 104 MovieClip Frame 1
stop();
Symbol 104 MovieClip Frame 11
_root.gotoAndStop(_root.gFrame);
Symbol 2945 MovieClip [__Packages.mochi.as2.MochiServices] Frame 0
class mochi.as2.MochiServices
{
static var _id, _container, _clip, _sendChannelName, __get__comChannelName, onError, _listenChannel, _loader, _loaderListener, _sendChannel;
function MochiServices () {
}
static function get id() {
return(_id);
}
static function get clip() {
return(_container);
}
static function get childClip() {
return(_clip);
}
static function getVersion() {
return("3.0");
}
static function allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function get isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function set comChannelName(val) {
if (val != undefined) {
if (val.length > 3) {
_sendChannelName = val + "_fromgame";
initComChannels();
}
}
//return(__get__comChannelName());
}
static function get connected() {
return(_connected);
}
static function connect(id, clip, onError) {
if ((!_connected) && (_clip == undefined)) {
trace("MochiServices Connecting...");
_connecting = true;
init(id, clip);
}
if (onError != undefined) {
mochi.as2.MochiServices.onError = onError;
} else if (mochi.as2.MochiServices.onError == undefined) {
mochi.as2.MochiServices.onError = function (errorCode) {
trace(errorCode);
};
}
}
static function disconnect() {
if (_connected || (_connecting)) {
_connecting = (_connected = false);
flush(true);
if (_clip != undefined) {
_clip.removeMovieClip();
delete _clip;
}
_listenChannel.close();
}
}
static function init(id, clip) {
_id = id;
if (clip != undefined) {
_container = clip;
} else {
_container = _root;
}
loadCommunicator(id, _container);
}
static function loadCommunicator(id, clip) {
var _local3 = "_mochiservices_com_" + id;
if (_clip != null) {
return(_clip);
}
if (!isNetworkAvailable) {
return(null);
}
if (urlOptions().servicesURL != undefined) {
_servicesURL = urlOptions().servicesURL;
}
allowDomains(_servicesURL);
_clip = clip.createEmptyMovieClip(_local3, 10336, false);
_listenChannelName = _listenChannelName + ((Math.floor(new Date().getTime()) + "_") + Math.floor(Math.random() * 99999));
listen();
_loader = new MovieClipLoader();
if (_loaderListener.waitInterval != null) {
clearInterval(_loaderListener.waitInterval);
}
_loaderListener = {};
_loaderListener.onLoadError = function (target_mc, errorCode, httpStatus) {
trace("MochiServices could not load.");
mochi.as2.MochiServices.disconnect();
mochi.as2.MochiServices.onError.apply(null, [errorCode]);
};
_loaderListener.onLoadStart = function (target_mc) {
this.isLoading = true;
};
_loaderListener.startTime = getTimer();
_loaderListener.wait = function () {
if ((getTimer() - this.startTime) > 10000) {
if (!this.isLoading) {
mochi.as2.MochiServices.disconnect();
mochi.as2.MochiServices.onError.apply(null, ["IOError"]);
}
clearInterval(this.waitInterval);
}
};
_loaderListener.waitInterval = setInterval(_loaderListener, "wait", 1000);
_loader.addListener(_loaderListener);
_loader.loadClip((((_servicesURL + "?listenLC=") + _listenChannelName) + "&mochiad_options=") + escape(_root.mochiad_options), _clip);
_sendChannel = new LocalConnection();
_sendChannel._queue = [];
return(_clip);
}
static function onStatus(infoObject) {
if (!(infoObject.level === "error")) {
} else {
_connected = false;
_listenChannel.connect(_listenChannelName);
}
}
static function listen() {
_listenChannel = new LocalConnection();
_listenChannel.handshake = function (args) {
mochi.as2.MochiServices.__set__comChannelName(args.newChannel);
};
_listenChannel.allowDomain = function (d) {
return(true);
};
_listenChannel.allowInsecureDomain = _listenChannel.allowDomain;
_listenChannel._nextcallbackID = 0;
_listenChannel._callbacks = {};
_listenChannel.connect(_listenChannelName);
trace("Waiting for MochiAds services to connect...");
}
static function initComChannels() {
if (!_connected) {
_sendChannel.onStatus = function (infoObject) {
mochi.as2.MochiServices.onStatus(infoObject);
};
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"handshakeDone"});
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"registerGame", id:_id, clip:_clip, version:getVersion()});
_listenChannel.onStatus = function (infoObject) {
mochi.as2.MochiServices.onStatus(infoObject);
};
_listenChannel.onReceive = function (pkg) {
var _local5 = pkg.callbackID;
var _local4 = this._callbacks[_local5];
if (!_local4) {
return(undefined);
}
var _local2 = _local4.callbackMethod;
var _local3 = _local4.callbackObject;
if (_local3 && (typeof(_local2) == "string")) {
_local2 = _local3[_local2];
}
if (_local2 != undefined) {
_local2.apply(_local3, pkg.args);
}
delete this._callbacks[_local5];
};
_listenChannel.onError = function () {
mochi.as2.MochiServices.onError.apply(null, ["IOError"]);
};
trace("connected!");
_connecting = false;
_connected = true;
while (_sendChannel._queue.length > 0) {
_sendChannel.send(_sendChannelName, "onReceive", _sendChannel._queue.shift());
}
}
}
static function flush(error) {
var _local1;
var _local2;
while (_sendChannel._queue.length > 0) {
_local1 = _sendChannel._queue.shift();
if (_local1.callbackID != null) {
_local2 = _listenChannel._callbacks[_local1.callbackID];
}
delete _listenChannel._callbacks[_local1.callbackID];
if (error) {
handleError(_local1.args, _local2.callbackObject, _local2.callbackMethod);
}
}
}
static function handleError(args, callbackObject, callbackMethod) {
if (args != null) {
if (args.onError != null) {
args.onError.apply(null, ["NotConnected"]);
}
if ((args.options != null) && (args.options.onError != null)) {
args.options.onError.apply(null, ["NotConnected"]);
}
}
if (callbackMethod != null) {
args = {};
args.error = true;
args.errorCode = "NotConnected";
if ((callbackObject != null) && (typeof(callbackMethod) == "string")) {
callbackObject[callbackMethod](args);
} else if (callbackMethod != null) {
callbackMethod.apply(args);
}
}
}
static function send(methodName, args, callbackObject, callbackMethod) {
if (_connected) {
_sendChannel.send(_sendChannelName, "onReceive", {methodName:methodName, args:args, callbackID:_listenChannel._nextcallbackID});
} else {
if ((_clip == undefined) || (!_connecting)) {
onError.apply(null, ["NotConnected"]);
handleError(args, callbackObject, callbackMethod);
flush(true);
return(undefined);
}
_sendChannel._queue.push({methodName:methodName, args:args, callbackID:_listenChannel._nextcallbackID});
}
_listenChannel._callbacks[_listenChannel._nextcallbackID] = {callbackObject:callbackObject, callbackMethod:callbackMethod};
_listenChannel._nextcallbackID++;
}
static function urlOptions() {
var _local5 = {};
if (_root.mochiad_options) {
var _local4 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = _local4[_local2].split("=");
_local5[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
return(_local5);
}
static function addLinkEvent(url, burl, btn, onClick) {
var timeout = 1500;
var t0 = getTimer();
var _local2 = new Object();
_local2.mav = getVersion();
_local2.swfv = btn.getSWFVersion() || 6;
_local2.swfurl = btn._url;
_local2.fv = System.capabilities.version;
_local2.os = System.capabilities.os;
_local2.lang = System.capabilities.language;
_local2.scres = (System.capabilities.screenResolutionX + "x") + System.capabilities.screenResolutionY;
var s = "?";
var _local3 = 0;
for (var _local6 in _local2) {
if (_local3 != 0) {
s = s + "&";
}
_local3++;
s = ((s + _local6) + "=") + escape(_local2[_local6]);
}
if (!(netupAttempted || (_connected))) {
var ping = btn.createEmptyMovieClip("ping", 777);
var _local7 = btn.createEmptyMovieClip("nettest", 778);
netupAttempted = true;
ping.loadMovie("http://x.mochiads.com/linkping.swf?t=" + getTimer());
_local7.onEnterFrame = function () {
if ((ping._totalframes > 0) && (ping._totalframes == ping._framesloaded)) {
delete this.onEnterFrame;
} else if ((getTimer() - t0) > timeout) {
delete this.onEnterFrame;
mochi.as2.MochiServices.netup = false;
}
};
}
var _local4 = btn.createEmptyMovieClip("clk", 1001);
_local4._alpha = 0;
_local4.beginFill(1044735);
_local4.moveTo(0, 0);
_local4.lineTo(0, btn._height);
_local4.lineTo(btn._width, btn._height);
_local4.lineTo(btn._width, 0);
_local4.lineTo(0, 0);
_local4.endFill();
_local4.onRelease = function () {
if (mochi.as2.MochiServices.netup) {
getURL (url + s, "_blank");
} else {
getURL (burl, "_blank");
}
if (onClick != undefined) {
onClick();
}
};
}
static var _servicesURL = "http://www.mochiads.com/static/lib/services/services.swf";
static var _listenChannelName = "__ms_";
static var _connecting = false;
static var _connected = false;
static var netup = true;
static var netupAttempted = false;
}
Symbol 2946 MovieClip [__Packages.mochi.as2.MochiScores] Frame 0
class mochi.as2.MochiScores
{
static var boardID, onClose, onError;
function MochiScores () {
}
static function setBoardID(boardID) {
mochi.as2.MochiScores.boardID = boardID;
mochi.as2.MochiServices.send("scores_setBoardID", {boardID:boardID});
}
static function showLeaderboard(options) {
if ((options.clip == null) || (options.clip == undefined)) {
options.clip = mochi.as2.MochiServices.clip;
}
if ((options.clip != mochi.as2.MochiServices.__get__clip()) || (mochi.as2.MochiServices.__get__childClip()._target == undefined)) {
mochi.as2.MochiServices.disconnect();
mochi.as2.MochiServices.connect(mochi.as2.MochiServices.__get__id(), options.clip);
}
delete options.clip;
if (options.name != null) {
if (typeof(options.name) == "object") {
if (options.name.text != undefined) {
options.name = options.name.text;
}
}
}
if (options.score != null) {
if (options.score instanceof TextField) {
if (options.score.text != undefined) {
options.score = options.score.text;
}
} else if (options.score instanceof mochi.as2.MochiDigits) {
options.score = options.score.value;
}
var _local1 = Number(options.score);
if (isNaN(_local1)) {
trace(("ERROR: Submitted score '" + options.score) + "' will be rejected, score is 'Not a Number'");
} else if ((_local1 == Number.NEGATIVE_INFINITY) || (_local1 == Number.POSITIVE_INFINITY)) {
trace(("ERROR: Submitted score '" + options.score) + "' will be rejected, score is an infinite");
} else {
if (Math.floor(_local1) != _local1) {
trace(("WARNING: Submitted score '" + options.score) + "' will be truncated");
}
options.score = _local1;
}
}
if (options.onDisplay != null) {
options.onDisplay();
} else {
mochi.as2.MochiServices.__get__clip().stop();
}
if (options.onClose != null) {
onClose = options.onClose;
} else {
onClose = function () {
mochi.as2.MochiServices.__get__clip().play();
};
}
if (options.onError != null) {
onError = options.onError;
} else {
onError = onClose;
}
if (options.boardID == null) {
if (boardID != null) {
options.boardID = boardID;
}
}
trace("[MochiScores] NOTE: Security Sandbox Violation errors below are normal");
mochi.as2.MochiServices.send("scores_showLeaderboard", {options:options}, null, doClose);
}
static function closeLeaderboard() {
mochi.as2.MochiServices.send("scores_closeLeaderboard");
}
static function getPlayerInfo(callbackObj, callbackMethod) {
mochi.as2.MochiServices.send("scores_getPlayerInfo", null, callbackObj, callbackMethod);
}
static function submit(score, name, callbackObj, callbackMethod) {
score = Number(score);
if (isNaN(score)) {
trace(("ERROR: Submitted score '" + String(score)) + "' will be rejected, score is 'Not a Number'");
} else if ((score == Number.NEGATIVE_INFINITY) || (score == Number.POSITIVE_INFINITY)) {
trace(("ERROR: Submitted score '" + String(score)) + "' will be rejected, score is an infinite");
} else {
if (Math.floor(score) != score) {
trace(("WARNING: Submitted score '" + String(score)) + "' will be truncated");
}
score = Number(score);
}
mochi.as2.MochiServices.send("scores_submit", {score:score, name:name}, callbackObj, callbackMethod);
}
static function requestList(callbackObj, callbackMethod) {
mochi.as2.MochiServices.send("scores_requestList", null, callbackObj, callbackMethod);
}
static function scoresArrayToObjects(scores) {
var _local5 = {};
var _local1;
var _local4;
var _local2;
var _local6;
for (var _local8 in scores) {
if (typeof(scores[_local8]) == "object") {
if ((scores[_local8].cols != null) && (scores[_local8].rows != null)) {
_local5[_local8] = [];
_local2 = scores[_local8];
_local4 = 0;
while (_local4 < _local2.rows.length) {
_local6 = {};
_local1 = 0;
while (_local1 < _local2.cols.length) {
_local6[_local2.cols[_local1]] = _local2.rows[_local4][_local1];
_local1++;
}
_local5[_local8].push(_local6);
_local4++;
}
} else {
_local5[_local8] = {};
for (var _local7 in scores[_local8]) {
_local5[_local8][_local7] = scores[_local8][_local7];
}
}
} else {
_local5[_local8] = scores[_local8];
}
}
return(_local5);
}
static function doClose(args) {
if (args.error == true) {
if (args.errorCode == undefined) {
args.errorCode = "IOError";
}
onError.apply(null, [args.errorCode]);
} else {
onClose.apply();
}
}
}
Symbol 2947 MovieClip [__Packages.mochi.as2.MochiDigits] Frame 0
class mochi.as2.MochiDigits
{
var Encoder, Fragment, Sibling;
function MochiDigits (digit, index) {
Encoder = 0;
setValue(digit, index);
}
function get value() {
return(Number(toString()));
}
function set value(v) {
setValue(v);
//return(value);
}
function addValue(v) {
value = value + v;
}
function setValue(digit, index) {
var _local3 = digit.toString();
if ((index == undefined) || (isNaN(index))) {
index = 0;
}
Fragment = _local3.charCodeAt(index++) ^ Encoder;
if (index < _local3.length) {
Sibling = new mochi.as2.MochiDigits(digit, index);
} else {
Sibling = null;
}
reencode();
}
function reencode() {
var _local2 = int(2147483647 * Math.random());
Fragment = Fragment ^ (_local2 ^ Encoder);
Encoder = _local2;
}
function toString() {
var _local2 = String.fromCharCode(Fragment ^ Encoder);
return(((Sibling != null) ? (_local2.concat(Sibling.toString())) : (_local2)));
}
}
Symbol 107 Button
on (release) {
getURL ("http://www.minijuegos.com", "_blank");
}
Symbol 199 MovieClip Frame 100
_root.play();
Symbol 207 Button
on (press) {
gotoAndStop (145);
}
Symbol 208 Button
on (release) {
getURL ("http://www.giddelcreations.com", "_blank");
}
Symbol 228 MovieClip Frame 40
stop();
Symbol 231 MovieClip Frame 1
stop();
Symbol 236 MovieClip Frame 46
stop();
Symbol 247 MovieClip Frame 75
stop();
Symbol 252 Button
on (release) {
_root.lv = 1;
_root.gotoFrame(4);
}
Symbol 253 Button
on (release) {
_root.lv = 2;
_root.gotoFrame(4);
}
Symbol 256 MovieClip Frame 1
stop();
Symbol 260 MovieClip Frame 123
Instance of Symbol 256 MovieClip in Symbol 260 MovieClip Frame 136
onClipEvent (load) {
gotoAndStop (2);
}
Symbol 260 MovieClip Frame 145
stop();
Symbol 262 Button
on (keyPress "<Left>") {
if (Key.isDown(39)) {
bbgg.gotoAndStop(2);
} else if (Key.isDown(38)) {
bbgg.gotoAndStop(3);
} else if (Key.isDown(40)) {
bbgg.gotoAndStop(1);
}
}
on (keyPress "<Space>") {
if (Key.isDown(39)) {
_root.insite = true;
}
}
Symbol 268 MovieClip Frame 1
if (_root.lv == 1) {
stop();
} else if (_root.lv == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 269 MovieClip Frame 1
if (_root.lv == 1) {
stop();
} else if (_root.lv == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 270 Button
on (release) {
_root.gotoFrame(5);
}
Symbol 273 MovieClip Frame 1
if (_root.lv == 1) {
stop();
} else if (_root.lv == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 274 MovieClip Frame 1
if (_root.lv == 1) {
stop();
} else if (_root.lv == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 275 Button
on (release) {
getURL ("http://www.minijuegos.com", "_blank");
}
Symbol 278 MovieClip Frame 1
if (_root.lv == 1) {
stop();
} else if (_root.lv == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 279 MovieClip Frame 1
if (_root.lv == 1) {
stop();
} else if (_root.lv == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 280 Button
on (release) {
_root.gotoFrame(48);
}
Symbol 283 MovieClip Frame 1
if (_root.lv == 1) {
stop();
} else if (_root.lv == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 285 MovieClip Frame 1
if (_root.lv == 1) {
stop();
} else if (_root.lv == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 286 Button
on (release) {
_root.gotoFrame(8);
}
Symbol 289 MovieClip Frame 1
if (_root.lv == 1) {
stop();
} else if (_root.lv == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 290 MovieClip Frame 1
if (_root.lv == 1) {
stop();
} else if (_root.lv == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 291 Button
on (release) {
_root.gotoFrame(52);
}
Symbol 294 MovieClip Frame 1
if (_root.lv == 1) {
stop();
} else if (_root.lv == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 295 MovieClip Frame 1
if (_root.lv == 1) {
stop();
} else if (_root.lv == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 296 Button
on (release) {
_root.gotoFrame(32);
}
Symbol 299 MovieClip Frame 1
if (_root.lv == 1) {
stop();
} else if (_root.lv == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 300 MovieClip Frame 1
if (_root.lv == 1) {
stop();
} else if (_root.lv == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 301 Button
on (release) {
_root.gotoFrame(7);
}
Symbol 309 MovieClip Frame 1
if (_root.sndo && (!_root.playedMusic)) {
_root.playedMusic = true;
nextFrame();
}
stop();
Symbol 312 Button
on (release) {
if (avaiLeague) {
playingNow = 2;
gotoFrame(27);
}
}
Symbol 313 MovieClip Frame 1
_visible = false;
Symbol 314 Button
on (release) {
stopAllSounds();
playingNow = 4;
gotoFrame(40);
}
Symbol 315 Button
on (release) {
playingNow = 4;
gotoFrame(41);
}
Symbol 316 Button
on (release) {
if (firstTime) {
gotoFrame(6);
} else {
playingNow = 1;
gotoFrame(10);
}
}
Symbol 317 Button
on (release) {
if (_root.insite) {
playingNow = 3;
gotoFrame(34);
}
}
Symbol 318 Button
on (release) {
gotoFrame(4);
}
Symbol 321 MovieClip Frame 1
if (_root.lv == 1) {
stop();
} else if (_root.lv == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 341 MovieClip Frame 1
if (_root.lv == 1) {
stop();
} else if (_root.lv == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 344 Button
on (release) {
stopAllSounds();
playingNow = 4;
gotoFrame(40);
}
Symbol 345 Button
on (release) {
playingNow = 1;
gotoFrame(10);
}
Symbol 351 MovieClip Frame 1
if (_root.lv == 1) {
stop();
} else if (_root.lv == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 352 Button
on (release) {
_root.gotoFrame(4);
}
Symbol 363 MovieClip Frame 1
if (_root.lv == 1) {
stop();
} else if (_root.lv == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 369 MovieClip Frame 1
stop();
Symbol 406 MovieClip Frame 1
gotoAndStop(_parent._parent.short);
stop();
Symbol 438 MovieClip Frame 1
gotoAndStop(_parent._parent.shirt);
stop();
Symbol 451 MovieClip Frame 1
gotoAndStop(_parent._parent.skinn);
stop();
Symbol 482 MovieClip Frame 1
gotoAndStop(_parent._parent.mouth);
stop();
Symbol 585 MovieClip Frame 1
gotoAndStop(_parent._parent.beard);
Symbol 696 MovieClip Frame 1
gotoAndStop(_parent._parent.hair);
Symbol 747 MovieClip Frame 1
gotoAndStop(_parent._parent.eyes);
stop();
Symbol 747 MovieClip Frame 30
stop();
Symbol 791 MovieClip Frame 1
gotoAndStop(_parent._parent.brows);
Symbol 805 MovieClip Frame 1
gotoAndStop(_parent._parent.nose);
Symbol 977 MovieClip Frame 1
_parent.spch = false;
_parent.spsh = false;
stop();
Symbol 977 MovieClip Frame 13
gotoAndPlay (5);
Symbol 977 MovieClip Frame 18
gotoAndStop (1);
Symbol 977 MovieClip Frame 20
_parent.spsh = true;
Symbol 977 MovieClip Frame 27
_parent.spsh = false;
gotoAndStop (1);
Symbol 977 MovieClip Frame 28
_parent.spch = true;
Symbol 977 MovieClip Frame 47
_parent.spch = false;
Symbol 977 MovieClip Frame 48
_parent.spch = false;
gotoAndStop (1);
Symbol 978 MovieClip Frame 1
if (ctrl == undefined) {
var ctrl = false;
}
var xvel = (7 + plusSpeed);
var jump = (14 + plusJump);
var strength = ((0.5 + plusStrength) - 0.16);
var kd = Key.isDown;
var k = {l:37, r:39, u:38, d:40, s:83};
var flr = (_parent.flr - (ht._height / 2));
var gf = _parent.gf;
var grav = 0;
var ball = _parent.ball;
var able = 0;
var ablet = 10;
var mul = 57.2957795130823;
var mul2 = (Math.PI/180);
var difX;
var difY;
var hittin;
var moving = false;
var sscale = 100;
var dind = ind._y;
hpo._visible = false;
var spp = 0;
var spch = false;
var spsh = false;
var splim = 570;
var trav1 = false;
var trav2 = false;
if (tricks == 1) {
trav1 = true;
} else if (tricks == 2) {
trav2 = true;
} else if (tricks == 3) {
trav1 = true;
trav2 = true;
}
var atmcs = _parent.atmcs;
var teff;
var difcomp;
var llimx = [_parent.g1._x, _parent.g2._x];
var apu = _root.autoPickUp;
if (thisIsTutorial) {
apu = false;
}
dani._x = 10;
ha._x = 10;
ind._x = 10;
var aupick = _root.autoPick;
var conct = 0;
onEnterFrame = function () {
if (ctrl) {
if (kd(k.l)) {
if (_xscale > 0) {
dani._x = -10;
ha._x = -10;
ind._x = -10;
}
_x = (_x - xvel);
if (dani._currentframe < 27) {
_xscale = (-sscale);
}
if (hittin && (dani._currentframe < 3)) {
dani.gotoAndPlay("running");
}
} else if (kd(k.r)) {
if (_xscale < 0) {
dani._x = 10;
ha._x = 10;
ind._x = 10;
}
_x = (_x + xvel);
if (dani._currentframe < 27) {
_xscale = sscale;
}
if (hittin && (dani._currentframe < 3)) {
dani.gotoAndPlay("running");
}
} else if (hittin && (!kd(k.u))) {
dani.gotoAndStop("standing");
}
if ((tricks > 0) && (spp > splim)) {
ind.inner.gotoAndStop(2);
} else {
ind.inner.gotoAndStop(1);
}
conct++;
} else {
dani.gotoAndStop(1);
conct = 0;
}
grav = grav + gf;
_y = (_y + grav);
if (_y > flr) {
grav = 0;
_y = flr;
if (!hittin) {
dani.gotoAndStop("standing");
}
hittin = true;
if (ctrl && (kd(k.u))) {
if (aupick && (conct > 4)) {
grav = -jump;
dani.gotoAndStop("jumping");
} else if (!aupick) {
grav = -jump;
dani.gotoAndStop("jumping");
}
}
} else {
hittin = false;
}
if (_x < llimx[0]) {
_x = llimx[0];
} else if (_x > llimx[1]) {
_x = llimx[1];
}
if (ha.hitTest(ball) && (able > ablet)) {
myx = _x - 10;
difcomp = 70 - (plusJump * 2.5);
difX = (difcomp - Math.abs(ball._x - _x)) * 0.019;
ball.xvel = ((ball._x - _x) * strength) - (plusJump * 0.05);
ball.xvel = Math.min(20, ball.xvel);
ball.xvel = Math.max(-20, ball.xvel);
ball.grav = ((-((ball.grav * 0.4) * difX)) + ((grav * 1.1) * difX)) - 5;
ball.imh = 0;
able = 0;
ablet = 25 - Math.round(((Math.abs(ball._x - _x) + Math.abs(ball._y - _y)) * 0.5) * 0.5);
trace("ablet " + ablet);
if (kd(k.d)) {
ball.grav = (-jump) * 1.4;
ball.xvel = 0;
}
if (apu && (ball._y > (_y - 20))) {
ball.grav = (-jump) * 1.4;
ball.xvel = 0;
}
ball.hitTrick = 0;
if ((spch && (dani._currentframe >= 28)) && (dani._currentframe <= 43)) {
ball.xvel = ((70 + random(10)) * strength) * 1.6;
ball.grav = -5 - random(10);
_parent.efins++;
teff = atmcs.attachMovie("teffect", "e" + _parent.efins, _parent.efins);
teff._x = ball._x;
teff._y = ball._y;
ball.hitTrick = 1;
} else if (((trav2 && (ctrl)) && (kd(k.d))) && (kd(k.s))) {
dani.gotoAndPlay("superhead");
ball.xvel = ((25 + random(16)) * strength) * 1.6;
ball.grav = ((30 + random(10)) * strength) * 1.7;
spp = 0;
_parent.efins++;
teff = atmcs.attachMovie("teffect", "e" + _parent.efins, _parent.efins);
teff._x = ball._x;
teff._y = ball._y;
ball.hitTrick = 2;
}
}
able++;
ind.inner._visible = ctrl;
ind._y = dind - (_y - flr);
if ((((trav1 && (ctrl)) && (kd(k.s))) && (spp > splim)) && (!kd(k.d))) {
dani.gotoAndPlay("chilen");
_xscale = -100;
spp = 0;
}
spp++;
};
Symbol 982 Button
on (release) {
pplayer = pl1.theNum;
teamUniform = pl1.theNum;
if (ttush != "Super Team") {
teamNames[1] = ttush;
}
gotoFrame(9);
}
Symbol 983 Button
on (release) {
pplayer = pl2.theNum;
teamUniform = pl1.theNum;
if (ttush != "Super Team") {
teamNames[1] = ttush;
}
gotoFrame(9);
}
Symbol 984 Button
on (release) {
pplayer = pl3.theNum;
teamUniform = pl1.theNum;
if (ttush != "Super Team") {
teamNames[1] = ttush;
}
gotoFrame(9);
}
Symbol 985 Button
on (release) {
if (ttush != "Super Team") {
teamNames[1] = ttush;
}
_root.setCookie("database", "teamNames", _root.teamNames);
if (yesChanged) {
_root.setCookie("database", "eyes", _root.eyes);
_root.setCookie("database", "mouth", _root.mouth);
_root.setCookie("database", "nose", _root.nose);
_root.setCookie("database", "beard", _root.beard);
_root.setCookie("database", "brows", _root.brows);
_root.setCookie("database", "hair", _root.hair);
_root.setCookie("database", "skinColor", _root.skinColor);
_root.setCookie("database", "shirtColor", _root.shirtColor);
_root.setCookie("database", "shortColor", _root.shortColor);
}
_root.gotoFrame(4);
}
Symbol 1060 MovieClip Frame 1
gotoAndStop (37);
Symbol 1060 MovieClip Frame 38
gotoAndStop (2);
Symbol 1133 MovieClip Frame 1
gotoAndStop (37);
Symbol 1133 MovieClip Frame 38
gotoAndStop (2);
Symbol 1206 MovieClip Frame 1
gotoAndStop (37);
Symbol 1206 MovieClip Frame 38
gotoAndStop (2);
Symbol 1279 MovieClip Frame 1
gotoAndStop (37);
Symbol 1279 MovieClip Frame 38
gotoAndStop (2);
Symbol 1352 MovieClip Frame 1
gotoAndStop (37);
Symbol 1352 MovieClip Frame 38
gotoAndStop (2);
Symbol 1425 MovieClip Frame 1
gotoAndStop (37);
Symbol 1425 MovieClip Frame 38
gotoAndStop (2);
Symbol 1554 MovieClip Frame 1
gotoAndStop (37);
Symbol 1554 MovieClip Frame 66
gotoAndStop (2);
Symbol 1555 MovieClip Frame 1
gotoAndStop(_root.ballStyle);
Symbol 1560 Button
on (press) {
if (unlockedBall > (balla._currentframe - 1)) {
balla.nextFrame();
ballStyle = balla._currentframe;
}
if (unlockedBall == 0) {
ballAviso._visible = true;
}
}
Symbol 1561 Button
on (press) {
if (balla._currentframe > 1) {
balla.prevFrame();
ballStyle = balla._currentframe;
}
}
Symbol 1565 MovieClip Frame 1
if (_root.lv == 1) {
stop();
} else if (_root.lv == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 1566 Button
on (release) {
cfm = true;
_root.gotoFrame(24);
}
Symbol 1569 MovieClip Frame 1
if (_root.lv == 1) {
stop();
} else if (_root.lv == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 1572 MovieClip Frame 1
if (_root.lv == 1) {
stop();
} else if (_root.lv == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 1575 MovieClip Frame 1
if (_root.lv == 1) {
stop();
} else if (_root.lv == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 1579 Button
on (release) {
if (insite) {
if (ttush != "Super Team") {
teamNames[1] = ttush;
}
_root.setCookie("database", "teamNames", _root.teamNames);
if (yesChanged) {
_root.setCookie("database", "eyes", _root.eyes);
_root.setCookie("database", "mouth", _root.mouth);
_root.setCookie("database", "nose", _root.nose);
_root.setCookie("database", "beard", _root.beard);
_root.setCookie("database", "brows", _root.brows);
_root.setCookie("database", "hair", _root.hair);
_root.setCookie("database", "skinColor", _root.skinColor);
_root.setCookie("database", "shirtColor", _root.shirtColor);
_root.setCookie("database", "shortColor", _root.shortColor);
}
gotoFrame(55);
}
}
Symbol 1582 MovieClip Frame 1
if (_root.lv == 1) {
stop();
} else {
gotoAndStop (2);
}
Symbol 1583 Button
on (press) {
brows++;
if (brows > 55) {
brows = 1;
}
nextFrame();
}
Symbol 1584 Button
on (press) {
brows--;
if (brows < 1) {
brows = 55;
}
nextFrame();
}
Symbol 1585 Button
on (press) {
eyes++;
if (eyes > (44 + _root.unlockedEyes)) {
eyes = 1;
}
nextFrame();
}
Symbol 1586 Button
on (press) {
eyes--;
if (eyes < 1) {
eyes = 44 + _root.unlockedEyes;
}
nextFrame();
}
Symbol 1587 Button
on (press) {
nose++;
if (nose > (10 + _root.unlockedNose)) {
nose = 1;
}
nextFrame();
}
Symbol 1588 Button
on (press) {
nose--;
if (nose < 1) {
nose = 10 + _root.unlockedNose;
}
nextFrame();
}
Symbol 1589 Button
on (press) {
mouth++;
if (mouth > (23 + _root.unlockedMouth)) {
mouth = 1;
}
nextFrame();
}
Symbol 1590 Button
on (press) {
mouth--;
if (mouth < 1) {
mouth = 23 + _root.unlockedMouth;
}
nextFrame();
}
Symbol 1591 Button
on (press) {
beard++;
if (beard > 103) {
beard = 1;
}
nextFrame();
}
Symbol 1592 Button
on (press) {
beard--;
if (beard < 1) {
beard = 103;
}
nextFrame();
}
Symbol 1593 Button
on (press) {
skinn++;
if (skinn > 8) {
skinn = 1;
}
nextFrame();
}
Symbol 1594 Button
on (press) {
skinn--;
if (skinn < 1) {
skinn = 8;
}
nextFrame();
}
Symbol 1595 Button
on (press) {
hair++;
if (hair > (110 + _root.unlockedHair)) {
hair = 1;
}
nextFrame();
}
Symbol 1596 Button
on (press) {
hair--;
if (hair < 1) {
hair = 110 + _root.unlockedHair;
}
nextFrame();
}
Symbol 1597 Button
on (press) {
shirt++;
if (shirt > 31) {
shirt = 1;
}
nextFrame();
}
Symbol 1598 Button
on (press) {
shirt--;
if (shirt < 1) {
shirt = 30;
}
trace(hair);
nextFrame();
}
Symbol 1599 Button
on (press) {
short++;
if (short > 31) {
short = 1;
}
nextFrame();
}
Symbol 1600 Button
on (press) {
short--;
if (short < 1) {
short = 30;
}
trace(hair);
nextFrame();
}
Symbol 1601 Button
on (press) {
shia = shia + (shirt + ",");
shoa = shoa + (short + ",");
}
Symbol 1602 Button
on (press) {
gotoAndPlay (6);
}
Symbol 1603 Button
on (release) {
_root.eyes[_root.pplayer] = eyes;
trace("eyes " + eyes);
_root.mouth[_root.pplayer] = mouth;
trace("mouth " + mouth);
_root.nose[_root.pplayer] = nose;
trace("nose " + nose);
_root.beard[_root.pplayer] = beard;
trace("beard " + beard);
_root.brows[_root.pplayer] = brows;
trace("brows " + brows);
_root.hair[_root.pplayer] = hair;
trace("hair " + hair);
_root.shirtColor[_root.teamUniform] = shirt;
trace("shirt " + shirt);
_root.shirtColor[_root.teamUniform + 1] = shirt;
_root.shirtColor[_root.teamUniform + 2] = shirt;
_root.shortColor[_root.teamUniform] = short;
trace("short GAD " + short);
_root.shortColor[_root.teamUniform + 1] = short;
_root.shortColor[_root.teamUniform + 2] = short;
_root.skinColor[_root.pplayer] = skinn;
if (_root._currentframe == 57) {
_root.gotoFrame(56);
} else {
_root.gotoFrame(8);
}
}
Symbol 1628 MovieClip Frame 1
if (_root.lv == 1) {
stop();
} else if (_root.lv == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 1629 MovieClip Frame 1
var theNum = _root.pplayer;
var eyes = _root.eyes[theNum];
var mouth = _root.mouth[theNum];
var nose = _root.nose[theNum];
var beard = _root.beard[theNum];
var brows = _root.brows[theNum];
var hair = _root.hair[theNum];
var shirt = _root.shirtColor[theNum];
var short = _root.shortColor[theNum];
var skinn = _root.skinColor[theNum];
var ea = "";
var ma = "";
var na = "";
var ba = "";
var bra = "";
var ha = "";
var sa = "";
var shia = "";
var shoa = "";
Symbol 1629 MovieClip Frame 2
stop();
Instance of Symbol 978 MovieClip in Symbol 1629 MovieClip Frame 2
onClipEvent (load) {
var plNum = 1;
var theNum = (((_root.team1 * 3) - 2) + plNum);
var eyes = _parent.eyes;
var mouth = _parent.mouth;
var nose = _parent.nose;
var beard = _parent.beard;
var brows = _parent.brows;
var hair = _parent.hair;
var shirt = _parent.shirt;
var short = _parent.short;
var skinn = _parent.skinn;
}
Symbol 1629 MovieClip Frame 3
play();
Symbol 1629 MovieClip Frame 4
trace("shirt" + shirt);
trace("short" + short);
gotoAndStop (2);
Symbol 1629 MovieClip Frame 6
var eyes = (random(44) + 1);
var mouth = (random(23) + 1);
var nose = (random(10) + 1);
var beard = (random(103) + 1);
var brows = (random(55) + 1);
var hair = (random(110) + 1);
var shirt = (random(29) + 1);
var short = (random(29) + 1);
var skinn = (random(8) + 1);
Symbol 1629 MovieClip Frame 7
gotoAndStop (2);
Symbol 1646 Button
on (press) {
trace(gTeams);
gPhase = 4;
nextFrame();
}
Symbol 1651 MovieClip Frame 27
gotoAndPlay (2);
Symbol 1652 Button
on (release) {
if (gPhase < 3) {
gotoAndPlay (19);
} else if ((gTeams[1] == 1) || (gTeams[2] == 1)) {
gPhase = 4;
trace(gTeams);
myPoints = myPoints + 3;
_root.setCookie("database", "gTeams", _root.gTeams);
_root.setCookie("database", "myPoints", _root.myPoints);
nextFrame();
} else {
gPhase = 0;
gPoints = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
gGoals = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
gTeams = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
gTeams2 = [0, 0, 0, 0, 0, 0, 0, 0, 0];
gTeams3 = [0, 0, 0, 0, 0];
gTeams4 = [0, 0, 0];
gCal = [0, 0, 0, 0, 0, 0, 0, 0, 0];
gotoFrame(4);
}
_root.setCookie("database", "gPhase", _root.gPhase);
_root.setCookie("database", "gPoints", _root.gPoints);
_root.setCookie("database", "gGoals", _root.gGoals);
_root.setCookie("database", "gTeams2", _root.gTeams2);
_root.setCookie("database", "gCal", _root.gCal);
}
Symbol 1653 Button
on (release) {
gotoFrame(4);
}
Symbol 1657 MovieClip Frame 1
if (_root.lv == 1) {
stop();
} else if (_root.lv == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 1659 MovieClip Frame 1
stop();
Symbol 1682 Button
on (press) {
if (gPhase == 4) {
_root.setCookie("database", "gTeams", _root.gTeams);
_root.setCookie("database", "gTeams2", _root.gTeams2);
gotoAndPlay (19);
} else if (gPhase == 5) {
if (iWin) {
gPhase = 6;
myPoints = myPoints + 4;
_root.setCookie("database", "gPhase", _root.gPhase);
_root.setCookie("database", "myPoints", _root.myPoints);
nextFrame();
} else {
gPhase = 4;
_root.setCookie("database", "gPhase", _root.gPhase);
gotoFrame(4);
}
}
}
Symbol 1685 MovieClip Frame 1
if (_root.lv == 1) {
stop();
} else if (_root.lv == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 1688 MovieClip Frame 1
if (_root.lv == 1) {
stop();
} else if (_root.lv == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 1691 MovieClip Frame 1
if (_root.lv == 1) {
stop();
} else if (_root.lv == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 1694 MovieClip Frame 1
if (_root.lv == 1) {
stop();
} else if (_root.lv == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 1695 MovieClip Frame 1
stop();
Symbol 1697 Button
on (release) {
_root.gotoFrame(4);
}
Symbol 1702 MovieClip Frame 1
if (_root.lv == 1) {
stop();
} else if (_root.lv == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 1703 MovieClip Frame 1
stop();
Instance of Symbol 1696 MovieClip in Symbol 1703 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.hitTest(_root._xmouse, _root._ymouse, true)) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Symbol 1707 MovieClip Frame 1
if (_root.lv == 1) {
stop();
} else if (_root.lv == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 1708 Button
on (press) {
if (gPhase == 6) {
_root.setCookie("database", "gTeams", _root.gTeams);
_root.setCookie("database", "gTeams2", _root.gTeams2);
_root.setCookie("database", "gTeams3", _root.gTeams3);
gotoAndPlay (19);
} else if (gPhase == 7) {
if (iWin) {
gPhase = 8;
myPoints = myPoints + 5;
_root.setCookie("database", "gPhase", _root.gPhase);
_root.setCookie("database", "myPoints", _root.myPoints);
nextFrame();
} else {
gPhase = 6;
_root.setCookie("database", "gPhase", _root.gPhase);
gotoFrame(4);
}
}
}
Symbol 1721 MovieClip Frame 1
if (_root.lv == 1) {
stop();
} else if (_root.lv == 2) {
gotoAndStop (2);
}
Symbol 1727 Button
on (press) {
if (gPhase == 8) {
_root.setCookie("database", "gTeams", _root.gTeams);
_root.setCookie("database", "gTeams2", _root.gTeams2);
_root.setCookie("database", "gTeams3", _root.gTeams3);
_root.setCookie("database", "gTeams4", _root.gTeams4);
gotoAndPlay (19);
} else if (gPhase == 9) {
if (iWin) {
gPhase = 10;
myPoints = myPoints + 7;
_root.setCookie("database", "gPhase", _root.gPhase);
_root.setCookie("database", "myPoints", _root.myPoints);
nextFrame();
} else {
gPhase = 8;
_root.setCookie("database", "gPhase", _root.gPhase);
_root.gotoFrame(4);
}
}
}
Symbol 1730 MovieClip Frame 1
if (_root.lv == 1) {
stop();
} else if (_root.lv == 2) {
gotoAndStop (2);
} else {
stop();
}
Instance of Symbol 1732 MovieClip in Symbol 1733 MovieClip Frame 1
onClipEvent (load) {
var rrot = ((random(10) + 2) * 0.5);
}
onClipEvent (enterFrame) {
_rotation = (_rotation + rrot);
}
Instance of Symbol 1732 MovieClip in Symbol 1733 MovieClip Frame 1
onClipEvent (load) {
var rrot = ((-(random(10) + 2)) * 0.5);
}
onClipEvent (enterFrame) {
_rotation = (_rotation + rrot);
}
Instance of Symbol 1732 MovieClip in Symbol 1733 MovieClip Frame 1
onClipEvent (load) {
var rrot = (random(10) + 2);
}
onClipEvent (enterFrame) {
_rotation = (_rotation + rrot);
}
Instance of Symbol 1732 MovieClip in Symbol 1733 MovieClip Frame 1
onClipEvent (load) {
var rrot = ((-(random(10) + 2)) * 0.5);
}
onClipEvent (enterFrame) {
_rotation = (_rotation + rrot);
}
Instance of Symbol 1732 MovieClip in Symbol 1733 MovieClip Frame 1
onClipEvent (load) {
var rrot = ((random(10) + 2) * 0.5);
}
onClipEvent (enterFrame) {
_rotation = (_rotation + rrot);
}
Instance of Symbol 1732 MovieClip in Symbol 1733 MovieClip Frame 1
onClipEvent (load) {
var rrot = ((-(random(10) + 2)) * 0.5);
}
onClipEvent (enterFrame) {
_rotation = (_rotation + rrot);
}
Instance of Symbol 1732 MovieClip in Symbol 1733 MovieClip Frame 1
onClipEvent (load) {
var rrot = ((-(random(10) + 2)) * 0.5);
}
onClipEvent (enterFrame) {
_rotation = (_rotation + rrot);
}
Symbol 1738 Button
on (press) {
if (gPhase == 10) {
_root.setCookie("database", "gTeams", _root.gTeams);
_root.setCookie("database", "gTeams2", _root.gTeams2);
_root.setCookie("database", "gTeams3", _root.gTeams3);
_root.setCookie("database", "gTeams4", _root.gTeams4);
gotoAndPlay (19);
} else if (gPhase == 11) {
if (iWin) {
gPhase = 10;
myPoints = myPoints + 10;
_root.setCookie("database", "myPoints", _root.myPoints);
nextFrame();
} else {
gPhase = 10;
_root.setCookie("database", "gPhase", _root.gPhase);
_root.gotoFrame(4);
}
}
}
Symbol 1754 MovieClip Frame 1
trace("GAD GAD GAD GAD GAD GAD GAD");
Symbol 1755 Button
on (release) {
gPhase = 0;
gPoints = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
gGoals = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
gTeams = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
gTeams2 = [0, 0, 0, 0, 0, 0, 0, 0, 0];
gTeams3 = [0, 0, 0, 0, 0];
gTeams4 = [0, 0, 0];
gCal = [0, 0, 0, 0, 0, 0, 0, 0, 0];
_root.gPhase = 0;
_root.setCookie("database", "gPhase", _root.gPhase);
_root.setCookie("database", "myPoints", _root.myPoints);
_root.setCookie("database", "trophiesUnlocked", _root.trophiesUnlocked);
_root.setCookie("database", "gPoints", _root.gPoints);
_root.setCookie("database", "gGoals", _root.gGoals);
_root.setCookie("database", "gTeams2", _root.gTeams2);
_root.setCookie("database", "gTeams3", _root.gTeams3);
_root.setCookie("database", "gTeams4", _root.gTeams4);
_root.setCookie("database", "gCal", _root.gCal);
_root.gotoFrame(18);
}
Symbol 1760 MovieClip Frame 1
stop();
if (_root.sndo) {
gotoAndStop (2);
}
Symbol 1764 MovieClip Frame 1
var cc = (random(30) + 40);
while (cc > 0) {
cc--;
this.attachMovie("cft", "cf" + cc, cc);
}
if (_root.lv == 1) {
stop();
} else if (_root.lv == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 1767 MovieClip Frame 1
if (_root.lv == 1) {
stop();
} else if (_root.lv == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 1771 MovieClip Frame 1
if (_root.lv == 1) {
stop();
} else if (_root.lv == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 1775 MovieClip Frame 1
if (_root.lv == 1) {
stop();
} else if (_root.lv == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 1779 MovieClip Frame 1
if (_root.lv == 1) {
stop();
} else if (_root.lv == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 1781 Button
on (release) {
if (_root.playingNow == 1) {
_root.gScore = 0;
_root.setCookie("database", "gScore", _root.gScore);
}
_root.gotoFrame(4);
}
Symbol 1782 Button
on (release) {
if (_root.playingNow == 1) {
_root.score = gScore;
} else if (_root.playingNow == 2) {
_root.score = leaScore;
} else if (_root.playingNow == 3) {
_root.score = arcScore;
}
_root.gotoFrame(49);
}
Symbol 1785 MovieClip Frame 1
if (_root.lv == 1) {
stop();
} else if (_root.lv == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 1790 MovieClip Frame 1
if (_root.lv == 1) {
stop();
} else if (_root.lv == 2) {
gotoAndStop (2);
} else {
stop();
}
Instance of Symbol 978 MovieClip "pl1" in Symbol 1795 MovieClip Frame 1
onClipEvent (load) {
var ctrl = false;
var plNum = 0;
var theNum = (((_root.team2 * 3) - 2) + plNum);
var eyes = _root.eyes[theNum];
var mouth = _root.mouth[theNum];
var nose = _root.nose[theNum];
var beard = _root.beard[theNum];
var brows = _root.brows[theNum];
var hair = _root.hair[theNum];
var shirt = _root.shirtColor[theNum];
var short = _root.shortColor[theNum];
var skinn = _root.skinColor[theNum];
}
Instance of Symbol 978 MovieClip "pl1" in Symbol 1795 MovieClip Frame 1
onClipEvent (load) {
var ctrl = false;
var plNum = 1;
var theNum = (((_root.team2 * 3) - 2) + plNum);
var eyes = _root.eyes[theNum];
var mouth = _root.mouth[theNum];
var nose = _root.nose[theNum];
var beard = _root.beard[theNum];
var brows = _root.brows[theNum];
var hair = _root.hair[theNum];
var shirt = _root.shirtColor[theNum];
var short = _root.shortColor[theNum];
var skinn = _root.skinColor[theNum];
}
Instance of Symbol 978 MovieClip "pl1" in Symbol 1795 MovieClip Frame 1
onClipEvent (load) {
var ctrl = false;
var plNum = 2;
var theNum = (((_root.team2 * 3) - 2) + plNum);
var eyes = _root.eyes[theNum];
var mouth = _root.mouth[theNum];
var nose = _root.nose[theNum];
var beard = _root.beard[theNum];
var brows = _root.brows[theNum];
var hair = _root.hair[theNum];
var shirt = _root.shirtColor[theNum];
var short = _root.shortColor[theNum];
var skinn = _root.skinColor[theNum];
}
Instance of Symbol 978 MovieClip "pl1" in Symbol 1796 MovieClip Frame 1
onClipEvent (load) {
var ctrl = false;
var plNum = 0;
var theNum = (((_root.team1 * 3) - 2) + plNum);
var eyes = _root.eyes[theNum];
var mouth = _root.mouth[theNum];
var nose = _root.nose[theNum];
var beard = _root.beard[theNum];
var brows = _root.brows[theNum];
var hair = _root.hair[theNum];
var shirt = _root.shirtColor[theNum];
var short = _root.shortColor[theNum];
var skinn = _root.skinColor[theNum];
ind._visible = false;
}
Instance of Symbol 978 MovieClip "a" in Symbol 1796 MovieClip Frame 1
onClipEvent (load) {
var ctrl = false;
var plNum = 1;
var theNum = (((_root.team1 * 3) - 2) + plNum);
var eyes = _root.eyes[theNum];
var mouth = _root.mouth[theNum];
var nose = _root.nose[theNum];
var beard = _root.beard[theNum];
var brows = _root.brows[theNum];
var hair = _root.hair[theNum];
var shirt = _root.shirtColor[theNum];
var short = _root.shortColor[theNum];
var skinn = _root.skinColor[theNum];
ind._visible = false;
}
Instance of Symbol 978 MovieClip "b" in Symbol 1796 MovieClip Frame 1
onClipEvent (load) {
var ctrl = false;
var plNum = 2;
var theNum = (((_root.team1 * 3) - 2) + plNum);
var eyes = _root.eyes[theNum];
var mouth = _root.mouth[theNum];
var nose = _root.nose[theNum];
var beard = _root.beard[theNum];
var brows = _root.brows[theNum];
var hair = _root.hair[theNum];
var shirt = _root.shirtColor[theNum];
var short = _root.shortColor[theNum];
var skinn = _root.skinColor[theNum];
ind._visible = false;
}
Symbol 1803 MovieClip Frame 1
stop();
Symbol 1822 MovieClip Frame 10
gotoAndPlay (5);
Symbol 1822 MovieClip Frame 20
gotoAndPlay (5);
Symbol 1828 MovieClip Frame 1
var t1 = _root.teamNames[_root.team1];
var t2 = _root.teamNames[_root.team2];
Instance of Symbol 1803 MovieClip in Symbol 1828 MovieClip Frame 2
onClipEvent (load) {
if (_root.sndo) {
gotoAndStop (2);
}
}
Instance of Symbol 1827 MovieClip in Symbol 1828 MovieClip Frame 31
onClipEvent (load) {
gotoAndStop(_root.teamLevel[_root.team1]);
}
Instance of Symbol 1803 MovieClip in Symbol 1828 MovieClip Frame 31
onClipEvent (load) {
if (_root.sndo) {
gotoAndStop (3);
}
}
Instance of Symbol 1827 MovieClip in Symbol 1828 MovieClip Frame 36
onClipEvent (load) {
gotoAndStop(_root.teamLevel[_root.team2]);
}
Symbol 1828 MovieClip Frame 55
stop();
Symbol 1829 Button
on (release, keyPress "<Enter>") {
dayTime = dayTimes[random(5)];
nextFrame();
}
Symbol 1832 MovieClip Frame 1
if (_root.lv == 1) {
stop();
} else if (_root.lv == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 1837 MovieClip Frame 1
if (_root.sndo) {
gotoAndStop (2);
}
stop();
Symbol 1841 MovieClip Frame 1
if (_root.sndo) {
gotoAndStop (2);
}
stop();
Symbol 1845 MovieClip Frame 1
stop();
Symbol 1845 MovieClip Frame 2
gotoAndStop(random(4) + 3);
Symbol 1849 MovieClip Frame 1
if (_root.dayTime == "night") {
nextFrame();
} else if (_root.dayTime == "rainy night") {
gotoAndStop (3);
} else if (_root.dayTime == "rainy day") {
gotoAndStop (4);
} else if (_root.dayTime == "sunset") {
gotoAndStop (5);
} else {
stop();
}
stop();
Instance of Symbol 1846 MovieClip in Symbol 1849 MovieClip Frame 3
onClipEvent (enterFrame) {
c--;
if (c <= 0) {
tt = random(640);
tt._alpha = 100;
tt.gotoAndStop(random(tt._totalframes) + 1);
c = random(520);
}
if (tt._alpha > 0) {
tt._alpha = tt._alpha - 5;
}
}
onClipEvent (load) {
tt._alpha = 0;
var c = random(520);
}
Instance of Symbol 1846 MovieClip in Symbol 1849 MovieClip Frame 4
onClipEvent (enterFrame) {
c--;
if (c <= 0) {
tt._x = random(640);
tt._alpha = 100;
tt.gotoAndPlay(2);
c = random(1200);
}
if (tt._alpha > 0) {
tt._alpha = tt._alpha - 7;
if (tt._alpha == 86) {
tt.gotoAndPlay(2);
}
} else {
tt.gotoAndStop(1);
}
}
onClipEvent (load) {
tt._alpha = 0;
var c = random(520);
tt.gotoAndStop(1);
}
Symbol 1857 MovieClip Frame 1
if (((_root.dayTime == "night") || (_root.dayTime == "rainy night")) || (_root.dayTime == "sunset")) {
nextFrame();
} else {
stop();
}
stop();
Symbol 1862 MovieClip Frame 1
play();
Symbol 1988 MovieClip Frame 1
stop();
Symbol 1988 MovieClip Frame 2
_parent.heads.gotoAndPlay(2);
Symbol 1988 MovieClip Frame 10
stop();
_parent.heads.stop();
Instance of Symbol 313 MovieClip in Symbol 1988 MovieClip Frame 10
onClipEvent (load) {
var cc = (random(20) + 10);
}
onClipEvent (enterFrame) {
cc--;
if (cc < 0) {
_parent._parent.heads.play();
_parent.play();
}
}
Symbol 1988 MovieClip Frame 25
_parent.heads.gotoAndStop(1);
gotoAndStop (1);
Symbol 1988 MovieClip Frame 26
var tt = 3;
_parent.heads.gotoAndPlay(26);
Symbol 1988 MovieClip Frame 27
if (tt < 0) {
_parent.heads.gotoAndStop(1);
gotoAndStop (1);
}
Symbol 1988 MovieClip Frame 44
tt--;
if (tt < 0) {
_parent.heads.gotoAndStop(1);
gotoAndStop (1);
}
_parent.heads.gotoAndPlay(27);
gotoAndPlay (27);
Symbol 1988 MovieClip Frame 45
_parent.heads.gotoAndPlay(45);
Symbol 1988 MovieClip Frame 51
stop();
_parent.heads.stop();
Instance of Symbol 313 MovieClip in Symbol 1988 MovieClip Frame 51
onClipEvent (load) {
var cc = (random(20) + 10);
}
onClipEvent (enterFrame) {
cc--;
if (cc < 0) {
_parent._parent.heads.play();
_parent.play();
}
}
Symbol 2119 MovieClip Frame 1
stop();
Instance of Symbol 2120 MovieClip "inner" in Symbol 2121 MovieClip Frame 1
onClipEvent (load) {
var ttu = ((_root.team1 * 3) - 2);
gotoAndStop(_root.shirtColor[ttu]);
}
Instance of Symbol 2120 MovieClip "inner2" in Symbol 2121 MovieClip Frame 1
onClipEvent (load) {
var ttu = ((_root.team2 * 3) - 2);
gotoAndStop(_root.shirtColor[ttu]);
}
Symbol 2147 MovieClip Frame 1
if (ctrl == undefined) {
var ctrl = false;
}
var xvel = (7 + plusSpeed);
var jump = (14 + plusJump);
var strength = (0.5 + plusStrength);
var kd = Key.isDown;
var k = {l:37, r:39, u:38, d:40};
var flr = (_parent.flr - (ht._height / 2));
var gf = _parent.gf;
var grav = 0;
var ball = _parent.ball;
var able = 0;
var ablet = 10;
var mul = 57.2957795130823;
var mul2 = (Math.PI/180);
var difX;
var difY;
var hittin;
var bpx;
var eng = 0;
var c1 = 0;
var c2 = 0;
var c3 = 0;
var c4 = 0;
var illUp = false;
var topY;
var jrnd;
var sscale = 100;
var prevx;
var dind = ind._y;
var spp = 0;
var useTrick;
var useTrickMin;
if (myLevel == 7) {
useTrickMin = 17;
} else if (myLevel == 8) {
useTrickMin = 30;
} else if (myLevel == 9) {
useTrickMin = 45;
} else if (myLevel == 10) {
useTrickMin = 70;
}
var ttu = 0;
var trip;
var trip2;
var xxdif;
var splim = 570;
var atmcs = _parent.atmcs;
var teff;
var difcomp;
onEnterFrame = function () {
if (ctrl) {
eng++;
if (eng == 1) {
c1 = random(ttw);
bpx = bpx + ((50 - random(upper)) - upperStiff);
c2 = random(ttw) + ttws;
illUp = false;
jrnd = random(100);
if (topY > alt2) {
illUp = true;
}
useTrick = random(100);
if ((((tricks > 0) && (spp > splim)) && (useTrick < useTrickMin)) && (!ball.gcel)) {
if (tricks == 1) {
ttu = 1;
trip = 70 + random(100);
} else if (tricks == 2) {
ttu = 2;
} else if (tricks == 3) {
ttu = random(2) + 1;
trip = 70 + random(100);
}
}
}
if (c1 <= 0) {
if (bpx < _x) {
_x = (_x - xvel);
} else if (bpx > _x) {
_x = (_x + xvel);
}
if (Math.abs(_x - bpx) < xvel) {
_x = bpx;
}
}
c1--;
if (_x < minx) {
_x = minx;
} else if (_x > maxx) {
_x = maxx;
}
if ((((hittin && (c2 <= 0)) && (ball._y > alt)) && (!illUp)) && (jrnd > smartQuo)) {
grav = -jump;
}
c2--;
}
grav = grav + gf;
_y = (_y + grav);
if (_y > flr) {
grav = 0;
_y = flr;
hittin = true;
} else {
hittin = false;
if (_y < (flr - 20)) {
}
}
if (hittin) {
if ((_x < prevx) && (dani._currentframe < 3)) {
_xscale = (-sscale);
dani.gotoAndPlay("running");
} else if ((_x > prevx) && (dani._currentframe < 3)) {
_xscale = sscale;
dani.gotoAndPlay("running");
} else {
dani.gotoAndStop("standing");
}
} else {
if (_x < prevx) {
_xscale = (-sscale);
} else if (_x > prevx) {
_xscale = sscale;
}
if (dani._currentframe < 20) {
dani.gotoAndStop("jumping");
} else {
_xscale = (-sscale);
}
}
prevx = _x;
if (ha.hitTest(ball) && (able > ablet)) {
difcomp = 70 - (plusJump * 2.5);
difX = (difcomp - Math.abs(ball._x - _x)) * 0.019;
ball.xvel = (ball._x - _x) * strength;
ball.grav = ((-((ball.grav * 0.4) * difX)) + ((grav * 1.1) * difX)) - 5;
ball.imh = 0;
able = 0;
ablet = 25 - Math.round(((Math.abs(ball._x - _x) + Math.abs(ball._y - _y)) * 0.5) * 0.5);
if (ball._x > (_x + 5)) {
illUp = true;
}
if (illUp) {
ball.grav = (-jump) * 1.4;
ball.xvel = 0;
illUp = false;
}
if ((dani._currentframe >= 28) && (dani._currentframe <= 43)) {
ball.xvel = (70 + random(10)) * (-strength);
ball.grav = -10;
ttu = 0;
} else if (ttu == 2) {
dani.gotoAndPlay("superhead");
ball.xvel = (30 + random(7)) * (-strength);
ball.grav = 45 * strength;
spp = 0;
ttu = 0;
_parent.efins++;
teff = atmcs.attachMovie("teffect2", "e" + _parent.efins, _parent.efins);
teff._x = ball._x;
teff._y = ball._y;
}
}
able++;
ind._y = dind - (_y - flr);
trip2 = _y - trip;
xxdif = Math.abs(ball._x - _x);
if (((((((!hittin) && (ttu == 1)) && (ball._y > trip2)) && (ball.grav > 0)) && (grav < 0)) && (xxdif < 30)) && (ctrl)) {
dani.gotoAndPlay("chilen");
_xscale = 100;
spp = 0;
ttu = 0;
_parent.efins++;
teff = atmcs.attachMovie("teffect2", "e" + _parent.efins, _parent.efins);
teff._x = ball._x;
teff._y = ball._y;
}
spp++;
};
Symbol 2148 MovieClip Frame 1
if (ctrl == undefined) {
var ctrl = false;
}
var xvel = (7 + plusSpeed);
var jump = (14 + plusJump);
var strength = (0.5 + plusStrength);
var kd = Key.isDown;
var k = {l:37, r:39, u:38, d:40};
var flr = (_parent.flr - (ht._height / 2));
var gf = _parent.gf;
var grav = 0;
var ball = _parent.ball;
var able = 0;
var mul = 57.2957795130823;
var mul2 = (Math.PI/180);
var difX;
var difY;
var hittin;
var bpx;
var eng = 0;
var c1 = 0;
var c2 = 0;
var c3 = 0;
var c4 = 0;
var illUp = false;
var topY;
var spx;
var spy;
var spgrav;
var spxvel;
var gCheck = _parent.gCheck;
var stic = 0;
var grest;
var balldify;
var raccu;
var prevx;
var sscale = 100;
var dind = ind._y;
onEnterFrame = function () {
if (ctrl) {
eng++;
if (eng == 1) {
c1 = random(ttw);
bpx = bpx + (50 - random(upper));
c2 = random(ttw) + ttws;
raccu = random(accu);
illUp = false;
if (topY > alt2) {
illUp = true;
}
spx = ball._x;
spy = ball._y;
spgrav = ball.grav;
spxvel = ball.xvel;
stic = 0;
do {
stic++;
spgrav = spgrav + ball.gf;
spy = spy + (spgrav * ball.prop);
spx = spx + (spxvel * ball.prop);
if ((spx < ball.l[1]) || (spx > ball.l[2])) {
spxvel = spxvel * -1;
}
} while (!((spx > _x) || (stic > 500)));
if (ball._x > _x) {
spx = ball._x;
}
balldify = Math.abs(spy - _y);
gCheck._x = ((spx - ((ball.xvel * balldify) * 0.027)) + raccu) + faccu;
gCheck._y = spy;
if (gCheck._y > _y) {
gCheck._y = gCheck._y + 100;
}
}
if (c1 <= 0) {
if (bpx < _x) {
_x = (_x - xvel);
gCheck._x = gCheck._x - xvel;
grest = 1;
} else if (bpx > _x) {
_x = (_x + xvel);
gCheck._x = gCheck._x + xvel;
grest = -1;
}
if (Math.abs(_x - bpx) < xvel) {
_x = bpx;
gCheck._x = gCheck._x + (xvel * grest);
}
}
c1--;
if (_x < minx) {
_x = minx;
gCheck._x = gCheck._x + xvel;
} else if (_x > maxx) {
_x = maxx;
gCheck._x = gCheck._x - xvel;
}
if ((hittin && (gCheck.hitTest(ball))) && (!illUp)) {
grav = -jump;
} else if (((hittin && (c2 <= 0)) && (Math.abs(ball.grav) > Math.abs(ball.xvel))) && (ball._y > alt)) {
grav = -jump;
}
c2--;
}
grav = grav + gf;
_y = (_y + grav);
if (_y > flr) {
grav = 0;
_y = flr;
hittin = true;
} else {
hittin = false;
}
if (hittin) {
if ((_x < prevx) && (dani._currentframe < 3)) {
_xscale = (-sscale);
dani.gotoAndPlay("running");
} else if ((_x > prevx) && (dani._currentframe < 3)) {
_xscale = sscale;
dani.gotoAndPlay("running");
} else {
dani.gotoAndStop("standing");
}
} else {
if (_x < prevx) {
_xscale = (-sscale);
} else if (_x > prevx) {
_xscale = sscale;
}
dani.gotoAndStop("jumping");
}
prevx = _x;
if (ha.hitTest(ball) && (able > 8)) {
difX = (70 - Math.abs(ball._x - _x)) * 0.019;
ball.xvel = (ball._x - _x) * strength;
ball.grav = ((-((ball.grav * 0.4) * difX)) + ((grav * 1.1) * difX)) - 5;
ball.imh = 0;
able = 0;
if (illUp) {
ball.grav = (-jump) * 1.4;
ball.xvel = 0;
illUp = false;
}
}
able++;
ind._y = dind - (_y - flr);
};
Symbol 2149 MovieClip Frame 1
_visible = false;
Symbol 2157 MovieClip Frame 1
var flr = 360;
var gf = 1;
var tm = 1;
var efins;
Instance of Symbol 1555 MovieClip "ball" in Symbol 2157 MovieClip Frame 1
onClipEvent (enterFrame) {
grav = grav + gf;
_y = (_y + (grav * prop));
if ((_y > flr) && (Math.abs(grav) > 2)) {
grav = grav * -0.9;
xvel = xvel * 0.8;
_y = flr;
imh = 0;
ac = tp;
dist2 = 10000;
do {
enem = _parent["e" + ac];
dist = Math.abs(enem._x - _x) + Math.abs(enem._y - _x);
if (dist < dist2) {
eName = enem._name;
dist2 = dist;
}
ac--;
} while (ac > 0);
c = 1;
while (c < tp) {
_parent["e" + c].ctrl = false;
c++;
}
_parent[eName].ctrl = true;
_parent[eName].bpx = spx;
_parent[eName].eng = 0;
_parent[eName].topY = topY;
ntp = 0;
}
_x = (_x + (xvel * prop));
if (((_x < l[1]) || (_x > l[2])) && (_y < topPor)) {
if (_x < l[1]) {
_x = l[1];
} else if (_x < l[2]) {
_x = l[2];
}
xvel = xvel * -1;
}
rot = rot + ((xvel * prop) * 2);
if (rot > 360) {
rot = rot - 360;
} else if (rot < 0) {
rot = rot + 360;
}
rrot = Math.round(rot / 10) + 1;
inner.gotoAndStop(rrot);
tsec--;
if (tsec <= 0) {
tsec = 35;
if (_root.mar1.tt == 0) {
if (_root.g1 == _root.g2) {
if (_root.playingNow == 2) {
ended++;
if (sndo) {
musicMc.gotoAndStop("whistle2");
}
_parent.pl1.ctrl = false;
_parent.pl2.ctrl = false;
_parent.pl3.ctrl = false;
_parent.e1.ctrl = false;
_parent.e2.ctrl = false;
_parent.e3.ctrl = false;
} else {
_root.mar1.tt = _root.mar1.tt + 15;
}
} else {
trace("partido terminado");
ended++;
if (sndo) {
musicMc.gotoAndStop("whistle2");
}
_parent.pl1.ctrl = false;
_parent.pl2.ctrl = false;
_parent.pl3.ctrl = false;
_parent.e1.ctrl = false;
_parent.e2.ctrl = false;
_parent.e3.ctrl = false;
}
}
_root.mar1.tt--;
}
if (ended > 0) {
ended++;
if (ended > 70) {
if (_root.g1 > _root.g2) {
_root.iWin = true;
} else {
_root.iWin = false;
}
if (_root.playingNow == 1) {
_root.gPhase++;
} else if (_root.playingNow == 2) {
_root.leaPhase++;
} else if (_root.playingNow == 3) {
_root.arcPhase++;
}
_root.afterPartido = true;
stopAllSounds();
_root.gotoAndStop(21);
}
}
cpxx = (-_parent._x) + limx.mxx;
cpxm = (-_parent._x) + limx.mnn;
_parent.pp._x = cpxx;
if (_x > cpxx) {
_parent._x = _parent._x - ((_x - cpxx) * 0.17);
} else if (_x < cpxm) {
_parent._x = _parent._x - ((_x - cpxm) * 0.17);
}
if (_parent._x > 340) {
_parent._x = 340;
} else if (_parent._x < -470) {
_parent._x = -470;
}
_root.bgCrowd._x = _parent._x * 0.3;
_root.bgAds._x = _parent._x * 0.5;
ntp++;
if ((((_x < gz1) && (!gcel)) && (_root.mar1.tt > 0)) && (_y > topPor)) {
gtmr++;
gtm = 2;
_root.aniGoal.play();
} else if ((((_x > gz2) && (!gcel)) && (_root.mar1.tt > 0)) && (_y > topPor)) {
gtmr++;
gtm = 1;
_root.aniGoal.play();
if (hitTrick == 1) {
if (_root.didTrick == 2) {
_root.didTrick = 3;
} else {
_root.didTrick = 1;
}
} else if (hitTrick == 2) {
if (_root.didTrick == 1) {
_root.didTrick = 3;
} else {
_root.didTrick = 2;
}
}
} else {
gtmr = 0;
}
if (gtmr == 1) {
_root["g" + gtm]++;
gcel = true;
gcel2 = 0;
if (gtm == 2) {
movc = 0;
movt = 4;
_root.mar1.gnum2.gotoAndStop(_root.g2 + 1);
if ((_root.playingNow == 1) && (_root.gScore >= 5)) {
_root.gScore = _root.gScore - 5;
}
} else if (gtm == 1) {
movc = 0;
movt = 1;
_root.mar1.gnum1.gotoAndStop(_root.g1 + 1);
if (_root.playingNow == 1) {
_root.gScore = _root.gScore + 10;
} else if (_root.playingNow == 2) {
_root.leaScore = _root.leaScore + 10;
} else if (_root.playingNow == 3) {
_root.arcScore = _root.arcScore + 10;
}
}
}
if (gcel) {
gcel2++;
if (gcel2 > 70) {
_x = 570;
_y = 0;
xvel = random(21) - random(21);
grav = -random(20);
gcel = false;
gcel2 = 0;
imh = 0;
}
}
imh++;
topY = _y;
if (imh == 1) {
spx = _x;
spy = _y;
spgrav = grav;
spxvel = xvel;
do {
spgrav = spgrav + gf;
spy = spy + (spgrav * prop);
spx = spx + (spxvel * prop);
if ((spx < l[1]) || (spx > l[2])) {
spxvel = spxvel * -1;
}
if (spy < topY) {
topY = spy;
}
} while (!((spy > 270) && (spgrav > 0)));
ac = tp;
dist2 = 10000;
do {
enem = _parent["e" + ac];
dist = Math.abs(enem._x - spx) + Math.abs(enem._y - spy);
if (dist < dist2) {
eName = enem._name;
dist2 = dist;
}
ac--;
} while (ac > 0);
c = 1;
while (c < tp) {
_parent["e" + c].ctrl = false;
c++;
}
_parent[eName].ctrl = true;
_parent[eName].bpx = spx;
_parent[eName].eng = 0;
_parent[eName].topY = topY;
ntp = 0;
if (apk) {
ac = tp;
dist2 = 10000;
do {
enem = _parent["pl" + ac];
dist = Math.abs(enem._x - spx) + Math.abs(enem._y - spy);
if (dist < dist2) {
eName = enem._name;
dist2 = dist;
}
ac--;
} while (ac > 0);
c = 1;
while (c < tp) {
_parent["pl" + c].ctrl = false;
c++;
}
_parent[eName].ctrl = true;
_parent[eName].bpx = spx;
_parent[eName].eng = 0;
_parent[eName].topY = topY;
}
}
if (hitTest(_parent.pal1) && (hiBar > 3)) {
npVel = Math.abs(xvel) + Math.abs(grav);
npTemp = Math.atan2(_y - _parent.pal1._y, _x - _parent.pal1._x) * mul2;
npTemp2 = Math.atan2(grav, xvel) * mul2;
nnRot = (360 - (npTemp2 - (npTemp * 2))) + 180;
npx = Math.cos(nnRot * mul) * npVel;
npy = Math.sin(nnRot * mul) * npVel;
xvel = npx;
grav = npy;
hiBar = 0;
if (grav > 0) {
movc = 0;
movt = 5;
} else {
movc = 0;
movt = 6;
}
} else if (hitTest(_parent.pal2) && (hiBar > 3)) {
npVel = Math.abs(xvel) + Math.abs(grav);
npTemp = Math.atan2(_y - _parent.pal2._y, _x - _parent.pal2._x) * mul2;
npTemp2 = Math.atan2(grav, xvel) * mul2;
nnRot = (360 - (npTemp2 - (npTemp * 2))) + 180;
npx = Math.cos(nnRot * mul) * npVel;
npy = Math.sin(nnRot * mul) * npVel;
xvel = npx;
grav = npy;
hiBar = 0;
if (grav > 0) {
movc = 0;
movt = 2;
} else {
movc = 0;
movt = 3;
}
} else {
hiBar++;
}
if (hitTest(_parent.tp1)) {
_y = ((_parent.tp1._y + (_parent.tp1._height / 2)) + wdth);
grav = grav * -1;
} else if (hitTest(_parent.tp2)) {
_y = ((_parent.tp2._y + (_parent.tp2._height / 2)) + wdth);
grav = grav * -1;
}
if (_x < porl[1]) {
_x = porl[1];
xvel = xvel * -0.25;
} else if (_x > porl[2]) {
_x = porl[2];
xvel = xvel * -0.25;
}
movc++;
if (movc == 1) {
if (movt == 1) {
myCrowd.gotoAndPlay("goal");
if (sndo) {
musicMc.gotoAndPlay("goal" + (random(2) + 1));
}
sndfix = 5;
snnum = "whistle1";
} else if (movt == 2) {
myCrowd.gotoAndPlay("almost");
if (sndo) {
musicMc.gotoAndPlay(snalmost[random(2)]);
}
} else if (movt == 3) {
myCrowd.gotoAndPlay("few");
if (sndo) {
musicMc.gotoAndPlay(snalmost[random(2)]);
}
} else if (movt == 4) {
myRivals.gotoAndPlay("goal");
if (sndo) {
musicMc.gotoAndPlay("goal" + (random(2) + 1));
}
sndfix = 5;
snnum = "whistle1";
} else if (movt == 5) {
myRivals.gotoAndPlay("almost");
if (sndo) {
musicMc.gotoAndPlay(snalmost[random(2)]);
}
} else if (movt == 6) {
myRivals.gotoAndPlay("few");
if (sndo) {
musicMc.gotoAndPlay(snalmost[random(2)]);
}
}
}
snc++;
if (snc > snc2) {
snc = 0;
snr = random(100);
if (snr < snmin) {
snpick = snarr[random(6)];
if (sndo) {
musicMc.gotoAndPlay(snpick);
}
}
}
if (sndfix > 0) {
if (sndfix == 1) {
if (sndo) {
musicMc.gotoAndPlay(snnum);
}
if (snnum == "uy1") {
sndfix = 40;
snnum = "applause";
} else if (snnum == "whistle1") {
sntmp = random(100);
if (sntmp < 20) {
trace("yeah, la porra is to come");
sndfix = 70;
snnum = snarr[random(6)];
}
}
trace(snnum);
}
sndfix--;
}
campSkew = 20 - Math.round((_parent._x - campD) / 35);
_parent.camp.inner.gotoAndStop(campSkew);
_parent.upperc.gotoAndStop(campSkew);
if (_y < -120) {
upindscale = (Math.abs(_y) - 120) * 0.5;
if (upindscale > 1000) {
upindscale = 1000;
}
_parent.upind._visible = true;
_parent.upind._x = _x;
_parent.upind._xscale = (_parent.upind._yscale = upindscale);
} else {
_parent.upind._visible = false;
}
shdw._x = _x;
}
onClipEvent (keyDown) {
c = 1;
myList = [0];
while (c < tp) {
currentPlayer = _parent["pl" + c];
myList.push(currentPlayer._x);
c++;
}
myList.sort(Array.NUMERIC);
c = 1;
myList2 = [0, 0, 0, 0, 0, 0, 0];
while (c < tp) {
currentPlayer = _parent["pl" + c];
c2 = 1;
while (c2 < tp) {
if (currentPlayer._x == myList[c2]) {
myList2[c2] = currentPlayer;
if (currentPlayer.ctrl) {
cPos = c2;
}
}
c2++;
}
c++;
}
if ((Key.isDown(k.s) || (Key.isDown(k.s2))) && ((ntp > 4) || (_y > 241))) {
spx = _x;
spy = _y;
spgrav = grav;
spxvel = xvel;
do {
spgrav = spgrav + gf;
spy = spy + (spgrav * prop);
spx = spx + (spxvel * prop);
if ((spx < l[1]) || (spx > l[2])) {
spxvel = spxvel * -1;
}
} while (!((spy > 241) && (spgrav > 0)));
ac = tp;
dist2 = 10000;
do {
enem = _parent["pl" + ac];
if (!enem.ctrl) {
dist = Math.abs(enem._x - spx) + Math.abs(enem._y - spy);
if (dist < dist2) {
eName = enem._name;
dist2 = dist;
}
}
ac--;
} while (ac > 0);
c = 1;
while (c < tp) {
_parent["pl" + c].ctrl = false;
c++;
}
_parent[eName].ctrl = true;
ntp = 0;
}
}
onClipEvent (load) {
var gf = _parent.gf;
var grav = 0;
var xvel = 0;
var flr = ((_parent.flr - (_height / 2)) + 30);
var k = {n:68, p:65, s:32, s2:65};
var pc = 1;
var tp = 4;
var c = 0;
var limx = {mxx:360, mnn:340};
var cpxx;
var cpxm;
var wdth = (_width / 2);
var l = [0, _parent.l1._x + wdth, _parent.l2._x - wdth];
var myList1 = new Array(4);
var myList2 = new Array(4);
var currentPlayer;
var c2 = 0;
var cPos;
var ac = 0;
var eName;
var enem;
var dist;
var dist2;
var prop = 0.73;
var ntp = 0;
var spx;
var spy;
var spgrav;
var spxvel;
var imh = 0;
var topY;
var defX = _x;
var topPor = (_parent.l2._y + wdth);
var mul = (Math.PI/180);
var mul2 = 57.2957795130823;
var npx;
var npy;
var npTemp;
var npTemp2;
var nnRot;
var npVel;
var hiBar = 0;
var movc = 3;
var movt = 0;
var movr = 0;
var myCrowd = _root.bgCrowd.inner.ccrowd;
var myRivals = _root.bgCrowd.inner2.ccrowd;
var sndo = _root.sndo;
var snc = 0;
var snc2 = 350;
var snr;
var snmin = 30;
var snpick;
var snarr = ["porra1", "porra2", "porra3", "porra4", "porra5", "chiflido"];
var snfix = 0;
var snnum;
var musicMc = _root.msc;
var snalmost = ["uy1", "uy2"];
var sntmp;
var sngoal = ["goal", "goal2"];
var campSkew;
var campD = _parent._x;
var gz1 = (_parent.pal1._x - wdth);
var gz2 = (_parent.pal2._x + wdth);
var gtmr = 0;
var gtm;
var gcel;
var gcel2;
var porl = [0, _parent.g1._x + wdth, _parent.g2._x - wdth];
var rot = 0;
var rrot;
var tsec = 35;
_root.mar1.tt = 60;
var ended = 0;
var sndo = _root.sndo;
var upindscale;
var hitTrick = 0;
var shdw = _parent.shdw;
var apk = _root.autoPick;
var ksi = [37, 39, 38, 40];
var absel = true;
var kd = Key.isDown;
}
Instance of Symbol 978 MovieClip "pl1" in Symbol 2157 MovieClip Frame 1
onClipEvent (load) {
var ctrl = false;
var plNum = 0;
var theNum = (((_root.team1 * 3) - 2) + plNum);
var eyes = _root.eyes[theNum];
var mouth = _root.mouth[theNum];
var nose = _root.nose[theNum];
var beard = _root.beard[theNum];
var brows = _root.brows[theNum];
var hair = _root.hair[theNum];
var shirt = _root.shirtColor[theNum];
var short = _root.shortColor[theNum];
var skinn = _root.skinColor[theNum];
var tricks = _root.playerTricks[theNum];
var plusStrength = _root.playerPlusStrength[theNum];
var plusJump = (5 + _root.playerPlusJump[theNum]);
var plusSpeed = _root.playerPlusSpeed[theNum];
}
Instance of Symbol 978 MovieClip "pl2" in Symbol 2157 MovieClip Frame 1
onClipEvent (load) {
var ctrl = true;
var plNum = 1;
var theNum = (((_root.team1 * 3) - 2) + plNum);
var eyes = _root.eyes[theNum];
var mouth = _root.mouth[theNum];
var nose = _root.nose[theNum];
var beard = _root.beard[theNum];
var brows = _root.brows[theNum];
var hair = _root.hair[theNum];
var shirt = _root.shirtColor[theNum];
var short = _root.shortColor[theNum];
var skinn = _root.skinColor[theNum];
var tricks = _root.playerTricks[theNum];
var plusStrength = _root.playerPlusStrength[theNum];
var plusJump = _root.playerPlusJump[theNum];
var plusSpeed = _root.playerPlusSpeed[theNum];
}
Instance of Symbol 978 MovieClip "pl3" in Symbol 2157 MovieClip Frame 1
onClipEvent (load) {
var plNum = 2;
var theNum = (((_root.team1 * 3) - 2) + plNum);
var eyes = _root.eyes[theNum];
var mouth = _root.mouth[theNum];
var nose = _root.nose[theNum];
var beard = _root.beard[theNum];
var brows = _root.brows[theNum];
var hair = _root.hair[theNum];
var shirt = _root.shirtColor[theNum];
var short = _root.shortColor[theNum];
var skinn = _root.skinColor[theNum];
var tricks = _root.playerTricks[theNum];
var plusStrength = _root.playerPlusStrength[theNum];
var plusJump = _root.playerPlusJump[theNum];
var plusSpeed = _root.playerPlusSpeed[theNum];
}
Instance of Symbol 2147 MovieClip "e2" in Symbol 2157 MovieClip Frame 1
onClipEvent (load) {
var plNum = 1;
var theNum = (((_root.team2 * 3) - 2) + plNum);
var plusStrength = (0.1 + _root.playerPlusStrength[theNum]);
var plusJump = _root.playerPlusJump[theNum];
var plusSpeed = _root.playerPlusSpeed[theNum];
var minx = 119;
var maxx = _parent.l2._x;
var myPos = 2;
var ttw = _root.playerTtw[theNum];
var ttws = _root.playerTtws[theNum];
var alt = (200 - _root.playerAlt[theNum]);
var alt2 = 250;
var upper = (30 + _root.playerUpper[theNum]);
var upperStiff = _root.playerUpperStiff[theNum];
var smartQuo = _root.playerSmartQuo[theNum];
var tricks = _root.playerTricks[theNum];
var myLevel = _root.teamLevel[_root.team2];
var eyes = _root.eyes[theNum];
var mouth = _root.mouth[theNum];
var nose = _root.nose[theNum];
var beard = _root.beard[theNum];
var brows = _root.brows[theNum];
var hair = _root.hair[theNum];
var shirt = _root.shirtColor[theNum];
var short = _root.shortColor[theNum];
var skinn = _root.skinColor[theNum];
}
Instance of Symbol 2147 MovieClip "e1" in Symbol 2157 MovieClip Frame 1
onClipEvent (load) {
var plNum = 2;
var theNum = (((_root.team2 * 3) - 2) + plNum);
var plusStrength = (0.1 + _root.playerPlusStrength[theNum]);
var plusJump = _root.playerPlusJump[theNum];
var plusSpeed = _root.playerPlusSpeed[theNum];
var minx = -208;
var maxx = _parent.l2._x;
var myPos = 3;
var ttw = _root.playerTtw[theNum];
var ttws = _root.playerTtws[theNum];
var alt = (200 - _root.playerAlt[theNum]);
var alt2 = 250;
var upper = (10 + _root.playerUpper[theNum]);
var upperStiff = _root.playerUpperStiff[theNum];
var smartQuo = _root.playerSmartQuo[theNum];
var tricks = _root.playerTricks[theNum];
var myLevel = _root.teamLevel[_root.team2];
var eyes = _root.eyes[theNum];
var mouth = _root.mouth[theNum];
var nose = _root.nose[theNum];
var beard = _root.beard[theNum];
var brows = _root.brows[theNum];
var hair = _root.hair[theNum];
var shirt = _root.shirtColor[theNum];
var short = _root.shortColor[theNum];
var skinn = _root.skinColor[theNum];
}
Instance of Symbol 2148 MovieClip "e3" in Symbol 2157 MovieClip Frame 1
onClipEvent (load) {
var plNum = 0;
var theNum = (((_root.team2 * 3) - 2) + plNum);
var plusStrength = (0.1 + _root.playerPlusStrength[theNum]);
var plusJump = (5 + _root.playerPlusJump[theNum]);
var plusSpeed = _root.playerPlusSpeed[theNum];
var minx = 936;
var maxx = 1312;
var myPos = 1;
var ttw = _root.playerTtw[theNum];
var ttws = _root.playerTtws[theNum];
var accu = 50;
var faccu = 50;
var alt = (200 - _root.playerAlt[theNum]);
var alt2 = 230;
var upper = 30;
var eyes = _root.eyes[theNum];
var mouth = _root.mouth[theNum];
var nose = _root.nose[theNum];
var beard = _root.beard[theNum];
var brows = _root.brows[theNum];
var hair = _root.hair[theNum];
var shirt = _root.shirtColor[theNum];
var short = _root.shortColor[theNum];
var skinn = _root.skinColor[theNum];
}
Symbol 2173 MovieClip Frame 1
stop();
if (_root.sndo) {
play();
}
Symbol 2173 MovieClip Frame 3
stop();
Symbol 2173 MovieClip Frame 5
gotoAndStop ("stp");
Symbol 2173 MovieClip Frame 7
gotoAndStop ("stp");
Symbol 2173 MovieClip Frame 9
gotoAndStop ("stp");
Symbol 2173 MovieClip Frame 11
gotoAndStop ("stp");
Symbol 2173 MovieClip Frame 13
gotoAndStop ("stp");
Symbol 2173 MovieClip Frame 15
gotoAndStop ("stp");
Symbol 2173 MovieClip Frame 17
gotoAndStop ("stp");
Symbol 2173 MovieClip Frame 19
gotoAndStop ("stp");
Symbol 2173 MovieClip Frame 21
gotoAndStop ("stp");
Symbol 2173 MovieClip Frame 23
gotoAndStop ("stp");
Symbol 2173 MovieClip Frame 25
gotoAndStop ("stp");
Symbol 2173 MovieClip Frame 27
gotoAndStop ("stp");
Symbol 2217 MovieClip Frame 1
stop();
Symbol 2252 MovieClip Frame 1
stop();
Symbol 2254 MovieClip Frame 1
var tt = _root.secs;
Symbol 2258 MovieClip Frame 1
if (_root.lv == 1) {
stop();
} else if (_root.lv == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 2259 MovieClip Frame 1
stop();
Symbol 2264 MovieClip Frame 1
if ((_root.dayTime == "rainy day") || (_root.dayTime == "rainy night")) {
nextFrame();
}
stop();
Symbol 2265 Button
on (release) {
if (playingNow == 1) {
_root.gotoFrame(10);
} else if (playingNow == 2) {
_root.gotoFrame(27);
} else if (playingNow == 3) {
_root.gotoFrame(34);
}
}
Symbol 2268 MovieClip Frame 1
if (_root.lv == 1) {
stop();
} else if (_root.lv == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 2269 Button
on (release) {
_root.gotoFrame(22);
}
Symbol 2272 MovieClip Frame 1
if (_root.lv == 1) {
stop();
} else if (_root.lv == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 2273 Button
on (release) {
if (playingNow == 1) {
_root.score = gScore;
_root.nid = 14041;
} else if (playingNow == 2) {
_root.score = leaScore;
_root.nid = 14042;
} else if (playingNow == 3) {
_root.score = arcScore;
_root.nid = 14043;
}
_root.gotoFrame(49);
}
Symbol 2276 MovieClip Frame 1
if (_root.lv == 1) {
stop();
} else if (_root.lv == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 2281 MovieClip Frame 1
if (_root.lv == 1) {
stop();
} else if (_root.lv == 2) {
gotoAndStop (2);
} else {
stop();
}
Instance of Symbol 1754 MovieClip "inner" in Symbol 2282 MovieClip Frame 1
onClipEvent (load) {
stop();
}
Symbol 2287 Button
on (release) {
pplayer = pl1.theNum;
gotoFrame(23);
}
Symbol 2288 Button
on (release) {
pplayer = pl2.theNum;
gotoFrame(23);
}
Symbol 2289 Button
on (release) {
pplayer = pl3.theNum;
gotoFrame(23);
}
Symbol 2290 Button
on (release) {
if (playingNow == 1) {
_root.gotoFrame(10);
} else if (playingNow == 2) {
_root.gotoFrame(27);
} else if (playingNow == 3) {
_root.gotoFrame(34);
}
}
Symbol 2291 Button
on (release) {
cfm = false;
_root.gotoFrame(24);
}
Symbol 2293 MovieClip Frame 1
if (_root.lv == 1) {
stop();
} else if (_root.lv == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 2300 Button
on (release) {
_root.setCookie("database", "playerPlusJump", _root.playerPlusJump);
_root.setCookie("database", "playerPlusSpeed", _root.playerPlusSpeed);
_root.setCookie("database", "playerPlusStrength", _root.playerPlusStrength);
_root.setCookie("database", "playerTricks", _root.playerTricks);
_root.setCookie("database", "myPoints", _root.myPoints);
_root.gotoFrame(22);
}
Symbol 2304 Button
on (release) {
if ((myPoints > 0) && (playerPlusJump[pplayer] < limJump)) {
myPoints = myPoints - 1;
playerPlusJump[pplayer] = playerPlusJump[pplayer] + 0.5;
}
}
Symbol 2306 Button
on (release) {
if (playerPlusJump[pplayer] > 0) {
myPoints = myPoints + 1;
playerPlusJump[pplayer] = playerPlusJump[pplayer] - 0.5;
}
}
Symbol 2308 Button
on (release) {
if ((myPoints > 0) && (playerPlusSpeed[pplayer] < limSpeed)) {
myPoints = myPoints - 1;
playerPlusSpeed[pplayer] = playerPlusSpeed[pplayer] + 0.25;
}
}
Symbol 2309 Button
on (release) {
if (playerPlusSpeed[pplayer] > 0) {
myPoints = myPoints + 1;
playerPlusSpeed[pplayer] = playerPlusSpeed[pplayer] - 0.25;
}
}
Symbol 2310 Button
on (release) {
if ((myPoints > 0) && (playerPlusStrength[pplayer] < limStrength)) {
myPoints = myPoints - 1;
playerPlusStrength[pplayer] = playerPlusStrength[pplayer] + 0.05;
}
}
Symbol 2311 Button
on (release) {
if (playerPlusStrength[pplayer] > 0) {
myPoints = myPoints + 1;
playerPlusStrength[pplayer] = playerPlusStrength[pplayer] - 0.05;
}
}
Symbol 2313 Button
on (release) {
if ((myPoints >= 7) && ((playerTricks[pplayer] == 0) || (playerTricks[pplayer] == 2))) {
myPoints = myPoints - 7;
bb1._alpha = 52;
ms1._x = 517;
if (playerTricks[pplayer] == 0) {
playerTricks[pplayer] = 1;
} else if (playerTricks[pplayer] == 2) {
playerTricks[pplayer] = 3;
}
}
}
Symbol 2314 Button
on (release) {
if ((myPoints >= 10) && ((playerTricks[pplayer] == 0) || (playerTricks[pplayer] == 1))) {
myPoints = myPoints - 10;
bb2._alpha = 52;
ms2._x = 518;
if (playerTricks[pplayer] == 0) {
playerTricks[pplayer] = 2;
} else if (playerTricks[pplayer] == 1) {
playerTricks[pplayer] = 3;
}
}
}
Symbol 2329 MovieClip Frame 1
if (_root.lv == 1) {
stop();
} else if (_root.lv == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 2330 Button
on (release) {
_root.setCookie("database", "unlockedHair", _root.unlockedHair);
_root.setCookie("database", "unlockedEyes", _root.unlockedEyes);
_root.setCookie("database", "unlockedNose", _root.unlockedNose);
_root.setCookie("database", "unlockedMouth", _root.unlockedMouth);
_root.setCookie("database", "unlockedBall", _root.unlockedBall);
if (cfm) {
_root.gotoFrame(8);
} else {
_root.gotoFrame(22);
}
}
Symbol 2331 Button
on (release) {
if (myPoints >= 5) {
myPoints = myPoints - 5;
unlockedBall++;
play();
}
}
Symbol 2469 MovieClip Frame 1
_parent.spch = false;
_parent.spsh = false;
stop();
Symbol 2469 MovieClip Frame 13
gotoAndPlay (5);
Symbol 2469 MovieClip Frame 18
gotoAndStop (1);
Symbol 2469 MovieClip Frame 20
_parent.spsh = true;
Symbol 2469 MovieClip Frame 27
_parent.spsh = false;
gotoAndStop (1);
Symbol 2469 MovieClip Frame 28
_parent.spch = true;
Symbol 2469 MovieClip Frame 47
_parent.spch = false;
Symbol 2469 MovieClip Frame 48
_parent.spch = false;
gotoAndStop (1);
Symbol 2471 Button
on (release) {
if (myPoints >= 5) {
myPoints = myPoints - 5;
unlockedHair++;
play();
}
}
Symbol 2472 Button
on (release) {
if (myPoints >= 5) {
myPoints = myPoints - 5;
unlockedEyes++;
play();
}
}
Symbol 2473 Button
on (release) {
if (myPoints >= 5) {
myPoints = myPoints - 5;
unlockedNose++;
play();
}
}
Symbol 2474 Button
on (release) {
if (myPoints >= 5) {
myPoints = myPoints - 5;
unlockedMouth++;
play();
}
}
Symbol 2475 MovieClip Frame 1
gotoAndStop(this.ballStyle);
Symbol 2489 MovieClip Frame 1
if (_root.lv == 1) {
stop();
} else if (_root.lv == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 2492 MovieClip Frame 1
if (_root.lv == 1) {
stop();
} else if (_root.lv == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 2496 Button
on (release) {
resmc.gotoAndStop(2);
}
Symbol 2529 Button
on (release) {
if (_root.leaPhase == 16) {
_root.gotoFrame(30);
} else {
_root.gotoFrame(29);
}
}
on (keyPress "<Up>") {
leaPoints[1] = leaPoints[1] + 3;
}
Symbol 2531 MovieClip Frame 1
Symbol 2533 Button
on (release) {
_root.leaPhase = 0;
_root.leaPicked = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
_root.leaTeams = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
_root.leaMatchTeams = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
_root.leaPoints = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
_root.leaScore = 0;
_root.leaCal = 0;
_root.setCookie("database", "leaPhase", _root.leaPhase);
_root.setCookie("database", "leaPicked", _root.leaPicked);
_root.setCookie("database", "leaTeams", _root.leaTeams);
_root.setCookie("database", "leaMatchTeams", _root.leaMatchTeams);
_root.setCookie("database", "leaPoints", _root.leaPoints);
_root.setCookie("database", "leaCal", _root.leaCal);
_root.setCookie("database", "leaScore", _root.leaScore);
_root.gotoFrame(4);
}
Symbol 2535 Button
on (release) {
gotoAndStop (1);
}
Symbol 2537 MovieClip Frame 1
stop();
Symbol 2541 MovieClip Frame 1
if (_root.lv == 1) {
stop();
} else if (_root.lv == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 2544 Button
on (release) {
if (leaMatchTeams[1] == 1) {
v1 = leaMatchTeams[2];
v2 = leaTeams[v1];
team2 = v2;
playingAgainst = v1;
} else if (leaMatchTeams[2] == 1) {
v1 = leaMatchTeams[1];
v2 = leaTeams[v1];
team2 = v2;
playingAgainst = v1;
}
_root.gotoFrame(19);
}
Symbol 2565 MovieClip Frame 1
if (_root.lv == 1) {
stop();
} else if (_root.lv == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 2568 MovieClip Frame 1
if (_root.lv == 1) {
stop();
} else if (_root.lv == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 2571 MovieClip Frame 1
if (_root.lv == 1) {
stop();
} else if (_root.lv == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 2572 Button
on (release) {
_root.gotoFrame(18);
}
Symbol 2575 MovieClip Frame 1
if (_root.lv == 1) {
stop();
} else if (_root.lv == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 2576 MovieClip Frame 1
_root.points = _root.points + 5;
Instance of Symbol 978 MovieClip "pl1" in Symbol 2576 MovieClip Frame 1
onClipEvent (load) {
var ctrl = false;
var plNum = 0;
var theNum = (((_root.team1 * 3) - 2) + plNum);
var eyes = _root.eyes[theNum];
var mouth = 17;
var nose = _root.nose[theNum];
var beard = _root.beard[theNum];
var brows = _root.brows[theNum];
var hair = _root.hair[theNum];
var shirt = _root.shirtColor[theNum];
var short = _root.shortColor[theNum];
var skinn = _root.skinColor[theNum];
ind._visible = false;
}
Instance of Symbol 978 MovieClip "a" in Symbol 2576 MovieClip Frame 1
onClipEvent (load) {
var ctrl = false;
var plNum = 1;
var theNum = (((_root.team1 * 3) - 2) + plNum);
var eyes = _root.eyes[theNum];
var mouth = 17;
var nose = _root.nose[theNum];
var beard = _root.beard[theNum];
var brows = _root.brows[theNum];
var hair = _root.hair[theNum];
var shirt = _root.shirtColor[theNum];
var short = _root.shortColor[theNum];
var skinn = _root.skinColor[theNum];
ind._visible = false;
}
Instance of Symbol 978 MovieClip "b" in Symbol 2576 MovieClip Frame 1
onClipEvent (load) {
var ctrl = false;
var plNum = 2;
var theNum = (((_root.team1 * 3) - 2) + plNum);
var eyes = _root.eyes[theNum];
var mouth = 17;
var nose = _root.nose[theNum];
var beard = _root.beard[theNum];
var brows = _root.brows[theNum];
var hair = _root.hair[theNum];
var shirt = _root.shirtColor[theNum];
var short = _root.shortColor[theNum];
var skinn = _root.skinColor[theNum];
ind._visible = false;
}
Symbol 2576 MovieClip Frame 2
_root.myPoints = _root.myPoints + 10;
_root.trophiesUnlocked[2] = 1;
_root.setCookie("database", "trophiesUnlocked", _root.trophiesUnlocked);
_root.setCookie("database", "myPoints", _root.myPoints);
var cc = (random(30) + 40);
while (cc > 0) {
cc--;
this.attachMovie("cft", "cf" + cc, cc);
}
Instance of Symbol 1754 MovieClip in Symbol 2576 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop (2);
}
Instance of Symbol 2580 MovieClip in Symbol 2581 MovieClip Frame 1
onClipEvent (load) {
if (_root.trophiesUnlocked[4] == 1) {
stop();
} else {
gotoAndStop (2);
}
}
Instance of Symbol 2580 MovieClip in Symbol 2581 MovieClip Frame 1
onClipEvent (load) {
if (_root.trophiesUnlocked[2] == 1) {
stop();
} else {
gotoAndStop (2);
}
}
Instance of Symbol 2580 MovieClip in Symbol 2581 MovieClip Frame 1
onClipEvent (load) {
if (_root.trophiesUnlocked[3] == 1) {
stop();
} else {
gotoAndStop (2);
}
}
Instance of Symbol 2580 MovieClip in Symbol 2581 MovieClip Frame 1
onClipEvent (load) {
if (_root.trophiesUnlocked[5] == 1) {
stop();
} else {
gotoAndStop (2);
}
}
Instance of Symbol 2580 MovieClip in Symbol 2581 MovieClip Frame 1
onClipEvent (load) {
if (_root.trophiesUnlocked[6] == 1) {
stop();
} else {
gotoAndStop (2);
}
}
Instance of Symbol 2580 MovieClip in Symbol 2581 MovieClip Frame 1
onClipEvent (load) {
if (_root.trophiesUnlocked[7] == 1) {
stop();
} else {
gotoAndStop (2);
}
}
Instance of Symbol 2580 MovieClip in Symbol 2581 MovieClip Frame 1
onClipEvent (load) {
if (_root.trophiesUnlocked[1] == 1) {
stop();
} else {
gotoAndStop (2);
}
}
Symbol 2585 Button
on (release) {
arcBeaten[arcPick] = 0;
_root.gotoFrame(4);
}
Symbol 2586 Button
on (release) {
if (_root.arcPhase >= 32) {
_root.gotoFrame(47);
} else {
_root.gotoFrame(19);
}
team2 = arcPick;
trace("arcBeaten -- " + arcBeaten);
trace("arcWon -- " + arcWon);
}
Symbol 2626 MovieClip Frame 1
if (_root.lv == 1) {
stop();
} else if (_root.lv == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 2629 MovieClip Frame 1
if (_root.lv == 1) {
stop();
} else if (_root.lv == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 2630 MovieClip Frame 1
stop();
Instance of Symbol 2619 MovieClip in Symbol 2630 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.arcPhase);
}
Symbol 2631 MovieClip Frame 1
if (_root.lv == 1) {
stop();
} else if (_root.lv == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 2632 Button
on (release) {
getURL ("http://www.giddelcreations.com", "_blank");
}
Symbol 2633 Button
on (release) {
_root.playingNow = 3;
_root.score = arcScore;
_root.gotoFrame(49);
}
Symbol 2636 MovieClip Frame 1
if (_root.lv == 1) {
stop();
} else if (_root.lv == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 2639 MovieClip Frame 1
if (_root.lv == 1) {
stop();
} else if (_root.lv == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 2644 MovieClip Frame 1
Instance of Symbol 370 MovieClip "ind" in Symbol 2644 MovieClip Frame 1
onClipEvent (load) {
inner._visible = false;
}
Symbol 2647 MovieClip Frame 1
if (_root.sndo) {
nextFrame();
} else {
stop();
}
Symbol 2650 MovieClip Frame 1
if (_root.lv == 1) {
stop();
} else if (_root.lv == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 2653 Button
on (release) {
_parent._parent.gtf = 1;
_parent._parent.play();
}
Symbol 2654 Button
on (release) {
_parent._parent.gtf = 38;
_parent._parent.play();
}
Symbol 2655 Button
on (release) {
_parent._parent.gtf = 45;
_parent._parent.play();
}
Symbol 2658 MovieClip Frame 1
if (_root.lv == 1) {
stop();
} else if (_root.lv == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 2661 MovieClip Frame 1
if (_root.lv == 1) {
stop();
} else if (_root.lv == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 2664 MovieClip Frame 1
if (_root.lv == 1) {
stop();
} else if (_root.lv == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 2665 MovieClip Frame 1
stop();
Symbol 2665 MovieClip Frame 2
_parent._parent.goon = false;
Symbol 2665 MovieClip Frame 3
_parent._parent.goon = false;
Symbol 2665 MovieClip Frame 4
_parent._parent.goon = false;
Symbol 2673 MovieClip Frame 1
if (_root.lv == 1) {
stop();
} else if (_root.lv == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 2677 MovieClip Frame 1
if (_root.lv == 1) {
stop();
} else if (_root.lv == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 2681 MovieClip Frame 1
if (_root.lv == 1) {
stop();
} else if (_root.lv == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 2685 MovieClip Frame 1
if (_root.lv == 1) {
stop();
} else if (_root.lv == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 2689 MovieClip Frame 1
if (_root.lv == 1) {
stop();
} else if (_root.lv == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 2693 MovieClip Frame 1
if (_root.lv == 1) {
stop();
} else if (_root.lv == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 2697 MovieClip Frame 1
if (_root.lv == 1) {
stop();
} else if (_root.lv == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 2700 MovieClip Frame 1
if (_root.lv == 1) {
stop();
} else if (_root.lv == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 2704 MovieClip Frame 1
if (_root.lv == 1) {
stop();
} else if (_root.lv == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 2707 MovieClip Frame 1
if (_root.lv == 1) {
stop();
} else if (_root.lv == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 2711 MovieClip Frame 1
if (_root.lv == 1) {
stop();
} else if (_root.lv == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 2715 MovieClip Frame 1
if (_root.lv == 1) {
stop();
} else if (_root.lv == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 2718 MovieClip Frame 1
if (_root.lv == 1) {
stop();
} else if (_root.lv == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 2721 MovieClip Frame 1
if (_root.lv == 1) {
stop();
} else if (_root.lv == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 2724 MovieClip Frame 1
if (_root.lv == 1) {
stop();
} else if (_root.lv == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 2728 MovieClip Frame 1
if (_root.lv == 1) {
stop();
} else if (_root.lv == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 2732 MovieClip Frame 1
if (_root.lv == 1) {
stop();
} else if (_root.lv == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 2736 MovieClip Frame 1
if (_root.lv == 1) {
stop();
} else if (_root.lv == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 2740 MovieClip Frame 1
if (_root.lv == 1) {
stop();
} else if (_root.lv == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 2742 MovieClip Frame 1
if (_root.lv == 1) {
stop();
} else if (_root.lv == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 2745 MovieClip Frame 1
if (_root.lv == 1) {
stop();
} else if (_root.lv == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 2748 MovieClip Frame 1
if (_root.lv == 1) {
stop();
} else if (_root.lv == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 2752 MovieClip Frame 1
if (_root.lv == 1) {
stop();
} else if (_root.lv == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 2756 MovieClip Frame 1
if (_root.lv == 1) {
stop();
} else if (_root.lv == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 2760 MovieClip Frame 1
if (_root.lv == 1) {
stop();
} else if (_root.lv == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 2763 MovieClip Frame 1
if (_root.lv == 1) {
stop();
} else if (_root.lv == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 2767 MovieClip Frame 1
if (_root.lv == 1) {
stop();
} else if (_root.lv == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 2770 MovieClip Frame 1
if (_root.lv == 1) {
stop();
} else if (_root.lv == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 2774 MovieClip Frame 1
if (_root.lv == 1) {
stop();
} else if (_root.lv == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 2778 MovieClip Frame 1
if (_root.lv == 1) {
stop();
} else if (_root.lv == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 2781 MovieClip Frame 1
if (_root.lv == 1) {
stop();
} else if (_root.lv == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 2785 MovieClip Frame 1
if (_root.lv == 1) {
stop();
} else if (_root.lv == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 2788 MovieClip Frame 1
if (_root.lv == 1) {
stop();
} else if (_root.lv == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 2792 MovieClip Frame 1
if (_root.lv == 1) {
stop();
} else if (_root.lv == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 2796 MovieClip Frame 1
if (_root.lv == 1) {
stop();
} else if (_root.lv == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 2799 MovieClip Frame 1
if (_root.lv == 1) {
stop();
} else if (_root.lv == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 2803 MovieClip Frame 1
if (_root.lv == 1) {
stop();
} else if (_root.lv == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 2806 MovieClip Frame 1
if (_root.lv == 1) {
stop();
} else if (_root.lv == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 2809 MovieClip Frame 1
if (_root.lv == 1) {
stop();
} else if (_root.lv == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 2810 MovieClip Frame 1
var ball = _root.allSc.ball;
gotoAndStop(_parent.gtf);
Instance of Symbol 2665 MovieClip in Symbol 2810 MovieClip Frame 1
onClipEvent (load) {
if (((_root.playerTricks[1] == 3) || (_root.playerTricks[2] == 3)) || (_root.playerTricks[3] == 3)) {
gotoAndStop (2);
} else if (((_root.playerTricks[1] == 1) || (_root.playerTricks[2] == 1)) || (_root.playerTricks[3] == 1)) {
gotoAndStop (3);
} else if (((_root.playerTricks[1] == 2) || (_root.playerTricks[2] == 2)) || (_root.playerTricks[3] == 2)) {
gotoAndStop (4);
}
}
Instance of Symbol 2669 MovieClip "ff" in Symbol 2810 MovieClip Frame 1
onClipEvent (enterFrame) {
_visible = _parent._parent.goon;
}
Symbol 2810 MovieClip Frame 2
_parent.goon = true;
Symbol 2810 MovieClip Frame 3
_parent.goon = false;
_root.allSc.pl2.ctrl = true;
_root.allSc.gotoAndStop(2);
Instance of Symbol 313 MovieClip in Symbol 2810 MovieClip Frame 3
onClipEvent (enterFrame) {
if ((_root.allSc.ball.xvel > 3) && (bas)) {
bas = false;
_root.allSc.ball.mmovv = false;
}
if (!bas) {
_parent._parent.play();
}
}
onClipEvent (enterFrame) {
var bas = true;
}
Symbol 2810 MovieClip Frame 4
_parent.goon = true;
_root.allSc.pl2.ctrl = false;
Symbol 2810 MovieClip Frame 5
_parent.goon = false;
_root.allSc.pl2.ctrl = true;
_root.allSc.ball._x = -73;
_root.allSc.ball._y = 280;
_root.allSc.ball.xvel = 9;
_root.allSc.ball.mmovv = true;
Instance of Symbol 313 MovieClip in Symbol 2810 MovieClip Frame 5
onClipEvent (enterFrame) {
if (((_root.allSc.ball.xvel == 0) && (_root.allSc.ball.grav < -5)) && (bas)) {
bas = false;
_root.allSc.ball.mmovv = false;
_parent._parent.gtf = 7;
} else if ((_root.allSc.ball.hitTest(_root.allSc.pl2.ha) && (!Key.isDown(40))) && (bas)) {
bas = false;
_root.allSc.ball.mmovv = false;
_parent._parent.gtf = 5;
}
if (!bas) {
_parent._parent.play();
}
}
onClipEvent (enterFrame) {
var bas = true;
}
Symbol 2810 MovieClip Frame 6
_parent.goon = true;
_root.allSc.pl2.ctrl = false;
Symbol 2810 MovieClip Frame 7
gotoAndStop (5);
Symbol 2810 MovieClip Frame 8
_parent.goon = true;
_root.allSc.pl2.ctrl = false;
Symbol 2810 MovieClip Frame 9
_parent.goon = false;
_root.allSc.pl2.ctrl = true;
_root.allSc.ball._x = 73;
_root.allSc.ball._y = 325;
_root.allSc.ball.xvel = 0;
_root.allSc.ball.mmovv = true;
Instance of Symbol 313 MovieClip in Symbol 2810 MovieClip Frame 9
onClipEvent (enterFrame) {
if ((((ball.xvel == 0) && (ball.grav < -8)) && (ball._y < 320)) && (bas)) {
bas = false;
_root.allSc.ball.mmovv = false;
_parent._parent.gtf = 11;
} else if ((_root.allSc.ball.hitTest(_root.allSc.pl2.ha) && (!Key.isDown(40))) && (bas)) {
bas = false;
_root.allSc.ball.mmovv = false;
_parent._parent.gtf = 9;
}
if (!bas) {
_parent._parent.play();
}
}
onClipEvent (enterFrame) {
var bas = true;
var ball = _root.allSc.ball;
}
Symbol 2810 MovieClip Frame 10
_parent.goon = true;
_root.allSc.pl2.ctrl = false;
_root.allSc.pl2._x = 405;
Symbol 2810 MovieClip Frame 11
gotoAndStop (9);
Symbol 2810 MovieClip Frame 12
_parent.goon = true;
_root.allSc.pl2.ctrl = false;
Symbol 2810 MovieClip Frame 15
_parent.goon = false;
_root.allSc.pl2.ctrl = true;
_root.allSc.ball._x = 467;
_root.allSc.ball._y = 300;
_root.allSc.ball.xvel = -10;
_root.allSc.ball.grav = -30;
_root.allSc.ball.mmovv = true;
Instance of Symbol 313 MovieClip in Symbol 2810 MovieClip Frame 15
onClipEvent (enterFrame) {
if ((ball.hitTest(_root.allSc.pl2.ha) && (_root.allSc.pl2._y < 295)) && (bas)) {
bas = false;
_root.allSc.ball.mmovv = false;
_parent._parent.gtf = 17;
} else if ((_root.allSc.ball.hitTest(_root.allSc.pl2.ha) && (_root.allSc.pl2._y >= 295)) && (bas)) {
bas = false;
_root.allSc.ball.mmovv = false;
_parent._parent.gtf = 15;
}
if (!bas) {
_parent._parent.play();
}
}
onClipEvent (enterFrame) {
var bas = true;
var ball = _root.allSc.ball;
}
Symbol 2810 MovieClip Frame 16
_parent.goon = true;
_root.allSc.pl2.ctrl = false;
Symbol 2810 MovieClip Frame 17
gotoAndStop (15);
Symbol 2810 MovieClip Frame 18
_parent.goon = true;
_root.allSc.pl2.ctrl = false;
Symbol 2810 MovieClip Frame 20
_parent.goon = false;
_root.allSc.pl2.ctrl = true;
_root.allSc.ball._x = 467;
_root.allSc.ball._y = 300;
_root.allSc.ball.xvel = 9;
_root.allSc.ball.grav = -30;
_root.allSc.ball.mmovv = true;
_root.allSc.pl2._x = 884;
_root.allSc.ttrainer._xscale = -100;
Instance of Symbol 313 MovieClip in Symbol 2810 MovieClip Frame 20
onClipEvent (enterFrame) {
if (((phase == 1) && (ball.hitTest(_root.allSc.pl2.ha))) && (_root.allSc.pl2._y < 295)) {
phase = 2;
trace("did it");
} else if (((phase == 1) && (_root.allSc.ball.hitTest(_root.allSc.pl2.ha))) && (_root.allSc.pl2._y >= 295)) {
bas = false;
phase = 4;
_parent._parent.gtf = 20;
}
if (phase == 2) {
trace("fase 2 GAD");
if (ball._x > gg) {
trace("you've scored");
bas = false;
_parent._parent.gtf = 22;
phase = 4;
} else if (ball.xvel < 0.5) {
bas = false;
trace("you're in fronta the ball");
_parent._parent.gtf = 20;
}
}
if (!bas) {
_parent._parent.play();
}
}
onClipEvent (load) {
var bas = true;
var ball = _root.allSc.ball;
var phase = 1;
var ww = (ball._width / 2);
var gg = (_root.allSc.l2._x + ww);
trace("goal " + gg);
}
Symbol 2810 MovieClip Frame 21
_parent.goon = true;
_root.allSc.pl2.ctrl = false;
_root.allSc.ball._x = 467;
_root.allSc.ball._y = -500;
Instance of Symbol 313 MovieClip in Symbol 2810 MovieClip Frame 21
onClipEvent (enterFrame) {
ball.grav = -1;
ball.xvel = 0;
}
onClipEvent (enterFrame) {
var bas = true;
var ball = _root.allSc.ball;
var phase = 1;
var ww = (ball._width / 2);
}
Symbol 2810 MovieClip Frame 22
gotoAndStop (20);
Symbol 2810 MovieClip Frame 23
_parent.goon = true;
_root.allSc.pl2.ctrl = false;
_root.allSc.ball._x = 467;
_root.allSc.ball._y = -500;
Instance of Symbol 313 MovieClip in Symbol 2810 MovieClip Frame 23
onClipEvent (enterFrame) {
ball.grav = -1;
ball.xvel = 0;
}
onClipEvent (load) {
var bas = true;
var ball = _root.allSc.ball;
var phase = 1;
var ww = (ball._width / 2);
}
Symbol 2810 MovieClip Frame 24
_parent.goon = false;
_root.allSc.pl2.ctrl = true;
_root.allSc.ball._x = 467;
_root.allSc.ball._y = 300;
_root.allSc.ball.xvel = 11;
_root.allSc.ball.grav = -30;
_root.allSc.ball.mmovv = true;
_root.allSc.pl2._x = 884;
_root.allSc.gotoAndStop(3);
_root.allSc.e3.ctrl = true;
_root.allSc.e3._x = 1250;
Instance of Symbol 313 MovieClip in Symbol 2810 MovieClip Frame 24
onClipEvent (enterFrame) {
if (((phase == 1) && (ball.hitTest(_root.allSc.pl2.ha))) && (_root.allSc.pl2._y < 295)) {
phase = 2;
trace("did it");
} else if (((phase == 1) && (_root.allSc.ball.hitTest(_root.allSc.pl2.ha))) && (_root.allSc.pl2._y >= 295)) {
bas = false;
phase = 4;
_parent._parent.gtf = 24;
} else if ((phase == 1) && (ball.xvel < 2)) {
bas = false;
phase = 4;
_parent._parent.gtf = 24;
}
if (phase == 2) {
trace("fase 2 GAD");
if (ball._x > gg) {
trace("you've scored");
bas = false;
_parent._parent.gtf = 26;
phase = 4;
} else if (ball.xvel < 2) {
bas = false;
trace("you're in fronta the ball");
_parent._parent.gtf = 24;
}
}
if (!bas) {
_parent._parent.play();
}
}
onClipEvent (load) {
var bas = true;
var ball = _root.allSc.ball;
var phase = 1;
var ww = (ball._width / 2);
var gg = (_root.allSc.l2._x + ww);
trace("goal " + gg);
}
Symbol 2810 MovieClip Frame 25
_parent.goon = true;
_root.allSc.pl2.ctrl = false;
_root.allSc.ball._x = 467;
_root.allSc.ball._y = -500;
_root.allSc.e3.ctrl = false;
Instance of Symbol 313 MovieClip in Symbol 2810 MovieClip Frame 25
onClipEvent (enterFrame) {
ball.grav = -1;
ball.xvel = 0;
}
onClipEvent (enterFrame) {
var bas = true;
var ball = _root.allSc.ball;
var phase = 1;
var ww = (ball._width / 2);
}
Symbol 2810 MovieClip Frame 26
gotoAndStop (24);
Symbol 2810 MovieClip Frame 27
_parent.goon = true;
_root.allSc.pl2.ctrl = false;
_root.allSc.ball._x = 467;
_root.allSc.ball._y = -500;
Instance of Symbol 313 MovieClip in Symbol 2810 MovieClip Frame 27
onClipEvent (enterFrame) {
ball.grav = -1;
ball.xvel = 0;
}
onClipEvent (load) {
var bas = true;
var ball = _root.allSc.ball;
var phase = 1;
var ww = (ball._width / 2);
}
Symbol 2810 MovieClip Frame 29
_parent.goon = false;
_root.allSc.pl2.ctrl = true;
_root.allSc.ball._x = 467;
_root.allSc.ball._y = 300;
_root.allSc.ball.xvel = 7;
_root.allSc.ball.grav = -30;
_root.allSc.ball.mmovv = true;
_root.allSc.pl2._x = 670;
_root.allSc.pl3._x = 1000;
_root.allSc.e2._x = 828;
_root.allSc.e3._x = 1207;
_root.allSc.gotoAndStop(4);
_root.allSc.e3.ctrl = true;
_root.allSc.e3._x = 1250;
Instance of Symbol 313 MovieClip in Symbol 2810 MovieClip Frame 29
onClipEvent (enterFrame) {
if (ball._x < 331) {
bas = false;
phase = 4;
_parent._parent.gtf = 29;
}
if (phase == 2) {
trace("fase 2 GAD");
if (ball._x > gg) {
trace("you've scored");
bas = false;
_parent._parent.gtf = 31;
phase = 4;
} else if (ball._x < 331) {
bas = false;
trace("they have gotten you");
_parent._parent.gtf = 29;
}
}
if (!bas) {
_parent._parent.play();
}
}
onClipEvent (load) {
var bas = true;
var ball = _root.allSc.ball;
var phase = 2;
var ww = (ball._width / 2);
var gg = (_root.allSc.l2._x + ww);
trace("goal " + gg);
}
Symbol 2810 MovieClip Frame 30
_parent.goon = true;
_root.allSc.pl2.ctrl = false;
_root.allSc.ball._x = 467;
_root.allSc.ball._y = -500;
_root.allSc.e3.ctrl = false;
Instance of Symbol 313 MovieClip in Symbol 2810 MovieClip Frame 30
onClipEvent (enterFrame) {
ball.grav = -1;
ball.xvel = 0;
}
onClipEvent (enterFrame) {
var bas = true;
var ball = _root.allSc.ball;
var phase = 1;
var ww = (ball._width / 2);
}
Symbol 2810 MovieClip Frame 31
gotoAndStop (29);
Symbol 2810 MovieClip Frame 32
_parent.goon = true;
_root.allSc.pl2.ctrl = false;
_root.allSc.ball._x = 467;
_root.allSc.ball._y = -500;
_root.allSc.gotoAndStop(2);
Instance of Symbol 313 MovieClip in Symbol 2810 MovieClip Frame 32
onClipEvent (enterFrame) {
ball.grav = -1;
ball.xvel = 0;
}
onClipEvent (load) {
var bas = true;
var ball = _root.allSc.ball;
var phase = 1;
var ww = (ball._width / 2);
}
Symbol 2810 MovieClip Frame 34
_parent.goon = false;
_root.allSc.pl2.ctrl = true;
_root.allSc.ball._x = 467;
_root.allSc.ball._y = 300;
_root.allSc.ball.xvel = 9;
_root.allSc.ball.grav = -30;
_root.allSc.ball.mmovv = true;
_root.allSc.pl2._x = 884;
Instance of Symbol 313 MovieClip in Symbol 2810 MovieClip Frame 34
onClipEvent (enterFrame) {
if (((ball.hitTest(_root.allSc.pl2.ha) && (_root.allSc.pl2._y < 295)) && (Key.isDown(40))) && (bas)) {
phase = 2;
bas = false;
_parent._parent.gtf = 36;
trace("did it");
} else if (_root.allSc.ball.hitTest(_root.allSc.pl2.ha) && (bas)) {
bas = false;
phase = 4;
_parent._parent.gtf = 34;
}
if (!bas) {
_parent._parent.play();
}
}
onClipEvent (load) {
var bas = true;
var ball = _root.allSc.ball;
var phase = 1;
var ww = (ball._width / 2);
var gg = (_root.allSc.l2._x + ww);
trace("goal " + gg);
}
Symbol 2810 MovieClip Frame 35
_parent.goon = true;
_root.allSc.pl2.ctrl = false;
_root.allSc.ball._x = 467;
_root.allSc.ball._y = -500;
_root.allSc.e3.ctrl = false;
Instance of Symbol 313 MovieClip in Symbol 2810 MovieClip Frame 35
onClipEvent (enterFrame) {
ball.grav = -1;
ball.xvel = 0;
}
onClipEvent (load) {
var bas = true;
var ball = _root.allSc.ball;
var phase = 1;
var ww = (ball._width / 2);
}
Symbol 2810 MovieClip Frame 36
gotoAndStop (34);
Symbol 2810 MovieClip Frame 37
_parent.goon = true;
_root.allSc.pl2.ctrl = false;
_root.allSc.ball._x = 467;
_root.allSc.ball._y = -500;
Instance of Symbol 313 MovieClip in Symbol 2810 MovieClip Frame 37
onClipEvent (enterFrame) {
ball.grav = -1;
ball.xvel = 0;
}
onClipEvent (load) {
var bas = true;
var ball = _root.allSc.ball;
var phase = 1;
var ww = (ball._width / 2);
}
Symbol 2810 MovieClip Frame 38
stopAllSounds();
_root.gotoFrame(4);
Symbol 2810 MovieClip Frame 39
_parent.goon = true;
_root.allSc.gotoAndStop(2);
_root.allSc.pl2.ctrl = false;
_root.allSc.ball._x = 767;
_root.allSc.ball._y = -500;
_root.allSc.ttrainer._x = 720;
_root.allSc.ttrainer._xscale = -100;
_root.allSc.bubble._x = 820;
_root.allSc.pl2._x = 884;
_root.allSc.pl2.tricks = 3;
_root.allSc.pl2.trav1 = true;
Instance of Symbol 313 MovieClip in Symbol 2810 MovieClip Frame 39
onClipEvent (enterFrame) {
ball.grav = -1;
ball.xvel = 0;
}
onClipEvent (enterFrame) {
var bas = true;
var ball = _root.allSc.ball;
var phase = 1;
var ww = (ball._width / 2);
}
Symbol 2810 MovieClip Frame 41
_parent.goon = false;
_root.allSc.pl2.ctrl = true;
_root.allSc.ball._x = 567;
_root.allSc.ball._y = 300;
_root.allSc.ball.xvel = 9;
_root.allSc.ball.grav = -30;
_root.allSc.ball.mmovv = true;
_root.allSc.pl2._x = 884;
_root.allSc.pl2.spp = _root.allSc.pl2.splim + 3;
Instance of Symbol 313 MovieClip in Symbol 2810 MovieClip Frame 41
onClipEvent (enterFrame) {
if ((_root.allSc.ball.hitTest(_root.allSc.pl2.ha) && (_root.allSc.pl2.dani._currentframe >= 28)) && (bas)) {
bas = false;
_root.allSc.ball.mmovv = false;
_parent._parent.gtf = 43;
} else if (_root.allSc.ball.hitTest(_root.allSc.pl2.ha) && (bas)) {
bas = false;
_root.allSc.ball.mmovv = false;
_parent._parent.gtf = 41;
}
if (!bas) {
_parent._parent.play();
}
}
onClipEvent (enterFrame) {
var bas = true;
var ball = _root.allSc.ball;
}
Symbol 2810 MovieClip Frame 42
_parent.goon = true;
_root.allSc.pl2.ctrl = false;
_root.allSc.ball._x = 467;
_root.allSc.ball._y = -500;
_root.allSc.ball.mmovv = true;
Instance of Symbol 313 MovieClip in Symbol 2810 MovieClip Frame 42
onClipEvent (enterFrame) {
ball.grav = -1;
ball.xvel = 0;
}
onClipEvent (enterFrame) {
var bas = true;
var ball = _root.allSc.ball;
var phase = 1;
var ww = (ball._width / 2);
}
Symbol 2810 MovieClip Frame 43
gotoAndStop (41);
Symbol 2810 MovieClip Frame 44
_parent.goon = true;
_root.allSc.pl2.ctrl = false;
_root.allSc.ball.mmovv = false;
Symbol 2810 MovieClip Frame 45
stopAllSounds();
_root.gotoFrame(4);
Symbol 2810 MovieClip Frame 46
_parent.goon = true;
_root.allSc.gotoAndStop(2);
_root.allSc.pl2.ctrl = false;
_root.allSc.ball._x = 767;
_root.allSc.ball._y = -500;
_root.allSc.ttrainer._x = 720;
_root.allSc.ttrainer._xscale = -100;
_root.allSc.bubble._x = 820;
_root.allSc.pl2._x = 884;
_root.allSc.pl2.tricks = 3;
_root.allSc.pl2.trav2 = true;
Instance of Symbol 313 MovieClip in Symbol 2810 MovieClip Frame 46
onClipEvent (enterFrame) {
ball.grav = -1;
ball.xvel = 0;
}
onClipEvent (enterFrame) {
var bas = true;
var ball = _root.allSc.ball;
var phase = 1;
var ww = (ball._width / 2);
}
Symbol 2810 MovieClip Frame 48
_parent.goon = false;
_root.allSc.pl2.ctrl = true;
_root.allSc.ball._x = 567;
_root.allSc.ball._y = 300;
_root.allSc.ball.xvel = 9;
_root.allSc.ball.grav = -32;
_root.allSc.ball.mmovv = true;
_root.allSc.pl2._x = 884;
_root.allSc.pl2.spp = _root.allSc.pl2.splim + 3;
Instance of Symbol 313 MovieClip in Symbol 2810 MovieClip Frame 48
onClipEvent (enterFrame) {
if ((_root.allSc.ball.hitTest(_root.allSc.pl2.ha) && ((_root.allSc.pl2.dani._currentframe >= 20) && (_root.allSc.pl2.dani._currentframe <= 25))) && (bas)) {
bas = false;
_root.allSc.ball.mmovv = false;
_parent._parent.gtf = 50;
} else if (_root.allSc.ball.hitTest(_root.allSc.pl2.ha) && (bas)) {
bas = false;
_root.allSc.ball.mmovv = false;
_parent._parent.gtf = 48;
}
if (!bas) {
_parent._parent.play();
}
}
onClipEvent (enterFrame) {
var bas = true;
var ball = _root.allSc.ball;
}
Symbol 2810 MovieClip Frame 49
_parent.goon = true;
_root.allSc.pl2.ctrl = false;
_root.allSc.ball._x = 467;
_root.allSc.ball._y = -500;
_root.allSc.ball.mmovv = true;
Instance of Symbol 313 MovieClip in Symbol 2810 MovieClip Frame 49
onClipEvent (enterFrame) {
ball.grav = -1;
ball.xvel = 0;
}
onClipEvent (enterFrame) {
var bas = true;
var ball = _root.allSc.ball;
var phase = 1;
var ww = (ball._width / 2);
}
Symbol 2810 MovieClip Frame 50
gotoAndStop (48);
Symbol 2810 MovieClip Frame 51
_parent.goon = true;
_root.allSc.pl2.ctrl = false;
_root.allSc.ball.mmovv = false;
Symbol 2810 MovieClip Frame 52
stopAllSounds();
_root.gotoFrame(4);
Symbol 2811 MovieClip Frame 1
gtf++;
Symbol 2811 MovieClip Frame 10
stop();
Symbol 2812 MovieClip Frame 1
var flr = 360;
var gf = 1;
var tm = 1;
var efins;
stop();
Instance of Symbol 2141 MovieClip "camp" in Symbol 2812 MovieClip Frame 1
onClipEvent (load) {
inner.stop();
}
Instance of Symbol 2644 MovieClip "ttrainer" in Symbol 2812 MovieClip Frame 1
onClipEvent (load) {
var eyes = 12;
var mouth = 11;
var nose = 3;
var beard = 12;
var brows = 38;
var hair = 34;
var shirt = 29;
var short = 26;
var skinn = 2;
}
Instance of Symbol 978 MovieClip "pl2" in Symbol 2812 MovieClip Frame 1
onClipEvent (load) {
var ctrl = false;
var plNum = 1;
var theNum = (((_root.team1 * 3) - 2) + plNum);
var eyes = _root.eyes[theNum];
var mouth = _root.mouth[theNum];
var nose = _root.nose[theNum];
var beard = _root.beard[theNum];
var brows = _root.brows[theNum];
var hair = _root.hair[theNum];
var shirt = _root.shirtColor[theNum];
var short = _root.shortColor[theNum];
var skinn = _root.skinColor[theNum];
var tricks = _root.playerTricks[theNum];
var plusStrength = _root.playerPlusStrength[theNum];
var plusJump = _root.playerPlusJump[theNum];
var plusSpeed = _root.playerPlusSpeed[theNum];
var thisIsTutorial = true;
}
Instance of Symbol 2811 MovieClip "bubble" in Symbol 2812 MovieClip Frame 1
onClipEvent (load) {
var gtf = 0;
var goon = true;
}
onClipEvent (keyDown) {
if (goon && (Key.isDown(32) || (Key.isDown(65)))) {
play();
}
}
Instance of Symbol 1555 MovieClip "ball" in Symbol 2812 MovieClip Frame 2
onClipEvent (enterFrame) {
grav = grav + gf;
_y = (_y + (grav * prop));
if (_y > flr) {
grav = grav * -0.9;
xvel = xvel * 0.8;
_y = flr;
imh = 0;
ac = tp;
dist2 = 10000;
do {
enem = _parent["e" + ac];
dist = Math.abs(enem._x - _x) + Math.abs(enem._y - _x);
if (dist < dist2) {
eName = enem._name;
dist2 = dist;
}
ac--;
} while (ac > 0);
c = 1;
while (c < tp) {
_parent["e" + c].ctrl = false;
c++;
}
_parent[eName].ctrl = true;
_parent[eName].bpx = spx;
_parent[eName].eng = 0;
_parent[eName].topY = topY;
ntp = 0;
}
_x = (_x + (xvel * prop));
if (((_x < l[1]) || (_x > l[2])) && (_y < topPor)) {
xvel = xvel * -1;
}
rot = rot + ((xvel * prop) * 2);
if (rot > 360) {
rot = rot - 360;
} else if (rot < 0) {
rot = rot + 360;
}
rrot = Math.round(rot / 10) + 1;
inner.gotoAndStop(rrot);
tsec--;
if (tsec <= 0) {
tsec = 35;
if (_root.mar1.tt == 0) {
if (_root.g1 == _root.g2) {
_root.mar1.tt = _root.mar1.tt + 15;
} else {
trace("partido terminado");
ended++;
if (sndo) {
musicMc.gotoAndStop("whistle2");
}
_parent.pl1.ctrl = false;
_parent.pl2.ctrl = false;
_parent.pl3.ctrl = false;
_parent.e1.ctrl = false;
_parent.e2.ctrl = false;
_parent.e3.ctrl = false;
}
}
_root.mar1.tt--;
}
if (ended > 0) {
ended++;
if (ended > 70) {
if (_root.g1 > _root.g2) {
_root.iWin = true;
} else {
_root.iWin = false;
}
if (_root.playingNow == 1) {
_root.gPhase++;
} else if (_root.playingNow == 2) {
_root.leaPhase++;
} else if (_root.playingNow == 3) {
_root.arcPhase++;
}
_root.afterPartido = true;
stopAllSounds();
_root.gotoAndStop(21);
}
}
cpxx = (-_parent._x) + limx.mxx;
cpxm = (-_parent._x) + limx.mnn;
_parent.pp._x = cpxx;
if (mmovv) {
if (_x > cpxx) {
_parent._x = _parent._x - ((_x - cpxx) * 0.17);
} else if (_x < cpxm) {
_parent._x = _parent._x - ((_x - cpxm) * 0.17);
}
}
if (_parent._x > 340) {
_parent._x = 340;
} else if (_parent._x < -470) {
_parent._x = -470;
}
_root.bgCrowd._x = _parent._x * 0.3;
_root.bgAds._x = _parent._x * 0.5;
ntp++;
if (((_x < gz1) && (!gcel)) && (_root.mar1.tt > 0)) {
gtmr++;
gtm = 2;
_root.aniGoal.play();
} else if (((_x > gz2) && (!gcel)) && (_root.mar1.tt > 0)) {
gtmr++;
gtm = 1;
_root.aniGoal.play();
} else {
gtmr = 0;
}
if (gtmr == 1) {
_root["g" + gtm]++;
gcel = true;
gcel2 = 0;
if (gtm == 2) {
movc = 0;
movt = 4;
_root.mar1.gnum2.gotoAndStop(_root.g2 + 1);
} else if (gtm == 1) {
movc = 0;
movt = 1;
_root.mar1.gnum1.gotoAndStop(_root.g1 + 1);
}
}
if (gcel) {
gcel2++;
if (gcel2 > 70) {
_x = 570;
_y = 0;
xvel = 0;
grav = 0;
gcel = false;
gcel2 = 0;
}
}
imh++;
topY = _y;
if ((_parent._currentframe == 4) && (imh == 1)) {
spx = _x;
spy = _y;
spgrav = grav;
spxvel = xvel;
do {
spgrav = spgrav + gf;
spy = spy + (spgrav * prop);
spx = spx + (spxvel * prop);
if ((spx < l[1]) || (spx > l[2])) {
spxvel = spxvel * -1;
}
if (spy < topY) {
topY = spy;
}
} while (!((spy > 270) && (spgrav > 0)));
ac = tp;
dist2 = 10000;
do {
enem = _parent["e" + ac];
dist = Math.abs(enem._x - spx) + Math.abs(enem._y - spy);
if (dist < dist2) {
eName = enem._name;
dist2 = dist;
}
ac--;
} while (ac > 0);
c = 1;
while (c < tp) {
_parent["e" + c].ctrl = false;
c++;
}
_parent[eName].ctrl = true;
_parent[eName].bpx = spx;
_parent[eName].eng = 0;
_parent[eName].topY = topY;
ntp = 0;
ac = tp;
dist2 = 10000;
do {
enem = _parent["pl" + ac];
dist = Math.abs(enem._x - spx) + Math.abs(enem._y - spy);
if (dist < dist2) {
eName = enem._name;
dist2 = dist;
}
ac--;
} while (ac > 0);
c = 1;
while (c < tp) {
_parent["pl" + c].ctrl = false;
c++;
}
_parent[eName].ctrl = true;
_parent[eName].bpx = spx;
_parent[eName].eng = 0;
_parent[eName].topY = topY;
}
if (hitTest(_parent.pal1) && (hiBar > 3)) {
npVel = Math.abs(xvel) + Math.abs(grav);
npTemp = Math.atan2(_y - _parent.pal1._y, _x - _parent.pal1._x) * mul2;
npTemp2 = Math.atan2(grav, xvel) * mul2;
nnRot = (360 - (npTemp2 - (npTemp * 2))) + 180;
npx = Math.cos(nnRot * mul) * npVel;
npy = Math.sin(nnRot * mul) * npVel;
xvel = npx;
grav = npy;
hiBar = 0;
if (grav > 0) {
movc = 0;
movt = 5;
} else {
movc = 0;
movt = 6;
}
} else if (hitTest(_parent.pal2) && (hiBar > 3)) {
npVel = Math.abs(xvel) + Math.abs(grav);
npTemp = Math.atan2(_y - _parent.pal2._y, _x - _parent.pal2._x) * mul2;
npTemp2 = Math.atan2(grav, xvel) * mul2;
nnRot = (360 - (npTemp2 - (npTemp * 2))) + 180;
npx = Math.cos(nnRot * mul) * npVel;
npy = Math.sin(nnRot * mul) * npVel;
xvel = npx;
grav = npy;
hiBar = 0;
if (grav > 0) {
movc = 0;
movt = 2;
} else {
movc = 0;
movt = 3;
}
} else {
hiBar++;
}
if (hitTest(_parent.tp1)) {
_y = ((_parent.tp1._y + (_parent.tp1._height / 2)) + wdth);
grav = grav * -1;
} else if (hitTest(_parent.tp2)) {
_y = ((_parent.tp2._y + (_parent.tp2._height / 2)) + wdth);
grav = grav * -1;
}
if (_x < porl[1]) {
_x = porl[1];
xvel = xvel * -0.25;
} else if (_x > porl[2]) {
_x = porl[2];
xvel = xvel * -0.25;
}
movc++;
if (movc == 1) {
if (movt == 1) {
myCrowd.gotoAndPlay("goal");
if (sndo) {
musicMc.gotoAndPlay("goal" + (random(2) + 1));
}
sndfix = 5;
snnum = "whistle1";
} else if (movt == 2) {
myCrowd.gotoAndPlay("almost");
if (sndo) {
musicMc.gotoAndPlay(snalmost[random(2)]);
}
} else if (movt == 3) {
myCrowd.gotoAndPlay("few");
if (sndo) {
musicMc.gotoAndPlay(snalmost[random(2)]);
}
} else if (movt == 4) {
myRivals.gotoAndPlay("goal");
if (sndo) {
musicMc.gotoAndPlay("goal" + (random(2) + 1));
}
sndfix = 5;
snnum = "whistle1";
} else if (movt == 5) {
myRivals.gotoAndPlay("almost");
if (sndo) {
musicMc.gotoAndPlay(snalmost[random(2)]);
}
} else if (movt == 6) {
myRivals.gotoAndPlay("few");
if (sndo) {
musicMc.gotoAndPlay(snalmost[random(2)]);
}
}
}
snc++;
if (snc > snc2) {
snc = 0;
snr = random(100);
if (snr < snmin) {
snpick = snarr[random(6)];
if (sndo) {
musicMc.gotoAndPlay(snpick);
}
}
}
if (sndfix > 0) {
if (sndfix == 1) {
if (sndo) {
musicMc.gotoAndPlay(snnum);
}
if (snnum == "uy1") {
sndfix = 40;
snnum = "applause";
} else if (snnum == "whistle1") {
sntmp = random(100);
if (sntmp < 20) {
trace("yeah, la porra is to come");
sndfix = 70;
snnum = snarr[random(6)];
}
}
trace(snnum);
}
sndfix--;
}
campSkew = 20 - Math.round((_parent._x - campD) / 35);
_parent.camp.inner.gotoAndStop(campSkew);
_parent.upperc.gotoAndStop(campSkew);
}
onClipEvent (keyDown) {
c = 1;
myList = [0];
while (c < tp) {
currentPlayer = _parent["pl" + c];
myList.push(currentPlayer._x);
c++;
}
myList.sort(Array.NUMERIC);
c = 1;
myList2 = [0, 0, 0, 0, 0, 0, 0];
while (c < tp) {
currentPlayer = _parent["pl" + c];
c2 = 1;
while (c2 < tp) {
if (currentPlayer._x == myList[c2]) {
myList2[c2] = currentPlayer;
if (currentPlayer.ctrl) {
cPos = c2;
}
}
c2++;
}
c++;
}
if ((Key.isDown(k.s2) && ((ntp > 4) || (_y > 241))) && (!bubble.goon)) {
spx = _x;
spy = _y;
spgrav = grav;
spxvel = xvel;
do {
spgrav = spgrav + gf;
spy = spy + (spgrav * prop);
spx = spx + (spxvel * prop);
if ((spx < l[1]) || (spx > l[2])) {
spxvel = spxvel * -1;
}
} while (!((spy > 241) && (spgrav > 0)));
ac = tp;
dist2 = 10000;
do {
enem = _parent["pl" + ac];
if (!enem.ctrl) {
dist = Math.abs(enem._x - spx) + Math.abs(enem._y - spy);
if (dist < dist2) {
eName = enem._name;
dist2 = dist;
}
}
ac--;
} while (ac > 0);
c = 1;
while (c < tp) {
_parent["pl" + c].ctrl = false;
c++;
}
_parent[eName].ctrl = true;
ntp = 0;
}
}
onClipEvent (load) {
var gf = _parent.gf;
var grav = 0;
var xvel = 0;
var flr = ((_parent.flr - (_height / 2)) + 30);
var k = {n:68, p:65, s:32, s2:65};
var pc = 1;
var tp = 4;
var c = 0;
var limx = {mxx:360, mnn:340};
var cpxx;
var cpxm;
var wdth = (_width / 2);
var l = [0, _parent.l1._x + wdth, _parent.l2._x - wdth];
var myList1 = new Array(4);
var myList2 = new Array(4);
var currentPlayer;
var c2 = 0;
var cPos;
var ac = 0;
var eName;
var enem;
var dist;
var dist2;
var prop = 0.73;
var ntp = 0;
var spx;
var spy;
var spgrav;
var spxvel;
var imh = 0;
var topY;
var defX = _x;
var topPor = (_parent.l2._y + wdth);
var mul = (Math.PI/180);
var mul2 = 57.2957795130823;
var npx;
var npy;
var npTemp;
var npTemp2;
var nnRot;
var npVel;
var hiBar = 0;
var movc = 3;
var movt = 0;
var movr = 0;
var myCrowd = _root.bgCrowd.inner.ccrowd;
var myRivals = _root.bgCrowd.inner2.ccrowd;
var sndo = _root.sndo;
var snc = 0;
var snc2 = 350;
var snr;
var snmin = 30;
var snpick;
var snarr = ["porra1", "porra2", "porra3", "porra4", "porra5", "chiflido"];
var snfix = 0;
var snnum;
var musicMc = _root.msc;
var snalmost = ["uy1", "uy2"];
var sntmp;
var sngoal = ["goal", "goal2"];
var campSkew;
var campD = _parent._x;
var gz1 = (_parent.pal1._x - wdth);
var gz2 = (_parent.pal2._x + wdth);
var gtmr = 0;
var gtm;
var gcel;
var gcel2;
var porl = [0, _parent.g1._x + wdth, _parent.g2._x - wdth];
var rot = 0;
var rrot;
var tsec = 35;
_root.mar1.tt = 60;
var ended = 0;
var sndo = _root.sndo;
_parent.pl2.ball = this;
var mmovv = true;
var bubble = _root.allSc.bubble;
}
Symbol 2812 MovieClip Frame 3
_root.team2 = 2;
Instance of Symbol 2148 MovieClip "e3" in Symbol 2812 MovieClip Frame 3
onClipEvent (load) {
var myx = _x;
var plNum = 0;
var theNum = (((_root.team2 * 3) - 2) + plNum);
var plusStrength = (0.1 + _root.playerPlusStrength[theNum]);
var plusJump = (5 + _root.playerPlusJump[theNum]);
var plusSpeed = _root.playerPlusSpeed[theNum];
var minx = 936;
var maxx = 1312;
var myPos = 1;
var ctrl = true;
var ttw = 88;
var ttws = 30;
var accu = 50;
var faccu = 50;
var alt = (200 - _root.playerAlt[theNum]);
var alt2 = 230;
var upper = 30;
var eyes = _root.eyes[theNum];
var mouth = _root.mouth[theNum];
var nose = _root.nose[theNum];
var beard = _root.beard[theNum];
var brows = _root.brows[theNum];
var hair = _root.hair[theNum];
var shirt = _root.shirtColor[theNum];
var short = _root.shortColor[theNum];
var skinn = _root.skinColor[theNum];
}
onClipEvent (enterFrame) {
_x = myx;
}
Instance of Symbol 2148 MovieClip "e3" in Symbol 2812 MovieClip Frame 4
onClipEvent (load) {
var plNum = 0;
var theNum = (((_root.team2 * 3) - 2) + plNum);
var plusStrength = (0.1 + _root.playerPlusStrength[theNum]);
var plusJump = (5 + _root.playerPlusJump[theNum]);
var plusSpeed = _root.playerPlusSpeed[theNum];
var minx = 936;
var maxx = 1312;
var myPos = 1;
var ctrl = true;
var ttw = _root.playerTtw[theNum];
var ttws = _root.playerTtws[theNum];
var accu = 50;
var faccu = 50;
var alt = (200 - _root.playerAlt[theNum]);
var alt2 = 230;
var upper = 30;
var eyes = _root.eyes[theNum];
var mouth = _root.mouth[theNum];
var nose = _root.nose[theNum];
var beard = _root.beard[theNum];
var brows = _root.brows[theNum];
var hair = _root.hair[theNum];
var shirt = _root.shirtColor[theNum];
var short = _root.shortColor[theNum];
var skinn = _root.skinColor[theNum];
}
Instance of Symbol 2147 MovieClip "e2" in Symbol 2812 MovieClip Frame 4
onClipEvent (load) {
var plNum = 1;
var theNum = (((_root.team2 * 3) - 2) + plNum);
var plusStrength = (0.1 + _root.playerPlusStrength[theNum]);
var plusJump = _root.playerPlusJump[theNum];
var plusSpeed = _root.playerPlusSpeed[theNum];
var minx = 119;
var maxx = _parent.l2._x;
var myPos = 2;
var ttw = _root.playerTtw[theNum];
var ttws = _root.playerTtws[theNum];
var alt = (200 - _root.playerAlt[theNum]);
var alt2 = 250;
var upper = (30 + _root.playerUpper[theNum]);
var upperStiff = _root.playerUpperStiff[theNum];
var smartQuo = _root.playerSmartQuo[theNum];
var tricks = _root.playerTricks[theNum];
var myLevel = _root.teamLevel[_root.team2];
var eyes = _root.eyes[theNum];
var mouth = _root.mouth[theNum];
var nose = _root.nose[theNum];
var beard = _root.beard[theNum];
var brows = _root.brows[theNum];
var hair = _root.hair[theNum];
var shirt = _root.shirtColor[theNum];
var short = _root.shortColor[theNum];
var skinn = _root.skinColor[theNum];
}
Instance of Symbol 978 MovieClip "pl3" in Symbol 2812 MovieClip Frame 4
onClipEvent (load) {
var plNum = 2;
var theNum = (((_root.team1 * 3) - 2) + plNum);
var eyes = _root.eyes[theNum];
var mouth = _root.mouth[theNum];
var nose = _root.nose[theNum];
var beard = _root.beard[theNum];
var brows = _root.brows[theNum];
var hair = _root.hair[theNum];
var shirt = _root.shirtColor[theNum];
var short = _root.shortColor[theNum];
var skinn = _root.skinColor[theNum];
var tricks = _root.playerTricks[theNum];
var plusStrength = _root.playerPlusStrength[theNum];
var plusJump = _root.playerPlusJump[theNum];
var plusSpeed = _root.playerPlusSpeed[theNum];
}
Symbol 2813 Button
on (release) {
stopAllSounds();
_root.gotoFrame(4);
}
Symbol 2815 Button
on (press) {
if (_root.team1 <= 1) {
_root.team1 = 32;
} else {
_root.team1--;
}
play();
}
Symbol 2816 Button
on (press) {
if (_root.team1 >= 32) {
_root.team1 = 1;
} else {
_root.team1++;
}
play();
}
Symbol 2817 MovieClip Frame 1
stop();
var t1 = _root.teamNames[_root.team1];
Instance of Symbol 1827 MovieClip in Symbol 2817 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.teamLevel[_root.team1]);
}
Symbol 2817 MovieClip Frame 3
gotoAndStop (1);
Symbol 2818 Button
on (release) {
_root.gotoFrame(42);
}
Symbol 2820 Button
on (press) {
if (_root.team2 <= 1) {
_root.team2 = 32;
} else {
_root.team2--;
}
play();
}
Symbol 2821 Button
on (press) {
if (_root.team2 >= 32) {
_root.team2 = 1;
} else {
_root.team2++;
}
play();
}
Symbol 2822 MovieClip Frame 1
stop();
var t1 = _root.teamNames[_root.team2];
Instance of Symbol 978 MovieClip "pl1" in Symbol 2822 MovieClip Frame 1
onClipEvent (load) {
var ctrl = false;
var plNum = 0;
var theNum = (((_root.team2 * 3) - 2) + plNum);
var eyes = _root.eyes[theNum];
var mouth = _root.mouth[theNum];
var nose = _root.nose[theNum];
var beard = _root.beard[theNum];
var brows = _root.brows[theNum];
var hair = _root.hair[theNum];
var shirt = _root.shirtColor[theNum];
var short = _root.shortColor[theNum];
var skinn = _root.skinColor[theNum];
ind._visible = false;
}
Instance of Symbol 978 MovieClip "a" in Symbol 2822 MovieClip Frame 1
onClipEvent (load) {
var ctrl = false;
var plNum = 1;
var theNum = (((_root.team2 * 3) - 2) + plNum);
var eyes = _root.eyes[theNum];
var mouth = _root.mouth[theNum];
var nose = _root.nose[theNum];
var beard = _root.beard[theNum];
var brows = _root.brows[theNum];
var hair = _root.hair[theNum];
var shirt = _root.shirtColor[theNum];
var short = _root.shortColor[theNum];
var skinn = _root.skinColor[theNum];
ind._visible = false;
}
Instance of Symbol 978 MovieClip "b" in Symbol 2822 MovieClip Frame 1
onClipEvent (load) {
var ctrl = false;
var plNum = 2;
var theNum = (((_root.team2 * 3) - 2) + plNum);
var eyes = _root.eyes[theNum];
var mouth = _root.mouth[theNum];
var nose = _root.nose[theNum];
var beard = _root.beard[theNum];
var brows = _root.brows[theNum];
var hair = _root.hair[theNum];
var shirt = _root.shirtColor[theNum];
var short = _root.shortColor[theNum];
var skinn = _root.skinColor[theNum];
ind._visible = false;
}
Instance of Symbol 1827 MovieClip in Symbol 2822 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.teamLevel[_root.team2]);
}
Symbol 2822 MovieClip Frame 3
gotoAndStop (1);
Symbol 2823 MovieClip Frame 1
if (_root.lv == 1) {
stop();
} else if (_root.lv == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 2827 Button
on (release) {
_root.gotoFrame(41);
}
Symbol 2828 Button
on (release) {
_root.gotoFrame(43);
}
Symbol 2829 Button
on (release) {
_root.gotoFrame(44);
}
Symbol 2832 MovieClip Frame 1
if (_root.lv == 1) {
stop();
} else if (_root.lv == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 2832 MovieClip Frame 2
Symbol 2834 Button
on (press) {
secs = secs - 10;
if (secs < 30) {
secs = 30;
}
_root.secs = secs;
}
Symbol 2835 Button
on (press) {
secs = secs + 10;
_root.secs = secs;
}
Symbol 2838 MovieClip Frame 1
if (_root.lv == 1) {
stop();
} else if (_root.lv == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 2839 MovieClip Frame 1
var secs = _root.secs;
Symbol 2840 Button
on (release) {
_root.setCookie("database", "apick1", _root.apick1);
_root.setCookie("database", "apick2", _root.apick2);
_root.setCookie("database", "alift1", _root.alift1);
_root.setCookie("database", "alift2", _root.alift2);
_root.gotoFrame(44);
}
Symbol 2841 Button
on (release) {
if (alift1) {
alift1 = false;
of1.gotoAndStop(2);
} else if (!alift1) {
alift1 = true;
of1.gotoAndStop(1);
}
}
Symbol 2844 MovieClip Frame 1
if (_root.lv == 1) {
stop();
} else if (_root.lv == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 2847 MovieClip Frame 1
if (_root.lv == 1) {
stop();
} else if (_root.lv == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 2849 Button
on (release) {
if (alift2) {
alift2 = false;
of2.gotoAndStop(2);
} else if (!alift2) {
alift2 = true;
of2.gotoAndStop(1);
}
}
Symbol 2850 Button
on (release) {
if (apick1) {
apick1 = false;
of3.gotoAndStop(2);
} else if (!apick1) {
apick1 = true;
of3.gotoAndStop(1);
}
}
Symbol 2851 Button
on (release) {
if (apick2) {
apick2 = false;
of4.gotoAndStop(2);
} else if (!apick2) {
apick2 = true;
of4.gotoAndStop(1);
}
}
Symbol 2862 MovieClip Frame 1
if (_root.lv == 1) {
stop();
} else if (_root.lv == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 2863 Button
on (release) {
dayTime = dayTimes[random(5)];
nextFrame();
}
Symbol 2865 MovieClip Frame 1
stop();
Symbol 2866 MovieClip Frame 1
stop();
Symbol 2867 MovieClip Frame 1
if (ctrl == undefined) {
var ctrl = false;
}
var xvel = (7 + plusSpeed);
var jump = (14 + plusJump);
var strength = ((0.5 + plusStrength) - 0.16);
var kd = Key.isDown;
if (tteam == 1) {
var k = {l:68, r:71, u:82, d:70, s:83, s2:99};
var velTo = 1;
} else if (tteam == 2) {
var k = {l:37, r:39, u:38, d:40, s:16, s2:80};
var velTo = -1;
}
var flr = (_parent.flr - (ht._height / 2));
var gf = _parent.gf;
var grav = 0;
var ball = _parent.ball;
var able = 0;
var ablet = 10;
var mul = 57.2957795130823;
var mul2 = (Math.PI/180);
var difX;
var difY;
var hittin;
var moving = false;
var sscale = 100;
var dind = ind._y;
hpo._visible = false;
var spp = 0;
var spch = false;
var spsh = false;
var splim = 502;
var trav1 = false;
var trav2 = false;
if (tricks == 1) {
trav1 = true;
} else if (tricks == 2) {
trav2 = true;
} else if (tricks == 3) {
trav1 = true;
trav2 = true;
}
var atmcs = _parent.atmcs;
var teff;
var difcomp;
dani._x = 10 * sid;
ha._x = 10 * sid;
ind._x = 10 * sid;
if (sid > 0) {
var apu = _root.alift1;
} else if (sid < 0) {
var apu = _root.alift2;
}
var llimx = [_parent.g1._x, _parent.g2._x];
onEnterFrame = function () {
if (ctrl) {
if (kd(k.l)) {
if (_xscale > 0) {
dani._x = -10 * sid;
ha._x = -10 * sid;
ind._x = -10 * sid;
}
_x = (_x - xvel);
_xscale = (-sscale);
if (hittin && (dani._currentframe < 3)) {
dani.gotoAndPlay("running");
}
} else if (kd(k.r)) {
if (_xscale < 0) {
dani._x = 10 * sid;
ha._x = 10 * sid;
ind._x = 10 * sid;
}
_x = (_x + xvel);
_xscale = sscale;
if (hittin && (dani._currentframe < 3)) {
dani.gotoAndPlay("running");
}
} else if (hittin && (!kd(k.u))) {
dani.gotoAndStop("standing");
}
if ((tricks > 0) && (spp > splim)) {
ind.inner.gotoAndStop(2);
} else {
ind.inner.gotoAndStop(1);
}
} else {
dani.gotoAndStop(1);
}
grav = grav + gf;
_y = (_y + grav);
if (_y > flr) {
grav = 0;
_y = flr;
if (!hittin) {
dani.gotoAndStop("standing");
}
hittin = true;
if (ctrl && (kd(k.u))) {
grav = -jump;
dani.gotoAndStop("jumping");
}
} else {
hittin = false;
}
if (_x < llimx[0]) {
_x = llimx[0];
} else if (_x > llimx[1]) {
_x = llimx[1];
}
if (ha.hitTest(ball) && (able > ablet)) {
difcomp = 70 - (plusJump * 2.5);
difX = (difcomp - Math.abs(ball._x - _x)) * 0.019;
ball.xvel = (ball._x - _x) * strength;
ball.xvel = Math.min(20, ball.xvel);
ball.xvel = Math.max(-20, ball.xvel);
ball.grav = ((-((ball.grav * 0.4) * difX)) + ((grav * 1.1) * difX)) - 5;
ball.imh = 0;
able = 0;
ablet = 25 - Math.round(((Math.abs(ball._x - _x) + Math.abs(ball._y - _y)) * 0.5) * 0.5);
if (apu && (ball._y > (_y - 20))) {
ball.grav = (-jump) * 1.4;
ball.xvel = 0;
}
if (kd(k.d)) {
ball.grav = (-jump) * 1.4;
ball.xvel = 0;
}
if ((spch && (dani._currentframe >= 28)) && (dani._currentframe <= 43)) {
ball.xvel = (((70 + random(10)) * strength) * 1.7) * velTo;
ball.grav = -5 - random(10);
_parent.efins++;
teff = atmcs.attachMovie("teffect", "e" + _parent.efins, _parent.efins);
teff._x = ball._x;
teff._y = ball._y;
} else if (((trav2 && (ctrl)) && (kd(k.d))) && (kd(k.s) || (kd(k.s2)))) {
dani.gotoAndPlay("superhead");
ball.xvel = (((25 + random(16)) * strength) * 1.6) * velTo;
ball.grav = ((30 + random(10)) * strength) * 1.6;
spp = 0;
_parent.efins++;
teff = atmcs.attachMovie("teffect", "e" + _parent.efins, _parent.efins);
teff._x = ball._x;
teff._y = ball._y;
}
}
able++;
ind.inner._visible = ctrl;
ind._y = dind - (_y - flr);
if ((((trav1 && (ctrl)) && (kd(k.s) || (kd(k.s2)))) && (spp > splim)) && (!kd(k.d))) {
dani.gotoAndPlay("chilen");
_xscale = (-100 * velTo);
spp = 0;
}
spp++;
};
Instance of Symbol 2866 MovieClip "ind" in Symbol 2867 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_parent.tteam);
}
Symbol 2868 MovieClip Frame 1
var flr = 360;
var gf = 1;
var tm = 1;
var efins;
Instance of Symbol 1555 MovieClip "ball" in Symbol 2868 MovieClip Frame 1
onClipEvent (enterFrame) {
grav = grav + gf;
_y = (_y + (grav * prop));
if (_y > flr) {
grav = grav * -0.9;
xvel = xvel * 0.8;
_y = flr;
imh = 0;
}
_x = (_x + (xvel * prop));
if (((_x < l[1]) || (_x > l[2])) && (_y < topPor)) {
xvel = xvel * -1;
}
rot = rot + ((xvel * prop) * 2);
if (rot > 360) {
rot = rot - 360;
} else if (rot < 0) {
rot = rot + 360;
}
rrot = Math.round(rot / 10) + 1;
inner.gotoAndStop(rrot);
tsec--;
if (tsec <= 0) {
tsec = 35;
if (_root.mar1.tt == 0) {
if (_root.g1 == _root.g2) {
_root.mar1.tt = _root.mar1.tt + 15;
} else {
trace("partido terminado");
ended++;
if (sndo) {
musicMc.gotoAndStop("whistle2");
}
_parent.pl1.ctrl = false;
_parent.pl2.ctrl = false;
_parent.pl3.ctrl = false;
_parent.e1.ctrl = false;
_parent.e2.ctrl = false;
_parent.e3.ctrl = false;
}
}
_root.mar1.tt--;
}
if (ended > 0) {
ended++;
if (ended > 70) {
if (_root.g1 > _root.g2) {
_root.iWin = true;
} else {
_root.iWin = false;
}
if (_root.playingNow == 1) {
_root.gPhase++;
} else if (_root.playingNow == 2) {
_root.leaPhase++;
} else if (_root.playingNow == 3) {
_root.arcPhase++;
}
_root.afterPartido = true;
stopAllSounds();
_root.gotoAndStop(46);
}
}
cpxx = (-_parent._x) + limx.mxx;
cpxm = (-_parent._x) + limx.mnn;
_parent.pp._x = cpxx;
if (_x > cpxx) {
_parent._x = _parent._x - ((_x - cpxx) * 0.17);
} else if (_x < cpxm) {
_parent._x = _parent._x - ((_x - cpxm) * 0.17);
}
if (_parent._x > 340) {
_parent._x = 340;
} else if (_parent._x < -470) {
_parent._x = -470;
}
_root.bgCrowd._x = _parent._x * 0.3;
_root.bgAds._x = _parent._x * 0.5;
ntp++;
if (((_x < gz1) && (!gcel)) && (_root.mar1.tt > 0)) {
gtmr++;
gtm = 2;
_root.aniGoal.play();
} else if (((_x > gz2) && (!gcel)) && (_root.mar1.tt > 0)) {
gtmr++;
gtm = 1;
_root.aniGoal.play();
} else {
gtmr = 0;
}
if (gtmr == 1) {
_root["g" + gtm]++;
gcel = true;
gcel2 = 0;
if (gtm == 2) {
movc = 0;
movt = 4;
_root.mar1.gnum2.gotoAndStop(_root.g2 + 1);
} else if (gtm == 1) {
movc = 0;
movt = 1;
_root.mar1.gnum1.gotoAndStop(_root.g1 + 1);
}
}
if (gcel) {
gcel2++;
if (gcel2 > 70) {
_x = 570;
_y = 0;
xvel = 0;
grav = 0;
gcel = false;
gcel2 = 0;
}
}
imh++;
topY = _y;
if (imh == 1) {
spx = _x;
spy = _y;
spgrav = grav;
spxvel = xvel;
do {
spgrav = spgrav + gf;
spy = spy + (spgrav * prop);
spx = spx + (spxvel * prop);
if ((spx < l[1]) || (spx > l[2])) {
spxvel = spxvel * -1;
}
if (spy < topY) {
topY = spy;
}
} while (!((spy > 270) && (spgrav > 0)));
if (apk2) {
ac = tp;
dist2 = 10000;
do {
enem = _parent["e" + ac];
dist = Math.abs(enem._x - spx) + Math.abs(enem._y - spy);
if (dist < dist2) {
eName = enem._name;
dist2 = dist;
}
ac--;
} while (ac > 0);
c = 1;
while (c < tp) {
_parent["e" + c].ctrl = false;
c++;
}
_parent[eName].ctrl = true;
_parent[eName].bpx = spx;
_parent[eName].eng = 0;
_parent[eName].topY = topY;
ntp = 0;
}
if (apk1) {
ac = tp;
dist2 = 10000;
do {
enem = _parent["pl" + ac];
dist = Math.abs(enem._x - spx) + Math.abs(enem._y - spy);
if (dist < dist2) {
eName = enem._name;
dist2 = dist;
}
ac--;
} while (ac > 0);
c = 1;
while (c < tp) {
_parent["pl" + c].ctrl = false;
c++;
}
_parent[eName].ctrl = true;
_parent[eName].bpx = spx;
_parent[eName].eng = 0;
_parent[eName].topY = topY;
}
}
if (hitTest(_parent.pal1) && (hiBar > 3)) {
npVel = Math.abs(xvel) + Math.abs(grav);
npTemp = Math.atan2(_y - _parent.pal1._y, _x - _parent.pal1._x) * mul2;
npTemp2 = Math.atan2(grav, xvel) * mul2;
nnRot = (360 - (npTemp2 - (npTemp * 2))) + 180;
npx = Math.cos(nnRot * mul) * npVel;
npy = Math.sin(nnRot * mul) * npVel;
xvel = npx;
grav = npy;
hiBar = 0;
if (grav > 0) {
movc = 0;
movt = 5;
} else {
movc = 0;
movt = 6;
}
} else if (hitTest(_parent.pal2) && (hiBar > 3)) {
npVel = Math.abs(xvel) + Math.abs(grav);
npTemp = Math.atan2(_y - _parent.pal2._y, _x - _parent.pal2._x) * mul2;
npTemp2 = Math.atan2(grav, xvel) * mul2;
nnRot = (360 - (npTemp2 - (npTemp * 2))) + 180;
npx = Math.cos(nnRot * mul) * npVel;
npy = Math.sin(nnRot * mul) * npVel;
xvel = npx;
grav = npy;
hiBar = 0;
if (grav > 0) {
movc = 0;
movt = 2;
} else {
movc = 0;
movt = 3;
}
} else {
hiBar++;
}
if (hitTest(_parent.tp1)) {
_y = ((_parent.tp1._y + (_parent.tp1._height / 2)) + wdth);
grav = grav * -1;
} else if (hitTest(_parent.tp2)) {
_y = ((_parent.tp2._y + (_parent.tp2._height / 2)) + wdth);
grav = grav * -1;
}
if (_x < porl[1]) {
_x = porl[1];
xvel = xvel * -0.25;
} else if (_x > porl[2]) {
_x = porl[2];
xvel = xvel * -0.25;
}
movc++;
if (movc == 1) {
if (movt == 1) {
myCrowd.gotoAndPlay("goal");
if (sndo) {
musicMc.gotoAndPlay("goal" + (random(2) + 1));
}
sndfix = 5;
snnum = "whistle1";
} else if (movt == 2) {
myCrowd.gotoAndPlay("almost");
if (sndo) {
musicMc.gotoAndPlay(snalmost[random(2)]);
}
} else if (movt == 3) {
myCrowd.gotoAndPlay("few");
if (sndo) {
musicMc.gotoAndPlay(snalmost[random(2)]);
}
} else if (movt == 4) {
myRivals.gotoAndPlay("goal");
if (sndo) {
musicMc.gotoAndPlay("goal" + (random(2) + 1));
}
sndfix = 5;
snnum = "whistle1";
} else if (movt == 5) {
myRivals.gotoAndPlay("almost");
if (sndo) {
musicMc.gotoAndPlay(snalmost[random(2)]);
}
} else if (movt == 6) {
myRivals.gotoAndPlay("few");
if (sndo) {
musicMc.gotoAndPlay(snalmost[random(2)]);
}
}
}
snc++;
if (snc > snc2) {
snc = 0;
snr = random(100);
if (snr < snmin) {
snpick = snarr[random(6)];
if (sndo) {
musicMc.gotoAndPlay(snpick);
}
}
}
if (sndfix > 0) {
if (sndfix == 1) {
if (sndo) {
musicMc.gotoAndPlay(snnum);
}
if (snnum == "uy1") {
sndfix = 40;
snnum = "applause";
} else if (snnum == "whistle1") {
sntmp = random(100);
if (sntmp < 20) {
trace("yeah, la porra is to come");
sndfix = 70;
snnum = snarr[random(6)];
}
}
trace(snnum);
}
sndfix--;
}
campSkew = 20 - Math.round((_parent._x - campD) / 35);
_parent.camp.inner.gotoAndStop(campSkew);
_parent.upperc.gotoAndStop(campSkew);
if (_y < -120) {
upindscale = (Math.abs(_y) - 120) * 0.5;
_parent.upind._visible = true;
_parent.upind._x = _x;
_parent.upind._xscale = (_parent.upind._yscale = upindscale);
} else {
_parent.upind._visible = false;
}
shdw._x = _x;
}
onClipEvent (keyDown) {
c = 1;
myList = [0];
while (c < tp) {
currentPlayer = _parent["pl" + c];
myList.push(currentPlayer._x);
c++;
}
myList.sort(Array.NUMERIC);
c = 1;
myList2 = [0, 0, 0, 0, 0, 0, 0];
while (c < tp) {
currentPlayer = _parent["pl" + c];
c2 = 1;
while (c2 < tp) {
if (currentPlayer._x == myList[c2]) {
myList2[c2] = currentPlayer;
if (currentPlayer.ctrl) {
cPos = c2;
}
}
c2++;
}
c++;
}
if ((Key.isDown(k.s) || (Key.isDown(k.s2))) && ((ntp > 4) || (_y > 241))) {
spx = _x;
spy = _y;
spgrav = grav;
spxvel = xvel;
do {
spgrav = spgrav + gf;
spy = spy + (spgrav * prop);
spx = spx + (spxvel * prop);
if ((spx < l[1]) || (spx > l[2])) {
spxvel = spxvel * -1;
}
} while (!((spy > 241) && (spgrav > 0)));
ac = tp;
dist2 = 10000;
do {
enem = _parent["pl" + ac];
if (!enem.ctrl) {
dist = Math.abs(enem._x - spx) + Math.abs(enem._y - spy);
if (dist < dist2) {
eName = enem._name;
dist2 = dist;
}
}
ac--;
} while (ac > 0);
c = 1;
while (c < tp) {
_parent["pl" + c].ctrl = false;
c++;
}
_parent[eName].ctrl = true;
ntp = 0;
}
if ((Key.isDown(k.s3) || (Key.isDown(k.s4))) && ((ntp > 4) || (_y > 241))) {
spx = _x;
spy = _y;
spgrav = grav;
spxvel = xvel;
do {
spgrav = spgrav + gf;
spy = spy + (spgrav * prop);
spx = spx + (spxvel * prop);
if ((spx < l[1]) || (spx > l[2])) {
spxvel = spxvel * -1;
}
} while (!((spy > 241) && (spgrav > 0)));
ac = tp;
dist2 = 10000;
do {
enem = _parent["e" + ac];
if (!enem.ctrl) {
dist = Math.abs(enem._x - spx) + Math.abs(enem._y - spy);
if (dist < dist2) {
eName = enem._name;
dist2 = dist;
}
}
ac--;
} while (ac > 0);
c = 1;
while (c < tp) {
_parent["e" + c].ctrl = false;
c++;
}
_parent[eName].ctrl = true;
ntp = 0;
}
}
onClipEvent (load) {
var gf = _parent.gf;
var grav = 0;
var xvel = 0;
var flr = ((_parent.flr - (_height / 2)) + 30);
var k = {n:68, p:65, s:32, s2:65, s3:17, s4:79};
var pc = 1;
var tp = 4;
var c = 0;
var limx = {mxx:360, mnn:340};
var cpxx;
var cpxm;
var wdth = (_width / 2);
var l = [0, _parent.l1._x + wdth, _parent.l2._x - wdth];
var myList1 = new Array(4);
var myList2 = new Array(4);
var currentPlayer;
var c2 = 0;
var cPos;
var ac = 0;
var eName;
var enem;
var dist;
var dist2;
var prop = 0.73;
var ntp = 0;
var spx;
var spy;
var spgrav;
var spxvel;
var imh = 0;
var topY;
var defX = _x;
var topPor = (_parent.l2._y + wdth);
var mul = (Math.PI/180);
var mul2 = 57.2957795130823;
var npx;
var npy;
var npTemp;
var npTemp2;
var nnRot;
var npVel;
var hiBar = 0;
var movc = 3;
var movt = 0;
var movr = 0;
var myCrowd = _root.bgCrowd.inner.ccrowd;
var myRivals = _root.bgCrowd.inner2.ccrowd;
var sndo = _root.sndo;
var snc = 0;
var snc2 = 350;
var snr;
var snmin = 30;
var snpick;
var snarr = ["porra1", "porra2", "porra3", "porra4", "porra5", "chiflido"];
var snfix = 0;
var snnum;
var musicMc = _root.msc;
var snalmost = ["uy1", "uy2"];
var sntmp;
var sngoal = ["goal", "goal2"];
var campSkew;
var campD = _parent._x;
var gz1 = (_parent.pal1._x - wdth);
var gz2 = (_parent.pal2._x + wdth);
var gtmr = 0;
var gtm;
var gcel;
var gcel2;
var porl = [0, _parent.g1._x + wdth, _parent.g2._x - wdth];
var rot = 0;
var rrot;
var tsec = 35;
_root.mar1.tt = 60;
var ended = 0;
var sndo = _root.sndo;
var upindscale;
var apk1 = _root.apick1;
var apk2 = _root.apick2;
var shdw = _parent.shdw;
}
Instance of Symbol 2867 MovieClip "e1" in Symbol 2868 MovieClip Frame 1
onClipEvent (load) {
var ctrl = false;
var tteam = 2;
var plNum = 2;
var theNum = (((_root.team2 * 3) - 2) + plNum);
var eyes = _root.eyes[theNum];
var mouth = _root.mouth[theNum];
var nose = _root.nose[theNum];
var beard = _root.beard[theNum];
var brows = _root.brows[theNum];
var hair = _root.hair[theNum];
var shirt = _root.shirtColor[theNum];
var short = _root.shortColor[theNum];
var skinn = _root.skinColor[theNum];
var tricks = _root.playerTricks[theNum];
var plusStrength = _root.playerPlusStrength[theNum];
var plusJump = _root.playerPlusJump[theNum];
var plusSpeed = _root.playerPlusSpeed[theNum];
trace("PLUS STRENGTH = " + plusStrength);
var sid = -1;
}
Instance of Symbol 2867 MovieClip "e2" in Symbol 2868 MovieClip Frame 1
onClipEvent (load) {
var ctrl = true;
var tteam = 2;
var plNum = 1;
var theNum = (((_root.team2 * 3) - 2) + plNum);
var eyes = _root.eyes[theNum];
var mouth = _root.mouth[theNum];
var nose = _root.nose[theNum];
var beard = _root.beard[theNum];
var brows = _root.brows[theNum];
var hair = _root.hair[theNum];
var shirt = _root.shirtColor[theNum];
var short = _root.shortColor[theNum];
var skinn = _root.skinColor[theNum];
var tricks = _root.playerTricks[theNum];
var plusStrength = _root.playerPlusStrength[theNum];
var plusJump = _root.playerPlusJump[theNum];
var plusSpeed = _root.playerPlusSpeed[theNum];
var sid = -1;
}
Instance of Symbol 2867 MovieClip "e3" in Symbol 2868 MovieClip Frame 1
onClipEvent (load) {
var ctrl = false;
var tteam = 2;
var plNum = 0;
var theNum = (((_root.team2 * 3) - 2) + plNum);
var eyes = _root.eyes[theNum];
var mouth = _root.mouth[theNum];
var nose = _root.nose[theNum];
var beard = _root.beard[theNum];
var brows = _root.brows[theNum];
var hair = _root.hair[theNum];
var shirt = _root.shirtColor[theNum];
var short = _root.shortColor[theNum];
var skinn = _root.skinColor[theNum];
var tricks = _root.playerTricks[theNum];
var plusStrength = _root.playerPlusStrength[theNum];
var plusJump = (5 + _root.playerPlusJump[theNum]);
var plusSpeed = _root.playerPlusSpeed[theNum];
var sid = -1;
}
Instance of Symbol 2867 MovieClip "pl1" in Symbol 2868 MovieClip Frame 1
onClipEvent (load) {
var ctrl = false;
var tteam = 1;
var plNum = 0;
var theNum = (((_root.team1 * 3) - 2) + plNum);
var eyes = _root.eyes[theNum];
var mouth = _root.mouth[theNum];
var nose = _root.nose[theNum];
var beard = _root.beard[theNum];
var brows = _root.brows[theNum];
var hair = _root.hair[theNum];
var shirt = _root.shirtColor[theNum];
var short = _root.shortColor[theNum];
var skinn = _root.skinColor[theNum];
var tricks = _root.playerTricks[theNum];
var plusStrength = _root.playerPlusStrength[theNum];
var plusJump = (5 + _root.playerPlusJump[theNum]);
var plusSpeed = _root.playerPlusSpeed[theNum];
var sid = 1;
}
Instance of Symbol 2867 MovieClip "pl2" in Symbol 2868 MovieClip Frame 1
onClipEvent (load) {
var ctrl = true;
var tteam = 1;
var plNum = 1;
var theNum = (((_root.team1 * 3) - 2) + plNum);
var eyes = _root.eyes[theNum];
var mouth = _root.mouth[theNum];
var nose = _root.nose[theNum];
var beard = _root.beard[theNum];
var brows = _root.brows[theNum];
var hair = _root.hair[theNum];
var shirt = _root.shirtColor[theNum];
var short = _root.shortColor[theNum];
var skinn = _root.skinColor[theNum];
var tricks = _root.playerTricks[theNum];
var plusStrength = _root.playerPlusStrength[theNum];
var plusJump = _root.playerPlusJump[theNum];
var plusSpeed = _root.playerPlusSpeed[theNum];
var sid = 1;
}
Instance of Symbol 2867 MovieClip "pl3" in Symbol 2868 MovieClip Frame 1
onClipEvent (load) {
var ctrl = false;
var tteam = 1;
var plNum = 2;
var theNum = (((_root.team1 * 3) - 2) + plNum);
var eyes = _root.eyes[theNum];
var mouth = _root.mouth[theNum];
var nose = _root.nose[theNum];
var beard = _root.beard[theNum];
var brows = _root.brows[theNum];
var hair = _root.hair[theNum];
var shirt = _root.shirtColor[theNum];
var short = _root.shortColor[theNum];
var skinn = _root.skinColor[theNum];
var tricks = _root.playerTricks[theNum];
var plusStrength = _root.playerPlusStrength[theNum];
var plusJump = _root.playerPlusJump[theNum];
var plusSpeed = _root.playerPlusSpeed[theNum];
var sid = 1;
}
Instance of Symbol 978 MovieClip "pl1" in Symbol 2873 MovieClip Frame 1
onClipEvent (load) {
var ctrl = false;
var plNum = 0;
var theNum = (((_root.team1 * 3) - 2) + plNum);
var eyes = _root.eyes[theNum];
var mouth = _root.mouth[theNum];
var nose = _root.nose[theNum];
var beard = _root.beard[theNum];
var brows = _root.brows[theNum];
var hair = _root.hair[theNum];
var shirt = _root.shirtColor[theNum];
var short = _root.shortColor[theNum];
var skinn = _root.skinColor[theNum];
ind._visible = false;
}
Instance of Symbol 978 MovieClip "a" in Symbol 2873 MovieClip Frame 1
onClipEvent (load) {
var ctrl = false;
var plNum = 1;
var theNum = (((_root.team1 * 3) - 2) + plNum);
var eyes = _root.eyes[theNum];
var mouth = _root.mouth[theNum];
var nose = _root.nose[theNum];
var beard = _root.beard[theNum];
var brows = _root.brows[theNum];
var hair = _root.hair[theNum];
var shirt = _root.shirtColor[theNum];
var short = _root.shortColor[theNum];
var skinn = _root.skinColor[theNum];
ind._visible = false;
}
Instance of Symbol 978 MovieClip "b" in Symbol 2873 MovieClip Frame 1
onClipEvent (load) {
var ctrl = false;
var plNum = 2;
var theNum = (((_root.team1 * 3) - 2) + plNum);
var eyes = _root.eyes[theNum];
var mouth = _root.mouth[theNum];
var nose = _root.nose[theNum];
var beard = _root.beard[theNum];
var brows = _root.brows[theNum];
var hair = _root.hair[theNum];
var shirt = _root.shirtColor[theNum];
var short = _root.shortColor[theNum];
var skinn = _root.skinColor[theNum];
ind._visible = false;
}
Instance of Symbol 978 MovieClip "G" in Symbol 2874 MovieClip Frame 1
onClipEvent (load) {
var ctrl = false;
var plNum = 0;
var theNum = (((_root.team2 * 3) - 2) + plNum);
var eyes = _root.eyes[theNum];
var mouth = _root.mouth[theNum];
var nose = _root.nose[theNum];
var beard = _root.beard[theNum];
var brows = _root.brows[theNum];
var hair = _root.hair[theNum];
var shirt = _root.shirtColor[theNum];
var short = _root.shortColor[theNum];
var skinn = _root.skinColor[theNum];
ind._visible = false;
}
Instance of Symbol 978 MovieClip "e" in Symbol 2874 MovieClip Frame 1
onClipEvent (load) {
var ctrl = false;
var plNum = 1;
var theNum = (((_root.team2 * 3) - 2) + plNum);
var eyes = _root.eyes[theNum];
var mouth = _root.mouth[theNum];
var nose = _root.nose[theNum];
var beard = _root.beard[theNum];
var brows = _root.brows[theNum];
var hair = _root.hair[theNum];
var shirt = _root.shirtColor[theNum];
var short = _root.shortColor[theNum];
var skinn = _root.skinColor[theNum];
ind._visible = false;
}
Instance of Symbol 978 MovieClip "s" in Symbol 2874 MovieClip Frame 1
onClipEvent (load) {
var ctrl = false;
var plNum = 2;
var theNum = (((_root.team2 * 3) - 2) + plNum);
var eyes = _root.eyes[theNum];
var mouth = _root.mouth[theNum];
var nose = _root.nose[theNum];
var beard = _root.beard[theNum];
var brows = _root.brows[theNum];
var hair = _root.hair[theNum];
var shirt = _root.shirtColor[theNum];
var short = _root.shortColor[theNum];
var skinn = _root.skinColor[theNum];
ind._visible = false;
}
Symbol 2875 MovieClip Frame 1
stop();
Instance of Symbol 978 MovieClip "G" in Symbol 2875 MovieClip Frame 1
onClipEvent (load) {
var ctrl = false;
var plNum = 0;
var theNum = (((_root.team2 * 3) - 2) + plNum);
var eyes = _root.eyes[theNum];
var mouth = 17;
var nose = _root.nose[theNum];
var beard = _root.beard[theNum];
var brows = _root.brows[theNum];
var hair = _root.hair[theNum];
var shirt = _root.shirtColor[theNum];
var short = _root.shortColor[theNum];
var skinn = _root.skinColor[theNum];
ind._visible = false;
}
Instance of Symbol 978 MovieClip "e" in Symbol 2875 MovieClip Frame 1
onClipEvent (load) {
var ctrl = false;
var plNum = 1;
var theNum = (((_root.team2 * 3) - 2) + plNum);
var eyes = _root.eyes[theNum];
var mouth = 17;
var nose = _root.nose[theNum];
var beard = _root.beard[theNum];
var brows = _root.brows[theNum];
var hair = _root.hair[theNum];
var shirt = _root.shirtColor[theNum];
var short = _root.shortColor[theNum];
var skinn = _root.skinColor[theNum];
ind._visible = false;
}
Instance of Symbol 978 MovieClip "s" in Symbol 2875 MovieClip Frame 1
onClipEvent (load) {
var ctrl = false;
var plNum = 2;
var theNum = (((_root.team2 * 3) - 2) + plNum);
var eyes = _root.eyes[theNum];
var mouth = 17;
var nose = _root.nose[theNum];
var beard = _root.beard[theNum];
var brows = _root.brows[theNum];
var hair = _root.hair[theNum];
var shirt = _root.shirtColor[theNum];
var short = _root.shortColor[theNum];
var skinn = _root.skinColor[theNum];
ind._visible = false;
}
Instance of Symbol 978 MovieClip "pl1" in Symbol 2875 MovieClip Frame 2
onClipEvent (load) {
var ctrl = false;
var plNum = 0;
var theNum = (((_root.team1 * 3) - 2) + plNum);
var eyes = _root.eyes[theNum];
var mouth = 17;
var nose = _root.nose[theNum];
var beard = _root.beard[theNum];
var brows = _root.brows[theNum];
var hair = _root.hair[theNum];
var shirt = _root.shirtColor[theNum];
var short = _root.shortColor[theNum];
var skinn = _root.skinColor[theNum];
ind._visible = false;
}
Instance of Symbol 978 MovieClip "a" in Symbol 2875 MovieClip Frame 2
onClipEvent (load) {
var ctrl = false;
var plNum = 1;
var theNum = (((_root.team1 * 3) - 2) + plNum);
var eyes = _root.eyes[theNum];
var mouth = 17;
var nose = _root.nose[theNum];
var beard = _root.beard[theNum];
var brows = _root.brows[theNum];
var hair = _root.hair[theNum];
var shirt = _root.shirtColor[theNum];
var short = _root.shortColor[theNum];
var skinn = _root.skinColor[theNum];
ind._visible = false;
}
Instance of Symbol 978 MovieClip "b" in Symbol 2875 MovieClip Frame 2
onClipEvent (load) {
var ctrl = false;
var plNum = 2;
var theNum = (((_root.team1 * 3) - 2) + plNum);
var eyes = _root.eyes[theNum];
var mouth = 17;
var nose = _root.nose[theNum];
var beard = _root.beard[theNum];
var brows = _root.brows[theNum];
var hair = _root.hair[theNum];
var shirt = _root.shirtColor[theNum];
var short = _root.shortColor[theNum];
var skinn = _root.skinColor[theNum];
ind._visible = false;
}
Symbol 2878 MovieClip Frame 1
if (_root.lv == 1) {
stop();
} else if (_root.lv == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 2881 MovieClip Frame 1
var cc = (random(30) + 40);
while (cc > 0) {
cc--;
this.attachMovie("cft", "cf" + cc, cc);
}
if (_root.lv == 1) {
stop();
} else if (_root.lv == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 2885 Button
on (release) {
_root.setCookie("database", "qty", _root.qty);
_root.setCookie("database", "sndo", _root.sndo);
_root.setCookie("database", "secs", _root.secs);
_root.setCookie("database", "autoPickUp", _root.autoPickUp);
_root.setCookie("database", "autoPick", _root.autoPick);
gotoFrame(4);
}
Symbol 2886 Button
on (release) {
secs = secs + 10;
if (secs > 120) {
secs = 120;
}
}
Symbol 2887 Button
on (release) {
if (secs > 30) {
secs = secs - 10;
}
}
Symbol 2906 MovieClip Frame 1
if (_root.lv == 1) {
stop();
} else if (_root.lv == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 2911 MovieClip Frame 1
if (_root.lv == 1) {
stop();
} else if (_root.lv == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 2913 Button
on (release) {
mochi.as2.MochiScores.showLeaderboard({boardID:boardID, score:_root.score});
if (_root.playingNow == 1) {
_root.gScore = 0;
_root.setCookie("database", "gScore", _root.gScore);
} else if (_root.playingNow == 2) {
_root.leaScore = 0;
_root.setCookie("database", "leaScore", _root.leaScore);
} else if (_root.playingNow == 3) {
_root.arcScore = 0;
_root.setCookie("database", "arcScore", _root.arcScore);
}
}
Symbol 2918 MovieClip Frame 1
if (_root.lv == 1) {
stop();
} else if (_root.lv == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 2919 Button
on (release) {
gtshow = 1;
nextFrame();
}
Symbol 2920 Button
on (release) {
gtshow = 2;
nextFrame();
}
Symbol 2921 Button
on (release) {
gtshow = 3;
nextFrame();
}
Symbol 2927 MovieClip Frame 1
if (_root.lv == 1) {
stop();
} else if (_root.lv == 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 2929 Button
on (press) {
if (_root.team1 <= 1) {
_root.team1 = 32;
} else {
_root.team1--;
}
_root.myEnemyTeam = _root.team1;
play();
}
Symbol 2930 Button
on (press) {
if (_root.team1 >= 32) {
_root.team1 = 1;
} else {
_root.team1++;
}
_root.myEnemyTeam = _root.team1;
play();
}
Symbol 2931 MovieClip Frame 1
stop();
var t1 = _root.teamNames[_root.team1];
Instance of Symbol 1827 MovieClip in Symbol 2931 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.teamLevel[_root.team1]);
}
Symbol 2931 MovieClip Frame 3
gotoAndStop (1);
Symbol 2932 Button
on (release) {
_root.gotoFrame(4);
}
Symbol 2933 Button
on (release) {
var theename = _root.teamNames[team1];
ttush = theename;
_root.gotoFrame(56);
}
Symbol 2936 MovieClip Frame 1
if (_root.lv == 1) {
stop();
} else {
gotoAndStop (2);
}
Symbol 2937 Button
on (release) {
pplayer = pl1.theNum;
teamUniform = pl1.theNum;
if (ttush != "Super Team") {
teamNames[team1] = ttush;
}
gotoFrame(57);
}
Symbol 2938 Button
on (release) {
pplayer = pl2.theNum;
teamUniform = pl1.theNum;
if (ttush != "Super Team") {
teamNames[team1] = ttush;
}
gotoFrame(57);
}
Symbol 2939 Button
on (release) {
pplayer = pl3.theNum;
teamUniform = pl1.theNum;
if (ttush != "Super Team") {
teamNames[team1] = ttush;
}
gotoFrame(57);
}
Symbol 2940 Button
on (release) {
_root.teamNames[myEnemyTeam] = ttush;
_root.setCookie("database", "teamNames", _root.teamNames);
if (yesChanged) {
_root.setCookie("database", "eyes", _root.eyes);
_root.setCookie("database", "mouth", _root.mouth);
_root.setCookie("database", "nose", _root.nose);
_root.setCookie("database", "beard", _root.beard);
_root.setCookie("database", "brows", _root.brows);
_root.setCookie("database", "hair", _root.hair);
_root.setCookie("database", "skinColor", _root.skinColor);
_root.setCookie("database", "shirtColor", _root.shirtColor);
_root.setCookie("database", "shortColor", _root.shortColor);
}
_root.gotoFrame(55);
}
Symbol 2943 MovieClip Frame 1
if (_root.lv == 1) {
stop();
} else if (_root.lv == 2) {
gotoAndStop (2);
}
Symbol 2944 Button
on (release) {
_root.gotoFrame(55);
}