Section 1
//AuxFunctions (caurina.transitions.AuxFunctions)
package caurina.transitions {
public class AuxFunctions {
public static function getObjectLength(_arg1:Object):uint{
var _local2:uint;
var _local3:String;
_local2 = 0;
for (_local3 in _arg1) {
_local2++;
};
return (_local2);
}
public static function 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 _local2:Object;
var _local3:Object;
var _local4:int;
var _local5:String;
_local2 = {};
_local4 = 0;
while (_local4 < _args.length) {
_local3 = _args[_local4];
for (_local5 in _local3) {
if (_local3[_local5] == null){
delete _local2[_local5];
} else {
_local2[_local5] = _local3[_local5];
};
};
_local4++;
};
return (_local2);
}
}
}//package caurina.transitions
Section 2
//Equations (caurina.transitions.Equations)
package caurina.transitions {
public class Equations {
public function Equations(){
trace("Equations is a static class and should not be instantiated.");
}
public static function easeOutBounce(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / _arg4);
if (_arg1 < (1 / 2.75)){
return (((_arg3 * ((7.5625 * _arg1) * _arg1)) + _arg2));
};
if (_arg1 < (2 / 2.75)){
_arg1 = (_arg1 - (1.5 / 2.75));
return (((_arg3 * (((7.5625 * _arg1) * _arg1) + 0.75)) + _arg2));
};
if (_arg1 < (2.5 / 2.75)){
_arg1 = (_arg1 - (2.25 / 2.75));
return (((_arg3 * (((7.5625 * _arg1) * _arg1) + 0.9375)) + _arg2));
};
_arg1 = (_arg1 - (2.625 / 2.75));
return (((_arg3 * (((7.5625 * _arg1) * _arg1) + 0.984375)) + _arg2));
}
public static function easeInOutElastic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
var _local6:Number;
var _local7:Number;
var _local8:Number;
if (_arg1 == 0){
return (_arg2);
};
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 == 2){
return ((_arg2 + _arg3));
};
_local6 = (((!(Boolean(_arg5))) || (isNaN(_arg5.period)))) ? (_arg4 * (0.3 * 1.5)) : _arg5.period;
_local8 = (((!(Boolean(_arg5))) || (isNaN(_arg5.amplitude)))) ? 0 : _arg5.amplitude;
if (((!(Boolean(_local8))) || ((_local8 < Math.abs(_arg3))))){
_local8 = _arg3;
_local7 = (_local6 / 4);
} else {
_local7 = ((_local6 / (2 * Math.PI)) * Math.asin((_arg3 / _local8)));
};
if (_arg1 < 1){
--_arg1;
return (((-0.5 * ((_local8 * Math.pow(2, (10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local7) * (2 * Math.PI)) / _local6)))) + _arg2));
};
--_arg1;
return ((((((_local8 * Math.pow(2, (-10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local7) * (2 * Math.PI)) / _local6))) * 0.5) + _arg3) + _arg2));
}
public static function easeInOutQuad(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
return (((((_arg3 / 2) * _arg1) * _arg1) + _arg2));
};
--_arg1;
return ((((-(_arg3) / 2) * ((_arg1 * (_arg1 - 2)) - 1)) + _arg2));
}
public static function easeInOutBounce(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 < (_arg4 / 2)){
return (((easeInBounce((_arg1 * 2), 0, _arg3, _arg4) * 0.5) + _arg2));
};
return ((((easeOutBounce(((_arg1 * 2) - _arg4), 0, _arg3, _arg4) * 0.5) + (_arg3 * 0.5)) + _arg2));
}
public static function easeInOutBack(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
var _local6:Number;
_local6 = (((!(Boolean(_arg5))) || (isNaN(_arg5.overshoot)))) ? 1.70158 : _arg5.overshoot;
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
_local6 = (_local6 * 1.525);
return ((((_arg3 / 2) * ((_arg1 * _arg1) * (((_local6 + 1) * _arg1) - _local6))) + _arg2));
};
_arg1 = (_arg1 - 2);
_local6 = (_local6 * 1.525);
return ((((_arg3 / 2) * (((_arg1 * _arg1) * (((_local6 + 1) * _arg1) + _local6)) + 2)) + _arg2));
}
public static function easeOutInCubic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutCubic((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5));
};
return (easeInCubic(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5));
}
public static function easeNone(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
return ((((_arg3 * _arg1) / _arg4) + _arg2));
}
public static function easeOutBack(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
var _local6:Number;
_local6 = (((!(Boolean(_arg5))) || (isNaN(_arg5.overshoot)))) ? 1.70158 : _arg5.overshoot;
_arg1 = ((_arg1 / _arg4) - 1);
return (((_arg3 * (((_arg1 * _arg1) * (((_local6 + 1) * _arg1) + _local6)) + 1)) + _arg2));
}
public static function easeInOutSine(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
return ((((-(_arg3) / 2) * (Math.cos(((Math.PI * _arg1) / _arg4)) - 1)) + _arg2));
}
public static function easeInBack(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
var _local6:Number;
_local6 = (((!(Boolean(_arg5))) || (isNaN(_arg5.overshoot)))) ? 1.70158 : _arg5.overshoot;
_arg1 = (_arg1 / _arg4);
return (((((_arg3 * _arg1) * _arg1) * (((_local6 + 1) * _arg1) - _local6)) + _arg2));
}
public static function easeInQuart(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / _arg4);
return ((((((_arg3 * _arg1) * _arg1) * _arg1) * _arg1) + _arg2));
}
public static function easeOutInQuint(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutQuint((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5));
};
return (easeInQuint(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5));
}
public static function easeOutInBounce(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutBounce((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5));
};
return (easeInBounce(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5));
}
public static function init():void{
Tweener.registerTransition("easenone", easeNone);
Tweener.registerTransition("linear", easeNone);
Tweener.registerTransition("easeinquad", easeInQuad);
Tweener.registerTransition("easeoutquad", easeOutQuad);
Tweener.registerTransition("easeinoutquad", easeInOutQuad);
Tweener.registerTransition("easeoutinquad", easeOutInQuad);
Tweener.registerTransition("easeincubic", easeInCubic);
Tweener.registerTransition("easeoutcubic", easeOutCubic);
Tweener.registerTransition("easeinoutcubic", easeInOutCubic);
Tweener.registerTransition("easeoutincubic", easeOutInCubic);
Tweener.registerTransition("easeinquart", easeInQuart);
Tweener.registerTransition("easeoutquart", easeOutQuart);
Tweener.registerTransition("easeinoutquart", easeInOutQuart);
Tweener.registerTransition("easeoutinquart", easeOutInQuart);
Tweener.registerTransition("easeinquint", easeInQuint);
Tweener.registerTransition("easeoutquint", easeOutQuint);
Tweener.registerTransition("easeinoutquint", easeInOutQuint);
Tweener.registerTransition("easeoutinquint", easeOutInQuint);
Tweener.registerTransition("easeinsine", easeInSine);
Tweener.registerTransition("easeoutsine", easeOutSine);
Tweener.registerTransition("easeinoutsine", easeInOutSine);
Tweener.registerTransition("easeoutinsine", easeOutInSine);
Tweener.registerTransition("easeincirc", easeInCirc);
Tweener.registerTransition("easeoutcirc", easeOutCirc);
Tweener.registerTransition("easeinoutcirc", easeInOutCirc);
Tweener.registerTransition("easeoutincirc", easeOutInCirc);
Tweener.registerTransition("easeinexpo", easeInExpo);
Tweener.registerTransition("easeoutexpo", easeOutExpo);
Tweener.registerTransition("easeinoutexpo", easeInOutExpo);
Tweener.registerTransition("easeoutinexpo", easeOutInExpo);
Tweener.registerTransition("easeinelastic", easeInElastic);
Tweener.registerTransition("easeoutelastic", easeOutElastic);
Tweener.registerTransition("easeinoutelastic", easeInOutElastic);
Tweener.registerTransition("easeoutinelastic", easeOutInElastic);
Tweener.registerTransition("easeinback", easeInBack);
Tweener.registerTransition("easeoutback", easeOutBack);
Tweener.registerTransition("easeinoutback", easeInOutBack);
Tweener.registerTransition("easeoutinback", easeOutInBack);
Tweener.registerTransition("easeinbounce", easeInBounce);
Tweener.registerTransition("easeoutbounce", easeOutBounce);
Tweener.registerTransition("easeinoutbounce", easeInOutBounce);
Tweener.registerTransition("easeoutinbounce", easeOutInBounce);
}
public static function easeOutExpo(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
return (((_arg1)==_arg4) ? (_arg2 + _arg3) : (((_arg3 * 1.001) * (-(Math.pow(2, ((-10 * _arg1) / _arg4))) + 1)) + _arg2));
}
public static function easeOutInBack(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutBack((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5));
};
return (easeInBack(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5));
}
public static function easeInExpo(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
return (((_arg1)==0) ? _arg2 : (((_arg3 * Math.pow(2, (10 * ((_arg1 / _arg4) - 1)))) + _arg2) - (_arg3 * 0.001)));
}
public static function easeInCubic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / _arg4);
return (((((_arg3 * _arg1) * _arg1) * _arg1) + _arg2));
}
public static function easeInQuint(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / _arg4);
return (((((((_arg3 * _arg1) * _arg1) * _arg1) * _arg1) * _arg1) + _arg2));
}
public static function easeInOutCirc(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
return ((((-(_arg3) / 2) * (Math.sqrt((1 - (_arg1 * _arg1))) - 1)) + _arg2));
};
_arg1 = (_arg1 - 2);
return ((((_arg3 / 2) * (Math.sqrt((1 - (_arg1 * _arg1))) + 1)) + _arg2));
}
public static function easeInQuad(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / _arg4);
return ((((_arg3 * _arg1) * _arg1) + _arg2));
}
public static function easeInBounce(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
return (((_arg3 - easeOutBounce((_arg4 - _arg1), 0, _arg3, _arg4)) + _arg2));
}
public static function easeOutInExpo(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutExpo((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5));
};
return (easeInExpo(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5));
}
public static function easeOutQuart(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = ((_arg1 / _arg4) - 1);
return (((-(_arg3) * ((((_arg1 * _arg1) * _arg1) * _arg1) - 1)) + _arg2));
}
public static function easeInSine(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
return ((((-(_arg3) * Math.cos(((_arg1 / _arg4) * (Math.PI / 2)))) + _arg3) + _arg2));
}
public static function easeInOutQuart(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
return (((((((_arg3 / 2) * _arg1) * _arg1) * _arg1) * _arg1) + _arg2));
};
_arg1 = (_arg1 - 2);
return ((((-(_arg3) / 2) * ((((_arg1 * _arg1) * _arg1) * _arg1) - 2)) + _arg2));
}
public static function easeOutQuad(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / _arg4);
return ((((-(_arg3) * _arg1) * (_arg1 - 2)) + _arg2));
}
public static function easeOutInElastic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutElastic((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5));
};
return (easeInElastic(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5));
}
public static function easeInElastic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
var _local6:Number;
var _local7:Number;
var _local8:Number;
if (_arg1 == 0){
return (_arg2);
};
_arg1 = (_arg1 / _arg4);
if (_arg1 == 1){
return ((_arg2 + _arg3));
};
_local6 = (((!(Boolean(_arg5))) || (isNaN(_arg5.period)))) ? (_arg4 * 0.3) : _arg5.period;
_local8 = (((!(Boolean(_arg5))) || (isNaN(_arg5.amplitude)))) ? 0 : _arg5.amplitude;
if (((!(Boolean(_local8))) || ((_local8 < Math.abs(_arg3))))){
_local8 = _arg3;
_local7 = (_local6 / 4);
} else {
_local7 = ((_local6 / (2 * Math.PI)) * Math.asin((_arg3 / _local8)));
};
--_arg1;
return ((-(((_local8 * Math.pow(2, (10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local7) * (2 * Math.PI)) / _local6)))) + _arg2));
}
public static function easeOutCubic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = ((_arg1 / _arg4) - 1);
return (((_arg3 * (((_arg1 * _arg1) * _arg1) + 1)) + _arg2));
}
public static function easeOutQuint(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = ((_arg1 / _arg4) - 1);
return (((_arg3 * (((((_arg1 * _arg1) * _arg1) * _arg1) * _arg1) + 1)) + _arg2));
}
public static function easeOutInQuad(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutQuad((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5));
};
return (easeInQuad(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5));
}
public static function easeOutSine(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
return (((_arg3 * Math.sin(((_arg1 / _arg4) * (Math.PI / 2)))) + _arg2));
}
public static function easeInOutCubic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
return ((((((_arg3 / 2) * _arg1) * _arg1) * _arg1) + _arg2));
};
_arg1 = (_arg1 - 2);
return ((((_arg3 / 2) * (((_arg1 * _arg1) * _arg1) + 2)) + _arg2));
}
public static function easeInOutQuint(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
return ((((((((_arg3 / 2) * _arg1) * _arg1) * _arg1) * _arg1) * _arg1) + _arg2));
};
_arg1 = (_arg1 - 2);
return ((((_arg3 / 2) * (((((_arg1 * _arg1) * _arg1) * _arg1) * _arg1) + 2)) + _arg2));
}
public static function easeInCirc(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / _arg4);
return (((-(_arg3) * (Math.sqrt((1 - (_arg1 * _arg1))) - 1)) + _arg2));
}
public static function easeOutInSine(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutSine((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5));
};
return (easeInSine(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5));
}
public static function easeInOutExpo(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 == 0){
return (_arg2);
};
if (_arg1 == _arg4){
return ((_arg2 + _arg3));
};
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
return (((((_arg3 / 2) * Math.pow(2, (10 * (_arg1 - 1)))) + _arg2) - (_arg3 * 0.0005)));
};
--_arg1;
return (((((_arg3 / 2) * 1.0005) * (-(Math.pow(2, (-10 * _arg1))) + 2)) + _arg2));
}
public static function easeOutElastic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
var _local6:Number;
var _local7:Number;
var _local8:Number;
if (_arg1 == 0){
return (_arg2);
};
_arg1 = (_arg1 / _arg4);
if (_arg1 == 1){
return ((_arg2 + _arg3));
};
_local6 = (((!(Boolean(_arg5))) || (isNaN(_arg5.period)))) ? (_arg4 * 0.3) : _arg5.period;
_local8 = (((!(Boolean(_arg5))) || (isNaN(_arg5.amplitude)))) ? 0 : _arg5.amplitude;
if (((!(Boolean(_local8))) || ((_local8 < Math.abs(_arg3))))){
_local8 = _arg3;
_local7 = (_local6 / 4);
} else {
_local7 = ((_local6 / (2 * Math.PI)) * Math.asin((_arg3 / _local8)));
};
return (((((_local8 * Math.pow(2, (-10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local7) * (2 * Math.PI)) / _local6))) + _arg3) + _arg2));
}
public static function easeOutCirc(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = ((_arg1 / _arg4) - 1);
return (((_arg3 * Math.sqrt((1 - (_arg1 * _arg1)))) + _arg2));
}
public static function easeOutInQuart(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutQuart((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5));
};
return (easeInQuart(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5));
}
public static function easeOutInCirc(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutCirc((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5));
};
return (easeInCirc(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5));
}
}
}//package caurina.transitions
Section 3
//PropertyInfoObj (caurina.transitions.PropertyInfoObj)
package caurina.transitions {
public class PropertyInfoObj {
public var originalValueComplete:Object;
public var modifierParameters:Array;
public var isSpecialProperty:Boolean;
public var hasModifier:Boolean;
public var valueComplete:Number;
public var extra:Object;
public var valueStart:Number;
public var modifierFunction:Function;
public var arrayIndex:Number;
public function PropertyInfoObj(_arg1:Number, _arg2:Number, _arg3:Object, _arg4:Number, _arg5:Object, _arg6:Boolean, _arg7:Function, _arg8:Array){
valueStart = _arg1;
valueComplete = _arg2;
originalValueComplete = _arg3;
arrayIndex = _arg4;
extra = _arg5;
isSpecialProperty = _arg6;
hasModifier = Boolean(_arg7);
modifierFunction = _arg7;
modifierParameters = _arg8;
}
public function toString():String{
var _local1:String;
_local1 = "\n[PropertyInfoObj ";
_local1 = (_local1 + ("valueStart:" + String(valueStart)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("valueComplete:" + String(valueComplete)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("originalValueComplete:" + String(originalValueComplete)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("arrayIndex:" + String(arrayIndex)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("extra:" + String(extra)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("isSpecialProperty:" + String(isSpecialProperty)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("hasModifier:" + String(hasModifier)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("modifierFunction:" + String(modifierFunction)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("modifierParameters:" + String(modifierParameters)));
_local1 = (_local1 + "]\n");
return (_local1);
}
public function clone():PropertyInfoObj{
var _local1:PropertyInfoObj;
_local1 = new PropertyInfoObj(valueStart, valueComplete, originalValueComplete, arrayIndex, extra, isSpecialProperty, modifierFunction, modifierParameters);
return (_local1);
}
}
}//package caurina.transitions
Section 4
//SpecialProperty (caurina.transitions.SpecialProperty)
package caurina.transitions {
public class SpecialProperty {
public var parameters:Array;
public var preProcess:Function;
public var setValue:Function;
public var getValue:Function;
public function SpecialProperty(_arg1:Function, _arg2:Function, _arg3:Array=null, _arg4:Function=null){
getValue = _arg1;
setValue = _arg2;
parameters = _arg3;
preProcess = _arg4;
}
public function toString():String{
var _local1:String;
_local1 = "";
_local1 = (_local1 + "[SpecialProperty ");
_local1 = (_local1 + ("getValue:" + String(getValue)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("setValue:" + String(setValue)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("parameters:" + String(parameters)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("preProcess:" + String(preProcess)));
_local1 = (_local1 + "]");
return (_local1);
}
}
}//package caurina.transitions
Section 5
//SpecialPropertyModifier (caurina.transitions.SpecialPropertyModifier)
package caurina.transitions {
public class SpecialPropertyModifier {
public var getValue:Function;
public var modifyValues:Function;
public function SpecialPropertyModifier(_arg1:Function, _arg2:Function){
modifyValues = _arg1;
getValue = _arg2;
}
public function toString():String{
var _local1:String;
_local1 = "";
_local1 = (_local1 + "[SpecialPropertyModifier ");
_local1 = (_local1 + ("modifyValues:" + String(modifyValues)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("getValue:" + String(getValue)));
_local1 = (_local1 + "]");
return (_local1);
}
}
}//package caurina.transitions
Section 6
//SpecialPropertySplitter (caurina.transitions.SpecialPropertySplitter)
package caurina.transitions {
public class SpecialPropertySplitter {
public var parameters:Array;
public var splitValues:Function;
public function SpecialPropertySplitter(_arg1:Function, _arg2:Array){
splitValues = _arg1;
parameters = _arg2;
}
public function toString():String{
var _local1:String;
_local1 = "";
_local1 = (_local1 + "[SpecialPropertySplitter ");
_local1 = (_local1 + ("splitValues:" + String(splitValues)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("parameters:" + String(parameters)));
_local1 = (_local1 + "]");
return (_local1);
}
}
}//package caurina.transitions
Section 7
//Tweener (caurina.transitions.Tweener)
package caurina.transitions {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
public class Tweener {
private static var _timeScale:Number = 1;
private static var _currentTimeFrame:Number;
private static var _specialPropertySplitterList:Object;
private static var _engineExists:Boolean = false;
private static var _specialPropertyModifierList:Object;
private static var _currentTime:Number;
private static var _tweenList:Array;
private static var _specialPropertyList:Object;
private static var _transitionList:Object;
private static var _inited:Boolean = false;
private static var __tweener_controller__:MovieClip;
public function Tweener(){
trace("Tweener is a static class and should not be instantiated.");
}
public static function registerSpecialPropertyModifier(_arg1:String, _arg2:Function, _arg3:Function):void{
var _local4:SpecialPropertyModifier;
if (!_inited){
init();
};
_local4 = new SpecialPropertyModifier(_arg2, _arg3);
_specialPropertyModifierList[_arg1] = _local4;
}
public static function registerSpecialProperty(_arg1:String, _arg2:Function, _arg3:Function, _arg4:Array=null, _arg5:Function=null):void{
var _local6:SpecialProperty;
if (!_inited){
init();
};
_local6 = new SpecialProperty(_arg2, _arg3, _arg4, _arg5);
_specialPropertyList[_arg1] = _local6;
}
public static function init(... _args):void{
_inited = true;
_transitionList = new Object();
Equations.init();
_specialPropertyList = new Object();
_specialPropertyModifierList = new Object();
_specialPropertySplitterList = new Object();
}
private static function updateTweens():Boolean{
var _local1:int;
if (_tweenList.length == 0){
return (false);
};
_local1 = 0;
while (_local1 < _tweenList.length) {
if ((((_tweenList[_local1] == undefined)) || (!(_tweenList[_local1].isPaused)))){
if (!updateTweenByIndex(_local1)){
removeTweenByIndex(_local1);
};
if (_tweenList[_local1] == null){
removeTweenByIndex(_local1, true);
_local1--;
};
};
_local1++;
};
return (true);
}
public static function addCaller(_arg1:Object=null, _arg2:Object=null):Boolean{
var _local3:Number;
var _local4:Array;
var _local5:Object;
var _local6:Number;
var _local7:Number;
var _local8:Function;
var _local9:TweenListObj;
var _local10:Number;
var _local11:String;
if (!Boolean(_arg1)){
return (false);
};
if ((_arg1 is Array)){
_local4 = _arg1.concat();
} else {
_local4 = [_arg1];
};
_local5 = _arg2;
if (!_inited){
init();
};
if (((!(_engineExists)) || (!(Boolean(__tweener_controller__))))){
startEngine();
};
_local6 = (isNaN(_local5.time)) ? 0 : _local5.time;
_local7 = (isNaN(_local5.delay)) ? 0 : _local5.delay;
if (typeof(_local5.transition) == "string"){
_local11 = _local5.transition.toLowerCase();
_local8 = _transitionList[_local11];
} else {
_local8 = _local5.transition;
};
if (!Boolean(_local8)){
_local8 = _transitionList["easeoutexpo"];
};
_local3 = 0;
while (_local3 < _local4.length) {
if (_local5.useFrames == true){
_local9 = new TweenListObj(_local4[_local3], (_currentTimeFrame + (_local7 / _timeScale)), (_currentTimeFrame + ((_local7 + _local6) / _timeScale)), true, _local8, _local5.transitionParams);
} else {
_local9 = new TweenListObj(_local4[_local3], (_currentTime + ((_local7 * 1000) / _timeScale)), (_currentTime + (((_local7 * 1000) + (_local6 * 1000)) / _timeScale)), false, _local8, _local5.transitionParams);
};
_local9.properties = null;
_local9.onStart = _local5.onStart;
_local9.onUpdate = _local5.onUpdate;
_local9.onComplete = _local5.onComplete;
_local9.onOverwrite = _local5.onOverwrite;
_local9.onStartParams = _local5.onStartParams;
_local9.onUpdateParams = _local5.onUpdateParams;
_local9.onCompleteParams = _local5.onCompleteParams;
_local9.onOverwriteParams = _local5.onOverwriteParams;
_local9.onStartScope = _local5.onStartScope;
_local9.onUpdateScope = _local5.onUpdateScope;
_local9.onCompleteScope = _local5.onCompleteScope;
_local9.onOverwriteScope = _local5.onOverwriteScope;
_local9.onErrorScope = _local5.onErrorScope;
_local9.isCaller = true;
_local9.count = _local5.count;
_local9.waitFrames = _local5.waitFrames;
_tweenList.push(_local9);
if ((((_local6 == 0)) && ((_local7 == 0)))){
_local10 = (_tweenList.length - 1);
updateTweenByIndex(_local10);
removeTweenByIndex(_local10);
};
_local3++;
};
return (true);
}
public static function pauseAllTweens():Boolean{
var _local1:Boolean;
var _local2:uint;
if (!Boolean(_tweenList)){
return (false);
};
_local1 = false;
_local2 = 0;
while (_local2 < _tweenList.length) {
pauseTweenByIndex(_local2);
_local1 = true;
_local2++;
};
return (_local1);
}
public static function removeTweens(_arg1:Object, ... _args):Boolean{
var _local3:Array;
var _local4:uint;
var _local5:SpecialPropertySplitter;
var _local6:Array;
var _local7:uint;
_local3 = 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 splitTweens(_arg1:Number, _arg2:Array):uint{
var _local3:TweenListObj;
var _local4:TweenListObj;
var _local5:uint;
var _local6:String;
var _local7:Boolean;
_local3 = _tweenList[_arg1];
_local4 = _local3.clone(false);
_local5 = 0;
while (_local5 < _arg2.length) {
_local6 = _arg2[_local5];
if (Boolean(_local3.properties[_local6])){
_local3.properties[_local6] = undefined;
delete _local3.properties[_local6];
};
_local5++;
};
for (_local6 in _local4.properties) {
_local7 = false;
_local5 = 0;
while (_local5 < _arg2.length) {
if (_arg2[_local5] == _local6){
_local7 = true;
break;
};
_local5++;
};
if (!_local7){
_local4.properties[_local6] = undefined;
delete _local4.properties[_local6];
};
};
_tweenList.push(_local4);
return ((_tweenList.length - 1));
}
public static function updateFrame():void{
_currentTimeFrame++;
}
public static function resumeTweenByIndex(_arg1:Number):Boolean{
var _local2:TweenListObj;
var _local3:Number;
_local2 = _tweenList[_arg1];
if ((((_local2 == null)) || (!(_local2.isPaused)))){
return (false);
};
_local3 = getCurrentTweeningTime(_local2);
_local2.timeStart = (_local2.timeStart + (_local3 - _local2.timePaused));
_local2.timeComplete = (_local2.timeComplete + (_local3 - _local2.timePaused));
_local2.timePaused = undefined;
_local2.isPaused = false;
return (true);
}
public static function getVersion():String{
return ("AS3 1.31.74");
}
public static function onEnterFrame(_arg1:Event):void{
var _local2:Boolean;
updateTime();
updateFrame();
_local2 = false;
_local2 = updateTweens();
if (!_local2){
stopEngine();
};
}
public static function updateTime():void{
_currentTime = getTimer();
}
private static function updateTweenByIndex(_arg1:Number):Boolean{
var tTweening:TweenListObj;
var isOver:Boolean;
var mustUpdate:Boolean;
var nv:Number;
var t:Number;
var b:Number;
var c:Number;
var d:Number;
var pName:String;
var eventScope:Object;
var tScope:Object;
var cTime:Number;
var tProperty:Object;
var pv:Number;
var i = _arg1;
tTweening = _tweenList[i];
if ((((tTweening == null)) || (!(Boolean(tTweening.scope))))){
return (false);
};
isOver = false;
cTime = getCurrentTweeningTime(tTweening);
if (cTime >= tTweening.timeStart){
tScope = tTweening.scope;
if (tTweening.isCaller){
do {
t = (((tTweening.timeComplete - tTweening.timeStart) / tTweening.count) * (tTweening.timesCalled + 1));
b = tTweening.timeStart;
c = (tTweening.timeComplete - tTweening.timeStart);
d = (tTweening.timeComplete - tTweening.timeStart);
nv = tTweening.transition(t, b, c, d);
} while (!(cTime >= nv));
} else {
mustUpdate = (((((tTweening.skipUpdates < 1)) || (!(tTweening.skipUpdates)))) || ((tTweening.updatesSkipped >= tTweening.skipUpdates)));
if (cTime >= tTweening.timeComplete){
isOver = true;
mustUpdate = true;
};
if (!tTweening.hasStarted){
if (Boolean(tTweening.onStart)){
eventScope = (Boolean(tTweening.onStartScope)) ? tTweening.onStartScope : tScope;
try {
tTweening.onStart.apply(eventScope, tTweening.onStartParams);
} catch(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 _local1:Boolean;
var _local2:uint;
if (!Boolean(_tweenList)){
return (false);
};
_local1 = false;
_local2 = 0;
while (_local2 < _tweenList.length) {
resumeTweenByIndex(_local2);
_local1 = true;
_local2++;
};
return (_local1);
}
private static function handleError(_arg1:TweenListObj, _arg2:Error, _arg3:String):void{
var eventScope:Object;
var pTweening = _arg1;
var pError = _arg2;
var pCallBackName = _arg3;
if (((Boolean(pTweening.onError)) && ((pTweening.onError is Function)))){
eventScope = (Boolean(pTweening.onErrorScope)) ? pTweening.onErrorScope : pTweening.scope;
try {
pTweening.onError.apply(eventScope, [pTweening.scope, pError]);
} catch(metaError:Error) {
printError(((((String(pTweening.scope) + " raised an error while executing the 'onError' handler. Original error:\n ") + pError.getStackTrace()) + "\nonError error: ") + metaError.getStackTrace()));
};
} else {
if (!Boolean(pTweening.onError)){
printError(((((String(pTweening.scope) + " raised an error while executing the '") + pCallBackName) + "'handler. \n") + pError.getStackTrace()));
};
};
}
private static function startEngine():void{
_engineExists = true;
_tweenList = new Array();
__tweener_controller__ = new MovieClip();
__tweener_controller__.addEventListener(Event.ENTER_FRAME, Tweener.onEnterFrame);
_currentTimeFrame = 0;
updateTime();
}
public static function removeAllTweens():Boolean{
var _local1:Boolean;
var _local2:uint;
if (!Boolean(_tweenList)){
return (false);
};
_local1 = false;
_local2 = 0;
while (_local2 < _tweenList.length) {
removeTweenByIndex(_local2);
_local1 = true;
_local2++;
};
return (_local1);
}
public static function addTween(_arg1:Object=null, _arg2:Object=null):Boolean{
var _local3:Number;
var _local4:Number;
var _local5:String;
var _local6:Array;
var _local7:Object;
var _local8:Number;
var _local9:Number;
var _local10:Array;
var _local11:Object;
var _local12:Object;
var _local13:Function;
var _local14:Object;
var _local15:TweenListObj;
var _local16:Number;
var _local17:Array;
var _local18:Array;
var _local19:Array;
var _local20:String;
if (!Boolean(_arg1)){
return (false);
};
if ((_arg1 is Array)){
_local6 = _arg1.concat();
} else {
_local6 = [_arg1];
};
_local7 = TweenListObj.makePropertiesChain(_arg2);
if (!_inited){
init();
};
if (((!(_engineExists)) || (!(Boolean(__tweener_controller__))))){
startEngine();
};
_local8 = (isNaN(_local7.time)) ? 0 : _local7.time;
_local9 = (isNaN(_local7.delay)) ? 0 : _local7.delay;
_local10 = new Array();
_local11 = {time:true, delay:true, useFrames:true, skipUpdates:true, transition:true, transitionParams:true, onStart:true, onUpdate:true, onComplete:true, onOverwrite:true, onError:true, rounded:true, onStartParams:true, onUpdateParams:true, onCompleteParams:true, onOverwriteParams:true, onStartScope:true, onUpdateScope:true, onCompleteScope:true, onOverwriteScope:true, onErrorScope:true};
_local12 = new Object();
for (_local5 in _local7) {
if (!_local11[_local5]){
if (_specialPropertySplitterList[_local5]){
_local17 = _specialPropertySplitterList[_local5].splitValues(_local7[_local5], _specialPropertySplitterList[_local5].parameters);
_local3 = 0;
while (_local3 < _local17.length) {
if (_specialPropertySplitterList[_local17[_local3].name]){
_local18 = _specialPropertySplitterList[_local17[_local3].name].splitValues(_local17[_local3].value, _specialPropertySplitterList[_local17[_local3].name].parameters);
_local4 = 0;
while (_local4 < _local18.length) {
_local10[_local18[_local4].name] = {valueStart:undefined, valueComplete:_local18[_local4].value, arrayIndex:_local18[_local4].arrayIndex, isSpecialProperty:false};
_local4++;
};
} else {
_local10[_local17[_local3].name] = {valueStart:undefined, valueComplete:_local17[_local3].value, arrayIndex:_local17[_local3].arrayIndex, isSpecialProperty:false};
};
_local3++;
};
} else {
if (_specialPropertyModifierList[_local5] != undefined){
_local19 = _specialPropertyModifierList[_local5].modifyValues(_local7[_local5]);
_local3 = 0;
while (_local3 < _local19.length) {
_local12[_local19[_local3].name] = {modifierParameters:_local19[_local3].parameters, modifierFunction:_specialPropertyModifierList[_local5].getValue};
_local3++;
};
} else {
_local10[_local5] = {valueStart:undefined, valueComplete:_local7[_local5]};
};
};
};
};
for (_local5 in _local10) {
if (_specialPropertyList[_local5] != undefined){
_local10[_local5].isSpecialProperty = true;
} else {
if (_local6[0][_local5] == undefined){
printError((((("The property '" + _local5) + "' doesn't seem to be a normal object property of ") + String(_local6[0])) + " or a registered special property."));
};
};
};
for (_local5 in _local12) {
if (_local10[_local5] != undefined){
_local10[_local5].modifierParameters = _local12[_local5].modifierParameters;
_local10[_local5].modifierFunction = _local12[_local5].modifierFunction;
};
};
if (typeof(_local7.transition) == "string"){
_local20 = _local7.transition.toLowerCase();
_local13 = _transitionList[_local20];
} else {
_local13 = _local7.transition;
};
if (!Boolean(_local13)){
_local13 = _transitionList["easeoutexpo"];
};
_local3 = 0;
while (_local3 < _local6.length) {
_local14 = new Object();
for (_local5 in _local10) {
_local14[_local5] = new PropertyInfoObj(_local10[_local5].valueStart, _local10[_local5].valueComplete, _local10[_local5].valueComplete, _local10[_local5].arrayIndex, {}, _local10[_local5].isSpecialProperty, _local10[_local5].modifierFunction, _local10[_local5].modifierParameters);
};
if (_local7.useFrames == true){
_local15 = new TweenListObj(_local6[_local3], (_currentTimeFrame + (_local9 / _timeScale)), (_currentTimeFrame + ((_local9 + _local8) / _timeScale)), true, _local13, _local7.transitionParams);
} else {
_local15 = new TweenListObj(_local6[_local3], (_currentTime + ((_local9 * 1000) / _timeScale)), (_currentTime + (((_local9 * 1000) + (_local8 * 1000)) / _timeScale)), false, _local13, _local7.transitionParams);
};
_local15.properties = _local14;
_local15.onStart = _local7.onStart;
_local15.onUpdate = _local7.onUpdate;
_local15.onComplete = _local7.onComplete;
_local15.onOverwrite = _local7.onOverwrite;
_local15.onError = _local7.onError;
_local15.onStartParams = _local7.onStartParams;
_local15.onUpdateParams = _local7.onUpdateParams;
_local15.onCompleteParams = _local7.onCompleteParams;
_local15.onOverwriteParams = _local7.onOverwriteParams;
_local15.onStartScope = _local7.onStartScope;
_local15.onUpdateScope = _local7.onUpdateScope;
_local15.onCompleteScope = _local7.onCompleteScope;
_local15.onOverwriteScope = _local7.onOverwriteScope;
_local15.onErrorScope = _local7.onErrorScope;
_local15.rounded = _local7.rounded;
_local15.skipUpdates = _local7.skipUpdates;
removeTweensByTime(_local15.scope, _local15.properties, _local15.timeStart, _local15.timeComplete);
_tweenList.push(_local15);
if ((((_local8 == 0)) && ((_local9 == 0)))){
_local16 = (_tweenList.length - 1);
updateTweenByIndex(_local16);
removeTweenByIndex(_local16);
};
_local3++;
};
return (true);
}
public static function registerTransition(_arg1:String, _arg2:Function):void{
if (!_inited){
init();
};
_transitionList[_arg1] = _arg2;
}
public static function printError(_arg1:String):void{
trace(("## [Tweener] Error: " + _arg1));
}
private static function affectTweens(_arg1:Function, _arg2:Object, _arg3:Array):Boolean{
var _local4:Boolean;
var _local5:uint;
var _local6:Array;
var _local7:uint;
var _local8:uint;
var _local9:uint;
_local4 = false;
if (!Boolean(_tweenList)){
return (false);
};
_local5 = 0;
while (_local5 < _tweenList.length) {
if (((_tweenList[_local5]) && ((_tweenList[_local5].scope == _arg2)))){
if (_arg3.length == 0){
_arg1(_local5);
_local4 = true;
} else {
_local6 = new Array();
_local7 = 0;
while (_local7 < _arg3.length) {
if (Boolean(_tweenList[_local5].properties[_arg3[_local7]])){
_local6.push(_arg3[_local7]);
};
_local7++;
};
if (_local6.length > 0){
_local8 = AuxFunctions.getObjectLength(_tweenList[_local5].properties);
if (_local8 == _local6.length){
_arg1(_local5);
_local4 = true;
} else {
_local9 = splitTweens(_local5, _local6);
_arg1(_local9);
_local4 = true;
};
};
};
};
_local5++;
};
return (_local4);
}
public static function getTweens(_arg1:Object):Array{
var _local2:uint;
var _local3:String;
var _local4:Array;
if (!Boolean(_tweenList)){
return ([]);
};
_local4 = new Array();
_local2 = 0;
while (_local2 < _tweenList.length) {
if (((Boolean(_tweenList[_local2])) && ((_tweenList[_local2].scope == _arg1)))){
for (_local3 in _tweenList[_local2].properties) {
_local4.push(_local3);
};
};
_local2++;
};
return (_local4);
}
public static function isTweening(_arg1:Object):Boolean{
var _local2:uint;
if (!Boolean(_tweenList)){
return (false);
};
_local2 = 0;
while (_local2 < _tweenList.length) {
if (((Boolean(_tweenList[_local2])) && ((_tweenList[_local2].scope == _arg1)))){
return (true);
};
_local2++;
};
return (false);
}
public static function pauseTweenByIndex(_arg1:Number):Boolean{
var _local2:TweenListObj;
_local2 = _tweenList[_arg1];
if ((((_local2 == null)) || (_local2.isPaused))){
return (false);
};
_local2.timePaused = getCurrentTweeningTime(_local2);
_local2.isPaused = true;
return (true);
}
public static function getCurrentTweeningTime(_arg1:Object):Number{
return ((_arg1.useFrames) ? _currentTimeFrame : _currentTime);
}
public static function getTweenCount(_arg1:Object):Number{
var _local2:uint;
var _local3:Number;
if (!Boolean(_tweenList)){
return (0);
};
_local3 = 0;
_local2 = 0;
while (_local2 < _tweenList.length) {
if (((Boolean(_tweenList[_local2])) && ((_tweenList[_local2].scope == _arg1)))){
_local3 = (_local3 + AuxFunctions.getObjectLength(_tweenList[_local2].properties));
};
_local2++;
};
return (_local3);
}
private static function stopEngine():void{
_engineExists = false;
_tweenList = null;
_currentTime = 0;
_currentTimeFrame = 0;
__tweener_controller__.removeEventListener(Event.ENTER_FRAME, Tweener.onEnterFrame);
__tweener_controller__ = null;
}
public static function removeTweensByTime(_arg1:Object, _arg2:Object, _arg3:Number, _arg4:Number):Boolean{
var removed:Boolean;
var removedLocally:Boolean;
var i:uint;
var tl:uint;
var pName:String;
var eventScope:Object;
var p_scope = _arg1;
var p_properties = _arg2;
var p_timeStart = _arg3;
var p_timeComplete = _arg4;
removed = false;
tl = _tweenList.length;
i = 0;
while (i < tl) {
if (((Boolean(_tweenList[i])) && ((p_scope == _tweenList[i].scope)))){
if ((((p_timeComplete > _tweenList[i].timeStart)) && ((p_timeStart < _tweenList[i].timeComplete)))){
removedLocally = false;
for (pName in _tweenList[i].properties) {
if (Boolean(p_properties[pName])){
if (Boolean(_tweenList[i].onOverwrite)){
eventScope = (Boolean(_tweenList[i].onOverwriteScope)) ? _tweenList[i].onOverwriteScope : _tweenList[i].scope;
try {
_tweenList[i].onOverwrite.apply(eventScope, _tweenList[i].onOverwriteParams);
} catch(e:Error) {
handleError(_tweenList[i], e, "onOverwrite");
};
};
_tweenList[i].properties[pName] = undefined;
delete _tweenList[i].properties[pName];
removedLocally = true;
removed = true;
};
};
if (removedLocally){
if (AuxFunctions.getObjectLength(_tweenList[i].properties) == 0){
removeTweenByIndex(i);
};
};
};
};
i = (i + 1);
};
return (removed);
}
public static function registerSpecialPropertySplitter(_arg1:String, _arg2:Function, _arg3:Array=null):void{
var _local4:SpecialPropertySplitter;
if (!_inited){
init();
};
_local4 = new SpecialPropertySplitter(_arg2, _arg3);
_specialPropertySplitterList[_arg1] = _local4;
}
public static function removeTweenByIndex(_arg1:Number, _arg2:Boolean=false):Boolean{
_tweenList[_arg1] = null;
if (_arg2){
_tweenList.splice(_arg1, 1);
};
return (true);
}
public static function resumeTweens(_arg1:Object, ... _args):Boolean{
var _local3:Array;
var _local4:uint;
_local3 = new Array();
_local4 = 0;
while (_local4 < _args.length) {
if ((((typeof(_args[_local4]) == "string")) && ((_local3.indexOf(_args[_local4]) == -1)))){
_local3.push(_args[_local4]);
};
_local4++;
};
return (affectTweens(resumeTweenByIndex, _arg1, _local3));
}
public static function pauseTweens(_arg1:Object, ... _args):Boolean{
var _local3:Array;
var _local4:uint;
_local3 = new Array();
_local4 = 0;
while (_local4 < _args.length) {
if ((((typeof(_args[_local4]) == "string")) && ((_local3.indexOf(_args[_local4]) == -1)))){
_local3.push(_args[_local4]);
};
_local4++;
};
return (affectTweens(pauseTweenByIndex, _arg1, _local3));
}
}
}//package caurina.transitions
Section 8
//TweenListObj (caurina.transitions.TweenListObj)
package caurina.transitions {
public class TweenListObj {
public var onUpdate:Function;
public var useFrames:Boolean;
public var hasStarted:Boolean;
public var onOverwriteParams:Array;
public var timeStart:Number;
public var count:Number;
public var timeComplete:Number;
public var onStartParams:Array;
public var onUpdateScope:Object;
public var rounded:Boolean;
public var onUpdateParams:Array;
public var properties:Object;
public var onComplete:Function;
public var transitionParams:Object;
public var updatesSkipped:Number;
public var onStart:Function;
public var onOverwriteScope:Object;
public var skipUpdates:Number;
public var onStartScope:Object;
public var scope:Object;
public var transition:Function;
public var timePaused:Number;
public var onCompleteParams:Array;
public var timesCalled:Number;
public var isCaller:Boolean;
public var onError:Function;
public var onErrorScope:Object;
public var onOverwrite:Function;
public var isPaused:Boolean;
public var waitFrames:Boolean;
public var onCompleteScope:Object;
public function TweenListObj(_arg1:Object, _arg2:Number, _arg3:Number, _arg4:Boolean, _arg5:Function, _arg6:Object){
scope = _arg1;
timeStart = _arg2;
timeComplete = _arg3;
useFrames = _arg4;
transition = _arg5;
transitionParams = _arg6;
properties = new Object();
isPaused = false;
timePaused = undefined;
isCaller = false;
updatesSkipped = 0;
timesCalled = 0;
skipUpdates = 0;
hasStarted = false;
}
public function clone(_arg1:Boolean):TweenListObj{
var _local2:TweenListObj;
var _local3:String;
_local2 = new TweenListObj(scope, timeStart, timeComplete, useFrames, transition, transitionParams);
_local2.properties = new Array();
for (_local3 in properties) {
_local2.properties[_local3] = properties[_local3].clone();
};
_local2.skipUpdates = skipUpdates;
_local2.updatesSkipped = updatesSkipped;
if (!_arg1){
_local2.onStart = onStart;
_local2.onUpdate = onUpdate;
_local2.onComplete = onComplete;
_local2.onOverwrite = onOverwrite;
_local2.onError = onError;
_local2.onStartParams = onStartParams;
_local2.onUpdateParams = onUpdateParams;
_local2.onCompleteParams = onCompleteParams;
_local2.onOverwriteParams = onOverwriteParams;
_local2.onStartScope = onStartScope;
_local2.onUpdateScope = onUpdateScope;
_local2.onCompleteScope = onCompleteScope;
_local2.onOverwriteScope = onOverwriteScope;
_local2.onErrorScope = onErrorScope;
};
_local2.rounded = rounded;
_local2.isPaused = isPaused;
_local2.timePaused = timePaused;
_local2.isCaller = isCaller;
_local2.count = count;
_local2.timesCalled = timesCalled;
_local2.waitFrames = waitFrames;
_local2.hasStarted = hasStarted;
return (_local2);
}
public function toString():String{
var _local1:String;
var _local2:Boolean;
var _local3:String;
_local1 = "\n[TweenListObj ";
_local1 = (_local1 + ("scope:" + String(scope)));
_local1 = (_local1 + ", properties:");
_local2 = true;
for (_local3 in properties) {
if (!_local2){
_local1 = (_local1 + ",");
};
_local1 = (_local1 + ("[name:" + properties[_local3].name));
_local1 = (_local1 + (",valueStart:" + properties[_local3].valueStart));
_local1 = (_local1 + (",valueComplete:" + properties[_local3].valueComplete));
_local1 = (_local1 + "]");
_local2 = false;
};
_local1 = (_local1 + (", timeStart:" + String(timeStart)));
_local1 = (_local1 + (", timeComplete:" + String(timeComplete)));
_local1 = (_local1 + (", useFrames:" + String(useFrames)));
_local1 = (_local1 + (", transition:" + String(transition)));
_local1 = (_local1 + (", transitionParams:" + String(transitionParams)));
if (skipUpdates){
_local1 = (_local1 + (", skipUpdates:" + String(skipUpdates)));
};
if (updatesSkipped){
_local1 = (_local1 + (", updatesSkipped:" + String(updatesSkipped)));
};
if (Boolean(onStart)){
_local1 = (_local1 + (", onStart:" + String(onStart)));
};
if (Boolean(onUpdate)){
_local1 = (_local1 + (", onUpdate:" + String(onUpdate)));
};
if (Boolean(onComplete)){
_local1 = (_local1 + (", onComplete:" + String(onComplete)));
};
if (Boolean(onOverwrite)){
_local1 = (_local1 + (", onOverwrite:" + String(onOverwrite)));
};
if (Boolean(onError)){
_local1 = (_local1 + (", onError:" + String(onError)));
};
if (onStartParams){
_local1 = (_local1 + (", onStartParams:" + String(onStartParams)));
};
if (onUpdateParams){
_local1 = (_local1 + (", onUpdateParams:" + String(onUpdateParams)));
};
if (onCompleteParams){
_local1 = (_local1 + (", onCompleteParams:" + String(onCompleteParams)));
};
if (onOverwriteParams){
_local1 = (_local1 + (", onOverwriteParams:" + String(onOverwriteParams)));
};
if (onStartScope){
_local1 = (_local1 + (", onStartScope:" + String(onStartScope)));
};
if (onUpdateScope){
_local1 = (_local1 + (", onUpdateScope:" + String(onUpdateScope)));
};
if (onCompleteScope){
_local1 = (_local1 + (", onCompleteScope:" + String(onCompleteScope)));
};
if (onOverwriteScope){
_local1 = (_local1 + (", onOverwriteScope:" + String(onOverwriteScope)));
};
if (onErrorScope){
_local1 = (_local1 + (", onErrorScope:" + String(onErrorScope)));
};
if (rounded){
_local1 = (_local1 + (", rounded:" + String(rounded)));
};
if (isPaused){
_local1 = (_local1 + (", isPaused:" + String(isPaused)));
};
if (timePaused){
_local1 = (_local1 + (", timePaused:" + String(timePaused)));
};
if (isCaller){
_local1 = (_local1 + (", isCaller:" + String(isCaller)));
};
if (count){
_local1 = (_local1 + (", count:" + String(count)));
};
if (timesCalled){
_local1 = (_local1 + (", timesCalled:" + String(timesCalled)));
};
if (waitFrames){
_local1 = (_local1 + (", waitFrames:" + String(waitFrames)));
};
if (hasStarted){
_local1 = (_local1 + (", hasStarted:" + String(hasStarted)));
};
_local1 = (_local1 + "]\n");
return (_local1);
}
public static function makePropertiesChain(_arg1:Object):Object{
var _local2:Object;
var _local3:Object;
var _local4:Object;
var _local5:Object;
var _local6:Number;
var _local7:Number;
var _local8:Number;
_local2 = _arg1.base;
if (_local2){
_local3 = {};
if ((_local2 is Array)){
_local4 = [];
_local8 = 0;
while (_local8 < _local2.length) {
_local4.push(_local2[_local8]);
_local8++;
};
} else {
_local4 = [_local2];
};
_local4.push(_arg1);
_local6 = _local4.length;
_local7 = 0;
while (_local7 < _local6) {
if (_local4[_local7]["base"]){
_local5 = AuxFunctions.concatObjects(makePropertiesChain(_local4[_local7]["base"]), _local4[_local7]);
} else {
_local5 = _local4[_local7];
};
_local3 = AuxFunctions.concatObjects(_local3, _local5);
_local7++;
};
if (_local3["base"]){
delete _local3["base"];
};
return (_local3);
//unresolved jump
};
return (_arg1);
}
}
}//package caurina.transitions
Section 9
//AdLoader (CPMStar.AdLoader)
package CPMStar {
import flash.display.*;
import flash.events.*;
import flash.net.*;
import flash.system.*;
public class AdLoader extends Sprite {
private var contentspotid:String;
private var cpmstarLoader:Loader;
public function AdLoader(_arg1:String){
this.contentspotid = _arg1;
addEventListener(Event.ADDED, addedHandler);
}
private function addedHandler(_arg1:Event):void{
var _local2:String;
var _local3:DisplayObjectContainer;
removeEventListener(Event.ADDED, addedHandler);
Security.allowDomain("server.cpmstar.com");
_local2 = "http://server.cpmstar.com/adviewas3.swf";
_local3 = parent;
cpmstarLoader = new Loader();
cpmstarLoader.contentLoaderInfo.addEventListener(Event.INIT, dispatchHandler);
cpmstarLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, dispatchHandler);
cpmstarLoader.load(new URLRequest(((_local2 + "?contentspotid=") + contentspotid)));
addChild(cpmstarLoader);
}
private function dispatchHandler(_arg1:Event):void{
dispatchEvent(_arg1);
}
}
}//package CPMStar
Section 10
//MochiDigits (mochi.as3.MochiDigits)
package mochi.as3 {
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 set value(_arg1:Number):void{
setValue(_arg1);
}
public function reencode():void{
var _local1:uint;
_local1 = int((2147483647 * Math.random()));
Fragment = (Fragment ^ (_local1 ^ Encoder));
Encoder = _local1;
}
public function toString():String{
var _local1:String;
_local1 = String.fromCharCode((Fragment ^ Encoder));
if (Sibling != null){
_local1 = (_local1 + Sibling.toString());
};
return (_local1);
}
public function get value():Number{
return (Number(this.toString()));
}
public function setValue(_arg1:Number=0, _arg2:uint=0):void{
var _local3:String;
_local3 = _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 addValue(_arg1:Number):void{
value = (value + _arg1);
}
}
}//package mochi.as3
Section 11
//MochiScores (mochi.as3.MochiScores)
package mochi.as3 {
import flash.display.*;
import flash.text.*;
public class MochiScores {
private static var boardID:String;
public static var onErrorHandler:Object;
public static var onCloseHandler:Object;
public static function showLeaderboard(_arg1:Object=null):void{
var n:Number;
var options = _arg1;
if (options != null){
if (options.clip != null){
if ((options.clip is Sprite)){
MochiServices.setContainer(options.clip);
};
delete options.clip;
} else {
MochiServices.setContainer();
};
MochiServices.stayOnTop();
if (options.name != null){
if ((options.name is TextField)){
if (options.name.text.length > 0){
options.name = options.name.text;
};
};
};
if (options.score != null){
if ((options.score is TextField)){
if (options.score.text.length > 0){
options.score = options.score.text;
};
} else {
if ((options.score is MochiDigits)){
options.score = options.score.value;
};
};
n = Number(options.score);
if (isNaN(n)){
trace((("ERROR: Submitted score '" + options.score) + "' will be rejected, score is 'Not a Number'"));
} else {
if ((((n == Number.NEGATIVE_INFINITY)) || ((n == Number.POSITIVE_INFINITY)))){
trace((("ERROR: Submitted score '" + options.score) + "' will be rejected, score is an infinite"));
} else {
if (Math.floor(n) != n){
trace((("WARNING: Submitted score '" + options.score) + "' will be truncated"));
};
options.score = n;
};
};
};
if (options.onDisplay != null){
options.onDisplay();
} else {
if (MochiServices.clip != null){
if ((MochiServices.clip is MovieClip)){
MochiServices.clip.stop();
} else {
trace("Warning: Container is not a MovieClip, cannot call default onDisplay.");
};
};
};
} else {
options = {};
if ((MochiServices.clip is MovieClip)){
MochiServices.clip.stop();
} else {
trace("Warning: Container is not a MovieClip, cannot call default onDisplay.");
};
};
if (options.onClose != null){
onCloseHandler = options.onClose;
} else {
onCloseHandler = function ():void{
if ((MochiServices.clip is MovieClip)){
} else {
trace("Warning: Container is not a MovieClip, cannot call default onClose.");
};
};
};
if (options.onError != null){
onErrorHandler = options.onError;
} else {
onErrorHandler = null;
};
if (options.boardID == null){
if (MochiScores.boardID != null){
options.boardID = MochiScores.boardID;
};
};
trace("[MochiScores] NOTE: Security Sandbox Violation errors below are normal");
MochiServices.send("scores_showLeaderboard", {options:options}, null, onClose);
}
public static function closeLeaderboard():void{
MochiServices.send("scores_closeLeaderboard");
}
public static function getPlayerInfo(_arg1:Object, _arg2:Object=null):void{
MochiServices.send("scores_getPlayerInfo", null, _arg1, _arg2);
}
public static function requestList(_arg1:Object, _arg2:Object=null):void{
MochiServices.send("scores_requestList", null, _arg1, _arg2);
}
public static function scoresArrayToObjects(_arg1:Object):Object{
var _local2:Object;
var _local3:Number;
var _local4:Number;
var _local5:Object;
var _local6:Object;
var _local7:String;
var _local8:String;
_local2 = {};
for (_local7 in _arg1) {
if (typeof(_arg1[_local7]) == "object"){
if (((!((_arg1[_local7].cols == null))) && (!((_arg1[_local7].rows == null))))){
_local2[_local7] = [];
_local5 = _arg1[_local7];
_local4 = 0;
while (_local4 < _local5.rows.length) {
_local6 = {};
_local3 = 0;
while (_local3 < _local5.cols.length) {
_local6[_local5.cols[_local3]] = _local5.rows[_local4][_local3];
_local3++;
};
_local2[_local7].push(_local6);
_local4++;
};
} else {
_local2[_local7] = {};
for (_local8 in _arg1[_local7]) {
_local2[_local7][_local8] = _arg1[_local7][_local8];
};
};
} else {
_local2[_local7] = _arg1[_local7];
};
};
return (_local2);
}
public static function submit(_arg1:Number, _arg2:String, _arg3:Object=null, _arg4:Object=null):void{
_arg1 = Number(_arg1);
trace(_arg1);
if (isNaN(_arg1)){
trace((("ERROR: Submitted score '" + String(_arg1)) + "' will be rejected, score is 'Not a Number'"));
} else {
if ((((_arg1 == Number.NEGATIVE_INFINITY)) || ((_arg1 == Number.POSITIVE_INFINITY)))){
trace((("ERROR: Submitted score '" + String(_arg1)) + "' will be rejected, score is an infinite"));
} else {
if (Math.floor(_arg1) != _arg1){
trace((("WARNING: Submitted score '" + String(_arg1)) + "' will be truncated"));
};
_arg1 = Number(_arg1);
};
};
MochiServices.send("scores_submit", {score:_arg1, name:_arg2}, _arg3, _arg4);
}
public static function onClose(_arg1:Object=null):void{
if (_arg1 != null){
if (_arg1.error != null){
if (_arg1.error == true){
if (onErrorHandler != null){
if (_arg1.errorCode == null){
_arg1.errorCode = "IOError";
};
onErrorHandler(_arg1.errorCode);
MochiServices.doClose();
return;
};
};
};
};
onCloseHandler();
MochiServices.doClose();
}
public static function setBoardID(_arg1:String):void{
MochiScores.boardID = _arg1;
MochiServices.send("scores_setBoardID", {boardID:_arg1});
}
}
}//package mochi.as3
Section 12
//MochiServices (mochi.as3.MochiServices)
package mochi.as3 {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
public class MochiServices {
private static var _container:Object;
private static var _connected:Boolean = false;
private static var _swfVersion:String;
public static var netupAttempted:Boolean = false;
private static var _sendChannel:LocalConnection;
private static var _clip:MovieClip;
private static var _loader:Loader;
private static var _id:String;
private static var _listenChannel:LocalConnection;
public static var widget:Boolean = false;
private static var _timer:Timer;
private static var _sendChannelName:String;
private static var _connecting:Boolean = false;
public static var onError:Object;
private static var _listenChannelName:String = "__ms_";
private static var _servicesURL:String = "http://www.mochiads.com/static/lib/services/services.swf";
public static var netup:Boolean = true;
public static function isNetworkAvailable():Boolean{
return (!((Security.sandboxType == "localWithFile")));
}
public static function get connected():Boolean{
return (_connected);
}
private static function flush(_arg1:Boolean):void{
var _local2:Object;
var _local3:Object;
if (_clip != null){
if (_clip._queue != null){
while (_clip._queue.length > 0) {
_local2 = _clip._queue.shift();
_local3 = null;
if (_local2 != null){
if (_local2.callbackID != null){
_local3 = _clip._callbacks[_local2.callbackID];
};
delete _clip._callbacks[_local2.callbackID];
if (((_arg1) && (!((_local3 == null))))){
handleError(_local2.args, _local3.callbackObject, _local3.callbackMethod);
};
};
};
};
};
}
public static function send(_arg1:String, _arg2:Object=null, _arg3:Object=null, _arg4:Object=null):void{
if (_connected){
_sendChannel.send(_sendChannelName, "onReceive", {methodName:_arg1, args:_arg2, callbackID:_clip._nextcallbackID});
} else {
if ((((_clip == null)) || (!(_connecting)))){
onError("NotConnected");
handleError(_arg2, _arg3, _arg4);
flush(true);
return;
};
_clip._queue.push({methodName:_arg1, args:_arg2, callbackID:_clip._nextcallbackID});
};
if (_clip != null){
if (((!((_clip._callbacks == null))) && (!((_clip._nextcallbackID == null))))){
_clip._callbacks[_clip._nextcallbackID] = {callbackObject:_arg3, callbackMethod:_arg4};
_clip._nextcallbackID++;
};
};
}
private static function init(_arg1:String, _arg2:Object):void{
_id = _arg1;
if (_arg2 != null){
_container = _arg2;
loadCommunicator(_arg1, _container);
};
}
public static function get childClip():Object{
return (_clip);
}
private static function clickMovie(_arg1:String, _arg2:Function):MovieClip{
var _local3:Array;
var _local4:int;
var _local5:Array;
var _local6:Array;
var _local7:MovieClip;
var _local8:LocalConnection;
var _local9:String;
var _local10:ByteArray;
var _local11:ByteArray;
var _local12:uint;
var _local13:uint;
var _local14:Loader;
_local3 = [150, 21, 0, 7, 1, 0, 0, 0, 0, 98, 116, 110, 0, 7, 2, 0, 0, 0, 0, 116, 104, 105, 115, 0, 28, 150, 22, 0, 0, 99, 114, 101, 97, 116, 101, 69, 109, 112, 116, 121, 77, 111, 118, 105, 101, 67, 108, 105, 112, 0, 82, 135, 1, 0, 0, 23, 150, 13, 0, 4, 0, 0, 111, 110, 82, 101, 108, 101, 97, 115, 101, 0, 142, 8, 0, 0, 0, 0, 2, 42, 0, 114, 0, 150, 17, 0, 0, 32, 0, 7, 1, 0, 0, 0, 8, 0, 0, 115, 112, 108, 105, 116, 0, 82, 135, 1, 0, 1, 23, 150, 7, 0, 4, 1, 7, 0, 0, 0, 0, 78, 150, 8, 0, 0, 95, 98, 108, 97, 110, 107, 0, 154, 1, 0, 0, 150, 7, 0, 0, 99, 108, 105, 99, 107, 0, 150, 7, 0, 4, 1, 7, 1, 0, 0, 0, 78, 150, 27, 0, 7, 2, 0, 0, 0, 7, 0, 0, 0, 0, 0, 76, 111, 99, 97, 108, 67, 111, 110, 110, 101, 99, 116, 105, 111, 110, 0, 64, 150, 6, 0, 0, 115, 101, 110, 100, 0, 82, 79, 150, 15, 0, 4, 0, 0, 95, 97, 108, 112, 104, 97, 0, 7, 0, 0, 0, 0, 79, 150, 23, 0, 7, 0xFF, 0, 0xFF, 0, 7, 1, 0, 0, 0, 4, 0, 0, 98, 101, 103, 105, 110, 70, 105, 108, 108, 0, 82, 23, 150, 25, 0, 7, 0, 0, 0, 0, 7, 0, 0, 0, 0, 7, 2, 0, 0, 0, 4, 0, 0, 109, 111, 118, 101, 84, 111, 0, 82, 23, 150, 25, 0, 7, 100, 0, 0, 0, 7, 0, 0, 0, 0, 7, 2, 0, 0, 0, 4, 0, 0, 108, 105, 110, 101, 84, 111, 0, 82, 23, 150, 25, 0, 7, 100, 0, 0, 0, 7, 100, 0, 0, 0, 7, 2, 0, 0, 0, 4, 0, 0, 108, 105, 110, 101, 84, 111, 0, 82, 23, 150, 25, 0, 7, 0, 0, 0, 0, 7, 100, 0, 0, 0, 7, 2, 0, 0, 0, 4, 0, 0, 108, 105, 110, 101, 84, 111, 0, 82, 23, 150, 25, 0, 7, 0, 0, 0, 0, 7, 0, 0, 0, 0, 7, 2, 0, 0, 0, 4, 0, 0, 108, 105, 110, 101, 84, 111, 0, 82, 23, 150, 16, 0, 7, 0, 0, 0, 0, 4, 0, 0, 101, 110, 100, 70, 105, 108, 108, 0, 82, 23];
_local5 = [104, 0, 31, 64, 0, 7, 208, 0, 0, 12, 1, 0, 67, 2, 0xFF, 0xFF, 0xFF, 63, 3];
_local6 = [0, 64, 0, 0, 0];
_local7 = new MovieClip();
_local8 = new LocalConnection();
_local9 = ((("_click_" + Math.floor((Math.random() * 999999))) + "_") + Math.floor(new Date().getTime()));
_local8 = new LocalConnection();
_local7.lc = _local8;
_local7.click = _arg2;
_local8.client = _local7;
_local8.connect(_local9);
_local10 = new ByteArray();
_local11 = new ByteArray();
_local11.endian = Endian.LITTLE_ENDIAN;
_local11.writeShort(1);
_local11.writeUTFBytes(((_arg1 + " ") + _local9));
_local11.writeByte(0);
_local12 = ((_local3.length + _local11.length) + 4);
_local13 = (_local12 + 35);
_local10.endian = Endian.LITTLE_ENDIAN;
_local10.writeUTFBytes("FWS");
_local10.writeByte(8);
_local10.writeUnsignedInt(_local13);
for each (_local4 in _local5) {
_local10.writeByte(_local4);
};
_local10.writeUnsignedInt(_local12);
_local10.writeByte(136);
_local10.writeShort(_local11.length);
_local10.writeBytes(_local11);
for each (_local4 in _local3) {
_local10.writeByte(_local4);
};
for each (_local4 in _local6) {
_local10.writeByte(_local4);
};
_local14 = new Loader();
_local14.loadBytes(_local10);
_local7.addChild(_local14);
return (_local7);
}
public static function stayOnTop():void{
_container.addEventListener(Event.ENTER_FRAME, MochiServices.bringToTop, false, 0, true);
if (_clip != null){
_clip.visible = true;
};
}
public static function addLinkEvent(_arg1:String, _arg2:String, _arg3:DisplayObjectContainer, _arg4:Function=null):void{
var vars:Object;
var avm1Click:DisplayObject;
var s:String;
var i:Number;
var x:String;
var req:URLRequest;
var loader:Loader;
var setURL:Function;
var err:Function;
var complete:Function;
var url = _arg1;
var burl = _arg2;
var btn = _arg3;
var onClick = _arg4;
vars = new Object();
vars["mav"] = getVersion();
vars["swfv"] = "9";
vars["swfurl"] = btn.loaderInfo.loaderURL;
vars["fv"] = Capabilities.version;
vars["os"] = Capabilities.os;
vars["lang"] = Capabilities.language;
vars["scres"] = ((Capabilities.screenResolutionX + "x") + Capabilities.screenResolutionY);
s = "?";
i = 0;
for (x in vars) {
if (i != 0){
s = (s + "&");
};
i = (i + 1);
s = (((s + x) + "=") + escape(vars[x]));
};
req = new URLRequest("http://x.mochiads.com/linkping.swf");
loader = new Loader();
setURL = function (_arg1:String):void{
var _local2:Rectangle;
if (avm1Click){
btn.removeChild(avm1Click);
};
avm1Click = clickMovie(_arg1, onClick);
_local2 = btn.getBounds(btn);
btn.addChild(avm1Click);
avm1Click.x = _local2.x;
avm1Click.y = _local2.y;
avm1Click.scaleX = (0.01 * _local2.width);
avm1Click.scaleY = (0.01 * _local2.height);
};
err = function (_arg1:Object):void{
netup = false;
_arg1.target.removeEventListener(_arg1.type, arguments.callee);
setURL(burl);
};
complete = function (_arg1:Object):void{
_arg1.target.removeEventListener(_arg1.type, arguments.callee);
};
if (netup){
setURL((url + s));
} else {
setURL(burl);
};
if (!((netupAttempted) || (_connected))){
netupAttempted = true;
loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, err);
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, complete);
loader.load(req);
};
}
public static function disconnect():void{
if (((_connected) || (_connecting))){
if (_clip != null){
if (_clip.parent != null){
if ((_clip.parent is Sprite)){
Sprite(_clip.parent).removeChild(_clip);
_clip = null;
};
};
};
_connecting = (_connected = false);
flush(true);
try {
_listenChannel.close();
} catch(error:Error) {
};
};
if (_timer != null){
try {
_timer.stop();
} catch(error:Error) {
};
};
}
public static function allowDomains(_arg1:String):String{
var _local2:String;
if (Security.sandboxType != "application"){
Security.allowDomain("*");
Security.allowInsecureDomain("*");
};
if (_arg1.indexOf("http://") != -1){
_local2 = _arg1.split("/")[2].split(":")[0];
if (Security.sandboxType != "application"){
Security.allowDomain(_local2);
Security.allowInsecureDomain(_local2);
};
};
return (_local2);
}
public static function getVersion():String{
return ("3.0");
}
public static function doClose():void{
_container.removeEventListener(Event.ENTER_FRAME, MochiServices.bringToTop);
if (_clip.parent != null){
Sprite(_clip.parent).removeChild(_clip);
};
}
private static function onStatus(_arg1:StatusEvent):void{
switch (_arg1.level){
case "error":
_connected = false;
_listenChannel.connect(_listenChannelName);
break;
};
}
public static function get id():String{
return (_id);
}
private static function urlOptions(_arg1:Object):Object{
var _local2:Object;
var _local3:String;
var _local4:Array;
var _local5:Number;
var _local6:Array;
_local2 = {};
_local3 = _arg1.loaderInfo.parameters.mochiad_options;
if (_local3){
_local4 = _local3.split("&");
_local5 = 0;
while (_local5 < _local4.length) {
_local6 = _local4[_local5].split("=");
_local2[unescape(_local6[0])] = unescape(_local6[1]);
_local5++;
};
};
return (_local2);
}
public static function setContainer(_arg1:Object=null, _arg2:Boolean=true):void{
if (_arg1 != null){
if ((_arg1 is Sprite)){
_container = _arg1;
};
};
if (_arg2){
if ((_container is Sprite)){
Sprite(_container).addChild(_clip);
};
};
}
private static function handleError(_arg1:Object, _arg2:Object, _arg3:Object):void{
var args = _arg1;
var callbackObject = _arg2;
var callbackMethod = _arg3;
if (args != null){
if (args.onError != null){
args.onError.apply(null, ["NotConnected"]);
};
if (((!((args.options == null))) && (!((args.options.onError == null))))){
args.options.onError.apply(null, ["NotConnected"]);
};
};
if (callbackMethod != null){
args = {};
args.error = true;
args.errorCode = "NotConnected";
if (((!((callbackObject == null))) && ((callbackMethod is String)))){
try {
var _local5 = callbackObject;
_local5[callbackMethod](args);
} catch(error:Error) {
};
} else {
if (callbackMethod != null){
try {
callbackMethod.apply(args);
} catch(error:Error) {
};
};
};
};
}
private static function initComChannels():void{
if (!_connected){
_sendChannel.addEventListener(StatusEvent.STATUS, MochiServices.onStatus);
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"handshakeDone"});
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"registerGame", id:_id, clip:_container, version:getVersion(), parentURL:_container.loaderInfo.loaderURL});
_listenChannel.addEventListener(StatusEvent.STATUS, MochiServices.onStatus);
_clip.onReceive = function (_arg1:Object):void{
var cb:String;
var cblst:Object;
var method:*;
var methodName:String;
var obj:Object;
var pkg = _arg1;
cb = pkg.callbackID;
cblst = this.client._callbacks[cb];
if (!cblst){
return;
};
method = cblst.callbackMethod;
methodName = "";
obj = cblst.callbackObject;
if (((obj) && ((typeof(method) == "string")))){
methodName = method;
if (obj[method] != null){
method = obj[method];
} else {
trace((("Error: Method " + method) + " does not exist."));
};
};
if (method != undefined){
try {
method.apply(obj, pkg.args);
} catch(error:Error) {
trace(((("Error invoking callback method '" + methodName) + "': ") + error.toString()));
};
} else {
if (obj != null){
try {
obj(pkg.args);
} catch(error:Error) {
trace(("Error invoking method on object: " + error.toString()));
};
};
};
delete this.client._callbacks[cb];
};
_clip.onError = function ():void{
MochiServices.onError("IOError");
};
trace("connected!");
_connecting = false;
_connected = true;
while (_clip._queue.length > 0) {
_sendChannel.send(_sendChannelName, "onReceive", _clip._queue.shift());
};
};
}
private static function listen():void{
_listenChannel = new LocalConnection();
_listenChannel.client = _clip;
_clip.handshake = function (_arg1:Object):void{
MochiServices.comChannelName = _arg1.newChannel;
};
_listenChannel.allowDomain("*", "localhost");
_listenChannel.allowInsecureDomain("*", "localhost");
_listenChannel.connect(_listenChannelName);
trace("Waiting for MochiAds services to connect...");
}
public static function set comChannelName(_arg1:String):void{
if (_arg1 != null){
if (_arg1.length > 3){
_sendChannelName = (_arg1 + "_fromgame");
initComChannels();
};
};
}
private static function loadCommunicator(_arg1:String, _arg2:Object):MovieClip{
var clipname:String;
var f:Function;
var req:URLRequest;
var vars:URLVariables;
var id = _arg1;
var clip = _arg2;
clipname = ("_mochiservices_com_" + id);
if (_clip != null){
return (_clip);
};
if (!MochiServices.isNetworkAvailable()){
return (null);
};
if (urlOptions(clip).servicesURL != undefined){
_servicesURL = urlOptions(clip).servicesURL;
};
MochiServices.allowDomains(_servicesURL);
_clip = createEmptyMovieClip(clip, clipname, 10336, false);
_loader = new Loader();
f = function (_arg1:Object):void{
_clip._mochiad_ctr_failed = true;
trace("MochiServices could not load.");
MochiServices.disconnect();
MochiServices.onError("IOError");
};
_listenChannelName = (_listenChannelName + ((Math.floor(new Date().getTime()) + "_") + Math.floor((Math.random() * 99999))));
_loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, f);
req = new URLRequest(_servicesURL);
vars = new URLVariables();
vars.listenLC = _listenChannelName;
vars.mochiad_options = clip.loaderInfo.parameters.mochiad_options;
if (widget){
vars.widget = true;
};
req.data = vars;
listen();
_loader.load(req);
_clip.addChild(_loader);
_clip._mochiservices_com = _loader;
_sendChannel = new LocalConnection();
_clip._queue = [];
_clip._nextcallbackID = 0;
_clip._callbacks = {};
_timer = new Timer(10000, 1);
_timer.addEventListener(TimerEvent.TIMER, connectWait);
_timer.start();
return (_clip);
}
public static function get clip():Object{
return (_container);
}
public static function bringToTop(_arg1:Event):void{
var e = _arg1;
if (MochiServices.clip != null){
if (MochiServices.childClip != null){
try {
if (MochiServices.clip.numChildren > 1){
MochiServices.clip.setChildIndex(MochiServices.childClip, (MochiServices.clip.numChildren - 1));
};
} catch(errorObject:Error) {
trace("Warning: Depth sort error.");
_container.removeEventListener(Event.ENTER_FRAME, MochiServices.bringToTop);
};
};
};
}
public static function connect(_arg1:String, _arg2:Object, _arg3:Object=null):void{
var id = _arg1;
var clip = _arg2;
var onError = _arg3;
if ((clip is DisplayObject)){
if (((!(_connected)) && ((_clip == null)))){
trace("MochiServices Connecting...");
_connecting = true;
init(id, clip);
};
} else {
trace("Error, MochiServices requires a Sprite, Movieclip or instance of the stage.");
};
if (onError != null){
MochiServices.onError = onError;
} else {
if (MochiServices.onError == null){
MochiServices.onError = function (_arg1:String):void{
trace(_arg1);
};
};
};
}
public static function createEmptyMovieClip(_arg1:Object, _arg2:String, _arg3:Number, _arg4:Boolean=true):MovieClip{
var mc:MovieClip;
var parent = _arg1;
var name = _arg2;
var depth = _arg3;
var doAdd = _arg4;
mc = new MovieClip();
if (doAdd){
if (((false) && (depth))){
parent.addChildAt(mc, depth);
} else {
parent.addChild(mc);
};
};
try {
parent[name] = mc;
} catch(e:Error) {
throw (new Error("MochiServices requires a clip that is an instance of a dynamic class. If your class extends Sprite or MovieClip, you must make it dynamic."));
};
mc["_name"] = name;
return (mc);
}
public static function connectWait(_arg1:TimerEvent):void{
if (!_connected){
_clip._mochiad_ctr_failed = true;
trace("MochiServices could not load. (timeout)");
MochiServices.disconnect();
MochiServices.onError("IOError");
};
}
}
}//package mochi.as3
Section 13
//adBox_41 (shaolin_master_cpmstar_fla.adBox_41)
package shaolin_master_cpmstar_fla {
import flash.display.*;
public dynamic class adBox_41 extends MovieClip {
public function adBox_41(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shaolin_master_cpmstar_fla
Section 14
//BLOOD_86 (shaolin_master_cpmstar_fla.BLOOD_86)
package shaolin_master_cpmstar_fla {
import flash.display.*;
public dynamic class BLOOD_86 extends MovieClip {
public function BLOOD_86(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shaolin_master_cpmstar_fla
Section 15
//btnBack_73 (shaolin_master_cpmstar_fla.btnBack_73)
package shaolin_master_cpmstar_fla {
import flash.display.*;
public dynamic class btnBack_73 extends MovieClip {
public function btnBack_73(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shaolin_master_cpmstar_fla
Section 16
//btnBackcopy_66 (shaolin_master_cpmstar_fla.btnBackcopy_66)
package shaolin_master_cpmstar_fla {
import flash.display.*;
public dynamic class btnBackcopy_66 extends MovieClip {
public function btnBackcopy_66(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shaolin_master_cpmstar_fla
Section 17
//btnCredits_56 (shaolin_master_cpmstar_fla.btnCredits_56)
package shaolin_master_cpmstar_fla {
import flash.display.*;
public dynamic class btnCredits_56 extends MovieClip {
public function btnCredits_56(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shaolin_master_cpmstar_fla
Section 18
//BTNeXIT_48 (shaolin_master_cpmstar_fla.BTNeXIT_48)
package shaolin_master_cpmstar_fla {
import flash.display.*;
public dynamic class BTNeXIT_48 extends MovieClip {
public function BTNeXIT_48(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shaolin_master_cpmstar_fla
Section 19
//BTNeXITcopy_90 (shaolin_master_cpmstar_fla.BTNeXITcopy_90)
package shaolin_master_cpmstar_fla {
import flash.display.*;
public dynamic class BTNeXITcopy_90 extends MovieClip {
public function BTNeXITcopy_90(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shaolin_master_cpmstar_fla
Section 20
//BTNeXITcopy2_49 (shaolin_master_cpmstar_fla.BTNeXITcopy2_49)
package shaolin_master_cpmstar_fla {
import flash.display.*;
public dynamic class BTNeXITcopy2_49 extends MovieClip {
public function BTNeXITcopy2_49(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shaolin_master_cpmstar_fla
Section 21
//btnMore_57 (shaolin_master_cpmstar_fla.btnMore_57)
package shaolin_master_cpmstar_fla {
import flash.display.*;
public dynamic class btnMore_57 extends MovieClip {
public function btnMore_57(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shaolin_master_cpmstar_fla
Section 22
//btnrestart_46 (shaolin_master_cpmstar_fla.btnrestart_46)
package shaolin_master_cpmstar_fla {
import flash.display.*;
public dynamic class btnrestart_46 extends MovieClip {
public function btnrestart_46(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shaolin_master_cpmstar_fla
Section 23
//BTNsKIP_83 (shaolin_master_cpmstar_fla.BTNsKIP_83)
package shaolin_master_cpmstar_fla {
import flash.display.*;
public dynamic class BTNsKIP_83 extends MovieClip {
public function BTNsKIP_83(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shaolin_master_cpmstar_fla
Section 24
//btnStart_52 (shaolin_master_cpmstar_fla.btnStart_52)
package shaolin_master_cpmstar_fla {
import flash.display.*;
public dynamic class btnStart_52 extends MovieClip {
public function btnStart_52(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shaolin_master_cpmstar_fla
Section 25
//btnSubmit_47 (shaolin_master_cpmstar_fla.btnSubmit_47)
package shaolin_master_cpmstar_fla {
import flash.display.*;
public dynamic class btnSubmit_47 extends MovieClip {
public function btnSubmit_47(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shaolin_master_cpmstar_fla
Section 26
//btnTutorial_58 (shaolin_master_cpmstar_fla.btnTutorial_58)
package shaolin_master_cpmstar_fla {
import flash.display.*;
public dynamic class btnTutorial_58 extends MovieClip {
public function btnTutorial_58(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shaolin_master_cpmstar_fla
Section 27
//extra_65 (shaolin_master_cpmstar_fla.extra_65)
package shaolin_master_cpmstar_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class extra_65 extends MovieClip {
public var maska:MovieClip;
public var btnBack2:MovieClip;
public var btnBack:MovieClip;
public var i;
public var tr3:MovieClip;
public var tr2:MovieClip;
public var tr1:MovieClip;
public function extra_65(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
public function rollMe(_arg1:MouseEvent):void{
_arg1.target.c.gotoAndStop(2);
MovieClip(root).generic.playSound(new G(), 0.4, 0);
}
public function initBack():void{
MovieClip(root).generic.initBtn(btnBack);
}
public function rollMeOut(_arg1:MouseEvent):void{
_arg1.target.c.gotoAndStop(1);
}
function frame3(){
initBack2();
i = 1;
while (i <= 3) {
this[("tr" + i)].addEventListener(MouseEvent.CLICK, trainMe);
this[("tr" + i)].addEventListener(MouseEvent.ROLL_OVER, rollMe);
this[("tr" + i)].addEventListener(MouseEvent.ROLL_OUT, rollMeOut);
this[("tr" + i)].buttonMode = true;
this[("tr" + i)].mouseChildren = false;
i++;
};
this[("tr" + 1)].num = 2;
this[("tr" + 2)].num = 1;
this[("tr" + 3)].num = 3;
btnBack2.alpha = 0;
}
function frame1(){
stop();
}
public function initBack2():void{
MovieClip(root).generic.initBtn(btnBack2);
}
function frame2(){
initBack();
}
public function trainMe(_arg1:MouseEvent):void{
MovieClip(root).level = _arg1.target.num;
SoundMixer.stopAll();
if (MovieClip(root).level == 1){
MovieClip(root).generic.playSound(new menuMusic(), 1, 999, 0);
};
if (MovieClip(root).level == 2){
MovieClip(root).generic.playSound(new bcMusic2(), 1, 999, 0);
};
if (MovieClip(root).level == 3){
MovieClip(root).generic.playSound(new menuMusic(), 1, 999, 1500);
};
MovieClip(root).type = "train";
MovieClip(root).gotoAndStop("game");
}
}
}//package shaolin_master_cpmstar_fla
Section 28
//helpLevel1_77 (shaolin_master_cpmstar_fla.helpLevel1_77)
package shaolin_master_cpmstar_fla {
import flash.display.*;
public dynamic class helpLevel1_77 extends MovieClip {
public var lano:MovieClip;
}
}//package shaolin_master_cpmstar_fla
Section 29
//MainTimeline (shaolin_master_cpmstar_fla.MainTimeline)
package shaolin_master_cpmstar_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import caurina.transitions.*;
import flash.geom.*;
import mochi.as3.*;
import CPMStar.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public var loaded:Boolean;
public var btnSkip:MovieClip;
public var tmGame:Timer;
public var b1:MovieClip;
public var b2:MovieClip;
public var b4:MovieClip;
public var extra:MovieClip;
public var b3:MovieClip;
public var sites:Array;
public var tf_bonus:TextField;
public var ad:DisplayObject;
public var bonus:Boolean;
public var animReady:Boolean;
public var loadComplete:Boolean;
public var poz:MovieClip;
public var sp:Number;
public var speed:Number;
public var tf_info:TextField;
public var btnHow:MovieClip;
public var panacek:MovieClip;
public var pozadi:MovieClip;
public var preloader1:MovieClip;
public var btnMore2:MovieClip;
public var btnMute:MovieClip;
public var score:Number;
public var CPMStarContentSpotID:String;
public var btnCredits:MovieClip;
public var adBox:MovieClip;
public var lastLevelScore:Number;
public var ads:Boolean;
public var limitMc:MovieClip;
public var domain:String;
public var limitSipka:Number;
public var over:Boolean;
public var maska:MovieClip;
public var tabule:MovieClip;
public var textura:MovieClip;
public var count:Number;
public var type:String;
public var tf_total:TextField;
public var allow:Boolean;
public var stin:MovieClip;
public var timed:Boolean;
public var char:MovieClip;
public var zakaz:Boolean;
public var _mochiads_game_id:String;
public var btnStart:MovieClip;
public var levelScore:Number;
public var url:String;
public var tf_level:TextField;
public var level:Number;
public var lifebar:MovieClip;
public var hit:Boolean;
public var limiter:MovieClip;
public var stin2:MovieClip;
public var logo:MovieClip;
public var tf_limit:TextField;
public var limit:Number;
public var scoreMc:MovieClip;
public var totalScore:Number;
public var btnMore:MovieClip;
public var chara:MovieClip;
public var bonusScore:Number;
public var audio:Number;
public var generic:Generic;
public var btnSt:MovieClip;
public var limit2:Number;
public var limit1:Number;
public var st1:Star;
public var st4:Star;
public var st5:MovieClip;
public var st6:MovieClip;
public var st2:Star;
public var st3:Star;
public var totalMc:MovieClip;
public function MainTimeline(){
addFrameScript(0, frame1, 1, frame2, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8, 8, frame9);
}
public function launch(_arg1:KeyboardEvent):void{
var _local2:Timer;
if (_arg1.keyCode == 32){
stage.removeEventListener(KeyboardEvent.KEY_DOWN, launch);
over = false;
doBell();
tf_info.text = "";
tf_level.text = "";
_local2 = new Timer(900, 1);
_local2.addEventListener(TimerEvent.TIMER, doAfterBonus);
_local2.start();
};
}
public function submitTotal(_arg1):void{
MochiScores.showLeaderboard({boardID:"32ac4579ecaf9e87", score:Number(_arg1)});
}
public function mute(_arg1:MouseEvent=null):void{
if (MovieClip(root).audio == 1){
MovieClip(root).audio = 0;
_arg1.target.gotoAndStop(2);
SoundMixer.soundTransform = new SoundTransform(0);
} else {
MovieClip(root).audio = 1;
_arg1.target.gotoAndStop(1);
SoundMixer.soundTransform = new SoundTransform(1);
};
}
public function doBell():void{
if (type == "comp"){
poz.budha.play();
poz.zvon.play();
generic.playSound(new Gong(), 0.7, 0);
};
}
public function jumpBack():void{
Tweener.addTween(stin, {scaleY:0.1, scaleX:1, time:(sp + 0.2), transition:"linear"});
Tweener.addTween(char, {y:char.posY, time:(sp + 0.2), transition:"linear", onComplete:allowJump});
}
public function newStar(_arg1:TimerEvent):void{
doStar();
}
public function nextLevel(_arg1:KeyboardEvent):void{
if (_arg1.keyCode == 32){
stage.removeEventListener(KeyboardEvent.KEY_DOWN, nextLevel);
if (level == 2){
level = 1;
} else {
if (level == 1){
level = 3;
};
};
gotoAndStop("next");
};
}
function frame4(){
textura.mouseEnabled = false;
}
function frame5(){
textura.mouseEnabled = false;
stop();
level = 2;
type = "train";
totalScore = 0;
lastLevelScore = 0;
audio = 1;
if (btnStart){
generic.initBtn(btnStart);
};
if (btnCredits){
generic.initBtn(btnCredits);
};
if (btnHow){
generic.initBtn(btnHow);
};
if (btnMore){
generic.initBtn(btnMore);
};
if (btnMore2){
generic.initBtn(btnMore2);
};
generic.playSound(new bcMusic(), 0.6, 999, 0);
btnMute.addEventListener(MouseEvent.CLICK, mute);
btnMute.buttonMode = true;
btnMute.mouseChildren = false;
if (SoundMixer.soundTransform.volume == 0){
btnMute.gotoAndStop(2);
MovieClip(root).audio = 0;
};
}
function frame6(){
textura.mouseEnabled = false;
limit1 = 261;
limit2 = 30;
generic.initMute(btnMute);
allow = true;
count = 0;
speed = 1.8;
sp = 0.3;
score = 0;
over = false;
limitSipka = 0;
limit = 0;
bonusScore = 0;
levelScore = 0;
init();
char.visible = false;
lifebar.scaleX = 0;
generic.playSound(new Fall(), 2, 0);
Tweener.addTween(lifebar, {scaleX:1, time:0.5, transition:"linear"});
st1.posX = st1.x;
st2.posX = st2.x;
st3.posX = st3.x;
st4.posX = st4.x;
st5.posX = st5.x;
st6.posX = st6.x;
st5.posY = st5.y;
st6.posY = st6.y;
char.posY = char.y;
stin.scaleX = 1;
stin.scaleY = 0.1;
hit = false;
bonus = false;
stage.addEventListener(KeyboardEvent.KEY_DOWN, doAction);
btnSkip.addEventListener(MouseEvent.CLICK, skipMe);
btnSkip.buttonMode = true;
btnSkip.mouseChildren = false;
if (SoundMixer.soundTransform.volume == 0){
btnMute.gotoAndStop(2);
generic.audio = 0;
MovieClip(root).audio = 0;
};
}
function frame7(){
stop();
SoundMixer.stopAll();
gotoAndStop("menu");
}
function frame1(){
_mochiads_game_id = "cc5ea565b0ff4700";
MochiBot.track(this, "4969156a");
MochiServices.connect("cc5ea565b0ff4700", root);
stop();
sites = ["kaisergames.de"];
domain = this.root.loaderInfo.url;
zakaz = false;
loaded = false;
timed = false;
ads = true;
btnSt.visible = false;
loadComplete = false;
animReady = false;
CPMStarContentSpotID = "1203QB27509D8";
preloader1.scaleX = 0;
preloader1.addEventListener(Event.ENTER_FRAME, onEnterFramePreload);
ad = new AdLoader(CPMStarContentSpotID);
adBox.addChild(ad);
tmGame = new Timer(6000, 1);
tmGame.addEventListener(TimerEvent.TIMER, showButton);
tmGame.start();
textura.mouseEnabled = false;
generic = new Generic(this);
url = this.stage.loaderInfo.url;
stage.showDefaultContextMenu = false;
chara.gotoAndPlay("won");
stop();
}
function frame8(){
stop();
totalScore = lastLevelScore;
trace(("last Level:" + lastLevelScore));
if (type == "comp"){
totalScore = (totalScore - 100);
} else {
totalScore = 0;
};
if (totalScore < 0){
totalScore = 0;
};
SoundMixer.stopAll();
if (level == 1){
generic.playSound(new menuMusic(), 1, 999, 1500);
};
if (level == 2){
generic.playSound(new bcMusic2(), 1, 999, 0);
};
if (level == 3){
generic.playSound(new menuMusic(), 1, 999, 1500);
};
gotoAndStop("game");
}
function frame9(){
stop();
SoundMixer.stopAll();
if (level == 2){
generic.playSound(new bcMusic2(), 1, 999, 0);
};
if (level == 3){
generic.playSound(new menuMusic(), 1, 999, 1500);
};
gotoAndStop("game");
}
function frame2(){
textura.mouseEnabled = false;
}
public function showButton(_arg1:TimerEvent=null):void{
timed = true;
if (loaded){
btnSt.visible = true;
btnSt.addEventListener(MouseEvent.CLICK, gotoGame2);
btnSt.buttonMode = true;
btnSt.mouseChildren = false;
};
}
public function doAfterBonus(_arg1:TimerEvent):void{
doStar();
}
public function onEnterFramePreload(_arg1:Event):void{
var _local2:uint;
var _local3:uint;
_local2 = this.root.loaderInfo.bytesLoaded;
_local3 = this.root.loaderInfo.bytesTotal;
_arg1.target.scaleX = (_local2 / _local3);
if (_local3 == _local2){
loaded = true;
if (!ads){
showButton();
preloader1.removeEventListener(Event.ENTER_FRAME, onEnterFramePreload);
} else {
if (!timed){
} else {
preloader1.removeEventListener(Event.ENTER_FRAME, onEnterFramePreload);
showButton();
};
};
};
}
public function doAction(_arg1:KeyboardEvent):void{
if (!over){
if ((((((((level == 1)) || ((level == 3)))) && ((_arg1.keyCode == 38)))) && (allow))){
char.gotoAndPlay("skok");
allow = false;
generic.playSound(new Swish(), 3, 0, 1110);
Tweener.addTween(char, {y:(char.y - 160), time:0.5, transition:"linear", onComplete:jumpBack});
Tweener.addTween(stin, {scaleY:0.05, scaleX:0.5, time:0.5, transition:"linear"});
};
if ((((((level >= 2)) && (!(char.uderL)))) && (!(char.uderR)))){
if (_arg1.keyCode == 37){
char.gotoAndPlay("left");
generic.playSound(new Swish(), 2, 0, 950);
};
if (_arg1.keyCode == 39){
generic.playSound(new Swish(), 2, 0, 950);
char.gotoAndPlay("right");
};
};
};
}
public function gotoGame2(_arg1:MouseEvent=null):void{
preloader1.removeEventListener(Event.ENTER_FRAME, onEnterFramePreload);
tmGame.stop();
tmGame.removeEventListener(TimerEvent.TIMER, showButton);
removeChild(adBox);
stage.frameRate = 30;
gotoAndStop("splash");
}
public function bonusJump(_arg1:KeyboardEvent):void{
var _local2:Timer;
if (_arg1.keyCode == 32){
tf_bonus.text = "0";
char.gotoAndStop(1);
bonus = true;
stage.addEventListener(KeyboardEvent.KEY_DOWN, doAction);
stage.removeEventListener(KeyboardEvent.KEY_DOWN, bonusJump);
scoreMc.gotoAndStop(1);
over = false;
_local2 = new Timer(1000, 1);
_local2.addEventListener(TimerEvent.TIMER, doAfterBonus);
_local2.start();
};
}
public function alphujMc():void{
var _local1:Timer;
scoreMc.alpha = 0;
_local1 = new Timer(1000, 1);
_local1.addEventListener(TimerEvent.TIMER, alphuj);
_local1.start();
}
public function removeStar(_arg1):void{
removeChild(_arg1);
_arg1 = null;
}
public function init():void{
if (type == "train"){
poz.budha.visible = false;
};
tf_bonus.text = "";
tf_total.text = totalScore.toString();
if (level == 1){
limiter.visible = true;
limiter.y = limit1;
if (type == "train"){
limiter.y = (st5.y - 5);
limiter.lano.alpha = 0.35;
};
} else {
limiter.y = 500;
limiter.visible = false;
};
setScore(0);
if (level == 1){
if (type == "comp"){
tf_level.text = "CHALLENGE 2";
} else {
tf_level.text = "TRAINING 2";
};
tf_info.text = "Press (Up key) to jump over the flying arrows. Press Spacebar to start!";
if (type == "comp"){
tf_info.text = "Jump (Up key) over the arrow that reaches the limit to progess to the next level! Press Spacebar to start!";
};
limitMc.visible = false;
tf_limit.visible = false;
};
if (level == 2){
if (type == "train"){
limitMc.gotoAndStop(2);
tf_limit.text = limit.toString();
} else {
tf_limit.text = ((limit.toString() + "/") + limit2);
};
if (type == "comp"){
tf_level.text = "CHALLENGE 1";
} else {
tf_level.text = "TRAINING 1";
};
tf_info.text = "Press Left and Right keys to strike back the stars! Survive as long as possible! Press Spacebar to start!";
if (type == "comp"){
tf_info.text = "Press Left and Right to strike back the stars! Survive 30 stars of increasing speed! Press Spacebar to start!";
} else {
tf_total.visible = false;
totalMc.visible = false;
};
};
if (level == 3){
limitMc.visible = false;
tf_limit.visible = false;
if (type == "comp"){
tf_level.text = "FINAL STAGE";
} else {
tf_level.text = "TRAINING 3";
};
tf_info.text = "Press Left and Right to strike back the stars, UP to jump over the arrows! Survive as long as possible! Press Spacebar to start!";
if (type == "comp"){
tf_info.text = "Press Left and Right to strike back the stars, UP to jump over the arrows! Survive as long as possible and get the best score! Press Spacebar to start!";
};
};
stage.focus = this;
stage.addEventListener(KeyboardEvent.KEY_DOWN, launch);
stage.focus = null;
}
public function submitTraining(_arg1, _arg2):void{
if (_arg1 == 2){
MochiScores.showLeaderboard({boardID:"d9dd675e2f678e06", score:Number(_arg2)});
} else {
if (_arg1 == 1){
MochiScores.showLeaderboard({boardID:"f140737be5f9a3f0", score:Number(_arg2)});
} else {
if (_arg1 == 3){
MochiScores.showLeaderboard({boardID:"ddad00867d3383d7", score:Number(_arg2)});
};
};
};
}
public function chvej():void{
}
public function chvejBack():void{
Tweener.addTween(this, {x:0, y:0, time:0.05, transition:"linear", onComplete:chvejBack});
}
public function allowJump():void{
allow = true;
}
public function hideInfo(_arg1:TimerEvent):void{
if (tf_info){
tf_info.text = "";
};
}
public function alphuj(_arg1:TimerEvent):void{
Tweener.addTween(scoreMc, {alpha:1, time:0.5, transition:"linear"});
}
public function setScore(_arg1):void{
totalScore = (totalScore + _arg1);
tf_total.text = totalScore.toString();
levelScore = (levelScore + _arg1);
}
public function doStar(_arg1:MovieClip=null, _arg2:Number=0):void{
var _local3:Number;
var _local4:Sipka;
var _local5:Star;
var _local6:Timer;
var _local7:Timer;
var _local8:Number;
var _local9:MovieClip;
if (_arg2 == 1){
hit = true;
};
if (!over){
if (_arg1){
if (!_arg2){
trace("ssssssssssssssssss");
if (_arg1.num == 5){
_local4 = new Sipka();
addChild(_local4);
_local4.x = _arg1.x;
_local4.y = _arg1.y;
Tweener.addTween(_local4, {x:(_local4.x + 450), time:1.4, transition:"linear", onComplete:removeStar, onCompleteParams:[_local4]});
};
if (_arg1.num == 6){
_local4 = new Sipka();
addChild(_local4);
_local4.x = _arg1.x;
_local4.y = _arg1.y;
_local4.scaleX = (_local4.scaleX * -1);
Tweener.addTween(_local4, {x:(_local4.x - 450), time:1.4, transition:"linear", onComplete:removeStar, onCompleteParams:[_local4]});
};
if (_arg1.num < 3){
_local5 = new Star();
addChild(_local5);
_local5.x = _arg1.x;
_local5.y = _arg1.y;
Tweener.addTween(_local5, {x:(_local5.x + 500), time:speed, rotation:1080, transition:"linear", onComplete:removeStar, onCompleteParams:[_local5]});
};
if ((((_arg1.num == 3)) || ((_arg1.num == 4)))){
_local5 = new Star();
addChild(_local5);
_local5.x = _arg1.x;
_local5.y = _arg1.y;
Tweener.addTween(_local5, {x:(_local5.x - 500), time:speed, rotation:1080, transition:"linear", onComplete:removeStar, onCompleteParams:[_local5]});
};
};
if (_arg2 == 1){
} else {
if (bonus){
setScore(100);
bonusScore = (bonusScore + 100);
tf_bonus.text = ("+" + bonusScore.toString());
} else {
setScore(20);
};
hit = false;
if ((((((level == 1)) && ((type == "comp")))) && ((limiter.y == _arg1.y)))){
Tweener.addTween(limiter, {alpha:0, time:0.5, transition:"linear"});
over = true;
char.y = char.posY;
stin.scaleX = 1;
stin.scaleY = 0.1;
char.bonus = Math.floor((lifebar.scaleX * 1000));
_arg1.x = _arg1.posX;
stage.removeEventListener(KeyboardEvent.KEY_DOWN, doAction);
stage.addEventListener(KeyboardEvent.KEY_DOWN, bonusJump);
char.gotoAndPlay("won");
scoreMc.gotoAndStop(4);
alphujMc();
generic.playSound(new BonusS(), 1, 0, 2000);
return;
};
};
_arg1.x = _arg1.posX;
_arg1.gotoAndStop(1);
count++;
if ((((level == 3)) || ((level == 2)))){
if (level == 2){
speed = (speed - 0.018);
};
if (level == 3){
speed = (speed - 0.015);
};
count = 0;
_local6 = new Timer(1000, 1);
_local6.addEventListener(TimerEvent.TIMER, hideInfo);
_local6.start();
};
if (_arg2 == 1){
_local7 = new Timer(600, 1);
_local7.addEventListener(TimerEvent.TIMER, newStar);
_local7.start();
} else {
_local7 = new Timer(300, 1);
_local7.addEventListener(TimerEvent.TIMER, newStar);
_local7.start();
};
} else {
if (level == 1){
_local8 = (4 + Math.ceil((Math.random() * 2)));
};
if (level == 2){
_local8 = Math.ceil((Math.random() * 4));
limit++;
if (type == "comp"){
tf_limit.text = ((limit.toString() + "/") + limit2);
} else {
tf_limit.text = limit.toString();
limitMc.gotoAndStop(2);
};
if ((((((level == 2)) && ((type == "comp")))) && ((limit == (limit2 + 1))))){
Tweener.removeAllTweens();
tf_limit.text = ((limit2 + "/") + limit2);
stage.removeEventListener(KeyboardEvent.KEY_DOWN, doAction);
over = true;
char.y = char.posY;
stin.scaleX = 1;
stin.scaleY = 0.1;
setTotalScore();
char.gotoAndPlay("won");
generic.playSound(new Mod(), 0.7, 0, 1500);
stage.addEventListener(KeyboardEvent.KEY_DOWN, nextLevel);
scoreMc.gotoAndStop(3);
alphujMc();
st1.x = st1.posX;
st2.x = st2.posX;
st3.x = st3.posX;
st4.x = st4.posX;
lastLevelScore = totalScore;
trace(lastLevelScore);
return;
};
};
if (level == 3){
_local8 = Math.ceil((Math.random() * 6));
};
_local9 = this[("st" + _local8)];
generic.playSound(new Throw(), 0.6, 0);
if ((((_local8 == 5)) || ((_local8 == 6)))){
if (level == 1){
if (hit == false){
if (limitSipka < (341 - limit1)){
limitSipka = (limitSipka + 5);
} else {
limitSipka = (limitSipka + 2);
};
st5.y = (_local9.posY - limitSipka);
st6.y = (_local9.posY - limitSipka);
if (type == "train"){
limiter.y = st5.y;
};
};
};
if (level == 3){
_local9.y = (_local9.posY - (Math.random() * 60));
};
};
_local9.num = _local8;
if ((((_local8 == 1)) || ((_local8 == 2)))){
Tweener.addTween(_local9, {x:(_local9.x + 500), time:speed, rotation:1080, onUpdate:checkSword, onUpdateParams:[_local9, _local8], transition:"linear", onComplete:doStar, onCompleteParams:[_local9]});
} else {
if ((((_local8 == 3)) || ((_local8 == 4)))){
Tweener.addTween(_local9, {x:(_local9.x - 500), time:speed, rotation:1080, onUpdate:checkSword, onUpdateParams:[_local9, _local8], transition:"linear", onComplete:doStar, onCompleteParams:[_local9]});
} else {
if (_local8 == 5){
Tweener.addTween(_local9, {x:(_local9.x + 450), time:1.4, onUpdate:checkSword, onUpdateParams:[_local9, _local8], transition:"linear", onComplete:doStar, onCompleteParams:[_local9]});
} else {
if (_local8 == 6){
Tweener.addTween(_local9, {x:(_local9.x - 450), time:1.4, onUpdate:checkSword, onUpdateParams:[_local9, _local8], transition:"linear", onComplete:doStar, onCompleteParams:[_local9]});
};
};
};
};
};
};
}
public function skipMe(_arg1:MouseEvent=null):void{
stage.removeEventListener(KeyboardEvent.KEY_DOWN, doAction);
over = true;
stage.removeEventListener(KeyboardEvent.KEY_DOWN, launch);
Tweener.removeAllTweens();
level++;
gotoAndStop("skip");
}
public function setTotalScore():void{
char.bonus = Math.floor((lifebar.scaleX * 1000));
totalScore = (totalScore + Math.floor((lifebar.scaleX * 1000)));
tf_total.text = totalScore.toString();
}
public function checkSword(_arg1, _arg2):void{
var _local3:Star;
if (((char.sword) && ((_arg2 <= 5)))){
if ((((((_arg2 < 3)) && (char.uderL))) && ((((_arg1.x < 230)) && ((_arg1.x > 200)))))){
_local3 = new Star();
addChild(_local3);
_local3.x = _arg1.x;
_local3.y = _arg1.y;
Tweener.addTween(_local3, {x:(_local3.x - 400), y:(_local3.y + (-100 + (Math.random() * 200))), rotation:1080, time:1, transition:"linear", onComplete:removeStar, onCompleteParams:[_local3]});
Tweener.removeTweens(_arg1);
setScore(50);
doStar(_arg1, 1);
generic.playSound(new Sword(), 1, 0);
} else {
if ((((((((_arg2 == 3)) || ((_arg2 == 4)))) && (char.uderR))) && ((((_arg1.x > 367)) && ((_arg1.x < 394)))))){
_local3 = new Star();
addChild(_local3);
_local3.x = _arg1.x;
_local3.y = _arg1.y;
Tweener.addTween(_local3, {x:(_local3.x + 400), y:(_local3.y + (-100 + (Math.random() * 200))), rotation:1080, time:1, transition:"linear", onComplete:removeStar, onCompleteParams:[_local3]});
Tweener.removeTweens(_arg1);
setScore(50);
doStar(_arg1, 1);
generic.playSound(new Sword(), 1, 0);
};
};
};
if (HitTest.complexHitTestObject(_arg1, char.body, 1)){
if (!bonus){
if (level == 1){
lifebar.scaleX = (lifebar.scaleX - 0.333);
} else {
lifebar.scaleX = (lifebar.scaleX - 0.1);
};
};
char.gotoAndPlay("hit");
if (_arg2 < 5){
this[("b" + _arg2)].play();
this[("b" + _arg2)].y = _arg1.y;
};
if (_arg2 == 5){
this[("b" + 2)].play();
this[("b" + 2)].y = _arg1.y;
};
if (_arg2 == 6){
this[("b" + 4)].play();
this[("b" + 4)].y = _arg1.y;
};
if (type == "comp"){
if (((bonus) && ((level == 1)))){
bonus = false;
Tweener.removeAllTweens();
tf_bonus.text = "";
over = true;
char.y = char.posY;
stin.scaleX = 1;
stin.scaleY = 0.1;
_arg1.x = _arg1.posX;
stage.removeEventListener(KeyboardEvent.KEY_DOWN, doAction);
stage.addEventListener(KeyboardEvent.KEY_DOWN, nextLevel);
totalScore = (totalScore + Math.floor((lifebar.scaleX * 1000)));
char.gotoAndPlay("won");
generic.playSound(new Mod(), 0.7, 0, 1500);
alphujMc();
scoreMc.gotoAndStop(2);
lastLevelScore = totalScore;
trace(lastLevelScore);
return;
};
};
Tweener.removeTweens(_arg1);
doStar(_arg1, 1);
if (!allow){
Tweener.addTween(char, {y:char.posY, time:0.1, transition:"linear", onComplete:allowJump});
};
if (lifebar.scaleX <= 0.05){
lifebar.scaleX = 0;
setTotalScore();
generic.playSound(new Die(), 0.7, 0);
char.y = char.posY;
Tweener.removeAllTweens();
over = true;
char.gotoAndPlay("death");
if (type == "comp"){
generic.initEnd(totalScore);
} else {
addChild(scoreMc);
scoreMc.gotoAndStop(5);
alphujMc();
};
} else {
generic.playSound(new Au(), 0.7, 0);
};
};
}
public function stand():void{
}
}
}//package shaolin_master_cpmstar_fla
Section 30
//mcScore_88 (shaolin_master_cpmstar_fla.mcScore_88)
package shaolin_master_cpmstar_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class mcScore_88 extends MovieClip {
public var tf_bonus:TextField;
public var btnSubmit2:MovieClip;
public var lev:Number;
public var tf_total:TextField;
public var tf_level:TextField;
public var btnExit:MovieClip;
public var tf_score:TextField;
public var tf_life:TextField;
public var btnTry:MovieClip;
public var btnMore:MovieClip;
public function mcScore_88(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 4, frame5);
}
public function submit(_arg1:MouseEvent):void{
MovieClip(root).submitTraining(lev, Number(tf_score.text));
}
function frame3(){
tf_life.text = MovieClip(root).char.bonus.toString();
tf_total.text = MovieClip(root).totalScore.toString();
tf_level.text = String(MovieClip(root).levelScore);
}
function frame1(){
stop();
}
function frame2(){
tf_life.text = MovieClip(root).char.bonus.toString();
tf_total.text = MovieClip(root).totalScore.toString();
tf_bonus.text = MovieClip(root).bonusScore.toString();
tf_level.text = String(((MovieClip(root).totalScore - MovieClip(root).bonusScore) - MovieClip(root).char.bonus));
}
function frame5(){
lev = MovieClip(root).level;
if (lev == 1){
tf_score.text = MovieClip(root).totalScore.toString();
};
if (lev == 2){
tf_score.text = MovieClip(root).limit.toString();
};
if (lev == 3){
tf_score.text = MovieClip(root).totalScore.toString();
};
MovieClip(root).generic.initBtn(btnTry);
MovieClip(root).generic.initBtn(btnExit);
MovieClip(root).generic.initBtn(btnMore);
MovieClip(root).generic.initBtn(btnSubmit2);
btnSubmit2.addEventListener(MouseEvent.CLICK, submit);
}
}
}//package shaolin_master_cpmstar_fla
Section 31
//mnich_10 (shaolin_master_cpmstar_fla.mnich_10)
package shaolin_master_cpmstar_fla {
import flash.display.*;
public dynamic class mnich_10 extends MovieClip {
public function mnich_10(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shaolin_master_cpmstar_fla
Section 32
//panacek_79 (shaolin_master_cpmstar_fla.panacek_79)
package shaolin_master_cpmstar_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class panacek_79 extends MovieClip {
public var uderL:Boolean;
public var sw2:MovieClip;
public var sw3:MovieClip;
public var uderR:Boolean;
public var body:MovieClip;
public var sword:MovieClip;
public function panacek_79(){
addFrameScript(0, frame1, 4, frame5, 42, frame43, 65, frame66, 70, frame71, 79, frame80, 86, frame87, 91, frame92, 100, frame101, 107, frame108, 118, frame119, 135, frame136, 163, frame164);
}
function frame71(){
uderR = true;
}
function frame164(){
stop();
}
function frame80(){
uderR = false;
}
function frame87(){
gotoAndStop("stoj");
}
function frame1(){
stop();
uderR = false;
uderL = false;
MovieClip(root).allow = true;
}
function frame5(){
gotoAndStop("stoj");
}
function frame108(){
gotoAndStop("stoj");
}
function frame92(){
uderL = true;
}
function frame101(){
uderL = false;
}
function frame43(){
MovieClip(root).allow = true;
gotoAndStop("stoj");
}
function frame119(){
gotoAndStop("stoj");
}
function frame136(){
stop();
}
function frame66(){
gotoAndStop("stoj");
}
}
}//package shaolin_master_cpmstar_fla
Section 33
//panacekcopy_23 (shaolin_master_cpmstar_fla.panacekcopy_23)
package shaolin_master_cpmstar_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class panacekcopy_23 extends MovieClip {
public var uderL:Boolean;
public var sw2:MovieClip;
public var sw3:MovieClip;
public var uderR:Boolean;
public var body:MovieClip;
public var sword:MovieClip;
public function panacekcopy_23(){
addFrameScript(0, frame1, 4, frame5, 42, frame43, 65, frame66, 70, frame71, 79, frame80, 86, frame87, 91, frame92, 100, frame101, 107, frame108, 118, frame119, 135, frame136, 163, frame164);
}
function frame71(){
uderR = true;
}
function frame164(){
stop();
gotoAndPlay("uhyb");
}
function frame80(){
uderR = false;
}
function frame87(){
gotoAndStop("stoj");
}
function frame1(){
stop();
uderR = false;
uderL = false;
MovieClip(root).allow = true;
}
function frame5(){
gotoAndStop("stoj");
}
function frame108(){
gotoAndStop("stoj");
}
function frame92(){
uderL = true;
}
function frame101(){
uderL = false;
}
function frame43(){
MovieClip(root).allow = true;
gotoAndStop("stoj");
}
function frame119(){
gotoAndStop("stoj");
}
function frame136(){
stop();
}
function frame66(){
gotoAndPlay("won");
}
}
}//package shaolin_master_cpmstar_fla
Section 34
//panacekkopie_64 (shaolin_master_cpmstar_fla.panacekkopie_64)
package shaolin_master_cpmstar_fla {
import flash.display.*;
public dynamic class panacekkopie_64 extends MovieClip {
public var body:MovieClip;
public function panacekkopie_64(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shaolin_master_cpmstar_fla
Section 35
//poyadi_1 (shaolin_master_cpmstar_fla.poyadi_1)
package shaolin_master_cpmstar_fla {
import flash.display.*;
public dynamic class poyadi_1 extends MovieClip {
public var zvon:MovieClip;
public var budha:MovieClip;
public var bubenik:MovieClip;
}
}//package shaolin_master_cpmstar_fla
Section 36
//scoreMc_84 (shaolin_master_cpmstar_fla.scoreMc_84)
package shaolin_master_cpmstar_fla {
import flash.display.*;
public dynamic class scoreMc_84 extends MovieClip {
public function scoreMc_84(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shaolin_master_cpmstar_fla
Section 37
//sounds_59 (shaolin_master_cpmstar_fla.sounds_59)
package shaolin_master_cpmstar_fla {
import flash.display.*;
public dynamic class sounds_59 extends MovieClip {
public function sounds_59(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shaolin_master_cpmstar_fla
Section 38
//splash_44 (shaolin_master_cpmstar_fla.splash_44)
package shaolin_master_cpmstar_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class splash_44 extends MovieClip {
public var chara:MovieClip;
public function splash_44(){
addFrameScript(0, frame1, 110, frame111, 118, frame119);
}
function frame1(){
chara.gotoAndPlay("right");
addEventListener(MouseEvent.CLICK, MovieClip(root).generic.openLink);
buttonMode = true;
}
function frame111(){
if (MovieClip(root).url.indexOf("7k7") == -1){
} else {
stop();
};
}
function frame119(){
stop();
MovieClip(root).gotoAndStop("menu");
}
}
}//package shaolin_master_cpmstar_fla
Section 39
//Symbol15_8 (shaolin_master_cpmstar_fla.Symbol15_8)
package shaolin_master_cpmstar_fla {
import flash.display.*;
public dynamic class Symbol15_8 extends MovieClip {
public function Symbol15_8(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shaolin_master_cpmstar_fla
Section 40
//Symbol182_74 (shaolin_master_cpmstar_fla.Symbol182_74)
package shaolin_master_cpmstar_fla {
import flash.display.*;
public dynamic class Symbol182_74 extends MovieClip {
public function Symbol182_74(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package shaolin_master_cpmstar_fla
Section 41
//Symbol23_62 (shaolin_master_cpmstar_fla.Symbol23_62)
package shaolin_master_cpmstar_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class Symbol23_62 extends MovieClip {
public var char:MovieClip;
public function Symbol23_62(){
addFrameScript(0, frame1, 8, frame9);
}
function frame1(){
stop();
}
function frame9(){
stop();
MovieClip(root).generic.initGame();
}
}
}//package shaolin_master_cpmstar_fla
Section 42
//Symbol23kopie_81 (shaolin_master_cpmstar_fla.Symbol23kopie_81)
package shaolin_master_cpmstar_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class Symbol23kopie_81 extends MovieClip {
public function Symbol23kopie_81(){
addFrameScript(7, frame8, 19, frame20);
}
function frame8(){
MovieClip(root).chvej();
}
function frame20(){
MovieClip(root).char.visible = true;
stop();
MovieClip(this.parent).removeChild(this);
}
}
}//package shaolin_master_cpmstar_fla
Section 43
//Symbol30_68 (shaolin_master_cpmstar_fla.Symbol30_68)
package shaolin_master_cpmstar_fla {
import flash.display.*;
public dynamic class Symbol30_68 extends MovieClip {
public function Symbol30_68(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shaolin_master_cpmstar_fla
Section 44
//Symbol31_67 (shaolin_master_cpmstar_fla.Symbol31_67)
package shaolin_master_cpmstar_fla {
import flash.display.*;
public dynamic class Symbol31_67 extends MovieClip {
public var c:MovieClip;
}
}//package shaolin_master_cpmstar_fla
Section 45
//Symbol32_70 (shaolin_master_cpmstar_fla.Symbol32_70)
package shaolin_master_cpmstar_fla {
import flash.display.*;
public dynamic class Symbol32_70 extends MovieClip {
public var c:MovieClip;
}
}//package shaolin_master_cpmstar_fla
Section 46
//Symbol33_72 (shaolin_master_cpmstar_fla.Symbol33_72)
package shaolin_master_cpmstar_fla {
import flash.display.*;
public dynamic class Symbol33_72 extends MovieClip {
public var c:MovieClip;
}
}//package shaolin_master_cpmstar_fla
Section 47
//Au (Au)
package {
import flash.media.*;
public dynamic class Au extends Sound {
}
}//package
Section 48
//bcMusic (bcMusic)
package {
import flash.media.*;
public dynamic class bcMusic extends Sound {
}
}//package
Section 49
//bcMusic2 (bcMusic2)
package {
import flash.media.*;
public dynamic class bcMusic2 extends Sound {
}
}//package
Section 50
//BonusS (BonusS)
package {
import flash.media.*;
public dynamic class BonusS extends Sound {
}
}//package
Section 51
//Click (Click)
package {
import flash.media.*;
public dynamic class Click extends Sound {
}
}//package
Section 52
//Die (Die)
package {
import flash.media.*;
public dynamic class Die extends Sound {
}
}//package
Section 53
//Fall (Fall)
package {
import flash.media.*;
public dynamic class Fall extends Sound {
}
}//package
Section 54
//G (G)
package {
import flash.media.*;
public dynamic class G extends Sound {
}
}//package
Section 55
//gameOver (gameOver)
package {
import flash.display.*;
import flash.text.*;
public dynamic class gameOver extends MovieClip {
public var btnRestart:MovieClip;
public var btnExit:MovieClip;
public var tf_score:TextField;
public var btnSubmit:MovieClip;
public var btnMore:MovieClip;
}
}//package
Section 56
//Generic (Generic)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import caurina.transitions.*;
import flash.utils.*;
import flash.net.*;
public class Generic {
private var _root:MovieClip;
public var audio:Number;// = 1
private var mcEnd:MovieClip;
private var link:String;// = "http://www.littlebigplay.com/index.php?g=10"
public function Generic(_arg1:MovieClip):void{
link = "http://www.littlebigplay.com/index.php?g=10";
audio = 1;
super();
_root = _arg1;
}
public function clickMe(_arg1:MouseEvent):void{
if (_arg1.target.name == "btnCredits"){
_root.extra.gotoAndStop("credits");
_root.extra.x = 0;
};
if (_arg1.target.name == "btnStart"){
startGame();
};
if (_arg1.target.name == "btnStart2"){
startGame();
};
if (_arg1.target.name == "btnMore"){
openLink();
};
if (_arg1.target.name == "btnMore2"){
openLink();
};
if (_arg1.target.name == "btnBack"){
_root.extra.gotoAndStop(1);
};
if (_arg1.target.name == "btnBack2"){
backToMenu();
};
if (_arg1.target.name == "btnHow"){
openHow();
};
if (_arg1.target.name == "btnSubmit"){
submit();
};
if (_arg1.target.name == "btnRestart"){
restart();
};
if (_arg1.target.name == "btnVideo"){
openVideo();
};
if (_arg1.target.name == "btnDownload"){
download();
};
if (_arg1.target.name == "btnExit"){
_root.skipMe();
};
if (_arg1.target.name == "btnTry"){
restart();
};
}
public function runMe():void{
_root.x = 0;
_root.type = "comp";
_root.gotoAndStop("game");
}
public function showBack():void{
if (_root.extra){
Tweener.addTween(_root.extra.btnBack2, {alpha:1, time:0.3, transition:"linear"});
};
}
public function runMeMobile():void{
_root.x = 0;
_root.gotoAndStop("game");
}
public function initMute(_arg1:MovieClip):void{
_arg1.addEventListener(MouseEvent.CLICK, mute);
_arg1.buttonMode = true;
_arg1.mouseChildren = false;
}
public function initBtn(_arg1:MovieClip):void{
_arg1.addEventListener(MouseEvent.ROLL_OVER, rollMe);
_arg1.addEventListener(MouseEvent.ROLL_OUT, rollMe);
_arg1.addEventListener(MouseEvent.MOUSE_DOWN, clickMe);
_arg1.buttonMode = true;
_arg1.mouseChildren = false;
}
public function backToMenu():void{
var _local1:Number;
_local1 = 2;
Tweener.addTween(_root.stin2, {x:(_root.stin2.x - 600), time:_local1, transition:""});
Tweener.addTween(_root.pozadi, {x:(_root.pozadi.x - 600), time:_local1, transition:""});
Tweener.addTween(_root.btnStart, {x:(_root.btnStart.x - 600), time:_local1, transition:""});
Tweener.addTween(_root.btnHow, {x:(_root.btnHow.x - 600), time:_local1, transition:""});
Tweener.addTween(_root.btnCredits, {x:(_root.btnCredits.x - 600), time:_local1, transition:""});
Tweener.addTween(_root.btnMore, {x:(_root.btnMore.x - 600), time:_local1, transition:""});
Tweener.addTween(_root.tabule, {x:(_root.tabule.x - 600), time:_local1, transition:""});
Tweener.addTween(_root.logo, {x:(_root.logo.x - 600), time:_local1, transition:""});
Tweener.addTween(_root.panacek, {x:(_root.logo.x - 600), time:_local1, transition:""});
Tweener.addTween(_root.extra.btnBack2, {alpha:0, time:_local1, transition:""});
Tweener.addTween(_root.extra, {x:(_root.extra.x - 600), time:_local1, transition:""});
Tweener.addTween(_root.btnMute, {x:(_root.btnMute.x - 600), time:_local1, transition:""});
Tweener.addTween(_root.btnMore2, {x:(_root.btnMore2.x - 600), time:_local1, transition:""});
}
public function openVideo(_arg1:MouseEvent=null){
navigateToURL(new URLRequest(link), "_blank");
}
public function playSound(_arg1:Sound, _arg2:Number, _arg3:Number=0, _arg4:Number=0):void{
var _local5:*;
var _local6:SoundTransform;
_local5 = _arg1.play(_arg4, _arg3);
_local6 = _local5.soundTransform;
_local6.volume = _arg2;
_local5.soundTransform = _local6;
}
public function download(_arg1:MouseEvent=null){
navigateToURL(new URLRequest("http://www.littlebigplay.com/games4u.php"), "_blank");
}
public function submit(_arg1:MouseEvent=null):void{
_root.submitTotal(mcEnd.tf_score.text);
}
public function mute(_arg1:MouseEvent=null):void{
if (audio == 1){
trace("off");
audio = 0;
_arg1.target.gotoAndStop(2);
SoundMixer.soundTransform = new SoundTransform(0);
} else {
trace("on");
audio = 1;
_arg1.target.gotoAndStop(1);
SoundMixer.soundTransform = new SoundTransform(1);
};
}
public function faduj(_arg1:TimerEvent):void{
Tweener.addTween(mcEnd, {alpha:1, time:0.5, transition:"linear"});
}
public function initGame():void{
Tweener.addTween(_root.stin2, {x:(_root.stin2.x - 600), time:0.5, transition:"linear"});
Tweener.addTween(_root.pozadi, {x:(_root.pozadi.x - 600), time:0.5, transition:"linear", onComplete:runMe});
Tweener.addTween(_root.btnStart, {x:(_root.btnStart.x - 600), time:0.5, transition:"linear"});
Tweener.addTween(_root.btnHow, {x:(_root.btnHow.x - 600), time:0.5, transition:"linear"});
Tweener.addTween(_root.btnCredits, {x:(_root.btnCredits.x - 600), time:0.5, transition:"linear"});
Tweener.addTween(_root.btnMore, {x:(_root.btnMore.x - 600), time:0.5, transition:"linear"});
Tweener.addTween(_root.btnMore2, {x:(_root.btnMore2.x - 600), time:0.5, transition:"linear"});
Tweener.addTween(_root.tabule, {x:(_root.tabule.x - 600), time:0.5, transition:"linear"});
Tweener.addTween(_root.logo, {x:(_root.logo.x - 600), time:0.5, transition:"linear"});
Tweener.addTween(_root.btnMute, {x:(_root.btnMute.x - 600), time:0.5, transition:"linear"});
SoundMixer.stopAll();
playSound(new menuMusic(), 1, 999, 0);
}
public function initGameMobile():void{
Tweener.addTween(_root.stin2, {x:(_root.stin2.x - 800), time:0.5, transition:"linear"});
Tweener.addTween(_root.pozadi, {x:(_root.pozadi.x - 800), time:0.5, transition:"linear", onComplete:runMeMobile});
Tweener.addTween(_root.btnStart, {x:(_root.btnStart.x - 800), time:0.5, transition:"linear"});
Tweener.addTween(_root.btnHow2, {x:(_root.btnHow2.x - 800), time:0.5, transition:"linear"});
Tweener.addTween(_root.btnCredits, {x:(_root.btnCredits.x - 800), time:0.5, transition:"linear"});
Tweener.addTween(_root.btnMore, {x:(_root.btnMore.x - 800), time:0.5, transition:"linear"});
Tweener.addTween(_root.btnMore2, {x:(_root.btnMore2.x - 800), time:0.5, transition:"linear"});
Tweener.addTween(_root.tabule, {x:(_root.tabule.x - 800), time:0.5, transition:"linear"});
Tweener.addTween(_root.logo, {x:(_root.logo.x - 800), time:0.5, transition:"linear"});
Tweener.addTween(_root.btnMute, {x:(_root.btnMute.x - 800), time:0.5, transition:"linear"});
SoundMixer.stopAll();
playSound(new menuMusic(), 1, 999, 0);
}
public function openHow():void{
var _local1:Number;
var _local2:String;
_local1 = 2;
_root.extra.gotoAndStop("how");
_root.extra.x = -600;
_local2 = "";
Tweener.addTween(_root.stin2, {x:(_root.stin2.x + 600), time:_local1, transition:_local2, onComplete:showBack});
Tweener.addTween(_root.pozadi, {x:(_root.pozadi.x + 600), time:_local1, transition:_local2});
Tweener.addTween(_root.btnStart, {x:(_root.btnStart.x + 600), time:_local1, transition:_local2});
Tweener.addTween(_root.btnHow, {x:(_root.btnHow.x + 600), time:_local1, transition:_local2});
Tweener.addTween(_root.btnCredits, {x:(_root.btnCredits.x + 600), time:_local1, transition:_local2});
Tweener.addTween(_root.btnMore, {x:(_root.btnMore.x + 600), time:_local1, transition:_local2});
Tweener.addTween(_root.tabule, {x:(_root.tabule.x + 600), time:_local1, transition:_local2});
Tweener.addTween(_root.logo, {x:(_root.logo.x + 600), time:_local1, transition:_local2});
Tweener.addTween(_root.panacek, {x:(_root.logo.x + 600), time:_local1, transition:_local2});
Tweener.addTween(_root.extra, {x:(_root.extra.x + 600), time:_local1, transition:_local2});
Tweener.addTween(_root.btnMute, {x:(_root.btnMute.x + 600), time:_local1, transition:_local2});
Tweener.addTween(_root.btnMore2, {x:(_root.btnMore2.x + 600), time:_local1, transition:_local2});
}
public function restart(_arg1:MouseEvent=null):void{
if (mcEnd){
_root.removeChild(mcEnd);
mcEnd = null;
};
_root.scoreMc.gotoAndStop(1);
SoundMixer.stopAll();
_root.gotoAndStop("restart");
}
public function openLink(_arg1:MouseEvent=null){
navigateToURL(new URLRequest(link), "_blank");
}
public function exit(_arg1:MouseEvent=null):void{
if (mcEnd){
_root.removeChild(mcEnd);
mcEnd = null;
};
_root.scoreMc.gotoAndStop(1);
SoundMixer.stopAll();
_root.gotoAndStop("exit");
}
public function initEnd(_arg1:Number):void{
var _local2:Timer;
mcEnd = new gameOver();
_root.addChild(mcEnd);
initBtn(mcEnd.btnSubmit);
initBtn(mcEnd.btnRestart);
initBtn(mcEnd.btnExit);
initBtn(mcEnd.btnMore);
mcEnd.tf_score.text = _arg1.toString();
mcEnd.alpha = 0;
_local2 = new Timer(1000, 1);
_local2.addEventListener(TimerEvent.TIMER, faduj);
_local2.start();
}
public function startGame(_arg1:MouseEvent=null):void{
playSound(new Swish(), 3, 0, 1100);
_root.panacek.play();
_root.panacek.char.play();
}
public function rollMe(_arg1:MouseEvent):void{
if (_arg1.target.currentFrame == 1){
_arg1.target.gotoAndStop(2);
} else {
if (_arg1.target.currentFrame == 2){
_arg1.target.gotoAndStop(1);
};
};
}
}
}//package
Section 57
//Gong (Gong)
package {
import flash.media.*;
public dynamic class Gong extends Sound {
}
}//package
Section 58
//HitTest (HitTest)
package {
import flash.display.*;
import flash.geom.*;
public class HitTest {
protected static function getDrawMatrix(_arg1:DisplayObject, _arg2:Rectangle, _arg3:Number):Matrix{
var _local4:Point;
var _local5:Matrix;
var _local6:Matrix;
_local6 = _arg1.root.transform.concatenatedMatrix;
_local4 = _arg1.localToGlobal(new Point());
_local5 = _arg1.transform.concatenatedMatrix;
_local5.tx = (_local4.x - _arg2.x);
_local5.ty = (_local4.y - _arg2.y);
_local5.a = (_local5.a / _local6.a);
_local5.d = (_local5.d / _local6.d);
if (_arg3 != 1){
_local5.scale(_arg3, _arg3);
};
return (_local5);
}
public static function complexHitTestObject(_arg1:DisplayObject, _arg2:DisplayObject, _arg3:Number=1):Boolean{
return (!((complexIntersectionRectangle(_arg1, _arg2, _arg3).width == 0)));
}
public static function complexIntersectionRectangle(_arg1:DisplayObject, _arg2:DisplayObject, _arg3:Number=1):Rectangle{
var _local4:Rectangle;
var _local5:BitmapData;
var _local6:Rectangle;
if (_arg3 <= 0){
throw (new Error("ArgumentError: Error #5001: Invalid value for accurracy", 5001));
};
if (!_arg1.hitTestObject(_arg2)){
return (new Rectangle());
};
_local4 = intersectionRectangle(_arg1, _arg2);
if (((((_local4.width * _arg3) < 1)) || (((_local4.height * _arg3) < 1)))){
return (new Rectangle());
};
_local5 = new BitmapData((_local4.width * _arg3), (_local4.height * _arg3), false, 0);
_local5.draw(_arg1, HitTest.getDrawMatrix(_arg1, _local4, _arg3), new ColorTransform(1, 1, 1, 1, 0xFF, -255, -255, 0xFF));
_local5.draw(_arg2, HitTest.getDrawMatrix(_arg2, _local4, _arg3), new ColorTransform(1, 1, 1, 1, 0xFF, 0xFF, 0xFF, 0xFF), BlendMode.DIFFERENCE);
_local6 = _local5.getColorBoundsRect(4294967295, 4278255615);
_local5.dispose();
if (_arg3 != 1){
_local6.x = (_local6.x / _arg3);
_local6.y = (_local6.y / _arg3);
_local6.width = (_local6.width / _arg3);
_local6.height = (_local6.height / _arg3);
};
_local6.x = (_local6.x + _local4.x);
_local6.y = (_local6.y + _local4.y);
return (_local6);
}
public static function intersectionRectangle(_arg1:DisplayObject, _arg2:DisplayObject):Rectangle{
var _local3:Rectangle;
var _local4:Rectangle;
var _local5:Rectangle;
if (((((!(_arg1.root)) || (!(_arg2.root)))) || (!(_arg1.hitTestObject(_arg2))))){
return (new Rectangle());
};
_local3 = _arg1.getBounds(_arg1.root);
_local4 = _arg2.getBounds(_arg2.root);
_local5 = new Rectangle();
_local5.x = Math.max(_local3.x, _local4.x);
_local5.y = Math.max(_local3.y, _local4.y);
_local5.width = Math.min(((_local3.x + _local3.width) - _local5.x), ((_local4.x + _local4.width) - _local5.x));
_local5.height = Math.min(((_local3.y + _local3.height) - _local5.y), ((_local4.y + _local4.height) - _local5.y));
return (_local5);
}
}
}//package
Section 59
//menuMusic (menuMusic)
package {
import flash.media.*;
public dynamic class menuMusic extends Sound {
}
}//package
Section 60
//MochiBot (MochiBot)
package {
import flash.display.*;
import flash.net.*;
import flash.system.*;
public dynamic class MochiBot extends Sprite {
public static function track(_arg1:Sprite, _arg2:String):MochiBot{
var _local3:MochiBot;
var _local4:String;
var _local5:URLVariables;
var _local6:String;
var _local7:URLRequest;
var _local8:Loader;
if (Security.sandboxType == "localWithFile"){
return (null);
};
_local3 = new (MochiBot);
_arg1.addChild(_local3);
Security.allowDomain("*");
Security.allowInsecureDomain("*");
_local4 = "http://core.mochibot.com/my/core.swf";
_local5 = new URLVariables();
_local5["sb"] = Security.sandboxType;
_local5["v"] = Capabilities.version;
_local5["swfid"] = _arg2;
_local5["mv"] = "8";
_local5["fv"] = "9";
_local6 = _local3.root.loaderInfo.loaderURL;
if (_local6.indexOf("http") == 0){
_local5["url"] = _local6;
} else {
_local5["url"] = "local";
};
_local7 = new URLRequest(_local4);
_local7.contentType = "application/x-www-form-urlencoded";
_local7.method = URLRequestMethod.POST;
_local7.data = _local5;
_local8 = new Loader();
_local3.addChild(_local8);
_local8.load(_local7);
return (_local3);
}
}
}//package
Section 61
//Mod (Mod)
package {
import flash.media.*;
public dynamic class Mod extends Sound {
}
}//package
Section 62
//Sipka (Sipka)
package {
import flash.display.*;
public dynamic class Sipka extends MovieClip {
public var st5:MovieClip;
}
}//package
Section 63
//Star (Star)
package {
import flash.display.*;
public dynamic class Star extends MovieClip {
public function Star(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 64
//Swish (Swish)
package {
import flash.media.*;
public dynamic class Swish extends Sound {
}
}//package
Section 65
//Sword (Sword)
package {
import flash.media.*;
public dynamic class Sword extends Sound {
}
}//package
Section 66
//Throw (Throw)
package {
import flash.media.*;
public dynamic class Throw extends Sound {
}
}//package