Frame 1
Main.main(this);
Symbol 33 MovieClip [zidane] Frame 1
stop();
Symbol 67 Button
on (press) {
getURL ("http://www.spinchat.de/whois?user=jash", "_blank");
}
Symbol 69 Button
on (press) {
getURL ("http://www.spinchat.de/whois?user=andyn", "_blank");
}
Symbol 71 Button
on (press) {
getURL ("http://www.spinchat.de/whois?user=paul", "_blank");
}
Symbol 73 Button
on (press) {
getURL ("http://www.spinchat.de/whois?user=helmet", "_blank");
}
Symbol 80 Button
on (press) {
getURL ("http://www.spinchat.de/index?from=zidane", "_blank");
}
Symbol 20480 MovieClip [__Packages.Main] Frame 0
class Main
{
var mc, totalscore, missed, france, italia;
function Main (mc) {
this.mc = mc;
totalscore = (missed = 0);
mc.attachMovie("startpage", "startpage", mc.getNextHighestDepth());
mc.startpage._x = (Stage.width - mc.startpage._width) / 2;
mc.startpage._y = (Stage.height - mc.startpage._height) / 2;
mc.startpage.start.onPress = spin.util.Delegate.create(this, handleStart);
france = new Sound();
italia = new Sound();
france.attachSound("france");
italia.attachSound("italia");
france.start();
var _local3 = new Object();
_local3.onKeyDown = spin.util.Delegate.create(this, handleKey);
Key.addListener(_local3);
}
static function main(mc) {
Object.registerClass("zidane", Zidane);
Object.registerClass("italiener", Italiener);
var _local3 = new Main(mc);
}
function handleKey() {
if (Key.getCode() == Key.SPACE) {
handleHitit();
}
}
function handleStart() {
if (mc.startpage) {
mc.startpage.removeMovieClip();
}
if (mc.gameover) {
mc.gameover.removeMovieClip();
}
france.stop();
italia.stop();
mc.attachMovie("hitit", "hitit", mc.getNextHighestDepth());
mc.attachMovie("display", "display", mc.getNextHighestDepth());
mc.display._x = 11;
mc.display._y = 4;
mc.hitit._x = 0;
mc.hitit._y = (Stage.height - mc.hitit._height) - 4;
mc.hitit.onPress = spin.util.Delegate.create(this, handleHitit);
start();
}
function handleGameOver() {
mc.zidane.removeMovieClip();
mc.italiener0.removeMovieClip();
mc.hitit.removeMovieClip();
mc.display.removeMovieClip();
mc.attachMovie("gameover", "gameover", mc.getNextHighestDepth());
mc.gameover.score.text = totalscore;
mc.gameover._x = (Stage.width - mc.gameover._width) / 2;
mc.gameover._y = (Stage.height - mc.gameover._height) / 2;
mc.gameover.start.onPress = spin.util.Delegate.create(this, handleStart);
italia.start();
}
function handleHitit() {
mc.zidane.hitit();
}
function start() {
totalscore = (missed = 0);
mc.display.score.text = totalscore;
mc.attachMovie("italiener", "italiener0", mc.getNextHighestDepth());
mc.attachMovie("zidane", "zidane", mc.getNextHighestDepth());
mc.zidane._xscale = 60;
mc.zidane._yscale = 60;
mc.zidane._y = Stage.height - 50;
mc.zidane._x = Stage.width / 3;
mc.italiener0._xscale = -60;
mc.italiener0._yscale = 60;
mc.italiener0._y = Stage.height - 50;
mc.italiener0._x = Stage.width;
mc.italiener0.onMissed = spin.util.Delegate.create(this, handleMissed);
mc.zidane.onButt = spin.util.Delegate.create(this, handleButt);
mc.onEnterFrame = spin.util.Delegate.create(this, handleEnterFrame);
}
function handleEnterFrame() {
var _local2 = mc.zidane.hits(mc.italiener0.hitarea);
if (_local2 > 0) {
mc.italiener0.hit(_local2, _local2 > 25);
totalscore = totalscore + (_local2 + (mc.italiener0.getSpeed() * 10));
mc.display.score.text = totalscore;
}
}
function handleMissed() {
if (missed < 10) {
mc.display.cntmissed.attachMovie("missed", "missed" + missed, mc.display.cntmissed.getNextHighestDepth());
mc.display.cntmissed["missed" + missed]._x = (missed * mc.display.cntmissed["missed" + missed]._width) / 2;
if (missed >= 5) {
mc.display.cntmissed["missed" + missed]._x = mc.display.cntmissed["missed" + missed]._x + ((mc.display.cntmissed["missed" + missed]._width / 2) + 10);
}
missed++;
} else {
handleGameOver();
}
}
function handleButt() {
totalscore = totalscore - 10;
mc.display.score.text = totalscore;
}
static function intersection(ab, bb) {
var _local4 = Math.max(ab.xMin, bb.xMin);
var _local5 = Math.min(ab.xMax, bb.xMax);
var _local6 = Math.max(ab.yMin, bb.yMin);
var _local7 = Math.min(ab.yMax, bb.yMax);
var _local8 = Math.max(0, _local5 - _local4);
var _local9 = Math.max(0, _local7 - _local6);
if ((_local8 > 0) && (_local9 > 0)) {
var _local10 = new Object();
_local10.xMin = _local4;
_local10.xMax = _local5;
_local10.yMin = _local6;
_local10.yMax = _local7;
return(_local10);
}
return(undefined);
}
//ASSetPropFlags(_local1, null, 1);
}
Symbol 20481 MovieClip [__Packages.spin.util.Delegate] Frame 0
class spin.util.Delegate
{
function Delegate () {
}
static function create(scope, method) {
var params = arguments.splice(2, arguments.length - 2);
var _local2 = function () {
method.apply(scope, arguments.concat(params));
};
return(_local2);
}
}
Symbol 20482 MovieClip [__Packages.Italiener] Frame 0
#initclip
if (!Italiener) {
//(_global.Italiener = function () {
super();
this._quality = "BEST";
this.frame = 0;
this.speed = Math.round(Math.random() * 5);
this.anim = "walk";
this.hits = 2;
this.fly = (this.cursed = false);
this.count = 0;
this.au = new Sound();
this.uah = new Sound();
this.hihi = new Sound();
this.merde = new Sound();
this.au.attachSound("au");
this.uah.attachSound("uah");
this.hihi.attachSound("hihi");
this.merde.attachSound("merde");
}) extends MovieClip
var _local1 = (_global.Italiener /* register */).prototype;
_local1.getSpeed = function () {
return(this.speed);
};
_local1.play = function (anim) {
this.anim = anim;
this.frame = 0;
};
_local1.hit = function (strength, perfect) {
this.hits--;
if ((this.hits == 0) || (perfect)) {
this.uah.start();
this.play("fall");
this.fly = true;
} else {
this.au.start();
this.strength = strength;
this.play("fall");
}
};
_local1.onEnterFrame = function () {
if (this.fly) {
this._x = this._x + 20;
this._y = this._y - 3;
}
if ((this._parent.zidane._x > this._x) && (!this.cursed)) {
this.cursed = true;
this.merde.start();
}
if (this.anim == "walk") {
if ((this.frame % 2) == 0) {
this.gotoAndStop("walk" + (this.frame / 2));
}
this.frame++;
if (this.frame >= 16) {
this.frame = 0;
}
if (this._x < (-this._width)) {
this._x = Stage.width;
this.hits = 2;
this.speed = Math.round(Math.random() * 5);
this.cursed = false;
this.onMissed();
this.hihi.start();
}
if (this._x > Stage.width) {
this._y = Stage.height - 50;
this._x = Stage.width;
this.hits = 2;
this.cursed = false;
this.fly = false;
this.count++;
}
this._x = this._x - ((3 + Math.floor(this.count / 5)) + this.speed);
} else if (this.anim == "fall") {
if (this.frame >= (32 + Math.round(Math.random() * 20))) {
if (this.hits == 0) {
this._x = Stage.width;
this.hits = 2;
this.speed = Math.round(Math.random() * 5);
this.play("walk");
this.count++;
} else {
this.play("walk");
}
} else if (this.frame >= 8) {
this.frame++;
} else if (this.frame < 8) {
if ((this.frame % 2) == 0) {
this.gotoAndStop("fall" + (this.frame / 2));
this._x = this._x + (10 + this.strength);
}
this.frame++;
}
}
};
_local1.onMissed = function () {
};
ASSetPropFlags(_local1, null, 1);
}
#endinitclip
Symbol 20483 MovieClip [__Packages.Zidane] Frame 0
#initclip
if (!Zidane) {
//(_global.Zidane = function () {
super();
this._quality = "BEST";
this.bam._visible = false;
this.perfect._visible = false;
this.frame = -1;
this.ugh = new Sound();
this.swoosh = new Sound();
this.hit = new Sound();
this.ugh.attachSound("ugh");
this.swoosh.attachSound("swoosh");
this.hit.attachSound("hit");
}) extends MovieClip
var _local1 = (_global.Zidane /* register */).prototype;
_local1.hitit = function () {
if (this.frame != -1) {
return(undefined);
}
this.frame = 0;
this.ugh.start();
this.swoosh.start();
};
_local1.onButt = function () {
};
_local1.onEnterFrame = function () {
if (this.frame > -1) {
this.gotoAndStop("butt" + this.frame);
this.frame++;
}
if (this.frame > 6) {
this.frame = -1;
this.gotoAndStop("stand");
this.bam._visible = false;
this.perfect._visible = false;
}
};
_local1.hits = function (mc) {
if (!((this.frame == 3) || (this.frame == 4))) {
return(0);
}
if (!this.hitarea.hitTest(mc)) {
this.onButt();
return(0);
}
this.hit.start();
var _local3 = this.hitarea.getBounds(_root);
var _local4 = mc.getBounds(_root);
var _local5 = Main.intersection(_local3, _local4);
var _local6 = (_local3.xMax - _local3.xMin) * (_local3.yMax - _local3.yMin);
var _local7 = (_local5.xMax - _local5.xMin) * (_local5.yMax - _local5.yMin);
var _local8 = _local7 / _local6;
if (_local8 > 0.8) {
this.perfect._visible = true;
} else {
this.bam._visible = true;
}
return(Math.round(40 * _local8));
};
ASSetPropFlags(_local1, null, 1);
}
#endinitclip