Frame 1
mcPreloader._xscale = 0;
Stage.align = "C";
Stage.scaleMode = "noScale";
_quality = "HIGH";
var iPercent = 1;
this.onEnterFrame = function () {
bytesLoaded = getBytesLoaded();
bytesTotal = getBytesTotal();
percentSetup = (bytesLoaded / bytesTotal) * 100;
loadB = int(bytesLoaded / 1024);
totalB = int(bytesTotal / 1024);
_root.percentDone = Math.round(percentSetup) + "%";
mcPreloader._xscale = percentSetup;
if (bytesTotal <= bytesLoaded) {
delete this.onEnterFrame;
play();
}
};
stop();
stop();
Frame 3
function initFigures() {
_root.players._x = -20;
_root.players._y = 175;
new CSetPlayer(2000, "mcFigure5", "01", 1, 8, 20, 100, 1);
new CSetPlayer(1000, "mcFigure4", "08", 2, 12, 10, 100, 2);
new CSetPlayer(4000, "mcFigure3", "03", 3, 5, 10, 100, 3);
new CSetPlayer(6000, "mcFigure2", "04", 1, 1, 0, 100, 6);
new CSetPlayer(5000, "mcFigure1", "05", 3, 3, 0, 100, 9);
new CSetPlayer(3000, "mcFigure6", "06", 4, 6, 0, 100, 5);
}
function init() {
var _local2;
_root.cheat = false;
scoreVars = new LoadVars();
txtDebug.text = scoreVars;
scoreVars.onLoad = setScoreArray;
scoreVars.load("getHighscore.php");
_root.mcButtons.btnHighscore._visible = false;
_root.createEmptyMovieClip("eggs", 20);
eggCount = 50;
_root.createEmptyMovieClip("stones", 21);
stoneCount = 25;
_root.createEmptyMovieClip("molotovs", 22);
molotovCount = 2;
_root.createEmptyMovieClip("crackers", 23);
crackerCount = 5;
_root.createEmptyMovieClip("cops", 9);
cops.copDepth = 100;
_root.createEmptyMovieClip("players", 10);
initFigures();
playerCount = 6;
_root.score = 0;
_root.mcPowerMask._xscale = 0;
_root.gameStatus = "on";
_root.gamespeed = 1;
mcAssets.swapDepths(50);
mcPowerBar.swapDepths(51);
mcPowerBar.setMask("_root.mcPowerMask");
mcButtons.swapDepths(60);
mcBtnSound.swapDepths(70);
mcBackground._x = 0;
eggButton = new weaponButton("btnEgg", "eggs", "mcEgg", "eggCount");
stoneButton = new weaponButton("btnStone", "stones", "mcStone", "stoneCount");
molotovButton = new weaponButton("btnMolotov", "molotovs", "mcMolotov", "molotovCount");
crackerButton = new weaponButton("btnCracker", "crackers", "mcCracker", "crackerCount");
gameGo();
}
function checkPlayers() {
if (_root.playerCount == 0) {
_root.gameStatus = "lost";
gameOver();
}
}
function makeCops(many, distance) {
c = 0;
while (c < many) {
thisCop = _root.cops.attachMovie("mcCop", "Cop_" + cops.copDepth, cops.copDepth);
cops.copDepth--;
thisCop._x = thisCop._x + ((c * distance) - random(20));
thisCop.getMovin();
c++;
}
}
function reset() {
_root.mcButtons.btnEgg._alpha = 100;
_root.mcButtons.btnStone._alpha = 100;
_root.mcButtons.btnCracker._alpha = 100;
_root.mcButtons.btnMolotov._alpha = 100;
_root.mcAssets.mcScore._visible = true;
_root.players.removeMovieClip();
_root.cops.removeMovieClip();
_root.stones.removeMovieClip();
_root.eggs.removeMovieClip();
_root.molotovs.removeMovieClip();
_root.crackers.removeMovieClip();
_root.mcWon.removeMovieClip();
_root.mcLoose.removeMovieClip();
init();
}
function gameOver() {
_root.gamespeed = 0;
if (gameStatus == "lost") {
_root.loose = true;
_root.attachMovie("mcLoose", "mcLoose", 9000);
_root.mcLoose._y = 233;
mcButtons.btnReset._visible = true;
_root.mcButtons.btnHighscore._visible = true;
} else if (gameStatus == "won") {
_root.attachMovie("mcWon", "mcWon", 9000);
_root.mcWon._x = 254;
_root.mcWon._y = 140;
}
delete mcBackground.onEnterFrame;
for (var _local2 in players) {
_root.players[_local2].stopIt();
}
for (var _local2 in cops) {
trace("_root.cops[i] " + _root.cops[_local2]);
_root.cops[_local2].stopIt();
}
for (var _local2 in eggs) {
_root.eggs[_local2].stopIt();
}
for (var _local2 in stones) {
_root.stones[_local2].stopIt();
}
for (var _local2 in crackers) {
_root.crackers[_local2].stopIt();
}
for (var _local2 in molotovs) {
_root.molotovs[_local2].stopIt();
}
}
function gameGo() {
mcButtons.btnReset._visible = false;
_root.removeMovieClip("mcWon");
mcBackground.onEnterFrame = function () {
this._x = this._x - _root.gamespeed;
if (this._x == -50) {
makeCops(2, 80);
} else if (this._x == -250) {
makeCops(4, 40);
} else if (this._x == -400) {
makeCops(5, 20);
} else if (this._x == -750) {
makeCops(5, 35);
} else if (this._x == -950) {
makeCops(8, 25);
} else if (this._x == -1150) {
makeCops(7, 20);
} else if (this._x == -1400) {
makeCops(13, 25);
} else if (this._x == -1850) {
makeCops(7, 20);
}
if (this._x <= -2460) {
_root.txtGameStatus.htmlText = "";
_root.gameStatus = "won";
gameOver();
}
};
}
function setScoreArray(success) {
_level0.txtDebug.text = "uuuund....";
if (success) {
_level0.txtDebug.text = " Erfolg!";
highScoreData = new Array();
var _local1 = 0;
while (_local1 < 10) {
var _local2 = ((scoreVars["playerName" + _local1] == undefined) ? "XXXXX" : (scoreVars["playerName" + _local1]));
var _local3 = ((scoreVars["playerScore" + _local1] == undefined) ? "0" : (scoreVars["playerScore" + _local1]));
highScoreData.push({name:_local2, score:_local3, date:scoreVars["date" + _local1]});
_local1++;
}
highScoreData.sortOn(["score"], ["date"]);
highScoreNames = new Array();
highScoreScores = new Array();
k = 0;
while (k < 10) {
highScoreNames.push(highScoreData[k].name);
highScoreScores.push(highScoreData[k].score);
k++;
}
highScoreNames.reverse();
highScoreScores.reverse();
}
}
function weaponButton(btnName, container, movieClip, count) {
trace(eval (count));
_root.mcButtons[btnName].onRollOver = function () {
if ((eval (count) != 0) and (playerCount > 0)) {
this.gotoAndStop(2);
}
};
_root.mcButtons[btnName].onRollOut = function () {
this.gotoAndStop(1);
};
_root.mcButtons[btnName].onPress = function () {
if (((eval (count) != 0) && (playerCount > 0)) && (_root.gameStatus == "on")) {
mcName = CSetPlayer.aMcNameArray[random(CSetPlayer.aMcNameArray.length)];
instanceName = (movieClip + "_") + eval (count);
this.nKey = 0;
_root[container].attachMovie(movieClip, instanceName, eval (count));
_root[container][instanceName]._x = _root.players[mcName]._x + 7;
_root[container][instanceName]._y = (_root.players._y + _root.players[mcName]._y) + 20;
this.onEnterFrame = function () {
this.nKey++;
_root.players[mcName].mcGo.mcFigureHand01._visible = false;
_root.players[mcName].mcGo.mcFigureHand02._visible = false;
_root.players[mcName].mcGo.mcFigureHand03._visible = false;
if (this.nKey == 5) {
_root.players[mcName].mcWurf.mcFigureHandWurf01._visible = true;
}
if (this.nKey == 10) {
_root.players[mcName].mcWurf.mcFigureHandWurf01._visible = false;
_root.players[mcName].mcWurf.mcFigureHandWurf02._visible = true;
_root[container][instanceName]._x = _root[container][instanceName]._x - 5;
}
if (this.nKey == 15) {
_root.players[mcName].mcWurf.mcFigureHandWurf01._visible = false;
_root.players[mcName].mcWurf.mcFigureHandWurf02._visible = false;
_root.players[mcName].mcWurf.mcFigureHandWurf03._visible = true;
_root[container][instanceName]._x = _root[container][instanceName]._x - 7;
}
_root[container][instanceName].increaseVelocity();
};
}
};
_root.mcButtons[btnName].onRelease = function () {
if (((eval (count) != 0) and (playerCount > 0)) && (_root.gameStatus == "on")) {
_root.players[mcName].mcStand1.mcFigureHand01._alpha = 100;
_root.players[mcName].mcGo1.mcFigureHand02._alpha = 100;
_root.players[mcName].mcGo2.mcFigureHand03._alpha = 100;
_root.players[mcName].mcWurf.mcFigureHandWurf01._visible = false;
_root.players[mcName].mcWurf.mcFigureHandWurf02._visible = false;
_root.players[mcName].mcWurf.mcFigureHandWurf03._visible = false;
instanceName = (movieClip + "_") + eval (count);
delete this.onEnterFrame;
_root[container][instanceName].throwIt();
_root[count]--;
}
if (eval (count) == 0) {
this._alpha = 50;
}
};
}
function finalStats() {
summaryScore = (((((stoneCount * stoneBonus) + (eggCount * eggBonus)) + (crackerCount * crackerBonus)) + (molotovCount * molotovBonus)) + (playerCount * playerBonus)) + _root.score;
eggOld = eggCount;
stoneOld = stoneCount;
crackerOld = crackerCount;
molotovOld = molotovCount;
eggScoreCount = 0;
stoneScoreCount = 0;
crackerScoreCount = 0;
molotovScoreCount = 0;
weaponBonus = 0;
if (eggCount > 0) {
eggInterval = setInterval(weaponScore, 100, "eggCount", "eggBonus", "eggInterval", "eggScoreCount");
}
if (stoneCount > 0) {
stoneInterval = setInterval(weaponScore, 100, "stoneCount", "stoneBonus", "stoneInterval", "stoneScoreCount");
}
if (crackerCount > 0) {
crackerInterval = setInterval(weaponScore, 100, "crackerCount", "crackerBonus", "crackerInterval", "crackerScoreCount");
}
if (molotovCount > 0) {
molotovInterval = setInterval(weaponScore, 100, "molotovCount", "molotovBonus", "molotovInterval", "molotovScoreCount");
}
}
function weaponScore(count, scoreBonus, intervalID, scoreCount) {
_root[count]--;
_root.weaponBonus = _root.weaponBonus + eval (scoreBonus);
_root[scoreCount] = _root[scoreCount] + eval (scoreBonus);
if (eval (count) == 0) {
if (intervalID == "eggInterval") {
clearInterval(eggInterval);
}
if (intervalID == "stoneInterval") {
clearInterval(stoneInterval);
}
if (intervalID == "crackerInterval") {
clearInterval(crackerInterval);
}
if (intervalID == "molotovInterval") {
clearInterval(molotovInterval);
}
}
}
function playerScoreCount() {
if (playerCount > 0) {
_root.playerCount--;
pcScore = pcScore + playerBonus;
} else {
clearInterval(playerInterval);
}
}
function playerScore() {
_root.playerOld = playerCount;
clearInterval(eggInterval);
clearInterval(stoneInterval);
clearInterval(crackerInterval);
clearInterval(molotovInterval);
eggCount = 0;
stoneCount = 0;
crackerCount = 0;
molotovCount = 0;
weaponBonus = (((eggOld * eggBonus) + (stoneOld * stoneBonus)) + (crackerOld * crackerBonus)) + (molotovOld * molotovBonus);
playerInterval = setInterval(playerScoreCount, 500);
}
function endScore() {
clearInterval(playerInterval);
_root.playerCount = 0;
pcScore = playerOld * playerBonus;
if (newHigh) {
newHighScore();
} else {
mcButtons.btnReset._visible = true;
mcButtons.btnHighscore._visible = true;
}
}
function checkHighscore() {
if (_root.cheat != true) {
var _local2 = 0;
while (_local2 < highScoreData.length) {
if ((summaryScore > highScoreScores[_local2]) || (highScoreScores == 0)) {
newHigh = true;
trace("Neue Highscore!!");
_root.scorePos = _local2;
break;
}
_local2++;
}
}
}
function newHighScore() {
_root.attachMovie("mcNewHigh", "mcNewHigh", 9001);
_root.mcNewHigh._x = 425;
_root.mcNewHigh._y = 225;
_root.mcNewHigh._rotation = -30;
_root.mcNewHigh.onRelease = function () {
unloadMovie (this);
scoreTable = _root.attachMovie("mcScoreTable", "mcScoreTable", 9000);
mcScoreTable.btnBack._visible = false;
highScoreScores.splice(_root.scorePos, 0, summaryScore);
highScoreNames.splice(_root.scorePos, 0, "");
scoreTable.mcScoreEingabe.btnSubmit.onRelease = addScore;
setScoreTable();
};
}
function setScoreTable() {
var _local2 = 0;
while (_local2 < 10) {
_root.mcScoreTable.mcTable["txtName" + _local2].text = highScoreNames[_local2];
_root.mcScoreTable.mcTable["txtScore" + _local2].text = highScoreScores[_local2];
_local2++;
}
}
function addScore() {
if (_root.mcScoreTable.mcScoreEingabe.txtPlayerName.text.length > 1) {
_root.mcScoreTable.mcScoreEingabe.btnSubmit.enabled = false;
var _local2 = _root.mcScoreTable.mcScoreEingabe.txtPlayerName.text;
highScoreNames[_root.scorePos] = _local2;
_root.mcScoreTable.mcScoreEingabe.alphaTo(0, 1, "easeoutCirc");
_root.mcScoreTable.mcTable.slideTo(150, 20, 2, "easeinCirc");
_root.mcButtons.btnReset._alpha = 0;
_root.mcButtons.btnReset._visible = true;
_root.mcButtons.btnReset.alphaTo(100, 2, "easeinCirc");
_root.mcButtons.btnReset.swapDepths(9001);
_root.mcButtons.btnReset.alphaTo(100, 2, "easeinCirc");
sendHighScore(_local2);
setScoreTable();
}
}
function sendHighScore(newName) {
sendVars = new LoadVars();
sendVars.playerName = newName;
sendVars.playerScore = summaryScore;
sendVars.sendAndLoad("setHighscore.php", sendVars, "POST");
trace(sendVars);
}
system.useCodepage = false;
Stage.scaleMode = "noScale";
var music;
_root.music = new Sound();
_root.music.attachSound("musicalScore");
_root.music.start(0, 1);
_root.loose = false;
sound = true;
var scoreVars;
var highScoreNames;
var highScoreScores;
_root.mcButtons.btnReset.onRelease = function () {
reset();
};
weaponButtonUp = function (btnName, count, toAdd) {
_root[btnName].onRelease = function () {
_root[count] = eval (count) + toAdd;
_root.cheat = true;
};
};
weaponButtonUp("btnEggUp", "eggCount", 100);
weaponButtonUp("btnStoneUp", "stoneCount", 50);
weaponButtonUp("btnCrackerUp", "crackerCount", 20);
weaponButtonUp("btnMolotovUp", "molotovCount", 10);
btnCops.onRelease = function () {
makeCops(1);
};
mcBtnSound.btnSoundOf.enabled = false;
mcButtons.btnHighscore.onRelease = function () {
_root.attachMovie("mcScoreTable", "mcScoreTable", 9001);
mcScoreTable.mcScoreEingabe._visible = false;
mcScoreTable.mcTable._x = 150;
i = 0;
while (i < 10) {
_root.mcScoreTable.mcTable["txtName" + i].text = highScoreNames[i];
_root.mcScoreTable.mcTable["txtScore" + i].text = highScoreScores[i];
i++;
}
this._parent.btnReset._visible = false;
this.enabled = false;
mcScoreTable.btnBack._visible = true;
mcScoreTable.btnBack.onRelease = function () {
_root.mcScoreTable.removeMovieClip();
_root.mcButtons.btnHighscore.enabled = true;
_root.mcButtons.btnReset._visible = true;
};
};
init();
stop();
var newHigh = false;
var eggBonus = 5;
var stoneBonus = 10;
var crackerBonus = 40;
var molotovBonus = 100;
var playerBonus = 150;
var weaponBonus = 0;
var eggScoreCount = 0;
var stoneScoreCount = 0;
var crackerScoreCount = 0;
var molotovScoreCount = 0;
var pcScore = 0;
var summaryScore = 0;
var eggOld;
var stoneOld;
var crackerOld;
var molotovOld;
var playerOld;
var w = 0;
if (_global.$tweenManager == undefined) {
_global.$tweenManager = new zigo.tweenManager();
} else {
_global.$tweenManager.playing = false;
}
com.robertpenner.easing.Back;
com.robertpenner.easing.Bounce;
com.robertpenner.easing.Circ;
com.robertpenner.easing.Cubic;
com.robertpenner.easing.Elastic;
com.robertpenner.easing.Expo;
com.robertpenner.easing.Linear;
com.robertpenner.easing.Quad;
com.robertpenner.easing.Quart;
com.robertpenner.easing.Quint;
com.robertpenner.easing.Sine;
var Mp = MovieClip.prototype;
Mp.addListener = function () {
if (!this._listeners) {
AsBroadcaster.initialize(this);
}
this.addListener.apply(this, arguments);
};
ASSetPropFlags(Mp, "addListener", 1, 0);
Mp.tween = function (props, pEnd, seconds, animType, delay, callback, extra1, extra2) {
if (_global.$tweenManager.isTweenLocked(this)) {
trace("tween not added, this movieclip is locked");
return(undefined);
}
if (arguments.length < 2) {
trace("tween not added, props & pEnd must be defined");
return(undefined);
}
if (typeof(props) == "string") {
props = [props];
}
if (pEnd.length == undefined) {
pEnd = [pEnd];
}
if (seconds == undefined) {
seconds = 2;
} else if (seconds < 0.01) {
seconds = 0;
}
if ((delay < 0.01) || (delay == undefined)) {
delay = 0;
}
switch (typeof(animType)) {
case "string" :
animType = animType.toLowerCase();
if (animType == "linear") {
var eqf = com.robertpenner.easing.Linear.easeNone;
} else if (animType.indexOf("easeoutin") == 0) {
var t = animType.substr(9);
t = t.charAt(0).toUpperCase() + t.substr(1);
var eqf = com.robertpenner.easing[t].easeOutIn;
} else if (animType.indexOf("easeinout") == 0) {
var t = animType.substr(9);
t = t.charAt(0).toUpperCase() + t.substr(1);
var eqf = com.robertpenner.easing[t].easeInOut;
} else if (animType.indexOf("easein") == 0) {
var t = animType.substr(6);
t = t.charAt(0).toUpperCase() + t.substr(1);
var eqf = com.robertpenner.easing[t].easeIn;
} else if (animType.indexOf("easeout") == 0) {
var t = animType.substr(7);
t = t.charAt(0).toUpperCase() + t.substr(1);
var eqf = com.robertpenner.easing[t].easeOut;
}
if (eqf == undefined) {
var eqf = com.robertpenner.easing.Expo.easeOut;
}
break;
case "function" :
var eqf = animType;
break;
case "object" :
if ((animType.ease != undefined) && (animType.pts != undefined)) {
var eqf = animType.ease;
extra1 = animType.pts;
} else {
var eqf = com.robertpenner.easing.Expo.easeOut;
}
break;
default :
var eqf = com.robertpenner.easing.Expo.easeOut;
}
switch (typeof(callback)) {
case "function" :
callback = {func:callback, scope:this._parent};
break;
case "string" :
var ilp;
var funcp;
var scope;
var args;
var a;
ilp = callback.indexOf("(");
funcp = callback.slice(0, ilp);
scope = eval (funcp.slice(0, funcp.lastIndexOf(".")));
func = eval (funcp);
args = callback.slice(ilp + 1, callback.lastIndexOf(")")).split(",");
var i = 0;
while (i < args.length) {
a = eval (args[i]);
if (a != undefined) {
args[i] = a;
}
i++;
}
callback = {func:func, scope:scope, args:args};
}
if (_global.$tweenManager.autoStop) {
_global.$tweenManager.removeTween(this, props);
}
if (delay > 0) {
_global.$tweenManager.addTweenWithDelay(delay, this, props, pEnd, seconds, eqf, callback, extra1, extra2);
} else {
_global.$tweenManager.addTween(this, props, pEnd, seconds, eqf, callback, extra1, extra2);
}
};
ASSetPropFlags(Mp, "tween", 1, 0);
Mp.stopTween = function (props) {
if (typeof(props) == "string") {
props = [props];
}
_global.$tweenManager.removeTween(this, props);
};
ASSetPropFlags(Mp, "stopTween", 1, 0);
Mp.isTweening = function () {
return(_global.$tweenManager.isTweening(this));
};
ASSetPropFlags(Mp, "isTweening", 1, 0);
Mp.getTweens = function () {
return(_global.$tweenManager.getTweens(this));
};
ASSetPropFlags(Mp, "getTweens", 1, 0);
Mp.lockTween = function () {
_global.$tweenManager.lockTween(this, true);
};
ASSetPropFlags(Mp, "lockTween", 1, 0);
Mp.unlockTween = function () {
_global.$tweenManager.lockTween(this, false);
};
ASSetPropFlags(Mp, "unlockTween", 1, 0);
Mp.isTweenLocked = function () {
return(_global.$tweenManager.isTweenLocked(this));
};
ASSetPropFlags(Mp, "isTweenLocked", 1, 0);
Mp.alphaTo = function (destAlpha, seconds, animType, delay, callback, extra1, extra2) {
this.tween(["_alpha"], [destAlpha], seconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(Mp, "alphaTo", 1, 0);
Mp.brightnessTo = function (bright, seconds, animType, delay, callback, extra1, extra2) {
var _local3 = 100 - Math.abs(bright);
var _local2 = 0;
if (bright > 0) {
_local2 = 256 * (bright / 100);
}
var _local5 = {ra:_local3, rb:_local2, ga:_local3, gb:_local2, ba:_local3, bb:_local2};
this.tween(["_ct_"], [_local5], seconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(Mp, "brightnessTo", 1, 0);
Mp.colorTo = function (destColor, seconds, animType, delay, callback, extra1, extra2) {
var _local3;
if ((destColor == undefined) || (destColor == null)) {
_local3 = {rb:0, ra:100, gb:0, ga:100, bb:0, ba:100};
} else {
_local3 = {rb:destColor >> 16, ra:0, gb:(destColor & 65280) >> 8, ga:0, bb:destColor & 255, ba:0};
}
this.tween(["_ct_"], [_local3], seconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(Mp, "colorTo", 1, 0);
Mp.colorTransformTo = function (ra, rb, ga, gb, ba, bb, aa, ab, seconds, animType, delay, callback, extra1, extra2) {
var _local2 = {ra:ra, rb:rb, ga:ga, gb:gb, ba:ba, bb:bb, aa:aa, ab:ab};
this.tween(["_ct_"], [_local2], seconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(Mp, "colorTransformTo", 1, 0);
Mp.scaleTo = function (destScale, seconds, animType, delay, callback, extra1, extra2) {
this.tween(["_xscale", "_yscale"], [destScale, destScale], seconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(Mp, "scaleTo", 1, 0);
Mp.slideTo = function (destX, destY, seconds, animType, delay, callback, extra1, extra2) {
this.tween(["_x", "_y"], [destX, destY], seconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(Mp, "slideTo", 1, 0);
Mp.rotateTo = function (destRotation, seconds, animType, delay, callback, extra1, extra2) {
this.tween(["_rotation"], [destRotation], seconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(Mp, "rotateTo", 1, 0);
Mp.getFrame = function () {
return(this._currentframe);
};
ASSetPropFlags(Mp, "getFrame", 1, 0);
Mp.setFrame = function (fr) {
this.gotoAndStop(Math.round(fr));
};
ASSetPropFlags(Mp, "setFrame", 1, 0);
Mp.addProperty("_frame", Mp.getFrame, Mp.setFrame);
ASSetPropFlags(Mp, "_frame", 1, 0);
Mp.frameTo = function (endframe, duration, animType, delay, callback, extra1, extra2) {
if (endframe == undefined) {
endframe = this._totalframes;
}
this.tween("_frame", endframe, duration, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(Mp, "frameTo", 1, 0);
Mp.brightOffsetTo = function (percent, seconds, animType, delay, callback, extra1, extra2) {
var _local2 = 256 * (percent / 100);
var _local3 = {ra:100, rb:_local2, ga:100, gb:_local2, ba:100, bb:_local2};
this.tween(["_ct_"], [_local3], seconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(Mp, "brightOffsetTo", 1, 0);
Mp.contrastTo = function (percent, seconds, animType, delay, callback, extra1, extra2) {
var _local2 = {};
_local2.ra = (_local2.ga = (_local2.ba = percent));
_local2.rb = (_local2.gb = (_local2.bb = 128 - (1.28 * percent)));
this.tween(["_ct_"], [_local2], seconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(Mp, "contrastTo", 1, 0);
delete Mp;
stop();
Symbol 56 MovieClip [mcWon] Frame 1
btnWeiter.onRelease = function () {
this._parent.gotoAndStop(2);
_root.mcAssets.mcScore._visible = false;
_root.finalStats();
_root.checkHighscore();
};
stop();
Symbol 56 MovieClip [mcWon] Frame 2
btnScoreNext.onRelease = function () {
_root.mcWon.gotoAndStop(3);
_root.playerScore();
};
stop();
Symbol 56 MovieClip [mcWon] Frame 3
btnScoreNext.onRelease = function () {
_root.mcWon.gotoAndStop(4);
_root.endScore();
};
stop();
Symbol 56 MovieClip [mcWon] Frame 4
stop();
Symbol 58 MovieClip [mcEggSplat] Frame 1
stop();
Symbol 69 MovieClip [mcNewHigh] Frame 105
this.gotoAndPlay(26);
Symbol 629 MovieClip [__Packages.Egg] Frame 0
class Egg extends MovieClip
{
var sndSplat, _v, _a, hitTest, removeMovieClip, onEnterFrame, _x, _y;
function Egg () {
super();
if (_root.sound == true) {
sndSplat = new Sound();
sndSplat.attachSound("egg_splat");
}
_v = 20;
_a = -40;
}
function haveIHit() {
if (!iHaveHit) {
for (var _local3 in _root.cops) {
if (hitTest(_root.cops[_local3].mcHit)) {
iHaveHit = true;
if (_root.sound == true) {
sndSplat.start();
}
_root.cops[_local3].eggHit();
removeMovieClip();
}
}
}
}
function increaseVelocity() {
if (_v <= 70) {
_root.mcPowerMask._xscale = _root.mcPowerMask._xscale + 2;
_v++;
} else if (!thrown) {
throwIt();
}
}
function stopIt() {
delete onEnterFrame;
}
function throwIt() {
thrown = true;
_root.mcPowerMask._xscale = 0;
var startXposition = _x;
var startYposition = _y;
var t = 0;
onEnterFrame = function () {
if ((this._y < 230) && (!this.iHaveHit)) {
this.haveIHit();
t = t + 0.5;
this._rotation = this._rotation + 20;
this._x = startXposition + ((Math.cos((Math.PI/180) * this._a) * this._v) * t);
this._y = (startYposition + ((Math.sin((Math.PI/180) * this._a) * this._v) * t)) - ((-4.905 * t) * t);
} else if (this._x <= -25) {
(this.removeMovieClip());// not popped
} else {
if (!this.splatPlaying) {
if (_root.sound == true) {
this.sndSplat.start();
}
}
this.splatPlaying = true;
(this.gotoAndStop(2));// not popped
this._rotation = 0;
this._x = this._x - _root.gamespeed;
if (this._y > 240) {
this._y = 240;
}
}
};
}
var thrown = false;
var iHaveHit = false;
var splatPlaying = false;
}
Symbol 630 MovieClip [__Packages.Molotov] Frame 0
class Molotov extends MovieClip
{
var sndExplode, _v, _a, hitTest, _x, _y, onEnterFrame, _rotation, gotoAndPlay;
function Molotov () {
super();
if (_root.sound == true) {
sndExplode = new Sound();
sndExplode.attachSound("molotov_explode");
}
_v = 20;
_a = -40;
}
function haveIHit() {
if (iHaveHit == false) {
for (var _local3 in _root.cops) {
if (hitTest(_root.cops[_local3].mcHit)) {
iHaveHit = true;
explode();
}
}
}
}
function increaseVelocity() {
if (_v <= 70) {
_root.mcPowerMask._xscale = _root.mcPowerMask._xscale + 2;
_v++;
trace(_v);
} else if (!thrown) {
throwIt();
}
}
function throwIt() {
thrown = true;
_root.mcPowerMask._xscale = 0;
var startXposition = _x;
var startYposition = _y;
var t = 0;
onEnterFrame = function () {
if (this._y < 230) {
this.haveIHit();
t = t + 0.5;
this._rotation = this._rotation + 20;
this._x = startXposition + ((Math.cos((Math.PI/180) * this._a) * this._v) * t);
this._y = (startYposition + ((Math.sin((Math.PI/180) * this._a) * this._v) * t)) - ((-4.905 * t) * t);
} else if (this._x <= -25) {
(this.removeMovieClip());// not popped
} else {
this.explode();
}
};
}
function explode() {
if (_root.sound == true) {
sndExplode.start();
}
delete onEnterFrame;
_rotation = 0;
gotoAndPlay(2);
for (var _local3 in _root.cops) {
if (hitTest(_root.cops[_local3])) {
_root.cops[_local3].getDown("moliHit");
}
}
for (var _local3 in _root.players) {
if (hitTest(_root.players[_local3])) {
_root.players[_local3].getDownBySelf();
}
}
}
var thrown = false;
var iHaveHit = false;
}
Symbol 631 MovieClip [__Packages.Player] Frame 0
class Player extends MovieClip
{
var _x, _y, _rotation, stop, onEnterFrame;
function Player () {
super();
_x = 7;
_y = 235;
_root.createPlayerCount++;
}
function getDown() {
if (!iAmHit) {
iAmHit = true;
_rotation = 270;
_y = _y - 20;
_root.playerCount--;
_root.checkPlayers();
(stop());// not popped
onEnterFrame = function () {
this._x = this._x - _root.gamespeed;
if (this._x < 60) {
this.removeMovieClip();
}
};
}
}
var iAmHit = false;
}
Symbol 632 MovieClip [__Packages.Stone] Frame 0
class Stone extends MovieClip
{
var sndClonk, sndClonk2, sndHit, _v, _a, _x, _y, hitTest, vNew, onEnterFrame;
function Stone () {
super();
if (_root.sound == true) {
sndClonk = new Sound();
sndClonk.attachSound("stone_clonk");
sndClonk2 = new Sound();
sndClonk2.attachSound("stone_clonk2");
sndHit = new Sound();
sndHit.attachSound("stone_hit");
}
_v = 20;
_a = -40;
_x = 10;
_y = 200;
}
function haveIHit() {
if (iHaveHit == false) {
for (var _local3 in _root.cops) {
if (hitTest(_root.cops[_local3].mcHit) && (iHaveHit == false)) {
iHaveHit = true;
_root.cops[_local3].getDown("stoneHit");
if (_root.sound == true) {
sndHit.start();
}
vNew = Math.round(_v / 2);
bounce();
}
}
}
}
function increaseVelocity() {
if (_v <= 70) {
_root.mcPowerMask._xscale = _root.mcPowerMask._xscale + 2;
_v++;
} else if (!thrown) {
throwIt();
}
}
function stopIt() {
delete onEnterFrame;
}
function bounce() {
var startXposition = _x;
var startYposition = _y;
var t = 0;
if (iHaveHit) {
vNew = vNew * -1;
}
onEnterFrame = function () {
t = t + 0.5;
if (!this.iHaveStopped) {
this._x = startXposition + ((Math.cos((Math.PI/180) * this._a) * this.vNew) * t);
this._y = (startYposition + ((Math.sin((Math.PI/180) * this._a) * this.vNew) * t)) - ((-4.905 * t) * t);
}
if (this._y >= 240) {
if (!this.iHaveStopped) {
if (_root.sound == true) {
this.sndClonk2.start();
}
}
this.iHaveStopped = true;
this._x--;
if (this._x <= -25) {
(this.removeMovieClip());// not popped
}
this._y = 240;
}
};
}
function throwIt() {
thrown = true;
_root.mcPowerMask._xscale = 0;
var startXposition = _x;
var startYposition = _y;
var t = 0;
onEnterFrame = function () {
if ((this._y < 230) && (!this.iHaveHit)) {
this.haveIHit();
t = t + 0.5;
this._rotation = this._rotation + 20;
this._x = startXposition + ((Math.cos((Math.PI/180) * this._a) * this._v) * t);
this._y = (startYposition + ((Math.sin((Math.PI/180) * this._a) * this._v) * t)) - ((-4.905 * t) * t);
} else {
delete this.onEnterFrame;
if (_root.sound == true) {
this.sndClonk.start();
}
this.vNew = Math.round(this._v / 2);
this.bounce();
if (this._y > 245) {
this._y = 245;
}
}
};
}
var thrown = false;
var iHaveHit = false;
var iHaveStopped = false;
}
Symbol 633 MovieClip [__Packages.Cop] Frame 0
class Cop extends MovieClip
{
var _x, _y, _yscale, onEnterFrame, toArrest, removeMovieClip, getDepth, _name, _parent, mcZusatz, attachMovie;
function Cop () {
super();
_x = 550;
_y = 250;
_yscale = 90 + random(10);
}
function getMovin() {
onEnterFrame = function () {
this._x = this._x - _root.gamespeed;
if ((!this.iAmHit) and (!this.haveIArrested)) {
for (var _local3 in _root.players) {
if (this.hitTest(_root.players[_local3]) && (!_root.players[_local3].iAmHit)) {
this.toArrest = _root.players[_local3];
this.arrest();
this.haveIArrested = true;
break;
}
}
}
if (this._x <= -60) {
this.removeMovieClip();
}
};
}
function stopIt() {
delete onEnterFrame;
}
function arrest() {
toArrest.getDown("eggHit");
removeMovieClip();
}
function getDown(action) {
if (!iAmHit) {
iAmHit = true;
_root.score = _root.score + 10;
if (action == "stoneHit") {
var mcLayer = getDepth();
var mcName = _name;
var _local7 = _x;
var _local6 = _y;
_parent.attachMovie("mcBulleKomaAnimation", mcName, mcLayer);
_parent[mcName]._y = _local6 - 14;
_parent[mcName]._yscale = 80;
_parent[mcName]._xscale = 80;
_parent[mcName]._x = _local7;
_parent[mcName].onEnterFrame = function () {
if (_root.loose == false) {
this._parent[mcName]._x = this._parent[mcName]._x - _root.gamespeed;
if (this._x <= -60) {
this.removeMovieClip();
}
} else {
delete this._parent[mcName].onEnterFrame;
}
};
} else if (action == "boellerHit") {
var mcLayer = getDepth();
var mcName = _name;
var _local7 = _x;
var _local6 = _y;
_parent.attachMovie("mcBulleBoellerAni", mcName, mcLayer);
_parent[mcName]._y = _local6 - 14;
_parent[mcName]._yscale = 80;
_parent[mcName]._xscale = 80;
_parent[mcName]._x = _local7;
_parent[mcName].onEnterFrame = function () {
if (_root.loose == false) {
this._parent[mcName]._x = this._parent[mcName]._x - _root.gamespeed;
if (this._x <= -60) {
this.removeMovieClip();
}
} else {
delete this._parent[mcName].onEnterFrame;
}
};
} else if ((action == "eggHit") or (action == "moliHit")) {
var mcLayer = getDepth();
var mcName = _name;
trace(mcName);
var _local5 = _x;
var _local4 = _y;
delete onEnterFrame;
var copGo = 0;
_parent.createEmptyMovieClip(mcName, mcLayer);
_parent[mcName].attachMovie("mcBulle_go1", "mcBulleGo", mcLayer * 100);
if (action == "moliHit") {
_parent[mcName].attachMovie("mcFlamme", "mcZusatz", mcLayer * 10);
}
if (action == "eggHit") {
mcZusatz._xscale = mcZusatz._xscale * -1;
mcZusatz._x = 12;
trace(mcZusatz);
}
_parent[mcName]._x = _local5;
_parent[mcName]._y = _local4;
_parent[mcName].onEnterFrame = function () {
if (_root.loose == false) {
if (copGo == 2) {
this.attachMovie("mcCop_go3", "mcBulleGo", mcLayer * 100);
trace(this.mcZusatz);
}
if (copGo == 3) {
this.attachMovie("mcBulle_go2", "mcBulleGo", mcLayer * 100);
this._x = this._x + 8;
}
if (copGo == 5) {
this.attachMovie("mcCop_go3", "mcBulleGo", mcLayer * 100);
}
if (copGo == 6) {
this.attachMovie("mcBulle_go1", "mcBulleGo", mcLayer * 100);
this._x = this._x + 8;
copGo = 0;
if (this._x >= 600) {
this.removeMovieClip();
}
}
} else {
delete this._parent[mcName].onEnterFrame;
}
copGo++;
};
}
}
}
function eggHit() {
var _local2 = getDepth();
attachMovie("mcEggSplat", "mcZusatz", _local2 * 200);
mcZusatz._x = 6;
mcZusatz._y = -65;
eggHitCount++;
if (eggHitCount >= 2) {
getDown("eggHit");
}
}
var iAmHit = false;
var haveIArrested = false;
var eggHitCount = 0;
}
Symbol 634 MovieClip [__Packages.Cracker] Frame 0
class Cracker extends MovieClip
{
var _v, _a, sndFuse, sndExplode, lunte, createEmptyMovieClip, _x, _y, onEnterFrame, _rotation, gotoAndPlay, hitTest;
function Cracker () {
super();
_v = 20;
_a = -40;
if (_root.sound == true) {
sndFuse = new Sound();
sndFuse.attachSound("fuse");
sndFuse.start(0, 10);
sndExplode = new Sound();
sndExplode.attachSound("cracker_explode");
}
lunte = createEmptyMovieClip("mcLunte", 1);
trace(lunte);
lunte.timer = timer;
lunte.onEnterFrame = function () {
this.timer++;
if (this.timer >= 75) {
delete this.onEnterFrame;
this._parent.explode();
}
};
}
function increaseVelocity() {
if (_v <= 70) {
_root.mcPowerMask._xscale = _root.mcPowerMask._xscale + 2;
_v++;
} else if (!thrown) {
throwIt();
}
}
function throwIt() {
thrown = true;
_root.mcPowerMask._xscale = 0;
var startXposition = _x;
var startYposition = _y;
var t = 0;
onEnterFrame = function () {
if (this._y < 230) {
t = t + 0.5;
this._rotation = this._rotation + 20;
this._x = startXposition + ((Math.cos((Math.PI/180) * this._a) * this._v) * t);
this._y = (startYposition + ((Math.sin((Math.PI/180) * this._a) * this._v) * t)) - ((-4.905 * t) * t);
} else if (this._x <= -25) {
(this.removeMovieClip());// not popped
} else {
this._x = this._x - _root.gamespeed;
if (this._y > 240) {
this._y = 240;
}
}
};
}
function explode() {
if (_root.sound == true) {
sndFuse.stop("fuse");
sndExplode.start();
}
_rotation = 0;
gotoAndPlay(2);
if (hitCount < maxHit) {
for (var _local3 in _root.cops) {
if ((hitTest(_root.cops[_local3]) && (hitCount < maxHit)) && (_root.cops[_local3].iAmHit == false)) {
_root.cops[_local3].getDown("boellerHit");
hitCount++;
trace(hitCount);
}
}
for (var _local3 in _root.players) {
trace(typeof(_root.players[_local3].iAmHit));
if ((hitTest(_root.players[_local3]) && (hitCount < maxHit)) && (_root.players[_local3].iAmHit == false)) {
_root.players[_local3].getDownBySelf();
hitCount++;
}
}
}
}
var thrown = false;
var iHaveHit = false;
var hitCount = 0;
var maxHit = 3;
var timer = 0;
}
Symbol 635 MovieClip [__Packages.com.robertpenner.easing.Quad] Frame 0
class com.robertpenner.easing.Quad
{
function Quad () {
}
static function easeIn(t, b, c, d) {
t = t / d;
return(((c * t) * t) + b);
}
static function easeOut(t, b, c, d) {
t = t / d;
return((((-c) * t) * (t - 2)) + b);
}
static function easeInOut(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return((((c / 2) * t) * t) + b);
}
t--;
return((((-c) / 2) * ((t * (t - 2)) - 1)) + b);
}
static function easeOutIn(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
t--;
return((((-c) / 2) * ((t * t) - 1)) + b);
}
t--;
return(((c / 2) * ((t * t) + 1)) + b);
}
}
Symbol 636 MovieClip [__Packages.com.robertpenner.easing.Circ] Frame 0
class com.robertpenner.easing.Circ
{
function Circ () {
}
static function easeIn(t, b, c, d) {
t = t / d;
return(((-c) * (Math.sqrt(1 - (t * t)) - 1)) + b);
}
static function easeOut(t, b, c, d) {
t = (t / d) - 1;
return((c * Math.sqrt(1 - (t * t))) + b);
}
static function easeInOut(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return((((-c) / 2) * (Math.sqrt(1 - (t * t)) - 1)) + b);
}
t = t - 2;
return(((c / 2) * (Math.sqrt(1 - (t * t)) + 1)) + b);
}
static function easeOutIn(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
t--;
return(((c / 2) * Math.sqrt(1 - (t * t))) + b);
}
t--;
return(((c / 2) * (2 - Math.sqrt(1 - (t * t)))) + b);
}
}
Symbol 637 MovieClip [__Packages.com.robertpenner.easing.Quart] Frame 0
class com.robertpenner.easing.Quart
{
function Quart () {
}
static function easeIn(t, b, c, d) {
t = t / d;
return(((((c * t) * t) * t) * t) + b);
}
static function easeOut(t, b, c, d) {
t = (t / d) - 1;
return(((-c) * ((((t * t) * t) * t) - 1)) + b);
}
static function easeInOut(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return((((((c / 2) * t) * t) * t) * t) + b);
}
t = t - 2;
return((((-c) / 2) * ((((t * t) * t) * t) - 2)) + b);
}
static function easeOutIn(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
t--;
return((((-c) / 2) * ((((t * t) * t) * t) - 1)) + b);
}
t--;
return(((c / 2) * ((((t * t) * t) * t) + 1)) + b);
}
}
Symbol 638 MovieClip [__Packages.com.robertpenner.easing.Sine] Frame 0
class com.robertpenner.easing.Sine
{
function Sine () {
}
static function easeIn(t, b, c, d) {
return((((-c) * Math.cos((t / d) * (Math.PI/2))) + c) + b);
}
static function easeOut(t, b, c, d) {
return((c * Math.sin((t / d) * (Math.PI/2))) + b);
}
static function easeInOut(t, b, c, d) {
return((((-c) / 2) * (Math.cos((Math.PI * t) / d) - 1)) + b);
}
static function easeOutIn(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return(((c / 2) * Math.sin((Math.PI * t) / 2)) + b);
}
t--;
return((((-c) / 2) * (Math.cos((Math.PI * t) / 2) - 2)) + b);
}
}
Symbol 639 MovieClip [__Packages.com.robertpenner.easing.Back] Frame 0
class com.robertpenner.easing.Back
{
function Back () {
}
static function easeIn(t, b, c, d, s) {
if (s == undefined) {
s = 1.70158;
}
t = t / d;
return((((c * t) * t) * (((s + 1) * t) - s)) + b);
}
static function easeOut(t, b, c, d, s) {
if (s == undefined) {
s = 1.70158;
}
t = (t / d) - 1;
return((c * (((t * t) * (((s + 1) * t) + s)) + 1)) + b);
}
static function easeInOut(t, b, c, d, s) {
if (s == undefined) {
s = 1.70158;
}
t = t / (d / 2);
if (t < 1) {
s = s * 1.525;
return(((c / 2) * ((t * t) * (((s + 1) * t) - s))) + b);
}
t = t - 2;
s = s * 1.525;
return(((c / 2) * (((t * t) * (((s + 1) * t) + s)) + 2)) + b);
}
static function easeOutIn(t, b, c, d, s) {
if (s == undefined) {
s = 1.70158;
}
t = t / (d / 2);
if (t < 1) {
t--;
s = s * 1.525;
return(((c / 2) * (((t * t) * (((s + 1) * t) + s)) + 1)) + b);
}
t--;
s = s * 1.525;
return(((c / 2) * (((t * t) * (((s + 1) * t) - s)) + 1)) + b);
}
}
Symbol 640 MovieClip [__Packages.com.robertpenner.easing.Quint] Frame 0
class com.robertpenner.easing.Quint
{
function Quint () {
}
static function easeIn(t, b, c, d) {
t = t / d;
return((((((c * t) * t) * t) * t) * t) + b);
}
static function easeOut(t, b, c, d) {
t = (t / d) - 1;
return((c * (((((t * t) * t) * t) * t) + 1)) + b);
}
static function easeInOut(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return(((((((c / 2) * t) * t) * t) * t) * t) + b);
}
t = t - 2;
return(((c / 2) * (((((t * t) * t) * t) * t) + 2)) + b);
}
static function easeOutIn(t, b, c, d) {
t = t / (d / 2);
t--;
return(((c / 2) * (((((t * t) * t) * t) * t) + 1)) + b);
}
}
Symbol 641 MovieClip [__Packages.CSetPlayer] Frame 0
class CSetPlayer
{
var _nLayer, mcNameFigureHandWurf01, mcNameFigureHandWurf02, mcNameFigureHandWurf03, mcNameFigureHand01, mcNameFigureHand02, mcNameFigureHand03, mcNameFigureKopf, mcNameFigureOben, mcNameFigureUntenGo1, mcNameFigureUntenGo2, mcNameFigureUntenStand, _nGo;
function CSetPlayer (nLayer, mcName, mcFigureNumber, mcXPos, mcYPos, xZusatz, scaleVal, nGo) {
aMcNameArray.push(mcName);
var _local6 = _root.players.createEmptyMovieClip(mcName, nLayer);
var ref = this;
_root.players[mcName]._x = (mcXPosAbstand * mcXPos) + xZusatz;
_root.players[mcName]._y = _root.players[mcName]._y - mcYPos;
_root.players[mcName]._xscale = scaleVal;
_root.players[mcName]._yscale = scaleVal;
_root.players[mcName].createEmptyMovieClip("mcKoerper", nLayer + 500);
_root.players[mcName].createEmptyMovieClip("mcGo", nLayer + 600);
_root.players[mcName].createEmptyMovieClip("mcWurf", nLayer + 700);
_root.players[mcName].createEmptyMovieClip("mcKampf", nLayer + 800);
_nLayer = nLayer;
_root.players[mcName].sndFight = new Sound();
_root.players[mcName].sndFight.attachSound("fight");
_root.players[mcName].iAmHit = false;
mcNameFigureHandWurf01 = ("mc" + mcFigureNumber) + "_hand_wurf_01";
mcNameFigureHandWurf02 = ("mc" + mcFigureNumber) + "_hand_wurf_02";
mcNameFigureHandWurf03 = ("mc" + mcFigureNumber) + "_hand_wurf_03";
mcNameFigureHand01 = ("mc" + mcFigureNumber) + "_Hand_01";
mcNameFigureHand02 = ("mc" + mcFigureNumber) + "_Hand_02";
mcNameFigureHand03 = ("mc" + mcFigureNumber) + "_Hand_03";
mcNameFigureKopf = ("mc" + mcFigureNumber) + "_kopf";
mcNameFigureOben = ("mc" + mcFigureNumber) + "_oben";
mcNameFigureUntenGo1 = ("mc" + mcFigureNumber) + "_unten_go1";
mcNameFigureUntenGo2 = ("mc" + mcFigureNumber) + "_unten_go2";
mcNameFigureUntenStand = ("mc" + mcFigureNumber) + "_unten_stand";
_root.players[mcName].mcWurf.attachMovie(mcNameFigureHandWurf01, "mcFigureHandWurf01", nLayer + 1);
_root.players[mcName].mcWurf.attachMovie(mcNameFigureHandWurf02, "mcFigureHandWurf02", nLayer + 2);
_root.players[mcName].mcWurf.attachMovie(mcNameFigureHandWurf03, "mcFigureHandWurf03", nLayer + 3);
_root.players[mcName].mcWurf.mcFigureHandWurf01._visible = false;
_root.players[mcName].mcWurf.mcFigureHandWurf02._visible = false;
_root.players[mcName].mcWurf.mcFigureHandWurf03._visible = false;
_root.players[mcName].mcKoerper.attachMovie(mcNameFigureKopf, "mcFigureKopf", nLayer + 4);
_root.players[mcName].mcKoerper.attachMovie(mcNameFigureOben, "mcFigureOben", nLayer);
_root.players[mcName].mcGo.attachMovie(mcNameFigureUntenStand, "mcFigureUntenStand", 601);
_root.players[mcName].mcGo.attachMovie(mcNameFigureHand01, "mcFigureHand01", 602);
_root.players[mcName].stopIt = function () {
delete this.onEnterFrame;
};
_root.players[mcName].getDown = function () {
if (!this.iAmHit) {
delete this.onEnterFrame;
var _local3;
_local3 = 0;
while (_local3 < CSetPlayer.aMcNameArray.length) {
if (CSetPlayer.aMcNameArray[_local3] == mcName) {
trace(mcName);
CSetPlayer.aMcNameArray.splice(_local3, 1);
}
_local3++;
}
this.iAmHit = true;
this.mcKampf.attachMovie("mcKampfAction", "mcKampfAction", 900);
this.mcGo._visible = false;
if (_root.sound == true) {
this.sndFight.start("fight");
}
this.mcKoerper._visible = false;
this.onEnterFrame = function () {
if (this.mcKampf.mcKampfAction.action == true) {
this.mcKampf.mcKampfAction.action = false;
removeMovieClip(this.mcKampf.mcKampfAction);
this.mcGo._visible = true;
this.mcKoerper._visible = true;
this.mcKoerper._rotation = 270;
this.mcGo._rotation = 270;
this._y = this._y + 80;
this.mcKampf.attachMovie("mcBulle_stand_win", "mcBulle_stand_win", 901);
this.mcKampf._y = this.mcKampf._y - 80;
this.mcKampf._x = 10;
}
this._x = this._x - _root.gamespeed;
if (this._x < -60) {
this.removeMovieClip();
}
};
_root.playerCount--;
_root.checkPlayers();
}
};
_root.players[mcName].getDownBySelf = function () {
if (!this.iAmHit) {
delete this.onEnterFrame;
var _local3;
_local3 = 0;
while (_local3 < CSetPlayer.aMcNameArray.length) {
if (CSetPlayer.aMcNameArray[_local3] == mcName) {
trace(mcName);
CSetPlayer.aMcNameArray.splice(_local3, 1);
}
_local3++;
}
this._rotation = 270;
this._y = this._y + 80;
this.iAmHit = true;
this.onEnterFrame = function () {
this._x = this._x - _root.gamespeed;
if (this._x < -60) {
this.removeMovieClip();
}
};
_root.playerCount--;
_root.checkPlayers();
}
};
_nGo = nGo;
_root.players[mcName].nKey = 0;
_root.players[mcName].onEnterFrame = function () {
ref._nGo++;
if (ref._nGo == 10) {
this.mcKoerper._y = this.mcKoerper._y + 1;
removeMovieClip(this.mcGo.mcNameFigureUntenStand);
removeMovieClip(this.mcGo.mcFigureHand01);
this.mcGo.attachMovie(ref.mcNameFigureUntenGo1, "mcFigureUntenGo1", 601);
this.mcGo.attachMovie(ref.mcNameFigureHand02, "mcFigureHand02", 602);
}
if (ref._nGo == 20) {
this.mcKoerper._y = this.mcKoerper._y - 1;
removeMovieClip(this.mcGo.mcFigureUntenGo1);
removeMovieClip(this.mcGo.mcFigureHand02);
this.mcGo.attachMovie(ref.mcNameFigureUntenStand, "mcFigureUntenStand", 601);
this.mcGo.attachMovie(ref.mcNameFigureHand01, "mcFigureHand01", 602);
}
if (ref._nGo == 30) {
this.mcKoerper._y = this.mcKoerper._y + 1;
removeMovieClip(this.mcGo.mcNameFigureUntenStand);
removeMovieClip(this.mcGo.mcFigureHand01);
this.mcGo.attachMovie(ref.mcNameFigureUntenGo2, "mcFigureUntenGo2", 601);
this.mcGo.attachMovie(ref.mcNameFigureHand03, "mcFigureHand03", 602);
}
if (ref._nGo == 40) {
this.mcKoerper._y = this.mcKoerper._y - 1;
removeMovieClip(this.mcGo.mcFigureUntenGo2);
removeMovieClip(this.mcGo.mcFigureHand03);
this.mcGo.attachMovie(ref.mcNameFigureUntenStand, "mcFigureUntenStand", 601);
this.mcGo.attachMovie(ref.mcNameFigureHand01, "mcFigureHand01", 602);
ref._nGo = 0;
}
};
}
static var aMcNameArray = [];
var iAmHit = false;
var mcXPosAbstand = 40;
}
Symbol 642 MovieClip [__Packages.com.robertpenner.easing.Linear] Frame 0
class com.robertpenner.easing.Linear
{
function Linear () {
}
static function easeNone(t, b, c, d) {
return(((c * t) / d) + b);
}
static function easeIn(t, b, c, d) {
return(((c * t) / d) + b);
}
static function easeOut(t, b, c, d) {
return(((c * t) / d) + b);
}
static function easeInOut(t, b, c, d) {
return(((c * t) / d) + b);
}
static function easeOutIn(t, b, c, d) {
return(((c * t) / d) + b);
}
}
Symbol 643 MovieClip [__Packages.com.robertpenner.easing.Expo] Frame 0
class com.robertpenner.easing.Expo
{
function Expo () {
}
static function easeIn(t, b, c, d) {
return(((t == 0) ? (b) : ((c * Math.pow(2, 10 * ((t / d) - 1))) + b)));
}
static function easeOut(t, b, c, d) {
return(((t == d) ? (b + c) : ((c * ((-Math.pow(2, (-10 * t) / d)) + 1)) + b)));
}
static function easeInOut(t, b, c, d) {
if (t == 0) {
return(b);
}
if (t == d) {
return(b + c);
}
t = t / (d / 2);
if (t < 1) {
return(((c / 2) * Math.pow(2, 10 * (t - 1))) + b);
}
t--;
return(((c / 2) * ((-Math.pow(2, -10 * t)) + 2)) + b);
}
static function easeOutIn(t, b, c, d) {
if (t == 0) {
return(b);
}
if (t == d) {
return(b + c);
}
t = t / (d / 2);
if (t < 1) {
return(((c / 2) * ((-Math.pow(2, -10 * t)) + 1)) + b);
}
return(((c / 2) * (Math.pow(2, 10 * (t - 2)) + 1)) + b);
}
}
Symbol 644 MovieClip [__Packages.com.robertpenner.easing.Elastic] Frame 0
class com.robertpenner.easing.Elastic
{
function Elastic () {
}
static function easeIn(t, b, c, d, a, p) {
if (t == 0) {
return(b);
}
t = t / d;
if (t == 1) {
return(b + c);
}
if (!p) {
p = d * 0.3;
}
if ((!a) || (a < Math.abs(c))) {
a = c;
var _local7 = p / 4;
} else {
var _local7 = (p / (Math.PI*2)) * Math.asin(c / a);
}
t = t - 1;
return((-((a * Math.pow(2, 10 * t)) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p))) + b);
}
static function easeOut(t, b, c, d, a, p) {
if (t == 0) {
return(b);
}
t = t / d;
if (t == 1) {
return(b + c);
}
if (!p) {
p = d * 0.3;
}
if ((!a) || (a < Math.abs(c))) {
a = c;
var _local7 = p / 4;
} else {
var _local7 = (p / (Math.PI*2)) * Math.asin(c / a);
}
return((((a * Math.pow(2, -10 * t)) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p)) + c) + b);
}
static function easeInOut(t, b, c, d, a, p) {
if (t == 0) {
return(b);
}
t = t / (d / 2);
if (t == 2) {
return(b + c);
}
if (!p) {
p = d * 0.45;
}
if ((!a) || (a < Math.abs(c))) {
a = c;
var _local7 = p / 4;
} else {
var _local7 = (p / (Math.PI*2)) * Math.asin(c / a);
}
if (t < 1) {
t = t - 1;
return((-0.5 * ((a * Math.pow(2, 10 * t)) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p))) + b);
}
t = t - 1;
return(((((a * Math.pow(2, -10 * t)) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p)) * 0.5) + c) + b);
}
static function easeOutIn(t, b, c, d, a, p) {
if (t == 0) {
return(b);
}
t = t / (d / 2);
if (t == 2) {
return(b + c);
}
if (!p) {
p = d * 0.45;
}
if ((!a) || (a < Math.abs(c))) {
a = c;
var _local7 = p / 4;
} else {
var _local7 = (p / (Math.PI*2)) * Math.asin(c / a);
}
if (t < 1) {
return(((0.5 * ((a * Math.pow(2, -10 * t)) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p))) + (c / 2)) + b);
}
return(((c / 2) + (0.5 * ((a * Math.pow(2, 10 * (t - 2))) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p)))) + b);
}
}
Symbol 645 MovieClip [__Packages.com.robertpenner.easing.Bounce] Frame 0
class com.robertpenner.easing.Bounce
{
function Bounce () {
}
static function easeOut(t, b, c, d) {
t = t / d;
if (t < 0.363636363636364) {
return((c * ((7.5625 * t) * t)) + b);
}
if (t < 0.727272727272727) {
t = t - 0.545454545454545;
return((c * (((7.5625 * t) * t) + 0.75)) + b);
}
if (t < 0.909090909090909) {
t = t - 0.818181818181818;
return((c * (((7.5625 * t) * t) + 0.9375)) + b);
}
t = t - 0.954545454545455;
return((c * (((7.5625 * t) * t) + 0.984375)) + b);
}
static function easeIn(t, b, c, d) {
return((c - easeOut(d - t, 0, c, d)) + b);
}
static function easeInOut(t, b, c, d) {
if (t < (d / 2)) {
return((easeIn(t * 2, 0, c, d) * 0.5) + b);
}
return(((easeOut((t * 2) - d, 0, c, d) * 0.5) + (c * 0.5)) + b);
}
static function easeOutIn(t, b, c, d) {
if (t < (d / 2)) {
return((easeOut(t * 2, 0, c, d) * 0.5) + b);
}
return(((easeIn((t * 2) - d, 0, c, d) * 0.5) + (c * 0.5)) + b);
}
}
Symbol 646 MovieClip [__Packages.zigo.tweenManager] Frame 0
class zigo.tweenManager
{
var playing, isPaused, autoStop, broadcastEvents, autoOverwrite, ints, lockedTweens, tweenList, updateTime, updateIntId, tweenHolder, now, pausedTime;
function tweenManager () {
playing = false;
isPaused = false;
autoStop = false;
broadcastEvents = false;
autoOverwrite = true;
ints = new Array();
lockedTweens = new Object();
tweenList = new Array();
}
function set updateInterval(time) {
if (playing) {
deinit();
updateTime = time;
init();
} else {
updateTime = time;
}
//return(updateInterval);
}
function get updateInterval() {
return(updateTime);
}
function init() {
if (updateTime > 0) {
updateIntId = setInterval(this, "update", updateTime);
} else {
if (tweenHolder._name == undefined) {
tweenHolder = _root.createEmptyMovieClip("_th_", -6789);
}
var tm = this;
tweenHolder.onEnterFrame = function () {
tm.update.call(tm);
};
}
playing = true;
now = getTimer();
}
function deinit() {
playing = false;
clearInterval(updateIntId);
delete tweenHolder.onEnterFrame;
}
function update() {
var _local2;
var _local7;
var _local3;
_local7 = tweenList.length;
if (broadcastEvents) {
var _local4;
var _local6;
_local4 = {};
_local6 = {};
}
while (_local7--) {
_local2 = tweenList[_local7];
if ((_local2.ts + _local2.d) > now) {
if (_local2.ctm == undefined) {
_local2.mc[_local2.pp] = _local2.ef(now - _local2.ts, _local2.ps, _local2.ch, _local2.d, _local2.e1, _local2.e2);
} else {
var _local5 = {};
for (_local3 in _local2.ctm) {
_local5[_local3] = _local2.ef(now - _local2.ts, _local2.stm[_local3], _local2.ctm[_local3], _local2.d, _local2.e1, _local2.e2);
}
_local2.c.setTransform(_local5);
}
if (broadcastEvents) {
if (_local4[targetPath(_local2.mc)] == undefined) {
_local4[targetPath(_local2.mc)] = _local2.mc;
}
}
if (_local2.cb.updfunc != undefined) {
_local2.cb.updfunc.apply(_local2.cb.updscope, _local2.cb.updargs);
}
} else {
if (_local2.ctm == undefined) {
_local2.mc[_local2.pp] = _local2.ps + _local2.ch;
} else {
var _local5 = {};
for (_local3 in _local2.ctm) {
_local5[_local3] = _local2.stm[_local3] + _local2.ctm[_local3];
}
_local2.c.setTransform(_local5);
}
if (broadcastEvents) {
if (_local4[targetPath(_local2.mc)] == undefined) {
_local4[targetPath(_local2.mc)] = _local2.mc;
}
if (_local6[targetPath(_local2.mc)] == undefined) {
_local6[targetPath(_local2.mc)] = _local2.mc;
}
}
if (_local2.cb.updfunc != undefined) {
_local2.cb.updfunc.apply(_local2.cb.updscope, _local2.cb.updargs);
}
if (endt == undefined) {
var endt = new Array();
}
endt.push(_local7);
}
}
for (_local3 in _local4) {
_local4[_local3].broadcastMessage("onTweenUpdate");
}
if (endt != undefined) {
endTweens(endt);
}
for (_local3 in _local6) {
_local6[_local3].broadcastMessage("onTweenEnd");
}
now = getTimer();
if (updateTime > 0) {
updateAfterEvent();
}
}
function endTweens(tid_arr) {
var _local2;
var _local8;
var _local3;
var _local4;
var _local7;
_local2 = [];
_local8 = tid_arr.length;
_local3 = 0;
while (_local3 < _local8) {
_local4 = tweenList[tid_arr[_local3]].cb;
if (_local4 != undefined) {
var _local5 = true;
for (_local7 in _local2) {
if (_local2[_local7] == _local4) {
_local5 = false;
break;
}
}
if (_local5) {
_local2.push(_local4);
}
}
tweenList.splice(tid_arr[_local3], 1);
_local3++;
}
_local3 = 0;
while (_local3 < _local2.length) {
_local2[_local3].func.apply(_local2[_local3].scope, _local2[_local3].args);
_local3++;
}
if (tweenList.length == 0) {
deinit();
}
}
function addTween(mc, props, pEnd, sec, eqFunc, callback, extra1, extra2) {
var _local4;
var _local12;
var _local6;
var _local3;
var _local2;
if (!playing) {
init();
}
for (_local4 in props) {
_local12 = props[_local4];
_local6 = true;
if (_local12.substr(0, 4) != "_ct_") {
if (autoOverwrite) {
for (_local3 in tweenList) {
_local2 = tweenList[_local3];
if ((_local2.mc == mc) && (_local2.pp == _local12)) {
_local2.ps = mc[_local12];
_local2.ch = pEnd[_local4] - mc[_local12];
_local2.ts = now;
_local2.d = sec * 1000;
_local2.ef = eqFunc;
_local2.cb = callback;
_local2.e1 = extra1;
_local2.e2 = extra2;
_local6 = false;
break;
}
}
}
if (_local6) {
tweenList.unshift({mc:mc, pp:_local12, ps:mc[_local12], ch:pEnd[_local4] - mc[_local12], ts:now, d:sec * 1000, ef:eqFunc, cb:callback, e1:extra1, e2:extra2});
}
} else {
var _local16 = new Color(mc);
var _local20 = _local16.getTransform();
var _local19 = {};
for (_local3 in pEnd[_local4]) {
if ((pEnd[_local4][_local3] != _local20[_local3]) && (pEnd[_local4][_local3] != undefined)) {
_local19[_local3] = pEnd[_local4][_local3] - _local20[_local3];
}
}
if (autoOverwrite) {
for (_local3 in tweenList) {
_local2 = tweenList[_local3];
if ((_local2.mc == mc) && (_local2.ctm != undefined)) {
_local2.c = _local16;
_local2.stm = _local20;
(_local2.ctm = _local19);
(_local2.ts = now);
_local2.d = sec * 1000;
_local2.ef = eqFunc;
_local2.cb = callback;
_local2.e1 = extra1;
_local2.e2 = extra2;
_local6 = false;
break;
}
}
}
if (_local6) {
tweenList.unshift({mc:mc, c:_local16, stm:_local20, ctm:_local19, ts:now, d:sec * 1000, ef:eqFunc, cb:callback, e1:extra1, e2:extra2});
}
}
}
if (broadcastEvents) {
mc.broadcastMessage("onTweenStart", props[_local4]);
}
if (callback.startfunc != undefined) {
callback.startfunc.apply(callback.startscope, callback.startargs);
}
}
function addTweenWithDelay(delay, mc, props, pEnd, sec, eqFunc, callback, extra1, extra2) {
var il;
var _local5;
il = ints.length;
_local5 = setInterval(function (obj) {
var _local3;
var _local2;
obj.addTween(mc, props, pEnd, sec, eqFunc, callback, extra1, extra2);
clearInterval(obj.ints[il].intid);
obj.ints[il] = undefined;
_local3 = true;
for (_local2 in obj.ints) {
if (obj.ints[_local2] != undefined) {
_local3 = false;
break;
}
}
if (_local3) {
obj.ints = [];
}
}, delay * 1000, this);
ints[il] = {mc:mc, props:props, pend:pEnd, intid:_local5, st:now, delay:delay * 1000, args:arguments.slice(1)};
}
function removeTween(mc, props) {
var _local7;
var _local2;
var _local3;
_local7 = false;
if (props == undefined) {
_local7 = true;
}
_local2 = tweenList.length;
while (_local2--) {
if (tweenList[_local2].mc == mc) {
if (_local7) {
tweenList.splice(_local2, 1);
} else {
for (_local3 in props) {
if (tweenList[_local2].pp == props[_local3]) {
tweenList.splice(_local2, 1);
} else if (((props[_local3] == "_ct_") && (tweenList[_local2].ctm != undefined)) && (tweenList[_local2].mc == mc)) {
tweenList.splice(_local2, 1);
}
}
}
}
}
_local2 = ints.length;
while (_local2--) {
if (ints[_local2].mc == mc) {
if (_local7) {
clearInterval(ints[_local2].intid);
ints[_local2] = undefined;
} else {
for (_local3 in props) {
for (var _local6 in ints[_local2].props) {
if (ints[_local2].props[_local6] == props[_local3]) {
ints[_local2].props.splice(_local6, 1);
ints[_local2].pend.splice(_local6, 1);
}
}
if (ints[_local2].props.length == 0) {
clearInterval(ints[_local2].intid);
}
}
}
}
}
if (tweenList.length == 0) {
deinit();
}
}
function isTweening(mc) {
for (var _local3 in tweenList) {
if (tweenList[_local3].mc == mc) {
return(true);
}
}
return(false);
}
function getTweens(mc) {
var _local2 = 0;
for (var _local4 in tweenList) {
if (tweenList[_local4].mc == mc) {
_local2++;
}
}
return(_local2);
}
function lockTween(mc, bool) {
lockedTweens[targetPath(mc)] = bool;
}
function isTweenLocked(mc) {
if (lockedTweens[targetPath(mc)] == undefined) {
return(false);
}
return(lockedTweens[targetPath(mc)]);
}
function pauseAll() {
if (isPaused) {
return(undefined);
}
isPaused = true;
pausedTime = now;
for (var _local2 in ints) {
clearInterval(ints[_local2].intid);
}
deinit();
}
function unpauseAll() {
if (!isPaused) {
return(undefined);
}
var _local2;
var _local4;
isPaused = false;
init();
for (_local2 in tweenList) {
_local4 = tweenList[_local2];
_local4.ts = now - (pausedTime - _local4.ts);
}
for (_local2 in ints) {
if (ints[_local2] == undefined) {
continue;
}
var _local3 = ints[_local2].delay - (pausedTime - ints[_local2].st);
var _local5 = setInterval(function (obj, id) {
obj.addTween.apply(obj, obj.ints[id].args);
clearInterval(obj.ints[id].intid);
obj.ints[id] = undefined;
}, _local3, this, _local2);
ints[_local2].intid = _local5;
ints[_local2].st = now;
ints[_local2].delay = _local3;
}
}
function stopAll() {
for (var _local2 in ints) {
clearInterval(ints[_local2].intid);
}
tweenList = new Array();
deinit();
}
function toString() {
return("[AS2 tweenManager 1.1.8]");
}
}
Symbol 647 MovieClip [__Packages.com.robertpenner.easing.Cubic] Frame 0
class com.robertpenner.easing.Cubic
{
function Cubic () {
}
static function easeIn(t, b, c, d) {
t = t / d;
return((((c * t) * t) * t) + b);
}
static function easeOut(t, b, c, d) {
t = (t / d) - 1;
return((c * (((t * t) * t) + 1)) + b);
}
static function easeInOut(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return(((((c / 2) * t) * t) * t) + b);
}
t = t - 2;
return(((c / 2) * (((t * t) * t) + 2)) + b);
}
static function easeOutIn(t, b, c, d) {
t = t / (d / 2);
t--;
return(((c / 2) * (((t * t) * t) + 1)) + b);
}
}
Symbol 443 MovieClip [mcCracker] Frame 1
#initclip 25
Object.registerClass("mcCracker", Cracker);
#endinitclip
stop();
Symbol 443 MovieClip [mcCracker] Frame 8
this.removeMovieClip();
stop();
Symbol 464 MovieClip [mcEgg] Frame 1
#initclip 20
Object.registerClass("mcEgg", Egg);
#endinitclip
stop();
Symbol 464 MovieClip [mcEgg] Frame 2
stop();
Symbol 471 MovieClip [mcKampfAction] Frame 1
action = false;
Symbol 471 MovieClip [mcKampfAction] Frame 29
action = true;
stop();
Symbol 485 MovieClip [mcMolotov] Frame 1
#initclip 21
Object.registerClass("mcMolotov", Molotov);
#endinitclip
stop();
Symbol 485 MovieClip [mcMolotov] Frame 11
this.removeMovieClip();
stop();
Symbol 492 MovieClip [mcPlayer1] Frame 1
#initclip 22
Object.registerClass("mcPlayer1", Player);
#endinitclip
Symbol 496 MovieClip [mcStone] Frame 1
#initclip 23
Object.registerClass("mcStone", Stone);
#endinitclip
Symbol 534 MovieClip [mcBulleBoellerAni] Frame 89
gotoAndPlay ("loop");
Symbol 543 MovieClip [mcBulleKomaAnimation] Frame 89
gotoAndPlay ("loop");
Symbol 546 MovieClip [mcCop] Frame 1
#initclip 24
Object.registerClass("mcCop", Cop);
#endinitclip
stop();
Symbol 569 MovieClip [mcLoose] Frame 32
stop();
Symbol 583 MovieClip Frame 1
stop();
Symbol 583 MovieClip Frame 2
stop();
Symbol 594 MovieClip Frame 1
stop();
Symbol 594 MovieClip Frame 2
stop();
Symbol 601 MovieClip Frame 1
stop();
Symbol 601 MovieClip Frame 2
stop();
Symbol 608 MovieClip Frame 1
stop();
Symbol 608 MovieClip Frame 2
stop();
Symbol 615 Button
on (release) {
gotoAndStop (2);
_root.sound = false;
stopAllSounds();
}
Symbol 618 Button
on (release) {
gotoAndStop (1);
_root.sound = true;
_root.music.start();
}
Symbol 619 MovieClip Frame 1
stop();
Symbol 619 MovieClip Frame 2
stop();