Frame 1
System.security.allowInsecureDomain("*");
System.security.allowDomain("*");
MochiAd.showPreGameAd({id:"6289867af3b5a697", res:"950x600"});
Instance of Symbol 333 MovieClip [Console] in Frame 1
//component parameters
onClipEvent (construct) {
_alpha = 100;
history = 100;
promt = ":: ";
scaleX = 100;
scaleY = 80;
}
Frame 3
stop();
System.security.allowInsecureDomain("redcoondataport.webgekko.de");
System.security.allowInsecureDomain("www.webgekko.de");
Stage.showMenu = false;
Intro.start.enabled = false;
this._lockroot = true;
Stage.scaleMode = "noScale";
Global.initializeGame();
Console.trace("Setting up...");
var InfoServer = (new serverconnection.Server(Global.url("LoadInfo")));
var Event = new Object();
Event.onConnect = function (Server) {
Global.Password = Server.target.DataByRowObject("Info").Password;
Global.SKey = Server.target.DataByRowObject("Info").S_ID_NUM;
Global.SessionID = Server.target.DataByRowObject("Info").S_ID;
Intro.start.enabled = true;
Console.trace("password: " + Global.Password);
};
Event.onError = function (asdf) {
Console.trace("password: " + asdf.target._MyXML);
Console.trace("password: " + asdf.target._MyXML.status);
};
InfoServer.addEventListener("onConnect", Event);
Instance of Symbol 338 MovieClip "Intro" in Frame 3
/* no clip actions */
Frame 17
stop();
Global.Audio.fadeInMusic();
Global.Audio.stopBackground();
MochiAd.showClickAwayAd({clip:menu.clickawayad_mc, id:"6289867af3b5a697"});
stop();
Instance of Symbol 320 MovieClip [Menu] "menu" in Frame 17
onClipEvent (load) {
this.counter.enabled = false;
}
Frame 36
stop();
Global.Audio.fadeOutMusic();
Global.Audio.startBackground();
_root.action = false;
Instance of Symbol 360 MovieClip "planes" in Frame 36
onClipEvent (load) {
this.gotoAndStop(Math.round(Math.random() * _totalframes) + 1);
}
Instance of Symbol 362 MovieClip in Frame 36
onClipEvent (load) {
step = 1;
}
onClipEvent (enterFrame) {
if ((_root.actionScore == "01") and (step == 1)) {
_parent.planes.plane.play();
step = step + 1;
}
if ((_root.actionScore == "04") and (step == 2)) {
_parent.planes.plane.play();
step = step + 1;
}
if ((_root.actionScore == "06") and (step == 3)) {
_parent.planes.plane.play();
step = step + 1;
}
if ((_root.actionScore == "08") and (step == 4)) {
_parent.planes.plane.play();
step = step + 1;
}
if ((_root.actionScore == "10") and (step == 5)) {
_parent.planes.plane.play();
step = step + 1;
}
}
Instance of Symbol 369 MovieClip in Frame 36
onClipEvent (load) {
this.stop();
if (_root.tablestyle == "gras") {
this.gotoAndStop(1);
} else if (_root.tablestyle == "desert") {
this.gotoAndStop(2);
} else if (_root.tablestyle == "ice") {
this.gotoAndStop(3);
}
}
Instance of Symbol 375 MovieClip in Frame 36
onClipEvent (load) {
this.stop();
if (_root.tablestyle == "gras") {
this.gotoAndStop(1);
} else if (_root.tablestyle == "desert") {
this.gotoAndStop(2);
} else if (_root.tablestyle == "ice") {
this.gotoAndStop(3);
}
}
Instance of Symbol 477 MovieClip in Frame 36
onClipEvent (load) {
this.stop();
if (_root.tablestyle == "gras") {
Global.Game.Ball.setEngineGras();
this.gotoAndStop(1);
} else if (_root.tablestyle == "desert") {
Global.Game.Ball.setEngineDesert();
this.gotoAndStop(2);
} else if (_root.tablestyle == "ice") {
Global.Game.Ball.setEngineIce();
this.gotoAndStop(3);
}
}
Frame 56
stop();
_root.gotoAndStop("Game");
Frame 67
stop();
Global.Audio.fadeInMusic();
Global.Audio.stopBackground();
Symbol 27 MovieClip Frame 1
stop();
Symbol 35 Button
on (release) {
submit();
}
Symbol 51 MovieClip [SubmitScore] Frame 1
#initclip 52
Object.registerClass("SubmitScore", highscore.SubmitScore);
#endinitclip
stop();
Symbol 55 MovieClip [mcScoreBoard2] Frame 1
#initclip 28
Object.registerClass("mcScoreBoard2", game.global.Score);
#endinitclip
var TeamName = Global.getTeamProperty(Team, "Name");
stop();
Symbol 58 MovieClip [ScoreBoard] Frame 1
#initclip 29
Object.registerClass("ScoreBoard", game.global.Score);
#endinitclip
var TeamName = Global.getTeamProperty(Team, "Name");
stop();
Symbol 62 MovieClip [Team2_Goal] Frame 1
#initclip 30
Object.registerClass("Team2_Goal", game.field.Goal);
#endinitclip
Symbol 63 MovieClip [Team1_Goal] Frame 1
#initclip 31
Object.registerClass("Team1_Goal", game.field.Goal);
#endinitclip
Symbol 84 MovieClip [Game_Items_Ball] Frame 1
#initclip 32
Object.registerClass("Game_Items_Ball", game.items.Ball);
#endinitclip
Symbol 92 MovieClip Frame 1
this._visible = false;
Symbol 93 MovieClip [Team_Player1] Frame 1
#initclip 33
Object.registerClass("Team_Player1", game.items.Player);
#endinitclip
Symbol 94 MovieClip [Team1_PlayerRow4] Frame 1
#initclip 34
Object.registerClass("Team1_PlayerRow4", game.items.Playerrow);
#endinitclip
Instance of Symbol 93 MovieClip [Team_Player1] "player1" in Symbol 94 MovieClip [Team1_PlayerRow4] Frame 1
onClipEvent (load) {
this.PlayerName = Global.Team1PlayerNames[8];
}
Instance of Symbol 93 MovieClip [Team_Player1] "player3" in Symbol 94 MovieClip [Team1_PlayerRow4] Frame 1
onClipEvent (load) {
this.PlayerName = Global.Team1PlayerNames[10];
}
Instance of Symbol 93 MovieClip [Team_Player1] "player2" in Symbol 94 MovieClip [Team1_PlayerRow4] Frame 1
onClipEvent (load) {
this.PlayerName = Global.Team1PlayerNames[9];
}
Symbol 95 MovieClip [Team1_PlayerRow3] Frame 1
#initclip 35
Object.registerClass("Team1_PlayerRow3", game.items.Playerrow);
#endinitclip
Instance of Symbol 93 MovieClip [Team_Player1] "player1" in Symbol 95 MovieClip [Team1_PlayerRow3] Frame 1
onClipEvent (load) {
this.PlayerName = Global.Team1PlayerNames[3];
}
Instance of Symbol 93 MovieClip [Team_Player1] "player5" in Symbol 95 MovieClip [Team1_PlayerRow3] Frame 1
onClipEvent (load) {
this.PlayerName = Global.Team1PlayerNames[7];
}
Instance of Symbol 93 MovieClip [Team_Player1] "player4" in Symbol 95 MovieClip [Team1_PlayerRow3] Frame 1
onClipEvent (load) {
this.PlayerName = Global.Team1PlayerNames[6];
}
Instance of Symbol 93 MovieClip [Team_Player1] "player3" in Symbol 95 MovieClip [Team1_PlayerRow3] Frame 1
onClipEvent (load) {
this.PlayerName = Global.Team1PlayerNames[5];
}
Instance of Symbol 93 MovieClip [Team_Player1] "player2" in Symbol 95 MovieClip [Team1_PlayerRow3] Frame 1
onClipEvent (load) {
this.PlayerName = Global.Team1PlayerNames[4];
}
Symbol 96 MovieClip [Team1_PlayerRow2] Frame 1
#initclip 36
Object.registerClass("Team1_PlayerRow2", game.items.Playerrow);
#endinitclip
Instance of Symbol 93 MovieClip [Team_Player1] "player1" in Symbol 96 MovieClip [Team1_PlayerRow2] Frame 1
onClipEvent (load) {
this.PlayerName = Global.Team1PlayerNames[1];
}
Instance of Symbol 93 MovieClip [Team_Player1] "player2" in Symbol 96 MovieClip [Team1_PlayerRow2] Frame 1
onClipEvent (load) {
this.PlayerName = Global.Team1PlayerNames[2];
}
Symbol 97 MovieClip [Team1_PlayerRow1] Frame 1
#initclip 37
Object.registerClass("Team1_PlayerRow1", game.items.Playerrow);
#endinitclip
Instance of Symbol 93 MovieClip [Team_Player1] "GoalKeeper" in Symbol 97 MovieClip [Team1_PlayerRow1] Frame 1
onClipEvent (load) {
this.PlayerName = Global.Team1PlayerNames[0];
}
Symbol 98 MovieClip [Team1] Frame 1
#initclip 38
Object.registerClass("Team1", game.global.AI);
#endinitclip
Instance of Symbol 61 MovieClip "top" in Symbol 98 MovieClip [Team1] Frame 1
onClipEvent (load) {
this.unloadMovie();
}
Instance of Symbol 61 MovieClip "bottom" in Symbol 98 MovieClip [Team1] Frame 1
onClipEvent (load) {
this.unloadMovie();
}
Instance of Symbol 94 MovieClip [Team1_PlayerRow4] "row4" in Symbol 98 MovieClip [Team1] Frame 1
on (keyPress "<Down>") {
moveDown();
}
on (keyPress "<Up>") {
moveUp();
}
Instance of Symbol 95 MovieClip [Team1_PlayerRow3] "row3" in Symbol 98 MovieClip [Team1] Frame 1
on (keyPress "<Down>") {
moveDown();
}
on (keyPress "<Up>") {
moveUp();
}
Instance of Symbol 96 MovieClip [Team1_PlayerRow2] "row2" in Symbol 98 MovieClip [Team1] Frame 1
on (keyPress "<Down>") {
moveDown();
}
on (keyPress "<Up>") {
moveUp();
}
Symbol 101 MovieClip [Team_Player2] Frame 1
#initclip 39
Object.registerClass("Team_Player2", game.items.Player);
#endinitclip
Symbol 102 MovieClip [Team2_Playerrow4] Frame 1
#initclip 40
Object.registerClass("Team2_Playerrow4", game.items.Playerrow);
#endinitclip
Instance of Symbol 101 MovieClip [Team_Player2] in Symbol 102 MovieClip [Team2_Playerrow4] Frame 1
onClipEvent (load) {
this.PlayerName = Global.Team2PlayerNames[8];
}
Instance of Symbol 101 MovieClip [Team_Player2] in Symbol 102 MovieClip [Team2_Playerrow4] Frame 1
onClipEvent (load) {
this.PlayerName = Global.Team2PlayerNames[10];
}
Instance of Symbol 101 MovieClip [Team_Player2] in Symbol 102 MovieClip [Team2_Playerrow4] Frame 1
onClipEvent (load) {
this.PlayerName = Global.Team2PlayerNames[9];
}
Symbol 103 MovieClip [Team2_Playerrow3] Frame 1
#initclip 41
Object.registerClass("Team2_Playerrow3", game.items.Playerrow);
#endinitclip
Instance of Symbol 101 MovieClip [Team_Player2] in Symbol 103 MovieClip [Team2_Playerrow3] Frame 1
onClipEvent (load) {
this.PlayerName = Global.Team2PlayerNames[3];
}
Instance of Symbol 101 MovieClip [Team_Player2] in Symbol 103 MovieClip [Team2_Playerrow3] Frame 1
onClipEvent (load) {
this.PlayerName = Global.Team2PlayerNames[7];
}
Instance of Symbol 101 MovieClip [Team_Player2] in Symbol 103 MovieClip [Team2_Playerrow3] Frame 1
onClipEvent (load) {
this.PlayerName = Global.Team2PlayerNames[6];
}
Instance of Symbol 101 MovieClip [Team_Player2] in Symbol 103 MovieClip [Team2_Playerrow3] Frame 1
onClipEvent (load) {
this.PlayerName = Global.Team2PlayerNames[5];
}
Instance of Symbol 101 MovieClip [Team_Player2] in Symbol 103 MovieClip [Team2_Playerrow3] Frame 1
onClipEvent (load) {
this.PlayerName = Global.Team2PlayerNames[4];
}
Symbol 104 MovieClip [Team2_Playerrow2] Frame 1
#initclip 42
Object.registerClass("Team2_Playerrow2", game.items.Playerrow);
#endinitclip
Instance of Symbol 101 MovieClip [Team_Player2] in Symbol 104 MovieClip [Team2_Playerrow2] Frame 1
onClipEvent (load) {
this.PlayerName = Global.Team2PlayerNames[1];
}
Instance of Symbol 101 MovieClip [Team_Player2] in Symbol 104 MovieClip [Team2_Playerrow2] Frame 1
onClipEvent (load) {
this.PlayerName = Global.Team2PlayerNames[2];
}
Symbol 105 MovieClip [Team2_Playerrow1] Frame 1
#initclip 43
Object.registerClass("Team2_Playerrow1", game.items.Playerrow);
#endinitclip
var secMan = function (myID) {
var _local4 = 0;
var _local1 = 0;
while (_local1 < myID.length) {
var _local2 = new Number(myID.substring(_local1, _local1 + 1));
_local2 = _local2 * _local2;
_local2 = _local2 * (((_local1 * _local1) * _local1) + 1);
_local4 = _local4 + _local2;
_local1++;
}
return(_local4);
};
Global.NKey = secMan(Global.SKey);
Instance of Symbol 101 MovieClip [Team_Player2] "GoalKeeper" in Symbol 105 MovieClip [Team2_Playerrow1] Frame 1
onClipEvent (load) {
this.PlayerName = Global.Team2PlayerNames[0];
}
Symbol 106 MovieClip [Team2] Frame 1
#initclip 44
Object.registerClass("Team2", game.global.AI);
#endinitclip
Instance of Symbol 61 MovieClip "top" in Symbol 106 MovieClip [Team2] Frame 1
onClipEvent (load) {
this.unloadMovie();
}
Instance of Symbol 61 MovieClip "bottom" in Symbol 106 MovieClip [Team2] Frame 1
onClipEvent (load) {
this.unloadMovie();
}
Instance of Symbol 102 MovieClip [Team2_Playerrow4] "row4" in Symbol 106 MovieClip [Team2] Frame 1
on (keyPress "<Down>") {
moveDown();
}
on (keyPress "<Up>") {
moveUp();
}
Instance of Symbol 103 MovieClip [Team2_Playerrow3] "row3" in Symbol 106 MovieClip [Team2] Frame 1
on (keyPress "<Down>") {
moveDown();
}
on (keyPress "<Up>") {
moveUp();
}
Instance of Symbol 104 MovieClip [Team2_Playerrow2] "row2" in Symbol 106 MovieClip [Team2] Frame 1
on (keyPress "<Down>") {
moveDown();
}
on (keyPress "<Up>") {
moveUp();
}
Symbol 108 MovieClip [Game_Field_Field] Frame 1
#initclip 45
Object.registerClass("Game_Field_Field", game.field.Field);
#endinitclip
Symbol 125 MovieClip Frame 1
stop();
Symbol 125 MovieClip Frame 2
PlayerName.text = "...von " + Global.Game.Ball.LastPlayerTouched;
Instance of Symbol 124 MovieClip in Symbol 125 MovieClip Frame 2
onClipEvent (load) {
this.gotoAndStop(Math.round((Math.random() * (this._totalframes - 1)) + 1));
}
Symbol 125 MovieClip Frame 81
Global.Game.restartGame();
Symbol 180 MovieClip Frame 1
stop();
Symbol 180 MovieClip Frame 2
Global.Game.Ball.centerBall(false);
Symbol 180 MovieClip Frame 28
Global.Game.runGame();
Symbol 182 Button
on (release) {
if (Global.Game.checkScore() && (Global.getTeamProperty(1, "AI"))) {
_root.gotoAndStop("SubmitScore");
} else {
_root.gotoAndStop("Menu");
}
}
on (release) {
if ((Global.Game.checkScore() && (Global.getTeamProperty(1, "AI"))) && (Global.Game.Winner == 2)) {
_root.gotoAndStop("SubmitScore");
} else {
_root.gotoAndStop("Menu");
}
}
Symbol 187 MovieClip Frame 24
stop();
Symbol 188 MovieClip Frame 1
stop();
Symbol 188 MovieClip Frame 2
Global.Game.Ball.centerBall(false);
stop();
Symbol 191 MovieClip Frame 1
var NameOfWinner = Global.getTeamProperty(Global.Game.Winner, "Name");
Symbol 192 Button
on (release) {
if ((Global.Game.checkScore() && (Global.getTeamProperty(1, "AI"))) && (Global.getTeamProperty(2, "Score") != Global.getTeamProperty(1, "Score"))) {
_root.gotoAndStop("SubmitScore");
} else {
_root.gotoAndStop("Menu");
}
}
Instance of Symbol 42 MovieClip in Symbol 194 MovieClip Frame 1
onClipEvent (load) {
this.ball._visible = false;
}
Symbol 194 MovieClip Frame 27
Symbol 194 MovieClip Frame 35
stop();
Symbol 195 MovieClip Frame 1
stop();
Symbol 195 MovieClip Frame 2
Global.Game.Ball.centerBall(false);
stop();
Symbol 200 MovieClip Frame 2
Global.Game.firstFrame();
Global.Game.Ball.centerBall(false);
Global.Audio.playSoundFX("Pipe", 100);
Symbol 200 MovieClip Frame 82
stop();
_visible = false;
Global.Game.startGame();
Symbol 205 Button
on (release) {
_root.gotoAndStop("Menu");
}
Instance of Symbol 55 MovieClip [mcScoreBoard2] "Score2" in Symbol 210 MovieClip Frame 1
onClipEvent (load) {
Team = 2;
Enemy = 1;
}
Instance of Symbol 58 MovieClip [ScoreBoard] "Score1" in Symbol 210 MovieClip Frame 1
onClipEvent (load) {
Team = 1;
Enemy = 2;
}
Symbol 211 MovieClip [Game_Global_Game] Frame 1
#initclip 46
Object.registerClass("Game_Global_Game", game.global.Game);
#endinitclip
Instance of Symbol 62 MovieClip [Team2_Goal] "Goal2" in Symbol 211 MovieClip [Game_Global_Game] Frame 1
onClipEvent (load) {
Direction = "left";
Team = 2;
}
Instance of Symbol 63 MovieClip [Team1_Goal] "Goal1" in Symbol 211 MovieClip [Game_Global_Game] Frame 1
onClipEvent (load) {
Direction = "right";
Team = 1;
}
Instance of Symbol 84 MovieClip [Game_Items_Ball] "Ball" in Symbol 211 MovieClip [Game_Global_Game] Frame 1
/* no clip actions */
Instance of Symbol 98 MovieClip [Team1] "Team1" in Symbol 211 MovieClip [Game_Global_Game] Frame 1
onClipEvent (load) {
KeyDown = 83;
KeyUp = 87;
Direction = "right";
startAI = Global.getTeamProperty(1, "AI");
BodyColor = parseInt(Global.getTeamProperty(1, "Color").BodyColor, 16);
ShoulderColor = parseInt(Global.getTeamProperty(1, "Color").ShoulderColor, 16);
GBodyColor = parseInt(Global.getTeamProperty(1, "Color").GBodyColor, 16);
GShoulderColor = parseInt(Global.getTeamProperty(1, "Color").GShoulderColor, 16);
}
Instance of Symbol 106 MovieClip [Team2] "Team2" in Symbol 211 MovieClip [Game_Global_Game] Frame 1
onClipEvent (load) {
KeyDown = 40;
KeyUp = 38;
Direction = "left";
startAI = Global.getTeamProperty(2, "AI");
BodyColor = parseInt(Global.getTeamProperty(2, "Color").BodyColor, 16);
ShoulderColor = parseInt(Global.getTeamProperty(2, "Color").ShoulderColor, 16);
GBodyColor = parseInt(Global.getTeamProperty(2, "Color").GBodyColor, 16);
GShoulderColor = parseInt(Global.getTeamProperty(2, "Color").GShoulderColor, 16);
}
Symbol 214 MovieClip [Counter] Frame 1
#initclip 47
Object.registerClass("Counter", main.Counter);
#endinitclip
Symbol 218 MovieClip [TotalHighScore] Frame 1
#initclip 48
Object.registerClass("TotalHighScore", highscore.ScoresTotal);
#endinitclip
Symbol 222 MovieClip [DailyHighScore] Frame 1
#initclip 49
Object.registerClass("DailyHighScore", highscore.ScoresDaily);
#endinitclip
Symbol 225 Button
on (release) {
submitEmail();
}
Symbol 232 Button
on (release) {
doSendMail();
}
Symbol 235 MovieClip [mcTellAFriend] Frame 1
#initclip 50
Object.registerClass("mcTellAFriend", main.SendMail);
#endinitclip
stop();
setupTellFriend();
Symbol 246 Button
on (release) {
getURL ("http://www.webgekko.de", _blank);
}
Symbol 250 Button
on (release) {
Global.Menu.swichScoreHelp();
}
Symbol 275 MovieClip Frame 1
stop();
Symbol 277 Button
on (release) {
if (Global.Audio.swichMusic()) {
this.arrow.gotoAndStop("on");
} else {
this.arrow.gotoAndStop("off");
}
}
Symbol 282 MovieClip Frame 1
stop();
Symbol 284 Button
on (release) {
if (Global.Audio.swichSoundFX()) {
this.arrow2.gotoAndStop("on");
} else {
this.arrow2.gotoAndStop("off");
}
}
Symbol 289 Button
on (release) {
callLinkMP();
}
Symbol 294 Button
on (release) {
callLinkSP();
}
Symbol 297 MovieClip Frame 1
stop();
Instance of Symbol 304 MovieClip "gameTitle" in Symbol 315 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_parent.table);
}
Instance of Symbol 314 MovieClip in Symbol 315 MovieClip Frame 1
onClipEvent (load) {
function showButtons() {
_parent.stars._visible = false;
_parent.tableIcon._visible = false;
_parent.gameTitle._visible = false;
_parent.player1._x = 56;
_parent.player1._y = -1;
_parent.player2._x = 162;
_parent.player2._y = -1;
_parent.player1._visible = true;
_parent.player2._visible = true;
}
function hideButtons() {
_parent.stars._visible = true;
_parent.tableIcon._visible = true;
_parent.gameTitle._visible = true;
_parent.player1._visible = false;
_parent.player2._visible = false;
}
this.gotoAndStop(_parent.table);
this.onRollOver = function () {
_parent.tableIcon.gotoAndStop(2);
};
this.onRollOut = function () {
_parent.tableIcon.gotoAndStop(1);
};
this.onRelease = function () {
trace("hhhhhhhh");
showButtons();
};
trace(_xmouse);
trace(this._x + this._width);
if (_xmouse > (this._x + this._width)) {
hideButtons();
}
}
onClipEvent (enterFrame) {
if (((_xmouse > this._width) || (_ymouse < (this._y - 30))) || (_ymouse > ((this._y + this._height) - 30))) {
hideButtons();
}
}
Symbol 320 MovieClip [Menu] Frame 1
#initclip 51
Object.registerClass("Menu", main.Menu);
#endinitclip
Instance of Symbol 282 MovieClip "arrow2" in Symbol 320 MovieClip [Menu] Frame 1
/* no clip actions */
Instance of Symbol 315 MovieClip in Symbol 320 MovieClip [Menu] Frame 1
onClipEvent (load) {
function callLinkSP() {
_root.tablestyle = "ice";
Global.Menu.singlePlayer();
}
function callLinkMP() {
_root.tablestyle = "ice";
Global.Menu.multiPlayer();
}
table = "3";
stars.star32.gotoAndStop(2);
stars.star33.gotoAndStop(2);
}
Instance of Symbol 315 MovieClip in Symbol 320 MovieClip [Menu] Frame 1
onClipEvent (load) {
function callLinkSP() {
_root.tablestyle = "desert";
Global.Menu.singlePlayer();
}
function callLinkMP() {
_root.tablestyle = "desert";
Global.Menu.multiPlayer();
}
table = "2";
stars.star12.gotoAndStop(2);
stars.star13.gotoAndStop(2);
stars.star22.gotoAndStop(2);
stars.star23.gotoAndStop(2);
}
Instance of Symbol 315 MovieClip in Symbol 320 MovieClip [Menu] Frame 1
onClipEvent (load) {
function callLinkSP() {
_root.tablestyle = "gras";
Global.Menu.singlePlayer();
}
function callLinkMP() {
_root.tablestyle = "gras";
Global.Menu.multiPlayer();
}
table = "1";
stars.star13.gotoAndStop(2);
stars.star23.gotoAndStop(2);
stars.star33.gotoAndStop(2);
}
Instance of Symbol 317 MovieClip "Menu" in Symbol 320 MovieClip [Menu] Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 328 MovieClip [Box] Frame 1
#initclip 25
Object.registerClass("Box", Box);
#endinitclip
Symbol 329 MovieClip [TextfieldBox] Frame 1
#initclip 26
Object.registerClass("TextfieldBox", TextfieldBox);
#endinitclip
Symbol 333 MovieClip [Console] Frame 1
#initclip 27
Object.registerClass("Console", Console);
#endinitclip
stop();
Symbol 479 MovieClip [__Packages.Global] Frame 0
class Global
{
static var Audio, SessionID, Password, NKey;
function Global () {
}
static function initializeGame() {
Audio = new main.Audio();
}
static function url(__Name) {
var _local1 = Global["url" + __Name];
_local1 = replace(_local1, "<GAMEID>", GameID);
_local1 = replace(_local1, "<SESSIONID>", SessionID);
_local1 = replace(_local1, "<PASSWORD>", Password);
_local1 = replace(_local1, "<KEY>", NKey);
return((_local1 + "&cache=") + (Math.random() * Math.random()));
}
static function setTeamProperty(__Team, __AI, __Name, __Color) {
Team[__Team] = new Object();
Team[__Team].AI = __AI;
Team[__Team].Name = __Name;
Team[__Team].Color = __Color;
Team[__Team].Score = 0;
}
static function editTeamProperty(__Team, __Property, __Value) {
Team[__Team][__Property] = __Value;
}
static function getTeamProperty(__Team, __Property) {
return(Team[__Team][__Property]);
}
static function replace(string, seperator, insert) {
return(string.split(seperator).join(insert));
}
static var GameID = 23;
static var urlLoadInfo = "http://redcoondataport.webgekko.de/game/run/info.g<GAMEID>.xml";
static var urlGetScore = "http://redcoondataport.webgekko.de/game/run/score.g<GAMEID>~<PASSWORD>.xml";
static var urlSetScore = "http://redcoondataport.webgekko.de/game/run/<NAME>/<SCORE>/newscore.g<GAMEID>~<PASSWORD>,<KEY>.xml";
static var urlSetCounter = "http://redcoondataport.webgekko.de/home/setcounter.php";
static var urlGetCounter = "http://redcoondataport.webgekko.de/home/getcounter.php";
static var MinimumSpeed = 0;
static var MaximumSpeed = 0;
static var KickSpeed = 0;
static var AngelRandom = 0;
static var PowerKick = 0;
static var PowerKickMplyer = 0;
static var GroundTraction = 0;
static var AIRate = 10;
static var AIRandom = 30;
static var MoveSpeed = 0;
static var MusicVolume = 40;
static var BallVolume = 200;
static var GoalVolume = 100;
static var BandeVolume = 80;
static var Team2Name = "red team";
static var Team2ColorBodyColor = "B60303";
static var Team2ColorShoulderColor = "DA0303";
static var Team2ColorGBodyColor = "DA0303";
static var Team2ColorGShoulderColor = "B60303";
static var Team1PlayerNames = ["Jens Leem\u00E4n", "Sol Mampbell", "Carles Mayol", "Frank Mampard", "Monaldinho", "Fredrik Ljungbersch", "Bastian Kuhsteiger", "Mehmet Moll", "Madriano", "Andriy Madchenko", "Thierry Manry"];
static var Team2PlayerNames = ["Mida", "Roberto Marlos", "Liliam Mauram", "Tim Marowski", "Zinedin Ziehan", "David Meckmann", "Steven Marrard", "Mark van Mammel", "Ruud van Misteltreu", "Lukas Notorski", "Samuel Meto"];
static var Teams = [{select:false, name:"BLUE TEAM", bodycolor:"000099", shouldercolor:"0066CC", gk_bodycolor:"9900CC", gk_shouldercolor:"000099"}];
static var Team = new Object();
}
Symbol 480 MovieClip [__Packages.main.Audio] Frame 0
class main.Audio extends MovieClip
{
var MusicClip, Tabe1, Tabe2, Tabe3, Tabe4, Tabe5, Welcome, Background, sndSoundFX;
function Audio () {
super();
MusicClip = _root.createEmptyMovieClip("MusicClip", 101);
Tabe1 = MusicClip.createEmptyMovieClip("Tabe1", 0);
Tabe2 = MusicClip.createEmptyMovieClip("Tabe2", 1);
Tabe3 = MusicClip.createEmptyMovieClip("Tabe3", 2);
Tabe4 = MusicClip.createEmptyMovieClip("Tabe4", 3);
Tabe5 = MusicClip.createEmptyMovieClip("Tabe5", 4);
Welcome = new Sound(Tabe3);
Background = new Sound(Tabe5);
Welcome.setVolume(Volume);
Welcome.attachSound("MusicStartBeatHigh");
Background.attachSound("bgSound");
Welcome.start(0, 999);
}
function playSoundFX(__Sound, __Volume) {
if (SoundFX) {
SoundID++;
var _local2 = Tabe4.createEmptyMovieClip("Tabe" + SoundID, SoundID);
sndSoundFX = new Sound(_local2);
sndSoundFX.Container = _local2;
sndSoundFX.onSoundComplete = function () {
this.Container.unloadMovie();
};
sndSoundFX.attachSound(__Sound);
sndSoundFX.setVolume(__Volume);
sndSoundFX.start();
}
}
function swichMusic() {
if (Music) {
stopMusic();
} else {
startMusic();
}
return(Music);
}
function swichSoundFX() {
SoundFX = !SoundFX;
return(SoundFX);
}
function startMusic() {
Welcome.start(0, 999);
Music = true;
}
function startBackground() {
if (SoundFX) {
sndSoundFX.setVolume(80);
Background.start(0, 9999);
Background.setVolume(45);
}
}
function stopBackground() {
Background.stop();
}
function stopMusic() {
Music = false;
Welcome.stop();
}
function fadeInMusic() {
MusicClip.onEnterFrame = function () {
Global.Audio.fadeInMusicEnterFrame();
};
}
function fadeOutMusic() {
MusicClip.onEnterFrame = function () {
Global.Audio.fadeOutMusicEnterFrame();
};
}
function fadeInMusicEnterFrame() {
if (Welcome.getVolume() < Volume) {
Welcome.setVolume(Welcome.getVolume() + 1);
} else {
delete MusicClip.onEnterFrame;
}
}
function fadeOutMusicEnterFrame() {
if (Welcome.getVolume() > 0) {
Welcome.setVolume(Welcome.getVolume() - 1);
} else {
delete MusicClip.onEnterFrame;
}
}
var Volume = Global.MusicVolume;
static var Music = true;
static var SoundFX = true;
static var SoundID = 0;
}
Symbol 481 MovieClip [__Packages.MochiAd] Frame 0
class MochiAd
{
function MochiAd () {
}
static function getVersion() {
return("2.5");
}
static function showPreGameAd(options) {
var _local26 = {clip:_root, ad_timeout:3000, fadeout_time:400, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:16750848, no_progress_bar:false, ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.gotoAndPlay(2);
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}, ad_skipped:function () {
}, ad_progress:function (percent) {
}};
options = _parseOptions(options, _local26);
if ("c862232051e0a94e1c3609b3916ddb17".substr(0) == "dfeada81ac97cde83665f81c12da7def") {
options.ad_started();
options.ad_finished();
return(undefined);
}
var clip = options.clip;
var _local22 = 11000;
var _local25 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local14 = _getRes(options);
var _local4 = _local14[0];
var _local13 = _local14[1];
mc._x = _local4 * 0.5;
mc._y = _local13 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local4 * -0.5;
chk._y = _local13 * -0.5;
var _local6 = chk.createEmptyMovieClip("_mochiad_bar", 4);
if (options.no_progress_bar) {
_local6._visible = false;
delete options.no_progress_bar;
} else {
_local6._x = 10;
_local6._y = _local13 - 20;
}
var _local21 = options.color;
delete options.color;
var _local19 = options.background;
delete options.background;
var _local23 = options.outline;
delete options.outline;
var _local5 = _local6.createEmptyMovieClip("_outline", 1);
_local5.beginFill(_local19);
_local5.moveTo(0, 0);
_local5.lineTo(_local4 - 20, 0);
_local5.lineTo(_local4 - 20, 10);
_local5.lineTo(0, 10);
_local5.lineTo(0, 0);
_local5.endFill();
var _local3 = _local6.createEmptyMovieClip("_inside", 2);
_local3.beginFill(_local21);
_local3.moveTo(0, 0);
_local3.lineTo(_local4 - 20, 0);
_local3.lineTo(_local4 - 20, 10);
_local3.lineTo(0, 10);
_local3.lineTo(0, 0);
_local3.endFill();
_local3._xscale = 0;
var _local7 = _local6.createEmptyMovieClip("_outline", 3);
_local7.lineStyle(0, _local23, 100);
_local7.moveTo(0, 0);
_local7.lineTo(_local4 - 20, 0);
_local7.lineTo(_local4 - 20, 10);
_local7.lineTo(0, 10);
_local7.lineTo(0, 0);
chk.ad_msec = _local22;
chk.ad_timeout = _local25;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.regContLC = function (lc_name) {
mc._containerLCName = lc_name;
};
var sendHostProgress = false;
mc.lc.sendHostLoadProgress = function (lc_name) {
sendHostProgress = true;
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec;
};
mc.lc.rpc = function (callbackID, arg) {
MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
chk.onEnterFrame = function () {
var _local6 = this._parent._parent;
var _local11 = this._parent._mochiad_ctr;
var _local5 = getTimer() - this.started;
var _local3 = false;
var _local4 = _local6.getBytesTotal();
var _local8 = _local6.getBytesLoaded();
var _local2 = (100 * _local8) / _local4;
var _local10 = (100 * _local5) / chk.ad_msec;
var _local9 = this._mochiad_bar._inside;
var _local13 = Math.min(100, Math.min(_local2 || 0, _local10));
_local13 = Math.max(this.last_pcnt, _local13);
this.last_pcnt = _local13;
_local9._xscale = _local13;
options.ad_progress(_local13);
if (sendHostProgress) {
clip._mochiad.lc.send(clip._mochiad._containerLCName, "notify", {id:"hostLoadPcnt", pcnt:_local2});
if (_local2 == 100) {
sendHostProgress = false;
}
}
if (!chk.showing) {
var _local7 = _local11.getBytesTotal();
if ((_local7 > 0) || (typeof(_local7) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if ((_local5 > chk.ad_timeout) && (_local2 == 100)) {
options.ad_failed();
_local3 = true;
}
}
if (_local5 > chk.ad_msec) {
_local3 = true;
}
if (((_local4 > 0) && (_local8 >= _local4)) && (_local3)) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
}
}
};
}
static function showClickAwayAd(options) {
var _local9 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showClickAwayAd", res:"300x250", no_bg:true, ad_started:function () {
}, ad_finished:function () {
}, ad_loaded:function (width, height) {
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_skipped:function () {
}};
options = _parseOptions(options, _local9);
var clip = options.clip;
var _local8 = options.ad_timeout;
delete options.ad_timeout;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local4 = _getRes(options);
var _local10 = _local4[0];
var _local7 = _local4[1];
mc._x = _local10 * 0.5;
mc._y = _local7 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_timeout = _local8;
chk.started = getTimer();
chk.showing = false;
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.rpc = function (callbackID, arg) {
MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
var _local20 = false;
mc.lc.regContLC = function (lc_name) {
mc._containerLCName = lc_name;
};
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
_local2 = true;
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
options.ad_failed();
_local2 = true;
}
}
if (_local2) {
delete this.onEnterFrame;
}
};
}
static function showInterLevelAd(options) {
var _local13 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}, ad_skipped:function () {
}};
options = _parseOptions(options, _local13);
var clip = options.clip;
var _local10 = 11000;
var _local12 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local5 = _getRes(options);
var _local14 = _local5[0];
var _local11 = _local5[1];
mc._x = _local14 * 0.5;
mc._y = _local11 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = _local10;
chk.ad_timeout = _local12;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec - 250;
};
mc.lc.rpc = function (callbackID, arg) {
MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
options.ad_failed();
_local2 = true;
}
}
if (_local4 > chk.ad_msec) {
_local2 = true;
}
if (_local2) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = this.fadeFunction;
}
}
};
}
static function showPreloaderAd(options) {
trace("[MochiAd] DEPRECATED: showPreloaderAd was renamed to showPreGameAd in 2.0");
showPreGameAd(options);
}
static function showTimedAd(options) {
trace("[MochiAd] DEPRECATED: showTimedAd was renamed to showInterLevelAd in 2.0");
showInterLevelAd(options);
}
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 load(options) {
var _local13 = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = _parseOptions(options, _local13);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local9 = options.clip;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local9._mochiad_loaded) {
return(null);
}
var _local12 = options.depth;
delete options.depth;
var _local6 = _local9.createEmptyMovieClip("_mochiad", _local12);
var _local11 = _getRes(options);
options.res = (_local11[0] + "x") + _local11[1];
options.server = options.server + options.id;
delete options.id;
_local9._mochiad_loaded = true;
var _local4 = _local6.createEmptyMovieClip("_mochiad_ctr", 1);
for (var _local7 in options) {
_local4[_local7] = options[_local7];
}
var _local10 = _local4.server;
delete _local4.server;
var _local14 = _allowDomains(_local10);
_local6.onEnterFrame = function () {
if (this._mochiad_ctr._url != this._url) {
this.onEnterFrame = function () {
if (!this._mochiad_ctr) {
delete this.onEnterFrame;
MochiAd.unload(this._parent);
}
};
}
};
var _local5 = new LocalConnection();
var _local8 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local5.mc = _local6;
_local5.name = _local8;
_local5.hostname = _local14;
_local5.allowDomain = function (d) {
return(true);
};
_local5.allowInsecureDomain = _local5.allowDomain;
_local5.connect(_local8);
_local6.lc = _local5;
_local4.lc = _local8;
_local4.st = getTimer();
_local4.loadMovie(_local10 + ".swf", "POST");
return(_local6);
}
static function unload(clip) {
if (typeof(clip) == "undefined") {
clip = _root;
}
if (clip.clip && (clip.clip._mochiad)) {
clip = clip.clip;
}
if (!clip._mochiad) {
return(false);
}
if (clip._mochiad._containerLCName != undefined) {
clip._mochiad.lc.send(clip._mochiad._containerLCName, "notify", {id:"unload"});
}
clip._mochiad.removeMovieClip();
delete clip._mochiad_loaded;
delete clip._mochiad;
return(true);
}
static function _isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function _getRes(options) {
var _local3 = options.clip.getBounds();
var _local2 = 0;
var _local1 = 0;
if (typeof(options.res) != "undefined") {
var _local4 = options.res.split("x");
_local2 = parseFloat(_local4[0]);
_local1 = parseFloat(_local4[1]);
} else {
_local2 = _local3.xMax - _local3.xMin;
_local1 = _local3.yMax - _local3.yMin;
}
if ((_local2 == 0) || (_local1 == 0)) {
_local2 = Stage.width;
_local1 = Stage.height;
}
return([_local2, _local1]);
}
static function _parseOptions(options, defaults) {
var _local4 = {};
for (var _local8 in defaults) {
_local4[_local8] = defaults[_local8];
}
if (options) {
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
}
if (_root.mochiad_options) {
var _local5 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local5.length) {
var _local3 = _local5[_local2].split("=");
_local4[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
if (_local4.id == "test") {
trace("[MochiAd] WARNING: Using the MochiAds test identifier, make sure to use the code from your dashboard, not this example!");
}
return(_local4);
}
static function rpc(clip, callbackID, arg) {
switch (arg.id) {
case "setValue" :
setValue(clip, arg.objectName, arg.value);
break;
case "getValue" :
var _local4 = getValue(clip, arg.objectName);
clip._mochiad.lc.send(clip._mochiad._containerLCName, "rpcResult", callbackID, _local4);
break;
case "runMethod" :
var _local3 = runMethod(clip, arg.method, arg.args);
clip._mochiad.lc.send(clip._mochiad._containerLCName, "rpcResult", callbackID, _local3);
break;
default :
trace("[mochiads rpc] unknown rpc id: " + arg.id);
}
}
static function setValue(base, objectName, value) {
var _local2 = objectName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
base[_local2[_local1]] = value;
}
static function getValue(base, objectName) {
var _local2 = objectName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
return(base[_local2[_local1]]);
}
static function runMethod(base, methodName, argsArray) {
var _local2 = methodName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
if (typeof(base[_local2[_local1]]) == "function") {
return(base[_local2[_local1]].apply(base, argsArray));
}
return(undefined);
}
}
Symbol 482 MovieClip [__Packages.game.global.Score] Frame 0
class game.global.Score extends MovieClip
{
var txtScore10, txtScore1, txtScore;
function Score () {
super();
setupEvents();
CurrentScore = 0;
}
function addScore() {
if (!Global.Game.GameOver) {
CurrentScore++;
Global.editTeamProperty(Team, "Score", CurrentScore);
setScore();
}
}
function setScore(Void) {
var _local3 = CurrentScore.toString();
_local3 = Global.Game.convertNumber(_local3);
txtScore10.text = _local3.slice(0, 1);
txtScore1.text = _local3.slice(1);
txtScore.text = _local3.slice(0, 5);
_root.actionScore = _local3.slice(0, 5);
}
function setupEvents() {
var _local2 = new Object();
_local2.Parent = this;
_local2.onGoal = function (e) {
if (e.team == this.Parent.Enemy) {
this.Parent.addScore();
}
};
_local2.onGameOver = function (e) {
if (e.loser == this.Parent.Team) {
Global.Game.setScore(this.Parent.CurrentScore);
}
};
Global.Game.addEventListener("onGoal", _local2);
Global.Game.addEventListener("onGameOver", _local2);
}
var CurrentScore = 0;
var Team = 0;
var Enemy = 0;
}
Symbol 483 MovieClip [__Packages.game.field.Goal] Frame 0
class game.field.Goal extends MovieClip
{
var Self, _parent, BallOut, _height, _width;
function Goal () {
super();
Self = this;
var _local3 = new Object();
_local3.Goal = Self;
_local3.onGameLoad = function () {
this.Goal.setupGoal();
};
Global.Game.addEventListener("onGameLoad", _local3);
}
function get X() {
var _local2 = new Object();
_local2 = {x:Self._x, y:Self._y};
_parent.localToGlobal(_local2);
return(_local2.x);
}
function get Y() {
var _local2 = new Object();
_local2 = {x:Self._x, y:Self._y};
_parent.localToGlobal(_local2);
return(_local2.y);
}
function setupGoal() {
var _local3 = new Object();
var _local2 = new Object();
_local3.y = Self.top._y;
_local3.x = Self.top._x;
_local2.y = Self.bottom._y;
_local2.x = Self.bottom._x;
Self.localToGlobal(_local3);
Self.localToGlobal(_local2);
TopBorder = _local3.y;
BottomBorder = _local2.y;
var _local4 = new Object();
_local4.Goal = Self;
_local4.onRestart = function () {
this.Goal.CheckBall = false;
};
Global.Game.addEventListener("onRestart", _local4);
}
function onEnterFrame() {
check4Ball();
ballPin();
}
function ballPin(Void) {
if (CheckBall) {
if (BallAtTop) {
while (BallAtTop) {
Global.Game.Ball._y++;
}
Global.Game.Ball.setAngelAt("top", (Global.Game.Ball.getAngelAt("top") * -1) + 180);
}
if (BallAtBottom) {
while (BallAtBottom) {
Global.Game.Ball._y--;
}
Global.Game.Ball.setAngelAt("bottom", (Global.Game.Ball.getAngelAt("bottom") * -1) + 180);
}
if (BallAtLeft) {
while (BallAtLeft) {
Global.Game.Ball._x++;
}
Global.Game.Ball.setAngelAt("left", (Global.Game.Ball.getAngelAt("left") * -1) + 180);
}
if (BallAtRight) {
while (BallAtRight) {
Global.Game.Ball._x--;
}
Global.Game.Ball.setAngelAt("right", (Global.Game.Ball.getAngelAt("right") * -1) + 180);
}
}
}
function check4Ball() {
if ((BallInGoal && (!Global.Game.GameOver)) && (!CheckBall)) {
if (!BallOut) {
Global.Game.goalMade(Team);
CheckBall = true;
} else if (Global.Game.Ball.Bottom >= TopBorder) {
Global.Game.Ball.setAngelAt("bottom", (Global.Game.Ball.getAngelAt("bottom") * -1) + 180);
} else {
Global.Game.Ball.setAngelAt("top", (Global.Game.Ball.getAngelAt("top") * -1) + 180);
}
}
if (BallOutOfGoal) {
BallOut = true;
} else {
BallOut = false;
}
}
function get BallInGoal() {
var _local2 = ((Direction == "left") && (Global.Game.Ball.X >= Self.X)) || ((Direction == "right") && (Global.Game.Ball.X <= (Self.X + Self._width)));
var _local3 = (Global.Game.Ball.Y >= TopBorder) && (Global.Game.Ball.Y <= BottomBorder);
if (_local2 && (_local3)) {
return(true);
}
return(false);
}
function get BallOutOfGoal() {
var _local2 = ((Direction == "right") && (Global.Game.Ball.X <= (Self.X + Self._width))) || ((Direction == "left") && (Global.Game.Ball.X >= Self.X));
var _local3 = (Global.Game.Ball.Y >= TopBorder) && (Global.Game.Ball.Y <= BottomBorder);
if (_local2 && (!_local3)) {
return(true);
}
return(false);
}
function get BallAtTop() {
return(Global.Game.Ball.Top <= Y);
}
function get BallAtBottom() {
return(Global.Game.Ball.Bottom >= (Y + _height));
}
function get BallAtLeft() {
return(Global.Game.Ball.Left <= X);
}
function get BallAtRight() {
return(Global.Game.Ball.Right >= (X + _width));
}
var Team = 0;
var Direction = "left";
var TopBorder = 0;
var BottomBorder = 500;
var GoalBorder = 10;
var CheckBall = false;
}
Symbol 484 MovieClip [__Packages.game.items.Ball] Frame 0
class game.items.Ball extends MovieClip
{
var _x, _y, _parent, _height, _visible, Ball, _rotation;
function Ball () {
super();
runEngine = false;
Global.Game.Ball = this;
var _local3 = new Object();
_local3.__caller__ = this;
_local3.onBreak = function (__Game) {
this.__caller__.doBreak(__Game.startBreak);
};
Global.Game.addEventListener("onBreak", _local3);
}
function setMoveSpeed() {
MoveSpeed = 50;
trace("ssss");
}
function get X() {
var _local2 = new Object();
_local2.x = _x;
_local2.y = _y;
_parent.localToGlobal(_local2);
return(_local2.x);
}
function get Y() {
var _local2 = new Object();
_local2.x = _x;
_local2.y = _y;
_parent.localToGlobal(_local2);
return(_local2.y);
}
function get _SpeedX() {
return(SpeedX);
}
function get _SpeedY() {
return(SpeedY);
}
function get Top() {
return(Y - (_height / 2));
}
function get Bottom() {
return(Y + (_height / 2));
}
function get Left() {
return(X - (_height / 2));
}
function get Right() {
return(X + (_height / 2));
}
function calcSpeed() {
SpeedX = Speed * Math.cos((Math.PI/180) * (-Angel));
SpeedY = Speed * Math.sin((Math.PI/180) * (-Angel));
}
function doBreak(__Start) {
runEngine = !__Start;
_visible = !__Start;
}
function play(Void) {
Ball.play();
}
function stop(Void) {
Ball.stop();
}
function moveBall() {
Global.Game.Field.checkBall();
_x = Math.round(_x + SpeedX);
_y = Math.round(_y + SpeedY);
}
function moveBack() {
_x = _x - SpeedX;
_y = _y - SpeedY;
}
function physicEngine() {
moveBall();
if ((Speed > MinimumSpeed) && (Global.Game.Field.Check4Ball)) {
Speed = Speed * GroundTraction;
calcSpeed();
} else if (!Global.Game.Field.Check4Ball) {
Speed = Speed * 0.9;
calcSpeed();
}
if (Speed <= 0.5) {
Ball.stop();
}
}
function kickBall(__Angel, __Direction) {
if ((Speed + KickSpeed) < MaximumSpeed) {
if (Speed > PowerKick) {
Speed = Speed + KickSpeed;
} else {
Speed = Speed + (PowerKickMplyer * KickSpeed);
}
} else {
Speed = MaximumSpeed;
}
__Angel = __Angel + ((Math.random() * AngelRandom) - (AngelRandom / 2));
setAngelAt(__Direction, __Angel);
}
function onEnterFrame() {
if (runEngine && (!Global.Game.GameOver)) {
physicEngine();
}
}
function centerBall(__Visible) {
_visible = __Visible;
Speed = MinimumSpeed;
_x = Global.Game.Field._x + (Global.Game.Field._width / 2);
_y = Global.Game.Field._y + (Global.Game.Field._height / 2);
if (Math.random() < 0.5) {
setAngelAt("left", (Math.random() * 100) - 50);
} else {
setAngelAt("right", (Math.random() * 100) - 50);
}
}
function getAngel() {
return(Angel);
}
function getAngelAt(__AT) {
if (__AT === "right") {
return(Angel);
}
if (__AT === "top") {
return(90 - Angel);
}
if (__AT === "left") {
return(180 - Angel);
}
if (__AT === "bottom") {
return(270 - Angel);
}
}
function setAngelAt(__AT, __Value) {
if (__AT === "right") {
Angel = __Value;
} else if (__AT === "top") {
Angel = 90 - __Value;
} else if (__AT === "left") {
Angel = 180 - __Value;
} else if (__AT === "bottom") {
Angel = 270 - __Value;
}
calcSpeed();
_rotation = (Angel * -1) - 90;
}
function setEngineGras() {
_root.MoveSpeed = 9;
MinimumSpeed = 3;
MaximumSpeed = 15;
KickSpeed = 3.5;
AngelRandom = 10;
PowerKick = 15;
PowerKickMplyer = 3;
GroundTraction = 0.988;
}
function setEngineDesert() {
_root.MoveSpeed = 7;
MinimumSpeed = 2.8;
MaximumSpeed = 35;
KickSpeed = 35;
AngelRandom = 15;
PowerKick = 40;
PowerKickMplyer = 2;
GroundTraction = 0.9;
}
function setEngineIce() {
_root.MoveSpeed = 12;
MinimumSpeed = 5;
MaximumSpeed = 24;
KickSpeed = 1.5;
AngelRandom = 15;
PowerKick = 10;
PowerKickMplyer = 3;
GroundTraction = 0.99;
}
var Angel = 0;
var Speed = 0;
var SpeedX = 0;
var SpeedY = 0;
var runEngine = false;
var LastPlayerTouched = "";
static var MinimumSpeed = 0;
static var MaximumSpeed = 0;
static var KickSpeed = 0;
static var AngelRandom = 0;
static var GroundTraction = 0;
static var PowerKick = 0;
static var PowerKickMplyer = 0;
var MoveSpeed = 50;
}
Symbol 485 MovieClip [__Packages.game.items.Player] Frame 0
class game.items.Player extends MovieClip
{
var Self, _parent, _name, AreaInterval, AngelInterval, PlayerName;
function Player () {
super();
Self = this;
Self._visible = false;
setEvents();
}
function setEvents() {
var _local2 = new Object();
_local2.Parent = Self;
_local2.onGameLoad = function (e) {
this.Parent.setupPlayer();
};
_local2.onTouch = function (e) {
this.Parent.onTouchTeam();
};
Global.Game.addEventListener("onGameLoad", _local2);
Global.Game.addEventListener("onTouch", _local2);
}
function setupPlayer() {
_parent.setupRow();
_parent.addChild(Self);
Self._visible = true;
Direction = _parent.Direction;
if (_name != "GoalKeeper") {
var _local2 = new Color(Self.body);
_local2.setRGB(_parent.BodyColor);
var _local3 = new Color(Self.shoulder);
_local3.setRGB(_parent.ShoulderColor);
} else {
var _local2 = new Color(Self.body);
_local2.setRGB(_parent.GBodyColor);
var _local3 = new Color(Self.shoulder);
_local3.setRGB(_parent.GShoulderColor);
}
AreaInterval = Self._height / ShootingAngels;
AngelInterval = FullAngels / ShootingAngels;
}
function startGlow(__MC) {
_root[__MC]._x = X;
_root[__MC]._y = Y;
}
function get SoundID() {
return(KickSounds[Math.abs(Math.round((Math.random() * KickSounds.length) - 1))]);
}
function onTouchTeam() {
if (TouchBall) {
Global.Audio.playSoundFX(SoundID, Global.BallVolume);
Global.Game.Ball.kickBall(getShootingAngel(), Direction);
Global.Game.Ball.LastPlayerTouched = PlayerName;
trace((Global.Game.Ball.LastPlayerTouched + " = ") + PlayerName);
}
}
function get X() {
var _local2 = new Object();
_local2 = {x:Self._x, y:Self._y};
_parent.localToGlobal(_local2);
return(_local2.x);
}
function get Y() {
var _local2 = new Object();
_local2 = {x:Self._x, y:Self._y};
_parent.localToGlobal(_local2);
return(_local2.y);
}
function get TouchBall() {
return(Self.hitTest(Global.Game.Ball.X, Global.Game.Ball.Y, false));
}
function getShootingAngel() {
var _local3 = FullAngels / 2;
var _local2 = 0;
while (ShootingAngels > _local2) {
if (Global.Game.Ball.Y > (Y + (AreaInterval * _local2))) {
_local3 = _local3 - AngelInterval;
} else {
break;
}
_local2++;
}
return(_local3);
}
static var KickSounds = ["kick0", "kick1", "kick2", "kick3", "kick4"];
var Direction = "right";
static var ShootingAngels = 8;
static var FullAngels = 120;
}
Symbol 486 MovieClip [__Packages.game.items.Playerrow] Frame 0
class game.items.Playerrow extends MovieClip
{
var Self, Direction, _parent;
function Playerrow () {
super();
Self = this;
Children = new Array();
}
function getNextPlayer(__Y, __Border) {
var _local2 = 0;
while (Children.length > _local2) {
if ((Children[_local2].Y + Children[_local2]._height) > __Y) {
if (((Children[_local2].Y + Children[_local2]._height) - __Border) < __Y) {
if (((Children[_local2].Y + Children[_local2]._height) > __Y) && ((Children[_local2].Y + (Children[_local2]._height / 3)) < __Y)) {
return(0);
}
return(1);
}
}
_local2++;
}
return(-1);
}
function setupRow() {
Direction = _parent.Direction;
BodyColor = _parent.BodyColor;
ShoulderColor = _parent.ShoulderColor;
GBodyColor = _parent.GBodyColor;
GShoulderColor = _parent.GShoulderColor;
_parent.addChild(Self);
}
function addChild(__Child) {
Children.push(__Child);
Children = unique(Children);
Children.sort();
}
function unique(__Array) {
var _local3 = 0;
while (_local3 < __Array.length) {
var _local4 = __Array[_local3];
var _local1 = _local3 + 1;
while (_local1 < __Array.length) {
while (_local4 == __Array[_local1]) {
__Array.splice(_local1, 1);
}
_local1++;
}
_local3++;
}
return(__Array);
}
function get X() {
var _local2 = new Object();
_local2 = {x:Self._x, y:Self._y};
_parent.localToGlobal(_local2);
return(_local2.x);
}
function get Y() {
var _local2 = new Object();
_local2 = {x:Self._x, y:Self._y};
_parent.localToGlobal(_local2);
return(_local2.y);
}
var Children = new Array();
var BodyColor = 0;
var ShoulderColor = 0;
var GBodyColor = 0;
var GShoulderColor = 0;
}
Symbol 487 MovieClip [__Packages.game.global.Team] Frame 0
class game.global.Team extends MovieClip
{
var _y, _visible, _x, _parent, top, bottom, localToGlobal, hitTest;
function Team () {
super();
Children = new Array();
StartY = _y;
var _local3 = new Object();
_local3.__caller__ = this;
_local3.onGameLoad = function () {
this.__caller__.setupTeam();
};
_local3.onGoal = function () {
this.__caller__.resetPosition();
};
Global.Game.addEventListener("onGameLoad", _local3);
Global.Game.addEventListener("onGoal", _local3);
}
function resetPosition(Void) {
var _local2 = _y - StartY;
_y = _y - _local2;
TopBorder = TopBorder - _local2;
BottomBorder = BottomBorder - _local2;
}
function doBreak(__Start) {
LockMovement = __Start;
_visible = !__Start;
}
function getNextRowAtLeft(__X) {
var _local3 = Children[0];
for (var _local4 in Children) {
if (((__X - Children[_local4].X) < (__X - _local3.X)) && ((__X - Children[_local4].X) > 0)) {
_local3 = Children[_local4];
}
}
return(_local3);
}
function getNextRowAtRight(__X) {
var _local3 = Children[Children.length - 1];
for (var _local4 in Children) {
if (((Children[_local4].X - __X) < (_local3.X - __X)) && ((Children[_local4].X - __X) > 0)) {
_local3 = Children[_local4];
}
}
return(_local3);
}
function addChild(__Child) {
Children.push(__Child);
Children = unique(Children);
Children.sort();
}
function get X() {
var _local2 = new Object();
_local2 = {x:_x, y:_y};
_parent.localToGlobal(_local2);
return(_local2.x);
}
function get Y() {
var _local2 = new Object();
_local2 = {x:_x, y:_y};
_parent.localToGlobal(_local2);
return(_local2.y);
}
function setupTeam() {
var _local4 = new Object();
var _local3 = new Object();
_local4.y = top._y;
_local4.x = top._x;
_local3.y = bottom._y;
_local3.x = bottom._x;
localToGlobal(_local4);
localToGlobal(_local3);
TopBorder = _local4.y - Global.Game.Field.Y;
BottomBorder = _local3.y - Global.Game.Field.Y;
var _local2 = new Object();
_local2.__caller__ = this;
_local2.onBreak = function (__Game) {
this.__caller__.doBreak(__Game.startBreak);
};
_local2.onRestart = function () {
this.__caller__.resetPosition();
};
Global.Game.addEventListener("onBreak", _local2);
Global.Game.addEventListener("onRestart", _local2);
}
function onEnterFrame() {
MoveSpeed = _root.MoveSpeed;
triggerInput();
if (hitTest(Global.Game.Ball.X, Global.Game.Ball.Y, true)) {
Global.Game.touchBall();
}
}
function moveDown() {
if (((BottomBorder < Global.Game.Field._height) && (!LockMovement)) && (!Global.Game.GameOver)) {
_y = _y + MoveSpeed;
TopBorder = TopBorder + MoveSpeed;
BottomBorder = BottomBorder + MoveSpeed;
}
}
function moveUp() {
if (((TopBorder > 0) && (!LockMovement)) && (!Global.Game.GameOver)) {
_y = _y - MoveSpeed;
TopBorder = TopBorder - MoveSpeed;
BottomBorder = BottomBorder - MoveSpeed;
}
}
function triggerInput() {
if (Key.isDown(KeyUp)) {
moveUp();
} else if (Key.isDown(KeyDown)) {
moveDown();
}
}
function unique(__Array) {
var _local3 = 0;
while (_local3 < __Array.length) {
var _local4 = __Array[_local3];
var _local1 = _local3 + 1;
while (_local1 < __Array.length) {
while (_local4 == __Array[_local1]) {
__Array.splice(_local1, 1);
}
_local1++;
}
_local3++;
}
return(__Array);
}
var Direction = "left";
var Children = new Array();
var MoveSpeed = 0;
var LockMovement = false;
var StartY = 0;
var KeyUp = 0;
var KeyDown = 0;
var TopBorder = 0;
var BottomBorder = 500;
var BodyColor = 0;
var ShoulderColor = 0;
var GBodyColor = 0;
var GShoulderColor = 0;
}
Symbol 488 MovieClip [__Packages.game.global.AI] Frame 0
class game.global.AI extends game.global.Team
{
var hitTest, moveUp, moveDown, getNextRowAtLeft, getNextRowAtRight, TopBorder;
function AI () {
super();
}
function onEnterFrame() {
if (startAI && (!Global.Game.GameOver)) {
if (hitTest(Global.Game.Ball.X, Global.Game.Ball.Y, true)) {
Global.Game.touchBall();
}
runAI();
Rate++;
if (Rate >= AIRate) {
refreshAI(Global.Game.Ball.X, Global.Game.Ball.Y);
Rate = 0;
}
} else {
super.onEnterFrame();
}
}
function getBallDirection() {
var _local2 = new Object();
var _local1 = Global.Game.Ball.getAngel();
while (_local1 < 0) {
_local1 = _local1 + 360;
}
while (_local1 > 360) {
_local1 = _local1 - 360;
}
if (_local1 < 180) {
_local2.y = "top";
} else {
_local2.y = "bottom";
}
if ((_local1 < 90) || (_local1 > 270)) {
_local2.x = "right";
} else {
_local2.x = "left";
}
return(_local2);
}
function runAI() {
if (MoveTo > 0) {
moveUp();
} else if (MoveTo == 0) {
} else {
moveDown();
}
}
function refreshAI(__X, __Y) {
var _local2;
var _local6;
var _local5 = getBallDirection();
var _local3 = 0;
if (_local5.x == "left") {
_local2 = getNextRowAtLeft(__X);
} else {
_local2 = getNextRowAtRight(__X);
}
_local3 = ((__Y - ((__X - _local2.X) / (Global.Game.Ball._SpeedX / Global.Game.Ball._SpeedY))) + ((Math.random() * AIRandom) * 2)) - AIRandom;
MoveTo = _local2.getNextPlayer(Math.abs(_local3), TopBorder);
if (MoveTo > 0) {
moveUp();
} else if (MoveTo == 0) {
} else {
moveDown();
}
}
var startAI = false;
var Rate = 0;
var MoveTo = 0;
var AIRate = Global.AIRate;
var AIRandom = Global.AIRandom;
}
Symbol 489 MovieClip [__Packages.game.field.Field] Frame 0
class game.field.Field extends MovieClip
{
var _y, _x, _parent, _height, _width;
function Field () {
super();
Global.Game.Field = this;
}
function get SoundID() {
return(BandeSounds[Math.abs(Math.round((Math.random() * BandeSounds.length) - 1))]);
}
function get X() {
var _local2 = new Object();
_local2 = {x:_x, y:_y};
_parent.localToGlobal(_local2);
return(_local2.x);
}
function get Y() {
var _local2 = new Object();
_local2 = {x:_x, y:_y};
_parent.localToGlobal(_local2);
return(_local2.y);
}
function checkBall() {
if (Check4Ball) {
if (BallAtTop) {
while (BallAtTop) {
Global.Game.Ball._y++;
}
Global.Game.Ball.setAngelAt("top", (Global.Game.Ball.getAngelAt("top") * -1) + 180);
Global.Audio.playSoundFX(SoundID, Global.BandeVolume);
}
if (BallAtBottom) {
while (BallAtBottom) {
Global.Game.Ball._y--;
}
Global.Game.Ball.setAngelAt("bottom", (Global.Game.Ball.getAngelAt("bottom") * -1) + 180);
Global.Audio.playSoundFX(SoundID, Global.BandeVolume);
}
if (BallAtLeft) {
while (BallAtLeft) {
Global.Game.Ball._x++;
}
Global.Game.Ball.setAngelAt("left", (Global.Game.Ball.getAngelAt("left") * -1) + 180);
Global.Audio.playSoundFX(SoundID, Global.BandeVolume);
}
if (BallAtRight) {
while (BallAtRight) {
Global.Game.Ball._x--;
}
Global.Game.Ball.setAngelAt("right", (Global.Game.Ball.getAngelAt("right") * -1) + 180);
Global.Audio.playSoundFX(SoundID, Global.BandeVolume);
}
}
}
function get BallAtTop() {
return(Global.Game.Ball.Top <= Y);
}
function get BallAtBottom() {
return(Global.Game.Ball.Bottom >= (Y + _height));
}
function get BallAtLeft() {
return(Global.Game.Ball.Left <= X);
}
function get BallAtRight() {
return(Global.Game.Ball.Right >= (X + _width));
}
static var BandeSounds = ["bande0", "bande1"];
var Check4Ball = false;
}
Symbol 490 MovieClip [__Packages.game.global.Game] Frame 0
class game.global.Game extends MovieClip
{
var msgGameOver, Timer, msgBreak, msgGoal, dispatchEvent, Ball, Field, FallingBall, msgGameOverDraw;
function Game () {
super();
Global.Game = this;
hideMessages();
msgGameOver._visible = false;
deleteEventHandlers();
mx.events.EventDispatcher.initialize(this);
Timer = new game.global.Stopwatch();
setTimer();
var _local3 = new Object();
_local3.__caller__ = this;
_local3.onKeyDown = function () {
this.__caller__.onKeyBreakDown();
};
Key.addListener(_local3);
}
function deleteEventHandlers() {
var _local1 = "__q_";
delete game.global.Game[_local1 + "onBreak"];
delete game.global.Game[_local1 + "onGoal"];
delete game.global.Game[_local1 + "onTouch"];
delete game.global.Game[_local1 + "onGameLoad"];
delete game.global.Game[_local1 + "onStart"];
delete game.global.Game[_local1 + "onGameOver"];
for (var _local2 in Key._listeners) {
Key.removeListener(Key._listeners[_local2]);
}
}
function hideMessages() {
msgBreak._visible = false;
msgGoal._visible = false;
}
function touchBall() {
dispatchEvent({type:"onTouch"});
}
function firstFrame() {
dispatchEvent({type:"onGameLoad"});
}
function doBreak() {
if ((!GameOver) && (GameRun)) {
if (Break) {
Break = false;
Timer.startBreak();
msgBreak._visible = false;
} else {
Break = true;
Timer.stopBreak();
msgBreak.play();
msgBreak._visible = true;
}
dispatchEvent({type:"onBreak", startBreak:Break});
}
}
function onKeyBreakDown() {
if ((Key.getCode() == KeyBreak) || (Key.getCode() == 32)) {
doBreak();
}
}
function startGame(Void) {
dispatchEvent({type:"onStart"});
var _local2 = new LoadVars();
_local2.load(Global.url("SetCounter"));
Timer.start(setTimer, 10);
GameOver = false;
restartGame();
}
function runGame(Void) {
Ball.play();
Field.Check4Ball = true;
GameRun = true;
Ball.runEngine = true;
Ball.centerBall(true);
}
function get SoundID() {
return(GoalSounds[Math.abs(Math.round((Math.random() * GoalSounds.length) - 1))]);
}
function goalMade(__Team) {
if (GameRun) {
dispatchEvent({type:"onGoal", team:__Team});
Global.Audio.playSoundFX(SoundID, Global.GoalVolume);
killGame();
Field.Check4Ball = false;
msgGoal._visible = true;
msgGoal.play();
}
}
function killGame(Void) {
GameRun = false;
}
function restartGame() {
hideMessages();
FallingBall.play();
dispatchEvent({type:"onRestart"});
Ball.runEngine = false;
Ball.centerBall(true);
}
function setScore(__Score) {
Score = __Score;
Global.Score = getScore();
trace(Global.Score);
}
function gameOver(__Winner, __Loser) {
Timer.stop();
killGame();
GameOver = true;
if (Global.getTeamProperty(1, "Score") == Global.getTeamProperty(2, "Score")) {
msgGameOverDraw._visible = true;
msgGameOverDraw.play();
} else {
msgGameOver._visible = true;
msgGameOver.play();
}
Winner = __Winner;
dispatchEvent({type:"onGameOver", winner:__Winner, loser:__Loser});
}
function getScore() {
var _local5 = convertNumber(Global.getTeamProperty(1, "Score"));
var _local4 = convertNumber(Global.getTeamProperty(2, "Score"));
var _local7 = convertNumber(99 - Global.getTeamProperty(1, "Score"));
var _local6 = convertNumber(99 - Global.getTeamProperty(2, "Score"));
var _local2 = Number(_local4) - Number(_local5);
var _local3 = convertNumber(_local2);
var _local8 = new Date();
if (_local2 < 0) {
_local3 = convertNumber(Math.abs(_local2));
return(new Number((("1" + _local3) + _local6) + _local5));
}
return(new Number((("-1" + _local3) + _local4) + _local7));
}
function checkScore() {
return(getScore() < Global.LastScore);
}
function get Duration() {
var _local2 = Timer.__get__Seconds().toString();
while (_local2.length < 6) {
_local2 = "0" + _local2;
}
return(_local2);
}
function setTimer() {
var _local1 = Global.Game.convertNumber(Math.floor(((Global.Game.Timer.Miniseconds * 30) / 1000) / 60));
var _local2 = Global.Game.convertNumber(((Global.Game.Timer.Miniseconds * 30) / 1000) % 60);
if (_local1 == "90") {
_local2 = "00";
}
Global.Game.Interface.Timer.txtTime.text = (_local1 + ":") + _local2;
if (Global.Game.Timer.Seconds >= Global.Game.TimeOut) {
var _local4 = ((Global.getTeamProperty(1, "Score") > Global.getTeamProperty(2, "Score")) ? 1 : 2);
var _local3 = ((Global.getTeamProperty(1, "Score") > Global.getTeamProperty(2, "Score")) ? 2 : 1);
Global.Game.gameOver(_local4, _local3);
}
}
function convertNumber(__Number) {
if (!isNaN(__Number)) {
var _local1 = String(Math.round(__Number));
if (_local1.length == 1) {
_local1 = "0" + _local1;
}
return(_local1);
}
return("00");
}
var TimeOut = 181;
var GoalSounds = ["jubel0", "jubel1"];
var Score = 0;
var Winner = 0;
var KeyBreak = 80;
var GameOver = true;
var Break = false;
var GameRun = false;
}
Symbol 491 MovieClip [__Packages.game.global.Stopwatch] Frame 0
class game.global.Stopwatch
{
var EXE;
function Stopwatch () {
killInterval();
start();
stop();
isStarted = false;
}
function killInterval() {
clearInterval(Interval);
}
function get Seconds() {
return((isStarted ? (Math.round(((getTimer() - StartTime) - BreakInterval) / 1000)) : (EndTime)));
}
function get Miniseconds() {
return((isStarted ? (Math.round((getTimer() - StartTime) - BreakInterval)) : (EndTime)));
}
function stop() {
EndTime = Seconds;
isStarted = false;
killInterval();
}
function stopBreak() {
killInterval();
BreakInterval = getTimer() - BreakInterval;
}
function startBreak() {
BreakInterval = getTimer() - BreakInterval;
Interval = setInterval(EXE, TimeInterval);
}
function start(__Function, __Interval) {
EXE = __Function;
TimeInterval = __Interval;
BreakInterval = 0;
isStarted = true;
StartTime = getTimer();
Interval = setInterval(EXE, TimeInterval);
}
var isStarted = false;
var TimeInterval = 0;
var StartTime = 0;
var EndTime = 0;
var BreakInterval = 0;
static var Interval = 0;
}
Symbol 492 MovieClip [__Packages.mx.events.EventDispatcher] Frame 0
class mx.events.EventDispatcher
{
function EventDispatcher () {
}
static function _removeEventListener(queue, event, handler) {
if (queue != undefined) {
var _local4 = queue.length;
var _local1;
_local1 = 0;
while (_local1 < _local4) {
var _local2 = queue[_local1];
if (_local2 == handler) {
queue.splice(_local1, 1);
return(undefined);
}
_local1++;
}
}
}
static function initialize(object) {
if (_fEventDispatcher == undefined) {
_fEventDispatcher = new mx.events.EventDispatcher();
}
object.addEventListener = _fEventDispatcher.addEventListener;
object.removeEventListener = _fEventDispatcher.removeEventListener;
object.dispatchEvent = _fEventDispatcher.dispatchEvent;
object.dispatchQueue = _fEventDispatcher.dispatchQueue;
}
function dispatchQueue(queueObj, eventObj) {
var _local7 = "__q_" + eventObj.type;
var _local4 = queueObj[_local7];
if (_local4 != undefined) {
var _local5;
for (_local5 in _local4) {
var _local1 = _local4[_local5];
var _local3 = typeof(_local1);
if ((_local3 == "object") || (_local3 == "movieclip")) {
if (_local1.handleEvent != undefined) {
_local1.handleEvent(eventObj);
}
if (_local1[eventObj.type] != undefined) {
if (exceptions[eventObj.type] == undefined) {
_local1[eventObj.type](eventObj);
}
}
} else {
_local1.apply(queueObj, [eventObj]);
}
}
}
}
function dispatchEvent(eventObj) {
if (eventObj.target == undefined) {
eventObj.target = this;
}
this[eventObj.type + "Handler"](eventObj);
dispatchQueue(this, eventObj);
}
function addEventListener(event, handler) {
var _local3 = "__q_" + event;
if (this[_local3] == undefined) {
this[_local3] = new Array();
}
_global.ASSetPropFlags(this, _local3, 1);
_removeEventListener(this[_local3], event, handler);
this[_local3].push(handler);
}
function removeEventListener(event, handler) {
var _local2 = "__q_" + event;
_removeEventListener(this[_local2], event, handler);
}
static var _fEventDispatcher = undefined;
static var exceptions = {move:1, draw:1, load:1};
}
Symbol 493 MovieClip [__Packages.main.Counter] Frame 0
class main.Counter extends MovieClip
{
var TextString, txtCounter, Server, Counts;
function Counter () {
super();
TextString = txtCounter.text;
txtCounter.text = "";
Server = new serverconnection.Server(Global.url("GetCounter"));
var _local3 = new Object();
_local3.__caller__ = this;
_local3.onConnect = function (Server) {
this.__caller__.initializeCounter();
};
Server.addEventListener("onConnect", _local3);
}
function initializeCounter() {
Counts = new Number(Server.DataByRowObject("Counter").Value);
setText();
}
function setText() {
txtCounter.text = Global.replace(TextString, "%c", Counts);
}
}
Symbol 494 MovieClip [__Packages.serverconnection.Server] Frame 0
class serverconnection.Server
{
var _MyXML, _Server, _Error;
function Server (file, _dbID) {
mx.events.EventDispatcher.initialize(this);
dbID = _dbID;
if (!dbID) {
dbID = 0;
}
delete _MyXML;
_LoadTime = getTimer();
_MyXML = new XML();
_MyXML.ignoreWhite = true;
_MyXML.load(file);
_root.debug = _root.debug + (newline + _MyXML);
_MyXML._Error = 0;
_MyXML._Server = this;
_MyXML.onLoad = myOnLoad;
trace(_MyXML);
}
function checkTimeOut() {
if ((_LoadTime + _TimeOut) >= getTimer()) {
delete _MyXML;
_MyXML._Error = 1;
}
}
function get Error() {
return(_MyXML._Error);
}
function get BytesLoaded() {
return(_MyXML.getBytesLoaded());
}
function get BytesTotal() {
return(_MyXML.getBytesTotal());
}
function get load() {
if ((_MyXML.loaded && (_MyXML._Error == -1)) && (_MyXML.getBytesTotal() == _MyXML.getBytesLoaded())) {
return(true);
}
return(false);
}
function GetColumnNames() {
var _local2 = new Array();
if (_MyXML.loaded) {
for (var _local3 in _MyXML.firstChild.childNodes[dbID].firstChild.childNodes) {
_local2[_local3] = _MyXML.firstChild.childNodes[dbID].firstChild.childNodes[_local3].nodeName;
}
} else {
trace("loading....");
}
return(_local2);
}
function get RowHead() {
return(new String(GetRowAttributes("name")[0]));
}
function get RowNames() {
return(GetRowAttributes("value"));
}
function get ColNames() {
return(GetColAttributes(0, "name"));
}
function DataByCol(Column) {
var _local2 = new Array();
var _local3 = SeekColID(Column);
for (var _local4 in RowNames) {
_local2[_local4] = SelectData(new Number(_local4), new Number(_local3));
}
return(_local2);
}
function DataByRow(Row) {
var _local2 = new Array();
var _local3 = SeekRowID(Row);
for (var _local4 in ColNames) {
_local2[_local4] = SelectData(new Number(_local3), new Number(_local4));
}
return(_local2);
}
function DataByRowObject(Row) {
var _local2 = new Object();
var _local3 = SeekRowID(Row);
if (_local3) {
for (var _local4 in ColNames) {
_local2[ColNames[_local4]] = SelectData(new Number(_local3), new Number(_local4));
}
return(_local2);
}
return(false);
}
function SelectData(Row, Col) {
if (_MyXML.loaded) {
return(trim(_MyXML.firstChild.childNodes[dbID].childNodes[Row].childNodes[Col].firstChild));
}
trace("Warning: loading....");
}
function SeekRowID(Name) {
var _local4;
for (var _local3 in RowNames) {
if (RowNames[_local3] == Name) {
return(_local3);
}
}
return(false);
}
function SeekColID(Name) {
for (var _local3 in ColNames) {
if (ColNames[_local3] == Name) {
return(_local3);
}
}
}
function GetRowAttributes(AttriName) {
var _local2 = new Array();
if (_MyXML.loaded) {
for (var _local4 in _MyXML.firstChild.childNodes[dbID].childNodes) {
_local2[_local4] = _MyXML.firstChild.childNodes[dbID].childNodes[_local4].attributes[AttriName];
}
} else {
trace("Warning: loading....");
}
return(_local2);
}
function GetColAttributes(Row, AttriName) {
var _local3 = new Array();
if (_MyXML.loaded) {
for (var _local5 in _MyXML.firstChild.childNodes[dbID].childNodes[Row].childNodes) {
_local3[_local5] = _MyXML.firstChild.childNodes[dbID].childNodes[Row].childNodes[_local5].attributes[AttriName];
}
} else {
trace("Warning: loading....");
}
return(_local3);
}
function trim(string) {
string = new String(string);
var _local2 = 0;
while (string.charCodeAt(_local2) < 33) {
_local2++;
}
var _local1 = string.length - 1;
while (string.charCodeAt(_local1) < 33) {
_local1--;
}
return(string.substring(_local2, _local1 + 1));
}
function reverse(myArray) {
var _local3 = new Array();
var _local1 = myArray.length - 1;
while (_local1 >= 0) {
_local3.push(myArray[_local1]);
_local1--;
}
return(_local3);
}
function myOnLoad(success) {
if (success) {
_Server.dispatchEvent({type:"onConnect"});
_Error = -1;
} else {
_Server.dispatchEvent({type:"onError"});
_Error = 1;
}
}
var _TimeOut = 20000;
var _LoadTime = 0;
var dbID = 0;
}
Symbol 495 MovieClip [__Packages.highscore.ScoresTotal] Frame 0
class highscore.ScoresTotal extends MovieClip
{
var Self, Server;
function ScoresTotal () {
super();
Self = this;
resetData();
Server = new serverconnection.Server(Global.url("GetScore"), 0);
var _local3 = new Object();
_local3.Path = Self;
_local3.onConnect = function (Server) {
this.Path.initializeHighscore();
};
Server.addEventListener("onConnect", _local3);
}
function resetData() {
strDBPathDaily = new String();
strID = new String();
strName = new String();
strScore = new String();
}
function initializeHighscore() {
strID = new String();
strName = new String();
strScore = new String();
var _local2 = 0;
while (numMaxData >= _local2) {
var _local3 = Server.DataByRowObject(Server.RowNames[_local2]);
if (_local3) {
strID = strID + (("<p align = \"right\">" + [_local2 + 1]) + "<p><br>");
strScore = strScore + (((_local3.Name + " / <font color=\"#666666\">") + editResult(_local3.Score)) + "</font><br>");
} else {
strID = strID + (("<p align = \"right\">" + [_local2 + 1]) + "<p><br>");
strScore = strScore + " - <br>";
}
_local2++;
}
displayScore();
Global.Menu.doneLoading();
}
function lastScore() {
var _local2 = Server.DataByRowObject(numMaxData.toString()).score;
if (_local2 == undefined) {
return(7000000);
}
return(new Number(_local2));
}
function editResult(__Result) {
if (Number(__Result) > 0) {
var _local1 = ("+" + Number(__Result).toString()).slice(2);
var _local2 = 99 - new Number(_local1.slice(2, 4));
var _local3 = new Number(_local1.slice(4, 6));
} else {
var _local1 = Number(__Result).toString().slice(2);
var _local2 = new Number(_local1.slice(2, 4));
var _local3 = 99 - new Number(_local1.slice(4, 6));
}
return(((((("<font size=\"12\" color=\"#666666\">" + (_local2 - _local3)) + "</font><font size=\"12\" color=\"#666666\"> Punkte (") + _local2) + ":") + _local3) + ")</font>");
}
function displayScore() {
Self.txtID.html = true;
Self.txtScore.html = true;
Self.txtID.htmlText = strID;
Self.txtScore.htmlText = strScore;
}
var numMaxData = 10;
var strID = new String();
var strName = new String();
var strScore = new String();
var strDBPathDaily = new String();
}
Symbol 496 MovieClip [__Packages.highscore.ScoresDaily] Frame 0
class highscore.ScoresDaily extends MovieClip
{
var Self, Server;
function ScoresDaily () {
super();
Self = this;
resetData();
trace(Global.url("GetScore"));
Server = new serverconnection.Server(Global.url("GetScore"), 1);
var _local3 = new Object();
_local3.Path = Self;
_local3.onConnect = function (Server) {
this.Path.initializeHighscore();
};
Server.addEventListener("onConnect", _local3);
}
function resetData() {
strDBPathDaily = new String();
strID = new String();
strName = new String();
strScore = new String();
}
function initializeHighscore() {
strID = new String();
strName = new String();
strScore = new String();
var _local2 = 0;
while (numMaxData >= _local2) {
var _local3 = Server.DataByRowObject(Server.RowNames[_local2]);
trace((_local2 + ": ") + Server.RowNames[_local2]);
Console.trace((_local2 + ": ") + Server.RowNames[_local2], 3);
if (_local3) {
strID = strID + (("<p align = \"right\">" + [_local2 + 1]) + "<p><br>");
strScore = strScore + (((_local3.Name + " / <font color=\"#666666\">") + editResult(_local3.Score)) + "</font><br>");
} else {
strID = strID + (("<p align = \"right\">" + [_local2 + 1]) + "<p><br>");
strScore = strScore + " - <br>";
}
_local2++;
}
Global.LastScore = lastScore();
displayScore();
Global.Menu.doneLoading();
}
function lastScore() {
var _local2 = Server.DataByRowObject(Server.RowNames[numMaxData - 1]).Score;
trace("score: " + _local2);
if (_local2 == undefined) {
return(Number.POSITIVE_INFINITY);
}
return(Number(_local2));
}
function editResult(__Result) {
if (Number(__Result) > 0) {
var _local1 = ("+" + Number(__Result).toString()).slice(2);
var _local2 = 99 - new Number(_local1.slice(2, 4));
var _local3 = new Number(_local1.slice(4, 6));
} else {
var _local1 = Number(__Result).toString().slice(2);
var _local2 = new Number(_local1.slice(2, 4));
var _local3 = 99 - new Number(_local1.slice(4, 6));
}
return(((((("<font size=\"12\" color=\"#666666\">" + (_local2 - _local3)) + "</font><font size=\"12\" color=\"#666666\"> Punkte (") + _local2) + ":") + _local3) + ")</font>");
}
function displayScore() {
Self.txtID.html = true;
Self.txtID.html = true;
Self.txtID.htmlText = strID;
Self.txtScore.htmlText = strScore;
}
var numMaxData = 9;
var strID = new String();
var strName = new String();
var strScore = new String();
var strDBPathDaily = new String();
}
Symbol 331 MovieClip [__Packages.Console] Frame 0
class Console extends MovieClip
{
static var self, key_events;
var unloadMovie, _x, _y, gotoAndStop, createTextField, txtConsole, txtInput, createEmptyMovieClip;
function Console (Void) {
super();
if (self) {
trace("**warning, more then one 'console' are defined", 5);
unloadMovie();
return;
}
self = this;
init();
hide();
add_command("alpha", this, "set_alpha");
add_command("clear", this, "clear");
}
function set_alpha(__value) {
_alpha = new Number(__value);
}
function clear() {
self.txtConsole.text = "";
}
function set scaleX(__ScaleX) {
scale_x = __ScaleX / 100;
//return(scaleX);
}
function get scaleX() {
return(scale_x * 100);
}
function set scaleY(__ScaleY) {
scale_y = __ScaleY / 100;
//return(scaleY);
}
function get scaleY() {
return(scale_y * 100);
}
function init(Void) {
_x = 0;
_y = 0;
add_key_listener();
gotoAndStop(2);
draw_background();
draw_text();
}
static function onCtrlK(Void) {
switch_state();
}
static function onEnter(Void) {
if (focus) {
send_cmd(self.txtInput.text);
self.txtInput.text = "";
}
}
static function send_cmd(__input) {
var _local3 = __input.split(" ");
var _local2 = String(_local3.shift());
var _local1 = commands[_local2];
if (!_local1) {
trace(((promt + "command ") + _local2) + " not found.", 11);
} else {
trace(promt + __input, 11);
_local1.reference[_local1.function_name].apply(_local1.reference, _local3);
}
}
static function add_command(command_name, referenc, function_name) {
commands[command_name] = {reference:referenc, function_name:function_name};
}
static function hide(Void) {
self._y = -1000;
}
static function show(Void) {
self.swapDepths(self._parent.getNextHighestDepth());
self._y = 0;
}
function get output() {
return(self.txtConsole.htmlText);
}
static function switch_state(Void) {
if (self._y == 0) {
hide();
} else {
show();
}
}
static function trace(__message, __color, __omit_linebreak) {
__omit_linebreak = (__omit_linebreak ? "" : "<br />\n");
var _local1 = get_html(__message, __color) + __omit_linebreak;
if (history_num >= self.history) {
self.clear();
self.txtConsole.htmlText = self.txtConsole.htmlText + last_msg;
history_num = 0;
}
self.txtConsole.htmlText = self.txtConsole.htmlText + _local1;
self.txtConsole.setTextFormat(font);
self.txtConsole.scroll = self.txtConsole.maxscroll;
last_msg = _local1;
history_num++;
}
static function get_html(__message, __code) {
if (colors[__code]) {
return(((("<font color=\"#" + colors[__code]) + "\">") + __message) + "</font>");
}
return(((("<font color=\"#" + colors[0]) + "\">") + __message) + "</font>");
}
function add_key_listener(Void) {
Key.removeListener(key_events);
key_events = new Object();
key_events.onKeyUp = function () {
if (Key.isDown(17) && (Key.getCode() == 75)) {
Console.onCtrlK();
}
if (Key.isDown(13) || (Key.getCode() == 13)) {
Console.onEnter();
}
};
Key.addListener(key_events);
}
function draw_text(Void) {
var _local3 = font.getTextExtent("lj").textFieldHeight;
createTextField("txtConsole", 1, 0, 0, Stage.width * scale_x, (Stage.height * scale_y) - _local3);
createTextField("txtInput", 2, 0, (Stage.height * scale_y) - _local3, Stage.width * scale_x, _local3);
var _local4 = txtConsole;
var _local2 = txtInput;
_local4.html = true;
_local4.multiline = true;
_local4.wordWrap = true;
_local2.type = "input";
_local2.textColor = 16777215 /* 0xFFFFFF */;
_local2.setNewTextFormat(font);
_local2.onSetFocus = function () {
Console.focus = true;
};
_local2.onKillFocus = function () {
Console.focus = false;
};
}
function draw_background(Void) {
var _local2 = createEmptyMovieClip("background", 0);
_local2.beginFill(0, 100);
_local2.lineStyle(1, 0, 100);
_local2.moveTo(0, 0);
_local2.lineTo(Stage.width * scale_x, 0);
_local2.lineTo(Stage.width * scale_x, Stage.height * scale_y);
_local2.lineTo(0, Stage.height * scale_y);
_local2.lineTo(0, 0);
_local2.endFill();
}
static var commands = new Object();
static var colors = ["505050", "949494", "C7C7C7", "FFFFFF", "55E100", "FFAE00", "CE2121", "FFF000", "4B44D4", "38C5DE", "73C690", "9D4BBC"];
static var font = new TextFormat("Lucida Console", 11);
static var scale_x = 1;
static var scale_y = 1;
static var focus = false;
static var history_num = 0;
static var last_msg = "";
static var promt = ": ";
var _alpha = 100;
var history = 100;
}
Symbol 497 MovieClip [__Packages.main.SendMail] Frame 0
class main.SendMail extends MovieClip
{
var mcOwner, _dbSubmit;
function SendMail () {
super();
mcOwner = this;
setupTellFriend();
}
function submitEmail() {
_eMailFriend = mcOwner.txtEmailFriend.text;
_eMailUser = mcOwner.txtEmailUser.text;
if (ValidEmailAddresses()) {
doSendMail();
}
}
function doSendMail() {
mcOwner.gotoAndStop("send");
booInitialize = false;
_TimerWait = 0;
var _local2 = Global.url("SendMail");
_local2 = Global.replace(_local2, "<EMAILTO>", _eMailFriend);
_local2 = Global.replace(_local2, "<EMAIL>", _eMailUser);
_dbSubmit = new serverconnection.Server(_local2);
}
function ValidEmailAddresses() {
var _local2 = 0;
mcOwner.invalidMailFriend._visible = false;
mcOwner.invalidMailUser._visible = false;
if (!checkMail(_eMailUser)) {
mcOwner.invalidMailUser._visible = true;
_local2++;
}
if (!checkMail(_eMailFriend)) {
mcOwner.invalidMailFriend._visible = true;
_local2++;
}
if (_local2 > 0) {
return(false);
}
return(true);
}
function onEnterFrame() {
if (!booInitialize) {
onFinish();
}
if (booDoneSending) {
waitToGoBack();
}
}
function waitToGoBack() {
if (_TimerWait == 0) {
_TimerWait = getTimer();
}
if ((_TimerWait + 3000) <= getTimer()) {
mcOwner.gotoAndStop("form");
}
}
function onFinish() {
if ((!booInitialize) && (_dbSubmit.__get__load())) {
if (_dbSubmit.DataByRowObject("SendEmail").successful == "true") {
mcOwner.gotoAndPlay("done");
booDoneSending = true;
_TimerWait = 0;
setupTellFriend();
} else {
mcOwner.gotoAndStop("error");
}
booInitialize = true;
}
}
function setupTellFriend() {
var _local2 = mcOwner.txtEmailFriend;
var _local3 = mcOwner.txtEmailUser;
mcOwner.invalidMailFriend._visible = false;
mcOwner.invalidMailUser._visible = false;
_local2.text = _eMailFriendInfo;
_local3.text = _eMailUserInfo;
_local2.maxChars = _eMailMaxChars;
_local3.maxChars = _eMailMaxChars;
_local3.defaultTXT = _eMailUserInfo;
_local3.onSetFocus = function () {
if (this.text == this.defaultTXT) {
this.text = "";
}
};
_local2.defaultTXT = _eMailFriendInfo;
_local2.onSetFocus = function () {
if (this.text == this.defaultTXT) {
this.text = "";
}
};
}
function checkMail(eMail) {
if (((((eMail.indexOf(" ") != -1) || (eMail.indexOf("@") == -1)) || (eMail.indexOf(".") == -1)) || (eMail.length < 6)) || (eMail.lastIndexOf(".") < eMail.indexOf("@"))) {
return(false);
}
return(true);
}
var _eMailUser = "";
var _eMailFriend = "";
var _eMailMaxChars = 50;
var _eMailUserInfo = "Ihre E-Mail hier";
var _eMailFriendInfo = "E-Mail des Freundes hier";
var booInitialize = true;
var booDoneSending = false;
var _TimerWait = 0;
}
Symbol 498 MovieClip [__Packages.main.Menu] Frame 0
class main.Menu extends MovieClip
{
var Menu, Score, Help, Loader;
function Menu () {
super();
Global.Menu = this;
init();
}
function init(Void) {
Menu._visible = false;
Score._visible = false;
Help._visible = false;
Loader._visible = true;
}
function swichScoreHelp(Void) {
ShowScore = !ShowScore;
if (ShowScore) {
Score._visible = true;
Help._visible = false;
} else {
Score._visible = false;
Help._visible = true;
}
}
function get SelectedTeam() {
for (var _local1 in Global.Teams) {
if (Global.Teams[_local1].select) {
return(Global.Teams[_local1]);
}
}
return(Global.Teams[random(Global.Teams.length - 1)]);
}
function setupTeamProperties() {
var _local2 = SelectedTeam;
Team1_Name = _local2.name;
Team1_Color.BodyColor = _local2.bodycolor;
Team1_Color.ShoulderColor = _local2.shouldercolor;
Team1_Color.GBodyColor = _local2.gk_bodycolor;
Team1_Color.GShoulderColor = _local2.gk_shouldercolor;
Team2_Name = Global.Team2Name;
Team2_Color.BodyColor = Global.Team2ColorBodyColor;
Team2_Color.ShoulderColor = Global.Team2ColorShoulderColor;
Team2_Color.GBodyColor = Global.Team2ColorGBodyColor;
Team2_Color.GShoulderColor = Global.Team2ColorGShoulderColor;
}
function doneLoading() {
Loaded++;
trace("loading... " + Loaded);
if (Loaded >= ItemesToLoad) {
trace("done...");
Menu._visible = true;
Score._visible = true;
Loader._visible = false;
}
}
function singlePlayer() {
setupTeamProperties();
Global.setTeamProperty(1, true, Team1_Name, Team1_Color);
Global.setTeamProperty(2, false, Team2_Name, Team2_Color);
_root.gotoAndStop("startGame");
}
function multiPlayer() {
setupTeamProperties();
Global.setTeamProperty(1, false, Team1_Name, Team1_Color);
Global.setTeamProperty(2, false, Team2_Name, Team2_Color);
_root.gotoAndStop("startGame");
}
var Loaded = 0;
var ItemesToLoad = 2;
var ShowScore = true;
var Team1_Name = "Team 1";
var Team1_Color = new Object();
var Team2_Name = "Team 2";
var Team2_Color = new Object();
}
Symbol 499 MovieClip [__Packages.highscore.SubmitScore] Frame 0
class highscore.SubmitScore extends MovieClip
{
var Self, Server;
function SubmitScore () {
super();
Self = this;
Self.txtName.restrict = "A-Z a-z 0-9 \\-\\^\\_\\*\\[\\]";
}
function submit() {
UserName = (UserName ? (UserName) : (trim(Self.txtName.text)));
if (UserName) {
var _local2 = Global.url("SetScore");
_local2 = Global.replace(_local2, "<NAME>", UserName);
_local2 = Global.replace(_local2, "<SCORE>", Global.Score);
trace("submit score: " + _local2);
Server = new serverconnection.Server(_local2, 0);
var _local3 = new Object();
_local3.Path = Self;
_local3.onConnect = function (Server) {
trace("score submited");
trace(Server._MyXML.toString());
trace(this.Path.Server._MyXML);
this.Path.checkResult();
};
Server.addEventListener("onConnect", _local3);
Self.gotoAndStop("Send");
}
}
function checkResult() {
if ((!Server._MyXML.firstChild.hasChildNodes()) && (Server.Error != 1)) {
_root.gotoAndStop("Menu");
} else {
Self.gotoAndStop("Error");
}
}
function trim(string) {
string = new String(string);
var _local2 = 0;
while (string.charCodeAt(_local2) < 33) {
_local2++;
}
var _local1 = string.length - 1;
while (string.charCodeAt(_local1) < 33) {
_local1--;
}
return(string.substring(_local2, _local1 + 1));
}
var UserName = "";
}
Symbol 321 MovieClip [__Packages.TextfieldBox] Frame 0
class TextfieldBox extends MovieClip
{
var _width, _height, _xscale, _yscale, txtText, __get__text, createTextField, Box, _y, _x;
function TextfieldBox () {
super();
}
function onLoad(Void) {
setSize(_width, _height);
_xscale = (_yscale = 100);
text = (_text);
}
function setSizeToText(Void) {
var _local3 = txtText.textHeight + 8;
_local3 = ((_local3 < 12) ? 12 : (_local3));
var _local2 = txtText.textWidth + 14;
_local2 = ((_local2 < 12) ? 12 : (_local2));
setSize(_local2, _local3);
}
function autoSize(Align) {
if (Align == "right") {
txtText.autoSize = "right";
var _local2 = Right;
setSizeToText();
Right = (_local2);
} else {
txtText.autoSize = "left";
var _local2 = Left;
setSizeToText();
Left = (_local2);
}
}
function set text(__Text) {
_text = __Text;
txtText.text = _text;
autoSize();
//return(__get__text());
}
function setSize(__Width, __Height) {
createTextField("txtText", 10, 2, 2, __Width - 2, __Height - 2);
txtText.setNewTextFormat(new TextFormat("Trebuchet MS", 16, 0, true, false, false, "", "", "center"));
txtText.type = "dynamic";
txtText.selectable = false;
txtText.selectable = false;
Box.setSize(__Width, __Height);
txtText.text = _text;
}
function get Bottom() {
return(_y + _height);
}
function set Bottom(__Y) {
_y = __Y - _height;
//return(Bottom);
}
function get Top() {
return(_y);
}
function set Top(__Y) {
_y = __Y;
//return(Top);
}
function get Left() {
return(_x);
}
function set Left(__X) {
_x = __X;
//return(Left);
}
function get Right() {
return(_x + _width);
}
function set Right(__X) {
_x = __X - _width;
//return(Right);
}
var Border = 2;
var _text = "";
}
Symbol 330 MovieClip [__Packages.Box] Frame 0
class Box extends MovieClip
{
var TL_Corner, TR_Corner, BR_Corner, BL_Corner, T_Border, R_Border, B_Border, L_Border, Center;
function Box () {
super();
}
function setSize(__Width, __Height) {
var _local2 = ((__Width < 12) ? 12 : (__Width));
var _local3 = ((__Height < 12) ? 12 : (__Height));
TL_Corner._x = 0;
TL_Corner._y = 0;
TR_Corner._x = _local2;
TR_Corner._y = 0;
BR_Corner._x = _local2;
BR_Corner._y = _local3;
BL_Corner._x = 0;
BL_Corner._y = _local3;
T_Border._x = Border;
T_Border._y = 0;
T_Border._width = _local2 - (2 * Border);
R_Border._rotation = 0;
R_Border._x = _local2;
R_Border._y = Border;
R_Border._width = _local3 - (2 * Border);
R_Border._rotation = 90;
B_Border._rotation = 0;
B_Border._x = _local2 - Border;
B_Border._y = _local3;
B_Border._width = _local2 - (2 * Border);
B_Border._rotation = 180;
L_Border._rotation = 0;
L_Border._x = 0;
L_Border._y = _local3 - Border;
L_Border._width = _local3 - (2 * Border);
L_Border._rotation = -90;
Center._x = Border;
Center._y = Border;
Center._height = _local3 - (2 * Border);
Center._width = _local2 - (2 * Border);
}
var Border = 6;
}
Symbol 337 Button
on (release) {
_root.gotoAndStop("Menu");
}
Symbol 359 MovieClip Frame 1
stop();
Instance of Symbol 358 MovieClip in Symbol 359 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(Math.round(Math.random() * _totalframes) + 1);
}
Symbol 426 MovieClip Frame 1
stop();
gotoAndStop(random(_totalframes - 1) + 2);
Instance of Symbol 410 MovieClip in Symbol 432 MovieClip Frame 1
onClipEvent (load) {
emptyAllowed = false;
if (emptyAllowed) {
alpha = _totalframes;
} else {
alpha = _totalframes - 16;
}
this.gotoAndStop(Math.round(Math.random() * alpha) + 1);
}
Symbol 435 MovieClip Frame 1
stop();
Symbol 435 MovieClip Frame 2
_root.action = true;
Symbol 435 MovieClip Frame 100
stop();
_root.action = false;
Instance of Symbol 439 MovieClip in Symbol 440 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(Math.round(_totalframes / 4));
}
Instance of Symbol 439 MovieClip in Symbol 440 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(_totalframes / 2);
}
Instance of Symbol 439 MovieClip in Symbol 440 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(_totalframes / 2);
}
Instance of Symbol 439 MovieClip in Symbol 440 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(_totalframes / 2);
}
Instance of Symbol 410 MovieClip in Symbol 446 MovieClip Frame 1
onClipEvent (load) {
emptyAllowed = false;
if (emptyAllowed) {
alpha = _totalframes;
} else {
alpha = _totalframes - 16;
}
this.gotoAndStop(Math.round(Math.random() * alpha) + 1);
}
Symbol 447 MovieClip Frame 1
stop();
Symbol 447 MovieClip Frame 2
_root.action = true;
Symbol 447 MovieClip Frame 180
stop();
_root.action = false;
Symbol 449 MovieClip Frame 1
_root.action = true;
Instance of Symbol 410 MovieClip in Symbol 449 MovieClip Frame 1
onClipEvent (load) {
emptyAllowed = false;
if (emptyAllowed) {
alpha = _totalframes;
} else {
alpha = _totalframes - 16;
}
this.gotoAndStop(Math.round(Math.random() * alpha) + 1);
}
Symbol 449 MovieClip Frame 360
Symbol 449 MovieClip Frame 361
_root.action = false;
stop();
Instance of Symbol 454 MovieClip in Symbol 455 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(Math.round(Math.random() * this._totalframes) + 1);
}
Instance of Symbol 445 MovieClip in Symbol 458 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(120);
}
Instance of Symbol 410 MovieClip in Symbol 465 MovieClip Frame 1
onClipEvent (load) {
emptyAllowed = false;
if (emptyAllowed) {
alpha = _totalframes;
} else {
alpha = _totalframes - 16;
}
this.gotoAndStop(Math.round(Math.random() * alpha) + 1);
}
Symbol 467 MovieClip Frame 54
stop();
Symbol 467 MovieClip Frame 175
stop();
Instance of Symbol 473 MovieClip in Symbol 474 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(200);
}
Instance of Symbol 473 MovieClip in Symbol 474 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(_totalframes / 2);
}
Instance of Symbol 362 MovieClip in Symbol 477 MovieClip Frame 1
onClipEvent (load) {
step = 1;
}
onClipEvent (enterFrame) {
trace(_root.actionScore);
trace(_root.action);
trace(step);
if (((_root.actionScore == "03") and (_root.action == false)) and (step == 1)) {
_parent.incoming.play();
step = step + 1;
}
}
Instance of Symbol 381 MovieClip in Symbol 477 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(Math.round(Math.random() * _totalframes) + 1);
}
Instance of Symbol 410 MovieClip in Symbol 477 MovieClip Frame 1
onClipEvent (load) {
emptyAllowed = true;
if (emptyAllowed) {
alpha = _totalframes;
} else {
alpha = _totalframes - 16;
}
this.gotoAndStop(Math.round(Math.random() * alpha) + 1);
}
Instance of Symbol 410 MovieClip in Symbol 477 MovieClip Frame 1
onClipEvent (load) {
emptyAllowed = true;
if (emptyAllowed) {
alpha = _totalframes;
} else {
alpha = _totalframes - 16;
}
this.gotoAndStop(Math.round(Math.random() * alpha) + 1);
}
Instance of Symbol 410 MovieClip in Symbol 477 MovieClip Frame 1
onClipEvent (load) {
emptyAllowed = true;
if (emptyAllowed) {
alpha = _totalframes;
} else {
alpha = _totalframes - 16;
}
this.gotoAndStop(Math.round(Math.random() * alpha) + 1);
}
Instance of Symbol 410 MovieClip in Symbol 477 MovieClip Frame 1
onClipEvent (load) {
emptyAllowed = true;
if (emptyAllowed) {
alpha = _totalframes;
} else {
alpha = _totalframes - 16;
}
this.gotoAndStop(Math.round(Math.random() * alpha) + 1);
}
Instance of Symbol 410 MovieClip in Symbol 477 MovieClip Frame 1
onClipEvent (load) {
emptyAllowed = true;
if (emptyAllowed) {
alpha = _totalframes;
} else {
alpha = _totalframes - 16;
}
this.gotoAndStop(Math.round(Math.random() * alpha) + 1);
}
Instance of Symbol 410 MovieClip in Symbol 477 MovieClip Frame 1
onClipEvent (load) {
emptyAllowed = true;
if (emptyAllowed) {
alpha = _totalframes;
} else {
alpha = _totalframes - 16;
}
this.gotoAndStop(Math.round(Math.random() * alpha) + 1);
}
Instance of Symbol 410 MovieClip in Symbol 477 MovieClip Frame 1
onClipEvent (load) {
emptyAllowed = true;
if (emptyAllowed) {
alpha = _totalframes;
} else {
alpha = _totalframes - 16;
}
this.gotoAndStop(Math.round(Math.random() * alpha) + 1);
}
Instance of Symbol 410 MovieClip in Symbol 477 MovieClip Frame 1
onClipEvent (load) {
emptyAllowed = true;
if (emptyAllowed) {
alpha = _totalframes;
} else {
alpha = _totalframes - 16;
}
this.gotoAndStop(Math.round(Math.random() * alpha) + 1);
}
Instance of Symbol 410 MovieClip in Symbol 477 MovieClip Frame 1
onClipEvent (load) {
emptyAllowed = true;
if (emptyAllowed) {
alpha = _totalframes;
} else {
alpha = _totalframes - 16;
}
this.gotoAndStop(Math.round(Math.random() * alpha) + 1);
}
Symbol 477 MovieClip Frame 2
Instance of Symbol 362 MovieClip in Symbol 477 MovieClip Frame 2
onClipEvent (load) {
step = 1;
}
onClipEvent (enterFrame) {
if (((_root.actionScore == "03") and (_root.action == false)) and (step == 1)) {
_parent.incoming.play();
step = step + 1;
}
}
Instance of Symbol 445 MovieClip in Symbol 477 MovieClip Frame 2
onClipEvent (load) {
this.gotoAndPlay(70);
}
Instance of Symbol 445 MovieClip in Symbol 477 MovieClip Frame 2
onClipEvent (load) {
this.gotoAndPlay(30);
}
Instance of Symbol 458 MovieClip in Symbol 477 MovieClip Frame 2
onClipEvent (load) {
this._y = (Math.random() * 400) + 100;
trace(this._y);
}
Instance of Symbol 461 MovieClip in Symbol 477 MovieClip Frame 2
onClipEvent (load) {
this.gotoAndPlay(this._totalframes / 2);
}
Instance of Symbol 362 MovieClip in Symbol 477 MovieClip Frame 3
onClipEvent (load) {
step = 1;
}
onClipEvent (enterFrame) {
trace(_root.actionScore);
trace(_root.action);
trace(step);
if (((_root.actionScore == "03") and (_root.action == false)) and (step == 1)) {
_parent.incoming.play();
step = step + 1;
}
}
Instance of Symbol 410 MovieClip in Symbol 477 MovieClip Frame 3
onClipEvent (load) {
emptyAllowed = true;
if (emptyAllowed) {
alpha = _totalframes;
} else {
alpha = _totalframes - 16;
}
this.gotoAndStop(Math.round(Math.random() * alpha) + 1);
}
Instance of Symbol 410 MovieClip in Symbol 477 MovieClip Frame 3
onClipEvent (load) {
emptyAllowed = true;
if (emptyAllowed) {
alpha = _totalframes;
} else {
alpha = _totalframes - 16;
}
this.gotoAndStop(Math.round(Math.random() * alpha) + 1);
}
Instance of Symbol 454 MovieClip in Symbol 477 MovieClip Frame 3
onClipEvent (load) {
this.gotoAndStop(Math.round(Math.random() * _totalframes) + 1);
}
Instance of Symbol 410 MovieClip in Symbol 477 MovieClip Frame 3
onClipEvent (load) {
emptyAllowed = true;
if (emptyAllowed) {
alpha = _totalframes;
} else {
alpha = _totalframes - 16;
}
this.gotoAndStop(Math.round(Math.random() * alpha) + 1);
}
Instance of Symbol 469 MovieClip in Symbol 477 MovieClip Frame 3
onClipEvent (load) {
function spawnProd() {
animation.attachMovie("prod", "prod" + this.prodCounter, animation.getNextHighestDepth());
animation["prod" + this.prodCounter]._alpha = 100;
animation["prod" + this.prodCounter].gotoAndStop(Math.round((animation["prod" + this.prodCounter]._totalframes - 1) * Math.random()) + 1);
animation["prod" + this.prodCounter]._x = 860 + (Math.random() * 130);
animation["prod" + this.prodCounter]._y = -60;
animation["prod" + this.prodCounter].speed = (Math.random() * this.maxSpeed) + this.minSpeed;
animation["prod" + this.prodCounter].rotation = Math.random() * this.maxRotation;
animation["prod" + this.prodCounter].moveRight = Math.random() * this.moveRight;
animation["prod" + this.prodCounter].onEnterFrame = moveProd;
animation["prod" + this.prodCounter].onRollOver = kill;
this.prodCounter++;
}
function moveProd() {
this._y = this._y + this.speed;
this._rotation = this._rotation + this.rotation;
this._x = this._x + this.moveRight;
if (this._y >= (Stage.height + this._height)) {
removeMovieClip(this);
}
}
function kill() {
removeMovieClip(this);
trace("okok");
}
function resetTimer() {
this.counter = getTimer();
}
this.delayBase = 10000;
this.delayRandomizer = 20;
this.maxSpeed = 0.5;
this.minSpeed = 0.5;
this.maxRotation = 0.3;
this.moveRight = 0;
this.counter = getTimer();
this.prodCounter = 1;
this.createEmptyMovieClip("animation", 1);
this.animation._x = this.animation._x - this._x;
this.animation._y = this.animation._y - this._y;
}
onClipEvent (enterFrame) {
if ((this.counter + this.delayBase) < getTimer()) {
spawnProd();
resetTimer();
}
}
Symbol 478 MovieClip Frame 1
stop();