Section 1
//AuxFunctions (caurina.transitions.AuxFunctions)
package caurina.transitions {
public class AuxFunctions {
public static function concatObjects(... _args):Object{
var _local2:Object;
var _local3:Object;
var _local4:int;
var _local5:String;
_local2 = {};
_local4 = 0;
while (_local4 < _args.length) {
_local3 = _args[_local4];
for (_local5 in _local3) {
if (_local3[_local5] == null){
delete _local2[_local5];
} else {
_local2[_local5] = _local3[_local5];
};
};
_local4++;
};
return (_local2);
}
public static function numberToG(_arg1:Number):Number{
return (((_arg1 & 0xFF00) >> 8));
}
public static function numberToR(_arg1:Number):Number{
return (((_arg1 & 0xFF0000) >> 16));
}
public static function isInArray(_arg1:String, _arg2:Array):Boolean{
var _local3:uint;
var _local4:uint;
_local3 = _arg2.length;
_local4 = 0;
while (_local4 < _local3) {
if (_arg2[_local4] == _arg1){
return (true);
};
_local4++;
};
return (false);
}
public static function getObjectLength(_arg1:Object):uint{
var _local2:uint;
var _local3:String;
_local2 = 0;
for (_local3 in _arg1) {
_local2++;
};
return (_local2);
}
public static function numberToB(_arg1:Number):Number{
return ((_arg1 & 0xFF));
}
}
}//package caurina.transitions
Section 2
//Equations (caurina.transitions.Equations)
package caurina.transitions {
public class Equations {
public function Equations(){
trace("Equations is a static class and should not be instantiated.");
}
public static function easeOutBounce(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / _arg4);
if (_arg1 < (1 / 2.75)){
return (((_arg3 * ((7.5625 * _arg1) * _arg1)) + _arg2));
};
if (_arg1 < (2 / 2.75)){
_arg1 = (_arg1 - (1.5 / 2.75));
return (((_arg3 * (((7.5625 * _arg1) * _arg1) + 0.75)) + _arg2));
};
if (_arg1 < (2.5 / 2.75)){
_arg1 = (_arg1 - (2.25 / 2.75));
return (((_arg3 * (((7.5625 * _arg1) * _arg1) + 0.9375)) + _arg2));
};
_arg1 = (_arg1 - (2.625 / 2.75));
return (((_arg3 * (((7.5625 * _arg1) * _arg1) + 0.984375)) + _arg2));
}
public static function easeInOutElastic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
var _local6:Number;
var _local7:Number;
var _local8:Number;
if (_arg1 == 0){
return (_arg2);
};
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 == 2){
return ((_arg2 + _arg3));
};
_local6 = (((!(Boolean(_arg5))) || (isNaN(_arg5.period)))) ? (_arg4 * (0.3 * 1.5)) : _arg5.period;
_local8 = (((!(Boolean(_arg5))) || (isNaN(_arg5.amplitude)))) ? 0 : _arg5.amplitude;
if (((!(Boolean(_local8))) || ((_local8 < Math.abs(_arg3))))){
_local8 = _arg3;
_local7 = (_local6 / 4);
} else {
_local7 = ((_local6 / (2 * Math.PI)) * Math.asin((_arg3 / _local8)));
};
if (_arg1 < 1){
--_arg1;
return (((-0.5 * ((_local8 * Math.pow(2, (10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local7) * (2 * Math.PI)) / _local6)))) + _arg2));
};
--_arg1;
return ((((((_local8 * Math.pow(2, (-10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local7) * (2 * Math.PI)) / _local6))) * 0.5) + _arg3) + _arg2));
}
public static function easeInOutQuad(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
return (((((_arg3 / 2) * _arg1) * _arg1) + _arg2));
};
--_arg1;
return ((((-(_arg3) / 2) * ((_arg1 * (_arg1 - 2)) - 1)) + _arg2));
}
public static function easeInOutBounce(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 < (_arg4 / 2)){
return (((easeInBounce((_arg1 * 2), 0, _arg3, _arg4) * 0.5) + _arg2));
};
return ((((easeOutBounce(((_arg1 * 2) - _arg4), 0, _arg3, _arg4) * 0.5) + (_arg3 * 0.5)) + _arg2));
}
public static function easeInOutBack(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
var _local6:Number;
_local6 = (((!(Boolean(_arg5))) || (isNaN(_arg5.overshoot)))) ? 1.70158 : _arg5.overshoot;
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
_local6 = (_local6 * 1.525);
return ((((_arg3 / 2) * ((_arg1 * _arg1) * (((_local6 + 1) * _arg1) - _local6))) + _arg2));
};
_arg1 = (_arg1 - 2);
_local6 = (_local6 * 1.525);
return ((((_arg3 / 2) * (((_arg1 * _arg1) * (((_local6 + 1) * _arg1) + _local6)) + 2)) + _arg2));
}
public static function easeOutInCubic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutCubic((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5));
};
return (easeInCubic(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5));
}
public static function easeNone(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
return ((((_arg3 * _arg1) / _arg4) + _arg2));
}
public static function easeOutBack(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
var _local6:Number;
_local6 = (((!(Boolean(_arg5))) || (isNaN(_arg5.overshoot)))) ? 1.70158 : _arg5.overshoot;
_arg1 = ((_arg1 / _arg4) - 1);
return (((_arg3 * (((_arg1 * _arg1) * (((_local6 + 1) * _arg1) + _local6)) + 1)) + _arg2));
}
public static function easeInOutSine(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
return ((((-(_arg3) / 2) * (Math.cos(((Math.PI * _arg1) / _arg4)) - 1)) + _arg2));
}
public static function easeInBack(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
var _local6:Number;
_local6 = (((!(Boolean(_arg5))) || (isNaN(_arg5.overshoot)))) ? 1.70158 : _arg5.overshoot;
_arg1 = (_arg1 / _arg4);
return (((((_arg3 * _arg1) * _arg1) * (((_local6 + 1) * _arg1) - _local6)) + _arg2));
}
public static function easeInQuart(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / _arg4);
return ((((((_arg3 * _arg1) * _arg1) * _arg1) * _arg1) + _arg2));
}
public static function easeOutInQuint(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutQuint((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5));
};
return (easeInQuint(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5));
}
public static function easeOutInBounce(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutBounce((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5));
};
return (easeInBounce(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5));
}
public static function init():void{
Tweener.registerTransition("easenone", easeNone);
Tweener.registerTransition("linear", easeNone);
Tweener.registerTransition("easeinquad", easeInQuad);
Tweener.registerTransition("easeoutquad", easeOutQuad);
Tweener.registerTransition("easeinoutquad", easeInOutQuad);
Tweener.registerTransition("easeoutinquad", easeOutInQuad);
Tweener.registerTransition("easeincubic", easeInCubic);
Tweener.registerTransition("easeoutcubic", easeOutCubic);
Tweener.registerTransition("easeinoutcubic", easeInOutCubic);
Tweener.registerTransition("easeoutincubic", easeOutInCubic);
Tweener.registerTransition("easeinquart", easeInQuart);
Tweener.registerTransition("easeoutquart", easeOutQuart);
Tweener.registerTransition("easeinoutquart", easeInOutQuart);
Tweener.registerTransition("easeoutinquart", easeOutInQuart);
Tweener.registerTransition("easeinquint", easeInQuint);
Tweener.registerTransition("easeoutquint", easeOutQuint);
Tweener.registerTransition("easeinoutquint", easeInOutQuint);
Tweener.registerTransition("easeoutinquint", easeOutInQuint);
Tweener.registerTransition("easeinsine", easeInSine);
Tweener.registerTransition("easeoutsine", easeOutSine);
Tweener.registerTransition("easeinoutsine", easeInOutSine);
Tweener.registerTransition("easeoutinsine", easeOutInSine);
Tweener.registerTransition("easeincirc", easeInCirc);
Tweener.registerTransition("easeoutcirc", easeOutCirc);
Tweener.registerTransition("easeinoutcirc", easeInOutCirc);
Tweener.registerTransition("easeoutincirc", easeOutInCirc);
Tweener.registerTransition("easeinexpo", easeInExpo);
Tweener.registerTransition("easeoutexpo", easeOutExpo);
Tweener.registerTransition("easeinoutexpo", easeInOutExpo);
Tweener.registerTransition("easeoutinexpo", easeOutInExpo);
Tweener.registerTransition("easeinelastic", easeInElastic);
Tweener.registerTransition("easeoutelastic", easeOutElastic);
Tweener.registerTransition("easeinoutelastic", easeInOutElastic);
Tweener.registerTransition("easeoutinelastic", easeOutInElastic);
Tweener.registerTransition("easeinback", easeInBack);
Tweener.registerTransition("easeoutback", easeOutBack);
Tweener.registerTransition("easeinoutback", easeInOutBack);
Tweener.registerTransition("easeoutinback", easeOutInBack);
Tweener.registerTransition("easeinbounce", easeInBounce);
Tweener.registerTransition("easeoutbounce", easeOutBounce);
Tweener.registerTransition("easeinoutbounce", easeInOutBounce);
Tweener.registerTransition("easeoutinbounce", easeOutInBounce);
}
public static function easeOutExpo(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
return (((_arg1)==_arg4) ? (_arg2 + _arg3) : (((_arg3 * 1.001) * (-(Math.pow(2, ((-10 * _arg1) / _arg4))) + 1)) + _arg2));
}
public static function easeOutInBack(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutBack((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5));
};
return (easeInBack(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5));
}
public static function easeInExpo(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
return (((_arg1)==0) ? _arg2 : (((_arg3 * Math.pow(2, (10 * ((_arg1 / _arg4) - 1)))) + _arg2) - (_arg3 * 0.001)));
}
public static function easeInCubic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / _arg4);
return (((((_arg3 * _arg1) * _arg1) * _arg1) + _arg2));
}
public static function easeInQuint(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / _arg4);
return (((((((_arg3 * _arg1) * _arg1) * _arg1) * _arg1) * _arg1) + _arg2));
}
public static function easeInOutCirc(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
return ((((-(_arg3) / 2) * (Math.sqrt((1 - (_arg1 * _arg1))) - 1)) + _arg2));
};
_arg1 = (_arg1 - 2);
return ((((_arg3 / 2) * (Math.sqrt((1 - (_arg1 * _arg1))) + 1)) + _arg2));
}
public static function easeInQuad(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / _arg4);
return ((((_arg3 * _arg1) * _arg1) + _arg2));
}
public static function easeInBounce(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
return (((_arg3 - easeOutBounce((_arg4 - _arg1), 0, _arg3, _arg4)) + _arg2));
}
public static function easeOutInExpo(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutExpo((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5));
};
return (easeInExpo(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5));
}
public static function easeOutQuart(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = ((_arg1 / _arg4) - 1);
return (((-(_arg3) * ((((_arg1 * _arg1) * _arg1) * _arg1) - 1)) + _arg2));
}
public static function easeInSine(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
return ((((-(_arg3) * Math.cos(((_arg1 / _arg4) * (Math.PI / 2)))) + _arg3) + _arg2));
}
public static function easeInOutQuart(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
return (((((((_arg3 / 2) * _arg1) * _arg1) * _arg1) * _arg1) + _arg2));
};
_arg1 = (_arg1 - 2);
return ((((-(_arg3) / 2) * ((((_arg1 * _arg1) * _arg1) * _arg1) - 2)) + _arg2));
}
public static function easeOutQuad(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / _arg4);
return ((((-(_arg3) * _arg1) * (_arg1 - 2)) + _arg2));
}
public static function easeOutInElastic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutElastic((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5));
};
return (easeInElastic(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5));
}
public static function easeInElastic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
var _local6:Number;
var _local7:Number;
var _local8:Number;
if (_arg1 == 0){
return (_arg2);
};
_arg1 = (_arg1 / _arg4);
if (_arg1 == 1){
return ((_arg2 + _arg3));
};
_local6 = (((!(Boolean(_arg5))) || (isNaN(_arg5.period)))) ? (_arg4 * 0.3) : _arg5.period;
_local8 = (((!(Boolean(_arg5))) || (isNaN(_arg5.amplitude)))) ? 0 : _arg5.amplitude;
if (((!(Boolean(_local8))) || ((_local8 < Math.abs(_arg3))))){
_local8 = _arg3;
_local7 = (_local6 / 4);
} else {
_local7 = ((_local6 / (2 * Math.PI)) * Math.asin((_arg3 / _local8)));
};
--_arg1;
return ((-(((_local8 * Math.pow(2, (10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local7) * (2 * Math.PI)) / _local6)))) + _arg2));
}
public static function easeOutCubic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = ((_arg1 / _arg4) - 1);
return (((_arg3 * (((_arg1 * _arg1) * _arg1) + 1)) + _arg2));
}
public static function easeOutQuint(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = ((_arg1 / _arg4) - 1);
return (((_arg3 * (((((_arg1 * _arg1) * _arg1) * _arg1) * _arg1) + 1)) + _arg2));
}
public static function easeOutInQuad(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutQuad((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5));
};
return (easeInQuad(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5));
}
public static function easeOutSine(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
return (((_arg3 * Math.sin(((_arg1 / _arg4) * (Math.PI / 2)))) + _arg2));
}
public static function easeInOutCubic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
return ((((((_arg3 / 2) * _arg1) * _arg1) * _arg1) + _arg2));
};
_arg1 = (_arg1 - 2);
return ((((_arg3 / 2) * (((_arg1 * _arg1) * _arg1) + 2)) + _arg2));
}
public static function easeInOutQuint(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
return ((((((((_arg3 / 2) * _arg1) * _arg1) * _arg1) * _arg1) * _arg1) + _arg2));
};
_arg1 = (_arg1 - 2);
return ((((_arg3 / 2) * (((((_arg1 * _arg1) * _arg1) * _arg1) * _arg1) + 2)) + _arg2));
}
public static function easeInCirc(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / _arg4);
return (((-(_arg3) * (Math.sqrt((1 - (_arg1 * _arg1))) - 1)) + _arg2));
}
public static function easeOutInSine(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutSine((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5));
};
return (easeInSine(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5));
}
public static function easeInOutExpo(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 == 0){
return (_arg2);
};
if (_arg1 == _arg4){
return ((_arg2 + _arg3));
};
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
return (((((_arg3 / 2) * Math.pow(2, (10 * (_arg1 - 1)))) + _arg2) - (_arg3 * 0.0005)));
};
--_arg1;
return (((((_arg3 / 2) * 1.0005) * (-(Math.pow(2, (-10 * _arg1))) + 2)) + _arg2));
}
public static function easeOutElastic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
var _local6:Number;
var _local7:Number;
var _local8:Number;
if (_arg1 == 0){
return (_arg2);
};
_arg1 = (_arg1 / _arg4);
if (_arg1 == 1){
return ((_arg2 + _arg3));
};
_local6 = (((!(Boolean(_arg5))) || (isNaN(_arg5.period)))) ? (_arg4 * 0.3) : _arg5.period;
_local8 = (((!(Boolean(_arg5))) || (isNaN(_arg5.amplitude)))) ? 0 : _arg5.amplitude;
if (((!(Boolean(_local8))) || ((_local8 < Math.abs(_arg3))))){
_local8 = _arg3;
_local7 = (_local6 / 4);
} else {
_local7 = ((_local6 / (2 * Math.PI)) * Math.asin((_arg3 / _local8)));
};
return (((((_local8 * Math.pow(2, (-10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local7) * (2 * Math.PI)) / _local6))) + _arg3) + _arg2));
}
public static function easeOutCirc(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = ((_arg1 / _arg4) - 1);
return (((_arg3 * Math.sqrt((1 - (_arg1 * _arg1)))) + _arg2));
}
public static function easeOutInQuart(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutQuart((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5));
};
return (easeInQuart(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5));
}
public static function easeOutInCirc(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutCirc((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5));
};
return (easeInCirc(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5));
}
}
}//package caurina.transitions
Section 3
//PropertyInfoObj (caurina.transitions.PropertyInfoObj)
package caurina.transitions {
public class PropertyInfoObj {
public var originalValueComplete:Object;
public var modifierParameters:Array;
public var isSpecialProperty:Boolean;
public var hasModifier:Boolean;
public var valueComplete:Number;
public var extra:Object;
public var valueStart:Number;
public var modifierFunction:Function;
public var arrayIndex:Number;
public function PropertyInfoObj(_arg1:Number, _arg2:Number, _arg3:Object, _arg4:Number, _arg5:Object, _arg6:Boolean, _arg7:Function, _arg8:Array){
valueStart = _arg1;
valueComplete = _arg2;
originalValueComplete = _arg3;
arrayIndex = _arg4;
extra = _arg5;
isSpecialProperty = _arg6;
hasModifier = Boolean(_arg7);
modifierFunction = _arg7;
modifierParameters = _arg8;
}
public function toString():String{
var _local1:String;
_local1 = "\n[PropertyInfoObj ";
_local1 = (_local1 + ("valueStart:" + String(valueStart)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("valueComplete:" + String(valueComplete)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("originalValueComplete:" + String(originalValueComplete)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("arrayIndex:" + String(arrayIndex)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("extra:" + String(extra)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("isSpecialProperty:" + String(isSpecialProperty)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("hasModifier:" + String(hasModifier)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("modifierFunction:" + String(modifierFunction)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("modifierParameters:" + String(modifierParameters)));
_local1 = (_local1 + "]\n");
return (_local1);
}
public function clone():PropertyInfoObj{
var _local1:PropertyInfoObj;
_local1 = new PropertyInfoObj(valueStart, valueComplete, originalValueComplete, arrayIndex, extra, isSpecialProperty, modifierFunction, modifierParameters);
return (_local1);
}
}
}//package caurina.transitions
Section 4
//SpecialProperty (caurina.transitions.SpecialProperty)
package caurina.transitions {
public class SpecialProperty {
public var parameters:Array;
public var preProcess:Function;
public var setValue:Function;
public var getValue:Function;
public function SpecialProperty(_arg1:Function, _arg2:Function, _arg3:Array=null, _arg4:Function=null){
getValue = _arg1;
setValue = _arg2;
parameters = _arg3;
preProcess = _arg4;
}
public function toString():String{
var _local1:String;
_local1 = "";
_local1 = (_local1 + "[SpecialProperty ");
_local1 = (_local1 + ("getValue:" + String(getValue)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("setValue:" + String(setValue)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("parameters:" + String(parameters)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("preProcess:" + String(preProcess)));
_local1 = (_local1 + "]");
return (_local1);
}
}
}//package caurina.transitions
Section 5
//SpecialPropertyModifier (caurina.transitions.SpecialPropertyModifier)
package caurina.transitions {
public class SpecialPropertyModifier {
public var getValue:Function;
public var modifyValues:Function;
public function SpecialPropertyModifier(_arg1:Function, _arg2:Function){
modifyValues = _arg1;
getValue = _arg2;
}
public function toString():String{
var _local1:String;
_local1 = "";
_local1 = (_local1 + "[SpecialPropertyModifier ");
_local1 = (_local1 + ("modifyValues:" + String(modifyValues)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("getValue:" + String(getValue)));
_local1 = (_local1 + "]");
return (_local1);
}
}
}//package caurina.transitions
Section 6
//SpecialPropertySplitter (caurina.transitions.SpecialPropertySplitter)
package caurina.transitions {
public class SpecialPropertySplitter {
public var parameters:Array;
public var splitValues:Function;
public function SpecialPropertySplitter(_arg1:Function, _arg2:Array){
splitValues = _arg1;
parameters = _arg2;
}
public function toString():String{
var _local1:String;
_local1 = "";
_local1 = (_local1 + "[SpecialPropertySplitter ");
_local1 = (_local1 + ("splitValues:" + String(splitValues)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("parameters:" + String(parameters)));
_local1 = (_local1 + "]");
return (_local1);
}
}
}//package caurina.transitions
Section 7
//Tweener (caurina.transitions.Tweener)
package caurina.transitions {
import flash.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;
_local3 = new Array();
_local4 = 0;
while (_local4 < _args.length) {
if ((((typeof(_args[_local4]) == "string")) && (!(AuxFunctions.isInArray(_args[_local4], _local3))))){
_local3.push(_args[_local4]);
};
_local4++;
};
return (affectTweens(removeTweenByIndex, _arg1, _local3));
}
public static function splitTweens(_arg1:Number, _arg2:Array):uint{
var _local3:TweenListObj;
var _local4:TweenListObj;
var _local5:uint;
var _local6:String;
var _local7:Boolean;
_local3 = _tweenList[_arg1];
_local4 = _local3.clone(false);
_local5 = 0;
while (_local5 < _arg2.length) {
_local6 = _arg2[_local5];
if (Boolean(_local3.properties[_local6])){
_local3.properties[_local6] = undefined;
delete _local3.properties[_local6];
};
_local5++;
};
for (_local6 in _local4.properties) {
_local7 = false;
_local5 = 0;
while (_local5 < _arg2.length) {
if (_arg2[_local5] == _local6){
_local7 = true;
break;
};
_local5++;
};
if (!_local7){
_local4.properties[_local6] = undefined;
delete _local4.properties[_local6];
};
};
_tweenList.push(_local4);
return ((_tweenList.length - 1));
}
public static function updateFrame():void{
_currentTimeFrame++;
}
public static function resumeTweenByIndex(_arg1:Number):Boolean{
var _local2:TweenListObj;
var _local3:Number;
_local2 = _tweenList[_arg1];
if ((((_local2 == null)) || (!(_local2.isPaused)))){
return (false);
};
_local3 = getCurrentTweeningTime(_local2);
_local2.timeStart = (_local2.timeStart + (_local3 - _local2.timePaused));
_local2.timeComplete = (_local2.timeComplete + (_local3 - _local2.timePaused));
_local2.timePaused = undefined;
_local2.isPaused = false;
return (true);
}
public static function getVersion():String{
return ("AS3 1.31.71");
}
public static function onEnterFrame(_arg1:Event):void{
var _local2:Boolean;
updateTime();
updateFrame();
_local2 = false;
_local2 = updateTweens();
if (!_local2){
stopEngine();
};
}
public static function updateTime():void{
_currentTime = getTimer();
}
private static function updateTweenByIndex(_arg1:Number):Boolean{
var tTweening:TweenListObj;
var isOver:Boolean;
var mustUpdate:Boolean;
var nv:Number;
var t:Number;
var b:Number;
var c:Number;
var d:Number;
var pName:String;
var eventScope:Object;
var tScope:Object;
var cTime:Number;
var tProperty:Object;
var pv:Number;
var i = _arg1;
tTweening = _tweenList[i];
if ((((tTweening == null)) || (!(Boolean(tTweening.scope))))){
return (false);
};
isOver = false;
cTime = getCurrentTweeningTime(tTweening);
if (cTime >= tTweening.timeStart){
tScope = tTweening.scope;
if (tTweening.isCaller){
do {
t = (((tTweening.timeComplete - tTweening.timeStart) / tTweening.count) * (tTweening.timesCalled + 1));
b = tTweening.timeStart;
c = (tTweening.timeComplete - tTweening.timeStart);
d = (tTweening.timeComplete - tTweening.timeStart);
nv = tTweening.transition(t, b, c, d);
} while (!(cTime >= nv));
} else {
mustUpdate = (((((tTweening.skipUpdates < 1)) || (!(tTweening.skipUpdates)))) || ((tTweening.updatesSkipped >= tTweening.skipUpdates)));
if (cTime >= tTweening.timeComplete){
isOver = true;
mustUpdate = true;
};
if (!tTweening.hasStarted){
if (Boolean(tTweening.onStart)){
eventScope = (Boolean(tTweening.onStartScope)) ? tTweening.onStartScope : tScope;
try {
tTweening.onStart.apply(eventScope, tTweening.onStartParams);
} catch(e:Error) {
handleError(tTweening, e, "onStart");
};
};
for (pName in tTweening.properties) {
if (tTweening.properties[pName].isSpecialProperty){
if (Boolean(_specialPropertyList[pName].preProcess)){
tTweening.properties[pName].valueComplete = _specialPropertyList[pName].preProcess(tScope, _specialPropertyList[pName].parameters, tTweening.properties[pName].originalValueComplete, tTweening.properties[pName].extra);
};
pv = _specialPropertyList[pName].getValue(tScope, _specialPropertyList[pName].parameters, tTweening.properties[pName].extra);
} else {
pv = tScope[pName];
};
tTweening.properties[pName].valueStart = (isNaN(pv)) ? tTweening.properties[pName].valueComplete : pv;
};
mustUpdate = true;
tTweening.hasStarted = true;
};
if (mustUpdate){
for (pName in tTweening.properties) {
tProperty = tTweening.properties[pName];
if (isOver){
nv = tProperty.valueComplete;
} else {
if (tProperty.hasModifier){
t = (cTime - tTweening.timeStart);
d = (tTweening.timeComplete - tTweening.timeStart);
nv = tTweening.transition(t, 0, 1, d, tTweening.transitionParams);
nv = tProperty.modifierFunction(tProperty.valueStart, tProperty.valueComplete, nv, tProperty.modifierParameters);
} else {
t = (cTime - tTweening.timeStart);
b = tProperty.valueStart;
c = (tProperty.valueComplete - tProperty.valueStart);
d = (tTweening.timeComplete - tTweening.timeStart);
nv = tTweening.transition(t, b, c, d, tTweening.transitionParams);
};
};
if (tTweening.rounded){
nv = Math.round(nv);
};
if (tProperty.isSpecialProperty){
_specialPropertyList[pName].setValue(tScope, nv, _specialPropertyList[pName].parameters, tTweening.properties[pName].extra);
} else {
tScope[pName] = nv;
};
};
tTweening.updatesSkipped = 0;
if (Boolean(tTweening.onUpdate)){
eventScope = (Boolean(tTweening.onUpdateScope)) ? tTweening.onUpdateScope : tScope;
try {
tTweening.onUpdate.apply(eventScope, tTweening.onUpdateParams);
} catch(e:Error) {
handleError(tTweening, e, "onUpdate");
};
};
} else {
tTweening.updatesSkipped++;
};
};
if (((isOver) && (Boolean(tTweening.onComplete)))){
eventScope = (Boolean(tTweening.onCompleteScope)) ? tTweening.onCompleteScope : tScope;
try {
tTweening.onComplete.apply(eventScope, tTweening.onCompleteParams);
} catch(e:Error) {
handleError(tTweening, e, "onComplete");
};
};
return (!(isOver));
};
return (true);
}
public static function setTimeScale(_arg1:Number):void{
var _local2:Number;
var _local3:Number;
if (isNaN(_arg1)){
_arg1 = 1;
};
if (_arg1 < 1E-5){
_arg1 = 1E-5;
};
if (_arg1 != _timeScale){
if (_tweenList != null){
_local2 = 0;
while (_local2 < _tweenList.length) {
_local3 = getCurrentTweeningTime(_tweenList[_local2]);
_tweenList[_local2].timeStart = (_local3 - (((_local3 - _tweenList[_local2].timeStart) * _timeScale) / _arg1));
_tweenList[_local2].timeComplete = (_local3 - (((_local3 - _tweenList[_local2].timeComplete) * _timeScale) / _arg1));
if (_tweenList[_local2].timePaused != undefined){
_tweenList[_local2].timePaused = (_local3 - (((_local3 - _tweenList[_local2].timePaused) * _timeScale) / _arg1));
};
_local2++;
};
};
_timeScale = _arg1;
};
}
public static function resumeAllTweens():Boolean{
var _local1:Boolean;
var _local2:uint;
if (!Boolean(_tweenList)){
return (false);
};
_local1 = false;
_local2 = 0;
while (_local2 < _tweenList.length) {
resumeTweenByIndex(_local2);
_local1 = true;
_local2++;
};
return (_local1);
}
private static function handleError(_arg1:TweenListObj, _arg2:Error, _arg3:String):void{
var eventScope:Object;
var pTweening = _arg1;
var pError = _arg2;
var pCallBackName = _arg3;
if (((Boolean(pTweening.onError)) && ((pTweening.onError is Function)))){
eventScope = (Boolean(pTweening.onErrorScope)) ? pTweening.onErrorScope : pTweening.scope;
try {
pTweening.onError.apply(eventScope, [pTweening.scope, pError]);
} catch(metaError:Error) {
printError(((((String(pTweening.scope) + " raised an error while executing the 'onError' handler. Original error:\n ") + pError.getStackTrace()) + "\nonError error: ") + metaError.getStackTrace()));
};
} else {
if (!Boolean(pTweening.onError)){
printError(((((String(pTweening.scope) + " raised an error while executing the '") + pCallBackName) + "'handler. \n") + pError.getStackTrace()));
};
};
}
private static function startEngine():void{
_engineExists = true;
_tweenList = new Array();
__tweener_controller__ = new MovieClip();
__tweener_controller__.addEventListener(Event.ENTER_FRAME, Tweener.onEnterFrame);
_currentTimeFrame = 0;
updateTime();
}
public static function removeAllTweens():Boolean{
var _local1:Boolean;
var _local2:uint;
if (!Boolean(_tweenList)){
return (false);
};
_local1 = false;
_local2 = 0;
while (_local2 < _tweenList.length) {
removeTweenByIndex(_local2);
_local1 = true;
_local2++;
};
return (_local1);
}
public static function addTween(_arg1:Object=null, _arg2:Object=null):Boolean{
var _local3:Number;
var _local4:Number;
var _local5:String;
var _local6:Array;
var _local7:Object;
var _local8:Number;
var _local9:Number;
var _local10:Array;
var _local11:Object;
var _local12:Object;
var _local13:Function;
var _local14:Object;
var _local15:TweenListObj;
var _local16:Number;
var _local17:Array;
var _local18:Array;
var _local19:Array;
var _local20:String;
if (!Boolean(_arg1)){
return (false);
};
if ((_arg1 is Array)){
_local6 = _arg1.concat();
} else {
_local6 = [_arg1];
};
_local7 = TweenListObj.makePropertiesChain(_arg2);
if (!_inited){
init();
};
if (((!(_engineExists)) || (!(Boolean(__tweener_controller__))))){
startEngine();
};
_local8 = (isNaN(_local7.time)) ? 0 : _local7.time;
_local9 = (isNaN(_local7.delay)) ? 0 : _local7.delay;
_local10 = new Array();
_local11 = {time:true, delay:true, useFrames:true, skipUpdates:true, transition:true, transitionParams:true, onStart:true, onUpdate:true, onComplete:true, onOverwrite:true, onError:true, rounded:true, onStartParams:true, onUpdateParams:true, onCompleteParams:true, onOverwriteParams:true, onStartScope:true, onUpdateScope:true, onCompleteScope:true, onOverwriteScope:true, onErrorScope:true};
_local12 = new Object();
for (_local5 in _local7) {
if (!_local11[_local5]){
if (_specialPropertySplitterList[_local5]){
_local17 = _specialPropertySplitterList[_local5].splitValues(_local7[_local5], _specialPropertySplitterList[_local5].parameters);
_local3 = 0;
while (_local3 < _local17.length) {
if (_specialPropertySplitterList[_local17[_local3].name]){
_local18 = _specialPropertySplitterList[_local17[_local3].name].splitValues(_local17[_local3].value, _specialPropertySplitterList[_local17[_local3].name].parameters);
_local4 = 0;
while (_local4 < _local18.length) {
_local10[_local18[_local4].name] = {valueStart:undefined, valueComplete:_local18[_local4].value, arrayIndex:_local18[_local4].arrayIndex, isSpecialProperty:false};
_local4++;
};
} else {
_local10[_local17[_local3].name] = {valueStart:undefined, valueComplete:_local17[_local3].value, arrayIndex:_local17[_local3].arrayIndex, isSpecialProperty:false};
};
_local3++;
};
} else {
if (_specialPropertyModifierList[_local5] != undefined){
_local19 = _specialPropertyModifierList[_local5].modifyValues(_local7[_local5]);
_local3 = 0;
while (_local3 < _local19.length) {
_local12[_local19[_local3].name] = {modifierParameters:_local19[_local3].parameters, modifierFunction:_specialPropertyModifierList[_local5].getValue};
_local3++;
};
} else {
_local10[_local5] = {valueStart:undefined, valueComplete:_local7[_local5]};
};
};
};
};
for (_local5 in _local10) {
if (_specialPropertyList[_local5] != undefined){
_local10[_local5].isSpecialProperty = true;
} else {
if (_local6[0][_local5] == undefined){
printError((((("The property '" + _local5) + "' doesn't seem to be a normal object property of ") + String(_local6[0])) + " or a registered special property."));
};
};
};
for (_local5 in _local12) {
if (_local10[_local5] != undefined){
_local10[_local5].modifierParameters = _local12[_local5].modifierParameters;
_local10[_local5].modifierFunction = _local12[_local5].modifierFunction;
};
};
if (typeof(_local7.transition) == "string"){
_local20 = _local7.transition.toLowerCase();
_local13 = _transitionList[_local20];
} else {
_local13 = _local7.transition;
};
if (!Boolean(_local13)){
_local13 = _transitionList["easeoutexpo"];
};
_local3 = 0;
while (_local3 < _local6.length) {
_local14 = new Object();
for (_local5 in _local10) {
_local14[_local5] = new PropertyInfoObj(_local10[_local5].valueStart, _local10[_local5].valueComplete, _local10[_local5].valueComplete, _local10[_local5].arrayIndex, {}, _local10[_local5].isSpecialProperty, _local10[_local5].modifierFunction, _local10[_local5].modifierParameters);
};
if (_local7.useFrames == true){
_local15 = new TweenListObj(_local6[_local3], (_currentTimeFrame + (_local9 / _timeScale)), (_currentTimeFrame + ((_local9 + _local8) / _timeScale)), true, _local13, _local7.transitionParams);
} else {
_local15 = new TweenListObj(_local6[_local3], (_currentTime + ((_local9 * 1000) / _timeScale)), (_currentTime + (((_local9 * 1000) + (_local8 * 1000)) / _timeScale)), false, _local13, _local7.transitionParams);
};
_local15.properties = _local14;
_local15.onStart = _local7.onStart;
_local15.onUpdate = _local7.onUpdate;
_local15.onComplete = _local7.onComplete;
_local15.onOverwrite = _local7.onOverwrite;
_local15.onError = _local7.onError;
_local15.onStartParams = _local7.onStartParams;
_local15.onUpdateParams = _local7.onUpdateParams;
_local15.onCompleteParams = _local7.onCompleteParams;
_local15.onOverwriteParams = _local7.onOverwriteParams;
_local15.onStartScope = _local7.onStartScope;
_local15.onUpdateScope = _local7.onUpdateScope;
_local15.onCompleteScope = _local7.onCompleteScope;
_local15.onOverwriteScope = _local7.onOverwriteScope;
_local15.onErrorScope = _local7.onErrorScope;
_local15.rounded = _local7.rounded;
_local15.skipUpdates = _local7.skipUpdates;
removeTweensByTime(_local15.scope, _local15.properties, _local15.timeStart, _local15.timeComplete);
_tweenList.push(_local15);
if ((((_local8 == 0)) && ((_local9 == 0)))){
_local16 = (_tweenList.length - 1);
updateTweenByIndex(_local16);
removeTweenByIndex(_local16);
};
_local3++;
};
return (true);
}
public static function registerTransition(_arg1:String, _arg2:Function):void{
if (!_inited){
init();
};
_transitionList[_arg1] = _arg2;
}
public static function printError(_arg1:String):void{
trace(("## [Tweener] Error: " + _arg1));
}
private static function affectTweens(_arg1:Function, _arg2:Object, _arg3:Array):Boolean{
var _local4:Boolean;
var _local5:uint;
var _local6:Array;
var _local7:uint;
var _local8:uint;
var _local9:uint;
_local4 = false;
if (!Boolean(_tweenList)){
return (false);
};
_local5 = 0;
while (_local5 < _tweenList.length) {
if (((_tweenList[_local5]) && ((_tweenList[_local5].scope == _arg2)))){
if (_arg3.length == 0){
_arg1(_local5);
_local4 = true;
} else {
_local6 = new Array();
_local7 = 0;
while (_local7 < _arg3.length) {
if (Boolean(_tweenList[_local5].properties[_arg3[_local7]])){
_local6.push(_arg3[_local7]);
};
_local7++;
};
if (_local6.length > 0){
_local8 = AuxFunctions.getObjectLength(_tweenList[_local5].properties);
if (_local8 == _local6.length){
_arg1(_local5);
_local4 = true;
} else {
_local9 = splitTweens(_local5, _local6);
_arg1(_local9);
_local4 = true;
};
};
};
};
_local5++;
};
return (_local4);
}
public static function getTweens(_arg1:Object):Array{
var _local2:uint;
var _local3:String;
var _local4:Array;
if (!Boolean(_tweenList)){
return ([]);
};
_local4 = new Array();
_local2 = 0;
while (_local2 < _tweenList.length) {
if (((Boolean(_tweenList[_local2])) && ((_tweenList[_local2].scope == _arg1)))){
for (_local3 in _tweenList[_local2].properties) {
_local4.push(_local3);
};
};
_local2++;
};
return (_local4);
}
public static function isTweening(_arg1:Object):Boolean{
var _local2:uint;
if (!Boolean(_tweenList)){
return (false);
};
_local2 = 0;
while (_local2 < _tweenList.length) {
if (((Boolean(_tweenList[_local2])) && ((_tweenList[_local2].scope == _arg1)))){
return (true);
};
_local2++;
};
return (false);
}
public static function pauseTweenByIndex(_arg1:Number):Boolean{
var _local2:TweenListObj;
_local2 = _tweenList[_arg1];
if ((((_local2 == null)) || (_local2.isPaused))){
return (false);
};
_local2.timePaused = getCurrentTweeningTime(_local2);
_local2.isPaused = true;
return (true);
}
public static function getCurrentTweeningTime(_arg1:Object):Number{
return ((_arg1.useFrames) ? _currentTimeFrame : _currentTime);
}
public static function getTweenCount(_arg1:Object):Number{
var _local2:uint;
var _local3:Number;
if (!Boolean(_tweenList)){
return (0);
};
_local3 = 0;
_local2 = 0;
while (_local2 < _tweenList.length) {
if (((Boolean(_tweenList[_local2])) && ((_tweenList[_local2].scope == _arg1)))){
_local3 = (_local3 + AuxFunctions.getObjectLength(_tweenList[_local2].properties));
};
_local2++;
};
return (_local3);
}
private static function stopEngine():void{
_engineExists = false;
_tweenList = null;
_currentTime = 0;
_currentTimeFrame = 0;
__tweener_controller__.removeEventListener(Event.ENTER_FRAME, Tweener.onEnterFrame);
__tweener_controller__ = null;
}
public static function removeTweensByTime(_arg1:Object, _arg2:Object, _arg3:Number, _arg4:Number):Boolean{
var removed:Boolean;
var removedLocally:Boolean;
var i:uint;
var tl:uint;
var pName:String;
var eventScope:Object;
var p_scope = _arg1;
var p_properties = _arg2;
var p_timeStart = _arg3;
var p_timeComplete = _arg4;
removed = false;
tl = _tweenList.length;
i = 0;
while (i < tl) {
if (((Boolean(_tweenList[i])) && ((p_scope == _tweenList[i].scope)))){
if ((((p_timeComplete > _tweenList[i].timeStart)) && ((p_timeStart < _tweenList[i].timeComplete)))){
removedLocally = false;
for (pName in _tweenList[i].properties) {
if (Boolean(p_properties[pName])){
if (Boolean(_tweenList[i].onOverwrite)){
eventScope = (Boolean(_tweenList[i].onOverwriteScope)) ? _tweenList[i].onOverwriteScope : _tweenList[i].scope;
try {
_tweenList[i].onOverwrite.apply(eventScope, _tweenList[i].onOverwriteParams);
} catch(e:Error) {
handleError(_tweenList[i], e, "onOverwrite");
};
};
_tweenList[i].properties[pName] = undefined;
delete _tweenList[i].properties[pName];
removedLocally = true;
removed = true;
};
};
if (removedLocally){
if (AuxFunctions.getObjectLength(_tweenList[i].properties) == 0){
removeTweenByIndex(i);
};
};
};
};
i = (i + 1);
};
return (removed);
}
public static function registerSpecialPropertySplitter(_arg1:String, _arg2:Function, _arg3:Array=null):void{
var _local4:SpecialPropertySplitter;
if (!_inited){
init();
};
_local4 = new SpecialPropertySplitter(_arg2, _arg3);
_specialPropertySplitterList[_arg1] = _local4;
}
public static function removeTweenByIndex(_arg1:Number, _arg2:Boolean=false):Boolean{
_tweenList[_arg1] = null;
if (_arg2){
_tweenList.splice(_arg1, 1);
};
return (true);
}
public static function resumeTweens(_arg1:Object, ... _args):Boolean{
var _local3:Array;
var _local4:uint;
_local3 = new Array();
_local4 = 0;
while (_local4 < _args.length) {
if ((((typeof(_args[_local4]) == "string")) && (!(AuxFunctions.isInArray(_args[_local4], _local3))))){
_local3.push(_args[_local4]);
};
_local4++;
};
return (affectTweens(resumeTweenByIndex, _arg1, _local3));
}
public static function pauseTweens(_arg1:Object, ... _args):Boolean{
var _local3:Array;
var _local4:uint;
_local3 = new Array();
_local4 = 0;
while (_local4 < _args.length) {
if ((((typeof(_args[_local4]) == "string")) && (!(AuxFunctions.isInArray(_args[_local4], _local3))))){
_local3.push(_args[_local4]);
};
_local4++;
};
return (affectTweens(pauseTweenByIndex, _arg1, _local3));
}
}
}//package caurina.transitions
Section 8
//TweenListObj (caurina.transitions.TweenListObj)
package caurina.transitions {
public class TweenListObj {
public var onUpdate:Function;
public var useFrames:Boolean;
public var hasStarted:Boolean;
public var onOverwriteParams:Array;
public var timeStart:Number;
public var count:Number;
public var timeComplete:Number;
public var onStartParams:Array;
public var onUpdateScope:Object;
public var rounded:Boolean;
public var onUpdateParams:Array;
public var properties:Object;
public var onComplete:Function;
public var transitionParams:Object;
public var updatesSkipped:Number;
public var onStart:Function;
public var onOverwriteScope:Object;
public var skipUpdates:Number;
public var onStartScope:Object;
public var scope:Object;
public var transition:Function;
public var timePaused:Number;
public var onCompleteParams:Array;
public var timesCalled:Number;
public var isCaller:Boolean;
public var onError:Function;
public var onErrorScope:Object;
public var onOverwrite:Function;
public var isPaused:Boolean;
public var waitFrames:Boolean;
public var onCompleteScope:Object;
public function TweenListObj(_arg1:Object, _arg2:Number, _arg3:Number, _arg4:Boolean, _arg5:Function, _arg6:Object){
scope = _arg1;
timeStart = _arg2;
timeComplete = _arg3;
useFrames = _arg4;
transition = _arg5;
transitionParams = _arg6;
properties = new Object();
isPaused = false;
timePaused = undefined;
isCaller = false;
updatesSkipped = 0;
timesCalled = 0;
skipUpdates = 0;
hasStarted = false;
}
public function clone(_arg1:Boolean):TweenListObj{
var _local2:TweenListObj;
var _local3:String;
_local2 = new TweenListObj(scope, timeStart, timeComplete, useFrames, transition, transitionParams);
_local2.properties = new Array();
for (_local3 in properties) {
_local2.properties[_local3] = properties[_local3].clone();
};
_local2.skipUpdates = skipUpdates;
_local2.updatesSkipped = updatesSkipped;
if (!_arg1){
_local2.onStart = onStart;
_local2.onUpdate = onUpdate;
_local2.onComplete = onComplete;
_local2.onOverwrite = onOverwrite;
_local2.onError = onError;
_local2.onStartParams = onStartParams;
_local2.onUpdateParams = onUpdateParams;
_local2.onCompleteParams = onCompleteParams;
_local2.onOverwriteParams = onOverwriteParams;
_local2.onStartScope = onStartScope;
_local2.onUpdateScope = onUpdateScope;
_local2.onCompleteScope = onCompleteScope;
_local2.onOverwriteScope = onOverwriteScope;
_local2.onErrorScope = onErrorScope;
};
_local2.rounded = rounded;
_local2.isPaused = isPaused;
_local2.timePaused = timePaused;
_local2.isCaller = isCaller;
_local2.count = count;
_local2.timesCalled = timesCalled;
_local2.waitFrames = waitFrames;
_local2.hasStarted = hasStarted;
return (_local2);
}
public function toString():String{
var _local1:String;
var _local2:Boolean;
var _local3:String;
_local1 = "\n[TweenListObj ";
_local1 = (_local1 + ("scope:" + String(scope)));
_local1 = (_local1 + ", properties:");
_local2 = true;
for (_local3 in properties) {
if (!_local2){
_local1 = (_local1 + ",");
};
_local1 = (_local1 + ("[name:" + properties[_local3].name));
_local1 = (_local1 + (",valueStart:" + properties[_local3].valueStart));
_local1 = (_local1 + (",valueComplete:" + properties[_local3].valueComplete));
_local1 = (_local1 + "]");
_local2 = false;
};
_local1 = (_local1 + (", timeStart:" + String(timeStart)));
_local1 = (_local1 + (", timeComplete:" + String(timeComplete)));
_local1 = (_local1 + (", useFrames:" + String(useFrames)));
_local1 = (_local1 + (", transition:" + String(transition)));
_local1 = (_local1 + (", transitionParams:" + String(transitionParams)));
if (skipUpdates){
_local1 = (_local1 + (", skipUpdates:" + String(skipUpdates)));
};
if (updatesSkipped){
_local1 = (_local1 + (", updatesSkipped:" + String(updatesSkipped)));
};
if (Boolean(onStart)){
_local1 = (_local1 + (", onStart:" + String(onStart)));
};
if (Boolean(onUpdate)){
_local1 = (_local1 + (", onUpdate:" + String(onUpdate)));
};
if (Boolean(onComplete)){
_local1 = (_local1 + (", onComplete:" + String(onComplete)));
};
if (Boolean(onOverwrite)){
_local1 = (_local1 + (", onOverwrite:" + String(onOverwrite)));
};
if (Boolean(onError)){
_local1 = (_local1 + (", onError:" + String(onError)));
};
if (onStartParams){
_local1 = (_local1 + (", onStartParams:" + String(onStartParams)));
};
if (onUpdateParams){
_local1 = (_local1 + (", onUpdateParams:" + String(onUpdateParams)));
};
if (onCompleteParams){
_local1 = (_local1 + (", onCompleteParams:" + String(onCompleteParams)));
};
if (onOverwriteParams){
_local1 = (_local1 + (", onOverwriteParams:" + String(onOverwriteParams)));
};
if (onStartScope){
_local1 = (_local1 + (", onStartScope:" + String(onStartScope)));
};
if (onUpdateScope){
_local1 = (_local1 + (", onUpdateScope:" + String(onUpdateScope)));
};
if (onCompleteScope){
_local1 = (_local1 + (", onCompleteScope:" + String(onCompleteScope)));
};
if (onOverwriteScope){
_local1 = (_local1 + (", onOverwriteScope:" + String(onOverwriteScope)));
};
if (onErrorScope){
_local1 = (_local1 + (", onErrorScope:" + String(onErrorScope)));
};
if (rounded){
_local1 = (_local1 + (", rounded:" + String(rounded)));
};
if (isPaused){
_local1 = (_local1 + (", isPaused:" + String(isPaused)));
};
if (timePaused){
_local1 = (_local1 + (", timePaused:" + String(timePaused)));
};
if (isCaller){
_local1 = (_local1 + (", isCaller:" + String(isCaller)));
};
if (count){
_local1 = (_local1 + (", count:" + String(count)));
};
if (timesCalled){
_local1 = (_local1 + (", timesCalled:" + String(timesCalled)));
};
if (waitFrames){
_local1 = (_local1 + (", waitFrames:" + String(waitFrames)));
};
if (hasStarted){
_local1 = (_local1 + (", hasStarted:" + String(hasStarted)));
};
_local1 = (_local1 + "]\n");
return (_local1);
}
public static function makePropertiesChain(_arg1:Object):Object{
var _local2:Object;
var _local3:Object;
var _local4:Object;
var _local5:Object;
var _local6:Number;
var _local7:Number;
var _local8:Number;
_local2 = _arg1.base;
if (_local2){
_local3 = {};
if ((_local2 is Array)){
_local4 = [];
_local8 = 0;
while (_local8 < _local2.length) {
_local4.push(_local2[_local8]);
_local8++;
};
} else {
_local4 = [_local2];
};
_local4.push(_arg1);
_local6 = _local4.length;
_local7 = 0;
while (_local7 < _local6) {
if (_local4[_local7]["base"]){
_local5 = AuxFunctions.concatObjects(makePropertiesChain(_local4[_local7]["base"]), _local4[_local7]);
} else {
_local5 = _local4[_local7];
};
_local3 = AuxFunctions.concatObjects(_local3, _local5);
_local7++;
};
if (_local3["base"]){
delete _local3["base"];
};
return (_local3);
//unresolved jump
};
return (_arg1);
}
}
}//package caurina.transitions
Section 9
//Asset_44 (SabrinaWitch_fla.Asset_44)
package SabrinaWitch_fla {
import flash.display.*;
public dynamic class Asset_44 extends MovieClip {
public var logo1:CLogo;
}
}//package SabrinaWitch_fla
Section 10
//easygirlgames_promo_ani4_317 (SabrinaWitch_fla.easygirlgames_promo_ani4_317)
package SabrinaWitch_fla {
import flash.geom.*;
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.filters.*;
import flash.net.*;
import flash.external.*;
import flash.utils.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
public dynamic class easygirlgames_promo_ani4_317 extends MovieClip {
public function easygirlgames_promo_ani4_317(){
addFrameScript(4, frame5);
}
function frame5(){
stop();
}
}
}//package SabrinaWitch_fla
Section 11
//kelopak_351 (SabrinaWitch_fla.kelopak_351)
package SabrinaWitch_fla {
import flash.display.*;
public dynamic class kelopak_351 extends MovieClip {
public var kelopak:MovieClip;
}
}//package SabrinaWitch_fla
Section 12
//lazybananaproduction_59 (SabrinaWitch_fla.lazybananaproduction_59)
package SabrinaWitch_fla {
import flash.display.*;
import flash.text.*;
public dynamic class lazybananaproduction_59 extends MovieClip {
public var mTitle:TextField;
}
}//package SabrinaWitch_fla
Section 13
//MusicBtn_47 (SabrinaWitch_fla.MusicBtn_47)
package SabrinaWitch_fla {
import flash.geom.*;
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.filters.*;
import flash.net.*;
import flash.external.*;
import flash.utils.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
public dynamic class MusicBtn_47 extends MovieClip {
public function MusicBtn_47(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package SabrinaWitch_fla
Section 14
//OptionBarPopUp_50 (SabrinaWitch_fla.OptionBarPopUp_50)
package SabrinaWitch_fla {
import flash.display.*;
import flash.text.*;
public dynamic class OptionBarPopUp_50 extends MovieClip {
public var mText:TextField;
}
}//package SabrinaWitch_fla
Section 15
//preloader_anim_1 (SabrinaWitch_fla.preloader_anim_1)
package SabrinaWitch_fla {
import flash.geom.*;
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.filters.*;
import flash.net.*;
import flash.external.*;
import flash.utils.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
public dynamic class preloader_anim_1 extends MovieClip {
public var bar:MovieClip;
public var ending:Boolean;
public var BYTES_TOTAL:int;
public var girl:MovieClip;
public function preloader_anim_1(){
addFrameScript(0, frame1, 63, frame64, 120, frame121, 121, frame122, 160, frame161);
}
function frame64(){
girl.gotoAndPlay("nudge");
}
public function Loading(_arg1:Event){
Main.GetInstance().KepleSuper(((((((((("CurFrame : " + this.currentFrame) + " - constBt : ") + BYTES_TOTAL) + " - loaderInfoBt : ") + stage.loaderInfo.bytesTotal) + " - loaded: ") + stage.loaderInfo.bytesLoaded) + " - ending:") + ending));
}
function frame161(){
stop();
MovieClip(root).gotoAndPlay(2);
}
function frame1(){
BYTES_TOTAL = 424819;
trace(("### BYTES TOTAL : " + stage.loaderInfo.bytesTotal));
Main.GetInstance().KepleSuper(((("INIT CONST BYTES_TOTAL : " + BYTES_TOTAL) + " - loaderInfo.bt : ") + stage.loaderInfo.bytesTotal));
this.addEventListener(Event.ENTER_FRAME, Loading);
ending = false;
this.buttonMode = true;
this.useHandCursor = true;
this.addEventListener(MouseEvent.CLICK, onMouseClickEvent);
}
public function onMouseClickEvent(_arg1:Event){
var url:String;
var request:URLRequest;
var event = _arg1;
url = "http://www.easygirlgames.com/?utm_campaign=preloader&utm_source=preloader";
request = new URLRequest(url);
try {
navigateToURL(request, "_blank");
} catch(e:Error) {
trace("Error requesting url!");
};
}
function frame122(){
girl.gotoAndPlay("wink");
ending = true;
}
function frame121(){
Main.GetInstance().KepleSuper(("Frame 121 ending : " + ending));
if (ending != true){
stop();
} else {
Main.GetInstance().KepleSuper("setting preloader to 100");
bar.setPreloader(100);
};
}
}
}//package SabrinaWitch_fla
Section 16
//preloader_Girl_character_9 (SabrinaWitch_fla.preloader_Girl_character_9)
package SabrinaWitch_fla {
import flash.geom.*;
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.filters.*;
import flash.net.*;
import flash.external.*;
import flash.utils.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
public dynamic class preloader_Girl_character_9 extends MovieClip {
public var head:MovieClip;
public function preloader_Girl_character_9(){
addFrameScript(0, frame1, 10, frame11, 11, frame12, 22, frame23);
}
function frame12(){
head.gotoAndPlay(2);
}
function frame1(){
stop();
}
function frame23(){
gotoAndStop(1);
}
function frame11(){
gotoAndStop(1);
}
}
}//package SabrinaWitch_fla
Section 17
//preloader_head_25 (SabrinaWitch_fla.preloader_head_25)
package SabrinaWitch_fla {
import flash.geom.*;
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.filters.*;
import flash.net.*;
import flash.external.*;
import flash.utils.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
public dynamic class preloader_head_25 extends MovieClip {
public function preloader_head_25(){
addFrameScript(0, frame1, 8, frame9);
}
function frame1(){
stop();
}
function frame9(){
gotoAndStop(1);
}
}
}//package SabrinaWitch_fla
Section 18
//preloader_preloader_36 (SabrinaWitch_fla.preloader_preloader_36)
package SabrinaWitch_fla {
import flash.geom.*;
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.filters.*;
import flash.net.*;
import flash.external.*;
import flash.utils.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
public dynamic class preloader_preloader_36 extends MovieClip {
public var bar:MovieClip;
public var prevLoaded:int;
public var bt2:int;
public var t:int;
public var barMask:MovieClip;
public function preloader_preloader_36(){
addFrameScript(0, frame1);
}
public function setPreloader(_arg1){
var _local2:*;
bar.x = (-100 + (2 * _arg1));
_local2 = (bar.x + 100);
if (_local2 <= 16){
barMask.msk_left.width = (barMask.msk_right.width = (_local2 / 2));
barMask.msk_right.x = barMask.msk_left.width;
barMask.msk_middle.width = 0;
} else {
barMask.msk_left.width = (barMask.msk_right.width = 8);
barMask.msk_middle.width = (_local2 - 16);
barMask.msk_right.x = (barMask.msk_middle.width + 8);
};
Main.GetInstance().KepleSuper(("setPreloader : " + _arg1));
if (_arg1 >= 100){
this.removeEventListener(Event.ENTER_FRAME, PL_LOADING);
if (MovieClip(parent).currentFrame < 110){
MovieClip(parent).ending = true;
} else {
MovieClip(parent).gotoAndPlay("ending");
};
};
}
function frame1(){
bar.mask = barMask;
this.addEventListener(Event.ENTER_FRAME, PL_LOADING);
t = 0;
prevLoaded = 0;
bt2 = stage.loaderInfo.bytesTotal;
if (parent.BYTES_TOTAL > 0){
bt2 = parent.BYTES_TOTAL;
};
setPreloader(((loaderInfo.bytesLoaded / bt2) * 100));
}
public function PL_LOADING(_arg1:Event):void{
var _local2:int;
var _local3:int;
var _local4:Number;
_local2 = stage.loaderInfo.bytesTotal;
if (parent.BYTES_TOTAL > 0){
_local2 = parent.BYTES_TOTAL;
};
_local3 = stage.loaderInfo.bytesLoaded;
_local4 = ((_local3 / _local2) * 100);
_local4 = ((_local4 > 100)) ? 100 : _local4;
_local4 = ((_local4 < 0)) ? 0 : _local4;
if (prevLoaded == _local3){
t++;
} else {
t = 0;
};
Main.GetInstance().KepleSuper(((((((("t : " + t) + " - pcent : ") + _local4) + " - byteLoaded : ") + _local3) + "/") + _local2));
if ((((((_local4 >= 100)) && ((t > 20)))) || ((t > 60)))){
setPreloader(100);
} else {
if (_local4 < 100){
setPreloader(_local4);
};
};
prevLoaded = _local3;
}
}
}//package SabrinaWitch_fla
Section 19
//preloader_preloadermask_39 (SabrinaWitch_fla.preloader_preloadermask_39)
package SabrinaWitch_fla {
import flash.display.*;
public dynamic class preloader_preloadermask_39 extends MovieClip {
public var msk_left:MovieClip;
public var msk_middle:MovieClip;
public var msk_right:MovieClip;
}
}//package SabrinaWitch_fla
Section 20
//QualityBtn_48 (SabrinaWitch_fla.QualityBtn_48)
package SabrinaWitch_fla {
import flash.geom.*;
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.filters.*;
import flash.net.*;
import flash.external.*;
import flash.utils.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
public dynamic class QualityBtn_48 extends MovieClip {
public function QualityBtn_48(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package SabrinaWitch_fla
Section 21
//SFXBtn_49 (SabrinaWitch_fla.SFXBtn_49)
package SabrinaWitch_fla {
import flash.geom.*;
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.filters.*;
import flash.net.*;
import flash.external.*;
import flash.utils.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
public dynamic class SFXBtn_49 extends MovieClip {
public function SFXBtn_49(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame4(){
stop();
}
function frame2(){
stop();
}
}
}//package SabrinaWitch_fla
Section 22
//CAks (CAks)
package {
import flash.display.*;
public dynamic class CAks extends MovieClip {
public var _2:MovieClip;
public var _4:MovieClip;
public var _6:MovieClip;
public var _1:MovieClip;
public var _3:MovieClip;
public var _5:MovieClip;
}
}//package
Section 23
//CBaju (CBaju)
package {
import flash.display.*;
public dynamic class CBaju extends MovieClip {
public var _2:MovieClip;
public var _4:MovieClip;
public var _6:MovieClip;
public var _8:MovieClip;
public var _3:MovieClip;
public var _5:MovieClip;
public var _1:MovieClip;
public var _7:MovieClip;
}
}//package
Section 24
//CBannedWin (CBannedWin)
package {
import flash.geom.*;
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.filters.*;
import flash.net.*;
import flash.external.*;
import flash.utils.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
public dynamic class CBannedWin extends MovieClip {
public var mBtn:SimpleButton;
public function CBannedWin(){
addFrameScript(0, frame1);
}
function frame1(){
mBtn.addEventListener(MouseEvent.MOUSE_DOWN, GotoSapi);
}
public function GotoSapi(_arg1:MouseEvent){
var _local2:URLRequest;
_local2 = new URLRequest("http://www.lazybanana.com");
navigateToURL(_local2);
}
}
}//package
Section 25
//CBaseMovieClip (CBaseMovieClip)
package {
import flash.display.*;
import flash.events.*;
public class CBaseMovieClip extends MovieClip {
public var mEventType:String;
public function CBaseMovieClip(_arg1:String){
mEventType = _arg1;
}
public function AddDispatcher():void{
Main.GetInstance().addEventListener(mEventType, Update, false, 0, true);
}
public function RemoveDispatcher(){
Main.GetInstance().removeEventListener(mEventType, Update);
}
public function Update(_arg1:Event){
}
}
}//package
Section 26
//CBawahan (CBawahan)
package {
import flash.display.*;
public dynamic class CBawahan extends MovieClip {
}
}//package
Section 27
//CBawahan2 (CBawahan2)
package {
import flash.display.*;
public dynamic class CBawahan2 extends MovieClip {
public var bawahan:CBawahan;
}
}//package
Section 28
//CBg (CBg)
package {
import flash.display.*;
public dynamic class CBg extends MovieClip {
public var btnStart:SimpleButton;
public var reset:MovieClip;
public var UI:MovieClip;
public var btnPlay:SimpleButton;
public var bgBack:MovieClip;
public var logo2:CLogo;
}
}//package
Section 29
//CBJudul (CBJudul)
package {
import flash.display.*;
public dynamic class CBJudul extends MovieClip {
public var BJudul2:MovieClip;
}
}//package
Section 30
//CBJudul2 (CBJudul2)
package {
import flash.display.*;
public dynamic class CBJudul2 extends MovieClip {
public var BJudul2:MovieClip;
}
}//package
Section 31
//CBodyAtas (CBodyAtas)
package {
import flash.display.*;
public dynamic class CBodyAtas extends MovieClip {
}
}//package
Section 32
//CBodyBawah (CBodyBawah)
package {
import flash.display.*;
public dynamic class CBodyBawah extends MovieClip {
public var atasan:MovieClip;
}
}//package
Section 33
//CCelana (CCelana)
package {
import flash.display.*;
public dynamic class CCelana extends MovieClip {
public var _2:MovieClip;
public var _4:MovieClip;
public var _6:MovieClip;
public var _8:MovieClip;
public var _9:MovieClip;
public var _3:MovieClip;
public var _5:MovieClip;
public var _10:MovieClip;
public var _1:MovieClip;
public var _7:MovieClip;
}
}//package
Section 34
//CCredit (CCredit)
package {
import flash.geom.*;
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.filters.*;
import flash.net.*;
import flash.external.*;
import flash.utils.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
public dynamic class CCredit extends MovieClip {
public var mTitle:MovieClip;
public var mFilter:Array;
public var mClose:MovieClip;
public var mLogo:MovieClip;
public function CCredit(){
addFrameScript(0, frame1);
}
public function onMouseOver(_arg1:MouseEvent){
var _local2:GlowFilter;
_local2 = new GlowFilter(0x9900, 1, 5, 5, 3);
if (_arg1.currentTarget.name == "mClose"){
mFilter = _arg1.currentTarget.filters.slice(0, 1);
_arg1.currentTarget.filters = mFilter.concat([_local2]);
return;
};
_arg1.currentTarget.filters = [_local2];
}
public function onMouseUp(_arg1:MouseEvent){
if ((((_arg1.currentTarget.name == "mTitle")) || ((_arg1.currentTarget.name == "mLogo")))){
Global.openWindow();
};
if (_arg1.currentTarget.name == "mClose"){
parent.removeChild(this);
};
}
function frame1(){
if (!mTitle.hasEventListener(MouseEvent.MOUSE_UP)){
mTitle.addEventListener(MouseEvent.MOUSE_UP, onMouseUp, false, 0, true);
mTitle.addEventListener(MouseEvent.MOUSE_OVER, onMouseOver, false, 0, true);
mTitle.addEventListener(MouseEvent.MOUSE_OUT, onMouseOut, false, 0, true);
mTitle.mouseChildren = false;
mTitle.buttonMode = true;
mTitle.useHandCursor = true;
mLogo.addEventListener(MouseEvent.MOUSE_UP, onMouseUp, false, 0, true);
mLogo.addEventListener(MouseEvent.MOUSE_OVER, onMouseOver, false, 0, true);
mLogo.addEventListener(MouseEvent.MOUSE_OUT, onMouseOut, false, 0, true);
mLogo.mouseChildren = false;
mLogo.buttonMode = true;
mLogo.useHandCursor = true;
mClose.addEventListener(MouseEvent.MOUSE_UP, onMouseUp, false, 0, true);
mClose.addEventListener(MouseEvent.MOUSE_OVER, onMouseOver, false, 0, true);
mClose.addEventListener(MouseEvent.MOUSE_OUT, onMouseOut, false, 0, true);
mClose.mouseChildren = false;
mClose.buttonMode = true;
mClose.useHandCursor = true;
};
}
public function onMouseOut(_arg1:MouseEvent){
if (_arg1.currentTarget.name == "mClose"){
_arg1.currentTarget.filters = mFilter;
return;
};
_arg1.currentTarget.filters = [];
}
}
}//package
Section 35
//CDress (CDress)
package {
import flash.display.*;
public dynamic class CDress extends MovieClip {
public var _2:MovieClip;
public var _4:MovieClip;
public var _6:MovieClip;
public var _1:MovieClip;
public var _3:MovieClip;
public var _5:MovieClip;
public var _7:MovieClip;
}
}//package
Section 36
//CGame (CGame)
package {
import flash.events.*;
import caurina.transitions.*;
import flash.filters.*;
public class CGame extends CBaseMovieClip {
public var sarung3:CSarung3;
public var urutan:Array;
public var dress:CDress;
public var ctr:int;
public var BJudul2:CBJudul2;
public var bg:CBg;
public var socksBawah:CSocksBawah;
public var rambutBawah:CRambutBawah;
public var bodyAtas:CBodyAtas;
public var celana:CCelana;
public var orang2:CPutih;
public var sepatu:CSepatu;
public var kepala:CKepala;
public var aks:CAks;
public var icon:CIcon;
public var tangan:CTangan;
public var bawahan:CBawahan2;
public var glow:GlowFilter;
public var muncul:Boolean;// = true
public var bodyBawah:CBodyBawah;
public var baju:CBaju;
public var laen:CLaen2;
public var logo1:CLogo;
public var rambutAtas:CRambutAtas;
public var sarung1:CSarung1;
public var sarung2:CSarung2;
private static var CGameGlobal:CGame;
public function CGame(){
urutan = new Array(20);
glow = new GlowFilter();
muncul = true;
super("update");
CGameGlobal = this;
trace("init cgame");
init();
cekBtn();
}
public function init(){
var _local1:*;
bg = new CBg();
addChild(bg);
bg.x = 0;
bg.y = 0;
bg.btnStart.x = -120;
bg.btnStart.y = (bg.btnStart.y + 20);
bg.btnPlay.x = -120;
bg.bgBack.visible = false;
bg.UI.visible = false;
bg.reset.visible = false;
bg.bgBack.visible = false;
logo1 = new CLogo();
addChild(logo1);
logo1.x = 700;
logo1.y = 550;
logo1.visible = false;
logo1.name = "logo1";
bg.logo2.visible = false;
icon = new CIcon();
addChild(icon);
icon.x = 50.5;
icon.y = 40;
_local1 = 1;
while (_local1 <= 10) {
urutan[_local1] = 0;
_local1++;
};
icon.alpha = 0;
icon.visible = false;
laen = new CLaen2();
addChild(laen);
laen.x = 107.676;
laen.y = (600 - 483);
rambutBawah = new CRambutBawah();
addChild(rambutBawah);
rambutBawah.x = 284;
rambutBawah.y = 30;
bodyAtas = new CBodyAtas();
addChild(bodyAtas);
bodyAtas.x = 395;
bodyAtas.y = 181.5;
sarung3 = new CSarung3();
addChild(sarung3);
sarung3.x = 395.5;
sarung3.y = (600 - 336.8);
bodyBawah = new CBodyBawah();
addChild(bodyBawah);
bodyBawah.x = 393;
bodyBawah.y = 197.5;
sarung2 = new CSarung2();
addChild(sarung2);
sarung2.x = 466.1;
sarung2.y = (600 - 370.8);
socksBawah = new CSocksBawah();
addChild(socksBawah);
socksBawah.x = 392.983;
socksBawah.y = (600 - 280.26);
bawahan = new CBawahan2();
addChild(bawahan);
bawahan.x = 396.75;
bawahan.y = (600 - 289.25);
sepatu = new CSepatu();
addChild(sepatu);
sepatu.x = 389.5;
sepatu.y = (600 - 183.5);
celana = new CCelana();
addChild(celana);
celana.x = 359.5;
celana.y = (600 - 301.33);
dress = new CDress();
addChild(dress);
dress.x = 351.66;
dress.y = (600 - 396.66);
tangan = new CTangan();
addChild(tangan);
tangan.x = 387.5;
tangan.y = (600 - 294);
sarung1 = new CSarung1();
addChild(sarung1);
sarung1.x = 387.274;
sarung1.y = (600 - 366.75);
baju = new CBaju();
addChild(baju);
baju.x = 403.084;
baju.y = (600 - 406.455);
kepala = new CKepala();
addChild(kepala);
kepala.x = 446;
kepala.y = 116;
kepala.buluMata2.visible = false;
kepala.buluMata3.visible = false;
aks = new CAks();
addChild(aks);
aks.x = 439.75;
aks.y = (600 - 409.33);
rambutAtas = new CRambutAtas();
addChild(rambutAtas);
rambutAtas.x = 353.775;
rambutAtas.y = 15.5;
BJudul = new CBJudul();
addChild(BJudul);
BJudul.alpha = 0;
BJudul.x = 560.3;
BJudul.y = 481;
BJudul2 = new CBJudul2();
addChild(BJudul2);
BJudul2.alpha = 0;
BJudul2.x = 560.3;
BJudul2.y = 481;
orang2 = new CPutih();
addChild(orang2);
orang2.x = 284;
orang2.y = 13;
orang2.alpha = 0;
nilaiAwal();
rambutBawah._1.visible = false;
rambutAtas._1.visible = false;
rambutBawah._4.visible = true;
rambutAtas._4.visible = true;
bodyBawah.atasan.visible = false;
bawahan.visible = false;
sepatu._1.visible = true;
laen._1.visible = true;
dress["_6"].visible = true;
celana["_1"].visible = true;
aks["_1"].visible = true;
}
public function onOut(_arg1:MouseEvent){
var _local2:*;
if (_arg1.currentTarget.name == "UI"){
Tweener.addTween(bg.UI, {scaleX:1, scaleY:1, time:0.2, transition:"easeinout"});
};
if (_arg1.currentTarget.name == "reset"){
Tweener.addTween(bg.reset, {scaleX:1, scaleY:1, time:0.2, transition:"easeinout"});
};
_local2 = 1;
while (_local2 <= 10) {
if (_arg1.currentTarget.name == ("_" + _local2)){
Tweener.addTween(icon[("_" + _local2)], {scaleX:1, scaleY:1, time:0.2, transition:"easeinout"});
icon[("_" + _local2)].filters = [];
};
_local2++;
};
}
public function panggil(_arg1:int){
if (_arg1 == 1){
trace("1");
Tweener.addTween(orang2, {alpha:0, time:1.5, transition:"easeinout", onComplete:panggil, onCompleteParams:[2]});
suaraOpen();
} else {
if (_arg1 == 2){
orang2.visible = false;
trace("2");
Tweener.addTween(BJudul2, {alpha:1, time:0.5, transition:"easeinout", onComplete:panggil, onCompleteParams:[3]});
} else {
if (_arg1 == 3){
trace("3");
BJudul.alpha = 1;
Tweener.addTween(BJudul2, {alpha:0, time:0.5, transition:"easeinout", onComplete:panggil, onCompleteParams:[4]});
trace(1);
} else {
if (_arg1 == 4){
trace("4");
BJudul2.visible = false;
trace(2);
Tweener.addTween(BJudul2, {alpha:0, time:0.5, transition:"easeinout", onComplete:panggil, onCompleteParams:[100]});
Tweener.addTween(bg.btnStart, {x:160, time:0.5, transition:"easeinout"});
Tweener.addTween(bg.btnPlay, {x:160, time:0.5, transition:"easeinout"});
} else {
if (_arg1 == 5){
trace(3);
BJudul.alpha = 0;
bg.bgBack.visible = true;
nilaiAwal();
icon.visible = true;
Tweener.addTween(BJudul2, {alpha:0, time:0.1, transition:"easeinout", onComplete:panggil, onCompleteParams:[6]});
rambutBawah.visible = true;
rambutAtas.visible = true;
} else {
if (_arg1 == 6){
Tweener.addTween(icon, {alpha:1, time:1, transition:"easeinout"});
Tweener.addTween(kepala.mata.kelopak, {time:1, transition:"linear", onComplete:panggil, onCompleteParams:[15]});
bg.reset.visible = true;
bg.UI.visible = true;
};
};
};
};
};
};
if (_arg1 == 15){
Tweener.addTween(kepala.mata.kelopak, {y:9.4, time:0.05, transition:"linear", onComplete:panggil, onCompleteParams:[16]});
Tweener.addTween(kepala.buluMata1, {y:17.3, time:0.05, transition:"linear"});
kepala.buluMata1.visible = true;
kepala.buluMata2.visible = false;
kepala.buluMata3.visible = false;
} else {
if (_arg1 == 16){
Tweener.addTween(kepala.mata.kelopak, {y:18.9, time:0.05, transition:"linear", onComplete:panggil, onCompleteParams:[17]});
kepala.buluMata3.visible = true;
kepala.buluMata1.visible = false;
kepala.buluMata2.visible = false;
} else {
if (_arg1 == 17){
Tweener.addTween(kepala.mata.kelopak, {y:18.9, time:0.25, transition:"linear", onComplete:panggil, onCompleteParams:[18]});
kepala.buluMata3.visible = true;
kepala.buluMata1.visible = false;
kepala.buluMata2.visible = false;
} else {
if (_arg1 == 18){
Tweener.addTween(kepala.mata.kelopak, {y:9.4, time:0.05, transition:"linear", onComplete:panggil, onCompleteParams:[19]});
Tweener.addTween(kepala.buluMata1, {y:7.8, time:0.1, transition:"linear"});
kepala.buluMata1.visible = true;
kepala.buluMata2.visible = false;
kepala.buluMata3.visible = false;
} else {
if (_arg1 == 19){
Tweener.addTween(kepala.mata.kelopak, {y:-0.1, time:0.05, transition:"linear", onComplete:panggil, onCompleteParams:[20]});
kepala.buluMata1.visible = true;
kepala.buluMata2.visible = false;
kepala.buluMata3.visible = false;
} else {
if (_arg1 == 20){
Tweener.addTween(kepala.mata.kelopak, {y:-0.1, time:4, transition:"linear", onComplete:panggil, onCompleteParams:[15]});
};
};
};
};
};
};
if (_arg1 == 50){
BJudul2.visible = false;
};
if (_arg1 == 51){
BJudul.visible = false;
BJudul2.visible = false;
};
}
public function onOver(_arg1:MouseEvent){
var _local2:*;
if (_arg1.currentTarget.name == "UI"){
Tweener.addTween(bg.UI, {scaleX:1.5, scaleY:1.5, time:0.2, transition:"easeinout"});
};
if (_arg1.currentTarget.name == "reset"){
Tweener.addTween(bg.reset, {scaleX:1.5, scaleY:1.5, time:0.2, transition:"easeinout"});
};
_local2 = 1;
while (_local2 <= 10) {
if (_arg1.currentTarget.name == ("_" + _local2)){
Tweener.addTween(icon[("_" + _local2)], {scaleX:1.2, scaleY:1.2, time:0.2, transition:"easeinout"});
glow.color = 0xFFFFFF;
glow.alpha = 1;
glow.blurX = 2;
glow.blurY = 2;
glow.strength = 1000;
glow.quality = BitmapFilterQuality.MEDIUM;
icon[("_" + _local2)].filters = [glow];
};
_local2++;
};
}
function suaraOpen(){
Main.GetInstance().mOptionBar.PlaySFX("CSound", 0.1);
}
public function cekBtn(){
var _local1:*;
_local1 = 1;
while (_local1 <= 10) {
icon[("_" + _local1)].addEventListener(MouseEvent.MOUSE_UP, onUp, false, 0, true);
icon[("_" + _local1)].addEventListener(MouseEvent.MOUSE_OVER, onOver, false, 0, true);
icon[("_" + _local1)].addEventListener(MouseEvent.MOUSE_OUT, onOut, false, 0, true);
_local1++;
};
bg.reset.addEventListener(MouseEvent.MOUSE_UP, onUp, false, 0, true);
bg.reset.addEventListener(MouseEvent.MOUSE_OVER, onOver, false, 0, true);
bg.reset.addEventListener(MouseEvent.MOUSE_OUT, onOut, false, 0, true);
bg.UI.addEventListener(MouseEvent.MOUSE_UP, onUp, false, 0, true);
bg.UI.addEventListener(MouseEvent.MOUSE_OVER, onOver, false, 0, true);
bg.UI.addEventListener(MouseEvent.MOUSE_OUT, onOut, false, 0, true);
bg.btnStart.addEventListener(MouseEvent.MOUSE_UP, onUp, false, 0, true);
bg.btnPlay.addEventListener(MouseEvent.MOUSE_UP, onUp, false, 0, true);
icon.addEventListener(MouseEvent.MOUSE_OVER, onOver, false, 0, true);
logo1.addEventListener(MouseEvent.MOUSE_UP, onUp, false, 0, true);
bg.logo2.addEventListener(MouseEvent.MOUSE_UP, onUp, false, 0, true);
}
public function nilaiAwal(){
var _local1:*;
_local1 = 1;
while (_local1 <= 10) {
urutan[_local1] = 0;
_local1++;
};
urutan[1] = 1;
urutan[2] = 1;
_local1 = 1;
while (_local1 <= 6) {
rambutBawah[("_" + _local1)].visible = false;
_local1++;
};
rambutBawah["_1"].visible = true;
_local1 = 1;
while (_local1 <= 3) {
socksBawah[("_" + _local1)].visible = false;
_local1++;
};
_local1 = 1;
while (_local1 <= 3) {
kepala[("_" + _local1)].visible = false;
_local1++;
};
kepala._1.visible = true;
_local1 = 1;
while (_local1 <= 6) {
rambutAtas[("_" + _local1)].visible = false;
_local1++;
};
rambutAtas["_1"].visible = true;
_local1 = 1;
while (_local1 <= 8) {
baju[("_" + _local1)].visible = false;
_local1++;
};
_local1 = 1;
while (_local1 <= 10) {
celana[("_" + _local1)].visible = false;
_local1++;
};
_local1 = 1;
while (_local1 <= 6) {
aks[("_" + _local1)].visible = false;
_local1++;
};
_local1 = 1;
while (_local1 <= 9) {
sepatu[("_" + _local1)].visible = false;
_local1++;
};
_local1 = 1;
while (_local1 <= 7) {
dress[("_" + _local1)].visible = false;
_local1++;
};
_local1 = 1;
while (_local1 <= 5) {
laen[("_" + _local1)].visible = false;
_local1++;
};
_local1 = 1;
while (_local1 <= 2) {
sarung1[("_" + _local1)].visible = false;
sarung2[("_" + _local1)].visible = false;
sarung3[("_" + _local1)].visible = false;
_local1++;
};
bodyBawah.atasan.visible = true;
bawahan.visible = true;
}
public function onUp(_arg1:MouseEvent){
if (_arg1.currentTarget.name == "btnStart"){
panggil(5);
bg.btnStart.visible = false;
bg.btnPlay.visible = false;
logo1.visible = true;
BJudul.x = 180;
BJudul.y = 500;
BJudul2.x = 180;
BJudul2.y = 500;
BJudul.scaleX = 0.75;
BJudul.scaleY = 0.75;
BJudul2.scaleX = 0.75;
BJudul2.scaleY = 0.75;
BJudul.visible = false;
BJudul2.visible = false;
};
if ((((((_arg1.currentTarget.name == "btnPlay")) || ((_arg1.currentTarget.name == "logo1")))) || ((_arg1.currentTarget.name == "logo2")))){
Global.openWindow("http://www.easygirlgames.com/");
};
if (_arg1.currentTarget.name == "UI"){
icon.visible = false;
Tweener.addTween(bg.UI, {alpha:0, time:0.3, transition:"easeinout"});
Tweener.addTween(bg.bgBack, {alpha:0, time:0.3, transition:"easeinout"});
muncul = false;
BJudul.visible = true;
Tweener.addTween(BJudul, {alpha:1, time:2.3, transition:"easeinout", onComplete:panggil, onCompleteParams:[50]});
suaraOpen();
logo1.visible = false;
bg.logo2.visible = true;
};
if (_arg1.currentTarget.name == "reset"){
if (muncul){
nilaiAwal();
} else {
muncul = 1;
icon.visible = true;
Tweener.addTween(bg.UI, {alpha:1, time:1.5, transition:"easeinout"});
Tweener.addTween(bg.bgBack, {alpha:1, time:1.5, transition:"easeinout"});
Tweener.addTween(BJudul, {alpha:0, time:0.5, transition:"easeinout", onComplete:panggil, onCompleteParams:[51]});
logo1.visible = true;
bg.logo2.visible = false;
};
};
if (_arg1.currentTarget.name == "_1"){
idx = 1;
};
if (_arg1.currentTarget.name == "_2"){
idx = 2;
};
if (_arg1.currentTarget.name == "_3"){
idx = 3;
};
if (_arg1.currentTarget.name == "_4"){
idx = 4;
};
if (_arg1.currentTarget.name == "_5"){
idx = 5;
};
if (_arg1.currentTarget.name == "_6"){
idx = 6;
};
if (_arg1.currentTarget.name == "_7"){
idx = 7;
};
if (_arg1.currentTarget.name == "_8"){
idx = 8;
};
if (_arg1.currentTarget.name == "_9"){
idx = 9;
};
if (_arg1.currentTarget.name == "_10"){
idx = 10;
};
if (_arg1.currentTarget.name == "_1"){
rambutAtas[("_" + urutan[idx])].visible = false;
rambutBawah[("_" + urutan[idx])].visible = false;
var _local2 = urutan;
var _local3 = idx;
var _local4 = (_local2[_local3] + 1);
_local2[_local3] = _local4;
if (urutan[idx] > 6){
urutan[idx] = 1;
};
rambutAtas[("_" + urutan[idx])].visible = true;
if (urutan[idx] <= 8){
rambutBawah[("_" + urutan[idx])].visible = true;
};
};
if (_arg1.currentTarget.name == "_2"){
trace(((("rudy ke-" + idx) + " : ") + urutan[idx]));
kepala[("_" + urutan[idx])].visible = false;
_local2 = urutan;
_local3 = idx;
_local4 = (_local2[_local3] + 1);
_local2[_local3] = _local4;
if (urutan[idx] > 4){
urutan[idx] = 1;
};
kepala[("_" + urutan[idx])].visible = true;
};
if (_arg1.currentTarget.name == "_3"){
if (urutan[idx] > 0){
aks[("_" + urutan[idx])].visible = false;
};
_local2 = urutan;
_local3 = idx;
_local4 = (_local2[_local3] + 1);
_local2[_local3] = _local4;
if (urutan[idx] > 6){
urutan[idx] = 0;
};
if (urutan[idx] > 0){
aks[("_" + urutan[idx])].visible = true;
};
};
if (_arg1.currentTarget.name == "_4"){
if (urutan[idx] > 0){
dress[("_" + urutan[idx])].visible = false;
};
_local2 = urutan;
_local3 = idx;
_local4 = (_local2[_local3] + 1);
_local2[_local3] = _local4;
if (urutan[idx] > 7){
urutan[idx] = 0;
};
if (urutan[idx] > 0){
dress[("_" + urutan[idx])].visible = true;
bodyBawah.atasan.visible = false;
bawahan.visible = false;
if (urutan[6] > 0){
baju[("_" + urutan[6])].visible = false;
};
if (urutan[7] > 0){
celana[("_" + urutan[7])].visible = false;
};
urutan[6] = 0;
urutan[7] = 0;
} else {
bodyBawah.atasan.visible = true;
bawahan.visible = true;
};
};
if (_arg1.currentTarget.name == "_6"){
if (urutan[idx] > 0){
baju[("_" + urutan[idx])].visible = false;
};
_local2 = urutan;
_local3 = idx;
_local4 = (_local2[_local3] + 1);
_local2[_local3] = _local4;
if (urutan[idx] > 8){
urutan[idx] = 0;
bodyBawah.atasan.visible = true;
} else {
bodyBawah.atasan.visible = false;
};
if (urutan[idx] > 0){
baju[("_" + urutan[idx])].visible = true;
if (urutan[4] > 0){
dress[("_" + urutan[4])].visible = false;
};
if (urutan[7] == 0){
bawahan.visible = true;
};
urutan[4] = 0;
};
};
if (_arg1.currentTarget.name == "_5"){
if (urutan[idx] > 0){
laen[("_" + urutan[idx])].visible = false;
};
_local2 = urutan;
_local3 = idx;
_local4 = (_local2[_local3] + 1);
_local2[_local3] = _local4;
if (urutan[idx] > 5){
urutan[idx] = 0;
};
if (urutan[idx] > 0){
laen[("_" + urutan[idx])].visible = true;
};
};
if (_arg1.currentTarget.name == "_7"){
if (urutan[idx] > 0){
celana[("_" + urutan[idx])].visible = false;
if (urutan[4] > 0){
dress[("_" + urutan[4])].visible = false;
};
urutan[4] = 0;
};
_local2 = urutan;
_local3 = idx;
_local4 = (_local2[_local3] + 1);
_local2[_local3] = _local4;
if (urutan[idx] > 10){
urutan[idx] = 0;
bawahan.visible = true;
} else {
bawahan.visible = false;
};
if (urutan[idx] > 0){
celana[("_" + urutan[idx])].visible = true;
if (urutan[4] > 0){
dress[("_" + urutan[4])].visible = false;
};
if (urutan[6] == 0){
bodyBawah.atasan.visible = true;
};
urutan[4] = 0;
};
};
if (_arg1.currentTarget.name == "_8"){
if (urutan[idx] > 0){
sarung1[("_" + urutan[idx])].visible = false;
sarung2[("_" + urutan[idx])].visible = false;
sarung3[("_" + urutan[idx])].visible = false;
};
_local2 = urutan;
_local3 = idx;
_local4 = (_local2[_local3] + 1);
_local2[_local3] = _local4;
if (urutan[idx] > 2){
urutan[idx] = 0;
};
if (urutan[idx] > 0){
sarung1[("_" + urutan[idx])].visible = true;
sarung2[("_" + urutan[idx])].visible = true;
sarung3[("_" + urutan[idx])].visible = true;
};
};
if (_arg1.currentTarget.name == "_9"){
if (urutan[idx] > 0){
socksBawah[("_" + urutan[idx])].visible = false;
};
_local2 = urutan;
_local3 = idx;
_local4 = (_local2[_local3] + 1);
_local2[_local3] = _local4;
if (urutan[idx] > 3){
urutan[idx] = 0;
};
if (urutan[idx] > 0){
socksBawah[("_" + urutan[idx])].visible = true;
};
};
if (_arg1.currentTarget.name == "_10"){
if (urutan[idx] > 0){
sepatu[("_" + urutan[idx])].visible = false;
};
_local2 = urutan;
_local3 = idx;
_local4 = (_local2[_local3] + 1);
_local2[_local3] = _local4;
if (urutan[idx] > 9){
urutan[idx] = 0;
};
if (urutan[idx] > 0){
sepatu[("_" + urutan[idx])].visible = true;
};
};
}
override public function Update(_arg1:Event){
ctr++;
this.setChildIndex(logo1, (this.numChildren - 1));
if (ctr == 10){
Tweener.addTween(orang2, {alpha:1, time:0.5, transition:"easeinout", onComplete:panggil, onCompleteParams:[1]});
};
}
public static function GetInstance():CGame{
return (CGameGlobal);
}
}
}//package
Section 37
//CIcon (CIcon)
package {
import flash.display.*;
public dynamic class CIcon extends MovieClip {
public var _2:MovieClip;
public var _4:MovieClip;
public var _6:MovieClip;
public var _8:MovieClip;
public var _9:MovieClip;
public var _3:MovieClip;
public var _5:MovieClip;
public var _10:MovieClip;
public var _1:MovieClip;
public var _7:MovieClip;
}
}//package
Section 38
//CKepala (CKepala)
package {
import flash.display.*;
public dynamic class CKepala extends MovieClip {
public var mata:MovieClip;
public var buluMata2:MovieClip;
public var buluMata3:MovieClip;
public var buluMata1:MovieClip;
public var _2:MovieClip;
public var _4:MovieClip;
public var _1:MovieClip;
public var _3:MovieClip;
}
}//package
Section 39
//CLaen2 (CLaen2)
package {
import flash.display.*;
public dynamic class CLaen2 extends MovieClip {
public var _2:MovieClip;
public var _4:MovieClip;
public var _1:MovieClip;
public var _3:MovieClip;
public var _5:MovieClip;
}
}//package
Section 40
//CLogo (CLogo)
package {
import flash.display.*;
public dynamic class CLogo extends MovieClip {
}
}//package
Section 41
//CMainMenu (CMainMenu)
package {
import flash.display.*;
import flash.events.*;
public class CMainMenu extends MovieClip {
public var mFreeModeBtn:SimpleButton;
public var mCredit:SimpleButton;
public function CMainMenu(){
mouseEnabled = false;
mFreeModeBtn.addEventListener(MouseEvent.MOUSE_UP, onMouseUp, false, 0, true);
mCredit.addEventListener(MouseEvent.MOUSE_UP, onMouseUp, false, 0, true);
}
private function onMouseUp(_arg1:MouseEvent):void{
var _local2:MovieClip;
if (_arg1.currentTarget.name == "mFreeModeBtn"){
Main.GetInstance().InitGame();
};
if (_arg1.currentTarget.name == "mCredit"){
_local2 = new CCredit();
Main.GetInstance().stage.addChild(_local2);
};
}
}
}//package
Section 42
//COptionBar (COptionBar)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
public class COptionBar extends MovieClip {
public var mSFX:MovieClip;
private var mSfxChannel:Array;
private var mBgm:Sound;
private var mBgmFlag:Boolean;
public var mPopUp:MovieClip;
private var mSfxFlag:Boolean;// = true
private var mBgmChannel:SoundChannel;
public var mMusic:MovieClip;
public var mQuality:MovieClip;
private var mBgmVol:Number;// = 1
public static var Global:COptionBar;
public function COptionBar(_arg1:int=0, _arg2:int=0, _arg3:String=null, _arg4:Number=0.5){
var _local5:Class;
mSfxFlag = true;
mBgmVol = 1;
super();
Global = this;
mBgmVol = _arg4;
this.x = _arg1;
this.y = _arg2;
if (_arg3){
_local5 = (getDefinitionByName(_arg3) as Class);
if (_local5){
mBgm = new (_local5);
};
};
mPopUp.mouseEnabled = false;
mMusic.buttonMode = true;
mMusic.useHandCursor = true;
mSFX.buttonMode = true;
mSFX.useHandCursor = true;
mQuality.buttonMode = true;
mQuality.useHandCursor = true;
mMusic.addEventListener(MouseEvent.MOUSE_OVER, MusicOver, false, 0, true);
mMusic.addEventListener(MouseEvent.MOUSE_OUT, MusicOut, false, 0, true);
mMusic.addEventListener(MouseEvent.MOUSE_UP, ToggleMusic, false, 0, true);
mSFX.addEventListener(MouseEvent.MOUSE_OVER, SFXOver, false, 0, true);
mSFX.addEventListener(MouseEvent.MOUSE_OUT, SFXOut, false, 0, true);
mSFX.addEventListener(MouseEvent.MOUSE_UP, ToggleSFX, false, 0, true);
mQuality.addEventListener(MouseEvent.MOUSE_OVER, QualityOver, false, 0, true);
mQuality.addEventListener(MouseEvent.MOUSE_OUT, QualityOut, false, 0, true);
mQuality.addEventListener(MouseEvent.MOUSE_UP, ToggleQuality, false, 0, true);
if (((mBgm) && (!((Main.GetInstance().mState == Main.STATE_PRELOADER))))){
StartBGM();
};
mSfxChannel = new Array();
MusicOut(null);
SFXOut(null);
trace("init option bar");
}
private function MusicOut(_arg1:MouseEvent):void{
if (!mBgmFlag){
mMusic.gotoAndStop(2);
} else {
mMusic.gotoAndStop(1);
};
HidePopUp();
}
public function ToggleQuality(_arg1:MouseEvent=null):void{
switch (Main.GetInstance().stage.quality){
case "LOW":
Main.GetInstance().stage.quality = StageQuality.MEDIUM;
break;
case "MEDIUM":
Main.GetInstance().stage.quality = StageQuality.HIGH;
break;
case "HIGH":
Main.GetInstance().stage.quality = StageQuality.BEST;
break;
case "BEST":
Main.GetInstance().stage.quality = StageQuality.LOW;
break;
};
ShowPopUp((("Quality: " + Main.GetInstance().stage.quality) + " (B)"));
}
public function StopSFX(_arg1:int){
mSfxChannel[_arg1].stop();
}
public function ChangeBGM(_arg1:String=null){
var _local2:Class;
if (!_arg1){
return;
};
if (_arg1){
_local2 = (getDefinitionByName(_arg1) as Class);
mBgm = new (_local2);
};
if (((mBgmFlag) && (mBgmChannel))){
mBgmChannel.stop();
};
trace(("bgm flag : " + mBgmFlag));
if (mBgmFlag){
StartBGM();
};
}
public function ToggleMusic(_arg1:MouseEvent=null):void{
if (Main.GetInstance().mState == Main.STATE_PRELOADER){
return;
};
trace("toggle Music");
if (((mBgmFlag) && (mBgmChannel))){
mBgmFlag = false;
mBgmChannel.stop();
} else {
StartBGM();
};
if (_arg1 != null){
MusicOver(null);
} else {
MusicOut(null);
};
}
private function StartBGM(){
var _local1:SoundTransform;
trace(("start bgm : " + mBgm));
if (!mBgm){
return;
};
mBgmFlag = true;
_local1 = new SoundTransform(mBgmVol, 0);
mBgmChannel = mBgm.play(0, 999, _local1);
MusicOut(null);
}
public function ToggleSFX(_arg1:MouseEvent=null):void{
var _local2:int;
if (Main.GetInstance().mState == Main.STATE_PRELOADER){
return;
};
if (mSfxFlag){
mSfxFlag = false;
if (mSfxChannel){
_local2 = 0;
while (_local2 < mSfxChannel.length) {
mSfxChannel[_local2].stop();
_local2++;
};
};
} else {
mSfxFlag = true;
};
if (_arg1 != null){
SFXOver(null);
} else {
SFXOut(null);
};
}
private function QualityOver(_arg1:MouseEvent):void{
mQuality.gotoAndStop(2);
ShowPopUp((("Quality: " + Main.GetInstance().stage.quality) + " (B)"));
}
private function HidePopUp(){
mPopUp.alpha = 0;
}
public function PlaySFX(_arg1:String, _arg2:Number=1):int{
var _local3:Class;
var _local4:Sound;
var _local5:SoundTransform;
var _local6:SoundChannel;
if (!mSfxFlag){
return;
};
_local3 = (getDefinitionByName(_arg1) as Class);
_local4 = new (_local3);
_local5 = new SoundTransform(_arg2, 0);
_local6 = _local4.play(0, 1, _local5);
mSfxChannel.push(_local6);
return ((mSfxChannel.length - 1));
}
private function MusicOver(_arg1:MouseEvent):void{
if (!mBgmFlag){
mMusic.gotoAndStop(4);
} else {
mMusic.gotoAndStop(3);
};
ShowPopUp("Toggle Music (M)");
}
private function SFXOut(_arg1:MouseEvent):void{
if (!mSfxFlag){
mSFX.gotoAndStop(2);
} else {
mSFX.gotoAndStop(1);
};
HidePopUp();
}
private function ShowPopUp(_arg1:String){
if ((this.y - 50) <= 0){
mPopUp.y = 40;
} else {
mPopUp.y = -30;
};
mPopUp.alpha = 1;
mPopUp.mText.text = _arg1;
}
private function SFXOver(_arg1:MouseEvent):void{
if (!mSfxFlag){
mSFX.gotoAndStop(4);
} else {
mSFX.gotoAndStop(3);
};
ShowPopUp("Toggle SFX (N)");
}
public function ChangeBGMVol(_arg1:Number){
mBgmVol = _arg1;
mBgmChannel.soundTransform = new SoundTransform(mBgmVol, 0);
}
private function QualityOut(_arg1:MouseEvent):void{
mQuality.gotoAndStop(1);
HidePopUp();
}
}
}//package
Section 43
//CPutih (CPutih)
package {
import flash.display.*;
public dynamic class CPutih extends MovieClip {
}
}//package
Section 44
//CRambutAtas (CRambutAtas)
package {
import flash.display.*;
public dynamic class CRambutAtas extends MovieClip {
public var _2:MovieClip;
public var _4:MovieClip;
public var _6:MovieClip;
public var _1:MovieClip;
public var _3:MovieClip;
public var _5:MovieClip;
}
}//package
Section 45
//CRambutBawah (CRambutBawah)
package {
import flash.display.*;
public dynamic class CRambutBawah extends MovieClip {
public var _2:MovieClip;
public var _4:MovieClip;
public var _6:MovieClip;
public var _1:MovieClip;
public var _3:MovieClip;
public var _5:MovieClip;
}
}//package
Section 46
//CSarung1 (CSarung1)
package {
import flash.display.*;
public dynamic class CSarung1 extends MovieClip {
public var _2:MovieClip;
public var _1:MovieClip;
}
}//package
Section 47
//CSarung2 (CSarung2)
package {
import flash.display.*;
public dynamic class CSarung2 extends MovieClip {
public var _2:MovieClip;
public var _1:MovieClip;
}
}//package
Section 48
//CSarung3 (CSarung3)
package {
import flash.display.*;
public dynamic class CSarung3 extends MovieClip {
public var _2:MovieClip;
public var _1:MovieClip;
}
}//package
Section 49
//CSepatu (CSepatu)
package {
import flash.display.*;
public dynamic class CSepatu extends MovieClip {
public var _2:MovieClip;
public var _4:MovieClip;
public var _6:MovieClip;
public var _8:MovieClip;
public var _9:MovieClip;
public var _3:MovieClip;
public var _5:MovieClip;
public var _1:MovieClip;
public var _7:MovieClip;
}
}//package
Section 50
//CSocksBawah (CSocksBawah)
package {
import flash.display.*;
public dynamic class CSocksBawah extends MovieClip {
public var _2:MovieClip;
public var _1:MovieClip;
public var _3:MovieClip;
}
}//package
Section 51
//CSound (CSound)
package {
import flash.media.*;
public dynamic class CSound extends Sound {
}
}//package
Section 52
//CTangan (CTangan)
package {
import flash.display.*;
public dynamic class CTangan extends MovieClip {
}
}//package
Section 53
//DOT12 (DOT12)
package {
import flash.media.*;
public dynamic class DOT12 extends Sound {
}
}//package
Section 54
//DOT2 (DOT2)
package {
import flash.media.*;
public dynamic class DOT2 extends Sound {
}
}//package
Section 55
//DOT3 (DOT3)
package {
import flash.media.*;
public dynamic class DOT3 extends Sound {
}
}//package
Section 56
//FPS (FPS)
package {
import flash.geom.*;
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.filters.*;
import flash.net.*;
import flash.external.*;
import flash.utils.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
public dynamic class FPS extends MovieClip {
public var prevSecondTime:Number;
public var secondTime:Number;
public var tf:TextField;
public var frames:Number;
public var time:Number;
public var frameTime:Number;
public var fps:String;
public var prevFrameTime:Number;
public var iBar:MovieClip;
public function FPS(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
prevFrameTime = getTimer();
prevSecondTime = getTimer();
frames = 0;
fps = "...";
}
function frame2(){
stop();
this.addEventListener(Event.ENTER_FRAME, onEnterFrame);
}
public function onEnterFrame(_arg1:Event):void{
time = getTimer();
frameTime = (time - prevFrameTime);
secondTime = (time - prevSecondTime);
if (secondTime >= 1000){
fps = frames.toString();
frames = 0;
prevSecondTime = time;
} else {
frames++;
};
prevFrameTime = time;
tf.text = (((((fps + " FPS / ") + frameTime) + " MS") + " - Memory : ") + System.totalMemory);
iBar.scaleX = (iBar.scaleX - ((iBar.scaleX - (frameTime / 10)) / 5));
}
}
}//package
Section 57
//Global (Global)
package {
import flash.geom.*;
import flash.display.*;
import flash.net.*;
import flash.external.*;
import flash.utils.*;
public class Global {
protected static const WINDOW_OPEN_FUNCTION:String = "window.open";
public static var STAGE_HEIGHT = 450;
public static var STAGE_WIDTH = 600;
public static function getIsoPoint(_arg1:Point):Point{
return (new Point((_arg1.x - _arg1.y), ((_arg1.x + _arg1.y) / 2)));
}
public static function AngleOfTwoLines(_arg1:Object, _arg2:Object):Number{
var _local3:Number;
var _local4:Number;
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local8:Number;
var _local9:Number;
var _local10:Number;
var _local11:Number;
var _local12:Number;
_local3 = _arg1.x1;
_local4 = _arg1.y1;
_local5 = _arg1.x2;
_local6 = _arg1.y2;
_local7 = _arg2.x1;
_local8 = _arg2.y1;
_local9 = _arg2.x2;
_local10 = _arg2.y2;
_local11 = Global.Slope(_local3, _local4, _local5, _local6);
_local12 = Global.Slope(_local7, _local8, _local9, _local10);
return (Math.atan(((_local12 - _local11) / (1 + (_local11 * _local12)))));
}
public static function htmlColorToAS(_arg1:String):uint{
var _local2:String;
var _local3:int;
_local2 = "0x";
_local3 = 1;
while (_local3 < _arg1.length) {
_local2 = _local2.concat(_arg1.charAt(_local3));
_local3++;
};
return (uint(_local2));
}
public static function Slope(_arg1, _arg2, _arg3, _arg4):Number{
var _local5:Number;
var _local6:Number;
_local5 = (_arg1 - _arg3);
_local6 = (_arg2 - _arg4);
return ((_local6 / _local5));
}
public static function duplicateMovieClip(_arg1:MovieClip):MovieClip{
var _local2:Class;
var _local3:MovieClip;
var _local4:Rectangle;
_local2 = Object(_arg1).constructor;
_local3 = new (_local2);
_local3.transform = _arg1.transform;
_local3.filters = _arg1.filters;
_local3.cacheAsBitmap = _arg1.cacheAsBitmap;
_local3.opaqueBackground = _arg1.opaqueBackground;
if (_arg1.scale9Grid){
_local4 = _arg1.scale9Grid;
_local3.scale9Grid = _local4;
};
return (_local3);
}
public static function AngleOfTwoDots(_arg1, _arg2, _arg3, _arg4):Number{
var _local5:Number;
var _local6:Number;
_local5 = (_arg1 - _arg3);
_local6 = (_arg2 - _arg4);
return (Math.atan2(_local6, _local5));
}
public static function DegToRad(_arg1:Number):Number{
return (((_arg1 / 180) * Math.PI));
}
public static function Distance(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return (Math.sqrt((Math.pow((_arg3 - _arg1), 2) + Math.pow((_arg4 - _arg2), 2))));
}
public static function RadToDeg(_arg1:Number):Number{
return (((_arg1 * 180) / Math.PI));
}
public static function pythagoras(_arg1:Number, _arg2:Number):Number{
return (Math.sqrt((Math.pow(_arg1, 2) + Math.pow(_arg2, 2))));
}
public static function openWindow(_arg1:String="http://www.lazybanana.com", _arg2:String="_blank", _arg3:String=""):String{
var _loc_4:URLRequest;
var _loc_5:String;
var ok:Boolean;
var opened:Boolean;
var msg:String;
var url = _arg1;
var target = _arg2;
var param3 = _arg3;
ok = true;
opened = false;
_loc_4 = new URLRequest(url);
msg = "Start the openWindow func ...\n";
if (!ExternalInterface.available){
try {
opened = false;
navigateToURL(_loc_4, target);
msg = (msg + "flag a - 1");
} catch(err:SecurityError) {
navigateToURL(_loc_4, "_blank");
opened = true;
msg = (msg + "flag a - 2");
} finally {
opened = true;
};
msg = (msg + "external interface not available\n");
} else {
try {
_loc_5 = String(ExternalInterface.call("function() {return navigator.userAgent;}")).toLowerCase();
msg = (msg + "Trying extenal interface sandbox security\n");
msg = (msg + "flag b - 1");
opened = false;
} catch(err:SecurityError) {
msg = (msg + (err.message + "\n"));
ok = false;
try {
opened = false;
navigateToURL(_loc_4, target);
msg = (msg + "flag b - 2");
} catch(err:SecurityError) {
opened = true;
msg = (msg + "flag b - 3");
navigateToURL(_loc_4, "_blank");
} finally {
opened = true;
};
} catch(err:Error) {
} finally {
opened = false;
};
if (((ok) && (!(opened)))){
msg = (msg + "External interface available, continuing ...\n");
if (((!((_loc_5.indexOf("firefox") == -1))) || (((!((_loc_5.indexOf("msie") == -1))) && ((uint(_loc_5.substr((_loc_5.indexOf("msie") + 5), 3)) >= 7)))))){
try {
ExternalInterface.call("window.open", _loc_4.url, target);
opened = false;
msg = (msg + "flag c - 1");
msg = (msg + "Trying window.open JS ...\n");
} catch(err:SecurityError) {
msg = (msg + (err.message + "\n"));
trace(("e : " + err.message));
if (!opened){
try {
opened = false;
navigateToURL(_loc_4, target);
msg = (msg + "flag d - 1");
} catch(err:SecurityError) {
opened = true;
navigateToURL(_loc_4, "_blank");
msg = (msg + "flag d - 2");
} finally {
opened = true;
};
};
} catch(err:Error) {
msg = (msg + (err.message + "\n"));
if (!opened){
try {
opened = false;
navigateToURL(_loc_4, target);
msg = (msg + "flag e - 1");
} catch(err:SecurityError) {
opened = true;
navigateToURL(_loc_4, "_blank");
msg = (msg + "flag e - 2");
} finally {
opened = true;
};
};
} finally {
opened = true;
};
} else {
if (!opened){
msg = (msg + "Open with navigateToURL\n");
try {
opened = false;
navigateToURL(_loc_4, target);
msg = (msg + "flag f - 1");
} catch(err:SecurityError) {
navigateToURL(_loc_4, "_blank");
msg = (msg + "flag f - 2");
} finally {
opened = true;
};
};
};
};
};
return (msg);
}
public static function getMoneyString(_arg1:int):String{
var _local2:String;
var _local3:String;
var _local4:int;
var _local5:int;
_local2 = "";
_local3 = _arg1;
_local4 = 0;
_local5 = (_local3.length - 1);
while (_local5 >= 0) {
_local4++;
_local2 = (_local3.charAt(_local5) + _local2);
if ((_local4 % 3) == 0){
_local2 = ("," + _local2);
};
_local5--;
};
if (_local2.charAt(0) == ","){
return (_local2.substr(1, (_local2.length - 1)));
};
return (_local2);
}
public static function getFormatedString(_arg1:String, _arg2:Array, _arg3:String="%"):String{
var _local4:String;
for (_local4 in _arg2) {
_arg1 = _arg1.replace((_arg3 + _local4), _arg2[_local4]);
trace(_local4, _arg2[_local4]);
};
return (_arg1);
}
public static function clone(_arg1:Object){
var _local2:ByteArray;
_local2 = new ByteArray();
_local2.writeObject(_arg1);
_local2.position = 0;
return (_local2.readObject());
}
}
}//package
Section 58
//Main (Main)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
public dynamic class Main extends MovieClip {
private var mContextMenu:ContextMenu;
public var mBgmStartFlag:Boolean;// = false
private var mBgm:SoundChannel;
private var mSfx:SoundChannel;
public var mState:int;
public var mBgmFlag:Boolean;// = true
public var loaded:int;
public var mFPSBar:MovieClip;
private var mMainMenu:CMainMenu;
public var mSfxFlag:Boolean;// = true
public var mOptionBar:COptionBar;
public var mPreloader:MovieClip;
public var debug:TextField;
public var sapi:MovieClip;
public var mBannedWin:CBannedWin;
private var mGame:CGame;
public static const BYTES_TOTAL = 498943;
protected static const WINDOW_OPEN_FUNCTION:String = "window.open";
public static var STATE_PRELOADER = 0;
public static var MainGlobal:Main;
public static var STATE_GAME = 1;
public static var STATE_MAIN_MENU = 2;
public static var STATE_PAUSED = 3;
public function Main(){
mState = STATE_PRELOADER;
mBgmFlag = true;
mSfxFlag = true;
mBgmStartFlag = false;
super();
addFrameScript(0, frame1, 1, frame2, 15, frame16);
trace("init main 1");
MainGlobal = this;
mState = STATE_MAIN_MENU;
Global.STAGE_HEIGHT = stage.stageHeight;
Global.STAGE_WIDTH = stage.stageWidth;
stage.addEventListener(FocusEvent.FOCUS_IN, OnKeyFocusChange, false, 0, true);
stage.addEventListener(Event.ADDED, OnAddedToStage, false, 0, true);
stage.addEventListener(KeyboardEvent.KEY_UP, onKeyUp, false, 0, true);
stage.showDefaultContextMenu = false;
stage.quality = StageQuality.HIGH;
}
public function InitMainMenu(){
ShowWindow("MainMenu");
mState = STATE_MAIN_MENU;
if (debug){
debug.parent.setChildIndex(debug, (debug.parent.numChildren - 1));
};
}
public function ToggleQuality():void{
switch (stage.quality){
case "LOW":
stage.quality = StageQuality.MEDIUM;
break;
case "MEDIUM":
stage.quality = StageQuality.HIGH;
break;
case "HIGH":
stage.quality = StageQuality.BEST;
break;
case "BEST":
stage.quality = StageQuality.LOW;
break;
default:
break;
};
}
public function KillWindow(_arg1:String, _arg2:Boolean=true, _arg3:Boolean=true){
var _local4:String;
var _local5:String;
var _local6:XML;
var _local7:String;
_local4 = ("C" + _arg1);
_local5 = ("m" + _arg1);
if (this[_local5]){
if (((this[_local5].parent) && (_arg3))){
this[_local5].parent.removeChild(this[_local5]);
};
if (_arg2){
_local6 = describeType(this[_local5]);
_local7 = _local6.method.@name.toXMLString();
if (_local7.indexOf("RemoveDispatcher") > -1){
this[_local5].RemoveDispatcher();
};
};
this[_local5] = null;
};
if (this[_local5] != null){
trace((("WARNING ### " + _arg1) + "Not null after Kill process"));
};
}
private function RunStateGame(){
this.dispatchEvent(new Event("update"));
}
public function KepleSuper2(_arg1:int){
}
function frame16(){
InitOnce();
}
public function ShowWindow(_arg1:String){
var _local2:String;
var _local3:String;
var _local4:Class;
_local2 = ("C" + _arg1);
_local3 = ("m" + _arg1);
_local4 = (getDefinitionByName(_local2) as Class);
if (_local4){
KillWindow(_local3);
this[_local3] = new (_local4);
this.stage.addChild(this[_local3]);
};
}
public function InitGame(){
ShowWindow("Game");
mGame.AddDispatcher();
mState = STATE_GAME;
}
function frame1(){
MochiBot.track(this, "acc6f14a");
stop();
debug.visible = false;
debug.mouseEnabled = false;
}
private function isDomainNOTAllowed(_arg1:Array):Boolean{
var _local2:LocalConnection;
var _local3:String;
var _local4:Number;
_local2 = new LocalConnection();
_local3 = _local2.domain;
trace(("Domain : " + _local3));
_local4 = 0;
while (_local4 < _arg1.length) {
if (_local3 == _arg1[_local4]){
return (true);
};
_local4++;
};
_local4 = 0;
while (_local4 < _arg1.length) {
if (_local3.substr(-((_arg1[_local4].length + 1))) == ("." + _arg1[_local4])){
return (true);
};
_local4++;
};
return (false);
}
private function isPlayerAllowed(_arg1:Array):Boolean{
var _local2:String;
var _local3:Number;
_local2 = Capabilities.playerType;
trace(("PlayerType : " + _local2));
_local3 = 0;
while (_local3 < _arg1.length) {
if (_local2 == _arg1[_local3]){
return (true);
};
_local3++;
};
return (false);
}
function frame2(){
gotoAndStop("mainMenu");
}
private function isDomainAllowed(_arg1:Array):Boolean{
var _local2:LocalConnection;
var _local3:String;
var _local4:Number;
_local2 = new LocalConnection();
_local3 = _local2.domain;
trace(("Domain : " + _local3));
_local4 = 0;
while (_local4 < _arg1.length) {
if (_local3 == _arg1[_local4]){
return (true);
};
_local4++;
};
_local4 = 0;
while (_local4 < _arg1.length) {
if (_local3.substr(-((_arg1[_local4].length + 1))) == ("." + _arg1[_local4])){
return (true);
};
_local4++;
};
return (false);
}
private function menuSelectHandler(_arg1:ContextMenuEvent){
}
private function OnKeyFocusChange(_arg1:FocusEvent):void{
stage.focus = this.stage;
}
public function KepleSuper(_arg1:String){
stage.addChild(debug);
if (debug){
debug.text = (debug.text + ("\n" + _arg1));
};
}
public function onKeyUp(_arg1:KeyboardEvent){
if (mState != STATE_PRELOADER){
switch (_arg1.keyCode){
case 77:
if (mOptionBar){
mOptionBar.ToggleMusic();
};
break;
case 66:
if (mOptionBar){
mOptionBar.ToggleQuality();
};
break;
case 78:
if (mOptionBar){
mOptionBar.ToggleSFX();
};
break;
};
};
}
private function OnAddedToStage(_arg1:Event):void{
if (mOptionBar){
mOptionBar.parent.setChildIndex(mOptionBar, (mOptionBar.parent.numChildren - 1));
};
if (mFPSBar){
mFPSBar.parent.setChildIndex(mFPSBar, (mFPSBar.parent.numChildren - 1));
};
if (debug){
debug.parent.setChildIndex(debug, (debug.parent.numChildren - 1));
};
}
public function CheckDomain(){
var _local1:Array;
var _local2:Array;
var _local3:*;
_local1 = new Array("localhost");
_local2 = new Array("ActiveX", "PlugIn", "StandAlone", "External");
if (!isDomainAllowed(_local1)){
trace("BANNED DOMAIN !!!");
if (_local3){
if (_local3.parent){
_local3.parent.removeChild(_local3);
};
_local3 = null;
};
_local3 = new CBannedWin();
this.stage.addChild(_local3);
} else {
trace("Allowed DOMAIN !!!");
};
}
private function InitOnce(){
InitGame();
stage.addChild(debug);
debug.visible = false;
debug.mouseEnabled = false;
mOptionBar = new COptionBar(0, 0);
stage.addChild(mOptionBar);
mFPSBar = new FPS();
stage.addChild(mFPSBar);
if (this.hasEventListener(Event.ENTER_FRAME)){
this.removeEventListener(Event.ENTER_FRAME, OnEnterFrame);
};
this.addEventListener(Event.ENTER_FRAME, OnEnterFrame, false, 0, true);
mFPSBar.visible = false;
mOptionBar.visible = false;
}
public function OnEnterFrame(_arg1:Event){
switch (mState){
case STATE_GAME:
RunStateGame();
break;
case STATE_PAUSED:
this.dispatchEvent(new Event("pause"));
break;
default:
break;
};
}
public static function GetInstance():Main{
return (MainGlobal);
}
}
}//package
Section 59
//MochiBot (MochiBot)
package {
import flash.display.*;
import flash.net.*;
import flash.system.*;
public dynamic class MochiBot extends Sprite {
public static function track(_arg1:Sprite, _arg2:String):MochiBot{
var _local3:MochiBot;
var _local4:String;
var _local5:URLVariables;
var _local6:String;
var _local7:URLRequest;
var _local8:Loader;
if (Security.sandboxType == "localWithFile"){
return (null);
};
_local3 = new (MochiBot);
_arg1.addChild(_local3);
Security.allowDomain("*");
Security.allowInsecureDomain("*");
_local4 = "http://core.mochibot.com/my/core.swf";
_local5 = new URLVariables();
_local5["sb"] = Security.sandboxType;
_local5["v"] = Capabilities.version;
_local5["swfid"] = _arg2;
_local5["mv"] = "8";
_local5["fv"] = "9";
_local6 = _local3.root.loaderInfo.loaderURL;
if (_local6.indexOf("http") == 0){
_local5["url"] = _local6;
} else {
_local5["url"] = "local";
};
_local7 = new URLRequest(_local4);
_local7.contentType = "application/x-www-form-urlencoded";
_local7.method = URLRequestMethod.POST;
_local7.data = _local5;
_local8 = new Loader();
_local3.addChild(_local8);
_local8.load(_local7);
return (_local3);
}
}
}//package
Section 60
//SS (SS)
package {
import flash.media.*;
public dynamic class SS extends Sound {
}
}//package
Section 61
//WINK (WINK)
package {
import flash.media.*;
public dynamic class WINK extends Sound {
}
}//package