Section 1
//AuxFunctions (caurina.transitions.AuxFunctions)
package caurina.transitions {
public class AuxFunctions {
public static function getObjectLength(_arg1:Object):uint{
var _local2:uint;
var _local3:String;
_local2 = 0;
for (_local3 in _arg1) {
_local2++;
};
return (_local2);
}
public static function numberToG(_arg1:Number):Number{
return (((_arg1 & 0xFF00) >> 8));
}
public static function numberToB(_arg1:Number):Number{
return ((_arg1 & 0xFF));
}
public static function numberToR(_arg1:Number):Number{
return (((_arg1 & 0xFF0000) >> 16));
}
public static function concatObjects(... _args):Object{
var _local2:Object;
var _local3:Object;
var _local4:int;
var _local5:String;
_local2 = {};
_local4 = 0;
while (_local4 < _args.length) {
_local3 = _args[_local4];
for (_local5 in _local3) {
if (_local3[_local5] == null){
delete _local2[_local5];
} else {
_local2[_local5] = _local3[_local5];
};
};
_local4++;
};
return (_local2);
}
}
}//package caurina.transitions
Section 2
//Equations (caurina.transitions.Equations)
package caurina.transitions {
public class Equations {
public function Equations(){
trace("Equations is a static class and should not be instantiated.");
}
public static function easeOutBounce(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / _arg4);
if (_arg1 < (1 / 2.75)){
return (((_arg3 * ((7.5625 * _arg1) * _arg1)) + _arg2));
};
if (_arg1 < (2 / 2.75)){
_arg1 = (_arg1 - (1.5 / 2.75));
return (((_arg3 * (((7.5625 * _arg1) * _arg1) + 0.75)) + _arg2));
};
if (_arg1 < (2.5 / 2.75)){
_arg1 = (_arg1 - (2.25 / 2.75));
return (((_arg3 * (((7.5625 * _arg1) * _arg1) + 0.9375)) + _arg2));
};
_arg1 = (_arg1 - (2.625 / 2.75));
return (((_arg3 * (((7.5625 * _arg1) * _arg1) + 0.984375)) + _arg2));
}
public static function easeInOutElastic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
var _local6:Number;
var _local7:Number;
var _local8:Number;
if (_arg1 == 0){
return (_arg2);
};
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 == 2){
return ((_arg2 + _arg3));
};
_local6 = (((!(Boolean(_arg5))) || (isNaN(_arg5.period)))) ? (_arg4 * (0.3 * 1.5)) : _arg5.period;
_local8 = (((!(Boolean(_arg5))) || (isNaN(_arg5.amplitude)))) ? 0 : _arg5.amplitude;
if (((!(Boolean(_local8))) || ((_local8 < Math.abs(_arg3))))){
_local8 = _arg3;
_local7 = (_local6 / 4);
} else {
_local7 = ((_local6 / (2 * Math.PI)) * Math.asin((_arg3 / _local8)));
};
if (_arg1 < 1){
--_arg1;
return (((-0.5 * ((_local8 * Math.pow(2, (10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local7) * (2 * Math.PI)) / _local6)))) + _arg2));
};
--_arg1;
return ((((((_local8 * Math.pow(2, (-10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local7) * (2 * Math.PI)) / _local6))) * 0.5) + _arg3) + _arg2));
}
public static function easeInOutQuad(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
return (((((_arg3 / 2) * _arg1) * _arg1) + _arg2));
};
--_arg1;
return ((((-(_arg3) / 2) * ((_arg1 * (_arg1 - 2)) - 1)) + _arg2));
}
public static function easeInOutBounce(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 < (_arg4 / 2)){
return (((easeInBounce((_arg1 * 2), 0, _arg3, _arg4) * 0.5) + _arg2));
};
return ((((easeOutBounce(((_arg1 * 2) - _arg4), 0, _arg3, _arg4) * 0.5) + (_arg3 * 0.5)) + _arg2));
}
public static function easeInOutBack(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
var _local6:Number;
_local6 = (((!(Boolean(_arg5))) || (isNaN(_arg5.overshoot)))) ? 1.70158 : _arg5.overshoot;
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
_local6 = (_local6 * 1.525);
return ((((_arg3 / 2) * ((_arg1 * _arg1) * (((_local6 + 1) * _arg1) - _local6))) + _arg2));
};
_arg1 = (_arg1 - 2);
_local6 = (_local6 * 1.525);
return ((((_arg3 / 2) * (((_arg1 * _arg1) * (((_local6 + 1) * _arg1) + _local6)) + 2)) + _arg2));
}
public static function easeOutInCubic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutCubic((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5));
};
return (easeInCubic(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5));
}
public static function easeNone(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
return ((((_arg3 * _arg1) / _arg4) + _arg2));
}
public static function easeOutBack(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
var _local6:Number;
_local6 = (((!(Boolean(_arg5))) || (isNaN(_arg5.overshoot)))) ? 1.70158 : _arg5.overshoot;
_arg1 = ((_arg1 / _arg4) - 1);
return (((_arg3 * (((_arg1 * _arg1) * (((_local6 + 1) * _arg1) + _local6)) + 1)) + _arg2));
}
public static function easeInOutSine(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
return ((((-(_arg3) / 2) * (Math.cos(((Math.PI * _arg1) / _arg4)) - 1)) + _arg2));
}
public static function easeInBack(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
var _local6:Number;
_local6 = (((!(Boolean(_arg5))) || (isNaN(_arg5.overshoot)))) ? 1.70158 : _arg5.overshoot;
_arg1 = (_arg1 / _arg4);
return (((((_arg3 * _arg1) * _arg1) * (((_local6 + 1) * _arg1) - _local6)) + _arg2));
}
public static function easeInQuart(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / _arg4);
return ((((((_arg3 * _arg1) * _arg1) * _arg1) * _arg1) + _arg2));
}
public static function easeOutInQuint(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutQuint((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5));
};
return (easeInQuint(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5));
}
public static function easeOutInBounce(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutBounce((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5));
};
return (easeInBounce(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5));
}
public static function init():void{
Tweener.registerTransition("easenone", easeNone);
Tweener.registerTransition("linear", easeNone);
Tweener.registerTransition("easeinquad", easeInQuad);
Tweener.registerTransition("easeoutquad", easeOutQuad);
Tweener.registerTransition("easeinoutquad", easeInOutQuad);
Tweener.registerTransition("easeoutinquad", easeOutInQuad);
Tweener.registerTransition("easeincubic", easeInCubic);
Tweener.registerTransition("easeoutcubic", easeOutCubic);
Tweener.registerTransition("easeinoutcubic", easeInOutCubic);
Tweener.registerTransition("easeoutincubic", easeOutInCubic);
Tweener.registerTransition("easeinquart", easeInQuart);
Tweener.registerTransition("easeoutquart", easeOutQuart);
Tweener.registerTransition("easeinoutquart", easeInOutQuart);
Tweener.registerTransition("easeoutinquart", easeOutInQuart);
Tweener.registerTransition("easeinquint", easeInQuint);
Tweener.registerTransition("easeoutquint", easeOutQuint);
Tweener.registerTransition("easeinoutquint", easeInOutQuint);
Tweener.registerTransition("easeoutinquint", easeOutInQuint);
Tweener.registerTransition("easeinsine", easeInSine);
Tweener.registerTransition("easeoutsine", easeOutSine);
Tweener.registerTransition("easeinoutsine", easeInOutSine);
Tweener.registerTransition("easeoutinsine", easeOutInSine);
Tweener.registerTransition("easeincirc", easeInCirc);
Tweener.registerTransition("easeoutcirc", easeOutCirc);
Tweener.registerTransition("easeinoutcirc", easeInOutCirc);
Tweener.registerTransition("easeoutincirc", easeOutInCirc);
Tweener.registerTransition("easeinexpo", easeInExpo);
Tweener.registerTransition("easeoutexpo", easeOutExpo);
Tweener.registerTransition("easeinoutexpo", easeInOutExpo);
Tweener.registerTransition("easeoutinexpo", easeOutInExpo);
Tweener.registerTransition("easeinelastic", easeInElastic);
Tweener.registerTransition("easeoutelastic", easeOutElastic);
Tweener.registerTransition("easeinoutelastic", easeInOutElastic);
Tweener.registerTransition("easeoutinelastic", easeOutInElastic);
Tweener.registerTransition("easeinback", easeInBack);
Tweener.registerTransition("easeoutback", easeOutBack);
Tweener.registerTransition("easeinoutback", easeInOutBack);
Tweener.registerTransition("easeoutinback", easeOutInBack);
Tweener.registerTransition("easeinbounce", easeInBounce);
Tweener.registerTransition("easeoutbounce", easeOutBounce);
Tweener.registerTransition("easeinoutbounce", easeInOutBounce);
Tweener.registerTransition("easeoutinbounce", easeOutInBounce);
}
public static function easeOutExpo(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
return (((_arg1)==_arg4) ? (_arg2 + _arg3) : (((_arg3 * 1.001) * (-(Math.pow(2, ((-10 * _arg1) / _arg4))) + 1)) + _arg2));
}
public static function easeOutInBack(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutBack((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5));
};
return (easeInBack(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5));
}
public static function easeInExpo(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
return (((_arg1)==0) ? _arg2 : (((_arg3 * Math.pow(2, (10 * ((_arg1 / _arg4) - 1)))) + _arg2) - (_arg3 * 0.001)));
}
public static function easeInCubic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / _arg4);
return (((((_arg3 * _arg1) * _arg1) * _arg1) + _arg2));
}
public static function easeInQuint(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / _arg4);
return (((((((_arg3 * _arg1) * _arg1) * _arg1) * _arg1) * _arg1) + _arg2));
}
public static function easeInOutCirc(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
return ((((-(_arg3) / 2) * (Math.sqrt((1 - (_arg1 * _arg1))) - 1)) + _arg2));
};
_arg1 = (_arg1 - 2);
return ((((_arg3 / 2) * (Math.sqrt((1 - (_arg1 * _arg1))) + 1)) + _arg2));
}
public static function easeInQuad(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / _arg4);
return ((((_arg3 * _arg1) * _arg1) + _arg2));
}
public static function easeInBounce(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
return (((_arg3 - easeOutBounce((_arg4 - _arg1), 0, _arg3, _arg4)) + _arg2));
}
public static function easeOutInExpo(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutExpo((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5));
};
return (easeInExpo(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5));
}
public static function easeOutQuart(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = ((_arg1 / _arg4) - 1);
return (((-(_arg3) * ((((_arg1 * _arg1) * _arg1) * _arg1) - 1)) + _arg2));
}
public static function easeInSine(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
return ((((-(_arg3) * Math.cos(((_arg1 / _arg4) * (Math.PI / 2)))) + _arg3) + _arg2));
}
public static function easeInOutQuart(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
return (((((((_arg3 / 2) * _arg1) * _arg1) * _arg1) * _arg1) + _arg2));
};
_arg1 = (_arg1 - 2);
return ((((-(_arg3) / 2) * ((((_arg1 * _arg1) * _arg1) * _arg1) - 2)) + _arg2));
}
public static function easeOutQuad(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / _arg4);
return ((((-(_arg3) * _arg1) * (_arg1 - 2)) + _arg2));
}
public static function easeOutInElastic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutElastic((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5));
};
return (easeInElastic(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5));
}
public static function easeInElastic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
var _local6:Number;
var _local7:Number;
var _local8:Number;
if (_arg1 == 0){
return (_arg2);
};
_arg1 = (_arg1 / _arg4);
if (_arg1 == 1){
return ((_arg2 + _arg3));
};
_local6 = (((!(Boolean(_arg5))) || (isNaN(_arg5.period)))) ? (_arg4 * 0.3) : _arg5.period;
_local8 = (((!(Boolean(_arg5))) || (isNaN(_arg5.amplitude)))) ? 0 : _arg5.amplitude;
if (((!(Boolean(_local8))) || ((_local8 < Math.abs(_arg3))))){
_local8 = _arg3;
_local7 = (_local6 / 4);
} else {
_local7 = ((_local6 / (2 * Math.PI)) * Math.asin((_arg3 / _local8)));
};
--_arg1;
return ((-(((_local8 * Math.pow(2, (10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local7) * (2 * Math.PI)) / _local6)))) + _arg2));
}
public static function easeOutCubic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = ((_arg1 / _arg4) - 1);
return (((_arg3 * (((_arg1 * _arg1) * _arg1) + 1)) + _arg2));
}
public static function easeOutQuint(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = ((_arg1 / _arg4) - 1);
return (((_arg3 * (((((_arg1 * _arg1) * _arg1) * _arg1) * _arg1) + 1)) + _arg2));
}
public static function easeOutInQuad(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutQuad((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5));
};
return (easeInQuad(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5));
}
public static function easeOutSine(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
return (((_arg3 * Math.sin(((_arg1 / _arg4) * (Math.PI / 2)))) + _arg2));
}
public static function easeInOutCubic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
return ((((((_arg3 / 2) * _arg1) * _arg1) * _arg1) + _arg2));
};
_arg1 = (_arg1 - 2);
return ((((_arg3 / 2) * (((_arg1 * _arg1) * _arg1) + 2)) + _arg2));
}
public static function easeInOutQuint(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
return ((((((((_arg3 / 2) * _arg1) * _arg1) * _arg1) * _arg1) * _arg1) + _arg2));
};
_arg1 = (_arg1 - 2);
return ((((_arg3 / 2) * (((((_arg1 * _arg1) * _arg1) * _arg1) * _arg1) + 2)) + _arg2));
}
public static function easeInCirc(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / _arg4);
return (((-(_arg3) * (Math.sqrt((1 - (_arg1 * _arg1))) - 1)) + _arg2));
}
public static function easeOutInSine(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutSine((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5));
};
return (easeInSine(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5));
}
public static function easeInOutExpo(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 == 0){
return (_arg2);
};
if (_arg1 == _arg4){
return ((_arg2 + _arg3));
};
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
return (((((_arg3 / 2) * Math.pow(2, (10 * (_arg1 - 1)))) + _arg2) - (_arg3 * 0.0005)));
};
--_arg1;
return (((((_arg3 / 2) * 1.0005) * (-(Math.pow(2, (-10 * _arg1))) + 2)) + _arg2));
}
public static function easeOutElastic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
var _local6:Number;
var _local7:Number;
var _local8:Number;
if (_arg1 == 0){
return (_arg2);
};
_arg1 = (_arg1 / _arg4);
if (_arg1 == 1){
return ((_arg2 + _arg3));
};
_local6 = (((!(Boolean(_arg5))) || (isNaN(_arg5.period)))) ? (_arg4 * 0.3) : _arg5.period;
_local8 = (((!(Boolean(_arg5))) || (isNaN(_arg5.amplitude)))) ? 0 : _arg5.amplitude;
if (((!(Boolean(_local8))) || ((_local8 < Math.abs(_arg3))))){
_local8 = _arg3;
_local7 = (_local6 / 4);
} else {
_local7 = ((_local6 / (2 * Math.PI)) * Math.asin((_arg3 / _local8)));
};
return (((((_local8 * Math.pow(2, (-10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local7) * (2 * Math.PI)) / _local6))) + _arg3) + _arg2));
}
public static function easeOutCirc(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = ((_arg1 / _arg4) - 1);
return (((_arg3 * Math.sqrt((1 - (_arg1 * _arg1)))) + _arg2));
}
public static function easeOutInQuart(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutQuart((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5));
};
return (easeInQuart(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5));
}
public static function easeOutInCirc(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutCirc((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5));
};
return (easeInCirc(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5));
}
}
}//package caurina.transitions
Section 3
//PropertyInfoObj (caurina.transitions.PropertyInfoObj)
package caurina.transitions {
public class PropertyInfoObj {
public var originalValueComplete:Object;
public var modifierParameters:Array;
public var isSpecialProperty:Boolean;
public var hasModifier:Boolean;
public var valueComplete:Number;
public var extra:Object;
public var valueStart:Number;
public var modifierFunction:Function;
public var arrayIndex:Number;
public function PropertyInfoObj(_arg1:Number, _arg2:Number, _arg3:Object, _arg4:Number, _arg5:Object, _arg6:Boolean, _arg7:Function, _arg8:Array){
valueStart = _arg1;
valueComplete = _arg2;
originalValueComplete = _arg3;
arrayIndex = _arg4;
extra = _arg5;
isSpecialProperty = _arg6;
hasModifier = Boolean(_arg7);
modifierFunction = _arg7;
modifierParameters = _arg8;
}
public function toString():String{
var _local1:String;
_local1 = "\n[PropertyInfoObj ";
_local1 = (_local1 + ("valueStart:" + String(valueStart)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("valueComplete:" + String(valueComplete)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("originalValueComplete:" + String(originalValueComplete)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("arrayIndex:" + String(arrayIndex)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("extra:" + String(extra)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("isSpecialProperty:" + String(isSpecialProperty)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("hasModifier:" + String(hasModifier)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("modifierFunction:" + String(modifierFunction)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("modifierParameters:" + String(modifierParameters)));
_local1 = (_local1 + "]\n");
return (_local1);
}
public function clone():PropertyInfoObj{
var _local1:PropertyInfoObj;
_local1 = new PropertyInfoObj(valueStart, valueComplete, originalValueComplete, arrayIndex, extra, isSpecialProperty, modifierFunction, modifierParameters);
return (_local1);
}
}
}//package caurina.transitions
Section 4
//SpecialProperty (caurina.transitions.SpecialProperty)
package caurina.transitions {
public class SpecialProperty {
public var parameters:Array;
public var preProcess:Function;
public var setValue:Function;
public var getValue:Function;
public function SpecialProperty(_arg1:Function, _arg2:Function, _arg3:Array=null, _arg4:Function=null){
getValue = _arg1;
setValue = _arg2;
parameters = _arg3;
preProcess = _arg4;
}
public function toString():String{
var _local1:String;
_local1 = "";
_local1 = (_local1 + "[SpecialProperty ");
_local1 = (_local1 + ("getValue:" + String(getValue)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("setValue:" + String(setValue)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("parameters:" + String(parameters)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("preProcess:" + String(preProcess)));
_local1 = (_local1 + "]");
return (_local1);
}
}
}//package caurina.transitions
Section 5
//SpecialPropertyModifier (caurina.transitions.SpecialPropertyModifier)
package caurina.transitions {
public class SpecialPropertyModifier {
public var getValue:Function;
public var modifyValues:Function;
public function SpecialPropertyModifier(_arg1:Function, _arg2:Function){
modifyValues = _arg1;
getValue = _arg2;
}
public function toString():String{
var _local1:String;
_local1 = "";
_local1 = (_local1 + "[SpecialPropertyModifier ");
_local1 = (_local1 + ("modifyValues:" + String(modifyValues)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("getValue:" + String(getValue)));
_local1 = (_local1 + "]");
return (_local1);
}
}
}//package caurina.transitions
Section 6
//SpecialPropertySplitter (caurina.transitions.SpecialPropertySplitter)
package caurina.transitions {
public class SpecialPropertySplitter {
public var parameters:Array;
public var splitValues:Function;
public function SpecialPropertySplitter(_arg1:Function, _arg2:Array){
splitValues = _arg1;
parameters = _arg2;
}
public function toString():String{
var _local1:String;
_local1 = "";
_local1 = (_local1 + "[SpecialPropertySplitter ");
_local1 = (_local1 + ("splitValues:" + String(splitValues)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("parameters:" + String(parameters)));
_local1 = (_local1 + "]");
return (_local1);
}
}
}//package caurina.transitions
Section 7
//Tweener (caurina.transitions.Tweener)
package caurina.transitions {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
public class Tweener {
private static var _timeScale:Number = 1;
private static var _currentTimeFrame:Number;
private static var _specialPropertySplitterList:Object;
private static var _engineExists:Boolean = false;
private static var _specialPropertyModifierList:Object;
private static var _currentTime:Number;
private static var _tweenList:Array;
private static var _specialPropertyList:Object;
private static var _transitionList:Object;
private static var _inited:Boolean = false;
private static var __tweener_controller__:MovieClip;
public function Tweener(){
trace("Tweener is a static class and should not be instantiated.");
}
public static function registerSpecialPropertyModifier(_arg1:String, _arg2:Function, _arg3:Function):void{
var _local4:SpecialPropertyModifier;
if (!_inited){
init();
};
_local4 = new SpecialPropertyModifier(_arg2, _arg3);
_specialPropertyModifierList[_arg1] = _local4;
}
public static function registerSpecialProperty(_arg1:String, _arg2:Function, _arg3:Function, _arg4:Array=null, _arg5:Function=null):void{
var _local6:SpecialProperty;
if (!_inited){
init();
};
_local6 = new SpecialProperty(_arg2, _arg3, _arg4, _arg5);
_specialPropertyList[_arg1] = _local6;
}
public static function init(... _args):void{
_inited = true;
_transitionList = new Object();
Equations.init();
_specialPropertyList = new Object();
_specialPropertyModifierList = new Object();
_specialPropertySplitterList = new Object();
}
private static function updateTweens():Boolean{
var _local1:int;
if (_tweenList.length == 0){
return (false);
};
_local1 = 0;
while (_local1 < _tweenList.length) {
if ((((_tweenList[_local1] == undefined)) || (!(_tweenList[_local1].isPaused)))){
if (!updateTweenByIndex(_local1)){
removeTweenByIndex(_local1);
};
if (_tweenList[_local1] == null){
removeTweenByIndex(_local1, true);
_local1--;
};
};
_local1++;
};
return (true);
}
public static function addCaller(_arg1:Object=null, _arg2:Object=null):Boolean{
var _local3:Number;
var _local4:Array;
var _local5:Object;
var _local6:Number;
var _local7:Number;
var _local8:Function;
var _local9:TweenListObj;
var _local10:Number;
var _local11:String;
if (!Boolean(_arg1)){
return (false);
};
if ((_arg1 is Array)){
_local4 = _arg1.concat();
} else {
_local4 = [_arg1];
};
_local5 = _arg2;
if (!_inited){
init();
};
if (((!(_engineExists)) || (!(Boolean(__tweener_controller__))))){
startEngine();
};
_local6 = (isNaN(_local5.time)) ? 0 : _local5.time;
_local7 = (isNaN(_local5.delay)) ? 0 : _local5.delay;
if (typeof(_local5.transition) == "string"){
_local11 = _local5.transition.toLowerCase();
_local8 = _transitionList[_local11];
} else {
_local8 = _local5.transition;
};
if (!Boolean(_local8)){
_local8 = _transitionList["easeoutexpo"];
};
_local3 = 0;
while (_local3 < _local4.length) {
if (_local5.useFrames == true){
_local9 = new TweenListObj(_local4[_local3], (_currentTimeFrame + (_local7 / _timeScale)), (_currentTimeFrame + ((_local7 + _local6) / _timeScale)), true, _local8, _local5.transitionParams);
} else {
_local9 = new TweenListObj(_local4[_local3], (_currentTime + ((_local7 * 1000) / _timeScale)), (_currentTime + (((_local7 * 1000) + (_local6 * 1000)) / _timeScale)), false, _local8, _local5.transitionParams);
};
_local9.properties = null;
_local9.onStart = _local5.onStart;
_local9.onUpdate = _local5.onUpdate;
_local9.onComplete = _local5.onComplete;
_local9.onOverwrite = _local5.onOverwrite;
_local9.onStartParams = _local5.onStartParams;
_local9.onUpdateParams = _local5.onUpdateParams;
_local9.onCompleteParams = _local5.onCompleteParams;
_local9.onOverwriteParams = _local5.onOverwriteParams;
_local9.onStartScope = _local5.onStartScope;
_local9.onUpdateScope = _local5.onUpdateScope;
_local9.onCompleteScope = _local5.onCompleteScope;
_local9.onOverwriteScope = _local5.onOverwriteScope;
_local9.onErrorScope = _local5.onErrorScope;
_local9.isCaller = true;
_local9.count = _local5.count;
_local9.waitFrames = _local5.waitFrames;
_tweenList.push(_local9);
if ((((_local6 == 0)) && ((_local7 == 0)))){
_local10 = (_tweenList.length - 1);
updateTweenByIndex(_local10);
removeTweenByIndex(_local10);
};
_local3++;
};
return (true);
}
public static function pauseAllTweens():Boolean{
var _local1:Boolean;
var _local2:uint;
if (!Boolean(_tweenList)){
return (false);
};
_local1 = false;
_local2 = 0;
while (_local2 < _tweenList.length) {
pauseTweenByIndex(_local2);
_local1 = true;
_local2++;
};
return (_local1);
}
public static function removeTweens(_arg1:Object, ... _args):Boolean{
var _local3:Array;
var _local4:uint;
var _local5:SpecialPropertySplitter;
var _local6:Array;
var _local7:uint;
_local3 = new Array();
_local4 = 0;
while (_local4 < _args.length) {
if ((((typeof(_args[_local4]) == "string")) && ((_local3.indexOf(_args[_local4]) == -1)))){
if (_specialPropertySplitterList[_args[_local4]]){
_local5 = _specialPropertySplitterList[_args[_local4]];
_local6 = _local5.splitValues(_arg1, null);
_local7 = 0;
while (_local7 < _local6.length) {
_local3.push(_local6[_local7].name);
_local7++;
};
} else {
_local3.push(_args[_local4]);
};
};
_local4++;
};
return (affectTweens(removeTweenByIndex, _arg1, _local3));
}
public static function splitTweens(_arg1:Number, _arg2:Array):uint{
var _local3:TweenListObj;
var _local4:TweenListObj;
var _local5:uint;
var _local6:String;
var _local7:Boolean;
_local3 = _tweenList[_arg1];
_local4 = _local3.clone(false);
_local5 = 0;
while (_local5 < _arg2.length) {
_local6 = _arg2[_local5];
if (Boolean(_local3.properties[_local6])){
_local3.properties[_local6] = undefined;
delete _local3.properties[_local6];
};
_local5++;
};
for (_local6 in _local4.properties) {
_local7 = false;
_local5 = 0;
while (_local5 < _arg2.length) {
if (_arg2[_local5] == _local6){
_local7 = true;
break;
};
_local5++;
};
if (!_local7){
_local4.properties[_local6] = undefined;
delete _local4.properties[_local6];
};
};
_tweenList.push(_local4);
return ((_tweenList.length - 1));
}
public static function updateFrame():void{
_currentTimeFrame++;
}
public static function resumeTweenByIndex(_arg1:Number):Boolean{
var _local2:TweenListObj;
var _local3:Number;
_local2 = _tweenList[_arg1];
if ((((_local2 == null)) || (!(_local2.isPaused)))){
return (false);
};
_local3 = getCurrentTweeningTime(_local2);
_local2.timeStart = (_local2.timeStart + (_local3 - _local2.timePaused));
_local2.timeComplete = (_local2.timeComplete + (_local3 - _local2.timePaused));
_local2.timePaused = undefined;
_local2.isPaused = false;
return (true);
}
public static function getVersion():String{
return ("AS3 1.31.74");
}
public static function onEnterFrame(_arg1:Event):void{
var _local2:Boolean;
updateTime();
updateFrame();
_local2 = false;
_local2 = updateTweens();
if (!_local2){
stopEngine();
};
}
public static function updateTime():void{
_currentTime = getTimer();
}
private static function updateTweenByIndex(_arg1:Number):Boolean{
var tTweening:TweenListObj;
var isOver:Boolean;
var mustUpdate:Boolean;
var nv:Number;
var t:Number;
var b:Number;
var c:Number;
var d:Number;
var pName:String;
var eventScope:Object;
var tScope:Object;
var cTime:Number;
var tProperty:Object;
var pv:Number;
var i = _arg1;
tTweening = _tweenList[i];
if ((((tTweening == null)) || (!(Boolean(tTweening.scope))))){
return (false);
};
isOver = false;
cTime = getCurrentTweeningTime(tTweening);
if (cTime >= tTweening.timeStart){
tScope = tTweening.scope;
if (tTweening.isCaller){
do {
t = (((tTweening.timeComplete - tTweening.timeStart) / tTweening.count) * (tTweening.timesCalled + 1));
b = tTweening.timeStart;
c = (tTweening.timeComplete - tTweening.timeStart);
d = (tTweening.timeComplete - tTweening.timeStart);
nv = tTweening.transition(t, b, c, d);
} while (!(cTime >= nv));
} else {
mustUpdate = (((((tTweening.skipUpdates < 1)) || (!(tTweening.skipUpdates)))) || ((tTweening.updatesSkipped >= tTweening.skipUpdates)));
if (cTime >= tTweening.timeComplete){
isOver = true;
mustUpdate = true;
};
if (!tTweening.hasStarted){
if (Boolean(tTweening.onStart)){
eventScope = (Boolean(tTweening.onStartScope)) ? tTweening.onStartScope : tScope;
try {
tTweening.onStart.apply(eventScope, tTweening.onStartParams);
} catch(e2:Error) {
handleError(tTweening, e2, "onStart");
};
};
for (pName in tTweening.properties) {
if (tTweening.properties[pName].isSpecialProperty){
if (Boolean(_specialPropertyList[pName].preProcess)){
tTweening.properties[pName].valueComplete = _specialPropertyList[pName].preProcess(tScope, _specialPropertyList[pName].parameters, tTweening.properties[pName].originalValueComplete, tTweening.properties[pName].extra);
};
pv = _specialPropertyList[pName].getValue(tScope, _specialPropertyList[pName].parameters, tTweening.properties[pName].extra);
} else {
pv = tScope[pName];
};
tTweening.properties[pName].valueStart = (isNaN(pv)) ? tTweening.properties[pName].valueComplete : pv;
};
mustUpdate = true;
tTweening.hasStarted = true;
};
if (mustUpdate){
for (pName in tTweening.properties) {
tProperty = tTweening.properties[pName];
if (isOver){
nv = tProperty.valueComplete;
} else {
if (tProperty.hasModifier){
t = (cTime - tTweening.timeStart);
d = (tTweening.timeComplete - tTweening.timeStart);
nv = tTweening.transition(t, 0, 1, d, tTweening.transitionParams);
nv = tProperty.modifierFunction(tProperty.valueStart, tProperty.valueComplete, nv, tProperty.modifierParameters);
} else {
t = (cTime - tTweening.timeStart);
b = tProperty.valueStart;
c = (tProperty.valueComplete - tProperty.valueStart);
d = (tTweening.timeComplete - tTweening.timeStart);
nv = tTweening.transition(t, b, c, d, tTweening.transitionParams);
};
};
if (tTweening.rounded){
nv = Math.round(nv);
};
if (tProperty.isSpecialProperty){
_specialPropertyList[pName].setValue(tScope, nv, _specialPropertyList[pName].parameters, tTweening.properties[pName].extra);
} else {
tScope[pName] = nv;
};
};
tTweening.updatesSkipped = 0;
if (Boolean(tTweening.onUpdate)){
eventScope = (Boolean(tTweening.onUpdateScope)) ? tTweening.onUpdateScope : tScope;
try {
tTweening.onUpdate.apply(eventScope, tTweening.onUpdateParams);
} catch(e3:Error) {
handleError(tTweening, e3, "onUpdate");
};
};
} else {
tTweening.updatesSkipped++;
};
};
if (((isOver) && (Boolean(tTweening.onComplete)))){
eventScope = (Boolean(tTweening.onCompleteScope)) ? tTweening.onCompleteScope : tScope;
try {
tTweening.onComplete.apply(eventScope, tTweening.onCompleteParams);
} catch(e4:Error) {
handleError(tTweening, e4, "onComplete");
};
};
return (!(isOver));
};
return (true);
}
public static function setTimeScale(_arg1:Number):void{
var _local2:Number;
var _local3:Number;
if (isNaN(_arg1)){
_arg1 = 1;
};
if (_arg1 < 1E-5){
_arg1 = 1E-5;
};
if (_arg1 != _timeScale){
if (_tweenList != null){
_local2 = 0;
while (_local2 < _tweenList.length) {
_local3 = getCurrentTweeningTime(_tweenList[_local2]);
_tweenList[_local2].timeStart = (_local3 - (((_local3 - _tweenList[_local2].timeStart) * _timeScale) / _arg1));
_tweenList[_local2].timeComplete = (_local3 - (((_local3 - _tweenList[_local2].timeComplete) * _timeScale) / _arg1));
if (_tweenList[_local2].timePaused != undefined){
_tweenList[_local2].timePaused = (_local3 - (((_local3 - _tweenList[_local2].timePaused) * _timeScale) / _arg1));
};
_local2++;
};
};
_timeScale = _arg1;
};
}
public static function resumeAllTweens():Boolean{
var _local1:Boolean;
var _local2:uint;
if (!Boolean(_tweenList)){
return (false);
};
_local1 = false;
_local2 = 0;
while (_local2 < _tweenList.length) {
resumeTweenByIndex(_local2);
_local1 = true;
_local2++;
};
return (_local1);
}
private static function handleError(_arg1:TweenListObj, _arg2:Error, _arg3:String):void{
var eventScope:Object;
var pTweening = _arg1;
var pError = _arg2;
var pCallBackName = _arg3;
if (((Boolean(pTweening.onError)) && ((pTweening.onError is Function)))){
eventScope = (Boolean(pTweening.onErrorScope)) ? pTweening.onErrorScope : pTweening.scope;
try {
pTweening.onError.apply(eventScope, [pTweening.scope, pError]);
} catch(metaError:Error) {
printError(((((String(pTweening.scope) + " raised an error while executing the 'onError' handler. Original error:\n ") + pError.getStackTrace()) + "\nonError error: ") + metaError.getStackTrace()));
};
} else {
if (!Boolean(pTweening.onError)){
printError(((((String(pTweening.scope) + " raised an error while executing the '") + pCallBackName) + "'handler. \n") + pError.getStackTrace()));
};
};
}
private static function startEngine():void{
_engineExists = true;
_tweenList = new Array();
__tweener_controller__ = new MovieClip();
__tweener_controller__.addEventListener(Event.ENTER_FRAME, Tweener.onEnterFrame);
_currentTimeFrame = 0;
updateTime();
}
public static function removeAllTweens():Boolean{
var _local1:Boolean;
var _local2:uint;
if (!Boolean(_tweenList)){
return (false);
};
_local1 = false;
_local2 = 0;
while (_local2 < _tweenList.length) {
removeTweenByIndex(_local2);
_local1 = true;
_local2++;
};
return (_local1);
}
public static function addTween(_arg1:Object=null, _arg2:Object=null):Boolean{
var _local3:Number;
var _local4:Number;
var _local5:String;
var _local6:Array;
var _local7:Object;
var _local8:Number;
var _local9:Number;
var _local10:Array;
var _local11:Object;
var _local12:Object;
var _local13:Function;
var _local14:Object;
var _local15:TweenListObj;
var _local16:Number;
var _local17:Array;
var _local18:Array;
var _local19:Array;
var _local20:String;
if (!Boolean(_arg1)){
return (false);
};
if ((_arg1 is Array)){
_local6 = _arg1.concat();
} else {
_local6 = [_arg1];
};
_local7 = TweenListObj.makePropertiesChain(_arg2);
if (!_inited){
init();
};
if (((!(_engineExists)) || (!(Boolean(__tweener_controller__))))){
startEngine();
};
_local8 = (isNaN(_local7.time)) ? 0 : _local7.time;
_local9 = (isNaN(_local7.delay)) ? 0 : _local7.delay;
_local10 = new Array();
_local11 = {time:true, delay:true, useFrames:true, skipUpdates:true, transition:true, transitionParams:true, onStart:true, onUpdate:true, onComplete:true, onOverwrite:true, onError:true, rounded:true, onStartParams:true, onUpdateParams:true, onCompleteParams:true, onOverwriteParams:true, onStartScope:true, onUpdateScope:true, onCompleteScope:true, onOverwriteScope:true, onErrorScope:true};
_local12 = new Object();
for (_local5 in _local7) {
if (!_local11[_local5]){
if (_specialPropertySplitterList[_local5]){
_local17 = _specialPropertySplitterList[_local5].splitValues(_local7[_local5], _specialPropertySplitterList[_local5].parameters);
_local3 = 0;
while (_local3 < _local17.length) {
if (_specialPropertySplitterList[_local17[_local3].name]){
_local18 = _specialPropertySplitterList[_local17[_local3].name].splitValues(_local17[_local3].value, _specialPropertySplitterList[_local17[_local3].name].parameters);
_local4 = 0;
while (_local4 < _local18.length) {
_local10[_local18[_local4].name] = {valueStart:undefined, valueComplete:_local18[_local4].value, arrayIndex:_local18[_local4].arrayIndex, isSpecialProperty:false};
_local4++;
};
} else {
_local10[_local17[_local3].name] = {valueStart:undefined, valueComplete:_local17[_local3].value, arrayIndex:_local17[_local3].arrayIndex, isSpecialProperty:false};
};
_local3++;
};
} else {
if (_specialPropertyModifierList[_local5] != undefined){
_local19 = _specialPropertyModifierList[_local5].modifyValues(_local7[_local5]);
_local3 = 0;
while (_local3 < _local19.length) {
_local12[_local19[_local3].name] = {modifierParameters:_local19[_local3].parameters, modifierFunction:_specialPropertyModifierList[_local5].getValue};
_local3++;
};
} else {
_local10[_local5] = {valueStart:undefined, valueComplete:_local7[_local5]};
};
};
};
};
for (_local5 in _local10) {
if (_specialPropertyList[_local5] != undefined){
_local10[_local5].isSpecialProperty = true;
} else {
if (_local6[0][_local5] == undefined){
printError((((("The property '" + _local5) + "' doesn't seem to be a normal object property of ") + String(_local6[0])) + " or a registered special property."));
};
};
};
for (_local5 in _local12) {
if (_local10[_local5] != undefined){
_local10[_local5].modifierParameters = _local12[_local5].modifierParameters;
_local10[_local5].modifierFunction = _local12[_local5].modifierFunction;
};
};
if (typeof(_local7.transition) == "string"){
_local20 = _local7.transition.toLowerCase();
_local13 = _transitionList[_local20];
} else {
_local13 = _local7.transition;
};
if (!Boolean(_local13)){
_local13 = _transitionList["easeoutexpo"];
};
_local3 = 0;
while (_local3 < _local6.length) {
_local14 = new Object();
for (_local5 in _local10) {
_local14[_local5] = new PropertyInfoObj(_local10[_local5].valueStart, _local10[_local5].valueComplete, _local10[_local5].valueComplete, _local10[_local5].arrayIndex, {}, _local10[_local5].isSpecialProperty, _local10[_local5].modifierFunction, _local10[_local5].modifierParameters);
};
if (_local7.useFrames == true){
_local15 = new TweenListObj(_local6[_local3], (_currentTimeFrame + (_local9 / _timeScale)), (_currentTimeFrame + ((_local9 + _local8) / _timeScale)), true, _local13, _local7.transitionParams);
} else {
_local15 = new TweenListObj(_local6[_local3], (_currentTime + ((_local9 * 1000) / _timeScale)), (_currentTime + (((_local9 * 1000) + (_local8 * 1000)) / _timeScale)), false, _local13, _local7.transitionParams);
};
_local15.properties = _local14;
_local15.onStart = _local7.onStart;
_local15.onUpdate = _local7.onUpdate;
_local15.onComplete = _local7.onComplete;
_local15.onOverwrite = _local7.onOverwrite;
_local15.onError = _local7.onError;
_local15.onStartParams = _local7.onStartParams;
_local15.onUpdateParams = _local7.onUpdateParams;
_local15.onCompleteParams = _local7.onCompleteParams;
_local15.onOverwriteParams = _local7.onOverwriteParams;
_local15.onStartScope = _local7.onStartScope;
_local15.onUpdateScope = _local7.onUpdateScope;
_local15.onCompleteScope = _local7.onCompleteScope;
_local15.onOverwriteScope = _local7.onOverwriteScope;
_local15.onErrorScope = _local7.onErrorScope;
_local15.rounded = _local7.rounded;
_local15.skipUpdates = _local7.skipUpdates;
removeTweensByTime(_local15.scope, _local15.properties, _local15.timeStart, _local15.timeComplete);
_tweenList.push(_local15);
if ((((_local8 == 0)) && ((_local9 == 0)))){
_local16 = (_tweenList.length - 1);
updateTweenByIndex(_local16);
removeTweenByIndex(_local16);
};
_local3++;
};
return (true);
}
public static function registerTransition(_arg1:String, _arg2:Function):void{
if (!_inited){
init();
};
_transitionList[_arg1] = _arg2;
}
public static function printError(_arg1:String):void{
trace(("## [Tweener] Error: " + _arg1));
}
private static function affectTweens(_arg1:Function, _arg2:Object, _arg3:Array):Boolean{
var _local4:Boolean;
var _local5:uint;
var _local6:Array;
var _local7:uint;
var _local8:uint;
var _local9:uint;
_local4 = false;
if (!Boolean(_tweenList)){
return (false);
};
_local5 = 0;
while (_local5 < _tweenList.length) {
if (((_tweenList[_local5]) && ((_tweenList[_local5].scope == _arg2)))){
if (_arg3.length == 0){
_arg1(_local5);
_local4 = true;
} else {
_local6 = new Array();
_local7 = 0;
while (_local7 < _arg3.length) {
if (Boolean(_tweenList[_local5].properties[_arg3[_local7]])){
_local6.push(_arg3[_local7]);
};
_local7++;
};
if (_local6.length > 0){
_local8 = AuxFunctions.getObjectLength(_tweenList[_local5].properties);
if (_local8 == _local6.length){
_arg1(_local5);
_local4 = true;
} else {
_local9 = splitTweens(_local5, _local6);
_arg1(_local9);
_local4 = true;
};
};
};
};
_local5++;
};
return (_local4);
}
public static function getTweens(_arg1:Object):Array{
var _local2:uint;
var _local3:String;
var _local4:Array;
if (!Boolean(_tweenList)){
return ([]);
};
_local4 = new Array();
_local2 = 0;
while (_local2 < _tweenList.length) {
if (((Boolean(_tweenList[_local2])) && ((_tweenList[_local2].scope == _arg1)))){
for (_local3 in _tweenList[_local2].properties) {
_local4.push(_local3);
};
};
_local2++;
};
return (_local4);
}
public static function isTweening(_arg1:Object):Boolean{
var _local2:uint;
if (!Boolean(_tweenList)){
return (false);
};
_local2 = 0;
while (_local2 < _tweenList.length) {
if (((Boolean(_tweenList[_local2])) && ((_tweenList[_local2].scope == _arg1)))){
return (true);
};
_local2++;
};
return (false);
}
public static function pauseTweenByIndex(_arg1:Number):Boolean{
var _local2:TweenListObj;
_local2 = _tweenList[_arg1];
if ((((_local2 == null)) || (_local2.isPaused))){
return (false);
};
_local2.timePaused = getCurrentTweeningTime(_local2);
_local2.isPaused = true;
return (true);
}
public static function getCurrentTweeningTime(_arg1:Object):Number{
return ((_arg1.useFrames) ? _currentTimeFrame : _currentTime);
}
public static function getTweenCount(_arg1:Object):Number{
var _local2:uint;
var _local3:Number;
if (!Boolean(_tweenList)){
return (0);
};
_local3 = 0;
_local2 = 0;
while (_local2 < _tweenList.length) {
if (((Boolean(_tweenList[_local2])) && ((_tweenList[_local2].scope == _arg1)))){
_local3 = (_local3 + AuxFunctions.getObjectLength(_tweenList[_local2].properties));
};
_local2++;
};
return (_local3);
}
private static function stopEngine():void{
_engineExists = false;
_tweenList = null;
_currentTime = 0;
_currentTimeFrame = 0;
__tweener_controller__.removeEventListener(Event.ENTER_FRAME, Tweener.onEnterFrame);
__tweener_controller__ = null;
}
public static function removeTweensByTime(_arg1:Object, _arg2:Object, _arg3:Number, _arg4:Number):Boolean{
var removed:Boolean;
var removedLocally:Boolean;
var i:uint;
var tl:uint;
var pName:String;
var eventScope:Object;
var p_scope = _arg1;
var p_properties = _arg2;
var p_timeStart = _arg3;
var p_timeComplete = _arg4;
removed = false;
tl = _tweenList.length;
i = 0;
while (i < tl) {
if (((Boolean(_tweenList[i])) && ((p_scope == _tweenList[i].scope)))){
if ((((p_timeComplete > _tweenList[i].timeStart)) && ((p_timeStart < _tweenList[i].timeComplete)))){
removedLocally = false;
for (pName in _tweenList[i].properties) {
if (Boolean(p_properties[pName])){
if (Boolean(_tweenList[i].onOverwrite)){
eventScope = (Boolean(_tweenList[i].onOverwriteScope)) ? _tweenList[i].onOverwriteScope : _tweenList[i].scope;
try {
_tweenList[i].onOverwrite.apply(eventScope, _tweenList[i].onOverwriteParams);
} catch(e:Error) {
handleError(_tweenList[i], e, "onOverwrite");
};
};
_tweenList[i].properties[pName] = undefined;
delete _tweenList[i].properties[pName];
removedLocally = true;
removed = true;
};
};
if (removedLocally){
if (AuxFunctions.getObjectLength(_tweenList[i].properties) == 0){
removeTweenByIndex(i);
};
};
};
};
i = (i + 1);
};
return (removed);
}
public static function registerSpecialPropertySplitter(_arg1:String, _arg2:Function, _arg3:Array=null):void{
var _local4:SpecialPropertySplitter;
if (!_inited){
init();
};
_local4 = new SpecialPropertySplitter(_arg2, _arg3);
_specialPropertySplitterList[_arg1] = _local4;
}
public static function removeTweenByIndex(_arg1:Number, _arg2:Boolean=false):Boolean{
_tweenList[_arg1] = null;
if (_arg2){
_tweenList.splice(_arg1, 1);
};
return (true);
}
public static function resumeTweens(_arg1:Object, ... _args):Boolean{
var _local3:Array;
var _local4:uint;
_local3 = new Array();
_local4 = 0;
while (_local4 < _args.length) {
if ((((typeof(_args[_local4]) == "string")) && ((_local3.indexOf(_args[_local4]) == -1)))){
_local3.push(_args[_local4]);
};
_local4++;
};
return (affectTweens(resumeTweenByIndex, _arg1, _local3));
}
public static function pauseTweens(_arg1:Object, ... _args):Boolean{
var _local3:Array;
var _local4:uint;
_local3 = new Array();
_local4 = 0;
while (_local4 < _args.length) {
if ((((typeof(_args[_local4]) == "string")) && ((_local3.indexOf(_args[_local4]) == -1)))){
_local3.push(_args[_local4]);
};
_local4++;
};
return (affectTweens(pauseTweenByIndex, _arg1, _local3));
}
}
}//package caurina.transitions
Section 8
//TweenListObj (caurina.transitions.TweenListObj)
package caurina.transitions {
public class TweenListObj {
public var onUpdate:Function;
public var useFrames:Boolean;
public var hasStarted:Boolean;
public var onOverwriteParams:Array;
public var timeStart:Number;
public var count:Number;
public var timeComplete:Number;
public var onStartParams:Array;
public var onUpdateScope:Object;
public var rounded:Boolean;
public var onUpdateParams:Array;
public var properties:Object;
public var onComplete:Function;
public var transitionParams:Object;
public var updatesSkipped:Number;
public var onStart:Function;
public var onOverwriteScope:Object;
public var skipUpdates:Number;
public var onStartScope:Object;
public var scope:Object;
public var transition:Function;
public var timePaused:Number;
public var onCompleteParams:Array;
public var timesCalled:Number;
public var isCaller:Boolean;
public var onError:Function;
public var onErrorScope:Object;
public var onOverwrite:Function;
public var isPaused:Boolean;
public var waitFrames:Boolean;
public var onCompleteScope:Object;
public function TweenListObj(_arg1:Object, _arg2:Number, _arg3:Number, _arg4:Boolean, _arg5:Function, _arg6:Object){
scope = _arg1;
timeStart = _arg2;
timeComplete = _arg3;
useFrames = _arg4;
transition = _arg5;
transitionParams = _arg6;
properties = new Object();
isPaused = false;
timePaused = undefined;
isCaller = false;
updatesSkipped = 0;
timesCalled = 0;
skipUpdates = 0;
hasStarted = false;
}
public function clone(_arg1:Boolean):TweenListObj{
var _local2:TweenListObj;
var _local3:String;
_local2 = new TweenListObj(scope, timeStart, timeComplete, useFrames, transition, transitionParams);
_local2.properties = new Array();
for (_local3 in properties) {
_local2.properties[_local3] = properties[_local3].clone();
};
_local2.skipUpdates = skipUpdates;
_local2.updatesSkipped = updatesSkipped;
if (!_arg1){
_local2.onStart = onStart;
_local2.onUpdate = onUpdate;
_local2.onComplete = onComplete;
_local2.onOverwrite = onOverwrite;
_local2.onError = onError;
_local2.onStartParams = onStartParams;
_local2.onUpdateParams = onUpdateParams;
_local2.onCompleteParams = onCompleteParams;
_local2.onOverwriteParams = onOverwriteParams;
_local2.onStartScope = onStartScope;
_local2.onUpdateScope = onUpdateScope;
_local2.onCompleteScope = onCompleteScope;
_local2.onOverwriteScope = onOverwriteScope;
_local2.onErrorScope = onErrorScope;
};
_local2.rounded = rounded;
_local2.isPaused = isPaused;
_local2.timePaused = timePaused;
_local2.isCaller = isCaller;
_local2.count = count;
_local2.timesCalled = timesCalled;
_local2.waitFrames = waitFrames;
_local2.hasStarted = hasStarted;
return (_local2);
}
public function toString():String{
var _local1:String;
var _local2:Boolean;
var _local3:String;
_local1 = "\n[TweenListObj ";
_local1 = (_local1 + ("scope:" + String(scope)));
_local1 = (_local1 + ", properties:");
_local2 = true;
for (_local3 in properties) {
if (!_local2){
_local1 = (_local1 + ",");
};
_local1 = (_local1 + ("[name:" + properties[_local3].name));
_local1 = (_local1 + (",valueStart:" + properties[_local3].valueStart));
_local1 = (_local1 + (",valueComplete:" + properties[_local3].valueComplete));
_local1 = (_local1 + "]");
_local2 = false;
};
_local1 = (_local1 + (", timeStart:" + String(timeStart)));
_local1 = (_local1 + (", timeComplete:" + String(timeComplete)));
_local1 = (_local1 + (", useFrames:" + String(useFrames)));
_local1 = (_local1 + (", transition:" + String(transition)));
_local1 = (_local1 + (", transitionParams:" + String(transitionParams)));
if (skipUpdates){
_local1 = (_local1 + (", skipUpdates:" + String(skipUpdates)));
};
if (updatesSkipped){
_local1 = (_local1 + (", updatesSkipped:" + String(updatesSkipped)));
};
if (Boolean(onStart)){
_local1 = (_local1 + (", onStart:" + String(onStart)));
};
if (Boolean(onUpdate)){
_local1 = (_local1 + (", onUpdate:" + String(onUpdate)));
};
if (Boolean(onComplete)){
_local1 = (_local1 + (", onComplete:" + String(onComplete)));
};
if (Boolean(onOverwrite)){
_local1 = (_local1 + (", onOverwrite:" + String(onOverwrite)));
};
if (Boolean(onError)){
_local1 = (_local1 + (", onError:" + String(onError)));
};
if (onStartParams){
_local1 = (_local1 + (", onStartParams:" + String(onStartParams)));
};
if (onUpdateParams){
_local1 = (_local1 + (", onUpdateParams:" + String(onUpdateParams)));
};
if (onCompleteParams){
_local1 = (_local1 + (", onCompleteParams:" + String(onCompleteParams)));
};
if (onOverwriteParams){
_local1 = (_local1 + (", onOverwriteParams:" + String(onOverwriteParams)));
};
if (onStartScope){
_local1 = (_local1 + (", onStartScope:" + String(onStartScope)));
};
if (onUpdateScope){
_local1 = (_local1 + (", onUpdateScope:" + String(onUpdateScope)));
};
if (onCompleteScope){
_local1 = (_local1 + (", onCompleteScope:" + String(onCompleteScope)));
};
if (onOverwriteScope){
_local1 = (_local1 + (", onOverwriteScope:" + String(onOverwriteScope)));
};
if (onErrorScope){
_local1 = (_local1 + (", onErrorScope:" + String(onErrorScope)));
};
if (rounded){
_local1 = (_local1 + (", rounded:" + String(rounded)));
};
if (isPaused){
_local1 = (_local1 + (", isPaused:" + String(isPaused)));
};
if (timePaused){
_local1 = (_local1 + (", timePaused:" + String(timePaused)));
};
if (isCaller){
_local1 = (_local1 + (", isCaller:" + String(isCaller)));
};
if (count){
_local1 = (_local1 + (", count:" + String(count)));
};
if (timesCalled){
_local1 = (_local1 + (", timesCalled:" + String(timesCalled)));
};
if (waitFrames){
_local1 = (_local1 + (", waitFrames:" + String(waitFrames)));
};
if (hasStarted){
_local1 = (_local1 + (", hasStarted:" + String(hasStarted)));
};
_local1 = (_local1 + "]\n");
return (_local1);
}
public static function makePropertiesChain(_arg1:Object):Object{
var _local2:Object;
var _local3:Object;
var _local4:Object;
var _local5:Object;
var _local6:Number;
var _local7:Number;
var _local8:Number;
_local2 = _arg1.base;
if (_local2){
_local3 = {};
if ((_local2 is Array)){
_local4 = [];
_local8 = 0;
while (_local8 < _local2.length) {
_local4.push(_local2[_local8]);
_local8++;
};
} else {
_local4 = [_local2];
};
_local4.push(_arg1);
_local6 = _local4.length;
_local7 = 0;
while (_local7 < _local6) {
if (_local4[_local7]["base"]){
_local5 = AuxFunctions.concatObjects(makePropertiesChain(_local4[_local7]["base"]), _local4[_local7]);
} else {
_local5 = _local4[_local7];
};
_local3 = AuxFunctions.concatObjects(_local3, _local5);
_local7++;
};
if (_local3["base"]){
delete _local3["base"];
};
return (_local3);
//unresolved jump
};
return (_arg1);
}
}
}//package caurina.transitions
Section 9
//TweenEvent (gs.events.TweenEvent)
package gs.events {
import flash.events.*;
public class TweenEvent extends Event {
public var info:Object;
public static const UPDATE:String = "update";
public static const START:String = "start";
public static const version:Number = 0.9;
public static const COMPLETE:String = "complete";
public function TweenEvent(_arg1:String, _arg2:Object=null, _arg3:Boolean=false, _arg4:Boolean=false){
super(_arg1, _arg3, _arg4);
this.info = _arg2;
}
override public function clone():Event{
return (new TweenEvent(this.type, this.info, this.bubbles, this.cancelable));
}
}
}//package gs.events
Section 10
//AutoAlphaPlugin (gs.plugins.AutoAlphaPlugin)
package gs.plugins {
import flash.display.*;
import gs.*;
public class AutoAlphaPlugin extends TweenPlugin {
protected var _tweenVisible:Boolean;
protected var _tween:TweenLite;
protected var _visible:Boolean;
protected var _target:Object;
public static const VERSION:Number = 1;
public static const API:Number = 1;
public function AutoAlphaPlugin(){
this.propName = "autoAlpha";
this.overwriteProps = ["alpha", "visible"];
this.onComplete = onCompleteTween;
}
override public function set changeFactor(_arg1:Number):void{
updateTweens(_arg1);
if (((!((_target.visible == true))) && (_tweenVisible))){
_target.visible = true;
};
}
public function onCompleteTween():void{
if (((((_tweenVisible) && (!((_tween.vars.runBackwards == true))))) && ((_tween.ease == _tween.vars.ease)))){
_target.visible = _visible;
};
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
_target = _arg1;
_tween = _arg3;
_visible = Boolean(!((_arg2 == 0)));
_tweenVisible = true;
addTween(_arg1, "alpha", _arg1.alpha, _arg2, "alpha");
return (true);
}
override public function killProps(_arg1:Object):void{
super.killProps(_arg1);
_tweenVisible = !(Boolean(("visible" in _arg1)));
}
}
}//package gs.plugins
Section 11
//BevelFilterPlugin (gs.plugins.BevelFilterPlugin)
package gs.plugins {
import flash.display.*;
import gs.*;
import flash.filters.*;
public class BevelFilterPlugin extends FilterPlugin {
public static const VERSION:Number = 1;
public static const API:Number = 1;
public function BevelFilterPlugin(){
this.propName = "bevelFilter";
this.overwriteProps = ["bevelFilter"];
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
_target = _arg1;
_type = BevelFilter;
initFilter(_arg2, new BevelFilter(0, 0, 0xFFFFFF, 0.5, 0, 0.5, 2, 2, 0, ((_arg2.quality) || (2))));
return (true);
}
}
}//package gs.plugins
Section 12
//BezierPlugin (gs.plugins.BezierPlugin)
package gs.plugins {
import gs.*;
import gs.utils.tween.*;
public class BezierPlugin extends TweenPlugin {
protected var _future:Object;
protected var _orient:Boolean;
protected var _orientData:Array;
protected var _beziers:Object;
protected var _target:Object;
protected static const _RAD2DEG:Number = 57.2957795130823;
public static const VERSION:Number = 1.01;
public static const API:Number = 1;
public function BezierPlugin(){
_future = {};
super();
this.propName = "bezier";
this.overwriteProps = [];
}
override public function set changeFactor(_arg1:Number):void{
var _local2:int;
var _local3:String;
var _local4:Object;
var _local5:Number;
var _local6:uint;
var _local7:Number;
var _local8:int;
var _local9:Object;
var _local10:Boolean;
var _local11:Number;
var _local12:Number;
var _local13:Array;
var _local14:Number;
if (_arg1 == 1){
for (_local3 in _beziers) {
_local2 = (_beziers[_local3].length - 1);
_target[_local3] = _beziers[_local3][_local2][2];
};
} else {
for (_local3 in _beziers) {
_local6 = _beziers[_local3].length;
if (_arg1 < 0){
_local2 = 0;
} else {
if (_arg1 >= 1){
_local2 = (_local6 - 1);
} else {
_local2 = int((_local6 * _arg1));
};
};
_local5 = ((_arg1 - (_local2 * (1 / _local6))) * _local6);
_local4 = _beziers[_local3][_local2];
if (this.round){
_local7 = (_local4[0] + (_local5 * (((2 * (1 - _local5)) * (_local4[1] - _local4[0])) + (_local5 * (_local4[2] - _local4[0])))));
_local8 = ((_local7)<0) ? -1 : 1;
_target[_local3] = ((((_local7 % 1) * _local8))>0.5) ? (int(_local7) + _local8) : int(_local7);
} else {
_target[_local3] = (_local4[0] + (_local5 * (((2 * (1 - _local5)) * (_local4[1] - _local4[0])) + (_local5 * (_local4[2] - _local4[0])))));
};
};
};
if (_orient){
_local9 = _target;
_local10 = this.round;
_target = _future;
this.round = false;
_orient = false;
this.changeFactor = (_arg1 + 0.01);
_target = _local9;
this.round = _local10;
_orient = true;
_local2 = 0;
while (_local2 < _orientData.length) {
_local13 = _orientData[_local2];
_local14 = ((_local13[3]) || (0));
_local11 = (_future[_local13[0]] - _target[_local13[0]]);
_local12 = (_future[_local13[1]] - _target[_local13[1]]);
_target[_local13[2]] = ((Math.atan2(_local12, _local11) * _RAD2DEG) + _local14);
_local2++;
};
};
}
protected function init(_arg1:TweenLite, _arg2:Array, _arg3:Boolean):void{
var _local4:Object;
var _local5:int;
var _local6:String;
_target = _arg1.target;
if (_arg1.exposedVars.orientToBezier == true){
_orientData = [["x", "y", "rotation", 0]];
_orient = true;
} else {
if ((_arg1.exposedVars.orientToBezier is Array)){
_orientData = _arg1.exposedVars.orientToBezier;
_orient = true;
};
};
_local4 = {};
_local5 = 0;
while (_local5 < _arg2.length) {
for (_local6 in _arg2[_local5]) {
if (_local4[_local6] == undefined){
_local4[_local6] = [_arg1.target[_local6]];
};
if (typeof(_arg2[_local5][_local6]) == "number"){
_local4[_local6].push(_arg2[_local5][_local6]);
} else {
_local4[_local6].push((_arg1.target[_local6] + Number(_arg2[_local5][_local6])));
};
};
_local5++;
};
for (_local6 in _local4) {
this.overwriteProps[this.overwriteProps.length] = _local6;
if (_arg1.exposedVars[_local6] != undefined){
if (typeof(_arg1.exposedVars[_local6]) == "number"){
_local4[_local6].push(_arg1.exposedVars[_local6]);
} else {
_local4[_local6].push((_arg1.target[_local6] + Number(_arg1.exposedVars[_local6])));
};
delete _arg1.exposedVars[_local6];
_local5 = (_arg1.tweens.length - 1);
while (_local5 > -1) {
if (_arg1.tweens[_local5].name == _local6){
_arg1.tweens.splice(_local5, 1);
};
_local5--;
};
};
};
_beziers = parseBeziers(_local4, _arg3);
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
if (!(_arg2 is Array)){
return (false);
};
init(_arg3, (_arg2 as Array), false);
return (true);
}
override public function killProps(_arg1:Object):void{
var _local2:String;
for (_local2 in _beziers) {
if ((_local2 in _arg1)){
delete _beziers[_local2];
};
};
super.killProps(_arg1);
}
public static function parseBeziers(_arg1:Object, _arg2:Boolean=false):Object{
var _local3:int;
var _local4:Array;
var _local5:Object;
var _local6:String;
var _local7:Object;
_local7 = {};
if (_arg2){
for (_local6 in _arg1) {
_local4 = _arg1[_local6];
_local5 = [];
_local7[_local6] = _local5;
if (_local4.length > 2){
_local5[_local5.length] = [_local4[0], (_local4[1] - ((_local4[2] - _local4[0]) / 4)), _local4[1]];
_local3 = 1;
while (_local3 < (_local4.length - 1)) {
_local5[_local5.length] = [_local4[_local3], (_local4[_local3] + (_local4[_local3] - _local5[(_local3 - 1)][1])), _local4[(_local3 + 1)]];
_local3++;
};
} else {
_local5[_local5.length] = [_local4[0], ((_local4[0] + _local4[1]) / 2), _local4[1]];
};
};
} else {
for (_local6 in _arg1) {
_local4 = _arg1[_local6];
_local5 = [];
_local7[_local6] = _local5;
if (_local4.length > 3){
_local5[_local5.length] = [_local4[0], _local4[1], ((_local4[1] + _local4[2]) / 2)];
_local3 = 2;
while (_local3 < (_local4.length - 2)) {
_local5[_local5.length] = [_local5[(_local3 - 2)][2], _local4[_local3], ((_local4[_local3] + _local4[(_local3 + 1)]) / 2)];
_local3++;
};
_local5[_local5.length] = [_local5[(_local5.length - 1)][2], _local4[(_local4.length - 2)], _local4[(_local4.length - 1)]];
} else {
if (_local4.length == 3){
_local5[_local5.length] = [_local4[0], _local4[1], _local4[2]];
} else {
if (_local4.length == 2){
_local5[_local5.length] = [_local4[0], ((_local4[0] + _local4[1]) / 2), _local4[1]];
};
};
};
};
};
return (_local7);
}
}
}//package gs.plugins
Section 13
//BezierThroughPlugin (gs.plugins.BezierThroughPlugin)
package gs.plugins {
import gs.*;
public class BezierThroughPlugin extends BezierPlugin {
public static const VERSION:Number = 1;
public static const API:Number = 1;
public function BezierThroughPlugin(){
this.propName = "bezierThrough";
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
if (!(_arg2 is Array)){
return (false);
};
init(_arg3, (_arg2 as Array), true);
return (true);
}
}
}//package gs.plugins
Section 14
//BlurFilterPlugin (gs.plugins.BlurFilterPlugin)
package gs.plugins {
import flash.display.*;
import gs.*;
import flash.filters.*;
public class BlurFilterPlugin extends FilterPlugin {
public static const VERSION:Number = 1;
public static const API:Number = 1;
public function BlurFilterPlugin(){
this.propName = "blurFilter";
this.overwriteProps = ["blurFilter"];
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
_target = _arg1;
_type = BlurFilter;
initFilter(_arg2, new BlurFilter(0, 0, ((_arg2.quality) || (2))));
return (true);
}
}
}//package gs.plugins
Section 15
//ColorMatrixFilterPlugin (gs.plugins.ColorMatrixFilterPlugin)
package gs.plugins {
import flash.display.*;
import gs.*;
import flash.filters.*;
public class ColorMatrixFilterPlugin extends FilterPlugin {
protected var _matrix:Array;
protected var _matrixTween:EndArrayPlugin;
public static const API:Number = 1;
public static const VERSION:Number = 1.01;
protected static var _lumG:Number = 0.71516;
protected static var _lumR:Number = 0.212671;
protected static var _idMatrix:Array = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0];
protected static var _lumB:Number = 0.072169;
public function ColorMatrixFilterPlugin(){
this.propName = "colorMatrixFilter";
this.overwriteProps = ["colorMatrixFilter"];
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
var _local4:Object;
var _local5:Array;
_target = _arg1;
_type = ColorMatrixFilter;
_local4 = _arg2;
initFilter({}, new ColorMatrixFilter(_idMatrix.slice()));
_matrix = ColorMatrixFilter(_filter).matrix;
_local5 = [];
if (((!((_local4.matrix == null))) && ((_local4.matrix is Array)))){
_local5 = _local4.matrix;
} else {
if (_local4.relative == true){
_local5 = _matrix.slice();
} else {
_local5 = _idMatrix.slice();
};
_local5 = setBrightness(_local5, _local4.brightness);
_local5 = setContrast(_local5, _local4.contrast);
_local5 = setHue(_local5, _local4.hue);
_local5 = setSaturation(_local5, _local4.saturation);
_local5 = setThreshold(_local5, _local4.threshold);
if (!isNaN(_local4.colorize)){
_local5 = colorize(_local5, _local4.colorize, _local4.amount);
};
};
_matrixTween = new EndArrayPlugin();
_matrixTween.init(_matrix, _local5);
return (true);
}
override public function set changeFactor(_arg1:Number):void{
_matrixTween.changeFactor = _arg1;
ColorMatrixFilter(_filter).matrix = _matrix;
super.changeFactor = _arg1;
}
public static function setSaturation(_arg1:Array, _arg2:Number):Array{
var _local3:Number;
var _local4:Number;
var _local5:Number;
var _local6:Number;
var _local7:Array;
if (isNaN(_arg2)){
return (_arg1);
};
_local3 = (1 - _arg2);
_local4 = (_local3 * _lumR);
_local5 = (_local3 * _lumG);
_local6 = (_local3 * _lumB);
_local7 = [(_local4 + _arg2), _local5, _local6, 0, 0, _local4, (_local5 + _arg2), _local6, 0, 0, _local4, _local5, (_local6 + _arg2), 0, 0, 0, 0, 0, 1, 0];
return (applyMatrix(_local7, _arg1));
}
public static function setHue(_arg1:Array, _arg2:Number):Array{
var _local3:Number;
var _local4:Number;
var _local5:Array;
if (isNaN(_arg2)){
return (_arg1);
};
_arg2 = (_arg2 * (Math.PI / 180));
_local3 = Math.cos(_arg2);
_local4 = Math.sin(_arg2);
_local5 = [((_lumR + (_local3 * (1 - _lumR))) + (_local4 * -(_lumR))), ((_lumG + (_local3 * -(_lumG))) + (_local4 * -(_lumG))), ((_lumB + (_local3 * -(_lumB))) + (_local4 * (1 - _lumB))), 0, 0, ((_lumR + (_local3 * -(_lumR))) + (_local4 * 0.143)), ((_lumG + (_local3 * (1 - _lumG))) + (_local4 * 0.14)), ((_lumB + (_local3 * -(_lumB))) + (_local4 * -0.283)), 0, 0, ((_lumR + (_local3 * -(_lumR))) + (_local4 * -((1 - _lumR)))), ((_lumG + (_local3 * -(_lumG))) + (_local4 * _lumG)), ((_lumB + (_local3 * (1 - _lumB))) + (_local4 * _lumB)), 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1];
return (applyMatrix(_local5, _arg1));
}
public static function setThreshold(_arg1:Array, _arg2:Number):Array{
var _local3:Array;
if (isNaN(_arg2)){
return (_arg1);
};
_local3 = [(_lumR * 0x0100), (_lumG * 0x0100), (_lumB * 0x0100), 0, (-256 * _arg2), (_lumR * 0x0100), (_lumG * 0x0100), (_lumB * 0x0100), 0, (-256 * _arg2), (_lumR * 0x0100), (_lumG * 0x0100), (_lumB * 0x0100), 0, (-256 * _arg2), 0, 0, 0, 1, 0];
return (applyMatrix(_local3, _arg1));
}
public static function applyMatrix(_arg1:Array, _arg2:Array):Array{
var _local3:Array;
var _local4:int;
var _local5:int;
var _local6:int;
var _local7:int;
if (((!((_arg1 is Array))) || (!((_arg2 is Array))))){
return (_arg2);
};
_local3 = [];
_local4 = 0;
_local5 = 0;
_local6 = 0;
while (_local6 < 4) {
_local7 = 0;
while (_local7 < 5) {
if (_local7 == 4){
_local5 = _arg1[(_local4 + 4)];
} else {
_local5 = 0;
};
_local3[(_local4 + _local7)] = (((((_arg1[_local4] * _arg2[_local7]) + (_arg1[(_local4 + 1)] * _arg2[(_local7 + 5)])) + (_arg1[(_local4 + 2)] * _arg2[(_local7 + 10)])) + (_arg1[(_local4 + 3)] * _arg2[(_local7 + 15)])) + _local5);
_local7++;
};
_local4 = (_local4 + 5);
_local6++;
};
return (_local3);
}
public static function colorize(_arg1:Array, _arg2:Number, _arg3:Number=1):Array{
var _local4:Number;
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local8:Array;
if (isNaN(_arg2)){
return (_arg1);
};
if (isNaN(_arg3)){
_arg3 = 1;
};
_local4 = (((_arg2 >> 16) & 0xFF) / 0xFF);
_local5 = (((_arg2 >> 8) & 0xFF) / 0xFF);
_local6 = ((_arg2 & 0xFF) / 0xFF);
_local7 = (1 - _arg3);
_local8 = [(_local7 + ((_arg3 * _local4) * _lumR)), ((_arg3 * _local4) * _lumG), ((_arg3 * _local4) * _lumB), 0, 0, ((_arg3 * _local5) * _lumR), (_local7 + ((_arg3 * _local5) * _lumG)), ((_arg3 * _local5) * _lumB), 0, 0, ((_arg3 * _local6) * _lumR), ((_arg3 * _local6) * _lumG), (_local7 + ((_arg3 * _local6) * _lumB)), 0, 0, 0, 0, 0, 1, 0];
return (applyMatrix(_local8, _arg1));
}
public static function setBrightness(_arg1:Array, _arg2:Number):Array{
if (isNaN(_arg2)){
return (_arg1);
};
_arg2 = ((_arg2 * 100) - 100);
return (applyMatrix([1, 0, 0, 0, _arg2, 0, 1, 0, 0, _arg2, 0, 0, 1, 0, _arg2, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1], _arg1));
}
public static function setContrast(_arg1:Array, _arg2:Number):Array{
var _local3:Array;
if (isNaN(_arg2)){
return (_arg1);
};
_arg2 = (_arg2 + 0.01);
_local3 = [_arg2, 0, 0, 0, (128 * (1 - _arg2)), 0, _arg2, 0, 0, (128 * (1 - _arg2)), 0, 0, _arg2, 0, (128 * (1 - _arg2)), 0, 0, 0, 1, 0];
return (applyMatrix(_local3, _arg1));
}
}
}//package gs.plugins
Section 16
//DropShadowFilterPlugin (gs.plugins.DropShadowFilterPlugin)
package gs.plugins {
import flash.display.*;
import gs.*;
import flash.filters.*;
public class DropShadowFilterPlugin extends FilterPlugin {
public static const VERSION:Number = 1;
public static const API:Number = 1;
public function DropShadowFilterPlugin(){
this.propName = "dropShadowFilter";
this.overwriteProps = ["dropShadowFilter"];
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
_target = _arg1;
_type = DropShadowFilter;
initFilter(_arg2, new DropShadowFilter(0, 45, 0, 0, 0, 0, 1, ((_arg2.quality) || (2)), _arg2.inner, _arg2.knockout, _arg2.hideObject));
return (true);
}
}
}//package gs.plugins
Section 17
//EndArrayPlugin (gs.plugins.EndArrayPlugin)
package gs.plugins {
import gs.*;
import gs.utils.tween.*;
public class EndArrayPlugin extends TweenPlugin {
protected var _info:Array;
protected var _a:Array;
public static const VERSION:Number = 1.01;
public static const API:Number = 1;
public function EndArrayPlugin(){
_info = [];
super();
this.propName = "endArray";
this.overwriteProps = ["endArray"];
}
override public function set changeFactor(_arg1:Number):void{
var _local2:int;
var _local3:ArrayTweenInfo;
var _local4:Number;
var _local5:int;
if (this.round){
_local2 = (_info.length - 1);
while (_local2 > -1) {
_local3 = _info[_local2];
_local4 = (_local3.start + (_local3.change * _arg1));
_local5 = ((_local4)<0) ? -1 : 1;
_a[_local3.index] = ((((_local4 % 1) * _local5))>0.5) ? (int(_local4) + _local5) : int(_local4);
_local2--;
};
} else {
_local2 = (_info.length - 1);
while (_local2 > -1) {
_local3 = _info[_local2];
_a[_local3.index] = (_local3.start + (_local3.change * _arg1));
_local2--;
};
};
}
public function init(_arg1:Array, _arg2:Array):void{
var _local3:int;
_a = _arg1;
_local3 = (_arg2.length - 1);
while (_local3 > -1) {
if (((!((_arg1[_local3] == _arg2[_local3]))) && (!((_arg1[_local3] == null))))){
_info[_info.length] = new ArrayTweenInfo(_local3, _a[_local3], (_arg2[_local3] - _a[_local3]));
};
_local3--;
};
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
if (((!((_arg1 is Array))) || (!((_arg2 is Array))))){
return (false);
};
init((_arg1 as Array), _arg2);
return (true);
}
}
}//package gs.plugins
Section 18
//FilterPlugin (gs.plugins.FilterPlugin)
package gs.plugins {
import flash.display.*;
import gs.*;
import flash.filters.*;
import gs.utils.tween.*;
public class FilterPlugin extends TweenPlugin {
protected var _index:int;
protected var _filter:BitmapFilter;
protected var _type:Class;
protected var _remove:Boolean;
protected var _target:Object;
public static const VERSION:Number = 1.03;
public static const API:Number = 1;
override public function set changeFactor(_arg1:Number):void{
var _local2:int;
var _local3:TweenInfo;
var _local4:Array;
_local4 = _target.filters;
_local2 = (_tweens.length - 1);
while (_local2 > -1) {
_local3 = _tweens[_local2];
_local3.target[_local3.property] = (_local3.start + (_local3.change * _arg1));
_local2--;
};
if (!(_local4[_index] is _type)){
_index = (_local4.length - 1);
_local2 = (_local4.length - 1);
while (_local2 > -1) {
if ((_local4[_local2] is _type)){
_index = _local2;
break;
};
_local2--;
};
};
_local4[_index] = _filter;
_target.filters = _local4;
}
public function onCompleteTween():void{
var _local1:int;
var _local2:Array;
if (_remove){
_local2 = _target.filters;
if (!(_local2[_index] is _type)){
_local1 = (_local2.length - 1);
while (_local1 > -1) {
if ((_local2[_local1] is _type)){
_local2.splice(_local1, 1);
break;
};
_local1--;
};
} else {
_local2.splice(_index, 1);
};
_target.filters = _local2;
};
}
protected function initFilter(_arg1:Object, _arg2:BitmapFilter):void{
var _local3:Array;
var _local4:String;
var _local5:int;
var _local6:HexColorsPlugin;
var _local7:Object;
_local3 = _target.filters;
_index = -1;
if (_arg1.index != null){
_index = _arg1.index;
} else {
_local5 = (_local3.length - 1);
while (_local5 > -1) {
if ((_local3[_local5] is _type)){
_index = _local5;
break;
};
_local5--;
};
};
if ((((((_index == -1)) || ((_local3[_index] == null)))) || ((_arg1.addFilter == true)))){
_index = ((_arg1.index)!=null) ? _arg1.index : _local3.length;
_local3[_index] = _arg2;
_target.filters = _local3;
};
_filter = _local3[_index];
_remove = Boolean((_arg1.remove == true));
if (_remove){
this.onComplete = onCompleteTween;
};
_local7 = ((_arg1.isTV)==true) ? _arg1.exposedVars : _arg1;
for (_local4 in _local7) {
if (((((((((!((_local4 in _filter))) || ((_filter[_local4] == _local7[_local4])))) || ((_local4 == "remove")))) || ((_local4 == "index")))) || ((_local4 == "addFilter")))){
} else {
if ((((((_local4 == "color")) || ((_local4 == "highlightColor")))) || ((_local4 == "shadowColor")))){
_local6 = new HexColorsPlugin();
_local6.initColor(_filter, _local4, _filter[_local4], _local7[_local4]);
_tweens[_tweens.length] = new TweenInfo(_local6, "changeFactor", 0, 1, _local4, false);
} else {
if ((((((((_local4 == "quality")) || ((_local4 == "inner")))) || ((_local4 == "knockout")))) || ((_local4 == "hideObject")))){
_filter[_local4] = _local7[_local4];
} else {
addTween(_filter, _local4, _filter[_local4], _local7[_local4], _local4);
};
};
};
};
}
}
}//package gs.plugins
Section 19
//FramePlugin (gs.plugins.FramePlugin)
package gs.plugins {
import flash.display.*;
import gs.*;
public class FramePlugin extends TweenPlugin {
public var frame:int;
protected var _target:MovieClip;
public static const VERSION:Number = 1;
public static const API:Number = 1;
public function FramePlugin(){
this.propName = "frame";
this.overwriteProps = ["frame"];
this.round = true;
}
override public function set changeFactor(_arg1:Number):void{
updateTweens(_arg1);
_target.gotoAndStop(this.frame);
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
if (((!((_arg1 is MovieClip))) || (isNaN(_arg2)))){
return (false);
};
_target = (_arg1 as MovieClip);
addTween(this, "frame", _target.currentFrame, _arg2, "frame");
return (true);
}
}
}//package gs.plugins
Section 20
//GlowFilterPlugin (gs.plugins.GlowFilterPlugin)
package gs.plugins {
import flash.display.*;
import gs.*;
import flash.filters.*;
public class GlowFilterPlugin extends FilterPlugin {
public static const VERSION:Number = 1;
public static const API:Number = 1;
public function GlowFilterPlugin(){
this.propName = "glowFilter";
this.overwriteProps = ["glowFilter"];
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
_target = _arg1;
_type = GlowFilter;
initFilter(_arg2, new GlowFilter(0xFFFFFF, 0, 0, 0, ((_arg2.strength) || (1)), ((_arg2.quality) || (2)), _arg2.inner, _arg2.knockout));
return (true);
}
}
}//package gs.plugins
Section 21
//HexColorsPlugin (gs.plugins.HexColorsPlugin)
package gs.plugins {
import gs.*;
public class HexColorsPlugin extends TweenPlugin {
protected var _colors:Array;
public static const VERSION:Number = 1;
public static const API:Number = 1;
public function HexColorsPlugin(){
this.propName = "hexColors";
this.overwriteProps = [];
}
override public function set changeFactor(_arg1:Number):void{
var _local2:int;
var _local3:Array;
_local2 = (_colors.length - 1);
while (_local2 > -1) {
_local3 = _colors[_local2];
_local3[0][_local3[1]] = ((((_local3[2] + (_arg1 * _local3[3])) << 16) | ((_local3[4] + (_arg1 * _local3[5])) << 8)) | (_local3[6] + (_arg1 * _local3[7])));
_local2--;
};
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
var _local4:String;
for (_local4 in _arg2) {
initColor(_arg1, _local4, uint(_arg1[_local4]), uint(_arg2[_local4]));
};
return (true);
}
override public function killProps(_arg1:Object):void{
var _local2:int;
_local2 = (_colors.length - 1);
while (_local2 > -1) {
if (_arg1[_colors[_local2][1]] != undefined){
_colors.splice(_local2, 1);
};
_local2--;
};
super.killProps(_arg1);
}
public function initColor(_arg1:Object, _arg2:String, _arg3:uint, _arg4:uint):void{
var _local5:Number;
var _local6:Number;
var _local7:Number;
if (_arg3 != _arg4){
if (_colors == null){
_colors = [];
};
_local5 = (_arg3 >> 16);
_local6 = ((_arg3 >> 8) & 0xFF);
_local7 = (_arg3 & 0xFF);
_colors[_colors.length] = [_arg1, _arg2, _local5, ((_arg4 >> 16) - _local5), _local6, (((_arg4 >> 8) & 0xFF) - _local6), _local7, ((_arg4 & 0xFF) - _local7)];
this.overwriteProps[this.overwriteProps.length] = _arg2;
};
}
}
}//package gs.plugins
Section 22
//RemoveTintPlugin (gs.plugins.RemoveTintPlugin)
package gs.plugins {
public class RemoveTintPlugin extends TintPlugin {
public static const VERSION:Number = 1.01;
public static const API:Number = 1;
public function RemoveTintPlugin(){
this.propName = "removeTint";
}
}
}//package gs.plugins
Section 23
//RoundPropsPlugin (gs.plugins.RoundPropsPlugin)
package gs.plugins {
public class RoundPropsPlugin extends TweenPlugin {
public static const VERSION:Number = 1;
public static const API:Number = 1;
public function RoundPropsPlugin(){
this.propName = "roundProps";
this.overwriteProps = [];
this.round = true;
}
public function add(_arg1:Object, _arg2:String, _arg3:Number, _arg4:Number):void{
addTween(_arg1, _arg2, _arg3, (_arg3 + _arg4), _arg2);
this.overwriteProps[this.overwriteProps.length] = _arg2;
}
}
}//package gs.plugins
Section 24
//ShortRotationPlugin (gs.plugins.ShortRotationPlugin)
package gs.plugins {
import gs.*;
public class ShortRotationPlugin extends TweenPlugin {
public static const VERSION:Number = 1;
public static const API:Number = 1;
public function ShortRotationPlugin(){
this.propName = "shortRotation";
this.overwriteProps = [];
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
var _local4:String;
if (typeof(_arg2) == "number"){
trace("WARNING: You appear to be using the old shortRotation syntax. Instead of passing a number, please pass an object with properties that correspond to the rotations values For example, TweenMax.to(mc, 2, {shortRotation:{rotationX:-170, rotationY:25}})");
return (false);
};
for (_local4 in _arg2) {
initRotation(_arg1, _local4, _arg1[_local4], _arg2[_local4]);
};
return (true);
}
public function initRotation(_arg1:Object, _arg2:String, _arg3:Number, _arg4:Number):void{
var _local5:Number;
_local5 = ((_arg4 - _arg3) % 360);
if (((_arg4 - _arg3) % 360) != (_local5 % 180)){
_local5 = ((_local5)<0) ? (_local5 + 360) : (_local5 - 360);
};
addTween(_arg1, _arg2, _arg3, (_arg3 + _local5), _arg2);
this.overwriteProps[this.overwriteProps.length] = _arg2;
}
}
}//package gs.plugins
Section 25
//TintPlugin (gs.plugins.TintPlugin)
package gs.plugins {
import flash.display.*;
import gs.*;
import flash.geom.*;
import gs.utils.tween.*;
public class TintPlugin extends TweenPlugin {
protected var _ct:ColorTransform;
protected var _target:DisplayObject;
public static const VERSION:Number = 1.01;
public static const API:Number = 1;
protected static var _props:Array = ["redMultiplier", "greenMultiplier", "blueMultiplier", "alphaMultiplier", "redOffset", "greenOffset", "blueOffset", "alphaOffset"];
public function TintPlugin(){
this.propName = "tint";
this.overwriteProps = ["tint"];
}
override public function set changeFactor(_arg1:Number):void{
updateTweens(_arg1);
_target.transform.colorTransform = _ct;
}
public function init(_arg1:DisplayObject, _arg2:ColorTransform):void{
var _local3:int;
var _local4:String;
_target = _arg1;
_ct = _target.transform.colorTransform;
_local3 = (_props.length - 1);
while (_local3 > -1) {
_local4 = _props[_local3];
if (_ct[_local4] != _arg2[_local4]){
_tweens[_tweens.length] = new TweenInfo(_ct, _local4, _ct[_local4], (_arg2[_local4] - _ct[_local4]), "tint", false);
};
_local3--;
};
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
var _local4:ColorTransform;
if (!(_arg1 is DisplayObject)){
return (false);
};
_local4 = new ColorTransform();
if (((!((_arg2 == null))) && (!((_arg3.exposedVars.removeTint == true))))){
_local4.color = uint(_arg2);
};
if (((!((_arg3.exposedVars.alpha == undefined))) || (!((_arg3.exposedVars.autoAlpha == undefined))))){
_local4.alphaMultiplier = ((_arg3.exposedVars.alpha)!=undefined) ? _arg3.exposedVars.alpha : _arg3.exposedVars.autoAlpha;
_arg3.killVars({alpha:1, autoAlpha:1});
} else {
_local4.alphaMultiplier = _arg1.alpha;
};
init((_arg1 as DisplayObject), _local4);
return (true);
}
}
}//package gs.plugins
Section 26
//TweenPlugin (gs.plugins.TweenPlugin)
package gs.plugins {
import gs.*;
import gs.utils.tween.*;
public class TweenPlugin {
public var overwriteProps:Array;
protected var _tweens:Array;
public var round:Boolean;
public var onComplete:Function;
public var propName:String;
protected var _changeFactor:Number;// = 0
public static const VERSION:Number = 1.03;
public static const API:Number = 1;
public function TweenPlugin(){
_tweens = [];
_changeFactor = 0;
super();
}
protected function updateTweens(_arg1:Number):void{
var _local2:int;
var _local3:TweenInfo;
var _local4:Number;
var _local5:int;
if (this.round){
_local2 = (_tweens.length - 1);
while (_local2 > -1) {
_local3 = _tweens[_local2];
_local4 = (_local3.start + (_local3.change * _arg1));
_local5 = ((_local4)<0) ? -1 : 1;
_local3.target[_local3.property] = ((((_local4 % 1) * _local5))>0.5) ? (int(_local4) + _local5) : int(_local4);
_local2--;
};
} else {
_local2 = (_tweens.length - 1);
while (_local2 > -1) {
_local3 = _tweens[_local2];
_local3.target[_local3.property] = (_local3.start + (_local3.change * _arg1));
_local2--;
};
};
}
public function set changeFactor(_arg1:Number):void{
updateTweens(_arg1);
_changeFactor = _arg1;
}
protected function addTween(_arg1:Object, _arg2:String, _arg3:Number, _arg4, _arg5:String=null):void{
var _local6:Number;
if (_arg4 != null){
_local6 = ((typeof(_arg4))=="number") ? (_arg4 - _arg3) : Number(_arg4);
if (_local6 != 0){
_tweens[_tweens.length] = new TweenInfo(_arg1, _arg2, _arg3, _local6, ((_arg5) || (_arg2)), false);
};
};
}
public function killProps(_arg1:Object):void{
var _local2:int;
_local2 = (this.overwriteProps.length - 1);
while (_local2 > -1) {
if ((this.overwriteProps[_local2] in _arg1)){
this.overwriteProps.splice(_local2, 1);
};
_local2--;
};
_local2 = (_tweens.length - 1);
while (_local2 > -1) {
if ((_tweens[_local2].name in _arg1)){
_tweens.splice(_local2, 1);
};
_local2--;
};
}
public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
addTween(_arg1, this.propName, _arg1[this.propName], _arg2, this.propName);
return (true);
}
public function get changeFactor():Number{
return (_changeFactor);
}
public static function activate(_arg1:Array):Boolean{
var _local2:int;
var _local3:Object;
_local2 = (_arg1.length - 1);
while (_local2 > -1) {
_local3 = new (_arg1[_local2]);
TweenLite.plugins[_local3.propName] = _arg1[_local2];
_local2--;
};
return (true);
}
}
}//package gs.plugins
Section 27
//VisiblePlugin (gs.plugins.VisiblePlugin)
package gs.plugins {
import flash.display.*;
import gs.*;
public class VisiblePlugin extends TweenPlugin {
protected var _tween:TweenLite;
protected var _visible:Boolean;
protected var _target:Object;
public static const VERSION:Number = 1;
public static const API:Number = 1;
public function VisiblePlugin(){
this.propName = "visible";
this.overwriteProps = ["visible"];
this.onComplete = onCompleteTween;
}
override public function set changeFactor(_arg1:Number):void{
if (_target.visible != true){
_target.visible = true;
};
}
public function onCompleteTween():void{
if (((!((_tween.vars.runBackwards == true))) && ((_tween.ease == _tween.vars.ease)))){
_target.visible = _visible;
};
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
_target = _arg1;
_tween = _arg3;
_visible = Boolean(_arg2);
return (true);
}
}
}//package gs.plugins
Section 28
//VolumePlugin (gs.plugins.VolumePlugin)
package gs.plugins {
import flash.display.*;
import gs.*;
import flash.media.*;
public class VolumePlugin extends TweenPlugin {
protected var _st:SoundTransform;
protected var _target:Object;
public static const VERSION:Number = 1;
public static const API:Number = 1;
public function VolumePlugin(){
this.propName = "volume";
this.overwriteProps = ["volume"];
}
override public function set changeFactor(_arg1:Number):void{
updateTweens(_arg1);
_target.soundTransform = _st;
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
if (((isNaN(_arg2)) || (!(_arg1.hasOwnProperty("soundTransform"))))){
return (false);
};
_target = _arg1;
_st = _target.soundTransform;
addTween(_st, "volume", _st.volume, _arg2, "volume");
return (Boolean(!((_tweens.length == 0))));
}
}
}//package gs.plugins
Section 29
//ArrayTweenInfo (gs.utils.tween.ArrayTweenInfo)
package gs.utils.tween {
public class ArrayTweenInfo {
public var change:Number;
public var index:uint;
public var start:Number;
public function ArrayTweenInfo(_arg1:uint, _arg2:Number, _arg3:Number){
this.index = _arg1;
this.start = _arg2;
this.change = _arg3;
}
}
}//package gs.utils.tween
Section 30
//TweenInfo (gs.utils.tween.TweenInfo)
package gs.utils.tween {
public class TweenInfo {
public var start:Number;
public var name:String;
public var change:Number;
public var target:Object;
public var property:String;
public var isPlugin:Boolean;
public function TweenInfo(_arg1:Object, _arg2:String, _arg3:Number, _arg4:Number, _arg5:String, _arg6:Boolean){
this.target = _arg1;
this.property = _arg2;
this.start = _arg3;
this.change = _arg4;
this.name = _arg5;
this.isPlugin = _arg6;
}
}
}//package gs.utils.tween
Section 31
//OverwriteManager (gs.OverwriteManager)
package gs {
import gs.utils.tween.*;
import flash.utils.*;
import flash.errors.*;
public class OverwriteManager {
public static const ALL:int = 1;
public static const NONE:int = 0;
public static const AUTO:int = 2;
public static const CONCURRENT:int = 3;
public static const version:Number = 3.11;
public static var mode:int;
public static var enabled:Boolean;
public static function killVars(_arg1:Object, _arg2:Object, _arg3:Array):void{
var _local4:int;
var _local5:String;
var _local6:TweenInfo;
_local4 = (_arg3.length - 1);
while (_local4 > -1) {
_local6 = _arg3[_local4];
if ((_local6.name in _arg1)){
_arg3.splice(_local4, 1);
} else {
if (((_local6.isPlugin) && ((_local6.name == "_MULTIPLE_")))){
_local6.target.killProps(_arg1);
if (_local6.target.overwriteProps.length == 0){
_arg3.splice(_local4, 1);
};
};
};
_local4--;
};
for (_local5 in _arg1) {
delete _arg2[_local5];
};
}
public static function manageOverwrites(_arg1:TweenLite, _arg2:Array):void{
var _local3:Object;
var _local4:int;
var _local5:Number;
var _local6:Array;
var _local7:int;
var _local8:TweenLite;
var _local9:Array;
var _local10:Object;
var _local11:int;
var _local12:TweenInfo;
var _local13:Array;
_local3 = _arg1.vars;
_local4 = ((_local3.overwrite)==undefined) ? mode : int(_local3.overwrite);
if ((((_local4 < 2)) || ((_arg2 == null)))){
return;
};
_local5 = _arg1.startTime;
_local6 = [];
_local7 = (_arg2.length - 1);
while (_local7 > -1) {
_local8 = _arg2[_local7];
if (((((!((_local8 == _arg1))) && ((_local8.startTime <= _local5)))) && (((_local8.startTime + ((_local8.duration * 1000) / _local8.combinedTimeScale)) > _local5)))){
_local6[_local6.length] = _local8;
};
_local7--;
};
if ((((_local6.length == 0)) || ((_arg1.tweens.length == 0)))){
return;
};
if (_local4 == AUTO){
_local9 = _arg1.tweens;
_local10 = {};
_local7 = (_local9.length - 1);
while (_local7 > -1) {
_local12 = _local9[_local7];
if (((_local12.isPlugin) && ((_local12.name == "_MULTIPLE_")))){
_local13 = _local12.target.overwriteProps;
_local11 = (_local13.length - 1);
while (_local11 > -1) {
_local10[_local13[_local11]] = true;
_local11--;
};
_local10[_local12.target.propName] = true;
} else {
_local10[_local12.name] = true;
};
_local7--;
};
_local7 = (_local6.length - 1);
while (_local7 > -1) {
killVars(_local10, _local6[_local7].exposedVars, _local6[_local7].tweens);
_local7--;
};
} else {
_local7 = (_local6.length - 1);
while (_local7 > -1) {
_local6[_local7].enabled = false;
_local7--;
};
};
}
public static function init(_arg1:int=2):int{
if (TweenLite.version < 10.04){
trace("TweenLite warning: Your TweenLite class needs to be updated to work with OverwriteManager (or you may need to clear your ASO files). Please download and install the latest version from http://www.tweenlite.com.");
};
TweenLite.overwriteManager = OverwriteManager;
mode = _arg1;
enabled = true;
return (mode);
}
}
}//package gs
Section 32
//TweenLite (gs.TweenLite)
package gs {
import flash.display.*;
import flash.events.*;
import gs.utils.tween.*;
import gs.plugins.*;
import flash.utils.*;
public class TweenLite {
public var delay:Number;
protected var _hasUpdate:Boolean;
protected var _hasPlugins:Boolean;
public var started:Boolean;
public var initted:Boolean;
public var active:Boolean;
public var startTime:Number;
public var target:Object;
public var duration:Number;
public var gc:Boolean;
public var vars:Object;
public var ease:Function;
public var tweens:Array;
public var exposedVars:Object;
public var combinedTimeScale:Number;
public var initTime:Number;
public static const version:Number = 10.06;
private static var _timer:Timer = new Timer(2000);
public static var defaultEase:Function = TweenLite.easeOut;
public static var plugins:Object = {};
public static var currentTime:uint;
public static var masterList:Dictionary = new Dictionary(false);
protected static var _reservedProps:Object = {ease:1, delay:1, overwrite:1, onComplete:1, onCompleteParams:1, runBackwards:1, startAt:1, onUpdate:1, onUpdateParams:1, roundProps:1, onStart:1, onStartParams:1, persist:1, renderOnStart:1, proxiedEase:1, easeParams:1, yoyo:1, loop:1, onCompleteListener:1, onUpdateListener:1, onStartListener:1, orientToBezier:1};
public static var killDelayedCallsTo:Function = TweenLite.killTweensOf;
public static var timingSprite:Sprite = new Sprite();
public static var overwriteManager:Object;
private static var _tlInitted:Boolean;
public function TweenLite(_arg1:Object, _arg2:Number, _arg3:Object){
var _local4:int;
super();
if (_arg1 == null){
return;
};
if (!_tlInitted){
TweenPlugin.activate([TintPlugin, RemoveTintPlugin, FramePlugin, AutoAlphaPlugin, VisiblePlugin, VolumePlugin, EndArrayPlugin]);
currentTime = getTimer();
timingSprite.addEventListener(Event.ENTER_FRAME, updateAll, false, 0, true);
if (overwriteManager == null){
overwriteManager = {mode:1, enabled:false};
};
_timer.addEventListener("timer", killGarbage, false, 0, true);
_timer.start();
_tlInitted = true;
};
this.vars = _arg3;
this.duration = ((_arg2) || (0.001));
this.delay = ((_arg3.delay) || (0));
this.combinedTimeScale = ((_arg3.timeScale) || (1));
this.active = Boolean((((_arg2 == 0)) && ((this.delay == 0))));
this.target = _arg1;
if (typeof(this.vars.ease) != "function"){
this.vars.ease = defaultEase;
};
if (this.vars.easeParams != null){
this.vars.proxiedEase = this.vars.ease;
this.vars.ease = easeProxy;
};
this.ease = this.vars.ease;
this.exposedVars = ((this.vars.isTV)==true) ? this.vars.exposedVars : this.vars;
this.tweens = [];
this.initTime = currentTime;
this.startTime = (this.initTime + (this.delay * 1000));
_local4 = ((((_arg3.overwrite == undefined)) || (((!(overwriteManager.enabled)) && ((_arg3.overwrite > 1)))))) ? overwriteManager.mode : int(_arg3.overwrite);
if (((!((_arg1 in masterList))) || ((_local4 == 1)))){
masterList[_arg1] = [this];
} else {
masterList[_arg1].push(this);
};
if ((((((this.vars.runBackwards == true)) && (!((this.vars.renderOnStart == true))))) || (this.active))){
initTweenVals();
if (this.active){
render((this.startTime + 1));
} else {
render(this.startTime);
};
if (((((!((this.exposedVars.visible == null))) && ((this.vars.runBackwards == true)))) && ((this.target is DisplayObject)))){
this.target.visible = this.exposedVars.visible;
};
};
}
public function set enabled(_arg1:Boolean):void{
var _local2:Array;
var _local3:Boolean;
var _local4:int;
if (_arg1){
if (!(this.target in masterList)){
masterList[this.target] = [this];
} else {
_local2 = masterList[this.target];
_local4 = (_local2.length - 1);
while (_local4 > -1) {
if (_local2[_local4] == this){
_local3 = true;
break;
};
_local4--;
};
if (!_local3){
_local2[_local2.length] = this;
};
};
};
this.gc = (_arg1) ? false : true;
if (this.gc){
this.active = false;
} else {
this.active = this.started;
};
}
public function clear():void{
this.tweens = [];
this.vars = (this.exposedVars = {ease:this.vars.ease});
_hasUpdate = false;
}
public function render(_arg1:uint):void{
var _local2:Number;
var _local3:Number;
var _local4:TweenInfo;
var _local5:int;
_local2 = ((_arg1 - this.startTime) * 0.001);
if (_local2 >= this.duration){
_local2 = this.duration;
_local3 = ((((this.ease == this.vars.ease)) || ((this.duration == 0.001)))) ? 1 : 0;
} else {
_local3 = this.ease(_local2, 0, 1, this.duration);
};
_local5 = (this.tweens.length - 1);
while (_local5 > -1) {
_local4 = this.tweens[_local5];
_local4.target[_local4.property] = (_local4.start + (_local3 * _local4.change));
_local5--;
};
if (_hasUpdate){
this.vars.onUpdate.apply(null, this.vars.onUpdateParams);
};
if (_local2 == this.duration){
complete(true);
};
}
public function activate():void{
this.started = (this.active = true);
if (!this.initted){
initTweenVals();
};
if (this.vars.onStart != null){
this.vars.onStart.apply(null, this.vars.onStartParams);
};
if (this.duration == 0.001){
this.startTime = (this.startTime - 1);
};
}
public function get enabled():Boolean{
return ((this.gc) ? false : true);
}
public function initTweenVals():void{
var _local1:String;
var _local2:int;
var _local3:*;
var _local4:TweenInfo;
for (_local1 in this.exposedVars) {
if ((_local1 in _reservedProps)){
} else {
if ((_local1 in plugins)){
_local3 = new (plugins[_local1]);
if (_local3.onInitTween(this.target, this.exposedVars[_local1], this) == false){
this.tweens[this.tweens.length] = new TweenInfo(this.target, _local1, this.target[_local1], ((typeof(this.exposedVars[_local1]))=="number") ? (this.exposedVars[_local1] - this.target[_local1]) : Number(this.exposedVars[_local1]), _local1, false);
} else {
this.tweens[this.tweens.length] = new TweenInfo(_local3, "changeFactor", 0, 1, ((_local3.overwriteProps.length)==1) ? _local3.overwriteProps[0] : "_MULTIPLE_", true);
_hasPlugins = true;
};
} else {
this.tweens[this.tweens.length] = new TweenInfo(this.target, _local1, this.target[_local1], ((typeof(this.exposedVars[_local1]))=="number") ? (this.exposedVars[_local1] - this.target[_local1]) : Number(this.exposedVars[_local1]), _local1, false);
};
};
};
if (this.vars.runBackwards == true){
_local2 = (this.tweens.length - 1);
while (_local2 > -1) {
_local4 = this.tweens[_local2];
this.tweens[_local2].start = (_local4.start + _local4.change);
_local4.change = -(_local4.change);
_local2--;
};
};
if (this.vars.onUpdate != null){
_hasUpdate = true;
};
if (((TweenLite.overwriteManager.enabled) && ((this.target in masterList)))){
overwriteManager.manageOverwrites(this, masterList[this.target]);
};
this.initted = true;
}
protected function easeProxy(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return (this.vars.proxiedEase.apply(null, arguments.concat(this.vars.easeParams)));
}
public function killVars(_arg1:Object):void{
if (overwriteManager.enabled){
overwriteManager.killVars(_arg1, this.exposedVars, this.tweens);
};
}
public function complete(_arg1:Boolean=false):void{
var _local2:int;
if (!_arg1){
if (!this.initted){
initTweenVals();
};
this.startTime = (currentTime - ((this.duration * 1000) / this.combinedTimeScale));
render(currentTime);
return;
};
if (_hasPlugins){
_local2 = (this.tweens.length - 1);
while (_local2 > -1) {
if (((this.tweens[_local2].isPlugin) && (!((this.tweens[_local2].target.onComplete == null))))){
this.tweens[_local2].target.onComplete();
};
_local2--;
};
};
if (this.vars.persist != true){
this.enabled = false;
};
if (this.vars.onComplete != null){
this.vars.onComplete.apply(null, this.vars.onCompleteParams);
};
}
public static function updateAll(_arg1:Event=null):void{
var _local2:uint;
var _local3:Dictionary;
var _local4:Array;
var _local5:int;
var _local6:TweenLite;
_local2 = (currentTime = getTimer());
_local3 = masterList;
for each (_local4 in _local3) {
_local5 = (_local4.length - 1);
while (_local5 > -1) {
_local6 = _local4[_local5];
if (_local6.active){
_local6.render(_local2);
} else {
if (_local6.gc){
_local4.splice(_local5, 1);
} else {
if (_local2 >= _local6.startTime){
_local6.activate();
_local6.render(_local2);
};
};
};
_local5--;
};
};
}
public static function removeTween(_arg1:TweenLite, _arg2:Boolean=true):void{
if (_arg1 != null){
if (_arg2){
_arg1.clear();
};
_arg1.enabled = false;
};
}
public static function killTweensOf(_arg1:Object=null, _arg2:Boolean=false):void{
var _local3:Array;
var _local4:int;
var _local5:TweenLite;
if (((!((_arg1 == null))) && ((_arg1 in masterList)))){
_local3 = masterList[_arg1];
_local4 = (_local3.length - 1);
while (_local4 > -1) {
_local5 = _local3[_local4];
if (((_arg2) && (!(_local5.gc)))){
_local5.complete(false);
};
_local5.clear();
_local4--;
};
delete masterList[_arg1];
};
}
public static function from(_arg1:Object, _arg2:Number, _arg3:Object):TweenLite{
_arg3.runBackwards = true;
return (new TweenLite(_arg1, _arg2, _arg3));
}
public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / _arg4);
return ((((-(_arg3) * _arg1) * (_arg1 - 2)) + _arg2));
}
protected static function killGarbage(_arg1:TimerEvent):void{
var _local2:Dictionary;
var _local3:Object;
_local2 = masterList;
for (_local3 in _local2) {
if (_local2[_local3].length == 0){
delete _local2[_local3];
};
};
}
public static function delayedCall(_arg1:Number, _arg2:Function, _arg3:Array=null):TweenLite{
return (new TweenLite(_arg2, 0, {delay:_arg1, onComplete:_arg2, onCompleteParams:_arg3, overwrite:0}));
}
public static function to(_arg1:Object, _arg2:Number, _arg3:Object):TweenLite{
return (new TweenLite(_arg1, _arg2, _arg3));
}
}
}//package gs
Section 33
//TweenMax (gs.TweenMax)
package gs {
import flash.events.*;
import gs.utils.tween.*;
import gs.plugins.*;
import gs.events.*;
import flash.utils.*;
public class TweenMax extends TweenLite implements IEventDispatcher {
protected var _dispatcher:EventDispatcher;
protected var _callbacks:Object;
public var pauseTime:Number;
protected var _repeatCount:Number;
protected var _timeScale:Number;
public static const version:Number = 10.07;
public static var removeTween:Function = TweenLite.removeTween;
private static var _overwriteMode:int = (OverwriteManager.enabled) ? OverwriteManager.mode : OverwriteManager.init();
;
protected static var _pausedTweens:Dictionary = new Dictionary(false);
protected static var _globalTimeScale:Number = 1;
public static var killTweensOf:Function = TweenLite.killTweensOf;
public static var killDelayedCallsTo:Function = TweenLite.killTweensOf;
private static var _activatedPlugins:Boolean = TweenPlugin.activate([TintPlugin, RemoveTintPlugin, FramePlugin, AutoAlphaPlugin, VisiblePlugin, VolumePlugin, EndArrayPlugin, HexColorsPlugin, BlurFilterPlugin, ColorMatrixFilterPlugin, BevelFilterPlugin, DropShadowFilterPlugin, GlowFilterPlugin, RoundPropsPlugin, BezierPlugin, BezierThroughPlugin, ShortRotationPlugin]);
private static var _versionCheck:Boolean = ((TweenLite.version)<10.06) ? trace("TweenMax error! Please update your TweenLite class or try deleting your ASO files. TweenMax requires a more recent version. Download updates at http://www.TweenMax.com.") : true;
;
public function TweenMax(_arg1:Object, _arg2:Number, _arg3:Object){
super(_arg1, _arg2, _arg3);
if (((!((this.combinedTimeScale == 1))) && ((this.target is TweenMax)))){
_timeScale = 1;
this.combinedTimeScale = _globalTimeScale;
} else {
_timeScale = this.combinedTimeScale;
this.combinedTimeScale = (this.combinedTimeScale * _globalTimeScale);
};
if (((!((this.combinedTimeScale == 1))) && (!((this.delay == 0))))){
this.startTime = (this.initTime + (this.delay * (1000 / this.combinedTimeScale)));
};
if (((((!((this.vars.onCompleteListener == null))) || (!((this.vars.onUpdateListener == null))))) || (!((this.vars.onStartListener == null))))){
initDispatcher();
if ((((_arg2 == 0)) && ((this.delay == 0)))){
onUpdateDispatcher();
onCompleteDispatcher();
};
};
_repeatCount = 0;
if (((!(isNaN(this.vars.yoyo))) || (!(isNaN(this.vars.loop))))){
this.vars.persist = true;
};
}
override public function set enabled(_arg1:Boolean):void{
if (!_arg1){
_pausedTweens[this] = null;
delete _pausedTweens[this];
};
super.enabled = _arg1;
if (_arg1){
this.combinedTimeScale = (_timeScale * _globalTimeScale);
};
}
public function set reversed(_arg1:Boolean):void{
if (this.reversed != _arg1){
reverse();
};
}
override public function render(_arg1:uint):void{
var _local2:Number;
var _local3:Number;
var _local4:TweenInfo;
var _local5:int;
_local2 = (((_arg1 - this.startTime) * 0.001) * this.combinedTimeScale);
if (_local2 >= this.duration){
_local2 = this.duration;
_local3 = ((((this.ease == this.vars.ease)) || ((this.duration == 0.001)))) ? 1 : 0;
} else {
_local3 = this.ease(_local2, 0, 1, this.duration);
};
_local5 = (this.tweens.length - 1);
while (_local5 > -1) {
_local4 = this.tweens[_local5];
_local4.target[_local4.property] = (_local4.start + (_local3 * _local4.change));
_local5--;
};
if (_hasUpdate){
this.vars.onUpdate.apply(null, this.vars.onUpdateParams);
};
if (_local2 == this.duration){
complete(true);
};
}
protected function adjustStartValues():void{
var _local1:Number;
var _local2:Number;
var _local3:Number;
var _local4:Number;
var _local5:TweenInfo;
var _local6:int;
_local1 = this.progress;
if (_local1 != 0){
_local2 = this.ease(_local1, 0, 1, 1);
_local3 = (1 / (1 - _local2));
_local6 = (this.tweens.length - 1);
while (_local6 > -1) {
_local5 = this.tweens[_local6];
_local4 = (_local5.start + _local5.change);
if (_local5.isPlugin){
_local5.change = ((_local4 - _local2) * _local3);
} else {
_local5.change = ((_local4 - _local5.target[_local5.property]) * _local3);
};
_local5.start = (_local4 - _local5.change);
_local6--;
};
};
}
public function get timeScale():Number{
return (_timeScale);
}
public function restart(_arg1:Boolean=false):void{
if (_arg1){
this.initTime = currentTime;
this.startTime = (currentTime + (this.delay * (1000 / this.combinedTimeScale)));
} else {
this.startTime = currentTime;
this.initTime = (currentTime - (this.delay * (1000 / this.combinedTimeScale)));
};
_repeatCount = 0;
if (this.target != this.vars.onComplete){
render(this.startTime);
};
this.pauseTime = NaN;
_pausedTweens[this] = null;
delete _pausedTweens[this];
this.enabled = true;
}
public function get paused():Boolean{
return (!(isNaN(this.pauseTime)));
}
public function killProperties(_arg1:Array):void{
var _local2:Object;
var _local3:int;
_local2 = {};
_local3 = (_arg1.length - 1);
while (_local3 > -1) {
_local2[_arg1[_local3]] = true;
_local3--;
};
killVars(_local2);
}
public function resume():void{
this.enabled = true;
if (!isNaN(this.pauseTime)){
this.initTime = (this.initTime + (currentTime - this.pauseTime));
this.startTime = (this.initTime + (this.delay * (1000 / this.combinedTimeScale)));
this.pauseTime = NaN;
if (((!(this.started)) && ((currentTime >= this.startTime)))){
activate();
} else {
this.active = this.started;
};
_pausedTweens[this] = null;
delete _pausedTweens[this];
};
}
override public function complete(_arg1:Boolean=false):void{
if (((((!(isNaN(this.vars.yoyo))) && ((((_repeatCount < this.vars.yoyo)) || ((this.vars.yoyo == 0)))))) || (((!(isNaN(this.vars.loop))) && ((((_repeatCount < this.vars.loop)) || ((this.vars.loop == 0)))))))){
_repeatCount++;
if (!isNaN(this.vars.yoyo)){
this.ease = ((this.vars.ease)==this.ease) ? reverseEase : this.vars.ease;
};
this.startTime = (_arg1) ? (this.startTime + (this.duration * (1000 / this.combinedTimeScale))) : currentTime;
this.initTime = (this.startTime - (this.delay * (1000 / this.combinedTimeScale)));
} else {
if (this.vars.persist == true){
pause();
};
};
super.complete(_arg1);
}
public function invalidate(_arg1:Boolean=true):void{
var _local2:Number;
if (this.initted){
_local2 = this.progress;
if (((!(_arg1)) && (!((_local2 == 0))))){
this.progress = 0;
};
this.tweens = [];
_hasPlugins = false;
this.exposedVars = ((this.vars.isTV)==true) ? this.vars.exposedProps : this.vars;
initTweenVals();
_timeScale = ((this.vars.timeScale) || (1));
this.combinedTimeScale = (_timeScale * _globalTimeScale);
this.delay = ((this.vars.delay) || (0));
if (isNaN(this.pauseTime)){
this.startTime = (this.initTime + ((this.delay * 1000) / this.combinedTimeScale));
};
if (((((!((this.vars.onCompleteListener == null))) || (!((this.vars.onUpdateListener == null))))) || (!((this.vars.onStartListener == null))))){
if (_dispatcher != null){
this.vars.onStart = _callbacks.onStart;
this.vars.onUpdate = _callbacks.onUpdate;
this.vars.onComplete = _callbacks.onComplete;
_dispatcher = null;
};
initDispatcher();
};
if (_local2 != 0){
if (_arg1){
adjustStartValues();
} else {
this.progress = _local2;
};
};
};
}
public function get progress():Number{
var _local1:Number;
var _local2:Number;
_local1 = (isNaN(this.pauseTime)) ? currentTime : this.pauseTime;
_local2 = (((((_local1 - this.initTime) * 0.001) - (this.delay / this.combinedTimeScale)) / this.duration) * this.combinedTimeScale);
if (_local2 > 1){
return (1);
};
if (_local2 < 0){
return (0);
};
return (_local2);
}
public function willTrigger(_arg1:String):Boolean{
if (_dispatcher == null){
return (false);
};
return (_dispatcher.willTrigger(_arg1));
}
public function dispatchEvent(_arg1:Event):Boolean{
if (_dispatcher == null){
return (false);
};
return (_dispatcher.dispatchEvent(_arg1));
}
public function get reversed():Boolean{
return ((this.ease == reverseEase));
}
protected function onStartDispatcher(... _args):void{
if (_callbacks.onStart != null){
_callbacks.onStart.apply(null, this.vars.onStartParams);
};
_dispatcher.dispatchEvent(new TweenEvent(TweenEvent.START));
}
public function setDestination(_arg1:String, _arg2, _arg3:Boolean=true):void{
var _local4:Number;
var _local5:int;
var _local6:Object;
var _local7:Array;
var _local8:Boolean;
var _local9:Array;
var _local10:Object;
var _local11:int;
var _local12:Array;
_local4 = this.progress;
if (this.initted){
if (((!(_arg3)) && (!((_local4 == 0))))){
_local5 = (this.tweens.length - 1);
while (_local5 > -1) {
if (this.tweens[_local5].name == _arg1){
this.tweens[_local5].target[this.tweens[_local5].property] = this.tweens[_local5].start;
};
_local5--;
};
};
_local6 = this.vars;
_local7 = this.tweens;
_local8 = _hasPlugins;
this.tweens = [];
this.vars = (this.exposedVars = {});
this.vars[_arg1] = _arg2;
initTweenVals();
if (((!((this.ease == reverseEase))) && ((_local6.ease is Function)))){
this.ease = _local6.ease;
};
if (((_arg3) && (!((_local4 == 0))))){
adjustStartValues();
};
_local9 = this.tweens;
this.vars = _local6;
this.tweens = _local7;
_local10 = {};
_local5 = (_local9.length - 1);
while (_local5 > -1) {
if (_local9[_local5][4] == "_MULTIPLE_"){
_local12 = _local9[_local5][0].overwriteProps;
_local11 = (_local12.length - 1);
while (_local11 > -1) {
_local10[_local12[_local11]] = true;
_local11--;
};
} else {
_local10[_local9[_local5][4]] = true;
};
_local5--;
};
killVars(_local10);
this.tweens = this.tweens.concat(_local9);
_hasPlugins = Boolean(((_local8) || (_hasPlugins)));
};
this.vars[_arg1] = _arg2;
}
public function set timeScale(_arg1:Number):void{
if (_arg1 < 1E-5){
_arg1 = (_timeScale = 1E-5);
} else {
_timeScale = _arg1;
_arg1 = (_arg1 * _globalTimeScale);
};
this.initTime = ((currentTime - ((((currentTime - this.initTime) - (this.delay * (1000 / this.combinedTimeScale))) * this.combinedTimeScale) * (1 / _arg1))) - (this.delay * (1000 / _arg1)));
if (this.startTime != 999999999999999){
this.startTime = (this.initTime + (this.delay * (1000 / _arg1)));
};
this.combinedTimeScale = _arg1;
}
public function removeEventListener(_arg1:String, _arg2:Function, _arg3:Boolean=false):void{
if (_dispatcher != null){
_dispatcher.removeEventListener(_arg1, _arg2, _arg3);
};
}
override public function initTweenVals():void{
var _local1:int;
var _local2:int;
var _local3:String;
var _local4:String;
var _local5:Array;
var _local6:Object;
var _local7:TweenInfo;
if (this.exposedVars.startAt != null){
this.exposedVars.startAt.overwrite = 0;
new TweenMax(this.target, 0, this.exposedVars.startAt);
};
super.initTweenVals();
if ((((this.exposedVars.roundProps is Array)) && (!((TweenLite.plugins.roundProps == null))))){
_local5 = this.exposedVars.roundProps;
_local1 = (_local5.length - 1);
while (_local1 > -1) {
_local3 = _local5[_local1];
_local2 = (this.tweens.length - 1);
while (_local2 > -1) {
_local7 = this.tweens[_local2];
if (_local7.name == _local3){
if (_local7.isPlugin){
_local7.target.round = true;
} else {
if (_local6 == null){
_local6 = new TweenLite.plugins.roundProps();
_local6.add(_local7.target, _local3, _local7.start, _local7.change);
_hasPlugins = true;
this.tweens[_local2] = new TweenInfo(_local6, "changeFactor", 0, 1, _local3, true);
} else {
_local6.add(_local7.target, _local3, _local7.start, _local7.change);
this.tweens.splice(_local2, 1);
};
};
} else {
if (((((_local7.isPlugin) && ((_local7.name == "_MULTIPLE_")))) && (!(_local7.target.round)))){
_local4 = ((" " + _local7.target.overwriteProps.join(" ")) + " ");
if (_local4.indexOf(((" " + _local3) + " ")) != -1){
_local7.target.round = true;
};
};
};
_local2--;
};
_local1--;
};
};
}
protected function initDispatcher():void{
var _local1:Object;
var _local2:String;
if (_dispatcher == null){
_dispatcher = new EventDispatcher(this);
_callbacks = {onStart:this.vars.onStart, onUpdate:this.vars.onUpdate, onComplete:this.vars.onComplete};
if (this.vars.isTV == true){
this.vars = this.vars.clone();
} else {
_local1 = {};
for (_local2 in this.vars) {
_local1[_local2] = this.vars[_local2];
};
this.vars = _local1;
};
this.vars.onStart = onStartDispatcher;
this.vars.onComplete = onCompleteDispatcher;
if ((this.vars.onStartListener is Function)){
_dispatcher.addEventListener(TweenEvent.START, this.vars.onStartListener, false, 0, true);
};
if ((this.vars.onUpdateListener is Function)){
_dispatcher.addEventListener(TweenEvent.UPDATE, this.vars.onUpdateListener, false, 0, true);
this.vars.onUpdate = onUpdateDispatcher;
_hasUpdate = true;
};
if ((this.vars.onCompleteListener is Function)){
_dispatcher.addEventListener(TweenEvent.COMPLETE, this.vars.onCompleteListener, false, 0, true);
};
};
}
protected function onUpdateDispatcher(... _args):void{
if (_callbacks.onUpdate != null){
_callbacks.onUpdate.apply(null, this.vars.onUpdateParams);
};
_dispatcher.dispatchEvent(new TweenEvent(TweenEvent.UPDATE));
}
public function set progress(_arg1:Number):void{
this.startTime = (currentTime - ((this.duration * _arg1) * 1000));
this.initTime = (this.startTime - (this.delay * (1000 / this.combinedTimeScale)));
if (!this.started){
activate();
};
render(currentTime);
if (!isNaN(this.pauseTime)){
this.pauseTime = currentTime;
this.startTime = 999999999999999;
this.active = false;
};
}
public function reverse(_arg1:Boolean=true, _arg2:Boolean=true):void{
var _local3:Number;
this.ease = ((this.vars.ease)==this.ease) ? reverseEase : this.vars.ease;
_local3 = this.progress;
if (((_arg1) && ((_local3 > 0)))){
this.startTime = (currentTime - ((((1 - _local3) * this.duration) * 1000) / this.combinedTimeScale));
this.initTime = (this.startTime - (this.delay * (1000 / this.combinedTimeScale)));
};
if (_arg2 != false){
if (_local3 < 1){
resume();
} else {
restart();
};
};
}
public function addEventListener(_arg1:String, _arg2:Function, _arg3:Boolean=false, _arg4:int=0, _arg5:Boolean=false):void{
if (_dispatcher == null){
initDispatcher();
};
if ((((_arg1 == TweenEvent.UPDATE)) && (!((this.vars.onUpdate == onUpdateDispatcher))))){
this.vars.onUpdate = onUpdateDispatcher;
_hasUpdate = true;
};
_dispatcher.addEventListener(_arg1, _arg2, _arg3, _arg4, _arg5);
}
public function set paused(_arg1:Boolean):void{
if (_arg1){
pause();
} else {
resume();
};
}
public function hasEventListener(_arg1:String):Boolean{
if (_dispatcher == null){
return (false);
};
return (_dispatcher.hasEventListener(_arg1));
}
public function pause():void{
if (isNaN(this.pauseTime)){
this.pauseTime = currentTime;
this.startTime = 999999999999999;
this.enabled = false;
_pausedTweens[this] = this;
};
}
public function reverseEase(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return (this.vars.ease((_arg4 - _arg1), _arg2, _arg3, _arg4));
}
protected function onCompleteDispatcher(... _args):void{
if (_callbacks.onComplete != null){
_callbacks.onComplete.apply(null, this.vars.onCompleteParams);
};
_dispatcher.dispatchEvent(new TweenEvent(TweenEvent.COMPLETE));
}
public static function set globalTimeScale(_arg1:Number):void{
setGlobalTimeScale(_arg1);
}
public static function pauseAll(_arg1:Boolean=true, _arg2:Boolean=false):void{
changePause(true, _arg1, _arg2);
}
public static function killAllDelayedCalls(_arg1:Boolean=false):void{
killAll(_arg1, false, true);
}
public static function setGlobalTimeScale(_arg1:Number):void{
var _local2:Dictionary;
var _local3:int;
var _local4:Array;
if (_arg1 < 1E-5){
_arg1 = 1E-5;
};
_local2 = masterList;
_globalTimeScale = _arg1;
for each (_local4 in _local2) {
_local3 = (_local4.length - 1);
while (_local3 > -1) {
if ((_local4[_local3] is TweenMax)){
_local4[_local3].timeScale = (_local4[_local3].timeScale * 1);
};
_local3--;
};
};
}
public static function get globalTimeScale():Number{
return (_globalTimeScale);
}
public static function getTweensOf(_arg1:Object):Array{
var _local2:Array;
var _local3:Array;
var _local4:TweenLite;
var _local5:int;
_local2 = masterList[_arg1];
_local3 = [];
if (_local2 != null){
_local5 = (_local2.length - 1);
while (_local5 > -1) {
if (!_local2[_local5].gc){
_local3[_local3.length] = _local2[_local5];
};
_local5--;
};
};
for each (_local4 in _pausedTweens) {
if (_local4.target == _arg1){
_local3[_local3.length] = _local4;
};
};
return (_local3);
}
public static function delayedCall(_arg1:Number, _arg2:Function, _arg3:Array=null, _arg4:Boolean=false):TweenMax{
return (new TweenMax(_arg2, 0, {delay:_arg1, onComplete:_arg2, onCompleteParams:_arg3, persist:_arg4, overwrite:0}));
}
public static function isTweening(_arg1:Object):Boolean{
var _local2:Array;
var _local3:int;
_local2 = getTweensOf(_arg1);
_local3 = (_local2.length - 1);
while (_local3 > -1) {
if (((_local2[_local3].active) && (!(_local2[_local3].gc)))){
return (true);
};
_local3--;
};
return (false);
}
public static function changePause(_arg1:Boolean, _arg2:Boolean=true, _arg3:Boolean=false):void{
var _local4:Array;
var _local5:Boolean;
var _local6:int;
_local4 = getAllTweens();
_local6 = (_local4.length - 1);
while (_local6 > -1) {
_local5 = (_local4[_local6].target == _local4[_local6].vars.onComplete);
if ((((_local4[_local6] is TweenMax)) && ((((_local5 == _arg3)) || (!((_local5 == _arg2))))))){
_local4[_local6].paused = _arg1;
};
_local6--;
};
}
public static function killAllTweens(_arg1:Boolean=false):void{
killAll(_arg1, true, false);
}
public static function from(_arg1:Object, _arg2:Number, _arg3:Object):TweenMax{
_arg3.runBackwards = true;
return (new TweenMax(_arg1, _arg2, _arg3));
}
public static function killAll(_arg1:Boolean=false, _arg2:Boolean=true, _arg3:Boolean=true):void{
var _local4:Array;
var _local5:Boolean;
var _local6:int;
_local4 = getAllTweens();
_local6 = (_local4.length - 1);
while (_local6 > -1) {
_local5 = (_local4[_local6].target == _local4[_local6].vars.onComplete);
if ((((_local5 == _arg3)) || (!((_local5 == _arg2))))){
if (_arg1){
_local4[_local6].complete(false);
_local4[_local6].clear();
} else {
TweenLite.removeTween(_local4[_local6], true);
};
};
_local6--;
};
}
public static function getAllTweens():Array{
var _local1:Dictionary;
var _local2:Array;
var _local3:Array;
var _local4:int;
var _local5:TweenLite;
_local1 = masterList;
_local2 = [];
for each (_local3 in _local1) {
_local4 = (_local3.length - 1);
while (_local4 > -1) {
if (!_local3[_local4].gc){
_local2[_local2.length] = _local3[_local4];
};
_local4--;
};
};
for each (_local5 in _pausedTweens) {
_local2[_local2.length] = _local5;
};
return (_local2);
}
public static function resumeAll(_arg1:Boolean=true, _arg2:Boolean=false):void{
changePause(false, _arg1, _arg2);
}
public static function to(_arg1:Object, _arg2:Number, _arg3:Object):TweenMax{
return (new TweenMax(_arg1, _arg2, _arg3));
}
}
}//package gs
Section 34
//ButtonBevelAnimato_22 (HPOTDemo_fla.ButtonBevelAnimato_22)
package HPOTDemo_fla {
import flash.display.*;
public dynamic class ButtonBevelAnimato_22 extends MovieClip {
public function ButtonBevelAnimato_22(){
addFrameScript(0, frame1, 22, frame23);
}
function frame1(){
stop();
}
function frame23(){
stop();
}
}
}//package HPOTDemo_fla
Section 35
//ButtonBevelOvalAnimato_158 (HPOTDemo_fla.ButtonBevelOvalAnimato_158)
package HPOTDemo_fla {
import flash.display.*;
public dynamic class ButtonBevelOvalAnimato_158 extends MovieClip {
public function ButtonBevelOvalAnimato_158(){
addFrameScript(49, frame50);
}
function frame50(){
stop();
}
}
}//package HPOTDemo_fla
Section 36
//ChangeprofilesO_27 (HPOTDemo_fla.ChangeprofilesO_27)
package HPOTDemo_fla {
import flash.display.*;
import flash.text.*;
public dynamic class ChangeprofilesO_27 extends MovieClip {
public var clock_0:MovieClip;
public var clock_4:MovieClip;
public var clock_5:MovieClip;
public var clock_6:MovieClip;
public var clock_9:MovieClip;
public var clock_2:MovieClip;
public var selectedProfileTimer:TextField;
public var okChangeProfile:SimpleButton;
public var clock_8:MovieClip;
public var clock_1:MovieClip;
public var clock_3:MovieClip;
public var clock_7:MovieClip;
public var deleteallbtn:SimpleButton;
public var profili:TextField;
public var selectedProfile:TextField;
public var sp_0:SimpleButton;
public var sp_2:SimpleButton;
public var deletebtn:SimpleButton;
public var sp_4:SimpleButton;
public var sp_5:SimpleButton;
public var sp_6:SimpleButton;
public var sp_7:SimpleButton;
public var sp_8:SimpleButton;
public var sp_9:SimpleButton;
public var sp_1:SimpleButton;
public var createbtn:SimpleButton;
public var sp_3:SimpleButton;
public function ChangeprofilesO_27(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package HPOTDemo_fla
Section 37
//Characters_74 (HPOTDemo_fla.Characters_74)
package HPOTDemo_fla {
import flash.display.*;
public dynamic class Characters_74 extends MovieClip {
public var vai;
public function Characters_74(){
addFrameScript(0, frame1, 1, frame2, 20, frame21, 21, frame22, 22, frame23, 23, frame24);
}
function frame1(){
stop();
vai = "";
}
function frame22(){
stop();
vai = "si";
}
function frame23(){
stop();
vai = "si";
}
function frame24(){
stop();
vai = "start";
}
function frame21(){
stop();
vai = "si";
}
function frame2(){
vai = "no";
}
}
}//package HPOTDemo_fla
Section 38
//ClockTimer_33 (HPOTDemo_fla.ClockTimer_33)
package HPOTDemo_fla {
import flash.display.*;
public dynamic class ClockTimer_33 extends MovieClip {
public function ClockTimer_33(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package HPOTDemo_fla
Section 39
//CompassInterface_139 (HPOTDemo_fla.CompassInterface_139)
package HPOTDemo_fla {
import flash.display.*;
public dynamic class CompassInterface_139 extends MovieClip {
public function CompassInterface_139(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package HPOTDemo_fla
Section 40
//DifferenceSpotter_132 (HPOTDemo_fla.DifferenceSpotter_132)
package HPOTDemo_fla {
import flash.display.*;
public dynamic class DifferenceSpotter_132 extends MovieClip {
public function DifferenceSpotter_132(){
addFrameScript(0, frame1, 31, frame32);
}
function frame1(){
stop();
}
function frame32(){
stop();
}
}
}//package HPOTDemo_fla
Section 41
//Diving_Bottle_lev10_70 (HPOTDemo_fla.Diving_Bottle_lev10_70)
package HPOTDemo_fla {
import flash.display.*;
public dynamic class Diving_Bottle_lev10_70 extends MovieClip {
public var Diving_Bottle:MovieClip;
}
}//package HPOTDemo_fla
Section 42
//FrameMC_160 (HPOTDemo_fla.FrameMC_160)
package HPOTDemo_fla {
import flash.display.*;
public dynamic class FrameMC_160 extends MovieClip {
public var continuebtn:SimpleButton;
}
}//package HPOTDemo_fla
Section 43
//GameFinished_162 (HPOTDemo_fla.GameFinished_162)
package HPOTDemo_fla {
import flash.display.*;
public dynamic class GameFinished_162 extends MovieClip {
public var GoBackMenuBTN:SimpleButton;
public var DownloadFullVersion:MovieClip;
public var OtherLogo:MovieClip;
public var NextGamezLogo:MovieClip;
public function GameFinished_162(){
addFrameScript(0, frame1, 9, frame10, 49, frame50);
}
function frame10(){
var _local1 = root;
_local1["playMusic"](root["congratulations"], false);
}
function frame1(){
stop();
}
function frame50(){
stop();
}
}
}//package HPOTDemo_fla
Section 44
//GuideBookAnim_150 (HPOTDemo_fla.GuideBookAnim_150)
package HPOTDemo_fla {
import flash.display.*;
public dynamic class GuideBookAnim_150 extends MovieClip {
public function GuideBookAnim_150(){
addFrameScript(0, frame1, 12, frame13);
}
function frame1(){
stop();
}
function frame13(){
stop();
}
}
}//package HPOTDemo_fla
Section 45
//HintsCircle_135 (HPOTDemo_fla.HintsCircle_135)
package HPOTDemo_fla {
import flash.display.*;
import flash.text.*;
public dynamic class HintsCircle_135 extends MovieClip {
public var hints:TextField;
public var perlahint:MovieClip;
public function HintsCircle_135(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package HPOTDemo_fla
Section 46
//InterfaceUI_133 (HPOTDemo_fla.InterfaceUI_133)
package HPOTDemo_fla {
import flash.display.*;
import flash.text.*;
public dynamic class InterfaceUI_133 extends MovieClip {
public var P3:MovieClip;
public var P4:MovieClip;
public var compass:MovieClip;
public var guideBookBTN:SimpleButton;
public var starButton:SimpleButton;
public var guideBook:MovieClip;
public var arrowC:MovieClip;
public var gobtn:SimpleButton;
public var itemList:MovieClip;
public var timerMC:MovieClip;
public var livellogo:TextField;
public var silouette:MovieClip;
public var hints:MovieClip;
public var P1:MovieClip;
public var P2:MovieClip;
public var togglescenex:SimpleButton;
}
}//package HPOTDemo_fla
Section 47
//Intro_1 (HPOTDemo_fla.Intro_1)
package HPOTDemo_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Intro_1 extends MovieClip {
public var bar_mc:MovieClip;
public var caricamento:TextField;
public var OtherLogo:MovieClip;
public var NextGamezLogo:MovieClip;
public function Intro_1(){
addFrameScript(178, frame179);
}
function frame179(){
bar_mc.scaleX = 0;
stop();
}
}
}//package HPOTDemo_fla
Section 48
//ItemListed_147 (HPOTDemo_fla.ItemListed_147)
package HPOTDemo_fla {
import flash.display.*;
import flash.text.*;
public dynamic class ItemListed_147 extends MovieClip {
public var ROIL:MovieClip;
public var signoff:MovieClip;
public var item_:TextField;
}
}//package HPOTDemo_fla
Section 49
//ItemsList_146 (HPOTDemo_fla.ItemsList_146)
package HPOTDemo_fla {
import flash.display.*;
import flash.text.*;
public dynamic class ItemsList_146 extends MovieClip {
public var numero:TextField;
public var hi1:MovieClip;
public var hi8:MovieClip;
public var hi5:MovieClip;
public var hi7:MovieClip;
public var hi9:MovieClip;
public var hi2:MovieClip;
public var hi3:MovieClip;
public var hi4:MovieClip;
public var hi6:MovieClip;
public var hi0:MovieClip;
public var hi10:MovieClip;
public var hi11:MovieClip;
public function ItemsList_146(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package HPOTDemo_fla
Section 50
//Level12MiniGame_77 (HPOTDemo_fla.Level12MiniGame_77)
package HPOTDemo_fla {
import flash.display.*;
public dynamic class Level12MiniGame_77 extends MovieClip {
public var SED:MovieClip;
}
}//package HPOTDemo_fla
Section 51
//Level13_51 (HPOTDemo_fla.Level13_51)
package HPOTDemo_fla {
import flash.display.*;
public dynamic class Level13_51 extends MovieClip {
public var Soccerball:MovieClip;
public var Monkey:MovieClip;
public var Green_Lantern:MovieClip;
public var Fishing_Hat:MovieClip;
public var Giraffe:MovieClip;
public var Statue_Head:MovieClip;
public var Sound_Dog_2:MovieClip;
public var Brown_Beetle:MovieClip;
public var Ice_Cream_Sundae:MovieClip;
public var Sound_Bird_1:MovieClip;
public var Diving_Fins:MovieClip;
public var Pearl2:MovieClip;
public var Pearl3:MovieClip;
public var Sound_Seagull_1:MovieClip;
public var Pearl1:MovieClip;
public var Lemon:MovieClip;
public var Pearl4:MovieClip;
public var Red_Beetle:MovieClip;
public var Suitcase:MovieClip;
public var Sound_Dog_1:MovieClip;
}
}//package HPOTDemo_fla
Section 52
//Level14_91 (HPOTDemo_fla.Level14_91)
package HPOTDemo_fla {
import flash.display.*;
public dynamic class Level14_91 extends MovieClip {
public var Sponge:MovieClip;
public var Cheese:MovieClip;
public var Pencil:MovieClip;
public var Statue_Head:MovieClip;
public var Screwdriver:MovieClip;
public var Tea_Pot:MovieClip;
public var Little_Scissors:MovieClip;
public var Baseball:MovieClip;
public var Flower_Pot:MovieClip;
public var Watch:MovieClip;
public var Ashtray:MovieClip;
public var Cubes:MovieClip;
public var Paintbrush:MovieClip;
public var Little_Mill:MovieClip;
public var Welcome_Mat:MovieClip;
public var Pearl2:MovieClip;
public var Pearl3:MovieClip;
public var Pearl4:MovieClip;
public var Necklace:MovieClip;
public var Pearl1:MovieClip;
public var Magazine:MovieClip;
public var Flip_Flops:MovieClip;
public var Tooth_Brush:MovieClip;
}
}//package HPOTDemo_fla
Section 53
//Level15_116 (HPOTDemo_fla.Level15_116)
package HPOTDemo_fla {
import flash.display.*;
public dynamic class Level15_116 extends MovieClip {
public var Airbed:MovieClip;
public var Broccoli:MovieClip;
public var Snake:MovieClip;
public var Colorful_Fish:MovieClip;
public var Binoculars:MovieClip;
public var Boxing_Gloves:MovieClip;
public var Sound_Dog_2:MovieClip;
public var Pie:MovieClip;
public var Armadillo:MovieClip;
public var Lure:MovieClip;
public var Pearl2:MovieClip;
public var Pearl3:MovieClip;
public var Sound_Seagull_1:MovieClip;
public var Zippo:MovieClip;
public var Scooter:MovieClip;
public var Pearl1:MovieClip;
public var Pearl4:MovieClip;
public var Chess_Pieces:MovieClip;
public var Sound_Dog_1:MovieClip;
}
}//package HPOTDemo_fla
Section 54
//Level16_Minigame_131 (HPOTDemo_fla.Level16_Minigame_131)
package HPOTDemo_fla {
import flash.display.*;
public dynamic class Level16_Minigame_131 extends MovieClip {
public var Diff_b_2:MovieClip;
public var Diff_b_3:MovieClip;
public var Diff_b_6:MovieClip;
public var Diff_b_4:MovieClip;
public var Diff_b_7:MovieClip;
public var Diff_r_1:MovieClip;
public var Diff_r_7:MovieClip;
public var Diff_r_8:MovieClip;
public var Diff_r_5:MovieClip;
public var Diff_b_8:MovieClip;
public var Diff_r_2:MovieClip;
public var Diff_r_6:MovieClip;
public var Diff_r_4:MovieClip;
public var Diff_b_1:MovieClip;
public var Diff_b_5:MovieClip;
public var Diff_r_3:MovieClip;
}
}//package HPOTDemo_fla
Section 55
//LevelDone_159 (HPOTDemo_fla.LevelDone_159)
package HPOTDemo_fla {
import flash.display.*;
public dynamic class LevelDone_159 extends MovieClip {
public function LevelDone_159(){
addFrameScript(0, frame1, 18, frame19, 32, frame33);
}
function frame1(){
stop();
}
function frame19(){
var _local1 = root;
_local1["playMusic"](root["congratulations"], false);
}
function frame33(){
stop();
}
}
}//package HPOTDemo_fla
Section 56
//MainMenuOptions_35 (HPOTDemo_fla.MainMenuOptions_35)
package HPOTDemo_fla {
import flash.display.*;
import flash.text.*;
public dynamic class MainMenuOptions_35 extends MovieClip {
public var profileUsed:MovieClip;
public var timeMode:MovieClip;
public var yesbtn:SimpleButton;
public var okProfile:SimpleButton;
public var nome:TextField;
public var soundsSlider:MovieClip;
public var musicSlider:MovieClip;
public var relaxMode:MovieClip;
public var soundsPinner:MovieClip;
public var musicPinner:MovieClip;
public var xclose:SimpleButton;
public var newgamebtn:SimpleButton;
public var continuegamebtn:SimpleButton;
public function MainMenuOptions_35(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5);
}
function frame3(){
stop();
}
function frame4(){
stop();
}
function frame1(){
stop();
var _local1 = root;
_local1["setSetting"](this);
}
function frame5(){
stop();
}
function frame2(){
stop();
relaxMode.gotoAndStop(2);
}
}
}//package HPOTDemo_fla
Section 57
//Mappa_163 (HPOTDemo_fla.Mappa_163)
package HPOTDemo_fla {
import flash.display.*;
public dynamic class Mappa_163 extends MovieClip {
public var closeMap:SimpleButton;
public var clickon:MovieClip;
public var nomiPlaces:MovieClip;
}
}//package HPOTDemo_fla
Section 58
//MenuBTNS_16 (HPOTDemo_fla.MenuBTNS_16)
package HPOTDemo_fla {
import flash.display.*;
import flash.text.*;
public dynamic class MenuBTNS_16 extends MovieClip {
public var welcome:TextField;
public var settingsbtn:SimpleButton;
public var DownloadFullVersion:SimpleButton;
public var creditsbtn:SimpleButton;
public var playbtn:SimpleButton;
public var OtherLogobtn:SimpleButton;
public var NextGamezLogo:MovieClip;
public var changeProfilesO:MovieClip;
public var OtherLogo2:SimpleButton;
public var settingsMC:MovieClip;
}
}//package HPOTDemo_fla
Section 59
//Monkey_lev10_68 (HPOTDemo_fla.Monkey_lev10_68)
package HPOTDemo_fla {
import flash.display.*;
public dynamic class Monkey_lev10_68 extends MovieClip {
public var Monkey:MovieClip;
}
}//package HPOTDemo_fla
Section 60
//NomiPlaces_164 (HPOTDemo_fla.NomiPlaces_164)
package HPOTDemo_fla {
import flash.display.*;
public dynamic class NomiPlaces_164 extends MovieClip {
public var Map_1:SimpleButton;
}
}//package HPOTDemo_fla
Section 61
//OpenBook_151 (HPOTDemo_fla.OpenBook_151)
package HPOTDemo_fla {
import flash.display.*;
public dynamic class OpenBook_151 extends MovieClip {
public var soundsSlider:MovieClip;
public var musicSlider:MovieClip;
public var musicPinner:MovieClip;
public var GoBackMenuBTN:SimpleButton;
public var soundsPinner:MovieClip;
public var DownloadFullVersion:SimpleButton;
public var ResumeBTN:SimpleButton;
public function OpenBook_151(){
addFrameScript(0, frame1);
}
function frame1(){
var _local1 = root;
_local1["setSetting"](this);
}
}
}//package HPOTDemo_fla
Section 62
//Overlayer_155 (HPOTDemo_fla.Overlayer_155)
package HPOTDemo_fla {
import flash.display.*;
public dynamic class Overlayer_155 extends MovieClip {
public var restartbtn:SimpleButton;
}
}//package HPOTDemo_fla
Section 63
//Pinner_39 (HPOTDemo_fla.Pinner_39)
package HPOTDemo_fla {
import flash.display.*;
public dynamic class Pinner_39 extends MovieClip {
public function Pinner_39(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package HPOTDemo_fla
Section 64
//ProfileAlreadyUsedText_44 (HPOTDemo_fla.ProfileAlreadyUsedText_44)
package HPOTDemo_fla {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.filters.*;
import flash.media.*;
import flash.ui.*;
import flash.utils.*;
import flash.text.*;
import flash.errors.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.xml.*;
public dynamic class ProfileAlreadyUsedText_44 extends MovieClip {
public function ProfileAlreadyUsedText_44(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
parent["nome"].text = "";
}
}
}//package HPOTDemo_fla
Section 65
//Scena_50 (HPOTDemo_fla.Scena_50)
package HPOTDemo_fla {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.filters.*;
import flash.media.*;
import flash.ui.*;
import flash.utils.*;
import flash.text.*;
import flash.errors.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.xml.*;
public dynamic class Scena_50 extends MovieClip {
public var rannum;
public var Level4:MovieClip;
public var Level2:MovieClip;
public var Level5:MovieClip;
public var i;
public var Level3:MovieClip;
public var Level1:MovieClip;
public var ChMC:MovieClip;
public function Scena_50(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
i = 1;
while (i <= 12) {
rannum = (Math.random() * 12);
if (rannum < 3){
Level2.SED[("SED_" + i)].rotation = 90;
};
if ((((rannum >= 3)) && ((rannum < 6)))){
Level2.SED[("SED_" + i)].rotation = -180;
};
if ((((rannum >= 6)) && ((rannum < 9)))){
Level2.SED[("SED_" + i)].rotation = -90;
};
if ((((rannum >= 9)) && ((rannum < 12)))){
Level2.SED[("SED_" + i)].rotation = 0;
};
i++;
};
}
}
}//package HPOTDemo_fla
Section 66
//SED_78 (HPOTDemo_fla.SED_78)
package HPOTDemo_fla {
import flash.display.*;
public dynamic class SED_78 extends MovieClip {
public var SED_10:MovieClip;
public var SED_12:MovieClip;
public var SED_3:MovieClip;
public var SED_6:MovieClip;
public var SED_7:MovieClip;
public var SED_1:MovieClip;
public var SED_4:MovieClip;
public var SED_5:MovieClip;
public var SED_9:MovieClip;
public var SED_8:MovieClip;
public var SED_2:MovieClip;
public var SED_11:MovieClip;
}
}//package HPOTDemo_fla
Section 67
//Signoff_149 (HPOTDemo_fla.Signoff_149)
package HPOTDemo_fla {
import flash.display.*;
public dynamic class Signoff_149 extends MovieClip {
public function Signoff_149(){
addFrameScript(0, frame1, 19, frame20);
}
function frame1(){
stop();
}
function frame20(){
stop();
}
}
}//package HPOTDemo_fla
Section 68
//Slider_36 (HPOTDemo_fla.Slider_36)
package HPOTDemo_fla {
import flash.display.*;
public dynamic class Slider_36 extends MovieClip {
public var musicSlider:SimpleButton;
}
}//package HPOTDemo_fla
Section 69
//SoundsLoader_49 (HPOTDemo_fla.SoundsLoader_49)
package HPOTDemo_fla {
import flash.display.*;
public dynamic class SoundsLoader_49 extends MovieClip {
public function SoundsLoader_49(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package HPOTDemo_fla
Section 70
//soundsSlider_40 (HPOTDemo_fla.soundsSlider_40)
package HPOTDemo_fla {
import flash.display.*;
public dynamic class soundsSlider_40 extends MovieClip {
public var soundsSlider:SimpleButton;
}
}//package HPOTDemo_fla
Section 71
//Sponge_lev11_114 (HPOTDemo_fla.Sponge_lev11_114)
package HPOTDemo_fla {
import flash.display.*;
public dynamic class Sponge_lev11_114 extends MovieClip {
public var Sponge:MovieClip;
}
}//package HPOTDemo_fla
Section 72
//Statue_Head_lev11_113 (HPOTDemo_fla.Statue_Head_lev11_113)
package HPOTDemo_fla {
import flash.display.*;
public dynamic class Statue_Head_lev11_113 extends MovieClip {
public var Statue_Head:MovieClip;
}
}//package HPOTDemo_fla
Section 73
//timer__138 (HPOTDemo_fla.timer__138)
package HPOTDemo_fla {
import flash.display.*;
import flash.text.*;
public dynamic class timer__138 extends MovieClip {
public var timer_:TextField;
}
}//package HPOTDemo_fla
Section 74
//ToChange_6 (HPOTDemo_fla.ToChange_6)
package HPOTDemo_fla {
import flash.display.*;
public dynamic class ToChange_6 extends MovieClip {
public function ToChange_6(){
addFrameScript(0, frame1);
}
function frame1(){
root["urlOtherLogo"] = "http://www.lorenzgames.com/";
root["urlToFullVersion"] = "http://www.regnow.com/softsell/nph-softsell.cgi?item=20612-1&affiliate=248353";
}
}
}//package HPOTDemo_fla
Section 75
//MyMenu (lorenz.MyMenu)
package lorenz {
import flash.events.*;
import flash.media.*;
import flash.ui.*;
import flash.net.*;
public dynamic class MyMenu extends EventDispatcher {
var item1:ContextMenuItem;
var item4:ContextMenuItem;
var item3:ContextMenuItem;
var myContextMenu:ContextMenu;
var item2:ContextMenuItem;
public function MyMenu(_arg1){
var cosa = _arg1;
myContextMenu = new ContextMenu();
item1 = new ContextMenuItem("LorenzGames.Com");
item2 = new ContextMenuItem("Play More Games");
item3 = new ContextMenuItem("Sounds On");
item4 = new ContextMenuItem("Sounds Off");
super();
myContextMenu.hideBuiltInItems();
cosa.contextMenu = myContextMenu;
item1.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, function (){
navigateToURL(new URLRequest("http://www.LorenzGames.com"), "_blank");
});
myContextMenu.customItems.push(item1);
item2.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, function (){
navigateToURL(new URLRequest("http://www.LorenzGames.com"), "_blank");
});
myContextMenu.customItems.push(item2);
item3.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, function (){
SoundMixer.soundTransform = new SoundTransform(1);
});
myContextMenu.customItems.push(item3);
item4.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, function (){
SoundMixer.soundTransform = new SoundTransform(0);
});
myContextMenu.customItems.push(item4);
}
}
}//package lorenz
Section 76
//BirdSND (BirdSND)
package {
import flash.media.*;
public dynamic class BirdSND extends Sound {
}
}//package
Section 77
//BookSND (BookSND)
package {
import flash.media.*;
public dynamic class BookSND extends Sound {
}
}//package
Section 78
//Congratulations (Congratulations)
package {
import flash.media.*;
public dynamic class Congratulations extends Sound {
}
}//package
Section 79
//DogSND (DogSND)
package {
import flash.media.*;
public dynamic class DogSND extends Sound {
}
}//package
Section 80
//DogSND2 (DogSND2)
package {
import flash.media.*;
public dynamic class DogSND2 extends Sound {
}
}//package
Section 81
//FindPearl (FindPearl)
package {
import flash.media.*;
public dynamic class FindPearl extends Sound {
}
}//package
Section 82
//FuzzIn (FuzzIn)
package {
import flash.media.*;
public dynamic class FuzzIn extends Sound {
}
}//package
Section 83
//FuzzOut (FuzzOut)
package {
import flash.media.*;
public dynamic class FuzzOut extends Sound {
}
}//package
Section 84
//HPOTDemo (HPOTDemo)
package {
import flash.display.*;
import flash.events.*;
import caurina.transitions.*;
import gs.*;
import flash.geom.*;
import flash.media.*;
import lorenz.*;
import flash.ui.*;
import flash.utils.*;
import flash.net.*;
public class HPOTDemo extends MovieClip {
private var soundsSliderNum;// = 1
public var birdsnd:Sound;
private var clicked:Array;
public var timeup:Sound;
public var urlOtherLogo:String;// = "http://www.lorenzgames.com"
public var findpearl:Sound;
public var newhint:Sound;
private var mapTracking:Boolean;
public var mousecursor:MovieClip;
private var ilArr:Array;
private var levelArr:Array;
private var nameSilouette:String;// = ""
private var musicSliderNum;// = 0.5
private var c:String;
private var itemfound:int;// = 0
private var i:int;
public var gamefinished:MovieClip;
public var congratulations:Sound;
private var cr:String;
public var intro:MovieClip;
private var livello:int;// = 1
var particle:Particle;
public var seagullsnd:Sound;
public var scena:MovieClip;
public var usehint:Sound;
private var mainmenu:Boolean;
private var musicOBJ:Sound;
public var fuzzout:Sound;
public var mappa:MovieClip;
public var urlToFullVersion:String;// = "http://www.nextgamez.com"
private var Hint:Boolean;
private var particles:Array;
private var selprof;
public var itemfoundsnd:Sound;
private var Differences:int;// = 0
private var Figurine:int;// = 0
public var dogsnd:Sound;
private var timerSec:int;// = 600
private var i2:int;
public var itemrollover:Sound;
private var obj;
public var overlayer:MovieClip;
private var miniGame:Boolean;// = false
public var leveldone:MovieClip;
private var foundPearls:Number;// = 0
public var dogsnd2:Sound;
public var bitmap:Bitmap;
public var scena_1_13_25:Sound;
private var timer:Timer;
private var starUnlocked;// = 1
private var crold:String;
var menu;
var color:ColorTransform;
private var channelSND:SoundChannel;
private var soundOBJ:Sound;
private var compassHelp;// = 0
public var menubtns:MovieClip;
private var channelMSC:SoundChannel;
private var clickcounter:int;
public var allowTimer:Boolean;// = true
public var newPunto;
public var mainclick:Sound;
public var mainrollover:Sound;
private var livelliFiniti:String;// = ""
private var memorycard;// = 0
private var cOBJ;
public var interfaceui:MovieClip;
private var profile:String;// = ""
private var menusnd:Sound;
private var time10;// = 0
public var fuzzin:Sound;
private var circleMouse:Boolean;// = false
private var memorytype;// = 0
public var canSlide:Boolean;// = true
private var fullScreenNum;// = 1
public var usecompass:Sound;
public var starOn;// = 1
private var Rhint:Number;
private var objresult:String;// = ""
private var miniGameNum:int;
public var booksnd:Sound;
public var mainplaygame:Sound;
private var profiles;
private var counter:int;
public function HPOTDemo(){
menu = new MyMenu(this);
profiles = SharedObject.getLocal("proDemo", "/");
timer = new Timer(1000);
timerSec = 600;
foundPearls = 0;
particles = new Array();
clicked = new Array();
profile = "";
allowTimer = true;
nameSilouette = "";
objresult = "";
color = new ColorTransform();
itemfound = 0;
livello = 1;
ilArr = new Array();
levelArr = new Array();
time10 = 0;
compassHelp = 0;
starUnlocked = 1;
starOn = 1;
newPunto = new Puntini();
livelliFiniti = "";
miniGame = false;
Figurine = 0;
Differences = 0;
canSlide = true;
memorytype = 0;
memorycard = 0;
menusnd = new Sound();
musicSliderNum = 0.5;
soundsSliderNum = 1;
fullScreenNum = 1;
mainclick = new Sound();
mainrollover = new Sound();
mainplaygame = new Sound();
usehint = new Sound();
congratulations = new Sound();
timeup = new Sound();
newhint = new Sound();
findpearl = new Sound();
usecompass = new Sound();
fuzzin = new Sound();
fuzzout = new Sound();
itemrollover = new Sound();
booksnd = new Sound();
itemfoundsnd = new Sound();
scena_1_13_25 = new Sound();
seagullsnd = new Sound();
birdsnd = new Sound();
dogsnd = new Sound();
dogsnd2 = new Sound();
urlOtherLogo = "http://www.lorenzgames.com";
urlToFullVersion = "http://www.nextgamez.com";
circleMouse = false;
super();
addFrameScript(0, frame1, 1, frame2, 2, frame3);
Mouse.hide();
stage.addEventListener(Event.ENTER_FRAME, onframe);
stage.addEventListener(MouseEvent.MOUSE_MOVE, mmove);
stage.addEventListener(MouseEvent.MOUSE_DOWN, clic);
}
function randRange(_arg1:Number, _arg2:Number){
var _local3:Number;
_local3 = ((Math.random() * (_arg2 - _arg1)) + _arg1);
return (_local3);
}
public function playSound(_arg1:Sound):void{
if (channelSND){
channelSND.stop();
};
soundOBJ = _arg1;
channelSND = _arg1.play();
channelSND.soundTransform = new SoundTransform(soundsSliderNum);
}
public function addParticle(){
particle = new Particle(Spark, scena[("Level" + scena.currentFrame)], (obj.x + (Math.random() * obj.width)), (obj.y + (Math.random() * obj.height)));
particle.setVel(randRange(-8, 8), randRange(-5, 10));
particle.setScale(randRange(1, 2.5));
particle.shrink = 0.95;
particle.gravity = 0.07;
particle.drag = 0.9;
particle.directionRotate = true;
particles.push(particle);
}
function frame3(){
stop();
Initialize();
}
public function nextLevel(){
leveldone.visible = true;
leveldone.gotoAndPlay(2);
}
function frame2(){
stop();
MainMenu();
}
function frame1(){
stop();
}
public function nextLevelFade(_arg1:DisplayObject){
var _local2:BitmapData;
if (channelMSC){
channelMSC.stop();
};
if (livello == 1){
playMusic(scena_1_13_25, true);
};
if (livello == 2){
playMusic(menusnd, true);
};
if (livello == 3){
playMusic(scena_1_13_25, true);
};
if (livello == 4){
playMusic(scena_1_13_25, true);
};
if (livello == 5){
playMusic(menusnd, true);
};
_local2 = new BitmapData(800, 600, false, 0);
_local2.draw(_arg1, new Matrix(1, 0, 0, 1, 0, 0));
bitmap = new Bitmap(_local2);
addChild((bitmap as DisplayObject));
if (mainmenu){
TweenMax.to(bitmap, 1.5, {alpha:0, colorMatrixFilter:{brightness:2}, onComplete:endnextLevelFade});
};
if (!mainmenu){
if (!mappa.visible){
TweenMax.to(bitmap, 1.5, {alpha:0, colorMatrixFilter:{brightness:2}, onComplete:endnextLevelFade});
};
clicked = new Array();
interfaceui.P1.alpha = 0;
interfaceui.P2.alpha = 0;
interfaceui.P3.alpha = 0;
interfaceui.P4.alpha = 0;
itemfound = 0;
foundPearls = 0;
scena.gotoAndStop(livello);
selprof.data.livello = livello;
if (mappa.visible){
TweenMax.to(mappa, 1.5, {alpha:0, onComplete:endnextLevelFade});
bitmap.alpha = 0;
};
leveldone.visible = false;
overlayer.visible = false;
timerSec = 600;
interfaceui.timerMC.timer_.text = "9'59";
};
}
public function extendedGame(_arg1:int){
miniGame = true;
miniGameNum = _arg1;
}
public function addParticle2(){
particle = new Particle(SparkCyan, scena[("Level" + scena.currentFrame)], (obj.x + (Math.random() * obj.width)), (obj.y + (Math.random() * obj.height)));
particle.setVel(randRange(-4, 4), randRange(-4, 4));
particle.setScale(randRange(1, 2));
particle.shrink = 0.9;
particle.gravity = 0.07;
particle.drag = 0.9;
particle.directionRotate = false;
particles.push(particle);
}
public function onframe(_arg1:Event):void{
var _local2:Number;
var _local3:Number;
if ((((((((((((currentFrame == 1)) && (intro))) && ((intro.currentLabel == "caricamento")))) && (!((framesLoaded == totalFrames))))) && (intro.bar_mc))) && (intro.caricamento))){
_local2 = this.stage.loaderInfo.bytesTotal;
_local3 = this.stage.loaderInfo.bytesLoaded;
intro.bar_mc.scaleX = (_local3 / _local2);
intro.caricamento.text = (Math.floor(((_local3 / _local2) * 100)) + "%");
};
if ((((((currentFrame == 1)) && ((intro.currentLabel == "caricamento")))) && ((framesLoaded == totalFrames)))){
nextFrame();
};
if ((((((((((currentFrame == 3)) && (mappa))) && (leveldone))) && (interfaceui))) && (scena))){
counter++;
updateParticles();
if (((((obj) && (!(Hint)))) && ((counter >= 3)))){
addParticle();
counter = 0;
} else {
if (((((obj) && (Hint))) && ((counter >= 10)))){
addParticle2();
counter = 0;
};
};
if ((((Rhint >= 0)) && ((compassHelp == 2)))){
interfaceui.arrowC.rotation = (Math.atan((((scena[("Level" + scena.currentFrame)][ilArr[Rhint]].y + (scena[("Level" + scena.currentFrame)][ilArr[Rhint]].height / 2)) - scena[("Level" + scena.currentFrame)].mouseY) / ((scena[("Level" + scena.currentFrame)][ilArr[Rhint]].x + (scena[("Level" + scena.currentFrame)][ilArr[Rhint]].width / 2)) - scena[("Level" + scena.currentFrame)].mouseX))) * (180 / Math.PI));
if ((scena[("Level" + scena.currentFrame)][ilArr[Rhint]].x + (scena[("Level" + scena.currentFrame)][ilArr[Rhint]].width / 2)) > scena[("Level" + scena.currentFrame)].mouseX){
interfaceui.arrowC.rotation = (interfaceui.arrowC.rotation + 180);
};
};
if (circleMouse){
mousecursor.x = ((50 * Math.sin(((getTimer() * Math.PI) / 180))) + stage.mouseX);
mousecursor.y = ((50 * Math.cos(((getTimer() * Math.PI) / 180))) + stage.mouseY);
};
};
}
public function createSilouette(_arg1:DisplayObject){
var _local2:*;
var _local3:*;
var _local4:BitmapData;
if (nameSilouette != ""){
nameSilouette = "";
while (interfaceui.silouette.numChildren > 1) {
interfaceui.silouette.removeChildAt(1);
};
};
nameSilouette = _arg1.name;
_local2 = _arg1.scaleX;
_local3 = _arg1.scaleY;
_arg1.scaleX = 1;
_arg1.scaleY = 1;
_local4 = new BitmapData(_arg1.width, _arg1.height, true, 0);
_local4.draw((_arg1 as IBitmapDrawable));
bitmap = new Bitmap(_local4);
if (bitmap.width >= bitmap.height){
bitmap.width = interfaceui.silouette.width;
bitmap.height = ((bitmap.width / _arg1.width) * bitmap.height);
bitmap.y = ((interfaceui.silouette.height - bitmap.height) / 2);
};
if (bitmap.width < bitmap.height){
bitmap.height = interfaceui.silouette.height;
bitmap.width = ((bitmap.height / _arg1.height) * bitmap.width);
bitmap.x = ((interfaceui.silouette.width - bitmap.width) / 2);
};
interfaceui.silouette.addChild((bitmap as DisplayObject));
_arg1.scaleX = _local2;
_arg1.scaleY = _local3;
}
public function MainMenu():void{
stage.addEventListener(MouseEvent.MOUSE_UP, unclic);
stage.addEventListener(MouseEvent.MOUSE_OVER, rollon);
stage.addEventListener(MouseEvent.MOUSE_OUT, rollout);
timer.addEventListener(TimerEvent.TIMER, notifier);
menusnd = new MenuSND();
mainclick = new MainClick();
mainrollover = new MainRollOver();
mainplaygame = new MainPlayGame();
usehint = new UseHint();
congratulations = new Congratulations();
newhint = new NewHint();
findpearl = new FindPearl();
usecompass = new UseCompass();
fuzzin = new FuzzIn();
fuzzout = new FuzzOut();
itemrollover = new ItemRollOver();
booksnd = new BookSND();
itemfoundsnd = new ItemFoundSND();
scena_1_13_25 = new Scena_1_13_25();
seagullsnd = new SeagullSND();
birdsnd = new BirdSND();
dogsnd = new DogSND();
dogsnd2 = new DogSND2();
menubtns.settingsMC.visible = false;
menubtns.changeProfilesO.visible = false;
if ((((profiles.data.lastprofile == "")) || ((profiles.data.lastprofile == undefined)))){
} else {
profile = profiles.data.lastprofile;
menubtns.welcome.text = ("Welcome " + profile.split("_").join(" "));
};
mainmenu = true;
if (channelMSC){
channelMSC.soundTransform = new SoundTransform(0.5);
};
playMusic(menusnd, true);
}
function rollon(_arg1:MouseEvent):void{
cr = _arg1.target.name;
if ((((((((((((((((((((((((((((((((((((cr == "playbtn")) || ((cr == "settingsbtn")))) || ((cr == "creditsbtn")))) || ((cr == "exitbtn")))) || ((cr == "xclose")))) || ((cr == "timeMode")))) || ((cr == "relaxMode")))) || ((cr == "okProfile")))) || ((cr == "yesbtn")))) || ((cr == "newgamebtn")))) || ((cr == "continuegamebtn")))) || ((cr == "createbtn")))) || ((cr == "deletebtn")))) || ((cr == "okChangeProfile")))) || ((cr == "continuebtn")))) || ((cr == "restartbtn")))) || ((cr == "starButton")))) || ((cr == "guideBookBTN")))){
if (cr != crold){
playSound(mainrollover);
};
crold = cr;
};
if (_arg1.target.name == "item_"){
c = _arg1.target.parent.name;
if (_arg1.target.parent.signoff.currentFrame <= 1){
interfaceui.itemList[c].ROIL.visible = true;
playSound(itemrollover);
};
};
}
function clic(_arg1:MouseEvent):void{
var color:ColorTransform;
var sedruttocazz:Object;
var e = _arg1;
Mouse.hide();
c = e.target.name;
if (c == "DownloadFullVersion"){
navigateToURL(new URLRequest(urlToFullVersion), "_blank");
};
if (c == "NextGamezLogo"){
navigateToURL(new URLRequest("http://www.nextgamez.com"), "_blank");
};
if ((((((c == "OtherLogo")) || ((c == "OtherLogobtn")))) || ((c == "OtherLogo2")))){
navigateToURL(new URLRequest(urlOtherLogo), "_blank");
};
if (currentFrame != 1){
if ((((((((((((((((((((((((((((((((((((((c == "playbtn")) || ((c == "settingsbtn")))) || ((c == "creditsbtn")))) || ((c == "exitbtn")))) || ((c == "xclose")))) || ((c == "musicSlider")))) || ((c == "soundsSlider")))) || ((c == "musicPinner")))) || ((c == "soundsPinner")))) || ((c == "fullscreenPinner")))) || ((c == "timeMode")))) || ((c == "relaxMode")))) || ((c == "yesbtn")))) || ((c == "newgamebtn")))) || ((c == "continuegamebtn")))) || ((c == "createbtn")))) || ((c == "deletebtn")))) || ((c == "continuebtn")))) || ((c == "restartbtn")))){
playSound(mainclick);
};
if ((((c == "okChangeProfile")) || ((c == "okProfile")))){
};
cOBJ = e.target;
if (c.split("_")[0] == "sp"){
menubtns.changeProfilesO.selectedProfile.text = String(profiles.data.profiles.split("-S,S-")[c.split("_")[1]]).split("allowTimerTrue_").join("").split("allowTimerFalse_").join("");
if (String(profiles.data.profiles.split("-S,S-")[c.split("_")[1]]).split("_")[0] == "allowTimerTrue"){
menubtns.changeProfilesO.selectedProfileTimer.text = "Timer Mode on";
allowTimer = true;
profiles.data.timerMode = "true";
};
if (String(profiles.data.profiles.split("-S,S-")[c.split("_")[1]]).split("_")[0] == "allowTimerFalse"){
menubtns.changeProfilesO.selectedProfileTimer.text = "Relax Mode on";
allowTimer = false;
profiles.data.timerMode = "false";
};
profile = menubtns.changeProfilesO.selectedProfile.text;
menubtns.welcome.text = ("Welcome " + profile);
profile = profile.split(" ").join("_");
};
if (c == "okProfile"){
if (menubtns.settingsMC.nome.text != ""){
if (profiles.data.profiles == undefined){
profiles.data.profiles = "";
};
if (profiles.data.timerMode == undefined){
profiles.data.timerMode = "true";
};
if (profiles.data.profiles.indexOf((menubtns.settingsMC.nome.text + "-S,S-")) == -1){
profile = menubtns.settingsMC.nome.text;
menubtns.settingsMC.visible = false;
menubtns.welcome.text = ("Welcome " + profile);
if (menubtns.settingsMC.timeMode.currentFrame == 1){
profiles.data.profiles = (profiles.data.profiles + "allowTimerTrue_");
profiles.data.timerMode = "true";
allowTimer = true;
};
if (menubtns.settingsMC.timeMode.currentFrame == 2){
profiles.data.profiles = (profiles.data.profiles + "allowTimerFalse_");
profiles.data.timerMode = "false";
allowTimer = false;
};
profiles.data.profiles = ((profiles.data.profiles + profile) + "-S,S-");
profile = profile.split(" ").join("_");
profiles.data.lastprofile = profile;
selprof = SharedObject.getLocal((profile + "Demo"), "/");
nextLevelFade(this);
nextFrame();
playSound(mainplaygame);
} else {
menubtns.settingsMC.profileUsed.gotoAndPlay(2);
};
};
};
if (c == "deletebtn"){
if (menubtns.changeProfilesO.selectedProfile.text != ""){
selprof = SharedObject.getLocal((profile + "Demo"), "/");
selprof.data.livello = 1;
selprof.data.starUnlocked = 1;
selprof.data.livelliFiniti = "";
profile = "";
menubtns.welcome.text = "Welcome";
profiles.data.lastprofile = "";
profiles.data.timerMode = "true";
profiles.data.profiles = profiles.data.profiles.split((("allowTimerTrue_" + menubtns.changeProfilesO.selectedProfile.text) + "-S,S-")).join("").split((("allowTimerFalse_" + menubtns.changeProfilesO.selectedProfile.text) + "-S,S-")).join("");
refreshProfiles();
};
};
if (c == "deleteallbtn"){
profile = "";
menubtns.welcome.text = "Welcome";
profiles.data.lastprofile = "";
profiles.data.timerMode = "true";
profiles.data.profiles = "";
refreshProfiles();
};
if ((((((c == "okChangeProfile")) && (!((menubtns.changeProfilesO.selectedProfile.text == ""))))) && (!(menubtns.settingsMC.visible)))){
profile = menubtns.changeProfilesO.selectedProfile.text;
profile = profile.split(" ").join("_");
menubtns.welcome.text = ("Welcome " + menubtns.changeProfilesO.selectedProfile.text);
profiles.data.lastprofile = profile;
menubtns.changeProfilesO.visible = false;
selprof = SharedObject.getLocal((profile + "Demo"), "/");
if (selprof.data.livello != undefined){
livello = selprof.data.livello;
};
nextLevelFade(this);
nextFrame();
playSound(mainplaygame);
};
if (c == "xclose"){
menubtns.settingsMC.visible = false;
menubtns.changeProfilesO.visible = false;
};
if ((((((c == "settingsbtn")) && (!(menubtns.changeProfilesO.visible)))) && (!(menubtns.settingsMC.visible)))){
menubtns.settingsMC.visible = true;
menubtns.settingsMC.gotoAndStop(1);
};
if ((((((c == "creditsbtn")) && (!(menubtns.changeProfilesO.visible)))) && (!(menubtns.settingsMC.visible)))){
menubtns.settingsMC.visible = true;
menubtns.settingsMC.gotoAndStop(3);
};
if ((((((c == "exitbtn")) && (!(menubtns.changeProfilesO.visible)))) && (!(menubtns.settingsMC.visible)))){
menubtns.settingsMC.visible = true;
menubtns.settingsMC.gotoAndStop(4);
};
if (c == "continuegamebtn"){
menubtns.changeProfilesO.visible = true;
menubtns.settingsMC.visible = false;
refreshProfiles();
};
if (c == "createbtn"){
menubtns.settingsMC.visible = true;
menubtns.settingsMC.gotoAndStop(2);
};
if (c == "playbtn"){
menubtns.settingsMC.visible = true;
if ((((profiles.data.profiles == undefined)) || ((profiles.data.profiles == "")))){
menubtns.settingsMC.gotoAndStop(2);
} else {
menubtns.settingsMC.gotoAndStop(5);
};
};
if (c == "newgamebtn"){
menubtns.settingsMC.gotoAndStop(2);
};
if (c == "musicPinner"){
if (e.target.currentFrame == 1){
e.target.gotoAndStop(2);
if (channelMSC){
channelMSC.soundTransform = new SoundTransform(0);
};
musicSliderNum = 0;
} else {
if (e.target.currentFrame == 2){
e.target.gotoAndStop(1);
if (channelMSC){
channelMSC.soundTransform = new SoundTransform((e.target.parent.musicSlider.musicSlider.x / 260));
};
musicSliderNum = (e.target.parent.musicSlider.musicSlider.x / 260);
};
};
};
if (c == "soundsPinner"){
if (e.target.currentFrame == 1){
e.target.gotoAndStop(2);
if (channelSND){
channelSND.soundTransform = new SoundTransform(0);
};
soundsSliderNum = 0;
} else {
if (e.target.currentFrame == 2){
e.target.gotoAndStop(1);
if (channelSND){
channelSND.soundTransform = new SoundTransform((e.target.parent.soundsSlider.soundsSlider.x / 260));
};
soundsSliderNum = (e.target.parent.soundsSlider.soundsSlider.x / 260);
};
};
};
if ((((c == "timeMode")) || ((c == "relaxMode")))){
if (menubtns.settingsMC.timeMode.currentFrame == 1){
menubtns.settingsMC.timeMode.gotoAndStop(2);
menubtns.settingsMC.relaxMode.gotoAndStop(1);
allowTimer = false;
} else {
if (menubtns.settingsMC.timeMode.currentFrame == 2){
menubtns.settingsMC.timeMode.gotoAndStop(1);
menubtns.settingsMC.relaxMode.gotoAndStop(2);
allowTimer = true;
};
};
};
if (((((((!(mainmenu)) && (mappa.visible))) && (!(mapTracking)))) && (!(mappa.closeMap.visible)))){
if ((((c.split("_")[0] == "Map")) && ((c.split("_")[1] == mappa.nomiPlaces.currentFrame)))){
interfaceui.itemList.gotoAndStop(1);
interfaceui.itemList.alpha = 0;
livello = ((Number(c.split("_")[1]) * 4) - 3);
mapTracking = false;
nextLevelFade(this);
};
};
if (((((((!(mainmenu)) && ((interfaceui.itemList.alpha > 0.5)))) && (!(circleMouse)))) && (!((currentFrame == 1))))){
if (c == "guideBookBTN"){
interfaceui.guideBook.gotoAndPlay(2);
playSound(booksnd);
};
if (c == "ResumeBTN"){
interfaceui.guideBook.gotoAndStop(1);
playSound(booksnd);
};
if (c == "GoBackMenuBTN"){
playSound(booksnd);
interfaceui.guideBook.gotoAndStop(1);
gotoAndStop(2);
mainmenu = true;
};
if ((((((c == "continuebtn")) || ((c == "gobtn")))) || ((c == "restartbtn")))){
scena.ChMC.gotoAndStop(1);
if (c == "restartbtn"){
interfaceui.itemList.alpha = 0;
livello++;
nextLevelFade(this);
livello--;
nextLevelFade(this);
};
if (c != "restartbtn"){
miniGame = false;
if (interfaceui.itemList.currentFrame != 1){
interfaceui.itemList.gotoAndStop(1);
interfaceui.itemList.alpha = 0;
};
if (livelliFiniti.indexOf((livello + "_")) == -1){
livelliFiniti = ((livelliFiniti + livello) + "_");
selprof.data.livelliFiniti = livelliFiniti;
};
if (livello == 5){
} else {
livello++;
nextLevelFade(this);
};
};
if (c == "gobtn"){
livello = Number(interfaceui.livellogo.text);
nextLevelFade(this);
};
};
if (((((!((scena.ChMC.currentFrame == 1))) && (!(mappa.visible)))) && (!((c == "starButton"))))){
clickcounter = 0;
if (scena.ChMC.vai == "si"){
scena.ChMC.nextFrame();
};
if (scena.ChMC.vai == "fine"){
leveldone.visible = true;
leveldone.gotoAndPlay(45);
scena.ChMC.vai = "";
};
if (scena.ChMC.vai == "start"){
scena.ChMC.gotoAndStop(1);
scena.ChMC.vai = "";
};
if (scena.ChMC.vai == "play"){
scena.ChMC.play();
};
};
if (((((((scena.hitTestPoint(mouseX, mouseY, true)) && (!(mappa.visible)))) && (!((c == "arrowC"))))) && ((interfaceui.guideBook.currentFrame == 1)))){
clickcounter++;
if (compassHelp == 2){
compassHelp = 0;
};
};
if (((((((((((((((!(miniGame)) && ((scena.ChMC.currentFrame == 1)))) && ((interfaceui.guideBook.currentFrame == 1)))) && (!((c == "continuebtn"))))) && (!((c == "gobtn"))))) && (!((c == "restartbtn"))))) && (!(overlayer.visible)))) && (!(mappa.visible)))){
if (c.split("_")[0] == "Sound"){
if (c.split("_")[1] == "Seagull"){
playSound(seagullsnd);
};
if (c.split("_")[1] == "Bird"){
playSound(birdsnd);
};
if (c.split("_")[1] == "Dog"){
if ((Math.random() * 5) <= 2){
playSound(dogsnd);
} else {
playSound(dogsnd2);
};
};
};
i = 0;
while (i < 12) {
if (((((!((c == "hints"))) && (!(leveldone.visible)))) && (!((c == "arrowC"))))){
color = new ColorTransform();
color.redOffset = -255;
color.greenOffset = -255;
color.blueOffset = -255;
interfaceui.itemList[("hi" + i)].transform.colorTransform = color;
Rhint = NaN;
};
if ((((((i >= 1)) && ((i <= 4)))) && (!((scena.currentFrame == 32))))){
if (((((((scena[("Level" + scena.currentFrame)][("Pearl" + i)].visible) && (!(leveldone.visible)))) && (scena[("Level" + scena.currentFrame)][("Pearl" + i)].hitTestPoint(mouseX, mouseY, true)))) && ((clicked.indexOf(scena[("Level" + scena.currentFrame)][("Pearl" + i)].name) == -1)))){
obj = scena[("Level" + scena.currentFrame)][("Pearl" + i)];
clicked.push(obj.name);
foundPearls++;
playSound(findpearl);
if (foundPearls >= 4){
playSound(newhint);
interfaceui.hints.hints.text = String((Number(interfaceui.hints.hints.text) + 1));
interfaceui.hints.gotoAndPlay(2);
interfaceui.compass.gotoAndPlay(2);
Tweener.addTween(interfaceui.arrowC, {rotation:360, time:1, transition:"linear"});
compassHelp = 1;
};
scena[("Level" + scena.currentFrame)].setChildIndex(obj, (scena[("Level" + scena.currentFrame)].numChildren - 1));
Tweener.addTween(obj, {x:((interfaceui[("P" + i)].x + 400) - scena[("Level" + scena.currentFrame)].x), y:((interfaceui[("P" + i)].y + 300) - scena[("Level" + scena.currentFrame)].y), alpha:0, time:1, transition:"linear", onComplete:function ():void{
obj = null;
}});
Tweener.addTween(interfaceui[("P" + i)], {alpha:1, time:1, transition:"linear"});
i = 12;
clickcounter = 0;
};
};
if ((((((((((i < 12)) && (scena[("Level" + scena.currentFrame)][ilArr[i]].visible))) && (scena[("Level" + scena.currentFrame)][ilArr[i]].hitTestPoint(mouseX, mouseY, true)))) && ((clicked.indexOf(scena[("Level" + scena.currentFrame)][ilArr[i]].name) == -1)))) && (interfaceui.itemList[("hi" + i)].visible))){
Hint = false;
obj = scena[("Level" + scena.currentFrame)][ilArr[i]];
clicked.push(obj.name);
scena[("Level" + scena.currentFrame)].setChildIndex(obj, (scena[("Level" + scena.currentFrame)].numChildren - 1));
Tweener.addTween(obj, {x:(650 - scena[("Level" + scena.currentFrame)].x), y:(((22 * i) + 35) - scena[("Level" + scena.currentFrame)].y), alpha:0, time:1, transition:"linear", onComplete:function ():void{
obj = null;
}});
interfaceui.itemList[("hi" + i)].signoff.gotoAndPlay(2);
itemfound++;
playSound(itemfoundsnd);
if ((((scena.currentFrame == 32)) && (!((itemfound == 12))))){
interfaceui.itemList[("hi" + itemfound)].visible = true;
};
if (itemfound >= 12){
leveldone.visible = true;
leveldone.gotoAndPlay(2);
};
i = 12;
clickcounter = 0;
};
i++;
};
};
if (clickcounter >= 3){
playSound(fuzzout);
circleMouse = true;
clickcounter = 0;
time10 = 0;
};
if ((((((c == "hints")) && (!(Hint)))) && ((Number(interfaceui.hints.hints.text) > 0)))){
if (Rhint >= 0){
obj = scena[("Level" + scena.currentFrame)][ilArr[Rhint]];
} else {
i = 11;
while (i >= 0) {
if (interfaceui.itemList[("hi" + i)].signoff.currentFrame == 1){
Rhint = i;
obj = scena[("Level" + scena.currentFrame)][ilArr[Rhint]];
};
i--;
};
};
Rhint = NaN;
Hint = true;
interfaceui.hints.hints.text = String((Number(interfaceui.hints.hints.text) - 1));
interfaceui.hints.gotoAndPlay(2);
playSound(usehint);
};
if ((((c.split("_")[0] == "Diff")) && ((scena[("Level" + scena.currentFrame)][c].currentFrame == 1)))){
scena[("Level" + scena.currentFrame)][("Diff_b_" + c.split("_")[2])].gotoAndPlay(2);
scena[("Level" + scena.currentFrame)][("Diff_r_" + c.split("_")[2])].gotoAndPlay(2);
Differences++;
playSound(itemfoundsnd);
clickcounter = 0;
interfaceui.itemList.numero.text = String((8 - Differences));
if (Differences == 8){
gamefinished.gotoAndPlay(2);
Differences = 0;
};
};
if ((((c.split("_")[0] == "SED")) && (!(leveldone.visible)))){
playSound(itemrollover);
scena[("Level" + scena.currentFrame)].SED.setChildIndex(scena[("Level" + scena.currentFrame)].SED[c], (scena[("Level" + scena.currentFrame)].SED.numChildren - 1));
if (scena[("Level" + scena.currentFrame)].SED[c].rotation == 0){
Tweener.addTween(scena[("Level" + scena.currentFrame)].SED[c], {rotation:90, time:1, transition:"linear"});
} else {
if (scena[("Level" + scena.currentFrame)].SED[c].rotation == 90){
sedruttocazz = scena[("Level" + scena.currentFrame)].SED[c];
Tweener.addTween(scena[("Level" + scena.currentFrame)].SED[c], {rotation:180, time:1, transition:"linear", onComplete:function (){
sedruttocazz.rotation = -180;
}});
} else {
if (scena[("Level" + scena.currentFrame)].SED[c].rotation == -180){
Tweener.addTween(scena[("Level" + scena.currentFrame)].SED[c], {rotation:-90, time:1, transition:"linear"});
} else {
if (scena[("Level" + scena.currentFrame)].SED[c].rotation == -90){
Tweener.addTween(scena[("Level" + scena.currentFrame)].SED[c], {rotation:0, time:1, transition:"linear", onComplete:function (){
var _local1:*;
var _local2:*;
_local1 = 0;
_local2 = 1;
while (_local2 <= 12) {
if (scena[("Level" + scena.currentFrame)].SED[("SED_" + _local2)].rotation == 0){
_local1++;
};
_local2++;
};
if (_local1 == 12){
leveldone.visible = true;
leveldone.gotoAndPlay(2);
};
_local1 = 0;
}});
};
};
};
};
clickcounter = 0;
};
if ((((c == "arrowC")) && ((compassHelp == 1)))){
interfaceui.compass.gotoAndPlay(2);
Tweener.addTween(interfaceui.arrowC, {rotation:360, time:1, transition:"linear"});
compassHelp = 2;
playSound(usecompass);
};
if (c == "starButton"){
mappa.visible = true;
mappa.closeMap.visible = true;
mappa.clickon.visible = false;
};
if (c == "closeMap"){
mappa.closeMap.visible = false;
mappa.visible = false;
};
if (c == "item_"){
obj = null;
c = e.target.parent.name;
if ((((e.target.parent.signoff.currentFrame <= 1)) && (e.target.parent.visible))){
if (compassHelp == 2){
compassHelp = 0;
};
Rhint = Number(c.split("hi").join(""));
color = new ColorTransform();
color.redOffset = 150;
color.greenOffset = -255;
color.blueOffset = -255;
interfaceui.itemList[c].transform.colorTransform = color;
createSilouette(scena[("Level" + scena.currentFrame)][ilArr[Rhint]]);
};
};
selprof.flush();
};
profiles.flush();
};
}
function unclic(_arg1:MouseEvent):void{
c = "";
}
public function endnextLevelFade(){
if (mappa.alpha < 0.2){
mappa.visible = false;
mappa.alpha = 1;
};
mainmenu = false;
if (!mappa.visible){
if (scena.currentFrame == 1){
scena.ChMC.gotoAndPlay(2);
};
createList();
};
if (getChildByName("bitmap")){
removeChild((bitmap as DisplayObject));
};
if (nameSilouette != ""){
nameSilouette = "";
while (interfaceui.silouette.numChildren > 1) {
interfaceui.silouette.removeChildAt(1);
};
};
}
public function setSetting(_arg1:Object){
if (musicSliderNum == 0){
_arg1.musicPinner.gotoAndStop(2);
};
if (musicSliderNum != 0){
_arg1.musicPinner.gotoAndStop(1);
_arg1.musicSlider.musicSlider.x = (musicSliderNum * 260);
};
if (soundsSliderNum == 0){
_arg1.soundsPinner.gotoAndStop(2);
};
if (soundsSliderNum != 0){
_arg1.soundsPinner.gotoAndStop(1);
_arg1.soundsSlider.soundsSlider.x = (soundsSliderNum * 260);
};
}
public function playMusic(_arg1:Sound, _arg2:Boolean):void{
if (channelMSC){
channelMSC.stop();
};
musicOBJ = _arg1;
channelMSC = _arg1.play();
channelMSC.soundTransform = new SoundTransform(musicSliderNum);
if (_arg2){
channelMSC.addEventListener(Event.SOUND_COMPLETE, loopMusic);
};
}
public function SNDMSC(_arg1:int){
if (channelMSC){
channelMSC.stop();
};
if (_arg1 == 1){
playMusic(menusnd, true);
};
}
public function notifier(_arg1:TimerEvent):void{
time10++;
if (time10 == 10){
clickcounter = 0;
time10 = 0;
};
if (miniGame){
clickcounter = 0;
};
if ((((time10 == 2)) && (circleMouse))){
circleMouse = false;
playSound(fuzzin);
};
if (((((((((!(leveldone.visible)) && (allowTimer))) && (!(mappa.visible)))) && ((scena.ChMC.currentFrame == 1)))) && ((interfaceui.guideBook.currentFrame == 1)))){
timerSec--;
if (timerSec <= 0){
if (!overlayer.visible){
playMusic(timeup, false);
};
overlayer.visible = true;
timerSec = 0;
};
};
interfaceui.timerMC.timer_.text = ((String(Math.floor((timerSec / 60))) + "'") + String((timerSec - (Math.floor((timerSec / 60)) * 60))));
if (((((timerSec - (Math.floor((timerSec / 60)) * 60)) >= 0)) && (((timerSec - (Math.floor((timerSec / 60)) * 60)) <= 9)))){
interfaceui.timerMC.timer_.text = ((String(Math.floor((timerSec / 60))) + "'0") + String((timerSec - (Math.floor((timerSec / 60)) * 60))));
};
}
public function Initialize():void{
if (selprof.data.livello != undefined){
livello = selprof.data.livello;
};
if (selprof.data.starUnlocked != undefined){
starUnlocked = selprof.data.starUnlocked;
};
if (selprof.data.livelliFiniti != undefined){
livelliFiniti = selprof.data.livelliFiniti;
};
scena.gotoAndStop(livello);
if (!allowTimer){
interfaceui.timerMC.visible = false;
};
interfaceui.timerMC.timer_.text = "9'59";
mainmenu = false;
if (((!((selprof.data.livello == undefined))) && (!((selprof.data.livello == 1))))){
mappa.visible = false;
};
leveldone.visible = false;
overlayer.visible = false;
interfaceui.itemList.alpha = 0;
timer.start();
mappa.closeMap.visible = false;
}
function rollout(_arg1:MouseEvent):void{
if (_arg1.target.name == "item_"){
_arg1.target.parent.ROIL.visible = false;
};
}
function mmove(_arg1:MouseEvent):void{
mousecursor.x = stage.mouseX;
mousecursor.y = stage.mouseY;
if ((((((c == "musicSlider")) && ((cOBJ.parent.mouseX >= 0)))) && ((cOBJ.parent.mouseX <= 260)))){
cOBJ.x = cOBJ.parent.mouseX;
if (channelMSC){
channelMSC.soundTransform = new SoundTransform((cOBJ.x / 260));
};
musicSliderNum = (cOBJ.x / 260);
};
if ((((((c == "soundsSlider")) && ((cOBJ.parent.mouseX >= 0)))) && ((cOBJ.parent.mouseX <= 260)))){
cOBJ.x = cOBJ.parent.mouseX;
if (channelSND){
channelSND.soundTransform = new SoundTransform((cOBJ.x / 260));
};
soundsSliderNum = (cOBJ.x / 260);
};
}
public function createList(){
var _local1:ColorTransform;
if (scena.currentFrame == 2){
interfaceui.itemList.gotoAndStop(3);
miniGame = true;
};
if (scena.currentFrame == 5){
interfaceui.itemList.gotoAndStop(2);
miniGame = true;
};
if (((!(miniGame)) || ((interfaceui.itemList.currentFrame == 1)))){
interfaceui.itemList.gotoAndStop(1);
_local1 = new ColorTransform();
_local1.redOffset = -256;
_local1.greenOffset = -256;
_local1.blueOffset = -256;
ilArr = new Array();
levelArr = new Array();
i = 0;
while (i < scena[("Level" + scena.currentFrame)].numChildren) {
if ((((((((scena[("Level" + scena.currentFrame)].getChildAt(i).name.indexOf("instance") == -1)) && ((scena[("Level" + scena.currentFrame)].getChildAt(i).name.indexOf("Pearl") == -1)))) && ((scena[("Level" + scena.currentFrame)].getChildAt(i).name.indexOf("Drawer") == -1)))) && ((scena[("Level" + scena.currentFrame)].getChildAt(i).name.indexOf("Sound") == -1)))){
levelArr.push(scena[("Level" + scena.currentFrame)].getChildAt(i).name);
};
i++;
};
ilArr = RandomArray.generateRdmArray(12, levelArr);
interfaceui.itemList.visible = true;
interfaceui.itemList.alpha = 0.1;
TweenMax.to(interfaceui.itemList, 1, {alpha:1});
i = 0;
while (i < 12) {
interfaceui.itemList[("hi" + i)].visible = true;
interfaceui.itemList[("hi" + i)].transform.colorTransform = _local1;
interfaceui.itemList[("hi" + i)].item_.text = ilArr[i].split("_").join(" ");
interfaceui.itemList[("hi" + i)].ROIL.visible = false;
interfaceui.itemList[("hi" + i)].signoff.gotoAndStop(1);
i++;
};
};
}
function updateParticles():void{
var _local1:Particle;
var _local2:int;
while (particles.length > 20) {
_local1 = particles.shift();
_local1.destroy();
};
_local2 = 0;
while (_local2 < particles.length) {
_local1 = particles[_local2];
_local1.update();
_local2++;
};
}
function refreshProfiles(){
menubtns.changeProfilesO.profili.text = profiles.data.profiles.split("-S,S-").join("\n").split("allowTimerTrue_").join("").split("allowTimerFalse_").join("");
menubtns.changeProfilesO.selectedProfile.text = profile;
if (profiles.data.timerMode == "true"){
menubtns.changeProfilesO.selectedProfileTimer.text = "Timer Mode on";
allowTimer = true;
};
if (profiles.data.timerMode == "false"){
menubtns.changeProfilesO.selectedProfileTimer.text = "Relax Mode on";
allowTimer = false;
};
if (profile == ""){
menubtns.changeProfilesO.selectedProfileTimer.text = "";
};
i = 0;
while (i <= 9) {
menubtns.changeProfilesO[("sp_" + i)].mouseEnabled = false;
menubtns.changeProfilesO[("clock_" + i)].gotoAndStop(1);
if (i < (profiles.data.profiles.split("-S,S-").length - 1)){
menubtns.changeProfilesO[("sp_" + i)].mouseEnabled = true;
if (profiles.data.profiles.split("-S,S-")[i].split("_")[0] == "allowTimerTrue"){
menubtns.changeProfilesO[("clock_" + i)].gotoAndStop(2);
} else {
menubtns.changeProfilesO[("clock_" + i)].gotoAndStop(3);
};
};
i++;
};
}
public function loopMusic(_arg1:Event):void{
if (channelMSC != null){
channelMSC.removeEventListener(Event.SOUND_COMPLETE, loopMusic);
playMusic(musicOBJ, true);
};
}
}
}//package
Section 85
//ItemFoundSND (ItemFoundSND)
package {
import flash.media.*;
public dynamic class ItemFoundSND extends Sound {
}
}//package
Section 86
//ItemRollOver (ItemRollOver)
package {
import flash.media.*;
public dynamic class ItemRollOver extends Sound {
}
}//package
Section 87
//MainClick (MainClick)
package {
import flash.media.*;
public dynamic class MainClick extends Sound {
}
}//package
Section 88
//MainPlayGame (MainPlayGame)
package {
import flash.media.*;
public dynamic class MainPlayGame extends Sound {
}
}//package
Section 89
//MainRollOver (MainRollOver)
package {
import flash.media.*;
public dynamic class MainRollOver extends Sound {
}
}//package
Section 90
//MenuSND (MenuSND)
package {
import flash.media.*;
public dynamic class MenuSND extends Sound {
}
}//package
Section 91
//NewHint (NewHint)
package {
import flash.media.*;
public dynamic class NewHint extends Sound {
}
}//package
Section 92
//Particle (Particle)
package {
import flash.display.*;
public class Particle {
public var fade:Number;
public var xVel:Number;
public var shrink:Number;
public var gravity:Number;
public var clip:Sprite;
public var yVel:Number;
public var directionRotate:Boolean;
public var drag:Number;
public var spriteClass:Class;
public var disabled:Boolean;
public function Particle(_arg1:Class, _arg2:DisplayObjectContainer, _arg3:Number, _arg4:Number){
clip = new (_arg1);
spriteClass = _arg1;
_arg2.addChild(clip);
setPos(_arg3, _arg4);
initDefaults();
}
public function destroy(){
if (clip.parent){
clip.parent.removeChild(clip);
};
clip = null;
}
public function initDefaults(){
drag = 1;
fade = 1;
shrink = 1;
gravity = 0;
directionRotate = false;
enable();
}
public function restart(_arg1:Number, _arg2:Number){
initDefaults();
clip.visible = true;
disabled = false;
setPos(_arg1, _arg2);
}
public function setScale(_arg1:Number){
clip.scaleX = (clip.scaleY = _arg1);
}
public function update(){
if (disabled){
return;
};
clip.x = (clip.x + xVel);
clip.y = (clip.y + yVel);
xVel = (xVel * drag);
yVel = (yVel * drag);
clip.alpha = (((clip.alpha * 1000) * fade) / 1000);
clip.scaleX = (clip.scaleY = (clip.scaleY * shrink));
yVel = (yVel + gravity);
if (directionRotate){
updateRotation();
};
}
public function setPos(_arg1:Number, _arg2:Number){
clip.x = _arg1;
clip.y = _arg2;
}
public function setVel(_arg1:Number, _arg2:Number){
xVel = _arg1;
yVel = _arg2;
}
public function enable(){
clip.visible = true;
disabled = false;
}
public function updateRotation(){
clip.rotation = (Math.atan2(yVel, xVel) * (180 / Math.PI));
}
public function disable(){
clip.visible = false;
disabled = true;
}
}
}//package
Section 93
//Puntini (Puntini)
package {
import flash.display.*;
public dynamic class Puntini extends MovieClip {
}
}//package
Section 94
//RandomArray (RandomArray)
package {
public class RandomArray {
public function RandomArray():void{
}
public static function generateRdmArray(_arg1:int, _arg2:Array=null):Array{
var _local3:Array;
var _local4:Array;
var _local5:int;
var _local6:int;
if ((((_arg2 == null)) || ((_arg2.length < _arg1)))){
_arg2 = ((_arg2)==null) ? new Array() : _arg2;
_local5 = _arg2.length;
while (_local5 < _arg1) {
_arg2.push(_local5);
_local5++;
};
};
_local3 = new Array();
_local3 = _arg2.slice();
_local4 = new Array();
while ((((_local3.length > 0)) && ((_local4.length < _arg1)))) {
_local6 = Math.floor((Math.random() * _local3.length));
_local4.push(_local3[_local6]);
_local3.splice(_local6, 1);
};
return (_local4);
}
}
}//package
Section 95
//Scena_1_13_25 (Scena_1_13_25)
package {
import flash.media.*;
public dynamic class Scena_1_13_25 extends Sound {
}
}//package
Section 96
//SeagullSND (SeagullSND)
package {
import flash.media.*;
public dynamic class SeagullSND extends Sound {
}
}//package
Section 97
//Spark (Spark)
package {
import flash.display.*;
public dynamic class Spark extends Sprite {
}
}//package
Section 98
//SparkCyan (SparkCyan)
package {
import flash.display.*;
public dynamic class SparkCyan extends MovieClip {
}
}//package
Section 99
//UseCompass (UseCompass)
package {
import flash.media.*;
public dynamic class UseCompass extends Sound {
}
}//package
Section 100
//UseHint (UseHint)
package {
import flash.media.*;
public dynamic class UseHint extends Sound {
}
}//package