Section 1
//AuxFunctions (caurina.transitions.AuxFunctions)
package caurina.transitions {
public class AuxFunctions {
public static function concatObjects(... _args):Object{
var _local2:Object;
var _local3:Object;
var _local4:int;
var _local5:String;
_local2 = {};
_local4 = 0;
while (_local4 < _args.length) {
_local3 = _args[_local4];
for (_local5 in _local3) {
if (_local3[_local5] == null){
delete _local2[_local5];
} else {
_local2[_local5] = _local3[_local5];
};
};
_local4++;
};
return (_local2);
}
public static function numberToG(_arg1:Number):Number{
return (((_arg1 & 0xFF00) >> 8));
}
public static function numberToR(_arg1:Number):Number{
return (((_arg1 & 0xFF0000) >> 16));
}
public static function isInArray(_arg1:String, _arg2:Array):Boolean{
var _local3:uint;
var _local4:uint;
_local3 = _arg2.length;
_local4 = 0;
while (_local4 < _local3) {
if (_arg2[_local4] == _arg1){
return (true);
};
_local4++;
};
return (false);
}
public static function getObjectLength(_arg1:Object):uint{
var _local2:uint;
var _local3:String;
_local2 = 0;
for (_local3 in _arg1) {
_local2++;
};
return (_local2);
}
public static function numberToB(_arg1:Number):Number{
return ((_arg1 & 0xFF));
}
}
}//package caurina.transitions
Section 2
//Equations (caurina.transitions.Equations)
package caurina.transitions {
public class Equations {
public function Equations(){
trace("Equations is a static class and should not be instantiated.");
}
public static function easeOutBounce(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / _arg4);
if (_arg1 < (1 / 2.75)){
return (((_arg3 * ((7.5625 * _arg1) * _arg1)) + _arg2));
};
if (_arg1 < (2 / 2.75)){
_arg1 = (_arg1 - (1.5 / 2.75));
return (((_arg3 * (((7.5625 * _arg1) * _arg1) + 0.75)) + _arg2));
};
if (_arg1 < (2.5 / 2.75)){
_arg1 = (_arg1 - (2.25 / 2.75));
return (((_arg3 * (((7.5625 * _arg1) * _arg1) + 0.9375)) + _arg2));
};
_arg1 = (_arg1 - (2.625 / 2.75));
return (((_arg3 * (((7.5625 * _arg1) * _arg1) + 0.984375)) + _arg2));
}
public static function easeInOutElastic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
var _local6:Number;
var _local7:Number;
var _local8:Number;
if (_arg1 == 0){
return (_arg2);
};
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 == 2){
return ((_arg2 + _arg3));
};
_local6 = (((!(Boolean(_arg5))) || (isNaN(_arg5.period)))) ? (_arg4 * (0.3 * 1.5)) : _arg5.period;
_local8 = (((!(Boolean(_arg5))) || (isNaN(_arg5.amplitude)))) ? 0 : _arg5.amplitude;
if (((!(Boolean(_local8))) || ((_local8 < Math.abs(_arg3))))){
_local8 = _arg3;
_local7 = (_local6 / 4);
} else {
_local7 = ((_local6 / (2 * Math.PI)) * Math.asin((_arg3 / _local8)));
};
if (_arg1 < 1){
--_arg1;
return (((-0.5 * ((_local8 * Math.pow(2, (10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local7) * (2 * Math.PI)) / _local6)))) + _arg2));
};
--_arg1;
return ((((((_local8 * Math.pow(2, (-10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local7) * (2 * Math.PI)) / _local6))) * 0.5) + _arg3) + _arg2));
}
public static function easeInOutQuad(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
return (((((_arg3 / 2) * _arg1) * _arg1) + _arg2));
};
--_arg1;
return ((((-(_arg3) / 2) * ((_arg1 * (_arg1 - 2)) - 1)) + _arg2));
}
public static function easeInOutBounce(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 < (_arg4 / 2)){
return (((easeInBounce((_arg1 * 2), 0, _arg3, _arg4) * 0.5) + _arg2));
};
return ((((easeOutBounce(((_arg1 * 2) - _arg4), 0, _arg3, _arg4) * 0.5) + (_arg3 * 0.5)) + _arg2));
}
public static function easeInOutBack(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
var _local6:Number;
_local6 = (((!(Boolean(_arg5))) || (isNaN(_arg5.overshoot)))) ? 1.70158 : _arg5.overshoot;
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
_local6 = (_local6 * 1.525);
return ((((_arg3 / 2) * ((_arg1 * _arg1) * (((_local6 + 1) * _arg1) - _local6))) + _arg2));
};
_arg1 = (_arg1 - 2);
_local6 = (_local6 * 1.525);
return ((((_arg3 / 2) * (((_arg1 * _arg1) * (((_local6 + 1) * _arg1) + _local6)) + 2)) + _arg2));
}
public static function easeOutInCubic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutCubic((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5));
};
return (easeInCubic(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5));
}
public static function easeNone(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
return ((((_arg3 * _arg1) / _arg4) + _arg2));
}
public static function easeOutBack(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
var _local6:Number;
_local6 = (((!(Boolean(_arg5))) || (isNaN(_arg5.overshoot)))) ? 1.70158 : _arg5.overshoot;
_arg1 = ((_arg1 / _arg4) - 1);
return (((_arg3 * (((_arg1 * _arg1) * (((_local6 + 1) * _arg1) + _local6)) + 1)) + _arg2));
}
public static function easeInOutSine(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
return ((((-(_arg3) / 2) * (Math.cos(((Math.PI * _arg1) / _arg4)) - 1)) + _arg2));
}
public static function easeInBack(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
var _local6:Number;
_local6 = (((!(Boolean(_arg5))) || (isNaN(_arg5.overshoot)))) ? 1.70158 : _arg5.overshoot;
_arg1 = (_arg1 / _arg4);
return (((((_arg3 * _arg1) * _arg1) * (((_local6 + 1) * _arg1) - _local6)) + _arg2));
}
public static function easeInQuart(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / _arg4);
return ((((((_arg3 * _arg1) * _arg1) * _arg1) * _arg1) + _arg2));
}
public static function easeOutInQuint(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutQuint((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5));
};
return (easeInQuint(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5));
}
public static function easeOutInBounce(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutBounce((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5));
};
return (easeInBounce(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5));
}
public static function init():void{
Tweener.registerTransition("easenone", easeNone);
Tweener.registerTransition("linear", easeNone);
Tweener.registerTransition("easeinquad", easeInQuad);
Tweener.registerTransition("easeoutquad", easeOutQuad);
Tweener.registerTransition("easeinoutquad", easeInOutQuad);
Tweener.registerTransition("easeoutinquad", easeOutInQuad);
Tweener.registerTransition("easeincubic", easeInCubic);
Tweener.registerTransition("easeoutcubic", easeOutCubic);
Tweener.registerTransition("easeinoutcubic", easeInOutCubic);
Tweener.registerTransition("easeoutincubic", easeOutInCubic);
Tweener.registerTransition("easeinquart", easeInQuart);
Tweener.registerTransition("easeoutquart", easeOutQuart);
Tweener.registerTransition("easeinoutquart", easeInOutQuart);
Tweener.registerTransition("easeoutinquart", easeOutInQuart);
Tweener.registerTransition("easeinquint", easeInQuint);
Tweener.registerTransition("easeoutquint", easeOutQuint);
Tweener.registerTransition("easeinoutquint", easeInOutQuint);
Tweener.registerTransition("easeoutinquint", easeOutInQuint);
Tweener.registerTransition("easeinsine", easeInSine);
Tweener.registerTransition("easeoutsine", easeOutSine);
Tweener.registerTransition("easeinoutsine", easeInOutSine);
Tweener.registerTransition("easeoutinsine", easeOutInSine);
Tweener.registerTransition("easeincirc", easeInCirc);
Tweener.registerTransition("easeoutcirc", easeOutCirc);
Tweener.registerTransition("easeinoutcirc", easeInOutCirc);
Tweener.registerTransition("easeoutincirc", easeOutInCirc);
Tweener.registerTransition("easeinexpo", easeInExpo);
Tweener.registerTransition("easeoutexpo", easeOutExpo);
Tweener.registerTransition("easeinoutexpo", easeInOutExpo);
Tweener.registerTransition("easeoutinexpo", easeOutInExpo);
Tweener.registerTransition("easeinelastic", easeInElastic);
Tweener.registerTransition("easeoutelastic", easeOutElastic);
Tweener.registerTransition("easeinoutelastic", easeInOutElastic);
Tweener.registerTransition("easeoutinelastic", easeOutInElastic);
Tweener.registerTransition("easeinback", easeInBack);
Tweener.registerTransition("easeoutback", easeOutBack);
Tweener.registerTransition("easeinoutback", easeInOutBack);
Tweener.registerTransition("easeoutinback", easeOutInBack);
Tweener.registerTransition("easeinbounce", easeInBounce);
Tweener.registerTransition("easeoutbounce", easeOutBounce);
Tweener.registerTransition("easeinoutbounce", easeInOutBounce);
Tweener.registerTransition("easeoutinbounce", easeOutInBounce);
}
public static function easeOutExpo(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
return (((_arg1)==_arg4) ? (_arg2 + _arg3) : (((_arg3 * 1.001) * (-(Math.pow(2, ((-10 * _arg1) / _arg4))) + 1)) + _arg2));
}
public static function easeOutInBack(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutBack((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5));
};
return (easeInBack(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5));
}
public static function easeInExpo(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
return (((_arg1)==0) ? _arg2 : (((_arg3 * Math.pow(2, (10 * ((_arg1 / _arg4) - 1)))) + _arg2) - (_arg3 * 0.001)));
}
public static function easeInCubic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / _arg4);
return (((((_arg3 * _arg1) * _arg1) * _arg1) + _arg2));
}
public static function easeInQuint(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / _arg4);
return (((((((_arg3 * _arg1) * _arg1) * _arg1) * _arg1) * _arg1) + _arg2));
}
public static function easeInOutCirc(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
return ((((-(_arg3) / 2) * (Math.sqrt((1 - (_arg1 * _arg1))) - 1)) + _arg2));
};
_arg1 = (_arg1 - 2);
return ((((_arg3 / 2) * (Math.sqrt((1 - (_arg1 * _arg1))) + 1)) + _arg2));
}
public static function easeInQuad(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / _arg4);
return ((((_arg3 * _arg1) * _arg1) + _arg2));
}
public static function easeInBounce(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
return (((_arg3 - easeOutBounce((_arg4 - _arg1), 0, _arg3, _arg4)) + _arg2));
}
public static function easeOutInExpo(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutExpo((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5));
};
return (easeInExpo(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5));
}
public static function easeOutQuart(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = ((_arg1 / _arg4) - 1);
return (((-(_arg3) * ((((_arg1 * _arg1) * _arg1) * _arg1) - 1)) + _arg2));
}
public static function easeInSine(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
return ((((-(_arg3) * Math.cos(((_arg1 / _arg4) * (Math.PI / 2)))) + _arg3) + _arg2));
}
public static function easeInOutQuart(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
return (((((((_arg3 / 2) * _arg1) * _arg1) * _arg1) * _arg1) + _arg2));
};
_arg1 = (_arg1 - 2);
return ((((-(_arg3) / 2) * ((((_arg1 * _arg1) * _arg1) * _arg1) - 2)) + _arg2));
}
public static function easeOutQuad(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / _arg4);
return ((((-(_arg3) * _arg1) * (_arg1 - 2)) + _arg2));
}
public static function easeOutInElastic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutElastic((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5));
};
return (easeInElastic(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5));
}
public static function easeInElastic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
var _local6:Number;
var _local7:Number;
var _local8:Number;
if (_arg1 == 0){
return (_arg2);
};
_arg1 = (_arg1 / _arg4);
if (_arg1 == 1){
return ((_arg2 + _arg3));
};
_local6 = (((!(Boolean(_arg5))) || (isNaN(_arg5.period)))) ? (_arg4 * 0.3) : _arg5.period;
_local8 = (((!(Boolean(_arg5))) || (isNaN(_arg5.amplitude)))) ? 0 : _arg5.amplitude;
if (((!(Boolean(_local8))) || ((_local8 < Math.abs(_arg3))))){
_local8 = _arg3;
_local7 = (_local6 / 4);
} else {
_local7 = ((_local6 / (2 * Math.PI)) * Math.asin((_arg3 / _local8)));
};
--_arg1;
return ((-(((_local8 * Math.pow(2, (10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local7) * (2 * Math.PI)) / _local6)))) + _arg2));
}
public static function easeOutCubic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = ((_arg1 / _arg4) - 1);
return (((_arg3 * (((_arg1 * _arg1) * _arg1) + 1)) + _arg2));
}
public static function easeOutQuint(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = ((_arg1 / _arg4) - 1);
return (((_arg3 * (((((_arg1 * _arg1) * _arg1) * _arg1) * _arg1) + 1)) + _arg2));
}
public static function easeOutInQuad(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutQuad((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5));
};
return (easeInQuad(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5));
}
public static function easeOutSine(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
return (((_arg3 * Math.sin(((_arg1 / _arg4) * (Math.PI / 2)))) + _arg2));
}
public static function easeInOutCubic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
return ((((((_arg3 / 2) * _arg1) * _arg1) * _arg1) + _arg2));
};
_arg1 = (_arg1 - 2);
return ((((_arg3 / 2) * (((_arg1 * _arg1) * _arg1) + 2)) + _arg2));
}
public static function easeInOutQuint(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
return ((((((((_arg3 / 2) * _arg1) * _arg1) * _arg1) * _arg1) * _arg1) + _arg2));
};
_arg1 = (_arg1 - 2);
return ((((_arg3 / 2) * (((((_arg1 * _arg1) * _arg1) * _arg1) * _arg1) + 2)) + _arg2));
}
public static function easeInCirc(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / _arg4);
return (((-(_arg3) * (Math.sqrt((1 - (_arg1 * _arg1))) - 1)) + _arg2));
}
public static function easeOutInSine(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutSine((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5));
};
return (easeInSine(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5));
}
public static function easeInOutExpo(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 == 0){
return (_arg2);
};
if (_arg1 == _arg4){
return ((_arg2 + _arg3));
};
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
return (((((_arg3 / 2) * Math.pow(2, (10 * (_arg1 - 1)))) + _arg2) - (_arg3 * 0.0005)));
};
--_arg1;
return (((((_arg3 / 2) * 1.0005) * (-(Math.pow(2, (-10 * _arg1))) + 2)) + _arg2));
}
public static function easeOutElastic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
var _local6:Number;
var _local7:Number;
var _local8:Number;
if (_arg1 == 0){
return (_arg2);
};
_arg1 = (_arg1 / _arg4);
if (_arg1 == 1){
return ((_arg2 + _arg3));
};
_local6 = (((!(Boolean(_arg5))) || (isNaN(_arg5.period)))) ? (_arg4 * 0.3) : _arg5.period;
_local8 = (((!(Boolean(_arg5))) || (isNaN(_arg5.amplitude)))) ? 0 : _arg5.amplitude;
if (((!(Boolean(_local8))) || ((_local8 < Math.abs(_arg3))))){
_local8 = _arg3;
_local7 = (_local6 / 4);
} else {
_local7 = ((_local6 / (2 * Math.PI)) * Math.asin((_arg3 / _local8)));
};
return (((((_local8 * Math.pow(2, (-10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local7) * (2 * Math.PI)) / _local6))) + _arg3) + _arg2));
}
public static function easeOutCirc(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = ((_arg1 / _arg4) - 1);
return (((_arg3 * Math.sqrt((1 - (_arg1 * _arg1)))) + _arg2));
}
public static function easeOutInQuart(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutQuart((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5));
};
return (easeInQuart(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5));
}
public static function easeOutInCirc(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutCirc((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5));
};
return (easeInCirc(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5));
}
}
}//package caurina.transitions
Section 3
//PropertyInfoObj (caurina.transitions.PropertyInfoObj)
package caurina.transitions {
public class PropertyInfoObj {
public var originalValueComplete:Object;
public var modifierParameters:Array;
public var isSpecialProperty:Boolean;
public var hasModifier:Boolean;
public var valueComplete:Number;
public var extra:Object;
public var valueStart:Number;
public var modifierFunction:Function;
public var arrayIndex:Number;
public function PropertyInfoObj(_arg1:Number, _arg2:Number, _arg3:Object, _arg4:Number, _arg5:Object, _arg6:Boolean, _arg7:Function, _arg8:Array){
valueStart = _arg1;
valueComplete = _arg2;
originalValueComplete = _arg3;
arrayIndex = _arg4;
extra = _arg5;
isSpecialProperty = _arg6;
hasModifier = Boolean(_arg7);
modifierFunction = _arg7;
modifierParameters = _arg8;
}
public function toString():String{
var _local1:String;
_local1 = "\n[PropertyInfoObj ";
_local1 = (_local1 + ("valueStart:" + String(valueStart)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("valueComplete:" + String(valueComplete)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("originalValueComplete:" + String(originalValueComplete)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("arrayIndex:" + String(arrayIndex)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("extra:" + String(extra)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("isSpecialProperty:" + String(isSpecialProperty)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("hasModifier:" + String(hasModifier)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("modifierFunction:" + String(modifierFunction)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("modifierParameters:" + String(modifierParameters)));
_local1 = (_local1 + "]\n");
return (_local1);
}
public function clone():PropertyInfoObj{
var _local1:PropertyInfoObj;
_local1 = new PropertyInfoObj(valueStart, valueComplete, originalValueComplete, arrayIndex, extra, isSpecialProperty, modifierFunction, modifierParameters);
return (_local1);
}
}
}//package caurina.transitions
Section 4
//SpecialProperty (caurina.transitions.SpecialProperty)
package caurina.transitions {
public class SpecialProperty {
public var parameters:Array;
public var preProcess:Function;
public var setValue:Function;
public var getValue:Function;
public function SpecialProperty(_arg1:Function, _arg2:Function, _arg3:Array=null, _arg4:Function=null){
getValue = _arg1;
setValue = _arg2;
parameters = _arg3;
preProcess = _arg4;
}
public function toString():String{
var _local1:String;
_local1 = "";
_local1 = (_local1 + "[SpecialProperty ");
_local1 = (_local1 + ("getValue:" + String(getValue)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("setValue:" + String(setValue)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("parameters:" + String(parameters)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("preProcess:" + String(preProcess)));
_local1 = (_local1 + "]");
return (_local1);
}
}
}//package caurina.transitions
Section 5
//SpecialPropertyModifier (caurina.transitions.SpecialPropertyModifier)
package caurina.transitions {
public class SpecialPropertyModifier {
public var getValue:Function;
public var modifyValues:Function;
public function SpecialPropertyModifier(_arg1:Function, _arg2:Function){
modifyValues = _arg1;
getValue = _arg2;
}
public function toString():String{
var _local1:String;
_local1 = "";
_local1 = (_local1 + "[SpecialPropertyModifier ");
_local1 = (_local1 + ("modifyValues:" + String(modifyValues)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("getValue:" + String(getValue)));
_local1 = (_local1 + "]");
return (_local1);
}
}
}//package caurina.transitions
Section 6
//SpecialPropertySplitter (caurina.transitions.SpecialPropertySplitter)
package caurina.transitions {
public class SpecialPropertySplitter {
public var parameters:Array;
public var splitValues:Function;
public function SpecialPropertySplitter(_arg1:Function, _arg2:Array){
splitValues = _arg1;
parameters = _arg2;
}
public function toString():String{
var _local1:String;
_local1 = "";
_local1 = (_local1 + "[SpecialPropertySplitter ");
_local1 = (_local1 + ("splitValues:" + String(splitValues)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("parameters:" + String(parameters)));
_local1 = (_local1 + "]");
return (_local1);
}
}
}//package caurina.transitions
Section 7
//Tweener (caurina.transitions.Tweener)
package caurina.transitions {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
public class Tweener {
private static var _timeScale:Number = 1;
private static var _currentTimeFrame:Number;
private static var _specialPropertySplitterList:Object;
private static var _engineExists:Boolean = false;
private static var _specialPropertyModifierList:Object;
private static var _currentTime:Number;
private static var _tweenList:Array;
private static var _specialPropertyList:Object;
private static var _transitionList:Object;
private static var _inited:Boolean = false;
private static var __tweener_controller__:MovieClip;
public function Tweener(){
trace("Tweener is a static class and should not be instantiated.");
}
public static function registerSpecialPropertyModifier(_arg1:String, _arg2:Function, _arg3:Function):void{
var _local4:SpecialPropertyModifier;
if (!_inited){
init();
};
_local4 = new SpecialPropertyModifier(_arg2, _arg3);
_specialPropertyModifierList[_arg1] = _local4;
}
public static function registerSpecialProperty(_arg1:String, _arg2:Function, _arg3:Function, _arg4:Array=null, _arg5:Function=null):void{
var _local6:SpecialProperty;
if (!_inited){
init();
};
_local6 = new SpecialProperty(_arg2, _arg3, _arg4, _arg5);
_specialPropertyList[_arg1] = _local6;
}
public static function init(... _args):void{
_inited = true;
_transitionList = new Object();
Equations.init();
_specialPropertyList = new Object();
_specialPropertyModifierList = new Object();
_specialPropertySplitterList = new Object();
}
private static function updateTweens():Boolean{
var _local1:int;
if (_tweenList.length == 0){
return (false);
};
_local1 = 0;
while (_local1 < _tweenList.length) {
if ((((_tweenList[_local1] == undefined)) || (!(_tweenList[_local1].isPaused)))){
if (!updateTweenByIndex(_local1)){
removeTweenByIndex(_local1);
};
if (_tweenList[_local1] == null){
removeTweenByIndex(_local1, true);
_local1--;
};
};
_local1++;
};
return (true);
}
public static function addCaller(_arg1:Object=null, _arg2:Object=null):Boolean{
var _local3:Number;
var _local4:Array;
var _local5:Object;
var _local6:Number;
var _local7:Number;
var _local8:Function;
var _local9:TweenListObj;
var _local10:Number;
var _local11:String;
if (!Boolean(_arg1)){
return (false);
};
if ((_arg1 is Array)){
_local4 = _arg1.concat();
} else {
_local4 = [_arg1];
};
_local5 = _arg2;
if (!_inited){
init();
};
if (((!(_engineExists)) || (!(Boolean(__tweener_controller__))))){
startEngine();
};
_local6 = (isNaN(_local5.time)) ? 0 : _local5.time;
_local7 = (isNaN(_local5.delay)) ? 0 : _local5.delay;
if (typeof(_local5.transition) == "string"){
_local11 = _local5.transition.toLowerCase();
_local8 = _transitionList[_local11];
} else {
_local8 = _local5.transition;
};
if (!Boolean(_local8)){
_local8 = _transitionList["easeoutexpo"];
};
_local3 = 0;
while (_local3 < _local4.length) {
if (_local5.useFrames == true){
_local9 = new TweenListObj(_local4[_local3], (_currentTimeFrame + (_local7 / _timeScale)), (_currentTimeFrame + ((_local7 + _local6) / _timeScale)), true, _local8, _local5.transitionParams);
} else {
_local9 = new TweenListObj(_local4[_local3], (_currentTime + ((_local7 * 1000) / _timeScale)), (_currentTime + (((_local7 * 1000) + (_local6 * 1000)) / _timeScale)), false, _local8, _local5.transitionParams);
};
_local9.properties = null;
_local9.onStart = _local5.onStart;
_local9.onUpdate = _local5.onUpdate;
_local9.onComplete = _local5.onComplete;
_local9.onOverwrite = _local5.onOverwrite;
_local9.onStartParams = _local5.onStartParams;
_local9.onUpdateParams = _local5.onUpdateParams;
_local9.onCompleteParams = _local5.onCompleteParams;
_local9.onOverwriteParams = _local5.onOverwriteParams;
_local9.onStartScope = _local5.onStartScope;
_local9.onUpdateScope = _local5.onUpdateScope;
_local9.onCompleteScope = _local5.onCompleteScope;
_local9.onOverwriteScope = _local5.onOverwriteScope;
_local9.onErrorScope = _local5.onErrorScope;
_local9.isCaller = true;
_local9.count = _local5.count;
_local9.waitFrames = _local5.waitFrames;
_tweenList.push(_local9);
if ((((_local6 == 0)) && ((_local7 == 0)))){
_local10 = (_tweenList.length - 1);
updateTweenByIndex(_local10);
removeTweenByIndex(_local10);
};
_local3++;
};
return (true);
}
public static function pauseAllTweens():Boolean{
var _local1:Boolean;
var _local2:uint;
if (!Boolean(_tweenList)){
return (false);
};
_local1 = false;
_local2 = 0;
while (_local2 < _tweenList.length) {
pauseTweenByIndex(_local2);
_local1 = true;
_local2++;
};
return (_local1);
}
public static function removeTweens(_arg1:Object, ... _args):Boolean{
var _local3:Array;
var _local4:uint;
_local3 = new Array();
_local4 = 0;
while (_local4 < _args.length) {
if ((((typeof(_args[_local4]) == "string")) && (!(AuxFunctions.isInArray(_args[_local4], _local3))))){
_local3.push(_args[_local4]);
};
_local4++;
};
return (affectTweens(removeTweenByIndex, _arg1, _local3));
}
public static function splitTweens(_arg1:Number, _arg2:Array):uint{
var _local3:TweenListObj;
var _local4:TweenListObj;
var _local5:uint;
var _local6:String;
var _local7:Boolean;
_local3 = _tweenList[_arg1];
_local4 = _local3.clone(false);
_local5 = 0;
while (_local5 < _arg2.length) {
_local6 = _arg2[_local5];
if (Boolean(_local3.properties[_local6])){
_local3.properties[_local6] = undefined;
delete _local3.properties[_local6];
};
_local5++;
};
for (_local6 in _local4.properties) {
_local7 = false;
_local5 = 0;
while (_local5 < _arg2.length) {
if (_arg2[_local5] == _local6){
_local7 = true;
break;
};
_local5++;
};
if (!_local7){
_local4.properties[_local6] = undefined;
delete _local4.properties[_local6];
};
};
_tweenList.push(_local4);
return ((_tweenList.length - 1));
}
public static function updateFrame():void{
_currentTimeFrame++;
}
public static function resumeTweenByIndex(_arg1:Number):Boolean{
var _local2:TweenListObj;
var _local3:Number;
_local2 = _tweenList[_arg1];
if ((((_local2 == null)) || (!(_local2.isPaused)))){
return (false);
};
_local3 = getCurrentTweeningTime(_local2);
_local2.timeStart = (_local2.timeStart + (_local3 - _local2.timePaused));
_local2.timeComplete = (_local2.timeComplete + (_local3 - _local2.timePaused));
_local2.timePaused = undefined;
_local2.isPaused = false;
return (true);
}
public static function getVersion():String{
return ("AS3 1.31.71");
}
public static function onEnterFrame(_arg1:Event):void{
var _local2:Boolean;
updateTime();
updateFrame();
_local2 = false;
_local2 = updateTweens();
if (!_local2){
stopEngine();
};
}
public static function updateTime():void{
_currentTime = getTimer();
}
private static function updateTweenByIndex(_arg1:Number):Boolean{
var tTweening:TweenListObj;
var isOver:Boolean;
var mustUpdate:Boolean;
var nv:Number;
var t:Number;
var b:Number;
var c:Number;
var d:Number;
var pName:String;
var eventScope:Object;
var tScope:Object;
var cTime:Number;
var tProperty:Object;
var pv:Number;
var i = _arg1;
tTweening = _tweenList[i];
if ((((tTweening == null)) || (!(Boolean(tTweening.scope))))){
return (false);
};
isOver = false;
cTime = getCurrentTweeningTime(tTweening);
if (cTime >= tTweening.timeStart){
tScope = tTweening.scope;
if (tTweening.isCaller){
do {
t = (((tTweening.timeComplete - tTweening.timeStart) / tTweening.count) * (tTweening.timesCalled + 1));
b = tTweening.timeStart;
c = (tTweening.timeComplete - tTweening.timeStart);
d = (tTweening.timeComplete - tTweening.timeStart);
nv = tTweening.transition(t, b, c, d);
} while (!(cTime >= nv));
} else {
mustUpdate = (((((tTweening.skipUpdates < 1)) || (!(tTweening.skipUpdates)))) || ((tTweening.updatesSkipped >= tTweening.skipUpdates)));
if (cTime >= tTweening.timeComplete){
isOver = true;
mustUpdate = true;
};
if (!tTweening.hasStarted){
if (Boolean(tTweening.onStart)){
eventScope = (Boolean(tTweening.onStartScope)) ? tTweening.onStartScope : tScope;
try {
tTweening.onStart.apply(eventScope, tTweening.onStartParams);
} catch(e:Error) {
handleError(tTweening, e, "onStart");
};
};
for (pName in tTweening.properties) {
if (tTweening.properties[pName].isSpecialProperty){
if (Boolean(_specialPropertyList[pName].preProcess)){
tTweening.properties[pName].valueComplete = _specialPropertyList[pName].preProcess(tScope, _specialPropertyList[pName].parameters, tTweening.properties[pName].originalValueComplete, tTweening.properties[pName].extra);
};
pv = _specialPropertyList[pName].getValue(tScope, _specialPropertyList[pName].parameters, tTweening.properties[pName].extra);
} else {
pv = tScope[pName];
};
tTweening.properties[pName].valueStart = (isNaN(pv)) ? tTweening.properties[pName].valueComplete : pv;
};
mustUpdate = true;
tTweening.hasStarted = true;
};
if (mustUpdate){
for (pName in tTweening.properties) {
tProperty = tTweening.properties[pName];
if (isOver){
nv = tProperty.valueComplete;
} else {
if (tProperty.hasModifier){
t = (cTime - tTweening.timeStart);
d = (tTweening.timeComplete - tTweening.timeStart);
nv = tTweening.transition(t, 0, 1, d, tTweening.transitionParams);
nv = tProperty.modifierFunction(tProperty.valueStart, tProperty.valueComplete, nv, tProperty.modifierParameters);
} else {
t = (cTime - tTweening.timeStart);
b = tProperty.valueStart;
c = (tProperty.valueComplete - tProperty.valueStart);
d = (tTweening.timeComplete - tTweening.timeStart);
nv = tTweening.transition(t, b, c, d, tTweening.transitionParams);
};
};
if (tTweening.rounded){
nv = Math.round(nv);
};
if (tProperty.isSpecialProperty){
_specialPropertyList[pName].setValue(tScope, nv, _specialPropertyList[pName].parameters, tTweening.properties[pName].extra);
} else {
tScope[pName] = nv;
};
};
tTweening.updatesSkipped = 0;
if (Boolean(tTweening.onUpdate)){
eventScope = (Boolean(tTweening.onUpdateScope)) ? tTweening.onUpdateScope : tScope;
try {
tTweening.onUpdate.apply(eventScope, tTweening.onUpdateParams);
} catch(e:Error) {
handleError(tTweening, e, "onUpdate");
};
};
} else {
tTweening.updatesSkipped++;
};
};
if (((isOver) && (Boolean(tTweening.onComplete)))){
eventScope = (Boolean(tTweening.onCompleteScope)) ? tTweening.onCompleteScope : tScope;
try {
tTweening.onComplete.apply(eventScope, tTweening.onCompleteParams);
} catch(e:Error) {
handleError(tTweening, e, "onComplete");
};
};
return (!(isOver));
};
return (true);
}
public static function setTimeScale(_arg1:Number):void{
var _local2:Number;
var _local3:Number;
if (isNaN(_arg1)){
_arg1 = 1;
};
if (_arg1 < 1E-5){
_arg1 = 1E-5;
};
if (_arg1 != _timeScale){
if (_tweenList != null){
_local2 = 0;
while (_local2 < _tweenList.length) {
_local3 = getCurrentTweeningTime(_tweenList[_local2]);
_tweenList[_local2].timeStart = (_local3 - (((_local3 - _tweenList[_local2].timeStart) * _timeScale) / _arg1));
_tweenList[_local2].timeComplete = (_local3 - (((_local3 - _tweenList[_local2].timeComplete) * _timeScale) / _arg1));
if (_tweenList[_local2].timePaused != undefined){
_tweenList[_local2].timePaused = (_local3 - (((_local3 - _tweenList[_local2].timePaused) * _timeScale) / _arg1));
};
_local2++;
};
};
_timeScale = _arg1;
};
}
public static function resumeAllTweens():Boolean{
var _local1:Boolean;
var _local2:uint;
if (!Boolean(_tweenList)){
return (false);
};
_local1 = false;
_local2 = 0;
while (_local2 < _tweenList.length) {
resumeTweenByIndex(_local2);
_local1 = true;
_local2++;
};
return (_local1);
}
private static function handleError(_arg1:TweenListObj, _arg2:Error, _arg3:String):void{
var eventScope:Object;
var pTweening = _arg1;
var pError = _arg2;
var pCallBackName = _arg3;
if (((Boolean(pTweening.onError)) && ((pTweening.onError is Function)))){
eventScope = (Boolean(pTweening.onErrorScope)) ? pTweening.onErrorScope : pTweening.scope;
try {
pTweening.onError.apply(eventScope, [pTweening.scope, pError]);
} catch(metaError:Error) {
printError(((((String(pTweening.scope) + " raised an error while executing the 'onError' handler. Original error:\n ") + pError.getStackTrace()) + "\nonError error: ") + metaError.getStackTrace()));
};
} else {
if (!Boolean(pTweening.onError)){
printError(((((String(pTweening.scope) + " raised an error while executing the '") + pCallBackName) + "'handler. \n") + pError.getStackTrace()));
};
};
}
private static function startEngine():void{
_engineExists = true;
_tweenList = new Array();
__tweener_controller__ = new MovieClip();
__tweener_controller__.addEventListener(Event.ENTER_FRAME, Tweener.onEnterFrame);
_currentTimeFrame = 0;
updateTime();
}
public static function removeAllTweens():Boolean{
var _local1:Boolean;
var _local2:uint;
if (!Boolean(_tweenList)){
return (false);
};
_local1 = false;
_local2 = 0;
while (_local2 < _tweenList.length) {
removeTweenByIndex(_local2);
_local1 = true;
_local2++;
};
return (_local1);
}
public static function addTween(_arg1:Object=null, _arg2:Object=null):Boolean{
var _local3:Number;
var _local4:Number;
var _local5:String;
var _local6:Array;
var _local7:Object;
var _local8:Number;
var _local9:Number;
var _local10:Array;
var _local11:Object;
var _local12:Object;
var _local13:Function;
var _local14:Object;
var _local15:TweenListObj;
var _local16:Number;
var _local17:Array;
var _local18:Array;
var _local19:Array;
var _local20:String;
if (!Boolean(_arg1)){
return (false);
};
if ((_arg1 is Array)){
_local6 = _arg1.concat();
} else {
_local6 = [_arg1];
};
_local7 = TweenListObj.makePropertiesChain(_arg2);
if (!_inited){
init();
};
if (((!(_engineExists)) || (!(Boolean(__tweener_controller__))))){
startEngine();
};
_local8 = (isNaN(_local7.time)) ? 0 : _local7.time;
_local9 = (isNaN(_local7.delay)) ? 0 : _local7.delay;
_local10 = new Array();
_local11 = {time:true, delay:true, useFrames:true, skipUpdates:true, transition:true, transitionParams:true, onStart:true, onUpdate:true, onComplete:true, onOverwrite:true, onError:true, rounded:true, onStartParams:true, onUpdateParams:true, onCompleteParams:true, onOverwriteParams:true, onStartScope:true, onUpdateScope:true, onCompleteScope:true, onOverwriteScope:true, onErrorScope:true};
_local12 = new Object();
for (_local5 in _local7) {
if (!_local11[_local5]){
if (_specialPropertySplitterList[_local5]){
_local17 = _specialPropertySplitterList[_local5].splitValues(_local7[_local5], _specialPropertySplitterList[_local5].parameters);
_local3 = 0;
while (_local3 < _local17.length) {
if (_specialPropertySplitterList[_local17[_local3].name]){
_local18 = _specialPropertySplitterList[_local17[_local3].name].splitValues(_local17[_local3].value, _specialPropertySplitterList[_local17[_local3].name].parameters);
_local4 = 0;
while (_local4 < _local18.length) {
_local10[_local18[_local4].name] = {valueStart:undefined, valueComplete:_local18[_local4].value, arrayIndex:_local18[_local4].arrayIndex, isSpecialProperty:false};
_local4++;
};
} else {
_local10[_local17[_local3].name] = {valueStart:undefined, valueComplete:_local17[_local3].value, arrayIndex:_local17[_local3].arrayIndex, isSpecialProperty:false};
};
_local3++;
};
} else {
if (_specialPropertyModifierList[_local5] != undefined){
_local19 = _specialPropertyModifierList[_local5].modifyValues(_local7[_local5]);
_local3 = 0;
while (_local3 < _local19.length) {
_local12[_local19[_local3].name] = {modifierParameters:_local19[_local3].parameters, modifierFunction:_specialPropertyModifierList[_local5].getValue};
_local3++;
};
} else {
_local10[_local5] = {valueStart:undefined, valueComplete:_local7[_local5]};
};
};
};
};
for (_local5 in _local10) {
if (_specialPropertyList[_local5] != undefined){
_local10[_local5].isSpecialProperty = true;
} else {
if (_local6[0][_local5] == undefined){
printError((((("The property '" + _local5) + "' doesn't seem to be a normal object property of ") + String(_local6[0])) + " or a registered special property."));
};
};
};
for (_local5 in _local12) {
if (_local10[_local5] != undefined){
_local10[_local5].modifierParameters = _local12[_local5].modifierParameters;
_local10[_local5].modifierFunction = _local12[_local5].modifierFunction;
};
};
if (typeof(_local7.transition) == "string"){
_local20 = _local7.transition.toLowerCase();
_local13 = _transitionList[_local20];
} else {
_local13 = _local7.transition;
};
if (!Boolean(_local13)){
_local13 = _transitionList["easeoutexpo"];
};
_local3 = 0;
while (_local3 < _local6.length) {
_local14 = new Object();
for (_local5 in _local10) {
_local14[_local5] = new PropertyInfoObj(_local10[_local5].valueStart, _local10[_local5].valueComplete, _local10[_local5].valueComplete, _local10[_local5].arrayIndex, {}, _local10[_local5].isSpecialProperty, _local10[_local5].modifierFunction, _local10[_local5].modifierParameters);
};
if (_local7.useFrames == true){
_local15 = new TweenListObj(_local6[_local3], (_currentTimeFrame + (_local9 / _timeScale)), (_currentTimeFrame + ((_local9 + _local8) / _timeScale)), true, _local13, _local7.transitionParams);
} else {
_local15 = new TweenListObj(_local6[_local3], (_currentTime + ((_local9 * 1000) / _timeScale)), (_currentTime + (((_local9 * 1000) + (_local8 * 1000)) / _timeScale)), false, _local13, _local7.transitionParams);
};
_local15.properties = _local14;
_local15.onStart = _local7.onStart;
_local15.onUpdate = _local7.onUpdate;
_local15.onComplete = _local7.onComplete;
_local15.onOverwrite = _local7.onOverwrite;
_local15.onError = _local7.onError;
_local15.onStartParams = _local7.onStartParams;
_local15.onUpdateParams = _local7.onUpdateParams;
_local15.onCompleteParams = _local7.onCompleteParams;
_local15.onOverwriteParams = _local7.onOverwriteParams;
_local15.onStartScope = _local7.onStartScope;
_local15.onUpdateScope = _local7.onUpdateScope;
_local15.onCompleteScope = _local7.onCompleteScope;
_local15.onOverwriteScope = _local7.onOverwriteScope;
_local15.onErrorScope = _local7.onErrorScope;
_local15.rounded = _local7.rounded;
_local15.skipUpdates = _local7.skipUpdates;
removeTweensByTime(_local15.scope, _local15.properties, _local15.timeStart, _local15.timeComplete);
_tweenList.push(_local15);
if ((((_local8 == 0)) && ((_local9 == 0)))){
_local16 = (_tweenList.length - 1);
updateTweenByIndex(_local16);
removeTweenByIndex(_local16);
};
_local3++;
};
return (true);
}
public static function registerTransition(_arg1:String, _arg2:Function):void{
if (!_inited){
init();
};
_transitionList[_arg1] = _arg2;
}
public static function printError(_arg1:String):void{
trace(("## [Tweener] Error: " + _arg1));
}
private static function affectTweens(_arg1:Function, _arg2:Object, _arg3:Array):Boolean{
var _local4:Boolean;
var _local5:uint;
var _local6:Array;
var _local7:uint;
var _local8:uint;
var _local9:uint;
_local4 = false;
if (!Boolean(_tweenList)){
return (false);
};
_local5 = 0;
while (_local5 < _tweenList.length) {
if (((_tweenList[_local5]) && ((_tweenList[_local5].scope == _arg2)))){
if (_arg3.length == 0){
_arg1(_local5);
_local4 = true;
} else {
_local6 = new Array();
_local7 = 0;
while (_local7 < _arg3.length) {
if (Boolean(_tweenList[_local5].properties[_arg3[_local7]])){
_local6.push(_arg3[_local7]);
};
_local7++;
};
if (_local6.length > 0){
_local8 = AuxFunctions.getObjectLength(_tweenList[_local5].properties);
if (_local8 == _local6.length){
_arg1(_local5);
_local4 = true;
} else {
_local9 = splitTweens(_local5, _local6);
_arg1(_local9);
_local4 = true;
};
};
};
};
_local5++;
};
return (_local4);
}
public static function getTweens(_arg1:Object):Array{
var _local2:uint;
var _local3:String;
var _local4:Array;
if (!Boolean(_tweenList)){
return ([]);
};
_local4 = new Array();
_local2 = 0;
while (_local2 < _tweenList.length) {
if (((Boolean(_tweenList[_local2])) && ((_tweenList[_local2].scope == _arg1)))){
for (_local3 in _tweenList[_local2].properties) {
_local4.push(_local3);
};
};
_local2++;
};
return (_local4);
}
public static function isTweening(_arg1:Object):Boolean{
var _local2:uint;
if (!Boolean(_tweenList)){
return (false);
};
_local2 = 0;
while (_local2 < _tweenList.length) {
if (((Boolean(_tweenList[_local2])) && ((_tweenList[_local2].scope == _arg1)))){
return (true);
};
_local2++;
};
return (false);
}
public static function pauseTweenByIndex(_arg1:Number):Boolean{
var _local2:TweenListObj;
_local2 = _tweenList[_arg1];
if ((((_local2 == null)) || (_local2.isPaused))){
return (false);
};
_local2.timePaused = getCurrentTweeningTime(_local2);
_local2.isPaused = true;
return (true);
}
public static function getCurrentTweeningTime(_arg1:Object):Number{
return ((_arg1.useFrames) ? _currentTimeFrame : _currentTime);
}
public static function getTweenCount(_arg1:Object):Number{
var _local2:uint;
var _local3:Number;
if (!Boolean(_tweenList)){
return (0);
};
_local3 = 0;
_local2 = 0;
while (_local2 < _tweenList.length) {
if (((Boolean(_tweenList[_local2])) && ((_tweenList[_local2].scope == _arg1)))){
_local3 = (_local3 + AuxFunctions.getObjectLength(_tweenList[_local2].properties));
};
_local2++;
};
return (_local3);
}
private static function stopEngine():void{
_engineExists = false;
_tweenList = null;
_currentTime = 0;
_currentTimeFrame = 0;
__tweener_controller__.removeEventListener(Event.ENTER_FRAME, Tweener.onEnterFrame);
__tweener_controller__ = null;
}
public static function removeTweensByTime(_arg1:Object, _arg2:Object, _arg3:Number, _arg4:Number):Boolean{
var removed:Boolean;
var removedLocally:Boolean;
var i:uint;
var tl:uint;
var pName:String;
var eventScope:Object;
var p_scope = _arg1;
var p_properties = _arg2;
var p_timeStart = _arg3;
var p_timeComplete = _arg4;
removed = false;
tl = _tweenList.length;
i = 0;
while (i < tl) {
if (((Boolean(_tweenList[i])) && ((p_scope == _tweenList[i].scope)))){
if ((((p_timeComplete > _tweenList[i].timeStart)) && ((p_timeStart < _tweenList[i].timeComplete)))){
removedLocally = false;
for (pName in _tweenList[i].properties) {
if (Boolean(p_properties[pName])){
if (Boolean(_tweenList[i].onOverwrite)){
eventScope = (Boolean(_tweenList[i].onOverwriteScope)) ? _tweenList[i].onOverwriteScope : _tweenList[i].scope;
try {
_tweenList[i].onOverwrite.apply(eventScope, _tweenList[i].onOverwriteParams);
} catch(e:Error) {
handleError(_tweenList[i], e, "onOverwrite");
};
};
_tweenList[i].properties[pName] = undefined;
delete _tweenList[i].properties[pName];
removedLocally = true;
removed = true;
};
};
if (removedLocally){
if (AuxFunctions.getObjectLength(_tweenList[i].properties) == 0){
removeTweenByIndex(i);
};
};
};
};
i = (i + 1);
};
return (removed);
}
public static function registerSpecialPropertySplitter(_arg1:String, _arg2:Function, _arg3:Array=null):void{
var _local4:SpecialPropertySplitter;
if (!_inited){
init();
};
_local4 = new SpecialPropertySplitter(_arg2, _arg3);
_specialPropertySplitterList[_arg1] = _local4;
}
public static function removeTweenByIndex(_arg1:Number, _arg2:Boolean=false):Boolean{
_tweenList[_arg1] = null;
if (_arg2){
_tweenList.splice(_arg1, 1);
};
return (true);
}
public static function resumeTweens(_arg1:Object, ... _args):Boolean{
var _local3:Array;
var _local4:uint;
_local3 = new Array();
_local4 = 0;
while (_local4 < _args.length) {
if ((((typeof(_args[_local4]) == "string")) && (!(AuxFunctions.isInArray(_args[_local4], _local3))))){
_local3.push(_args[_local4]);
};
_local4++;
};
return (affectTweens(resumeTweenByIndex, _arg1, _local3));
}
public static function pauseTweens(_arg1:Object, ... _args):Boolean{
var _local3:Array;
var _local4:uint;
_local3 = new Array();
_local4 = 0;
while (_local4 < _args.length) {
if ((((typeof(_args[_local4]) == "string")) && (!(AuxFunctions.isInArray(_args[_local4], _local3))))){
_local3.push(_args[_local4]);
};
_local4++;
};
return (affectTweens(pauseTweenByIndex, _arg1, _local3));
}
}
}//package caurina.transitions
Section 8
//TweenListObj (caurina.transitions.TweenListObj)
package caurina.transitions {
public class TweenListObj {
public var onUpdate:Function;
public var useFrames:Boolean;
public var hasStarted:Boolean;
public var onOverwriteParams:Array;
public var timeStart:Number;
public var count:Number;
public var timeComplete:Number;
public var onStartParams:Array;
public var onUpdateScope:Object;
public var rounded:Boolean;
public var onUpdateParams:Array;
public var properties:Object;
public var onComplete:Function;
public var transitionParams:Object;
public var updatesSkipped:Number;
public var onStart:Function;
public var onOverwriteScope:Object;
public var skipUpdates:Number;
public var onStartScope:Object;
public var scope:Object;
public var transition:Function;
public var timePaused:Number;
public var onCompleteParams:Array;
public var timesCalled:Number;
public var isCaller:Boolean;
public var onError:Function;
public var onErrorScope:Object;
public var onOverwrite:Function;
public var isPaused:Boolean;
public var waitFrames:Boolean;
public var onCompleteScope:Object;
public function TweenListObj(_arg1:Object, _arg2:Number, _arg3:Number, _arg4:Boolean, _arg5:Function, _arg6:Object){
scope = _arg1;
timeStart = _arg2;
timeComplete = _arg3;
useFrames = _arg4;
transition = _arg5;
transitionParams = _arg6;
properties = new Object();
isPaused = false;
timePaused = undefined;
isCaller = false;
updatesSkipped = 0;
timesCalled = 0;
skipUpdates = 0;
hasStarted = false;
}
public function clone(_arg1:Boolean):TweenListObj{
var _local2:TweenListObj;
var _local3:String;
_local2 = new TweenListObj(scope, timeStart, timeComplete, useFrames, transition, transitionParams);
_local2.properties = new Array();
for (_local3 in properties) {
_local2.properties[_local3] = properties[_local3].clone();
};
_local2.skipUpdates = skipUpdates;
_local2.updatesSkipped = updatesSkipped;
if (!_arg1){
_local2.onStart = onStart;
_local2.onUpdate = onUpdate;
_local2.onComplete = onComplete;
_local2.onOverwrite = onOverwrite;
_local2.onError = onError;
_local2.onStartParams = onStartParams;
_local2.onUpdateParams = onUpdateParams;
_local2.onCompleteParams = onCompleteParams;
_local2.onOverwriteParams = onOverwriteParams;
_local2.onStartScope = onStartScope;
_local2.onUpdateScope = onUpdateScope;
_local2.onCompleteScope = onCompleteScope;
_local2.onOverwriteScope = onOverwriteScope;
_local2.onErrorScope = onErrorScope;
};
_local2.rounded = rounded;
_local2.isPaused = isPaused;
_local2.timePaused = timePaused;
_local2.isCaller = isCaller;
_local2.count = count;
_local2.timesCalled = timesCalled;
_local2.waitFrames = waitFrames;
_local2.hasStarted = hasStarted;
return (_local2);
}
public function toString():String{
var _local1:String;
var _local2:Boolean;
var _local3:String;
_local1 = "\n[TweenListObj ";
_local1 = (_local1 + ("scope:" + String(scope)));
_local1 = (_local1 + ", properties:");
_local2 = true;
for (_local3 in properties) {
if (!_local2){
_local1 = (_local1 + ",");
};
_local1 = (_local1 + ("[name:" + properties[_local3].name));
_local1 = (_local1 + (",valueStart:" + properties[_local3].valueStart));
_local1 = (_local1 + (",valueComplete:" + properties[_local3].valueComplete));
_local1 = (_local1 + "]");
_local2 = false;
};
_local1 = (_local1 + (", timeStart:" + String(timeStart)));
_local1 = (_local1 + (", timeComplete:" + String(timeComplete)));
_local1 = (_local1 + (", useFrames:" + String(useFrames)));
_local1 = (_local1 + (", transition:" + String(transition)));
_local1 = (_local1 + (", transitionParams:" + String(transitionParams)));
if (skipUpdates){
_local1 = (_local1 + (", skipUpdates:" + String(skipUpdates)));
};
if (updatesSkipped){
_local1 = (_local1 + (", updatesSkipped:" + String(updatesSkipped)));
};
if (Boolean(onStart)){
_local1 = (_local1 + (", onStart:" + String(onStart)));
};
if (Boolean(onUpdate)){
_local1 = (_local1 + (", onUpdate:" + String(onUpdate)));
};
if (Boolean(onComplete)){
_local1 = (_local1 + (", onComplete:" + String(onComplete)));
};
if (Boolean(onOverwrite)){
_local1 = (_local1 + (", onOverwrite:" + String(onOverwrite)));
};
if (Boolean(onError)){
_local1 = (_local1 + (", onError:" + String(onError)));
};
if (onStartParams){
_local1 = (_local1 + (", onStartParams:" + String(onStartParams)));
};
if (onUpdateParams){
_local1 = (_local1 + (", onUpdateParams:" + String(onUpdateParams)));
};
if (onCompleteParams){
_local1 = (_local1 + (", onCompleteParams:" + String(onCompleteParams)));
};
if (onOverwriteParams){
_local1 = (_local1 + (", onOverwriteParams:" + String(onOverwriteParams)));
};
if (onStartScope){
_local1 = (_local1 + (", onStartScope:" + String(onStartScope)));
};
if (onUpdateScope){
_local1 = (_local1 + (", onUpdateScope:" + String(onUpdateScope)));
};
if (onCompleteScope){
_local1 = (_local1 + (", onCompleteScope:" + String(onCompleteScope)));
};
if (onOverwriteScope){
_local1 = (_local1 + (", onOverwriteScope:" + String(onOverwriteScope)));
};
if (onErrorScope){
_local1 = (_local1 + (", onErrorScope:" + String(onErrorScope)));
};
if (rounded){
_local1 = (_local1 + (", rounded:" + String(rounded)));
};
if (isPaused){
_local1 = (_local1 + (", isPaused:" + String(isPaused)));
};
if (timePaused){
_local1 = (_local1 + (", timePaused:" + String(timePaused)));
};
if (isCaller){
_local1 = (_local1 + (", isCaller:" + String(isCaller)));
};
if (count){
_local1 = (_local1 + (", count:" + String(count)));
};
if (timesCalled){
_local1 = (_local1 + (", timesCalled:" + String(timesCalled)));
};
if (waitFrames){
_local1 = (_local1 + (", waitFrames:" + String(waitFrames)));
};
if (hasStarted){
_local1 = (_local1 + (", hasStarted:" + String(hasStarted)));
};
_local1 = (_local1 + "]\n");
return (_local1);
}
public static function makePropertiesChain(_arg1:Object):Object{
var _local2:Object;
var _local3:Object;
var _local4:Object;
var _local5:Object;
var _local6:Number;
var _local7:Number;
var _local8:Number;
_local2 = _arg1.base;
if (_local2){
_local3 = {};
if ((_local2 is Array)){
_local4 = [];
_local8 = 0;
while (_local8 < _local2.length) {
_local4.push(_local2[_local8]);
_local8++;
};
} else {
_local4 = [_local2];
};
_local4.push(_arg1);
_local6 = _local4.length;
_local7 = 0;
while (_local7 < _local6) {
if (_local4[_local7]["base"]){
_local5 = AuxFunctions.concatObjects(makePropertiesChain(_local4[_local7]["base"]), _local4[_local7]);
} else {
_local5 = _local4[_local7];
};
_local3 = AuxFunctions.concatObjects(_local3, _local5);
_local7++;
};
if (_local3["base"]){
delete _local3["base"];
};
return (_local3);
//unresolved jump
};
return (_arg1);
}
}
}//package caurina.transitions
Section 9
//Debug (com.hexagonstar.util.debug.Debug)
package com.hexagonstar.util.debug {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
public final class Debug {
public static const LEVEL_WARN:int = 2;
public static const LEVEL_DEBUG:int = 0;
public static const LEVEL_INFO:int = 1;
public static const LEVEL_FATAL:int = 4;
public static const LEVEL_ERROR:int = 3;
private static var _stage:Stage;
private static var _filterLevel:int = 0;
private static var _isEnabled:Boolean = true;
private static var _isConnected:Boolean = false;
private static var _isPollingFPS:Boolean = false;
private static var _stopWatch:StopWatch;
private static var _connection:LocalConnection;
private static var _fpsMeter:FPSMeter;
public static function forceGC():void{
try {
} catch(e1:Error) {
try {
new LocalConnection().connect("forceGC");
new LocalConnection().connect("forceGC");
} catch(e2:Error) {
};
};
}
private static function send(_arg1:String, _arg2, _arg3:int=1, _arg4:int=0):void{
var _local5:Number;
var _local6:ByteArray;
if (_isEnabled){
if (!_isConnected){
_isConnected = true;
_connection = new LocalConnection();
_connection.addEventListener(StatusEvent.STATUS, onStatus);
};
_local5 = 0;
if (typeof(_arg2) == "string"){
_local5 = String(_arg2).length;
} else {
if (typeof(_arg2) == "object"){
_local6 = new ByteArray();
_local6.writeObject(_arg2);
_local5 = _local6.length;
_local6 = null;
};
};
if (_local5 > 39000){
storeDataLSO(_arg1, _arg2);
_arg1 = "onLargeData";
_arg2 = null;
};
_connection.send("_alcon_lc", _arg1, _arg2, _arg3, _arg4, "");
};
}
public static function stop():void{
if (_fpsMeter){
_isPollingFPS = false;
_fpsMeter.stop();
_fpsMeter.removeEventListener(FPSMeter.FPS_UPDATE, onFPSUpdate);
_fpsMeter = null;
_stage = null;
};
}
public static function timerReset():void{
if (_stopWatch){
_stopWatch.reset();
};
}
private static function onFPSUpdate(_arg1:Event):void{
send("onFPS", ((((((_fpsMeter.fps + ",") + _stage.frameRate) + ",") + _fpsMeter.frt) + ",") + System.totalMemory));
}
public static function delimiter():void{
Debug.trace("[%DLT%]", 5);
}
public static function set enabled(_arg1:Boolean):void{
_isEnabled = _arg1;
}
public static function inspect(_arg1:Object):void{
send("onInspect", _arg1, 1, -1);
}
public static function timerStart(_arg1:String=""):void{
if (_isEnabled){
if (!_stopWatch){
_stopWatch = new StopWatch();
};
_stopWatch.start(_arg1);
};
}
public static function createCategory(_arg1:int, _arg2:String="", _arg3:uint=0, _arg4:uint=0xFFFF00):void{
send("onCategory", [_arg1, _arg2, _arg3, _arg4], 0, 0);
}
private static function storeDataLSO(_arg1:String, _arg2):void{
var sharedObject:SharedObject;
var flushResult:String;
var m = _arg1;
var d = _arg2;
sharedObject = SharedObject.getLocal("alcon", "/");
sharedObject.data["alconMethod"] = m;
sharedObject.data["alconData"] = d;
try {
flushResult = sharedObject.flush();
if (flushResult == SharedObjectFlushStatus.FLUSHED){
return;
};
} catch(e:Error) {
Security.showSettings(SecurityPanel.LOCAL_STORAGE);
};
}
public static function hexDump(_arg1:Object):void{
send("onHexDump", _arg1, 0, 0);
}
private static function onStatus(_arg1:StatusEvent):void{
}
public static function get enabled():Boolean{
return (_isEnabled);
}
public static function trace(... _args):void{
var _local2:int;
_local2 = ((_args[1] is int)) ? _args[1] : 1;
if ((((_local2 >= _filterLevel)) && ((_local2 < 7)))){
send("onData", _args[0], _local2, 0);
};
}
public static function timerToString():void{
if (_stopWatch){
Debug.trace(_stopWatch.toString());
};
}
public static function mark(_arg1:uint=0xFF00FF):void{
send("onMarker", _arg1, 1, -1);
}
public static function timerInSeconds():void{
if (_stopWatch){
Debug.trace((_stopWatch.timeInSeconds + "s"));
};
}
public static function set filterLevel(_arg1:int):void{
if ((((_arg1 >= 0)) && ((_arg1 < 5)))){
_filterLevel = _arg1;
};
}
public static function monitor(_arg1:Stage, _arg2:int=500):void{
if (_isPollingFPS){
Debug.stop();
};
if (((_isEnabled) && (!(_fpsMeter)))){
_isPollingFPS = true;
_stage = _arg1;
sendCapabilities();
_fpsMeter = new FPSMeter(_stage, _arg2);
_fpsMeter.addEventListener(FPSMeter.FPS_UPDATE, onFPSUpdate);
_fpsMeter.start();
};
}
public static function time():void{
Debug.trace("[%TME%]", 5);
}
private static function sendCapabilities():void{
var _local1:XML;
var _local2:Array;
var _local3:XML;
var _local4:String;
_local1 = describeType(Capabilities);
_local2 = [];
for each (_local3 in _local1.*) {
_local4 = _local3.@name.toString();
if ((((((_local4.length > 0)) && (!((_local4 == "_internal"))))) && (!((_local4 == "prototype"))))){
_local2.push({p:_local4, v:Capabilities[_local4].toString()});
};
};
_local2.sortOn(["p"], Array.CASEINSENSITIVE);
send("onCap", _local2);
}
public static function clear():void{
Debug.trace("[%CLR%]", 5);
}
public static function timerStop():void{
if (_stopWatch){
_stopWatch.stop();
};
}
public static function timerInMilliSeconds():void{
if (_stopWatch){
Debug.trace((_stopWatch.timeInMilliSeconds + "ms"));
};
}
public static function get filterLevel():int{
return (_filterLevel);
}
public static function traceObj(_arg1:Object, _arg2:int=64, _arg3:int=1):void{
if ((((_arg3 >= _filterLevel)) && ((_arg3 < 7)))){
send("onData", _arg1, _arg3, _arg2);
};
}
public static function timerStopToString(_arg1:Boolean=false):void{
if (_stopWatch){
_stopWatch.stop();
Debug.trace(_stopWatch.toString());
if (_arg1){
_stopWatch.reset();
};
};
}
public static function pause():void{
Debug.trace("[%PSE%]", 5);
}
}
}//package com.hexagonstar.util.debug
Section 10
//FPSMeter (com.hexagonstar.util.debug.FPSMeter)
package com.hexagonstar.util.debug {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
public class FPSMeter extends EventDispatcher {
private var _pollInterval:int;
private var _delay:int;
private var _ms:int;
private var _prev:int;
private var _delayMax:int;// = 10
private var _timer:Timer;
private var _frt:int;
private var _fps:int;
private var _isRunning:Boolean;
private var _stage:Stage;
public static const FPS_UPDATE:String = "fpsUpdate";
public function FPSMeter(_arg1:Stage, _arg2:int=500){
_delayMax = 10;
super();
_stage = _arg1;
_pollInterval = _arg2;
reset();
}
public function stop():void{
if (_isRunning){
_timer.stop();
_timer.removeEventListener(TimerEvent.TIMER, onTimer);
_stage.removeEventListener(Event.ENTER_FRAME, onEnterFrame);
_timer = null;
reset();
};
}
public function reset():void{
_fps = 0;
_frt = 0;
_ms = 0;
_delay = 0;
_prev = 0;
_isRunning = false;
}
private function onEnterFrame(_arg1:Event):void{
var _local2:Number;
_local2 = getTimer();
_delay++;
if (_delay >= _delayMax){
_delay = 0;
_fps = int(((1000 * _delayMax) / (_local2 - _prev)));
_prev = _local2;
};
_frt = (_local2 - _ms);
_ms = _local2;
}
private function onTimer(_arg1:TimerEvent):void{
dispatchEvent(new Event(FPSMeter.FPS_UPDATE));
}
public function get frt():int{
return (_frt);
}
public function get fps():int{
return (_fps);
}
public function start():void{
if (!_isRunning){
_isRunning = true;
_timer = new Timer(_pollInterval, 0);
_timer.addEventListener(TimerEvent.TIMER, onTimer);
_stage.addEventListener(Event.ENTER_FRAME, onEnterFrame);
_timer.start();
};
}
}
}//package com.hexagonstar.util.debug
Section 11
//StopWatch (com.hexagonstar.util.debug.StopWatch)
package com.hexagonstar.util.debug {
import flash.utils.*;
public class StopWatch {
private var _started:Boolean;// = false
private var _stopTimeKeys:Array;
private var _startTimeKeys:Array;
private var _title:String;
public function StopWatch(){
_started = false;
super();
reset();
}
public function get timeInMilliSeconds():int{
var _local1:int;
var _local2:int;
if (_started){
_stopTimeKeys[(_startTimeKeys.length - 1)] = getTimer();
};
_local1 = 0;
_local2 = 0;
while (_local2 < _startTimeKeys.length) {
_local1 = (_local1 + (_stopTimeKeys[_local2] - _startTimeKeys[_local2]));
_local2++;
};
return (_local1);
}
public function toString():String{
var _local1:String;
var _local2:int;
var _local3:int;
var _local4:int;
_local1 = "\n ********************* [STOPWATCH] *********************";
if (_title != ""){
_local1 = (_local1 + ("\n * " + _title));
};
_local2 = 0;
while (_local2 < _startTimeKeys.length) {
_local3 = _startTimeKeys[_local2];
_local4 = _stopTimeKeys[_local2];
_local1 = (_local1 + (((((("\n * started [" + format(_local3)) + "ms] stopped [") + format(_local4)) + "ms] time [") + format((_local4 - _local3))) + "ms]"));
_local2++;
};
if (_local2 == 0){
_local1 = (_local1 + "\n * never started.");
} else {
_local1 = (_local1 + (("\n * total runnning time: " + timeInSeconds) + "s"));
};
_local1 = (_local1 + "\n *******************************************************");
return (_local1);
}
public function get timeInSeconds():Number{
return ((timeInMilliSeconds / 1000));
}
public function get started():Boolean{
return (_started);
}
public function start(_arg1:String=""):void{
if (!_started){
_title = _arg1;
_started = true;
_startTimeKeys.push(getTimer());
};
}
public function reset():void{
_startTimeKeys = [];
_stopTimeKeys = [];
_started = false;
}
private function format(_arg1:int):String{
var _local2:String;
var _local3:int;
var _local4:int;
_local2 = "";
_local3 = _arg1.toString().length;
_local4 = 0;
while (_local4 < (5 - _local3)) {
_local2 = (_local2 + "0");
_local4++;
};
return ((_local2 + _arg1));
}
public function stop():void{
var _local1:int;
if (_started){
_local1 = getTimer();
_stopTimeKeys[(_startTimeKeys.length - 1)] = _local1;
_started = false;
};
}
}
}//package com.hexagonstar.util.debug
Section 12
//IRandGenerator (com.seld.util.IRandGenerator)
package com.seld.util {
public interface IRandGenerator {
function get ranged():uint;
function setRange(_arg1:uint, _arg2:uint):void;
function get float():Number;
function get int32():uint;
}
}//package com.seld.util
Section 13
//SeededRand (com.seld.util.SeededRand)
package com.seld.util {
public class SeededRand implements IRandGenerator {
protected var mag01:Array;
protected var rangeEnd:uint;// = 0
protected var mti:int;
protected var rangeStart:uint;// = 0
protected var mt:Array;
protected var s:uint;
protected static const MATRIX_A:uint = 2567483615;
protected static const LOWER_MASK:uint = 2147483647;
protected static const UPPER_MASK:uint = 2147483648;
protected static const M:int = 397;
protected static const N:int = 624;
public function SeededRand(_arg1:uint):void{
mt = new Array(N);
mti = (N + 1);
mag01 = [0, MATRIX_A];
rangeStart = 0;
rangeEnd = 0;
super();
initialize(_arg1);
s = _arg1;
}
public function get int32():uint{
var _local1:uint;
var _local2:int;
if (mti >= N){
_local2 = 0;
while (_local2 < (N - M)) {
_local1 = ((mt[_local2] & UPPER_MASK) | (mt[(_local2 + 1)] & LOWER_MASK));
mt[_local2] = ((mt[(_local2 + M)] ^ (_local1 >> 1)) ^ mag01[(_local1 & 1)]);
_local2++;
};
while (_local2 < (N - 1)) {
_local1 = ((mt[_local2] & UPPER_MASK) | (mt[(_local2 + 1)] & LOWER_MASK));
mt[_local2] = ((mt[(_local2 + (M - N))] ^ (_local1 >> 1)) ^ mag01[(_local1 & 1)]);
_local2++;
};
_local1 = ((mt[(N - 1)] & UPPER_MASK) | (mt[0] & LOWER_MASK));
mt[(N - 1)] = ((mt[(M - 1)] ^ (_local1 >> 1)) ^ mag01[(_local1 & 1)]);
mti = 0;
};
_local1 = mt[mti++];
_local1 = (_local1 ^ (_local1 >> 11));
_local1 = (_local1 ^ ((_local1 << 7) & 2636928640));
_local1 = (_local1 ^ ((_local1 << 15) & 4022730752));
_local1 = (_local1 ^ (_local1 >> 18));
return (_local1);
}
protected function initialize(_arg1:uint):void{
mt[0] = (_arg1 & 4294967295);
mti = 1;
while (mti < N) {
mt[mti] = ((1812433253 * (mt[(mti - 1)] ^ (mt[(mti - 1)] >> 30))) + mti);
mt[mti] = (mt[mti] & 4294967295);
mti++;
};
}
public function get ranged():uint{
return ((rangeStart + (float * rangeEnd)));
}
public function get float():Number{
return ((int32 / 2147483647));
}
public function get seed():uint{
return (s);
}
public function setRange(_arg1:uint, _arg2:uint):void{
if (_arg1 >= _arg2){
throw (new Error("min can not be greater or equal to max"));
};
rangeStart = _arg1;
rangeEnd = ((_arg2 - _arg1) + 1);
}
}
}//package com.seld.util
Section 14
//movAutoEntryScreen0_18 (HiScores_fla.movAutoEntryScreen0_18)
package HiScores_fla {
import flash.display.*;
import flash.text.*;
public dynamic class movAutoEntryScreen0_18 extends MovieClip {
public var txtName:TextField;
public var txtMsg2:TextField;
public var btnEnterAnother:SimpleButton;
public var txtMsg1:TextField;
public var btnSubmit:SimpleButton;
}
}//package HiScores_fla
Section 15
//movAutoEntryScreen1_8 (HiScores_fla.movAutoEntryScreen1_8)
package HiScores_fla {
import flash.display.*;
import flash.text.*;
public dynamic class movAutoEntryScreen1_8 extends MovieClip {
public var txtName:TextField;
public var txtMsg2:TextField;
public var btnEnterAnother:SimpleButton;
public var txtMsg1:TextField;
public var btnSubmit:SimpleButton;
}
}//package HiScores_fla
Section 16
//movEntryScreen0_14 (HiScores_fla.movEntryScreen0_14)
package HiScores_fla {
import flash.display.*;
import flash.text.*;
public dynamic class movEntryScreen0_14 extends MovieClip {
public var txtName:TextField;
public var movCode:MovieClip;
public var txtMsg2:TextField;
public var btnRefreshCode:SimpleButton;
public var txtCode:TextField;
public var txtMsg1:TextField;
public var btnSubmit:SimpleButton;
}
}//package HiScores_fla
Section 17
//movEntryScreen1_4 (HiScores_fla.movEntryScreen1_4)
package HiScores_fla {
import flash.display.*;
import flash.text.*;
public dynamic class movEntryScreen1_4 extends MovieClip {
public var txtName:TextField;
public var movCode:MovieClip;
public var txtMsg2:TextField;
public var btnRefreshCode:SimpleButton;
public var txtCode:TextField;
public var txtMsg1:TextField;
public var btnSubmit:SimpleButton;
}
}//package HiScores_fla
Section 18
//movInfoScreen0_20 (HiScores_fla.movInfoScreen0_20)
package HiScores_fla {
import flash.display.*;
import flash.text.*;
public dynamic class movInfoScreen0_20 extends MovieClip {
public var btnView:SimpleButton;
public var txtInfo:TextField;
public var btnBack:SimpleButton;
}
}//package HiScores_fla
Section 19
//movInfoScreen1_10 (HiScores_fla.movInfoScreen1_10)
package HiScores_fla {
import flash.display.*;
import flash.text.*;
public dynamic class movInfoScreen1_10 extends MovieClip {
public var btnView:SimpleButton;
public var txtInfo:TextField;
public var btnBack:SimpleButton;
}
}//package HiScores_fla
Section 20
//movSkin0_13 (HiScores_fla.movSkin0_13)
package HiScores_fla {
import flash.display.*;
public dynamic class movSkin0_13 extends MovieClip {
public var movAutoEntryScreen:MovieClip;
public var movEntryScreen:MovieClip;
public var movInfoScreen:MovieClip;
}
}//package HiScores_fla
Section 21
//movSkin1_2 (HiScores_fla.movSkin1_2)
package HiScores_fla {
import flash.display.*;
public dynamic class movSkin1_2 extends MovieClip {
public var movAutoEntryScreen:MovieClip;
public var movEntryScreen:MovieClip;
public var movInfoScreen:MovieClip;
}
}//package HiScores_fla
Section 22
//b1_48 (INDEX_fla.b1_48)
package INDEX_fla {
import flash.display.*;
public dynamic class b1_48 extends MovieClip {
public function b1_48(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package INDEX_fla
Section 23
//b2_49 (INDEX_fla.b2_49)
package INDEX_fla {
import flash.display.*;
public dynamic class b2_49 extends MovieClip {
public function b2_49(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package INDEX_fla
Section 24
//b3_50 (INDEX_fla.b3_50)
package INDEX_fla {
import flash.display.*;
public dynamic class b3_50 extends MovieClip {
public function b3_50(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package INDEX_fla
Section 25
//b4_51 (INDEX_fla.b4_51)
package INDEX_fla {
import flash.display.*;
public dynamic class b4_51 extends MovieClip {
public function b4_51(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package INDEX_fla
Section 26
//b5_52 (INDEX_fla.b5_52)
package INDEX_fla {
import flash.display.*;
public dynamic class b5_52 extends MovieClip {
public function b5_52(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package INDEX_fla
Section 27
//btnPlay_53 (INDEX_fla.btnPlay_53)
package INDEX_fla {
import flash.display.*;
public dynamic class btnPlay_53 extends MovieClip {
public function btnPlay_53(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package INDEX_fla
Section 28
//delo_celek_87 (INDEX_fla.delo_celek_87)
package INDEX_fla {
import flash.display.*;
public dynamic class delo_celek_87 extends MovieClip {
public var drzak:MovieClip;
}
}//package INDEX_fla
Section 29
//deska_86 (INDEX_fla.deska_86)
package INDEX_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class deska_86 extends MovieClip {
public var smoke:MovieClip;
public var typ:c1;
public var delo:MovieClip;
public function deska_86(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
typ.gotoAndStop(MovieClip(root).cislo);
smoke.alpha = 0;
typ.visible = true;
}
function frame2(){
typ.visible = false;
}
}
}//package INDEX_fla
Section 30
//face1_17 (INDEX_fla.face1_17)
package INDEX_fla {
import flash.display.*;
public dynamic class face1_17 extends MovieClip {
public var tvar:MovieClip;
}
}//package INDEX_fla
Section 31
//howtoplay_43 (INDEX_fla.howtoplay_43)
package INDEX_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class howtoplay_43 extends MovieClip {
public var closeBtn:MovieClip;
public var btnLink:MovieClip;
public var link1:MovieClip;
public var link2:MovieClip;
public function howtoplay_43(){
addFrameScript(0, frame1, 1, frame2);
}
public function openLink(_arg1:MouseEvent):void{
if (_arg1.target.name == "link1"){
navigateToURL(new URLRequest("http://www.shajby.borec.cz"), "_blank");
} else {
navigateToURL(new URLRequest("http://www.flier.cz"), "_blank");
};
}
function frame1(){
stop();
}
function frame2(){
link1.addEventListener(MouseEvent.CLICK, openLink);
link2.addEventListener(MouseEvent.CLICK, openLink);
btnLink.addEventListener(MouseEvent.CLICK, MovieClip(root).openLink);
btnLink.buttonMode = true;
link1.buttonMode = true;
link2.buttonMode = true;
}
}
}//package INDEX_fla
Section 32
//kanon_88 (INDEX_fla.kanon_88)
package INDEX_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class kanon_88 extends MovieClip {
public function kanon_88(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
MovieClip(root).deska.typ.visible = true;
}
function frame2(){
MovieClip(root).deska.typ.visible = false;
}
}
}//package INDEX_fla
Section 33
//MainTimeline (INDEX_fla.MainTimeline)
package INDEX_fla {
import flash.display.*;
import flash.events.*;
import caurina.transitions.*;
import flash.media.*;
import com.seld.util.*;
import flash.utils.*;
import flash.text.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public var gameMap:Array;
public var timeChallenge:Timer;
public var menuTitle:MovieClip;
public var removed:Number;
public var eyes:Boolean;
public var challenge:Boolean;
public var scaler:Number;
public var empty_arr:Array;
public var meric:MovieClip;
public var totalRemoved:Number;
public var dolni_limit:MovieClip;
public var icon:MovieClip;
public var hiScores:HiScores;
public var posX:Number;
public var started:Boolean;
public var tf_time:TextField;
public var countForMagic:Number;
public var turnScan:MovieClip;
public var extra_round;
public var offset:Number;
public var minutes:Number;
public var deska:MovieClip;
public var btnHand:MovieClip;
public var power:Number;
public var holderPos:Number;
public var bloodmc:holder_mc;
public var timelimit:Number;
public var score_count:Number;
public var introMc:MovieClip;
public var totalBombs:Number;
public var scale:Number;
public var chosenObject:MovieClip;
public var time_challenge:Boolean;
public var btnUrl:SimpleButton;
public var row10:Array;
public var row11:Array;
public var row12:Array;
public var row13:Array;
public var row14:Array;
public var row15:Array;
public var row16:Array;
public var row18:Array;
public var row19:Array;
public var row17:Array;
public var row0:Array;
public var row1:Array;
public var row2:Array;
public var row3:Array;
public var btnExit:MovieClip;
public var row5:Array;
public var row6:Array;
public var row7:Array;
public var row8:Array;
public var row9:Array;
public var row21:Array;
public var row4:Array;
public var row23:Array;
public var row25:Array;
public var row26:Array;
public var row27:Array;
public var row20:Array;
public var row29:Array;
public var row22:Array;
public var holder:holder_mc;
public var magic:Boolean;
public var row28:Array;
public var readyToRemove:Number;
public var logo:movSplash;
public var row24:Array;
public var tweenscounter:Number;
public var row30:Array;
public var checking:Boolean;
public var totalGames:Number;
public var origLimit:Number;
public var counter:Number;
public var lostGames:Number;
public var tf_bombs:TextField;
public var buildingMap:Boolean;
public var survival_mode:Boolean;
public var testing:Boolean;
public var allowPlay:Boolean;
public var meduzasMagic:String;
public var danger:MovieClip;
public var fadeTimer:Timer;
public var weapon:Number;
public var orig:Number;
public var so;
public var arr:Array;
public var toBeRemoved:Array;
public var maskBlood:MovieClip;
public var seconds:Number;
public var magicType:String;
public var howManyRemoved:Number;
public var btnMute:MovieClip;
public var mastery_mode:Boolean;
public var flyingObject:MovieClip;
public var arr_bombs:Array;
public var btemplate:bloodySpoil;
public var player:String;
public var total_time:Number;
public var maska:MovieClip;
public var life:Number;
public var chosen1:MovieClip;
public var chosen2:MovieClip;
public var cislo:Number;
public var svetlo:MovieClip;
public var gen:SeededRand;
public var shield:Boolean;
public var movLoadingBar:MovieClip;
public var tf_level:TextField;
public var level:Number;
public var someDestroyed:Boolean;
public var monster_chosen:Number;
public var click1:Number;
public var click2:Number;
public var McOver:MovieClip;
public var txtPercent:TextField;
public var difficulty:Number;
public var whichLine:Number;
public var MonsterShield:Boolean;
public var monster:MovieClip;
public var audio:Number;
public var gameOver:Boolean;
public function MainTimeline(){
addFrameScript(0, frame1, 2, frame3);
}
public function removeMenu():void{
removeChild(introMc);
introMc = null;
initSettings();
}
public function checkPoints():void{
var _local1:uint;
var _local2:uint;
var _local3:*;
howManyRemoved = 0;
removed = 0;
toBeRemoved = new Array();
_local1 = 0;
while (_local1 < gameMap.length) {
_local2 = 0;
while (_local2 < gameMap[0].length) {
_local3 = 0;
while (_local3 < (gameMap[0].length - 2)) {
if (((((!((gameMap[_local1][_local3].type == 1))) && ((gameMap[_local1][_local3].type == gameMap[_local1][(_local3 + 1)].type)))) && ((gameMap[_local1][_local3].type == gameMap[_local1][(_local3 + 2)].type)))){
if (contain(gameMap[_local1][_local3], toBeRemoved) != 1){
toBeRemoved.push(gameMap[_local1][_local3]);
howManyRemoved++;
};
if (contain(gameMap[_local1][(_local3 + 1)], toBeRemoved) != 1){
toBeRemoved.push(gameMap[_local1][(_local3 + 1)]);
howManyRemoved++;
};
if (contain(gameMap[_local1][(_local3 + 2)], toBeRemoved) != 1){
toBeRemoved.push(gameMap[_local1][(_local3 + 2)]);
howManyRemoved++;
};
if (_local1 > 0){
if (gameMap[(_local1 - 1)][_local3]){
if (gameMap[(_local1 - 1)][_local3].type == gameMap[_local1][_local3].type){
if (contain(gameMap[(_local1 - 1)][_local3], toBeRemoved) != 1){
toBeRemoved.push(gameMap[(_local1 - 1)][_local3]);
howManyRemoved++;
};
};
};
if (gameMap[(_local1 - 1)][(_local3 + 1)]){
if (gameMap[(_local1 - 1)][(_local3 + 1)].type == gameMap[_local1][_local3].type){
if (contain(gameMap[(_local1 - 1)][(_local3 + 1)], toBeRemoved) != 1){
toBeRemoved.push(gameMap[(_local1 - 1)][(_local3 + 1)]);
howManyRemoved++;
};
};
};
if (gameMap[(_local1 - 1)][(_local3 + 2)]){
if (gameMap[(_local1 - 1)][(_local3 + 2)].type == gameMap[_local1][_local3].type){
if (contain(gameMap[(_local1 - 1)][(_local3 + 2)], toBeRemoved) != 1){
toBeRemoved.push(gameMap[(_local1 - 1)][(_local3 + 2)]);
howManyRemoved++;
};
};
};
};
if (_local1 < (gameMap.length - 1)){
if (gameMap[(_local1 + 1)][_local3]){
if (gameMap[(_local1 + 1)][_local3].type == gameMap[_local1][_local3].type){
if (contain(gameMap[(_local1 + 1)][_local3], toBeRemoved) != 1){
toBeRemoved.push(gameMap[(_local1 + 1)][_local3]);
howManyRemoved++;
};
};
};
if (gameMap[(_local1 + 1)][(_local3 + 1)]){
if (gameMap[(_local1 + 1)][(_local3 + 1)].type == gameMap[_local1][_local3].type){
if (contain(gameMap[(_local1 + 1)][(_local3 + 1)], toBeRemoved) != 1){
toBeRemoved.push(gameMap[(_local1 + 1)][(_local3 + 1)]);
howManyRemoved++;
};
};
};
if (gameMap[(_local1 + 1)][(_local3 + 2)]){
if (gameMap[(_local1 + 1)][(_local3 + 2)].type == gameMap[_local1][_local3].type){
if (contain(gameMap[(_local1 + 1)][(_local3 + 2)], toBeRemoved) != 1){
toBeRemoved.push(gameMap[(_local1 + 1)][(_local3 + 2)]);
howManyRemoved++;
};
};
};
};
};
_local3++;
};
if (((((!((gameMap[_local1][_local2].type == 1))) && ((gameMap[_local1][_local2].type == gameMap[(_local1 + 1)][_local2].type)))) && ((gameMap[(_local1 + 1)][_local2].type == gameMap[(_local1 + 2)][_local2].type)))){
if (contain(gameMap[_local1][_local2], toBeRemoved) != 1){
toBeRemoved.push(gameMap[_local1][_local2]);
howManyRemoved++;
};
if (contain(gameMap[(_local1 + 1)][_local2], toBeRemoved) != 1){
toBeRemoved.push(gameMap[(_local1 + 1)][_local2]);
howManyRemoved++;
};
if (contain(gameMap[(_local1 + 2)][_local2], toBeRemoved) != 1){
toBeRemoved.push(gameMap[(_local1 + 2)][_local2]);
howManyRemoved++;
};
if (gameMap[_local1][(_local2 - 1)]){
if (gameMap[_local1][(_local2 - 1)].type == gameMap[_local1][_local2].type){
if (contain(gameMap[_local1][(_local2 - 1)], toBeRemoved) != 1){
toBeRemoved.push(gameMap[_local1][(_local2 - 1)]);
howManyRemoved++;
};
};
};
if (_local1 < (gameMap.length - 1)){
if (gameMap[(_local1 + 1)][(_local2 - 1)]){
if (gameMap[(_local1 + 1)][(_local2 - 1)].type == gameMap[_local1][_local2].type){
if (contain(gameMap[(_local1 + 1)][(_local2 - 1)], toBeRemoved) != 1){
toBeRemoved.push(gameMap[(_local1 + 1)][(_local2 - 1)]);
howManyRemoved++;
};
};
};
};
if (_local1 < (gameMap.length - 2)){
if (gameMap[(_local1 + 2)][(_local2 - 1)]){
if (gameMap[(_local1 + 2)][(_local2 - 1)].type == gameMap[_local1][_local2].type){
if (contain(gameMap[(_local1 + 2)][(_local2 - 1)], toBeRemoved) != 1){
toBeRemoved.push(gameMap[(_local1 + 2)][(_local2 - 1)]);
howManyRemoved++;
};
};
};
};
if (gameMap[_local1][(_local2 + 1)]){
if (gameMap[_local1][(_local2 + 1)].type == gameMap[_local1][_local2].type){
if (contain(gameMap[_local1][(_local2 + 1)], toBeRemoved) != 1){
toBeRemoved.push(gameMap[_local1][(_local2 + 1)]);
howManyRemoved++;
};
};
};
if (_local1 < (gameMap.length - 1)){
if (gameMap[(_local1 + 1)][(_local2 + 1)]){
if (gameMap[(_local1 + 1)][(_local2 + 1)].type == gameMap[_local1][_local2].type){
if (contain(gameMap[(_local1 + 1)][(_local2 + 1)], toBeRemoved) != 1){
toBeRemoved.push(gameMap[(_local1 + 1)][(_local2 + 1)]);
howManyRemoved++;
};
};
};
};
if (_local1 < (gameMap.length - 2)){
if (gameMap[(_local1 + 2)][(_local2 + 1)]){
if (gameMap[(_local1 + 2)][(_local2 + 1)].type == gameMap[_local1][_local2].type){
if (contain(gameMap[(_local1 + 2)][(_local2 + 1)], toBeRemoved) != 1){
toBeRemoved.push(gameMap[(_local1 + 2)][(_local2 + 1)]);
howManyRemoved++;
};
};
};
};
};
_local2++;
};
_local1++;
};
totalRemoved = 0;
if (toBeRemoved.length > 0){
someDestroyed = true;
destroy();
} else {
allowPlay = true;
checkBallonsPosition(1);
};
}
public function buildMap(){
CreateRandomArray();
checkUnique();
}
public function startCountDown():void{
timeChallenge = new Timer(1000);
timeChallenge.addEventListener("timer", updateCountDown);
timeChallenge.start();
}
public function moveDown():void{
var _local1:*;
var _local2:*;
var _local3:MovieClip;
counter = 0;
tweenscounter = 0;
_local1 = (gameMap.length - 1);
while (_local1 > -1) {
_local2 = (gameMap[0].length - 1);
while (_local2 > -1) {
if (((!((gameMap[_local1][_local2].count == 0))) && (!((gameMap[_local1][_local2].count == undefined))))){
_local3 = gameMap[(_local1 - gameMap[_local1][_local2].count)][_local2];
gameMap[_local1][_local2].count = 0;
tweenscounter++;
Tweener.addTween(gameMap[_local1][_local2], {y:_local3.y, time:1, onComplete:changingFinished});
if (_local3.type == 1){
holder.removeChild(_local3);
_local3.removeEventListener(MouseEvent.MOUSE_DOWN, clickMeButton);
_local3.removeEventListener(MouseEvent.ROLL_OVER, rollMeButton);
_local3.removeEventListener(MouseEvent.ROLL_OUT, rollMeOutButton);
_local3.buttonMode = false;
_local3.mouseChildren = false;
_local3 = null;
};
};
_local2--;
};
_local1--;
};
}
public function rollMeOut(_arg1:MouseEvent):void{
if (_arg1.target.enabled){
_arg1.target.gotoAndStop(1);
};
}
public function clickOption(_arg1:MouseEvent):void{
if (_arg1.target.enabled){
if (_arg1.target.name == "btnStart"){
SoundMixer.stopAll();
runMap();
} else {
if (_arg1.target.name == "btnHow"){
introMc.howto.gotoAndStop(1);
introMc.addChild(introMc.howto);
Tweener.addTween(introMc.howto, {y:0, time:1});
} else {
if (_arg1.target.name == "btnScores"){
navigateToURL(new URLRequest("http://www.gimme5games.com/index.jsp?id=killheads_hs"), "_blank");
} else {
if (_arg1.target.name == "btnMore"){
trace("more link");
} else {
if (_arg1.target.name == "btnCredits"){
introMc.howto.gotoAndStop(2);
introMc.addChild(introMc.howto);
Tweener.addTween(introMc.howto, {y:0, time:1});
} else {
if (_arg1.target.name == "btnLoad"){
SoundMixer.stopAll();
loadGame();
};
};
};
};
};
};
};
}
public function addLostHandler():void{
McOver.addEventListener(MouseEvent.CLICK, launchNewAterLost);
saveGame((level - 1));
}
public function setHeight():void{
holder.y = arr.pos;
}
public function play_bc_sound():void{
trace((level % 2));
if ((level % 2) == 0){
playSound(new bc(), 1, 999);
} else {
playSound(new music2(), 0.7, 999, 1000);
};
}
public function initButtons():void{
introMc.btnStart.buttonMode = true;
introMc.btnHow.buttonMode = true;
introMc.btnScores.buttonMode = true;
introMc.btnCredits.buttonMode = true;
introMc.btnMore.buttonMode = true;
introMc.btnLoad.buttonMode = true;
introMc.btnStart.gotoAndStop(1);
introMc.btnHow.gotoAndStop(1);
introMc.btnScores.gotoAndStop(1);
introMc.btnCredits.gotoAndStop(1);
introMc.btnMore.gotoAndStop(1);
introMc.btnLoad.gotoAndStop(1);
introMc.btnStart.mouseChildren = false;
introMc.btnHow.mouseChildren = false;
introMc.btnScores.mouseChildren = false;
introMc.btnCredits.mouseChildren = false;
introMc.btnMore.mouseChildren = false;
introMc.btnLoad.mouseChildren = false;
introMc.btnStart.addEventListener(MouseEvent.ROLL_OVER, rollMe);
introMc.btnHow.addEventListener(MouseEvent.ROLL_OVER, rollMe);
introMc.btnCredits.addEventListener(MouseEvent.ROLL_OVER, rollMe);
introMc.btnMore.addEventListener(MouseEvent.ROLL_OVER, rollMe);
introMc.btnScores.addEventListener(MouseEvent.ROLL_OVER, rollMe);
introMc.btnLoad.addEventListener(MouseEvent.ROLL_OVER, rollMe);
introMc.btnStart.addEventListener(MouseEvent.ROLL_OUT, rollMeOut);
introMc.btnHow.addEventListener(MouseEvent.ROLL_OUT, rollMeOut);
introMc.btnScores.addEventListener(MouseEvent.ROLL_OUT, rollMeOut);
introMc.btnCredits.addEventListener(MouseEvent.ROLL_OUT, rollMeOut);
introMc.btnMore.addEventListener(MouseEvent.ROLL_OUT, rollMeOut);
introMc.btnLoad.addEventListener(MouseEvent.ROLL_OUT, rollMeOut);
introMc.btnStart.addEventListener(MouseEvent.CLICK, clickOption);
introMc.btnHow.addEventListener(MouseEvent.CLICK, clickOption);
introMc.btnCredits.addEventListener(MouseEvent.CLICK, clickOption);
introMc.btnMore.addEventListener(MouseEvent.CLICK, openLink);
introMc.btnLink.addEventListener(MouseEvent.CLICK, openLink);
introMc.btnLink.buttonMode = true;
introMc.btnLink.mouseChildren = false;
introMc.btnScores.addEventListener(MouseEvent.CLICK, clickOption);
introMc.btnLoad.addEventListener(MouseEvent.CLICK, clickOption);
introMc.howto.closeBtn.addEventListener(MouseEvent.CLICK, returnToMenu);
introMc.howto.closeBtn.buttonMode = true;
introMc.howto.closeBtn.mouseChildren = false;
if (!so.data.Level){
introMc.btnLoad.removeEventListener(MouseEvent.CLICK, clickOption);
introMc.btnLoad.removeEventListener(MouseEvent.ROLL_OVER, rollMe);
introMc.btnLoad.removeEventListener(MouseEvent.ROLL_OUT, rollMeOut);
introMc.btnLoad.alpha = 0.6;
introMc.btnLoad.buttonMode = false;
};
btnExit.addEventListener(MouseEvent.CLICK, exit);
btnExit.addEventListener(MouseEvent.ROLL_OVER, rollExit);
btnExit.addEventListener(MouseEvent.ROLL_OUT, rollExit);
btnExit.buttonMode = true;
btnExit.mouseChildren = false;
btnMute.addEventListener(MouseEvent.CLICK, mute);
btnMute.buttonMode = true;
btnMute.mouseChildren = false;
}
public function nextLevel():void{
timeChallenge.removeEventListener("timer", updateCountDown);
McOver = new mcOver();
addChild(McOver);
saveGame(level);
McOver.y = -(stage.stageHeight);
Tweener.addTween(McOver, {y:0, time:1, transition:"linear", onComplete:addList});
SoundMixer.stopAll();
playSound(new breathing(), 2, 0, 100);
playSound(new introMusic(), 1, 999, 4000);
}
function frame1(){
stop();
movLoadingBar.preload.scaleX = 0;
movLoadingBar.preload.addEventListener(Event.ENTER_FRAME, onEnterFramePreload);
btnUrl.addEventListener(MouseEvent.CLICK, openGimme);
logo.visible = false;
}
function frame3(){
MochiBot.track(this, "220c68af");
MochiBot.track(this, "7ed9bb90");
testing = false;
scaler = 0.9;
totalGames = 0;
lostGames = 0;
gameOver = false;
buildingMap = true;
meduzasMagic = "0";
extra_round = "0";
challenge = false;
mastery_mode = false;
time_challenge = false;
survival_mode = false;
allowPlay = true;
started = false;
score_count = 0;
origLimit = dolni_limit.y;
introMc = new Intro();
total_time = 0;
so = SharedObject.getLocal("killheads");
addIntro();
shield = false;
MonsterShield = false;
btnHand.addEventListener(MouseEvent.CLICK, openLink);
btnHand.addEventListener(MouseEvent.ROLL_OVER, handOver);
btnHand.addEventListener(MouseEvent.ROLL_OUT, handOver);
btnHand.buttonMode = true;
btnHand.mouseChildren = false;
svetlo.mouseEnabled = false;
menuTitle.mouseEnabled = false;
minutes = 0;
seconds = 0;
timelimit = 60;
orig = 60;
gen = new SeededRand((Math.random() * 2000));
checking = false;
someDestroyed = false;
toBeRemoved = new Array();
difficulty = 0;
counter = 0;
tweenscounter = 0;
scale = 1;
readyToRemove = 0;
weapon = 1;
totalBombs = 2;
arr_bombs = [];
audio = 1;
eyes = true;
bloodmc.mask = maskBlood;
stop();
}
public function setupDeska():void{
var _local1:Array;
var _local2:Number;
_local1 = checkCount();
if (_local1.length < 6){
if (_local1.length > 1){
_local2 = returnRealRandomForArr(0, (_local1.length - 1));
} else {
_local2 = 0;
};
cislo = Number(_local1[_local2]);
} else {
cislo = returnRealRandomForDesk();
};
deska.typ.gotoAndStop(cislo);
}
public function returnRealRandomForDesk():Number{
var _local1:SeededRand;
_local1 = new SeededRand((Math.random() * 2000));
_local1.setRange(2, 5);
return (_local1.ranged);
}
public function setupEyes(_arg1:MouseEvent):void{
var _local2:uint;
var _local3:uint;
if (eyes == true){
eyes = false;
} else {
eyes = true;
};
_local2 = 0;
while (_local2 < gameMap.length) {
_local3 = 0;
while (_local3 < gameMap[0].length) {
if (eyes == false){
gameMap[_local2][_local3].face.tvar.visible = false;
} else {
gameMap[_local2][_local3].face.tvar.visible = true;
};
_local3++;
};
_local2++;
};
}
public function makeMap():void{
var _local1:uint;
var _local2:uint;
var _local3:MovieClip;
var _local4:MovieClip;
initVariables();
arr.push([1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]);
arr.push([1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]);
arr.push([1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]);
arr.push([1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]);
arr.push([1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]);
arr.push([1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]);
arr.push([1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]);
arr.push([1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]);
arr.push([1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]);
arr.push([1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]);
arr.push([1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]);
_local1 = 0;
while (_local1 < arr.length) {
_local2 = 0;
while (_local2 < arr[0].length) {
_local4 = new c1();
_local4.x = (_local2 * posX);
_local4.y = (_local1 * posX);
_local4.scaleX = (_local4.scaleY = scaler);
_local3 = _local4;
holder.addChild(_local4);
_local3.cacheAsBitmap = true;
_local3.name = ((("t_" + _local1) + "_") + _local2);
_local3.addEventListener(MouseEvent.ROLL_OVER, rollMeButton);
_local3.addEventListener(MouseEvent.ROLL_OUT, rollMeOutButton);
_local3.addEventListener(MouseEvent.MOUSE_DOWN, clickMeButton);
_local3.buttonMode = true;
_local3.mouseChildren = false;
_local3.type = arr[_local1][_local2];
_local3.gotoAndStop(_local3.type);
this[("row" + _local1)].push(_local3);
_local2++;
};
gameMap.push(this[("row" + _local1)]);
_local1++;
};
addChild(holder);
holder.mask = maska;
setHeight();
started = true;
startCountDown();
totalBombs = arr.bombs;
tf_bombs.text = totalBombs.toString();
}
public function ukonciHru():void{
allowPlay = false;
timeChallenge.removeEventListener("timer", updateCountDown);
}
public function startTimeMode(_arg1:MouseEvent):void{
}
public function r():Number{
var _local1:Number;
var _local2:Number;
_local1 = 6;
_local2 = 2;
return (Math.floor(((Math.random() * (_local1 - _local2)) + _local2)));
}
public function clickMeButton(_arg1:MouseEvent):void{
var _local2:Number;
var _local3:Number;
if (allowPlay){
whichLine = (parseInt(_arg1.target.name.substr(-1)) - 1);
chosenObject = MovieClip(_arg1.target);
_local2 = findRow(chosenObject);
_local3 = findCollumn(chosenObject);
if (weapon == 1){
shootMe(checkLastInGroup(_local2, _local3), _local3);
} else {
highlightForBomb(_local2, _local3, true);
};
};
}
public function CreateRandomArray():void{
buildingMap = true;
arr = new Array();
arr = getRandomArr();
}
public function finish():void{
timeChallenge.removeEventListener("timer", updateCountDown);
McOver.gotoAndStop(3);
SoundMixer.stopAll();
playSound(new introMusic(), 1, 999, 2000);
}
public function rollMeOutButton(_arg1:MouseEvent):void{
var _local2:uint;
var _local3:uint;
if (allowPlay){
_local2 = 0;
while (_local2 < gameMap.length) {
_local3 = 0;
while (_local3 < gameMap[0].length) {
if (gameMap[_local2][_local3].terc != undefined){
gameMap[_local2][_local3].terc.visible = false;
};
_local3++;
};
_local2++;
};
};
}
public function deleteTxt():void{
introMc.txt1.text = "";
introMc.txt2.text = "";
introMc.txt3.text = "";
introMc.txt4.text = "";
}
public function setExtra(_arg1:Number):void{
Tweener.addTween(this[("extra_" + _arg1)], {scaleY:1, time:0.5});
}
public function contain(_arg1, _arg2){
var _local3:*;
var _local4:*;
_local3 = -1;
_local4 = 0;
while (_local4 < 100) {
if (_arg2[_local4] == _arg1){
_local3 = 1;
return (_local3);
};
_local4++;
};
}
public function highligthMe(_arg1:Number, _arg2:Number):void{
if (allowPlay){
gameMap[(_arg1 + 1)][_arg2].terc.visible = true;
gameMap[(_arg1 + 1)][_arg2].terc.gotoAndStop(2);
};
}
public function addList():void{
McOver.c.addEventListener(MouseEvent.CLICK, goNext);
McOver.subLevel.addEventListener(MouseEvent.CLICK, MovieClip(root).submitLevel);
McOver.subLevel.buttonMode = true;
McOver.subLevel.mouseChildren = false;
}
public function checkCount():Array{
var _local1:Number;
var _local2:Array;
var _local3:uint;
var _local4:uint;
_local1 = 0;
_local2 = [];
_local3 = 0;
while (_local3 < gameMap.length) {
_local4 = 0;
while (_local4 < gameMap[0].length) {
if (gameMap[_local3][_local4].type != 1){
_local1++;
_local2.push(gameMap[_local3][_local4].type);
};
_local4++;
};
_local3++;
};
return (_local2);
}
public function launchNew():void{
removeChild(McOver);
McOver = null;
initSettings();
play_bc_sound();
}
public function exit(_arg1:MouseEvent):void{
deleteAll();
Tweener.removeAllTweens();
timeChallenge.removeEventListener("timer", updateCountDown);
addIntro();
}
public function showDestructEffect(_arg1:MovieClip):void{
var _local2:*;
var _local3:Number;
var _local4:Rectangle;
var _local5:BitmapData;
var _local6:Bitmap;
var _local7:Point;
var _local8:Point;
var _local9:Number;
var _local10:Number;
var _local11:MovieClip;
var _local12:Number;
var _local13:Number;
_local2 = 0;
while (_local2 < 8) {
_local11 = new blood();
_local11.x = generujNahodneCislo(_arg1.x, _arg1.x);
_local11.y = generujNahodneCislo(_arg1.y, _arg1.y);
_local11.gotoAndStop(_arg1.type);
holder.addChild(_local11);
_local11.alpha = 0.8;
_local11.scaleX = (_local11.scaleY = 0.2);
_local12 = generujNahodneCislo((_local11.x - 100), (_local11.x + 100));
_local13 = generujNahodneCislo((_local11.y - 100), (_local11.y + 100));
Tweener.addTween(_local11, {x:_local12, y:_local13, scaleX:1, alpha:0, scaleY:1, time:0.5, transition:"linear", onComplete:removeEffect, onCompleteParams:[_local11]});
_local2++;
};
_local3 = Math.floor(generujNahodneCislo(1, 6));
btemplate.gotoAndStop(_local3);
_local4 = btemplate.getBounds(btemplate);
_local5 = new BitmapData(btemplate.width, btemplate.height, true, 0);
_local5.draw(btemplate, new Matrix(1, 0, 0, 1, -(_local4.x), -(_local4.y)));
_local6 = new Bitmap(_local5);
bloodmc.addChild(_local6);
_local6.alpha = 0.5;
_local7 = new Point(_arg1.x, _arg1.y);
_local8 = holder.localToGlobal(_local7);
if (_local3 == 1){
_local9 = (_local4.width / 4);
_local10 = (_local4.height / 4);
};
if (_local3 == 2){
_local9 = (_local4.width / 2.1);
_local10 = (_local4.height / 2.1);
};
if (_local3 == 3){
_local9 = (_local4.width / 1.8);
_local10 = (_local4.height / 2.2);
};
if (_local3 == 4){
_local9 = (_local4.width / 2.7);
_local10 = (_local4.height / 1.8);
};
if (_local3 == 5){
_local9 = (_local4.width / 1.8);
_local10 = (_local4.height / 2.5);
};
if (_local3 == 6){
_local9 = (_local4.width / 1.5);
_local10 = (_local4.height / 2.5);
};
_local6.x = (_local8.x - _local9);
_local6.y = (_local8.y - _local10);
Tweener.addTween(_local6, {alpha:0, time:5, transition:"linear", onComplete:removeBlood, onCompleteParams:[_local6]});
}
public function showIcon(_arg1:MouseEvent):void{
_arg1.target.icon.gotoAndPlay(2);
}
public function setTypes():void{
var _local1:Number;
var _local2:*;
var _local3:*;
var _local4:Boolean;
var _local5:*;
_local1 = 0;
_local2 = 0;
while (_local2 < gameMap.length) {
_local3 = 0;
while (_local3 < gameMap[0].length) {
_local4 = false;
_local5 = 0;
while (_local5 < holder.numChildren) {
if ((((holder.getChildAt(_local5).x == (_local3 * posX))) && ((holder.getChildAt(_local5).y == (_local2 * posX))))){
gameMap[_local2][_local3] = MovieClip(holder.getChildAt(_local5));
gameMap[_local2][_local3].type = MovieClip(holder.getChildAt(_local5)).currentFrame;
_local4 = true;
};
_local5++;
};
if (!_local4){
gameMap[_local2][_local3] = new c1();
gameMap[_local2][_local3].type = 1;
holder.addChild(gameMap[_local2][_local3]);
gameMap[_local2][_local3].scaleX = (gameMap[_local2][_local3].scaleY = scaler);
gameMap[_local2][_local3].x = (_local3 * posX);
gameMap[_local2][_local3].y = (_local2 * posX);
gameMap[_local2][_local3].addEventListener(MouseEvent.MOUSE_DOWN, clickMeButton);
gameMap[_local2][_local3].addEventListener(MouseEvent.ROLL_OVER, rollMeButton);
gameMap[_local2][_local3].addEventListener(MouseEvent.ROLL_OUT, rollMeOutButton);
gameMap[_local2][_local3].buttonMode = true;
gameMap[_local2][_local3].mouseChildren = false;
};
if (holder.numChildren == 188){
};
_local3++;
};
_local2++;
};
checkPoints();
}
public function returnRealRandom():Number{
gen.setRange(2, 5);
return (gen.ranged);
}
public function initSettings():void{
deleteAll();
buildMap();
setupDeska();
if (deska.smoke){
deska.smoke.alpha = 0;
};
seconds = 0;
minutes = 0;
tf_time.text = "00:00";
tf_level.text = level.toString();
}
public function submitScore(_arg1:MouseEvent):void{
var _local2:String;
addChild(hiScores);
hiScores.x = 162;
hiScores.y = 88;
_local2 = total_time.toString();
McOver.c.removeEventListener(MouseEvent.CLICK, submitScore);
McOver.c.buttonMode = false;
McOver.c.alpha = 0.3;
hiScores.setDetails(221, 13, "killheads", true, total_time, _local2, "seconds!");
}
public function findRow(_arg1:MovieClip):Number{
return (Math.floor((_arg1.y / posX)));
}
public function openLink(_arg1:MouseEvent):void{
navigateToURL(new URLRequest("http://www.gimme5games.com/?ref=killheads"), "_blank");
}
public function returnRealRandomForArr(_arg1:Number, _arg2:Number):Number{
var _local3:SeededRand;
_local3 = new SeededRand((Math.random() * 2000));
_local3.setRange(_arg1, _arg2);
return (_local3.ranged);
}
public function sort(_arg1:Object, _arg2:Object):Number{
return (((Math.random())<0.5) ? -1 : 1);
}
public function shootFinished(_arg1:MovieClip):void{
_arg1.shooted = false;
hitTest();
if (!gameOver){
setTypes();
deska.typ.visible = true;
setupDeska();
};
}
public function do_dead_sound():void{
}
public function exitFromEnd(_arg1:MouseEvent):void{
SoundMixer.stopAll();
removeChild(McOver);
McOver = null;
deleteAll();
Tweener.removeAllTweens();
timeChallenge.removeEventListener("timer", updateCountDown);
hiScores.x = -1000;
addIntro();
}
public function contain2(_arg1, _arg2):Boolean{
var _local3:Boolean;
var _local4:*;
_local3 = false;
_local4 = 0;
while (_local4 < 100) {
if (_arg2[_local4] == _arg1){
_local3 = true;
};
_local4++;
};
return (_local3);
}
public function handOver(_arg1:MouseEvent):void{
if (btnHand.currentFrame == 1){
btnHand.gotoAndPlay(2);
} else {
btnHand.gotoAndStop(1);
};
}
public function do_die_sound():void{
playSound(new die_sound(), 0.5, 0, 200);
}
public function goBack(_arg1:MouseEvent):void{
Tweener.addTween(_arg1.target.parent, {x:(_arg1.target.parent.x + 610), time:1.5});
}
public function loadGame():void{
playSound(new IntroSound(), 1, 0, 3000);
level = (so.data.Level + 1);
total_time = so.data.TotalTime;
if (level > 13){
level = 13;
};
introMc.blocker.mouseEnabled = true;
Tweener.addTween(introMc.blocker, {alpha:1, time:1.2, transition:"linear", onComplete:removeMenu});
play_bc_sound();
}
public function shootMe(_arg1:Number, _arg2:Number):void{
var _local3:Number;
var _local4:Number;
var _local5:Number;
if (allowPlay){
deska.typ.visible = false;
allowPlay = false;
_local3 = (_arg1 + 1);
_local4 = _arg2;
_local5 = cislo;
holder.addChild(gameMap[_local3][_local4]);
gameMap[_local3][_local4].scaleX = (gameMap[_local3][_local4].scaleY = scaler);
gameMap[_local3][_local4].type = cislo;
gameMap[_local3][_local4].terc.visible = false;
gameMap[_local3][_local4].gotoAndStop(cislo);
gameMap[_local3][_local4].addEventListener(MouseEvent.MOUSE_DOWN, clickMeButton);
gameMap[_local3][_local4].addEventListener(MouseEvent.ROLL_OVER, rollMeButton);
gameMap[_local3][_local4].addEventListener(MouseEvent.ROLL_OUT, rollMeOutButton);
gameMap[_local3][_local4].buttonMode = true;
gameMap[_local3][_local4].mouseChildren = false;
gameMap[_local3][_local4].shooted = true;
addChild(holder);
holder.mask = maska;
deska.smoke.alpha = 1;
deska.smoke.scaleX = (deska.smoke.scaleY = 1);
Tweener.addTween(deska.smoke, {scaleX:3, scaleY:3, alpha:0, time:0.3, transition:"linear"});
playSound(new shot_sound(), 0.3, 0, 0);
playSound(new reload(), 0.5, 0, 1000);
deska.delo.drzak.play();
shootFinished(gameMap[_local3][_local4]);
};
}
public function mute(_arg1:MouseEvent):void{
if (audio == 1){
audio = 0;
svetlo.gotoAndStop(1);
SoundMixer.soundTransform = new SoundTransform(0);
} else {
audio = 1;
svetlo.gotoAndStop(2);
SoundMixer.soundTransform = new SoundTransform(1);
};
}
public function checkBallonsPosition(_arg1:Number):void{
var _local2:Number;
var _local3:Number;
var _local4:uint;
var _local5:uint;
if (!gameOver){
_local2 = 0;
_local3 = 0;
_local4 = 0;
while (_local4 < gameMap.length) {
_local5 = 0;
while (_local5 < gameMap[0].length) {
_local3++;
if (gameMap[_local4][_local5].type == _arg1){
_local2++;
};
_local5++;
};
_local4++;
};
if (_local3 == _local2){
nextLevel();
};
};
}
public function playSound(_arg1:Sound, _arg2:Number, _arg3:Number=0, _arg4:Number=0):void{
var _local5:*;
var _local6:SoundTransform;
_local5 = _arg1.play(_arg4, _arg3);
_local6 = _local5.soundTransform;
_local6.volume = _arg2;
_local5.soundTransform = _local6;
}
public function gameLost():void{
timeChallenge.removeEventListener("timer", updateCountDown);
McOver = new mcOver();
addChild(McOver);
McOver.gotoAndStop(2);
McOver.y = -(stage.stageHeight);
Tweener.addTween(McOver, {y:0, time:1, transition:"linear", onComplete:addLostHandler});
SoundMixer.stopAll();
playSound(new eatSound(), 0.8, 0);
playSound(new introMusic(), 1, 999, 2000);
}
public function submitLevel(_arg1:MouseEvent):void{
var _local2:String;
McOver.subLevel.removeEventListener(MouseEvent.CLICK, MovieClip(root).submitLevel);
McOver.subLevel.buttonMode = false;
McOver.subLevel.alpha = 0.3;
addChild(hiScores);
hiScores.x = 162;
hiScores.y = 88;
_local2 = String(((minutes * 60) + seconds));
hiScores.setDetails(221, (level - 1), "killheads", true, Number(_local2), _local2, "seconds!");
}
public function addIntro():void{
SoundMixer.stopAll();
introMc = new Intro();
addChild(introMc);
initButtons();
playSound(new introMusic(), 1, 999);
}
public function initVariables():void{
posX = (40 * scaler);
dolni_limit.y = origLimit;
row0 = new Array();
row1 = new Array();
row2 = new Array();
row3 = new Array();
row4 = new Array();
row5 = new Array();
row6 = new Array();
row7 = new Array();
row8 = new Array();
row9 = new Array();
row10 = new Array();
row11 = new Array();
row12 = new Array();
row13 = new Array();
row14 = new Array();
row15 = new Array();
row16 = new Array();
row17 = new Array();
row18 = new Array();
row19 = new Array();
row20 = new Array();
row21 = new Array();
row22 = new Array();
row23 = new Array();
row24 = new Array();
row25 = new Array();
row26 = new Array();
row27 = new Array();
row28 = new Array();
row29 = new Array();
row30 = new Array();
gameMap = new Array();
howManyRemoved = 0;
removed = 0;
score_count = 0;
gameOver = false;
allowPlay = true;
}
public function findCollumn(_arg1:MovieClip):Number{
return (Math.floor((_arg1.x / posX)));
}
public function flyUp(_arg1:MovieClip, _arg2:Number):void{
Tweener.addTween(_arg1, {y:_arg2, time:0.5, onComplete:shootFinished});
}
public function openGimme(_arg1:MouseEvent):void{
navigateToURL(new URLRequest("http://www.gimme5games.com/?ref=killheads"), "_blank");
}
public function checkExtraRound(){
var _local1:*;
_local1 = 0;
while (_local1 < (toBeRemoved.length - 3)) {
if ((((((toBeRemoved[_local1].type == toBeRemoved[(_local1 + 1)].type)) && ((toBeRemoved[_local1].type == toBeRemoved[(_local1 + 2)].type)))) && ((toBeRemoved[_local1].type == toBeRemoved[(_local1 + 3)].type)))){
setExtra(toBeRemoved[_local1].type);
};
_local1++;
};
}
public function rollMeButton(_arg1:MouseEvent):void{
var _local2:Number;
var _local3:Number;
Tweener.addTween(deska, {x:(holder.x + _arg1.target.x), time:1});
if (allowPlay){
_local2 = findRow(MovieClip(_arg1.target));
_local3 = findCollumn(MovieClip(_arg1.target));
holder.addChild(gameMap[_local2][_local3]);
if (MovieClip(_arg1.target).currentFrame == 1){
highligthMe(checkLastInGroup(_local2, _local3), _local3);
weapon = 1;
icon.gotoAndStop("gun");
} else {
if (totalBombs > 0){
highlightForBomb(_local2, _local3, false);
weapon = 2;
icon.gotoAndStop("bomb");
};
};
};
}
public function onEnterFramePreload(_arg1:Event):void{
var _local2:uint;
var _local3:uint;
_local2 = this.root.loaderInfo.bytesLoaded;
_local3 = this.root.loaderInfo.bytesTotal;
_arg1.target.scaleX = (_local2 / _local3);
txtPercent.text = (Math.floor(((_local2 / _local3) * 100)) + "% loaded");
if (_local3 == _local2){
movLoadingBar.preload.removeEventListener(Event.ENTER_FRAME, onEnterFramePreload);
logo.visible = true;
logo.play();
};
}
public function checkLastInGroup(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
var _local4:*;
_local3 = -1;
_local4 = (gameMap.length - 1);
while (_local4 > -1) {
if (gameMap[_local4][_arg2].type != 1){
_local3 = _local4;
break;
};
_local4--;
};
return (_local3);
}
public function hitTest():void{
var _local1:Number;
var _local2:Number;
if ((((((started == true)) && (!(gameOver)))) && (allowPlay))){
_local1 = 0;
while (_local1 < gameMap.length) {
_local2 = 0;
while (_local2 < gameMap[0].length) {
if (((gameMap[_local1][_local2].hitTestObject(dolni_limit.electro)) && (!((gameMap[_local1][_local2].type == 1))))){
Tweener.removeAllTweens();
ukonciHru();
gameLost();
break;
};
_local2++;
};
_local1++;
};
};
}
public function setBombs():void{
totalBombs--;
tf_bombs.text = totalBombs.toString();
}
public function runMap():void{
level = 1;
play_bc_sound();
total_time = 0;
addChild(introMc);
playSound(new IntroSound(), 1, 0, 3000);
introMc.blocker.mouseEnabled = true;
Tweener.addTween(introMc.blocker, {alpha:1, time:1.2, transition:"linear", onComplete:removeMenu});
}
public function checkUnique():void{
var _local1:Number;
var _local2:*;
var _local3:Array;
var _local4:uint;
var _local5:uint;
_local1 = 0;
_local2 = arr;
_local3 = [];
_local4 = 0;
while (_local4 < _local2.length) {
_local5 = 0;
while (_local5 < _local2[0].length) {
if (((((!((_local2[_local4][_local5] == 1))) && ((_local2[_local4][_local5] == _local2[_local4][(_local5 + 1)])))) && ((_local2[_local4][_local5] == _local2[_local4][(_local5 + 2)])))){
_local1++;
_local2[_local4][_local5] = r();
break;
};
_local5++;
};
_local4++;
};
if (_local1 == 0){
_local4 = 0;
while (_local4 < _local2[0].length) {
_local5 = 0;
while (_local5 < (_local2.length - 2)) {
if (((((_local2[_local5][_local4]) && (_local2[(_local5 + 1)][_local4]))) && (_local2[(_local5 + 2)][_local4]))){
if (((((!((_local2[_local5][_local4] == 1))) && ((_local2[_local5][_local4] == _local2[(_local5 + 1)][_local4])))) && ((_local2[_local5][_local4] == _local2[(_local5 + 2)][_local4])))){
_local1++;
_local2[_local5][_local4] = r();
break;
};
};
_local5++;
};
_local4++;
};
};
if (_local1 == 0){
makeMap();
} else {
checkUnique();
};
}
public function rollMe(_arg1:MouseEvent):void{
if (_arg1.target.enabled){
_arg1.target.gotoAndStop(2);
};
}
public function saveGame(_arg1:Number):void{
so.data.Level = _arg1;
so.data.TotalTime = total_time;
so.flush();
}
public function generujNahodneCislo(_arg1:Number, _arg2:Number):Number{
return (((Math.random() * (_arg2 - _arg1)) + _arg1));
}
public function removeEffect(_arg1:MovieClip):void{
holder.removeChild(_arg1);
_arg1 = null;
totalRemoved++;
if (toBeRemoved.length == (totalRemoved / 8)){
if (tweenscounter == 0){
allowPlay = true;
checkBallonsPosition(1);
someDestroyed = false;
};
};
}
public function deleteHolder():void{
var _local1:uint;
_local1 = 0;
while (_local1 < holder.numChildren) {
holder.removeChild(holder.getChildAt(_local1));
_local1++;
};
if (holder.numChildren > 0){
deleteHolder();
};
_local1 = 0;
while (_local1 < bloodmc.numChildren) {
bloodmc.removeChild(bloodmc.getChildAt(_local1));
_local1++;
};
if (bloodmc.numChildren > 0){
deleteHolder();
};
}
public function updateScore(_arg1:Number):void{
}
public function rollExit(_arg1:MouseEvent):void{
if (menuTitle.currentFrame == 1){
menuTitle.gotoAndStop(2);
} else {
menuTitle.gotoAndStop(1);
};
}
public function launchNewAterLost(_arg1:MouseEvent):void{
hiScores.x = -1000;
McOver.blocker.mouseEnabled = true;
McOver.removeEventListener(MouseEvent.CLICK, launchNewAterLost);
Tweener.addTween(McOver.blocker, {alpha:1, time:1.5, transition:"linear", onComplete:launchNew});
SoundMixer.stopAll();
playSound(new nextS(), 0.6, 0, 200);
}
public function updateCountDown(_arg1:TimerEvent):void{
if (allowPlay){
Tweener.addTween(holder, {y:(holder.y + arr.speed), time:1, transition:"linear"});
hitTest();
total_time++;
seconds++;
if (seconds == 60){
seconds = 0;
minutes++;
};
tf_time.text = ((((checkZero(minutes) + minutes.toString()) + ":") + checkZero(seconds)) + seconds.toString());
};
}
public function rollMap(_arg1:MouseEvent):void{
if (_arg1.target.currentFrame == 1){
_arg1.target.gotoAndStop(2);
} else {
_arg1.target.gotoAndStop(1);
};
}
public function highlightForBomb(_arg1:Number, _arg2:Number, _arg3:Boolean):void{
arr_bombs = [];
gameMap[_arg1][_arg2].terc.visible = true;
gameMap[_arg1][_arg2].terc.gotoAndStop(2);
arr_bombs.push(gameMap[_arg1][_arg2]);
if ((_arg1 - 1) >= 0){
if (gameMap[(_arg1 - 1)][_arg2].currentFrame != 1){
gameMap[(_arg1 - 1)][_arg2].terc.visible = true;
gameMap[(_arg1 - 1)][_arg2].terc.gotoAndStop(2);
arr_bombs.push(gameMap[(_arg1 - 1)][_arg2]);
};
};
if ((_arg1 + 1) < gameMap.length){
if (gameMap[(_arg1 + 1)][_arg2].currentFrame != 1){
gameMap[(_arg1 + 1)][_arg2].terc.visible = true;
gameMap[(_arg1 + 1)][_arg2].terc.gotoAndStop(2);
arr_bombs.push(gameMap[(_arg1 + 1)][_arg2]);
};
};
if ((_arg2 - 1) >= 0){
if (gameMap[_arg1][(_arg2 - 1)].currentFrame != 1){
gameMap[_arg1][(_arg2 - 1)].terc.visible = true;
gameMap[_arg1][(_arg2 - 1)].terc.gotoAndStop(2);
arr_bombs.push(gameMap[_arg1][(_arg2 - 1)]);
};
};
if ((_arg2 + 1) < gameMap[0].length){
if (gameMap[_arg1][(_arg2 + 1)].currentFrame != 1){
gameMap[_arg1][(_arg2 + 1)].terc.visible = true;
gameMap[_arg1][(_arg2 + 1)].terc.gotoAndStop(2);
arr_bombs.push(gameMap[_arg1][(_arg2 + 1)]);
};
};
if (_arg3){
if ((((arr_bombs.length > 0)) && ((totalBombs > 0)))){
toBeRemoved = arr_bombs;
totalRemoved = 0;
allowPlay = false;
destroy();
playSound(new bomb(), 0.5, 0);
setBombs();
if (totalBombs == 0){
icon.gotoAndStop("gun");
weapon = 1;
};
};
};
}
public function flyDown(_arg1:MovieClip):void{
}
public function checkLast(_arg1:Number, _arg2:Number):Boolean{
var _local3:Number;
var _local4:Number;
var _local5:Number;
var _local6:Boolean;
var _local7:*;
_local3 = (gameMap.length - 2);
_local4 = (_local3 - _arg1);
_local5 = 0;
_local6 = false;
_local7 = _local3;
while (_local7 > _arg1) {
if (gameMap[_local7][_arg2].type == 1){
_local5++;
};
_local7--;
};
if (_local5 == _local4){
_local6 = true;
};
return (_local6);
}
public function checkZero(_arg1:Number):String{
if (_arg1 < 10){
return ("0");
};
return ("");
}
public function returnToMenu(_arg1:MouseEvent):void{
Tweener.addTween(introMc.howto, {y:-600, time:1});
}
public function sortMe():void{
var _local1:*;
var _local2:*;
var _local3:*;
_local1 = (gameMap.length - 1);
while (_local1 > -1) {
_local2 = (gameMap[0].length - 1);
while (_local2 > -1) {
if (gameMap[_local1][_local2].type != 1){
gameMap[_local1][_local2].count = 0;
_local3 = _local1;
while (_local3 > 0) {
if (gameMap[(_local3 - 1)][_local2].type == 1){
gameMap[_local1][_local2].count++;
};
_local3--;
};
};
_local2--;
};
_local1--;
};
moveDown();
}
public function removeBlood(_arg1):void{
if (_arg1){
bloodmc.removeChild(_arg1);
_arg1 = null;
};
}
public function getRandomArr():Array{
var _local1:*;
_local1 = new Array();
if (level == 1){
_local1 = [[1, 1, 1, 1, 1, 5, 2, 2, 3, 3, 4, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 4, 4, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
_local1.pos = 70;
_local1.speed = 2;
_local1.bombs = 1;
};
if (level == 2){
_local1 = [[1, 1, 1, 1, r(), r(), r(), r(), r(), r(), r(), r(), 1, 1, 1, 1], [1, 1, 1, 1, 1, r(), r(), r(), r(), r(), r(), 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, r(), r(), r(), r(), 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, r(), r(), r(), r(), 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, r(), r(), r(), r(), 1, 1, 1, 1, 1, 1]];
_local1.pos = 45;
_local1.speed = 2;
_local1.bombs = 1;
};
if (level == 3){
_local1 = [[r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r()], [r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r()], [r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r()], [1, 1, r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), 1, 1]];
_local1.pos = 55;
_local1.speed = 2;
_local1.bombs = 1;
};
if (level == 4){
_local1 = [[r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r()], [r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r()], [r(), r(), r(), 1, 1, r(), r(), r(), r(), r(), r(), 1, 1, r(), r(), r()], [r(), r(), 1, 1, 1, 1, r(), r(), r(), r(), 1, 1, 1, 1, r(), r()], [r(), 1, 1, 1, 1, 1, r(), 1, 1, r(), 1, 1, 1, 1, 1, r()], [1, 1, 1, 1, 1, 1, r(), 1, 1, r(), 1, 1, 1, 1, 1, 1]];
_local1.pos = 20;
_local1.speed = 2;
_local1.bombs = 1;
};
if (level == 5){
_local1 = [[r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r()], [1, r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), 1], [1, 1, r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), 1, 1], [1, 1, 1, r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), 1, 1, 1], [1, 1, 1, 1, r(), r(), r(), r(), r(), r(), r(), r(), 1, 1, 1, 1], [1, 1, 1, 1, 1, r(), r(), r(), r(), r(), r(), 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, r(), r(), r(), r(), 1, 1, 1, 1, 1, 1]];
_local1.pos = 35;
_local1.speed = 2.5;
_local1.bombs = 2;
};
if (level == 6){
_local1 = [[r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r()], [r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r()], [r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r()], [r(), r(), r(), 1, r(), r(), r(), r(), r(), r(), r(), r(), 1, r(), r(), r()], [r(), r(), r(), 1, 1, r(), r(), r(), r(), r(), r(), 1, 1, r(), r(), r()], [r(), r(), r(), 1, 1, 1, r(), r(), r(), r(), 1, 1, 1, r(), r(), r()], [1, r(), r(), 1, 1, 1, r(), r(), r(), r(), 1, 1, 1, r(), r(), 1], [1, 1, r(), 1, 1, 1, r(), r(), r(), r(), 1, 1, 1, r(), 1, 1], [1, 1, 1, 1, 1, 1, 1, r(), r(), 1, 1, 1, 1, 1, 1, 1]];
_local1.pos = 0;
_local1.speed = 2;
_local1.bombs = 2;
};
if (level == 7){
_local1 = [[r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r()], [r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r()], [r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r()], [r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r()], [r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r()], [r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r()], [r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r()], [r(), r(), r(), r(), r(), 1, 1, 1, 1, 1, 1, r(), r(), r(), r(), r()], [r(), r(), r(), r(), 1, 1, 1, 1, 1, 1, 1, 1, r(), r(), r(), r()], [r(), r(), r(), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, r(), r(), r()], [r(), r(), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, r(), r()], [r(), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, r()]];
_local1.pos = -95;
_local1.speed = 2;
_local1.bombs = 3;
};
if (level == 8){
_local1 = [[r(), 1, r(), r(), 1, 1, 1, r(), r(), 1, 1, 1, r(), r(), 1, r()], [r(), 1, r(), r(), 1, 1, 1, r(), r(), 1, 1, 1, r(), r(), 1, r()], [r(), 1, r(), r(), 1, 1, 1, r(), r(), 1, 1, 1, r(), r(), 1, r()], [r(), 1, r(), r(), 1, 1, 1, r(), r(), 1, 1, 1, r(), r(), 1, r()], [r(), 1, r(), r(), 1, 1, 1, r(), r(), 1, 1, 1, r(), r(), 1, r()]];
_local1.pos = 55;
_local1.speed = 2.5;
_local1.bombs = 2;
};
if (level == 10){
_local1 = [[r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r()], [r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r()], [r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r()], [r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r()], [r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r()], [r(), r(), r(), r(), r(), r(), r(), 1, 1, r(), r(), r(), r(), r(), r(), r()], [1, r(), r(), 1, 1, r(), r(), 1, 1, r(), r(), 1, 1, r(), r(), 1], [1, r(), r(), 1, 1, r(), r(), 1, 1, r(), r(), 1, 1, r(), r(), 1], [1, 1, r(), 1, 1, 1, r(), 1, 1, r(), 1, 1, 1, r(), 1, 1], [1, 1, 1, 1, 1, 1, r(), 1, 1, r(), 1, 1, 1, 1, 1, 1]];
_local1.pos = -60;
_local1.speed = 3;
_local1.bombs = 3;
};
if (level == 9){
_local1 = [[r(), r(), r(), r(), r(), 1, 1, r(), r(), 1, 1, r(), r(), r(), r(), r()], [r(), r(), r(), r(), r(), 1, 1, r(), r(), 1, 1, r(), r(), r(), r(), r()], [r(), r(), r(), r(), r(), 1, 1, r(), r(), 1, 1, r(), r(), r(), r(), r()], [r(), r(), r(), r(), r(), 1, 1, r(), r(), 1, 1, r(), r(), r(), r(), r()], [1, 1, 1, 1, 1, 1, 1, r(), r(), 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, r(), r(), 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, r(), r(), 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, r(), r(), 1, 1, 1, 1, 1, 1, 1]];
_local1.pos = 35;
_local1.speed = 2;
_local1.bombs = 2;
};
if (level == 11){
_local1 = [[r(), r(), 1, 1, r(), r(), r(), 1, 1, r(), r(), r(), 1, 1, r(), r()], [r(), r(), 1, 1, r(), r(), r(), 1, 1, r(), r(), r(), 1, 1, r(), r()], [r(), r(), 1, 1, r(), r(), r(), 1, 1, r(), r(), r(), 1, 1, r(), r()], [r(), r(), 1, 1, 1, r(), 1, 1, 1, 1, r(), 1, 1, 1, r(), r()]];
_local1.pos = 40;
_local1.speed = 5;
_local1.bombs = 2;
};
if (level == 12){
_local1 = [[r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r()], [r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r()], [r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r()], [r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r()], [r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r()], [r(), r(), r(), r(), r(), r(), r(), 1, 1, r(), r(), r(), r(), r(), r(), r()], [1, 1, r(), r(), r(), r(), r(), 1, 1, r(), r(), r(), r(), r(), 1, 1], [1, 1, r(), r(), r(), r(), r(), 1, 1, r(), r(), r(), r(), r(), 1, 1], [1, 1, 1, r(), r(), r(), r(), 1, 1, r(), r(), r(), r(), 1, 1, 1], [1, 1, 1, r(), r(), r(), r(), 1, 1, r(), r(), r(), r(), 1, 1, 1], [1, 1, 1, 1, r(), r(), r(), 1, 1, r(), r(), r(), 1, 1, 1, 1], [1, 1, 1, 1, r(), r(), r(), 1, 1, r(), r(), r(), 1, 1, 1, 1], [1, 1, 1, 1, 1, r(), r(), 1, 1, r(), r(), 1, 1, 1, 1, 1]];
_local1.pos = -175;
_local1.speed = 3;
_local1.bombs = 3;
};
if (level == 13){
_local1 = [[r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r()], [r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r()], [r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r()], [r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r()], [r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r()], [r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r()], [r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r()], [r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r()], [r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r()], [r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r()], [r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r()], [r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r()], [r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r()], [r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r()], [r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r(), r()]];
_local1.pos = -360;
_local1.speed = 2;
_local1.bombs = 3;
};
return (_local1);
}
public function destroy():void{
var _local1:*;
var _local2:Number;
var _local3:Number;
_local1 = 0;
while (_local1 < toBeRemoved.length) {
if (_local1 == 0){
do_die_sound();
};
showDestructEffect(toBeRemoved[_local1]);
_local2 = findRow(toBeRemoved[_local1]);
_local3 = findCollumn(toBeRemoved[_local1]);
gameMap[_local2][_local3].gotoAndStop(1);
gameMap[_local2][_local3].type = 1;
_local1++;
};
sortMe();
holder.mask = maska;
}
public function goNext(_arg1:MouseEvent):void{
if (level != 13){
if (McOver.currentFrame == 1){
level++;
};
hiScores.x = -1000;
McOver.blocker.mouseEnabled = true;
McOver.c.removeEventListener(MouseEvent.CLICK, goNext);
McOver.c.buttonMode = false;
Tweener.addTween(McOver.blocker, {alpha:1, time:1.5, transition:"linear", onComplete:launchNew});
SoundMixer.stopAll();
playSound(new nextS(), 0.6, 0, 200);
} else {
hiScores.x = -1000;
McOver.gotoAndStop(3);
};
}
public function deleteAll():void{
Tweener.removeAllTweens();
deleteHolder();
}
public function changingFinished():void{
counter++;
if (counter == tweenscounter){
setTypes();
};
}
}
}//package INDEX_fla
Section 34
//menu2_67 (INDEX_fla.menu2_67)
package INDEX_fla {
import flash.display.*;
public dynamic class menu2_67 extends MovieClip {
public function menu2_67(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package INDEX_fla
Section 35
//movLoadingBar_4 (INDEX_fla.movLoadingBar_4)
package INDEX_fla {
import flash.display.*;
public dynamic class movLoadingBar_4 extends MovieClip {
public var preload:MovieClip;
}
}//package INDEX_fla
Section 36
//oci_18 (INDEX_fla.oci_18)
package INDEX_fla {
import flash.display.*;
public dynamic class oci_18 extends MovieClip {
public var eye:MovieClip;
}
}//package INDEX_fla
Section 37
//rollout_101 (INDEX_fla.rollout_101)
package INDEX_fla {
import flash.display.*;
public dynamic class rollout_101 extends MovieClip {
public function rollout_101(){
addFrameScript(0, frame1, 29, frame30);
}
function frame1(){
stop();
}
function frame30(){
stop();
}
}
}//package INDEX_fla
Section 38
//sound_70 (INDEX_fla.sound_70)
package INDEX_fla {
import flash.display.*;
public dynamic class sound_70 extends MovieClip {
public function sound_70(){
addFrameScript(1, frame2);
}
function frame2(){
stop();
}
}
}//package INDEX_fla
Section 39
//Symbol43_83 (INDEX_fla.Symbol43_83)
package INDEX_fla {
import flash.display.*;
public dynamic class Symbol43_83 extends MovieClip {
public var electro:MovieClip;
}
}//package INDEX_fla
Section 40
//terc_20 (INDEX_fla.terc_20)
package INDEX_fla {
import flash.display.*;
public dynamic class terc_20 extends MovieClip {
public function terc_20(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
this.visible = false;
}
}
}//package INDEX_fla
Section 41
//bc (bc)
package {
import flash.media.*;
public dynamic class bc extends Sound {
}
}//package
Section 42
//blood (blood)
package {
import flash.display.*;
public dynamic class blood extends MovieClip {
}
}//package
Section 43
//bloodySpoil (bloodySpoil)
package {
import flash.display.*;
public dynamic class bloodySpoil extends MovieClip {
}
}//package
Section 44
//bomb (bomb)
package {
import flash.media.*;
public dynamic class bomb extends Sound {
}
}//package
Section 45
//breathing (breathing)
package {
import flash.media.*;
public dynamic class breathing extends Sound {
}
}//package
Section 46
//c1 (c1)
package {
import flash.display.*;
public dynamic class c1 extends MovieClip {
public var face:MovieClip;
public var terc:MovieClip;
public function c1(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
terc.visible = false;
}
}
}//package
Section 47
//die_sound (die_sound)
package {
import flash.media.*;
public dynamic class die_sound extends Sound {
}
}//package
Section 48
//eatSound (eatSound)
package {
import flash.media.*;
public dynamic class eatSound extends Sound {
}
}//package
Section 49
//HiScoreRow (HiScoreRow)
package {
public class HiScoreRow {
private var name:String;// = ""
private var score:Number;// = 0
private var levelId:Number;// = 0
public function HiScoreRow(){
levelId = 0;
name = "";
score = 0;
super();
}
public function getName():String{
return (this.name);
}
public function getLevelId():Number{
return (this.levelId);
}
public function toString():String{
return ((((((("[" + getLevelId()) + ",") + getName()) + ",") + getScore()) + "]"));
}
public function setName(_arg1:String):void{
this.name = _arg1;
}
public function setScore(_arg1:Number):void{
this.score = _arg1;
}
public function getScore():Number{
return (this.score);
}
public function setLevelId(_arg1:Number):void{
this.levelId = _arg1;
}
}
}//package
Section 50
//HiScores (HiScores)
package {
import flash.display.*;
import flash.events.*;
import com.hexagonstar.util.debug.*;
import flash.net.*;
import flash.external.*;
public dynamic class HiScores extends MovieClip {
private var fbUserExists:Boolean;
private var SKIN_ID:int;// = 0
private var DEBUG:Boolean;// = true
private var KEY:String;// = "rocket"
private var NUM_SKINS:int;// = 2
private var VERSION_NUM:String;// = "1.0.1"
private var autoEntryScreen:MovieClip;// = null
private var g5UserExists:Boolean;
private var theSkin:MovieClip;// = null
private var g5User:Object;
private var caller:Object;
public var movSkin0:MovieClip;
private var score:Number;
public var movSkin1:MovieClip;
private var lowIsBest:Boolean;
private var gameId:Number;
private var infoScreen:MovieClip;// = null
private var fbSessionKey:String;
private var fbUser:Object;
private var levelId:Number;
private var fbAppId:Number;
private var msg1:String;
private var msg2:String;
private var entryScreen:MovieClip;// = null
private var gameCode:String;
private static var SERVER_URLS:Array = ["http://www.gimme5games.com", "http://www.differencegames.com"];
private static var HS_SERVLET_URL:String = "";
private static var HI_SCORE_URL:String = "";
public static var G5HS_SERVER_ERROR:Number = -1;
public static var HS_DATA_DELIM_COL:String = "/";
private static var OP_HS_GET_DATA:Number = 1;
private static var SERVER_URL:String = "";
public static var G5HS_TOO_MANY_SCORES:Number = -2;
public static var HS_DATA_DELIM_ROW:String = ">";
public static var G5HS_SUCCESS:Number = 1;
public function HiScores(){
DEBUG = true;
VERSION_NUM = "1.0.1";
SKIN_ID = 0;
NUM_SKINS = 2;
KEY = "rocket";
theSkin = null;
entryScreen = null;
autoEntryScreen = null;
infoScreen = null;
super();
debug((("[G5AS3HiScores VERSION " + VERSION_NUM) + "]"));
this.visible = false;
setSkin(0);
}
public function setSkin(_arg1:Number):void{
this.SKIN_ID = _arg1;
SERVER_URL = SERVER_URLS[this.SKIN_ID];
HS_SERVLET_URL = (SERVER_URL + "/servlet/hiServlet");
HI_SCORE_URL = (SERVER_URL + "/index.jsp?id=");
}
public function submitHiScoreHandler(_arg1:Event):void{
var loader:URLLoader;
var resCode:Number;
var event = _arg1;
loader = URLLoader(event.target);
resCode = loader.data.res;
if (resCode == -1){
showInfoMessage("Could not store hi-score details. Click on back, generate a new security code and re-submit.", true);
} else {
if (resCode == 0){
showInfoMessage("Sorry, a better score already exists with that name.", false);
} else {
if (resCode == 1){
showInfoMessage("Congratulations! You made it into the\nhi-score table.", false);
try {
if (fbUserExists){
ExternalInterface.call("setFBHiScoresRefresh", true);
};
} catch(err:Error) {
};
};
};
};
}
public function enterAnotherName():void{
this.g5UserExists = false;
autoEntryScreen.visible = false;
showEntryScreen();
}
public function secCodeLoad():void{
var _local1:Loader;
var _local2:String;
_local1 = new Loader();
_local1.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, secCodeLoadError);
_local2 = ((HS_SERVLET_URL + "?type=genCode&cachebuster=") + new Date().getTime());
_local1.load(new URLRequest(_local2));
entryScreen["movCode"].addChild(_local1);
}
public function showInfoMessage(_arg1:String, _arg2:Boolean):void{
infoScreen["txtInfo"].text = _arg1;
infoScreen["btnBack"].visible = _arg2;
infoScreen["btnView"].visible = ((!(_arg2)) && (!(fbUserExists)));
}
private function showEntryScreen():void{
entryScreen["txtMsg1"].text = msg1;
entryScreen["txtMsg2"].text = msg2;
entryScreen["txtName"].text = "";
entryScreen["txtCode"].text = "";
entryScreen.visible = true;
secCodeLoad();
}
public function getHiScoreData(_arg1:Object, _arg2:Number, _arg3:int, _arg4:int, _arg5:int, _arg6:int, _arg7:Boolean):void{
var maxRecs:Number;
var vars:URLVariables;
var request:URLRequest;
var loader:URLLoader;
var caller = _arg1;
var gameId = _arg2;
var startPos = _arg3;
var endPos = _arg4;
var startLevel = _arg5;
var endLevel = _arg6;
var lowIsBest = _arg7;
this.caller = caller;
maxRecs = (((endPos + 1) - startPos) * ((endLevel + 1) - startLevel));
if (maxRecs <= 100){
vars = new URLVariables();
vars.op = OP_HS_GET_DATA;
vars.gameId = gameId;
vars.startPos = startPos;
vars.endPos = endPos;
vars.startLevel = startLevel;
vars.endLevel = endLevel;
vars.lowIsBest = lowIsBest;
request = new URLRequest(HS_SERVLET_URL);
loader = new URLLoader();
loader.dataFormat = URLLoaderDataFormat.VARIABLES;
request.data = vars;
request.method = URLRequestMethod.POST;
loader.addEventListener(Event.COMPLETE, function (_arg1:Event):void{
loadHandler(true, _arg1);
});
loader.addEventListener(IOErrorEvent.IO_ERROR, function (_arg1:Event):void{
loadHandler(false, _arg1);
});
loader.addEventListener(SecurityErrorEvent.SECURITY_ERROR, function (_arg1:Event):void{
loadHandler(false, _arg1);
});
loader.load(request);
} else {
caller.getHiScoreData_Callback(G5HS_TOO_MANY_SCORES, null);
};
}
private function debug(_arg1:String):void{
if (!DEBUG){
return;
};
trace(_arg1);
Debug.trace(_arg1);
}
public function submitScore():void{
var _local1:Boolean;
var _local2:String;
var _local3:String;
var _local4:Number;
var _local5:Number;
var _local6:URLVariables;
var _local7:URLRequest;
var _local8:URLLoader;
entryScreen.visible = false;
autoEntryScreen.visible = false;
infoScreen.visible = true;
_local1 = true;
if (((!(this.g5UserExists)) && ((entryScreen["txtName"].text.length == 0)))){
showInfoMessage("Please enter your name.", true);
} else {
if (((!(this.g5UserExists)) && (!((entryScreen["txtCode"].text.length == 5))))){
showInfoMessage("Please enter all 5 letters of the security code.", true);
} else {
showInfoMessage("Submitting hi-score details to the server, please wait.", true);
infoScreen["btnBack"].visible = false;
_local1 = false;
};
};
if (!_local1){
_local2 = "save|";
if (this.g5UserExists){
_local2 = (_local2 + ((((((("----------|-----|" + score) + "|") + gameId) + "|") + levelId) + "|") + this.g5User[0]));
} else {
if (this.fbUserExists){
_local2 = (_local2 + ((((((("----------|-----|" + score) + "|") + gameId) + "|") + levelId) + "|-----|") + this.fbUser[0]));
} else {
_local2 = (_local2 + ((((((((entryScreen["txtName"].text + "|") + entryScreen["txtCode"].text) + "|") + score) + "|") + gameId) + "|") + levelId));
};
};
_local3 = "";
_local4 = 0;
_local5 = 0;
while (_local4 < _local2.length) {
if (_local5 >= KEY.length){
_local5 = 0;
};
_local3 = (_local3 + String.fromCharCode(((_local2.charCodeAt(_local4) ^ KEY.charCodeAt(_local5)) + 1)));
_local4++;
_local5++;
};
_local6 = new URLVariables();
_local6.ffdata = _local3;
_local6.lowIsBest = lowIsBest;
if (this.fbUserExists){
_local6.fbAppId = this.fbAppId;
_local6.fbSessionKey = this.fbSessionKey;
};
_local7 = new URLRequest(HS_SERVLET_URL);
_local8 = new URLLoader();
_local8.dataFormat = URLLoaderDataFormat.VARIABLES;
_local7.data = _local6;
_local7.method = URLRequestMethod.POST;
_local8.addEventListener(Event.COMPLETE, submitHiScoreHandler);
_local8.addEventListener(IOErrorEvent.IO_ERROR, submitHiScoreError);
_local8.load(_local7);
};
}
public function secCodeLoadError(_arg1:IOErrorEvent):void{
entryScreen.visible = false;
infoScreen.visible = true;
showInfoMessage("Could not generate a security code. Click on back and try to refresh the code window.", true);
}
public function setDetails(_arg1:Number, _arg2:Number, _arg3:String, _arg4:Boolean, _arg5:Number, _arg6:String, _arg7:String):void{
var i:Number;
var gameId = _arg1;
var levelId = _arg2;
var gameCode = _arg3;
var lowIsBest = _arg4;
var score = _arg5;
var msg1 = _arg6;
var msg2 = _arg7;
debug(((((((((("[G5AS3HiScores::setDetails], gameId = " + gameId) + ", levelId = ") + levelId) + ", gameCode = ") + gameCode) + ", lowIsBest = ") + lowIsBest) + ", score = ") + score));
try {
this.g5User = ExternalInterface.call("getG5User");
this.g5UserExists = ((g5User == null)) ? false : !(isNaN(this.g5User[0]));
if (g5UserExists){
debug(((("[G5AS3HiScores::setDetails], g5UserExists, userId = " + this.g5User[0]) + ", userName = ") + this.g5User[1]));
} else {
this.fbUser = ExternalInterface.call("getFBUser");
this.fbUserExists = ((fbUser == null)) ? false : !(isNaN(this.fbUser[0]));
this.fbAppId = ExternalInterface.call("getFBAppId");
this.fbSessionKey = ExternalInterface.call("getFBSessionKey");
if (fbUserExists){
debug(((((((("[G5AS3HiScores::setDetails], fbUserExists, userId = " + this.fbUser[0]) + ", userName = ") + this.fbUser[1]) + ", appId = ") + this.fbAppId) + ", sessionKey = ") + this.fbSessionKey));
};
};
} catch(err:Error) {
};
this.gameId = gameId;
this.levelId = levelId;
this.gameCode = gameCode;
this.lowIsBest = lowIsBest;
this.score = score;
this.msg1 = msg1;
this.msg2 = msg2;
i = 0;
while (i < NUM_SKINS) {
this[("movSkin" + i)].visible = false;
i = (i + 1);
};
theSkin = this[("movSkin" + SKIN_ID)];
theSkin.visible = true;
entryScreen = theSkin["movEntryScreen"];
autoEntryScreen = theSkin["movAutoEntryScreen"];
infoScreen = theSkin["movInfoScreen"];
entryScreen.visible = false;
autoEntryScreen.visible = false;
infoScreen.visible = false;
entryScreen["btnRefreshCode"].addEventListener(MouseEvent.MOUSE_DOWN, onButtonPress);
entryScreen["btnSubmit"].addEventListener(MouseEvent.MOUSE_DOWN, onButtonPress);
autoEntryScreen["btnSubmit"].addEventListener(MouseEvent.MOUSE_DOWN, onButtonPress);
autoEntryScreen["btnEnterAnother"].addEventListener(MouseEvent.MOUSE_DOWN, onButtonPress);
infoScreen["btnView"].addEventListener(MouseEvent.MOUSE_DOWN, onButtonPress);
infoScreen["btnBack"].addEventListener(MouseEvent.MOUSE_DOWN, onButtonPress);
if (((this.g5UserExists) || (this.fbUserExists))){
showAutoEntryScreen();
} else {
showEntryScreen();
};
this.visible = true;
}
public function loadHandler(_arg1:Boolean, _arg2:Event):void{
var _local3:URLLoader;
var _local4:URLVariables;
var _local5:Array;
var _local6:Array;
var _local7:Number;
var _local8:Array;
var _local9:HiScoreRow;
if (_arg1){
_local3 = URLLoader(_arg2.target);
_local4 = new URLVariables(_local3.data);
_local5 = new Array();
_local6 = _local3.data.res.split(HS_DATA_DELIM_ROW);
_local7 = 0;
while (_local7 < _local6.length) {
_local8 = _local6[_local7].split(HS_DATA_DELIM_COL);
if (_local8[1] != null){
_local9 = new HiScoreRow();
_local9.setLevelId(_local8[0]);
_local9.setName(_local8[1]);
_local9.setScore(_local8[2]);
_local5.push(_local9);
};
_local7++;
};
caller.getHiScoreData_Callback(G5HS_SUCCESS, _local5);
} else {
caller.getHiScoreData_Callback(G5HS_SERVER_ERROR, null);
};
}
public function onButtonPress(_arg1:MouseEvent):void{
switch (_arg1.target.name){
case "btnRefreshCode":
secCodeLoad();
break;
case "btnSubmit":
submitScore();
break;
case "btnEnterAnother":
enterAnotherName();
break;
case "btnView":
viewScore();
break;
case "btnBack":
back();
break;
};
}
private function showAutoEntryScreen():void{
autoEntryScreen["txtMsg1"].text = msg1;
autoEntryScreen["txtMsg2"].text = msg2;
autoEntryScreen["txtName"].text = (g5UserExists) ? g5User[1] : fbUser[1];
autoEntryScreen["btnEnterAnother"].visible = g5UserExists;
autoEntryScreen.visible = true;
}
public function submitHiScoreError(_arg1:IOErrorEvent):void{
showInfoMessage("A serious problem was encountered with the server, please try again in a few minutes.", true);
}
public function viewScore():void{
var _local1:URLRequest;
_local1 = null;
if (this.g5UserExists){
_local1 = new URLRequest(((((((((HI_SCORE_URL + gameCode) + "_hs") + "&userId=") + this.g5User[0]) + "&levelId=") + levelId) + "&cachebuster=") + new Date().getTime()));
} else {
_local1 = new URLRequest(((((((((HI_SCORE_URL + gameCode) + "_hs") + "&name=") + entryScreen["txtName"].text) + "&levelId=") + levelId) + "&cachebuster=") + new Date().getTime()));
};
navigateToURL(_local1, "_blank");
}
public function back():void{
setDetails(this.gameId, this.levelId, this.gameCode, this.lowIsBest, this.score, this.msg1, this.msg2);
}
}
}//package
Section 51
//holder_mc (holder_mc)
package {
import flash.display.*;
public dynamic class holder_mc extends MovieClip {
}
}//package
Section 52
//Intro (Intro)
package {
import flash.display.*;
public dynamic class Intro extends MovieClip {
public var blocker:MovieClip;
public var btnHow:MovieClip;
public var btnStart:MovieClip;
public var btnLoad:MovieClip;
public var btnLink:MovieClip;
public var btnScores:MovieClip;
public var btnMore:MovieClip;
public var howto:MovieClip;
public var btnCredits:MovieClip;
public function Intro(){
addFrameScript(0, frame1);
}
function frame1(){
blocker.mouseEnabled = false;
}
}
}//package
Section 53
//introMusic (introMusic)
package {
import flash.media.*;
public dynamic class introMusic extends Sound {
}
}//package
Section 54
//IntroSound (IntroSound)
package {
import flash.media.*;
public dynamic class IntroSound extends Sound {
}
}//package
Section 55
//mcOver (mcOver)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class mcOver extends MovieClip {
public var blocker:MovieClip;
public var subLevel:MovieClip;
public var tf_total:TextField;
public var c:MovieClip;
public var tf_level:TextField;
public var tf_time:TextField;
public var btnMenu:MovieClip;
public function mcOver(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
public function convertTime(_arg1:Number):String{
var _local2:Array;
var _local3:Boolean;
var _local4:Number;
var _local5:Number;
_arg1 = Math.abs(_arg1);
_local2 = new Array(5);
_local2[0] = Math.floor(((_arg1 / 86400) / 7));
_local2[1] = Math.floor(((_arg1 / 86400) % 7));
_local2[2] = Math.floor(((_arg1 / 3600) % 24));
_local2[3] = Math.floor(((_arg1 / 60) % 60));
_local2[4] = Math.floor((_arg1 % 60));
_local3 = false;
_local4 = -1;
_local5 = 0;
while (_local5 < _local2.length) {
if (_local2[_local5] < 10){
_local2[_local5] = ("0" + _local2[_local5]);
};
if ((((((_local2[_local5] == "00")) && ((_local5 < (_local2.length - 2))))) && (!(_local3)))){
_local4 = _local5;
} else {
_local3 = true;
};
_local5++;
};
_local2.splice(0, (_local4 + 1));
return (_local2.join(":"));
}
function frame3(){
tf_total.text = String(convertTime(MovieClip(root).total_time));
c.buttonMode = true;
blocker.mouseEnabled = false;
c.addEventListener(MouseEvent.CLICK, MovieClip(root).submitScore);
btnMenu.addEventListener(MouseEvent.CLICK, MovieClip(root).exitFromEnd);
btnMenu.buttonMode = true;
btnMenu.mouseChildren = false;
}
function frame1(){
stop();
if (MovieClip(root).tf_time){
tf_time.text = MovieClip(root).tf_time.text;
tf_level.text = (MovieClip(root).level.toString() + "/13");
tf_total.text = String(convertTime(MovieClip(root).total_time));
};
c.buttonMode = true;
blocker.mouseEnabled = false;
}
function frame2(){
c.buttonMode = true;
blocker.mouseEnabled = false;
}
}
}//package
Section 56
//MochiBot (MochiBot)
package {
import flash.display.*;
import flash.net.*;
import flash.system.*;
public dynamic class MochiBot extends Sprite {
public static function track(_arg1:Sprite, _arg2:String):MochiBot{
var _local3:MochiBot;
var _local4:String;
var _local5:URLVariables;
var _local6:String;
var _local7:URLRequest;
var _local8:Loader;
if (Security.sandboxType == "localWithFile"){
return (null);
};
_local3 = new (MochiBot);
_arg1.addChild(_local3);
Security.allowDomain("*");
Security.allowInsecureDomain("*");
_local4 = "http://core.mochibot.com/my/core.swf";
_local5 = new URLVariables();
_local5["sb"] = Security.sandboxType;
_local5["v"] = Capabilities.version;
_local5["swfid"] = _arg2;
_local5["mv"] = "8";
_local5["fv"] = "9";
_local6 = _local3.root.loaderInfo.loaderURL;
if (_local6.indexOf("http") == 0){
_local5["url"] = _local6;
} else {
_local5["url"] = "local";
};
_local7 = new URLRequest(_local4);
_local7.contentType = "application/x-www-form-urlencoded";
_local7.method = URLRequestMethod.POST;
_local7.data = _local5;
_local8 = new Loader();
_local3.addChild(_local8);
_local8.load(_local7);
return (_local3);
}
}
}//package
Section 57
//movLoader (movLoader)
package {
import flash.display.*;
import flash.text.*;
public dynamic class movLoader extends Sprite {
public var movLoadingBar:MovieClip;
public var txtPercent:TextField;
}
}//package
Section 58
//movSplash (movSplash)
package {
import flash.display.*;
import flash.events.*;
import flash.net.*;
public dynamic class movSplash extends MovieClip {
public var btn:SimpleButton;
public var hand:MovieClip;
public var logo:MovieClip;
public function movSplash(){
addFrameScript(0, frame1, 98, frame99);
}
function frame1(){
stop();
logo.addEventListener(MouseEvent.CLICK, openGimme);
logo.buttonMode = true;
}
public function openGimme(_arg1:MouseEvent):void{
navigateToURL(new URLRequest("http://www.gimme5games.com/?ref=killheads"), "_blank");
}
function frame99(){
btn.addEventListener(MouseEvent.CLICK, launch);
stop();
}
public function launch(_arg1:MouseEvent):void{
MovieClip(root).gotoAndStop(3);
}
}
}//package
Section 59
//music2 (music2)
package {
import flash.media.*;
public dynamic class music2 extends Sound {
}
}//package
Section 60
//nextS (nextS)
package {
import flash.media.*;
public dynamic class nextS extends Sound {
}
}//package
Section 61
//pozadi3 (pozadi3)
package {
import flash.display.*;
public dynamic class pozadi3 extends MovieClip {
}
}//package
Section 62
//reload (reload)
package {
import flash.media.*;
public dynamic class reload extends Sound {
}
}//package
Section 63
//shot_sound (shot_sound)
package {
import flash.media.*;
public dynamic class shot_sound extends Sound {
}
}//package
Section 64
//sndSlap (sndSlap)
package {
import flash.media.*;
public dynamic class sndSlap extends Sound {
}
}//package
Section 65
//spark (spark)
package {
import flash.display.*;
public dynamic class spark extends MovieClip {
public function spark(){
addFrameScript(22, frame23);
}
function frame23(){
gotoAndStop("loop");
}
}
}//package