Section 1
//AuxFunctions (caurina.transitions.AuxFunctions)
package caurina.transitions {
public class AuxFunctions {
public static function concatObjects(... _args):Object{
var _local2:Object;
var _local3:Object;
var _local4:int;
var _local5:String;
_local2 = {};
_local4 = 0;
while (_local4 < _args.length) {
_local3 = _args[_local4];
for (_local5 in _local3) {
if (_local3[_local5] == null){
delete _local2[_local5];
} else {
_local2[_local5] = _local3[_local5];
};
};
_local4++;
};
return (_local2);
}
public static function numberToG(_arg1:Number):Number{
return (((_arg1 & 0xFF00) >> 8));
}
public static function numberToR(_arg1:Number):Number{
return (((_arg1 & 0xFF0000) >> 16));
}
public static function isInArray(_arg1:String, _arg2:Array):Boolean{
var _local3:uint;
var _local4:uint;
_local3 = _arg2.length;
_local4 = 0;
while (_local4 < _local3) {
if (_arg2[_local4] == _arg1){
return (true);
};
_local4++;
};
return (false);
}
public static function getObjectLength(_arg1:Object):uint{
var _local2:uint;
var _local3:String;
_local2 = 0;
for (_local3 in _arg1) {
_local2++;
};
return (_local2);
}
public static function numberToB(_arg1:Number):Number{
return ((_arg1 & 0xFF));
}
}
}//package caurina.transitions
Section 2
//Equations (caurina.transitions.Equations)
package caurina.transitions {
public class Equations {
public function Equations(){
trace("Equations is a static class and should not be instantiated.");
}
public static function easeOutBounce(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / _arg4);
if (_arg1 < (1 / 2.75)){
return (((_arg3 * ((7.5625 * _arg1) * _arg1)) + _arg2));
};
if (_arg1 < (2 / 2.75)){
_arg1 = (_arg1 - (1.5 / 2.75));
return (((_arg3 * (((7.5625 * _arg1) * _arg1) + 0.75)) + _arg2));
};
if (_arg1 < (2.5 / 2.75)){
_arg1 = (_arg1 - (2.25 / 2.75));
return (((_arg3 * (((7.5625 * _arg1) * _arg1) + 0.9375)) + _arg2));
};
_arg1 = (_arg1 - (2.625 / 2.75));
return (((_arg3 * (((7.5625 * _arg1) * _arg1) + 0.984375)) + _arg2));
}
public static function easeInOutElastic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
var _local6:Number;
var _local7:Number;
var _local8:Number;
if (_arg1 == 0){
return (_arg2);
};
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 == 2){
return ((_arg2 + _arg3));
};
_local6 = (((!(Boolean(_arg5))) || (isNaN(_arg5.period)))) ? (_arg4 * (0.3 * 1.5)) : _arg5.period;
_local8 = (((!(Boolean(_arg5))) || (isNaN(_arg5.amplitude)))) ? 0 : _arg5.amplitude;
if (((!(Boolean(_local8))) || ((_local8 < Math.abs(_arg3))))){
_local8 = _arg3;
_local7 = (_local6 / 4);
} else {
_local7 = ((_local6 / (2 * Math.PI)) * Math.asin((_arg3 / _local8)));
};
if (_arg1 < 1){
--_arg1;
return (((-0.5 * ((_local8 * Math.pow(2, (10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local7) * (2 * Math.PI)) / _local6)))) + _arg2));
};
--_arg1;
return ((((((_local8 * Math.pow(2, (-10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local7) * (2 * Math.PI)) / _local6))) * 0.5) + _arg3) + _arg2));
}
public static function easeInOutQuad(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
return (((((_arg3 / 2) * _arg1) * _arg1) + _arg2));
};
--_arg1;
return ((((-(_arg3) / 2) * ((_arg1 * (_arg1 - 2)) - 1)) + _arg2));
}
public static function easeInOutBounce(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 < (_arg4 / 2)){
return (((easeInBounce((_arg1 * 2), 0, _arg3, _arg4) * 0.5) + _arg2));
};
return ((((easeOutBounce(((_arg1 * 2) - _arg4), 0, _arg3, _arg4) * 0.5) + (_arg3 * 0.5)) + _arg2));
}
public static function easeInOutBack(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
var _local6:Number;
_local6 = (((!(Boolean(_arg5))) || (isNaN(_arg5.overshoot)))) ? 1.70158 : _arg5.overshoot;
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
_local6 = (_local6 * 1.525);
return ((((_arg3 / 2) * ((_arg1 * _arg1) * (((_local6 + 1) * _arg1) - _local6))) + _arg2));
};
_arg1 = (_arg1 - 2);
_local6 = (_local6 * 1.525);
return ((((_arg3 / 2) * (((_arg1 * _arg1) * (((_local6 + 1) * _arg1) + _local6)) + 2)) + _arg2));
}
public static function easeOutInCubic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutCubic((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5));
};
return (easeInCubic(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5));
}
public static function easeNone(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
return ((((_arg3 * _arg1) / _arg4) + _arg2));
}
public static function easeOutBack(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
var _local6:Number;
_local6 = (((!(Boolean(_arg5))) || (isNaN(_arg5.overshoot)))) ? 1.70158 : _arg5.overshoot;
_arg1 = ((_arg1 / _arg4) - 1);
return (((_arg3 * (((_arg1 * _arg1) * (((_local6 + 1) * _arg1) + _local6)) + 1)) + _arg2));
}
public static function easeInOutSine(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
return ((((-(_arg3) / 2) * (Math.cos(((Math.PI * _arg1) / _arg4)) - 1)) + _arg2));
}
public static function easeInBack(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
var _local6:Number;
_local6 = (((!(Boolean(_arg5))) || (isNaN(_arg5.overshoot)))) ? 1.70158 : _arg5.overshoot;
_arg1 = (_arg1 / _arg4);
return (((((_arg3 * _arg1) * _arg1) * (((_local6 + 1) * _arg1) - _local6)) + _arg2));
}
public static function easeInQuart(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / _arg4);
return ((((((_arg3 * _arg1) * _arg1) * _arg1) * _arg1) + _arg2));
}
public static function easeOutInQuint(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutQuint((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5));
};
return (easeInQuint(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5));
}
public static function easeOutInBounce(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutBounce((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5));
};
return (easeInBounce(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5));
}
public static function init():void{
Tweener.registerTransition("easenone", easeNone);
Tweener.registerTransition("linear", easeNone);
Tweener.registerTransition("easeinquad", easeInQuad);
Tweener.registerTransition("easeoutquad", easeOutQuad);
Tweener.registerTransition("easeinoutquad", easeInOutQuad);
Tweener.registerTransition("easeoutinquad", easeOutInQuad);
Tweener.registerTransition("easeincubic", easeInCubic);
Tweener.registerTransition("easeoutcubic", easeOutCubic);
Tweener.registerTransition("easeinoutcubic", easeInOutCubic);
Tweener.registerTransition("easeoutincubic", easeOutInCubic);
Tweener.registerTransition("easeinquart", easeInQuart);
Tweener.registerTransition("easeoutquart", easeOutQuart);
Tweener.registerTransition("easeinoutquart", easeInOutQuart);
Tweener.registerTransition("easeoutinquart", easeOutInQuart);
Tweener.registerTransition("easeinquint", easeInQuint);
Tweener.registerTransition("easeoutquint", easeOutQuint);
Tweener.registerTransition("easeinoutquint", easeInOutQuint);
Tweener.registerTransition("easeoutinquint", easeOutInQuint);
Tweener.registerTransition("easeinsine", easeInSine);
Tweener.registerTransition("easeoutsine", easeOutSine);
Tweener.registerTransition("easeinoutsine", easeInOutSine);
Tweener.registerTransition("easeoutinsine", easeOutInSine);
Tweener.registerTransition("easeincirc", easeInCirc);
Tweener.registerTransition("easeoutcirc", easeOutCirc);
Tweener.registerTransition("easeinoutcirc", easeInOutCirc);
Tweener.registerTransition("easeoutincirc", easeOutInCirc);
Tweener.registerTransition("easeinexpo", easeInExpo);
Tweener.registerTransition("easeoutexpo", easeOutExpo);
Tweener.registerTransition("easeinoutexpo", easeInOutExpo);
Tweener.registerTransition("easeoutinexpo", easeOutInExpo);
Tweener.registerTransition("easeinelastic", easeInElastic);
Tweener.registerTransition("easeoutelastic", easeOutElastic);
Tweener.registerTransition("easeinoutelastic", easeInOutElastic);
Tweener.registerTransition("easeoutinelastic", easeOutInElastic);
Tweener.registerTransition("easeinback", easeInBack);
Tweener.registerTransition("easeoutback", easeOutBack);
Tweener.registerTransition("easeinoutback", easeInOutBack);
Tweener.registerTransition("easeoutinback", easeOutInBack);
Tweener.registerTransition("easeinbounce", easeInBounce);
Tweener.registerTransition("easeoutbounce", easeOutBounce);
Tweener.registerTransition("easeinoutbounce", easeInOutBounce);
Tweener.registerTransition("easeoutinbounce", easeOutInBounce);
}
public static function easeOutExpo(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
return (((_arg1)==_arg4) ? (_arg2 + _arg3) : (((_arg3 * 1.001) * (-(Math.pow(2, ((-10 * _arg1) / _arg4))) + 1)) + _arg2));
}
public static function easeOutInBack(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutBack((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5));
};
return (easeInBack(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5));
}
public static function easeInExpo(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
return (((_arg1)==0) ? _arg2 : (((_arg3 * Math.pow(2, (10 * ((_arg1 / _arg4) - 1)))) + _arg2) - (_arg3 * 0.001)));
}
public static function easeInCubic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / _arg4);
return (((((_arg3 * _arg1) * _arg1) * _arg1) + _arg2));
}
public static function easeInQuint(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / _arg4);
return (((((((_arg3 * _arg1) * _arg1) * _arg1) * _arg1) * _arg1) + _arg2));
}
public static function easeInOutCirc(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
return ((((-(_arg3) / 2) * (Math.sqrt((1 - (_arg1 * _arg1))) - 1)) + _arg2));
};
_arg1 = (_arg1 - 2);
return ((((_arg3 / 2) * (Math.sqrt((1 - (_arg1 * _arg1))) + 1)) + _arg2));
}
public static function easeInQuad(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / _arg4);
return ((((_arg3 * _arg1) * _arg1) + _arg2));
}
public static function easeInBounce(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
return (((_arg3 - easeOutBounce((_arg4 - _arg1), 0, _arg3, _arg4)) + _arg2));
}
public static function easeOutInExpo(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutExpo((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5));
};
return (easeInExpo(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5));
}
public static function easeOutQuart(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = ((_arg1 / _arg4) - 1);
return (((-(_arg3) * ((((_arg1 * _arg1) * _arg1) * _arg1) - 1)) + _arg2));
}
public static function easeInSine(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
return ((((-(_arg3) * Math.cos(((_arg1 / _arg4) * (Math.PI / 2)))) + _arg3) + _arg2));
}
public static function easeInOutQuart(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
return (((((((_arg3 / 2) * _arg1) * _arg1) * _arg1) * _arg1) + _arg2));
};
_arg1 = (_arg1 - 2);
return ((((-(_arg3) / 2) * ((((_arg1 * _arg1) * _arg1) * _arg1) - 2)) + _arg2));
}
public static function easeOutQuad(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / _arg4);
return ((((-(_arg3) * _arg1) * (_arg1 - 2)) + _arg2));
}
public static function easeOutInElastic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutElastic((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5));
};
return (easeInElastic(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5));
}
public static function easeInElastic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
var _local6:Number;
var _local7:Number;
var _local8:Number;
if (_arg1 == 0){
return (_arg2);
};
_arg1 = (_arg1 / _arg4);
if (_arg1 == 1){
return ((_arg2 + _arg3));
};
_local6 = (((!(Boolean(_arg5))) || (isNaN(_arg5.period)))) ? (_arg4 * 0.3) : _arg5.period;
_local8 = (((!(Boolean(_arg5))) || (isNaN(_arg5.amplitude)))) ? 0 : _arg5.amplitude;
if (((!(Boolean(_local8))) || ((_local8 < Math.abs(_arg3))))){
_local8 = _arg3;
_local7 = (_local6 / 4);
} else {
_local7 = ((_local6 / (2 * Math.PI)) * Math.asin((_arg3 / _local8)));
};
--_arg1;
return ((-(((_local8 * Math.pow(2, (10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local7) * (2 * Math.PI)) / _local6)))) + _arg2));
}
public static function easeOutCubic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = ((_arg1 / _arg4) - 1);
return (((_arg3 * (((_arg1 * _arg1) * _arg1) + 1)) + _arg2));
}
public static function easeOutQuint(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = ((_arg1 / _arg4) - 1);
return (((_arg3 * (((((_arg1 * _arg1) * _arg1) * _arg1) * _arg1) + 1)) + _arg2));
}
public static function easeOutInQuad(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutQuad((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5));
};
return (easeInQuad(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5));
}
public static function easeOutSine(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
return (((_arg3 * Math.sin(((_arg1 / _arg4) * (Math.PI / 2)))) + _arg2));
}
public static function easeInOutCubic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
return ((((((_arg3 / 2) * _arg1) * _arg1) * _arg1) + _arg2));
};
_arg1 = (_arg1 - 2);
return ((((_arg3 / 2) * (((_arg1 * _arg1) * _arg1) + 2)) + _arg2));
}
public static function easeInOutQuint(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
return ((((((((_arg3 / 2) * _arg1) * _arg1) * _arg1) * _arg1) * _arg1) + _arg2));
};
_arg1 = (_arg1 - 2);
return ((((_arg3 / 2) * (((((_arg1 * _arg1) * _arg1) * _arg1) * _arg1) + 2)) + _arg2));
}
public static function easeInCirc(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / _arg4);
return (((-(_arg3) * (Math.sqrt((1 - (_arg1 * _arg1))) - 1)) + _arg2));
}
public static function easeOutInSine(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutSine((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5));
};
return (easeInSine(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5));
}
public static function easeInOutExpo(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 == 0){
return (_arg2);
};
if (_arg1 == _arg4){
return ((_arg2 + _arg3));
};
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
return (((((_arg3 / 2) * Math.pow(2, (10 * (_arg1 - 1)))) + _arg2) - (_arg3 * 0.0005)));
};
--_arg1;
return (((((_arg3 / 2) * 1.0005) * (-(Math.pow(2, (-10 * _arg1))) + 2)) + _arg2));
}
public static function easeOutElastic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
var _local6:Number;
var _local7:Number;
var _local8:Number;
if (_arg1 == 0){
return (_arg2);
};
_arg1 = (_arg1 / _arg4);
if (_arg1 == 1){
return ((_arg2 + _arg3));
};
_local6 = (((!(Boolean(_arg5))) || (isNaN(_arg5.period)))) ? (_arg4 * 0.3) : _arg5.period;
_local8 = (((!(Boolean(_arg5))) || (isNaN(_arg5.amplitude)))) ? 0 : _arg5.amplitude;
if (((!(Boolean(_local8))) || ((_local8 < Math.abs(_arg3))))){
_local8 = _arg3;
_local7 = (_local6 / 4);
} else {
_local7 = ((_local6 / (2 * Math.PI)) * Math.asin((_arg3 / _local8)));
};
return (((((_local8 * Math.pow(2, (-10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local7) * (2 * Math.PI)) / _local6))) + _arg3) + _arg2));
}
public static function easeOutCirc(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = ((_arg1 / _arg4) - 1);
return (((_arg3 * Math.sqrt((1 - (_arg1 * _arg1)))) + _arg2));
}
public static function easeOutInQuart(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutQuart((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5));
};
return (easeInQuart(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5));
}
public static function easeOutInCirc(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutCirc((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5));
};
return (easeInCirc(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5));
}
}
}//package caurina.transitions
Section 3
//PropertyInfoObj (caurina.transitions.PropertyInfoObj)
package caurina.transitions {
public class PropertyInfoObj {
public var originalValueComplete:Object;
public var modifierParameters:Array;
public var isSpecialProperty:Boolean;
public var hasModifier:Boolean;
public var valueComplete:Number;
public var extra:Object;
public var valueStart:Number;
public var modifierFunction:Function;
public var arrayIndex:Number;
public function PropertyInfoObj(_arg1:Number, _arg2:Number, _arg3:Object, _arg4:Number, _arg5:Object, _arg6:Boolean, _arg7:Function, _arg8:Array){
valueStart = _arg1;
valueComplete = _arg2;
originalValueComplete = _arg3;
arrayIndex = _arg4;
extra = _arg5;
isSpecialProperty = _arg6;
hasModifier = Boolean(_arg7);
modifierFunction = _arg7;
modifierParameters = _arg8;
}
public function toString():String{
var _local1:String;
_local1 = "\n[PropertyInfoObj ";
_local1 = (_local1 + ("valueStart:" + String(valueStart)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("valueComplete:" + String(valueComplete)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("originalValueComplete:" + String(originalValueComplete)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("arrayIndex:" + String(arrayIndex)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("extra:" + String(extra)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("isSpecialProperty:" + String(isSpecialProperty)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("hasModifier:" + String(hasModifier)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("modifierFunction:" + String(modifierFunction)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("modifierParameters:" + String(modifierParameters)));
_local1 = (_local1 + "]\n");
return (_local1);
}
public function clone():PropertyInfoObj{
var _local1:PropertyInfoObj;
_local1 = new PropertyInfoObj(valueStart, valueComplete, originalValueComplete, arrayIndex, extra, isSpecialProperty, modifierFunction, modifierParameters);
return (_local1);
}
}
}//package caurina.transitions
Section 4
//SpecialProperty (caurina.transitions.SpecialProperty)
package caurina.transitions {
public class SpecialProperty {
public var parameters:Array;
public var preProcess:Function;
public var setValue:Function;
public var getValue:Function;
public function SpecialProperty(_arg1:Function, _arg2:Function, _arg3:Array=null, _arg4:Function=null){
getValue = _arg1;
setValue = _arg2;
parameters = _arg3;
preProcess = _arg4;
}
public function toString():String{
var _local1:String;
_local1 = "";
_local1 = (_local1 + "[SpecialProperty ");
_local1 = (_local1 + ("getValue:" + String(getValue)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("setValue:" + String(setValue)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("parameters:" + String(parameters)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("preProcess:" + String(preProcess)));
_local1 = (_local1 + "]");
return (_local1);
}
}
}//package caurina.transitions
Section 5
//SpecialPropertyModifier (caurina.transitions.SpecialPropertyModifier)
package caurina.transitions {
public class SpecialPropertyModifier {
public var getValue:Function;
public var modifyValues:Function;
public function SpecialPropertyModifier(_arg1:Function, _arg2:Function){
modifyValues = _arg1;
getValue = _arg2;
}
public function toString():String{
var _local1:String;
_local1 = "";
_local1 = (_local1 + "[SpecialPropertyModifier ");
_local1 = (_local1 + ("modifyValues:" + String(modifyValues)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("getValue:" + String(getValue)));
_local1 = (_local1 + "]");
return (_local1);
}
}
}//package caurina.transitions
Section 6
//SpecialPropertySplitter (caurina.transitions.SpecialPropertySplitter)
package caurina.transitions {
public class SpecialPropertySplitter {
public var parameters:Array;
public var splitValues:Function;
public function SpecialPropertySplitter(_arg1:Function, _arg2:Array){
splitValues = _arg1;
parameters = _arg2;
}
public function toString():String{
var _local1:String;
_local1 = "";
_local1 = (_local1 + "[SpecialPropertySplitter ");
_local1 = (_local1 + ("splitValues:" + String(splitValues)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("parameters:" + String(parameters)));
_local1 = (_local1 + "]");
return (_local1);
}
}
}//package caurina.transitions
Section 7
//Tweener (caurina.transitions.Tweener)
package caurina.transitions {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
public class Tweener {
private static var _timeScale:Number = 1;
private static var _currentTimeFrame:Number;
private static var _specialPropertySplitterList:Object;
private static var _engineExists:Boolean = false;
private static var _specialPropertyModifierList:Object;
private static var _currentTime:Number;
private static var _tweenList:Array;
private static var _specialPropertyList:Object;
private static var _transitionList:Object;
private static var _inited:Boolean = false;
private static var __tweener_controller__:MovieClip;
public function Tweener(){
trace("Tweener is a static class and should not be instantiated.");
}
public static function registerSpecialPropertyModifier(_arg1:String, _arg2:Function, _arg3:Function):void{
var _local4:SpecialPropertyModifier;
if (!_inited){
init();
};
_local4 = new SpecialPropertyModifier(_arg2, _arg3);
_specialPropertyModifierList[_arg1] = _local4;
}
public static function registerSpecialProperty(_arg1:String, _arg2:Function, _arg3:Function, _arg4:Array=null, _arg5:Function=null):void{
var _local6:SpecialProperty;
if (!_inited){
init();
};
_local6 = new SpecialProperty(_arg2, _arg3, _arg4, _arg5);
_specialPropertyList[_arg1] = _local6;
}
public static function init(... _args):void{
_inited = true;
_transitionList = new Object();
Equations.init();
_specialPropertyList = new Object();
_specialPropertyModifierList = new Object();
_specialPropertySplitterList = new Object();
}
private static function updateTweens():Boolean{
var _local1:int;
if (_tweenList.length == 0){
return (false);
};
_local1 = 0;
while (_local1 < _tweenList.length) {
if ((((_tweenList[_local1] == undefined)) || (!(_tweenList[_local1].isPaused)))){
if (!updateTweenByIndex(_local1)){
removeTweenByIndex(_local1);
};
if (_tweenList[_local1] == null){
removeTweenByIndex(_local1, true);
_local1--;
};
};
_local1++;
};
return (true);
}
public static function addCaller(_arg1:Object=null, _arg2:Object=null):Boolean{
var _local3:Number;
var _local4:Array;
var _local5:Object;
var _local6:Number;
var _local7:Number;
var _local8:Function;
var _local9:TweenListObj;
var _local10:Number;
var _local11:String;
if (!Boolean(_arg1)){
return (false);
};
if ((_arg1 is Array)){
_local4 = _arg1.concat();
} else {
_local4 = [_arg1];
};
_local5 = _arg2;
if (!_inited){
init();
};
if (((!(_engineExists)) || (!(Boolean(__tweener_controller__))))){
startEngine();
};
_local6 = (isNaN(_local5.time)) ? 0 : _local5.time;
_local7 = (isNaN(_local5.delay)) ? 0 : _local5.delay;
if (typeof(_local5.transition) == "string"){
_local11 = _local5.transition.toLowerCase();
_local8 = _transitionList[_local11];
} else {
_local8 = _local5.transition;
};
if (!Boolean(_local8)){
_local8 = _transitionList["easeoutexpo"];
};
_local3 = 0;
while (_local3 < _local4.length) {
if (_local5.useFrames == true){
_local9 = new TweenListObj(_local4[_local3], (_currentTimeFrame + (_local7 / _timeScale)), (_currentTimeFrame + ((_local7 + _local6) / _timeScale)), true, _local8, _local5.transitionParams);
} else {
_local9 = new TweenListObj(_local4[_local3], (_currentTime + ((_local7 * 1000) / _timeScale)), (_currentTime + (((_local7 * 1000) + (_local6 * 1000)) / _timeScale)), false, _local8, _local5.transitionParams);
};
_local9.properties = null;
_local9.onStart = _local5.onStart;
_local9.onUpdate = _local5.onUpdate;
_local9.onComplete = _local5.onComplete;
_local9.onOverwrite = _local5.onOverwrite;
_local9.onStartParams = _local5.onStartParams;
_local9.onUpdateParams = _local5.onUpdateParams;
_local9.onCompleteParams = _local5.onCompleteParams;
_local9.onOverwriteParams = _local5.onOverwriteParams;
_local9.onStartScope = _local5.onStartScope;
_local9.onUpdateScope = _local5.onUpdateScope;
_local9.onCompleteScope = _local5.onCompleteScope;
_local9.onOverwriteScope = _local5.onOverwriteScope;
_local9.onErrorScope = _local5.onErrorScope;
_local9.isCaller = true;
_local9.count = _local5.count;
_local9.waitFrames = _local5.waitFrames;
_tweenList.push(_local9);
if ((((_local6 == 0)) && ((_local7 == 0)))){
_local10 = (_tweenList.length - 1);
updateTweenByIndex(_local10);
removeTweenByIndex(_local10);
};
_local3++;
};
return (true);
}
public static function pauseAllTweens():Boolean{
var _local1:Boolean;
var _local2:uint;
if (!Boolean(_tweenList)){
return (false);
};
_local1 = false;
_local2 = 0;
while (_local2 < _tweenList.length) {
pauseTweenByIndex(_local2);
_local1 = true;
_local2++;
};
return (_local1);
}
public static function removeTweens(_arg1:Object, ... _args):Boolean{
var _local3:Array;
var _local4:uint;
_local3 = new Array();
_local4 = 0;
while (_local4 < _args.length) {
if ((((typeof(_args[_local4]) == "string")) && (!(AuxFunctions.isInArray(_args[_local4], _local3))))){
_local3.push(_args[_local4]);
};
_local4++;
};
return (affectTweens(removeTweenByIndex, _arg1, _local3));
}
public static function splitTweens(_arg1:Number, _arg2:Array):uint{
var _local3:TweenListObj;
var _local4:TweenListObj;
var _local5:uint;
var _local6:String;
var _local7:Boolean;
_local3 = _tweenList[_arg1];
_local4 = _local3.clone(false);
_local5 = 0;
while (_local5 < _arg2.length) {
_local6 = _arg2[_local5];
if (Boolean(_local3.properties[_local6])){
_local3.properties[_local6] = undefined;
delete _local3.properties[_local6];
};
_local5++;
};
for (_local6 in _local4.properties) {
_local7 = false;
_local5 = 0;
while (_local5 < _arg2.length) {
if (_arg2[_local5] == _local6){
_local7 = true;
break;
};
_local5++;
};
if (!_local7){
_local4.properties[_local6] = undefined;
delete _local4.properties[_local6];
};
};
_tweenList.push(_local4);
return ((_tweenList.length - 1));
}
public static function updateFrame():void{
_currentTimeFrame++;
}
public static function resumeTweenByIndex(_arg1:Number):Boolean{
var _local2:TweenListObj;
var _local3:Number;
_local2 = _tweenList[_arg1];
if ((((_local2 == null)) || (!(_local2.isPaused)))){
return (false);
};
_local3 = getCurrentTweeningTime(_local2);
_local2.timeStart = (_local2.timeStart + (_local3 - _local2.timePaused));
_local2.timeComplete = (_local2.timeComplete + (_local3 - _local2.timePaused));
_local2.timePaused = undefined;
_local2.isPaused = false;
return (true);
}
public static function getVersion():String{
return ("AS3 1.31.71");
}
public static function onEnterFrame(_arg1:Event):void{
var _local2:Boolean;
updateTime();
updateFrame();
_local2 = false;
_local2 = updateTweens();
if (!_local2){
stopEngine();
};
}
public static function updateTime():void{
_currentTime = getTimer();
}
private static function updateTweenByIndex(_arg1:Number):Boolean{
var tTweening:TweenListObj;
var isOver:Boolean;
var mustUpdate:Boolean;
var nv:Number;
var t:Number;
var b:Number;
var c:Number;
var d:Number;
var pName:String;
var eventScope:Object;
var tScope:Object;
var cTime:Number;
var tProperty:Object;
var pv:Number;
var i = _arg1;
tTweening = _tweenList[i];
if ((((tTweening == null)) || (!(Boolean(tTweening.scope))))){
return (false);
};
isOver = false;
cTime = getCurrentTweeningTime(tTweening);
if (cTime >= tTweening.timeStart){
tScope = tTweening.scope;
if (tTweening.isCaller){
do {
t = (((tTweening.timeComplete - tTweening.timeStart) / tTweening.count) * (tTweening.timesCalled + 1));
b = tTweening.timeStart;
c = (tTweening.timeComplete - tTweening.timeStart);
d = (tTweening.timeComplete - tTweening.timeStart);
nv = tTweening.transition(t, b, c, d);
} while (!(cTime >= nv));
} else {
mustUpdate = (((((tTweening.skipUpdates < 1)) || (!(tTweening.skipUpdates)))) || ((tTweening.updatesSkipped >= tTweening.skipUpdates)));
if (cTime >= tTweening.timeComplete){
isOver = true;
mustUpdate = true;
};
if (!tTweening.hasStarted){
if (Boolean(tTweening.onStart)){
eventScope = (Boolean(tTweening.onStartScope)) ? tTweening.onStartScope : tScope;
try {
tTweening.onStart.apply(eventScope, tTweening.onStartParams);
} catch(e:Error) {
handleError(tTweening, e, "onStart");
};
};
for (pName in tTweening.properties) {
if (tTweening.properties[pName].isSpecialProperty){
if (Boolean(_specialPropertyList[pName].preProcess)){
tTweening.properties[pName].valueComplete = _specialPropertyList[pName].preProcess(tScope, _specialPropertyList[pName].parameters, tTweening.properties[pName].originalValueComplete, tTweening.properties[pName].extra);
};
pv = _specialPropertyList[pName].getValue(tScope, _specialPropertyList[pName].parameters, tTweening.properties[pName].extra);
} else {
pv = tScope[pName];
};
tTweening.properties[pName].valueStart = (isNaN(pv)) ? tTweening.properties[pName].valueComplete : pv;
};
mustUpdate = true;
tTweening.hasStarted = true;
};
if (mustUpdate){
for (pName in tTweening.properties) {
tProperty = tTweening.properties[pName];
if (isOver){
nv = tProperty.valueComplete;
} else {
if (tProperty.hasModifier){
t = (cTime - tTweening.timeStart);
d = (tTweening.timeComplete - tTweening.timeStart);
nv = tTweening.transition(t, 0, 1, d, tTweening.transitionParams);
nv = tProperty.modifierFunction(tProperty.valueStart, tProperty.valueComplete, nv, tProperty.modifierParameters);
} else {
t = (cTime - tTweening.timeStart);
b = tProperty.valueStart;
c = (tProperty.valueComplete - tProperty.valueStart);
d = (tTweening.timeComplete - tTweening.timeStart);
nv = tTweening.transition(t, b, c, d, tTweening.transitionParams);
};
};
if (tTweening.rounded){
nv = Math.round(nv);
};
if (tProperty.isSpecialProperty){
_specialPropertyList[pName].setValue(tScope, nv, _specialPropertyList[pName].parameters, tTweening.properties[pName].extra);
} else {
tScope[pName] = nv;
};
};
tTweening.updatesSkipped = 0;
if (Boolean(tTweening.onUpdate)){
eventScope = (Boolean(tTweening.onUpdateScope)) ? tTweening.onUpdateScope : tScope;
try {
tTweening.onUpdate.apply(eventScope, tTweening.onUpdateParams);
} catch(e:Error) {
handleError(tTweening, e, "onUpdate");
};
};
} else {
tTweening.updatesSkipped++;
};
};
if (((isOver) && (Boolean(tTweening.onComplete)))){
eventScope = (Boolean(tTweening.onCompleteScope)) ? tTweening.onCompleteScope : tScope;
try {
tTweening.onComplete.apply(eventScope, tTweening.onCompleteParams);
} catch(e:Error) {
handleError(tTweening, e, "onComplete");
};
};
return (!(isOver));
};
return (true);
}
public static function setTimeScale(_arg1:Number):void{
var _local2:Number;
var _local3:Number;
if (isNaN(_arg1)){
_arg1 = 1;
};
if (_arg1 < 1E-5){
_arg1 = 1E-5;
};
if (_arg1 != _timeScale){
if (_tweenList != null){
_local2 = 0;
while (_local2 < _tweenList.length) {
_local3 = getCurrentTweeningTime(_tweenList[_local2]);
_tweenList[_local2].timeStart = (_local3 - (((_local3 - _tweenList[_local2].timeStart) * _timeScale) / _arg1));
_tweenList[_local2].timeComplete = (_local3 - (((_local3 - _tweenList[_local2].timeComplete) * _timeScale) / _arg1));
if (_tweenList[_local2].timePaused != undefined){
_tweenList[_local2].timePaused = (_local3 - (((_local3 - _tweenList[_local2].timePaused) * _timeScale) / _arg1));
};
_local2++;
};
};
_timeScale = _arg1;
};
}
public static function resumeAllTweens():Boolean{
var _local1:Boolean;
var _local2:uint;
if (!Boolean(_tweenList)){
return (false);
};
_local1 = false;
_local2 = 0;
while (_local2 < _tweenList.length) {
resumeTweenByIndex(_local2);
_local1 = true;
_local2++;
};
return (_local1);
}
private static function handleError(_arg1:TweenListObj, _arg2:Error, _arg3:String):void{
var eventScope:Object;
var pTweening = _arg1;
var pError = _arg2;
var pCallBackName = _arg3;
if (((Boolean(pTweening.onError)) && ((pTweening.onError is Function)))){
eventScope = (Boolean(pTweening.onErrorScope)) ? pTweening.onErrorScope : pTweening.scope;
try {
pTweening.onError.apply(eventScope, [pTweening.scope, pError]);
} catch(metaError:Error) {
printError(((((String(pTweening.scope) + " raised an error while executing the 'onError' handler. Original error:\n ") + pError.getStackTrace()) + "\nonError error: ") + metaError.getStackTrace()));
};
} else {
if (!Boolean(pTweening.onError)){
printError(((((String(pTweening.scope) + " raised an error while executing the '") + pCallBackName) + "'handler. \n") + pError.getStackTrace()));
};
};
}
private static function startEngine():void{
_engineExists = true;
_tweenList = new Array();
__tweener_controller__ = new MovieClip();
__tweener_controller__.addEventListener(Event.ENTER_FRAME, Tweener.onEnterFrame);
_currentTimeFrame = 0;
updateTime();
}
public static function removeAllTweens():Boolean{
var _local1:Boolean;
var _local2:uint;
if (!Boolean(_tweenList)){
return (false);
};
_local1 = false;
_local2 = 0;
while (_local2 < _tweenList.length) {
removeTweenByIndex(_local2);
_local1 = true;
_local2++;
};
return (_local1);
}
public static function addTween(_arg1:Object=null, _arg2:Object=null):Boolean{
var _local3:Number;
var _local4:Number;
var _local5:String;
var _local6:Array;
var _local7:Object;
var _local8:Number;
var _local9:Number;
var _local10:Array;
var _local11:Object;
var _local12:Object;
var _local13:Function;
var _local14:Object;
var _local15:TweenListObj;
var _local16:Number;
var _local17:Array;
var _local18:Array;
var _local19:Array;
var _local20:String;
if (!Boolean(_arg1)){
return (false);
};
if ((_arg1 is Array)){
_local6 = _arg1.concat();
} else {
_local6 = [_arg1];
};
_local7 = TweenListObj.makePropertiesChain(_arg2);
if (!_inited){
init();
};
if (((!(_engineExists)) || (!(Boolean(__tweener_controller__))))){
startEngine();
};
_local8 = (isNaN(_local7.time)) ? 0 : _local7.time;
_local9 = (isNaN(_local7.delay)) ? 0 : _local7.delay;
_local10 = new Array();
_local11 = {time:true, delay:true, useFrames:true, skipUpdates:true, transition:true, transitionParams:true, onStart:true, onUpdate:true, onComplete:true, onOverwrite:true, onError:true, rounded:true, onStartParams:true, onUpdateParams:true, onCompleteParams:true, onOverwriteParams:true, onStartScope:true, onUpdateScope:true, onCompleteScope:true, onOverwriteScope:true, onErrorScope:true};
_local12 = new Object();
for (_local5 in _local7) {
if (!_local11[_local5]){
if (_specialPropertySplitterList[_local5]){
_local17 = _specialPropertySplitterList[_local5].splitValues(_local7[_local5], _specialPropertySplitterList[_local5].parameters);
_local3 = 0;
while (_local3 < _local17.length) {
if (_specialPropertySplitterList[_local17[_local3].name]){
_local18 = _specialPropertySplitterList[_local17[_local3].name].splitValues(_local17[_local3].value, _specialPropertySplitterList[_local17[_local3].name].parameters);
_local4 = 0;
while (_local4 < _local18.length) {
_local10[_local18[_local4].name] = {valueStart:undefined, valueComplete:_local18[_local4].value, arrayIndex:_local18[_local4].arrayIndex, isSpecialProperty:false};
_local4++;
};
} else {
_local10[_local17[_local3].name] = {valueStart:undefined, valueComplete:_local17[_local3].value, arrayIndex:_local17[_local3].arrayIndex, isSpecialProperty:false};
};
_local3++;
};
} else {
if (_specialPropertyModifierList[_local5] != undefined){
_local19 = _specialPropertyModifierList[_local5].modifyValues(_local7[_local5]);
_local3 = 0;
while (_local3 < _local19.length) {
_local12[_local19[_local3].name] = {modifierParameters:_local19[_local3].parameters, modifierFunction:_specialPropertyModifierList[_local5].getValue};
_local3++;
};
} else {
_local10[_local5] = {valueStart:undefined, valueComplete:_local7[_local5]};
};
};
};
};
for (_local5 in _local10) {
if (_specialPropertyList[_local5] != undefined){
_local10[_local5].isSpecialProperty = true;
} else {
if (_local6[0][_local5] == undefined){
printError((((("The property '" + _local5) + "' doesn't seem to be a normal object property of ") + String(_local6[0])) + " or a registered special property."));
};
};
};
for (_local5 in _local12) {
if (_local10[_local5] != undefined){
_local10[_local5].modifierParameters = _local12[_local5].modifierParameters;
_local10[_local5].modifierFunction = _local12[_local5].modifierFunction;
};
};
if (typeof(_local7.transition) == "string"){
_local20 = _local7.transition.toLowerCase();
_local13 = _transitionList[_local20];
} else {
_local13 = _local7.transition;
};
if (!Boolean(_local13)){
_local13 = _transitionList["easeoutexpo"];
};
_local3 = 0;
while (_local3 < _local6.length) {
_local14 = new Object();
for (_local5 in _local10) {
_local14[_local5] = new PropertyInfoObj(_local10[_local5].valueStart, _local10[_local5].valueComplete, _local10[_local5].valueComplete, _local10[_local5].arrayIndex, {}, _local10[_local5].isSpecialProperty, _local10[_local5].modifierFunction, _local10[_local5].modifierParameters);
};
if (_local7.useFrames == true){
_local15 = new TweenListObj(_local6[_local3], (_currentTimeFrame + (_local9 / _timeScale)), (_currentTimeFrame + ((_local9 + _local8) / _timeScale)), true, _local13, _local7.transitionParams);
} else {
_local15 = new TweenListObj(_local6[_local3], (_currentTime + ((_local9 * 1000) / _timeScale)), (_currentTime + (((_local9 * 1000) + (_local8 * 1000)) / _timeScale)), false, _local13, _local7.transitionParams);
};
_local15.properties = _local14;
_local15.onStart = _local7.onStart;
_local15.onUpdate = _local7.onUpdate;
_local15.onComplete = _local7.onComplete;
_local15.onOverwrite = _local7.onOverwrite;
_local15.onError = _local7.onError;
_local15.onStartParams = _local7.onStartParams;
_local15.onUpdateParams = _local7.onUpdateParams;
_local15.onCompleteParams = _local7.onCompleteParams;
_local15.onOverwriteParams = _local7.onOverwriteParams;
_local15.onStartScope = _local7.onStartScope;
_local15.onUpdateScope = _local7.onUpdateScope;
_local15.onCompleteScope = _local7.onCompleteScope;
_local15.onOverwriteScope = _local7.onOverwriteScope;
_local15.onErrorScope = _local7.onErrorScope;
_local15.rounded = _local7.rounded;
_local15.skipUpdates = _local7.skipUpdates;
removeTweensByTime(_local15.scope, _local15.properties, _local15.timeStart, _local15.timeComplete);
_tweenList.push(_local15);
if ((((_local8 == 0)) && ((_local9 == 0)))){
_local16 = (_tweenList.length - 1);
updateTweenByIndex(_local16);
removeTweenByIndex(_local16);
};
_local3++;
};
return (true);
}
public static function registerTransition(_arg1:String, _arg2:Function):void{
if (!_inited){
init();
};
_transitionList[_arg1] = _arg2;
}
public static function printError(_arg1:String):void{
trace(("## [Tweener] Error: " + _arg1));
}
private static function affectTweens(_arg1:Function, _arg2:Object, _arg3:Array):Boolean{
var _local4:Boolean;
var _local5:uint;
var _local6:Array;
var _local7:uint;
var _local8:uint;
var _local9:uint;
_local4 = false;
if (!Boolean(_tweenList)){
return (false);
};
_local5 = 0;
while (_local5 < _tweenList.length) {
if (((_tweenList[_local5]) && ((_tweenList[_local5].scope == _arg2)))){
if (_arg3.length == 0){
_arg1(_local5);
_local4 = true;
} else {
_local6 = new Array();
_local7 = 0;
while (_local7 < _arg3.length) {
if (Boolean(_tweenList[_local5].properties[_arg3[_local7]])){
_local6.push(_arg3[_local7]);
};
_local7++;
};
if (_local6.length > 0){
_local8 = AuxFunctions.getObjectLength(_tweenList[_local5].properties);
if (_local8 == _local6.length){
_arg1(_local5);
_local4 = true;
} else {
_local9 = splitTweens(_local5, _local6);
_arg1(_local9);
_local4 = true;
};
};
};
};
_local5++;
};
return (_local4);
}
public static function getTweens(_arg1:Object):Array{
var _local2:uint;
var _local3:String;
var _local4:Array;
if (!Boolean(_tweenList)){
return ([]);
};
_local4 = new Array();
_local2 = 0;
while (_local2 < _tweenList.length) {
if (((Boolean(_tweenList[_local2])) && ((_tweenList[_local2].scope == _arg1)))){
for (_local3 in _tweenList[_local2].properties) {
_local4.push(_local3);
};
};
_local2++;
};
return (_local4);
}
public static function isTweening(_arg1:Object):Boolean{
var _local2:uint;
if (!Boolean(_tweenList)){
return (false);
};
_local2 = 0;
while (_local2 < _tweenList.length) {
if (((Boolean(_tweenList[_local2])) && ((_tweenList[_local2].scope == _arg1)))){
return (true);
};
_local2++;
};
return (false);
}
public static function pauseTweenByIndex(_arg1:Number):Boolean{
var _local2:TweenListObj;
_local2 = _tweenList[_arg1];
if ((((_local2 == null)) || (_local2.isPaused))){
return (false);
};
_local2.timePaused = getCurrentTweeningTime(_local2);
_local2.isPaused = true;
return (true);
}
public static function getCurrentTweeningTime(_arg1:Object):Number{
return ((_arg1.useFrames) ? _currentTimeFrame : _currentTime);
}
public static function getTweenCount(_arg1:Object):Number{
var _local2:uint;
var _local3:Number;
if (!Boolean(_tweenList)){
return (0);
};
_local3 = 0;
_local2 = 0;
while (_local2 < _tweenList.length) {
if (((Boolean(_tweenList[_local2])) && ((_tweenList[_local2].scope == _arg1)))){
_local3 = (_local3 + AuxFunctions.getObjectLength(_tweenList[_local2].properties));
};
_local2++;
};
return (_local3);
}
private static function stopEngine():void{
_engineExists = false;
_tweenList = null;
_currentTime = 0;
_currentTimeFrame = 0;
__tweener_controller__.removeEventListener(Event.ENTER_FRAME, Tweener.onEnterFrame);
__tweener_controller__ = null;
}
public static function removeTweensByTime(_arg1:Object, _arg2:Object, _arg3:Number, _arg4:Number):Boolean{
var removed:Boolean;
var removedLocally:Boolean;
var i:uint;
var tl:uint;
var pName:String;
var eventScope:Object;
var p_scope = _arg1;
var p_properties = _arg2;
var p_timeStart = _arg3;
var p_timeComplete = _arg4;
removed = false;
tl = _tweenList.length;
i = 0;
while (i < tl) {
if (((Boolean(_tweenList[i])) && ((p_scope == _tweenList[i].scope)))){
if ((((p_timeComplete > _tweenList[i].timeStart)) && ((p_timeStart < _tweenList[i].timeComplete)))){
removedLocally = false;
for (pName in _tweenList[i].properties) {
if (Boolean(p_properties[pName])){
if (Boolean(_tweenList[i].onOverwrite)){
eventScope = (Boolean(_tweenList[i].onOverwriteScope)) ? _tweenList[i].onOverwriteScope : _tweenList[i].scope;
try {
_tweenList[i].onOverwrite.apply(eventScope, _tweenList[i].onOverwriteParams);
} catch(e:Error) {
handleError(_tweenList[i], e, "onOverwrite");
};
};
_tweenList[i].properties[pName] = undefined;
delete _tweenList[i].properties[pName];
removedLocally = true;
removed = true;
};
};
if (removedLocally){
if (AuxFunctions.getObjectLength(_tweenList[i].properties) == 0){
removeTweenByIndex(i);
};
};
};
};
i = (i + 1);
};
return (removed);
}
public static function registerSpecialPropertySplitter(_arg1:String, _arg2:Function, _arg3:Array=null):void{
var _local4:SpecialPropertySplitter;
if (!_inited){
init();
};
_local4 = new SpecialPropertySplitter(_arg2, _arg3);
_specialPropertySplitterList[_arg1] = _local4;
}
public static function removeTweenByIndex(_arg1:Number, _arg2:Boolean=false):Boolean{
_tweenList[_arg1] = null;
if (_arg2){
_tweenList.splice(_arg1, 1);
};
return (true);
}
public static function resumeTweens(_arg1:Object, ... _args):Boolean{
var _local3:Array;
var _local4:uint;
_local3 = new Array();
_local4 = 0;
while (_local4 < _args.length) {
if ((((typeof(_args[_local4]) == "string")) && (!(AuxFunctions.isInArray(_args[_local4], _local3))))){
_local3.push(_args[_local4]);
};
_local4++;
};
return (affectTweens(resumeTweenByIndex, _arg1, _local3));
}
public static function pauseTweens(_arg1:Object, ... _args):Boolean{
var _local3:Array;
var _local4:uint;
_local3 = new Array();
_local4 = 0;
while (_local4 < _args.length) {
if ((((typeof(_args[_local4]) == "string")) && (!(AuxFunctions.isInArray(_args[_local4], _local3))))){
_local3.push(_args[_local4]);
};
_local4++;
};
return (affectTweens(pauseTweenByIndex, _arg1, _local3));
}
}
}//package caurina.transitions
Section 8
//TweenListObj (caurina.transitions.TweenListObj)
package caurina.transitions {
public class TweenListObj {
public var onUpdate:Function;
public var useFrames:Boolean;
public var hasStarted:Boolean;
public var onOverwriteParams:Array;
public var timeStart:Number;
public var count:Number;
public var timeComplete:Number;
public var onStartParams:Array;
public var onUpdateScope:Object;
public var rounded:Boolean;
public var onUpdateParams:Array;
public var properties:Object;
public var onComplete:Function;
public var transitionParams:Object;
public var updatesSkipped:Number;
public var onStart:Function;
public var onOverwriteScope:Object;
public var skipUpdates:Number;
public var onStartScope:Object;
public var scope:Object;
public var transition:Function;
public var timePaused:Number;
public var onCompleteParams:Array;
public var timesCalled:Number;
public var isCaller:Boolean;
public var onError:Function;
public var onErrorScope:Object;
public var onOverwrite:Function;
public var isPaused:Boolean;
public var waitFrames:Boolean;
public var onCompleteScope:Object;
public function TweenListObj(_arg1:Object, _arg2:Number, _arg3:Number, _arg4:Boolean, _arg5:Function, _arg6:Object){
scope = _arg1;
timeStart = _arg2;
timeComplete = _arg3;
useFrames = _arg4;
transition = _arg5;
transitionParams = _arg6;
properties = new Object();
isPaused = false;
timePaused = undefined;
isCaller = false;
updatesSkipped = 0;
timesCalled = 0;
skipUpdates = 0;
hasStarted = false;
}
public function clone(_arg1:Boolean):TweenListObj{
var _local2:TweenListObj;
var _local3:String;
_local2 = new TweenListObj(scope, timeStart, timeComplete, useFrames, transition, transitionParams);
_local2.properties = new Array();
for (_local3 in properties) {
_local2.properties[_local3] = properties[_local3].clone();
};
_local2.skipUpdates = skipUpdates;
_local2.updatesSkipped = updatesSkipped;
if (!_arg1){
_local2.onStart = onStart;
_local2.onUpdate = onUpdate;
_local2.onComplete = onComplete;
_local2.onOverwrite = onOverwrite;
_local2.onError = onError;
_local2.onStartParams = onStartParams;
_local2.onUpdateParams = onUpdateParams;
_local2.onCompleteParams = onCompleteParams;
_local2.onOverwriteParams = onOverwriteParams;
_local2.onStartScope = onStartScope;
_local2.onUpdateScope = onUpdateScope;
_local2.onCompleteScope = onCompleteScope;
_local2.onOverwriteScope = onOverwriteScope;
_local2.onErrorScope = onErrorScope;
};
_local2.rounded = rounded;
_local2.isPaused = isPaused;
_local2.timePaused = timePaused;
_local2.isCaller = isCaller;
_local2.count = count;
_local2.timesCalled = timesCalled;
_local2.waitFrames = waitFrames;
_local2.hasStarted = hasStarted;
return (_local2);
}
public function toString():String{
var _local1:String;
var _local2:Boolean;
var _local3:String;
_local1 = "\n[TweenListObj ";
_local1 = (_local1 + ("scope:" + String(scope)));
_local1 = (_local1 + ", properties:");
_local2 = true;
for (_local3 in properties) {
if (!_local2){
_local1 = (_local1 + ",");
};
_local1 = (_local1 + ("[name:" + properties[_local3].name));
_local1 = (_local1 + (",valueStart:" + properties[_local3].valueStart));
_local1 = (_local1 + (",valueComplete:" + properties[_local3].valueComplete));
_local1 = (_local1 + "]");
_local2 = false;
};
_local1 = (_local1 + (", timeStart:" + String(timeStart)));
_local1 = (_local1 + (", timeComplete:" + String(timeComplete)));
_local1 = (_local1 + (", useFrames:" + String(useFrames)));
_local1 = (_local1 + (", transition:" + String(transition)));
_local1 = (_local1 + (", transitionParams:" + String(transitionParams)));
if (skipUpdates){
_local1 = (_local1 + (", skipUpdates:" + String(skipUpdates)));
};
if (updatesSkipped){
_local1 = (_local1 + (", updatesSkipped:" + String(updatesSkipped)));
};
if (Boolean(onStart)){
_local1 = (_local1 + (", onStart:" + String(onStart)));
};
if (Boolean(onUpdate)){
_local1 = (_local1 + (", onUpdate:" + String(onUpdate)));
};
if (Boolean(onComplete)){
_local1 = (_local1 + (", onComplete:" + String(onComplete)));
};
if (Boolean(onOverwrite)){
_local1 = (_local1 + (", onOverwrite:" + String(onOverwrite)));
};
if (Boolean(onError)){
_local1 = (_local1 + (", onError:" + String(onError)));
};
if (onStartParams){
_local1 = (_local1 + (", onStartParams:" + String(onStartParams)));
};
if (onUpdateParams){
_local1 = (_local1 + (", onUpdateParams:" + String(onUpdateParams)));
};
if (onCompleteParams){
_local1 = (_local1 + (", onCompleteParams:" + String(onCompleteParams)));
};
if (onOverwriteParams){
_local1 = (_local1 + (", onOverwriteParams:" + String(onOverwriteParams)));
};
if (onStartScope){
_local1 = (_local1 + (", onStartScope:" + String(onStartScope)));
};
if (onUpdateScope){
_local1 = (_local1 + (", onUpdateScope:" + String(onUpdateScope)));
};
if (onCompleteScope){
_local1 = (_local1 + (", onCompleteScope:" + String(onCompleteScope)));
};
if (onOverwriteScope){
_local1 = (_local1 + (", onOverwriteScope:" + String(onOverwriteScope)));
};
if (onErrorScope){
_local1 = (_local1 + (", onErrorScope:" + String(onErrorScope)));
};
if (rounded){
_local1 = (_local1 + (", rounded:" + String(rounded)));
};
if (isPaused){
_local1 = (_local1 + (", isPaused:" + String(isPaused)));
};
if (timePaused){
_local1 = (_local1 + (", timePaused:" + String(timePaused)));
};
if (isCaller){
_local1 = (_local1 + (", isCaller:" + String(isCaller)));
};
if (count){
_local1 = (_local1 + (", count:" + String(count)));
};
if (timesCalled){
_local1 = (_local1 + (", timesCalled:" + String(timesCalled)));
};
if (waitFrames){
_local1 = (_local1 + (", waitFrames:" + String(waitFrames)));
};
if (hasStarted){
_local1 = (_local1 + (", hasStarted:" + String(hasStarted)));
};
_local1 = (_local1 + "]\n");
return (_local1);
}
public static function makePropertiesChain(_arg1:Object):Object{
var _local2:Object;
var _local3:Object;
var _local4:Object;
var _local5:Object;
var _local6:Number;
var _local7:Number;
var _local8:Number;
_local2 = _arg1.base;
if (_local2){
_local3 = {};
if ((_local2 is Array)){
_local4 = [];
_local8 = 0;
while (_local8 < _local2.length) {
_local4.push(_local2[_local8]);
_local8++;
};
} else {
_local4 = [_local2];
};
_local4.push(_arg1);
_local6 = _local4.length;
_local7 = 0;
while (_local7 < _local6) {
if (_local4[_local7]["base"]){
_local5 = AuxFunctions.concatObjects(makePropertiesChain(_local4[_local7]["base"]), _local4[_local7]);
} else {
_local5 = _local4[_local7];
};
_local3 = AuxFunctions.concatObjects(_local3, _local5);
_local7++;
};
if (_local3["base"]){
delete _local3["base"];
};
return (_local3);
//unresolved jump
};
return (_arg1);
}
}
}//package caurina.transitions
Section 9
//EventWrapper (com.tweegee.utils.EventWrapper)
package com.tweegee.utils {
import flash.events.*;
public class EventWrapper extends EventDispatcher {
private var _args:Object;
private var _retFunction:Function;
public function EventWrapper(_arg1:String, _arg2:EventDispatcher, _arg3:Function, _arg4:Object){
_args = _arg4;
_arg2.addEventListener(_arg1, handleEventDispatched);
_retFunction = _arg3;
}
private function handleEventDispatched(_arg1:Event){
_retFunction.call(this, _arg1, _args);
}
public function get args():Object{
return (_args);
}
}
}//package com.tweegee.utils
Section 10
//GameSoundManager (com.tweegee.utils.GameSoundManager)
package com.tweegee.utils {
import flash.media.*;
import flash.events.*;
import flash.utils.*;
import flash.errors.*;
public class GameSoundManager {
private static var currentlyPlaying:Array = [];
private static var _muteAll:Boolean;
private static var _muteFX:Boolean;
private static var _backgroundLoopVolume:Number;
private static var _backgroundLoop:SoundChannel;
private static var _secondaryLoopSound:Sound;
private static var _playlists:Array;
private static var _secondaryLoop:SoundChannel;
private static var _backgroundLoopSound:Sound;
private static var _mute:Boolean;
public function GameSoundManager():void{
throw (new IllegalOperationError("GameSoundManager is an abstract class and cannot be instantiated."));
}
public static function isMutedAll():Boolean{
return (_muteAll);
}
public static function unmute():void{
_mute = false;
if (_backgroundLoop != null){
_backgroundLoop.soundTransform = new SoundTransform(1);
};
if (_secondaryLoop != null){
_secondaryLoop.soundTransform = new SoundTransform(1);
};
}
public static function stopLoop():void{
if (_backgroundLoop != null){
_backgroundLoop.removeEventListener(Event.SOUND_COMPLETE, handleLoopSoundComplete);
_backgroundLoop.stop();
};
}
public static function playSoundDelay(_arg1:Sound, _arg2:Number=1, _arg3:Number=0):void{
var sound = _arg1;
var volume = _arg2;
var delay = _arg3;
try {
if (!_muteAll){
setTimeout(playSound, delay, sound, volume);
};
} catch(err:Error) {
};
}
public static function unmuteFX():void{
_muteFX = false;
}
private static function handleSoundPlayOnceComplete(_arg1:Event):void{
var _local2:String;
for (_local2 in currentlyPlaying) {
if (currentlyPlaying[_local2] == _arg1.target){
currentlyPlaying[_local2] = null;
break;
};
};
}
public static function muteAll():void{
_muteAll = true;
if (_backgroundLoop != null){
_backgroundLoop.soundTransform = new SoundTransform(0);
};
if (_secondaryLoop != null){
_secondaryLoop.soundTransform = new SoundTransform(0);
};
}
private static function handleSecondaryLoopSoundComplete(_arg1:Event):void{
if (_secondaryLoopSound != null){
_secondaryLoopSound.play();
};
}
public static function mute():void{
_mute = true;
if (_backgroundLoop != null){
_backgroundLoop.soundTransform = new SoundTransform(0);
};
if (_secondaryLoop != null){
_secondaryLoop.soundTransform = new SoundTransform(0);
};
}
private static function handleLoopSoundComplete(_arg1:Event):void{
if (_backgroundLoopSound != null){
_backgroundLoopSound.play();
};
}
public static function unmuteAll():void{
_muteAll = false;
_mute = false;
if (_backgroundLoop != null){
_backgroundLoop.soundTransform = new SoundTransform(1);
};
if (_secondaryLoop != null){
_secondaryLoop.soundTransform = new SoundTransform(1);
};
}
public static function playSounds(... _args):void{
var sound:Sound;
var volume:Number;
var soundChannel:SoundChannel;
var args = _args;
try {
if (((!(_muteAll)) && (!(_muteFX)))){
if ((args[0] is Sound)){
volume = 1;
sound = args[0];
} else {
volume = args[0].volume;
sound = args[0].sound;
};
if (_playlists == null){
_playlists = new Array();
};
_playlists[_playlists.length] = {length:args.length, currentIndex:0, sounds:args};
soundChannel = Sound(sound).play(0, 0, new SoundTransform(volume));
if (soundChannel != null){
new EventWrapper(Event.SOUND_COMPLETE, soundChannel, handleSoundComplete, _playlists[(_playlists.length - 1)]);
};
};
} catch(err:Error) {
};
}
public static function setLoopVolume(_arg1:Number):void{
if (((((!(_mute)) && (!(_muteAll)))) && (!((_backgroundLoop == null))))){
_backgroundLoop.soundTransform = new SoundTransform(_arg1);
};
}
public static function playSoundOnce(_arg1:Sound, _arg2:Number=1):void{
var soundChannel:SoundChannel;
var sound = _arg1;
var volume = _arg2;
try {
if (((((!(_muteAll)) && (!(_muteFX)))) && ((currentlyPlaying[typeof(sound)] == null)))){
soundChannel = sound.play(0, 0, new SoundTransform(volume));
if (soundChannel != null){
currentlyPlaying[typeof(sound)] = soundChannel;
soundChannel.addEventListener(Event.SOUND_COMPLETE, handleSoundPlayOnceComplete);
};
};
} catch(err:Error) {
};
}
public static function playSecondaryLoop(_arg1:Sound, _arg2:Number=0.7, _arg3:Boolean=true):void{
var sound = _arg1;
var volume = _arg2;
var stopPrimary = _arg3;
try {
if (((!(_mute)) && (!(_muteAll)))){
if (sound != null){
_secondaryLoopSound = sound;
if (((!((_backgroundLoop == null))) && (stopPrimary))){
stopLoop();
};
_secondaryLoop = _secondaryLoopSound.play(0, 0xFFFFFF, new SoundTransform(volume));
_secondaryLoop.addEventListener(Event.SOUND_COMPLETE, handleSecondaryLoopSoundComplete);
};
};
} catch(err:Error) {
};
}
public static function stopSecondaryLoop(_arg1:Boolean=true):void{
var returnToMainLoop = _arg1;
try {
if (_secondaryLoop != null){
if (returnToMainLoop){
playLoop(null, _backgroundLoopVolume);
} else {
_secondaryLoop.removeEventListener(Event.SOUND_COMPLETE, handleSecondaryLoopSoundComplete);
_secondaryLoop.stop();
};
};
} catch(err:Error) {
};
}
private static function handleSoundComplete(_arg1:Event, _arg2:Object):void{
var _local3:Sound;
var _local4:Number;
var _local5:Object;
var _local6:SoundChannel;
_arg1.target.removeEventListener(Event.SOUND_COMPLETE, handleSoundComplete);
if (((((!(_muteAll)) && (!(_muteFX)))) && (((_arg2.currentIndex + 1) < _arg2.length)))){
_arg2.currentIndex++;
_local5 = _arg2.sounds[_arg2.currentIndex];
if ((_local5 is Sound)){
_local4 = 1;
_local3 = Sound(_local5);
} else {
_local4 = _local5.volume;
_local3 = Sound(_local5.sound);
};
_local6 = Sound(_local3).play();
if (_local6 != null){
new EventWrapper(Event.SOUND_COMPLETE, _local6, handleSoundComplete, _arg2);
};
};
}
public static function isMute():Boolean{
return (((_mute) || (_muteAll)));
}
public static function muteFX():void{
_muteFX = true;
}
public static function playLoop(_arg1:Sound=null, _arg2:Number=0.7):void{
var sound = _arg1;
var volume = _arg2;
try {
if (((!(_mute)) && (!(_muteAll)))){
_backgroundLoopVolume = volume;
if (sound != null){
_backgroundLoopSound = sound;
};
if (_backgroundLoopSound != null){
if (_backgroundLoop != null){
stopLoop();
};
_backgroundLoop = _backgroundLoopSound.play(0, 0xFFFFFF, new SoundTransform(_backgroundLoopVolume));
_backgroundLoop.addEventListener(Event.SOUND_COMPLETE, handleLoopSoundComplete);
};
};
} catch(err:Error) {
};
}
public static function playSound(_arg1:Sound, _arg2:Number=1):void{
var sound = _arg1;
var volume = _arg2;
try {
if (((!(_muteAll)) && (!(_muteFX)))){
sound.play(0, 0, new SoundTransform(volume));
};
} catch(err:Error) {
};
}
}
}//package com.tweegee.utils
Section 11
//CONGR_5 (unlockthelocker_sa_fla.CONGR_5)
package unlockthelocker_sa_fla {
import flash.display.*;
public dynamic class CONGR_5 extends MovieClip {
public function CONGR_5(){
addFrameScript(78, frame79);
}
function frame79(){
stop();
}
}
}//package unlockthelocker_sa_fla
Section 12
//POINTS_21 (unlockthelocker_sa_fla.POINTS_21)
package unlockthelocker_sa_fla {
import flash.display.*;
public dynamic class POINTS_21 extends MovieClip {
public function POINTS_21(){
addFrameScript(24, frame25);
}
function frame25(){
stop();
}
}
}//package unlockthelocker_sa_fla
Section 13
//sourceClock_58 (unlockthelocker_sa_fla.sourceClock_58)
package unlockthelocker_sa_fla {
import flash.display.*;
public dynamic class sourceClock_58 extends MovieClip {
public var mc_Mask:MovieClip;
}
}//package unlockthelocker_sa_fla
Section 14
//sourceCongratsCircle_4 (unlockthelocker_sa_fla.sourceCongratsCircle_4)
package unlockthelocker_sa_fla {
import flash.display.*;
public dynamic class sourceCongratsCircle_4 extends MovieClip {
public function sourceCongratsCircle_4(){
addFrameScript(29, frame30);
}
function frame30(){
stop();
}
}
}//package unlockthelocker_sa_fla
Section 15
//sourceLogo_68 (unlockthelocker_sa_fla.sourceLogo_68)
package unlockthelocker_sa_fla {
import flash.display.*;
public dynamic class sourceLogo_68 extends MovieClip {
public function sourceLogo_68(){
addFrameScript(8, frame9);
}
function frame9(){
stop();
}
}
}//package unlockthelocker_sa_fla
Section 16
//sourceTimer_60 (unlockthelocker_sa_fla.sourceTimer_60)
package unlockthelocker_sa_fla {
import flash.display.*;
import flash.text.*;
public dynamic class sourceTimer_60 extends MovieClip {
public var mc_Timer:TextField;
}
}//package unlockthelocker_sa_fla
Section 17
//sourceUnlockTheLocker_69 (unlockthelocker_sa_fla.sourceUnlockTheLocker_69)
package unlockthelocker_sa_fla {
import flash.display.*;
public dynamic class sourceUnlockTheLocker_69 extends MovieClip {
public function sourceUnlockTheLocker_69(){
addFrameScript(58, frame59);
}
function frame59(){
stop();
}
}
}//package unlockthelocker_sa_fla
Section 18
//sourceYou_106 (unlockthelocker_sa_fla.sourceYou_106)
package unlockthelocker_sa_fla {
import flash.display.*;
import flash.text.*;
public dynamic class sourceYou_106 extends MovieClip {
public var mc_Score:TextField;
}
}//package unlockthelocker_sa_fla
Section 19
//sourceYou_116 (unlockthelocker_sa_fla.sourceYou_116)
package unlockthelocker_sa_fla {
import flash.display.*;
import flash.text.*;
public dynamic class sourceYou_116 extends MovieClip {
public var mc_Score:TextField;
}
}//package unlockthelocker_sa_fla
Section 20
//spriteAreYouSure_62 (unlockthelocker_sa_fla.spriteAreYouSure_62)
package unlockthelocker_sa_fla {
import flash.display.*;
public dynamic class spriteAreYouSure_62 extends MovieClip {
public var btn_Yes:SimpleButton;
public var btn_No:SimpleButton;
}
}//package unlockthelocker_sa_fla
Section 21
//spriteMainMenuAnimation_66 (unlockthelocker_sa_fla.spriteMainMenuAnimation_66)
package unlockthelocker_sa_fla {
import flash.display.*;
public dynamic class spriteMainMenuAnimation_66 extends MovieClip {
public function spriteMainMenuAnimation_66(){
addFrameScript(79, frame80);
}
function frame80(){
stop();
}
}
}//package unlockthelocker_sa_fla
Section 22
//spriteSpinningLines_67 (unlockthelocker_sa_fla.spriteSpinningLines_67)
package unlockthelocker_sa_fla {
import flash.display.*;
public dynamic class spriteSpinningLines_67 extends MovieClip {
public function spriteSpinningLines_67(){
addFrameScript(104, frame105);
}
function frame105(){
stop();
}
}
}//package unlockthelocker_sa_fla
Section 23
//BackgroundLoop (BackgroundLoop)
package {
import flash.media.*;
public dynamic class BackgroundLoop extends Sound {
}
}//package
Section 24
//ButtonClickSound (ButtonClickSound)
package {
import flash.media.*;
public dynamic class ButtonClickSound extends Sound {
}
}//package
Section 25
//GameData (GameData)
package {
public class GameData {
public var _gameLevels:Array;
public var _gameChar:uint;
public var _elements:Array;
public var _allElements:Array;
public var _gameEase:uint;
public static const LEVEL_EASE_HARD:uint = 3;
public static const PLACEMENT_WALL:String = "wall";
public static const LEVEL_EASE_MEDIUM:uint = 2;
public static const CHARECTER_JOCKEY:uint = 2;
public static const LEVEL_EASE_EASY:uint = 1;
public static const CHARECTER_NERD:uint = 4;
public static const PLACEMENT_KOLAV:String = "kolav";
public static const PLACEMENT_BOTTOM:String = "bottom";
public static const CHARECTER_FREAK:uint = 1;
public static const PLACEMENT_ANYWHERE:String = "anywhere";
public static const CHARECTER_SKATER:uint = 0;
public static const CHARECTER_CHEER:uint = 3;
public static var charArray = new Array("Skater", "Freak", "Jockey", "Cheer", "Nerd");
public function GameData():void{
_elements = new Array();
_elements["Cheer"] = new Array();
_elements["Freak"] = new Array();
_elements["Global"] = new Array();
_elements["Nerd"] = new Array();
_elements["Skater"] = new Array();
_elements["Jockey"] = new Array();
_elements["Cheer"]["CheerleaderOutfit"] = {object:new sourceCheerleaderOutfit(), placement:PLACEMENT_KOLAV, space:3};
_elements["Cheer"]["HairDryer"] = {object:new sourceHairDryer(), placement:PLACEMENT_ANYWHERE, space:2};
_elements["Cheer"]["PonPons"] = {object:new sourcePonPons(), placement:PLACEMENT_ANYWHERE, space:3};
_elements["Cheer"]["CheerleaderPicture"] = {object:new sourceCheerleaderPicture(), placement:PLACEMENT_WALL, space:2};
_elements["Freak"]["MetalShirt"] = {object:new sourceMetalShirt(), placement:PLACEMENT_KOLAV, space:3};
_elements["Freak"]["Neckless"] = {object:new sourceNeckless(), placement:PLACEMENT_ANYWHERE, space:1};
_elements["Freak"]["Skull"] = {object:new sourceSkull(), placement:PLACEMENT_ANYWHERE, space:2};
_elements["Freak"]["Iguana"] = {object:new sourceIguana(), placement:PLACEMENT_ANYWHERE, space:3};
_elements["Global"]["Books"] = {object:new sourceBooks(), placement:PLACEMENT_ANYWHERE, space:2};
_elements["Global"]["CellPhone"] = {object:new sourceCellPhone(), placement:PLACEMENT_ANYWHERE, space:1};
_elements["Global"]["Hamburger"] = {object:new sourceHamburger(), placement:PLACEMENT_ANYWHERE, space:2};
_elements["Global"]["RXE"] = {object:new sourceRXE(), placement:PLACEMENT_ANYWHERE, space:1};
_elements["Global"]["Socks"] = {object:new sourceSocks(), placement:PLACEMENT_ANYWHERE, space:2};
_elements["Global"]["Pen"] = {object:new sourcePen(), placement:PLACEMENT_ANYWHERE, space:0.5};
_elements["Global"]["Pencil"] = {object:new sourcePencil(), placement:PLACEMENT_ANYWHERE, space:0.5};
_elements["Global"]["iPod"] = {object:new sourceiPod(), placement:PLACEMENT_ANYWHERE, space:1};
_elements["Nerd"]["Glasses"] = {object:new sourceGlasses(), placement:PLACEMENT_ANYWHERE, space:1};
_elements["Nerd"]["Laptop"] = {object:new sourceLaptop(), placement:PLACEMENT_ANYWHERE, space:2};
_elements["Nerd"]["OXY"] = {object:new sourceOXY(), placement:PLACEMENT_ANYWHERE, space:1};
_elements["Nerd"]["ScientistShirt"] = {object:new sourceScientistShirt(), placement:PLACEMENT_KOLAV, space:3};
_elements["Nerd"]["Tube"] = {object:new sourceTube(), placement:PLACEMENT_ANYWHERE, space:1};
_elements["Nerd"]["Frog"] = {object:new sourceFrog(), placement:PLACEMENT_ANYWHERE, space:2};
_elements["Nerd"]["CheerleaderPicture"] = {object:new sourceCheerleaderPicture(), placement:PLACEMENT_WALL, space:2};
_elements["Jockey"]["Football"] = {object:new sourceFootball(), placement:PLACEMENT_ANYWHERE, space:2};
_elements["Jockey"]["SportJacket"] = {object:new sourceSportJacket(), placement:PLACEMENT_KOLAV, space:3};
_elements["Jockey"]["Helmet"] = {object:new sourceHelmet(), placement:PLACEMENT_ANYWHERE, space:2};
_elements["Jockey"]["CheerleaderPicture"] = {object:new sourceCheerleaderPicture(), placement:PLACEMENT_WALL, space:2};
_elements["Skater"]["Skateboard"] = {object:new sourceSkateboard(), placement:PLACEMENT_ANYWHERE, space:4};
_elements["Skater"]["VivaLaBam"] = {object:new sourceVivaLaBam(), placement:PLACEMENT_WALL, space:2};
_elements["Skater"]["Shoe"] = {object:new sourceShoe(), placement:PLACEMENT_ANYWHERE, space:2};
_elements["Skater"]["Hat"] = {object:new sourceHat(), placement:PLACEMENT_ANYWHERE, space:2};
_allElements = new Array().concat(_elements["Cheer"], _elements["Freak"], _elements["Global"], _elements["Nerd"], _elements["Jockey"], _elements["Skater"]);
_gameLevels = new Array();
_gameLevels[0] = {time:15, elements:4};
_gameLevels[1] = {time:40, elements:7};
_gameLevels[2] = {time:80, elements:9};
_gameLevels[3] = {time:20, elements:5};
_gameLevels[4] = {time:40, elements:8};
_gameLevels[5] = {time:80, elements:10};
_gameLevels[6] = {time:20, elements:6};
_gameLevels[7] = {time:40, elements:9};
_gameLevels[8] = {time:90, elements:11};
_gameLevels[9] = {time:20, elements:6};
_gameLevels[10] = {time:40, elements:10};
_gameLevels[11] = {time:90, elements:12};
_gameLevels[12] = {time:20, elements:7};
_gameLevels[13] = {time:40, elements:11};
_gameLevels[14] = {time:90, elements:14};
}
}
}//package
Section 26
//Main (Main)
package {
import flash.events.*;
import flash.display.*;
import com.tweegee.utils.*;
import flash.utils.*;
import flash.net.*;
import flash.filters.*;
public class Main extends MovieClip {
private var mc_Game:SpriteGame;
private var mc_Loser:SpriteLoser;
private var btn_Mute:MovieClip;
private var mc_MainMenu:SpriteMainMenu;
private var logoMc:Sprite;
private var mc_LevelIntro:spriteLevelIntro;
private var totalScore:uint;
private var mc_MessageMenu:MovieClip;
private var gameData:GameData;
private var mc_Wooo:SpriteWooo;
public static var saveScore:Function;
public static var debugMode:Boolean = false;
public static var stage:Stage;
public static var isLogin:Boolean;
public function Main():void{
addFrameScript(0, frame1);
initGame(stage, saveScore, "logout");
}
private function handleReturnToMenu(_arg1:Event):void{
removeChild(mc_Game);
mc_Game = null;
addChild(mc_MainMenu);
bringMuteToFront();
}
public function initGame(_arg1:Stage, _arg2:Function, _arg3:String):void{
_slot1.stage = _arg1;
_slot1.isLogin = (_arg3 == "login");
_slot1.saveScore = _arg2;
logoMc = new tweegeeLogo();
logoMc.x = 140;
logoMc.y = (_arg1.stageHeight - logoMc.height);
logoMc.addEventListener(MouseEvent.CLICK, handleLogoClick);
logoMc.buttonMode = true;
addChild(logoMc);
gameData = new GameData();
initMute();
mc_LevelIntro = new spriteLevelIntro();
totalScore = 0;
GameSoundManager.playLoop(new BackgroundLoop());
if (!debugMode){
mc_MainMenu = new SpriteMainMenu();
mc_MainMenu.addEventListener(SpriteMainMenu.OK_CLICKED, handleMainMenuOKClicked);
addChild(mc_MainMenu);
bringMuteToFront();
} else {
newGame(4, GameData.LEVEL_EASE_EASY);
};
}
private function bringMuteToFront():void{
setChildIndex(logoMc, (numChildren - 1));
setChildIndex(btn_Mute, (numChildren - 1));
}
private function handleSubmitScore(_arg1:Event):void{
saveScore.call(this, totalScore);
}
private function handleWooOKClicked(_arg1:Event):void{
unloadMessageMenu();
}
private function handleTimesUp(_arg1:Event):void{
mc_Loser = new SpriteLoser();
mc_MessageMenu = mc_Loser;
mc_Loser.addEventListener(SpriteLoser.OK_CLICKED, handleTimesUpOKClicked);
mc_Loser.addEventListener(SpriteLoser.SAVE_SCORE_CLICKED, handleSubmitScore);
addChild(mc_Loser);
bringMuteToFront();
mc_Loser.init(totalScore, isLogin);
}
private function initMute():void{
btn_Mute = new SpriteMute();
btn_Mute.buttonMode = true;
btn_Mute.addEventListener(MouseEvent.CLICK, handleMuteClick);
btn_Mute.addEventListener(MouseEvent.MOUSE_OVER, handleMuteMouseOver);
btn_Mute.addEventListener(MouseEvent.MOUSE_OUT, handleMuteMouseOut);
addChild(btn_Mute);
btn_Mute.x = 35;
btn_Mute.y = 468;
}
function frame1(){
stop();
}
private function handleLogoClick(_arg1:MouseEvent):void{
var url:String;
var request:URLRequest;
var e = _arg1;
url = "http://www.tweegee.com/ch/main/Affiliation.aspx?AffCamId=911e724c-3c80-457f-a2bb-7a1dfd5c341f";
request = new URLRequest(url);
try {
navigateToURL(request, "_blank");
} catch(e:Error) {
};
}
private function handleTimesUpOKClicked(_arg1:Event):void{
unloadMessageMenu();
}
private function unloadMessageMenu():void{
removeChild(mc_MessageMenu);
removeChild(mc_Game);
mc_Game = null;
addChild(mc_MainMenu);
bringMuteToFront();
mc_MessageMenu = null;
}
public function restartGame():void{
unloadMessageMenu();
}
public function newGame(_arg1:uint, _arg2:uint):void{
var myLevel = _arg1;
var myEase = _arg2;
gameData._gameChar = myLevel;
gameData._gameEase = myEase;
switch (myLevel){
case 0:
mc_LevelIntro.mc_Char = new sourceSkater();
break;
case 1:
mc_LevelIntro.mc_Char = new sourceGoth();
break;
case 2:
mc_LevelIntro.mc_Char = new sourceJockey();
break;
case 3:
mc_LevelIntro.mc_Char = new sourceCheer();
break;
case 4:
mc_LevelIntro.mc_Char = new sourceNerd();
break;
};
mc_LevelIntro.levelNum = myLevel;
mc_LevelIntro.levelType = myEase;
mc_LevelIntro.init();
addChild(mc_LevelIntro);
bringMuteToFront();
if (mc_Game != null){
removeChild(mc_Game);
};
mc_Game = new SpriteGame(gameData);
mc_Game.addEventListener(SpriteGame.END_OF_LEVEL, handleEndOfLevel);
mc_Game.addEventListener(SpriteGame.TIMES_UP, handleTimesUp);
mc_Game.addEventListener(SpriteGame.RETURN_TO_MENU, handleReturnToMenu);
mc_Game.x = 256.8;
mc_Game.y = 256.9;
mc_Game._newGame = newGame;
mc_Game.gameTime = gameData._gameLevels[(((myLevel * 3) + myEase) - 1)].time;
mc_Game.totalScore = totalScore;
setTimeout(function (){
removeChild(mc_LevelIntro);
addChild(mc_Game);
bringMuteToFront();
mc_Game.init(myLevel, myEase);
}, 3000);
}
private function handleMainMenuOKClicked(_arg1:Event):void{
totalScore = 0;
removeChild(mc_MainMenu);
newGame(0, GameData.LEVEL_EASE_EASY);
}
private function handleMuteMouseOver(_arg1:Event):void{
btn_Mute.filters = new Array(new GlowFilter(0xFFFFFF, 1, 5, 5, 5));
}
private function handleMuteClick(_arg1:Event):void{
if (GameSoundManager.isMute()){
GameSoundManager.unmute();
btn_Mute.gotoAndPlay(0);
} else {
GameSoundManager.mute();
btn_Mute.gotoAndStop(0);
};
}
private function handleEndOfLevel(_arg1:Event):void{
trace("End of level ");
totalScore = (totalScore + mc_Game.gameScore);
if (gameData._gameEase == GameData.LEVEL_EASE_HARD){
if (gameData._gameChar == 4){
mc_Wooo = new SpriteWooo();
mc_MessageMenu = mc_Wooo;
addChild(mc_Wooo);
bringMuteToFront();
mc_Wooo.addEventListener(SpriteWooo.OK_CLICKED, handleWooOKClicked);
mc_Wooo.addEventListener(SpriteWooo.SAVE_SCORE_CLICKED, handleSubmitScore);
mc_Wooo.init(totalScore, isLogin);
} else {
newGame((gameData._gameChar + 1), GameData.LEVEL_EASE_EASY);
};
} else {
newGame(gameData._gameChar, (gameData._gameEase + 1));
};
}
private function handleMuteMouseOut(_arg1:Event):void{
btn_Mute.filters = null;
}
}
}//package
Section 27
//SoundBad (SoundBad)
package {
import flash.media.*;
public dynamic class SoundBad extends Sound {
}
}//package
Section 28
//SoundGood (SoundGood)
package {
import flash.media.*;
public dynamic class SoundGood extends Sound {
}
}//package
Section 29
//SoundLoser (SoundLoser)
package {
import flash.media.*;
public dynamic class SoundLoser extends Sound {
}
}//package
Section 30
//SoundSwoosh (SoundSwoosh)
package {
import flash.media.*;
public dynamic class SoundSwoosh extends Sound {
}
}//package
Section 31
//SoundSwoosh2 (SoundSwoosh2)
package {
import flash.media.*;
public dynamic class SoundSwoosh2 extends Sound {
}
}//package
Section 32
//SoundUnveil (SoundUnveil)
package {
import flash.media.*;
public dynamic class SoundUnveil extends Sound {
}
}//package
Section 33
//SoundWinner (SoundWinner)
package {
import flash.media.*;
public dynamic class SoundWinner extends Sound {
}
}//package
Section 34
//SoundWinner1 (SoundWinner1)
package {
import flash.media.*;
public dynamic class SoundWinner1 extends Sound {
}
}//package
Section 35
//sourceBar (sourceBar)
package {
import flash.display.*;
public dynamic class sourceBar extends MovieClip {
}
}//package
Section 36
//sourceBooks (sourceBooks)
package {
import flash.display.*;
public dynamic class sourceBooks extends MovieClip {
}
}//package
Section 37
//sourceCellPhone (sourceCellPhone)
package {
import flash.display.*;
public dynamic class sourceCellPhone extends MovieClip {
}
}//package
Section 38
//sourceCheer (sourceCheer)
package {
import flash.display.*;
public dynamic class sourceCheer extends MovieClip {
}
}//package
Section 39
//sourceCheerleaderOutfit (sourceCheerleaderOutfit)
package {
import flash.display.*;
public dynamic class sourceCheerleaderOutfit extends MovieClip {
}
}//package
Section 40
//sourceCheerleaderPicture (sourceCheerleaderPicture)
package {
import flash.display.*;
public dynamic class sourceCheerleaderPicture extends MovieClip {
}
}//package
Section 41
//sourceFootball (sourceFootball)
package {
import flash.display.*;
public dynamic class sourceFootball extends MovieClip {
}
}//package
Section 42
//sourceFrog (sourceFrog)
package {
import flash.display.*;
public dynamic class sourceFrog extends MovieClip {
}
}//package
Section 43
//sourceGlasses (sourceGlasses)
package {
import flash.display.*;
public dynamic class sourceGlasses extends MovieClip {
}
}//package
Section 44
//sourceGoth (sourceGoth)
package {
import flash.display.*;
public dynamic class sourceGoth extends MovieClip {
}
}//package
Section 45
//sourceHairDryer (sourceHairDryer)
package {
import flash.display.*;
public dynamic class sourceHairDryer extends MovieClip {
}
}//package
Section 46
//sourceHamburger (sourceHamburger)
package {
import flash.display.*;
public dynamic class sourceHamburger extends MovieClip {
}
}//package
Section 47
//sourceHat (sourceHat)
package {
import flash.display.*;
public dynamic class sourceHat extends MovieClip {
}
}//package
Section 48
//sourceHelmet (sourceHelmet)
package {
import flash.display.*;
public dynamic class sourceHelmet extends MovieClip {
}
}//package
Section 49
//sourceIguana (sourceIguana)
package {
import flash.display.*;
public dynamic class sourceIguana extends MovieClip {
}
}//package
Section 50
//sourceiPod (sourceiPod)
package {
import flash.display.*;
public dynamic class sourceiPod extends MovieClip {
}
}//package
Section 51
//sourceJockey (sourceJockey)
package {
import flash.display.*;
public dynamic class sourceJockey extends MovieClip {
}
}//package
Section 52
//sourceLaptop (sourceLaptop)
package {
import flash.display.*;
public dynamic class sourceLaptop extends MovieClip {
}
}//package
Section 53
//sourceMetalShirt (sourceMetalShirt)
package {
import flash.display.*;
public dynamic class sourceMetalShirt extends MovieClip {
}
}//package
Section 54
//sourceNeckless (sourceNeckless)
package {
import flash.display.*;
public dynamic class sourceNeckless extends MovieClip {
}
}//package
Section 55
//sourceNerd (sourceNerd)
package {
import flash.display.*;
public dynamic class sourceNerd extends MovieClip {
}
}//package
Section 56
//sourceOXY (sourceOXY)
package {
import flash.display.*;
public dynamic class sourceOXY extends MovieClip {
}
}//package
Section 57
//sourcePen (sourcePen)
package {
import flash.display.*;
public dynamic class sourcePen extends MovieClip {
}
}//package
Section 58
//sourcePencil (sourcePencil)
package {
import flash.display.*;
public dynamic class sourcePencil extends MovieClip {
}
}//package
Section 59
//sourcePonPons (sourcePonPons)
package {
import flash.display.*;
public dynamic class sourcePonPons extends MovieClip {
}
}//package
Section 60
//sourceRXE (sourceRXE)
package {
import flash.display.*;
public dynamic class sourceRXE extends MovieClip {
}
}//package
Section 61
//sourceScientistShirt (sourceScientistShirt)
package {
import flash.display.*;
public dynamic class sourceScientistShirt extends MovieClip {
}
}//package
Section 62
//sourceShoe (sourceShoe)
package {
import flash.display.*;
public dynamic class sourceShoe extends MovieClip {
}
}//package
Section 63
//sourceSkateboard (sourceSkateboard)
package {
import flash.display.*;
public dynamic class sourceSkateboard extends MovieClip {
}
}//package
Section 64
//sourceSkater (sourceSkater)
package {
import flash.display.*;
public dynamic class sourceSkater extends MovieClip {
}
}//package
Section 65
//sourceSkull (sourceSkull)
package {
import flash.display.*;
public dynamic class sourceSkull extends MovieClip {
}
}//package
Section 66
//sourceSocks (sourceSocks)
package {
import flash.display.*;
public dynamic class sourceSocks extends MovieClip {
}
}//package
Section 67
//sourceSportJacket (sourceSportJacket)
package {
import flash.display.*;
public dynamic class sourceSportJacket extends MovieClip {
}
}//package
Section 68
//sourceTopShelve (sourceTopShelve)
package {
import flash.display.*;
public dynamic class sourceTopShelve extends MovieClip {
}
}//package
Section 69
//sourceTube (sourceTube)
package {
import flash.display.*;
public dynamic class sourceTube extends MovieClip {
}
}//package
Section 70
//sourceVivaLaBam (sourceVivaLaBam)
package {
import flash.display.*;
public dynamic class sourceVivaLaBam extends MovieClip {
}
}//package
Section 71
//SpriteCongrats (SpriteCongrats)
package {
import flash.events.*;
import caurina.transitions.*;
import flash.display.*;
import com.tweegee.utils.*;
import flash.text.*;
public class SpriteCongrats extends MovieClip {
public var txt_Score:TextField;
public var mc_Message:MovieClip;
public var mc_Score:MovieClip;
public var txt_TotalScore:TextField;
public static const END_OF_ANIMATION:String = "End Of Animation";
public function init(_arg1:uint, _arg2:uint):void{
GameSoundManager.playSound(new SoundWinner1());
Tweener.addTween(txt_Score, {alpha:0});
Tweener.addTween(txt_TotalScore, {alpha:0});
Tweener.addTween(txt_Score, {alpha:1, time:1});
Tweener.addTween(txt_TotalScore, {alpha:1, time:1});
Tweener.addTween(txt_Score, {text:_arg1, rounded:true, time:1.5});
Tweener.addTween(txt_TotalScore, {text:(_arg1 + _arg2), rounded:true, time:3});
Tweener.addTween(this, {onComplete:handleEndOfAnimation, delay:4});
mc_Message.play();
mc_Score.play();
}
private function startPhase2():void{
GameSoundManager.playSound(new SoundSwoosh());
mc_Message.play();
}
private function handleEndOfAnimation():void{
dispatchEvent(new Event(END_OF_ANIMATION));
}
}
}//package
Section 72
//SpriteCountdown (SpriteCountdown)
package {
import flash.display.*;
public dynamic class SpriteCountdown extends MovieClip {
public function SpriteCountdown(){
addFrameScript(159, frame160);
}
function frame160(){
stop();
}
}
}//package
Section 73
//SpriteGame (SpriteGame)
package {
import flash.events.*;
import caurina.transitions.*;
import flash.display.*;
import com.tweegee.utils.*;
import flash.utils.*;
import flash.filters.*;
import flash.geom.*;
public class SpriteGame extends MovieClip {
public var mc_Locker:MovieClip;
public var mc_Clock:MovieClip;
private var gameCharecterNum:uint;
private var mc_Congrats:SpriteCongrats;
public var mc_AreYouSure:MovieClip;
private var objectsPlaced:Array;
public var _newGame:Function;
public var mc_Holder:MovieClip;
private var currentState:String;
private var numObjectsPlaced:uint;
private var gameData:GameData;
private var objectsFound:uint;
private var spriteCountdown:MovieClip;
private var lookedAlready:Boolean;
private var gameEase:uint;
private var currentLevelObjects:Array;
public var btn_Back:SimpleButton;
private var movingObject:Object;
public var mc_Timer:MovieClip;
private var gameCharecter:String;
public var mc_TopShelve:sourceTopShelve;
private var timerTime:Timer;
public var totalScore:uint;
public var btn_LookAgain:SimpleButton;
public var gameScore:uint;
private var mc_TS:MovieClip;
private var mc_Bar:MovieClip;
public var gameTime:uint;
public static const END_OF_LEVEL:String = "End of level";
public static const RETURN_TO_MENU:String = "Return to menu";
public static const TIMES_UP:String = "Time's up";
public function SpriteGame(_arg1:GameData):void{
addFrameScript(72, frame73, 144, frame145);
lookedAlready = false;
gameData = _arg1;
movingObject = new Object();
objectsPlaced = new Array();
timerTime = new Timer(1000);
timerTime.addEventListener(TimerEvent.TIMER, handleTimerEvent);
mc_TS = new sourceTopShelve();
mc_Bar = new sourceBar();
mc_Bar.x = -223.5;
mc_Bar.y = 119;
mc_TS.x = -241.8;
mc_TS.y = -121.5;
addChild(mc_Bar);
addChild(mc_TS);
spriteCountdown = new SpriteCountdown();
spriteCountdown.x = 173.7;
spriteCountdown.y = -141.3;
spriteCountdown.visible = false;
addEventListener(Event.ENTER_FRAME, handleEnterFrame);
stop();
super();
}
private function emptiestShelve(_arg1:Array):uint{
if ((((_arg1[0].free == _arg1[1].free)) && ((_arg1[0].free == _arg1[2].free)))){
return (Math.floor((Math.random() * 2.9)));
};
if (_arg1[0].free >= _arg1[1].free){
if (_arg1[0].free >= _arg1[2].free){
return (0);
};
return (2);
} else {
//unresolved if
};
return (!NULL!);
return (2);
}
private function loadNextLevel(_arg1:Event):void{
dispatchEvent(new Event(SpriteGame.END_OF_LEVEL));
}
private function handleFinishedLookingAgain():void{
var _local1:Object;
for each (_local1 in objectsPlaced) {
_local1._object.visible = true;
};
play();
}
private function handleObjectMouseMove(_arg1:MouseEvent):void{
movingObject._object.x = (_arg1.stageX - movingObject._initX);
movingObject._object.y = (_arg1.stageY - movingObject._initY);
}
private function setObjectPosition(_arg1:Object, _arg2:String, _arg3:String, _arg4:Array):void{
var _local5:Object;
var _local6:int;
var _local7:uint;
var _local8:uint;
var _local9:Array;
var _local10:uint;
_local6 = 0;
_local8 = _arg4[0];
_local9 = new Array({index:0, value:_arg4[0]});
_local5 = new Object();
_local5._object = _arg1.object;
_local5._objectClass = _arg3;
_local5._object.gotoAndStop(1);
if (_arg2 == "Skateboard"){
_local6 = Math.floor((Math.random() * 3));
_arg4[(_local6 * 3)] = (_arg4[(_local6 * 3)] + 3);
_arg4[((_local6 * 3) + 1)] = (_arg4[((_local6 * 3) + 1)] + 3);
_arg4[((_local6 * 3) + 2)] = (_arg4[((_local6 * 3) + 2)] + 3);
switch (_local6){
case 0:
_local5._y = 130;
break;
case 1:
_local5._y = 240;
break;
case 2:
_local5._y = 350;
break;
};
_local5._x = 150;
} else {
switch (_arg1.placement){
case GameData.PLACEMENT_ANYWHERE:
_local10 = 1;
while (_local10 < 9) {
if (_arg4[_local10] < _local8){
_local6 = _local10;
_local8 = _arg4[_local10];
_local9 = new Array({index:_local10, value:_arg4[_local10]});
} else {
if (_arg4[_local10] == _local8){
_local9.push({index:_local10, value:_arg4[_local10]});
};
};
_local10++;
};
if (_local9.length > 1){
_local6 = _local9[Math.floor((Math.random() * _local9.length))].index;
};
if (_local6 < 3){
_local5._y = 130;
} else {
if (_local6 < 6){
_local5._y = 240;
} else {
if (_local6 < 9){
_local5._y = 350;
if ((((((_arg2 == "Hat")) || ((_arg2 == "Books")))) || ((_arg2 == "Laptop")))){
_local5._object.gotoAndStop(2);
};
};
};
};
switch ((_local6 % 3)){
case 0:
_local5._x = (20 + (_arg1.object.width / 2));
break;
case 1:
_local5._x = 150;
break;
case 2:
_local5._x = (290 - (_arg1.object.width / 2));
break;
};
_arg4[_local6] = (_arg4[_local6] + _arg1.space);
break;
case GameData.PLACEMENT_KOLAV:
_local5._y = 380;
_local5._x = 150;
break;
case GameData.PLACEMENT_WALL:
switch (Math.floor((Math.random() * 2.9))){
case 0:
_local5._y = 80;
break;
case 1:
_local5._y = 197;
break;
case 2:
_local5._y = 300;
break;
};
_local5._x = ((Math.random() * 103) + 100);
break;
};
_local5._x = (_local5._x + ((Math.random() * 20) - 10));
};
_local5._object.x = _local5._x;
_local5._object.y = _local5._y;
_local5._objectKey = _arg2;
currentLevelObjects[_arg2] = _local5;
}
private function handleBackToMenuYesClick(_arg1:MouseEvent):void{
Tweener.addTween(btn_Back, {y:215, time:1});
Tweener.addTween(mc_AreYouSure, {y:275, time:1});
timerTime.stop();
GameSoundManager.playSound(new SoundSwoosh());
dispatchEvent(new Event(RETURN_TO_MENU));
}
private function handleEndOfCountdown():void{
spriteCountdown.visible = false;
play();
}
private function handleTimerEvent(_arg1:TimerEvent):void{
mc_Timer.mc_Timer.text = String((gameTime - timerTime.currentCount));
mc_Clock.mc_Mask.rotation = ((timerTime.currentCount / gameTime) * 360);
if (timerTime.currentCount > (gameTime / 2)){
mc_Clock.gotoAndStop(2);
};
if ((gameTime - timerTime.currentCount) == 0){
dispatchEvent(new Event(TIMES_UP));
timerTime.stop();
timerTime.removeEventListener(TimerEvent.TIMER, handleTimerEvent);
};
}
private function endOfLevel():void{
var _local1:uint;
var _local2:Object;
_local1 = 0;
gameScore = ((gameTime - timerTime.currentCount) * 100);
timerTime.stop();
removeEventListener(Event.ENTER_FRAME, handleEnterFrame);
for each (_local2 in objectsPlaced) {
if (_local2._placed){
Tweener.addTween(_local2._object, {scaleX:1.1, scaleY:1.1, time:0.2, delay:(_local1 * 0.1)});
Tweener.addTween(_local2._object, {scaleX:0.5, scaleY:0.5, alpha:0, time:0.4, delay:((_local1 * 0.1) + 0.2)});
_local1++;
};
};
Tweener.addTween(mc_Timer, {rotation:720, scaleX:0, scaleY:0, time:2, transition:"easeInBack"});
Tweener.addTween(mc_Holder, {x:510, time:0.5, transition:"easeInBack"});
Tweener.addTween(btn_LookAgain, {x:550, time:0.5, transition:"easeInBack"});
mc_Congrats = new SpriteCongrats();
addChild(mc_Congrats);
mc_Congrats.init(gameScore, totalScore);
mc_Congrats.addEventListener(SpriteCongrats.END_OF_ANIMATION, loadNextLevel);
}
private function handleObjectMouseUp(_arg1:MouseEvent):void{
var currentX:Number;
var currentY:Number;
var dist:Number;
var originalObject:Object;
var evt = _arg1;
removeEventListener(MouseEvent.MOUSE_MOVE, handleObjectMouseMove);
removeEventListener(MouseEvent.MOUSE_UP, handleObjectMouseUp);
currentX = movingObject._object.x;
currentY = movingObject._object.y;
if ((((((((currentX > mc_Holder.x)) && ((currentX < (mc_Holder.x + mc_Holder.width))))) && ((currentY > mc_Holder.y)))) && ((currentY < (mc_Holder.y + mc_Holder.height))))){
removeChild(movingObject._object);
mc_Holder.addChild(movingObject._object);
movingObject._object.x = (movingObject._object.x - mc_Holder.x);
movingObject._object.y = (movingObject._object.y - mc_Holder.y);
objectsPlaced[movingObject._object.key]._placed = false;
Tweener.addTween(movingObject._object, {scaleX:0.5, scaleY:0.5, time:0.3});
} else {
Tweener.addTween(movingObject._object, {scaleX:1, scaleY:1, time:0.3});
setChildIndex(mc_Bar, (numChildren - 1));
setChildIndex(mc_TS, (numChildren - 1));
objectsPlaced[movingObject._object.key]._placed = true;
objectsPlaced[movingObject._object.key]._x = movingObject._object.x;
objectsPlaced[movingObject._object.key]._y = movingObject._object.y;
if (currentLevelObjects[movingObject._object.key] != null){
originalObject = currentLevelObjects[movingObject._object.key];
dist = Math.sqrt((Math.pow(((originalObject._x - currentX) - 246.3), 2) + Math.pow(((originalObject._y - currentY) - 251.3), 2)));
if (dist < 30){
movingObject._object.filters = [];
movingObject._object.placed = true;
if (movingObject._placement == GameData.PLACEMENT_WALL){
setChildIndex(movingObject._object, 4);
};
Tweener.addTween(movingObject._object, {x:(originalObject._x - 246.3), y:(originalObject._y - 251.3), time:0.3, onComplete:function (){
}});
objectsFound++;
trace(((("found: " + objectsFound) + " needed: ") + numObjectsPlaced));
if (objectsFound == numObjectsPlaced){
endOfLevel();
};
GameSoundManager.playSound(new SoundGood(), 1);
} else {
GameSoundManager.playSound(new SoundBad(), 10);
};
};
};
}
private function handleLookAgain(_arg1:MouseEvent):void{
var _local2:Object;
lookedAlready = true;
timerTime.stop();
mc_TS.visible = false;
mc_Bar.visible = false;
for each (_local2 in objectsPlaced) {
_local2._object.visible = false;
};
play();
}
private function emptiestPartOfShelve(_arg1:Object):uint{
if (_arg1.left < _arg1.mid){
if (_arg1.left < _arg1.right){
return (0);
};
return (2);
} else {
if (_arg1.mid < _arg1.right){
return (1);
};
if ((((_arg1.mid == _arg1.right)) && ((_arg1.right == _arg1.left)))){
return (Math.floor((Math.random() * 2.9)));
};
};
return (2);
}
public function init(_arg1:uint, _arg2:uint):void{
var _local3:Array;
var _local4:uint;
var _local5:String;
gameCharecterNum = _arg1;
gameCharecter = GameData.charArray[gameCharecterNum];
gameEase = _arg2;
currentLevelObjects = new Array();
_local3 = [0, 0, 0, 0, 0, 0, 0, 0, 0];
objectsFound = 0;
_local4 = gameData._gameLevels[(((_arg1 * 3) + _arg2) - 1)].elements;
if (gameCharecter == "Skater"){
setObjectPosition(gameData._elements[gameCharecter]["Skateboard"], "Skateboard", gameCharecter, _local3);
_local4--;
numObjectsPlaced++;
trace(("put: " + _local5));
for (_local5 in gameData._elements[gameCharecter]) {
if (_local4 > 0){
if (_local5 != "Skateboard"){
setObjectPosition(gameData._elements[gameCharecter][_local5], _local5, gameCharecter, _local3);
_local4--;
numObjectsPlaced++;
trace(("put: " + _local5));
};
};
};
} else {
for (_local5 in gameData._elements[gameCharecter]) {
if (_local4 > 0){
setObjectPosition(gameData._elements[gameCharecter][_local5], _local5, gameCharecter, _local3);
_local4--;
numObjectsPlaced++;
trace(("put: " + _local5));
};
};
};
for (_local5 in gameData._elements["Global"]) {
if (_local4 > 0){
setObjectPosition(gameData._elements["Global"][_local5], _local5, "Global", _local3);
_local4--;
numObjectsPlaced++;
trace(("put: " + _local5));
};
};
gotoAndPlay(1);
}
private function handleObjectMouseDown(_arg1:MouseEvent):void{
if (!_arg1.target.placed){
movingObject._object = MovieClip(_arg1.target);
if (objectsPlaced[movingObject._object.key]._placed == false){
movingObject._initX = ((_arg1.stageX - movingObject._object.x) - mc_Holder.x);
movingObject._initY = ((_arg1.stageY - movingObject._object.y) - mc_Holder.y);
mc_Holder.removeChild(movingObject._object);
movingObject._object.x = (movingObject._object.x + mc_Holder.x);
movingObject._object.y = (movingObject._object.y + mc_Holder.y);
addChild(movingObject._object);
} else {
movingObject._initX = (_arg1.stageX - movingObject._object.x);
movingObject._initY = (_arg1.stageY - movingObject._object.y);
};
movingObject._placement = gameData._elements[movingObject._object.classKey][movingObject._object.key].placement;
setChildIndex(movingObject._object, (numChildren - 1));
Tweener.addTween(movingObject._object, {scaleX:1.1, scaleY:1.1, time:0.3});
addEventListener(MouseEvent.MOUSE_MOVE, handleObjectMouseMove);
addEventListener(MouseEvent.MOUSE_UP, handleObjectMouseUp);
};
}
function frame73(){
if (!lookedAlready){
btn_LookAgain.addEventListener(MouseEvent.CLICK, handleLookAgain);
} else {
btn_LookAgain.visible = false;
};
btn_Back.addEventListener(MouseEvent.CLICK, handleBackClick);
mc_AreYouSure.btn_Yes.addEventListener(MouseEvent.CLICK, handleBackToMenuYesClick);
mc_AreYouSure.btn_No.addEventListener(MouseEvent.CLICK, handleBackToMenuNoClick);
}
private function populateHolder():void{
var _local1:Object;
var _local2:String;
var _local3:MovieClip;
var _local4:uint;
var _local5:uint;
var _local6:uint;
var _local7:Object;
_local4 = 0;
_local5 = 0;
if (!lookedAlready){
for (_local2 in gameData._elements[gameCharecter]) {
_local1 = gameData._elements[gameCharecter][_local2];
++_local4;
if (_local4 > 10){
_local4 = 1;
_local5 = (_local5 + 15);
};
_local3 = MovieClip(duplicateDisplayObject(_local1.object));
mc_Holder.addChild(_local3);
_local3.scaleX = 0.5;
_local3.scaleY = 0.5;
_local3.x = ((_local4 % 2)) ? 30 : 95;
_local3.y = (((Math.floor(((_local4 - 1) / 2)) * 67) + 35) + _local5);
_local3.filters = new Array(new GlowFilter(0xFFFFFF, 1, 6, 6, 40));
_local3.key = _local2;
_local3.classKey = gameCharecter;
_local3.placed = false;
_local3.addEventListener(MouseEvent.MOUSE_DOWN, handleObjectMouseDown);
if (_local1.placement == GameData.PLACEMENT_WALL){
_local6 = 0;
} else {
_local6 = 1;
};
_local3.stop();
objectsPlaced[_local2] = {_object:_local3, _placed:false};
};
for (_local2 in gameData._elements["Global"]) {
_local1 = gameData._elements["Global"][_local2];
++_local4;
if (_local4 > 10){
_local4 = 1;
_local5 = (_local5 + 15);
};
_local3 = MovieClip(duplicateDisplayObject(_local1.object));
mc_Holder.addChild(_local3);
_local3.scaleX = 0.5;
_local3.scaleY = 0.5;
_local3.x = ((_local4 % 2)) ? 30 : 95;
_local3.y = (((Math.floor(((_local4 - 1) / 2)) * 67) + 35) + _local5);
_local3.filters = new Array(new GlowFilter(0xFFFFFF, 1, 6, 6, 40));
_local3.key = _local2;
_local3.classKey = "Global";
_local3.placed = false;
_local3.addEventListener(MouseEvent.MOUSE_DOWN, handleObjectMouseDown);
if (_local1.placement == GameData.PLACEMENT_WALL){
_local6 = 0;
} else {
_local6 = 1;
};
_local3.stop();
objectsPlaced[_local2] = {_object:_local3, _placed:false};
};
} else {
for each (_local7 in objectsPlaced) {
++_local4;
if (_local4 > 10){
_local4 = 1;
_local5 = (_local5 + 15);
};
if (!_local7._placed){
mc_Holder.addChild(_local7._object);
_local7._object.visible = true;
} else {
_local7._object.visible = true;
setChildIndex(_local7._object, (numChildren - 1));
};
setChildIndex(mc_Bar, (numChildren - 1));
if (mc_TS != null){
setChildIndex(mc_TS, (numChildren - 1));
};
};
};
}
public function duplicateDisplayObject(_arg1:DisplayObject, _arg2:Boolean=false):DisplayObject{
var _local3:Class;
var _local4:DisplayObject;
var _local5:Rectangle;
_local3 = Object(_arg1).constructor;
_local4 = new (_local3);
_local4.transform = _arg1.transform;
_local4.filters = _arg1.filters;
_local4.cacheAsBitmap = _arg1.cacheAsBitmap;
_local4.opaqueBackground = _arg1.opaqueBackground;
if (_arg1.scale9Grid){
_local5 = _arg1.scale9Grid;
_arg1.scale9Grid.x = (_local5.x / 20);
_local5.y = (_local5.y / 20);
_local5.width = (_local5.width / 20);
_local5.height = (_local5.height / 20);
_local4.scale9Grid = _local5;
};
if (((_arg2) && (_arg1.parent))){
_arg1.parent.addChild(_local4);
};
return (_local4);
}
private function handleBackToMenuNoClick(_arg1:MouseEvent):void{
Tweener.addTween(btn_Back, {y:215, time:1});
Tweener.addTween(mc_AreYouSure, {y:275, time:1});
}
private function handleBackClick(_arg1:MouseEvent):void{
Tweener.addTween(btn_Back, {y:275, time:1});
Tweener.addTween(mc_AreYouSure, {y:195, time:1});
}
private function handleEnterFrame(_arg1:Event):void{
var _local2:Object;
if (currentState != currentLabel){
switch (currentLabel){
case "First Peep Start":
for each (_local2 in currentLevelObjects) {
mc_Locker.addChild(_local2._object);
if (gameData._elements[_local2._objectClass][_local2._objectKey].placement == GameData.PLACEMENT_WALL){
mc_Locker.setChildIndex(_local2._object, 1);
};
};
for each (_local2 in currentLevelObjects) {
if ((((_local2._objectKey == "Pencil")) || ((_local2._objectKey == "Pen")))){
mc_Locker.setChildIndex(_local2._object, (mc_Locker.numChildren - 1));
};
};
mc_TS.visible = true;
setChildIndex(mc_TS, (numChildren - 1));
break;
case "First Peep End":
stop();
addChild(spriteCountdown);
spriteCountdown.visible = true;
spriteCountdown.play();
setTimeout(handleEndOfCountdown, 3000);
break;
case "Reset Look":
break;
case "Reset":
mc_TS.visible = true;
mc_Bar.visible = true;
populateHolder();
mc_Timer.mc_Timer.text = String((gameTime - timerTime.currentCount));
mc_Clock.gotoAndStop(1);
timerTime.start();
stop();
break;
case "Second Peep Start":
for each (_local2 in currentLevelObjects) {
mc_Locker.addChild(_local2._object);
if (gameData._elements[_local2._objectClass][_local2._objectKey].placement == GameData.PLACEMENT_WALL){
mc_Locker.setChildIndex(_local2._object, 1);
};
};
for each (_local2 in currentLevelObjects) {
if ((((_local2._objectKey == "Pencil")) || ((_local2._objectKey == "Pen")))){
mc_Locker.setChildIndex(_local2._object, (mc_Locker.numChildren - 1));
};
};
mc_TS.visible = true;
setChildIndex(mc_TS, (numChildren - 1));
break;
case "Second Peep End":
stop();
addChild(spriteCountdown);
spriteCountdown.visible = true;
spriteCountdown.play();
setTimeout(handleEndOfCountdown, 3000);
break;
case "EOA":
gotoAndPlay("Reset Look");
break;
case "Hide":
mc_TS.visible = false;
mc_Bar.visible = false;
break;
};
};
if (currentLabel != "EOA"){
currentState = currentLabel;
};
}
function frame145(){
stop();
}
}
}//package
Section 74
//spriteLevelIntro (spriteLevelIntro)
package {
import flash.display.*;
import com.tweegee.utils.*;
import flash.geom.*;
public class spriteLevelIntro extends MovieClip {
public var mc_Hard:MovieClip;
public var mc_Easy:MovieClip;
public var levelNum:uint;
public var mc_Medium:MovieClip;
public var _mc_Char:MovieClip;
public var mc_Name:MovieClip;
public var levelType:uint;
public function spriteLevelIntro():void{
}
public function set mc_Char(_arg1:MovieClip):void{
if (_mc_Char != null){
removeChild(_mc_Char);
};
_mc_Char = _arg1;
}
public function init():void{
_mc_Char.x = 410;
_mc_Char.y = 507;
_mc_Char.scaleX = 1.5;
_mc_Char.scaleY = 1.5;
addChild(_mc_Char);
switch (levelType){
case GameData.LEVEL_EASE_EASY:
mc_Easy.transform.colorTransform = new ColorTransform();
mc_Medium.transform.colorTransform = new ColorTransform(0.5, 0.5, 0.5, 1, 1, 1, 1);
mc_Hard.transform.colorTransform = new ColorTransform(0.5, 0.5, 0.5, 1, 1, 1, 1);
if (levelNum == 0){
GameSoundManager.playSound(new SoundSwoosh2());
} else {
GameSoundManager.playSound(new SoundUnveil());
};
break;
case GameData.LEVEL_EASE_MEDIUM:
mc_Easy.transform.colorTransform = new ColorTransform(0.5, 0.5, 0.5, 1, 1, 1, 1);
mc_Medium.transform.colorTransform = new ColorTransform();
mc_Hard.transform.colorTransform = new ColorTransform(0.5, 0.5, 0.5, 1, 1, 1, 1);
GameSoundManager.playSound(new SoundSwoosh2());
break;
case GameData.LEVEL_EASE_HARD:
mc_Easy.transform.colorTransform = new ColorTransform(0.5, 0.5, 0.5, 1, 1, 1, 1);
mc_Medium.transform.colorTransform = new ColorTransform(0.5, 0.5, 0.5, 1, 1, 1, 1);
mc_Hard.transform.colorTransform = new ColorTransform();
GameSoundManager.playSound(new SoundSwoosh2());
break;
};
mc_Name.gotoAndStop((levelNum + 1));
GameSoundManager.playSound(new SoundSwoosh2());
}
public function get mc_Char():MovieClip{
return (_mc_Char);
}
}
}//package
Section 75
//SpriteLoser (SpriteLoser)
package {
import flash.events.*;
import flash.display.*;
import com.tweegee.utils.*;
public class SpriteLoser extends MovieClip {
public var mc_Score:MovieClip;
public var btn_OK:SimpleButton;
public var btn_SaveScore:SimpleButton;
public static const END_OF_ANIMATION:String = "End Of Animation";
public static const OK_CLICKED:String = "OK Clicked";
public static const SAVE_SCORE_CLICKED:String = "Save Score Clicked";
public function SpriteLoser(){
addFrameScript(54, frame55);
}
private function handleOKClick(_arg1:MouseEvent):void{
dispatchEvent(new Event(OK_CLICKED));
btn_OK.removeEventListener(MouseEvent.CLICK, handleOKClick);
btn_SaveScore.removeEventListener(MouseEvent.CLICK, handleSaveScoreClick);
}
public function init(_arg1:uint, _arg2:Boolean):void{
GameSoundManager.playSound(new SoundLoser());
mc_Score.mc_Score.text = String(_arg1);
btn_OK.addEventListener(MouseEvent.CLICK, handleOKClick);
if (((_arg2) && ((_arg1 > 0)))){
btn_SaveScore.visible = true;
btn_SaveScore.addEventListener(MouseEvent.CLICK, handleSaveScoreClick);
} else {
btn_SaveScore.visible = false;
};
}
private function handleSaveScoreClick(_arg1:MouseEvent):void{
dispatchEvent(new Event(SAVE_SCORE_CLICKED));
btn_OK.removeEventListener(MouseEvent.CLICK, handleOKClick);
btn_SaveScore.removeEventListener(MouseEvent.CLICK, handleSaveScoreClick);
}
function frame55(){
stop();
}
}
}//package
Section 76
//SpriteMainMenu (SpriteMainMenu)
package {
import flash.events.*;
import flash.display.*;
import com.tweegee.utils.*;
public class SpriteMainMenu extends MovieClip {
public var btn_NewGame:SimpleButton;
public static const OK_CLICKED:String = "OK Clicked";
public function SpriteMainMenu(){
addFrameScript(148, frame149, 190, frame191);
}
public function handleNewGame():void{
dispatchEvent(new Event(OK_CLICKED));
}
public function reset():void{
gotoAndStop(149);
}
function frame191(){
handleNewGame();
}
function frame149(){
btn_NewGame.addEventListener(MouseEvent.MOUSE_OVER, function (_arg1){
GameSoundManager.playSound(new TweegeeButtonRollover(), 7);
});
btn_NewGame.addEventListener(MouseEvent.CLICK, function (_arg1){
play();
GameSoundManager.playSound(new ButtonClickSound(), 3);
});
stop();
}
}
}//package
Section 77
//SpriteMute (SpriteMute)
package {
import flash.display.*;
public dynamic class SpriteMute extends MovieClip {
}
}//package
Section 78
//SpriteWooo (SpriteWooo)
package {
import flash.events.*;
import flash.display.*;
import com.tweegee.utils.*;
public class SpriteWooo extends MovieClip {
public var mc_Score:MovieClip;
public var btn_OK:SimpleButton;
public var btn_SaveScore:SimpleButton;
public static const END_OF_ANIMATION:String = "End Of Animation";
public static const OK_CLICKED:String = "OK Clicked";
public static const SAVE_SCORE_CLICKED:String = "Save Score Clicked";
public function SpriteWooo(){
addFrameScript(54, frame55);
}
private function handleOKClick(_arg1:MouseEvent):void{
dispatchEvent(new Event(OK_CLICKED));
GameSoundManager.stopSecondaryLoop();
btn_OK.removeEventListener(MouseEvent.CLICK, handleOKClick);
btn_SaveScore.removeEventListener(MouseEvent.CLICK, handleSaveScoreClick);
}
public function init(_arg1:uint, _arg2:Boolean):void{
GameSoundManager.playSecondaryLoop(new SoundWinner());
mc_Score.mc_Score.text = String(_arg1);
btn_OK.addEventListener(MouseEvent.CLICK, handleOKClick);
if (((_arg2) && ((_arg1 > 0)))){
btn_SaveScore.visible = true;
btn_SaveScore.addEventListener(MouseEvent.CLICK, handleSaveScoreClick);
} else {
btn_SaveScore.visible = false;
};
}
private function handleSaveScoreClick(_arg1:MouseEvent):void{
dispatchEvent(new Event(SAVE_SCORE_CLICKED));
GameSoundManager.stopSecondaryLoop();
btn_OK.removeEventListener(MouseEvent.CLICK, handleOKClick);
btn_SaveScore.removeEventListener(MouseEvent.CLICK, handleSaveScoreClick);
}
function frame55(){
stop();
}
}
}//package
Section 79
//TweegeeButtonRollover (TweegeeButtonRollover)
package {
import flash.media.*;
public dynamic class TweegeeButtonRollover extends Sound {
}
}//package
Section 80
//tweegeeLogo (tweegeeLogo)
package {
import flash.display.*;
public dynamic class tweegeeLogo extends MovieClip {
}
}//package