Frame 1
this.onEnterFrame = function () {
var _local2 = getBytesLoaded();
var _local5 = Math.round(_local2 / 1024) + " kb";
var _local3 = getBytesTotal();
var _local4 = Math.round((_local2 / _local3) * 100);
ile.text = _local4 + "m";
if (_local2 == _local3) {
play();
delete this.onEnterFrame;
}
};
stop();
Frame 2
_global.$createTweenController = function () {
var _local3 = _root.createEmptyMovieClip("__tweenController__", 123432);
_local3.$_tweenPropList = new Array();
_local3.$_tTime = getTimer();
_local3.onEnterFrame = _global.$updateTweens;
};
ASSetPropFlags(_global, "$createTweenController", 1, 0);
_global.$removeTweenController = function () {
delete _root.__tweenController__.$_tweenPropList;
delete _root.__tweenController__.$_tTime;
delete _root.__tweenController__.onEnterFrame;
_root.__tweenController__.removeMovieClip();
};
ASSetPropFlags(_global, "$removeTweenController", 1, 0);
_global.$addTween = function (mtarget, prop, propDest, timeSeconds, animType, delay, callback, extra1, extra2, extras) {
if (timeSeconds == undefined) {
timeSeconds = 0;
}
if ((animType == undefined) || (animType == "")) {
animType = "easeOutExpo";
}
if (delay == undefined) {
delay = 0;
}
if (typeof(prop) == "string") {
var _local7 = [prop];
var _local11 = [mtarget[prop]];
var _local9 = [propDest];
} else {
var _local7 = [];
var _local11 = [];
var _local9 = [];
for (var _local32 in prop) {
_local11.push(mtarget[prop[_local32]]);
}
for (var _local32 in prop) {
_local7.push(prop[_local32]);
}
for (var _local32 in propDest) {
_local9.push(propDest[_local32]);
}
}
var _local12 = false;
if (_root.__tweenController__ == undefined) {
_global.$createTweenController();
}
var _local4 = _root.__tweenController__.$_tweenPropList;
var _local8 = _root.__tweenController__.$_tTime;
for (var _local32 in _local11) {
if ((_local9[_local32] != undefined) && (!mtarget.$_isTweenLocked)) {
if (mtarget.$_tweenCount > 0) {
var _local3 = 0;
while (_local3 < _local4.length) {
if ((_local4[_local3]._targ == mtarget) && (_local4[_local3]._prop == _local7[_local32])) {
if ((_local8 + (delay * 1000)) < _local4[_local3]._timeDest) {
_local4.splice(_local3, 1);
_local3--;
mtarget.$_tweenCount--;
}
}
_local3++;
}
}
_local4.push({_prop:_local7[_local32], _targ:mtarget, _propStart:undefined, _propDest:_local9[_local32], _timeStart:_local8, _timeDest:_local8 + (timeSeconds * 1000), _animType:animType, _extra1:extra1, _extra2:extra2, _extras:extras, _delay:delay, _isPaused:false, _timePaused:0, _callback:(_local12 ? undefined : (callback))});
mtarget.$_tweenCount = ((mtarget.$_tweenCount > 0) ? (mtarget.$_tweenCount + 1) : 1);
_local12 = true;
}
}
ASSetPropFlags(mtarget, "$_tweenCount", 1, 0);
};
ASSetPropFlags(_global, "$addTween", 1, 0);
_global.$updateTweens = function () {
var _local8 = (this.$_tTime = getTimer());
var _local6 = 0;
while (_local6 < this.$_tweenPropList.length) {
var _local3 = this.$_tweenPropList[_local6];
if (_local3._targ.toString() == undefined) {
this.$_tweenPropList.splice(_local6, 1);
_local6--;
} else if (((_local3._timeStart + (_local3._delay * 1000)) <= _local8) && (!_local3._isPaused)) {
if (_local3._propStart == undefined) {
if (_local3._prop.substr(0, 10) == "__special_") {
if (_local3._prop == "__special_mc_frame__") {
_local3._propStart = _local3._targ._currentframe;
} else if (_local3._prop == "__special_mc_ra__") {
_local3._propStart = new Color(_local3._targ).getTransform().ra;
} else if (_local3._prop == "__special_mc_rb__") {
_local3._propStart = new Color(_local3._targ).getTransform().rb;
} else if (_local3._prop == "__special_mc_ga__") {
_local3._propStart = new Color(_local3._targ).getTransform().ga;
} else if (_local3._prop == "__special_mc_gb__") {
_local3._propStart = new Color(_local3._targ).getTransform().gb;
} else if (_local3._prop == "__special_mc_ba__") {
_local3._propStart = new Color(_local3._targ).getTransform().ba;
} else if (_local3._prop == "__special_mc_bb__") {
_local3._propStart = new Color(_local3._targ).getTransform().bb;
} else if (_local3._prop == "__special_mc_aa__") {
_local3._propStart = new Color(_local3._targ).getTransform().aa;
} else if (_local3._prop == "__special_mc_ab__") {
_local3._propStart = new Color(_local3._targ).getTransform().ab;
} else if (_local3._prop == "__special_text_r__") {
_local3._propStart = _local3._targ.textColor >> 16;
} else if (_local3._prop == "__special_text_g__") {
_local3._propStart = (_local3._targ.textColor & 65280) >> 8;
} else if (_local3._prop == "__special_text_b__") {
_local3._propStart = _local3._targ.textColor & 255;
} else if (_local3._prop == "__special_sound_volume__") {
_local3._propStart = _local3._targ.getVolume();
} else if (_local3._prop == "__special_sound_pan__") {
_local3._propStart = _local3._targ.getPan();
} else if (_local3._prop == "__special_bst_t__") {
_local3._propStart = 0;
_local3._extras.__special_bst_ix__ = _local3._targ._x;
_local3._extras.__special_bst_iy__ = _local3._targ._y;
} else if (_local3._prop == "__special_blur_x__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.BlurFilter) {
_local3._propStart = _local3._targ.filters[_local5].blurX;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 0;
}
} else if (_local3._prop == "__special_blur_y__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.BlurFilter) {
_local3._propStart = _local3._targ.filters[_local5].blurY;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 0;
}
} else if (_local3._prop == "__special_glow_color__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.GlowFilter) {
_local3._propStart = _local3._targ.filters[_local5].color;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 16777215 /* 0xFFFFFF */;
}
} else if (_local3._prop == "__special_glow_alpha__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.GlowFilter) {
_local3._propStart = _local3._targ.filters[_local5].alpha;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 1;
}
} else if (_local3._prop == "__special_glow_blurX__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.GlowFilter) {
_local3._propStart = _local3._targ.filters[_local5].blurX;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 0;
}
} else if (_local3._prop == "__special_glow_blurY__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.GlowFilter) {
_local3._propStart = _local3._targ.filters[_local5].blurY;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 0;
}
} else if (_local3._prop == "__special_glow_strength__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.GlowFilter) {
_local3._propStart = _local3._targ.filters[_local5].strength;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 1;
}
} else if (_local3._prop == "__special_bevel_distance__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.BevelFilter) {
_local3._propStart = _local3._targ.filters[_local5].distance;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 0;
}
} else if (_local3._prop == "__special_bevel_angle__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.BevelFilter) {
_local3._propStart = _local3._targ.filters[_local5].angle;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 45;
}
} else if (_local3._prop == "__special_bevel_highlightColor__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.BevelFilter) {
_local3._propStart = _local3._targ.filters[_local5].highlightColor;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 16777215 /* 0xFFFFFF */;
}
} else if (_local3._prop == "__special_bevel_highlightAlpha__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.BevelFilter) {
_local3._propStart = _local3._targ.filters[_local5].highlightAlpha;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 1;
}
} else if (_local3._prop == "__special_bevel_shadowColor__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.BevelFilter) {
_local3._propStart = _local3._targ.filters[_local5].shadowColor;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 0;
}
} else if (_local3._prop == "__special_bevel_shadowAlpha__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.BevelFilter) {
_local3._propStart = _local3._targ.filters[_local5].shadowAlpha;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 1;
}
} else if (_local3._prop == "__special_bevel_blurX__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.BevelFilter) {
_local3._propStart = _local3._targ.filters[_local5].blurX;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 0;
}
} else if (_local3._prop == "__special_bevel_blurY__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.BevelFilter) {
_local3._propStart = _local3._targ.filters[_local5].blurY;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 0;
}
} else if (_local3._prop == "__special_bevel_strength__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.BevelFilter) {
_local3._propStart = _local3._targ.filters[_local5].strength;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 1;
}
} else {
_local3._propStart = _local3._targ[_local3._prop];
}
} else {
_local3._propStart = _local3._targ[_local3._prop];
}
}
var _local10 = _local3._timeDest + (_local3._delay * 1000);
if (_local10 <= _local8) {
var _local4 = _local3._propDest;
} else {
var _local4 = _global.findTweenValue(_local3._propStart, _local3._propDest, _local3._timeStart, _local8 - (_local3._delay * 1000), _local3._timeDest, _local3._animType, _local3._extra1, _local3._extra2);
}
_local3._targ[_local3._prop] = (_local3._extras.mustRound ? (Math.round(_local4)) : (_local4));
if (_local3._prop == "__special_mc_frame__") {
_local3._targ.gotoAndStop(Math.round(_local4));
} else if (_local3._prop == "__special_mc_ra__") {
new Color(_local3._targ).setTransform({ra:_local4});
} else if (_local3._prop == "__special_mc_rb__") {
new Color(_local3._targ).setTransform({rb:_local4});
} else if (_local3._prop == "__special_mc_ga__") {
new Color(_local3._targ).setTransform({ga:_local4});
} else if (_local3._prop == "__special_mc_gb__") {
new Color(_local3._targ).setTransform({gb:_local4});
} else if (_local3._prop == "__special_mc_ba__") {
new Color(_local3._targ).setTransform({ba:_local4});
} else if (_local3._prop == "__special_mc_bb__") {
new Color(_local3._targ).setTransform({bb:_local4});
} else if (_local3._prop == "__special_mc_aa__") {
new Color(_local3._targ).setTransform({aa:_local4});
} else if (_local3._prop == "__special_mc_ab__") {
new Color(_local3._targ).setTransform({ab:_local4});
}
if (_local3._prop == "__special_bst_t__") {
var _local7 = _local3._extras;
var _local9 = _global.findPointOnCurve(_local7.__special_bst_ix__, _local7.__special_bst_iy__, _local7.__special_bst_cx__, _local7.__special_bst_cy__, _local7.__special_bst_dx__, _local7.__special_bst_dy__, _local4);
if (_local3._extras.mustRound) {
_local3._targ._x = Math.round(_local9.x);
_local3._targ._y = Math.round(_local9.y);
} else {
_local3._targ._x = _local9.x;
_local3._targ._y = _local9.y;
}
}
if ((typeof(_local3._targ) != "movieclip") && (_local3._prop == "__special_text_b__")) {
_local3._targ.textColor = ((_local3._targ.__special_text_r__ << 16) + (_local3._targ.__special_text_g__ << 8)) + _local3._targ.__special_text_b__;
}
if (_local3._prop == "__special_sound_volume__") {
_local3._targ.setVolume(_local4);
}
if (_local3._prop == "__special_sound_pan__") {
_local3._targ.setPan(_local4);
}
if (_local3._prop == "__special_blur_x__") {
_global.$setFilterProperty(_local3._targ, "blur_blurX", _local4, _local3._extras);
}
if (_local3._prop == "__special_blur_y__") {
_global.$setFilterProperty(_local3._targ, "blur_blurY", _local4, _local3._extras);
}
if (_local3._prop == "__special_glow_color__") {
_global.$setFilterProperty(_local3._targ, "glow_color", _global.findTweenColor(_local3, _local8), _local3._extras);
}
if (_local3._prop == "__special_glow_alpha__") {
_global.$setFilterProperty(_local3._targ, "glow_alpha", _local4, _local3._extras);
}
if (_local3._prop == "__special_glow_blurX__") {
_global.$setFilterProperty(_local3._targ, "glow_blurX", _local4, _local3._extras);
}
if (_local3._prop == "__special_glow_blurY__") {
_global.$setFilterProperty(_local3._targ, "glow_blurY", _local4, _local3._extras);
}
if (_local3._prop == "__special_glow_strength__") {
_global.$setFilterProperty(_local3._targ, "glow_strength", _local4, _local3._extras);
}
if (_local3._prop == "__special_bevel_distance__") {
_global.$setFilterProperty(_local3._targ, "bevel_distance", _local4, _local3._extras);
}
if (_local3._prop == "__special_bevel_angle__") {
_global.$setFilterProperty(_local3._targ, "bevel_angle", _local4, _local3._extras);
}
if (_local3._prop == "__special_bevel_highlightColor__") {
_global.$setFilterProperty(_local3._targ, "bevel_highlightColor", _global.findTweenColor(_local3, _local8), _local3._extras);
}
if (_local3._prop == "__special_bevel_highlightAlpha__") {
_global.$setFilterProperty(_local3._targ, "bevel_highlightAlpha", _local4, _local3._extras);
}
if (_local3._prop == "__special_bevel_shadowColor__") {
_global.$setFilterProperty(_local3._targ, "bevel_shadowColor", _global.findTweenColor(_local3, _local8), _local3._extras);
}
if (_local3._prop == "__special_bevel_shadowAlpha__") {
_global.$setFilterProperty(_local3._targ, "bevel_shadowAlpha", _local4, _local3._extras);
}
if (_local3._prop == "__special_bevel_blurX__") {
_global.$setFilterProperty(_local3._targ, "bevel_blurX", _local4, _local3._extras);
}
if (_local3._prop == "__special_bevel_blurY__") {
_global.$setFilterProperty(_local3._targ, "bevel_blurY", _local4, _local3._extras);
}
if (_local3._prop == "__special_bevel_strength__") {
_global.$setFilterProperty(_local3._targ, "bevel_strength", _local4, _local3._extras);
}
if (_local3._targ.onTweenUpdate != undefined) {
_local3._targ.onTweenUpdate(_local3._prop);
}
if (_local10 <= _local8) {
if (_local3._targ.onTweenComplete != undefined) {
_local3._targ.onTweenComplete(_local3._prop);
}
_global.$stopTween(_local3._targ, [_local3._prop], false);
_local6--;
if (_local3._callback != undefined) {
if (_global.backwardCallbackTweening) {
var _local11 = _local3._targ.createEmptyMovieClip("__child__", 122344);
_local3._callback.apply(_local11, null);
_local11.removeMovieClip();
} else {
_local3._callback.apply(_local3._targ, null);
}
}
}
}
_local6++;
}
if (this.$_tweenPropList.length == 0) {
_global.$removeTweenController();
}
};
ASSetPropFlags(_global, "$updateTween", 1, 0);
_global.$stopTween = function (mtarget, props, wipeFuture) {
var _local4 = _root.__tweenController__.$_tweenPropList;
var _local7;
for (var _local9 in _local4) {
_local7 = _local4[_local9]._prop;
var _local5 = 0;
while ((_local5 < props.length) || ((_local5 < 1) && (props == undefined))) {
if (((_local4[_local9]._targ == mtarget) && ((_local7 == props[_local5]) || (props == undefined))) && (wipeFuture || ((_local4[_local9]._timeDest + (_local4[_local9]._delay * 1000)) <= getTimer()))) {
switch (_local7) {
case "__special_mc_frame__" :
case "__special_mc_ra__" :
case "__special_mc_rb__" :
case "__special_mc_ga__" :
case "__special_mc_gb__" :
case "__special_mc_ba__" :
case "__special_mc_bb__" :
case "__special_mc_aa__" :
case "__special_mc_ab__" :
case "__special_sound_volume__" :
case "__special_bst_t__" :
delete mtarget[_local7];
break;
case "__special_text_b__" :
delete mtarget.__special_text_r__;
delete mtarget.__special_text_g__;
delete mtarget.__special_text_b__;
}
_local4.splice(_local9, 1);
}
_local5++;
}
}
if (props == undefined) {
delete mtarget.$_tweenCount;
} else {
mtarget.$_tweenCount = 0;
for (var _local9 in _local4) {
if (_local4[_local9]._targ == mtarget) {
mtarget.$_tweenCount++;
}
}
if (mtarget.$_tweenCount == 0) {
delete mtarget.$_tweenCount;
}
}
if (_local4.length == 0) {
_global.$removeTweenController();
}
};
ASSetPropFlags(_global, "$stopTween", 1, 0);
_global.$setFilterProperty = function (mtarget, propName, propValue, extras) {
var _local1;
var _local7 = false;
var _local3 = [];
_local1 = 0;
while (_local1 < mtarget.filters.length) {
_local3.push(mtarget.filters[_local1]);
_local1++;
}
if (propName.substr(0, 5) == "blur_") {
_local1 = 0;
while (_local1 < mtarget.filters.length) {
if (_local3[_local1] instanceof flash.filters.BlurFilter) {
_local3[_local1][propName.substr(5)] = propValue;
if (extras.__special_blur_quality__ != undefined) {
_local3[_local1].quality = extras.__special_blur_quality__;
}
_local7 = true;
break;
}
_local1++;
}
if (!_local7) {
var _local9;
var _local8 = ((extras.__special_blur_quality__ == undefined) ? 2 : (extras.__special_blur_quality__));
if (propName == "blur_blurX") {
_local9 = new flash.filters.BlurFilter(propValue, 0, _local8);
}
if (propName == "blur_blurY") {
_local9 = new flash.filters.BlurFilter(0, propValue, _local8);
}
_local3.push(_local9);
}
} else if (propName.substr(0, 5) == "glow_") {
_local1 = 0;
while (_local1 < mtarget.filters.length) {
if (_local3[_local1] instanceof flash.filters.GlowFilter) {
_local3[_local1][propName.substr(5)] = propValue;
if (extras.__special_glow_quality__ != undefined) {
_local3[_local1].quality = extras.__special_glow_quality__;
}
if (extras.__special_glow_inner__ != undefined) {
_local3[_local1].inner = extras.__special_glow_inner__;
}
if (extras.__special_glow_knockout__ != undefined) {
_local3[_local1].knockout = extras.__special_glow_knockout__;
}
_local7 = true;
break;
}
_local1++;
}
if (!_local7) {
var _local8 = ((extras.__special_glow_quality__ == undefined) ? 2 : (extras.__special_glow_quality__));
var _local12 = ((extras.__special_glow_inner__ == undefined) ? false : (extras.__special_glow_inner__));
var _local10 = ((extras.__special_glow_knockout__ == undefined) ? false : (extras.__special_glow_knockout__));
if (propName == "glow_color") {
var _local9 = new flash.filters.GlowFilter(propValue, 1, 0, 0, 1, _local8, _local12, _local10);
}
if (propName == "glow_alpha") {
var _local9 = new flash.filters.GlowFilter(16777215, propValue, 0, 0, 1, _local8, _local12, _local10);
}
if (propName == "glow_blurX") {
var _local9 = new flash.filters.GlowFilter(16777215, 1, propValue, 0, 1, _local8, _local12, _local10);
}
if (propName == "glow_blurY") {
var _local9 = new flash.filters.GlowFilter(16777215, 1, 0, propValue, 1, _local8, _local12, _local10);
}
if (propName == "glow_strength") {
var _local9 = new flash.filters.GlowFilter(16777215, 1, 0, 0, propValue, _local8, _local12, _local10);
}
_local3.push(_local9);
}
} else if (propName.substr(0, 6) == "bevel_") {
_local1 = 0;
while (_local1 < mtarget.filters.length) {
if (_local3[_local1] instanceof flash.filters.BevelFilter) {
_local3[_local1][propName.substr(6)] = propValue;
if (extras.__special_bevel_quality__ != undefined) {
_local3[_local1].quality = extras.__special_bevel_quality__;
}
if (extras.__special_bevel_type__ != undefined) {
_local3[_local1].inner = extras.__special_bevel_type__;
}
if (extras.__special_bevel_knockout__ != undefined) {
_local3[_local1].knockout = extras.__special_bevel_knockout__;
}
_local7 = true;
break;
}
_local1++;
}
if (!_local7) {
var _local8 = ((extras.__special_bevel_quality__ == undefined) ? 2 : (extras.__special_bevel_quality__));
var _local11 = ((extras.__special_bevel_type__ == undefined) ? "inner" : (extras.__special_bevel_type__));
var _local10 = ((extras.__special_bevel_knockout__ == undefined) ? false : (extras.__special_bevel_knockout__));
if (propName == "bevel_distance") {
var _local9 = new flash.filters.BevelFilter(propValue, 45, 16777215, 1, 0, 1, 0, 0, 1, _local8, _local11, _local10);
}
if (propName == "bevel_angle") {
var _local9 = new flash.filters.BevelFilter(0, propValue, 16777215, 1, 0, 1, 0, 0, 1, _local8, _local11, _local10);
}
if (propName == "bevel_highlightColor") {
var _local9 = new flash.filters.BevelFilter(0, 45, propValue, 1, 0, 1, 0, 0, 1, _local8, _local11, _local10);
}
if (propName == "bevel_highlightAlpha") {
var _local9 = new flash.filters.BevelFilter(0, 45, 16777215, propValue, 0, 1, 0, 0, 1, _local8, _local11, _local10);
}
if (propName == "bevel_shadowColor") {
var _local9 = new flash.filters.BevelFilter(0, 45, 16777215, 1, propValue, 1, 0, 0, 1, _local8, _local11, _local10);
}
if (propName == "bevel_shadowAlpha") {
var _local9 = new flash.filters.BevelFilter(0, 45, 16777215, 1, 0, propValue, 0, 0, 1, _local8, _local11, _local10);
}
if (propName == "bevel_blurX") {
var _local9 = new flash.filters.BevelFilter(0, 45, 16777215, 1, 0, 1, propValue, 0, 1, _local8, _local11, _local10);
}
if (propName == "bevel_blurY") {
var _local9 = new flash.filters.BevelFilter(0, 45, 16777215, 1, 0, 1, 0, propValue, 1, _local8, _local11, _local10);
}
if (propName == "bevel_strength") {
var _local9 = new flash.filters.BevelFilter(0, 45, 16777215, 1, 0, 1, 0, 0, propValue, _local8, _local11, _local10);
}
_local3.push(_local9);
}
} else {
return(undefined);
}
mtarget.filters = _local3;
};
MovieClip.prototype.tween = (TextField.prototype.tween = (Sound.prototype.tween = function (prop, propDest, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, prop, propDest, timeSeconds, animType, delay, callback, extra1, extra2);
}));
ASSetPropFlags(MovieClip.prototype, "tween", 1, 0);
ASSetPropFlags(TextField.prototype, "tween", 1, 0);
ASSetPropFlags(Sound.prototype, "tween", 1, 0);
MovieClip.prototype.roundedTween = (TextField.prototype.roundedTween = (Sound.prototype.roundedTween = function (prop, propDest, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, prop, propDest, timeSeconds, animType, delay, callback, extra1, extra2, {mustRound:true});
}));
ASSetPropFlags(MovieClip.prototype, "roundedTween", 1, 0);
ASSetPropFlags(TextField.prototype, "roundedTween", 1, 0);
ASSetPropFlags(Sound.prototype, "roundedTween", 1, 0);
MovieClip.prototype.stopTween = (TextField.prototype.stopTween = (Sound.prototype.stopTween = function (props) {
if (typeof(props) == "string") {
props = [props];
}
if (props != undefined) {
var _local4 = 1;
while (_local4 < arguments.length) {
props.push(arguments[_local4]);
_local4++;
}
}
_global.$stopTween(this, props, true);
}));
ASSetPropFlags(MovieClip.prototype, "stopTween", 1, 0);
ASSetPropFlags(TextField.prototype, "stopTween", 1, 0);
ASSetPropFlags(Sound.prototype, "stopTween", 1, 0);
MovieClip.prototype.pauseTween = (TextField.prototype.pauseTween = (Sound.prototype.pauseTween = function (props) {
if (props != undefined) {
if (typeof(props) == "string") {
props = [props];
}
var _local6 = 1;
while (_local6 < Arguments.length) {
props.push(Arguments[_local6]);
_local6++;
}
}
var _local4 = _root.__tweenController__.$_tweenPropList;
var _local5;
for (var _local7 in _local4) {
if ((_local4[_local7]._targ == this) && (!_local4[_local7]._isPaused)) {
if (props != undefined) {
_local5 = false;
for (var _local6 in props) {
if (props[_local6] == _local4[_local7]._prop) {
_local5 = true;
break;
}
}
}
if ((props == undefined) || (_local5)) {
_local4[_local7]._isPaused = true;
_local4[_local7]._timePaused = _root.__tweenController__.$_tTime;
}
}
}
}));
ASSetPropFlags(MovieClip.prototype, "pauseTween", 1, 0);
ASSetPropFlags(TextField.prototype, "pauseTween", 1, 0);
ASSetPropFlags(Sound.prototype, "pauseTween", 1, 0);
MovieClip.prototype.resumeTween = (TextField.prototype.resumeTween = (Sound.prototype.resumeTween = function (props) {
if (props != undefined) {
if (typeof(props) == "string") {
props = [props];
}
var _local7 = 1;
while (_local7 < Arguments.length) {
props.push(Arguments[_local7]);
_local7++;
}
}
var _local3 = _root.__tweenController__.$_tweenPropList;
var _local5;
var _local6;
for (var _local8 in _local3) {
if ((_local3[_local8]._targ == this) && (_local3[_local8]._isPaused)) {
if (props != undefined) {
_local5 = false;
for (var _local7 in props) {
if (props[_local7] == _local3[_local8]._prop) {
_local5 = true;
break;
}
}
}
if ((props == undefined) || (_local5)) {
_local3[_local8]._isPaused = false;
_local6 = _root.__tweenController__.$_tTime - _local3[_local8]._timePaused;
_local3[_local8]._timeStart = _local3[_local8]._timeStart + _local6;
_local3[_local8]._timeDest = _local3[_local8]._timeDest + _local6;
_local3[_local8]._timePaused = 0;
}
}
}
}));
ASSetPropFlags(MovieClip.prototype, "resumeTween", 1, 0);
ASSetPropFlags(TextField.prototype, "resumeTween", 1, 0);
ASSetPropFlags(Sound.prototype, "resumeTween", 1, 0);
MovieClip.prototype.lockTween = (TextField.prototype.lockTween = (Sound.prototype.lockTween = function () {
this.$_isTweenLocked = true;
ASSetPropFlags(this, "this.$_isTweenLocked", 1, 0);
}));
ASSetPropFlags(MovieClip.prototype, "lockTween", 1, 0);
ASSetPropFlags(TextField.prototype, "lockTween", 1, 0);
ASSetPropFlags(Sound.prototype, "lockTween", 1, 0);
MovieClip.prototype.unlockTween = (TextField.prototype.unlockTween = (Sound.prototype.unlockTween = function () {
delete this.$_isTweenLocked;
}));
ASSetPropFlags(MovieClip.prototype, "unlockTween", 1, 0);
ASSetPropFlags(TextField.prototype, "unlockTween", 1, 0);
ASSetPropFlags(Sound.prototype, "unlockTween", 1, 0);
MovieClip.prototype.getTweens = (TextField.prototype.getTweens = (Sound.prototype.getTweens = function () {
return(this.$_tweenCount);
}));
ASSetPropFlags(MovieClip.prototype, "getTweens", 1, 0);
ASSetPropFlags(TextField.prototype, "getTweens", 1, 0);
ASSetPropFlags(Sound.prototype, "getTweens", 1, 0);
MovieClip.prototype.isTweening = (TextField.prototype.isTweening = (Sound.prototype.isTweening = function () {
return(((this.$_tweenCount > 0) ? true : false));
}));
ASSetPropFlags(MovieClip.prototype, "isTweening", 1, 0);
ASSetPropFlags(TextField.prototype, "isTweening", 1, 0);
ASSetPropFlags(Sound.prototype, "isTweening", 1, 0);
MovieClip.prototype.alphaTo = (TextField.prototype.alphaTo = function (propDest_a, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, "_alpha", propDest_a, timeSeconds, animType, delay, callback, extra1, extra2);
});
ASSetPropFlags(MovieClip.prototype, "alphaTo", 1, 0);
ASSetPropFlags(TextField.prototype, "alphaTo", 1, 0);
MovieClip.prototype.frameTo = function (propDest_frame, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, "__special_mc_frame__", propDest_frame, timeSeconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(MovieClip.prototype, "frameTo", 1, 0);
MovieClip.prototype.resizeTo = (TextField.prototype.resizeTo = function (propDest_width, propDest_height, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, ["_width", "_height"], [propDest_width, propDest_height], timeSeconds, animType, delay, callback, extra1, extra2);
});
ASSetPropFlags(MovieClip.prototype, "resizeTo", 1, 0);
ASSetPropFlags(TextField.prototype, "resizeTo", 1, 0);
MovieClip.prototype.rotateTo = (TextField.prototype.rotateTo = function (propDest_rotation, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, "_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) {
_global.$addTween(this, ["_xscale", "_yscale"], [propDest_scale, propDest_scale], timeSeconds, animType, delay, callback, extra1, extra2);
});
ASSetPropFlags(MovieClip.prototype, "scaleTo", 1, 0);
ASSetPropFlags(TextField.prototype, "scaleTo", 1, 0);
MovieClip.prototype.xScaleTo = (TextField.prototype.xScaleTo = function (propDest_scale, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, "_xscale", propDest_scale, timeSeconds, animType, delay, callback, extra1, extra2);
});
ASSetPropFlags(MovieClip.prototype, "xScaleTo", 1, 0);
ASSetPropFlags(TextField.prototype, "xScaleTo", 1, 0);
MovieClip.prototype.yScaleTo = (TextField.prototype.yScaleTo = function (propDest_scale, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, "_yscale", propDest_scale, timeSeconds, animType, delay, callback, extra1, extra2);
});
ASSetPropFlags(MovieClip.prototype, "yScaleTo", 1, 0);
ASSetPropFlags(TextField.prototype, "yScaleTo", 1, 0);
TextField.prototype.scrollTo = function (propDest_scroll, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, "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) {
_global.$addTween(this, ["_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.roundedSlideTo = (TextField.prototype.roundedSlideTo = function (propDest_x, propDest_y, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, ["_x", "_y"], [propDest_x, propDest_y], timeSeconds, animType, delay, callback, extra1, extra2, {mustRound:true});
});
ASSetPropFlags(MovieClip.prototype, "roundedSlideTo", 1, 0);
ASSetPropFlags(TextField.prototype, "roundedSlideTo", 1, 0);
MovieClip.prototype.xSlideTo = (TextField.prototype.xSlideTo = function (propDest_x, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, "_x", propDest_x, timeSeconds, animType, delay, callback, extra1, extra2);
});
ASSetPropFlags(MovieClip.prototype, "xSlideTo", 1, 0);
ASSetPropFlags(TextField.prototype, "xSlideTo", 1, 0);
MovieClip.prototype.roundedXSlideTo = (TextField.prototype.roundedXSlideTo = function (propDest_x, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, "_x", propDest_x, timeSeconds, animType, delay, callback, extra1, extra2, {mustRound:true});
});
ASSetPropFlags(MovieClip.prototype, "roundedXSlideTo", 1, 0);
ASSetPropFlags(TextField.prototype, "roundedXSlideTo", 1, 0);
MovieClip.prototype.ySlideTo = (TextField.prototype.ySlideTo = function (propDest_y, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, "_y", propDest_y, timeSeconds, animType, delay, callback, extra1, extra2);
});
ASSetPropFlags(MovieClip.prototype, "ySlideTo", 1, 0);
ASSetPropFlags(TextField.prototype, "ySlideTo", 1, 0);
MovieClip.prototype.roundedYSlideTo = (TextField.prototype.roundedYSlideTo = function (propDest_y, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, "_y", propDest_y, timeSeconds, animType, delay, callback, extra1, extra2, {mustRound:true});
});
ASSetPropFlags(MovieClip.prototype, "roundedYSlideTo", 1, 0);
ASSetPropFlags(TextField.prototype, "roundedYSlideTo", 1, 0);
MovieClip.prototype.bezierSlideTo = (TextField.prototype.bezierSlideTo = function (cpoint_x, cpoint_y, propDest_x, propDest_y, timeSeconds, animType, delay, callback, extra1, extra2) {
var _local3 = new Object();
_local3.__special_bst_ix__ = undefined;
_local3.__special_bst_iy__ = undefined;
_local3.__special_bst_cx__ = cpoint_x;
_local3.__special_bst_cy__ = cpoint_y;
_local3.__special_bst_dx__ = propDest_x;
_local3.__special_bst_dy__ = propDest_y;
_global.$addTween(this, "__special_bst_t__", 1, timeSeconds, animType, delay, callback, extra1, extra2, _local3);
});
ASSetPropFlags(MovieClip.prototype, "bezierSlideTo", 1, 0);
ASSetPropFlags(TextField.prototype, "bezierSlideTo", 1, 0);
MovieClip.prototype.roundedBezierSlideTo = (TextField.prototype.roundedBezierSlideTo = function (cpoint_x, cpoint_y, propDest_x, propDest_y, timeSeconds, animType, delay, callback, extra1, extra2) {
var _local3 = new Object();
_local3.__special_bst_ix__ = undefined;
_local3.__special_bst_iy__ = undefined;
_local3.__special_bst_cx__ = cpoint_x;
_local3.__special_bst_cy__ = cpoint_y;
_local3.__special_bst_dx__ = propDest_x;
_local3.__special_bst_dy__ = propDest_y;
_local3.mustRound = true;
_global.$addTween(this, "__special_bst_t__", 1, timeSeconds, animType, delay, callback, extra1, extra2, _local3);
});
ASSetPropFlags(MovieClip.prototype, "roundedBezierSlideTo", 1, 0);
ASSetPropFlags(TextField.prototype, "roundedBezierSlideTo", 1, 0);
Sound.prototype.volumeTo = function (propDest_volume, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, "__special_sound_volume__", propDest_volume, timeSeconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(Sound.prototype, "volumeTo", 1, 0);
Sound.prototype.panTo = function (propDest_volume, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, "__special_sound_pan__", propDest_volume, timeSeconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(Sound.prototype, "panTo", 1, 0);
MovieClip.prototype.colorTo = function (propDest_color, timeSeconds, animType, delay, callback, extra1, extra2) {
if (propDest_color == null) {
this.colorTransformTo(100, 0, 100, 0, 100, 0, undefined, undefined, timeSeconds, animType, delay, callback, extra1, extra2);
} else {
var _local3 = propDest_color >> 16;
var _local5 = (propDest_color & 65280) >> 8;
var _local4 = propDest_color & 255;
this.colorTransformTo(0, _local3, 0, _local5, 0, _local4, undefined, undefined, timeSeconds, animType, delay, callback, extra1, extra2);
}
};
ASSetPropFlags(MovieClip.prototype, "colorTo", 1, 0);
TextField.prototype.colorTo = function (propDest_color, timeSeconds, animType, delay, callback, extra1, extra2) {
var _local3 = propDest_color >> 16;
var _local6 = (propDest_color & 65280) >> 8;
var _local4 = propDest_color & 255;
_global.$addTween(this, ["__special_text_r__", "__special_text_g__", "__special_text_b__"], [_local3, _local6, _local4], timeSeconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(TextField.prototype, "colorTo", 1, 0);
MovieClip.prototype.colorTransformTo = function () {
if ((typeof(arguments[0]) == "object") && (arguments[0] != undefined)) {
_global.$addTween(this, ["__special_mc_ra__", "__special_mc_rb__", "__special_mc_ga__", "__special_mc_gb__", "__special_mc_ba__", "__special_mc_bb__", "__special_mc_aa__", "__special_mc_ab__"], [arguments[0].ra, arguments[0].rb, arguments[0].ga, arguments[0].gb, arguments[0].ba, arguments[0].bb, arguments[0].aa, arguments[0].ab], arguments[1], arguments[2], arguments[3], arguments[4], arguments[5], arguments[6]);
} else {
_global.$addTween(this, ["__special_mc_ra__", "__special_mc_rb__", "__special_mc_ga__", "__special_mc_gb__", "__special_mc_ba__", "__special_mc_bb__", "__special_mc_aa__", "__special_mc_ab__"], [arguments[0], arguments[1], arguments[2], arguments[3], arguments[4], arguments[5], arguments[6], arguments[7]], arguments[8], arguments[9], arguments[10], arguments[11], arguments[12], arguments[13]);
}
};
ASSetPropFlags(MovieClip.prototype, "colorTransformTo", 1, 0);
MovieClip.prototype.blurTo = (TextField.prototype.blurTo = function () {
if ((typeof(arguments[0]) == "object") && (arguments[0] != undefined)) {
_global.$addTween(this, ["__special_blur_x__", "__special_blur_y__"], [arguments[0].blurX, arguments[0].blurY], arguments[1], arguments[2], arguments[3], arguments[4], arguments[5], arguments[6], {__special_blur_quality__:arguments[0].quality});
} else {
_global.$addTween(this, ["__special_blur_x__", "__special_blur_y__"], [arguments[0], arguments[0]], arguments[2], arguments[3], arguments[4], arguments[5], arguments[6], arguments[7], {__special_blur_quality__:arguments[1]});
}
});
ASSetPropFlags(MovieClip.prototype, "blurTo", 1, 0);
ASSetPropFlags(TextField.prototype, "blurTo", 1, 0);
MovieClip.prototype.xyBlurTo = (TextField.prototype.xyBlurTo = function (propDest_blurX, propDest_blurY, quality, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, ["__special_blur_x__", "__special_blur_y__"], [propDest_blurX, propDest_blurY], timeSeconds, animType, delay, callback, extra1, extra2, {__special_blur_quality__:quality});
});
ASSetPropFlags(MovieClip.prototype, "xyBlurTo", 1, 0);
ASSetPropFlags(TextField.prototype, "xyBlurTo", 1, 0);
MovieClip.prototype.xBlurTo = (TextField.prototype.xBlurTo = function (propDest_blur, quality, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, "__special_blur_x__", propDest_blur, timeSeconds, animType, delay, callback, extra1, extra2, {__special_blur_quality__:quality});
});
ASSetPropFlags(MovieClip.prototype, "xBlurTo", 1, 0);
ASSetPropFlags(TextField.prototype, "xBlurTo", 1, 0);
MovieClip.prototype.yBlurTo = (TextField.prototype.yBlurTo = function (propDest_blur, quality, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, "__special_blur_y__", propDest_blur, timeSeconds, animType, delay, callback, extra1, extra2, {__special_blur_quality__:quality});
});
ASSetPropFlags(MovieClip.prototype, "yBlurTo", 1, 0);
ASSetPropFlags(TextField.prototype, "yBlurTo", 1, 0);
MovieClip.prototype.glowTo = (TextField.prototype.glowTo = function () {
if ((typeof(arguments[0]) == "object") && (arguments[0] != undefined)) {
_global.$addTween(this, ["__special_glow_color__", "__special_glow_alpha__", "__special_glow_blurX__", "__special_glow_blurY__", "__special_glow_strength__"], [arguments[0].color, arguments[0].alpha, arguments[0].blurX, arguments[0].blurY, arguments[0].strength], arguments[1], arguments[2], arguments[3], arguments[4], arguments[5], arguments[6], {__special_glow_quality__:arguments[0].quality, __special_glow_inner__:arguments[0].inner, __special_glow_knockout__:arguments[0].knockout});
} else {
_global.$addTween(this, ["__special_glow_color__", "__special_glow_alpha__", "__special_glow_blurX__", "__special_glow_blurY__", "__special_glow_strength__"], [arguments[0], arguments[1], arguments[2], arguments[2], arguments[3]], arguments[7], arguments[8], arguments[9], arguments[10], arguments[11], arguments[12], {__special_glow_quality__:arguments[4], __special_glow_inner__:arguments[5], __special_glow_knockout__:arguments[6]});
}
});
ASSetPropFlags(MovieClip.prototype, "glowTo", 1, 0);
ASSetPropFlags(TextField.prototype, "glowTo", 1, 0);
MovieClip.prototype.xyGlowTo = (TextField.prototype.xyGlowTo = function (propDest_color, propDest_alpha, propDest_blurX, propDest_blurY, propDest_strength, quality, inner, knockout, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, ["__special_glow_color__", "__special_glow_alpha__", "__special_glow_blurX__", "__special_glow_blurY__", "__special_glow_strength__"], [propDest_color, propDest_alpha, propDest_blurX, propDest_blurY, propDest_strength], timeSeconds, animType, delay, callback, extra1, extra2, {__special_glow_quality__:quality, __special_glow_inner__:inner, __special_glow_knockout__:knockout});
});
ASSetPropFlags(MovieClip.prototype, "xyGlowTo", 1, 0);
ASSetPropFlags(TextField.prototype, "xyGlowTo", 1, 0);
MovieClip.prototype.xGlowTo = (TextField.prototype.xGlowTo = function (propDest_color, propDest_alpha, propDest_blur, propDest_strength, quality, inner, knockout, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, ["__special_glow_color__", "__special_glow_alpha__", "__special_glow_blurX__", "__special_glow_strength__"], [propDest_color, propDest_alpha, propDest_blur, propDest_strength], timeSeconds, animType, delay, callback, extra1, extra2, {__special_glow_quality__:quality, __special_glow_inner__:inner, __special_glow_knockout__:knockout});
});
ASSetPropFlags(MovieClip.prototype, "xGlowTo", 1, 0);
ASSetPropFlags(TextField.prototype, "xGlowTo", 1, 0);
MovieClip.prototype.yGlowTo = (TextField.prototype.yGlowTo = function (propDest_color, propDest_alpha, propDest_blur, propDest_strength, quality, inner, knockout, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, ["__special_glow_color__", "__special_glow_alpha__", "__special_glow_blurY__", "__special_glow_strength__"], [propDest_color, propDest_alpha, propDest_blur, propDest_strength], timeSeconds, animType, delay, callback, extra1, extra2, {__special_glow_quality__:quality, __special_glow_inner__:inner, __special_glow_knockout__:knockout});
});
ASSetPropFlags(MovieClip.prototype, "yGlowTo", 1, 0);
ASSetPropFlags(TextField.prototype, "yGlowTo", 1, 0);
MovieClip.prototype.bevelTo = (TextField.prototype.bevelTo = function () {
if ((typeof(arguments[0]) == "object") && (arguments[0] != undefined)) {
_global.$addTween(this, ["__special_bevel_distance__", "__special_bevel_angle__", "__special_bevel_highlightColor__", "__special_bevel_highlightAlpha__", "__special_bevel_shadowColor__", "__special_bevel_shadowAlpha__", "__special_bevel_blurX__", "__special_bevel_blurY__", "__special_bevel_strength__"], [arguments[0].distance, arguments[0].angle, arguments[0].highlightColor, arguments[0].highlightAlpha * 100, arguments[0].shadowColor, arguments[0].shadowAlpha * 100, arguments[0].blurX, arguments[0].blurY, arguments[0].strength], arguments[1], arguments[2], arguments[3], arguments[4], arguments[5], arguments[6], {__special_bevel_quality__:arguments[0].quality, __special_bevel_type__:arguments[0].type, __special_bevel_knockout__:arguments[0].knockout});
} else {
_global.$addTween(this, ["__special_bevel_distance__", "__special_bevel_angle__", "__special_bevel_highlightColor__", "__special_bevel_highlightAlpha__", "__special_bevel_shadowColor__", "__special_bevel_shadowAlpha__", "__special_bevel_blurX__", "__special_bevel_blurY__", "__special_bevel_strength__"], [arguments[0], arguments[1], arguments[2], arguments[3], arguments[4], arguments[5], arguments[6], arguments[6], arguments[7]], arguments[11], arguments[12], arguments[13], arguments[14], arguments[15], arguments[16], {__special_bevel_quality__:arguments[8], __special_bevel_type__:arguments[9], __special_bevel_knockout__:arguments[10]});
}
});
ASSetPropFlags(MovieClip.prototype, "bevelTo", 1, 0);
ASSetPropFlags(TextField.prototype, "bevelTo", 1, 0);
MovieClip.prototype.xyBevelTo = (TextField.prototype.xyBevelTo = function (propDest_distance, propDest_angle, propDest_highlightColor, propDest_highlightAlpha, propDest_shadowColor, propDest_shadowAlpha, propDest_blurX, propDest_blurY, propDest_strength, quality, type, knockout, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, ["__special_bevel_distance__", "__special_bevel_angle__", "__special_bevel_highlightColor__", "__special_bevel_highlightAlpha__", "__special_bevel_shadowColor__", "__special_bevel_shadowAlpha__", "__special_bevel_blurX__", "__special_bevel_blurY__", "__special_bevel_blurY__", "__special_bevel_strength__"], [propDest_distance, propDest_angle, propDest_highlightColor, propDest_highlightAlpha, propDest_shadowColor, propDest_shadowAlpha, propDest_blur, propDest_blur, propDest_strength], timeSeconds, animType, delay, callback, extra1, extra2, {__special_bevel_quality__:quality, __special_bevel_type__:type, __special_bevel_knockout__:knockout});
});
ASSetPropFlags(MovieClip.prototype, "xyBevelTo", 1, 0);
ASSetPropFlags(TextField.prototype, "xyBevelTo", 1, 0);
_global.findPointOnCurve = function (p1x, p1y, cx, cy, p2x, p2y, t) {
return({x:p1x + (t * (((2 * (1 - t)) * (cx - p1x)) + (t * (p2x - p1x)))), y:p1y + (t * (((2 * (1 - t)) * (cy - p1y)) + (t * (p2y - p1y))))});
};
ASSetPropFlags(_global, "findPointOnCurve", 1, 0);
_global.findTweenColor = function (objProp, tTime) {
var _local8 = objProp._propStart >> 16;
var _local4 = objProp._propDest >> 16;
var _local5 = (objProp._propStart >> 8) & 255;
var _local6 = (objProp._propDest >> 8) & 255;
var _local9 = objProp._propStart & 255;
var _local7 = objProp._propDest & 255;
var _local12 = Math.round(_global.findTweenValue(_local8, _local4, objProp._timeStart, tTime - (objProp._delay * 1000), objProp._timeDest, objProp._animType, objProp._extra1, objProp._extra2));
var _local10 = Math.round(_global.findTweenValue(_local5, _local6, objProp._timeStart, tTime - (objProp._delay * 1000), objProp._timeDest, objProp._animType, objProp._extra1, objProp._extra2));
var _local3 = Math.round(_global.findTweenValue(_local9, _local7, objProp._timeStart, tTime - (objProp._delay * 1000), objProp._timeDest, objProp._animType, objProp._extra1, objProp._extra2));
return(((_local12 << 16) + (_local10 << 8)) + _local3);
};
_global.findTweenValue = function (_propStart, _propDest, _timeStart, _timeNow, _timeDest, _animType, _extra1, _extra2) {
var _local1 = _timeNow - _timeStart;
var _local4 = _propStart;
var _local2 = _propDest - _propStart;
var _local3 = _timeDest - _timeStart;
var _local6 = _extra1;
var _local7 = _extra2;
var _local5 = _extra1;
switch (_animType.toLowerCase()) {
case "linear" :
return(((_local2 * _local1) / _local3) + _local4);
case "easeinquad" :
_local1 = _local1 / _local3;
return(((_local2 * _local1) * _local1) + _local4);
case "easeoutquad" :
_local1 = _local1 / _local3;
return((((-_local2) * _local1) * (_local1 - 2)) + _local4);
case "easeinoutquad" :
_local1 = _local1 / (_local3 / 2);
if (_local1 < 1) {
return((((_local2 / 2) * _local1) * _local1) + _local4);
}
_local1--;
return((((-_local2) / 2) * ((_local1 * (_local1 - 2)) - 1)) + _local4);
case "easeoutinquad" :
if (_local1 < (_local3 / 2)) {
return((findTweenValue(0, _local2, 0, _local1 * 2, _local3, "easeOutQuad") * 0.5) + _local4);
}
return(((findTweenValue(0, _local2, 0, (_local1 * 2) - _local3, _local3, "easeInQuad") * 0.5) + (_local2 * 0.5)) + _local4);
case "easeincubic" :
_local1 = _local1 / _local3;
return((((_local2 * _local1) * _local1) * _local1) + _local4);
case "easeoutcubic" :
_local1 = (_local1 / _local3) - 1;
return((_local2 * (((_local1 * _local1) * _local1) + 1)) + _local4);
case "easeinoutcubic" :
_local1 = _local1 / (_local3 / 2);
if (_local1 < 1) {
return(((((_local2 / 2) * _local1) * _local1) * _local1) + _local4);
}
_local1 = _local1 - 2;
return(((_local2 / 2) * (((_local1 * _local1) * _local1) + 2)) + _local4);
case "easeoutincubic" :
if (_local1 < (_local3 / 2)) {
return((findTweenValue(0, _local2, 0, _local1 * 2, _local3, "easeOutCubic") * 0.5) + _local4);
}
return(((findTweenValue(0, _local2, 0, (_local1 * 2) - _local3, _local3, "easeInCubic") * 0.5) + (_local2 * 0.5)) + _local4);
case "easeinquart" :
_local1 = _local1 / _local3;
return(((((_local2 * _local1) * _local1) * _local1) * _local1) + _local4);
case "easeoutquart" :
_local1 = (_local1 / _local3) - 1;
return(((-_local2) * ((((_local1 * _local1) * _local1) * _local1) - 1)) + _local4);
case "easeinoutquart" :
_local1 = _local1 / (_local3 / 2);
if (_local1 < 1) {
return((((((_local2 / 2) * _local1) * _local1) * _local1) * _local1) + _local4);
}
_local1 = _local1 - 2;
return((((-_local2) / 2) * ((((_local1 * _local1) * _local1) * _local1) - 2)) + _local4);
case "easeoutinquart" :
if (_local1 < (_local3 / 2)) {
return((findTweenValue(0, _local2, 0, _local1 * 2, _local3, "easeOutQuart") * 0.5) + _local4);
}
return(((findTweenValue(0, _local2, 0, (_local1 * 2) - _local3, _local3, "easeInQuart") * 0.5) + (_local2 * 0.5)) + _local4);
case "easeinquint" :
_local1 = _local1 / _local3;
return((((((_local2 * _local1) * _local1) * _local1) * _local1) * _local1) + _local4);
case "easeoutquint" :
_local1 = (_local1 / _local3) - 1;
return((_local2 * (((((_local1 * _local1) * _local1) * _local1) * _local1) + 1)) + _local4);
case "easeinoutquint" :
_local1 = _local1 / (_local3 / 2);
if (_local1 < 1) {
return(((((((_local2 / 2) * _local1) * _local1) * _local1) * _local1) * _local1) + _local4);
}
_local1 = _local1 - 2;
return(((_local2 / 2) * (((((_local1 * _local1) * _local1) * _local1) * _local1) + 2)) + _local4);
case "easeoutinquint" :
if (_local1 < (_local3 / 2)) {
return((findTweenValue(0, _local2, 0, _local1 * 2, _local3, "easeOutQuint") * 0.5) + _local4);
}
return(((findTweenValue(0, _local2, 0, (_local1 * 2) - _local3, _local3, "easeInQuint") * 0.5) + (_local2 * 0.5)) + _local4);
case "easeinsine" :
return((((-_local2) * Math.cos((_local1 / _local3) * (Math.PI/2))) + _local2) + _local4);
case "easeoutsine" :
return((_local2 * Math.sin((_local1 / _local3) * (Math.PI/2))) + _local4);
case "easeinoutsine" :
return((((-_local2) / 2) * (Math.cos((Math.PI * _local1) / _local3) - 1)) + _local4);
case "easeoutinsine" :
if (_local1 < (_local3 / 2)) {
return((findTweenValue(0, _local2, 0, _local1 * 2, _local3, "easeOutSine") * 0.5) + _local4);
}
return(((findTweenValue(0, _local2, 0, (_local1 * 2) - _local3, _local3, "easeInSine") * 0.5) + (_local2 * 0.5)) + _local4);
case "easeinexpo" :
return(((_local1 == 0) ? (_local4) : ((_local2 * Math.pow(2, 10 * ((_local1 / _local3) - 1))) + _local4)));
case "easeoutexpo" :
return(((_local1 == _local3) ? (_local4 + _local2) : ((_local2 * ((-Math.pow(2, (-10 * _local1) / _local3)) + 1)) + _local4)));
case "easeinoutexpo" :
if (_local1 == 0) {
return(_local4);
}
if (_local1 == _local3) {
return(_local4 + _local2);
}
_local1 = _local1 / (_local3 / 2);
if (_local1 < 1) {
return(((_local2 / 2) * Math.pow(2, 10 * (_local1 - 1))) + _local4);
}
_local1--;
return(((_local2 / 2) * ((-Math.pow(2, -10 * _local1)) + 2)) + _local4);
case "easeoutinexpo" :
if (_local1 == 0) {
return(_local4);
}
if (_local1 == _local3) {
return(_local4 + _local2);
}
_local1 = _local1 / (_local3 / 2);
if (_local1 < 1) {
return(((_local2 / 2) * ((-Math.pow(2, (-10 * _local1) / 1)) + 1)) + _local4);
}
return(((_local2 / 2) * (Math.pow(2, (10 * (_local1 - 2)) / 1) + 1)) + _local4);
case "easeincirc" :
_local1 = _local1 / _local3;
return(((-_local2) * (Math.sqrt(1 - (_local1 * _local1)) - 1)) + _local4);
case "easeoutcirc" :
_local1 = (_local1 / _local3) - 1;
return((_local2 * Math.sqrt(1 - (_local1 * _local1))) + _local4);
case "easeinoutcirc" :
_local1 = _local1 / (_local3 / 2);
if (_local1 < 1) {
return((((-_local2) / 2) * (Math.sqrt(1 - (_local1 * _local1)) - 1)) + _local4);
}
_local1 = _local1 - 2;
return(((_local2 / 2) * (Math.sqrt(1 - (_local1 * _local1)) + 1)) + _local4);
case "easeoutincirc" :
if (_local1 < (_local3 / 2)) {
return((findTweenValue(0, _local2, 0, _local1 * 2, _local3, "easeOutCirc") * 0.5) + _local4);
}
return(((findTweenValue(0, _local2, 0, (_local1 * 2) - _local3, _local3, "easeInCirc") * 0.5) + (_local2 * 0.5)) + _local4);
case "easeinelastic" :
if (_local1 == 0) {
return(_local4);
}
_local1 = _local1 / _local3;
if (_local1 == 1) {
return(_local4 + _local2);
}
if (!_local7) {
_local7 = _local3 * 0.3;
}
if ((!_local6) || (_local6 < Math.abs(_local2))) {
_local6 = _local2;
_local5 = _local7 / 4;
} else {
_local5 = (_local7 / (Math.PI*2)) * Math.asin(_local2 / _local6);
}
_local1 = _local1 - 1;
return((-((_local6 * Math.pow(2, 10 * _local1)) * Math.sin((((_local1 * _local3) - _local5) * (Math.PI*2)) / _local7))) + _local4);
case "easeoutelastic" :
if (_local1 == 0) {
return(_local4);
}
_local1 = _local1 / _local3;
if (_local1 == 1) {
return(_local4 + _local2);
}
if (!_local7) {
_local7 = _local3 * 0.3;
}
if ((!_local6) || (_local6 < Math.abs(_local2))) {
_local6 = _local2;
_local5 = _local7 / 4;
} else {
_local5 = (_local7 / (Math.PI*2)) * Math.asin(_local2 / _local6);
}
return((((_local6 * Math.pow(2, -10 * _local1)) * Math.sin((((_local1 * _local3) - _local5) * (Math.PI*2)) / _local7)) + _local2) + _local4);
case "easeinoutelastic" :
if (_local1 == 0) {
return(_local4);
}
_local1 = _local1 / (_local3 / 2);
if (_local1 == 2) {
return(_local4 + _local2);
}
if (!_local7) {
_local7 = _local3 * 0.45;
}
if ((!_local6) || (_local6 < Math.abs(_local2))) {
_local6 = _local2;
_local5 = _local7 / 4;
} else {
_local5 = (_local7 / (Math.PI*2)) * Math.asin(_local2 / _local6);
}
if (_local1 < 1) {
_local1 = _local1 - 1;
return((-0.5 * ((_local6 * Math.pow(2, 10 * _local1)) * Math.sin((((_local1 * _local3) - _local5) * (Math.PI*2)) / _local7))) + _local4);
}
_local1 = _local1 - 1;
return(((((_local6 * Math.pow(2, -10 * _local1)) * Math.sin((((_local1 * _local3) - _local5) * (Math.PI*2)) / _local7)) * 0.5) + _local2) + _local4);
case "easeoutinelastic" :
if (_local1 < (_local3 / 2)) {
return((findTweenValue(0, _local2, 0, _local1 * 2, _local3, "easeOutElastic") * 0.5) + _local4);
}
return(((findTweenValue(0, _local2, 0, (_local1 * 2) - _local3, _local3, "easeInElastic") * 0.5) + (_local2 * 0.5)) + _local4);
case "easeinback" :
if (_local5 == undefined) {
_local5 = 1.70158;
}
_local1 = _local1 / _local3;
return((((_local2 * _local1) * _local1) * (((_local5 + 1) * _local1) - _local5)) + _local4);
case "easeoutback" :
if (_local5 == undefined) {
_local5 = 1.70158;
}
_local1 = (_local1 / _local3) - 1;
return((_local2 * (((_local1 * _local1) * (((_local5 + 1) * _local1) + _local5)) + 1)) + _local4);
case "easeinoutback" :
if (_local5 == undefined) {
_local5 = 1.70158;
}
_local1 = _local1 / (_local3 / 2);
if (_local1 < 1) {
_local5 = _local5 * 1.525;
return(((_local2 / 2) * ((_local1 * _local1) * (((_local5 + 1) * _local1) - _local5))) + _local4);
}
_local1 = _local1 - 2;
_local5 = _local5 * 1.525;
return(((_local2 / 2) * (((_local1 * _local1) * (((_local5 + 1) * _local1) + _local5)) + 2)) + _local4);
case "easeoutinback" :
if (_local1 < (_local3 / 2)) {
return((findTweenValue(0, _local2, 0, _local1 * 2, _local3, "easeOutBack") * 0.5) + _local4);
}
return(((findTweenValue(0, _local2, 0, (_local1 * 2) - _local3, _local3, "easeInBack") * 0.5) + (_local2 * 0.5)) + _local4);
case "easeinbounce" :
return((_local2 - findTweenValue(0, _local2, 0, _local3 - _local1, _local3, "easeOutBounce")) + _local4);
case "easeoutbounce" :
_local1 = _local1 / _local3;
if (_local1 < 0.363636363636364) {
return((_local2 * ((7.5625 * _local1) * _local1)) + _local4);
}
if (_local1 < 0.727272727272727) {
_local1 = _local1 - 0.545454545454545;
return((_local2 * (((7.5625 * _local1) * _local1) + 0.75)) + _local4);
}
if (_local1 < 0.909090909090909) {
_local1 = _local1 - 0.818181818181818;
return((_local2 * (((7.5625 * _local1) * _local1) + 0.9375)) + _local4);
}
_local1 = _local1 - 0.954545454545455;
return((_local2 * (((7.5625 * _local1) * _local1) + 0.984375)) + _local4);
case "easeinoutbounce" :
if (_local1 < (_local3 / 2)) {
return((findTweenValue(0, _local2, 0, _local1 * 2, _local3, "easeInBounce") * 0.5) + _local4);
}
return(((findTweenValue(0, _local2, 0, (_local1 * 2) - _local3, _local3, "easeOutBounce") * 0.5) + (_local2 * 0.5)) + _local4);
case "easeoutinbounce" :
if (_local1 < (_local3 / 2)) {
return((findTweenValue(0, _local2, 0, _local1 * 2, _local3, "easeOutBounce") * 0.5) + _local4);
}
return(((findTweenValue(0, _local2, 0, (_local1 * 2) - _local3, _local3, "easeInBounce") * 0.5) + (_local2 * 0.5)) + _local4);
}
trace(("MC TWEEN ### Error on transition: there's no \"" + _animType) + "\" animation type.");
return(0);
};
ASSetPropFlags(_global, "findTweenValue", 1, 0);
_global.XMLSA = function (watchXML) {
this.$xml = (this.$root = (this.$parent = new Object()));
ASSetPropFlags(this, null, 1, 1);
if (watchXML != undefined) {
this._parse.apply(this, arguments);
}
};
XMLSA.prototype.load = function () {
var _local3 = this._makeLoader(this);
arguments[0] = this._makeURL(arguments[0]);
_local3.load.apply(_local3, arguments);
};
XMLSA.prototype.send = function () {
arguments[0] = this._makeURL(arguments[0]);
if (arguments.length == 2) {
this.$root.send.apply(this.$root, arguments);
} else {
this.$root.sendAndLoad.apply(this.$root, arguments[0], new XML());
}
};
XMLSA.prototype.toString = function () {
return(this.$xml.toString());
};
XMLSA.prototype.sendAndLoad = function (host, target, method) {
var _local2 = this._makeLoader(target);
this.$root.sendAndLoad(this._makeURL(host), _local2, method);
};
XMLSA.prototype.search = function (criteria, recursive) {
XMLNode.prototype.$criteria = criteria;
arguments.shift();
var _local3 = this._search.apply(this, arguments);
delete XMLNode.prototype.$criteria;
return(_local3);
};
XMLSA.prototype.getXML = function () {
return(this.$xml);
};
XMLSA.prototype.getValue = function () {
return(((this.$xml.firstChild.nodeType == 3) ? (this.$xml.firstChild.nodeValue) : undefined));
};
XMLSA.prototype.setValue = function (text) {
if (this.$xml.firstChild.nodeType == undefined) {
this.$xml.appendChild(new XML().createTextNode(text));
return(true);
}
if (this.$xml.firstChild.nodeType == 3) {
this.$xml.firstChild.nodeValue = text;
return(true);
}
return(false);
};
XMLSA.prototype.getNodeName = function () {
return(this.$xml.nodeName);
};
XMLSA.prototype.appendChild = function (element) {
if (element instanceof XML) {
element = element.firstChild;
}
this.$xml.appendChild(element);
this._reParse();
};
XMLSA.prototype.cloneNode = function (rekursiv) {
return(this.$xml.cloneNode(rekursiv));
};
XMLSA.prototype.appendElement = function (name, value, attribs) {
var _local4 = new XML();
this.$xml.appendChild(_local4.createElement(name));
if (value != null) {
this.$xml.lastChild.appendChild(_local4.createTextNode(value));
}
if (typeof(attribs) == "object") {
for (var _local3 in attribs) {
this.$xml.lastChild.attributes[_local3] = attribs[_local3];
}
}
this._reParse();
};
XMLSA.prototype.removeChildByIndex = function (name, idx) {
this[name][idx].$xml.removeNode();
this[name].splice(idx, 1);
};
XMLSA.prototype.removeNode = function () {
this.$xml.removeNode();
this.$parent._reParse();
};
XMLSA.prototype.insertBefore = function (node) {
this.$parent.$xml.insertBefore(node, this.$xml);
this.$parent._reParse();
};
XMLSA.prototype._parse = function (node, parent) {
this.$parent = parent;
if (node instanceof XML) {
this.$version = "XMLSA 1.4";
this.$root = node;
node = node.firstChild;
} else {
this.$root = this.$parent.$root;
}
this.$xml = node;
this.attributes = node.attributes;
if ((node.nodeType == 1) and (node.firstChild.nodeType != 3)) {
var _local3 = 0;
while (_local3 < node.childNodes.length) {
var _local2 = node.childNodes[_local3].nodeName;
if (this[_local2] == undefined) {
this[_local2] = new Array();
this[_local2].__resolve = XMLSA.prototype.mixed__resolve;
ASSetPropFlags(this[_local2], null, 1, 1);
}
this[_local2].push(new XMLSA(node.childNodes[_local3], this));
_local3++;
}
}
};
XMLSA.prototype._reParse = function () {
this._cleanup();
this._parse(this.$xml, this.$parent);
};
XMLSA.prototype._cleanup = function () {
for (var _local2 in this) {
delete this[_local2];
}
};
XMLSA.prototype._makeURL = function (host) {
if (this._online()) {
var _local4 = random(100000) + 100000;
if (_global.sessionID != undefined) {
return((host + "/sid/") + _global.sessionID);
}
return(host);
}
return(host);
};
XMLSA.prototype._online = function () {
return(_root._url.substr(0, 7) == "http://");
};
XMLSA.prototype._makeLoader = function (target) {
var _local4 = new XML();
_local4.ignoreWhite = true;
_local4.link = target;
_local4.onLoad = function (ok) {
if (ok) {
ASSetPropFlags(this.link, ["onLoad"], 1, 1);
this.link._cleanup();
ASSetPropFlags(this.link, ["onLoad"], 0, 1);
this.link._parse(this);
this.link.onLoad(true);
var _local3 = this.link.attributes;
if (_local3.session != undefined) {
switch (_local3.session) {
case "timeout" :
case "end" :
if (_global.session != undefined) {
delete _global.session;
_global.onSessionEnd(_local3);
}
break;
default :
_global.session = new Object();
_global.session.id = _local3.session;
_global.onSessionStart(_local3);
}
}
} else {
this.link.onLoad(false);
}
};
return(_local4);
};
XMLSA.prototype._search = function (recursive) {
var _local3 = new Array();
for (var _local6 in this) {
for (var _local4 in this[_local6]) {
if (this[_local6][_local4].$xml != undefined) {
if (this[_local6][_local4].$xml.$criteria()) {
_local3.push(this[_local6][_local4]);
}
if (recursive) {
_local3 = _local3.concat(this[_local6][_local4]._search.apply(this[_local6][_local4], arguments));
}
}
}
}
return(_local3);
};
XMLSA.prototype.mixed__resolve = function (found) {
return(this[0][found]);
};
XMLSA.prototype.dump = function (obj, sName, nLevels) {
var _local5 = "";
if (typeof(obj) != "object") {
obj = this;
sName = this.getNodeName();
}
var _local2;
var _local6 = "";
if (nLevels == null) {
nLevels = 0;
}
_local2 = 1;
while (_local2 <= nLevels) {
_local6 = _local6 + "\t";
_local2++;
}
_local5 = _local5 + ((_local6 + sName) + "{\n");
nLevels++;
var _local3 = new Array();
for (_local2 in obj) {
_local3.push(_local2);
}
_local3.reverse();
_local2 = 0;
while (_local2 < _local3.length) {
if ((typeof(obj[_local3[_local2]]) == "object") and (_local3[_local2] ne "$xml")) {
_local5 = _local5 + this.dump(obj[_local3[_local2]], _local3[_local2], nLevels);
} else {
_local5 = _local5 + (((((_local6 + "\t") + _local3[_local2]) + "=\"") + obj[_local3[_local2]].toString()) + "\"\n");
}
_local2++;
}
_local5 = _local5 + (_local6 + "}\n");
return(_local5);
};
XMLSA.prototype.dumpHTML = function (obj, sName, nLevels) {
var _local5 = "";
if (typeof(obj) != "object") {
obj = this;
sName = this.getNodeName();
}
var _local2;
var _local6 = "";
if (nLevels == null) {
nLevels = 0;
}
_local2 = 1;
while (_local2 <= nLevels) {
_local6 = _local6 + " ";
_local2++;
}
_local5 = _local5 + ((_local6 + sName) + "{<br/>");
nLevels++;
var _local3 = new Array();
for (_local2 in obj) {
_local3.push(_local2);
}
_local3.reverse();
_local2 = 0;
while (_local2 < _local3.length) {
if (typeof(obj[_local3[_local2]]) == "object") {
_local5 = _local5 + this.dump(obj[_local3[_local2]], _local3[_local2], nLevels);
} else {
_local5 = _local5 + (((((_local6 + " ") + _local3[_local2]) + "=\"") + obj[_local3[_local2]].toString()) + "\"<br/>");
}
_local2++;
}
_local5 = _local5 + (_local6 + "}<br/>");
return(_local5);
};
ASSetPropFlags(XMLSA.prototype, null, 1, 1);
if (typeof(_global) != "object") {
_global = _root;
}
_global.MD5 = function () {
this.hexcase = 0;
this.b64pad = "";
this.chrsz = 8;
this.calculate = function (s) {
return(this.hex_md5(s));
};
this.test = function (s) {
return(this.md5_vm_test());
};
};
MD5.prototype.hex_md5 = function (s) {
return(this.binl2hex(this.core_md5(this.str2binl(s), s.length * this.chrsz)));
};
MD5.prototype.b64_md5 = function (s) {
return(this.binl2b64(this.core_md5(this.str2binl(s), s.length * this.chrsz)));
};
MD5.prototype.str_md5 = function (s) {
return(this.binl2str(this.core_md5(this.str2binl(s), s.length * this.chrsz)));
};
MD5.prototype.hex_hmac_md5 = function (key, data) {
return(this.binl2hex(this.core_hmac_md5(key, data)));
};
MD5.prototype.b64_hmac_md5 = function (key, data) {
return(this.binl2b64(this.core_hmac_md5(key, data)));
};
MD5.prototype.str_hmac_md5 = function (key, data) {
return(this.binl2str(this.core_hmac_md5(key, data)));
};
MD5.prototype.md5_vm_test = function () {
return(this.hex_md5("abc") == "900150983cd24fb0d6963f7d28e17f72");
};
MD5.prototype.core_md5 = function (x, len) {
x[len >> 5] = x[len >> 5] | (128 << (len % 32));
x[(((len + 64) >>> 9) << 4) + 14] = len;
var _local5 = 1732584193 /* 0x67452301 */;
var _local4 = -271733879;
var _local3 = -1732584194;
var _local2 = 271733878 /* 0x10325476 */;
var _local6 = 0;
while (_local6 < x.length) {
var _local11 = _local5;
var _local10 = _local4;
var _local9 = _local3;
var _local8 = _local2;
_local5 = this.md5_ff(_local5, _local4, _local3, _local2, x[_local6 + 0], 7, -680876936);
_local2 = this.md5_ff(_local2, _local5, _local4, _local3, x[_local6 + 1], 12, -389564586);
_local3 = this.md5_ff(_local3, _local2, _local5, _local4, x[_local6 + 2], 17, 606105819);
_local4 = this.md5_ff(_local4, _local3, _local2, _local5, x[_local6 + 3], 22, -1044525330);
_local5 = this.md5_ff(_local5, _local4, _local3, _local2, x[_local6 + 4], 7, -176418897);
_local2 = this.md5_ff(_local2, _local5, _local4, _local3, x[_local6 + 5], 12, 1200080426);
_local3 = this.md5_ff(_local3, _local2, _local5, _local4, x[_local6 + 6], 17, -1473231341);
_local4 = this.md5_ff(_local4, _local3, _local2, _local5, x[_local6 + 7], 22, -45705983);
_local5 = this.md5_ff(_local5, _local4, _local3, _local2, x[_local6 + 8], 7, 1770035416);
_local2 = this.md5_ff(_local2, _local5, _local4, _local3, x[_local6 + 9], 12, -1958414417);
_local3 = this.md5_ff(_local3, _local2, _local5, _local4, x[_local6 + 10], 17, -42063);
_local4 = this.md5_ff(_local4, _local3, _local2, _local5, x[_local6 + 11], 22, -1990404162);
_local5 = this.md5_ff(_local5, _local4, _local3, _local2, x[_local6 + 12], 7, 1804603682);
_local2 = this.md5_ff(_local2, _local5, _local4, _local3, x[_local6 + 13], 12, -40341101);
_local3 = this.md5_ff(_local3, _local2, _local5, _local4, x[_local6 + 14], 17, -1502002290);
_local4 = this.md5_ff(_local4, _local3, _local2, _local5, x[_local6 + 15], 22, 1236535329);
_local5 = this.md5_gg(_local5, _local4, _local3, _local2, x[_local6 + 1], 5, -165796510);
_local2 = this.md5_gg(_local2, _local5, _local4, _local3, x[_local6 + 6], 9, -1069501632);
_local3 = this.md5_gg(_local3, _local2, _local5, _local4, x[_local6 + 11], 14, 643717713);
_local4 = this.md5_gg(_local4, _local3, _local2, _local5, x[_local6 + 0], 20, -373897302);
_local5 = this.md5_gg(_local5, _local4, _local3, _local2, x[_local6 + 5], 5, -701558691);
_local2 = this.md5_gg(_local2, _local5, _local4, _local3, x[_local6 + 10], 9, 38016083);
_local3 = this.md5_gg(_local3, _local2, _local5, _local4, x[_local6 + 15], 14, -660478335);
_local4 = this.md5_gg(_local4, _local3, _local2, _local5, x[_local6 + 4], 20, -405537848);
_local5 = this.md5_gg(_local5, _local4, _local3, _local2, x[_local6 + 9], 5, 568446438);
_local2 = this.md5_gg(_local2, _local5, _local4, _local3, x[_local6 + 14], 9, -1019803690);
_local3 = this.md5_gg(_local3, _local2, _local5, _local4, x[_local6 + 3], 14, -187363961);
_local4 = this.md5_gg(_local4, _local3, _local2, _local5, x[_local6 + 8], 20, 1163531501);
_local5 = this.md5_gg(_local5, _local4, _local3, _local2, x[_local6 + 13], 5, -1444681467);
_local2 = this.md5_gg(_local2, _local5, _local4, _local3, x[_local6 + 2], 9, -51403784);
_local3 = this.md5_gg(_local3, _local2, _local5, _local4, x[_local6 + 7], 14, 1735328473);
_local4 = this.md5_gg(_local4, _local3, _local2, _local5, x[_local6 + 12], 20, -1926607734);
_local5 = this.md5_hh(_local5, _local4, _local3, _local2, x[_local6 + 5], 4, -378558);
_local2 = this.md5_hh(_local2, _local5, _local4, _local3, x[_local6 + 8], 11, -2022574463);
_local3 = this.md5_hh(_local3, _local2, _local5, _local4, x[_local6 + 11], 16, 1839030562);
_local4 = this.md5_hh(_local4, _local3, _local2, _local5, x[_local6 + 14], 23, -35309556);
_local5 = this.md5_hh(_local5, _local4, _local3, _local2, x[_local6 + 1], 4, -1530992060);
_local2 = this.md5_hh(_local2, _local5, _local4, _local3, x[_local6 + 4], 11, 1272893353);
_local3 = this.md5_hh(_local3, _local2, _local5, _local4, x[_local6 + 7], 16, -155497632);
_local4 = this.md5_hh(_local4, _local3, _local2, _local5, x[_local6 + 10], 23, -1094730640);
_local5 = this.md5_hh(_local5, _local4, _local3, _local2, x[_local6 + 13], 4, 681279174);
_local2 = this.md5_hh(_local2, _local5, _local4, _local3, x[_local6 + 0], 11, -358537222);
_local3 = this.md5_hh(_local3, _local2, _local5, _local4, x[_local6 + 3], 16, -722521979);
_local4 = this.md5_hh(_local4, _local3, _local2, _local5, x[_local6 + 6], 23, 76029189);
_local5 = this.md5_hh(_local5, _local4, _local3, _local2, x[_local6 + 9], 4, -640364487);
_local2 = this.md5_hh(_local2, _local5, _local4, _local3, x[_local6 + 12], 11, -421815835);
_local3 = this.md5_hh(_local3, _local2, _local5, _local4, x[_local6 + 15], 16, 530742520);
_local4 = this.md5_hh(_local4, _local3, _local2, _local5, x[_local6 + 2], 23, -995338651);
_local5 = this.md5_ii(_local5, _local4, _local3, _local2, x[_local6 + 0], 6, -198630844);
_local2 = this.md5_ii(_local2, _local5, _local4, _local3, x[_local6 + 7], 10, 1126891415);
_local3 = this.md5_ii(_local3, _local2, _local5, _local4, x[_local6 + 14], 15, -1416354905);
_local4 = this.md5_ii(_local4, _local3, _local2, _local5, x[_local6 + 5], 21, -57434055);
_local5 = this.md5_ii(_local5, _local4, _local3, _local2, x[_local6 + 12], 6, 1700485571);
_local2 = this.md5_ii(_local2, _local5, _local4, _local3, x[_local6 + 3], 10, -1894986606);
_local3 = this.md5_ii(_local3, _local2, _local5, _local4, x[_local6 + 10], 15, -1051523);
_local4 = this.md5_ii(_local4, _local3, _local2, _local5, x[_local6 + 1], 21, -2054922799);
_local5 = this.md5_ii(_local5, _local4, _local3, _local2, x[_local6 + 8], 6, 1873313359);
_local2 = this.md5_ii(_local2, _local5, _local4, _local3, x[_local6 + 15], 10, -30611744);
_local3 = this.md5_ii(_local3, _local2, _local5, _local4, x[_local6 + 6], 15, -1560198380);
_local4 = this.md5_ii(_local4, _local3, _local2, _local5, x[_local6 + 13], 21, 1309151649);
_local5 = this.md5_ii(_local5, _local4, _local3, _local2, x[_local6 + 4], 6, -145523070);
_local2 = this.md5_ii(_local2, _local5, _local4, _local3, x[_local6 + 11], 10, -1120210379);
_local3 = this.md5_ii(_local3, _local2, _local5, _local4, x[_local6 + 2], 15, 718787259);
_local4 = this.md5_ii(_local4, _local3, _local2, _local5, x[_local6 + 9], 21, -343485551);
_local5 = this.safe_add(_local5, _local11);
_local4 = this.safe_add(_local4, _local10);
_local3 = this.safe_add(_local3, _local9);
_local2 = this.safe_add(_local2, _local8);
_local6 = _local6 + 16;
}
return(new Array(_local5, _local4, _local3, _local2));
};
MD5.prototype.md5_cmn = function (q, a, b, x, s, t) {
return(this.safe_add(this.bit_rol(this.safe_add(this.safe_add(a, q), this.safe_add(x, t)), s), b));
};
MD5.prototype.md5_ff = function (a, b, c, d, x, s, t) {
return(this.md5_cmn((b & c) | ((~b) & d), a, b, x, s, t));
};
MD5.prototype.md5_gg = function (a, b, c, d, x, s, t) {
return(this.md5_cmn((b & d) | (c & (~d)), a, b, x, s, t));
};
MD5.prototype.md5_hh = function (a, b, c, d, x, s, t) {
return(this.md5_cmn((b ^ c) ^ d, a, b, x, s, t));
};
MD5.prototype.md5_ii = function (a, b, c, d, x, s, t) {
return(this.md5_cmn(c ^ (b | (~d)), a, b, x, s, t));
};
MD5.prototype.core_hmac_md5 = function (key, data) {
var _local3 = this.str2binl(key);
if (_local3.length > 16) {
_local3 = this.core_md5(_local3, key.length * this.chrsz);
}
var _local4 = new Array(16);
var _local5 = new Array(16);
var _local2 = 0;
while (_local2 < 16) {
_local4[_local2] = _local3[_local2] ^ 909522486;
_local5[_local2] = _local3[_local2] ^ 1549556828;
_local2++;
}
var _local6 = this.core_md5(_local4.concat(this.str2binl(data)), 512 + (data.length * this.chrsz));
return(this.core_md5(_local5.concat(_local6), 640));
};
MD5.prototype.safe_add = function (x, y) {
var _local1 = (x & 65535) + (y & 65535);
var _local2 = ((x >> 16) + (y >> 16)) + (_local1 >> 16);
return((_local2 << 16) | (_local1 & 65535));
};
MD5.prototype.bit_rol = function (num, cnt) {
return((num << cnt) | (num >>> (32 - cnt)));
};
MD5.prototype.str2binl = function (str) {
var _local4 = new Array();
var _local5 = (1 << this.chrsz) - 1;
var _local2 = 0;
while (_local2 < (str.length * this.chrsz)) {
_local4[_local2 >> 5] = _local4[_local2 >> 5] | ((str.charCodeAt(_local2 / this.chrsz) & _local5) << (_local2 % 32));
_local2 = _local2 + this.chrsz;
}
return(_local4);
};
MD5.prototype.binl2str = function (bin) {
var _local4 = "";
var _local5 = (1 << this.chrsz) - 1;
var _local2 = 0;
while (_local2 < (bin.length * 32)) {
_local4 = _local4 + String.fromCharCode((bin[_local2 >> 5] >>> (_local2 % 32)) & _local5);
_local2 = _local2 + this.chrsz;
}
return(_local4);
};
MD5.prototype.binl2hex = function (binarray) {
var _local4 = (this.hexcase ? "0123456789ABCDEF" : "0123456789abcdef");
var _local5 = "";
var _local2 = 0;
while (_local2 < (binarray.length * 4)) {
_local5 = _local5 + (_local4.charAt((binarray[_local2 >> 2] >> (((_local2 % 4) * 8) + 4)) & 15) + _local4.charAt((binarray[_local2 >> 2] >> ((_local2 % 4) * 8)) & 15));
_local2++;
}
return(_local5);
};
MD5.prototype.binl2b64 = function (binarray) {
var _local7 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
var _local5 = "";
var _local3 = 0;
while (_local3 < (binarray.length * 4)) {
var _local6 = ((((binarray[_local3 >> 2] >> (8 * (_local3 % 4))) & 255) << 16) | (((binarray[(_local3 + 1) >> 2] >> (8 * ((_local3 + 1) % 4))) & 255) << 8)) | ((binarray[(_local3 + 2) >> 2] >> (8 * ((_local3 + 2) % 4))) & 255);
var _local2 = 0;
while (_local2 < 4) {
if (((_local3 * 8) + (_local2 * 6)) > (binarray.length * 32)) {
_local5 = _local5 + this.b64pad;
} else {
_local5 = _local5 + _local7.charAt((_local6 >> (6 * (3 - _local2))) & 63);
}
_local2++;
}
_local3 = _local3 + 3;
}
return(_local5);
};
ASSetPropFlags(MD5.prototype, null, 7);
if (_url.indexOf("http://") == -1) {
urlPrefix = "http://heyah2.sycamore/tools/gra_zombie/";
} else {
urlPrefix = "/tools/gra_zombie/";
}
_global.setUrchin = function (alias_) {
var _local1 = "/zombie/";
if ((_url.indexOf("http://") != -1) && (alias_ != undefined)) {
flash.external.ExternalInterface.call("urchinTracker", _local1 + alias_);
} else {
trace(((("urchinTracker('" + _local1) + alias_) + "'") + ");");
}
};
if (ID != undefined) {
if (!wiralcount) {
wiralcount = true;
setUrchin("wiral");
}
gotoAndPlay (80);
}
Frame 52
newgame_btn.onRelease = function () {
setUrchin("gra");
whereto = "gra";
play();
};
gallery_btn.onRelease = function () {
setUrchin("galeria");
whereto = "gallery";
play();
};
instructions_btn.onRelease = function () {
setUrchin("instrukcja");
whereto = "instrukcja";
play();
};
stop();
Frame 66
if (whereto == "gra") {
gotoAndPlay (69);
} else if (whereto == "gallery") {
gotoAndPlay (80);
} else if (whereto == "instrukcja") {
gotoAndPlay (106);
}
Frame 69
score = 0;
Frame 79
function interpolateArrays(ary1, ary2, t) {
var _local3 = ((ary1.length >= ary2.length) ? (ary1.slice()) : (ary2.slice()));
var _local1 = _local3.length;
while (_local1--) {
_local3[_local1] = ary1[_local1] + ((ary2[_local1] - ary1[_local1]) * t);
}
return(_local3);
}
function saturation(target, amount) {
var _local3 = new flash.filters.ColorMatrixFilter();
var _local6 = [1, 0, 0, 0, 0];
var _local7 = [0, 1, 0, 0, 0];
var _local5 = [0, 0, 1, 0, 0];
var _local4 = [0, 0, 0, 1, 0];
var _local2 = [0.3, 0.59, 0.11, 0, 0];
var _local1 = new Array();
_local1 = _local1.concat(interpolateArrays(_local2, _local6, amount));
_local1 = _local1.concat(interpolateArrays(_local2, _local7, amount));
_local1 = _local1.concat(interpolateArrays(_local2, _local5, amount));
_local1 = _local1.concat(_local4);
_local3.matrix = _local1;
target.filters = [_local3];
}
function loadHead() {
var _local2 = createEmptyMovieClip("head", 0);
_local2._x = -100;
_local2._y = -100;
var _local1 = headXML.item[Math.floor(Math.random() * headXML.item.length)].attributes.id;
if (ID != undefined) {
if (Math.random() < 0.3) {
_local1 = ID;
}
}
pngURL = ((((((((urlPrefix + "upload/thumb/") + _local1.substr(0, 1)) + "/") + _local1.substr(0, 2)) + "/") + _local1.substr(0, 3)) + "/") + _local1) + ".png";
headLoader.loadClip(pngURL, _local2);
}
function init() {
sielankaNum = 1;
createEmptyMovieClip("horror_snd_mc", 1);
horrorSnd = new Sound(horror_snd_mc);
horrorSnd.attachSound("horror_snd");
horrorSnd.start(0, 64000);
horrorSnd.setVolume(0);
horrorSnd.volumeTo(100, 2, "linear");
horror_mc.alphaTo(0, 0.5, "linear", 1);
createEmptyMovieClip("sielanka_snd_mc", 2);
sielankaSnd = new Sound(sielanka_snd_mc);
sielankaSnd.attachSound("sielanka_snd");
enemyArr = new Array();
enemyNum = 0;
zombieSpeed = 1;
zombieTypeNum = 4;
batTypeNum = 2;
batSpeed = 4;
enemyPopularity = 0.05;
maxenemy = 5;
heroDir = 0;
maxRange = 0;
heroSpeed = 6;
planNum = 4;
maxAmmo = 6;
gameinterfejs_mc.ammo_mc.gotoAndStop(1);
gameinterfejs_mc.ammo_mc.ammo_mc.gotoAndStop(1);
ammo = maxAmmo;
aammo = 24;
gun = 0;
lastscore = 0;
energy = 100;
gameinterfejs_mc.energy_mc.mask_mc._x = 0;
score = 0;
alive = true;
sielanka = false;
sielankaRange = 50;
enemiesperscore = 100;
lastSielankaPoints = sielankaRange;
score_mc._visible = false;
var _local4 = 0;
while (_local4 < planNum) {
var _local3 = this["plan" + _local4];
_local3.cacheAsBitmap = true;
var _local2 = _local3.gfx_mc.duplicateMovieClip("gfx1_mc", 1);
_local3.gfx_mc.width = _local3.gfx_mc._width;
_local2.width = _local2._width;
_local2._x = _local2.width;
_local4++;
}
mouseListener = new Object();
Mouse.addListener(mouseListener);
mouseListener.onMouseDown = function () {
mousedown = true;
};
mouseListener.onMouseUp = function () {
mousedown = false;
};
keyListener = new Object();
Key.addListener(keyListener);
keyListener.onKeyDown = function () {
if (alive) {
if (Key.getCode() == 32) {
switchGuns();
} else if (Key.getCode() == 82) {
reloadGun();
}
}
};
renderInt = setInterval(this, "render", 30);
}
function reloadGun() {
if (gun == 0) {
sammo = 6;
ammo = sammo;
if (!sielanka) {
hero_mc.gotoAndStop("loading_shotgun");
} else {
hero_mc.gotoAndStop("loading_wshotgun");
}
} else {
aammo = 24;
ammo = aammo;
if (!sielanka) {
hero_mc.gotoAndStop("loading_automat");
} else {
hero_mc.gotoAndStop("loading_wautomat");
}
}
gameinterfejs_mc.ammo_mc.ammo_mc.gotoAndStop(1);
reactionInProgress = true;
clearInterval(reactionPauseInt);
reactionPauseInt = setInterval(function () {
reactionInProgress = false;
if (gun == 0) {
if (!sielanka) {
hero_mc.gotoAndStop("shotgun");
} else {
hero_mc.gotoAndStop("wshotgun");
}
} else if (!sielanka) {
hero_mc.gotoAndStop("automat");
} else {
hero_mc.gotoAndStop("wautomat");
}
clearInterval(reactionPauseInt);
}, 1000);
}
function switchGuns() {
if (alive) {
if (gun == 0) {
gun = 1;
sammo = ammo;
ammo = aammo;
maxAmmo = 24;
gameinterfejs_mc.ammo_mc.gotoAndStop(2);
gameinterfejs_mc.ammo_mc.ammo_mc.gotoAndStop((maxAmmo - ammo) + 1);
if (!sielanka) {
hero_mc.gotoAndStop("automat");
} else {
hero_mc.gotoAndStop("wautomat");
}
} else {
aammo = ammo;
ammo = sammo;
maxAmmo = 6;
gameinterfejs_mc.ammo_mc.gotoAndStop(1);
gameinterfejs_mc.ammo_mc.ammo_mc.gotoAndStop((maxAmmo - ammo) + 1);
if (!sielanka) {
hero_mc.gotoAndStop("shotgun");
} else {
hero_mc.gotoAndStop("wshotgun");
}
gun = 0;
}
}
}
function enemyCount() {
a = 0;
for (var _local1 in enemyArr) {
zombieNum = (newline + enemyArr[_local1]) + zombieNum;
a++;
}
return(a);
}
function shot() {
if (!reactionInProgress) {
if (ammo > 0) {
reactionInProgress = true;
ammo--;
gameinterfejs_mc.ammo_mc.ammo_mc.gotoAndStop((maxAmmo - ammo) + 1);
if (gun == 0) {
delay = 800;
} else {
delay = 150;
}
reactionPauseInt = setInterval(function () {
reactionInProgress = false;
clearInterval(reactionPauseInt);
}, delay);
var _local7 = (gunAngle / 180) * Math.PI;
if (gun == 0) {
maxRange = 200;
} else {
maxRange = 400;
}
var _local4 = 0;
while (_local4 < maxRange) {
do {
if ((in enemyArr) == null) {
break;
}
var _local14 = in enemyArr;
var _local12 = enemyArr[_local14];
var _local2 = (((Math.cos(_local7) * _local4) * heroOr) - mainplan._x) + hero_mc._x;
var _local3 = ((Math.sin(_local7) * _local4) - mainplan._y) + hero_mc._y;
if (_local12.hitTest(_local2 + mainplan._x, _local3 + mainplan._y, true) && (!_local12.hit)) {
var _local6 = Math.abs((hero_mc._x - mainplan._x) - _local12._x);
var _local1 = (-_local6) / ((hero_mc._x - mainplan._x) - _local12._x);
var _local16 = mainplan.getNextHighestDepth();
if (!sielanka) {
mainplan.attachMovie("flaczki", "flaczki" + _local16, _local16, {_x:_local2, _y:_local3, _xscale:_local1 * 100, _rotation:_local1 * gunAngle});
} else {
mainplan.attachMovie("sflaczki", "flaczki" + _local16, _local16, {_x:_local2, _y:_local3, _xscale:_local1 * 100, _rotation:_local1 * gunAngle});
}
_local12.hit = true;
var _local5 = true;
if (gun == 0) {
_local12.health = _local12.health - 3;
if (!sielanka) {
score = score + 3;
lastscore = lastscore + 3;
} else {
score = score + 6;
lastscore = lastscore + 6;
}
_local12._x = _local12._x + (_local1 * 9);
} else {
_local12.health--;
_local12._x = _local12._x + (_local1 * 3);
if (!sielanka) {
score++;
lastscore++;
} else {
score = score + 2;
lastscore = lastscore + 2;
}
}
if (lastscore > enemiesperscore) {
lastscore = 0;
trace("dodaje wroga");
maxenemy++;
}
if ((score > lastSielankaPoints) && (!sielanka)) {
doSielanka();
} else {
_local12.gotoAndStop(7 - _local12.health);
_local12.zombie_mc.head_mc.image_mc.attachBitmap(_local12.bmp, 0);
if (_local12.health < 1) {
_local12.dead = true;
delete enemyArr[_local12.num];
}
}
}
} while (!(_local5 && (gun == 1)));
do {
} while (() != null);
if (_local12.hit) {
break;
}
if ((_local2 != undefined) && (!sielanka)) {
mainplan.lineStyle(1, 16777215);
mainplan.moveTo((-mainplan._x) + hero_mc._x, (-mainplan._y) + hero_mc._y);
var _local13 = _local4;
mainplan.lineTo(_local2, _local3);
}
_local4 = _local4 + 10;
}
for (var _local14 in enemyArr) {
var _local12 = enemyArr[_local14];
_local12.hit = false;
}
if (!sielanka) {
var _local16 = mainplan.getNextHighestDepth();
var _local15 = mainplan.attachMovie("luska", "luska" + _local16, _local16);
_local15._x = (hero_mc._x - mainplan._x) + 10;
_local15._y = (hero_mc._y - mainplan._y) - 10;
}
hero_mc.arm.gotoAndPlay("shot");
hero_mc.arm2.gotoAndPlay("shot");
hero_mc.arm3.gotoAndPlay("shot");
hero_mc.body.gotoAndPlay("shot");
hero_mc.head_mc.gotoAndPlay("shot");
}
}
}
function doSielanka() {
horrorSnd.volumeTo(0, 1, "linear", 0, function () {
this.stop();
});
sielankaSnd.start(0, 64000);
sielankaSnd.setVolume(0);
sielankaSnd.volumeTo(100, 1, "linear");
gameinterfejs_mc.gotoAndStop(2);
gameinterfejs_mc.energy_mc.mask_mc._x = energy - 100;
for (var _local2 in enemyArr) {
var _local3 = enemyArr[_local2];
_local3.gotoAndStop(7);
_local3.dead = true;
delete enemyArr[_local3.num];
}
sielanka_mc.alphaTo(100, 0.5, "linear", 0, function () {
this.alphaTo(0, 0.5, "linear", 2);
});
sielanka = true;
tlo_mc.frameTo(11, 1, "linear");
heroSpeed++;
var _local2 = 0;
while (_local2 < planNum) {
var _local4 = this["plan" + _local2];
_local4.gfx_mc.frameTo(11, 0.3, "linear", (_local2 + 1) * 0.3);
_local4.gfx1_mc.frameTo(11, 0.3, "linear", (_local2 + 1) * 0.3);
_local2++;
}
if (gun == 0) {
hero_mc.gotoAndStop("wshotgun");
gameinterfejs_mc.ammo_mc.gotoAndStop(1);
} else {
hero_mc.gotoAndStop("wautomat");
gameinterfejs_mc.ammo_mc.gotoAndStop(2);
}
reloadGun();
}
function doHell() {
sielankaSnd.volumeTo(0, 2, "linear", 0, function () {
this.stop();
});
horrorSnd.start(0, 64000);
horrorSnd.setVolume(0);
horrorSnd.volumeTo(100, 2, "linear");
gameinterfejs_mc.gotoAndStop(1);
energy = 100;
gameinterfejs_mc.energy_mc.mask_mc._x = energy - 100;
for (var _local2 in enemyArr) {
var _local3 = enemyArr[_local2];
_local3.gotoAndStop(7);
_local3.dead = true;
delete enemyArr[_local3.num];
}
sielanka = false;
horror_mc.alphaTo(100, 0.5, "linear", 0, function () {
this.alphaTo(0, 0.5, "linear", 2);
});
lastSielankaPoints = (score + sielankaRange) + (50 * sielankaNum);
sielankaNum++;
tlo_mc.frameTo(1, 1, "linear");
var _local2 = 0;
while (_local2 < planNum) {
var _local4 = this["plan" + _local2];
_local4.gfx_mc.frameTo(1, 0.3, "linear", (_local2 + 1) * 0.3);
_local4.gfx1_mc.frameTo(1, 0.3, "linear", (_local2 + 1) * 0.3);
_local2++;
}
if (gun == 0) {
gameinterfejs_mc.ammo_mc.gotoAndStop(1);
hero_mc.gotoAndStop("shotgun");
} else {
gameinterfejs_mc.ammo_mc.gotoAndStop(2);
hero_mc.gotoAndStop("automat");
}
reloadGun();
}
function addEnemy(bmp) {
var _local2 = mainplan.getNextHighestDepth();
if (Math.random() < 0.8) {
if (!sielanka) {
var _local1 = mainplan.attachMovie("zombie" + Math.floor(Math.random() * zombieTypeNum), "enemy" + _local2, _local2);
} else {
var _local1 = mainplan.attachMovie("szombie" + Math.floor(Math.random() * zombieTypeNum), "enemy" + _local2, _local2);
}
_local1.speed = zombieSpeed;
_local1.health = 6;
} else {
if (!sielanka) {
var _local1 = mainplan.attachMovie("bat" + Math.floor(Math.random() * batTypeNum), "enemy" + _local2, _local2);
} else {
var _local1 = mainplan.attachMovie("sbat", "enemy" + _local2, _local2);
}
_local1.speed = batSpeed;
_local1.health = 1;
}
if (heroOr < 0) {
_local1._x = 750 - mainplan._x;
} else {
_local1._x = -50 - mainplan._x;
}
if (!sielanka) {
saturation(_local1, 0);
}
_local1._y = 270;
_local1.dead = false;
_local1.num = "z" + _local2;
_local1.bmp = bmp;
_local1.zombie_mc.head_mc.image_mc.attachBitmap(bmp, 0);
enemyArr[_local1.num] = _local1;
}
function render() {
mainplan.clear();
if (alive) {
if ((Math.random() < enemyPopularity) && (enemyCount() < maxenemy)) {
loadHead();
}
if (hero_mc._x < _xmouse) {
heroOr = 1;
} else {
heroOr = -1;
}
if (Key.isDown(37) || (Key.isDown(65))) {
heroDir = 1;
} else if (Key.isDown(39) || (Key.isDown(68))) {
heroDir = -1;
} else {
heroDir = 0;
}
if ((heroDir * heroOr) > 0) {
if (hero_mc.legs_mc._currentframe > 1) {
hero_mc.legs_mc.prevFrame();
} else {
hero_mc.legs_mc.gotoAndStop(hero_mc.legs_mc._totalframes);
}
} else if ((heroDir * heroOr) < 0) {
if (hero_mc.legs_mc._currentframe < hero_mc.legs_mc._totalframes) {
hero_mc.legs_mc.nextFrame();
} else {
hero_mc.legs_mc.gotoAndStop(1);
}
} else {
hero_mc.legs_mc.stop();
}
hero_mc._xscale = heroOr * 100;
gunAngle = (Math.atan2(_ymouse - hero_mc._y, (_xmouse - hero_mc._x) * heroOr) / Math.PI) * 180;
if (gunAngle > 30) {
gunAngle = 30;
} else if (gunAngle < -45) {
gunAngle = -45;
}
hero_mc.arm._rotation = gunAngle;
hero_mc.arm2._rotation = gunAngle * 2;
hero_mc.head_mc._rotation = gunAngle;
for (var _local6 in enemyArr) {
var _local2 = enemyArr[_local6];
var _local5 = Math.abs((hero_mc._x - mainplan._x) - _local2._x);
}
if (mousedown) {
shot();
}
var _local6 = 0;
while (_local6 < planNum) {
var _local3 = this["plan" + _local6];
var _local8 = 1 / (_local6 + 1);
var _local7 = (heroDir * heroSpeed) * _local8;
if ((_local3._x + _local7) < (-_local3.gfx_mc.width)) {
_local3._x = _local3._x + _local3.gfx_mc.width;
}
if ((_local3._x + _local7) > 0) {
_local3._x = _local3._x - _local3.gfx_mc.width;
}
_local3._x = _local3._x + _local7;
_local6++;
}
var _local8 = 0.5;
var _local7 = (heroDir * heroSpeed) * _local8;
mainplan._x = mainplan._x + _local7;
}
for (var _local6 in enemyArr) {
var _local2 = enemyArr[_local6];
var _local4 = Math.round(Math.abs((_local2._x + mainplan._x) - hero_mc._x) / ((_local2._x + mainplan._x) - hero_mc._x));
var _local5 = Math.abs((hero_mc._x - mainplan._x) - _local2._x);
if (_local5 > 500) {
delete enemyArr[_local2.num];
_local2.removeMovieClip();
} else {
if (_local5 < 30) {
clearInterval(reactionPauseInt);
reactionInProgress = true;
reactionPauseInt = setInterval(function () {
reactionInProgress = false;
if (alive) {
if (gun == 0) {
if (!sielanka) {
hero_mc.gotoAndStop("shotgun");
} else {
hero_mc.gotoAndStop("wshotgun");
}
} else if (!sielanka) {
hero_mc.gotoAndStop("automat");
} else {
hero_mc.gotoAndStop("wautomat");
}
}
clearInterval(reactionPauseInt);
}, 1000);
if (alive) {
if (gun == 0) {
if (!sielanka) {
hero_mc.gotoAndStop("wounded_shotgun");
} else {
hero_mc.gotoAndStop("wounded_wshotgun");
}
} else if (!sielanka) {
hero_mc.gotoAndStop("wounded_automat");
} else {
hero_mc.gotoAndStop("wounded_wautomat");
}
if (energy > 0) {
if (!sielankea) {
energy = energy - 2;
} else {
energy = energy - 4;
}
gameinterfejs_mc.energy_mc.mask_mc._x = energy - 100;
} else {
gameOver();
}
}
break;
}
_local2._x = _local2._x + (((-_local2.speed) * _local4) * (_local2.health / 3));
_local2._xscale = _local4 * 100;
}
}
}
function gameOver() {
if (!sielanka) {
if (gun == 0) {
if (!sielanka) {
hero_mc.gotoAndStop("dead_shotgun");
} else {
hero_mc.gotoAndStop("dead_wshotgun");
}
} else if (!sielanka) {
hero_mc.gotoAndStop("dead_automat");
} else {
hero_mc.gotoAndStop("dead_wautomat");
}
alive = false;
Key.removeListener(keyListener);
clearInterval(renderInt);
score_mc._visible = true;
score_mc.alphaTo(100, 0.5, "linear", 2);
ID = undefined;
score_mc.save_btn.onRelease = function () {
if (score >= 500) {
gotoAndStop (96);
} else {
gotoAndStop (97);
}
};
score_mc.back_btn.onRelease = function () {
gotoAndPlay (2);
};
} else {
doHell();
}
}
headLoader = new MovieClipLoader();
headLoaderListener = new Object();
headLoader.addListener(headLoaderListener);
headLoaderListener.onLoadInit = function (target) {
headBmp = new flash.display.BitmapData(40, 40, true, 0);
headBmp.draw(target);
addEnemy(headBmp);
};
headLoaderListener.onLoadError = function () {
addEnemy(null);
};
headXML = new XMLSA();
headXML.onLoad = function () {
init();
};
headXML.load(urlPrefix + "gallery.php?count=&zombie=1");
stop();
Frame 94
if (ID == undefined) {
gallery_mc.blurTo(new flash.filters.BlurFilter(20, 20, 1), 1, "linear");
welcome_mc.tween("_y", 0, 1, "easeoutcirc");
welcome_mc.onRelease = function () {
gallery_mc.blurTo(new flash.filters.BlurFilter(0, 0, 1), 1, "linear");
this.tween("_y", 450, 1, "easeincirc", 0, function () {
play();
});
};
stop();
}
Frame 95
function showDetail(id) {
detid = id;
detailXML.load((urlPrefix + "details.php?id=") + id);
pngURL = ((((((((urlPrefix + "upload/big/") + id.substr(0, 1)) + "/") + id.substr(0, 2)) + "/") + id.substr(0, 3)) + "/") + id) + ".png";
picLoader.loadClip(pngURL, detail_mc.previewImage_mc.container_mc);
detail_mc.tween("_y", 0, 1);
gallery_mc.blurTo(new flash.filters.BlurFilter(20, 20, 1), 1, "linear");
}
function vote(id) {
var _local2 = new LoadVars();
var _local3 = new LoadVars();
_local2.id = id;
_local3.onLoad = function () {
statusTF.text = this;
};
_local2.sendAndLoad(urlPrefix + "vote.php", _local3, "GET");
}
galleryId = "";
sort = "";
galleryXML = new XMLSA();
detailXML = new XMLSA();
detailXML.onLoad = function () {
trace(this);
if (this.attributes.baned == undefined) {
if (this.item.attributes.nick != undefined) {
detail_mc.nick_tf.text = this.item.attributes.nick.toUpperCase();
} else {
detail_mc.nick_tf.text = "CZEKA NA WSKRZESZENIE";
}
if (this.item.attributes.score != undefined) {
detail_mc.score_tf._visible = true;
detail_mc.od_mc._visible = true;
detail_mc.score_tf.text = this.item.attributes.score;
} else {
detail_mc.od_mc._visible = false;
detail_mc.score_tf._visible = false;
}
if (this.item.attributes.voted != undefined) {
detail_mc.vote_tf.text = this.item.attributes.voted;
detail_mc.vote_tf._visible = true;
detail_mc.pt_mc._visible = true;
} else {
detail_mc.pt_mc._visible = false;
detail_mc.vote_tf._visible = false;
}
detail_mc.link_tf.text = "http://www.heyah.pl/tools/gra_zombie/?id=" + detid;
onEnterFrame = function () {
Selection.setFocus("detail_mc.link_tf");
Selection.setSelection(0, detail_mc.link_tf.text.length);
delete onEnterFrame;
};
if (this.item.attributes.canVote == "true") {
detail_mc.vote_btn._visible = true;
detail_mc.wieniec_mc._visible = false;
} else {
detail_mc.vote_btn._visible = false;
detail_mc.wieniec_mc._visible = true;
}
} else {
detail_mc.nick_tf.text = "ZOMBIE ODRZUCONE";
}
};
var offset = 0;
var count = 10;
picLoader = new MovieClipLoader();
picLoaderListener = new Object();
picLoader.addListener(picLoaderListener);
picLoaderListener.onLoadInit = function (target) {
target.blendMode = 14;
};
gallery_mc.jump_tf.restrict = "0-9";
gallery_mc.jump_tf.onSetFocus = function () {
Selection.setSelection(0, this.text.length - 1);
};
Key.addListener(gallery_mc.jump_tf);
gallery_mc.jump_tf.onKeyDown = function () {
if (Key.getCode() == 13) {
if (this.text == 0) {
this.text = 1;
}
page = Number(this.text);
if (page <= maxPage) {
offset = Math.floor((page - 1) * count);
}
gallery_mc.nextFrame();
galleryXML.load(((((urlPrefix + "gallery.php?count=") + count) + "&offset=") + offset) + sort);
}
};
galleryXML.onLoad = function () {
total = Number(this.attributes.count);
page = (offset / count) + 1;
maxPage = Math.ceil(total / count);
if (page == 1) {
gallery_mc.prev_btn._visible = false;
} else {
gallery_mc.prev_btn._visible = true;
}
if (page == maxPage) {
gallery_mc.next_btn._visible = false;
} else {
gallery_mc.next_btn._visible = true;
}
gallery_mc.jump_tf.text = Math.ceil(offset / count) + 1;
gallery_mc.count_tf.text = (("Aleja " + page) + " z ") + maxPage;
var _local2 = 0;
while (_local2 < 10) {
var _local4 = gallery_mc[("previewImage" + _local2) + "_mc"];
picLoader.unloadClip(_local4.container_mc);
_local2++;
}
_local2 = 0;
while (_local2 < this.item.length) {
var _local4 = gallery_mc[("previewImage" + _local2) + "_mc"];
var _local3 = this.item[_local2].attributes.id;
if (this.item[_local2].attributes.nick != undefined) {
tf.text = this.item[_local2].attributes.nick;
}
pngURL = ((((((((urlPrefix + "upload/thumb/") + _local3.substr(0, 1)) + "/") + _local3.substr(0, 2)) + "/") + _local3.substr(0, 3)) + "/") + _local3) + ".png";
_local4.id = _local3;
_local4.onRelease = function () {
showDetail(this.id);
};
picLoader.loadClip(pngURL, _local4.container_mc);
_local2++;
}
};
detail_mc.dummy_btn.onRelease = function () {
};
detail_mc.dummy_btn.useHandCursor = false;
detail_mc.back_btn.onRelease = function () {
detail_mc.tween("_y", 450, 1);
gallery_mc.blurTo(new flash.filters.BlurFilter(0, 0, 1), 1, "linear");
};
detail_mc.vote_btn.onRelease = function () {
detail_mc.vote_btn._visible = false;
detail_mc.wieniec_mc._visible = true;
detail_mc.vote_tf.text = Number(detail_mc.vote_tf.text) + 1;
vote(detid);
};
detail_mc.play_btn.onRelease = function () {
ID = detid;
gotoAndPlay (69);
};
gallery_mc.next_btn.onRelease = function () {
offset = offset + count;
gallery_mc.nextFrame();
galleryXML.load(((((urlPrefix + "gallery.php?count=") + count) + "&offset=") + offset) + sort);
};
gallery_mc.prev_btn.onRelease = function () {
offset = offset - count;
gallery_mc.nextFrame();
galleryXML.load(((((urlPrefix + "gallery.php?count=") + count) + "&offset=") + offset) + sort);
};
detail_mc.email_tf.onChanged = function () {
detail_mc.status_tf.text = "";
if (this.text == "") {
detail_mc.send_btn._visible = false;
} else {
detail_mc.send_btn._visible = true;
}
};
detail_mc.send_btn._visible = false;
detail_mc.send_btn.onRelease = function () {
var _local1 = new LoadVars();
var _local2 = new LoadVars();
_local2.onLoad = function () {
detail_mc.email_tf.text = "";
detail_mc.status_tf.text = "Email wys\u0142ano.";
};
_local1.email = detail_mc.email_tf.text;
_local1.sendAndLoad((urlPrefix + "send.php?id=") + detid, _local2, "POST");
detail_mc.status_tf.text = "Wysy\u0142am...";
detail_mc.send_btn._visible = false;
};
galleryXML.load((urlPrefix + "gallery.php?count=") + count);
back_btn.onRelease = function () {
gotoAndPlay (2);
};
if (ID != undefined) {
showDetail(ID);
ID = undefined;
}
var i = 1;
while (i <= 3) {
var ref = this.gallery_mc["but_" + i];
ref.id = i;
ref.onRelease = (ref.onReleaseOutside = function () {
var _local2 = 1;
while (_local2 <= 3) {
var _local3 = this._parent["but_" + _local2];
if (!_local3._visible) {
_local3._y = this._y;
_local3._visible = 1;
}
_local2++;
}
this._visible = 0;
offset = 0;
count = 10;
if (this.id == 1) {
sort = "";
galleryXML.load((((urlPrefix + "gallery.php?count=") + count) + "&offset=") + offset);
}
if (this.id == 2) {
sort = "&sort=score";
galleryXML.load(((((urlPrefix + "gallery.php?count=") + count) + "&offset=") + offset) + "&sort=score");
}
if (this.id == 3) {
sort = "&sort=voted";
galleryXML.load(((((urlPrefix + "gallery.php?count=") + count) + "&offset=") + offset) + "&sort=voted");
}
});
i++;
}
gallery_mc.but_1._visible = 0;
gallery_mc.but_2._visible = 1;
gallery_mc.but_3._visible = 1;
stop();
Frame 96
myLoadVars = new LoadVars();
myRespVars = new LoadVars();
myRespVars.onData = function (data) {
ID = data;
statusTF.text = statusTF.text + ID;
if (score >= 500) {
gotoAndStop ("up");
} else {
gotoAndStop ("normalsave");
}
};
myInt = setInterval(function () {
clearInterval(myInt);
myLoadVars.sendAndLoad(urlPrefix + "getId.php", myRespVars, "GET");
}, 3000);
stop();
Frame 97
function save() {
if (email_tf.changed && (nick_tf.changed)) {
var _local2 = new LoadVars();
var _local3 = new LoadVars();
_local3.onLoad = function () {
statusTF.text = statusTF.text + (newline + unescape(this));
trace(this);
delete ID;
if (!this.error) {
gotoAndStop ("saveendnormal");
} else {
gotoAndStop ("normalsave");
error_tf.text = unescape(this.error);
}
};
_local2.nick = nick_tf.text;
_local2.email = email_tf.text;
_local2.score = score.toString();
var _local4 = new MD5();
_local2.hash = _local4.calculate(((_local2.score + _local2.email) + _local2.nick) + ID);
_local2.sendAndLoad((urlPrefix + "createImage.php?id=") + ID, _local3, "POST");
trace(_local2);
gotoAndStop ("savenormal");
} else {
trace("wype\u0142nij pola");
if (!email_tf.changed) {
email_tf.textColor = 16777215 /* 0xFFFFFF */;
} else {
email_tf.textColor = 3355443 /* 0x333333 */;
}
if (!nick_tf.changed) {
nick_tf.textColor = 16777215 /* 0xFFFFFF */;
} else {
nick_tf.textColor = 3355443 /* 0x333333 */;
}
}
}
nick_tf.restrict = "A-Z a-z";
email_tf.restrict = "0-9A-Za-z.@_~\\";
email_tf.onSetFocus = (nick_tf.onSetFocus = function () {
if (!this.changed) {
this._text = this.text;
this.text = "";
}
});
email_tf.onChanged = (nick_tf.onChanged = function () {
this.changed = true;
});
email_tf.onKillFocus = (nick_tf.onKillFocus = function () {
if (!this.changed) {
this.text = this._text;
}
});
save_btn.onRelease = function () {
save();
};
back_btn.onRelease = function () {
ID = undefined;
gotoAndPlay (2);
};
Frame 98
mask_mc.cacheAsBitmap = true;
image_mc.cacheAsBitmap = true;
image_mc.setMask(mask_mc);
imageLoader = new MovieClipLoader();
imageLoaderListener = new Object();
imageLoader.addListener(imageLoaderListener);
imageLoaderListener.onLoadProgress = function (traget, bl, bt) {
statusTF.text = ("POBIERAM OBRAZEK " + Math.round((bl / bt) * 100)) + "%";
};
imageLoaderListener.onLoadInit = function (target) {
trace("obrazek zaci\u0105gni\u0119ty");
gotoAndStop ("mask");
};
var allTypes = new Array();
var imageTypes = new Object();
imageTypes.description = "Images (*.jpg, *.jpeg)";
imageTypes.extension = "*.jpg; *.jpeg";
allTypes.push(imageTypes);
var listenerFR = new Object();
listenerFR.onSelect = function (selectedFile) {
if (selectedFile.size < 300000) {
statusTF.text = selectedFile.name.toUpperCase();
myFile = selectedFile;
uploadLargeImageURL = (urlPrefix + "upload.php?id=") + ID;
myFile.upload(uploadLargeImageURL);
gotoAndStop ("uploadingfoto");
} else {
statusTF.text = "PLIK ZA DU\u017BY! MAKS. 300KB.";
}
};
listenerFR.onOpen = function (selectedFile) {
statusTF.text = "WYSY\u0141AM " + selectedFile.name.toUpperCase();
};
listenerFR.onHTTPError = function (file, httpError) {
statusTF.text = "B\u0141AD " + httpError;
};
listenerFR.onIOError = function (file) {
statusTF.text = "B\u0141AD I/O";
};
listenerFR.onSecurityError = function (file, errorString) {
statusTF.text = "B\u0141AD BEZPIECZE\u0143STWA" + errorString.toUpperCase();
};
listenerFR.onComplete = function (selectedFile) {
statusTF.text = "OBRAZEK ZA\u0141ADOWANO";
imagePath = ((((((((urlPrefix + "upload/tmp/") + ID.substr(0, 1)) + "/") + ID.substr(0, 2)) + "/") + ID.substr(0, 3)) + "/") + ID) + ".jpg";
var _local1 = image_mc.uploadedImage_mc.container_mc.createEmptyMovieClip("cont", 0);
imageLoader.loadClip(imagePath, _local1);
};
listenerFR.onProgress = function (file, bytesLoaded, bytesTotal) {
statusTF.text = ("WYSY\u0141AM " + Math.round((bytesLoaded / bytesTotal) * 100)) + "%";
};
var imageFile = (new flash.net.FileReference());
imageFile.addListener(listenerFR);
up_btn.onRelease = function () {
imageFile.browse(allTypes);
};
stop();
back_btn.onRelease = function () {
ID = undefined;
gotoAndPlay (2);
};
Frame 100
function setBrushSize(size) {
brush_mc._width = size;
brush_mc._height = size;
brushSize = size;
}
function startDraw() {
save_btn._alpha = 100;
save_btn.enabled = true;
image_mc.uploadedImage_mc.mask_mc.lineStyle(brushSize, 16777215, 100);
image_mc.uploadedImage_mc.mask_mc.moveTo(_xmouse - image_mc._x, _ymouse - image_mc._y);
if (mode == "mask") {
brush_mc.onMouseMove = drawMask;
} else {
oldx = _xmouse;
oldy = _ymouse;
brush_mc.onMouseMove = deform;
}
}
function stopDraw() {
isDrawing = false;
brush_mc.onMouseMove = handleBrush;
}
function drawMask() {
this._x = _xmouse;
this._y = _ymouse;
image_mc.uploadedImage_mc.mask_mc.lineTo(this._x - image_mc._x, this._y - image_mc._y);
}
function deform() {
posX = _xmouse;
posY = _ymouse;
this._x = posX;
this._y = posY;
olddx = dx;
olddy = dy;
dx = posX - oldx;
dy = posY - oldy;
if (((olddx + dx) != 0) && ((olddy + dy) != 0)) {
var _local8 = ((Math.atan2(olddy + dy, olddx + dx) / Math.PI) * 180) + 90;
}
oldx = posX;
oldy = posY;
var _local7 = 128 + Math.min(96, Math.max(-128, (-dx) * 2));
var _local4 = 128 + Math.min(96, Math.max(-128, (-dy) * 2));
var _local5 = new flash.geom.ColorTransform(0, 0, 0, 1, 128, _local7, _local4, 0);
var _local3 = new flash.geom.Matrix(this._xscale / 100, 0, 0, this._yscale / 100, (this._x - image_mc._x) * (image_mc.uploadedImage_mc.container_mc._width / uwidth), (this._y - image_mc._y) * (image_mc.uploadedImage_mc.container_mc._height / uheight));
map_bitmap.draw(this, _local3, _local5, "hardlight");
trace(image_mc.uploadedImage_mc.container_mc._x);
var _local6 = new flash.filters.DisplacementMapFilter(map_bitmap, new Point(image_mc.uploadedImage_mc.container_mc._x, image_mc.uploadedImage_mc.container_mc._y), 2, 4, 40, 40, "clamp");
var _local2 = new Array();
_local2.push(_local6);
image_mc.uploadedImage_mc.container_mc.filters = _local2;
}
function handleBrush() {
this._x = _xmouse;
this._y = _ymouse;
}
function createPreview() {
var _local2 = image_mc.uploadedImage_mc.mask_mc.getBounds();
var _local3 = _local2.xMax - _local2.xMin;
trace(_local3);
var _local8 = _local2.yMax - _local2.yMin;
var _local1 = Math.min(pwidth / _local3, pheight / _local8);
var _local6 = (pwidth - (_local1 * _local3)) / 2;
var _local5 = (pheight - (_local1 * _local8)) / 2;
var _local9 = new flash.geom.Matrix(_local1, 0, 0, _local1, ((-_local2.xMin) * _local1) + _local6, ((-_local2.yMin) * _local1) + _local5);
var _local10 = new flash.geom.Matrix(_local1 / 4, 0, 0, _local1 / 4, (((-_local2.xMin) * _local1) / 4) + (_local6 / 4), (((-_local2.yMin) * _local1) / 4) + (_local5 / 4));
var _local4 = new flash.display.BitmapData(uwidth, uheight, true, 0);
_local4.draw(image_mc.uploadedImage_mc);
previewBmp = new flash.display.BitmapData(pwidth, pheight, true, 0);
var _local7 = new flash.display.BitmapData(pwidth / 4, pheight / 4, true, 0);
preview_mc.previewImage_mc.attachBitmap(previewBmp, 0);
zombiePrev_mc.zombie_mc.head_mc.image_mc.attachBitmap(_local7, 0);
previewBmp.draw(_local4, _local9, null, null, null, true);
_local7.draw(_local4, _local10, null, null, null, true);
}
function processBmp() {
statusTF.text = statusTF.text + "\nStarting pixel scan\n";
row = 0;
col = 0;
bitmapString = new String();
myInt = setInterval(stepBmp, 1);
gotoAndStop ("process");
}
function stepBmp() {
if (col < pwidth) {
process_tf.text = ("Kopi\u0119 gr\u00F3b " + Math.round((col / pwidth) * 100)) + "%";
trace(("Zakopuj\u0119 " + Math.round((col / pwidth) * 100)) + "%");
var _local6 = 0;
while (_local6 < pheight) {
var _local3 = previewBmp.getPixel32(col, _local6);
var _local5 = (((_local3 >> 24) & 255) / 2).toString(16);
var _local1 = ((_local3 >> 16) & 255).toString(16);
var _local4 = ((_local3 >> 8) & 255).toString(16);
var _local2 = (_local3 & 255).toString(16);
if (_local5.length == 1) {
_local5 = "0" + _local5;
}
if (_local1.length == 1) {
_local1 = "0" + _local1;
}
if (_local4.length == 1) {
_local4 = "0" + _local4;
}
if (_local2.length == 1) {
_local2 = "0" + _local2;
}
bitmapString = bitmapString + (((_local1 + _local4) + _local2) + _local5);
_local6++;
}
progress_mc._width = col;
col++;
} else {
clearInterval(myInt);
statusTF.text = statusTF.text + "pixel scan end\n";
saveBmp.dispose();
gotoAndStop ("bmpsave");
}
}
var brushSizes = [10, 20, 30, 40];
save_btn._alpha = 30;
save_btn.enabled = false;
mode = "mask";
var i = 0;
while (i < brushSizes.length) {
var btn = this["b" + i];
btn.size = brushSizes[i];
btn.onPress = function () {
setBrushSize(this.size);
};
i++;
}
setBrushSize(10);
var isDrawing = false;
var uwidth = 272;
var uheight = 232;
var pwidth = 160;
var pheight = 160;
var scale = Math.min(uwidth / image_mc.uploadedImage_mc.container_mc._width, uheight / image_mc.uploadedImage_mc.container_mc._height);
var uploadedImageBmp = (new flash.display.BitmapData(image_mc.uploadedImage_mc.container_mc._width, image_mc.uploadedImage_mc.container_mc._height, true, 0));
uploadedImageBmp.draw(image_mc.uploadedImage_mc.container_mc);
image_mc.uploadedImage_mc.swapDepths(2);
image_mc.uploadedImage_mc.container_mc._width = image_mc.uploadedImage_mc.container_mc._width * scale;
image_mc.uploadedImage_mc.container_mc._height = image_mc.uploadedImage_mc.container_mc._height * scale;
image_mc.uploadedImage_mc.container_mc._x = (uwidth - image_mc.uploadedImage_mc.container_mc._width) / 2;
image_mc.uploadedImage_mc.container_mc._y = (uheight - image_mc.uploadedImage_mc.container_mc._height) / 2;
image_mc.createEmptyMovieClip("oryginalImage_mc", 1);
image_mc.oryginalImage_mc.attachBitmap(uploadedImageBmp, 0);
image_mc.oryginalImage_mc._width = image_mc.uploadedImage_mc.container_mc._width;
image_mc.oryginalImage_mc._height = image_mc.uploadedImage_mc.container_mc._height;
image_mc.oryginalImage_mc._x = image_mc.uploadedImage_mc.container_mc._x;
image_mc.oryginalImage_mc._y = image_mc.uploadedImage_mc.container_mc._y;
image_mc.uploadedImage_mc.container_mc.cacheAsBitmap = true;
image_mc.uploadedImage_mc.createEmptyMovieClip("mask_mc", 1);
image_mc.uploadedImage_mc.mask_mc.filters = new Array(new flash.filters.BlurFilter(4, 4, 1));
image_mc.uploadedImage_mc.mask_mc.cacheAsBitmap = true;
image_mc.uploadedImage_mc.container_mc.setMask(image_mc.uploadedImage_mc.mask_mc);
map_bitmap = new flash.display.BitmapData(uwidth, uheight, false, 8421504);
image_mc.uploadedImage_mc.cacheAsBitmap = true;
var trans = (new flash.geom.Transform(image_mc.uploadedImage_mc));
var blueColorTransform = (new flash.geom.ColorTransform(0, 1, 1, 1, 255, -100, -100, 0));
trans.colorTransform = blueColorTransform;
saturation(zombiePrev_mc, 0);
active_btn.onRollOver = function () {
Mouse.hide();
brush_mc.onMouseMove = handleBrush;
brush_mc._visible = true;
};
active_btn.onRollOut = function () {
Mouse.show();
delete brush_mc.onMouseMove;
brush_mc._visible = false;
};
active_btn.onPress = function () {
startDraw();
};
active_btn.onReleaseOutside = function () {
Mouse.show();
delete brush_mc.onMouseMove;
brush_mc._visible = false;
stopDraw();
createPreview();
};
active_btn.onRelease = function () {
stopDraw();
createPreview();
};
back_btn.onRelease = function () {
gotoAndStop ("id");
};
clear_btn.onRelease = function () {
if (mode == "mask") {
image_mc.uploadedImage_mc.mask_mc.clear();
} else {
map_bitmap.fillRect(map_bitmap.rectangle, 8421504);
}
createPreview();
};
save_btn.onRelease = function () {
var _local1 = new flash.geom.ColorTransform(1, 1, 1, 1, 0, 0, 0, 0);
trans.colorTransform = _local1;
brush_mc.gotoAndStop(2);
mode = "deform";
gotoAndStop ("deform");
};
stop();
Frame 101
save_btn.onRelease = function () {
processBmp();
};
Frame 103
function save() {
if (email_tf.changed && (nick_tf.changed)) {
var _local2 = new LoadVars();
var _local3 = new LoadVars();
_local3.onLoad = function () {
statusTF.text = statusTF.text + (newline + unescape(this));
trace(this);
if (!this.error) {
gotoAndStop ("saveend");
} else {
gotoAndStop ("bmpsave");
error_tf.text = unescape(this.error);
}
};
_local2.nick = nick_tf.text;
_local2.email = email_tf.text;
_local2.score = score.toString();
_local2.bitmapString = bitmapString;
var _local4 = new MD5();
_local2.hash = _local4.calculate(((_local2.score + _local2.email) + _local2.nick) + ID);
_local2.sendAndLoad((urlPrefix + "createImage.php?id=") + ID, _local3, "POST");
gotoAndStop ("save");
} else {
trace("wype\u0142nij pola");
if (!email_tf.changed) {
email_tf.textColor = 11599872 /* 0xB10000 */;
} else {
email_tf.textColor = 16777215 /* 0xFFFFFF */;
}
if (!nick_tf.changed) {
nick_tf.textColor = 11599872 /* 0xB10000 */;
} else {
nick_tf.textColor = 16777215 /* 0xFFFFFF */;
}
}
}
nick_tf.restrict = "A-Z a-z";
email_tf.restrict = "0-9A-Za-z.@_~\\";
email_tf.onSetFocus = (nick_tf.onSetFocus = function () {
if (!this.changed) {
this._text = this.text;
this.text = "";
}
});
email_tf.onChanged = (nick_tf.onChanged = function () {
this.changed = true;
});
email_tf.onKillFocus = (nick_tf.onKillFocus = function () {
if (!this.changed) {
this.text = this._text;
}
});
save_btn.onRelease = function () {
save();
};
back_btn.onRelease = function () {
gotoAndPlay ("mask");
};
Frame 105
back_btn.onRelease = function () {
gotoAndPlay (2);
};
Frame 129
stop();
Frame 130
stop();
Symbol 10 Button
on (release) {
getURL ("http://www.engine.pl", "_blank");
}
Symbol 49 MovieClip Frame 35
this.removeMovieClip();
Symbol 50 MovieClip Frame 1
var n = 0;
candleWorks = function () {
xPos = 0;
yPos = 0;
n++;
fireBall.duplicateMovieClip("fireBall" + n, n);
eval ("fireBall" + n)._x = xPos;
eval ("fireBall" + n)._y = yPos;
eval ("fireBall" + n)._rotation = eval ("fireBall" + n)._rotation + (random(4) - 2);
};
onEnterFrame = function () {
candleWorks();
};
Symbol 65 MovieClip Frame 7
stop();
Symbol 66 MovieClip Frame 41
this._parent.removeMovieClip();
stop();
Symbol 67 MovieClip [bat0] Frame 1
stop();
Symbol 67 MovieClip [bat0] Frame 2
stop();
Symbol 73 MovieClip Frame 41
this._parent.removeMovieClip();
stop();
Symbol 74 MovieClip [bat1] Frame 1
stop();
Symbol 74 MovieClip [bat1] Frame 2
stop();
Symbol 86 MovieClip [flaczki] Frame 9
this.removeMovieClip();
Symbol 88 MovieClip [luska] Frame 71
this.removeMovieClip();
stop();
Symbol 100 MovieClip Frame 1
gotoAndStop(Math.ceil(Math.random() * 3));
Symbol 102 MovieClip Frame 1
gotoAndPlay(Math.ceil(Math.random() * 10) + 1);
Symbol 105 MovieClip Frame 20
this._parent.removeMovieClip();
stop();
Symbol 106 MovieClip [sbat] Frame 1
stop();
Symbol 106 MovieClip [sbat] Frame 2
stop();
Symbol 116 MovieClip [sflaczki] Frame 9
this.removeMovieClip();
Symbol 135 MovieClip Frame 45
_parent.removeMovieClip();
Symbol 136 MovieClip [szombie0] Frame 1
stop();
Symbol 136 MovieClip [szombie0] Frame 7
stop();
Symbol 153 MovieClip Frame 38
_parent.removeMovieClip();
Symbol 154 MovieClip [szombie1] Frame 1
stop();
Symbol 154 MovieClip [szombie1] Frame 7
stop();
Symbol 168 MovieClip Frame 45
_parent.removeMovieClip();
Symbol 169 MovieClip [szombie2] Frame 1
stop();
Symbol 169 MovieClip [szombie2] Frame 7
stop();
Symbol 186 MovieClip Frame 53
_parent.removeMovieClip();
Symbol 187 MovieClip [szombie3] Frame 1
stop();
Symbol 187 MovieClip [szombie3] Frame 7
stop();
Symbol 224 MovieClip Frame 31
this._parent.removeMovieClip();
Symbol 225 MovieClip [zombie0] Frame 1
stop();
Symbol 225 MovieClip [zombie0] Frame 2
stop();
Symbol 225 MovieClip [zombie0] Frame 3
stop();
Symbol 225 MovieClip [zombie0] Frame 4
stop();
Symbol 225 MovieClip [zombie0] Frame 5
stop();
Symbol 225 MovieClip [zombie0] Frame 6
stop();
Symbol 225 MovieClip [zombie0] Frame 7
stop();
Symbol 239 MovieClip Frame 23
stop();
Symbol 247 MovieClip Frame 31
this._parent.removeMovieClip();
Symbol 248 MovieClip [zombie1] Frame 1
stop();
Symbol 248 MovieClip [zombie1] Frame 2
stop();
Symbol 248 MovieClip [zombie1] Frame 3
stop();
Symbol 248 MovieClip [zombie1] Frame 4
stop();
Symbol 248 MovieClip [zombie1] Frame 5
stop();
Symbol 248 MovieClip [zombie1] Frame 6
stop();
Symbol 248 MovieClip [zombie1] Frame 7
stop();
Symbol 262 MovieClip Frame 14
stop();
Symbol 266 MovieClip Frame 9
stop();
Symbol 270 MovieClip Frame 31
this._parent.removeMovieClip();
Symbol 271 MovieClip [zombie2] Frame 1
stop();
Symbol 271 MovieClip [zombie2] Frame 2
stop();
Symbol 271 MovieClip [zombie2] Frame 3
stop();
Symbol 271 MovieClip [zombie2] Frame 4
stop();
Symbol 271 MovieClip [zombie2] Frame 5
stop();
Symbol 271 MovieClip [zombie2] Frame 6
stop();
Symbol 271 MovieClip [zombie2] Frame 7
stop();
Symbol 299 MovieClip Frame 12
stop();
Symbol 300 MovieClip Frame 11
stop();
Symbol 303 MovieClip Frame 19
stop();
Symbol 316 MovieClip Frame 31
this._parent.removeMovieClip();
Symbol 317 MovieClip [zombie3] Frame 1
stop();
Symbol 317 MovieClip [zombie3] Frame 2
stop();
Symbol 317 MovieClip [zombie3] Frame 3
stop();
Symbol 317 MovieClip [zombie3] Frame 4
stop();
Symbol 317 MovieClip [zombie3] Frame 5
stop();
Symbol 317 MovieClip [zombie3] Frame 6
stop();
Symbol 317 MovieClip [zombie3] Frame 7
stop();
Symbol 338 MovieClip Frame 1
stop();
Symbol 353 MovieClip Frame 1
stop();
Symbol 360 MovieClip Frame 1
stop();
Symbol 429 MovieClip Frame 1
stop();
Symbol 451 MovieClip Frame 1
stop();
Symbol 455 MovieClip Frame 1
stop();
Symbol 455 MovieClip Frame 14
gotoAndStop (1);
Symbol 459 MovieClip Frame 1
stop();
Symbol 459 MovieClip Frame 14
gotoAndStop (1);
Symbol 464 MovieClip Frame 1
stop();
Symbol 474 MovieClip Frame 1
stop();
Symbol 474 MovieClip Frame 14
gotoAndStop (1);
Symbol 483 MovieClip Frame 16
_parent.prevFrame();
Symbol 490 MovieClip Frame 6
stop();
Symbol 494 MovieClip Frame 1
stop();
Symbol 494 MovieClip Frame 4
Symbol 498 MovieClip Frame 1
stop();
Symbol 498 MovieClip Frame 3
Symbol 502 MovieClip Frame 1
stop();
Symbol 502 MovieClip Frame 4
Symbol 507 MovieClip Frame 16
_parent.prevFrame();
Symbol 513 MovieClip Frame 1
stop();
Symbol 513 MovieClip Frame 14
gotoAndStop (1);
Symbol 516 MovieClip Frame 1
stop();
Symbol 516 MovieClip Frame 14
gotoAndStop (1);
Symbol 520 MovieClip Frame 1
stop();
Symbol 520 MovieClip Frame 14
gotoAndStop (1);
Symbol 536 MovieClip Frame 1
stop();
Symbol 536 MovieClip Frame 8
gotoAndStop (1);
Symbol 537 MovieClip Frame 1
Symbol 537 MovieClip Frame 5
gotoAndPlay ("reload");
Symbol 549 MovieClip Frame 6
stop();
Symbol 553 MovieClip Frame 1
stop();
Symbol 557 MovieClip Frame 1
stop();
Symbol 565 MovieClip Frame 1
stop();
Symbol 575 MovieClip Frame 37
stop();
Symbol 578 MovieClip Frame 37
stop();
Symbol 579 MovieClip Frame 1
Symbol 579 MovieClip Frame 2
stop();
Symbol 579 MovieClip Frame 3
Symbol 579 MovieClip Frame 4
stop();
Symbol 579 MovieClip Frame 5
stop();
Symbol 579 MovieClip Frame 6
stop();
Symbol 579 MovieClip Frame 7
stop();
Symbol 579 MovieClip Frame 8
stop();
Symbol 579 MovieClip Frame 9
Symbol 579 MovieClip Frame 10
stop();
Symbol 579 MovieClip Frame 11
stop();
Symbol 579 MovieClip Frame 12
Symbol 579 MovieClip Frame 13
Symbol 579 MovieClip Frame 14
stop();
Symbol 587 MovieClip Frame 1
stop();
Symbol 587 MovieClip Frame 11
stop();
Symbol 602 MovieClip Frame 1
stop();
Symbol 605 MovieClip Frame 1
stop();
Symbol 606 MovieClip Frame 1
stop();
Symbol 629 MovieClip Frame 1
stop();
Symbol 631 MovieClip Frame 1
stop();
Symbol 653 Button
on (release) {
getURL ("http://www.heyah.pl/sielanka", "_blank");
}
Symbol 654 MovieClip Frame 1
stop();
Symbol 693 MovieClip Frame 1
stop();
Symbol 772 MovieClip Frame 1
stop();
Symbol 776 MovieClip Frame 1
stop();
Symbol 800 Button
on (release) {
gotoAndPlay (2);
}
Symbol 801 Button
on (release) {
nextFrame();
}
Symbol 805 Button
on (release) {
prevFrame();
}