[Tools][Expand/Collapse All]Note that automatic extraction of ActionScript 3 is still pretty much unsupported by swfchan. AS1/AS2 works okay most of the time.Section 1 (1.05 KiB) ●
//AuxFunctions (caurina.transitions.AuxFunctions)
package caurina.transitions {
public class AuxFunctions {
public static function getObjectLength(_arg1:Object):uint{
var _local3:String;
var _local2:uint;
for (_local3 in _arg1) {
_local2++;
};
return (_local2);
}
public static function numberToG(_arg1:Number):Number{
return (((_arg1 & 0xFF00) >> 8));
}
public static function numberToB(_arg1:Number):Number{
return ((_arg1 & 0xFF));
}
public static function numberToR(_arg1:Number):Number{
return (((_arg1 & 0xFF0000) >> 16));
}
public static function concatObjects(... _args):Object{
var _local3:Object;
var _local5:String;
var _local2:Object = {};
var _local4:int;
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);
}
}
}//package caurina.transitions
Section 2 (16.87 KiB) ● ● ●
//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 _local7:Number;
if (_arg1 == 0){
return (_arg2);
};
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 == 2){
return ((_arg2 + _arg3));
};
var _local6:Number = (((!(Boolean(_arg5))) || (isNaN(_arg5.period)))) ? (_arg4 * (0.3 * 1.5)) : _arg5.period;
var _local8:Number = (((!(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 = (((!(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 = (((!(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 = (((!(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 _local7:Number;
if (_arg1 == 0){
return (_arg2);
};
_arg1 = (_arg1 / _arg4);
if (_arg1 == 1){
return ((_arg2 + _arg3));
};
var _local6:Number = (((!(Boolean(_arg5))) || (isNaN(_arg5.period)))) ? (_arg4 * 0.3) : _arg5.period;
var _local8:Number = (((!(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 _local7:Number;
if (_arg1 == 0){
return (_arg2);
};
_arg1 = (_arg1 / _arg4);
if (_arg1 == 1){
return ((_arg2 + _arg3));
};
var _local6:Number = (((!(Boolean(_arg5))) || (isNaN(_arg5.period)))) ? (_arg4 * 0.3) : _arg5.period;
var _local8:Number = (((!(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 (2.09 KiB) ●
//PropertyInfoObj (caurina.transitions.PropertyInfoObj)
package caurina.transitions {
public class PropertyInfoObj {
public var modifierParameters:Array;
public var isSpecialProperty:Boolean;
public var valueComplete:Number;
public var modifierFunction:Function;
public var extra:Object;
public var valueStart:Number;
public var hasModifier:Boolean;
public var arrayIndex:Number;
public var originalValueComplete:Object;
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 = "\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 = new PropertyInfoObj(valueStart, valueComplete, originalValueComplete, arrayIndex, extra, isSpecialProperty, modifierFunction, modifierParameters);
return (_local1);
}
}
}//package caurina.transitions
Section 4 (979 B)
//SpecialProperty (caurina.transitions.SpecialProperty)
package caurina.transitions {
public class SpecialProperty {
public var parameters:Array;
public var getValue:Function;
public var preProcess:Function;
public var setValue: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 = "";
_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 (697 B)
//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 = "";
_local1 = (_local1 + "[SpecialPropertyModifier ");
_local1 = (_local1 + ("modifyValues:" + String(modifyValues)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("getValue:" + String(getValue)));
_local1 = (_local1 + "]");
return (_local1);
}
}
}//package caurina.transitions
Section 6 (695 B)
//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 = "";
_local1 = (_local1 + "[SpecialPropertySplitter ");
_local1 = (_local1 + ("splitValues:" + String(splitValues)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("parameters:" + String(parameters)));
_local1 = (_local1 + "]");
return (_local1);
}
}
}//package caurina.transitions
Section 7 (26.67 KiB) ● ● ●
//Tweener (caurina.transitions.Tweener)
package caurina.transitions {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
public class Tweener {
private static var _timeScale:Number = 1;
private static var _currentTimeFrame:Number;
private static var _specialPropertySplitterList:Object;
public static var autoOverwrite:Boolean = true;
private static var _engineExists:Boolean = false;
private static var _currentTime:Number;
private static var _tweenList:Array;
private static var _specialPropertyModifierList:Object;
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{
if (!_inited){
init();
};
var _local4:SpecialPropertyModifier = new SpecialPropertyModifier(_arg2, _arg3);
_specialPropertyModifierList[_arg1] = _local4;
}
public static function registerSpecialProperty(_arg1:String, _arg2:Function, _arg3:Function, _arg4:Array=null, _arg5:Function=null):void{
if (!_inited){
init();
};
var _local6:SpecialProperty = 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 _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];
};
var _local5:Object = _arg2;
if (!_inited){
init();
};
if (((!(_engineExists)) || (!(Boolean(__tweener_controller__))))){
startEngine();
};
var _local6:Number = (isNaN(_local5.time)) ? 0 : _local5.time;
var _local7:Number = (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 _local2:uint;
if (!Boolean(_tweenList)){
return (false);
};
var _local1:Boolean;
_local2 = 0;
while (_local2 < _tweenList.length) {
pauseTweenByIndex(_local2);
_local1 = true;
_local2++;
};
return (_local1);
}
public static function removeTweens(_arg1:Object, ... _args):Boolean{
var _local4:uint;
var _local5:SpecialPropertySplitter;
var _local6:Array;
var _local7:uint;
var _local3:Array = new Array();
_local4 = 0;
while (_local4 < _args.length) {
if ((((typeof(_args[_local4]) == "string")) && ((_local3.indexOf(_args[_local4]) == -1)))){
if (_specialPropertySplitterList[_args[_local4]]){
_local5 = _specialPropertySplitterList[_args[_local4]];
_local6 = _local5.splitValues(_arg1, null);
_local7 = 0;
while (_local7 < _local6.length) {
_local3.push(_local6[_local7].name);
_local7++;
};
} else {
_local3.push(_args[_local4]);
};
};
_local4++;
};
return (affectTweens(removeTweenByIndex, _arg1, _local3));
}
public static function updateFrame():void{
_currentTimeFrame++;
}
public static function splitTweens(_arg1:Number, _arg2:Array):uint{
var _local5:uint;
var _local6:String;
var _local7:Boolean;
var _local3:TweenListObj = _tweenList[_arg1];
var _local4:TweenListObj = _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 resumeTweenByIndex(_arg1:Number):Boolean{
var _local2:TweenListObj = _tweenList[_arg1];
if ((((_local2 == null)) || (!(_local2.isPaused)))){
return (false);
};
var _local3:Number = 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.33.74");
}
public static function onEnterFrame(_arg1:Event):void{
updateTime();
updateFrame();
var _local2:Boolean;
_local2 = updateTweens();
if (!_local2){
stopEngine();
};
}
public static function updateTime():void{
_currentTime = getTimer();
}
private static function updateTweenByIndex(_arg1:Number):Boolean{
var tTweening:TweenListObj;
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 tProperty:Object;
var pv:Number;
var i = _arg1;
tTweening = _tweenList[i];
if ((((tTweening == null)) || (!(Boolean(tTweening.scope))))){
return (false);
};
var isOver:Boolean;
var cTime:Number = 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(e2:Error) {
handleError(tTweening, e2, "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(e3:Error) {
handleError(tTweening, e3, "onUpdate");
};
};
} else {
tTweening.updatesSkipped++;
};
};
if (((isOver) && (Boolean(tTweening.onComplete)))){
eventScope = (Boolean(tTweening.onCompleteScope)) ? tTweening.onCompleteScope : tScope;
try {
tTweening.onComplete.apply(eventScope, tTweening.onCompleteParams);
} catch(e4:Error) {
handleError(tTweening, e4, "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 _local2:uint;
if (!Boolean(_tweenList)){
return (false);
};
var _local1:Boolean;
_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 _local2:uint;
if (!Boolean(_tweenList)){
return (false);
};
var _local1:Boolean;
_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 _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];
};
var _local7:Object = TweenListObj.makePropertiesChain(_arg2);
if (!_inited){
init();
};
if (((!(_engineExists)) || (!(Boolean(__tweener_controller__))))){
startEngine();
};
var _local8:Number = (isNaN(_local7.time)) ? 0 : _local7.time;
var _local9:Number = (isNaN(_local7.delay)) ? 0 : _local7.delay;
var _local10:Array = new Array();
var _local11:Object = {overwrite:true, 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};
var _local12:Object = 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;
if (((_local7.overwrite == undefined)) ? autoOverwrite : _local7.overwrite){
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 _local5:uint;
var _local6:Array;
var _local7:uint;
var _local8:uint;
var _local9:uint;
var _local4:Boolean;
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;
if (!Boolean(_tweenList)){
return ([]);
};
var _local4:Array = 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 = _tweenList[_arg1];
if ((((_local2 == null)) || (_local2.isPaused))){
return (false);
};
_local2.timePaused = getCurrentTweeningTime(_local2);
_local2.isPaused = true;
return (true);
}
public static function getTweenCountAll():Number{
var _local1:uint;
if (!Boolean(_tweenList)){
return (0);
};
var _local2:Number = 0;
_local1 = 0;
while (_local1 < _tweenList.length) {
if (Boolean(_tweenList[_local1])){
_local2 = (_local2 + AuxFunctions.getObjectLength(_tweenList[_local1].properties));
};
_local1++;
};
return (_local2);
}
public static function getTweenCount(_arg1:Object):Number{
var _local2:uint;
if (!Boolean(_tweenList)){
return (0);
};
var _local3:Number = 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 getCurrentTweeningTime(_arg1:Object):Number{
return ((_arg1.useFrames) ? _currentTimeFrame : _currentTime);
}
public static function removeTweensByTime(_arg1:Object, _arg2:Object, _arg3:Number, _arg4:Number):Boolean{
var removedLocally:Boolean;
var i:uint;
var pName:String;
var eventScope:Object;
var p_scope = _arg1;
var p_properties = _arg2;
var p_timeStart = _arg3;
var p_timeComplete = _arg4;
var removed:Boolean;
var tl:uint = _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{
if (!_inited){
init();
};
var _local4:SpecialPropertySplitter = 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 _local4:uint;
var _local3:Array = new Array();
_local4 = 0;
while (_local4 < _args.length) {
if ((((typeof(_args[_local4]) == "string")) && ((_local3.indexOf(_args[_local4]) == -1)))){
_local3.push(_args[_local4]);
};
_local4++;
};
return (affectTweens(resumeTweenByIndex, _arg1, _local3));
}
public static function pauseTweens(_arg1:Object, ... _args):Boolean{
var _local4:uint;
var _local3:Array = new Array();
_local4 = 0;
while (_local4 < _args.length) {
if ((((typeof(_args[_local4]) == "string")) && ((_local3.indexOf(_args[_local4]) == -1)))){
_local3.push(_args[_local4]);
};
_local4++;
};
return (affectTweens(pauseTweenByIndex, _arg1, _local3));
}
}
}//package caurina.transitions
Section 8 (7.1 KiB) ● ●
//TweenListObj (caurina.transitions.TweenListObj)
package caurina.transitions {
public class TweenListObj {
public var hasStarted:Boolean;
public var onUpdate:Function;
public var useFrames:Boolean;
public var count:Number;
public var onOverwriteParams:Array;
public var timeStart: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 isCaller:Boolean;
public var timePaused:Number;
public var transition:Function;
public var onCompleteParams:Array;
public var onError:Function;
public var timesCalled:Number;
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 _local3:String;
var _local2:TweenListObj = 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 _local3:String;
var _local1 = "\n[TweenListObj ";
_local1 = (_local1 + ("scope:" + String(scope)));
_local1 = (_local1 + ", properties:");
var _local2:Boolean;
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 _local3:Object;
var _local4:Object;
var _local5:Object;
var _local6:Number;
var _local7:Number;
var _local8:Number;
var _local2:Object = _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 (3.99 KiB) ●
//_bd384 (classes._bd384)
package classes {
import flash.display.*;
public class _bd384 {
public var user_spacer:Number;// = 0
public var Sprites:Array;
public var user_counter:Number;// = 0
public var user_state:int;// = 0
public function _bd384(){
Sprites = [];
super();
}
public function _bx384(_arg1:Sprite, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:int, _arg7:Boolean=true, _arg8:Boolean=true, _arg9:uint=0):_fj62{
var _local10:_fj62;
_local10 = new _fj62();
_local10._hu480(_arg1, _arg6, _arg2, _arg3, _arg7, _arg9, _arg8);
_local10._tk63(_arg4, _arg5);
Sprites[Sprites.length] = _local10;
return (_local10);
}
public function _lx393(_arg1:int=0):_fj62{
var _local2:int;
var _local3:_fj62;
var _local4:_fj62;
var _local5:int = (Sprites.length - 1);
_local2 = _local5;
while (_local2 >= 0) {
_local3 = Sprites[_local2];
if (_local3.id == _arg1){
_local4 = _local3;
break;
};
_local2--;
};
return (_local4);
}
public function _cn361(_arg1:Number):void{
var _local4:_fj62;
var _local2:int = (Sprites.length - 1);
var _local3:int = _local2;
while (_local3 >= 0) {
_local4 = Sprites[_local3];
_local4._uc442(_arg1);
if (_local4.timetodie == true){
_local4._ew499();
Sprites.splice(_local3, 1);
_local4 = null;
};
_local3--;
};
}
public function _gn273(_arg1:Sprite, _arg2:BitmapData, _arg3:Number, _arg4:Number, _arg5:int, _arg6:Function, _arg7:Function, _arg8:Function, _arg9:uint=0):_fj62{
var _local10:_fj62;
_local10 = new _fj62();
_local10._sf356(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8, _arg9);
Sprites[Sprites.length] = _local10;
return (_local10);
}
public function _wr450():void{
var _local1:_fj62;
for each (_local1 in Sprites) {
_local1.timetodie = true;
};
}
public function _gk338(_arg1:Number=0.001):void{
var _local2:_fj62;
for each (_local2 in Sprites) {
_local2._vw503(-(_arg1), 1);
};
}
public function _tq134(_arg1:int):Boolean{
var _local2:_fj62;
var _local3:Boolean;
for each (_local2 in Sprites) {
if (_local2.id1 == _arg1){
_local3 = true;
};
};
return (_local3);
}
public function _gw216():int{
return (Sprites.length);
}
public function _kc483(_arg1:Object, _arg2:Number):void{
var _local5:_fj62;
var _local3:int = (Sprites.length - 1);
var _local4:int = _local3;
while (_local4 >= 0) {
_local5 = Sprites[_local4];
_local5._uc442(_arg2);
_arg1(_local5);
if (_local5.timetodie == true){
_local5._ew499();
Sprites.splice(_local4, 1);
_local5 = null;
};
_local4--;
};
}
public function _es284(_arg1:_fj62):void{
Sprites[Sprites.length] = _arg1;
}
public function _mc263(_arg1:Sprite, _arg2:BitmapData, _arg3:Number, _arg4:Number, _arg5:int, _arg6:Boolean=true, _arg7:Boolean=true, _arg8:uint=0):_fj62{
var _local9:_fj62;
_local9 = new _fj62();
_local9._hu480(_arg1, _arg5, _arg2.width, _arg2.height, _arg6, _arg8, _arg7);
_local9._tk63(_arg3, _arg4);
_local9._aw184(_arg2);
Sprites[Sprites.length] = _local9;
return (_local9);
}
public function _pg184(_arg1:int=0):_fj62{
var _local2:int;
var _local3:_fj62;
var _local4:_fj62;
var _local5:int = (Sprites.length - 1);
_local2 = _local5;
while (_local2 >= 0) {
_local3 = Sprites[_local2];
if (_local3.id1 == _arg1){
_local4 = _local3;
break;
};
_local2--;
};
return (_local4);
}
public function _mb480(_arg1:int=0):void{
var _local2:int;
var _local3:Object;
var _local4:int = (Sprites.length - 1);
_local2 = _local4;
while (_local2 >= 0) {
_local3 = Sprites[_local2];
if (_arg1 > 0){
if (_local3.id1 == _arg1){
Sprites.splice(_local2, 1);
_local3._ew499();
_local3 = null;
};
} else {
Sprites.splice(_local2, 1);
_local3._ew499();
_local3 = null;
};
_local2--;
};
}
}
}//package classes
Section 10 (4.48 KiB) ●
//_dt25 (classes._dt25)
package classes {
import flash.geom.*;
public class _dt25 {
private static var mycalc:Number = 57.2957795130823;
private static var rect:Rectangle;
private static var mypi:Number = 6.28318530717959;
private static var point:Point;
private static var mycalc2:Number = 0.0174532925199433;
public static function _lb434(_arg1:_ra247, _arg2:_ra247):Boolean{
var _local3:Number = _arg1.x;
var _local4:Number = _arg1.y;
var _local5:Number = ((_arg1.collision_width - 1) * Math.abs((_arg1.xscale * _arg1.oScale)));
var _local6:Number = ((_arg1.collision_height - 1) * Math.abs((_arg1.yscale * _arg1.oScale)));
if (_arg1.centerhandle == true){
_local3 = (_local3 - (_local5 / 2));
_local4 = (_local4 - (_local6 / 2));
};
return (_or306(_local3, _local4, _local5, _local6, _arg2.x, _arg2.y, (_arg2.collision_radius * _arg2.oScale)));
}
public static function _xj479(_arg1:_ra247, _arg2:_ra247):Boolean{
var _local3:Number = _arg1.x;
var _local4:Number = _arg1.y;
var _local5:Number = ((_arg1.collision_width - 1) * Math.abs((_arg1.xscale * _arg1.oScale)));
var _local6:Number = ((_arg1.collision_height - 1) * Math.abs((_arg1.yscale * _arg1.oScale)));
var _local7:Number = _arg2.x;
var _local8:Number = _arg2.y;
var _local9:Number = ((_arg2.collision_width - 1) * Math.abs((_arg2.xscale * _arg2.oScale)));
var _local10:Number = ((_arg2.collision_height - 1) * Math.abs((_arg2.yscale * _arg2.oScale)));
if (_arg1.centerhandle == true){
_local3 = (_local3 - (_local5 / 2));
_local4 = (_local4 - (_local6 / 2));
};
if (_arg2.centerhandle == true){
_local7 = (_local7 - (_local9 / 2));
_local8 = (_local8 - (_local10 / 2));
};
if ((((_arg1.collision_enabled == true)) && ((_arg2.collision_enabled == true)))){
return (_tp437(_local3, _local4, _local5, _local6, _local7, _local8, _local9, _local10));
};
return (false);
}
public static function _fx399(_arg1:_ra247, _arg2:_ra247):Boolean{
var _local3:Boolean;
if ((((_arg1.collision_enabled == true)) && ((_arg2.collision_enabled == true)))){
if (_arg1.collision_type == 0){
if (_arg2.collision_type == 0){
_local3 = _xj479(_arg1, _arg2);
} else {
_local3 = _lb434(_arg1, _arg2);
};
} else {
if (_arg2.collision_type == 1){
_local3 = _vn480(_arg1, _arg2);
} else {
_local3 = _lb434(_arg2, _arg1);
};
};
};
return (_local3);
}
public static function _vn480(_arg1:_ra247, _arg2:_ra247):Boolean{
if ((((_arg1.collision_enabled == true)) && ((_arg2.collision_enabled == true)))){
if (Math.sqrt((((_arg2.x - _arg1.x) * (_arg2.x - _arg1.x)) + ((_arg2.y - _arg1.y) * (_arg2.y - _arg1.y)))) <= ((_arg1.collision_radius * _arg1.oScale) + (_arg2.collision_radius * _arg2.oScale))){
return (true);
};
return (false);
//unresolved jump
};
return (false);
}
public static function _or306(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Number):Boolean{
var _local8:Number = _arg5;
var _local9:Number = _arg6;
if (_local8 < _arg1){
_local8 = _arg1;
} else {
if (_local8 > (_arg1 + _arg3)){
_local8 = (_arg1 + _arg3);
};
};
if (_local9 < _arg2){
_local9 = _arg2;
} else {
if (_local9 > (_arg2 + _arg4)){
_local9 = (_arg2 + _arg4);
};
};
return (((((_arg5 - _local8) * (_arg5 - _local8)) + ((_arg6 - _local9) * (_arg6 - _local9))) < (_arg7 * _arg7)));
}
public static function _rs426(_arg1:_ra247, _arg2:_ra247):Boolean{
if (Math.sqrt((((_arg2.x - _arg1.x) * (_arg2.x - _arg1.x)) + ((_arg2.y - _arg1.y) * (_arg2.y - _arg1.y)))) <= ((_arg1.collision_radius * _arg1.oScale) + (_arg2.collision_radius * _arg2.oScale))){
return (true);
};
return (false);
}
public static function _fy333(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number):Boolean{
if (Math.sqrt((((_arg4 - _arg1) * (_arg4 - _arg1)) + ((_arg5 - _arg2) * (_arg5 - _arg2)))) <= (_arg3 + _arg6)){
return (true);
};
return (false);
}
public static function _tp437(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Number, _arg8:Number):Boolean{
if ((((_arg1 > (_arg5 + _arg7))) || (((_arg1 + _arg3) < _arg5)))){
return (false);
};
if ((((_arg2 > (_arg6 + _arg8))) || (((_arg2 + _arg4) < _arg6)))){
return (false);
};
return (true);
}
}
}//package classes
Section 11 (1.87 KiB) ●
//_dt492 (classes._dt492)
package classes {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.utils.*;
import flash.ui.*;
public class _dt492 extends Sprite {
private static var KeyClickedUp:Array = [];
public static var Key_Clicked:int;
private static var KeyClicked:Array = [];
public static var MouseClicked:Boolean;
private static var KeyClickedDown:Array = [];
private static var KeyIsDown:Array = [];
public static var MouseDown:Boolean;
public static function _hu480(_arg1:Stage):void{
_arg1.addEventListener(MouseEvent.MOUSE_DOWN, _ww229);
_arg1.addEventListener(MouseEvent.MOUSE_UP, _qf495);
_arg1.addEventListener(KeyboardEvent.KEY_DOWN, _jy61);
_arg1.addEventListener(KeyboardEvent.KEY_UP, _px484);
}
public static function _wv36(_arg1:int):void{
KeyIsDown[_arg1] = false;
KeyClickedDown[_arg1] = false;
KeyClicked[_arg1] = false;
Key_Clicked = 0;
}
private static function _px484(_arg1:KeyboardEvent):void{
KeyIsDown[_arg1.keyCode] = false;
KeyClickedDown[_arg1.keyCode] = false;
KeyClicked[_arg1.keyCode] = true;
Key_Clicked = _arg1.keyCode;
}
private static function _jy61(_arg1:KeyboardEvent):void{
KeyIsDown[_arg1.keyCode] = true;
KeyClickedDown[_arg1.keyCode] = true;
KeyClicked[_arg1.keyCode] = false;
trace((irrcrpt("Pjd: ", 5) + _arg1.keyCode));
}
private static function _ww229(_arg1:MouseEvent):void{
MouseDown = true;
MouseClicked = true;
}
public static function _jl72():void{
var _local1:int;
_local1 = 0;
while (_local1 < 0x0100) {
KeyIsDown[_local1] = false;
KeyClicked[_local1] = false;
KeyClickedDown[_local1] = false;
KeyClickedUp[_local1] = false;
_local1++;
};
Key_Clicked = 0;
}
private static function _qf495(_arg1:MouseEvent):void{
MouseDown = false;
MouseClicked = false;
}
}
}//package classes
Section 12 (24.79 KiB) ● ● ●
//_fj62 (classes._fj62)
package classes {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.filters.*;
public class _fj62 extends Sprite {
public var obrightness:Number;// = 0
public var tooltip:_fj62;
public var animbitmapdata_array:Object;
public var xscaling:int;
public var xscaling_min:Number;// = 0
public var bluespeed:Number;// = 0
public var yweight:Number;// = 0
public var oscale:Number;// = 0
public var collision_radius:Number;// = 0
public var buffer:BitmapData;
public var callback:Object;
public var bluestart:Number;// = 0
public var blend:String;
public var greentarget:Number;// = 0
public var redspeed:Number;// = 0
public var ymax_boundry:Number;// = 0
public var blue:Number;// = 0
public var xscaling_dir:Number;// = 0
public var isabutton:Boolean;
public var bluetarget:Number;// = 0
public var redstart:Number;// = 0
public var animcopystyle:Boolean;
public var id2:int;
public var id3:int;
public var collision_width:Number;// = 0
public var id1:int;
public var alphafade_max:int;
public var frame_min:int;
public var movetype:int;// = 0
public var state:int;
public var yscaling_max:Number;// = 0
public var movedata2:Number;// = 0
public var red:Number;// = 0
public var movedata4:Number;// = 0
public var movedata5:Number;// = 0
public var movedata6:Number;// = 0
public var sinspeed:Number;// = 0
public var movedata1:Number;// = 0
public var blurfilter:BlurFilter;
public var dampvalue:Number;// = 0
public var dampmultiplier:Number;// = 0
public var frame_work:Number;// = 0
public var movedata3:Number;// = 0
public var ObjectID:int;
public var frame_dir:Number;// = 0
public var movement_delaycounter:Number;// = 0
public var alphafade_pausing:Number;// = 0
public var alphafade_pausing_buffer:Number;// = 0
public var collision_height:Number;// = 0
public var xgravity:Number;// = 0
public var cosradius:Number;// = 0
public var hitcallback:Object;
public var radiusgrowth:Number;// = 0
public var anglemoving:Number;// = 0
public var velocity:Number;// = 0
public var rotating_min:Number;// = 0
public var xweight:Number;// = 0
public var yscaling:int;
public var xmax_boundry:Number;// = 0
public var sinangle:Number;// = 0
public var damping:Number;// = 0
public var green:Number;// = 0
public var buttonmouseoutfunc:Function;
public var filters_array:Array;
public var alphafading:int;
public var id:int;
public var xdir:Number;// = 0
public var cosspeed:Number;// = 0
public var greenspeed:Number;// = 0
public var rotating_dir:Number;// = 0
public var durationthenstop:Number;// = 0
public var collision_enabled:Boolean;
public var xscaling_max:Number;// = 0
public var greenstart:Number;// = 0
public var frame_border:int;
public var ymin_boundry:Number;// = 0
public var buttonmouseoverfunc:Function;
public var rotating:int;
public var buttonclickfunc:Function;
public var hitcount:int;
public var animating:int;
public var redtarget:Number;// = 0
public var num1:Number;// = 0
public var num2:Number;// = 0
public var num3:Number;// = 0
public var num4:Number;// = 0
public var sinradius:Number;// = 0
public var myParent:Object;
public var timetodie:Boolean;
public var ydir:Number;// = 0
public var frame:Number;// = 0
public var yscaling_min:Number;// = 0
public var spacer1:Number;// = 0
public var spacer2:Number;// = 0
public var ymin_boundryuser:Number;// = 0
public var alphafade_min:int;
public var target:_fj62;
public var frame_max:int;
public var ymax_boundryuser:Number;// = 0
public var xmin_boundryuser:Number;// = 0
public var alphafade_dir:Number;// = 0
public var cosangle:Number;// = 0
public var ygravity:Number;// = 0
public var delta:Number;// = 0
public var yscaling_dir:Number;// = 0
public var xmax_boundryuser:Number;// = 0
public var bmap:Bitmap;
public var killedcallback:Object;
public var xmin_boundry:Number;// = 0
public var rotate_towards_sprite:_fj62;
public var flashing:Boolean;
public var movement_delay:Number;// = 0
public var rotating_max:Number;// = 0
public function _il500(_arg1:Object):void{
callback = _arg1;
}
public function _ao348(_arg1:Number, _arg2:Number, _arg3:Number=0, _arg4:Number=0, _arg5:Number=0):void{
xdir = _arg1;
ydir = _arg2;
xgravity = _arg3;
ygravity = _arg4;
durationthenstop = _arg5;
movetype = 1;
}
public function _lg383(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:int=1, _arg5:Number=1):void{
yscaling = _arg4;
yscaling_dir = _arg1;
yscaling_min = _arg2;
yscaling_max = _arg3;
this.scaleY = _arg5;
}
public function set _tc299(_arg1:Number):void{
blurfilter.blurY = _arg1;
if (_arg1 == 0){
this.filters = null;
} else {
blurfilter.quality = BitmapFilterQuality.LOW;
};
this.filters = filters_array;
}
public function _hi329(_arg1:Number, _arg2:Number):Boolean{
return (_na124(_arg1, _arg2, (this.x - ((collision_width * this.scaleX) / 2)), (this.y - ((collision_height * this.scaleY) / 2)), (collision_width * this.scaleX), (collision_height * this.scaleY)));
}
public function _tk63(_arg1:Number, _arg2:Number):void{
this.x = _arg1;
this.y = _arg2;
}
public function get brightness():Number{
return (obrightness);
}
private function _ap454():void{
if (flashing == true){
redstart = (redstart - (redspeed * delta));
greenstart = (greenstart - (greenspeed * delta));
bluestart = (bluestart - (bluespeed * delta));
if (redstart < redtarget){
redstart = redtarget;
};
if (greenstart < greentarget){
greenstart = greentarget;
};
if (bluestart < bluetarget){
bluestart = redtarget;
};
red = redstart;
green = greenstart;
blue = bluestart;
if (redstart == redtarget){
if (greenstart == greentarget){
if (bluestart == bluetarget){
flashing = false;
};
};
};
};
}
private function _yi47():void{
if (alphafading){
switch (alphafading){
case 1:
this.alpha = (this.alpha + (alphafade_dir * delta));
if (this.alpha >= alphafade_max){
this.alpha = alphafade_max;
alphafading = 0;
} else {
if ((((this.alpha < alphafade_min)) || ((this.alpha == alphafade_min)))){
this.alpha = alphafade_min;
alphafading = 0;
timetodie = true;
};
};
break;
case 2:
if (alphafade_pausing > 0){
alphafade_pausing = (alphafade_pausing - (1 * delta));
if (alphafade_pausing < 1){
alphafade_pausing = 0;
_vw503(-(alphafade_dir));
};
} else {
this.alpha = (this.alpha + (alphafade_dir * delta));
if (this.alpha >= alphafade_max){
this.alpha = alphafade_max;
alphafade_pausing = alphafade_pausing_buffer;
};
};
break;
};
};
}
public function get _jy406():Number{
return (blurfilter.blurX);
}
private function _ke63():void{
var _local1:Number;
var _local2:Number;
var _local3:Number;
var _local4:Number;
if (movetype == 1){
if (damping > 0){
damping = (damping - delta);
if (damping < 1){
damping = dampvalue;
xdir = (xdir * dampmultiplier);
ydir = (ydir * dampmultiplier);
if (Math.abs(xdir) < 0.001){
xdir = 0;
};
if (Math.abs(ydir) < 0.001){
ydir = 0;
};
if ((((xdir == 0)) && ((ydir == 0)))){
damping = 0;
};
};
};
this.x = (this.x + (xdir * delta));
this.y = (this.y + (ydir * delta));
xdir = (xdir + (xgravity * delta));
ydir = (ydir + (ygravity * delta));
if ((((this.x < xmin_boundry)) || ((this.x > xmax_boundry)))){
timetodie = true;
};
if ((((this.y < ymin_boundry)) || ((this.y > ymax_boundry)))){
timetodie = true;
};
if (durationthenstop > 0){
durationthenstop = (durationthenstop - delta);
if (durationthenstop < 1){
movetype = 0;
};
};
} else {
if (movetype == 2){
_local1 = this.x;
_local2 = this.y;
_local3 = target.x;
_local4 = target.y;
if (_local1 < _local3){
movedata1 = (movedata1 + (movedata2 * delta));
if (movedata1 > movedata3){
movedata1 = movedata3;
};
} else {
if (_local1 > _local3){
movedata1 = (movedata1 - (movedata2 * delta));
if (movedata1 < -(movedata3)){
movedata1 = -(movedata3);
};
};
};
this.x = (this.x + (movedata1 * delta));
if (_local2 < _local4){
movedata4 = (movedata4 + (movedata5 * delta));
if (movedata4 > movedata6){
movedata4 = movedata6;
};
} else {
if (_local2 > _local4){
movedata4 = (movedata4 - (movedata5 * delta));
if (movedata4 < -(movedata6)){
movedata4 = -(movedata6);
};
};
};
this.y = (this.y + (movedata4 * delta));
} else {
if (movetype == 3){
cosangle = (cosangle + (cosspeed * delta));
sinangle = (sinangle + (sinspeed * delta));
this.x = (this.x + ((Math.cos(cosangle) * cosradius) * delta));
this.y = (this.y + ((Math.sin(sinangle) * sinradius) * delta));
this.x = (this.x + (xdir * delta));
this.y = (this.y + (ydir * delta));
xdir = (xdir + (xgravity * delta));
ydir = (ydir + (ygravity * delta));
if ((((this.x < xmin_boundry)) || ((this.x > xmax_boundry)))){
timetodie = true;
};
if ((((this.y < ymin_boundry)) || ((this.y > ymax_boundry)))){
timetodie = true;
};
};
};
};
if (durationthenstop > 0){
durationthenstop = (durationthenstop - delta);
if (durationthenstop < 1){
movetype = 0;
};
} else {
if (movetype == 4){
} else {
if (movetype == 5){
if (target != null){
cosangle = (cosangle + (cosspeed * delta));
this.x = (target.x + (Math.cos(cosangle) * cosradius));
this.y = (target.y + (Math.sin(cosangle) * cosradius));
} else {
timetodie = true;
};
} else {
if (movetype == 6){
if (target != null){
if (movement_delaycounter > 0){
movement_delaycounter = (movement_delaycounter - delta);
if (movement_delaycounter < 1){
movement_delaycounter = movement_delay;
anglemoving = _mt474._mv29(this.x, this.y, target.x, target.y);
xdir = _mt474._cp39(anglemoving, movedata1);
ydir = _mt474._yy371(anglemoving, movedata1);
this.x = (this.x + (xdir * delta));
this.y = (this.y + (ydir * delta));
movedata1 = (movedata1 + (movedata2 * delta));
};
} else {
anglemoving = _mt474._mv29(this.x, this.y, target.x, target.y);
xdir = _mt474._cp39(anglemoving, movedata1);
ydir = _mt474._yy371(anglemoving, movedata1);
this.x = (this.x + (xdir * delta));
this.y = (this.y + (ydir * delta));
movedata1 = (movedata1 + (movedata2 * delta));
};
} else {
timetodie = true;
};
} else {
if (movetype == 7){
anglemoving = _mt474._mv29(this.x, this.y, movedata1, movedata2);
xdir = _mt474._cp39(anglemoving, movedata3);
ydir = _mt474._yy371(anglemoving, movedata3);
this.x = (this.x + (xdir * delta));
this.y = (this.y + (ydir * delta));
movedata3 = (movedata3 + (movedata4 * delta));
if (xdir > 0){
if (this.x > movedata1){
this.x = movedata1;
};
} else {
if (xdir < 0){
if (this.x < movedata1){
this.x = movedata1;
};
};
};
if (ydir > 0){
if (this.y > movedata2){
this.y = movedata2;
};
} else {
if (ydir < 0){
if (this.y < movedata2){
this.y = movedata2;
};
};
};
if ((((this.x == movedata1)) && ((this.y == movedata2)))){
movetype = 0;
};
} else {
if (movetype == 8){
cosangle = (cosangle + (cosspeed * delta));
sinangle = (sinangle + (sinspeed * delta));
this.x = (this.x + ((Math.cos(cosangle) * cosradius) * delta));
this.y = (this.y + ((Math.sin(sinangle) * sinradius) * delta));
cosradius = (cosradius + (radiusgrowth * delta));
sinradius = (sinradius + (radiusgrowth * delta));
if ((((this.x < xmin_boundry)) || ((this.x > xmax_boundry)))){
timetodie = true;
};
if ((((this.y < ymin_boundry)) || ((this.y > ymax_boundry)))){
timetodie = true;
};
} else {
if (movetype == 9){
anglemoving = _mt474._mv29(this.x, this.y, movedata1, movedata2);
xdir = _mt474._cp39(anglemoving, movedata3);
ydir = _mt474._yy371(anglemoving, movedata3);
this.x = (this.x + (xdir * delta));
this.y = (this.y + (ydir * delta));
movedata3 = (movedata3 + (movedata4 * delta));
if (xdir > 0){
if (this.x > movedata1){
this.x = movedata1;
};
} else {
if (xdir < 0){
if (this.x < movedata1){
this.x = movedata1;
};
};
};
if (ydir > 0){
if (this.y > movedata2){
this.y = movedata2;
};
} else {
if (ydir < 0){
if (this.y < movedata2){
this.y = movedata2;
};
};
};
if ((((this.x == movedata1)) && ((this.y == movedata2)))){
movetype = 0;
timetodie = true;
};
};
};
};
};
};
};
};
}
public function set scale(_arg1:Number):void{
oscale = _arg1;
this.scaleX = oscale;
this.scaleY = oscale;
}
public function _vv379(_arg1:_fj62, _arg2:Number):void{
rotating = 5;
rotating_dir = _arg2;
rotate_towards_sprite = _arg1;
}
public function _wm247(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:int=1, _arg5:Number=1):void{
xscaling = _arg4;
xscaling_dir = _arg1;
xscaling_min = _arg2;
xscaling_max = _arg3;
this.scaleX = _arg5;
}
public function set brightness(_arg1:Number):void{
obrightness = _arg1;
_mt474._fl216(this, obrightness, obrightness, obrightness);
}
public function _ut280(_arg1:Number, _arg2:Number):void{
collision_width = _arg1;
collision_height = _arg2;
}
private function _jy413():void{
if (rotating){
switch (rotating){
case 1:
this.rotation = (this.rotation + (rotating_dir * delta));
if (this.rotation >= rotating_max){
this.rotation = rotating_max;
rotating_dir = -(rotating_dir);
} else {
if (this.rotation <= rotating_min){
this.rotation = rotating_min;
rotating_dir = -(rotating_dir);
};
};
break;
case 2:
this.rotation = (this.rotation + (rotating_dir * delta));
if (this.rotation >= rotating_max){
this.rotation = rotating_min;
} else {
if (this.rotation <= rotating_min){
this.rotation = rotating_max;
};
};
break;
case 3:
this.rotation = (this.rotation + (rotating_dir * delta));
if (this.rotation >= rotating_max){
this.rotation = rotating_max;
rotating = 0;
} else {
if (this.rotation <= rotating_min){
this.rotation = rotating_min;
rotating = 0;
};
};
break;
case 4:
this.rotation = (this.rotation + (rotating_dir * delta));
if (this.rotation >= rotating_max){
this.rotation = rotating_max;
rotating = 0;
timetodie = true;
} else {
if (this.rotation <= rotating_min){
this.rotation = rotating_min;
rotating = 0;
timetodie = true;
};
};
break;
case 5:
_rn169(rotate_towards_sprite, rotating_dir);
break;
case 6:
_ac212(rotating_min, rotating_dir);
break;
};
};
}
private function _na124(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number):Boolean{
if ((((((((_arg1 < (_arg3 + _arg5))) && ((_arg2 < (_arg4 + _arg6))))) && ((_arg1 > _arg3)))) && ((_arg2 > _arg4)))){
return (true);
};
return (false);
}
private function _gb376():void{
if (xscaling){
this.scaleX = (this.scaleX + (xscaling_dir * delta));
switch (xscaling){
case 1:
if (this.scaleX >= xscaling_max){
this.scaleX = xscaling_max;
xscaling_dir = -(xscaling_dir);
} else {
if (this.scaleX <= xscaling_min){
this.scaleX = xscaling_min;
xscaling_dir = -(xscaling_dir);
};
};
break;
case 2:
if (this.scaleX >= xscaling_max){
this.scaleX = xscaling_min;
} else {
if (this.scaleX <= xscaling_min){
this.scaleX = xscaling_max;
};
};
break;
case 3:
if (this.scaleX >= xscaling_max){
this.scaleX = xscaling_max;
xscaling = 0;
} else {
if (this.scaleX <= xscaling_min){
this.scaleX = xscaling_min;
xscaling = 0;
};
};
break;
case 4:
if (this.scaleX >= xscaling_max){
this.scaleX = xscaling_max;
xscaling = 0;
timetodie = true;
} else {
if (this.scaleX <= xscaling_min){
this.scaleX = xscaling_min;
xscaling = 0;
timetodie = true;
};
};
break;
};
};
}
public function _gw178(_arg1:Number, _arg2:Number):void{
alphafading = 2;
alphafade_dir = _arg1;
alphafade_min = 0;
alphafade_max = 1;
this.alpha = 0;
alphafade_pausing = 0;
alphafade_pausing_buffer = _arg2;
}
public function get _tc299():Number{
return (blurfilter.blurY);
}
public function _hu480(_arg1:Object, _arg2:int, _arg3:int, _arg4:int, _arg5:Boolean=true, _arg6:uint=0, _arg7:Boolean=true):void{
myParent = _arg1;
ObjectID = _arg2;
buffer = new BitmapData(_arg3, _arg4, _arg5, _arg6);
bmap = new Bitmap(buffer);
bmap.smoothing = _arg7;
bmap.x = (-(bmap.width) / 2);
bmap.y = (-(bmap.height) / 2);
this.addChild(bmap);
this.x = (buffer.width / 2);
this.y = (buffer.height / 2);
width = _arg3;
height = _arg4;
blurfilter = new BlurFilter(0, 0, 1);
filters_array = new Array();
filters_array.push(blurfilter);
this.filters = filters_array;
blurfilter.blurX = 0;
blurfilter.blurY = 0;
blurfilter.quality = 0;
this.filters = filters_array;
collision_radius = (width / 2);
collision_width = width;
collision_height = height;
collision_enabled = true;
xmin_boundry = -10000;
xmax_boundry = 10000;
ymin_boundry = -10000;
ymax_boundry = 10000;
this.alpha = 1;
this.scaleX = 1;
this.scaleY = 1;
red = 1;
green = 1;
blue = 1;
obrightness = 1;
oscale = 1;
myParent.addChild(this);
}
public function set _jy406(_arg1:Number):void{
blurfilter.blurX = _arg1;
if (_arg1 == 0){
this.filters = null;
} else {
blurfilter.quality = BitmapFilterQuality.LOW;
};
this.filters = filters_array;
}
public function _fl90(_arg1:Boolean):void{
bmap.cacheAsBitmap = _arg1;
}
public function _iq264(_arg1:Object):void{
hitcallback = _arg1;
}
public function get scale():Number{
return (oscale);
}
public function _ew499():void{
callback = null;
killedcallback = null;
hitcallback = null;
rotate_towards_sprite = null;
target = null;
if (isabutton == true){
this.removeEventListener(MouseEvent.CLICK, buttonclickfunc);
this.removeEventListener(MouseEvent.MOUSE_OVER, buttonmouseoverfunc);
this.removeEventListener(MouseEvent.MOUSE_OUT, buttonmouseoutfunc);
};
buttonclickfunc = null;
buttonmouseoverfunc = null;
buttonmouseoutfunc = null;
myParent.removeChild(this);
this.removeChild(bmap);
buffer = null;
bmap = null;
blurfilter = null;
filters_array = null;
}
public function _uc442(_arg1:Number=1):void{
delta = _arg1;
_ke63();
_jy413();
_gb376();
_ps440();
_yi47();
if (callback != null){
callback(this);
};
}
public function _ac212(_arg1:Number, _arg2:Number):void{
var _local3:Number = this.rotation;
var _local4:Number = _arg1;
var _local5:Number = 0;
if (_local3 < _local4){
_local5 = 1;
if ((_local4 - _local3) > 179){
_local5 = -1;
};
} else {
if (_local3 > _local4){
_local5 = -1;
if ((_local3 - _local4) > 179){
_local5 = 1;
};
};
};
_local3 = (_local3 + ((_arg2 * _local5) * delta));
if (_local3 < 0){
_local3 = (_local3 + 360);
};
if (_local3 > 359){
_local3 = (_local3 - 360);
};
this.rotation = _local3;
}
public function _go268(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:int=1, _arg5:Number=1):void{
yscaling = _arg4;
yscaling_dir = _arg1;
yscaling_min = _arg2;
yscaling_max = _arg3;
this.scaleY = _arg5;
xscaling = _arg4;
xscaling_dir = _arg1;
xscaling_min = _arg2;
xscaling_max = _arg3;
this.scaleX = _arg5;
}
public function _fy485(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):void{
xmin_boundry = _arg1;
xmax_boundry = _arg3;
ymin_boundry = _arg2;
ymax_boundry = _arg4;
}
public function _vw503(_arg1:Number, _arg2:Number=1):void{
alphafading = 1;
alphafade_dir = _arg1;
alphafade_min = 0;
alphafade_max = 1;
this.alpha = _arg2;
}
public function _lv385():void{
buffer.unlock();
}
public function _ft483(_arg1:Object):void{
killedcallback = _arg1;
}
public function _tu174():void{
buffer.lock();
}
public function _pa257(_arg1:Number):void{
collision_radius = _arg1;
}
public function _ir272(_arg1:Number, _arg2:Number):void{
rotating = 6;
rotating_dir = _arg2;
rotating_min = _arg1;
}
public function _ao201(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:int=1, _arg5:Number=0):void{
rotating = _arg4;
rotating_dir = _arg1;
rotating_min = _arg2;
rotating_max = _arg3;
this.rotation = _arg5;
}
private function _ps440():void{
if (yscaling){
this.scaleY = (this.scaleY + (yscaling_dir * delta));
switch (yscaling){
case 1:
if (this.scaleY >= yscaling_max){
this.scaleY = yscaling_max;
yscaling_dir = -(yscaling_dir);
} else {
if (this.scaleY <= yscaling_min){
this.scaleY = yscaling_min;
yscaling_dir = -(yscaling_dir);
};
};
break;
case 2:
if (this.scaleY >= yscaling_max){
this.scaleY = yscaling_min;
} else {
if (this.scaleY <= yscaling_min){
this.scaleY = yscaling_max;
};
};
break;
case 3:
if (this.scaleY >= yscaling_max){
this.scaleY = yscaling_max;
yscaling = 0;
} else {
if (this.scaleY <= yscaling_min){
this.scaleY = yscaling_min;
yscaling = 0;
};
};
break;
case 4:
if (this.scaleY >= yscaling_max){
this.scaleY = yscaling_max;
yscaling = 0;
timetodie = true;
} else {
if (this.scaleY <= yscaling_min){
this.scaleY = yscaling_min;
yscaling = 0;
timetodie = true;
};
};
break;
};
};
}
public function _sf356(_arg1:Sprite, _arg2:BitmapData, _arg3:Number, _arg4:Number, _arg5:int, _arg6:Function, _arg7:Function, _arg8:Function, _arg9:uint=0):void{
this._hu480(_arg1, _arg5, _arg2.width, _arg2.height, true, _arg9, true);
this._tk63(_arg3, _arg4);
this._aw184(_arg2);
this.mouseEnabled = true;
this.buttonMode = true;
this.addEventListener(MouseEvent.CLICK, _arg6);
this.addEventListener(MouseEvent.MOUSE_OVER, _arg7);
this.addEventListener(MouseEvent.MOUSE_OUT, _arg8);
this.isabutton = true;
this.buttonclickfunc = _arg6;
this.buttonmouseoverfunc = _arg7;
this.buttonmouseoutfunc = _arg8;
}
public function _aw184(_arg1:BitmapData, _arg2:int=0, _arg3:int=0):void{
buffer.copyPixels(_arg1, new Rectangle(_arg2, _arg3, width, height), new Point(0, 0));
}
public function _rn169(_arg1:_fj62, _arg2:Number):void{
var _local3:Number = this.rotation;
var _local4:Number = _mt474._mv29(this.x, this.y, _arg1.x, _arg1.y);
var _local5:Number = 0;
if (_local3 < _local4){
_local5 = 1;
if ((_local4 - _local3) > 179){
_local5 = -1;
};
} else {
if (_local3 > _local4){
_local5 = -1;
if ((_local3 - _local4) > 179){
_local5 = 1;
};
};
};
_local3 = (_local3 + ((_arg2 * _local5) * delta));
if (_local3 < 0){
_local3 = (_local3 + 360);
};
if (_local3 > 359){
_local3 = (_local3 - 360);
};
this.rotation = _local3;
}
}
}//package classes
Section 13 (277 B)
//_gg456 (classes._gg456)
package classes {
public class _gg456 {
public var HowOftenBuffer:Number;// = 0
public var HowOften:Number;// = 0
public var HowManyTimes:int;
public var CallFunction:Function;
public var InitialDelay:Number;// = 0
}
}//package classes
Section 14 (1.92 KiB) ●
//_lo285 (classes._lo285)
package classes {
import flash.media.*;
import caurina.transitions.*;
public class _lo285 {
private var s_sound:Sound;
private var s_soundtransform:SoundTransform;
private var s_loops:int;
public var s_cued:Boolean;
private var s_soundchannel:SoundChannel;
public var s_cuedelayingbuffer:Number;// = 0
private var s_starttime:Number;// = 0
public var s_cuedelaying:Number;// = 0
public function _lo285(){
s_soundchannel = new SoundChannel();
s_soundtransform = new SoundTransform(1, 0);
}
public function _cj413(_arg1:Sound, _arg2:Number, _arg3:int):void{
s_sound = _arg1;
s_starttime = _arg2;
s_loops = _arg3;
}
public function _hd254(_arg1:Number=1):void{
Tweener.addTween(this, {_fl372:0, time:_arg1, transition:irrcrpt("pmriev", 4), onComplete:_eq95});
}
public function get _mv239():Number{
return (s_starttime);
}
public function get _fl372():Number{
return (s_soundtransform.volume);
}
public function set _fl372(_arg1:Number):void{
if (_arg1 < 0){
_arg1 = 0;
};
s_soundtransform.volume = _arg1;
s_soundchannel.soundTransform = s_soundtransform;
}
public function _td431():void{
s_soundchannel = s_sound.play(s_starttime, s_loops, s_soundtransform);
}
public function _eq95():void{
s_soundchannel.stop();
}
public function set _mv239(_arg1:Number):void{
s_starttime = _arg1;
}
public function _ew499():void{
_eq95();
s_sound = null;
s_soundchannel = null;
s_soundtransform = null;
}
public function set _qi313(_arg1:Number):void{
s_soundtransform.pan = _arg1;
s_soundchannel.soundTransform = s_soundtransform;
}
public function get _qi313():Number{
return (s_soundtransform.pan);
}
public function _mj47(_arg1:Number=1, _arg2:Number=1):void{
_fl372 = 0;
_td431();
Tweener.addTween(this, {_fl372:_arg2, time:_arg1, transition:irrcrpt("olqhdu", 3)});
}
}
}//package classes
Section 15 (22.93 KiB) ● ● ●
//_mt474 (classes._mt474)
package classes {
import flash.display.*;
import flash.geom.*;
import flash.net.*;
public class _mt474 {
private static var mycalc:Number = 57.2957795130823;
private static var point:Point;
private static var mypi:Number = 6.28318530717959;
private static var mycalc2:Number = 0.0174532925199433;
public static var Random:_wu347 = new _wu347();
private static var rect:Rectangle;
public static function _ak342(_arg1:BitmapData, _arg2:Number, _arg3:Number, _arg4:BitmapData, _arg5:Boolean=true):void{
point = new Point((_arg2 - (_arg1.width / 2)), (_arg3 - (_arg1.height / 2)));
rect = new Rectangle(0, 0, _arg1.width, _arg1.height);
_arg4.copyPixels(_arg1, rect, point, null, null, _arg5);
}
public static function _fx399(_arg1:_ra247, _arg2:_ra247):Boolean{
var _local3:Boolean;
if ((((_arg1.collision_enabled == true)) && ((_arg2.collision_enabled == true)))){
if (_arg1.collision_type == 0){
if (_arg2.collision_type == 0){
_local3 = _xj479(_arg1, _arg2);
} else {
_local3 = _lb434(_arg1, _arg2);
};
} else {
if (_arg2.collision_type == 1){
_local3 = _vn480(_arg1, _arg2);
} else {
_local3 = _lb434(_arg2, _arg1);
};
};
};
return (_local3);
}
public static function _mv29(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
var _local5:Number = (Math.atan2((_arg4 - _arg2), (_arg3 - _arg1)) * mycalc);
if (_local5 < 0){
_local5 = (_local5 + 360);
};
return (_local5);
}
public static function _cf337(_arg1:Object, _arg2:int, _arg3:BitmapData, _arg4:Number=1, _arg5:Number=1, _arg6:Number=1, _arg7:Number=20, _arg8:Number=1, _arg9:Boolean=true, _arg10:Number=0):void{
var _local11:BitmapData;
var _local12:BitmapData;
var _local13:BitmapData = _arg3;
var _local14:Number = 0;
var _local15:Number = 1;
var _local16:Number = 1;
var _local17:int;
_arg1[_arg2] = new BitmapData((_local13.width * _arg7), _local13.height, true, 0);
_local14 = 1;
if (_arg9 == false){
_local14 = 0;
};
var _local18:int;
while (_local18 < _arg7) {
_local11 = new BitmapData(_local13.width, _local13.height, true, 0);
_local12 = new BitmapData(_local13.width, _local13.height, true, 0);
_ti323(_local13, 0, 0, 0, 0, _local13.width, _local13.height, _local11);
_dn484(_local11, ((_local13.width / 2) - 0.5), ((_local13.height / 2) - 0.5), _local12, _local14, _local15, _local16, _arg10, 0, 0, _arg4, _arg5, _arg6, null, true);
_ti323(_local12, (_local18 * _local13.width), 0, 0, 0, _local13.width, _local13.height, _arg1[_arg2]);
if (_arg9 == true){
_local14 = (_local14 - ((1 / _arg7) * _arg8));
} else {
_local14 = (_local14 + ((1 / _arg7) * _arg8));
};
_local18++;
};
_local11 = null;
_local12 = null;
_local13 = null;
}
public static function _rs426(_arg1:_ra247, _arg2:_ra247):Boolean{
if (Math.sqrt((((_arg2.x - _arg1.x) * (_arg2.x - _arg1.x)) + ((_arg2.y - _arg1.y) * (_arg2.y - _arg1.y)))) <= ((_arg1.collision_radius * _arg1.xscale) + (_arg2.collision_radius * _arg2.xscale))){
return (true);
};
return (false);
}
public static function _qm246(_arg1:String, _arg2:int):String{
while (_arg1.length < _arg2) {
_arg1 = ("0" + _arg1);
};
return (_arg1);
}
public static function _tp437(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Number, _arg8:Number):Boolean{
if ((((_arg1 > (_arg5 + _arg7))) || (((_arg1 + _arg3) < _arg5)))){
return (false);
};
if ((((_arg2 > (_arg6 + _arg8))) || (((_arg2 + _arg4) < _arg6)))){
return (false);
};
return (true);
}
public static function _lc302(_arg1:BitmapData, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Number, _arg8:BitmapData, _arg9:Number=1, _arg10:Number=1, _arg11:Number=1, _arg12:Number=1, _arg13:String=null):void{
var _local14:BitmapData = new BitmapData(_arg4, _arg5, true, 0);
var _local15:BitmapData = new BitmapData(_arg4, _arg5, true, 0);
_ti323(_arg1, 0, 0, _arg2, _arg3, _arg4, _arg5, _local14);
var _local16:Matrix = new Matrix();
var _local17:ColorTransform = new ColorTransform(_arg10, _arg11, _arg12, _arg9, 0, 0, 0, 0);
_local16.scale(1, 1);
_local16.translate(0, 0);
_local15.draw(_local14, _local16, _local17, _arg13, null, true);
_ti323(_local15, _arg6, _arg7, 0, 0, _arg4, _arg5, _arg8);
_local14 = null;
_local15 = null;
}
public static function _fy333(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number):Boolean{
if (Math.sqrt((((_arg4 - _arg1) * (_arg4 - _arg1)) + ((_arg5 - _arg2) * (_arg5 - _arg2)))) <= (_arg3 + _arg6)){
return (true);
};
return (false);
}
public static function _gn180():Number{
if (_bt188() == true){
return (1);
};
return (-1);
}
public static function _ac97(_arg1:Number, _arg2:Number, _arg3:Number=100):Number{
return ((_arg1 / (_arg2 / _arg3)));
}
public static function _ti323(_arg1:BitmapData, _arg2:Number, _arg3:Number, _arg4:int, _arg5:int, _arg6:int, _arg7:int, _arg8:BitmapData, _arg9:Boolean=true):void{
point = new Point(_arg2, _arg3);
rect = new Rectangle(_arg4, _arg5, _arg6, _arg7);
_arg8.copyPixels(_arg1, rect, point, null, null, _arg9);
}
public static function _nw156(_arg1:Number, _arg2:Number):Number{
return (Random._oa470(_arg1, _arg2));
}
public static function _ci330(_arg1:Number, _arg2:Number):Number{
_arg1 = (_arg1 + _arg2);
if (_arg1 > 360){
_arg1 = (_arg1 - 360);
};
if (_arg1 < 0){
_arg1 = (_arg1 + 360);
};
return (_arg1);
}
public static function _oc503(_arg1:BitmapData, _arg2:Number, _arg3:Number, _arg4:BitmapData, _arg5:Number=1, _arg6:Number=1, _arg7:Number=1, _arg8:Number=1, _arg9:Number=1, _arg10:Number=1, _arg11:String=null, _arg12:Boolean=true):void{
var _local13:Matrix = new Matrix();
var _local14:ColorTransform = new ColorTransform(_arg8, _arg9, _arg10, _arg5, 0, 0, 0, 0);
_local13.scale(_arg6, _arg7);
_local13.translate(_arg2, _arg3);
_arg4.draw(_arg1, _local13, _local14, _arg11, null, _arg12);
}
public static function _yy371(_arg1:Number, _arg2:Number):Number{
return ((_arg2 * Math.sin((_arg1 * mycalc2))));
}
public static function _bm170(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number):Boolean{
if ((((((((_arg1 < (_arg3 + _arg5))) && ((_arg2 < (_arg4 + _arg6))))) && ((_arg1 > _arg3)))) && ((_arg2 > _arg4)))){
return (true);
};
return (false);
}
public static function _lo159(_arg1:BitmapData, _arg2:Number, _arg3:Number, _arg4:BitmapData, _arg5:Boolean=true):void{
point = new Point(_arg2, _arg3);
rect = new Rectangle(0, 0, _arg1.width, _arg1.height);
_arg4.copyPixels(_arg1, rect, point, null, null, _arg5);
}
public static function _tm54(_arg1:Object, _arg2:BitmapData, _arg3:Number=1, _arg4:Number=1, _arg5:Number=1, _arg6:Number=20):void{
var _local8:BitmapData;
var _local9:BitmapData;
var _local7:Number = 0;
var _local10:BitmapData = _arg2;
var _local11:Number = 0;
var _local12:Number = 1;
var _local13:Number = 1;
var _local14:int;
var _local15:Number = (360 / _arg6);
_local11 = 1;
var _local16:int;
while (_local16 < _arg6) {
_arg1[_local16] = new BitmapData(_local10.width, _local10.height, true, 0);
_local8 = new BitmapData(_local10.width, _local10.height, true, 0);
_local9 = new BitmapData(_local10.width, _local10.height, true, 0);
_ti323(_local10, 0, 0, 0, 0, _local10.width, _local10.height, _local8);
_dn484(_local8, ((_local10.width / 2) - 0.5), ((_local10.height / 2) - 0.5), _local9, _local11, _local12, _local13, _local7, 0, 0, _arg3, _arg4, _arg5);
_ti323(_local9, 0, 0, 0, 0, _local10.width, _local10.height, _arg1[_local16]);
_local7 = (_local7 + _local15);
_local16++;
};
_local8 = null;
_local9 = null;
_local10 = null;
}
public static function _xr343(_arg1:Object, _arg2:int, _arg3:BitmapData, _arg4:Number, _arg5:Number, _arg6:Number=20, _arg7:Boolean=true, _arg8:Number=0, _arg9:Number=1):void{
var _local10:BitmapData;
var _local11:BitmapData;
var _local12:BitmapData = _arg3;
var _local13:Number = _arg9;
var _local14:Number = _arg9;
var _local15:int;
var _local16:Number = (_local12.width * _arg9);
var _local17:Number = (_local12.height * _arg9);
_arg1[_arg2] = new BitmapData((_local16 * _arg6), _local17, true, 0);
var _local18:int;
while (_local18 < _arg6) {
_local10 = new BitmapData(_local12.width, _local12.height, true, 0);
_local11 = new BitmapData(_local16, _local17, true, 0);
_ti323(_local12, 0, 0, 0, 0, _local12.width, _local12.height, _local10);
_dn484(_local10, ((_local16 / 2) - 0.5), ((_local17 / 2) - 0.5), _local11, 1, _local13, _local14, _arg8, 0, 0, 1, 1, 1, null, _arg7);
_ti323(_local11, (_local18 * _local16), 0, 0, 0, _local16, _local17, _arg1[_arg2]);
_local13 = (_local13 + _arg4);
_local14 = (_local14 + _arg5);
_local18++;
};
_local10 = null;
_local11 = null;
_local12 = null;
}
public static function _cx373(_arg1:Object, _arg2:int, _arg3:BitmapData, _arg4:BitmapData, _arg5:Number=20):void{
var _local6:BitmapData;
var _local7:BitmapData;
var _local8:BitmapData = _arg3;
var _local9:int;
var _local10:Number = 0;
_local10 = 1;
_arg1[_arg2] = new BitmapData((_local8.width * _arg5), _local8.height, true, 0);
var _local11:int;
while (_local11 < _arg5) {
_local6 = new BitmapData(_local8.width, _local8.height, true, 0);
_local7 = new BitmapData(_local8.width, _local8.height, true, 0);
_ti323(_local8, 0, 0, 0, 0, _local8.width, _local8.height, _local6);
_ti323(_local6, 0, 0, 0, 0, _local6.width, _local6.height, _local7);
_oc503(_arg4, 0, 0, _local7, _local10, 1, 1, 1, 1, 1, null, false);
_ti323(_local7, (_local11 * _local8.width), 0, 0, 0, _local8.width, _local8.height, _arg1[_arg2]);
_local10 = (_local10 - (1 / _arg5));
if (_local10 < 0){
_local10 = 0;
};
_local11++;
};
_local6 = null;
_local7 = null;
_local8 = null;
}
public static function _or306(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Number):Boolean{
var _local8:Number = _arg5;
var _local9:Number = _arg6;
if (_local8 < _arg1){
_local8 = _arg1;
};
if (_local8 > (_arg1 + _arg3)){
_local8 = (_arg1 + _arg3);
};
if (_local9 < _arg2){
_local9 = _arg2;
};
if (_local9 > (_arg2 + _arg4)){
_local9 = (_arg2 + _arg4);
};
return (((((_arg5 - _local8) * (_arg5 - _local8)) + ((_arg6 - _local9) * (_arg6 - _local9))) < (_arg7 * _arg7)));
}
public static function _ft175(_arg1:int, _arg2:int):int{
return (Random._yf124(_arg1, _arg2));
}
public static function _xa295(_arg1:BitmapData, _arg2:Number, _arg3:Number, _arg4:int, _arg5:int, _arg6:int, _arg7:int, _arg8:BitmapData, _arg9:Boolean=true):void{
point = new Point((_arg2 - (_arg6 / 2)), (_arg3 - (_arg7 / 2)));
rect = new Rectangle(_arg4, _arg5, _arg6, _arg7);
_arg8.copyPixels(_arg1, rect, point, null, null, _arg9);
}
public static function _vr193(_arg1:Object, _arg2:int, _arg3:BitmapData, _arg4:Number=2, _arg5:Number=20):void{
var _local6:BitmapData;
var _local7:BitmapData;
var _local8:BitmapData = _arg3;
var _local9:int;
var _local10:Number = _arg4;
var _local11:Number = ((_local10 - 1) / _arg5);
_arg1[_arg2] = new BitmapData((_local8.width * _arg5), _local8.height, true, 0);
var _local12:int;
while (_local12 < _arg5) {
_local6 = new BitmapData(_local8.width, _local8.height, true, 0);
_local7 = new BitmapData(_local8.width, _local8.height, true, 0);
_ti323(_local8, 0, 0, 0, 0, _local8.width, _local8.height, _local6);
_oc503(_local6, 0, 0, _local7, 1, 1, 1, _local10, _local10, _local10, null, false);
_ti323(_local7, (_local12 * _local8.width), 0, 0, 0, _local8.width, _local8.height, _arg1[_arg2]);
_local10 = (_local10 - _local11);
if (_local10 < 1){
_local10 = 1;
};
_local12++;
};
_local6 = null;
_local7 = null;
_local8 = null;
}
public static function _fl216(_arg1:Object, _arg2:Number, _arg3:Number, _arg4:Number):void{
var _local5:ColorTransform = new ColorTransform();
_local5.redMultiplier = _arg2;
_local5.greenMultiplier = _arg3;
_local5.blueMultiplier = _arg4;
_arg1.transform.colorTransform = _local5;
}
public static function _pp453(_arg1:String):void{
var _local2:URLRequest = new URLRequest(_arg1);
navigateToURL(_local2, irrcrpt("_cmbol", 1));
}
public static function _ku461(_arg1:Object, _arg2:int, _arg3:BitmapData, _arg4:Number=1, _arg5:Number=1, _arg6:Number=1, _arg7:Number=0, _arg8:Boolean=true, _arg9:Number=20, _arg10:Number=0, _arg11:Number=0, _arg12:Number=0, _arg13:Boolean=false, _arg14:Number=1):void{
var _local16:BitmapData;
var _local17:BitmapData;
var _local15:Number = 0;
var _local18:BitmapData = _arg3;
var _local19:Number = 1;
var _local20:Number = 1;
var _local21:Number = 1;
var _local22:int;
var _local23:Boolean;
if (_arg8 == false){
_local20 = 0;
_local21 = 0;
};
_arg1[_arg2] = new BitmapData((_local18.width * _arg9), _local18.height, true, 0);
_local19 = 1;
var _local24:int;
while (_local24 < _arg9) {
if (_arg8 == false){
_local20 = (_local20 + ((1 / _arg9) * _arg14));
_local21 = (_local21 + ((1 / _arg9) * _arg14));
};
_local16 = new BitmapData(_local18.width, _local18.height, true, 0);
_local17 = new BitmapData(_local18.width, _local18.height, true, 0);
if (_arg13 == true){
if (_local23 == false){
_local23 = true;
} else {
_local23 = false;
};
} else {
_local23 = true;
};
if (_local23 == true){
_ti323(_local18, 0, 0, 0, 0, _local18.width, _local18.height, _local16);
_dn484(_local16, ((_local18.width / 2) - 0.5), ((_local18.height / 2) - 0.5), _local17, _local19, _local20, _local21, _local15, 0, 0, _arg4, _arg5, _arg6);
};
_ti323(_local17, (_local24 * _local18.width), 0, 0, 0, _local18.width, _local18.height, _arg1[_arg2]);
_arg4 = (_arg4 + _arg10);
_arg5 = (_arg5 + _arg11);
_arg6 = (_arg6 + _arg12);
if (_arg4 < 0){
_arg4 = 0;
};
if (_arg5 < 0){
_arg5 = 0;
};
if (_arg6 < 0){
_arg6 = 0;
};
if (_arg8 == true){
_local20 = (_local20 - ((1 / _arg9) * _arg14));
_local21 = (_local21 - ((1 / _arg9) * _arg14));
};
_local15 = (_local15 + _arg7);
if (_local15 > 360){
_local15 = (_local15 - 360);
} else {
if (_local15 < 0){
_local15 = (_local15 + 360);
};
};
_local24++;
};
_local16 = null;
_local17 = null;
_local18 = null;
}
public static function _qt415(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return (Math.sqrt((((_arg3 - _arg1) * (_arg3 - _arg1)) + ((_arg4 - _arg2) * (_arg4 - _arg2)))));
}
public static function _sh130(_arg1:Object, _arg2:int, _arg3:BitmapData, _arg4:Number=1, _arg5:Number=1, _arg6:Number=1, _arg7:Number=0, _arg8:Boolean=true, _arg9:Number=20, _arg10:Number=0, _arg11:Number=0, _arg12:Number=0, _arg13:Boolean=false, _arg14:Number=1, _arg15:Number=0):void{
var _local17:BitmapData;
var _local18:BitmapData;
var _local16:Number = _arg15;
var _local19:BitmapData = _arg3;
var _local20:Number = 0;
var _local21:Number = 1;
var _local22:Number = 1;
var _local23:int;
var _local24:Boolean;
if (_arg8 == false){
_local21 = 0;
_local22 = 0;
};
_arg1[_arg2] = new BitmapData((_local19.width * _arg9), _local19.height, true, 0);
_local20 = 1;
var _local25:int;
while (_local25 < _arg9) {
if (_arg8 == false){
_local21 = (_local21 + ((1 / _arg9) * _arg14));
_local22 = (_local22 + ((1 / _arg9) * _arg14));
};
_local17 = new BitmapData(_local19.width, _local19.height, true, 0);
_local18 = new BitmapData(_local19.width, _local19.height, true, 0);
if (_arg13 == true){
if (_local24 == false){
_local24 = true;
} else {
_local24 = false;
};
} else {
_local24 = true;
};
if (_local24 == true){
_ti323(_local19, 0, 0, 0, 0, _local19.width, _local19.height, _local17);
_dn484(_local17, ((_local19.width / 2) - 0.5), ((_local19.height / 2) - 0.5), _local18, _local20, _local21, _local22, _local16, 0, 0, _arg4, _arg5, _arg6);
};
_ti323(_local18, (_local25 * _local19.width), 0, 0, 0, _local19.width, _local19.height, _arg1[_arg2]);
_local20 = (_local20 - (1 / _arg9));
_arg4 = (_arg4 + _arg10);
_arg5 = (_arg5 + _arg11);
_arg6 = (_arg6 + _arg12);
if (_arg4 < 0){
_arg4 = 0;
};
if (_arg5 < 0){
_arg5 = 0;
};
if (_arg6 < 0){
_arg6 = 0;
};
if (_arg8 == true){
_local21 = (_local21 - ((1 / _arg9) * _arg14));
_local22 = (_local22 - ((1 / _arg9) * _arg14));
};
_local16 = (_local16 + _arg7);
if (_local16 > 360){
_local16 = (_local16 - 360);
} else {
if (_local16 < 0){
_local16 = (_local16 + 360);
};
};
_local25++;
};
_local17 = null;
_local18 = null;
_local19 = null;
}
public static function _sv239(_arg1:Number, _arg2:Number):Number{
var _local3:Number = (Math.atan2(_arg2, _arg1) * mycalc);
if (_local3 < 0){
_local3 = (_local3 + 360);
};
return (_local3);
}
public static function _lb434(_arg1:_ra247, _arg2:_ra247):Boolean{
var _local3:Number = _arg1.x;
var _local4:Number = _arg1.y;
var _local5:Number = ((_arg1.collision_width - 1) * Math.abs(_arg1.xscale));
var _local6:Number = ((_arg1.collision_height - 1) * Math.abs(_arg1.yscale));
if (_arg1.centerhandle == true){
_local3 = (_local3 - (_local5 / 2));
_local4 = (_local4 - (_local6 / 2));
};
return (_or306(_local3, _local4, _local5, _local6, _arg2.x, _arg2.y, (_arg2.collision_radius * Math.abs(_arg2.xscale))));
}
public static function _xj479(_arg1:_ra247, _arg2:_ra247):Boolean{
var _local3:Number = _arg1.x;
var _local4:Number = _arg1.y;
var _local5:Number = ((_arg1.collision_width - 1) * Math.abs(_arg1.xscale));
var _local6:Number = ((_arg1.collision_height - 1) * Math.abs(_arg1.yscale));
var _local7:Number = _arg2.x;
var _local8:Number = _arg2.y;
var _local9:Number = ((_arg2.collision_width - 1) * Math.abs(_arg2.xscale));
var _local10:Number = ((_arg2.collision_height - 1) * Math.abs(_arg2.yscale));
if (_arg1.centerhandle == true){
_local3 = (_local3 - (_local5 / 2));
_local4 = (_local4 - (_local6 / 2));
};
if (_arg2.centerhandle == true){
_local7 = (_local7 - (_local9 / 2));
_local8 = (_local8 - (_local10 / 2));
};
if ((((_arg1.collision_enabled == true)) && ((_arg2.collision_enabled == true)))){
return (_tp437(_local3, _local4, _local5, _local6, _local7, _local8, _local9, _local10));
};
return (false);
}
public static function _dn484(_arg1:BitmapData, _arg2:Number, _arg3:Number, _arg4:BitmapData, _arg5:Number=1, _arg6:Number=1, _arg7:Number=1, _arg8:Number=0, _arg9:Number=0, _arg10:Number=0, _arg11:Number=1, _arg12:Number=1, _arg13:Number=1, _arg14:String=null, _arg15:Boolean=true):void{
var _local16:Number = 0;
if (_arg8 != 0){
if (_arg8 > 180){
_local16 = (-360 + _arg8);
} else {
_local16 = _arg8;
};
_local16 = ((mypi * _local16) / 360);
};
var _local17:Number = _arg1.width;
var _local18:Number = _arg1.height;
var _local19:ColorTransform = new ColorTransform(_arg11, _arg12, _arg13, _arg5, 0, 0, 0, 0);
var _local20:Matrix = new Matrix();
var _local21:Number = (_local17 + ((_arg10 * _local17) / 2));
var _local22:Number = -((_local18 / 2));
_local22 = (_local22 - ((_arg9 * _local18) / 1));
_local20.translate((-(_local21) / 2), _local22);
_local20.b = _arg9;
_local20.c = _arg10;
_local20.scale(_arg6, _arg7);
_local20.rotate(_local16);
_local20.translate(_arg2, _arg3);
_arg4.draw(_arg1, _local20, _local19, _arg14, null, _arg15);
}
public static function _bt188(_arg1:int=50):Boolean{
if (_arg1 > Random._yf124(0, 100)){
return (true);
};
return (false);
}
public static function _dx87(_arg1:BitmapData, _arg2:Number, _arg3:Number, _arg4:BitmapData, _arg5:Number=1, _arg6:Number=1, _arg7:Number=1, _arg8:String=null):void{
var _local9:Matrix = new Matrix();
var _local10:ColorTransform = new ColorTransform(1, 1, 1, _arg5, 0, 0, 0, 0);
_local9.translate((-(_arg1.width) / 2), (-(_arg1.height) / 2));
_local9.scale(_arg6, _arg7);
_local9.translate(_arg2, _arg3);
_arg4.draw(_arg1, _local9, _local10, _arg8, null, false);
}
public static function _sl84(_arg1:BitmapData, _arg2:Number, _arg3:Number, _arg4:BitmapData, _arg5:Number=1, _arg6:Number=1, _arg7:Number=1, _arg8:String=null):void{
var _local9:Matrix = new Matrix();
var _local10:ColorTransform = new ColorTransform(1, 1, 1, _arg5, 0, 0, 0, 0);
_local9.translate((-(_arg1.width) / 2), (-(_arg1.height) / 2));
_local9.scale(_arg6, _arg7);
_local9.translate(_arg2, _arg3);
_arg4.draw(_arg1, _local9, _local10, _arg8, null, true);
}
public static function _vn480(_arg1:_ra247, _arg2:_ra247):Boolean{
if ((((_arg1.collision_enabled == true)) && ((_arg2.collision_enabled == true)))){
if (Math.sqrt((((_arg2.x - _arg1.x) * (_arg2.x - _arg1.x)) + ((_arg2.y - _arg1.y) * (_arg2.y - _arg1.y)))) <= ((_arg1.collision_radius * _arg1.xscale) + (_arg2.collision_radius * _arg2.xscale))){
return (true);
};
return (false);
//unresolved jump
};
return (false);
}
public static function _cp39(_arg1:Number, _arg2:Number):Number{
return ((_arg2 * Math.cos((_arg1 * mycalc2))));
}
public static function _qr400(_arg1:Object, _arg2:int, _arg3:BitmapData, _arg4:Number=1, _arg5:Number=1, _arg6:Number=1, _arg7:Number=20, _arg8:Number=1):void{
var _local10:BitmapData;
var _local11:BitmapData;
var _local9:Number = 0;
var _local12:BitmapData = _arg3;
var _local13:Number = 0;
var _local14:Number = _arg8;
var _local15:Number = _arg8;
var _local16:int;
var _local17:Number = (360 / _arg7);
var _local18:Number = (_local12.width * _arg8);
var _local19:Number = (_local12.height * _arg8);
_arg1[_arg2] = new BitmapData((_local18 * _arg7), _local19, true, 0);
_local13 = 1;
var _local20:int;
while (_local20 < _arg7) {
_local10 = new BitmapData(_local12.width, _local12.height, true, 0);
_local11 = new BitmapData(_local18, _local19, true, 0);
_ti323(_local12, 0, 0, 0, 0, _local12.width, _local12.height, _local10);
_dn484(_local10, ((_local18 / 2) - 0.5), ((_local19 / 2) - 0.5), _local11, _local13, _local14, _local15, _local9, 0, 0, _arg4, _arg5, _arg6);
_ti323(_local11, (_local20 * _local18), 0, 0, 0, _local18, _local19, _arg1[_arg2]);
_local9 = (_local9 + _local17);
_local20++;
};
_local10 = null;
_local11 = null;
_local12 = null;
}
public static function _rl262():Number{
return (Random._oa470(0, 359));
}
}
}//package classes
Section 16 (3.7 KiB) ●
//_mu102 (classes._mu102)
package classes {
import flash.media.*;
import flash.utils.*;
public class _mu102 {
private static var Sounds:Dictionary;
private static var PlayEnabled:Boolean;
public static function _hu480():void{
Sounds = new Dictionary();
PlayEnabled = true;
}
public static function _td431(_arg1:String):void{
var _local2:_lo285;
if (Sounds[_arg1] == null){
throw (new Error(((irrcrpt("<OIGOwuke> Rnca Uqwpf: ", 2) + _arg1) + irrcrpt(" bfx sty ktzsi!", 5))));
};
_local2 = Sounds[_arg1];
if (PlayEnabled == true){
_local2._td431();
};
}
public static function _ox273():Boolean{
return (PlayEnabled);
}
public static function _eq95(_arg1:String):void{
var _local2:_lo285;
if (Sounds[_arg1] == null){
throw (new Error(((irrcrpt("<PJHPxvlf> Vwrs Vrxqg: ", 3) + _arg1) + irrcrpt(" zdv qrw irxqg!", 3))));
};
_local2 = Sounds[_arg1];
_local2._eq95();
}
public static function _ow58():void{
var _local1:_lo285;
for each (_local1 in Sounds) {
_local1._eq95();
};
}
public static function _oo371(_arg1:String, _arg2:Number):void{
var _local3:_lo285;
if (Sounds[_arg1] == null){
throw (new Error(((irrcrpt("<PJHPxvlf> Vhw Yroxph: ", 3) + _arg1) + irrcrpt(" xbt opu gpvoe!", 1))));
};
_local3 = Sounds[_arg1];
_local3._fl372 = _arg2;
}
public static function _df341(_arg1:String):Number{
var _local2:_lo285;
if (Sounds[_arg1] == null){
throw (new Error(((irrcrpt("<NHFNvtjd> Hfu MppqTubsu: ", 1) + _arg1) + irrcrpt(" ycu pqv hqwpf!", 2))));
};
_local2 = Sounds[_arg1];
return (_local2._mv239);
}
public static function _cj413(_arg1:String, _arg2:Sound, _arg3:Number=0, _arg4:int=100000):void{
var _local5:_lo285 = new _lo285();
_local5._cj413(_arg2, _arg3, _arg4);
Sounds[_arg1] = _local5;
}
public static function _ur185(_arg1:String, _arg2:Number):void{
var _local3:_lo285;
if (Sounds[_arg1] == null){
throw (new Error(((irrcrpt("<QKIQywmg> Wix PsstWxevx: ", 4) + _arg1) + irrcrpt(" aew rsx jsyrh!", 4))));
};
_local3 = Sounds[_arg1];
_local3._mv239 = _arg2;
}
public static function _bk319(_arg1:String):Number{
var _local2:_lo285;
if (Sounds[_arg1] == null){
throw (new Error(((irrcrpt("<NHFNvtjd> Hfu Wpmvnf: ", 1) + _arg1) + irrcrpt(" aew rsx jsyrh!", 4))));
};
_local2 = Sounds[_arg1];
return (_local2._fl372);
}
public static function _hd254(_arg1:String, _arg2:Number=2):void{
var _local3:_lo285;
if (Sounds[_arg1] == null){
throw (new Error(((irrcrpt("<QKIQywmg> JehiSyx: ", 4) + _arg1) + irrcrpt(" bfx sty ktzsi!", 5))));
};
_local3 = Sounds[_arg1];
_local3._hd254(_arg2);
}
public static function _mj47(_arg1:String, _arg2:Number=2, _arg3:Number=1):void{
var _local4:_lo285;
if (Sounds[_arg1] == null){
throw (new Error(((irrcrpt("<NHFNvtjd> GbefJo: ", 1) + _arg1) + irrcrpt(" bfx sty ktzsi!", 5))));
};
_local4 = Sounds[_arg1];
if (PlayEnabled == true){
_local4._mj47(_arg2, _arg3);
};
}
public static function _uk165(_arg1:String, _arg2:Number):void{
var _local3:_lo285;
if (Sounds[_arg1] == null){
throw (new Error(((irrcrpt("<PJHPxvlf> Vhw Sdq: ", 3) + _arg1) + irrcrpt(" bfx sty ktzsi!", 5))));
};
_local3 = Sounds[_arg1];
_local3._qi313 = _arg2;
}
public static function _rh113(_arg1:String):Number{
var _local2:_lo285;
if (Sounds[_arg1] == null){
throw (new Error(((irrcrpt("<NHFNvtjd> Hfu Qbo: ", 1) + _arg1) + irrcrpt(" zdv qrw irxqg!", 3))));
};
_local2 = Sounds[_arg1];
return (_local2._qi313);
}
public static function _yl111(_arg1:Boolean):void{
PlayEnabled = _arg1;
}
}
}//package classes
Section 17 (3.58 KiB) ●
//_nd448 (classes._nd448)
package classes {
import flash.display.*;
import flash.geom.*;
import flash.utils.*;
import flash.ui.*;
public class _nd448 {
private var FontRects:Object;
private var FontSrcBmp:BitmapData;
public var FontSpacing:Number;// = 0
private var FontBmps:Object;
public function _nd448(){
FontRects = new Object();
FontBmps = new Object();
super();
}
public function _na301(_arg1:BitmapData, _arg2:String, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Number=1, _arg8:Number=1, _arg9:Number=1, _arg10:Number=1, _arg11:Number=1, _arg12:Boolean=true, _arg13:Number=1):void{
var _local16:int;
var _local17:Number;
var _local14:int = _arg2.length;
var _local15:Number = 0;
if (_arg12 == true){
_arg3 = (_arg3 - (_tp22(_arg2, _arg7) / 2));
};
_local17 = _arg3;
_local16 = 0;
while (_local16 < _local14) {
_local15 = _arg2.charCodeAt(_local16);
_mt474._oc503(FontBmps[_local15], (_arg3 + _arg5), (_arg4 + _arg6), _arg1, _arg13, _arg7, _arg8, 0.1, 0.1, 0.1);
_arg3 = ((_arg3 + (FontRects[_local15].width * _arg7)) + (FontSpacing * _arg7));
_local16++;
};
_arg3 = _local17;
_local16 = 0;
while (_local16 < _local14) {
_local15 = _arg2.charCodeAt(_local16);
_mt474._oc503(FontBmps[_local15], _arg3, _arg4, _arg1, _arg13, _arg7, _arg8, _arg9, _arg10, _arg11);
_arg3 = ((_arg3 + (FontRects[_local15].width * _arg7)) + FontSpacing);
_local16++;
};
}
public function _nr394(_arg1:BitmapData, _arg2:Number=1):void{
FontSrcBmp = _arg1;
FontSpacing = _arg2;
}
public function _ol493(_arg1:BitmapData, _arg2:String, _arg3:Number, _arg4:Number, _arg5:Boolean=true, _arg6:Boolean=true):void{
var _local7:int = _arg2.length;
var _local8:Number = 0;
var _local9:Point = new Point();
if (_arg5 == true){
_arg3 = (_arg3 - (_tp22(_arg2) / 2));
};
_local9.y = _arg4;
var _local10:int;
while (_local10 < _local7) {
_local8 = _arg2.charCodeAt(_local10);
_local9.x = _arg3;
_arg1.copyPixels(FontSrcBmp, FontRects[_local8], _local9, null, null, _arg6);
_arg3 = (_arg3 + (FontRects[_local8].width + FontSpacing));
_local10++;
};
}
public function _yo104(_arg1:int, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number):void{
FontRects[_arg1] = new Rectangle(_arg2, _arg3, _arg4, _arg5);
FontBmps[_arg1] = new BitmapData(FontRects[_arg1].width, FontRects[_arg1].height, true, 0);
_mt474._ti323(FontSrcBmp, 0, 0, FontRects[_arg1].x, FontRects[_arg1].y, FontRects[_arg1].width, FontRects[_arg1].height, FontBmps[_arg1]);
}
public function _au162(_arg1:BitmapData, _arg2:String, _arg3:Number, _arg4:Number, _arg5:Number=1, _arg6:Number=1, _arg7:Number=1, _arg8:Number=1, _arg9:Number=1, _arg10:Boolean=true, _arg11:Number=1):void{
var _local12:int = _arg2.length;
var _local13:Number = 0;
if (_arg10 == true){
_arg3 = (_arg3 - (_tp22(_arg2, _arg5) / 2));
};
var _local14:int;
while (_local14 < _local12) {
_local13 = _arg2.charCodeAt(_local14);
_mt474._oc503(FontBmps[_local13], _arg3, _arg4, _arg1, _arg11, _arg5, _arg6, _arg7, _arg8, _arg9);
_arg3 = ((_arg3 + (FontRects[_local13].width * _arg5)) + (FontSpacing * _arg5));
_local14++;
};
}
public function _tp22(_arg1:String, _arg2:Number=1):Number{
var _local3:int = _arg1.length;
var _local4:Number = 0;
var _local5:int;
while (_local5 < _local3) {
_local4 = ((_local4 + (FontRects[_arg1.charCodeAt(_local5)].width * _arg2)) + (FontSpacing * _arg2));
_local5++;
};
return ((_local4 - (FontSpacing * _arg2)));
}
}
}//package classes
Section 18 (5.98 KiB) ● ●
//_ng17 (classes._ng17)
package classes {
import flash.display.*;
import flash.geom.*;
import flash.filters.*;
import caurina.transitions.*;
public class _ng17 {
public var obrightness:Number;// = 0
public var clscolor:uint;
public var filters_array:Array;
private var MyParent:Object;
public var blurfilter:BlurFilter;
public var height:int;
public var Sprites:_bd384;
public var bitmap:Bitmap;
public var oscale:Number;// = 0
public var width:int;
public var Parent:Sprite;
public var oblur:Number;// = 0
public var Buffer:BitmapData;
public function _yi313(_arg1:Number=1, _arg2:Number=0, _arg3:Boolean=true):void{
Parent.visible = _arg3;
Parent.mouseEnabled = true;
Parent.mouseChildren = true;
Tweener.addTween(this, {brightness:1, time:0.5, transition:irrcrpt("pmriev", 4)});
Tweener.addTween(this, {_mk207:0, time:0.5, transition:irrcrpt("pmriev", 4)});
}
public function _hu480(_arg1:Object, _arg2:int, _arg3:int, _arg4:Boolean=false, _arg5:uint=4278190080, _arg6:Boolean=true):void{
MyParent = _arg1;
clscolor = _arg5;
Buffer = new BitmapData(_arg2, _arg3, _arg4, _arg5);
bitmap = new Bitmap(Buffer);
bitmap.smoothing = _arg6;
Parent = new Sprite();
MyParent.addChild(Parent);
bitmap.x = (-(bitmap.width) / 2);
bitmap.y = (-(bitmap.height) / 2);
Parent.addChild(bitmap);
Parent.x = (Buffer.width / 2);
Parent.y = (Buffer.height / 2);
width = _arg2;
height = _arg3;
obrightness = 1;
oscale = 1;
blurfilter = new BlurFilter(0, 0, 1);
filters_array = new Array();
filters_array.push(blurfilter);
Parent.filters = filters_array;
oblur = 0;
blurfilter.blurX = 0;
blurfilter.blurY = 0;
blurfilter.quality = 0;
Parent.filters = filters_array;
Sprites = new _bd384();
}
public function _ul347():void{
Buffer.fillRect(new Rectangle(0, 0, width, height), clscolor);
}
public function _wt396(_arg1:Number=1):void{
Parent.visible = true;
Parent.alpha = 1;
brightness = 1;
_mk207 = 0;
Parent.mouseEnabled = true;
Parent.mouseChildren = true;
}
public function set brightness(_arg1:Number):void{
obrightness = _arg1;
_mt474._fl216(Parent, obrightness, obrightness, obrightness);
}
public function set scale(_arg1:Number):void{
oscale = _arg1;
Parent.scaleX = oscale;
Parent.scaleY = oscale;
}
public function _jq131():void{
Parent.visible = false;
Parent.alpha = 1;
brightness = 1;
_mk207 = 0;
Parent.mouseEnabled = false;
Parent.mouseChildren = false;
}
public function _aj344():void{
Buffer.unlock();
}
public function _tu174():void{
Buffer.lock();
}
public function set _mk207(_arg1:Number):void{
oblur = _arg1;
blurfilter.blurX = _arg1;
blurfilter.blurY = _arg1;
if (_arg1 == 0){
blurfilter.quality = 0;
Parent.filters = null;
} else {
blurfilter.quality = 2;
};
Parent.filters = filters_array;
}
public function _mo235(_arg1:Boolean):void{
Parent.mouseEnabled = _arg1;
Parent.mouseChildren = _arg1;
}
public function _fl90(_arg1:Boolean):void{
bitmap.cacheAsBitmap = _arg1;
}
public function _mj47(_arg1:Number=1, _arg2:Function=null):void{
Parent.alpha = 0;
Parent.visible = true;
Parent.mouseEnabled = true;
Parent.mouseChildren = true;
if (_arg2 != null){
Tweener.addTween(Parent, {alpha:1, time:_arg1, transition:irrcrpt("mjofbs", 1), onComplete:_arg2});
} else {
Tweener.addTween(Parent, {alpha:1, time:_arg1, transition:irrcrpt("mjofbs", 1)});
};
}
public function _mx414(_arg1:Object, _arg2:Boolean=true):void{
MyParent = _arg1;
Parent = new Sprite();
MyParent.addChild(Parent);
Parent.x = 0;
Parent.y = 0;
width = 1;
height = 1;
obrightness = 1;
oscale = 1;
blurfilter = new BlurFilter(0, 0, 1);
filters_array = new Array();
filters_array.push(blurfilter);
Parent.filters = filters_array;
oblur = 0;
blurfilter.blurX = 0;
blurfilter.blurY = 0;
blurfilter.quality = 0;
Parent.filters = filters_array;
Sprites = new _bd384();
}
public function get brightness():Number{
return (obrightness);
}
public function _tk63(_arg1:Number, _arg2:Number):void{
Parent.x = _arg1;
Parent.y = _arg2;
}
public function get scale():Number{
return (oscale);
}
public function _hd254(_arg1:Number=1, _arg2:Function=null):void{
Parent.mouseEnabled = false;
Parent.mouseChildren = false;
if (_arg2 != null){
Tweener.addTween(Parent, {alpha:0, time:_arg1, transition:irrcrpt("mjofbs", 1), onComplete:_arg2});
} else {
Tweener.addTween(Parent, {alpha:0, time:_arg1, transition:irrcrpt("qnsjfw", 5)});
};
}
public function _ew499():void{
Sprites._mb480();
MyParent.removeChild(Parent);
Parent.removeChild(bitmap);
if (Buffer != null){
Buffer = null;
};
if (bitmap != null){
bitmap = null;
};
Parent = null;
blurfilter = null;
filters_array = null;
}
public function get _mk207():Number{
return (oblur);
}
public function _rr241(_arg1:Number, _arg2:String, _arg3:Number, _arg4:Function=null):void{
if (_arg4 != null){
Tweener.addTween(this, {scale:_arg1, time:_arg3, transition:_arg2, onComplete:_arg4});
} else {
Tweener.addTween(this, {scale:_arg1, time:_arg3, transition:_arg2});
};
}
public function _fi477(_arg1:Number, _arg2:Number):void{
brightness = _arg1;
Tweener.addTween(this, {brightness:1, time:_arg2, transition:irrcrpt("mjofbs", 1)});
}
public function _nk410(_arg1:Number=0.5, _arg2:Number=0, _arg3:Boolean=true):void{
Parent.visible = _arg3;
Parent.mouseEnabled = false;
Parent.mouseChildren = false;
Tweener.addTween(this, {brightness:_arg1, time:0.5, transition:irrcrpt("olqhdu", 3)});
Tweener.addTween(this, {_mk207:_arg2, time:0.5, transition:irrcrpt("qnsjfw", 5)});
}
public function _aw184(_arg1:BitmapData):void{
Buffer.copyPixels(_arg1, new Rectangle(0, 0, width, height), new Point(0, 0));
}
public function _ea397(_arg1:Boolean):void{
Parent.visible = _arg1;
}
}
}//package classes
Section 19 (1.75 KiB) ●
//_pc478 (classes._pc478)
package classes {
import flash.events.*;
import flash.utils.*;
public class _pc478 {
private static const delta_array_size:int = 20;
private static var delta_count:int;
public static var delta_value:Number = 0;
private static var delta_LastTime:Number = 0;
private static var delta_array:Array = [30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30];
public static var SpeedMultipler:Number = 1;
private static var delta_average:Number = 0;
public static var delta_throttle:Number = 20;
public static function _yd10(_arg1:Number=40):void{
delta_throttle = _arg1;
}
public static function _xk305():Number{
var _local1:uint = getTimer();
var _local2:uint = (_local1 - delta_LastTime);
delta_LastTime = getTimer();
delta_count++;
if (delta_count == delta_array_size){
delta_count = 0;
};
delta_array[delta_count] = _local2;
delta_average = 0;
var _local3:int;
while (_local3 < delta_array_size) {
delta_average = (delta_average + delta_array[_local3]);
_local3++;
};
delta_value = (delta_average / delta_array_size);
if (delta_value > delta_throttle){
delta_value = delta_throttle;
};
return ((delta_value * SpeedMultipler));
}
public static function _py49():Number{
var _local1:uint = getTimer();
var _local2:uint = (_local1 - delta_LastTime);
delta_LastTime = getTimer();
if (_local2 > delta_throttle){
_local2 = delta_throttle;
};
return ((_local2 * SpeedMultipler));
}
public static function _ia170():void{
delta_LastTime = getTimer();
delta_array = [30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30];
delta_average = 30;
delta_count = -1;
}
}
}//package classes
Section 20 (539 B)
//_pd81 (classes._pd81)
package classes {
import flash.utils.*;
public class _pd81 {
private static var fps_time:int;
private static var fps_value:int;
private static var fps_counter:int;
public static function _qk184():void{
fps_time = getTimer();
fps_counter = 0;
fps_value = 0;
}
public static function _va43():int{
fps_counter++;
if ((getTimer() - fps_time) > 1000){
fps_time = getTimer();
fps_value = fps_counter;
fps_counter = 0;
};
return (fps_value);
}
}
}//package classes
Section 21 (56.35 KiB) ● ● ● ●
//_ra247 (classes._ra247)
package classes {
import flash.display.*;
import flash.geom.*;
public class _ra247 {
public var animbitmapdata_array:Object;
public var spline_indexstart:int;// = 0
public var xscaling:int;
public var rotatemovespeed:Number;// = 0
public var str1:String;
public var str2:String;
public var collision_type:int;
public var spline_flip:int;// = 0
public var bluespeed:Number;// = 0
public var yweight:Number;// = 0
public var timetodiefunc:Function;
public var TileMoveLeftCheck:Number;// = 0
public var callback:Function;
public var bluestart:Number;// = 0
public var yskewing_dir:Number;// = 0
public var dampaddvalue:Number;// = 0
public var blend:String;
public var blue:Number;// = 0
public var xscaling_dir:Number;// = 0
public var yanchor:Number;// = 0
public var explodeamountscale:Number;// = 0
public var y:Number;// = 0
public var postrendercallback:Function;
public var alphafade_max:Number;// = 0
public var yscale:Number;// = 0
public var killwhenfadedout:Boolean;
public var TileMoveDownCheck:Number;// = 0
public var ct:ColorTransform;
public var spline_startx:Number;// = 0
public var spline_thrust:Number;// = 0
public var state:int;
public var spline_starty:Number;// = 0
public var movedata1:Number;// = 0
public var movedata2:Number;// = 0
public var red:Number;// = 0
public var x:Number;// = 0
public var movedata6:Number;// = 0
public var movedata7:Number;// = 0
public var movedata8:Number;// = 0
public var sinangle2:Number;// = 0
public var movedata3:Number;// = 0
public var dampmultiplier:Number;// = 0
public var spline_xoffset:Number;// = 0
private var mypi:Number;// = 0
public var frame_min:int;
public var movement_delaycounter:Number;// = 0
public var xskewing_min:Number;// = 0
public var scaling_max:Number;// = 0
public var movedata4:Number;// = 0
public var movedata5:Number;// = 0
public var hitcallback:Function;
public var cosradius:Number;// = 0
public var velocity:Number;// = 0
public var radiusgrowth:Number;// = 0
public var rotating_min:Number;// = 0
public var xweight:Number;// = 0
public var xmax_boundry:Number;// = 0
public var yscaling:int;
public var damping:Number;// = 0
public var yskew:Number;// = 0
public var donotautodie:Boolean;
public var collisionblockedtimer:Number;// = 0
public var cosspeed2:Number;// = 0
public var delayinit:Number;// = 0
public var xdir:Number;// = 0
public var id:int;
public var dampmultipliermax:Number;// = 0
public var yskewing_max:Number;// = 0
public var height:int;
public var xanchor:Number;// = 0
public var durationthenstop:Number;// = 0
public var xscaling_max:Number;// = 0
public var ymin_boundry:Number;// = 0
public var userflag1:Boolean;
public var userflag2:Boolean;
public var hitcount:int;
public var alpha:Number;// = 0
public var redtarget:Number;// = 0
public var TileMoveRightCheck:Number;// = 0
public var num2:Number;// = 0
public var num3:Number;// = 0
public var num4:Number;// = 0
public var num5:Number;// = 0
public var num1:Number;// = 0
public var ydir:Number;// = 0
public var timetodie:Boolean;
public var frame:Number;// = 0
public var nextstate:int;
public var xskew:Number;// = 0
public var spacer1:Number;// = 0
public var spacer2:Number;// = 0
public var ymin_boundryuser:Number;// = 0
public var spline_bend1x:Number;// = 0
public var alphafade_min:Number;// = 0
public var myrect:Rectangle;
public var target:_ra247;
public var xdirbuffer:Number;// = 0
public var spline_bend1y:Number;// = 0
public var scaling_min:Number;// = 0
public var ymax_boundryuser:Number;// = 0
public var bmpdest:BitmapData;
public var spline_bend2x:Number;// = 0
public var spline_bend2y:Number;// = 0
public var yscaling_dir:Number;// = 0
public var width:int;
public var donecallback:Function;
public var spline_delaybetweenindex:Number;// = 0
public var flashing:Boolean;
public var movement_delay:Number;// = 0
public var donotrender:Boolean;
public var sinradius2:Number;// = 0
public var dampmultipliermin:Number;// = 0
public var cosangle2:Number;// = 0
public var yskewing_min:Number;// = 0
public var oScale:Number;// = 0
public var scorevalue:Number;
public var xscaling_min:Number;// = 0
public var spline_leaveonwhendone:int;// = 0
private var hitbarwidth:Number;// = 0
public var collision_radius:Number;// = 0
public var animstyle:int;
public var animatecopyarray:Array;
public var flag1:Boolean;
public var flag2:Boolean;
public var ymax_boundry:Number;// = 0
public var spline_loop:int;// = 0
public var greentarget:Number;// = 0
public var redspeed:Number;// = 0
public var bmpsrc:BitmapData;
public var substate:int;
public var spline_speed:Number;// = 0
public var spline_ynegate:int;// = 0
public var bluetarget:Number;// = 0
public var TileMoveUpCheck:Number;// = 0
public var redstart:Number;// = 0
public var id1:int;
public var id2:int;
public var id3:int;
public var collision_width:Number;// = 0
public var weight:Number;// = 0
public var cosradius2:Number;// = 0
public var sinspeed:Number;// = 0
public var radiusgrowth2:Number;// = 0
public var name:String;
public var dampvalue:Number;// = 0
public var movetype:int;// = 0
public var yscaling_max:Number;// = 0
public var spline_indexcounter:int;// = 0
public var frame_work:Number;// = 0
public var animduration:Number;// = 0
public var spline_endx:Number;// = 0
public var spline_endy:Number;// = 0
public var drawsmoothing:Boolean;
public var neverending:Boolean;
public var frame_dir:Number;// = 0
public var centerhandle:Boolean;
public var ydirbuffer:Number;// = 0
public var delayinit_collisionbuffer:Boolean;
public var userobject:Object;
public var alphafade_pausing:Number;// = 0
public var alphafade_pausing_buffer:Number;// = 0
public var collision_height:Number;// = 0
public var xgravity:Number;// = 0
public var anglemoving:Number;// = 0
public var xskewing_dir:Number;// = 0
public var sinangle:Number;// = 0
public var life:Number;
public var green:Number;// = 0
public var srcx:int;
public var srcy:int;
public var alphafading:int;
public var greenspeed:Number;// = 0
public var donotrenderhitbar:Boolean;
public var rotating_dir:Number;// = 0
public var xskewing:int;
public var spline_xnegate:int;// = 0
public var cosspeed:Number;// = 0
public var oldx:Number;// = 0
public var oldy:Number;// = 0
public var collision_enabled:Boolean;
public var type:int;
public var frame_border:int;
public var greenstart:Number;// = 0
public var rotating:int;
public var showhitcount:Number;// = 0
public var animating:int;
public var userbitmapdata:BitmapData;
public var mypoint:Point;
public var sinradius:Number;// = 0
public var spline_indexend:int;// = 0
public var rotation:Number;// = 0
public var yscaling_min:Number;// = 0
public var parentrenderoffsetx:Number;// = 0
public var parentrenderoffsety:Number;// = 0
public var scaling:int;
public var frame_max:int;
public var spline_counter:Number;// = 0
public var explodetype:int;
public var sinspeed2:Number;// = 0
public var alphafade_dir:Number;// = 0
public var xmin_boundryuser:Number;// = 0
public var cosangle:Number;// = 0
public var ygravity:Number;// = 0
public var delta:Number;// = 0
public var xmax_boundryuser:Number;// = 0
public var killedcallback:Function;
public var img:int;
public var xskewing_max:Number;// = 0
public var scaling_dir:Number;// = 0
public var xscale:Number;// = 0
public var groupid:int;
public var spline_yoffset:Number;// = 0
public var xmin_boundry:Number;// = 0
public var groupparent:_ra247;
public var rotate_towards_sprite:_ra247;
public var spline_mirror:int;// = 0
public var doboundrycheck:Boolean;
public var rotating_max:Number;// = 0
public var yskewing:int;
public static var RenderOffsetY:Number = 0;
public static var RenderOffsetX:Number = 0;
public function _ra247(){
xmin_boundry = -10000;
xmax_boundry = 10000;
ymin_boundry = -10000;
ymax_boundry = 10000;
alpha = 1;
xscale = 1;
yscale = 1;
oScale = 1;
ct = new ColorTransform();
red = 1;
green = 1;
blue = 1;
mypi = (Math.PI * 2);
myrect = new Rectangle(0, 0, 0, 0);
mypoint = new Point(0, 0);
collision_enabled = true;
centerhandle = true;
name = "";
scorevalue = 0;
}
public function _ht319(_arg1:BitmapData):void{
var _local2:BitmapData = bmpdest;
var _local3:Boolean = donotrender;
donotrender = false;
bmpdest = _arg1;
_up57();
bmpdest = _local2;
donotrender = _local3;
}
public function _hi329(_arg1:Number, _arg2:Number):Boolean{
if (collision_enabled == true){
if (centerhandle == true){
return (_na124(_arg1, _arg2, (x - ((collision_width * Math.abs(xscale)) / 2)), (y - ((collision_height * Math.abs(yscale)) / 2)), (collision_width * Math.abs(xscale)), (collision_height * Math.abs(yscale))));
};
return (_na124(_arg1, _arg2, x, y, (collision_width * Math.abs(xscale)), (collision_height * Math.abs(yscale))));
//unresolved jump
};
return (false);
}
public function _xq48(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Number=0, _arg8:Number=0, _arg9:Number=0, _arg10:Number=0, _arg11:Boolean=true):void{
xdir = _arg7;
ydir = _arg8;
xgravity = _arg9;
ygravity = _arg10;
cosangle2 = _arg1;
cosspeed2 = _arg2;
cosradius2 = _arg3;
sinangle2 = _arg4;
sinspeed2 = _arg5;
sinradius2 = _arg6;
doboundrycheck = _arg11;
movetype = 31;
}
public function _jk25():void{
if (yskewing){
yskew = (yskew + (yskewing_dir * delta));
switch (yskewing){
case 1:
if (yskew >= yskewing_max){
yskew = yskewing_max;
yskewing_dir = -(yskewing_dir);
} else {
if (yskew <= yskewing_min){
yskew = yskewing_min;
yskewing_dir = -(yskewing_dir);
};
};
break;
case 2:
if (yskew >= yskewing_max){
yskew = yskewing_min;
} else {
if (yskew <= yskewing_min){
yskew = yskewing_max;
};
};
break;
case 3:
if (yskew >= yskewing_max){
yskew = yskewing_max;
yskewing = 0;
} else {
if (yskew <= yskewing_min){
yskew = yskewing_min;
yskewing = 0;
};
};
break;
case 4:
if (yskew >= yskewing_max){
yskew = yskewing_max;
yskewing = 0;
timetodie = true;
} else {
if (yskew <= yskewing_min){
yskew = yskewing_min;
yskewing = 0;
timetodie = true;
};
};
break;
};
};
}
public function _ba66(_arg1:Function):void{
hitcallback = _arg1;
}
public function _vq215(_arg1:Number, _arg2:Number):void{
xanchor = _arg1;
yanchor = _arg2;
}
public function _tk63(_arg1:Number, _arg2:Number):void{
x = _arg1;
y = _arg2;
}
public function _gg129(_arg1:_ra247, _arg2:Number, _arg3:Number=0, _arg4:Number=0, _arg5:Number=0):void{
target = _arg1;
movedata1 = _arg2;
movement_delay = _arg3;
movement_delaycounter = movement_delay;
movetype = 6;
movedata2 = _arg4;
movedata3 = _arg5;
}
public function _gg363(_arg1:BitmapData, _arg2:int, _arg3:int, _arg4:int, _arg5:int):void{
bmpsrc = _arg1;
srcx = _arg2;
srcy = _arg3;
width = _arg4;
height = _arg5;
myrect.width = width;
myrect.height = height;
collision_radius = (width / 2);
collision_width = width;
collision_height = height;
collision_enabled = true;
}
public function _cy425(_arg1:Object, _arg2:Number, _arg3:int, _arg4:Number):void{
animbitmapdata_array = _arg1;
bmpsrc = animbitmapdata_array[0];
srcx = 0;
srcy = 0;
frame_min = 0;
frame_max = (_arg3 - 1);
frame_dir = _arg2;
frame_work = 0;
frame = 0;
animstyle = 3;
animating = 5;
animduration = _arg4;
}
public function _cr79(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number=0, _arg5:Boolean=false, _arg6:Boolean=false):void{
movedata1 = _arg1;
movedata2 = _arg2;
movedata3 = _arg3;
movedata4 = _arg4;
movetype = 7;
if (_arg5 == true){
movetype = 9;
};
neverending = _arg6;
}
public function _gu21(_arg1:Function):void{
postrendercallback = _arg1;
}
public function _jy413():void{
if (rotating){
switch (rotating){
case 1:
rotation = (rotation + (rotating_dir * delta));
if (rotation >= rotating_max){
rotation = rotating_max;
rotating_dir = -(rotating_dir);
} else {
if (rotation <= rotating_min){
rotation = rotating_min;
rotating_dir = -(rotating_dir);
};
};
break;
case 2:
rotation = (rotation + (rotating_dir * delta));
if (rotation >= rotating_max){
rotation = rotating_min;
} else {
if (rotation <= rotating_min){
rotation = rotating_max;
};
};
break;
case 3:
rotation = (rotation + (rotating_dir * delta));
if (rotation >= rotating_max){
rotation = rotating_max;
rotating = 0;
} else {
if (rotation <= rotating_min){
rotation = rotating_min;
rotating = 0;
};
};
break;
case 4:
rotation = (rotation + (rotating_dir * delta));
if (rotation >= rotating_max){
rotation = rotating_max;
rotating = 0;
timetodie = true;
} else {
if (rotation <= rotating_min){
rotation = rotating_min;
rotating = 0;
timetodie = true;
};
};
break;
case 5:
_rn169(rotate_towards_sprite, rotating_dir);
break;
case 6:
_ac212(rotating_min, rotating_dir, delta);
break;
};
};
}
public function _sl143(_arg1:Number, _arg2:Number):void{
oldx = _arg1;
oldy = _arg2;
}
public function _am66(_arg1:Number, _arg2:Number, _arg3:Number=1):void{
alphafading = 2;
alphafade_dir = _arg1;
alphafade_min = 0;
alphafade_max = _arg3;
alpha = 0;
alphafade_pausing = 0;
alphafade_pausing_buffer = _arg2;
killwhenfadedout = true;
}
public function _sf408(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):void{
xdir = _arg1;
ydir = _arg2;
ygravity = _arg3;
movedata1 = _arg4;
movetype = 17;
}
public function _gf94(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number):void{
xdir = _arg1;
ydir = _arg2;
xmin_boundry = _arg3;
xmax_boundry = _arg5;
ymin_boundry = _arg4;
ymax_boundry = _arg6;
movetype = 11;
}
public function _uq484(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Number=0, _arg8:Number=0, _arg9:Number=0, _arg10:Number=0, _arg11:Boolean=true):void{
xdir = _arg7;
ydir = _arg8;
xgravity = _arg9;
ygravity = _arg10;
cosangle = _arg1;
cosspeed = _arg2;
cosradius = _arg3;
sinangle = _arg4;
sinspeed = _arg5;
sinradius = _arg6;
doboundrycheck = _arg11;
movetype = 3;
}
public function _sh86(_arg1:Number=1):void{
delta = _arg1;
_ke63();
_se484();
if (callback != null){
callback(this);
};
}
public function _kp439(_arg1:Number, _arg2:Number=0.95):void{
damping = _arg1;
dampvalue = _arg1;
dampmultiplier = _arg2;
}
public function _eq60(_arg1:String):void{
name = _arg1;
}
public function _do155(_arg1:Function):void{
timetodiefunc = _arg1;
}
public function _kh21(_arg1:Number):void{
life = _arg1;
}
public function get scale():Number{
return (oScale);
}
public function _ac212(_arg1:Number, _arg2:Number, _arg3:Number=1):void{
var _local4:Number = rotation;
var _local5:Number = _arg1;
var _local6:Number = 0;
if (_local4 < _local5){
_local6 = 1;
if ((_local5 - _local4) > 179){
_local6 = -1;
_local4 = (_local4 + ((_arg2 * _local6) * _arg3));
} else {
_local4 = (_local4 + ((_arg2 * _local6) * _arg3));
};
} else {
if (_local4 > _local5){
_local6 = -1;
if ((_local4 - _local5) > 179){
_local6 = 1;
_local4 = (_local4 + ((_arg2 * _local6) * _arg3));
} else {
_local4 = (_local4 + ((_arg2 * _local6) * _arg3));
};
};
};
if (_local4 < 0){
_local4 = (_local4 + 360);
} else {
if (_local4 > 359){
_local4 = (_local4 - 360);
};
};
if (Math.abs((_local4 - _local5)) < 2){
_local4 = _local5;
};
rotation = _local4;
}
public function _ao426(_arg1:Number, _arg2:Number):void{
xskew = _arg1;
yskew = _arg2;
}
public function _vw503(_arg1:Number, _arg2:Number=1, _arg3:Number=0, _arg4:Number=1, _arg5:Boolean=true):void{
alphafading = 1;
alphafade_dir = _arg1;
alphafade_min = _arg3;
alphafade_max = _arg4;
alpha = _arg2;
killwhenfadedout = _arg5;
}
public function _se484():void{
if (animating){
frame_work = (frame_work + (frame_dir * delta));
switch (animating){
case 1:
if (frame_work > frame_max){
frame_work = frame_max;
frame_dir = -(frame_dir);
} else {
if (frame_work < frame_min){
frame_work = frame_min;
frame_dir = -(frame_dir);
};
};
break;
case 2:
if (frame_work > frame_max){
frame_work = frame_min;
} else {
if (frame_work < frame_min){
frame_work = frame_max;
};
};
break;
case 3:
if (frame_work >= frame_max){
frame_work = frame_max;
animating = 0;
} else {
if (frame_work <= frame_min){
frame_work = frame_min;
animating = 0;
};
};
break;
case 4:
if (frame_work >= frame_max){
frame_work = frame_max;
animating = 0;
timetodie = true;
} else {
if (frame_work <= frame_min){
frame_work = frame_min;
animating = 0;
timetodie = true;
};
};
break;
case 5:
if (frame_work > frame_max){
frame_work = frame_min;
} else {
if (frame_work < frame_min){
frame_work = frame_max;
};
};
animduration = (animduration - delta);
if (animduration < 1){
animduration = 0;
frame_work = frame_min;
animating = 0;
};
break;
case 6:
if (frame_work >= frame_max){
frame_work = frame_max;
animating = 0;
};
break;
case 7:
if (frame_work >= frame_max){
frame_work = frame_max;
animating = 0;
donecallback(this);
donecallback = null;
};
};
frame = Math.round(frame_work);
if (animstyle == 1){
srcx = (frame * (width + frame_border));
} else {
if (animstyle == 2){
srcx = animatecopyarray[(frame * 2)];
srcy = animatecopyarray[((frame * 2) + 1)];
} else {
bmpsrc = animbitmapdata_array[frame];
};
};
};
}
public function _pa257(_arg1:Number):void{
collision_radius = _arg1;
collision_type = 1;
}
public function _ao201(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:int=1, _arg5:Number=0):void{
rotating = _arg4;
rotating_dir = _arg1;
rotating_min = _arg2;
rotating_max = _arg3;
rotation = _arg5;
}
public function _oa338(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number):void{
_ao348(_mt474._cp39(_arg1, 0.01), _mt474._yy371(_arg1, 0.01), 0, 0, 0, false);
dampvalue = _arg2;
damping = dampvalue;
dampmultiplier = 1;
dampaddvalue = _arg3;
dampmultipliermax = _arg4;
dampmultipliermin = _arg5;
movedata1 = 0;
movetype = 13;
}
public function _gk128(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:int=1, _arg5:Number=0):void{
yskewing = _arg4;
yskewing_dir = _arg1;
yskewing_min = _arg2;
yskewing_max = _arg3;
yskew = _arg5;
}
public function _rn169(_arg1:_ra247, _arg2:Number, _arg3:Number=1):void{
var _local4:Number = rotation;
var _local5:Number = _mt474._mv29(x, y, _arg1.x, _arg1.y);
var _local6:Number = 0;
if (_local4 < _local5){
_local6 = 1;
if ((_local5 - _local4) > 179){
_local6 = -1;
};
} else {
if (_local4 > _local5){
_local6 = -1;
if ((_local4 - _local5) > 179){
_local6 = 1;
};
};
};
_local4 = (_local4 + ((_arg2 * _local6) * _arg3));
if (_local4 < 0){
_local4 = (_local4 + 360);
} else {
if (_local4 > 359){
_local4 = (_local4 - 360);
};
};
if (Math.abs((_local4 - _local5)) < 2){
_local4 = _local5;
};
rotation = _local4;
}
public function _be239(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number):void{
xdir = _mt474._cp39(_arg1, _arg2);
ydir = _mt474._yy371(_arg1, _arg2);
xmin_boundry = _arg3;
xmax_boundry = _arg5;
ymin_boundry = _arg4;
ymax_boundry = _arg6;
movetype = 12;
}
public function _ao348(_arg1:Number, _arg2:Number, _arg3:Number=0, _arg4:Number=0, _arg5:Number=0, _arg6:Boolean=true):void{
xdir = _arg1;
ydir = _arg2;
xgravity = _arg3;
ygravity = _arg4;
durationthenstop = _arg5;
doboundrycheck = _arg6;
movetype = 1;
if (doboundrycheck == false){
movetype = 10;
};
}
public function _lg383(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:int=1, _arg5:Number=1):void{
yscaling = _arg4;
yscaling_dir = _arg1;
yscaling_min = _arg2;
yscaling_max = _arg3;
yscale = _arg5;
}
public function _nl89(_arg1:Number, _arg2:Boolean=true):void{
rotatemovespeed = _arg1;
movetype = 14;
doboundrycheck = _arg2;
}
public function _gx446(_arg1:Number, _arg2:Number, _arg3:Number):void{
red = _arg1;
green = _arg2;
blue = _arg3;
}
public function _eu102(_arg1:_ra247, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number):void{
target = _arg1;
movedata1 = 0;
movedata2 = _arg2;
movedata3 = _arg3;
movedata4 = 0;
movedata5 = _arg4;
movedata6 = _arg5;
movetype = 2;
}
public function _ap454():void{
if (flashing == true){
if (redstart < redtarget){
redstart = (redstart + (redspeed * delta));
if (redstart > redtarget){
redstart = redtarget;
};
} else {
if (redstart > redtarget){
redstart = (redstart - (redspeed * delta));
if (redstart < redtarget){
redstart = redtarget;
};
};
};
if (greenstart < greentarget){
greenstart = (greenstart + (greenspeed * delta));
if (greenstart > greentarget){
greenstart = greentarget;
};
} else {
if (greenstart > greentarget){
greenstart = (greenstart - (greenspeed * delta));
if (greenstart < greentarget){
greenstart = greentarget;
};
};
};
if (bluestart < bluetarget){
bluestart = (bluestart + (bluespeed * delta));
if (bluestart > bluetarget){
bluestart = bluetarget;
};
} else {
if (bluestart > bluetarget){
bluestart = (bluestart - (bluespeed * delta));
if (bluestart < bluetarget){
bluestart = bluetarget;
};
};
};
red = redstart;
green = greenstart;
blue = bluestart;
if (redstart == redtarget){
if (greenstart == greentarget){
if (bluestart == bluetarget){
flashing = false;
};
};
};
};
}
public function _bo177(_arg1:Number):void{
alpha = _arg1;
}
public function _tb52(_arg1:Number, _arg2:Number):void{
xscale = _arg1;
yscale = _arg2;
}
public function _cx31(_arg1:String):void{
blend = _arg1;
}
public function _ke63():void{
var _local1:Number;
var _local2:Number;
var _local3:Number;
var _local4:Number;
if (movetype == 1){
if (damping > 0){
damping = (damping - delta);
if (damping < 1){
damping = dampvalue;
xdir = (xdir * dampmultiplier);
ydir = (ydir * dampmultiplier);
if (Math.abs(xdir) < 0.001){
xdir = 0;
};
if (Math.abs(ydir) < 0.001){
ydir = 0;
};
if ((((xdir == 0)) && ((ydir == 0)))){
damping = 0;
movetype = 0;
};
};
};
x = (x + (xdir * delta));
y = (y + (ydir * delta));
xdir = (xdir + (xgravity * delta));
ydir = (ydir + (ygravity * delta));
if ((((x < xmin_boundry)) || ((x > xmax_boundry)))){
timetodie = true;
};
if ((((y < ymin_boundry)) || ((y > ymax_boundry)))){
timetodie = true;
};
if (durationthenstop > 0){
durationthenstop = (durationthenstop - delta);
if (durationthenstop < 1){
movetype = 0;
};
};
} else {
if (movetype == 2){
_local1 = x;
_local2 = y;
_local3 = 0;
_local4 = 0;
if (target == null){
} else {
_local3 = target.x;
_local4 = target.y;
if (_local1 < _local3){
movedata1 = (movedata1 + (movedata2 * delta));
if (movedata1 > movedata3){
movedata1 = movedata3;
};
} else {
if (_local1 > _local3){
movedata1 = (movedata1 - (movedata2 * delta));
if (movedata1 < -(movedata3)){
movedata1 = -(movedata3);
};
};
};
x = (x + (movedata1 * delta));
if (_local2 < _local4){
movedata4 = (movedata4 + (movedata5 * delta));
if (movedata4 > movedata6){
movedata4 = movedata6;
};
} else {
if (_local2 > _local4){
movedata4 = (movedata4 - (movedata5 * delta));
if (movedata4 < -(movedata6)){
movedata4 = -(movedata6);
};
};
};
y = (y + (movedata4 * delta));
};
} else {
if (movetype == 3){
cosangle = (cosangle + (cosspeed * delta));
sinangle = (sinangle + (sinspeed * delta));
x = (x + ((Math.cos(cosangle) * cosradius) * delta));
y = (y + ((Math.sin(sinangle) * sinradius) * delta));
x = (x + (xdir * delta));
y = (y + (ydir * delta));
xdir = (xdir + (xgravity * delta));
ydir = (ydir + (ygravity * delta));
if (doboundrycheck == true){
if ((((x < xmin_boundry)) || ((x > xmax_boundry)))){
timetodie = true;
};
if ((((y < ymin_boundry)) || ((y > ymax_boundry)))){
timetodie = true;
};
};
} else {
if (movetype == 31){
cosangle2 = (cosangle2 + (cosspeed2 * delta));
sinangle2 = (sinangle2 + (sinspeed2 * delta));
x = (x + ((Math.cos(cosangle2) * cosradius2) * delta));
y = (y + ((Math.sin(sinangle2) * sinradius2) * delta));
x = (x + (xdir * delta));
y = (y + (ydir * delta));
xdir = (xdir + (xgravity * delta));
ydir = (ydir + (ygravity * delta));
if (doboundrycheck == true){
if ((((x < xmin_boundry)) || ((x > xmax_boundry)))){
timetodie = true;
};
if ((((y < ymin_boundry)) || ((y > ymax_boundry)))){
timetodie = true;
};
};
} else {
if (movetype == 4){
} else {
if (movetype == 5){
if (target != null){
cosangle = (cosangle + (cosspeed * delta));
x = (target.x + (Math.cos(cosangle) * cosradius));
y = (target.y + (Math.sin(cosangle) * cosradius));
} else {
timetodie = true;
};
} else {
if (movetype == 6){
if (target != null){
if (movement_delaycounter > 0){
movement_delaycounter = (movement_delaycounter - delta);
if (movement_delaycounter < 1){
movement_delaycounter = movement_delay;
anglemoving = _mt474._mv29(x, y, target.x, target.y);
xdir = _mt474._cp39(anglemoving, movedata1);
ydir = _mt474._yy371(anglemoving, movedata1);
x = (x + (xdir * delta));
y = (y + (ydir * delta));
movedata1 = (movedata1 + (movedata2 * delta));
};
} else {
anglemoving = _mt474._mv29(x, y, target.x, target.y);
xdir = _mt474._cp39(anglemoving, movedata1);
ydir = _mt474._yy371(anglemoving, movedata1);
x = (x + (xdir * delta));
y = (y + (ydir * delta));
movedata1 = (movedata1 + (movedata2 * delta));
};
if (movedata3 > 0){
movedata3 = (movedata3 - delta);
if (movedata3 < 1){
movedata3 = 0;
movetype = 0;
};
};
} else {
timetodie = true;
};
} else {
if (movetype == 7){
anglemoving = _mt474._mv29(x, y, movedata1, movedata2);
xdir = _mt474._cp39(anglemoving, movedata3);
ydir = _mt474._yy371(anglemoving, movedata3);
x = (x + (xdir * delta));
y = (y + (ydir * delta));
movedata3 = (movedata3 + (movedata4 * delta));
if (xdir > 0){
if (x > movedata1){
x = movedata1;
};
} else {
if (xdir < 0){
if (x < movedata1){
x = movedata1;
};
};
};
if (ydir > 0){
if (y > movedata2){
y = movedata2;
};
} else {
if (ydir < 0){
if (y < movedata2){
y = movedata2;
};
};
};
if ((((x == movedata1)) && ((y == movedata2)))){
if (neverending == false){
movetype = 0;
if (donecallback != null){
donecallback(this);
donecallback = null;
};
};
};
} else {
if (movetype == 8){
cosangle = (cosangle + (cosspeed * delta));
sinangle = (sinangle + (sinspeed * delta));
x = (x + ((Math.cos(cosangle) * cosradius) * delta));
y = (y + ((Math.sin(sinangle) * sinradius) * delta));
cosradius = (cosradius + (radiusgrowth * delta));
sinradius = (sinradius + (radiusgrowth * delta));
if ((((x < xmin_boundry)) || ((x > xmax_boundry)))){
timetodie = true;
};
if ((((y < ymin_boundry)) || ((y > ymax_boundry)))){
timetodie = true;
};
} else {
if (movetype == 9){
anglemoving = _mt474._mv29(x, y, movedata1, movedata2);
xdir = _mt474._cp39(anglemoving, movedata3);
ydir = _mt474._yy371(anglemoving, movedata3);
x = (x + (xdir * delta));
y = (y + (ydir * delta));
movedata3 = (movedata3 + (movedata4 * delta));
if (xdir > 0){
if (x > movedata1){
x = movedata1;
};
} else {
if (xdir < 0){
if (x < movedata1){
x = movedata1;
};
};
};
if (ydir > 0){
if (y > movedata2){
y = movedata2;
};
} else {
if (ydir < 0){
if (y < movedata2){
y = movedata2;
};
};
};
if ((((x == movedata1)) && ((y == movedata2)))){
movetype = 0;
timetodie = true;
};
} else {
if (movetype == 10){
if (damping > 0){
damping = (damping - delta);
if (damping < 1){
damping = dampvalue;
xdir = (xdir * dampmultiplier);
ydir = (ydir * dampmultiplier);
if (Math.abs(xdir) < 0.001){
xdir = 0;
};
if (Math.abs(ydir) < 0.001){
ydir = 0;
};
if ((((xdir == 0)) && ((ydir == 0)))){
damping = 0;
movetype = 0;
};
};
};
x = (x + (xdir * delta));
y = (y + (ydir * delta));
xdir = (xdir + (xgravity * delta));
ydir = (ydir + (ygravity * delta));
if (durationthenstop > 0){
durationthenstop = (durationthenstop - delta);
if (durationthenstop < 1){
movetype = 0;
};
};
} else {
if (movetype == 11){
x = (x + (xdir * delta));
y = (y + (ydir * delta));
if (x < xmin_boundry){
x = xmin_boundry;
xdir = -(xdir);
} else {
if (x > xmax_boundry){
x = xmax_boundry;
xdir = -(xdir);
};
};
if (y < ymin_boundry){
y = ymin_boundry;
ydir = -(ydir);
} else {
if (y > ymax_boundry){
y = ymax_boundry;
ydir = -(ydir);
};
};
} else {
if (movetype == 12){
x = (x + (xdir * delta));
y = (y + (ydir * delta));
if (x < xmin_boundry){
x = xmax_boundry;
} else {
if (x > xmax_boundry){
x = xmin_boundry;
};
};
if (y < ymin_boundry){
y = ymax_boundry;
} else {
if (y > ymax_boundry){
y = ymin_boundry;
};
};
} else {
if (movetype == 13){
x = (x + (xdir * delta));
y = (y + (ydir * delta));
damping = (damping - delta);
if (damping < 1){
damping = dampvalue;
xdir = (xdir * dampmultiplier);
ydir = (ydir * dampmultiplier);
dampmultiplier = (dampmultiplier + dampaddvalue);
if (movedata1 == 0){
if (dampmultiplier > dampmultipliermax){
dampmultiplier = dampmultipliermax;
dampaddvalue = -(dampaddvalue);
movedata1 = 1;
};
} else {
if (dampmultiplier < dampmultipliermin){
dampmultiplier = dampmultipliermin;
};
if (Math.abs(xdir) < 0.001){
xdir = 0;
};
if (Math.abs(ydir) < 0.001){
ydir = 0;
};
if ((((xdir == 0)) && ((ydir == 0)))){
movetype = 0;
};
};
};
} else {
if (movetype == 14){
xdir = _mt474._cp39(rotation, rotatemovespeed);
ydir = _mt474._yy371(rotation, rotatemovespeed);
x = (x + (xdir * delta));
y = (y + (ydir * delta));
if (doboundrycheck == true){
if ((((x < xmin_boundry)) || ((x > xmax_boundry)))){
timetodie = true;
};
if ((((y < ymin_boundry)) || ((y > ymax_boundry)))){
timetodie = true;
};
};
} else {
if (movetype == 15){
x = (x + (xdir * delta));
y = (y + (ydir * delta));
if (x < xmin_boundry){
x = xmax_boundry;
y = _mt474.Random._oa470(ymin_boundry, ymax_boundry);
} else {
if (x > xmax_boundry){
x = xmin_boundry;
y = _mt474.Random._oa470(ymin_boundry, ymax_boundry);
};
};
if (y < ymin_boundry){
y = ymax_boundry;
x = _mt474.Random._oa470(xmin_boundry, xmax_boundry);
} else {
if (y > ymax_boundry){
y = ymin_boundry;
x = _mt474.Random._oa470(xmin_boundry, xmax_boundry);
};
};
} else {
if (movetype == 16){
cosangle = (cosangle + (cosspeed * delta));
x = (movedata1 + (Math.cos(cosangle) * cosradius));
y = (movedata2 + (Math.sin(cosangle) * cosradius));
} else {
if (movetype == 17){
x = (x + (xdir * delta));
y = (y + (ydir * delta));
ydir = (ydir + (ygravity * delta));
if (ydir > 0){
if (y > movedata1){
y = movedata1;
movetype = 0;
};
};
} else {
if (movetype == 18){
anglemoving = _mt474._mv29(x, y, xanchor, yanchor);
xdir = _mt474._cp39(anglemoving, movedata3);
ydir = _mt474._yy371(anglemoving, movedata3);
x = (x + (xdir * delta));
y = (y + (ydir * delta));
movedata3 = (movedata3 + (movedata4 * delta));
if (xdir > 0){
if (x > xanchor){
x = xanchor;
};
} else {
if (xdir < 0){
if (x < xanchor){
x = xanchor;
};
};
};
if (ydir > 0){
if (y > yanchor){
y = yanchor;
};
} else {
if (ydir < 0){
if (y < yanchor){
y = yanchor;
};
};
};
if ((((x == xanchor)) && ((y == yanchor)))){
movetype = 0;
};
} else {
if (movetype == 19){
x = (x + (xdir * delta));
y = (y + (ydir * delta));
if (movedata1 != 0){
if (x > target.x){
x = (x - (movedata1 * delta));
if (x < target.x){
x = target.x;
};
} else {
if (x < target.x){
x = (x + (movedata1 * delta));
if (x > target.x){
x = target.x;
};
};
};
};
if (movedata2 != 0){
if (y > target.y){
y = (y - (movedata2 * delta));
if (y < target.y){
y = target.y;
};
} else {
if (y < target.y){
y = (y + (movedata2 * delta));
if (y > target.y){
y = target.y;
};
};
};
};
if (doboundrycheck == true){
if ((((x < xmin_boundry)) || ((x > xmax_boundry)))){
timetodie = true;
};
if ((((y < ymin_boundry)) || ((y > ymax_boundry)))){
timetodie = true;
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
}
public function _yi47():void{
if (alphafading){
switch (alphafading){
case 1:
alpha = (alpha + (alphafade_dir * delta));
if (alpha > alphafade_max){
alpha = alphafade_max;
alphafading = 0;
} else {
if (alpha < alphafade_min){
alpha = alphafade_min;
alphafading = 0;
if (killwhenfadedout == true){
timetodie = true;
};
};
};
break;
case 2:
if (alphafade_pausing > 0){
alphafade_pausing = (alphafade_pausing - (1 * delta));
if (alphafade_pausing < 1){
alphafade_pausing = 0;
_vw503(-(alphafade_dir), alphafade_max);
};
} else {
alpha = (alpha + (alphafade_dir * delta));
if (alpha >= alphafade_max){
alpha = alphafade_max;
alphafade_pausing = alphafade_pausing_buffer;
};
};
break;
};
_bo177(alpha);
};
}
public function _lu445(_arg1:Function):void{
killedcallback = _arg1;
}
public function set scale(_arg1:Number):void{
oScale = _arg1;
}
public function _xy127(_arg1:Number, _arg2:Number, _arg3:_ra247, _arg4:Number, _arg5:Number, _arg6:Boolean=true):void{
target = _arg3;
xdir = _arg1;
ydir = _arg2;
doboundrycheck = _arg6;
movedata1 = _arg4;
movedata2 = _arg5;
movetype = 19;
}
public function _xf28():void{
if (xskewing){
xskew = (xskew + (xskewing_dir * delta));
switch (xskewing){
case 1:
if (xskew >= xskewing_max){
xskew = xskewing_max;
xskewing_dir = -(xskewing_dir);
} else {
if (xskew <= xskewing_min){
xskew = xskewing_min;
xskewing_dir = -(xskewing_dir);
};
};
break;
case 2:
if (xskew >= xskewing_max){
xskew = xskewing_min;
} else {
if (xskew <= xskewing_min){
xskew = xskewing_max;
};
};
break;
case 3:
if (xskew >= xskewing_max){
xskew = xskewing_max;
xskewing = 0;
} else {
if (xskew <= xskewing_min){
xskew = xskewing_min;
xskewing = 0;
};
};
break;
case 4:
if (xskew >= xskewing_max){
xskew = xskewing_max;
xskewing = 0;
timetodie = true;
} else {
if (xskew <= xskewing_min){
xskew = xskewing_min;
xskewing = 0;
timetodie = true;
};
};
break;
};
};
}
public function _vv379(_arg1:_ra247, _arg2:Number):void{
rotating = 5;
rotating_dir = _arg2;
rotate_towards_sprite = _arg1;
}
public function _gb376():void{
if (xscaling){
xscale = (xscale + (xscaling_dir * delta));
switch (xscaling){
case 1:
if (xscale >= xscaling_max){
xscale = xscaling_max;
xscaling_dir = -(xscaling_dir);
} else {
if (xscale <= xscaling_min){
xscale = xscaling_min;
xscaling_dir = -(xscaling_dir);
};
};
break;
case 2:
if (xscale >= xscaling_max){
xscale = xscaling_min;
} else {
if (xscale <= xscaling_min){
xscale = xscaling_max;
};
};
break;
case 3:
if (xscale >= xscaling_max){
xscale = xscaling_max;
xscaling = 0;
} else {
if (xscale <= xscaling_min){
xscale = xscaling_min;
xscaling = 0;
};
};
break;
case 4:
if (xscale >= xscaling_max){
xscale = xscaling_max;
xscaling = 0;
timetodie = true;
} else {
if (xscale <= xscaling_min){
xscale = xscaling_min;
xscaling = 0;
timetodie = true;
};
};
break;
case 5:
if (xscale >= xscaling_max){
xscale = xscaling_max;
xscaling_dir = -(xscaling_dir);
xscaling = 3;
};
break;
case 6:
if (xscale <= xscaling_min){
xscale = xscaling_min;
xscaling_dir = -(xscaling_dir);
xscaling = 3;
};
break;
case 7:
if (xscale >= xscaling_max){
xscale = xscaling_max;
xscaling_dir = -(xscaling_dir);
xscaling = 4;
};
break;
};
};
}
public function _wm247(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:int=1, _arg5:Number=1):void{
xscaling = _arg4;
xscaling_dir = _arg1;
xscaling_min = _arg2;
xscaling_max = _arg3;
xscale = _arg5;
}
private function _na124(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number):Boolean{
if ((((((((_arg1 < (_arg3 + _arg5))) && ((_arg2 < (_arg4 + _arg6))))) && ((_arg1 > _arg3)))) && ((_arg2 > _arg4)))){
return (true);
};
return (false);
}
public function _rg227(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number):void{
redstart = _arg1;
greenstart = _arg2;
bluestart = _arg3;
redspeed = _arg4;
greenspeed = _arg5;
bluespeed = _arg6;
redtarget = 1;
greentarget = 1;
bluetarget = 1;
flashing = true;
}
public function _uw431(_arg1:BitmapData, _arg2:Number, _arg3:int, _arg4:int, _arg5:Array):void{
bmpsrc = _arg1;
srcx = 0;
frame_min = 0;
frame_max = (_arg3 - 1);
frame_dir = _arg2;
frame_work = 0;
frame = 0;
frame_border = 0;
animstyle = 2;
animating = _arg4;
animatecopyarray = _arg5;
}
public function _xe450(_arg1:BitmapData, _arg2:Number, _arg3:Number):void{
}
public function _ut280(_arg1:Number, _arg2:Number):void{
collision_width = _arg1;
collision_height = _arg2;
collision_type = 0;
}
public function _he224(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Function):void{
movedata1 = _arg1;
movedata2 = _arg2;
movedata3 = _arg3;
movedata4 = _arg4;
movetype = 7;
donecallback = _arg5;
}
public function _ex422(_arg1:BitmapData, _arg2:Number, _arg3:int, _arg4:int, _arg5:int=0, _arg6:int=0):void{
bmpsrc = _arg1;
srcx = 0;
frame_min = 0;
frame_max = (_arg3 - 1);
frame_dir = _arg2;
frame_work = _arg6;
frame = _arg6;
frame_border = _arg5;
animstyle = 1;
animating = _arg4;
}
public function _ss493(_arg1:_ra247, _arg2:Number, _arg3:Number, _arg4:Number):void{
target = _arg1;
cosangle = _arg2;
cosspeed = _arg3;
cosradius = _arg4;
movetype = 5;
}
public function _uv496(_arg1:Number, _arg2:Number=0):void{
movedata3 = _arg1;
movedata4 = _arg2;
movetype = 18;
}
public function _og30(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):void{
xmin_boundryuser = _arg1;
xmax_boundryuser = _arg3;
ymin_boundryuser = _arg2;
ymax_boundryuser = _arg4;
}
public function _nm258(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Number):void{
cosangle = _arg1;
cosspeed = _arg2;
cosradius = _arg3;
sinangle = _arg4;
sinspeed = _arg5;
sinradius = _arg6;
radiusgrowth = _arg7;
movetype = 8;
}
public function _uv398(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:int=1, _arg5:Number=0):void{
xskewing = _arg4;
xskewing_dir = _arg1;
xskewing_min = _arg2;
xskewing_max = _arg3;
xskew = _arg5;
}
public function _ex42(_arg1:_ra247):Number{
return (_mt474._qt415(x, y, _arg1.x, _arg1.y));
}
public function _tp86(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):void{
TileMoveRightCheck = _arg1;
TileMoveLeftCheck = _arg3;
TileMoveDownCheck = _arg2;
TileMoveUpCheck = _arg4;
}
public function _ew499():void{
animatecopyarray = null;
callback = null;
killedcallback = null;
hitcallback = null;
timetodiefunc = null;
donecallback = null;
postrendercallback = null;
myrect = null;
mypoint = null;
userobject = null;
rotate_towards_sprite = null;
target = null;
groupparent = null;
}
public function _uc442(_arg1:Number=1):void{
delta = _arg1;
if (delayinit != 0){
delayinit = (delayinit - delta);
if (delayinit < 1){
delayinit = 0;
collision_enabled = delayinit_collisionbuffer;
};
} else {
_ke63();
_jy413();
_ci397();
_gb376();
_ps440();
_yi47();
_se484();
_ap454();
if (callback != null){
callback(this);
};
if (life){
life = (life - _arg1);
if (life < 1){
life = 0;
timetodie = true;
};
};
};
}
public function _ci397():void{
if (scaling){
oScale = (oScale + (scaling_dir * delta));
switch (scaling){
case 1:
if (oScale >= scaling_max){
oScale = scaling_max;
scaling_dir = -(scaling_dir);
} else {
if (oScale <= scaling_min){
oScale = scaling_min;
scaling_dir = -(scaling_dir);
};
};
break;
case 2:
if (oScale >= scaling_max){
oScale = scaling_min;
} else {
if (oScale <= scaling_min){
oScale = scaling_max;
};
};
break;
case 3:
if (oScale >= scaling_max){
oScale = scaling_max;
scaling = 0;
} else {
if (oScale <= scaling_min){
oScale = scaling_min;
scaling = 0;
};
};
break;
case 4:
if (oScale >= scaling_max){
oScale = scaling_max;
scaling = 0;
timetodie = true;
} else {
if (oScale <= scaling_min){
oScale = scaling_min;
scaling = 0;
timetodie = true;
};
};
break;
case 5:
if (oScale >= scaling_max){
oScale = scaling_max;
scaling_dir = -(scaling_dir);
scaling = 3;
};
break;
case 7:
if (oScale >= scaling_max){
oScale = scaling_max;
scaling_dir = -(scaling_dir);
scaling = 4;
};
break;
};
};
}
public function _up57():void{
var _local1:Number;
var _local2:Matrix;
if (delayinit == 0){
if (donotrender == false){
if (type == 1){
_local1 = 0;
if (rotation != 0){
if (rotation > 180){
_local1 = (-360 + rotation);
} else {
_local1 = rotation;
};
_local1 = ((mypi * _local1) / 360);
};
_local2 = new Matrix();
if (centerhandle == true){
_local2.translate((-(width) / 2), (-(height) / 2));
};
_local2.scale((xscale * oScale), (yscale * oScale));
_local2.rotate(_local1);
_local2.translate((x + RenderOffsetX), (y + RenderOffsetY));
ct.redMultiplier = red;
ct.greenMultiplier = green;
ct.blueMultiplier = blue;
ct.alphaMultiplier = alpha;
bmpdest.draw(bmpsrc, _local2, ct, blend, null, drawsmoothing);
} else {
if (centerhandle == true){
mypoint.x = ((x + RenderOffsetX) - (width / 2));
mypoint.y = ((y + RenderOffsetY) - (height / 2));
} else {
mypoint.x = (x + RenderOffsetX);
mypoint.y = (y + RenderOffsetY);
};
myrect.x = srcx;
myrect.y = srcy;
bmpdest.copyPixels(bmpsrc, myrect, mypoint, null, null, false);
};
if (postrendercallback != null){
postrendercallback(this);
};
};
};
}
public function _fy485(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):void{
xmin_boundry = _arg1;
xmax_boundry = _arg3;
ymin_boundry = _arg2;
ymax_boundry = _arg4;
}
public function _vx391(_arg1:int):Boolean{
hitcount = (hitcount - _arg1);
if (hitcount < 1){
hitcount = 0;
return (true);
};
return (false);
}
public function _go268(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:int=1, _arg5:Number=1):void{
scaling = _arg4;
scaling_dir = _arg1;
scaling_min = _arg2;
scaling_max = _arg3;
oScale = _arg5;
}
public function _ec466(_arg1:Object, _arg2:Number, _arg3:int, _arg4:Function):void{
animbitmapdata_array = _arg1;
bmpsrc = animbitmapdata_array[0];
srcx = 0;
srcy = 0;
frame_min = 0;
frame_max = (_arg3 - 1);
frame_dir = _arg2;
frame_work = 0;
frame = 0;
animstyle = 3;
animating = 7;
donecallback = _arg4;
}
public function _kj138(_arg1:BitmapData, _arg2:int, _arg3:int, _arg4:int, _arg5:int, _arg6:BitmapData, _arg7:int=1, _arg8:Number=0, _arg9:Boolean=true, _arg10:Boolean=true):void{
delayinit = _arg8;
type = _arg7;
bmpsrc = _arg1;
bmpdest = _arg6;
srcx = _arg2;
srcy = _arg3;
width = _arg4;
height = _arg5;
myrect.width = width;
myrect.height = height;
centerhandle = _arg9;
collision_radius = (width / 2);
collision_width = width;
collision_height = height;
collision_type = 0;
collision_enabled = true;
drawsmoothing = _arg10;
donotrenderhitbar = false;
if (delayinit > 0){
delayinit_collisionbuffer = collision_enabled;
collision_enabled = false;
};
_bo177(1);
}
public function _gd397(_arg1:Number, _arg2:Number):void{
RenderOffsetX = _arg1;
RenderOffsetY = _arg2;
}
public function _vy256(_arg1:Boolean):void{
collision_enabled = _arg1;
delayinit_collisionbuffer = collision_enabled;
}
public function _tb210(_arg1:Boolean):void{
drawsmoothing = _arg1;
}
public function _md203(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number):void{
movedata1 = _arg1;
movedata2 = _arg2;
cosangle = _arg3;
cosspeed = _arg4;
cosradius = _arg5;
movetype = 16;
}
public function _oo158(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number):void{
xdir = _mt474._cp39(_arg1, _arg2);
ydir = _mt474._yy371(_arg1, _arg2);
xmin_boundry = _arg3;
xmax_boundry = _arg5;
ymin_boundry = _arg4;
ymax_boundry = _arg6;
movetype = 15;
}
public function _eh85(_arg1:_ra247, _arg2:Number, _arg3:Number):void{
anglemoving = _mt474._mv29(x, y, _arg1.x, _arg1.y);
x = (x + (_mt474._cp39(anglemoving, _arg2) * _arg3));
y = (y + (_mt474._yy371(anglemoving, _arg2) * _arg3));
}
public function _ir272(_arg1:Number, _arg2:Number):void{
rotating = 6;
rotating_dir = _arg2;
rotating_min = _arg1;
}
public function _ps440():void{
if (yscaling){
yscale = (yscale + (yscaling_dir * delta));
switch (yscaling){
case 1:
if (yscale >= yscaling_max){
yscale = yscaling_max;
yscaling_dir = -(yscaling_dir);
} else {
if (yscale <= yscaling_min){
yscale = yscaling_min;
yscaling_dir = -(yscaling_dir);
};
};
break;
case 2:
if (yscale >= yscaling_max){
yscale = yscaling_min;
} else {
if (yscale <= yscaling_min){
yscale = yscaling_max;
};
};
break;
case 3:
if (yscale >= yscaling_max){
yscale = yscaling_max;
yscaling = 0;
} else {
if (yscale <= yscaling_min){
yscale = yscaling_min;
yscaling = 0;
};
};
break;
case 4:
if (yscale >= yscaling_max){
yscale = yscaling_max;
yscaling = 0;
timetodie = true;
} else {
if (yscale <= yscaling_min){
yscale = yscaling_min;
yscaling = 0;
timetodie = true;
};
};
break;
case 5:
if (yscale >= yscaling_max){
yscale = yscaling_max;
yscaling_dir = -(yscaling_dir);
yscaling = 3;
};
break;
case 7:
if (yscale >= yscaling_max){
yscale = yscaling_max;
yscaling_dir = -(yscaling_dir);
yscaling = 4;
};
break;
};
};
}
public function _sa463(_arg1:Object, _arg2:Number, _arg3:int, _arg4:int):void{
animbitmapdata_array = _arg1;
bmpsrc = animbitmapdata_array[0];
srcx = 0;
srcy = 0;
frame_min = 0;
frame_max = (_arg3 - 1);
frame_dir = _arg2;
frame_work = 0;
frame = 0;
animstyle = 3;
animating = _arg4;
}
public function _cl349(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number=0, _arg5:Number=0, _arg6:Boolean=true):void{
var _local7:Number = (_arg1 + _mt474.Random._oa470((-(_arg2) / 2), (_arg2 / 2)));
if (_local7 < 0){
_local7 = (_local7 + 360);
} else {
if (_local7 > 360){
_local7 = (_local7 - 360);
};
};
_ao348(_mt474._cp39(_local7, _arg3), _mt474._yy371(_local7, _arg3), 0, _arg5, _arg4, _arg6);
}
public function _il500(_arg1:Function):void{
callback = _arg1;
}
}
}//package classes
Section 22 (8.39 KiB) ● ●
//_tq234 (classes._tq234)
package classes {
import flash.display.*;
public class _tq234 {
public var user_counter:Number;// = 0
public var user_state:int;// = 0
public var user_spacer:Number;// = 0
public var Sprites:Array;
public var spcounter:int;// = 0
public function _tq234(){
Sprites = [];
super();
}
public function _es284(_arg1:_ra247):void{
Sprites[Sprites.length] = _arg1;
}
public function _lx393(_arg1:int=0):_ra247{
var _local2:int;
var _local3:_ra247;
var _local4:_ra247;
var _local5:int = (Sprites.length - 1);
_local2 = _local5;
while (_local2 >= 0) {
_local3 = Sprites[_local2];
if (_local3.id == _arg1){
_local4 = _local3;
break;
};
_local2--;
};
return (_local4);
}
public function _nc337(_arg1:_ra247):Boolean{
var _local2:_ra247;
var _local3:Boolean;
for each (_local2 in Sprites) {
if (_dt25._fx399(_arg1, _local2) == true){
(_local3 == true);
};
};
return (_local3);
}
public function _px490():void{
var _local1:_ra247;
for each (_local1 in Sprites) {
_local1._up57();
};
}
public function _rm317(_arg1:_ra247, _arg2:Function):void{
var _local3:_ra247;
for each (_local3 in Sprites) {
if (_dt25._fx399(_local3, _arg1) == true){
_arg2(_local3, _arg1);
};
};
}
public function _kx216(_arg1:Function):void{
var _local2:_ra247;
for each (_local2 in Sprites) {
_local2._up57();
_arg1(_local2);
};
}
public function _iq424(_arg1:String):_ra247{
var _local2:int;
var _local3:_ra247;
var _local4:_ra247;
var _local5:int = (Sprites.length - 1);
_local2 = _local5;
while (_local2 >= 0) {
_local3 = Sprites[_local2];
if (_local3.name == _arg1){
_local4 = _local3;
break;
};
_local2--;
};
return (_local4);
}
public function _gy346(_arg1:Object, _arg2:Number=1):void{
var _local4:_ra247;
var _local3:int = (Sprites.length - 1);
var _local5:int = _local3;
while (_local5 >= 0) {
_local4 = Sprites[_local5];
_local4._uc442(_arg2);
if (_local4.timetodie == true){
if (_local4.timetodiefunc != null){
_local4.timetodiefunc(_local4);
};
_local4._ew499();
Sprites.splice(_local5, 1);
_local4 = null;
} else {
_local4._up57();
_arg1(_local4);
};
_local5--;
};
}
public function _st456(_arg1:Object, _arg2:Number=1):void{
var _local5:_ra247;
var _local3:int = (Sprites.length - 1);
var _local4:int = _local3;
while (_local4 >= 0) {
_local5 = Sprites[_local4];
_arg1(_local5);
_local5._uc442(_arg2);
if (_local5.timetodie == true){
if (_local5.timetodiefunc != null){
_local5.timetodiefunc(_local5);
};
_local5._ew499();
Sprites.splice(_local4, 1);
_local5 = null;
} else {
_local5._up57();
};
_local4--;
};
}
public function _pg184(_arg1:int=0):_ra247{
var _local2:int;
var _local3:_ra247;
var _local4:_ra247;
var _local5:int = (Sprites.length - 1);
_local2 = _local5;
while (_local2 >= 0) {
_local3 = Sprites[_local2];
if (_local3.id1 == _arg1){
_local4 = _local3;
break;
};
_local2--;
};
return (_local4);
}
public function _kg267(_arg1:int):Boolean{
var _local2:_ra247;
var _local3:Boolean;
for each (_local2 in Sprites) {
if (_local2.id == _arg1){
_local3 = true;
};
};
return (_local3);
}
public function _mc482(_arg1:BitmapData, _arg2:BitmapData, _arg3:Number, _arg4:Number, _arg5:Number=0, _arg6:Boolean=true, _arg7:Boolean=true):_ra247{
var _local8:_ra247;
_local8 = new _ra247();
_local8._kj138(_arg1, 0, 0, _arg1.width, _arg1.height, _arg2, 1, _arg5, _arg6);
_local8._tk63(_arg3, _arg4);
_local8.drawsmoothing = _arg7;
Sprites[Sprites.length] = _local8;
return (_local8);
}
public function _mc263(_arg1:BitmapData, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:BitmapData, _arg7:Number, _arg8:Number, _arg9:int, _arg10:Number=0, _arg11:Boolean=true, _arg12:Boolean=true):_ra247{
var _local13:_ra247;
_local13 = new _ra247();
_local13._kj138(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg9, _arg10, _arg11);
_local13._tk63(_arg7, _arg8);
_local13.drawsmoothing = _arg12;
Sprites[Sprites.length] = _local13;
return (_local13);
}
public function _cn361(_arg1:Number=1):void{
var _local3:_ra247;
var _local2:int = (Sprites.length - 1);
var _local4:int = _local2;
while (_local4 >= 0) {
_local3 = Sprites[_local4];
_local3._uc442(_arg1);
if (_local3.timetodie == true){
if (_local3.timetodiefunc != null){
_local3.timetodiefunc(_local3);
};
_local3._ew499();
Sprites.splice(_local4, 1);
_local3 = null;
};
_local4--;
};
}
public function _is493(_arg1:Number):Number{
var _local3:_ra247;
var _local2:Number = 0;
for each (_local3 in Sprites) {
if (_local3.id == _arg1){
_local2++;
};
};
return (_local2);
}
public function _gw216():int{
return (Sprites.length);
}
public function _qu39(_arg1:int):void{
var _local2:_ra247;
for each (_local2 in Sprites) {
if (_local2.groupid == _arg1){
_local2.timetodie = true;
_local2.collision_enabled = false;
};
};
}
public function _wr450():void{
var _local1:_ra247;
for each (_local1 in Sprites) {
_local1.timetodie = true;
};
}
public function _rm21(_arg1:BitmapData):void{
var _local2:_ra247;
for each (_local2 in Sprites) {
_local2._ht319(_arg1);
};
}
public function _be136(_arg1:Object, _arg2:Number=1):void{
var _local4:_ra247;
var _local3:int = (Sprites.length - 1);
var _local5:int = _local3;
while (_local5 >= 0) {
_local4 = Sprites[_local5];
_local4._uc442(_arg2);
if (_local4.timetodie == true){
if (_local4.timetodiefunc != null){
_local4.timetodiefunc(_local4);
};
_local4._ew499();
Sprites.splice(_local5, 1);
_local4 = null;
} else {
_arg1(_local4);
_local4._up57();
};
_local5--;
};
}
public function _nq315(_arg1:Number=1):void{
var _local3:_ra247;
var _local2:int = (Sprites.length - 1);
var _local4:int = _local2;
while (_local4 >= 0) {
_local3 = Sprites[_local4];
_local3._uc442(_arg1);
if (_local3.timetodie == true){
if (_local3.timetodiefunc != null){
_local3.timetodiefunc(_local3);
};
_local3._ew499();
Sprites.splice(_local4, 1);
_local3 = null;
} else {
_local3._up57();
};
_local4--;
};
}
public function _tq134(_arg1:int):Boolean{
var _local2:_ra247;
var _local3:Boolean;
for each (_local2 in Sprites) {
if (_local2.id1 == _arg1){
_local3 = true;
};
};
return (_local3);
}
public function _gd397(_arg1:Number, _arg2:Number):void{
var _local3:_ra247;
for each (_local3 in Sprites) {
_local3._gd397(_arg1, _arg2);
};
}
public function _mb480(_arg1:int=0):void{
var _local2:int;
var _local3:Object;
var _local4:int = (Sprites.length - 1);
_local2 = _local4;
while (_local2 >= 0) {
_local3 = Sprites[_local2];
if (_arg1 > 0){
if (_local3.id1 == _arg1){
Sprites.splice(_local2, 1);
_local3._ew499();
_local3 = null;
};
} else {
Sprites.splice(_local2, 1);
_local3._ew499();
_local3 = null;
};
_local2--;
};
}
public function _cg419(_arg1:Object, _arg2:Number=1):void{
var _local4:_ra247;
var _local3:int = (Sprites.length - 1);
var _local5:int = _local3;
while (_local5 >= 0) {
_local4 = Sprites[_local5];
_local4._uc442(_arg2);
_arg1(_local4);
if (_local4.timetodie == true){
if (_local4.timetodiefunc != null){
_local4.timetodiefunc(_local4);
};
_local4._ew499();
Sprites.splice(_local5, 1);
_local4 = null;
} else {
_local4._up57();
};
_local5--;
};
}
public function _bu121(_arg1:Number=1):void{
var _local3:_ra247;
var _local2:int = (Sprites.length - 1);
var _local4:int = _local2;
while (_local4 >= 0) {
_local3 = Sprites[_local4];
_local3._sh86(_arg1);
if (_local3.timetodie == true){
if (_local3.timetodiefunc != null){
_local3.timetodiefunc(_local3);
};
_local3._ew499();
Sprites.splice(_local4, 1);
_local3 = null;
} else {
_local3._up57();
};
_local4--;
};
}
}
}//package classes
Section 23 (9.42 KiB) ● ●
//_tr349 (classes._tr349)
package classes {
import flash.display.*;
import flash.geom.*;
public class _tr349 {
public var SrcTilesAcross:int;
public var PixelWidth:int;
public var SrcTileRects:Object;
public var TilePixelHeight:int;
public var MapX:Number;// = 0
public var SrcTilesBMP:BitmapData;
public var TilesDown:int;
public var MapY:Number;// = 0
public var PixelHeight:int;
public var TileMap:Array;
public var RenderTilesDown:int;
public var MyPoint:Point;
public var TilesAcross:int;
public var TilePixelWidth:int;
public var RenderTilesAcross:int;
public var SrcTilesSpaceBetweenTiles:int;
public var SrcTilesDown:int;
public var RenderDestBMP:BitmapData;
public function _tr349(){
TileMap = [];
super();
}
public function _bm90(_arg1:Number, _arg2:Number):_ra247{
var _local3:_ty44 = TileMap[int(((_arg2 * TilesAcross) + _arg1))];
return (_local3.User_Sprite);
}
public function _sg210(_arg1:Number):int{
return ((int((_arg1 / TilePixelWidth)) * TilePixelWidth));
}
public function _tf407(_arg1:Number, _arg2:Number, _arg3:int):void{
var _local4:_ty44 = TileMap[((_arg2 * TilesAcross) + _arg1)];
_local4._wd119 = _arg3;
}
public function _yd148(_arg1:_ra247):Boolean{
_arg1.y = (_arg1.y + (_arg1.ydir * _ei204.Delta));
if ((((_gs495((_arg1.x + ((_arg1.width - 1) / 2)), (_arg1.y - (_arg1.height / 2))) > 0)) || ((_gs495((_arg1.x - ((_arg1.width - 1) / 2)), (_arg1.y - (_arg1.height / 2))) > 0)))){
_arg1.y = ((_fj317((_arg1.y - (_arg1.height / 2))) + TilePixelHeight) + (_arg1.height / 2));
return (true);
};
return (false);
}
public function _hu480(_arg1:int, _arg2:int, _arg3:int, _arg4:int, _arg5:BitmapData, _arg6:int, _arg7:int, _arg8:int=0):void{
var _local9:int;
var _local10:int;
var _local11:int;
var _local12:_ty44;
MyPoint = new Point(0, 0);
MapX = 0;
MapY = 0;
TilesAcross = _arg1;
TilesDown = _arg2;
TilePixelWidth = _arg3;
TilePixelHeight = _arg4;
SrcTilesBMP = _arg5;
SrcTilesAcross = _arg6;
SrcTilesDown = _arg7;
SrcTilesSpaceBetweenTiles = _arg8;
TileMap = [];
_local10 = 0;
while (_local10 < TilesDown) {
_local9 = 0;
while (_local9 < TilesAcross) {
_local12 = new _ty44();
TileMap.push(_local12);
_local9++;
};
_local10++;
};
SrcTileRects = new Object();
_local11 = 1;
_local10 = 0;
while (_local10 < SrcTilesDown) {
_local9 = 0;
while (_local9 < SrcTilesAcross) {
SrcTileRects[_local11] = new Rectangle((_local9 * (TilePixelWidth + SrcTilesSpaceBetweenTiles)), (_local10 * (TilePixelHeight + SrcTilesSpaceBetweenTiles)), TilePixelWidth, TilePixelHeight);
_local11++;
_local9++;
};
_local10++;
};
PixelWidth = (TilesAcross * TilePixelWidth);
PixelHeight = (TilesDown * TilePixelHeight);
}
public function _qw90(_arg1:_ra247):Boolean{
_arg1.y = (_arg1.y + (_arg1.ydir * _ei204.Delta));
if ((((_gs495((_arg1.x + ((_arg1.width - 1) / 2)), (_arg1.y + (_arg1.height / 2))) > 0)) || ((_gs495((_arg1.x - ((_arg1.width - 1) / 2)), (_arg1.y + (_arg1.height / 2))) > 0)))){
_arg1.y = (_fj317((_arg1.y + (_arg1.height / 2))) - (_arg1.height / 2));
return (true);
};
return (false);
}
public function _nx40(_arg1:Number):int{
return (int((_arg1 / TilePixelWidth)));
}
public function _ch482(_arg1:Function):void{
var _local2:int;
var _local3:int;
var _local4:int;
var _local11:_ty44;
var _local5:int = (MapX / TilePixelWidth);
var _local6:int = (MapY / TilePixelHeight);
var _local7:Number = int((0 - (MapX % TilePixelWidth)));
var _local8:Number = int((0 - (MapY % TilePixelHeight)));
var _local9:int;
var _local10:int;
_local3 = _local6;
while (_local3 < (_local6 + RenderTilesDown)) {
_local9 = 0;
_local2 = _local5;
while (_local2 < (_local5 + RenderTilesAcross)) {
MyPoint.x = (_local7 + (_local9 * TilePixelWidth));
MyPoint.y = (_local8 + (_local10 * TilePixelHeight));
_local11 = TileMap[int(((_local3 * TilesAcross) + _local2))];
_local11._uc442();
_local4 = _local11._wd119;
if (_local4){
_arg1(MyPoint.x, MyPoint.y, _local4);
RenderDestBMP.copyPixels(SrcTilesBMP, SrcTileRects[_local4], MyPoint, null, null, false);
};
_local9 = (_local9 + 1);
_local2++;
};
_local10 = (_local10 + 1);
_local3++;
};
}
public function _jt246():void{
var _local1:int;
var _local2:int;
var _local3:int;
var _local10:_ty44;
var _local4:int = (MapX / TilePixelWidth);
var _local5:int = (MapY / TilePixelHeight);
var _local6:Number = int((0 - (MapX % TilePixelWidth)));
var _local7:Number = int((0 - (MapY % TilePixelHeight)));
var _local8:int;
var _local9:int;
_local2 = _local5;
while (_local2 < (_local5 + RenderTilesDown)) {
_local8 = 0;
_local1 = _local4;
while (_local1 < (_local4 + RenderTilesAcross)) {
MyPoint.x = (_local6 + (_local8 * TilePixelWidth));
MyPoint.y = (_local7 + (_local9 * TilePixelHeight));
_local10 = TileMap[int(((_local2 * TilesAcross) + _local1))];
_local10._uc442();
_local3 = _local10._wd119;
if (_local3){
RenderDestBMP.copyPixels(SrcTilesBMP, SrcTileRects[_local3], MyPoint, null, null, false);
};
_local8 = (_local8 + 1);
_local1++;
};
_local9 = (_local9 + 1);
_local2++;
};
}
public function _by62(_arg1:Number, _arg2:Number, _arg3:_ra247):void{
var _local4:_ty44 = TileMap[int(((_arg2 * TilesAcross) + _arg1))];
_local4.User_Sprite = _arg3;
}
public function _uq495(_arg1:BitmapData, _arg2:int, _arg3:int):void{
RenderDestBMP = _arg1;
RenderTilesAcross = _arg2;
RenderTilesDown = _arg3;
}
public function _ul347():void{
var _local1:int;
var _local2:int;
var _local3:_ty44;
trace(irrcrpt("Pds Fohduhg", 3));
_local2 = 0;
while (_local2 < TilesDown) {
_local1 = 0;
while (_local1 < TilesAcross) {
_local3 = _uu44(_local1, _local2);
_local3._ul347();
_local1++;
};
_local2++;
};
}
public function _ti174(_arg1:Number, _arg2:Number, _arg3:Boolean):void{
var _local4:_ty44 = TileMap[int(((_arg2 * TilesAcross) + _arg1))];
_local4.User_Flag = _arg3;
}
public function _ai105(_arg1:Function):void{
var _local2:int;
var _local3:int;
var _local4:int;
var _local11:_ty44;
var _local5:int = (MapX / TilePixelWidth);
var _local6:int = (MapY / TilePixelHeight);
var _local7:Number = int((0 - (MapX % TilePixelWidth)));
var _local8:Number = int((0 - (MapY % TilePixelHeight)));
var _local9:int;
var _local10:int;
_local3 = _local6;
while (_local3 < (_local6 + RenderTilesDown)) {
_local9 = 0;
_local2 = _local5;
while (_local2 < (_local5 + RenderTilesAcross)) {
MyPoint.x = (_local7 + (_local9 * TilePixelWidth));
MyPoint.y = (_local8 + (_local10 * TilePixelHeight));
_local11 = TileMap[int(((_local3 * TilesAcross) + _local2))];
_local11._uc442();
_local4 = _local11._wd119;
if (_local4){
RenderDestBMP.copyPixels(SrcTilesBMP, SrcTileRects[_local4], MyPoint, null, null, false);
_arg1(MyPoint.x, MyPoint.y, _local4);
};
_local9 = (_local9 + 1);
_local2++;
};
_local10 = (_local10 + 1);
_local3++;
};
}
public function _tk63(_arg1:Number, _arg2:Number):void{
MapX = _arg1;
MapY = _arg2;
}
public function _fj317(_arg1:Number):int{
return ((int((_arg1 / TilePixelHeight)) * TilePixelHeight));
}
public function _in95(_arg1:Number, _arg2:Number):Boolean{
var _local3:_ty44 = TileMap[int(((_arg2 * TilesAcross) + _arg1))];
return (_local3.User_Flag);
}
public function _gs495(_arg1:Number, _arg2:Number):int{
var _local3:_ty44 = _iv203(_arg1, _arg2);
return (_local3._wd119);
}
public function _ev312(_arg1:_ra247):Boolean{
_arg1.x = (_arg1.x + (_arg1.xdir * _ei204.Delta));
if ((((_gs495((_arg1.x + (_arg1.width / 2)), (_arg1.y - ((_arg1.height - 1) / 2))) > 0)) || ((_gs495((_arg1.x + (_arg1.width / 2)), (_arg1.y + ((_arg1.height - 1) / 2))) > 0)))){
_arg1.x = (_sg210((_arg1.x + (_arg1.width / 2))) - (_arg1.width / 2));
return (true);
};
return (false);
}
public function _ew499():void{
}
public function _ln285(_arg1:_ra247):Boolean{
_arg1.x = (_arg1.x + (_arg1.xdir * _ei204.Delta));
if ((((_gs495((_arg1.x - (_arg1.width / 2)), (_arg1.y - ((_arg1.height - 1) / 2))) > 0)) || ((_gs495((_arg1.x - (_arg1.width / 2)), (_arg1.y + ((_arg1.height - 1) / 2))) > 0)))){
_arg1.x = ((_sg210((_arg1.x - (_arg1.width / 2))) + TilePixelWidth) + (_arg1.width / 2));
return (true);
};
return (false);
}
public function _iv203(_arg1:Number, _arg2:Number):_ty44{
var _local3:int = (_arg1 / TilePixelWidth);
var _local4:int = (_arg2 / TilePixelHeight);
return (TileMap[((_local4 * TilesAcross) + _local3)]);
}
public function _lg173(_arg1:Number, _arg2:Number):int{
var _local3:_ty44 = TileMap[int(((_arg2 * TilesAcross) + _arg1))];
return (_local3._wd119);
}
public function _kp463(_arg1:Number):int{
return (int((_arg1 / TilePixelHeight)));
}
public function _mx98(_arg1:Number, _arg2:Number, _arg3:int):void{
var _local4:_ty44 = _iv203(_arg1, _arg2);
_local4._wd119 = _arg3;
}
public function _ap150(_arg1:Number):Rectangle{
return (SrcTileRects[_arg1]);
}
public function _uu44(_arg1:Number, _arg2:Number):_ty44{
return (TileMap[((_arg2 * TilesAcross) + _arg1)]);
}
}
}//package classes
Section 24 (1.48 KiB) ●
//_tv194 (classes._tv194)
package classes {
public class _tv194 {
private var FuncArray:Array;
private var ca:_gg456;
public function _tv194(){
FuncArray = [];
super();
}
public function _yg405():void{
var _local1:int = (FuncArray.length - 1);
var _local2:int = _local1;
while (_local2 >= 0) {
ca = FuncArray[_local2];
ca.CallFunction = null;
FuncArray.splice(_local2, 1);
ca = null;
_local2--;
};
}
public function _uc442(_arg1:Number):void{
var _local2:int = (FuncArray.length - 1);
var _local3:int = _local2;
while (_local3 >= 0) {
ca = FuncArray[_local3];
if (ca.InitialDelay == 0){
ca.HowOften = (ca.HowOften - _arg1);
if (ca.HowOften < 1){
ca.CallFunction();
ca.HowOften = ca.HowOftenBuffer;
ca.HowManyTimes = (ca.HowManyTimes - 1);
if (ca.HowManyTimes == 0){
ca.CallFunction = null;
FuncArray.splice(_local3, 1);
ca = null;
};
};
} else {
ca.InitialDelay = (ca.InitialDelay - _arg1);
if (ca.InitialDelay < 1){
ca.InitialDelay = 0;
};
};
_local3--;
};
}
public function _um37(_arg1:Function, _arg2:Number=0, _arg3:int=1, _arg4:Number=0):void{
var _local5:_gg456;
_local5 = new _gg456();
_local5.CallFunction = _arg1;
_local5.InitialDelay = _arg2;
_local5.HowManyTimes = _arg3;
_local5.HowOften = 0;
_local5.HowOftenBuffer = _arg4;
FuncArray[FuncArray.length] = _local5;
}
}
}//package classes
Section 25 (2.95 KiB) ●
//_ty44 (classes._ty44)
package classes {
public class _ty44 {
public var Animating_DirBuffer:Number;// = 0
public var User_Data1:Number;// = 0
public var User_Data2:Number;// = 0
public var User_Data3:Number;// = 0
public var Animating_Duration:Number;// = 0
public var User_Flag:Boolean;
public var pValue:int;
public var Animating_TileMin:Number;// = 0
public var Animating_Dir:Number;// = 0
public var Animating_Tile:Number;// = 0
public var Animating_TileMax:Number;// = 0
public var User_Solid:Boolean;
public var User_Sprite:_ra247;
public var Animating:int;
public function _ty44(){
_wd119 = 0;
Animating = 0;
}
public function _ul347():void{
_wd119 = 0;
Animating = 0;
User_Sprite = null;
}
public function _qg71(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:int):void{
Animating_TileMin = _arg1;
Animating_TileMax = _arg2;
Animating_Dir = _arg3;
Animating = _arg4;
}
public function set _wd119(_arg1:int):void{
pValue = _arg1;
if (pValue == 0){
User_Sprite = null;
};
}
public function _uc442():void{
if (Animating){
Animating_Tile = (Animating_Tile + (Animating_Dir * _ei204.Delta));
switch (Animating){
case 1:
if (Animating_Tile > Animating_TileMax){
Animating_Tile = Animating_TileMax;
Animating_Dir = -(Animating_Dir);
} else {
if (Animating_Tile < Animating_TileMin){
Animating_Tile = Animating_TileMin;
Animating_Dir = -(Animating_Dir);
};
};
break;
case 2:
if (Animating_Tile > Animating_TileMax){
Animating_Tile = Animating_TileMin;
} else {
if (Animating_Tile < Animating_TileMin){
Animating_Tile = Animating_TileMax;
};
};
break;
case 3:
if (Animating_Tile >= Animating_TileMax){
Animating_Tile = Animating_TileMax;
Animating = 0;
} else {
if (Animating_Tile <= Animating_TileMin){
Animating_Tile = Animating_TileMin;
Animating = 0;
};
};
break;
case 4:
if (Animating_Tile >= Animating_TileMax){
Animating_Tile = Animating_TileMax;
Animating = 0;
_wd119 = 0;
} else {
if (Animating_Tile <= Animating_TileMin){
Animating_Tile = Animating_TileMin;
Animating = 0;
_wd119 = 0;
};
};
break;
case 5:
if (Animating_Tile > Animating_TileMax){
Animating_Tile = Animating_TileMin;
} else {
if (Animating_Tile < Animating_TileMin){
Animating_Tile = Animating_TileMax;
};
};
Animating_Duration = (Animating_Duration - _ei204.Delta);
if (Animating_Duration < 1){
Animating_Duration = 0;
Animating_Tile = Animating_TileMin;
Animating = 0;
};
break;
};
_wd119 = Math.round(Animating_Tile);
};
}
public function get _wd119():int{
return (pValue);
}
}
}//package classes
Section 26 (3.58 KiB) ●
//_ur262 (classes._ur262)
package classes {
import flash.media.*;
import flash.utils.*;
public class _ur262 {
private static var Sounds:Dictionary;
private static var PlayEnabled:Boolean;
public static function _hu480():void{
Sounds = new Dictionary();
PlayEnabled = true;
}
public static function _td431(_arg1:String):void{
var _local2:_lo285;
if (Sounds[_arg1] == null){
throw (new Error(((irrcrpt("<NHFTpvoet> Qmbz Tpvoe: ", 1) + _arg1) + irrcrpt(" xbt opu gpvoe!", 1))));
};
_local2 = Sounds[_arg1];
if (PlayEnabled == true){
_local2._td431();
};
}
public static function _ox273():Boolean{
return (PlayEnabled);
}
public static function _eq95(_arg1:String):void{
var _local2:_lo285;
if (Sounds[_arg1] == null){
throw (new Error(((irrcrpt("<NHFTpvoet> Tupq Tpvoe: ", 1) + _arg1) + irrcrpt(" aew rsx jsyrh!", 4))));
};
_local2 = Sounds[_arg1];
_local2._eq95();
}
public static function _re103():void{
var _local1:_lo285;
for each (_local1 in Sounds) {
_local1.s_cued = false;
_local1.s_cuedelaying = 0;
_local1.s_cuedelayingbuffer = 0;
};
}
public static function _ow58():void{
var _local1:_lo285;
for each (_local1 in Sounds) {
_local1._eq95();
};
_re103();
}
public static function _oo371(_arg1:String, _arg2:Number):void{
var _local3:_lo285;
if (Sounds[_arg1] == null){
throw (new Error(((irrcrpt("<RLJXtzsix> Xjy Atqzrj: ", 5) + _arg1) + irrcrpt(" ycu pqv hqwpf!", 2))));
};
_local3 = Sounds[_arg1];
_local3._fl372 = _arg2;
}
public static function _cj413(_arg1:String, _arg2:Sound, _arg3:Number=0, _arg4:int=0):void{
var _local5:_lo285 = new _lo285();
_local5._cj413(_arg2, _arg3, _arg4);
Sounds[_arg1] = _local5;
}
public static function _bk319(_arg1:String):Number{
var _local2:_lo285;
if (Sounds[_arg1] == null){
throw (new Error(((irrcrpt("<NHFTpvoet> Hfu Wpmvnf: ", 1) + _arg1) + irrcrpt(" xbt opu gpvoe!", 1))));
};
_local2 = Sounds[_arg1];
return (_local2._fl372);
}
public static function _mk470(_arg1:String, _arg2:Number=0):void{
var _local3:_lo285;
if (Sounds[_arg1] == null){
throw (new Error(((irrcrpt("<QKIWsyrhw> Gyi: ", 4) + _arg1) + irrcrpt(" ycu pqv hqwpf!", 2))));
};
_local3 = Sounds[_arg1];
if (_local3.s_cuedelaying == 0){
_local3.s_cued = true;
_local3.s_cuedelayingbuffer = _arg2;
};
}
public static function _qt428():void{
var _local1:_lo285;
for each (_local1 in Sounds) {
if (_local1.s_cuedelaying > 0){
_local1.s_cuedelaying = (_local1.s_cuedelaying - _ei204.Delta);
if (_local1.s_cuedelaying < 1){
_local1.s_cuedelaying = 0;
};
} else {
if (_local1.s_cued == true){
_local1.s_cued = false;
if (PlayEnabled == true){
_local1._td431();
_local1.s_cuedelaying = _local1.s_cuedelayingbuffer;
};
};
};
};
}
public static function _uk165(_arg1:String, _arg2:Number):void{
var _local3:_lo285;
if (Sounds[_arg1] == null){
throw (new Error(((irrcrpt("<OIGUqwpfu> Ugv Rcp: ", 2) + _arg1) + irrcrpt(" zdv qrw irxqg!", 3))));
};
_local3 = Sounds[_arg1];
_local3._qi313 = _arg2;
}
public static function _rh113(_arg1:String):Number{
var _local2:_lo285;
if (Sounds[_arg1] == null){
throw (new Error(((irrcrpt("<QKIWsyrhw> Kix Ter: ", 4) + _arg1) + irrcrpt(" xbt opu gpvoe!", 1))));
};
_local2 = Sounds[_arg1];
return (_local2._qi313);
}
public static function _yl111(_arg1:Boolean):void{
PlayEnabled = _arg1;
}
}
}//package classes
Section 27 (688 B)
//_wu347 (classes._wu347)
package classes {
public class _wu347 {
public var seed:uint;
public function _wu347(){
seed = 1;
}
private function _id295():uint{
return ((seed = ((seed * 16807) % 2147483647)));
}
public function _dt501():Number{
return ((_id295() / 2147483647));
}
public function _yf124(_arg1:Number, _arg2:Number):uint{
_arg1 = (_arg1 - 0.4999);
_arg2 = (_arg2 + 0.4999);
return (Math.round((_arg1 + ((_arg2 - _arg1) * _dt501()))));
}
public function _oa470(_arg1:Number, _arg2:Number):Number{
return ((_arg1 + ((_arg2 - _arg1) * _dt501())));
}
public function _rm15():uint{
return (_id295());
}
}
}//package classes
Section 28 (1.77 KiB) ●
//_xn190 (classes._xn190)
package classes {
import flash.display.*;
import flash.geom.*;
public class _xn190 {
private var CHAR_RECTS:Object;
private var i:int;
private var NEW_LINE:Number;
private var DEFAULT_CHAR:Number;
private var CSheet:Class;
private var chars:Bitmap;
public static const CENTER:int = 2;
public static const LEFT:int = 0;
public static const RIGHT:int = 1;
public function _xn190():void{
CSheet = _xn190_CSheet;
chars = new CSheet();
DEFAULT_CHAR = "?".charCodeAt(0);
NEW_LINE = irrcrpt("\n", 3).charCodeAt(0);
CHAR_RECTS = new Object();
super();
i = 32;
while (i < 161) {
CHAR_RECTS[i] = new Rectangle((((i - 32) % 16) * 16), (int(((i - 32) / 16)) * 16), 9, 16);
i++;
};
}
private function _pn43(_arg1:BitmapData, _arg2:String, _arg3:int, _arg4:int):void{
var _local8:Number;
var _local5:Point = new Point(_arg3, _arg4);
var _local6:int = _arg2.length;
var _local7:int;
while (_local7 < _local6) {
_local8 = _arg2.charCodeAt(_local7);
if ((((_local8 > 160)) || ((_local8 < 32)))){
_local8 = DEFAULT_CHAR;
};
_arg1.copyPixels(chars.bitmapData, CHAR_RECTS[_local8], _local5);
_local5.x = (_local5.x + 8);
_local7++;
};
}
public function draw(_arg1:BitmapData, _arg2:String, _arg3:int=0, _arg4:int=0, _arg5:int=0):void{
var _local7:String;
var _local6:Array = _arg2.split(irrcrpt("\n", 1));
for each (_local7 in _local6) {
if (_arg5 == LEFT){
_pn43(_arg1, _local7, _arg3, _arg4);
} else {
if (_arg5 == RIGHT){
_pn43(_arg1, _local7, (_arg3 - (_local7.length * 8)), _arg4);
} else {
_pn43(_arg1, _local7, (_arg3 - ((_local7.length * 8) / 2)), _arg4);
};
};
_arg4 = (_arg4 + 13);
};
}
}
}//package classes
Section 29 (151 B)
//_xn190_CSheet (classes._xn190_CSheet)
package classes {
import mx.core.*;
public class _xn190_CSheet extends BitmapAsset {
}
}//package classes
Section 30 (1.89 KiB) ●
//MainParticle (com.midasplayer.particle.MainParticle)
package com.midasplayer.particle {
import flash.events.*;
import flash.display.*;
public class MainParticle extends Sprite {
private var maxSize:Number;// = 29
private var numParticles:int;// = 20
private var maxXVel:Number;// = 1
private var stageHeight:Number;
private var minYVel:Number;// = -1
private var maxAlpha:Number;// = 0.02
private var maxYVel:Number;// = 1
private var particles:Array;
private var emitter;
private var stageWidth:Number;
private var minSize:Number;// = 12
private var minXVel:Number;// = -1
private var minAlpha:Number;// = 0.01
public function MainParticle(_arg1:Number, _arg2:Number){
particles = new Array();
super();
this.stageWidth = _arg1;
this.stageHeight = _arg2;
addEventListener(Event.ENTER_FRAME, enterFrame);
}
public function kill():void{
removeEventListener(Event.ENTER_FRAME, enterFrame);
var _local1:Number = 0;
while (_local1 < particles.length) {
particles[_local1].destroy();
_local1++;
};
}
private function randRange(_arg1:Number, _arg2:Number):Number{
var _local3:Number = ((Math.random() * (_arg2 - _arg1)) + _arg1);
return (_local3);
}
public function setEmitterClip(_arg1):void{
emitter = _arg1;
}
private function createNewParticle():void{
var _local1:Particle = new Particle(emitter, -10, -7, stageWidth, stageHeight);
_local1.setVel(randRange(minXVel, maxXVel), randRange(minYVel, maxYVel));
_local1.setSize(randRange(minSize, maxSize));
particles.push(_local1);
while (particles.length > numParticles) {
_local1 = particles.shift();
_local1.destroy();
};
var _local2:Number = 0;
while (_local2 < particles.length) {
particles[_local2].update();
_local2++;
};
}
private function enterFrame(_arg1:Event):void{
createNewParticle();
}
}
}//package com.midasplayer.particle
Section 31 (1.36 KiB) ●
//Particle (com.midasplayer.particle.Particle)
package com.midasplayer.particle {
import flash.display.*;
import flash.geom.*;
public class Particle {
private var _yVel:Number;
private var _xVel:Number;
private var _stageWidth:Number;
private var _stageHeight:Number;
private var _alphaDecr:Number;// = 0
private var clip:DisplayObject;
private var spark:Class;
public function Particle(_arg1:DisplayObjectContainer, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number){
spark = Particle_spark;
super();
_stageWidth = _arg4;
_stageHeight = _arg5;
clip = new spark();
_arg1.addChild(clip);
clip.x = _arg2;
clip.y = _arg3;
}
public function destroy():void{
clip.parent.removeChild(clip);
clip = null;
}
public function update():void{
clip.x = (clip.x + _xVel);
clip.y = (clip.y + _yVel);
clip.alpha = (clip.alpha - _alphaDecr);
}
public function setSize(_arg1:Number):void{
clip.width = _arg1;
clip.height = _arg1;
}
public function setColour(_arg1:Number):void{
var _local2:ColorTransform = new ColorTransform();
_local2.color = _arg1;
clip.transform.colorTransform = _local2;
}
public function setAlphaDecr(_arg1:Number):void{
_alphaDecr = _arg1;
}
public function setVel(_arg1:Number, _arg2:Number):void{
_xVel = _arg1;
_yVel = _arg2;
}
}
}//package com.midasplayer.particle
Section 32 (297 B)
//Particle_spark (com.midasplayer.particle.Particle_spark)
package com.midasplayer.particle {
import mx.core.*;
import flash.display.*;
public class Particle_spark extends MovieClipAsset {
public var bar:DisplayObject;
public var bg:DisplayObject;
}
}//package com.midasplayer.particle
Section 33 (6.22 KiB) ● ●
//DragonLoader (com.midasplayer.DragonLoader)
package com.midasplayer {
import flash.events.*;
import flash.display.*;
import caurina.transitions.*;
import mochi.*;
import flash.media.*;
import flash.utils.*;
public class DragonLoader extends Sprite {
private var sfxBell:Class;
private var m_fireLogoClip:MovieClip;
private var mcDragon:Class;
private var m_bannedSign:Sprite;
private var m_mochiSign:String;
private var m_dragonClip:MovieClip;
private var m_bg:Sprite;
private var mcPlayBtn:Class;
private var m_glimmer:Sprite;
private var oldFrameRate:int;
private var m_gameName:String;
private var mcBannedSign:Class;
private var m_playBtn:MovieClip;
private var mcFireLogo:Class;
private var m_sndBell:Sound;
private var mcGlimmer:Class;
private var dragonDone:Boolean;// = false
public static var LAUNCH_GAME:String = "launchGame";
public function DragonLoader(_arg1:String, _arg2:String=""){
mcBannedSign = DragonLoader_mcBannedSign;
mcFireLogo = DragonLoader_mcFireLogo;
mcDragon = DragonLoader_mcDragon;
mcPlayBtn = DragonLoader_mcPlayBtn;
mcGlimmer = DragonLoader_mcGlimmer;
sfxBell = DragonLoader_sfxBell;
super();
m_gameName = _arg1;
m_mochiSign = _arg2;
this.addEventListener(Event.ADDED_TO_STAGE, onStageSet);
}
public function destroy():void{
m_playBtn.removeEventListener(MouseEvent.ROLL_OVER, btnOver);
m_playBtn.removeEventListener(MouseEvent.ROLL_OUT, btnOut);
m_playBtn.removeEventListener(MouseEvent.MOUSE_DOWN, btnDown);
m_playBtn.removeEventListener(MouseEvent.MOUSE_UP, launchGame);
Tweener.removeTweens(m_fireLogoClip);
var _local1:Sprite = (this.parent.getChildByName("clickBg") as Sprite);
this.parent.removeChild(_local1);
this.parent.removeChild(this);
}
public function onLoaderInit(_arg1:Event):void{
oldFrameRate = root.stage.frameRate;
if (!KingAPI.isHome){
initGraphics();
} else {
launchGame(null);
};
}
public function launchGame(_arg1:Event):void{
root.stage.frameRate = oldFrameRate;
trace(LAUNCH_GAME);
this.dispatchEvent(new Event(LAUNCH_GAME));
}
public function showBannedScreen():void{
m_bannedSign.alpha = 1;
}
private function onStageSet(_arg1:Event):void{
KingAPI.addEventListener(KingAPI.INITIALIZED_EVENT, onLoaderInit);
KingAPI.addEventListener(KingAPI.HOST_BANNED_EVENT, onLoaderInit);
KingAPI.init(m_gameName, root.loaderInfo.url);
}
private function logoVisible(_arg1:Event):void{
if (m_fireLogoClip.currentFrame == m_fireLogoClip.totalFrames){
m_fireLogoClip.stop();
m_fireLogoClip.removeEventListener(Event.ENTER_FRAME, logoVisible);
m_playBtn.alpha = 0;
Tweener.addTween(m_playBtn, {alpha:1, transition:"linear", time:0.5});
m_glimmer = (new mcGlimmer() as Sprite);
m_glimmer.x = (m_fireLogoClip.x - m_glimmer.width);
m_glimmer.y = (m_fireLogoClip.y + 112);
this.addChild(m_glimmer);
setTimeout(onGlimmerTmr, 1000, null);
};
}
private function logoInPlace():void{
m_fireLogoClip.addEventListener(Event.ENTER_FRAME, logoVisible);
}
public function initGraphics():void{
this.x = (this.y = 0);
m_bg = new Sprite();
m_bg.graphics.beginFill(0xFFFFFF, 1);
m_bg.graphics.drawRect(0, 0, stage.stageWidth, stage.stageWidth);
m_bg.graphics.endFill();
addChild(m_bg);
m_bannedSign = (new mcBannedSign() as Sprite);
addChild(m_bannedSign);
m_bannedSign.width = stage.stageWidth;
m_bannedSign.height = stage.stageHeight;
m_bannedSign.alpha = 0;
m_bannedSign.addEventListener(MouseEvent.CLICK, onMainMovie);
m_bannedSign.buttonMode = true;
m_fireLogoClip = (new mcFireLogo() as MovieClip);
m_fireLogoClip.x = ((m_bannedSign.width - m_fireLogoClip.width) - 90);
m_fireLogoClip.y = (((m_bannedSign.height / 2) - (m_fireLogoClip.height / 2)) - 60);
m_fireLogoClip.visible = false;
m_fireLogoClip.stop();
m_dragonClip = (new mcDragon() as MovieClip);
m_dragonClip.x = (m_bannedSign.width - m_dragonClip.width);
m_dragonClip.y = ((m_bannedSign.height / 2) - (m_dragonClip.height / 2));
m_dragonClip.stop();
addChild(m_dragonClip);
addChild(m_fireLogoClip);
m_playBtn = (new mcPlayBtn() as MovieClip);
m_playBtn.buttonMode = true;
m_playBtn.alpha = 0;
m_playBtn.stop();
addChild(m_playBtn);
m_sndBell = new sfxBell();
if (m_mochiSign != ""){
MochiBot.track(this, m_mochiSign);
};
root.stage.frameRate = 30;
if (KingAPI.banned){
showBannedScreen();
} else {
playLoaderMovie();
};
}
public function onEnterFrame(_arg1:Event):void{
if (m_dragonClip.currentFrame == 80){
m_fireLogoClip.visible = true;
m_fireLogoClip.play();
Tweener.addTween(m_fireLogoClip, {x:(((stage.width / 2) - (m_dragonClip.width / 2)) - 51), time:1, transition:"easeOutSine", onComplete:logoInPlace});
};
if (m_dragonClip.currentFrame == m_dragonClip.totalFrames){
dragonDone = true;
m_dragonClip.removeEventListener(Event.ENTER_FRAME, onEnterFrame);
m_dragonClip.stop();
m_playBtn.x = ((stage.width / 2) - (m_playBtn.width / 2));
m_playBtn.y = (m_fireLogoClip.y + 210);
m_playBtn.addEventListener(MouseEvent.ROLL_OVER, btnOver);
m_playBtn.addEventListener(MouseEvent.ROLL_OUT, btnOut);
m_playBtn.addEventListener(MouseEvent.MOUSE_DOWN, btnDown);
m_playBtn.addEventListener(MouseEvent.MOUSE_UP, launchGame);
};
}
public function playLoaderMovie():void{
m_dragonClip.addEventListener(Event.ENTER_FRAME, onEnterFrame);
m_dragonClip.play();
}
private function onGlimmerTmr(_arg1:Event):void{
var _local2:Number = (m_fireLogoClip.x - m_glimmer.width);
var _local3:Number = ((m_fireLogoClip.x + m_fireLogoClip.width) - 80);
m_glimmer.x = _local2;
Tweener.addTween(m_glimmer, {x:_local3, transition:"linear", time:0.5, onComplete:glimmerDone});
m_sndBell.play();
}
private function btnDown(_arg1:MouseEvent):void{
m_playBtn.gotoAndStop("down");
}
public function onMainMovie(_arg1:MouseEvent):void{
KingAPI.openLoaderMovieLink();
}
private function glimmerDone():void{
this.removeChild(m_glimmer);
}
private function btnOver(_arg1:MouseEvent):void{
m_playBtn.gotoAndStop("over");
}
private function btnOut(_arg1:MouseEvent):void{
m_playBtn.gotoAndStop("idle");
}
}
}//package com.midasplayer
Section 34 (300 B)
//DragonLoader_mcBannedSign (com.midasplayer.DragonLoader_mcBannedSign)
package com.midasplayer {
import mx.core.*;
import flash.display.*;
public class DragonLoader_mcBannedSign extends SpriteAsset {
public var bar:DisplayObject;
public var bg:DisplayObject;
}
}//package com.midasplayer
Section 35 (291 B)
//DragonLoader_mcDragon (com.midasplayer.DragonLoader_mcDragon)
package com.midasplayer {
import mx.core.*;
import flash.display.*;
public class DragonLoader_mcDragon extends MovieClipAsset {
public var bar:DisplayObject;
public var bg:DisplayObject;
}
}//package com.midasplayer
Section 36 (297 B)
//DragonLoader_mcFireLogo (com.midasplayer.DragonLoader_mcFireLogo)
package com.midasplayer {
import mx.core.*;
import flash.display.*;
public class DragonLoader_mcFireLogo extends MovieClipAsset {
public var bar:DisplayObject;
public var bg:DisplayObject;
}
}//package com.midasplayer
Section 37 (291 B)
//DragonLoader_mcGlimmer (com.midasplayer.DragonLoader_mcGlimmer)
package com.midasplayer {
import mx.core.*;
import flash.display.*;
public class DragonLoader_mcGlimmer extends SpriteAsset {
public var bar:DisplayObject;
public var bg:DisplayObject;
}
}//package com.midasplayer
Section 38 (294 B)
//DragonLoader_mcPlayBtn (com.midasplayer.DragonLoader_mcPlayBtn)
package com.midasplayer {
import mx.core.*;
import flash.display.*;
public class DragonLoader_mcPlayBtn extends MovieClipAsset {
public var bar:DisplayObject;
public var bg:DisplayObject;
}
}//package com.midasplayer
Section 39 (284 B)
//DragonLoader_sfxBell (com.midasplayer.DragonLoader_sfxBell)
package com.midasplayer {
import mx.core.*;
import flash.display.*;
public class DragonLoader_sfxBell extends SoundAsset {
public var bar:DisplayObject;
public var bg:DisplayObject;
}
}//package com.midasplayer
Section 40 (7.34 KiB) ● ●
//KingAPI (com.midasplayer.KingAPI)
package com.midasplayer {
import flash.events.*;
import flash.net.*;
import flash.external.*;
public class KingAPI {
public static const LINK_TYPE_RIGHT_CLICK:String = "rightclick";
public static const USER_TYPE_SUBSCRIPTION:int = 3;
public static const LINK_TYPE_HIGHSCORES:String = "highscores";
public static const LINK_TYPE_SIGN:String = "sign";
public static const INITIALIZED_EVENT:String = "initialized";
public static const LINK_TYPE_OTHER_GAMES:String = "other_games";
public static const USER_TYPE_REGISTERED:int = 1;
private static const SAK:String = "ggfd7sday923mdsfd8csfds34";
private static const loadHomeParametersURL:String = "http://www.king.com/servlet/FreeGameServlet?action=load";
public static const LINK_TYPE_LOADER_MOVIE:String = "loader_movie";
private static const bounceURL:String = "http://www.mygame.com/king/bounce.jsp";
public static const LINK_TYPE_PROTECT:String = "protect";
public static const LINK_TYPE_ADD_GAME:String = "add_game";
public static const USER_TYPE_GOLD:int = 2;
public static const USER_TYPE_UNREGISTERED:int = 0;
public static const HOST_BANNED_EVENT:String = "hostBanned";
private static const SK:String = "vf78hxcsjak77cxzhjkwad87s";
private static const loadCountURL:String = "http://www.mygame.com/king/loadcount.jsp";
public static const LINK_TYPE_LOADER_PROGRESS:String = "loader_progress";
private static var check:String = null;
public static var gameName:String;
public static var banned:Boolean = false;
protected static var dispatcher:EventDispatcher;
public static var isHome:Boolean = false;
private static var sessionID:String;
private static var iscore:int = 123;
public static var fromURL:String;
private static var SSK:String = "ng43ui54hy35tdsnd6f54rews";
private static function loadUrlErrorHandler(_arg1:Event):void{
trace(("Unable to load url: " + _arg1));
}
public static function resetScore():void{
iscore = 123;
check = null;
}
public static function openOfflineProtectionLink():void{
openKingPage(LINK_TYPE_PROTECT);
}
public static function init(_arg1:String, _arg2:String):void{
var so:SharedObject;
var rnd1:Number;
var rnd2:Number;
var name = _arg1;
var from = _arg2;
gameName = name;
fromURL = from;
var loadCounter:URLLoader = new URLLoader();
var reqvars:URLVariables = new URLVariables();
reqvars.game = gameName;
reqvars.from = fromURL;
try {
so = SharedObject.getLocal("sessionId");
if (so.data.sessionID == null){
rnd1 = Math.abs(Math.floor((Math.random() * 4294967295)));
rnd2 = Math.abs(Math.floor((Math.random() * 4294967295)));
so.data.sessionID = (rnd1.toString(16) + rnd2.toString(16));
so.flush();
};
sessionID = so.data.sessionID;
} catch(e:Error) {
sessionID = "error";
};
reqvars.session = sessionID;
var request:URLRequest = new URLRequest(((loadCountURL + "?") + reqvars.toString()));
loadCounter.addEventListener(Event.COMPLETE, loadCountHandler);
loadCounter.addEventListener(IOErrorEvent.IO_ERROR, loadUrlErrorHandler);
loadCounter.addEventListener(SecurityErrorEvent.SECURITY_ERROR, loadUrlErrorHandler);
try {
loadCounter.load(request);
} catch(error:Error) {
trace(("Unable to load loadcount url: " + loadCountURL));
trace(error.message);
};
}
private static function loadHomeParametersHandler(_arg1:Event):void{
var _local2:URLLoader = URLLoader(_arg1.target);
trace(("loadCounter.data" + _local2.data));
}
public static function submitInternalScore():void{
checkScore();
var _local1:int = ((iscore - 123) / 2);
submitScore(_local1);
}
public static function openOtherGamesLink():void{
openKingPage(LINK_TYPE_OTHER_GAMES);
}
public static function openKingPage(_arg1:String, _arg2:String=null):void{
var _local3:URLVariables = new URLVariables();
_local3.game = gameName;
_local3.from = fromURL;
_local3.type = _arg1;
_local3.session = sessionID;
if (_arg2 != null){
_local3.redirect = _arg2;
};
var _local4 = "_blank";
if (isHome){
_local4 = "_top";
};
navigateToURL(new URLRequest(((bounceURL + "?") + _local3.toString())), _local4);
}
private static function loadCountHandler(_arg1:Event):void{
var vars:URLVariables;
var event = _arg1;
var loadCounter:URLLoader = URLLoader(event.target);
trace(("loadCounter.data :" + loadCounter.data));
try {
vars = new URLVariables(loadCounter.data);
if (vars.h == "true"){
isHome = true;
};
if (vars.b == "true"){
banned = true;
dispatcher.dispatchEvent(new Event(HOST_BANNED_EVENT));
} else {
dispatcher.dispatchEvent(new Event(INITIALIZED_EVENT));
};
trace((("::" + vars.h) + "::"));
trace((("::" + vars.b) + "::"));
} catch(e:Error) {
trace(("Error reading data from loadcount url: " + e));
};
}
public static function addEventListener(_arg1:String, _arg2:Function):void{
if (dispatcher == null){
dispatcher = new EventDispatcher();
};
dispatcher.addEventListener(_arg1, _arg2);
}
public static function openLoaderMovieLink():void{
openKingPage(LINK_TYPE_LOADER_MOVIE);
}
public static function removeEventListener(_arg1:String, _arg2:Function):void{
if (dispatcher == null){
return;
};
dispatcher.removeEventListener(_arg1, _arg2);
}
public static function submitScore(_arg1:int):void{
var score = _arg1;
var hash:String = md5.encrypt(((((score + ":") + gameName) + ":") + SSK));
try {
if (isHome){
ExternalInterface.call("submitScore", score, hash);
} else {
openKingPage(LINK_TYPE_HIGHSCORES, ((((("game/" + gameName) + "/submit/") + score) + ":") + hash));
};
} catch(e:Error) {
trace(e);
};
}
public static function submitLevel(_arg1:int):void{
var level = _arg1;
var hash:String = md5.encrypt(((((level + ":") + gameName) + ":") + SSK));
try {
if (isHome){
ExternalInterface.call("submitLevel", level, hash);
};
} catch(e:Error) {
trace(e);
};
}
public static function openHighscoresLink():void{
openKingPage(LINK_TYPE_HIGHSCORES, (("game/" + gameName) + "/highscores"));
}
public static function openSignLink():void{
if (!isHome){
openKingPage(LINK_TYPE_SIGN);
};
}
public static function openRightClickLink():void{
openKingPage(LINK_TYPE_RIGHT_CLICK);
}
private static function checkScore():void{
if (check != null){
if (check != md5.encrypt(((((iscore + ":") + gameName) + ":") + SK))){
SSK = "ng41ui54hy35tdsnd6f54rews";
};
};
}
public static function addScore(_arg1:int):int{
checkScore();
var _local2:int = ((iscore - 123) / 2);
_local2 = (_local2 + _arg1);
iscore = ((_local2 * 2) + 123);
check = md5.encrypt(((((iscore + ":") + gameName) + ":") + SK));
return (_local2);
}
public static function openLoaderProgressLink():void{
openKingPage(LINK_TYPE_LOADER_PROGRESS);
}
public static function openAddToWebsiteLink():void{
openKingPage(LINK_TYPE_ADD_GAME, "website_content.jsp");
}
public static function submitAchievement(_arg1:String):void{
var achievement = _arg1;
var hash:String = md5.encrypt(((((achievement + ":") + gameName) + ":") + SAK));
try {
if (isHome){
ExternalInterface.call("submitAchievement", achievement, hash);
};
} catch(e:Error) {
trace(e);
};
}
}
}//package com.midasplayer
Section 41 (2.18 KiB) ●
//KingPreloader (com.midasplayer.KingPreloader)
package com.midasplayer {
import flash.events.*;
import flash.display.*;
import com.midasplayer.particle.*;
public class KingPreloader extends Sprite {
private var bg:Sprite;
private var mcLoadLogo:Class;
private var stageWidth:int;
private var holder:Sprite;
private var particles:MainParticle;
private var mcBannedSign:Class;
private var bar:Sprite;
private var stageHeight:int;
private var mcLoadLogoBg:Sprite;
public function KingPreloader(_arg1:int, _arg2:int){
mcBannedSign = KingPreloader_mcBannedSign;
mcLoadLogo = KingPreloader_mcLoadLogo;
super();
stageWidth = _arg1;
stageHeight = _arg2;
}
public function loadComplete():void{
particles.kill();
this.removeChild(particles);
bg.removeEventListener(MouseEvent.CLICK, openKingPage);
this.removeChild(bar);
}
public function onInitialize():void{
bg = new Sprite();
bg.buttonMode = true;
bg.name = "clickBg";
bg.graphics.beginFill(0xFFFFFF, 1);
bg.graphics.drawRect(0, 0, stageWidth, stageHeight);
bg.graphics.endFill();
bg.addEventListener(MouseEvent.CLICK, openKingPage);
addChild(bg);
trace(("stageWidth :: " + stageWidth));
mcLoadLogoBg = new mcLoadLogo();
addChild(mcLoadLogoBg);
mcLoadLogoBg.x = ((stageWidth / 2) - (mcLoadLogoBg.width / 2));
mcLoadLogoBg.y = ((stageHeight / 2) - (mcLoadLogoBg.height / 2));
bar = new Sprite();
bar.graphics.beginFill(0xFFFFFF, 0);
bar.x = (mcLoadLogoBg.x + 5);
bar.y = (mcLoadLogoBg.y + 34);
bar.graphics.drawRect(0, 0, 96, 5);
bar.graphics.endFill();
this.addChild(bar);
holder = new Sprite();
this.addChild(holder);
holder.x = bar.x;
holder.y = bar.y;
particles = new MainParticle(stageWidth, stageHeight);
particles.setEmitterClip(holder);
this.addChild(particles);
}
private function openKingPage(_arg1:Event):void{
KingAPI.openLoaderProgressLink();
}
public function progressHandler(_arg1:Number):void{
trace("progressHandler");
holder.x = (bar.x + bar.width);
bg.width = stageWidth;
bg.height = stageHeight;
bar.scaleX = _arg1;
mcLoadLogoBg["bar"].scaleX = (1 - _arg1);
}
}
}//package com.midasplayer
Section 42 (271 B)
//KingPreloader_mcBannedSign (com.midasplayer.KingPreloader_mcBannedSign)
package com.midasplayer {
import mx.core.*;
import flash.display.*;
public class KingPreloader_mcBannedSign extends SpriteAsset {
public var bg:DisplayObject;
}
}//package com.midasplayer
Section 43 (297 B)
//KingPreloader_mcLoadLogo (com.midasplayer.KingPreloader_mcLoadLogo)
package com.midasplayer {
import mx.core.*;
import flash.display.*;
public class KingPreloader_mcLoadLogo extends SpriteAsset {
public var bar:DisplayObject;
public var bg:DisplayObject;
}
}//package com.midasplayer
Section 44 (15.91 KiB) ● ● ●
//md5 (com.midasplayer.md5)
package com.midasplayer {
public class md5 {
public static const HEX_FORMAT_LOWERCASE:uint = 0;
public static const HEX_FORMAT_UPPERCASE:uint = 1;
public static const BASE64_PAD_CHARACTER_DEFAULT_COMPLIANCE:String = "";
public static const BASE64_PAD_CHARACTER_RFC_COMPLIANCE:String = "=";
public static var hexcase:uint = 0;
public static var b64pad:String = "";
public static function md5_gg(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Number):Number{
return (md5_cmn(((_arg2 & _arg4) | (_arg3 & ~(_arg4))), _arg1, _arg2, _arg5, _arg6, _arg7));
}
public static function md5_cmn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number):Number{
return (safe_add(bit_rol(safe_add(safe_add(_arg2, _arg1), safe_add(_arg4, _arg6)), _arg5), _arg3));
}
public static function binl_md5(_arg1:Array, _arg2:Number):Array{
var _local8:Number;
var _local9:Number;
var _local10:Number;
var _local11:Number;
_arg1[(_arg2 >> 5)] = (_arg1[(_arg2 >> 5)] | (128 << (_arg2 % 32)));
_arg1[((((_arg2 + 64) >>> 9) << 4) + 14)] = _arg2;
var _local3:Number = 1732584193;
var _local4:Number = -271733879;
var _local5:Number = -1732584194;
var _local6:Number = 271733878;
var _local7:Number = 0;
while (_local7 < _arg1.length) {
_local8 = _local3;
_local9 = _local4;
_local10 = _local5;
_local11 = _local6;
_local3 = md5_ff(_local3, _local4, _local5, _local6, _arg1[(_local7 + 0)], 7, -680876936);
_local6 = md5_ff(_local6, _local3, _local4, _local5, _arg1[(_local7 + 1)], 12, -389564586);
_local5 = md5_ff(_local5, _local6, _local3, _local4, _arg1[(_local7 + 2)], 17, 606105819);
_local4 = md5_ff(_local4, _local5, _local6, _local3, _arg1[(_local7 + 3)], 22, -1044525330);
_local3 = md5_ff(_local3, _local4, _local5, _local6, _arg1[(_local7 + 4)], 7, -176418897);
_local6 = md5_ff(_local6, _local3, _local4, _local5, _arg1[(_local7 + 5)], 12, 1200080426);
_local5 = md5_ff(_local5, _local6, _local3, _local4, _arg1[(_local7 + 6)], 17, -1473231341);
_local4 = md5_ff(_local4, _local5, _local6, _local3, _arg1[(_local7 + 7)], 22, -45705983);
_local3 = md5_ff(_local3, _local4, _local5, _local6, _arg1[(_local7 + 8)], 7, 1770035416);
_local6 = md5_ff(_local6, _local3, _local4, _local5, _arg1[(_local7 + 9)], 12, -1958414417);
_local5 = md5_ff(_local5, _local6, _local3, _local4, _arg1[(_local7 + 10)], 17, -42063);
_local4 = md5_ff(_local4, _local5, _local6, _local3, _arg1[(_local7 + 11)], 22, -1990404162);
_local3 = md5_ff(_local3, _local4, _local5, _local6, _arg1[(_local7 + 12)], 7, 1804603682);
_local6 = md5_ff(_local6, _local3, _local4, _local5, _arg1[(_local7 + 13)], 12, -40341101);
_local5 = md5_ff(_local5, _local6, _local3, _local4, _arg1[(_local7 + 14)], 17, -1502002290);
_local4 = md5_ff(_local4, _local5, _local6, _local3, _arg1[(_local7 + 15)], 22, 1236535329);
_local3 = md5_gg(_local3, _local4, _local5, _local6, _arg1[(_local7 + 1)], 5, -165796510);
_local6 = md5_gg(_local6, _local3, _local4, _local5, _arg1[(_local7 + 6)], 9, -1069501632);
_local5 = md5_gg(_local5, _local6, _local3, _local4, _arg1[(_local7 + 11)], 14, 643717713);
_local4 = md5_gg(_local4, _local5, _local6, _local3, _arg1[(_local7 + 0)], 20, -373897302);
_local3 = md5_gg(_local3, _local4, _local5, _local6, _arg1[(_local7 + 5)], 5, -701558691);
_local6 = md5_gg(_local6, _local3, _local4, _local5, _arg1[(_local7 + 10)], 9, 38016083);
_local5 = md5_gg(_local5, _local6, _local3, _local4, _arg1[(_local7 + 15)], 14, -660478335);
_local4 = md5_gg(_local4, _local5, _local6, _local3, _arg1[(_local7 + 4)], 20, -405537848);
_local3 = md5_gg(_local3, _local4, _local5, _local6, _arg1[(_local7 + 9)], 5, 568446438);
_local6 = md5_gg(_local6, _local3, _local4, _local5, _arg1[(_local7 + 14)], 9, -1019803690);
_local5 = md5_gg(_local5, _local6, _local3, _local4, _arg1[(_local7 + 3)], 14, -187363961);
_local4 = md5_gg(_local4, _local5, _local6, _local3, _arg1[(_local7 + 8)], 20, 1163531501);
_local3 = md5_gg(_local3, _local4, _local5, _local6, _arg1[(_local7 + 13)], 5, -1444681467);
_local6 = md5_gg(_local6, _local3, _local4, _local5, _arg1[(_local7 + 2)], 9, -51403784);
_local5 = md5_gg(_local5, _local6, _local3, _local4, _arg1[(_local7 + 7)], 14, 1735328473);
_local4 = md5_gg(_local4, _local5, _local6, _local3, _arg1[(_local7 + 12)], 20, -1926607734);
_local3 = md5_hh(_local3, _local4, _local5, _local6, _arg1[(_local7 + 5)], 4, -378558);
_local6 = md5_hh(_local6, _local3, _local4, _local5, _arg1[(_local7 + 8)], 11, -2022574463);
_local5 = md5_hh(_local5, _local6, _local3, _local4, _arg1[(_local7 + 11)], 16, 1839030562);
_local4 = md5_hh(_local4, _local5, _local6, _local3, _arg1[(_local7 + 14)], 23, -35309556);
_local3 = md5_hh(_local3, _local4, _local5, _local6, _arg1[(_local7 + 1)], 4, -1530992060);
_local6 = md5_hh(_local6, _local3, _local4, _local5, _arg1[(_local7 + 4)], 11, 1272893353);
_local5 = md5_hh(_local5, _local6, _local3, _local4, _arg1[(_local7 + 7)], 16, -155497632);
_local4 = md5_hh(_local4, _local5, _local6, _local3, _arg1[(_local7 + 10)], 23, -1094730640);
_local3 = md5_hh(_local3, _local4, _local5, _local6, _arg1[(_local7 + 13)], 4, 681279174);
_local6 = md5_hh(_local6, _local3, _local4, _local5, _arg1[(_local7 + 0)], 11, -358537222);
_local5 = md5_hh(_local5, _local6, _local3, _local4, _arg1[(_local7 + 3)], 16, -722521979);
_local4 = md5_hh(_local4, _local5, _local6, _local3, _arg1[(_local7 + 6)], 23, 76029189);
_local3 = md5_hh(_local3, _local4, _local5, _local6, _arg1[(_local7 + 9)], 4, -640364487);
_local6 = md5_hh(_local6, _local3, _local4, _local5, _arg1[(_local7 + 12)], 11, -421815835);
_local5 = md5_hh(_local5, _local6, _local3, _local4, _arg1[(_local7 + 15)], 16, 530742520);
_local4 = md5_hh(_local4, _local5, _local6, _local3, _arg1[(_local7 + 2)], 23, -995338651);
_local3 = md5_ii(_local3, _local4, _local5, _local6, _arg1[(_local7 + 0)], 6, -198630844);
_local6 = md5_ii(_local6, _local3, _local4, _local5, _arg1[(_local7 + 7)], 10, 1126891415);
_local5 = md5_ii(_local5, _local6, _local3, _local4, _arg1[(_local7 + 14)], 15, -1416354905);
_local4 = md5_ii(_local4, _local5, _local6, _local3, _arg1[(_local7 + 5)], 21, -57434055);
_local3 = md5_ii(_local3, _local4, _local5, _local6, _arg1[(_local7 + 12)], 6, 1700485571);
_local6 = md5_ii(_local6, _local3, _local4, _local5, _arg1[(_local7 + 3)], 10, -1894986606);
_local5 = md5_ii(_local5, _local6, _local3, _local4, _arg1[(_local7 + 10)], 15, -1051523);
_local4 = md5_ii(_local4, _local5, _local6, _local3, _arg1[(_local7 + 1)], 21, -2054922799);
_local3 = md5_ii(_local3, _local4, _local5, _local6, _arg1[(_local7 + 8)], 6, 1873313359);
_local6 = md5_ii(_local6, _local3, _local4, _local5, _arg1[(_local7 + 15)], 10, -30611744);
_local5 = md5_ii(_local5, _local6, _local3, _local4, _arg1[(_local7 + 6)], 15, -1560198380);
_local4 = md5_ii(_local4, _local5, _local6, _local3, _arg1[(_local7 + 13)], 21, 1309151649);
_local3 = md5_ii(_local3, _local4, _local5, _local6, _arg1[(_local7 + 4)], 6, -145523070);
_local6 = md5_ii(_local6, _local3, _local4, _local5, _arg1[(_local7 + 11)], 10, -1120210379);
_local5 = md5_ii(_local5, _local6, _local3, _local4, _arg1[(_local7 + 2)], 15, 718787259);
_local4 = md5_ii(_local4, _local5, _local6, _local3, _arg1[(_local7 + 9)], 21, -343485551);
_local3 = safe_add(_local3, _local8);
_local4 = safe_add(_local4, _local9);
_local5 = safe_add(_local5, _local10);
_local6 = safe_add(_local6, _local11);
_local7 = (_local7 + 16);
};
return ([_local3, _local4, _local5, _local6]);
}
public static function str2rstr_utf16le(_arg1:String):String{
var _local2 = "";
var _local3:Number = 0;
while (_local3 < _arg1.length) {
_local2 = (_local2 + String.fromCharCode((_arg1.charCodeAt(_local3) & 0xFF), ((_arg1.charCodeAt(_local3) >>> 8) & 0xFF)));
_local3++;
};
return (_local2);
}
public static function hex_hmac_md5(_arg1:String, _arg2:String):String{
return (rstr2hex(rstr_hmac_md5(str2rstr_utf8(_arg1), str2rstr_utf8(_arg2))));
}
public static function binl2rstr(_arg1:Array):String{
var _local2 = "";
var _local3:Number = 0;
while (_local3 < (_arg1.length * 32)) {
_local2 = (_local2 + String.fromCharCode(((_arg1[(_local3 >> 5)] >>> (_local3 % 32)) & 0xFF)));
_local3 = (_local3 + 8);
};
return (_local2);
}
public static function md5_ff(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Number):Number{
return (md5_cmn(((_arg2 & _arg3) | (~(_arg2) & _arg4)), _arg1, _arg2, _arg5, _arg6, _arg7));
}
public static function md5_ii(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Number):Number{
return (md5_cmn((_arg3 ^ (_arg2 | ~(_arg4))), _arg1, _arg2, _arg5, _arg6, _arg7));
}
public static function rstr2binl(_arg1:String):Array{
var _local2:Array = new Array((_arg1.length >> 2));
var _local3:Number = 0;
while (_local3 < _local2.length) {
_local2[_local3] = 0;
_local3++;
};
_local3 = 0;
while (_local3 < (_arg1.length * 8)) {
_local2[(_local3 >> 5)] = (_local2[(_local3 >> 5)] | ((_arg1.charCodeAt((_local3 / 8)) & 0xFF) << (_local3 % 32)));
_local3 = (_local3 + 8);
};
return (_local2);
}
public static function md5_vm_test():Boolean{
return ((hex_md5("abc") == "900150983cd24fb0d6963f7d28e17f72"));
}
public static function b64_md5(_arg1:String):String{
return (rstr2b64(rstr_md5(str2rstr_utf8(_arg1))));
}
public static function any_hmac_md5(_arg1:String, _arg2:String, _arg3:String):String{
return (rstr2any(rstr_hmac_md5(str2rstr_utf8(_arg1), str2rstr_utf8(_arg2)), _arg3));
}
public static function hex_md5(_arg1:String):String{
return (rstr2hex(rstr_md5(str2rstr_utf8(_arg1))));
}
public static function bit_rol(_arg1:Number, _arg2:Number):Number{
return (((_arg1 << _arg2) | (_arg1 >>> (32 - _arg2))));
}
public static function encrypt(_arg1:String):String{
return (hex_md5(_arg1));
}
public static function md5_hh(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Number):Number{
return (md5_cmn(((_arg2 ^ _arg3) ^ _arg4), _arg1, _arg2, _arg5, _arg6, _arg7));
}
public static function rstr2hex(_arg1:String):String{
var _local4:Number;
var _local2:String = (hexcase) ? "0123456789ABCDEF" : "0123456789abcdef";
var _local3 = "";
var _local5:Number = 0;
while (_local5 < _arg1.length) {
_local4 = _arg1.charCodeAt(_local5);
_local3 = (_local3 + (_local2.charAt(((_local4 >>> 4) & 15)) + _local2.charAt((_local4 & 15))));
_local5++;
};
return (_local3);
}
public static function any_md5(_arg1:String, _arg2:String):String{
return (rstr2any(rstr_md5(str2rstr_utf8(_arg1)), _arg2));
}
public static function b64_hmac_md5(_arg1:String, _arg2:String):String{
return (rstr2b64(rstr_hmac_md5(str2rstr_utf8(_arg1), str2rstr_utf8(_arg2))));
}
public static function rstr2b64(_arg1:String):String{
var _local6:Number;
var _local7:Number;
var _local2 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
var _local3 = "";
var _local4:Number = _arg1.length;
var _local5:Number = 0;
while (_local5 < _local4) {
_local6 = (((_arg1.charCodeAt(_local5) << 16) | (((_local5 + 1) < _local4)) ? (_arg1.charCodeAt((_local5 + 1)) << 8) : 0) | (((_local5 + 2) < _local4)) ? _arg1.charCodeAt((_local5 + 2)) : 0);
_local7 = 0;
while (_local7 < 4) {
if (((_local5 * 8) + (_local7 * 6)) > (_arg1.length * 8)){
_local3 = (_local3 + b64pad);
} else {
_local3 = (_local3 + _local2.charAt(((_local6 >>> (6 * (3 - _local7))) & 63)));
};
_local7++;
};
_local5 = (_local5 + 3);
};
return (_local3);
}
public static function safe_add(_arg1:Number, _arg2:Number):Number{
var _local3:Number = ((_arg1 & 0xFFFF) + (_arg2 & 0xFFFF));
var _local4:Number = (((_arg1 >> 16) + (_arg2 >> 16)) + (_local3 >> 16));
return (((_local4 << 16) | (_local3 & 0xFFFF)));
}
public static function str2rstr_utf8(_arg1:String):String{
var _local4:Number;
var _local5:Number;
var _local2 = "";
var _local3:Number = -1;
while (++_local3 < _arg1.length) {
_local4 = _arg1.charCodeAt(_local3);
_local5 = (((_local3 + 1) < _arg1.length)) ? _arg1.charCodeAt((_local3 + 1)) : 0;
if ((((((((0xD800 <= _local4)) && ((_local4 <= 56319)))) && ((0xDC00 <= _local5)))) && ((_local5 <= 57343)))){
_local4 = ((65536 + ((_local4 & 1023) << 10)) + (_local5 & 1023));
_local3++;
};
if (_local4 <= 127){
_local2 = (_local2 + String.fromCharCode(_local4));
} else {
if (_local4 <= 2047){
_local2 = (_local2 + String.fromCharCode((192 | ((_local4 >>> 6) & 31)), (128 | (_local4 & 63))));
} else {
if (_local4 <= 0xFFFF){
_local2 = (_local2 + String.fromCharCode((224 | ((_local4 >>> 12) & 15)), (128 | ((_local4 >>> 6) & 63)), (128 | (_local4 & 63))));
} else {
if (_local4 <= 2097151){
_local2 = (_local2 + String.fromCharCode((240 | ((_local4 >>> 18) & 7)), (128 | ((_local4 >>> 12) & 63)), (128 | ((_local4 >>> 6) & 63)), (128 | (_local4 & 63))));
};
};
};
};
};
return (_local2);
}
public static function rstr_hmac_md5(_arg1:String, _arg2:String):String{
var _local3:Array = rstr2binl(_arg1);
if (_local3.length > 16){
_local3 = binl_md5(_local3, (_arg1.length * 8));
};
var _local4:Array = new Array(16);
var _local5:Array = new Array(16);
var _local6:Number = 0;
while (_local6 < 16) {
_local4[_local6] = (_local3[_local6] ^ 909522486);
_local5[_local6] = (_local3[_local6] ^ 1549556828);
_local6++;
};
var _local7:Array = binl_md5(_local4.concat(rstr2binl(_arg2)), (0x0200 + (_arg2.length * 8)));
return (binl2rstr(binl_md5(_local5.concat(_local7), (0x0200 + 128))));
}
public static function str2rstr_utf16be(_arg1:String):String{
var _local2 = "";
var _local3:Number = 0;
while (_local3 < _arg1.length) {
_local2 = (_local2 + String.fromCharCode(((_arg1.charCodeAt(_local3) >>> 8) & 0xFF), (_arg1.charCodeAt(_local3) & 0xFF)));
_local3++;
};
return (_local2);
}
public static function rstr2any(_arg1:String, _arg2:String):String{
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local8:Array;
var _local3:Number = _arg2.length;
var _local4:Array = [];
var _local9:Array = new Array((_arg1.length / 2));
_local5 = 0;
while (_local5 < _local9.length) {
_local9[_local5] = ((_arg1.charCodeAt((_local5 * 2)) << 8) | _arg1.charCodeAt(((_local5 * 2) + 1)));
_local5++;
};
while (_local9.length > 0) {
_local8 = [];
_local7 = 0;
_local5 = 0;
while (_local5 < _local9.length) {
_local7 = ((_local7 << 16) + _local9[_local5]);
_local6 = Math.floor((_local7 / _local3));
_local7 = (_local7 - (_local6 * _local3));
if ((((_local8.length > 0)) || ((_local6 > 0)))){
_local8[_local8.length] = _local6;
};
_local5++;
};
_local4[_local4.length] = _local7;
_local9 = _local8;
};
var _local10 = "";
_local5 = (_local4.length - 1);
while (_local5 >= 0) {
_local10 = (_local10 + _arg2.charAt(_local4[_local5]));
_local5--;
};
return (_local10);
}
public static function rstr_md5(_arg1:String):String{
return (binl2rstr(binl_md5(rstr2binl(_arg1), (_arg1.length * 8))));
}
}
}//package com.midasplayer
Section 45 (662 B)
//InitializedSprite (com.urbansquall.display.InitializedSprite)
package com.urbansquall.display {
import flash.events.*;
import flash.display.*;
public class InitializedSprite extends Sprite {
public function InitializedSprite(){
if (this.stage != null){
init();
} else {
addEventListener(Event.ADDED_TO_STAGE, doInit);
};
}
protected function init():void{
throw (new Error("InitializedSprite. Override the subclasses' init. That's the whole point of InitializedSprite."));
}
private function doInit(_arg1:Event):void{
removeEventListener(Event.ADDED_TO_STAGE, doInit);
init();
}
}
}//package com.urbansquall.display
Section 46 (1.58 KiB) ●
//Preloader (com.urbansquall.preloader.Preloader)
package com.urbansquall.preloader {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
public class Preloader extends MovieClip {
public var completed:Boolean;// = false
private var m_firstFrame:Boolean;// = true
public function Preloader(){
addEventListener(Event.ENTER_FRAME, checkFrame);
}
protected function endLoading():void{
}
protected function updateLoading(_arg1:Number):void{
}
private function checkFrame(_arg1:Event):void{
if (currentFrame == totalFrames){
removeEventListener(Event.ENTER_FRAME, checkFrame);
completed = true;
return;
};
if (m_firstFrame){
beginLoading();
m_firstFrame = false;
return;
};
var _local2:Number = (root.loaderInfo.bytesLoaded / root.loaderInfo.bytesTotal);
updateLoading(_local2);
}
protected function get mainClassName():String{
return ("_ei204");
}
protected function beginLoading():void{
}
public function startup():void{
stop();
if (!m_firstFrame){
endLoading();
};
var _local1:Class = (getDefinitionByName(mainClassName) as Class);
if (_local1 == null){
throw (new Error((("Preloader:startup. There was no class matching [" + mainClassName) + "]. You may need to override Preloader::mainClassName")));
};
var _local2:DisplayObject = (new (_local1) as DisplayObject);
if (_local2 == null){
throw (new Error((("Preloader::startup. [" + mainClassName) + "] needs to inherit from Sprite or MovieClip.")));
};
addChildAt(_local2, 0);
}
}
}//package com.urbansquall.preloader
Section 47 (1.18 KiB) ●
//MochiBot (mochi.MochiBot)
package mochi {
import flash.display.*;
import flash.net.*;
import flash.system.*;
public dynamic class MochiBot extends Sprite {
public static function track(_arg1:Sprite, _arg2:String):MochiBot{
if (Security.sandboxType == "localWithFile"){
return (null);
};
var _local3:MochiBot = new (MochiBot);
_arg1.addChild(_local3);
Security.allowDomain("*");
Security.allowInsecureDomain("*");
var _local4 = "http://core.mochibot.com/my/core.swf";
var _local5:URLVariables = new URLVariables();
_local5["sb"] = Security.sandboxType;
_local5["v"] = Capabilities.version;
_local5["swfid"] = _arg2;
_local5["mv"] = "8";
_local5["fv"] = "9";
var _local6:String = _local3.root.loaderInfo.loaderURL;
if (_local6.indexOf("http") == 0){
_local5["url"] = _local6;
} else {
_local5["url"] = "local";
};
var _local7:URLRequest = new URLRequest(_local4);
_local7.contentType = "application/x-www-form-urlencoded";
_local7.method = URLRequestMethod.POST;
_local7.data = _local5;
var _local8:Loader = new Loader();
_local3.addChild(_local8);
_local8.load(_local7);
return (_local3);
}
}
}//package mochi
Section 48 (1.23 KiB) ●
//MochiDigits (mochi.MochiDigits)
package mochi {
public final class MochiDigits {
private var Sibling:MochiDigits;
private var Fragment:Number;
private var Encoder:Number;
public function MochiDigits(_arg1:Number=0, _arg2:uint=0):void{
Encoder = 0;
setValue(_arg1, _arg2);
}
public function reencode():void{
var _local1:uint = int((2147483647 * Math.random()));
Fragment = (Fragment ^ (_local1 ^ Encoder));
Encoder = _local1;
}
public function set value(_arg1:Number):void{
setValue(_arg1);
}
public function toString():String{
var _local1:String = String.fromCharCode((Fragment ^ Encoder));
if (Sibling != null){
_local1 = (_local1 + Sibling.toString());
};
return (_local1);
}
public function setValue(_arg1:Number=0, _arg2:uint=0):void{
var _local3:String = _arg1.toString();
var _temp1 = _arg2;
_arg2 = (_arg2 + 1);
Fragment = (_local3.charCodeAt(_temp1) ^ Encoder);
if (_arg2 < _local3.length){
Sibling = new MochiDigits(_arg1, _arg2);
} else {
Sibling = null;
};
reencode();
}
public function get value():Number{
return (Number(this.toString()));
}
public function addValue(_arg1:Number):void{
value = (value + _arg1);
}
}
}//package mochi
Section 49 (835 B)
//BitmapAsset (mx.core.BitmapAsset)
package mx.core {
import flash.display.*;
public class BitmapAsset extends FlexBitmap implements IFlexAsset, IFlexDisplayObject {
mx_internal static const VERSION:String = "3.2.0.3958";
public function BitmapAsset(_arg1:BitmapData=null, _arg2:String="auto", _arg3:Boolean=false){
super(_arg1, _arg2, _arg3);
}
public function get measuredWidth():Number{
if (bitmapData){
return (bitmapData.width);
};
return (0);
}
public function get measuredHeight():Number{
if (bitmapData){
return (bitmapData.height);
};
return (0);
}
public function setActualSize(_arg1:Number, _arg2:Number):void{
width = _arg1;
height = _arg2;
}
public function move(_arg1:Number, _arg2:Number):void{
this.x = _arg1;
this.y = _arg2;
}
}
}//package mx.core
Section 50 (633 B)
//EdgeMetrics (mx.core.EdgeMetrics)
package mx.core {
public class EdgeMetrics {
public var top:Number;
public var left:Number;
public var bottom:Number;
public var right:Number;
mx_internal static const VERSION:String = "3.2.0.3958";
public static const EMPTY:EdgeMetrics = new EdgeMetrics(0, 0, 0, 0);
;
public function EdgeMetrics(_arg1:Number=0, _arg2:Number=0, _arg3:Number=0, _arg4:Number=0){
this.left = _arg1;
this.top = _arg2;
this.right = _arg3;
this.bottom = _arg4;
}
public function clone():EdgeMetrics{
return (new EdgeMetrics(left, top, right, bottom));
}
}
}//package mx.core
Section 51 (634 B)
//FlexBitmap (mx.core.FlexBitmap)
package mx.core {
import flash.display.*;
import mx.utils.*;
public class FlexBitmap extends Bitmap {
mx_internal static const VERSION:String = "3.2.0.3958";
public function FlexBitmap(_arg1:BitmapData=null, _arg2:String="auto", _arg3:Boolean=false){
var bitmapData = _arg1;
var pixelSnapping = _arg2;
var smoothing = _arg3;
super(bitmapData, pixelSnapping, smoothing);
try {
name = NameUtil.createUniqueName(this);
} catch(e:Error) {
};
}
override public function toString():String{
return (NameUtil.displayObjectToString(this));
}
}
}//package mx.core
Section 52 (467 B)
//FlexMovieClip (mx.core.FlexMovieClip)
package mx.core {
import flash.display.*;
import mx.utils.*;
public class FlexMovieClip extends MovieClip {
mx_internal static const VERSION:String = "3.2.0.3958";
public function FlexMovieClip(){
super();
try {
name = NameUtil.createUniqueName(this);
} catch(e:Error) {
};
}
override public function toString():String{
return (NameUtil.displayObjectToString(this));
}
}
}//package mx.core
Section 53 (452 B)
//FlexSprite (mx.core.FlexSprite)
package mx.core {
import flash.display.*;
import mx.utils.*;
public class FlexSprite extends Sprite {
mx_internal static const VERSION:String = "3.2.0.3958";
public function FlexSprite(){
super();
try {
name = NameUtil.createUniqueName(this);
} catch(e:Error) {
};
}
override public function toString():String{
return (NameUtil.displayObjectToString(this));
}
}
}//package mx.core
Section 54 (143 B)
//IBorder (mx.core.IBorder)
package mx.core {
public interface IBorder {
function get borderMetrics():EdgeMetrics;
}
}//package mx.core
Section 55 (107 B)
//IFlexAsset (mx.core.IFlexAsset)
package mx.core {
public interface IFlexAsset {
}
}//package mx.core
Section 56 (2.5 KiB) ●
//IFlexDisplayObject (mx.core.IFlexDisplayObject)
package mx.core {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.accessibility.*;
public interface IFlexDisplayObject extends IBitmapDrawable, IEventDispatcher {
function get visible():Boolean;
function get rotation():Number;
function localToGlobal(_arg1:Point):Point;
function get name():String;
function set width(_arg1:Number):void;
function get measuredHeight():Number;
function get blendMode():String;
function get scale9Grid():Rectangle;
function set name(_arg1:String):void;
function set scaleX(_arg1:Number):void;
function set scaleY(_arg1:Number):void;
function get measuredWidth():Number;
function get accessibilityProperties():AccessibilityProperties;
function set scrollRect(_arg1:Rectangle):void;
function get cacheAsBitmap():Boolean;
function globalToLocal(_arg1:Point):Point;
function get height():Number;
function set blendMode(_arg1:String):void;
function get parent():DisplayObjectContainer;
function getBounds(_arg1:DisplayObject):Rectangle;
function get opaqueBackground():Object;
function set scale9Grid(_arg1:Rectangle):void;
function setActualSize(_arg1:Number, _arg2:Number):void;
function set alpha(_arg1:Number):void;
function set accessibilityProperties(_arg1:AccessibilityProperties):void;
function get width():Number;
function hitTestPoint(_arg1:Number, _arg2:Number, _arg3:Boolean=false):Boolean;
function set cacheAsBitmap(_arg1:Boolean):void;
function get scaleX():Number;
function get scaleY():Number;
function get scrollRect():Rectangle;
function get mouseX():Number;
function get mouseY():Number;
function set height(_arg1:Number):void;
function set mask(_arg1:DisplayObject):void;
function getRect(_arg1:DisplayObject):Rectangle;
function get alpha():Number;
function set transform(_arg1:Transform):void;
function move(_arg1:Number, _arg2:Number):void;
function get loaderInfo():LoaderInfo;
function get root():DisplayObject;
function hitTestObject(_arg1:DisplayObject):Boolean;
function set opaqueBackground(_arg1:Object):void;
function set visible(_arg1:Boolean):void;
function get mask():DisplayObject;
function set x(_arg1:Number):void;
function set y(_arg1:Number):void;
function get transform():Transform;
function set filters(_arg1:Array):void;
function get x():Number;
function get y():Number;
function get filters():Array;
function set rotation(_arg1:Number):void;
function get stage():Stage;
}
}//package mx.core
Section 57 (483 B)
//IRepeaterClient (mx.core.IRepeaterClient)
package mx.core {
public interface IRepeaterClient {
function get instanceIndices():Array;
function set instanceIndices(_arg1:Array):void;
function get isDocument():Boolean;
function set repeaters(_arg1:Array):void;
function initializeRepeaterArrays(_arg1:IRepeaterClient):void;
function get repeaters():Array;
function set repeaterIndices(_arg1:Array):void;
function get repeaterIndices():Array;
}
}//package mx.core
Section 58 (1.04 KiB) ●
//MovieClipAsset (mx.core.MovieClipAsset)
package mx.core {
public class MovieClipAsset extends FlexMovieClip implements IFlexAsset, IFlexDisplayObject, IBorder {
private var _measuredHeight:Number;
private var _measuredWidth:Number;
mx_internal static const VERSION:String = "3.2.0.3958";
public function MovieClipAsset(){
_measuredWidth = width;
_measuredHeight = height;
}
public function get measuredWidth():Number{
return (_measuredWidth);
}
public function get measuredHeight():Number{
return (_measuredHeight);
}
public function setActualSize(_arg1:Number, _arg2:Number):void{
width = _arg1;
height = _arg2;
}
public function move(_arg1:Number, _arg2:Number):void{
this.x = _arg1;
this.y = _arg2;
}
public function get borderMetrics():EdgeMetrics{
if (scale9Grid == null){
return (EdgeMetrics.EMPTY);
};
return (new EdgeMetrics(scale9Grid.left, scale9Grid.top, Math.ceil((measuredWidth - scale9Grid.right)), Math.ceil((measuredHeight - scale9Grid.bottom))));
}
}
}//package mx.core
Section 59 (152 B)
//mx_internal (mx.core.mx_internal)
package mx.core {
public namespace mx_internal = "http://www.adobe.com/2006/flex/mx/internal";
}//package mx.core
Section 60 (221 B)
//SoundAsset (mx.core.SoundAsset)
package mx.core {
import flash.media.*;
public class SoundAsset extends Sound implements IFlexAsset {
mx_internal static const VERSION:String = "3.2.0.3958";
}
}//package mx.core
Section 61 (1.02 KiB) ●
//SpriteAsset (mx.core.SpriteAsset)
package mx.core {
public class SpriteAsset extends FlexSprite implements IFlexAsset, IFlexDisplayObject, IBorder {
private var _measuredHeight:Number;
private var _measuredWidth:Number;
mx_internal static const VERSION:String = "3.2.0.3958";
public function SpriteAsset(){
_measuredWidth = width;
_measuredHeight = height;
}
public function get measuredWidth():Number{
return (_measuredWidth);
}
public function get measuredHeight():Number{
return (_measuredHeight);
}
public function setActualSize(_arg1:Number, _arg2:Number):void{
width = _arg1;
height = _arg2;
}
public function move(_arg1:Number, _arg2:Number):void{
this.x = _arg1;
this.y = _arg2;
}
public function get borderMetrics():EdgeMetrics{
if (scale9Grid == null){
return (EdgeMetrics.EMPTY);
};
return (new EdgeMetrics(scale9Grid.left, scale9Grid.top, Math.ceil((measuredWidth - scale9Grid.right)), Math.ceil((measuredHeight - scale9Grid.bottom))));
}
}
}//package mx.core
Section 62 (1.4 KiB) ●
//NameUtil (mx.utils.NameUtil)
package mx.utils {
import mx.core.*;
import flash.display.*;
import flash.utils.*;
public class NameUtil {
mx_internal static const VERSION:String = "3.2.0.3958";
private static var counter:int = 0;
public static function displayObjectToString(_arg1:DisplayObject):String{
var result:String;
var o:DisplayObject;
var s:String;
var indices:Array;
var displayObject = _arg1;
try {
o = displayObject;
while (o != null) {
if (((((o.parent) && (o.stage))) && ((o.parent == o.stage)))){
break;
};
s = o.name;
if ((o is IRepeaterClient)){
indices = IRepeaterClient(o).instanceIndices;
if (indices){
s = (s + (("[" + indices.join("][")) + "]"));
};
};
result = ((result == null)) ? s : ((s + ".") + result);
o = o.parent;
};
} catch(e:SecurityError) {
};
return (result);
}
public static function createUniqueName(_arg1:Object):String{
if (!_arg1){
return (null);
};
var _local2:String = getQualifiedClassName(_arg1);
var _local3:int = _local2.indexOf("::");
if (_local3 != -1){
_local2 = _local2.substr((_local3 + 2));
};
var _local4:int = _local2.charCodeAt((_local2.length - 1));
if ((((_local4 >= 48)) && ((_local4 <= 57)))){
_local2 = (_local2 + "_");
};
return ((_local2 + counter++));
}
}
}//package mx.utils
Section 63 (4.4 KiB) ●
//_ei204 (_ei204)
package {
import flash.events.*;
import flash.display.*;
import classes.*;
import flash.geom.*;
import com.urbansquall.display.*;
import mochi.*;
import flash.filters.*;
import flash.net.*;
import flash.utils.*;
import caurina.transitions.*;
import flash.text.*;
import flash.ui.*;
public class _ei204 extends InitializedSprite {
public static var Project_FrameRate:int = 35;
public static var MainMouseX:Number;
public static var MainMouseY:Number;
public static var GameLevel:int;
public static var GameLives:int;
public static var Delta:Number;
public static var GameScore:MochiDigits = new MochiDigits();
public static var MainStage:Stage;
public static var GameState:int;
public static var MainContainer:Sprite;
public static var Project_Name:String = irrcrpt("QspkfduObnf", 1);
public static var SmallText:_xn190 = new _xn190();
public static var MainState:int;
public static var MainFunctions:_tv194;
public static var GameLevelString:String;
public static var Project_Height:int = 500;
public static var MainFunction:Function;
public static var GameMode:int;
public static var GameScoreString:String;
public static var Project_Width:int = 640;
public static var IsOkToRun:Boolean;
public static var MySharedObject:SharedObject = SharedObject.getLocal(Project_Name);
public static var MainDelaying:Number;
public static var GameScoreUpdated:Boolean;
public function _ei204():void{
}
override protected function init():void{
MainStage = stage;
MainStage.frameRate = Project_FrameRate;
stage.scaleMode = StageScaleMode.NO_SCALE;
MainStage.quality = StageQuality.MEDIUM;
MainStage.stageFocusRect = false;
_ps285();
MainFunctions = new _tv194();
_dt492._hu480(MainStage);
_ms184._hu480();
_wm156._hu480();
MainContainer = new Sprite();
MainContainer.x = 0;
MainContainer.y = 0;
MainContainer.scrollRect = new Rectangle(0, 0, Project_Width, Project_Height);
MainStage.addChild(MainContainer);
_wy463();
}
private function _ps285():void{
var _local1:String = _kp452();
var _local2:Array = ["flashgamelicense.com", "munsiegames.com", "test.swf"];
IsOkToRun = false;
var _local3:int;
while (_local3 < _local2.length) {
if (_local1.indexOf(_local2[_local3]) > 0){
IsOkToRun = true;
};
_local3++;
};
IsOkToRun = true;
}
private function _ga151(_arg1:Event):void{
Delta = _pc478._xk305();
MainMouseX = mouseX;
MainMouseY = mouseY;
MainFunctions._uc442(Delta);
if (MainDelaying > 0){
MainDelaying = (MainDelaying - Delta);
if (MainDelaying < 1){
MainDelaying = 0;
};
} else {
MainFunction();
};
_ur262._qt428();
_dt492.MouseClicked = false;
}
private function _kp452():String{
var _local2:String;
var _local1:String = this.root.loaderInfo.url;
_local2 = _local1;
return (_local2.toLowerCase());
}
private function _wy463():void{
_se317();
_pc478._ia170();
_pd81._qk184();
_pc478._yd10((1000 / 30));
MainStage.addEventListener(Event.ENTER_FRAME, _ga151);
_wo371._kl102();
}
private static function _se317():void{
_wo371._hu480(MainContainer);
_sd311._hu480(MainContainer);
}
public static function _ts341(_arg1:BitmapData, _arg2:Number, _arg3:Number):void{
SmallText.draw(_arg1, ("" + _pd81._va43()), _arg2, _arg3);
}
public static function _og421():void{
}
public static function _br23(_arg1:Number=0):void{
GameScore.value = _arg1;
_ti110(0);
}
public static function _kd160(_arg1:Event):void{
var _local2:String = irrcrpt("hdvhRxwHodvwlf", 3);
Tweener.addTween(_arg1.currentTarget, {scale:1, time:0.8, transition:_local2});
}
public static function _sb101(_arg1:InteractiveObject):void{
MainStage.focus = _arg1;
}
public static function _bk438(_arg1:_ng17):void{
_arg1.Sprites._mb480();
_arg1.Parent.visible = false;
}
public static function _be188(_arg1:BitmapData, _arg2:String, _arg3:Number, _arg4:Number):void{
SmallText.draw(_arg1, _arg2, _arg3, _arg4);
}
public static function _sv153(_arg1:Event):void{
var _local2:String = irrcrpt("hdvhRxwHodvwlf", 3);
Tweener.addTween(_arg1.currentTarget, {scale:1.2, time:0.8, transition:_local2});
}
public static function _lv209(_arg1:Event):void{
}
public static function _ti110(_arg1:Number):void{
GameScore.addValue(_arg1);
GameScoreString = ("" + GameScore.value);
}
}
}//package
Section 64 (1.19 KiB) ●
//_ms184 (_ms184)
package {
import classes.*;
public class _ms184 {
public static var Font1:_nd448;
public static var Font2:_nd448;
public static function _hu480():void{
Font1 = new _nd448();
Font2 = new _nd448();
_fe260();
}
private static function _fe260():void{
var _local1:int;
Font1 = new _nd448();
Font1._nr394(_xy481.font1bmp, 0);
Font1._yo104(48, 0, 0, 20, 21);
Font1._yo104(49, 21, 0, 9, 21);
Font1._yo104(50, 31, 0, 12, 21);
Font1._yo104(51, 44, 0, 17, 21);
Font1._yo104(52, 62, 0, 16, 21);
Font1._yo104(53, 79, 0, 15, 21);
Font1._yo104(54, 95, 0, 14, 21);
Font1._yo104(55, 110, 0, 16, 21);
Font1._yo104(56, 127, 0, 17, 21);
Font1._yo104(57, 145, 0, 14, 21);
Font2 = new _nd448();
Font2._nr394(_xy481.font2bmp, -11);
Font2._yo104(48, 0, 0, 34, 37);
Font2._yo104(49, 35, 0, 24, 37);
Font2._yo104(50, 60, 0, 27, 37);
Font2._yo104(51, 88, 0, 31, 37);
Font2._yo104(52, 120, 0, 30, 37);
Font2._yo104(53, 151, 0, 30, 37);
Font2._yo104(54, 182, 0, 29, 37);
Font2._yo104(55, 212, 0, 31, 37);
Font2._yo104(56, 244, 0, 31, 37);
Font2._yo104(57, 276, 0, 30, 37);
Font2._yo104(76, 320, 0, 92, 37);
}
}
}//package
Section 65 (63.68 KiB) ● ● ● ●
//_sd311 (_sd311)
package {
import flash.events.*;
import flash.display.*;
import classes.*;
import flash.geom.*;
import mochi.*;
import flash.filters.*;
import flash.net.*;
import flash.utils.*;
import caurina.transitions.*;
import flash.ui.*;
import com.midasplayer.*;
public class _sd311 {
public static var FruitRush:Boolean;
public static var SuperManSide:int;
public static var FruitTotalForLevel:int;
public static var TotalBaddiesForLevel:int;
public static var ScreenShaking:Number = 0;
public static var LostALife:Boolean;
public static var RedParticle:Object = new Object();
public static var BaddiesKilledForPickUps:int;
public static var Explosions:_tq234;
public static var MyShip:_ra247;
public static var Stars:_tq234;
public static var BonusPickupDeployed:Boolean;
public static var MyShipFireSpacer:Number = 0;
public static var BossModeTimer:Number = 0;
public static var PointsForBossDead:int = 100000;
public static var mybmp:BitmapData;
public static var BonusWeaponTime:Number = 0;
public static var RocketSide:int;
public static var GreenParticle:Object = new Object();
public static var Screen:_ng17;
public static var MyShipWeapons:_tq234;
public static var PurpleParticle:Object = new Object();
public static var mydsp:_fj62;
public static var LightningBMPArray:Array = [_xy481.l1bmp, _xy481.l2bmp, _xy481.l3bmp, _xy481.l4bmp];
public static var Burps:Array = [_xy481.burpbmp, _xy481.yumbmp, _xy481.tastybmp, _xy481.gulpbmp];
public static var ScreenXBuffer:Number = 0;
public static var PlayerDying:Boolean;
public static var PickUpBMPArray:Array = [_xy481.pickuprocketbmp, _xy481.pickup3waybmp, _xy481.pickuplightningbmp, _xy481.pickupsupermanbmp, _xy481.pickupfastshotbmp, _xy481.pickupcannonbmp, _xy481.pickuplaserbmp, _xy481.pickupcherrybombbmp, _xy481.pickupfishbmp];
public static var BossExplodeCounter:int;
private static var Parent:Sprite;
public static var PointsPerBossKillLevel:int = 5000;
public static var PointsForCollectingFruit:int = 250;
public static var Specials:_tq234;
public static var PointsForHittingFruitBowl:int = 1000;
public static var BonusWeapon:int;
public static var BonusWeaponSpacer:Number = 0;
public static var mysp:_ra247;
public static var BaddiesBMP:Array = [_xy481.b1bmp, _xy481.b2bmp, _xy481.b3bmp, _xy481.b4bmp];
public static var BlueParticle:Object = new Object();
public static var MyShipSpecialWeapons:_tq234;
public static var GetReadySprite:_ra247;
public static var YellowParticle:Object = new Object();
public static var MyShipFireSpacerValue:Number = 0;
public static var RocketRing:Object = new Object();
public static var ParticleArray:Array = [GreenParticle, BlueParticle, PurpleParticle, RedParticle, YellowParticle];
public static var BossFired:Boolean;
public static var Baddies:_tq234;
public static var PointsForHittingBoss:int = 500;
public static var StateFunction:Function;
public static var BaddieFireAllowedArray:Array = [0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2];
public static var Levels:_tr349 = new _tr349();
public static var OneUpScore:int = 499999;
public static var CannonsActive:Boolean;
public static var BaddiesFireAllowedAtOneTime:int;
public static var BaddiesFire:_tq234;
public static var FruitTotalForLevelGoal:int;
public static var BaddieScoreArray:Array = [250, 500, 1000, 2000];
public static var BaddiesKilledForPickUpsGoal:int;
public static var AutoShootSpacer:Number = 0;
public static var LevelRow:int;
public static var FruitBowlTime:Boolean;
public static var ScreenYBuffer:Number = 0;
public static var FishSide:int;
public static var CheatOn:Boolean = false;
public static var BossLevel:int = 31;
public static var BossTime:Boolean;
public static function _vi271(_arg1:Event):void{
_wp237();
}
public static function _yd103(_arg1:Number, _arg2:Number, _arg3:int=-1):void{
var _local4:_ra247;
var _local5:BitmapData;
var _local6:int = PickUpBMPArray.length;
var _local7:int = _mt474.Random._yf124(1, _local6);
if (_local7 == 6){
if (CannonsActive == true){
_local7 = _mt474.Random._yf124(1, 5);
};
};
if (_arg3 != -1){
_local7 = _arg3;
};
_local5 = PickUpBMPArray[(_local7 - 1)];
_local4 = Explosions._mc263(_local5, 0, 0, _local5.width, _local5.height, Screen.Buffer, 0, 0, 1);
_local4._tk63(_arg1, _arg2);
_local4._fy485(-((_local4.width / 2)), -((_local4.height / 2)), (500 + (_local4.width / 2)), (500 + (_local4.height / 2)));
_local4._cl349(270, 10, 0.1, 0, 0.0001, true);
_local4._il500(_ai125);
_local4._pa257((_local4.width * 0.48));
_local4.id = _local7;
_local4.state = 1;
_local4._go268(0.002, 0, 1, 3, 0);
}
public static function _jv458(_arg1:_ra247):void{
_arg1.num1 = (_arg1.num1 - _ei204.Delta);
if (_arg1.num1 < 1){
_arg1.num1 = (1000 / 30);
mybmp = RocketRing[1];
mysp = Specials._mc263(mybmp, 0, 0, 15, 7, Screen.Buffer, 0, 0, 0);
mysp._tk63(_arg1.x, (_arg1.y + 12));
mysp._ex422(mybmp, 0.025, 20, 4);
};
}
public static function _ai125(_arg1:_ra247):void{
if (_dt25._fx399(_arg1, MyShip) == true){
_arg1.timetodie = true;
if (_arg1.id == 1){
_ei204.MainFunctions._um37(_pj393, 0, 20, 125);
_ur262._mk470(irrcrpt("spdlfu", 1));
} else {
if (_arg1.id == 2){
BonusWeaponTime = 5000;
BonusWeapon = 1;
} else {
if (_arg1.id == 3){
_ei204.MainFunctions._um37(_fb105, 0, 10, 100);
} else {
if (_arg1.id == 4){
_im407();
_ei204.MainFunctions._um37(_sk327, 0, 6, 500);
_ur262._mk470(irrcrpt("xzujwrfs", 5));
} else {
if (_arg1.id == 5){
BonusWeaponTime = 5000;
BonusWeapon = 2;
BonusWeaponSpacer = 0;
} else {
if (_arg1.id == 6){
_dk96();
} else {
if (_arg1.id == 7){
BonusWeaponTime = 5000;
BonusWeapon = 3;
BonusWeaponSpacer = 0;
} else {
if (_arg1.id == 8){
_ei204.MainFunctions._um37(_lq272, 0, 8, 250);
} else {
if (_arg1.id == 9){
_ei204.MainFunctions._um37(_pw441, 0, 10, 500);
};
};
};
};
};
};
};
};
};
};
if (_arg1.state == 1){
if (_arg1.xscale == 1){
_arg1.type = 0;
_arg1.state = 0;
};
};
}
public static function _id226():void{
var _local1:_ra247;
for each (_local1 in Explosions.Sprites) {
if (_local1.timetodie == false){
if (_local1.id > 0){
_local1.timetodie = true;
_en219(_local1, _mt474._ft175(5, 20));
};
};
};
}
public static function _ee444():void{
mysp = MyShipSpecialWeapons._mc263(_xy481.laserbmp, 0, 0, _xy481.laserbmp.width, _xy481.laserbmp.height, Screen.Buffer, 0, 0, 0);
mysp._tk63(MyShip.x, (mysp.height / 2));
mysp.flag1 = true;
mysp._kh21(150);
mysp._il500(_vv355);
}
public static function _em51(_arg1:_ra247):void{
if (_arg1.y > 490){
_arg1.y = 490;
_arg1.ydir = (_arg1.ydir * 0.4);
if (_arg1.ydir > 0.05){
_arg1.ydir = -(_arg1.ydir);
} else {
_arg1.movetype = 0;
_arg1._il500(null);
_arg1._kh21(800);
};
};
}
public static function _gr468():void{
_hr472();
}
public static function _be254():void{
Explosions._mb480();
Specials._mb480();
Baddies._mb480();
BaddiesFire._mb480();
PlayerDying = false;
MyShip.collision_enabled = true;
BonusWeaponTime = 0;
FruitBowlTime = false;
if (_ei204.GameLives == 0){
_dn308();
StateFunction = _du354;
} else {
_la154();
StateFunction = _kw215;
};
}
public static function _hg397():void{
GetReadySprite.timetodie = true;
_is423();
}
private static function _tg143():void{
Screen._jq131();
_wo371._kl102();
}
public static function _ij222(_arg1:_ra247):void{
_arg1.cosangle = (_arg1.cosangle + (_arg1.cosspeed * _ei204.Delta));
_arg1.sinangle = (_arg1.sinangle + (_arg1.sinspeed * _ei204.Delta));
_arg1.xanchor = (_arg1.xanchor + ((Math.cos(_arg1.cosangle) * _arg1.cosradius) * _ei204.Delta));
_arg1.yanchor = (_arg1.yanchor + ((Math.sin(_arg1.sinangle) * _arg1.sinradius) * _ei204.Delta));
if (_arg1.state == 1){
_arg1.num3 = (_arg1.num3 - _ei204.Delta);
if (_arg1.num3 < 1){
if ((((_mt474._bt188() == true)) && ((BaddiesFire.Sprites.length < BaddiesFireAllowedAtOneTime)))){
_nv162(_arg1);
};
_arg1.num3 = _arg1.num4;
};
_arg1.x = (_arg1.x + ((Math.cos(_arg1.cosangle) * _arg1.cosradius) * _ei204.Delta));
_arg1.y = (_arg1.y + ((Math.sin(_arg1.sinangle) * _arg1.sinradius) * _ei204.Delta));
_arg1.num1 = (_arg1.num1 - _ei204.Delta);
if (_arg1.num1 < 1){
_arg1.num1 = _mt474.Random._oa470(3000, 40000);
if (_mt474._bt188() == true){
if (PlayerDying == false){
_arg1.state = 3;
if (_arg1.x < MyShip.x){
_arg1._xq48(180, _mt474.Random._oa470(0.0003, 0.005), 0.1, 0, 0, 0, 0, -0.1, 0, _mt474._nw156(6E-5, 0.0002), false);
} else {
_arg1._xq48(0, _mt474.Random._oa470(0.0003, 0.005), 0.1, 0, 0, 0, 0, -0.1, 0, _mt474._nw156(6E-5, 0.0002), false);
};
};
};
};
} else {
if (_arg1.state == 2){
if (_arg1.movetype == 0){
_arg1.state = 1;
_arg1._tk63(_arg1.xanchor, _arg1.yanchor);
};
} else {
if (_arg1.state == 3){
if (_arg1.x < (_arg1.width / 2)){
_arg1.x = (_arg1.width / 2);
} else {
if (_arg1.x > (499 - (_arg1.width / 2))){
_arg1.x = (499 - (_arg1.width / 2));
};
};
if (_arg1.y > (500 + (_arg1.height / 2))){
_arg1.y = -((_arg1.height / 2));
_arg1.x = 250;
_arg1._uv496(0.005, 0.00025);
_arg1.state = 2;
};
};
};
};
MyShipWeapons._rm317(_arg1, _dd470);
if (_arg1.timetodie == false){
MyShipSpecialWeapons._rm317(_arg1, _dd470);
};
if (_arg1.timetodie == false){
if (_dt25._fx399(_arg1, MyShip) == true){
if (PlayerDying == false){
if (CheatOn == false){
_na133();
};
};
};
};
var _local2:Number = _mt474._mv29(_arg1.x, _arg1.y, MyShip.x, MyShip.y);
_mt474._xa295(_xy481.baddieeyesbmp, (_arg1.x + Math.round(_mt474._cp39(_local2, 4))), ((_arg1.y - 2) + Math.round(_mt474._yy371(_local2, 4))), 0, 0, _xy481.baddieeyesbmp.width, _xy481.baddieeyesbmp.height, Screen.Buffer);
}
public static function _wp160(_arg1:_ra247):void{
if (_arg1.movetype == 0){
_arg1.num2 = (_arg1.num2 - _ei204.Delta);
if (_arg1.num2 < 1){
_arg1.num2 = 990;
mysp = Explosions._mc263(_xy481.cannonblastbmp, 0, 0, _xy481.cannonblastbmp.width, _xy481.cannonblastbmp.height, Screen.Buffer, 0, 0, 0);
mysp._tk63((_arg1.x - 33), (_arg1.y - 41));
mysp._kh21(105);
mysp = MyShipSpecialWeapons._mc263(_xy481.cannonballbmp, 0, 0, _xy481.cannonballbmp.width, _xy481.cannonballbmp.height, Screen.Buffer, 0, 0, 0);
mysp._tk63((_arg1.x - 33), (_arg1.y - 41));
mysp._pa257((mysp.width * 0.48));
mysp._fy485(-((mysp.width / 2)), -((mysp.height / 2)), (500 + (mysp.width / 2)), (500 + (mysp.height / 2)));
mysp._cl349(235, 20, _mt474._nw156(0.25, 0.6), 0, 0.0001, true);
mysp.flag1 = true;
_ur262._mk470(irrcrpt("dboopo", 1));
};
_arg1.num1 = (_arg1.num1 - _ei204.Delta);
if ((((_arg1.num1 < 1)) || ((PlayerDying == true)))){
_arg1._cr79((499 + (_arg1.width / 2)), (499 + (_arg1.height / 2)), 0.3, 0, true);
_arg1._il500(null);
};
};
}
public static function _pa172():void{
var _local1:BitmapData;
_local1 = _xy481.soundonbmp;
if (_wo371.SoundButtonState == 0){
_local1 = _xy481.soundoffbmp;
};
_wo371.SoundButton = Screen.Sprites._gn273(Screen.Parent, _local1, (250 - 15), (103 - (_local1.height / 2)), 1, _my267, _ei204._lv209, _ei204._lv209);
_wo371.SoundButton.state = _wo371.SoundButtonState;
_local1 = _xy481.musiconbmp;
if (_wo371.MusicButtonState == 0){
_local1 = _xy481.musicoffbmp;
};
_wo371.MusicButton = Screen.Sprites._gn273(Screen.Parent, _local1, (250 + 15), (103 - (_local1.height / 2)), 1, _dq464, _ei204._lv209, _ei204._lv209);
_wo371.MusicButton.state = _wo371.MusicButtonState;
}
public static function _my267(_arg1:Event):void{
if (_wo371.SoundButton.state == 1){
_wo371.SoundButton.state = 0;
_ur262._yl111(false);
_wo371.SoundButton._aw184(_xy481.soundoffbmp);
} else {
_wo371.SoundButton.state = 1;
_ur262._yl111(true);
_wo371.SoundButton._aw184(_xy481.soundonbmp);
};
_wo371.SoundButtonState = _wo371.SoundButton.state;
}
public static function _be141():void{
LevelRow = 0;
Levels._hu480(15, (10 * 300), 11, 1, _xy481.b1bmp, 1, 1, 1);
_ya146([0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0]);
_ya146([0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0]);
_ya146([0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0]);
_ya146([0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0]);
_ya146([0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0]);
_ya146([0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0]);
_ya146([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]);
_ya146([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]);
_ya146([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]);
_ya146([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]);
_ya146([0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0]);
_ya146([0, 0, 2, 0, 0, 0, 1, 0, 1, 0, 0, 0, 2, 0, 0]);
_ya146([0, 2, 0, 1, 0, 1, 0, 0, 0, 1, 0, 1, 0, 2, 0]);
_ya146([0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0]);
_ya146([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]);
_ya146([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]);
_ya146([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]);
_ya146([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]);
_ya146([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]);
_ya146([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]);
_ya146([0, 0, 0, 1, 0, 0, 0, 2, 0, 0, 0, 1, 0, 0, 0]);
_ya146([0, 0, 1, 0, 1, 0, 2, 0, 2, 0, 1, 0, 1, 0, 0]);
_ya146([0, 0, 0, 1, 0, 0, 0, 2, 0, 0, 0, 1, 0, 0, 0]);
_ya146([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]);
_ya146([0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0]);
_ya146([0, 0, 0, 0, 2, 0, 1, 1, 1, 0, 2, 0, 0, 0, 0]);
_ya146([0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0]);
_ya146([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]);
_ya146([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]);
_ya146([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]);
_ya146([0, 0, 0, 0, 0, 0, 3, 3, 3, 0, 0, 0, 0, 0, 0]);
_ya146([1, 0, 0, 0, 0, 0, 2, 0, 2, 0, 0, 0, 0, 0, 1]);
_ya146([0, 1, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 1, 0]);
_ya146([0, 0, 3, 3, 3, 0, 0, 0, 0, 0, 3, 3, 3, 0, 0]);
_ya146([0, 0, 2, 0, 2, 0, 0, 1, 0, 0, 2, 0, 2, 0, 0]);
_ya146([0, 0, 1, 1, 1, 0, 1, 0, 1, 0, 1, 1, 1, 0, 0]);
_ya146([0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0]);
_ya146([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]);
_ya146([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]);
_ya146([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]);
_ya146([0, 0, 0, 0, 0, 0, 2, 2, 2, 0, 0, 0, 0, 0, 0]);
_ya146([0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 0, 0]);
_ya146([0, 0, 0, 0, 2, 0, 4, 0, 4, 0, 2, 0, 0, 0, 0]);
_ya146([0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0]);
_ya146([0, 0, 0, 0, 1, 0, 0, 3, 0, 0, 1, 0, 0, 0, 0]);
_ya146([0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0]);
_ya146([0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0]);
_ya146([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]);
_ya146([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]);
_ya146([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]);
_ya146([0, 0, 0, 0, 0, 3, 2, 4, 2, 3, 0, 0, 0, 0, 0]);
_ya146([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]);
_ya146([0, 0, 0, 0, 3, 2, 1, 2, 1, 2, 3, 0, 0, 0, 0]);
_ya146([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]);
_ya146([0, 0, 0, 3, 2, 1, 2, 1, 2, 1, 2, 3, 0, 0, 0]);
_ya146([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]);
_ya146([0, 0, 3, 2, 1, 2, 1, 1, 1, 2, 1, 2, 3, 0, 0]);
_ya146([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]);
_ya146([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]);
_ya146([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]);
_ya146([3, 0, 3, 0, 3, 0, 3, 0, 3, 0, 3, 0, 3, 0, 3]);
_ya146([2, 0, 3, 0, 3, 0, 1, 0, 1, 0, 3, 0, 3, 0, 2]);
_ya146([0, 0, 2, 0, 3, 0, 1, 0, 1, 0, 3, 0, 2, 0, 0]);
_ya146([0, 0, 0, 0, 2, 0, 1, 0, 1, 0, 2, 0, 0, 0, 0]);
_ya146([0, 0, 0, 0, 0, 0, 2, 0, 2, 0, 0, 0, 0, 0, 0]);
_ya146([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]);
_ya146([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]);
_ya146([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]);
_ya146([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]);
_ya146([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]);
_ya146([1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1]);
_ya146([1, 3, 3, 1, 0, 0, 0, 0, 0, 0, 0, 1, 3, 3, 1]);
_ya146([1, 3, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 3, 1]);
_ya146([2, 2, 2, 2, 0, 0, 0, 1, 0, 0, 0, 2, 2, 2, 2]);
_ya146([0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0]);
_ya146([0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0]);
_ya146([0, 0, 0, 0, 0, 1, 3, 3, 3, 1, 0, 0, 0, 0, 0]);
_ya146([0, 0, 0, 0, 0, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0]);
_ya146([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]);
_ya146([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]);
_ya146([0, 0, 0, 3, 0, 3, 0, 3, 0, 3, 0, 3, 0, 0, 0]);
_ya146([0, 0, 3, 0, 3, 0, 3, 0, 3, 0, 3, 0, 3, 0, 0]);
_ya146([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]);
_ya146([2, 0, 2, 0, 2, 0, 1, 0, 1, 0, 2, 0, 2, 0, 2]);
_ya146([0, 2, 0, 2, 0, 1, 0, 0, 0, 1, 0, 2, 0, 2, 0]);
_ya146([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]);
_ya146([0, 0, 0, 0, 0, 1, 0, 1, 0, 1, 0, 0, 0, 0, 0]);
_ya146([0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0]);
_ya146([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]);
_ya146([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]);
_ya146([0, 1, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 1, 0]);
_ya146([1, 2, 1, 0, 0, 0, 2, 1, 2, 0, 0, 0, 1, 2, 1]);
_ya146([1, 2, 2, 1, 0, 2, 1, 3, 1, 2, 0, 1, 2, 2, 1]);
_ya146([0, 1, 2, 2, 2, 1, 3, 4, 3, 1, 2, 2, 2, 1, 0]);
_ya146([0, 0, 1, 1, 0, 2, 1, 3, 1, 2, 0, 1, 1, 0, 0]);
_ya146([0, 0, 0, 0, 0, 0, 2, 1, 2, 0, 0, 0, 0, 0, 0]);
_ya146([0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0]);
_ya146([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]);
_ya146([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]);
_ya146([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]);
_ya146([0, 2, 0, 0, 3, 0, 0, 2, 0, 0, 3, 0, 0, 2, 0]);
_ya146([2, 3, 2, 0, 0, 2, 0, 2, 0, 2, 0, 0, 2, 3, 2]);
_ya146([0, 2, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 2, 0]);
_ya146([0, 0, 0, 0, 3, 2, 1, 3, 1, 2, 3, 0, 0, 0, 0]);
_ya146([0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0]);
_ya146([0, 0, 0, 0, 0, 2, 0, 1, 0, 2, 0, 0, 0, 0, 0]);
_ya146([0, 0, 0, 0, 3, 0, 0, 1, 0, 0, 3, 0, 0, 0, 0]);
_ya146([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]);
_ya146([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]);
_ya146([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]);
_ya146([0, 1, 1, 0, 0, 0, 4, 4, 4, 0, 0, 0, 1, 1, 0]);
_ya146([1, 2, 2, 1, 0, 4, 3, 3, 3, 4, 0, 1, 2, 2, 1]);
_ya146([1, 2, 2, 1, 0, 4, 3, 3, 3, 4, 0, 1, 2, 2, 1]);
_ya146([1, 2, 2, 1, 0, 4, 3, 3, 3, 4, 0, 1, 2, 2, 1]);
_ya146([0, 1, 1, 0, 0, 0, 4, 4, 4, 0, 0, 0, 1, 1, 0]);
_ya146([0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0]);
_ya146([0, 0, 0, 1, 3, 1, 0, 0, 0, 1, 3, 1, 0, 0, 0]);
_ya146([0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0]);
_ya146([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]);
_ya146([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]);
_ya146([4, 1, 4, 0, 0, 0, 4, 1, 4, 0, 0, 0, 4, 1, 4]);
_ya146([0, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 2, 0]);
_ya146([0, 2, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 2, 0]);
_ya146([0, 3, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 3, 0]);
_ya146([0, 0, 3, 0, 2, 0, 0, 1, 0, 0, 2, 0, 3, 0, 0]);
_ya146([0, 0, 0, 3, 2, 0, 0, 2, 0, 0, 2, 3, 0, 0, 0]);
_ya146([0, 0, 0, 0, 3, 0, 0, 2, 0, 0, 3, 0, 0, 0, 0]);
_ya146([0, 0, 0, 0, 0, 0, 3, 3, 3, 0, 0, 0, 0, 0, 0]);
_ya146([0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0]);
_ya146([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]);
_ya146([2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2]);
_ya146([0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0]);
_ya146([0, 0, 4, 0, 1, 0, 3, 0, 3, 0, 1, 0, 4, 0, 0]);
_ya146([0, 0, 0, 4, 0, 1, 0, 3, 0, 1, 0, 4, 0, 0, 0]);
_ya146([0, 0, 0, 0, 2, 0, 2, 0, 2, 0, 2, 0, 0, 0, 0]);
_ya146([0, 0, 0, 0, 0, 2, 0, 2, 0, 2, 0, 0, 0, 0, 0]);
_ya146([0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0]);
_ya146([0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0]);
_ya146([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]);
_ya146([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]);
_ya146([2, 2, 2, 2, 2, 2, 2, 3, 2, 2, 2, 2, 2, 2, 2]);
_ya146([2, 0, 0, 3, 0, 0, 0, 3, 0, 0, 0, 3, 0, 0, 2]);
_ya146([2, 0, 0, 3, 0, 0, 0, 3, 0, 0, 0, 3, 0, 0, 2]);
_ya146([2, 0, 0, 3, 0, 0, 1, 1, 1, 0, 0, 3, 0, 0, 2]);
_ya146([2, 0, 0, 3, 0, 0, 3, 1, 3, 0, 0, 3, 0, 0, 2]);
_ya146([1, 0, 0, 3, 0, 0, 1, 1, 1, 0, 0, 3, 0, 0, 1]);
_ya146([1, 0, 1, 3, 1, 0, 0, 1, 0, 0, 1, 3, 1, 0, 1]);
_ya146([1, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 1]);
_ya146([1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1]);
_ya146([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]);
_ya146([1, 0, 0, 3, 0, 0, 0, 1, 0, 0, 0, 3, 0, 0, 1]);
_ya146([0, 2, 0, 0, 3, 0, 0, 1, 0, 0, 3, 0, 0, 2, 0]);
_ya146([0, 0, 2, 0, 0, 3, 0, 1, 0, 3, 0, 0, 2, 0, 0]);
_ya146([0, 0, 0, 2, 0, 3, 0, 1, 0, 3, 0, 2, 0, 0, 0]);
_ya146([4, 0, 0, 2, 0, 3, 0, 1, 0, 3, 0, 2, 0, 0, 4]);
_ya146([0, 0, 0, 2, 0, 3, 0, 1, 0, 3, 0, 2, 0, 0, 0]);
_ya146([0, 0, 2, 0, 0, 3, 0, 1, 0, 3, 0, 0, 2, 0, 0]);
_ya146([0, 2, 0, 0, 3, 0, 0, 0, 0, 0, 3, 0, 0, 2, 0]);
_ya146([1, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 1]);
_ya146([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]);
_ya146([0, 0, 0, 0, 0, 3, 0, 0, 0, 3, 0, 0, 0, 0, 0]);
_ya146([0, 0, 0, 0, 0, 0, 3, 0, 3, 0, 0, 0, 0, 0, 0]);
_ya146([0, 1, 0, 0, 0, 1, 0, 3, 0, 1, 0, 0, 0, 1, 0]);
_ya146([0, 0, 2, 0, 2, 0, 0, 0, 0, 0, 2, 0, 2, 0, 0]);
_ya146([0, 0, 0, 1, 0, 1, 0, 0, 0, 1, 0, 1, 0, 0, 0]);
_ya146([3, 0, 0, 0, 3, 0, 2, 0, 2, 0, 3, 0, 0, 0, 3]);
_ya146([0, 3, 0, 3, 0, 0, 0, 1, 0, 0, 0, 3, 0, 3, 0]);
_ya146([0, 0, 3, 0, 0, 1, 0, 0, 0, 1, 0, 0, 3, 0, 0]);
_ya146([0, 0, 0, 0, 0, 0, 2, 0, 2, 0, 0, 0, 0, 0, 0]);
_ya146([0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0]);
_ya146([0, 2, 0, 0, 0, 2, 2, 2, 2, 2, 0, 0, 0, 2, 0]);
_ya146([2, 3, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 2]);
_ya146([0, 2, 0, 0, 2, 2, 2, 2, 2, 2, 2, 0, 0, 2, 0]);
_ya146([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]);
_ya146([0, 0, 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0]);
_ya146([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]);
_ya146([0, 0, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 0, 0]);
_ya146([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]);
_ya146([0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0]);
_ya146([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]);
_ya146([3, 3, 3, 2, 2, 2, 1, 1, 1, 2, 2, 2, 3, 3, 3]);
_ya146([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]);
_ya146([2, 2, 1, 2, 2, 1, 2, 2, 2, 1, 2, 2, 1, 2, 2]);
_ya146([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]);
_ya146([1, 2, 1, 2, 1, 2, 1, 1, 1, 2, 1, 2, 1, 2, 1]);
_ya146([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]);
_ya146([1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]);
_ya146([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]);
_ya146([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]);
_ya146([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]);
_ya146([3, 3, 0, 0, 0, 2, 2, 0, 2, 2, 0, 0, 0, 3, 3]);
_ya146([3, 3, 0, 0, 0, 1, 1, 0, 1, 1, 0, 0, 0, 3, 3]);
_ya146([0, 0, 0, 2, 2, 0, 0, 1, 0, 0, 2, 2, 0, 0, 0]);
_ya146([2, 2, 0, 1, 1, 0, 1, 3, 1, 0, 1, 1, 0, 2, 2]);
_ya146([2, 2, 0, 0, 0, 1, 3, 4, 3, 1, 0, 0, 0, 2, 2]);
_ya146([0, 0, 0, 2, 2, 0, 1, 3, 1, 0, 2, 2, 0, 0, 0]);
_ya146([2, 2, 0, 1, 1, 0, 0, 1, 0, 0, 1, 1, 0, 2, 2]);
_ya146([1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1]);
_ya146([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]);
_ya146([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]);
_ya146([0, 0, 0, 0, 0, 0, 4, 4, 4, 0, 0, 0, 0, 0, 0]);
_ya146([3, 3, 3, 3, 3, 0, 0, 2, 0, 0, 3, 3, 3, 3, 3]);
_ya146([0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0]);
_ya146([0, 1, 0, 0, 4, 2, 2, 1, 2, 2, 4, 0, 0, 1, 0]);
_ya146([0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0]);
_ya146([2, 2, 2, 2, 0, 0, 0, 1, 0, 0, 0, 2, 2, 2, 2]);
_ya146([0, 1, 0, 0, 0, 4, 2, 1, 2, 4, 0, 0, 0, 1, 0]);
_ya146([0, 1, 0, 0, 0, 0, 4, 2, 4, 0, 0, 0, 0, 1, 0]);
_ya146([0, 1, 0, 0, 0, 0, 0, 4, 0, 0, 0, 0, 0, 1, 0]);
_ya146([1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1]);
_ya146([0, 4, 0, 0, 4, 0, 0, 4, 0, 0, 4, 0, 0, 4, 0]);
_ya146([3, 2, 3, 0, 2, 0, 0, 1, 0, 0, 2, 0, 3, 2, 3]);
_ya146([0, 3, 0, 0, 2, 0, 0, 1, 0, 0, 2, 0, 0, 3, 0]);
_ya146([0, 0, 0, 3, 2, 3, 0, 1, 0, 3, 2, 3, 0, 0, 0]);
_ya146([0, 2, 0, 0, 3, 0, 0, 1, 0, 0, 3, 0, 0, 2, 0]);
_ya146([2, 2, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 2, 2, 2]);
_ya146([0, 2, 0, 0, 2, 1, 1, 1, 1, 1, 2, 0, 0, 2, 0]);
_ya146([0, 2, 0, 0, 0, 2, 1, 1, 1, 2, 0, 0, 0, 2, 0]);
_ya146([0, 2, 0, 0, 0, 0, 2, 1, 2, 0, 0, 0, 0, 2, 0]);
_ya146([0, 2, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 2, 0]);
_ya146([2, 2, 2, 2, 0, 2, 2, 2, 2, 2, 0, 2, 2, 2, 2]);
_ya146([2, 0, 0, 2, 0, 2, 0, 0, 0, 2, 0, 2, 0, 0, 2]);
_ya146([2, 1, 1, 2, 0, 2, 1, 1, 1, 2, 0, 2, 1, 1, 2]);
_ya146([2, 0, 0, 2, 0, 2, 0, 0, 0, 2, 0, 2, 0, 0, 2]);
_ya146([2, 2, 2, 2, 0, 2, 1, 1, 1, 2, 0, 2, 2, 2, 2]);
_ya146([0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 0, 0]);
_ya146([0, 0, 0, 0, 0, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0]);
_ya146([2, 2, 2, 2, 0, 0, 0, 0, 0, 0, 0, 2, 2, 2, 2]);
_ya146([2, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 2]);
_ya146([2, 2, 2, 2, 0, 0, 0, 0, 0, 0, 0, 2, 2, 2, 2]);
_ya146([3, 1, 3, 1, 3, 0, 0, 4, 0, 0, 3, 1, 3, 1, 3]);
_ya146([1, 3, 1, 3, 0, 0, 4, 4, 4, 0, 0, 3, 1, 3, 1]);
_ya146([3, 1, 3, 0, 0, 2, 0, 0, 0, 2, 0, 0, 3, 1, 3]);
_ya146([1, 3, 0, 0, 2, 2, 0, 3, 0, 2, 2, 0, 0, 3, 1]);
_ya146([3, 0, 0, 2, 1, 2, 0, 0, 0, 2, 1, 2, 0, 0, 3]);
_ya146([0, 0, 2, 1, 1, 2, 0, 3, 0, 2, 1, 1, 2, 0, 0]);
_ya146([1, 0, 0, 2, 1, 2, 0, 0, 0, 2, 1, 2, 0, 0, 1]);
_ya146([3, 1, 0, 0, 2, 2, 0, 3, 0, 2, 2, 0, 0, 1, 3]);
_ya146([1, 3, 1, 0, 0, 2, 0, 0, 0, 2, 0, 0, 1, 3, 1]);
_ya146([3, 1, 3, 1, 0, 0, 0, 0, 0, 0, 0, 1, 3, 1, 3]);
_ya146([1, 1, 4, 1, 4, 1, 4, 4, 4, 1, 4, 1, 4, 1, 1]);
_ya146([1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1]);
_ya146([1, 0, 3, 3, 2, 2, 2, 2, 2, 2, 2, 3, 3, 0, 1]);
_ya146([1, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 1]);
_ya146([1, 0, 2, 0, 4, 4, 1, 1, 1, 4, 4, 0, 2, 0, 1]);
_ya146([1, 0, 2, 0, 4, 4, 1, 1, 1, 4, 4, 0, 2, 0, 1]);
_ya146([1, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 1]);
_ya146([1, 0, 3, 3, 2, 2, 2, 2, 2, 2, 2, 3, 3, 0, 1]);
_ya146([1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1]);
_ya146([2, 1, 2, 1, 2, 3, 3, 3, 3, 3, 2, 1, 2, 1, 2]);
_ya146([2, 2, 2, 0, 0, 0, 0, 3, 0, 0, 0, 0, 2, 2, 2]);
_ya146([2, 1, 2, 0, 0, 0, 3, 4, 3, 0, 0, 0, 2, 1, 2]);
_ya146([2, 1, 2, 0, 0, 3, 4, 1, 4, 3, 0, 0, 2, 1, 2]);
_ya146([0, 1, 0, 0, 0, 3, 4, 1, 4, 3, 0, 0, 0, 1, 0]);
_ya146([0, 3, 3, 3, 3, 3, 4, 1, 4, 3, 3, 3, 3, 3, 0]);
_ya146([0, 1, 0, 0, 0, 3, 4, 1, 4, 3, 0, 0, 0, 1, 0]);
_ya146([0, 1, 0, 0, 0, 0, 3, 4, 3, 0, 0, 0, 0, 1, 0]);
_ya146([2, 1, 2, 0, 0, 0, 0, 3, 0, 0, 0, 0, 2, 1, 2]);
_ya146([2, 1, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 1, 2]);
_ya146([2, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 2, 2]);
_ya146([4, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 4]);
_ya146([0, 4, 0, 0, 0, 0, 2, 3, 2, 0, 0, 0, 0, 4, 0]);
_ya146([0, 0, 4, 0, 0, 0, 0, 2, 0, 0, 0, 0, 4, 0, 0]);
_ya146([0, 0, 0, 4, 0, 0, 0, 1, 0, 0, 0, 4, 0, 0, 0]);
_ya146([0, 0, 2, 0, 0, 4, 0, 1, 0, 4, 0, 0, 2, 0, 0]);
_ya146([0, 2, 0, 0, 4, 4, 0, 1, 0, 4, 4, 0, 0, 2, 0]);
_ya146([2, 0, 0, 3, 3, 3, 1, 1, 1, 3, 3, 3, 0, 0, 2]);
_ya146([0, 0, 3, 3, 3, 3, 0, 0, 0, 3, 3, 3, 3, 0, 0]);
_ya146([0, 2, 1, 2, 1, 2, 0, 0, 0, 2, 1, 2, 1, 2, 0]);
_ya146([2, 1, 2, 1, 2, 1, 0, 0, 0, 1, 2, 1, 2, 1, 2]);
_ya146([0, 0, 3, 0, 0, 0, 0, 4, 0, 0, 0, 0, 3, 0, 0]);
_ya146([0, 3, 4, 3, 0, 0, 4, 1, 4, 0, 0, 3, 4, 3, 0]);
_ya146([0, 0, 3, 0, 0, 4, 1, 3, 1, 4, 0, 0, 3, 0, 0]);
_ya146([0, 0, 0, 0, 4, 1, 3, 1, 3, 1, 4, 0, 0, 0, 0]);
_ya146([0, 0, 0, 2, 1, 3, 1, 3, 1, 3, 1, 2, 0, 0, 0]);
_ya146([0, 0, 2, 1, 2, 1, 3, 1, 3, 1, 2, 1, 2, 0, 0]);
_ya146([0, 3, 1, 2, 1, 2, 1, 3, 1, 2, 1, 2, 1, 3, 0]);
_ya146([3, 1, 3, 0, 2, 1, 2, 1, 2, 1, 2, 0, 3, 1, 3]);
_ya146([1, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 1]);
_ya146([3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3]);
_ya146([2, 0, 2, 0, 4, 0, 4, 0, 4, 0, 4, 0, 2, 0, 2]);
_ya146([2, 0, 2, 0, 4, 0, 4, 0, 4, 0, 4, 0, 2, 0, 2]);
_ya146([2, 0, 2, 0, 4, 0, 4, 0, 4, 0, 4, 0, 2, 0, 2]);
_ya146([2, 0, 2, 0, 3, 0, 3, 0, 3, 0, 3, 0, 2, 0, 2]);
_ya146([2, 0, 2, 0, 3, 0, 3, 0, 3, 0, 3, 0, 2, 0, 2]);
_ya146([1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1]);
_ya146([1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1]);
_ya146([1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1]);
_ya146([1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1]);
_ya146([1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1]);
_ya146([4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4]);
_ya146([4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4]);
_ya146([3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3]);
_ya146([3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3]);
_ya146([2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2]);
_ya146([2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2]);
_ya146([2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2]);
_ya146([1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]);
_ya146([1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]);
_ya146([1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]);
}
public static function _vv355(_arg1:_ra247):void{
_arg1.x = MyShip.x;
}
public static function _qi384(_arg1:Event):void{
}
public static function _xt454():void{
_mt474._sh130(BlueParticle, 1, _xy481.bluebmp, 1, 1, 1, 0, true, 30);
_mt474._sh130(GreenParticle, 1, _xy481.greenbmp, 1, 1, 1, 0, true, 30);
_mt474._sh130(PurpleParticle, 1, _xy481.purplebmp, 1, 1, 1, 0, true, 30);
_mt474._sh130(RedParticle, 1, _xy481.redbmp, 1, 1, 1, 0, true, 30);
_mt474._sh130(YellowParticle, 1, _xy481.yellowbmp, 1, 1, 1, 0, true, 30);
_mt474._sh130(RocketRing, 1, _xy481.rocketringbmp, 1, 1, 1, 0, true, 20);
}
public static function _uy395():void{
Explosions = new _tq234();
}
public static function _br333(_arg1:_ra247):void{
MyShipWeapons._rm317(_arg1, _gm128);
MyShipSpecialWeapons._rm317(_arg1, _gm128);
if (_arg1.state == 1){
if (_arg1.alphafading == 0){
_arg1._gf94((0.1 * _mt474._gn180()), (0.1 * _mt474._gn180()), (_arg1.width / 2), (_arg1.height / 2), (500 - (_arg1.width / 2)), (300 - (_arg1.height / 2)));
_arg1.state = 2;
};
};
if (_arg1.state == 2){
_arg1.num1 = (_arg1.num1 - _ei204.Delta);
if (_arg1.num1 < 1){
_arg1._vw503(-0.002, 1, 0, 1, true);
_arg1.collision_enabled = false;
_arg1._il500(null);
_le455();
FruitBowlTime = false;
};
};
}
public static function _kv84(_arg1:Event):void{
KingAPI.submitScore(_ei204.GameScore.value);
_ei204.MainFunctions._um37(_wp237, 500);
}
public static function _gm128(_arg1:_ra247, _arg2:_ra247):void{
if (_arg1.flag1 == false){
_arg1.timetodie = true;
_arg1.collision_enabled = false;
};
_ei204._ti110(PointsForHittingFruitBowl);
_hb418();
_en219(_arg2, _mt474.Random._yf124(1, 3));
_arg2._rg227(3, 3, 0, 0.025, 0.025, 0.025);
_lf204(_arg2.x, _arg2.y, 50, _mt474._ft175(0, 4));
_ur262._mk470((irrcrpt("mny", 5) + _mt474._ft175(1, 3)));
}
public static function _mi288():void{
MyShipWeapons = new _tq234();
MyShipSpecialWeapons = new _tq234();
}
public static function _im407():void{
mysp = Stars._mc263(_xy481.pinwheelbmp, 0, 0, _xy481.pinwheelbmp.width, _xy481.pinwheelbmp.height, Screen.Buffer, 250, 250, 1);
mysp._ao201(0.1, 0, 360, 2, 0);
mysp.scale = 6;
mysp.drawsmoothing = false;
mysp._am66(0.001, 2800);
mysp = Stars._mc263(_xy481.pinwheelbmp, 0, 0, _xy481.pinwheelbmp.width, _xy481.pinwheelbmp.height, Screen.Buffer, 250, 250, 1);
mysp._ao201(-0.2, 0, 360, 2, 45);
mysp.scale = 6;
mysp.drawsmoothing = false;
mysp._am66(0.001, 2800);
}
public static function _ja484(_arg1:int=0):void{
var _local2:BitmapData;
var _local6:int;
var _local7:int;
var _local8:int;
var _local11:int;
_arg1 = (_arg1 - 10);
var _local3:Number = 0;
var _local4:Number = 0;
var _local5:Number = 0;
var _local9:int = _mt474.Random._yf124(1, 4);
if (_local9 == 1){
_local7 = 250;
_local8 = 250;
};
if (_local9 == 2){
_local7 = 0;
_local8 = 0;
};
if (_local9 == 3){
_local7 = 250;
_local8 = 0;
};
if (_local9 == 4){
_local7 = 499;
_local8 = 0;
};
TotalBaddiesForLevel = 0;
var _local10:int;
while (_local10 < 10) {
_local11 = 0;
while (_local11 < 15) {
_local6 = Levels._lg173(_local11, (_arg1 + _local10));
if (_local6 > 0){
_local2 = BaddiesBMP[(_local6 - 1)];
_local5 = (_local5 + 0.05);
mysp = Baddies._mc263(_local2, 80, 0, 40, 40, Screen.Buffer, 0, 0, 0);
mysp.hitcount = _local6;
_local3 = (20 + (_local11 * 33));
_local4 = (25 + (_local10 * 36));
mysp._vq215(_local3, _local4);
mysp._tk63(_local7, _local8);
mysp.state = 2;
mysp._uq484(_local5, 0.005, 0.025, _local5, 0.005, 0.025, 0, 0, 0, 0, false);
mysp.movetype = 0;
mysp._uv496(0.01, 0.0005);
mysp.num1 = _mt474.Random._oa470(3000, 40000);
mysp.num4 = _mt474.Random._oa470(1000, 6000);
mysp.num3 = mysp.num4;
mysp.id = _local6;
mysp._pa257((mysp.width * 0.48));
TotalBaddiesForLevel++;
};
_local11++;
};
_local10++;
};
BonusPickupDeployed = false;
BaddiesKilledForPickUps = 0;
FruitTotalForLevel = 0;
if (_ei204.GameLevel > 3){
BaddiesKilledForPickUpsGoal = (TotalBaddiesForLevel * 0.45);
FruitTotalForLevelGoal = (TotalBaddiesForLevel * 0.4);
} else {
BaddiesKilledForPickUpsGoal = 1000;
FruitTotalForLevelGoal = 1000;
};
}
public static function _io267():void{
mysp = Explosions._mc263(_xy481.levelupbmp, 0, 0, _xy481.levelupbmp.width, _xy481.levelupbmp.height, Screen.Buffer, 0, 0, 0);
mysp._tk63(-((mysp.width / 2)), 200);
mysp._cr79(250, 200, 0.1, 0.01);
mysp._il500(_vq135);
mysp.num1 = 1000;
}
public static function _dm298():void{
var _local1:_ra247;
var _local2:int = _mt474.Random._yf124(0, 5);
var _local3:BitmapData = Burps[_mt474.Random._yf124(0, 3)];
_local1 = Specials._mc263(_local3, 0, 0, _local3.width, _local3.height, Screen.Buffer, 0, 0, 0);
_local1._tk63(MyShip.x, (MyShip.y - (MyShip.height / 2)));
_local1._fy485(-((_local3.width / 2)), -((_local3.height / 2)), (500 + (_local3.width / 2)), (500 + (_local3.height / 2)));
_local1._cl349(270, 30, _mt474.Random._oa470(0.07, 0.2), 0, 0.0003, true);
_ur262._mk470(irrcrpt("hvmq", 1));
}
public static function _vq135(_arg1:_ra247):void{
if (_arg1.movetype == 0){
_arg1.num1 = (_arg1.num1 - _ei204.Delta);
if (_arg1.num1 < 1){
_arg1._he224((500 + (_arg1.width / 2)), 200, 0.1, 0.01, _vc274);
_arg1._il500(null);
};
};
}
public static function _dd470(_arg1:_ra247, _arg2:_ra247):void{
if (_arg1.flag1 == false){
_arg1.timetodie = true;
_arg1.collision_enabled = false;
};
if (_arg2._vx391(1) == true){
_ei204._ti110(BaddieScoreArray[(_arg2.id - 1)]);
_hb418();
BaddiesKilledForPickUps = (BaddiesKilledForPickUps + 1);
if (BaddiesKilledForPickUps > BaddiesKilledForPickUpsGoal){
if (BonusPickupDeployed == false){
BaddiesKilledForPickUps = 0;
_yd103(_arg2.x, _arg2.y);
BonusPickupDeployed = true;
};
};
if (FruitRush == true){
_en219(_arg2, _mt474.Random._yf124(2, 5));
} else {
if (_mt474._bt188() == true){
_en219(_arg2);
};
};
_un67(_arg2.x, _arg2.y, _mt474.Random._yf124(20, 150), (_arg2.id - 1));
_arg2.timetodie = true;
_arg2.collision_enabled = false;
TotalBaddiesForLevel = (TotalBaddiesForLevel - 1);
if (TotalBaddiesForLevel == 0){
if (LostALife == false){
_hr472();
};
};
_ur262._mk470((irrcrpt("jkv", 2) + _mt474._ft175(1, 3)));
} else {
_arg2._ex422(_arg2.bmpsrc, 0.015, 3, 6);
};
}
public static function _le455():void{
GetReadySprite = Explosions._mc263(_xy481.getreadybmp, 0, 0, _xy481.getreadybmp.width, _xy481.getreadybmp.height, Screen.Buffer, 250, 200, 1);
GetReadySprite.scale = 0;
Tweener.addTween(GetReadySprite, {scale:1.5, time:1, transition:irrcrpt("iewiSyxIpewxmg", 4)});
Tweener.addTween(GetReadySprite, {scale:0, time:0.5, delay:2, onComplete:_nm367});
}
public static function _na133():void{
var _local4:int;
var _local1:BitmapData = _xy481.shipwitheyesbmp;
var _local2:Number = 0;
Specials._mb480();
MyShipWeapons._mb480();
MyShipSpecialWeapons._mb480();
var _local3:int;
while (_local3 < 16) {
_local4 = 0;
while (_local4 < 16) {
mysp = Explosions._mc263(_local1, (_local4 * 4), (_local3 * 4), 4, 4, Screen.Buffer, 0, 0, 0);
mysp._tk63(((MyShip.x - 32) + (_local4 * 4)), ((MyShip.y - 32) + (_local3 * 4)));
_local2 = _mt474._mv29(MyShip.x, (MyShip.y + 80), mysp.x, mysp.y);
mysp._cl349(_local2, 10, (_mt474._nw156(0.005, 0.03) * 6), 0, 0.0002, false);
mysp._il500(_em51);
_local4++;
};
_local3++;
};
StateFunction = _fh56;
PlayerDying = true;
MyShip.collision_enabled = false;
_ei204.MainFunctions._yg405();
_ei204.MainFunctions._um37(_be254, 4000);
_ei204.GameLives = (_ei204.GameLives - 1);
LostALife = true;
_ur262._td431(irrcrpt("qnkj", 5));
}
public static function _dk96():void{
var _local1:BitmapData;
_local1 = _xy481.leftcannonbmp;
mysp = Specials._mc263(_local1, 0, 0, _local1.width, _local1.height, Screen.Buffer, 0, 0, 0);
mysp._tk63(-((_local1.width / 2)), (499 + (_local1.height / 2)));
mysp._cr79((_local1.width / 2), (500 - (_local1.height / 2)), 0.3);
mysp._il500(_rd143);
mysp.num1 = 5000;
mysp.num2 = 450;
_local1 = _xy481.rightcannonbmp;
mysp = Specials._mc263(_local1, 0, 0, _local1.width, _local1.height, Screen.Buffer, 0, 0, 0);
mysp._tk63((499 + (_local1.width / 2)), (499 + (_local1.height / 2)));
mysp._cr79((500 - (_local1.width / 2)), (500 - (_local1.height / 2)), 0.3);
mysp._il500(_wp160);
mysp.num1 = 5000;
mysp.num2 = 450;
CannonsActive = true;
}
public static function _sb268(_arg1:Number, _arg2:Number, _arg3:int, _arg4:int):void{
var _local5:_ra247;
var _local6:BitmapData = ParticleArray[_arg4][1];
var _local7:int;
while (_local7 < _arg3) {
_local5 = Explosions._mc263(_xy481.redbmp, 0, 0, _xy481.redbmp.width, _xy481.redbmp.height, Screen.Buffer, _arg1, _arg2, 0);
_local5._ex422(_local6, _mt474.Random._oa470(0.01, 0.05), 30, 4, 0);
_local5._cl349(270, 360, _mt474.Random._oa470(0.05, 0.15), 0, 0.00015, false);
_local7++;
};
}
public static function _nv16(_arg1:Event):void{
}
public static function _fb105():void{
var _local1:BitmapData = LightningBMPArray[_mt474.Random._yf124(0, 3)];
mysp = MyShipSpecialWeapons._mc263(_local1, 0, 0, _local1.width, _local1.height, Screen.Buffer, 0, 0, 0);
mysp._tk63((_mt474._ft175(0, 4) * 100), 249);
mysp._ut280((mysp.width * 0.95), (mysp.height * 0.95));
mysp._kh21(250);
mysp.flag1 = true;
_ur262._mk470(irrcrpt("oljkwqlqj", 3), 250);
}
public static function _bw254():void{
mysp = Specials._mc482(_xy481.fruitbowlbmp, Screen.Buffer, 0, 0);
mysp._tk63(250, 150);
mysp._il500(_br333);
mysp.num1 = 20000;
mysp.state = 1;
mysp._vw503(0.0005, 0);
mysp._pa257((mysp.width * 0.48));
FruitBowlTime = true;
}
public static function _ib438(_arg1:_ra247):void{
if (_arg1.collision_enabled == true){
BossModeTimer = (BossModeTimer - _ei204.Delta);
if (BossModeTimer < 1){
BossModeTimer = _mt474._nw156(2500, 8000);
_arg1.state = _mt474._ft175(1, 2);
_arg1.num1 = 0;
BossFired = false;
if (_arg1.state == 2){
_arg1._cr79(250, 100, 0.1);
};
};
};
if (_arg1.state == 1){
if (_arg1.movetype == 0){
_arg1.num1 = (_arg1.num1 - _ei204.Delta);
if (_arg1.num1 < 1){
_arg1.num1 = _mt474._nw156(500, 3000);
_arg1._cr79(_mt474._nw156(70, (500 - 70)), _mt474._nw156(70, 250), 0.1, 0.0025);
BossFired = false;
} else {
if (BossFired == false){
if (_mt474._bt188(10) == true){
BossFired = true;
_yc483(_arg1, 90, 0.2);
_yc483(_arg1, (90 - 30), 0.2);
_yc483(_arg1, (90 + 30), 0.2);
};
};
};
};
} else {
if (_arg1.state == 2){
if (_arg1.movetype == 0){
_arg1.num1 = (_arg1.num1 - _ei204.Delta);
if (_arg1.num1 < 1){
_arg1.num1 = 150;
_yc483(_arg1, _mt474._nw156((90 - 40), (90 + 40)), 0.2);
};
};
} else {
if (_arg1.state == 5){
if (_arg1.movetype == 0){
ScreenShaking = 0;
Screen._tk63(ScreenXBuffer, ScreenYBuffer);
_arg1._go268(0.001, 1, 100, 4, 1);
_arg1._vw503(-0.001, 1, 0, 1, false);
_arg1.state = 6;
};
} else {
if (_arg1.state == 6){
if (_arg1.alphafading == 0){
_arg1.state = 7;
_arg1.num1 = 8000;
_arg1.num2 = 0;
};
} else {
if (_arg1.state == 7){
_arg1.num2 = (_arg1.num2 - _ei204.Delta);
if (_arg1.num2 < 1){
_lf204(_mt474._nw156(50, (500 - 50)), _mt474._nw156(50, 350), _mt474._nw156(20, 100), _mt474._ft175(0, 4));
_arg1.num2 = _mt474._nw156(33, 250);
if (_mt474._bt188(50) == true){
_ur262._mk470((irrcrpt("lmx", 4) + _mt474._ft175(1, 3)));
};
};
_arg1.num1 = (_arg1.num1 - _ei204.Delta);
if (_arg1.num1 < 1){
_arg1.timetodie = true;
_ei204._ti110(PointsForBossDead);
_pe258();
};
};
};
};
};
};
if (PlayerDying == false){
MyShipWeapons._rm317(_arg1, _gf91);
if (_arg1.timetodie == false){
MyShipSpecialWeapons._rm317(_arg1, _gf91);
};
};
var _local2:Number = _mt474._mv29(_arg1.x, _arg1.y, MyShip.x, MyShip.y);
_mt474._dn484(_xy481.bosseyesbmp, (_arg1.x + Math.round(_mt474._cp39(_local2, 12))), (_arg1.y + Math.round(_mt474._yy371(_local2, 12))), Screen.Buffer, _arg1.alpha, _arg1.xscale, _arg1.yscale, _arg1.rotation, 0, 0, _arg1.red, _arg1.green, _arg1.blue);
}
public static function _du354():void{
Explosions._nq315(_ei204.Delta);
if (ScreenShaking > 0){
Screen._tk63((ScreenXBuffer + _mt474._ft175(-5, 5)), (ScreenYBuffer + _mt474._ft175(-5, 5)));
ScreenShaking = (ScreenShaking - _ei204.Delta);
if (ScreenShaking < 1){
ScreenShaking = 0;
Screen._tk63(ScreenXBuffer, ScreenYBuffer);
};
};
}
public static function _jq392(_arg1:Event):void{
KingAPI.openOtherGamesLink();
}
public static function _nv162(_arg1:_ra247):void{
mysp = BaddiesFire._mc263(_xy481.e1bmp, 0, 0, 21, 21, Screen.Buffer, 0, 0, 0);
mysp._tk63(_arg1.x, _arg1.y);
mysp._fy485(-20, -20, 520, 520);
mysp._cl349(90, 0, 0.3, 0, 0, true);
mysp._pa257((15 * 0.48));
}
public static function _st223():void{
BossTime = true;
mysp = Baddies._mc482(_xy481.bossheadbmp, Screen.Buffer, 0, 0);
mysp._tk63(250, 100);
mysp.hitcount = 50;
BossExplodeCounter = 0;
mysp._vw503(0.001, 0);
mysp._pa257(65);
BossFired = false;
mysp.state = 0;
BossModeTimer = 3000;
FruitRush = false;
FruitTotalForLevel = 0;
FruitTotalForLevelGoal = 1000000;
}
public static function _mm315():void{
var _local1:_ra247;
var _local2:BitmapData = _xy481.oneupbmp;
_local1 = Explosions._mc263(_local2, 0, 0, _local2.width, _local2.height, Screen.Buffer, 0, 0, 1);
_local1._tk63(250, 200);
_local1.drawsmoothing = false;
_local1._go268(0.001, 0, 1000, 4, 0);
_local1._am66(0.001, 50);
}
public static function _ea46(_arg1:_ra247):void{
if (_arg1.animating == 0){
_arg1.timetodie = true;
mysp = MyShipSpecialWeapons._mc263(_xy481.cherrybombexplodebmp, 0, 0, _xy481.cherrybombexplodebmp.width, _xy481.cherrybombexplodebmp.height, Screen.Buffer, 0, 0, 0);
mysp._tk63(_arg1.x, _arg1.y);
mysp._pa257(75);
mysp._kh21(200);
mysp.flag1 = true;
ScreenShaking = 250;
_ur262._mk470(irrcrpt("ejgttadqod", 2), 50);
};
}
public static function _hu480(_arg1:Sprite):void{
Parent = _arg1;
Screen = new _ng17();
Screen._hu480(Parent, _ei204.Project_Width, _ei204.Project_Height, false);
Screen._jq131();
if (_ei204.IsOkToRun == false){
Screen._wt396();
Screen._aw184(_xy481.lockedbmp);
} else {
ScreenXBuffer = Screen.Parent.x;
ScreenYBuffer = Screen.Parent.y;
_cd392();
_mi288();
_uy395();
_xt454();
_cl319();
Specials = new _tq234();
Screen.Buffer = Screen.Buffer;
_be141();
};
}
public static function _hu485(_arg1:Event):void{
}
public static function _is423():void{
var _local1:int = _ei204.GameLevel;
if (_local1 == BossLevel){
_st223();
} else {
if ((((((((((_local1 == 5)) || ((_local1 == 10)))) || ((_local1 == 15)))) || ((_local1 == 20)))) || ((_local1 == 25)))){
if (LostALife == false){
_bw254();
} else {
_ja484((_local1 * 10));
BaddiesFireAllowedAtOneTime = BaddieFireAllowedArray[(_local1 - 1)];
};
} else {
_ja484((_local1 * 10));
BaddiesFireAllowedAtOneTime = BaddieFireAllowedArray[(_local1 - 1)];
};
};
LostALife = false;
}
public static function _np198(_arg1:Event):void{
KingAPI.openOtherGamesLink();
}
public static function _nx358():void{
_ei204.MainFunctions._um37(_wp237, 1000);
}
public static function _lf204(_arg1:Number, _arg2:Number, _arg3:int, _arg4:int):void{
var _local5:_ra247;
var _local6:BitmapData = ParticleArray[_arg4][1];
var _local7:Number = (360 / _arg3);
var _local8:int;
while (_local8 < _arg3) {
_local5 = Explosions._mc263(_xy481.redbmp, 0, 0, _xy481.redbmp.width, _xy481.redbmp.height, Screen.Buffer, _arg1, _arg2, 0);
_local5._tk63(_arg1, _arg2);
_local5._ex422(_local6, _mt474._nw156(0.01, 0.05), 30, 4, 0);
_local5._cl349(270, 90, _mt474._nw156(0.1, 0.3), 0, 0.0005, false);
_local7 = (_local7 + (360 / _arg3));
_local8++;
};
}
public static function _nm367():void{
GetReadySprite.timetodie = true;
_ja484((_ei204.GameLevel * 10));
BaddiesFireAllowedAtOneTime = BaddieFireAllowedArray[(_ei204.GameLevel - 1)];
}
public static function _gf91(_arg1:_ra247, _arg2:_ra247):void{
if (_arg1.flag1 == false){
_arg1.timetodie = true;
_arg1.collision_enabled = false;
};
if (_arg2._vx391(1) == true){
_ei204._ti110(PointsPerBossKillLevel);
_hb418();
_arg2.hitcount = 50;
BossExplodeCounter++;
_lf204(_arg2.x, _arg2.y, 100, 3);
ScreenShaking = 250;
if (BossExplodeCounter == 1){
} else {
if (BossExplodeCounter == 2){
_en219(_arg2, _mt474.Random._yf124(15, 25));
} else {
if (BossExplodeCounter == 3){
_yd103(_arg2.x, _arg2.y, 2);
} else {
if (BossExplodeCounter == 4){
_en219(_arg2, _mt474.Random._yf124(15, 25));
} else {
if (BossExplodeCounter == 5){
_arg2.collision_enabled = false;
_arg2._cr79(250, 250, 0.02);
_arg2.state = 5;
ScreenShaking = 60000;
};
};
};
};
};
} else {
_arg2._rg227(4, 4, 4, 0.025, 0.025, 0.025);
_ei204._ti110(PointsForHittingBoss);
_hb418();
_ur262._mk470((irrcrpt("jkv", 2) + _mt474._ft175(1, 3)));
};
}
public static function _hb418():void{
if (_ei204.GameScore.value > OneUpScore){
if (_ei204.GameLives < 3){
_mm315();
OneUpScore = (OneUpScore + 500000);
_ei204.GameLives = (_ei204.GameLives + 1);
};
};
}
public static function _pe258():void{
GetReadySprite = Explosions._mc263(_xy481.gamefinishedbmp, 0, 0, _xy481.gamefinishedbmp.width, _xy481.gamefinishedbmp.height, Screen.Buffer, 250, 200, 1);
GetReadySprite.scale = 0;
Tweener.addTween(GetReadySprite, {scale:1.5, time:1, transition:irrcrpt("fbtfPvuFmbtujd", 1)});
Tweener.addTween(GetReadySprite, {scale:0, time:0.5, delay:5, onComplete:_ry269});
StateFunction = _du354;
}
public static function _dx412(_arg1:Number):void{
mysp = MyShipWeapons._mc263(_xy481.w1bmp, 0, 0, _xy481.w1bmp.width, _xy481.w1bmp.height, Screen.Buffer, 0, 0, 0);
mysp._tk63(MyShip.x, (MyShip.y - 8));
mysp._fy485(-20, -20, 520, 520);
mysp._cl349(_arg1, 0, 0.5, 0, 0, true);
mysp._pa257((mysp.width * 0.48));
}
public static function _dq464(_arg1:Event):void{
if (_wo371.MusicButton.state == 1){
_wo371.MusicButton.state = 0;
_mu102._ow58();
_mu102._yl111(false);
_wo371.MusicButton._aw184(_xy481.musicoffbmp);
} else {
_wo371.MusicButton.state = 1;
_mu102._yl111(true);
_mu102._oo371(irrcrpt("vtcem3", 2), 1);
_mu102._td431(irrcrpt("ywfhp6", 5));
_wo371.MusicButton._aw184(_xy481.musiconbmp);
};
_wo371.MusicButtonState = _wo371.MusicButton.state;
}
public static function _pw441():void{
FishSide++;
if (FishSide == 2){
FishSide = 0;
};
if (FishSide == 0){
mysp = MyShipSpecialWeapons._mc263(_xy481.fishrightbmp, 0, 0, 118, 100, Screen.Buffer, 0, 0, 0);
mysp._tk63(-((mysp.width / 2)), _mt474._nw156(50, 350));
mysp._cl349(0, 20, _mt474._nw156(0.2, 0.5), 0, 0, true);
} else {
mysp = MyShipSpecialWeapons._mc263(_xy481.fishleftbmp, 0, 0, 118, 100, Screen.Buffer, 0, 0, 0);
mysp._tk63((499 + (mysp.width / 2)), _mt474._nw156(50, 350));
mysp._cl349(180, 20, _mt474._nw156(0.2, 0.5), 0, 0, true);
};
mysp._ex422(mysp.bmpsrc, 0.003, 2, 2);
mysp._fy485(-((mysp.width / 2)), -((mysp.height / 2)), (500 + (mysp.width / 2)), (500 + (mysp.height / 2)));
mysp._pa257(35);
mysp.flag1 = true;
}
public static function _pj393():void{
RocketSide++;
if (RocketSide == 2){
RocketSide = 0;
};
mysp = MyShipSpecialWeapons._mc263(_xy481.rocketbmp, 0, 0, _xy481.rocketbmp.width, _xy481.rocketbmp.height, Screen.Buffer, 0, 0, 0);
mysp._tk63(((MyShip.x - 32) + (RocketSide * 64)), (MyShip.y - 8));
mysp._fy485(-20, -20, 520, 520);
mysp._cl349(90, 80, 0.1, 0, -0.00025, true);
mysp._pa257((mysp.width * 0.48));
mysp._il500(_jv458);
mysp.num1 = 0;
}
public static function _mm72():void{
_mt474._lo159(_xy481.hudbmp, 500, 0, Screen.Buffer, false);
_ms184.Font1._ol493(Screen.Buffer, _ei204.GameScoreString, 568, 72);
_ms184.Font1._ol493(Screen.Buffer, ("" + _ei204.GameLevel), 568, 166);
if (_ei204.GameLives > 0){
_mt474._xa295(_xy481.livesbmp, (568 + 4), 277, 0, 0, (_ei204.GameLives * 36), 30, Screen.Buffer);
};
}
public static function _bs370(_arg1:_ra247):void{
if (_dt25._fx399(_arg1, MyShip) == true){
_arg1.timetodie = true;
_arg1.collision_enabled = false;
if (PlayerDying == false){
if (CheatOn == false){
_na133();
};
};
};
}
public static function _uc442():void{
Screen.Buffer.lock();
Screen.Buffer.fillRect(new Rectangle(0, 0, 500, 417), 4278190080);
Stars._nq315(_ei204.Delta);
_mt474._lo159(_xy481.backbmp, 0, (500 - 187), Screen.Buffer, false);
StateFunction();
_mm72();
Screen.Buffer.unlock();
if (_dt492.Key_Clicked > 0){
if (_dt492.Key_Clicked == 27){
_wp237();
};
_dt492._wv36(_dt492.Key_Clicked);
};
}
public static function _ya146(_arg1:Array):void{
var _local2:int;
while (_local2 < 15) {
Levels._tf407(_local2, LevelRow, _arg1[_local2]);
_local2++;
};
LevelRow++;
}
public static function _sk327():void{
SuperManSide++;
if (SuperManSide == 2){
SuperManSide = 0;
};
if (SuperManSide == 0){
mysp = MyShipSpecialWeapons._mc263(_xy481.supermanrightbmp, 0, 0, _xy481.supermanrightbmp.width, _xy481.supermanrightbmp.height, Screen.Buffer, 0, 0, 0);
mysp._tk63(-((mysp.width / 2)), _mt474._nw156(300, 499));
mysp._cl349(315, 30, _mt474._nw156(0.2, 0.5), 0, 0, true);
} else {
mysp = MyShipSpecialWeapons._mc263(_xy481.supermanleftbmp, 0, 0, _xy481.supermanleftbmp.width, _xy481.supermanleftbmp.height, Screen.Buffer, 0, 0, 0);
mysp._tk63((499 + (mysp.width / 2)), _mt474._nw156(300, 499));
mysp._cl349(225, 30, _mt474._nw156(0.2, 0.5), 0, 0, true);
};
mysp._fy485(-((mysp.width / 2)), -((mysp.height / 2)), (500 + (mysp.width / 2)), (500 + (mysp.height / 2)));
mysp._pa257((mysp.width * 0.45));
mysp.flag1 = true;
}
public static function _qk78(_arg1:_ra247):void{
if (_dt25._fx399(_arg1, MyShip) == true){
_ei204._ti110(PointsForCollectingFruit);
_hb418();
_arg1.timetodie = true;
_dm298();
if (FruitBowlTime == false){
FruitTotalForLevel = (FruitTotalForLevel + 1);
if (FruitTotalForLevel > FruitTotalForLevelGoal){
if (FruitRush == false){
FruitRush = true;
_ny130();
};
};
};
};
}
public static function _mb480():void{
MyShipWeapons._mb480();
MyShipSpecialWeapons._mb480();
Stars._mb480();
Explosions._mb480();
Baddies._mb480();
BaddiesFire._mb480();
Specials._mb480();
}
public static function _fc259(_arg1:Event):void{
KingAPI.openOtherGamesLink();
}
public static function _yt424():void{
_mb480();
_cl319();
MyShip = new _ra247();
MyShip._kj138(_xy481.shipbmp, 0, 0, _xy481.shipbmp.width, _xy481.shipbmp.height, Screen.Buffer, 0);
MyShip.y = (498 - (MyShip.height / 2));
MyShip._pa257((MyShip.width * 0.48));
_ei204.GameLevel = 0;
_ei204.GameScore.value = 0;
_ei204.GameLives = 3;
_ei204._ti110(0);
LostALife = false;
FruitBowlTime = false;
BossTime = false;
BonusPickupDeployed = false;
PlayerDying = false;
BaddiesFireAllowedAtOneTime = 2;
ScreenShaking = 0;
Screen._tk63(ScreenXBuffer, ScreenYBuffer);
CannonsActive = false;
BonusWeaponTime = 0;
BonusWeapon = 0;
BaddiesKilledForPickUps = 0;
FruitRush = false;
FruitTotalForLevel = 0;
}
public static function _cd392():void{
Baddies = new _tq234();
BaddiesFire = new _tq234();
}
public static function _en219(_arg1:_ra247, _arg2:int=1):void{
var _local3:_ra247;
var _local4:int;
var _local5:int;
while (_local5 < _arg2) {
_local4 = _mt474.Random._yf124(0, 5);
_local3 = Specials._mc263(_xy481.fruitbmp, (_local4 * 40), 0, 40, 36, Screen.Buffer, 0, 0, 0);
_local3._tk63(_arg1.x, _arg1.y);
_local3._fy485(-((_local3.width / 2)), -100, (500 + (_local3.width / 2)), (500 + (_local3.height / 2)));
_local3._cl349(270, 30, _mt474.Random._oa470(0.1, 0.3), 0, 0.0003, true);
_local3._il500(_qk78);
_local3._pa257((_local3.width * 0.48));
_local5++;
};
}
public static function _cl319():void{
var _local1 = 60;
Stars = new _tq234();
Stars._mb480();
var _local2:int;
while (_local2 < _local1) {
mysp = Stars._mc263(_xy481.starsbmp, (_mt474.Random._yf124(0, 4) * 25), 0, 25, 25, Screen.Buffer, 0, 0, 0);
mysp._tk63(_mt474.Random._yf124(10, (500 - 10)), _mt474.Random._yf124(10, (500 - 10)));
mysp._oo158(90, _mt474.Random._oa470(0.005, 0.05), 0, 0, 499, 499);
_local2++;
};
}
public static function _wp237():void{
Screen._hd254(1, _tg143);
_mu102._hd254(irrcrpt("vtcem3", 2));
StateFunction = _ei204._og421;
_ei204.MainFunction = _ei204._og421;
}
public static function _ny130():void{
var _local1:_ra247;
var _local2:BitmapData = _xy481.fruitrushbmp;
_local1 = Explosions._mc263(_local2, 0, 0, _local2.width, _local2.height, Screen.Buffer, 0, 0, 1);
_local1._tk63(250, 200);
_local1.drawsmoothing = false;
_local1._go268(0.001, 0, 1000, 4, 0);
_local1._am66(0.001, 50);
}
public static function _dn308():void{
GetReadySprite = Explosions._mc263(_xy481.gameoverbmp, 0, 0, _xy481.gameoverbmp.width, _xy481.gameoverbmp.height, Screen.Buffer, 250, 200, 1);
GetReadySprite.scale = 0;
Tweener.addTween(GetReadySprite, {scale:1.5, time:1, transition:irrcrpt("fbtfPvuFmbtujd", 1)});
Tweener.addTween(GetReadySprite, {scale:0, time:0.5, delay:2, onComplete:_ry269});
}
public static function _vc274(_arg1:_ra247):void{
_arg1.timetodie = true;
_is423();
}
public static function _fh56():void{
if (BossTime == false){
Baddies._gy346(_ij222, _ei204.Delta);
} else {
Baddies._gy346(_ib438, _ei204.Delta);
};
Explosions._nq315(_ei204.Delta);
if (ScreenShaking > 0){
Screen._tk63((ScreenXBuffer + _mt474._ft175(-5, 5)), (ScreenYBuffer + _mt474._ft175(-5, 5)));
ScreenShaking = (ScreenShaking - _ei204.Delta);
if (ScreenShaking < 1){
ScreenShaking = 0;
Screen._tk63(ScreenXBuffer, ScreenYBuffer);
};
};
}
public static function _hr472():void{
_ei204.GameLevel = (_ei204.GameLevel + 1);
FruitRush = false;
FruitTotalForLevel = 0;
BaddiesKilledForPickUps = 0;
if (_ei204.GameLevel == 1){
_la154();
} else {
_id226();
_io267();
};
}
public static function _ry269():void{
GetReadySprite.timetodie = true;
if (KingAPI.isHome){
KingAPI.submitScore(_ei204.GameScore.value);
_ei204.MainFunctions._um37(_wp237, 500);
} else {
mydsp = Screen.Sprites._mc263(Screen.Parent, _xy481.submitscorebmp, -70, -130, 1);
mydsp = Screen.Sprites._gn273(Screen.Parent, _xy481.yesbmp, -70, 40, 1, _kv84, _ei204._sv153, _ei204._kd160);
mydsp = Screen.Sprites._gn273(Screen.Parent, _xy481.nobmp, -70, 130, 1, _vi271, _ei204._sv153, _ei204._kd160);
};
}
public static function _pv273():void{
mydsp = Screen.Sprites._gn273(Screen.Parent, _xy481.ingamemoregamesbmp, 249, 155, 1, _jq392, _ei204._lv209, _ei204._lv209);
mydsp = Screen.Sprites._gn273(Screen.Parent, _xy481.ingamesponsorbmp, 249, 230, 1, _np198, _ei204._lv209, _ei204._lv209);
_pa172();
}
public static function _md323():void{
var _local1:Number;
var _local2:Number;
var _local3:Number;
var _local4:Number;
var _local5:Boolean;
_local1 = (_ei204.MainMouseX - MyShip.x);
_local3 = (_local1 / 250);
MyShip.x = (MyShip.x + (_local3 * _ei204.Delta));
if (MyShip.x < 33){
MyShip.x = 33;
} else {
if (MyShip.x > 467){
MyShip.x = 467;
};
};
MyShip._uc442(_ei204.Delta);
MyShip._up57();
var _local6:Number = _mt474._mv29(MyShip.x, MyShip.y, _ei204.MainMouseX, _ei204.MainMouseY);
_mt474._xa295(_xy481.shipeyesbmp, (MyShip.x + Math.round(_mt474._cp39(_local6, 5))), ((MyShip.y - 3) + Math.round(_mt474._yy371(_local6, 5))), 0, 0, _xy481.shipeyesbmp.width, _xy481.shipeyesbmp.height, Screen.Buffer);
AutoShootSpacer = (AutoShootSpacer - _ei204.Delta);
if (AutoShootSpacer < 1){
AutoShootSpacer = 0;
_local5 = true;
AutoShootSpacer = 150;
};
if (BonusWeaponTime == 0){
if (_local5 == true){
if (MyShipWeapons.Sprites.length < 5){
_dx412(_local6);
_ur262._mk470(irrcrpt("vkrrw", 3));
};
};
} else {
BonusWeaponTime = (BonusWeaponTime - _ei204.Delta);
if (BonusWeaponTime < 1){
BonusWeaponTime = 0;
};
if (BonusWeapon == 1){
if (_local5 == true){
if (MyShipWeapons.Sprites.length < 15){
_dx412(_local6);
_dx412(_mt474._ci330(_local6, -22));
_dx412(_mt474._ci330(_local6, 22));
_ur262._mk470(irrcrpt("wlssx", 4));
};
};
} else {
if (BonusWeapon == 2){
BonusWeaponSpacer = (BonusWeaponSpacer - _ei204.Delta);
if (BonusWeaponSpacer < 1){
BonusWeaponSpacer = (1000 / 35);
_dx412(_local6);
_ur262._mk470(irrcrpt("ujqqv", 2), 150);
};
} else {
if (BonusWeapon == 3){
if (_local5 == true){
if (MyShipSpecialWeapons.Sprites.length < 1){
_ee444();
_ur262._mk470(irrcrpt("odvhu", 3));
};
};
};
};
};
};
if (_dt492.MouseClicked == true){
if (MyShip.movetype == 0){
MyShip._sf408(0, -0.5, 0.0008, MyShip.y);
_ur262._td431(irrcrpt("nyqt", 4));
};
};
}
public static function _yc483(_arg1:_ra247, _arg2:Number=90, _arg3:Number=0.3):void{
mysp = BaddiesFire._mc263(_xy481.e1bmp, 0, 0, 21, 21, Screen.Buffer, 0, 0, 0);
mysp._tk63(_arg1.x, _arg1.y);
mysp._fy485(-20, -20, 520, 520);
mysp._cl349(_arg2, 0, _arg3, 0, 0, true);
mysp._pa257((15 * 0.48));
}
public static function _lq272():void{
var _local1:BitmapData = _xy481.cherrybombbmp;
mysp = Explosions._mc263(_local1, 0, 0, 59, 107, Screen.Buffer, 0, 0, 0);
mysp._tk63(MyShip.x, (MyShip.y - 32));
mysp._cl349(270, 40, _mt474._nw156(0.3, 0.5), 0, 0.0003, false);
mysp._ex422(_local1, 0.005, 9, 3);
mysp._il500(_ea46);
}
public static function _kw215():void{
Specials._nq315(_ei204.Delta);
if (BossTime == false){
Baddies._gy346(_ij222, _ei204.Delta);
} else {
Baddies._gy346(_ib438, _ei204.Delta);
};
BaddiesFire._cg419(_bs370, _ei204.Delta);
MyShipWeapons._nq315(_ei204.Delta);
MyShipSpecialWeapons._nq315(_ei204.Delta);
_md323();
Explosions._nq315(_ei204.Delta);
if (ScreenShaking > 0){
Screen._tk63((ScreenXBuffer + _mt474._ft175(-5, 5)), (ScreenYBuffer + _mt474._ft175(-5, 5)));
ScreenShaking = (ScreenShaking - _ei204.Delta);
if (ScreenShaking < 1){
ScreenShaking = 0;
Screen._tk63(ScreenXBuffer, ScreenYBuffer);
};
};
}
public static function _lk170():void{
}
public static function _kl102():void{
_ei204.MainFunctions._yg405();
_dt492._jl72();
_mt474.Random.seed = _mt474.Random._yf124(100, 100000);
if (_ei204.IsOkToRun == false){
_ei204.MainFunction = _ei204._og421;
} else {
Screen.Sprites._mb480();
Screen._jq131();
_ei204._sb101(Screen.Parent);
_pv273();
_ei204.MainFunction = _uc442;
StateFunction = _kw215;
_yt424();
Screen._mj47(1, _gr468);
_mu102._mj47(irrcrpt("vtcem3", 2), 2, 0.85);
};
}
public static function _un67(_arg1:Number, _arg2:Number, _arg3:int, _arg4:int):void{
var _local5:_ra247;
var _local6:BitmapData = ParticleArray[_arg4][1];
_arg3 = 16;
var _local7:Number = (360 / _arg3);
var _local8:int;
while (_local8 < _arg3) {
_local5 = Explosions._mc263(_xy481.redbmp, 0, 0, _xy481.redbmp.width, _xy481.redbmp.height, Screen.Buffer, _arg1, _arg2, 0);
_local5._ex422(_local6, 0.025, 30, 4, 0);
_local5._cl349(_local7, 0, 0.1, 0, 0, false);
_local7 = (_local7 + (360 / _arg3));
_local8++;
};
}
public static function _la154():void{
GetReadySprite = Explosions._mc263(_xy481.getreadybmp, 0, 0, _xy481.getreadybmp.width, _xy481.getreadybmp.height, Screen.Buffer, 250, 200, 1);
GetReadySprite.scale = 0;
Tweener.addTween(GetReadySprite, {scale:1.5, time:1, transition:irrcrpt("gcugQwvGncuvke", 2)});
Tweener.addTween(GetReadySprite, {scale:0, time:0.5, delay:2, onComplete:_hg397});
}
public static function _rd143(_arg1:_ra247):void{
if (_arg1.movetype == 0){
_arg1.num2 = (_arg1.num2 - _ei204.Delta);
if (_arg1.num2 < 1){
_arg1.num2 = 990;
mysp = Explosions._mc263(_xy481.cannonblastbmp, 0, 0, _xy481.cannonblastbmp.width, _xy481.cannonblastbmp.height, Screen.Buffer, 0, 0, 0);
mysp._tk63((_arg1.x + 33), (_arg1.y - 41));
mysp._kh21(105);
mysp = MyShipSpecialWeapons._mc263(_xy481.cannonballbmp, 0, 0, _xy481.cannonballbmp.width, _xy481.cannonballbmp.height, Screen.Buffer, 0, 0, 0);
mysp._tk63((_arg1.x + 33), (_arg1.y - 41));
mysp._pa257((mysp.width * 0.48));
mysp._fy485(-((mysp.width / 2)), -((mysp.height / 2)), (500 + (mysp.width / 2)), (500 + (mysp.height / 2)));
mysp._cl349(305, 20, _mt474._nw156(0.25, 0.6), 0, 0.0001, true);
mysp.flag1 = true;
ScreenShaking = 500;
};
_arg1.num1 = (_arg1.num1 - _ei204.Delta);
if ((((_arg1.num1 < 1)) || ((PlayerDying == true)))){
_arg1._cr79(-((_arg1.width / 2)), (499 + (_arg1.height / 2)), 0.3, 0, true);
_arg1._il500(null);
CannonsActive = false;
};
};
}
}
}//package
Section 66 (1.9 KiB) ●
//_wm156 (_wm156)
package {
import classes.*;
public class _wm156 {
public static var jumpmp3:Class = _wm156_jumpmp3;
public static var lasermp3:Class = _wm156_lasermp3;
public static var supermanmp3:Class = _wm156_supermanmp3;
public static var cannonmp3:Class = _wm156_cannonmp3;
public static var cherrybombmp3:Class = _wm156_cherrybombmp3;
public static var hit2mp3:Class = _wm156_hit2mp3;
public static var rocketmp3:Class = _wm156_rocketmp3;
public static var titlemp3:Class = _wm156_titlemp3;
public static var track1mp3:Class = _wm156_track1mp3;
public static var lightningmp3:Class = _wm156_lightningmp3;
public static var hit1mp3:Class = _wm156_hit1mp3;
public static var lifemp3:Class = _wm156_lifemp3;
public static var hit3mp3:Class = _wm156_hit3mp3;
public static var shootmp3:Class = _wm156_shootmp3;
public static var gulpmp3:Class = _wm156_gulpmp3;
public static function _hu480():void{
_ur262._hu480();
_ur262._cj413(irrcrpt("klw4", 3), new hit1mp3(), 0, 0);
_ur262._cj413(irrcrpt("lmx6", 4), new hit2mp3(), 0, 0);
_ur262._cj413(irrcrpt("lmx7", 4), new hit3mp3(), 0, 0);
_ur262._cj413(irrcrpt("lzqu", 5), new gulpmp3(), 0, 0);
_ur262._cj413(irrcrpt("xmtty", 5), new shootmp3(), 0, 0);
_ur262._cj413(irrcrpt("gerrsr", 4), new cannonmp3(), 0, 0);
_ur262._cj413(irrcrpt("fkhuuberpe", 3), new cherrybombmp3(), 0, 0);
_ur262._cj413(irrcrpt("tvqfsnbo", 1), new supermanmp3(), 0, 0);
_ur262._cj413(irrcrpt("qnlmysnsl", 5), new lightningmp3(), 0, 0);
_ur262._cj413(irrcrpt("qfxjw", 5), new lasermp3(), 0, 0);
_ur262._cj413(irrcrpt("vsgoix", 4), new rocketmp3(), 0, 0);
_ur262._cj413(irrcrpt("qnkj", 5), new lifemp3(), 0, 0);
_ur262._cj413(irrcrpt("mxps", 3), new jumpmp3(), 0, 0);
_mu102._hu480();
_mu102._cj413(irrcrpt("xvego5", 4), new track1mp3(), 0, 1000);
_mu102._cj413(irrcrpt("ynyqj", 5), new titlemp3(), 50.5, 1000);
}
}
}//package
Section 67 (135 B)
//_wm156_cannonmp3 (_wm156_cannonmp3)
package {
import mx.core.*;
public class _wm156_cannonmp3 extends SoundAsset {
}
}//package
Section 68 (147 B)
//_wm156_cherrybombmp3 (_wm156_cherrybombmp3)
package {
import mx.core.*;
public class _wm156_cherrybombmp3 extends SoundAsset {
}
}//package
Section 69 (129 B)
//_wm156_gulpmp3 (_wm156_gulpmp3)
package {
import mx.core.*;
public class _wm156_gulpmp3 extends SoundAsset {
}
}//package
Section 70 (129 B)
//_wm156_hit1mp3 (_wm156_hit1mp3)
package {
import mx.core.*;
public class _wm156_hit1mp3 extends SoundAsset {
}
}//package
Section 71 (129 B)
//_wm156_hit2mp3 (_wm156_hit2mp3)
package {
import mx.core.*;
public class _wm156_hit2mp3 extends SoundAsset {
}
}//package
Section 72 (129 B)
//_wm156_hit3mp3 (_wm156_hit3mp3)
package {
import mx.core.*;
public class _wm156_hit3mp3 extends SoundAsset {
}
}//package
Section 73 (129 B)
//_wm156_jumpmp3 (_wm156_jumpmp3)
package {
import mx.core.*;
public class _wm156_jumpmp3 extends SoundAsset {
}
}//package
Section 74 (132 B)
//_wm156_lasermp3 (_wm156_lasermp3)
package {
import mx.core.*;
public class _wm156_lasermp3 extends SoundAsset {
}
}//package
Section 75 (129 B)
//_wm156_lifemp3 (_wm156_lifemp3)
package {
import mx.core.*;
public class _wm156_lifemp3 extends SoundAsset {
}
}//package
Section 76 (144 B)
//_wm156_lightningmp3 (_wm156_lightningmp3)
package {
import mx.core.*;
public class _wm156_lightningmp3 extends SoundAsset {
}
}//package
Section 77 (135 B)
//_wm156_rocketmp3 (_wm156_rocketmp3)
package {
import mx.core.*;
public class _wm156_rocketmp3 extends SoundAsset {
}
}//package
Section 78 (132 B)
//_wm156_shootmp3 (_wm156_shootmp3)
package {
import mx.core.*;
public class _wm156_shootmp3 extends SoundAsset {
}
}//package
Section 79 (141 B)
//_wm156_supermanmp3 (_wm156_supermanmp3)
package {
import mx.core.*;
public class _wm156_supermanmp3 extends SoundAsset {
}
}//package
Section 80 (132 B)
//_wm156_titlemp3 (_wm156_titlemp3)
package {
import mx.core.*;
public class _wm156_titlemp3 extends SoundAsset {
}
}//package
Section 81 (135 B)
//_wm156_track1mp3 (_wm156_track1mp3)
package {
import mx.core.*;
public class _wm156_track1mp3 extends SoundAsset {
}
}//package
Section 82 (6.25 KiB) ● ●
//_wo371 (_wo371)
package {
import flash.events.*;
import flash.display.*;
import classes.*;
import com.midasplayer.*;
public class _wo371 {
public static var SoundButton:_fj62;
public static var Stars:_tq234;
public static var mysp:_ra247;
private static var Parent:Sprite;
public static var Screen:_ng17;
public static var SoundButtonState:int;
public static var mydsp:_fj62;
public static var MusicButton:_fj62;
public static var _mv239:Number = 50;
public static var mybmp:BitmapData;
public static var StateFunction:Function;
public static var MySprites:_tq234;
public static var MusicButtonState:int;
public static function _hu480(_arg1:Sprite):void{
Parent = _arg1;
Screen = new _ng17();
Screen._hu480(Parent, _ei204.Project_Width, _ei204.Project_Height);
Screen._jq131();
if (_ei204.IsOkToRun == false){
Screen._wt396();
Screen._aw184(_xy481.lockedbmp);
} else {
SoundButtonState = 1;
MusicButtonState = 1;
_pv273();
};
}
public static function _hu485(_arg1:Event):void{
KingAPI.openAddToWebsiteLink();
}
public static function _dq464(_arg1:Event):void{
if (MusicButton.state == 1){
MusicButton.state = 0;
_mu102._ow58();
_mu102._yl111(false);
MusicButton._aw184(_xy481.musicoffbmp);
} else {
MusicButton.state = 1;
_mu102._yl111(true);
_mu102._oo371(irrcrpt("ujumf", 1), 1);
_mu102._td431(irrcrpt("wlwoh", 3));
MusicButton._aw184(_xy481.musiconbmp);
};
MusicButtonState = MusicButton.state;
}
public static function _en219():void{
var _local1:int;
var _local2:int = _mt474._ft175(5, 20);
var _local3:Number = _mt474._ft175(20, (640 - 20));
var _local4:int;
while (_local4 < _local2) {
_local1 = _mt474.Random._yf124(0, 5);
mysp = Stars._mc263(_xy481.fruitbmp, (_local1 * 40), 0, 40, 36, Screen.Buffer, 0, 0, 0);
mysp._tk63(_local3, (499 + (mysp.width / 2)));
mysp._fy485(-((mysp.width / 2)), -500, (640 + (mysp.width / 2)), (500 + (mysp.height / 2)));
mysp._cl349(270, 10, _mt474.Random._oa470(0.05, 0.6), 0, 0.0005, true);
_local4++;
};
}
public static function _my267(_arg1:Event):void{
if (SoundButton.state == 1){
SoundButton.state = 0;
_ur262._yl111(false);
SoundButton._aw184(_xy481.soundoffbmp);
} else {
SoundButton.state = 1;
_ur262._yl111(true);
SoundButton._aw184(_xy481.soundonbmp);
};
SoundButtonState = SoundButton.state;
}
public static function _nv16(_arg1:Event):void{
_ei204.MainFunctions._yg405();
_wp237();
}
public static function _np198(_arg1:Event):void{
KingAPI.openOtherGamesLink();
}
public static function _cl319():void{
Stars = new _tq234();
Stars._mb480();
var _local1:int;
while (_local1 < 80) {
mysp = Stars._mc263(_xy481.starsbmp, (_mt474.Random._yf124(0, 4) * 25), 0, 25, 25, Screen.Buffer, 0, 0, 0);
mysp._tk63(_mt474.Random._yf124(10, (640 - 10)), _mt474.Random._yf124(10, (500 - 10)));
mysp._oo158(90, _mt474.Random._oa470(0.005, 0.05), -10, -10, (639 + 10), (499 + 10));
_local1++;
};
}
public static function _fc259(_arg1:Event):void{
KingAPI.openOtherGamesLink();
}
public static function _wp237():void{
Screen._hd254(1, _tg143);
_mu102._hd254(irrcrpt("ujumf", 1));
StateFunction = _ei204._og421;
_ei204.MainFunction = _ei204._og421;
}
public static function _pv273():void{
}
public static function _pj40(_arg1:Event):void{
}
private static function _tg143():void{
Screen._jq131();
_sd311._kl102();
}
public static function _kw215():void{
}
public static function _gr468():void{
_ei204.MainFunctions._um37(_en219, 2000, 10000, 1000);
}
public static function _qi384(_arg1:Event):void{
}
public static function _kl102():void{
_dt492._jl72();
_mt474.Random.seed = _mt474.Random._yf124(100, 100000);
if (_ei204.IsOkToRun == false){
_ei204.MainFunction = _ei204._og421;
} else {
_cl319();
Screen.Sprites._mb480();
Screen._jq131();
_ei204._sb101(Screen.Parent);
_do316();
_ei204.MainFunction = _uc442;
Screen._mj47(1, _gr468);
_mu102._mj47(irrcrpt("ynyqj", 5));
};
}
public static function _do316():void{
var _local1:BitmapData;
mydsp = Screen.Sprites._mc263(Screen.Parent, _xy481.munsiegamesbmp, 0, -210, 1);
mydsp = Screen.Sprites._gn273(Screen.Parent, _xy481.startbmp, 0, 75, 1, _nv16, _ei204._sv153, _ei204._kd160);
mydsp = Screen.Sprites._gn273(Screen.Parent, _xy481.addthisgamebmp, -220, 180, 1, _hu485, _ei204._sv153, _ei204._kd160);
mydsp = Screen.Sprites._gn273(Screen.Parent, _xy481.moregamesbmp, 220, 180, 1, _fc259, _ei204._sv153, _ei204._kd160);
mydsp = Screen.Sprites._gn273(Screen.Parent, _xy481.titlesponsorbmp, 0, 185, 1, _np198, _ei204._sv153, _ei204._kd160);
_local1 = _xy481.soundonbmp;
if (SoundButtonState == 0){
_local1 = _xy481.soundoffbmp;
};
SoundButton = Screen.Sprites._gn273(Screen.Parent, _local1, -300, (-200 - (_local1.height / 2)), 1, _my267, _ei204._lv209, _ei204._lv209);
SoundButton.state = SoundButtonState;
_local1 = _xy481.musiconbmp;
if (MusicButtonState == 0){
_local1 = _xy481.musicoffbmp;
};
MusicButton = Screen.Sprites._gn273(Screen.Parent, _local1, -300, (-170 - (_local1.height / 2)), 1, _dq464, _ei204._lv209, _ei204._lv209);
MusicButton.state = MusicButtonState;
}
public static function _is300(_arg1:Event):void{
Screen._nk410();
}
public static function _mb480():void{
MySprites._mb480();
}
public static function _lk170():void{
if (_dt492.Key_Clicked == 65){
_mv239 = (_mv239 - 0.5);
_mu102._ow58();
_mu102._ur185(irrcrpt("vkvng", 2), _mv239);
trace((irrcrpt("QttuXyfwy=", 5) + _mv239));
_mu102._td431(irrcrpt("ynyqj", 5));
};
if (_dt492.Key_Clicked == 66){
_mv239 = (_mv239 + 0.5);
_mu102._ow58();
_mu102._ur185(irrcrpt("ynyqj", 5), _mv239);
trace((irrcrpt("QttuXyfwy=", 5) + _mv239));
_mu102._td431(irrcrpt("ynyqj", 5));
};
}
public static function _uc442():void{
Screen._tu174();
Screen._ul347();
Stars._cn361(_ei204.Delta);
Stars._px490();
Screen._aw184(_xy481.titleoverlaybmp);
Screen._aj344();
if (_dt492.Key_Clicked > 0){
_dt492._wv36(_dt492.Key_Clicked);
};
}
public static function _pc430():void{
Screen._yi313();
}
}
}//package
Section 83 (9.79 KiB) ● ●
//_xy481 (_xy481)
package {
import flash.display.*;
import flash.media.*;
public class _xy481 {
private static var soundoff:Class = _xy481_soundoff;
public static var rocketringbmp:BitmapData = new rocketring().bitmapData;
public static var ingamesponsorbmp:BitmapData = new ingamesponsor().bitmapData;
private static var getready:Class = _xy481_getready;
private static var b1:Class = _xy481_b1;
private static var b2:Class = _xy481_b2;
private static var b3:Class = _xy481_b3;
private static var b4:Class = _xy481_b4;
public static var levelupbmp:BitmapData = new levelup().bitmapData;
public static var fruitrushbmp:BitmapData = new fruitrush().bitmapData;
public static var musicoffbmp:BitmapData = new musicoff().bitmapData;
private static var scores:Class = _xy481_scores;
private static var fruit:Class = _xy481_fruit;
public static var nobmp:BitmapData = new no().bitmapData;
public static var shipeyesbmp:BitmapData = new shipeyes().bitmapData;
public static var pickup3waybmp:BitmapData = new pickup3way().bitmapData;
public static var l1bmp:BitmapData = new l1().bitmapData;
public static var rocketbmp:BitmapData = new rocket().bitmapData;
public static var b4bmp:BitmapData = new b4().bitmapData;
public static var pickupfishbmp:BitmapData = new pickupfish().bitmapData;
public static var lockedbmp:BitmapData = new locked().bitmapData;
private static var ship:Class = _xy481_ship;
public static var musiconbmp:BitmapData = new musicon().bitmapData;
private static var rightcannon:Class = _xy481_rightcannon;
public static var purplebmp:BitmapData = new purple().bitmapData;
public static var burpbmp:BitmapData = new burp().bitmapData;
private static var pickuprocket:Class = _xy481_pickuprocket;
public static var getreadybmp:BitmapData = new getready().bitmapData;
public static var fishrightbmp:BitmapData = new fishright().bitmapData;
private static var blue:Class = _xy481_blue;
private static var pickup3way:Class = _xy481_pickup3way;
private static var stars:Class = _xy481_stars;
private static var start:Class = _xy481_start;
private static var shipwitheyes:Class = _xy481_shipwitheyes;
private static var gamefinished:Class = _xy481_gamefinished;
private static var e1:Class = _xy481_e1;
public static var pickupfastshotbmp:BitmapData = new pickupfastshot().bitmapData;
private static var yellow:Class = _xy481_yellow;
private static var fishleft:Class = _xy481_fishleft;
private static var pickupcannon:Class = _xy481_pickupcannon;
private static var pickupsuperman:Class = _xy481_pickupsuperman;
public static var l2bmp:BitmapData = new l2().bitmapData;
public static var font1bmp:BitmapData = new font1().bitmapData;
public static var pickupcannonbmp:BitmapData = new pickupcannon().bitmapData;
private static var supermanleft:Class = _xy481_supermanleft;
public static var titlesponsorbmp:BitmapData = new titlesponsor().bitmapData;
private static var moregames:Class = _xy481_moregames;
public static var yellowbmp:BitmapData = new yellow().bitmapData;
private static var cannonball:Class = _xy481_cannonball;
private static var red:Class = _xy481_red;
private static var w1:Class = _xy481_w1;
public static var oneupbmp:BitmapData = new oneup().bitmapData;
private static var shipeyes:Class = _xy481_shipeyes;
public static var shipwitheyesbmp:BitmapData = new shipwitheyes().bitmapData;
public static var cannonblastbmp:BitmapData = new cannonblast().bitmapData;
private static var ingamesponsor:Class = _xy481_ingamesponsor;
public static var w1bmp:BitmapData = new w1().bitmapData;
private static var tasty:Class = _xy481_tasty;
public static var addthisgamebmp:BitmapData = new addthisgame().bitmapData;
public static var gamefinishedbmp:BitmapData = new gamefinished().bitmapData;
private static var cherrybombexplode:Class = _xy481_cherrybombexplode;
private static var musicon:Class = _xy481_musicon;
public static var rightcannonbmp:BitmapData = new rightcannon().bitmapData;
public static var fishleftbmp:BitmapData = new fishleft().bitmapData;
private static var yum:Class = _xy481_yum;
private static var laser:Class = _xy481_laser;
private static var fishright:Class = _xy481_fishright;
private static var rocket:Class = _xy481_rocket;
private static var pickupfish:Class = _xy481_pickupfish;
private static var bosshead:Class = _xy481_bosshead;
public static var l3bmp:BitmapData = new l3().bitmapData;
public static var pinwheelbmp:BitmapData = new pinwheel().bitmapData;
public static var laserbmp:BitmapData = new laser().bitmapData;
public static var font2bmp:BitmapData = new font2().bitmapData;
private static var back:Class = _xy481_back;
public static var bluebmp:BitmapData = new blue().bitmapData;
private static var pinwheel:Class = _xy481_pinwheel;
private static var yes:Class = _xy481_yes;
public static var supermanrightbmp:BitmapData = new supermanright().bitmapData;
public static var fruitbmp:BitmapData = new fruit().bitmapData;
public static var pickupcherrybombbmp:BitmapData = new pickupcherrybomb().bitmapData;
private static var hud:Class = _xy481_hud;
private static var titleoverlay:Class = _xy481_titleoverlay;
private static var gulp:Class = _xy481_gulp;
public static var tastybmp:BitmapData = new tasty().bitmapData;
public static var pickuplightningbmp:BitmapData = new pickuplightning().bitmapData;
private static var green:Class = _xy481_green;
private static var rocketring:Class = _xy481_rocketring;
private static var lives:Class = _xy481_lives;
private static var locked:Class = _xy481_locked;
public static var cherrybombexplodebmp:BitmapData = new cherrybombexplode().bitmapData;
public static var yumbmp:BitmapData = new yum().bitmapData;
public static var b1bmp:BitmapData = new b1().bitmapData;
private static var munsiegames:Class = _xy481_munsiegames;
private static var cannonblast:Class = _xy481_cannonblast;
public static var livesbmp:BitmapData = new lives().bitmapData;
private static var levelup:Class = _xy481_levelup;
public static var baddieeyesbmp:BitmapData = new baddieeyes().bitmapData;
private static var musicoff:Class = _xy481_musicoff;
private static var soundon:Class = _xy481_soundon;
private static var addthisgame:Class = _xy481_addthisgame;
private static var pickupcherrybomb:Class = _xy481_pickupcherrybomb;
public static var pickupsupermanbmp:BitmapData = new pickupsuperman().bitmapData;
public static var hudbmp:BitmapData = new hud().bitmapData;
public static var backbmp:BitmapData = new back().bitmapData;
public static var supermanleftbmp:BitmapData = new supermanleft().bitmapData;
public static var leftcannonbmp:BitmapData = new leftcannon().bitmapData;
public static var yesbmp:BitmapData = new yes().bitmapData;
private static var l3:Class = _xy481_l3;
private static var l4:Class = _xy481_l4;
private static var baddieeyes:Class = _xy481_baddieeyes;
public static var pickuprocketbmp:BitmapData = new pickuprocket().bitmapData;
private static var bosseyes:Class = _xy481_bosseyes;
public static var gulpbmp:BitmapData = new gulp().bitmapData;
public static var redbmp:BitmapData = new red().bitmapData;
private static var l2:Class = _xy481_l2;
public static var l4bmp:BitmapData = new l4().bitmapData;
public static var pickuplaserbmp:BitmapData = new pickuplaser().bitmapData;
private static var l1:Class = _xy481_l1;
public static var munsiegamesbmp:BitmapData = new munsiegames().bitmapData;
public static var b2bmp:BitmapData = new b2().bitmapData;
public static var moregamesbmp:BitmapData = new moregames().bitmapData;
private static var submitscore:Class = _xy481_submitscore;
private static var supermanright:Class = _xy481_supermanright;
private static var oneup:Class = _xy481_oneup;
public static var soundoffbmp:BitmapData = new soundoff().bitmapData;
public static var cannonballbmp:BitmapData = new cannonball().bitmapData;
public static var titleoverlaybmp:BitmapData = new titleoverlay().bitmapData;
public static var ingamemoregamesbmp:BitmapData = new ingamemoregames().bitmapData;
public static var starsbmp:BitmapData = new stars().bitmapData;
public static var soundonbmp:BitmapData = new soundon().bitmapData;
public static var e1bmp:BitmapData = new e1().bitmapData;
public static var bossheadbmp:BitmapData = new bosshead().bitmapData;
public static var greenbmp:BitmapData = new green().bitmapData;
private static var cherrybomb:Class = _xy481_cherrybomb;
private static var purple:Class = _xy481_purple;
private static var no:Class = _xy481_no;
private static var font1:Class = _xy481_font1;
private static var font2:Class = _xy481_font2;
private static var titlesponsor:Class = _xy481_titlesponsor;
public static var submitscorebmp:BitmapData = new submitscore().bitmapData;
private static var gameover:Class = _xy481_gameover;
private static var pickuplaser:Class = _xy481_pickuplaser;
public static var shipbmp:BitmapData = new ship().bitmapData;
private static var burp:Class = _xy481_burp;
private static var pickupfastshot:Class = _xy481_pickupfastshot;
public static var scoresbmp:BitmapData = new scores().bitmapData;
public static var b3bmp:BitmapData = new b3().bitmapData;
private static var ingamemoregames:Class = _xy481_ingamemoregames;
private static var pickuplightning:Class = _xy481_pickuplightning;
public static var startbmp:BitmapData = new start().bitmapData;
public static var bosseyesbmp:BitmapData = new bosseyes().bitmapData;
private static var leftcannon:Class = _xy481_leftcannon;
public static var fruitbowlbmp:BitmapData = new fruitbowl().bitmapData;
public static var cherrybombbmp:BitmapData = new cherrybomb().bitmapData;
private static var fruitrush:Class = _xy481_fruitrush;
private static var fruitbowl:Class = _xy481_fruitbowl;
public static var gameoverbmp:BitmapData = new gameover().bitmapData;
}
}//package
Section 84 (142 B)
//_xy481_addthisgame (_xy481_addthisgame)
package {
import mx.core.*;
public class _xy481_addthisgame extends BitmapAsset {
}
}//package
Section 85 (115 B)
//_xy481_b1 (_xy481_b1)
package {
import mx.core.*;
public class _xy481_b1 extends BitmapAsset {
}
}//package
Section 86 (115 B)
//_xy481_b2 (_xy481_b2)
package {
import mx.core.*;
public class _xy481_b2 extends BitmapAsset {
}
}//package
Section 87 (115 B)
//_xy481_b3 (_xy481_b3)
package {
import mx.core.*;
public class _xy481_b3 extends BitmapAsset {
}
}//package
Section 88 (115 B)
//_xy481_b4 (_xy481_b4)
package {
import mx.core.*;
public class _xy481_b4 extends BitmapAsset {
}
}//package
Section 89 (121 B)
//_xy481_back (_xy481_back)
package {
import mx.core.*;
public class _xy481_back extends BitmapAsset {
}
}//package
Section 90 (139 B)
//_xy481_baddieeyes (_xy481_baddieeyes)
package {
import mx.core.*;
public class _xy481_baddieeyes extends BitmapAsset {
}
}//package
Section 91 (121 B)
//_xy481_blue (_xy481_blue)
package {
import mx.core.*;
public class _xy481_blue extends BitmapAsset {
}
}//package
Section 92 (133 B)
//_xy481_bosseyes (_xy481_bosseyes)
package {
import mx.core.*;
public class _xy481_bosseyes extends BitmapAsset {
}
}//package
Section 93 (133 B)
//_xy481_bosshead (_xy481_bosshead)
package {
import mx.core.*;
public class _xy481_bosshead extends BitmapAsset {
}
}//package
Section 94 (121 B)
//_xy481_burp (_xy481_burp)
package {
import mx.core.*;
public class _xy481_burp extends BitmapAsset {
}
}//package
Section 95 (139 B)
//_xy481_cannonball (_xy481_cannonball)
package {
import mx.core.*;
public class _xy481_cannonball extends BitmapAsset {
}
}//package
Section 96 (142 B)
//_xy481_cannonblast (_xy481_cannonblast)
package {
import mx.core.*;
public class _xy481_cannonblast extends BitmapAsset {
}
}//package
Section 97 (139 B)
//_xy481_cherrybomb (_xy481_cherrybomb)
package {
import mx.core.*;
public class _xy481_cherrybomb extends BitmapAsset {
}
}//package
Section 98 (160 B)
//_xy481_cherrybombexplode (_xy481_cherrybombexplode)
package {
import mx.core.*;
public class _xy481_cherrybombexplode extends BitmapAsset {
}
}//package
Section 99 (115 B)
//_xy481_e1 (_xy481_e1)
package {
import mx.core.*;
public class _xy481_e1 extends BitmapAsset {
}
}//package
Section 100 (133 B)
//_xy481_fishleft (_xy481_fishleft)
package {
import mx.core.*;
public class _xy481_fishleft extends BitmapAsset {
}
}//package
Section 101 (136 B)
//_xy481_fishright (_xy481_fishright)
package {
import mx.core.*;
public class _xy481_fishright extends BitmapAsset {
}
}//package
Section 102 (124 B)
//_xy481_font1 (_xy481_font1)
package {
import mx.core.*;
public class _xy481_font1 extends BitmapAsset {
}
}//package
Section 103 (124 B)
//_xy481_font2 (_xy481_font2)
package {
import mx.core.*;
public class _xy481_font2 extends BitmapAsset {
}
}//package
Section 104 (124 B)
//_xy481_fruit (_xy481_fruit)
package {
import mx.core.*;
public class _xy481_fruit extends BitmapAsset {
}
}//package
Section 105 (136 B)
//_xy481_fruitbowl (_xy481_fruitbowl)
package {
import mx.core.*;
public class _xy481_fruitbowl extends BitmapAsset {
}
}//package
Section 106 (136 B)
//_xy481_fruitrush (_xy481_fruitrush)
package {
import mx.core.*;
public class _xy481_fruitrush extends BitmapAsset {
}
}//package
Section 107 (145 B)
//_xy481_gamefinished (_xy481_gamefinished)
package {
import mx.core.*;
public class _xy481_gamefinished extends BitmapAsset {
}
}//package
Section 108 (133 B)
//_xy481_gameover (_xy481_gameover)
package {
import mx.core.*;
public class _xy481_gameover extends BitmapAsset {
}
}//package
Section 109 (133 B)
//_xy481_getready (_xy481_getready)
package {
import mx.core.*;
public class _xy481_getready extends BitmapAsset {
}
}//package
Section 110 (124 B)
//_xy481_green (_xy481_green)
package {
import mx.core.*;
public class _xy481_green extends BitmapAsset {
}
}//package
Section 111 (121 B)
//_xy481_gulp (_xy481_gulp)
package {
import mx.core.*;
public class _xy481_gulp extends BitmapAsset {
}
}//package
Section 112 (118 B)
//_xy481_hud (_xy481_hud)
package {
import mx.core.*;
public class _xy481_hud extends BitmapAsset {
}
}//package
Section 113 (154 B)
//_xy481_ingamemoregames (_xy481_ingamemoregames)
package {
import mx.core.*;
public class _xy481_ingamemoregames extends BitmapAsset {
}
}//package
Section 114 (148 B)
//_xy481_ingamesponsor (_xy481_ingamesponsor)
package {
import mx.core.*;
public class _xy481_ingamesponsor extends BitmapAsset {
}
}//package
Section 115 (115 B)
//_xy481_l1 (_xy481_l1)
package {
import mx.core.*;
public class _xy481_l1 extends BitmapAsset {
}
}//package
Section 116 (115 B)
//_xy481_l2 (_xy481_l2)
package {
import mx.core.*;
public class _xy481_l2 extends BitmapAsset {
}
}//package
Section 117 (115 B)
//_xy481_l3 (_xy481_l3)
package {
import mx.core.*;
public class _xy481_l3 extends BitmapAsset {
}
}//package
Section 118 (115 B)
//_xy481_l4 (_xy481_l4)
package {
import mx.core.*;
public class _xy481_l4 extends BitmapAsset {
}
}//package
Section 119 (124 B)
//_xy481_laser (_xy481_laser)
package {
import mx.core.*;
public class _xy481_laser extends BitmapAsset {
}
}//package
Section 120 (139 B)
//_xy481_leftcannon (_xy481_leftcannon)
package {
import mx.core.*;
public class _xy481_leftcannon extends BitmapAsset {
}
}//package
Section 121 (130 B)
//_xy481_levelup (_xy481_levelup)
package {
import mx.core.*;
public class _xy481_levelup extends BitmapAsset {
}
}//package
Section 122 (124 B)
//_xy481_lives (_xy481_lives)
package {
import mx.core.*;
public class _xy481_lives extends BitmapAsset {
}
}//package
Section 123 (127 B)
//_xy481_locked (_xy481_locked)
package {
import mx.core.*;
public class _xy481_locked extends BitmapAsset {
}
}//package
Section 124 (136 B)
//_xy481_moregames (_xy481_moregames)
package {
import mx.core.*;
public class _xy481_moregames extends BitmapAsset {
}
}//package
Section 125 (142 B)
//_xy481_munsiegames (_xy481_munsiegames)
package {
import mx.core.*;
public class _xy481_munsiegames extends BitmapAsset {
}
}//package
Section 126 (133 B)
//_xy481_musicoff (_xy481_musicoff)
package {
import mx.core.*;
public class _xy481_musicoff extends BitmapAsset {
}
}//package
Section 127 (130 B)
//_xy481_musicon (_xy481_musicon)
package {
import mx.core.*;
public class _xy481_musicon extends BitmapAsset {
}
}//package
Section 128 (115 B)
//_xy481_no (_xy481_no)
package {
import mx.core.*;
public class _xy481_no extends BitmapAsset {
}
}//package
Section 129 (124 B)
//_xy481_oneup (_xy481_oneup)
package {
import mx.core.*;
public class _xy481_oneup extends BitmapAsset {
}
}//package
Section 130 (139 B)
//_xy481_pickup3way (_xy481_pickup3way)
package {
import mx.core.*;
public class _xy481_pickup3way extends BitmapAsset {
}
}//package
Section 131 (145 B)
//_xy481_pickupcannon (_xy481_pickupcannon)
package {
import mx.core.*;
public class _xy481_pickupcannon extends BitmapAsset {
}
}//package
Section 132 (157 B)
//_xy481_pickupcherrybomb (_xy481_pickupcherrybomb)
package {
import mx.core.*;
public class _xy481_pickupcherrybomb extends BitmapAsset {
}
}//package
Section 133 (151 B)
//_xy481_pickupfastshot (_xy481_pickupfastshot)
package {
import mx.core.*;
public class _xy481_pickupfastshot extends BitmapAsset {
}
}//package
Section 134 (139 B)
//_xy481_pickupfish (_xy481_pickupfish)
package {
import mx.core.*;
public class _xy481_pickupfish extends BitmapAsset {
}
}//package
Section 135 (142 B)
//_xy481_pickuplaser (_xy481_pickuplaser)
package {
import mx.core.*;
public class _xy481_pickuplaser extends BitmapAsset {
}
}//package
Section 136 (154 B)
//_xy481_pickuplightning (_xy481_pickuplightning)
package {
import mx.core.*;
public class _xy481_pickuplightning extends BitmapAsset {
}
}//package
Section 137 (145 B)
//_xy481_pickuprocket (_xy481_pickuprocket)
package {
import mx.core.*;
public class _xy481_pickuprocket extends BitmapAsset {
}
}//package
Section 138 (151 B)
//_xy481_pickupsuperman (_xy481_pickupsuperman)
package {
import mx.core.*;
public class _xy481_pickupsuperman extends BitmapAsset {
}
}//package
Section 139 (133 B)
//_xy481_pinwheel (_xy481_pinwheel)
package {
import mx.core.*;
public class _xy481_pinwheel extends BitmapAsset {
}
}//package
Section 140 (127 B)
//_xy481_purple (_xy481_purple)
package {
import mx.core.*;
public class _xy481_purple extends BitmapAsset {
}
}//package
Section 141 (118 B)
//_xy481_red (_xy481_red)
package {
import mx.core.*;
public class _xy481_red extends BitmapAsset {
}
}//package
Section 142 (142 B)
//_xy481_rightcannon (_xy481_rightcannon)
package {
import mx.core.*;
public class _xy481_rightcannon extends BitmapAsset {
}
}//package
Section 143 (127 B)
//_xy481_rocket (_xy481_rocket)
package {
import mx.core.*;
public class _xy481_rocket extends BitmapAsset {
}
}//package
Section 144 (139 B)
//_xy481_rocketring (_xy481_rocketring)
package {
import mx.core.*;
public class _xy481_rocketring extends BitmapAsset {
}
}//package
Section 145 (127 B)
//_xy481_scores (_xy481_scores)
package {
import mx.core.*;
public class _xy481_scores extends BitmapAsset {
}
}//package
Section 146 (121 B)
//_xy481_ship (_xy481_ship)
package {
import mx.core.*;
public class _xy481_ship extends BitmapAsset {
}
}//package
Section 147 (133 B)
//_xy481_shipeyes (_xy481_shipeyes)
package {
import mx.core.*;
public class _xy481_shipeyes extends BitmapAsset {
}
}//package
Section 148 (145 B)
//_xy481_shipwitheyes (_xy481_shipwitheyes)
package {
import mx.core.*;
public class _xy481_shipwitheyes extends BitmapAsset {
}
}//package
Section 149 (133 B)
//_xy481_soundoff (_xy481_soundoff)
package {
import mx.core.*;
public class _xy481_soundoff extends BitmapAsset {
}
}//package
Section 150 (130 B)
//_xy481_soundon (_xy481_soundon)
package {
import mx.core.*;
public class _xy481_soundon extends BitmapAsset {
}
}//package
Section 151 (124 B)
//_xy481_stars (_xy481_stars)
package {
import mx.core.*;
public class _xy481_stars extends BitmapAsset {
}
}//package
Section 152 (124 B)
//_xy481_start (_xy481_start)
package {
import mx.core.*;
public class _xy481_start extends BitmapAsset {
}
}//package
Section 153 (142 B)
//_xy481_submitscore (_xy481_submitscore)
package {
import mx.core.*;
public class _xy481_submitscore extends BitmapAsset {
}
}//package
Section 154 (145 B)
//_xy481_supermanleft (_xy481_supermanleft)
package {
import mx.core.*;
public class _xy481_supermanleft extends BitmapAsset {
}
}//package
Section 155 (148 B)
//_xy481_supermanright (_xy481_supermanright)
package {
import mx.core.*;
public class _xy481_supermanright extends BitmapAsset {
}
}//package
Section 156 (124 B)
//_xy481_tasty (_xy481_tasty)
package {
import mx.core.*;
public class _xy481_tasty extends BitmapAsset {
}
}//package
Section 157 (145 B)
//_xy481_titleoverlay (_xy481_titleoverlay)
package {
import mx.core.*;
public class _xy481_titleoverlay extends BitmapAsset {
}
}//package
Section 158 (145 B)
//_xy481_titlesponsor (_xy481_titlesponsor)
package {
import mx.core.*;
public class _xy481_titlesponsor extends BitmapAsset {
}
}//package
Section 159 (115 B)
//_xy481_w1 (_xy481_w1)
package {
import mx.core.*;
public class _xy481_w1 extends BitmapAsset {
}
}//package
Section 160 (127 B)
//_xy481_yellow (_xy481_yellow)
package {
import mx.core.*;
public class _xy481_yellow extends BitmapAsset {
}
}//package
Section 161 (118 B)
//_xy481_yes (_xy481_yes)
package {
import mx.core.*;
public class _xy481_yes extends BitmapAsset {
}
}//package
Section 162 (118 B)
//_xy481_yum (_xy481_yum)
package {
import mx.core.*;
public class _xy481_yum extends BitmapAsset {
}
}//package
Section 163 (1.04 KiB) ●
//_ym27 (_ym27)
package {
import flash.events.*;
import com.urbansquall.preloader.*;
import com.midasplayer.*;
public class _ym27 extends Preloader {
private var dragon:DragonLoader;
private var kingloader:KingPreloader;
public function _ym27(){
kingloader = new KingPreloader(640, 500);
kingloader.onInitialize();
addChild(kingloader);
addEventListener(Event.ENTER_FRAME, _gt194);
}
private function _gt194(_arg1:Event):void{
if (completed){
kingloader.loadComplete();
removeEventListener(Event.ENTER_FRAME, _gt194);
removeChild(kingloader);
_vt14();
};
}
override protected function updateLoading(_arg1:Number):void{
kingloader.progressHandler(_arg1);
}
private function _vt14():void{
dragon = new DragonLoader(irrcrpt("edoolhv-vkrrw", 3), "");
dragon.addEventListener(DragonLoader.LAUNCH_GAME, _sn156);
addChild(dragon);
}
private function _sn156(_arg1):void{
removeChild(dragon);
dragon.removeEventListener(DragonLoader.LAUNCH_GAME, _sn156);
startup();
}
}
}//package
Section 164 (1.08 KiB) ●
//irrcrpt (irrcrpt)
package {
public function irrcrpt(_arg1:String, _arg2:int):String{
var _local5:int;
var _local3:String = new String();
var _local4:int;
while (_local4 < _arg1.length) {
_local5 = _arg1.charCodeAt(_local4);
if ((((_local5 >= 48)) && ((_local5 <= 57)))){
_local5 = ((_local5 - _arg2) - 48);
if (_local5 < 0){
_local5 = (_local5 + ((57 - 48) + 1));
};
_local5 = ((_local5 % ((57 - 48) + 1)) + 48);
} else {
if ((((_local5 >= 65)) && ((_local5 <= 90)))){
_local5 = ((_local5 - _arg2) - 65);
if (_local5 < 0){
_local5 = (_local5 + ((90 - 65) + 1));
};
_local5 = ((_local5 % ((90 - 65) + 1)) + 65);
} else {
if ((((_local5 >= 97)) && ((_local5 <= 122)))){
_local5 = ((_local5 - _arg2) - 97);
if (_local5 < 0){
_local5 = (_local5 + ((122 - 97) + 1));
};
_local5 = ((_local5 % ((122 - 97) + 1)) + 97);
};
};
};
_local3 = (_local3 + String.fromCharCode(_local5));
_local4++;
};
return (_local3);
}
}//package