Frame 1
this.onEnterFrame = function () {
if ((this.getBytesLoaded() == this.getBytesTotal()) && (this.getBytesTotal() > 4)) {
trace("WEITER");
this.gotoAndPlay("initFuncs");
delete this.onEnterFrame;
}
};
stop();
Frame 10
MovieClip.prototype.tween = (TextField.prototype.tween = function (prop, propDest, timeSeconds, animType, delay, callback, extra1, extra2) {
if (timeSeconds < 0.001) {
timeSeconds = 2;
}
if ((animType == undefined) || (animType == "")) {
animType = "easeOutExpo";
}
if (delay == undefined) {
delay = 0;
}
if (typeof(prop) == "string") {
var _local8 = [prop];
var _local13 = [this[prop]];
var _local11 = [propDest];
} else {
var _local8 = [];
var _local13 = [];
var _local11 = [];
for (var _local31 in prop) {
_local13.push(this[prop[_local31]]);
}
for (var _local31 in prop) {
_local8.push(prop[_local31]);
}
for (var _local31 in propDest) {
_local11.push(propDest[_local31]);
}
}
var _local14 = false;
if (_root.__tweenController__ == undefined) {
var _local33 = _root.createEmptyMovieClip("__tweenController__", 123432);
_local33.$_tweenPropList = new Array();
_local33.onEnterFrame = function () {
var _local6 = getTimer();
var _local4 = 0;
while (_local4 < this.$_tweenPropList.length) {
var _local3 = this.$_tweenPropList[_local4];
if ((_local3._timeStart + (_local3._delay * 1000)) <= _local6) {
if ((_local3._timeDest + (_local3._delay * 1000)) <= _local6) {
_local3._targ[_local3._prop] = _local3._propDest;
this.$_tweenPropList.splice(_local4, 1);
_local4--;
_local3._targ.$_tweenCount--;
if (_local3._targ.$_tweenCount == 0) {
delete _local3._targ.$_tweenCount;
}
if (_local3._callback != undefined) {
if (_global.backwardCallbackTweening) {
var _local5 = _local3._targ.createEmptyMovieClip("__child__", 122344);
_local3._callback.apply(_local5, null);
_local5.removeMovieClip();
} else {
_local3._callback.apply(_local3._targ, null);
}
}
if (this.$_tweenPropList.length == 0) {
this.removeMovieClip();
}
} else {
if (_local3._propStart == undefined) {
_local3._propStart = _local3._targ[_local3._prop];
}
_local3._targ[_local3._prop] = _global.findTweenValue(_local3._propStart, _local3._propDest, _local3._timeStart, _local6 - (_local3._delay * 1000), _local3._timeDest, _local3._animType, _local3._extra1, _local3._extra2);
if ((typeof(_local3._targ) != "movieclip") && (_local3._prop == "__special_text_r__")) {
_local3._targ.textColor = ((_local3._targ.__special_text_r__ << 16) + (_local3._targ.__special_text_g__ << 8)) + _local3._targ.__special_text_b__;
}
}
}
_local4++;
}
};
}
var _local6 = _root.__tweenController__.$_tweenPropList;
var _local9 = getTimer();
for (var _local31 in _local13) {
if ((_local11[_local31] != undefined) && (!this.$_isTweenLocked)) {
if (this.$_tweenCount > 0) {
var _local5 = 0;
while (_local5 < _local6.length) {
if ((_local6[_local5]._targ == this) && (_local6[_local5]._prop == _local8[_local31])) {
if ((_local9 + (delay * 1000)) < _local6[_local5]._timeDest) {
_local6.splice(_local5, 1);
_local5--;
this.$_tweenCount--;
}
}
_local5++;
}
}
_local6.push({_prop:_local8[_local31], _targ:this, _propStart:undefined, _propDest:_local11[_local31], _timeStart:_local9, _timeDest:_local9 + (timeSeconds * 1000), _animType:animType, _extra1:extra1, _extra2:extra2, _delay:delay, _callback:(_local14 ? undefined : (callback))});
this.$_tweenCount = ((this.$_tweenCount > 0) ? (this.$_tweenCount + 1) : 1);
_local14 = true;
}
}
ASSetPropFlags(this, "$_tweenCount", 1, 0);
});
ASSetPropFlags(MovieClip.prototype, "tween", 1, 0);
ASSetPropFlags(TextField.prototype, "tween", 1, 0);
MovieClip.prototype.lockTween = (TextField.prototype.lockTween = function () {
this.$_isTweenLocked = true;
ASSetPropFlags(this, "this.$_isTweenLocked", 1, 0);
});
ASSetPropFlags(MovieClip.prototype, "lockTween", 1, 0);
ASSetPropFlags(TextField.prototype, "lockTween", 1, 0);
MovieClip.prototype.unlockTween = (TextField.prototype.unlockTween = function () {
delete this.$_isTweenLocked;
});
ASSetPropFlags(MovieClip.prototype, "unlockTween", 1, 0);
ASSetPropFlags(TextField.prototype, "unlockTween", 1, 0);
MovieClip.prototype.getTweens = (TextField.prototype.getTweens = function () {
return(this.$_tweenCount);
});
ASSetPropFlags(MovieClip.prototype, "getTweens", 1, 0);
ASSetPropFlags(TextField.prototype, "getTweens", 1, 0);
MovieClip.prototype.isTweening = (TextField.prototype.isTweening = function () {
return(((this.$_tweenCount > 0) ? true : false));
});
ASSetPropFlags(MovieClip.prototype, "isTweening", 1, 0);
ASSetPropFlags(TextField.prototype, "isTweening", 1, 0);
MovieClip.prototype.stopTween = (TextField.prototype.stopTween = function (props) {
var _local3 = _root.__tweenController__.$_tweenPropList;
switch (typeof(props)) {
case "string" :
props = [props];
case "object" :
for (var _local6 in props) {
for (var _local5 in _local3) {
if ((_local3[_local5]._targ == this) && (_local3[_local5]._prop == props[_local6])) {
_local3.splice(_local5, 1);
}
}
}
this.$_tweenCount = 0;
for (var _local5 in _local3) {
if (_local3[_local5]._targ == this) {
this.$_tweenCount++;
}
}
if (this.$_tweenCount == 0) {
delete this.$_tweenCount;
}
break;
default :
for (var _local5 in _local3) {
if (_local3[_local5]._targ == this) {
_local3.splice(_local5, 1);
}
}
delete this.$_tweenCount;
}
if (_local3.length == 0) {
_root.__tweenController__.removeMovieClip();
this.__tweenController_ADVhelper__.removeMovieClip();
}
});
ASSetPropFlags(MovieClip.prototype, "stopTween", 1, 0);
ASSetPropFlags(TextField.prototype, "stopTween", 1, 0);
MovieClip.prototype.alphaTo = (TextField.prototype.alphaTo = function (propDest_a, timeSeconds, animType, delay, callback, extra1, extra2) {
this.tween("_alpha", propDest_a, timeSeconds, animType, delay, callback, extra1, extra2);
});
ASSetPropFlags(MovieClip.prototype, "alphaTo", 1, 0);
ASSetPropFlags(TextField.prototype, "alphaTo", 1, 0);
MovieClip.prototype.rotateTo = (TextField.prototype.rotateTo = function (propDest_rotation, timeSeconds, animType, delay, callback, extra1, extra2) {
this.tween("_rotation", propDest_rotation, timeSeconds, animType, delay, callback, extra1, extra2);
});
ASSetPropFlags(MovieClip.prototype, "rotateTo", 1, 0);
ASSetPropFlags(TextField.prototype, "rotateTo", 1, 0);
MovieClip.prototype.scaleTo = (TextField.prototype.scaleTo = function (propDest_scale, timeSeconds, animType, delay, callback, extra1, extra2) {
this.tween(["_xscale", "_yscale"], [propDest_scale, propDest_scale], timeSeconds, animType, delay, callback, extra1, extra2);
});
ASSetPropFlags(MovieClip.prototype, "scaleTo", 1, 0);
ASSetPropFlags(TextField.prototype, "scaleTo", 1, 0);
TextField.prototype.scrollTo = function (propDest_scroll, timeSeconds, animType, delay, callback, extra1, extra2) {
this.tween("scroll", propDest_scroll, timeSeconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(TextField.prototype, "scrollTo", 1, 0);
MovieClip.prototype.slideTo = (TextField.prototype.slideTo = function (propDest_x, propDest_y, timeSeconds, animType, delay, callback, extra1, extra2) {
this.tween(["_x", "_y"], [propDest_x, propDest_y], timeSeconds, animType, delay, callback, extra1, extra2);
});
ASSetPropFlags(MovieClip.prototype, "slideTo", 1, 0);
ASSetPropFlags(TextField.prototype, "slideTo", 1, 0);
MovieClip.prototype.colorTo = (TextField.prototype.colorTo = function (propDest_color, timeSeconds, animType, delay, callback, extra1, extra2) {
var _local2 = propDest_color >> 16;
var _local4 = (propDest_color & 65280) >> 8;
var _local3 = propDest_color & 255;
if (typeof(this) == "movieclip") {
this.colorTransformTo(0, _local2, 0, _local4, 0, _local3, undefined, undefined, timeSeconds, animType, delay, callback, extra1, extra2);
} else {
this.__special_text_r__ = this.textColor >> 16;
this.__special_text_g__ = (this.textColor & 65280) >> 8;
this.__special_text_b__ = this.textColor & 255;
this.tween(["__special_text_r__", "__special_text_g__", "__special_text_b__"], [_local2, _local4, _local3], timeSeconds, animType, delay, callback, extra1, extra2);
}
});
ASSetPropFlags(MovieClip.prototype, "colorTo", 1, 0);
ASSetPropFlags(TextField.prototype, "colorTo", 1, 0);
MovieClip.prototype.colorTransformTo = function (propDest_ra, propDest_rb, propDest_ga, propDest_gb, propDest_ba, propDest_bb, propDest_aa, propDest_ab, timeSeconds, animType, delay, callback, extra1, extra2) {
var _local5 = new Color(this);
var _local3 = _local5.getTransform();
this.$_ADVsetter_ra = ((propDest_ra == undefined) ? undefined : (_local3.ra));
this.$_ADVsetter_rb = ((propDest_rb == undefined) ? undefined : (_local3.rb));
this.$_ADVsetter_ga = ((propDest_ga == undefined) ? undefined : (_local3.ga));
this.$_ADVsetter_gb = ((propDest_gb == undefined) ? undefined : (_local3.gb));
this.$_ADVsetter_ba = ((propDest_ba == undefined) ? undefined : (_local3.ba));
this.$_ADVsetter_bb = ((propDest_bb == undefined) ? undefined : (_local3.bb));
this.$_ADVsetter_aa = ((propDest_aa == undefined) ? undefined : (_local3.aa));
this.$_ADVsetter_ab = ((propDest_ab == undefined) ? undefined : (_local3.ab));
this.$_new_ra = propDest_ra;
this.$_new_rb = propDest_rb;
this.$_new_ga = propDest_ga;
this.$_new_gb = propDest_gb;
this.$_new_ba = propDest_ba;
this.$_new_bb = propDest_bb;
this.$_new_aa = propDest_aa;
this.$_new_ab = propDest_ab;
this.tween(["$_ADVsetter_ra", "$_ADVsetter_rb", "$_ADVsetter_ga", "$_ADVsetter_gb", "$_ADVsetter_ba", "$_ADVsetter_bb", "$_ADVsetter_aa", "$_ADVsetter_ab"], [this.$_new_ra, this.$_new_rb, this.$_new_ga, this.$_new_gb, this.$_new_ba, this.$_new_bb, this.$_new_aa, this.$_new_ab], timeSeconds, animType, delay, callback, extra1, extra2);
this.__tweenController_ADVhelper__.removeMovieClip();
this.createEmptyMovieClip("__tweenController_ADVhelper__", 123434);
this.__tweenController_ADVhelper__.onEnterFrame = function () {
var _local3 = new Color(this._parent);
var _local2 = {};
if (this._parent.$_ADVsetter_ra != undefined) {
_local2.ra = this._parent.$_ADVsetter_ra;
}
if (this._parent.$_ADVsetter_rb != undefined) {
_local2.rb = this._parent.$_ADVsetter_rb;
}
if (this._parent.$_ADVsetter_ga != undefined) {
_local2.ga = this._parent.$_ADVsetter_ga;
}
if (this._parent.$_ADVsetter_gb != undefined) {
_local2.gb = this._parent.$_ADVsetter_gb;
}
if (this._parent.$_ADVsetter_ba != undefined) {
_local2.ba = this._parent.$_ADVsetter_ba;
}
if (this._parent.$_ADVsetter_bb != undefined) {
_local2.bb = this._parent.$_ADVsetter_bb;
}
if (this._parent.$_ADVsetter_aa != undefined) {
_local2.aa = this._parent.$_ADVsetter_aa;
}
if (this._parent.$_ADVsetter_ab != undefined) {
_local2.ab = this._parent.$_ADVsetter_ab;
}
_local3.setTransform(_local2);
if (this.$_toDelete) {
delete this._parent.$_ADVsetter_ra;
delete this._parent.$_ADVsetter_rb;
delete this._parent.$_ADVsetter_ga;
delete this._parent.$_ADVsetter_gb;
delete this._parent.$_ADVsetter_ba;
delete this._parent.$_ADVsetter_bb;
delete this._parent.$_ADVsetter_aa;
delete this._parent.$_ADVsetter_ab;
delete this._parent.$_new_ra;
delete this._parent.$_new_rb;
delete this._parent.$_new_ga;
delete this._parent.$_new_gb;
delete this._parent.$_new_ba;
delete this._parent.$_new_bb;
delete this._parent.$_new_aa;
delete this._parent.$_new_ab;
this.removeMovieClip();
}
if (((((((((this._parent.$_ADVsetter_ra == this._parent.$_new_ra) || (this._parent.$_new_ra == undefined)) && ((this._parent.$_ADVsetter_rb == this._parent.$_new_rb) || (this._parent.$_new_rb == undefined))) && ((this._parent.$_ADVsetter_ga == this._parent.$_new_ga) || (this._parent.$_new_ga == undefined))) && ((this._parent.$_ADVsetter_gb == this._parent.$_new_gb) || (this._parent.$_new_gb == undefined))) && ((this._parent.$_ADVsetter_ba == this._parent.$_new_ba) || (this._parent.$_new_ba == undefined))) && ((this._parent.$_ADVsetter_bb == this._parent.$_new_bb) || (this._parent.$_new_bb == undefined))) && ((this._parent.$_ADVsetter_aa == this._parent.$_new_aa) || (this._parent.$_new_aa == undefined))) && ((this._parent.$_ADVsetter_ab == this._parent.$_new_ab) || (this._parent.$_new_ab == undefined))) {
this.$_toDelete = true;
}
};
};
ASSetPropFlags(MovieClip.prototype, "colorTransformTo", 1, 0);
_global.findTweenValue = function (_propStart, _propDest, _timeStart, _timeNow, _timeDest, _animType, _extra1, _extra2) {
var _local1 = _timeNow - _timeStart;
var _local3 = _propStart;
var _local2 = _propDest - _propStart;
var _local4 = _timeDest - _timeStart;
var _local7 = _extra1;
var _local6 = _extra2;
var _local5 = _extra1;
switch (_animType.toLowerCase()) {
case "linear" :
return(((_local2 * _local1) / _local4) + _local3);
case "easeinquad" :
_local1 = _local1 / _local4;
return(((_local2 * _local1) * _local1) + _local3);
case "easeoutquad" :
_local1 = _local1 / _local4;
return((((-_local2) * _local1) * (_local1 - 2)) + _local3);
case "easeinoutquad" :
_local1 = _local1 / (_local4 / 2);
if (_local1 < 1) {
return((((_local2 / 2) * _local1) * _local1) + _local3);
}
_local1--;
return((((-_local2) / 2) * ((_local1 * (_local1 - 2)) - 1)) + _local3);
case "easeincubic" :
_local1 = _local1 / _local4;
return((((_local2 * _local1) * _local1) * _local1) + _local3);
case "easeoutcubic" :
_local1 = (_local1 / _local4) - 1;
return((_local2 * (((_local1 * _local1) * _local1) + 1)) + _local3);
case "easeinoutcubic" :
_local1 = _local1 / (_local4 / 2);
if (_local1 < 1) {
return(((((_local2 / 2) * _local1) * _local1) * _local1) + _local3);
}
_local1 = _local1 - 2;
return(((_local2 / 2) * (((_local1 * _local1) * _local1) + 2)) + _local3);
case "easeinquart" :
_local1 = _local1 / _local4;
return(((((_local2 * _local1) * _local1) * _local1) * _local1) + _local3);
case "easeoutquart" :
_local1 = (_local1 / _local4) - 1;
return(((-_local2) * ((((_local1 * _local1) * _local1) * _local1) - 1)) + _local3);
case "easeinoutquart" :
_local1 = _local1 / (_local4 / 2);
if (_local1 < 1) {
return((((((_local2 / 2) * _local1) * _local1) * _local1) * _local1) + _local3);
}
_local1 = _local1 - 2;
return((((-_local2) / 2) * ((((_local1 * _local1) * _local1) * _local1) - 2)) + _local3);
case "easeinquint" :
_local1 = _local1 / _local4;
return((((((_local2 * _local1) * _local1) * _local1) * _local1) * _local1) + _local3);
case "easeoutquint" :
_local1 = (_local1 / _local4) - 1;
return((_local2 * (((((_local1 * _local1) * _local1) * _local1) * _local1) + 1)) + _local3);
case "easeinoutquint" :
_local1 = _local1 / (_local4 / 2);
if (_local1 < 1) {
return(((((((_local2 / 2) * _local1) * _local1) * _local1) * _local1) * _local1) + _local3);
}
_local1 = _local1 - 2;
return(((_local2 / 2) * (((((_local1 * _local1) * _local1) * _local1) * _local1) + 2)) + _local3);
case "easeinsine" :
return((((-_local2) * Math.cos((_local1 / _local4) * (Math.PI/2))) + _local2) + _local3);
case "easeoutsine" :
return((_local2 * Math.sin((_local1 / _local4) * (Math.PI/2))) + _local3);
case "easeinoutsine" :
return((((-_local2) / 2) * (Math.cos((Math.PI * _local1) / _local4) - 1)) + _local3);
case "easeinexpo" :
return(((_local1 == 0) ? (_local3) : ((_local2 * Math.pow(2, 10 * ((_local1 / _local4) - 1))) + _local3)));
case "easeoutexpo" :
return(((_local1 == _local4) ? (_local3 + _local2) : ((_local2 * ((-Math.pow(2, (-10 * _local1) / _local4)) + 1)) + _local3)));
case "easeinoutexpo" :
if (_local1 == 0) {
return(_local3);
}
if (_local1 == _local4) {
return(_local3 + _local2);
}
_local1 = _local1 / (_local4 / 2);
if (_local1 < 1) {
return(((_local2 / 2) * Math.pow(2, 10 * (_local1 - 1))) + _local3);
}
_local1--;
return(((_local2 / 2) * ((-Math.pow(2, -10 * _local1)) + 2)) + _local3);
case "easeincirc" :
_local1 = _local1 / _local4;
return(((-_local2) * (Math.sqrt(1 - (_local1 * _local1)) - 1)) + _local3);
case "easeoutcirc" :
_local1 = (_local1 / _local4) - 1;
return((_local2 * Math.sqrt(1 - (_local1 * _local1))) + _local3);
case "easeinoutcirc" :
_local1 = _local1 / (_local4 / 2);
if (_local1 < 1) {
return((((-_local2) / 2) * (Math.sqrt(1 - (_local1 * _local1)) - 1)) + _local3);
}
_local1 = _local1 - 2;
return(((_local2 / 2) * (Math.sqrt(1 - (_local1 * _local1)) + 1)) + _local3);
case "easeinelastic" :
if (_local1 == 0) {
return(_local3);
}
_local1 = _local1 / _local4;
if (_local1 == 1) {
return(_local3 + _local2);
}
if (!_local6) {
_local6 = _local4 * 0.3;
}
if (_local7 < Math.abs(_local2)) {
_local7 = _local2;
_local5 = _local6 / 4;
} else {
_local5 = (_local6 / (Math.PI*2)) * Math.asin(_local2 / _local7);
}
_local1 = _local1 - 1;
return((-((_local7 * Math.pow(2, 10 * _local1)) * Math.sin((((_local1 * _local4) - _local5) * (Math.PI*2)) / _local6))) + _local3);
case "easeoutelastic" :
if (_local1 == 0) {
return(_local3);
}
_local1 = _local1 / _local4;
if (_local1 == 1) {
return(_local3 + _local2);
}
if (!_local6) {
_local6 = _local4 * 0.3;
}
if (_local7 < Math.abs(_local2)) {
_local7 = _local2;
_local5 = _local6 / 4;
} else {
_local5 = (_local6 / (Math.PI*2)) * Math.asin(_local2 / _local7);
}
return((((_local7 * Math.pow(2, -10 * _local1)) * Math.sin((((_local1 * _local4) - _local5) * (Math.PI*2)) / _local6)) + _local2) + _local3);
case "easeinoutelastic" :
if (_local1 == 0) {
return(_local3);
}
_local1 = _local1 / (_local4 / 2);
if (_local1 == 2) {
return(_local3 + _local2);
}
if (!_local6) {
_local6 = _local4 * 0.45;
}
if (_local7 < Math.abs(_local2)) {
_local7 = _local2;
_local5 = _local6 / 4;
} else {
_local5 = (_local6 / (Math.PI*2)) * Math.asin(_local2 / _local7);
}
if (_local1 < 1) {
_local1 = _local1 - 1;
return((-0.5 * ((_local7 * Math.pow(2, 10 * _local1)) * Math.sin((((_local1 * _local4) - _local5) * (Math.PI*2)) / _local6))) + _local3);
}
_local1 = _local1 - 1;
return(((((_local7 * Math.pow(2, -10 * _local1)) * Math.sin((((_local1 * _local4) - _local5) * (Math.PI*2)) / _local6)) * 0.5) + _local2) + _local3);
case "easeinback" :
if (_local5 == undefined) {
_local5 = 1.70158;
}
_local1 = _local1 / _local4;
return((((_local2 * _local1) * _local1) * (((_local5 + 1) * _local1) - _local5)) + _local3);
case "easeoutback" :
if (_local5 == undefined) {
_local5 = 1.70158;
}
_local1 = (_local1 / _local4) - 1;
return((_local2 * (((_local1 * _local1) * (((_local5 + 1) * _local1) + _local5)) + 1)) + _local3);
case "easeinoutback" :
if (_local5 == undefined) {
_local5 = 1.70158;
}
_local1 = _local1 / (_local4 / 2);
if (_local1 < 1) {
_local5 = _local5 * 1.525;
return(((_local2 / 2) * ((_local1 * _local1) * (((_local5 + 1) * _local1) - _local5))) + _local3);
}
_local1 = _local1 - 2;
_local5 = _local5 * 1.525;
return(((_local2 / 2) * (((_local1 * _local1) * (((_local5 + 1) * _local1) + _local5)) + 2)) + _local3);
case "easeinbounce" :
return((_local2 - findTweenValue(0, _local2, 0, _local4 - _local1, _local4, "easeOutBounce")) + _local3);
case "easeoutbounce" :
_local1 = _local1 / _local4;
if (_local1 < 0.363636363636364) {
return((_local2 * ((7.5625 * _local1) * _local1)) + _local3);
}
if (_local1 < 0.727272727272727) {
_local1 = _local1 - 0.545454545454545;
return((_local2 * (((7.5625 * _local1) * _local1) + 0.75)) + _local3);
}
if (_local1 < 0.909090909090909) {
_local1 = _local1 - 0.818181818181818;
return((_local2 * (((7.5625 * _local1) * _local1) + 0.9375)) + _local3);
}
_local1 = _local1 - 0.954545454545455;
return((_local2 * (((7.5625 * _local1) * _local1) + 0.984375)) + _local3);
case "easeinoutbounce" :
if (_local1 < (_local4 / 2)) {
return((findTweenValue(0, _local2, 0, _local1 * 2, _local4, "easeInBounce") * 0.5) + _local3);
}
return(((findTweenValue(0, _local2, 0, (_local1 * 2) - _local4, _local4, "easeOutBounce") * 0.5) + (_local2 * 0.5)) + _local3);
}
};
ASSetPropFlags(_global, "findTweenValue", 1, 0);
MovieClip.prototype.standBy = function (howManySeconds) {
this.startTime = getTimer();
this.maxTime = howManySeconds;
this.onEnterFrame = function () {
this.currentTime = getTimer();
this.elapsedTime = (this.currentTime - this.startTime) / 1000;
if (this.elapsedTime > this.maxTime) {
this.gotoAndPlay(this._currentframe + 1);
delete this.onEnterFrame;
}
};
};
String.prototype.isEmail = function () {
var _local6 = arguments.callee;
if (this.indexOf("@") == -1) {
return(false);
}
if (!isNaN(this.charAt(0))) {
return(false);
}
var _local11;
var _local10;
var _local9;
var _local7;
var _local8;
_local11 = this.split("@");
if (_local11.length == 2) {
_local9 = _local11[1];
if (_local9.split(".").pop().length > 3) {
return(false);
}
if (_local9.split(".").length < 2) {
return(false);
}
_local10 = _local11[0];
if (_local10.indexOf(".") && (_local9.indexOf("."))) {
if (_local9.lastIndexOf(".") > (_local9.length - 3)) {
return(false);
}
var _local3;
var _local5;
_local7 = _local10.split(".");
var _local4 = _local7.length;
while (_local4--) {
_local3 = _local7[_local4];
_local5 = !_local6.$_text.call(_local3, "-", ".", "_");
if (_local5 || (!isNaN(_local3))) {
return(false);
}
}
_local8 = _local9.split(".");
_local4 = _local8.length;
while (_local4--) {
_local3 = _local8[_local4];
_local5 = !_local6.$_text.call(_local3, "-", ".");
if (_local5 || (!isNaN(_local3))) {
return(false);
}
}
// unexpected jump
}
return(false);
} else {
return(false);
}
return(true);
};
String.prototype.isEmail.$_punctuation = function () {
if (this == "") {
return(false);
}
var _local3 = arguments.length;
while (_local3--) {
if (this.indexOf(arguments[_local3]) == 0) {
return(false);
}
if (this.indexOf(arguments[_local3]) == (this.length - 1)) {
return(false);
}
}
return(true);
};
String.prototype.isEmail.$_text = function () {
var _local8 = arguments.caller;
if (!_local8.$_punctuation.apply(this, arguments)) {
return(false);
}
var others = arguments;
var _local7 = function (str) {
var _local1 = others.length;
while (_local1--) {
if (str == others[_local1]) {
return(true);
}
}
return(false);
};
var _local3;
var _local6;
var _local5;
var _local4 = this.length;
while (_local4--) {
_local3 = this.charAt(_local4).toLowerCase();
_local6 = (_local3 <= "z") && (_local3 >= "a");
_local5 = (_local3 <= "9") && (_local3 >= "0");
if (((!_local6) && (!_local5)) && (!_local7(_local3))) {
return(false);
}
}
return(true);
};
ASSetPropFlags(String.prototype, "isEmail", 1);
MovieClip.prototype.playSound = function (soundName) {
soundCount++;
var _local2 = soundClip.createEmptyMovieClip("sound" + soundCount, soundCount);
tmpSound = new Sound(_local2);
tmpSound.attachSound(soundName);
tmpSound.holder = _local2;
tmpSound.start();
tmpSound.onSoundComplete = function () {
this.holder.removeMovieClip();
};
return(tmpSound);
};
TextField.prototype.setHead = function (whichText, textalign, callback) {
this.autoSize = ((arguments.length > 1) ? (arguments[1]) : "center");
this.multiline = "false";
this.text = whichText;
this._alpha = 0;
callbackFunc = ((arguments.length > 2) ? (arguments[2]) : "undefined");
this.alphaTo(100, 1, "linear", 0, callbackFunc);
};
words_eng = {cont:"continue", imprint:"IMPRINT", howToPlay:"how To play", startGame:"start game", highScores:"high scores", halloffame:"hall of fame", highestScores:"high scores", bestshapes:"best shapes", hof_next:"NEXT", hof_previous:"PREV", recommend:"recommend", recommend_0:"WANT TO HAVE A FRIEND JOIN THE FUN? JUST FILL OUT THE MAIL-FORM BELOW.", recommend_1:"YOUR FRIEND\u2019S MAIL", recommend_2:"YOUR FRIEND\u2019S NAME", recommend_3:"YOUR NAME HERE", submit:"SUBMIT", htp_screen1:"CLICK ONTO THE SEGMENTS IN ORDER TO PRODUCE A COMPLETE SHAPE.", htp_screen2:"THE GAME ENDS WHEN YOUR TIME HAS EXHAUSTED.", htp_screen3:"ONCE A SHAPE IS COMPLETED, BOTH YOUR SCORE AND TIME-LIMIT WILL LEVEL UP.", htp_screen4:"THE MORE COMPLEX YOUR SHAPE IS THE HIGHER THE BONUS YOU RECEIVE IS. THERE IS AN EXTRA BONUS FOR EACH 5 SEGMENTS.", htp_screen5:"HINT: DON\u2019T WASTE YOUR TIME DOING TINY 4-PIECE-CIRCLES, GO FOR BIGGER SHAPES TO ACHIEVE HIGH SCORES.", scoreboard:"score board", gamestats:"GAME STATISTICS", yourscore:"YOUR SCORE", playtime:"OVERALL PLAYTIME", numshapes:"SHAPES DONE", bestshape:"BEST SHAPE", entername:"ENTER YOUR NAME HERE", feedback1:"nice score!", feedback2:"good score!", feedback3:"great score!", submitsuccess:"data submitted."};
words_ger = {cont:"weiter", imprint:"IMPRESSUM", howToPlay:"anleitung", startGame:"spiel starten", highScores:"bestenliste", halloffame:"bestenliste", highestScores:"nach punkten", bestshapes:"nach formen", hof_next:"WEITER", hof_previous:"ZUR\u00DCCK", recommend:"empfehlen", recommend_0:"DU KENNST JEMANDEN, DEM DAS AUCH SPASS MACHEN WIRD? EINFACH ALLE FELDER AUSF\u00DCLLEN UND AB DIE POST!", recommend_1:"E-MAIL DES EMPF\u00C4NGERS", recommend_2:"NAME DES EMPF\u00C4NGERS", recommend_3:"DEIN NAME", submit:"ABSCHICKEN", htp_screen1:"LASS DIE SEGMENTE PER MAUSKLICK ROTIEREN UND KONSTRUIERE GESCHLOSSENE FORMEN.", htp_screen2:"SOBALD DEIN ZEITVORRAT AUFGEBRAUCHT IST, ENDET DAS SPIEL.", htp_screen3:"F\u00FCR JEDE GESCHLOSSENE FORM ERH\u00C4LTST DU PUNKTE UND ZEIT-BONUS.", htp_screen4:"JE KOMPLEXER EINE FORM IST, DESTO H\u00D6HER DEINE BELOHNUNG. F\u00DCR JE F\u00DCNF VERWENDETE SEGMENTE GIBT\u2019S OBENDREIN EINEN EXTRA-BONUS!", htp_screen5:"TIPP: HALT DICH NICHT MIT KLEINEN 4-SEGMENT-KREISEN AUF, SONDERN VERSUCH M\u00D6GLICHST GROSSE FORMEN ZU SCHLIESSEN.", scoreboard:"punktestand", gamestats:"SPIEL-STATISTIK", yourscore:"DEIN PUNKTESTAND", playtime:"SPIELDAUER", numshapes:"ANZAHL FORMEN", bestshape:"GR\u00D6SSTE FORM", entername:"BITTE NAMEN EINTRAGEN", feedback1:"ganz nett.", feedback2:"gut gemacht!", feedback3:"super score!", submitsuccess:"daten \u00FCbertragen."};
function goIntro() {
gotoAndPlay ("intro");
}
loaderAnim.stop();
loaderAnim2.stop();
loaderTxt_mc.gotoAndStop(1);
tempArray = ["loaderAnim", "loaderAnim2", "loaderTxt_mc", "loaderGlow_mc"];
var i = 0;
while (i < tempArray.length) {
this[tempArray[i]].alphaTo(0, 0.5, "linear", 0.5, goIntro);
i++;
}
loaderAnim.scaleTo(5, 1, "easeinback", 0, undefined, 3);
loaderAnim2.scaleTo(5, 1, "easeinback", 0, undefined, 3);
stop();
Frame 20
function goTitle() {
gotoAndPlay(_currentframe + 1);
}
_global.sound = new Sound(this);
createEmptyMovieClip("soundClip", -32000);
Character_mc._y = Character_mc._y + 300;
Character_mc.slideTo(405, 110, 1, "easeoutback", 0.5, goTitle, 1.2);
orange_mc._y = orange_mc._y + 50;
orange_mc.slideTo(0, 340, 1, "easeoutback", 0, undefined, 1);
Logo_mc._alpha = 0;
Logo_mc.alphaTo(100, 1, "linear", 0, undefined);
grid_mc._alpha = 0;
grid_mc.alphaTo(30, 1, "linear", 0, undefined);
var i = 1;
while (i <= 4) {
this["cloud" + i].oldAlpha = this["cloud" + i]._alpha;
this["cloud" + i]._alpha = 0;
this["cloud" + i].alphaTo(this["cloud" + i].oldAlpha, 1, "linear", 0, undefined);
i++;
}
initCloud = function (cloud, speed) {
cloud.y = cloud._y;
cloud.speed = speed;
cloud.onEnterFrame = function () {
this._x = this._x - this.speed;
if (this._x < (-this._width)) {
this._x = 425;
this._y = (random(80) - 40) + this.y;
}
};
};
initCloud(cloud1, 0.2);
initCloud(cloud2, 0.15);
initCloud(cloud3, 0.06);
initCloud(cloud4, 0.12);
stop();
Frame 26
imprint_btn.onRelease = function () {
blankKey = -1;
while ((substring($version, blankKey, 1)) != " ") {
blankKey++;
}
version = substring($version, blankKey + 1, 1);
if (version > 7) {
getURL ("impressum.html", "_blank");
} else {
getURL ("javascript:imprint=window.open('impressum.html','imprint','height=394,width=285,left=0,top=0,status=no,resizable=no, scrollbars=no');imprint.focus();");
}
};
lang_ger_btn.onRelease = function () {
this.enabled = false;
this.gotoAndStop("_disabled");
_global.currLanguage = "ger";
_global.words = words_ger;
continue_btn.label_txt.text = (continue_btn.dropshadow_txt.text = words.cont);
imprint_btn.label_txt.text = (imprint_btn.dropshadow_txt.text = words.imprint);
this._parent.lang_eng_btn.gotoAndStop("_up");
this._parent.lang_eng_btn.enabled = true;
};
lang_eng_btn.onRelease = function () {
this.enabled = false;
this.gotoAndStop("_disabled");
_global.currLanguage = "eng";
_global.words = words_eng;
continue_btn.label_txt.text = (continue_btn.dropshadow_txt.text = words.cont);
imprint_btn.label_txt.text = (imprint_btn.dropshadow_txt.text = words.imprint);
this._parent.lang_ger_btn.gotoAndStop("_up");
this._parent.lang_ger_btn.enabled = true;
};
lang_eng_btn.onRelease();
continue_btn.label_txt.text = (continue_btn.dropshadow_txt.text = words.cont);
continue_btn.onRelease = function () {
this.enabled = false;
this._parent.gotoAndPlay(_currentframe + 1);
};
continue_btn.buttonBody_mc._xscale = (continue_btn.buttonBody_mc._yscale = 5);
bigLogo_mc._alpha = 0;
bigLogo_mc.alphaTo(100, 1, "linear", 0, undefined);
stopAllSounds();
this.playSound("bing");
stop();
Frame 30
initNav = function () {
navButton_array = new Array("start_game", "instructions", "hall_of_fame", "recommend");
navButtonLabels_array = new Array(words.startGame, words.howToPlay, words.highScores, words.recommend);
var _local3 = 0;
while (_local3 < navButton_array.length) {
this[navButton_array[_local3] + "_btn"].jumpTarget = navButton_array[_local3];
this[navButton_array[_local3] + "_btn"].onRelease = function () {
if (this.jumpTarget != this._parent.currScreen) {
this._parent.blockNav();
this._parent.gotoAndStop(this.jumpTarget);
}
};
this[navButton_array[_local3] + "_btn"].buttonBody_mc._xscale = (this[navButton_array[_local3] + "_btn"].buttonBody_mc._yscale = 5);
this[navButton_array[_local3] + "_btn"].label_txt.text = (this[navButton_array[_local3] + "_btn"].dropshadow_txt.text = navButtonLabels_array[_local3]);
_local3++;
}
home_btn.onRelease = function () {
levelChange_mc.removeMovieClip();
this._parent.gotoAndPlay("start");
};
sound_btn.sndStatus = "on";
sound_btn.onRelease = function () {
this.sndStatus = ((this.sndStatus == "on") ? "off" : "on");
this.buttonBody_mc.status_mc.gotoAndStop(this.sndStatus);
var _local3 = ((this.sndStatus == "on") ? 100 : 0);
_global.sound.setVolume(_local3);
};
home_btn.buttonBody_mc._xscale = (home_btn.buttonBody_mc._yscale = 5);
sound_btn.buttonBody_mc._xscale = (sound_btn.buttonBody_mc._yscale = 5);
};
blockNav = function () {
var _local2 = 0;
while (_local2 < navButton_array.length) {
this[navButton_array[_local2] + "_btn"].enabled = false;
_local2++;
}
};
enableNav = function () {
var _local2 = 0;
while (_local2 < navButton_array.length) {
this[navButton_array[_local2] + "_btn"].enabled = true;
_local2++;
}
};
initNav();
navInited = true;
Frame 31
function showPanelText() {
trace("!!! go Next > how to play");
gotoAndStop(_currentframe + 1);
}
illu_mc._visible = false;
panel_mc._xscale = (panel_mc._yscale = 5);
panel_mc.scaleTo(100, 1, "easeoutelastic", 0, showPanelText, 1);
currScreen = "instructions";
stop();
Frame 32
instrHead_txt.setHead(words.howToPlay);
instrHeadShade_txt.setHead(words.howToPlay);
illu_mc._visible = true;
illu_mc.gotoAndPlay("aufbau");
enableNav();
stop();
Frame 40
function goNext() {
gotoAndStop(_currentframe + 1);
}
panel_mc._yscale = (panel_mc._xscale = 5);
panel_mc.scaleTo(100, 1, "easeoutelastic", 0, goNext, 1);
if (!navInited) {
initNav();
}
currScreen = "hall_of_fame";
stop();
Frame 41
function goNext() {
trace("!!! go Next > Hall of Fame 2");
gotoAndStop(_currentframe + 1);
}
headScores_txt.setHead(words.halloffame);
headScoresShade_txt.setHead(words.halloffame);
labelHighScores_txt.setHead(words.highestScores, "left");
labelHighScoresShade_txt.setHead(words.highestScores, "left");
labelBestShapes_txt.setHead(words.bestshapes, "left");
labelBestShapesShade_txt.setHead(words.bestshapes, "left");
btnPrevLabel_txt.setHead(words.hof_previous, "right");
btnPrevLabelShade_txt.setHead(words.hof_previous, "right");
btnNextLabel_txt.setHead(words.hof_next, "left");
btnNextLabelShade_txt.setHead(words.hof_next, "left");
bestScores_btn.onRelease = function () {
this._parent.gotoAndStop("highscores");
};
bestShapes_btn.onRelease = function () {
this._parent.gotoAndStop("bestshapes");
};
goPrev_btn.onRelease = function () {
};
goNext_btn.onRelease = function () {
};
gotNext_btn._alpha = 0;
goPrev_btn._alpha = 0;
bestScores_btn._alpha = 0;
bestShapes_btn._alpha = 0;
goNext_btn.alphaTo(100, 1);
goPrev_btn.alphaTo(100, 1);
bestScores_btn.alphaTo(100, 1);
bestShapes_btn.alphaTo(100, 1, "linear", 0.1, goNext);
stop();
Frame 42
gotoAndPlay ("highscores");
Frame 49
bestScores_btn.enabled = false;
bestShapes_btn.enabled = true;
goPrev_btn.enabled = false;
goNext_btn.enabled = true;
enableNav();
currScreen = "hall_of_fame";
stop();
Frame 59
bestScores_btn.enabled = true;
bestShapes_btn.enabled = false;
goPrev_btn.enabled = true;
goNext_btn.enabled = true;
stop();
Frame 68
function goForm() {
gotoAndStop(_currentframe + 1);
}
panel_mc._xscale = (panel_mc._yscale = 5);
panel_mc.scaleTo(100, 1, "easeoutelastic", 0, goForm, 1);
illu_mc._visible = false;
currScreen = "recommend";
stop();
Frame 69
recommendHead_txt.setHead(words.recommend);
recommendShade_txt.setHead(words.recommend);
recommendCopy_txt.setHead(words.recommend_0, "left");
recommendCopyShade_txt.setHead(words.recommend_0, "left");
inputMailTo_txt.setHead(words.recommend_1, "left");
inputNameTo_txt.setHead(words.recommend_2, "left");
inputNameFrom_txt.setHead(words.recommend_3, "left");
inputMailTo_txt.oldTxt = inputMailTo_txt.text;
inputNameTo_txt.oldTxt = inputNameTo_txt.text;
inputNameFrom_txt.oldTxt = inputNameFrom_txt.text;
inputMailTo_txt.tabIndex = 0;
inputNameTo_txt.tabIndex = 1;
inputNameFrom_txt.tabIndex = 2;
inputMailTo_txt.maxChars = 25;
inputNameTo_txt.maxChars = 25;
inputNameFrom_txt.maxChars = 25;
inputMailTo_txt.restrict = "^a-z";
inputNameTo_txt.restrict = "^a-z";
inputNameFrom_txt.restrict = "^a-z";
submitRecommendation = function () {
errorfield = undefined;
switch (true) {
case (inputMailTo_txt.text == inputMailTo_txt.oldTxt) || (inputMailTo_txt.length < 6) :
errorfield = inputMailTo_txt;
break;
case !inputMailTo_txt.text.isEmail() :
errorfield = inputMailTo_txt;
break;
case (inputNameTo_txt.text == inputNameTo_txt.oldTxt) || (inputNameTo_txt.length < 2) :
errorfield = inputNameTo_txt;
break;
case (inputNameFrom_txt.text == inputNameFrom_txt.oldTxt) || (inputNameFrom_txt.length < 2) :
errorfield = inputNameFrom_txt;
break;
}
if (errorfield != undefined) {
playSound("drip");
Selection.setFocus(errorfield);
Selection.setSelection(0, errorfield.length);
} else {
Key.removeListener(checkReturn);
delete submit_btn.onRelease;
recommendLV = new LoadVars();
recommendLV.mailTo = inputMailTo_txt.text;
recommendLV.nameTo = inputNameTo_txt.text;
recommendLV.nameFrom = inputNameFrom_txt.text;
recommendLV.onLoad = function (success) {
if (success) {
if (response == 1) {
gotoAndPlay(_currentframe + 1);
}
}
};
this._parent.blockNav();
this._parent.gotoAndPlay(this._parent._currentframe + 1);
}
};
checkReturn = new Object();
checkReturn.onKeyDown = function () {
if (Key.isDown(13)) {
}
};
Key.addListener(checkReturn);
submit_btn.onRelease = submitRecommendation;
submit_btn._alpha = 0;
submit_btn.alphaTo(100, 1);
submitBtn_txt.setHead(words.submit, "LEFT");
submitBtnShade_txt.setHead(words.submit, "LEFT");
Selection.setFocus(inputMailTo_txt);
Selection.setSelection(0, inputMailTo_txt.length);
illu_mc._visible = true;
illu_mc.gotoAndPlay("aufbau");
enableNav();
stop();
Frame 70
function goSendScore() {
panel_mc._visible = false;
illu_mc._visible = false;
gotoAndPlay ("send_recommend");
}
for (i in this) {
if ((typeof(this[i]) == "object") && (this[i].text != undefined)) {
this[i]._alpha = 0;
}
}
submit_btn.enabled = false;
submit_btn._visible = false;
panel_mc.scaleTo(5, 0.25, "easeinelastic", 0, goSendScore, 0.25);
illu_mc.scaleTo(5, 0.25, "easeinelastic", 0, undefined, 0.25);
stop();
Frame 78
function goSubmit() {
gotoAndPlay(_currentframe + 1);
}
panel_mc._xscale = (panel_mc._yscale = 5);
panel_mc.scaleTo(100, 1, "easeoutelastic", 0, goSubmit, 1);
stop();
Frame 79
recommendLV.onLoad = function (success) {
if (success || (this.serverStat == "1")) {
gotoAndPlay(_currentframe + 1);
}
};
recommURL = ("recommend_" + _global.currLanguage) + ".php";
recommendLV.sendAndLoad(recommURL, recommendLV, "POST");
stop();
Frame 80
successLabel_txt.setHead(words.submitsuccess);
successLabelShade_txt.setHead(words.submitsuccess);
this._parent.enableNav();
standBy(3);
stop();
Frame 81
function goHTP() {
trace("Submitted >> How to play");
gotoAndPlay ("instructions");
}
successLabel_txt.alphaTo(0, 1);
successLabelShade_txt.alphaTo(0, 1);
panel_mc.scaleTo(5, 0.25, "easeinelastic", 0, goHTP, 0.25);
stop();
Frame 90
navInited = true;
currScreen = "start_game";
stop();
Frame 91
stop();
Frame 92
stop();
Frame 93
stop();
Frame 94
stop();
Frame 95
stop();
Frame 96
stop();
Frame 97
stop();
Frame 99
function goBoard() {
trace("!!! go Next > scoreBoard");
gotoAndStop(_currentframe + 1);
}
panel_mc._xscale = (panel_mc._yscale = 5);
panel_mc.scaleTo(100, 1, "easeoutelastic", 0, goBoard, 1);
tempArray = ["achievedScore_txt", "achievedScoreShade_txt", "playTime_txt", "playTimeShade_txt", "shapesDone_txt", "shapesDoneShade_txt", "bestShape_txt", "bestShapeShade_txt", "stars"];
for (i in tempArray) {
this[tempArray[i]]._alpha = 0;
}
illu_mc._visible = false;
stop();
Frame 100
for (i in tempArray) {
this[tempArray[i]].alphaTo(100, 1, "linear");
}
scoreBoardHead_txt.setHead(words.scoreboard);
scoreBoardHeadShade_txt.setHead(words.scoreboard);
gameStats_txt.setHead(words.gamestats, "LEFT");
gameStatsShade_txt.setHead(words.gamestats, "LEFT");
labelScore_txt.setHead(words.yourscore, "LEFT");
labelScoreShade_txt.setHead(words.yourscore, "LEFT");
labelPlayTime_txt.setHead(words.playtime, "LEFT");
labelPlayTimeShade_txt.setHead(words.playtime, "LEFT");
labelShapesDone_txt.setHead(words.numshapes, "LEFT");
labelShapesDoneShade_txt.setHead(words.numshapes, "LEFT");
labelBestShape_txt.setHead(words.bestshape, "LEFT");
labelBestShapeShade_txt.setHead(words.bestshape, "LEFT");
playerName_txt.setHead(words.entername, "LEFT");
playerName_txt.oldTxt = playerName_txt.text;
playerName_txt.maxChars = 25;
playerName_txt.restrict = "^a-z";
Selection.setFocus(playerName_txt);
Selection.setSelection(0, playerName_txt.text.length);
submitScore = function () {
if ((playerName_txt.text != playerName_txt.oldTxt) && (playerName_txt.length > 2)) {
submitScore = new LoadVars();
submitScore.playerName = playerName_txt.text;
submitScore.bestShape = bestShape_txt.text;
submitScore.playerScore = points;
Key.removeListener(checkReturn);
delete submit_btn.onRelease;
this._parent.gotoAndStop(_currentframe + 1);
} else {
playSound("drip");
Selection.setFocus(playerName_txt);
Selection.setSelection(0, playerName_txt.text.length);
}
};
submit_btn.onRelease = submitScore;
checkReturn = new Object();
checkReturn.onKeyDown = function () {
if (Key.isDown(13)) {
}
};
Key.addListener(checkReturn);
submitBtn_txt.setHead(words.submit, "LEFT");
submitBtnShade_txt.setHead(words.submit, "LEFT");
if (bestShape >= 30) {
stars.gotoAndStop(Math.ceil((bestShape - 20) / 10) + 1);
}
if (bestShape >= 80) {
stars.gotoAndStop(7);
}
illu_mc._visible = true;
illu_mc.gotoAndPlay("aufbau");
stop();
Frame 101
function goSendScore() {
panel_mc._visible = false;
illu_mc._visible = false;
gotoAndPlay ("sendScore");
}
for (i in this) {
if ((typeof(this[i]) == "object") && (this[i].text != undefined)) {
this[i]._alpha = 0;
}
}
submit_btn.enabled = false;
submit_btn._visible = false;
stars._alpha = 0;
panel_mc.scaleTo(5, 0.25, "easeinelastic", 0, goSendScore, 0.25);
illu_mc.scaleTo(5, 0.25, "easeinelastic", 0, undefined, 0.25);
stop();
Frame 108
function goScore() {
trace("!!! go Next > sendComplete");
gotoAndStop(_currentframe + 1);
}
panel_mc._xscale = (panel_mc._yscale = 5);
panel_mc.scaleTo(100, 1, "easeoutelastic", 0, goScore, 1);
stop();
Frame 109
submitScore.onLoad = function (success) {
if (success) {
_root.ausg = "SUCCESS";
_root.gotoAndPlay(_root._currentframe + 1);
}
};
_root.ausg = "nicht gesendet";
submitScore.load((((("hwrite.php?spieler=" + submitScore.playerName) + "&score=") + submitScore.playerScore) + "&shape=") + submitScore.bestShape);
Frame 110
successLabel_txt.setHead(words.submitsuccess);
successLabelShade_txt.setHead(words.submitsuccess);
standBy(3);
stop();
Frame 111
function goHScore() {
trace("Submitted >> HighScore");
gotoAndPlay ("hall_of_fame");
}
successLabel_txt.alphaTo(0, 1);
successLabelShade_txt.alphaTo(0, 1);
panel_mc.scaleTo(5, 0.25, "easeinelastic", 0, goHScore, 0.25);
stop();
Symbol 14 MovieClip Frame 40
stop();
Symbol 15 MovieClip Frame 50
stop();
Symbol 17 MovieClip Frame 40
stop();
Symbol 18 MovieClip Frame 51
stop();
Symbol 19 MovieClip Frame 1
stop();
Symbol 19 MovieClip Frame 2
stop();
Symbol 19 MovieClip Frame 3
stop();
Symbol 19 MovieClip Frame 4
stop();
Symbol 19 MovieClip Frame 5
stop();
Symbol 19 MovieClip Frame 6
stop();
Symbol 19 MovieClip Frame 7
stop();
Symbol 23 MovieClip [score_mc] Frame 1
txt_mc._alpha = 0;
Symbol 23 MovieClip [score_mc] Frame 8
txt_mc._alpha = 100;
bonus_mc.gotoAndStop(this.starCnt);
Symbol 23 MovieClip [score_mc] Frame 87
this.removeMovieClip();
Symbol 66 MovieClip [levelChange] Frame 17
diffLevel_txt.setHead("LEVEL: " + _global.currDiffLevel);
Symbol 66 MovieClip [levelChange] Frame 20
standBy(3);
stop();
Symbol 66 MovieClip [levelChange] Frame 27
this.removeMovieClip();
stop();
Symbol 74 MovieClip Frame 1
stop();
Symbol 74 MovieClip Frame 2
stop();
Symbol 81 MovieClip Frame 1
stop();
Symbol 81 MovieClip Frame 2
stop();
Symbol 86 MovieClip Frame 1
stop();
Symbol 86 MovieClip Frame 2
stop();
Symbol 91 MovieClip Frame 1
stop();
Symbol 91 MovieClip Frame 2
stop();
Symbol 99 MovieClip Frame 1
stop();
Symbol 99 MovieClip Frame 2
stop();
Symbol 104 MovieClip Frame 1
stop();
Symbol 104 MovieClip Frame 2
stop();
Symbol 105 MovieClip [curve] Frame 8
initBut("l2", "r4");
lineArray = [3, 5, 5, 0];
this._parent.checkConnection(this.x, this.y);
stop();
Symbol 105 MovieClip [curve] Frame 17
initBut("l3", "r1");
lineArray = [5, 5, 3, 2];
this._parent.checkConnection(this.x, this.y);
stop();
Symbol 105 MovieClip [curve] Frame 26
initBut("l4", "r2");
lineArray = [5, 2, 1, 5];
this._parent.checkConnection(this.x, this.y);
stop();
Symbol 105 MovieClip [curve] Frame 35
initBut("l1", "r3");
lineArray = [1, 0, 5, 5];
this._parent.checkConnection(this.x, this.y);
stop();
Symbol 105 MovieClip [curve] Frame 43
gotoAndStop ("p1");
Symbol 105 MovieClip [curve] Frame 50
gotoAndStop ("p2");
Symbol 105 MovieClip [curve] Frame 57
gotoAndStop ("p3");
Symbol 105 MovieClip [curve] Frame 64
gotoAndStop ("p4");
Symbol 105 MovieClip [curve] Frame 72
initBut("ll2", "rl2");
lineArray = [5, 3, 5, 1];
this._parent.checkConnection(this.x, this.y);
stop();
Symbol 105 MovieClip [curve] Frame 80
initBut("ll1", "rl1");
lineArray = [2, 5, 0, 5];
this._parent.checkConnection(this.x, this.y);
stop();
Symbol 105 MovieClip [curve] Frame 87
gotoAndStop ("pl1");
Symbol 105 MovieClip [curve] Frame 94
gotoAndStop ("pl2");
Symbol 113 MovieClip Frame 1
stop();
Symbol 113 MovieClip Frame 2
stop();
Symbol 118 MovieClip Frame 1
stop();
Symbol 118 MovieClip Frame 2
stop();
Symbol 123 MovieClip Frame 1
stop();
Symbol 123 MovieClip Frame 2
stop();
Symbol 128 MovieClip Frame 1
stop();
Symbol 128 MovieClip Frame 2
stop();
Symbol 130 MovieClip [endTile_mc] Frame 1
stop();
Symbol 135 MovieClip Frame 20
stop();
Symbol 137 MovieClip [htp_pointer] Frame 1
stop();
Symbol 142 MovieClip [textPanel_gameOver] Frame 1
txtPanel_mc._xscale = (txtPanel_mc._yscale = 5);
txtPanel_mc.scaleTo(100, 1, "easeoutelastic", 0, undefined, 10);
gameStartHead_txt.setHead("GAME OVER!");
gameStartHeadShade_txt.setHead("GAME OVER!");
gameStartHead_txt._alpha = (gameStartHeadShade_txt._alpha = 0);
gameStartHead_txt.alphaTo(100, 0, "linear", 0.5);
gameStartHeadShade_txt.alphaTo(100, 1, "linear", 0.5);
standBy(2.5);
stop();
Symbol 142 MovieClip [textPanel_gameOver] Frame 2
txtPanel_mc.scaleTo(5, 0.5, "easeinquad", 0.25, undefined);
gameStartHead_txt.alphaTo(0, 0.5, "linear");
gameStartHeadShade_txt.alphaTo(0, 0.5, "linear");
standBy(1);
stop();
Symbol 142 MovieClip [textPanel_gameOver] Frame 3
_root.gotoAndPlay("scoreBoard");
this.removeMovieClip();
Symbol 145 MovieClip [textPanel_gameStart] Frame 1
txtPanel_mc._xscale = (txtPanel_mc._yscale = 5);
txtPanel_mc.scaleTo(100, 1, "easeoutelastic", 0, undefined, 10);
gameStartHead_txt.setHead("GAME START");
gameStartHeadShade_txt.setHead("GAME START");
gameStartHead_txt._alpha = (gameStartHeadShade_txt._alpha = 0);
gameStartHead_txt.alphaTo(100, 0, "linear", 0.5);
gameStartHeadShade_txt.alphaTo(100, 1, "linear", 0.5);
standBy(2.5);
stop();
Symbol 145 MovieClip [textPanel_gameStart] Frame 2
txtPanel_mc.scaleTo(5, 0.5, "easeinquad", 0.25, undefined);
gameStartHead_txt.alphaTo(0, 0.5, "linear");
gameStartHeadShade_txt.alphaTo(0, 0.5, "linear");
standBy(1);
stop();
Symbol 145 MovieClip [textPanel_gameStart] Frame 3
_root.paused = false;
this._parent.checkAll();
this.removeMovieClip();
Symbol 151 MovieClip Frame 1
stop();
Symbol 151 MovieClip Frame 11
stop();
Symbol 152 MovieClip [goodies] Frame 10
stop();
Symbol 152 MovieClip [goodies] Frame 25
this.removeMovieClip();
Symbol 154 MovieClip [pointsBonusMessage] Frame 1
this._xscale = (this._yscale = 5);
this.scaleTo(100, 1, "easeoutelastic", 0, undefined, 10);
Symbol 154 MovieClip [pointsBonusMessage] Frame 50
this.removeMovieClip();
Symbol 159 MovieClip [timeBonusMessage] Frame 1
this._xscale = (this._yscale = 5);
this.scaleTo(100, 1, "easeoutelastic", 0, undefined, 10);
Symbol 159 MovieClip [timeBonusMessage] Frame 50
this.removeMovieClip();
Symbol 188 MovieClip Frame 1
MovieClip.prototype.doRotation = function () {
this.isRotating = true;
this.startOffset = random(100);
this.startCounter = 0;
this.rotDirection = (((this._rotation - this.targetRotation) == -90) ? 1 : -1);
this.onEnterFrame = function () {
if (this.startCounter > this.startOffset) {
if (this.rotCounter < 5) {
this.rotCounter++;
this._rotation = this._rotation + (18 * this.rotDirection);
} else {
delete this.onEnterFrame;
this._rotation = this.targetRotation;
this.isRotating = false;
}
} else {
this.startCounter++;
}
};
};
j = 0;
for (var i in this) {
if (typeof(this[i]) == "movieclip") {
j++;
if ((j % 5) == 0) {
this[i].targetRotation = Math.floor(this[i]._rotation);
this[i]._rotation = Math.floor(this[i]._rotation);
this[i].rotCounter = 0;
var angleOffset = ((random(2) > 0) ? 90 : -90);
this[i]._rotation = this[i]._rotation + angleOffset;
this[i].doRotation();
}
}
}
holder = this.createEmptyMovieClip("sndHolder", 100);
whooshSnd = new Sound(holder);
whooshSnd.attachSound("whoosh");
whooshSnd.start(0, 999);
this.onEnterFrame = function () {
this.allDone = true;
for (var _local2 in this) {
if (typeof(this[_local2]) == "movieclip") {
if (this[_local2].isRotating) {
this.allDone = false;
}
}
}
if (this.allDone) {
delete this.onEnterFrame;
whooshSnd.stop();
this._parent.gotoAndPlay("start");
}
};
stop();
Symbol 201 MovieClip Frame 1
standBy(random(3) + 1);
stop();
Symbol 226 MovieClip Frame 15
stop();
Symbol 227 MovieClip Frame 1
this.label_txt.autoSize = (this.dropshadow_txt.autoSize = "center");
this.buttonBody_mc.scaleTo(100, 1, "easeoutelastic", 0, undefined, 10);
stop();
Symbol 227 MovieClip Frame 8
this.buttonBody_mc.scaleTo(110, 1, "easeoutelastic", 0, undefined, 10);
stop();
Symbol 227 MovieClip Frame 15
stop();
Symbol 231 MovieClip Frame 26
this.standBy(random(3) + 1);
stop();
Symbol 240 MovieClip Frame 1
label_txt.autoSize = (dropshadow_txt.autoSize = "right");
hover_mc._alpha = 0;
stop();
Symbol 240 MovieClip Frame 6
hover_mc._x = label_txt._x + 2;
hover_mc._xscale = label_txt.textWidth;
hover_mc._alpha = 100;
stop();
Symbol 240 MovieClip Frame 13
stop();
Symbol 251 MovieClip Frame 1
stop();
Symbol 251 MovieClip Frame 6
stop();
Symbol 251 MovieClip Frame 13
stop();
Symbol 251 MovieClip Frame 20
stop();
Symbol 258 MovieClip Frame 1
stop();
Symbol 258 MovieClip Frame 6
stop();
Symbol 258 MovieClip Frame 13
stop();
Symbol 258 MovieClip Frame 20
stop();
Symbol 263 MovieClip Frame 8
stop();
Symbol 275 MovieClip Frame 1
this.oldPosX = this._x;
this.onEnterFrame = function () {
this._x = this._x + 5;
if (this._x > (Stage.width + 450)) {
this._x = this.oldPosX;
}
};
this.onRelease = function () {
getURL ("mailto:info@polyaktiv.de?subject=I'm interested in connexions");
};
Symbol 286 MovieClip Frame 1
url_mc._alpha = 0;
url_mc.alphaTo(100, 3);
this.onRelease = function () {
getURL ("http://www.polyaktiv.de", "_blank");
};
this.standBy(5);
stop();
Symbol 286 MovieClip Frame 2
url_mc.alphaTo(0, 3);
this.standBy(8);
stop();
Symbol 294 MovieClip Frame 1
this.label_txt.autoSize = (this.dropshadow_txt.autoSize = "center");
this.buttonBody_mc.scaleTo(100, 1, "easeoutelastic", 0, undefined, 10);
this.buttonBodyShade_mc.scaleTo(100, 1, "easeoutelastic", 0, undefined, 10);
stop();
Symbol 294 MovieClip Frame 8
this.buttonBody_mc.scaleTo(110, 1, "easeoutelastic", 0, undefined, 10);
this.buttonBodyShade_mc.scaleTo(110, 1, "easeoutelastic", 0, undefined, 10);
stop();
Symbol 294 MovieClip Frame 15
stop();
Symbol 297 MovieClip Frame 1
stop();
Symbol 297 MovieClip Frame 6
stop();
Symbol 301 MovieClip Frame 1
this.label_txt.autoSize = (this.dropshadow_txt.autoSize = "center");
this.buttonBody_mc.scaleTo(100, 1, "easeoutelastic", 0, undefined, 10);
this.buttonBodyShade_mc.scaleTo(100, 1, "easeoutelastic", 0, undefined, 10);
stop();
Symbol 301 MovieClip Frame 8
this.buttonBody_mc.scaleTo(110, 1, "easeoutelastic", 0, undefined, 10);
this.buttonBodyShade_mc.scaleTo(110, 1, "easeoutelastic", 0, undefined, 10);
stop();
Symbol 301 MovieClip Frame 15
stop();
Symbol 329 MovieClip Frame 1
stop();
Symbol 329 MovieClip Frame 28
stop();
Symbol 330 MovieClip Frame 1
function nextText() {
currTxtNum++;
currTxtNum = ((currTxtNum <= 5) ? (currTxtNum) : 1);
this._parent.instrCopy_txt.alphaTo(0, 1, "linear", 0, undefined);
this._parent.instrCopyShade_txt.alphaTo(0, 1, "linear", 0, showText);
}
function showText() {
this._parent.instrCopy_txt.setHead(words["htp_screen" + currTxtNum], "left");
this._parent.instrCopyShade_txt.setHead(words["htp_screen" + currTxtNum], "left");
}
function setTiles() {
var _local4 = ["p1", "pl1", "p4", "pl2", "pl1", "pl2", "p2", "p2", "pl2", "p1", "p2", "pl2", "p2", "pl1", "p3"];
var _local2 = 0;
while (_local2 < 15) {
var _local3 = attachMovie("curve", "curve" + _local2, _local2);
_local3._x = 18 + ((_local2 % 3) * 36);
_local3._y = 18 + (Math.floor(_local2 / 3) * 36);
_local3.initBut = function (p1, p2) {
this.spaceClick = function () {
this.gotoAndPlay(p1);
pointer.gotoAndPlay("click");
};
this.simpleClick = function () {
this.gotoAndPlay(p2);
pointer.gotoAndPlay("click");
};
};
_local3.gotoAndStop(_local4[_local2]);
_local3._alpha = 0;
_local3.alphaTo(100, 1, "linear", 0, undefined);
_local2++;
}
}
function colorRed(arr) {
var _local4 = 0;
while (_local4 < 15) {
var _local2 = this["curve" + _local4];
_local2.gfx.gotoAndStop(1);
_local4++;
}
for (_local4 in arr) {
var _local2 = this["curve" + arr[_local4]];
_local2.gfx.gotoAndStop(2);
}
}
currTxtNum = 0;
this.attachMovie("htp_pointer", "pointer", 100);
pointer._x = -10;
pointer._y = -10;
pointer.moveMe = function (tile) {
if (tile == "back") {
this.dx = -10;
this.dy = -10;
} else {
this.dx = 18 + ((tile % 3) * 36);
this.dy = 18 + (Math.floor(tile / 3) * 36);
}
this.onEnterFrame = function () {
var _local3 = (this._x - this.dx) / 4;
var _local2 = (this._y - this.dy) / 4;
this._x = this._x - _local3;
this._y = this._y - _local2;
if ((Math.abs(_local3) + Math.abs(_local2)) < 0.1) {
delete this.onEnterFrame;
}
};
};
this._parent.instrCopy_txt._alpha = 0;
this._parent.instrCopyShade_txt._alpha = 0;
_root.paused = 1;
pointer.swapDepths(100);
Symbol 330 MovieClip Frame 2
setTiles();
nextText();
standBy(0.5);
stop();
Symbol 330 MovieClip Frame 6
pointer.moveMe(7);
Symbol 330 MovieClip Frame 23
curve7.simpleClick();
Symbol 330 MovieClip Frame 28
colorRed([7, 10]);
standBy(0.5);
stop();
Symbol 330 MovieClip Frame 42
pointer.moveMe(10);
Symbol 330 MovieClip Frame 57
curve10.spaceClick();
Symbol 330 MovieClip Frame 62
colorRed([0, 1, 2, 3, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14]);
standBy(0.5);
stop();
Symbol 330 MovieClip Frame 72
pointer.moveMe(7);
standBy(0.5);
stop();
Symbol 330 MovieClip Frame 80
curve7.simpleClick();
Symbol 330 MovieClip Frame 85
colorRed([0, 1, 2, 3, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14]);
Symbol 330 MovieClip Frame 93
function showStar(counter) {
clearInterval(starInterval);
counter++;
if (counter < starArray.length) {
score = _root.instructions_mc["curve" + starArray[counter]].attachMovie("score_mc", "score_mc", 1);
_root.instructions_mc["curve" + starArray[counter - 1]].alphaTo(0, 1);
_root.instructions_mc["curve" + starArray[counter - 1]].playSound("bing");
score.sc = (counter * 15) + 15;
starInterval = setInterval(showStar, 150, counter);
} else {
standBy(0.25);
}
}
counter = -1;
starArray = [10, 7, 6, 3, 0, 1, 2, 5, 8, 11, 14, 13, 12, 9];
showStar(0);
pointer.moveMe("back");
stop();
Symbol 330 MovieClip Frame 97
var i = 0;
while (i < 15) {
this["curve" + i].alphaTo(0, 1, "linear", 0, undefined);
i++;
}
standBy(1.5);
stop();
Symbol 330 MovieClip Frame 98
gotoAndPlay (2);
Symbol 342 MovieClip Frame 1
this.scaleTo(100, 1, "easeoutelastic", 0, undefined, 10);
stop();
Symbol 342 MovieClip Frame 8
this.scaleTo(110, 1, "easeoutelastic", 0, undefined, 10);
stop();
Symbol 342 MovieClip Frame 15
stop();
Symbol 350 MovieClip Frame 1
this.scaleTo(100, 1, "easeoutelastic", 0, undefined, 10);
stop();
Symbol 350 MovieClip Frame 8
this.scaleTo(110, 1, "easeoutelastic", 0, undefined, 10);
stop();
Symbol 350 MovieClip Frame 15
stop();
Symbol 446 MovieClip Frame 1
_root.ausg = "nix";
hsClip = this;
anzahl = 15;
seite = 0;
order = "score";
dir = "desc";
lesen = new LoadVars();
lesen.onLoad = function (lo) {
if (lo) {
_root.ausg = "GELESEN";
spieler = (score = (shape = (datum = (id = ""))));
daten = this.daten.split("||");
daten.pop();
i = 1;
while (i < 16) {
hsClip["nr" + i] = ((seite * 15) + i) + ".";
_root["s" + i] = "---";
_root["n" + i] = "-----";
i++;
}
i = 0;
while (i < daten.length) {
daten[i] = daten[i].split("##");
i++;
}
i = 0;
while (i < daten.length) {
_root["s" + (i + 1)] = daten[i][2];
_root["n" + (i + 1)] = daten[i][1];
hsClip.gotoAndPlay("show");
hsClip._alpha = 0;
i++;
}
maxseiten = Math.ceil(this.max / anzahl);
page = ((seite + 1) + " / ") + maxseiten;
}
};
lesen.load((((((((("hread.php?s=" + seite) + "&a=") + anzahl) + "&s=") + seite) + "&o=") + order) + "&d=") + dir);
this._parent.goNext_btn.onPress = function () {
seite++;
lesen.load((((((((("hread.php?s=" + seite) + "&a=") + anzahl) + "&s=") + seite) + "&o=") + order) + "&d=") + dir);
if (seite == (maxseiten - 1)) {
this._parent.goNext_btn.enabled = false;
}
this._parent.goPrev_btn.enabled = true;
hsClip.gotoAndStop("load");
};
this._parent.goPrev_btn.onPress = function () {
seite--;
lesen.load((((((((("hread.php?s=" + seite) + "&a=") + anzahl) + "&s=") + seite) + "&o=") + order) + "&d=") + dir);
if (seite == 0) {
this._parent.goPrev_btn.enabled = false;
}
this._parent.goNext_btn.enabled = true;
hsClip.gotoAndStop("load");
};
stop();
Symbol 446 MovieClip Frame 15
this._alpha = 0;
Symbol 446 MovieClip Frame 24
this.alphaTo(100, 1);
stop();
Symbol 469 MovieClip Frame 1
stop();
Symbol 469 MovieClip Frame 2
stop();
Symbol 469 MovieClip Frame 3
stop();
Symbol 469 MovieClip Frame 4
stop();
Symbol 469 MovieClip Frame 5
stop();
Symbol 469 MovieClip Frame 6
stop();
Symbol 469 MovieClip Frame 7
stop();
Symbol 547 MovieClip Frame 1
_root.ausg = "nix";
hsClip = this;
anzahl = 15;
seite = 0;
order = "shape";
dir = "desc";
lesen = new LoadVars();
lesen.onLoad = function (lo) {
if (lo) {
_root.ausg = "Gelesen";
spieler = (score = (shape = (datum = (id = ""))));
daten = this.daten.split("||");
daten.pop();
i = 1;
while (i < 16) {
hsClip["nr" + i] = ((seite * 15) + i) + ".";
_root["s" + i] = "---";
_root["n" + i] = "-----";
i++;
}
i = 0;
while (i < daten.length) {
daten[i] = daten[i].split("##");
i++;
}
i = 0;
while (i < daten.length) {
_root["s" + (i + 1)] = daten[i][3];
_root["n" + (i + 1)] = daten[i][1];
hsClip.gotoAndPlay("show");
hsClip._alpha = 0;
i++;
}
maxseiten = Math.ceil(this.max / anzahl);
page = ((seite + 1) + " / ") + maxseiten;
}
};
lesen.load((((((((("hread.php?s=" + seite) + "&a=") + anzahl) + "&s=") + seite) + "&o=") + order) + "&d=") + dir);
this._parent.goNext_btn.onPress = function () {
seite++;
lesen.load((((((((("hread.php?s=" + seite) + "&a=") + anzahl) + "&s=") + seite) + "&o=") + order) + "&d=") + dir);
if (seite == (maxseiten - 1)) {
this._parent.goNext_btn.enabled = false;
}
this._parent.goPrev_btn.enabled = true;
hsClip.gotoAndStop("load");
};
this._parent.goPrev_btn.onPress = function () {
seite--;
lesen.load((((((((("hread.php?s=" + seite) + "&a=") + anzahl) + "&s=") + seite) + "&o=") + order) + "&d=") + dir);
if (seite == 0) {
this._parent.goPrev_btn.enabled = false;
}
this._parent.goNext_btn.enabled = true;
hsClip.gotoAndStop("load");
};
stop();
Symbol 547 MovieClip Frame 15
this._alpha = 0;
Symbol 547 MovieClip Frame 25
this.alphaTo(100, 1);
var i = 1;
while (i <= 15) {
this[("star" + i) + "_mc"].gotoAndStop(Math.ceil((_root["s" + i] - 20) / 10) + 1);
i++;
}
stop();
Symbol 567 MovieClip Frame 1
stop();
Symbol 567 MovieClip Frame 27
stop();
Symbol 588 MovieClip Frame 1
function startGame() {
_root.paused = true;
attachMessage("textPanel_gameStart");
goodieTime = 2000;
goodieCounter = 0;
cAlpha = 1;
gravi = 0.7;
depthCounter = 10000;
points = 0;
fallingTiles = 0;
timerSub = 0.02;
timerAdd = 1;
timeLeft = 100;
timerFasten = 0.005;
lastCD = 20;
numberOfShapes = 0;
bestShape = 0;
startTime = getTimer();
tilesDeleted = 0;
level = 1;
nextLevelAt = 150;
this.createEmptyMovieClip("scoreClip", 50000);
this.createEmptyMovieClip("goodieClip", -100);
goodieClip.onEnterFrame = function () {
if (fallingTiles == 0) {
goodieCounter++;
}
if (goodieCounter == 200) {
trace("adding");
var _local2 = this._parent["curve" + random(100)];
_local2.setGoodie(random(2) + 1);
}
};
initEndTiles();
stArray = ["p1", "p2", "p3", "p4", "pl1", "pl2"];
lArray = [[3, 5, 5, 0], [5, 5, 3, 2], [5, 2, 1, 5], [1, 0, 5, 5], [5, 3, 5, 1], [2, 5, 0, 5]];
var _local5 = 0;
while (_local5 < 10) {
var _local4 = 0;
while (_local4 < 10) {
var _local3 = attachMovie("curve", "curve" + (_local4 + (10 * _local5)), (_local4 + 1) + ((_local5 + 1) * 12));
var _local6 = random(6);
_local3.gotoAndStop(stArray[_local6]);
_local3.lineArray = lArray[_local6];
_local3.x = _local4;
_local3.y = _local5;
_local3._x = 36 * _local4;
_local3._y = 36 * _local5;
_local3.yadd = 0;
_local3.posFade();
_local3.setBorderTiles();
_local4++;
}
_local5++;
}
startTimer();
}
function attachMessage(msg) {
var _local2 = this.attachMovie(msg, "msg", 50001);
_local2._x = 180;
_local2._y = 170;
}
function initEndTiles() {
trace("INIT");
var _local1 = 0;
while (_local1 < 10) {
var _local2 = attachMovie("endTile_mc", "et" + _local1, _local1 + 1, {_x:_local1 * 36, _y:-36});
_local2.end.gotoAndStop("e1");
_local2.x = _local1;
_local2.y = -1;
_local2.posFade();
_local2 = attachMovie("endTile_mc", "et1" + _local1, (_local1 + 1) * 12, {_x:-36, _y:_local1 * 36});
_local2.end.gotoAndStop("e4");
_local2.x = -1;
_local2.y = _local1;
_local2.posFade();
_local2 = attachMovie("endTile_mc", "et2" + _local1, 11 + ((_local1 + 1) * 12), {_x:360, _y:_local1 * 36});
_local2.end.gotoAndStop("e2");
_local2.x = 10;
_local2.y = _local1;
_local2.posFade();
_local2 = attachMovie("endTile_mc", "et3" + _local1, _local1 + 133, {_x:_local1 * 36, _y:360});
_local2.x = _local1;
_local2.y = 10;
_local2.posFade();
_local2.end.gotoAndStop("e3");
_local1++;
}
}
function checkConnection(x, y) {
if (!_root.paused) {
var _local3 = 0;
while (_local3 < 40) {
this["et" + _local3].end.gfx.gotoAndStop(1);
_local3++;
}
if ((!checkLocked) && (fallingTiles == 0)) {
_local3 = 0;
while (_local3 < 100) {
this["curve" + _local3].gfx.gotoAndStop(1);
_local3++;
}
var _local5 = x;
var _local4 = y;
startTile = this["curve" + (x + (10 * y))];
cAlpha++;
if (cAlpha > 6) {
cAlpha = 1;
}
dirArray = new Array();
_local3 = 0;
while (_local3 < 4) {
if (startTile.lineArray[_local3] != 5) {
dirArray.push(startTile.lineArray[_local3]);
}
_local3++;
}
tiles2delete = new Array();
rekuCount = 0;
startTile.rekuCheck(dirArray[0]);
if (!done) {
tiles2delete = new Array();
rekuCount = 0;
startTile.rekuCheck(dirArray[1]);
}
done = false;
}
}
}
function deleteTiles(arr) {
done = true;
tilesDeleted = tilesDeleted + arr.length;
if (tilesDeleted > nextLevelAt) {
timerSub = timerSub + timerFasten;
nextLevelAt = nextLevelAt + 150;
level = level + 1;
announceLevel();
}
var _local2 = 1;
while (_local2 <= arr.length) {
arr[_local2].i = _local2;
arr[_local2].cnt = 0;
arr[_local2].startCount = _local2;
arr[_local2]._name = "weg" + _local2;
arr[_local2].swapDepths(++depthCounter);
arr[_local2].fallStarter = false;
if (_local2 == (arr.length - 1)) {
arr[_local2].fallStarter = true;
}
arr[_local2].onEnterFrame = function () {
this.cnt++;
if (this.cnt > this.startCount) {
points = points + (this.i * 5);
var _local2 = scoreClip.attachMovie("score_mc", "score_mc" + this.i, this.i, {sc:this.i * 5, _x:Math.floor(this._x), _y:Math.floor(this._y)});
_local2.starCnt = 1;
if (this.i >= 20) {
if ((this.i % 10) == 0) {
_local2.starCnt = Math.ceil((this.i - 19) / 10) + 1;
playSound("bing");
}
}
timeLeft = timeLeft + timerAdd;
cdLocked = true;
playSound("drip");
this.goodie.execGoodie();
this.fadeAway();
if (this.fallStarter) {
fall();
}
}
};
_local2++;
}
}
function fall() {
tilesArray = new Array();
var _local6 = 0;
while (_local6 < 10) {
tilesArray[i] = new Array();
var _local4 = 9;
var _local5 = 9;
while (_local5 >= 0) {
var _local3 = this["curve" + (_local6 + (10 * _local5))];
if (typeof(_local3) == "movieclip") {
tilesArray[i].push(_local3);
_local3.newY = _local4 * 36;
if (_local4 != _local5) {
_local3.startFall();
}
_local4--;
}
_local5--;
}
var i = _local4;
while (i >= 0) {
var _local2 = attachMovie("curve", "curve" + (depthCounter++), depthCounter);
_local2._x = _local6 * 36;
_local2._y = (-((_local4 - i) + 3)) * 60;
_local2.newY = i * 36;
_local2.yadd = 0;
_local2.gotoAndStop(stArray[random(6)]);
_local2.startFall();
i--;
}
_local6++;
}
}
function checkAll() {
checkedArray = new Array();
var _local1 = 0;
while (_local1 < 100) {
var _local2 = _local1 % 10;
var _local3 = (_local1 - _local2) / 10;
if (!checkedArray[_local1]) {
checkConnection(_local2, _local3);
}
_local1++;
}
}
function setAllDepths() {
var _local3 = 99;
while (_local3 >= 0) {
var _local2 = this["curve" + _local3];
_local2.swapDepths((_local2.x + 1) + (12 * (_local2.y + 1)));
_local3--;
}
}
function endGame() {
trace("ENDE");
_root.paused = true;
_root.points = points;
_root.bestShape = bestShape;
_root.numberOfShapes = numberOfShapes;
var _local5 = Math.floor((getTimer() - startTime) / 1000);
var _local4 = _local5 % 60;
if (_local4 < 10) {
_local4 = "0" + _local4;
}
var _local6 = Math.floor(_local5 / 60) % 10;
_root.overallTime = (_local6 + ":") + _local4;
var _local3 = 0;
while (_local3 < 40) {
this["et" + _local3].posFadeOut();
_local3++;
}
_local3 = 0;
while (_local3 < 100) {
this["curve" + _local3].posFadeOut();
_local3++;
}
attachMessage("textPanel_gameOver");
}
function announceLevel() {
_global.currDiffLevel = level;
lvlChg = _root.attachMovie("levelChange", "levelChange_mc", 12345);
lvlChg._x = 511;
lvlChg._y = 218;
}
MovieClip.prototype.posFade = function () {
this._alpha = 0;
this.cnt = this.x + this.y;
this.onEnterFrame = function () {
this.cnt = this.cnt + 0.5;
if (this.cnt > 18) {
delete this.onEnterFrame;
this.alphaTo(100, 1, "linear", 0, undefined);
}
};
};
MovieClip.prototype.posFadeOut = function () {
this._alpha = 100;
this.cnt = this.x + this.y;
this.onEnterFrame = function () {
this.cnt = this.cnt + 0.5;
if (this.cnt > 18) {
delete this.onEnterFrame;
this.alphaTo(0, 1, "linear", 0, undefined);
}
};
};
MovieClip.prototype.initBut = function (p1, p2) {
this.but1.onRelease = function () {
if ((!_root.paused) && (fallingTiles == 0)) {
if (Key.isDown(32)) {
this._parent.gotoAndPlay(p1);
this.onRelease = null;
} else {
this._parent.gotoAndPlay(p2);
this.onRelease = null;
}
}
};
};
MovieClip.prototype.rekuCheck = function (dir) {
rekuCount++;
tiles2delete.push(this);
checkedArray[this.x + (10 * this.y)] = true;
this.setBorderTiles();
if ((this != startTile) || (rekuCount < 2)) {
switch (dir) {
case 0 :
this.setCCol();
if ((this.y + 1) < 10) {
var _local3 = this.y + 1;
} else {
var _local3 = 0;
}
nextTile = this._parent["curve" + (this.x + (10 * _local3))];
if (nextTile.lineArray[2] != 5) {
nextTile.rekuCheck(nextTile.lineArray[2]);
}
break;
case 1 :
this.setCCol();
if ((this.x - 1) >= 0) {
var _local2 = this.x - 1;
} else {
var _local2 = 9;
}
nextTile = this._parent["curve" + (_local2 + (10 * this.y))];
if (nextTile.lineArray[3] != 5) {
nextTile.rekuCheck(nextTile.lineArray[3]);
}
break;
case 2 :
this.setCCol();
if ((this.y - 1) >= 0) {
var _local3 = this.y - 1;
} else {
var _local3 = 9;
}
nextTile = this._parent["curve" + (this.x + (10 * _local3))];
if (nextTile.lineArray[0] != 5) {
nextTile.rekuCheck(nextTile.lineArray[0]);
}
break;
case 3 :
this.setCCol();
if ((this.x + 1) < 10) {
var _local2 = this.x + 1;
} else {
var _local2 = 0;
}
nextTile = this._parent["curve" + (_local2 + (10 * this.y))];
if (nextTile.lineArray[1] != 5) {
nextTile.rekuCheck(nextTile.lineArray[1]);
}
break;
case 5 :
}
} else {
deleteTiles(tiles2delete);
if (bestShape < (rekuCount - 1)) {
bestShape = rekuCount - 1;
}
numberOfShapes++;
trace(("GESCHLOSSEN: " + (rekuCount - 1)) + " Tiles!!!");
}
};
MovieClip.prototype.setBorderTiles = function () {
if (this.y == 0) {
if (this.lineArray[2] == 5) {
this._parent["et3" + this.x]._visible = false;
} else {
this._parent["et3" + this.x]._visible = true;
}
}
if (this.y == 9) {
if (this.lineArray[0] == 5) {
this._parent["et" + this.x]._visible = false;
} else {
this._parent["et" + this.x]._visible = true;
}
}
if (this.x == 0) {
if (this.lineArray[1] == 5) {
this._parent["et2" + this.y]._visible = false;
} else {
this._parent["et2" + this.y]._visible = true;
}
}
if (this.x == 9) {
if (this.lineArray[3] == 5) {
this._parent["et1" + this.y]._visible = false;
} else {
this._parent["et1" + this.y]._visible = true;
}
}
};
MovieClip.prototype.setCCol = function () {
this.gfx.gotoAndStop(2);
if (this.y == 9) {
this._parent["et" + this.x].end.gfx.gotoAndStop(2);
}
if (this.y == 0) {
this._parent["et3" + this.x].end.gfx.gotoAndStop(2);
}
if (this.x == 9) {
this._parent["et1" + this.y].end.gfx.gotoAndStop(2);
}
if (this.x == 0) {
this._parent["et2" + this.y].end.gfx.gotoAndStop(2);
}
};
MovieClip.prototype.fadeAway = function () {
this.onEnterFrame = function () {
this._alpha = this._alpha - 5;
if (this._alpha < 0) {
cdLocked = false;
this.removeMovieClip();
}
};
};
MovieClip.prototype.rename = function () {
var _local3 = Math.round(this._x / 36);
var _local2 = Math.round(this._y / 36);
this._name = "curve" + (_local3 + (10 * _local2));
this.swapDepths((_local3 + 1) + (12 * (_local2 + 1)));
this.x = _local3;
this.y = _local2;
this.yadd = 0;
};
MovieClip.prototype.startFall = function () {
fallingTiles++;
this.onEnterFrame = function () {
this.yadd = this.yadd + gravi;
this._y = this._y + this.yadd;
if (this._y > this.newY) {
this._y = this.newY;
this.rename();
checkConnection(this.x, this.y);
fallingTiles--;
bounceClip.yadd = bounceClip.yadd + 0.6;
this.onEnterFrame = null;
}
};
};
startTimer = function () {
announceLevel();
this._parent.timer_mc.onEnterFrame = function () {
if ((fallingTiles == 0) && (oldFallingTiles > 0)) {
checkAll();
setAllDepths();
}
oldFallingTiles = fallingTiles;
if (timeLeft > 100) {
timeLeft = 100;
}
cD = Math.floor((timeLeft / timerSub) / 30);
if (((cD < 10) && (cD >= 0)) && (!cdLocked)) {
if (cD < lastCD) {
this.timeAlert_mc.gotoAndPlay("alert");
lastCD = cD;
}
} else {
this.timeAlert_mc.gotoAndStop(1);
lastCD = 11;
}
if (!_root.paused) {
timeLeft = timeLeft - timerSub;
}
if (timeLeft < 0) {
timeLeft = 0;
delete this.onEnterFrame;
endGame();
}
this.gotoAndStop(Math.ceil(401 - (timeLeft * 4)));
};
};
MovieClip.prototype.setGoodie = function (nr) {
trace("SETTING");
var _local2 = goodieClip.attachMovie("goodies", "goodie", 2);
goodieOnScreen = true;
_local2.inner.gotoAndStop("goodie" + nr);
this.goodie = _local2;
_local2.typ = nr;
_local2.tile = this;
_local2._x = this._x;
_local2._y = this._y;
_local2.cnt = 0;
_local2.execGoodie = function () {
goodieCounter = 0;
this.tile = null;
this.gotoAndPlay("fadeAway");
if (this.typ == 1) {
this._parent._parent.attachMovie("timeBonusMessage", "bMessage", 50001, {_x:162, _y:162});
var _local2 = this._parent.createEmptyMovieClip("timeControl", 2);
_local2.cnt = 0;
_local2.onEnterFrame = function () {
this.cnt++;
timeLeft = timeLeft + 0.5;
if (this.cnt > 100) {
this.removeMovieClip();
}
};
}
if (this.typ == 2) {
this._parent._parent.attachMovie("pointsBonusMessage", "bMessage", 50001, {_x:162, _y:162});
var _local2 = this._parent.createEmptyMovieClip("pointsControl", 3);
_local2.cnt = 0;
_local2.onEnterFrame = function () {
this.cnt++;
points = points + 20;
if (this.cnt > 100) {
this.removeMovieClip();
}
};
}
};
_local2.onEnterFrame = function () {
this._x = this.tile._x;
this._y = this.tile._y;
if (fallingTiles == 0) {
this.cnt++;
}
if (this.cnt == goodieTime) {
this.gotoAndPlay("fadeAway");
this.tile.goodie = null;
goodieOnScreen = false;
goodieCounter = 0;
}
};
};
startGame();
Symbol 588 MovieClip Frame 2
checkLocked = false;
stop();
Symbol 600 MovieClip Frame 1
stop();
Symbol 600 MovieClip Frame 21
stop();
Symbol 603 MovieClip Frame 1
stop();
Symbol 644 MovieClip Frame 1
stop();
Symbol 644 MovieClip Frame 32
whichFeedBack = "feedback1";
if (this._parent.points > 5000) {
whichFeedBack = "feedback2";
}
if (this._parent.points > 15000) {
whichFeedBack = "feedback3";
}
scoreFeedback_txt.setHead(words[whichFeedBack]);
stop();