Section 1
//AuxFunctions (caurina.transitions.AuxFunctions)
package caurina.transitions {
public class AuxFunctions {
public static function concatObjects(... _args):Object{
var _local2:Object;
var _local3:Object;
var _local4:int;
var _local5:String;
_local2 = {};
_local4 = 0;
while (_local4 < _args.length) {
_local3 = _args[_local4];
for (_local5 in _local3) {
if (_local3[_local5] == null){
delete _local2[_local5];
} else {
_local2[_local5] = _local3[_local5];
};
};
_local4++;
};
return (_local2);
}
public static function numberToG(_arg1:Number):Number{
return (((_arg1 & 0xFF00) >> 8));
}
public static function numberToR(_arg1:Number):Number{
return (((_arg1 & 0xFF0000) >> 16));
}
public static function isInArray(_arg1:String, _arg2:Array):Boolean{
var _local3:uint;
var _local4:uint;
_local3 = _arg2.length;
_local4 = 0;
while (_local4 < _local3) {
if (_arg2[_local4] == _arg1){
return (true);
};
_local4++;
};
return (false);
}
public static function getObjectLength(_arg1:Object):uint{
var _local2:uint;
var _local3:String;
_local2 = 0;
for (_local3 in _arg1) {
_local2++;
};
return (_local2);
}
public static function numberToB(_arg1:Number):Number{
return ((_arg1 & 0xFF));
}
}
}//package caurina.transitions
Section 2
//Equations (caurina.transitions.Equations)
package caurina.transitions {
public class Equations {
public function Equations(){
trace("Equations is a static class and should not be instantiated.");
}
public static function easeOutBounce(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / _arg4);
if (_arg1 < (1 / 2.75)){
return (((_arg3 * ((7.5625 * _arg1) * _arg1)) + _arg2));
};
if (_arg1 < (2 / 2.75)){
_arg1 = (_arg1 - (1.5 / 2.75));
return (((_arg3 * (((7.5625 * _arg1) * _arg1) + 0.75)) + _arg2));
};
if (_arg1 < (2.5 / 2.75)){
_arg1 = (_arg1 - (2.25 / 2.75));
return (((_arg3 * (((7.5625 * _arg1) * _arg1) + 0.9375)) + _arg2));
};
_arg1 = (_arg1 - (2.625 / 2.75));
return (((_arg3 * (((7.5625 * _arg1) * _arg1) + 0.984375)) + _arg2));
}
public static function easeInOutElastic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
var _local6:Number;
var _local7:Number;
var _local8:Number;
if (_arg1 == 0){
return (_arg2);
};
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 == 2){
return ((_arg2 + _arg3));
};
_local6 = (((!(Boolean(_arg5))) || (isNaN(_arg5.period)))) ? (_arg4 * (0.3 * 1.5)) : _arg5.period;
_local8 = (((!(Boolean(_arg5))) || (isNaN(_arg5.amplitude)))) ? 0 : _arg5.amplitude;
if (((!(Boolean(_local8))) || ((_local8 < Math.abs(_arg3))))){
_local8 = _arg3;
_local7 = (_local6 / 4);
} else {
_local7 = ((_local6 / (2 * Math.PI)) * Math.asin((_arg3 / _local8)));
};
if (_arg1 < 1){
--_arg1;
return (((-0.5 * ((_local8 * Math.pow(2, (10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local7) * (2 * Math.PI)) / _local6)))) + _arg2));
};
--_arg1;
return ((((((_local8 * Math.pow(2, (-10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local7) * (2 * Math.PI)) / _local6))) * 0.5) + _arg3) + _arg2));
}
public static function easeInOutQuad(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
return (((((_arg3 / 2) * _arg1) * _arg1) + _arg2));
};
--_arg1;
return ((((-(_arg3) / 2) * ((_arg1 * (_arg1 - 2)) - 1)) + _arg2));
}
public static function easeInOutBounce(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 < (_arg4 / 2)){
return (((easeInBounce((_arg1 * 2), 0, _arg3, _arg4) * 0.5) + _arg2));
};
return ((((easeOutBounce(((_arg1 * 2) - _arg4), 0, _arg3, _arg4) * 0.5) + (_arg3 * 0.5)) + _arg2));
}
public static function easeInOutBack(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
var _local6:Number;
_local6 = (((!(Boolean(_arg5))) || (isNaN(_arg5.overshoot)))) ? 1.70158 : _arg5.overshoot;
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
_local6 = (_local6 * 1.525);
return ((((_arg3 / 2) * ((_arg1 * _arg1) * (((_local6 + 1) * _arg1) - _local6))) + _arg2));
};
_arg1 = (_arg1 - 2);
_local6 = (_local6 * 1.525);
return ((((_arg3 / 2) * (((_arg1 * _arg1) * (((_local6 + 1) * _arg1) + _local6)) + 2)) + _arg2));
}
public static function easeOutInCubic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutCubic((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5));
};
return (easeInCubic(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5));
}
public static function easeNone(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
return ((((_arg3 * _arg1) / _arg4) + _arg2));
}
public static function easeOutBack(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
var _local6:Number;
_local6 = (((!(Boolean(_arg5))) || (isNaN(_arg5.overshoot)))) ? 1.70158 : _arg5.overshoot;
_arg1 = ((_arg1 / _arg4) - 1);
return (((_arg3 * (((_arg1 * _arg1) * (((_local6 + 1) * _arg1) + _local6)) + 1)) + _arg2));
}
public static function easeInOutSine(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
return ((((-(_arg3) / 2) * (Math.cos(((Math.PI * _arg1) / _arg4)) - 1)) + _arg2));
}
public static function easeInBack(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
var _local6:Number;
_local6 = (((!(Boolean(_arg5))) || (isNaN(_arg5.overshoot)))) ? 1.70158 : _arg5.overshoot;
_arg1 = (_arg1 / _arg4);
return (((((_arg3 * _arg1) * _arg1) * (((_local6 + 1) * _arg1) - _local6)) + _arg2));
}
public static function easeInQuart(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / _arg4);
return ((((((_arg3 * _arg1) * _arg1) * _arg1) * _arg1) + _arg2));
}
public static function easeOutInQuint(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutQuint((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5));
};
return (easeInQuint(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5));
}
public static function easeOutInBounce(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutBounce((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5));
};
return (easeInBounce(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5));
}
public static function init():void{
Tweener.registerTransition("easenone", easeNone);
Tweener.registerTransition("linear", easeNone);
Tweener.registerTransition("easeinquad", easeInQuad);
Tweener.registerTransition("easeoutquad", easeOutQuad);
Tweener.registerTransition("easeinoutquad", easeInOutQuad);
Tweener.registerTransition("easeoutinquad", easeOutInQuad);
Tweener.registerTransition("easeincubic", easeInCubic);
Tweener.registerTransition("easeoutcubic", easeOutCubic);
Tweener.registerTransition("easeinoutcubic", easeInOutCubic);
Tweener.registerTransition("easeoutincubic", easeOutInCubic);
Tweener.registerTransition("easeinquart", easeInQuart);
Tweener.registerTransition("easeoutquart", easeOutQuart);
Tweener.registerTransition("easeinoutquart", easeInOutQuart);
Tweener.registerTransition("easeoutinquart", easeOutInQuart);
Tweener.registerTransition("easeinquint", easeInQuint);
Tweener.registerTransition("easeoutquint", easeOutQuint);
Tweener.registerTransition("easeinoutquint", easeInOutQuint);
Tweener.registerTransition("easeoutinquint", easeOutInQuint);
Tweener.registerTransition("easeinsine", easeInSine);
Tweener.registerTransition("easeoutsine", easeOutSine);
Tweener.registerTransition("easeinoutsine", easeInOutSine);
Tweener.registerTransition("easeoutinsine", easeOutInSine);
Tweener.registerTransition("easeincirc", easeInCirc);
Tweener.registerTransition("easeoutcirc", easeOutCirc);
Tweener.registerTransition("easeinoutcirc", easeInOutCirc);
Tweener.registerTransition("easeoutincirc", easeOutInCirc);
Tweener.registerTransition("easeinexpo", easeInExpo);
Tweener.registerTransition("easeoutexpo", easeOutExpo);
Tweener.registerTransition("easeinoutexpo", easeInOutExpo);
Tweener.registerTransition("easeoutinexpo", easeOutInExpo);
Tweener.registerTransition("easeinelastic", easeInElastic);
Tweener.registerTransition("easeoutelastic", easeOutElastic);
Tweener.registerTransition("easeinoutelastic", easeInOutElastic);
Tweener.registerTransition("easeoutinelastic", easeOutInElastic);
Tweener.registerTransition("easeinback", easeInBack);
Tweener.registerTransition("easeoutback", easeOutBack);
Tweener.registerTransition("easeinoutback", easeInOutBack);
Tweener.registerTransition("easeoutinback", easeOutInBack);
Tweener.registerTransition("easeinbounce", easeInBounce);
Tweener.registerTransition("easeoutbounce", easeOutBounce);
Tweener.registerTransition("easeinoutbounce", easeInOutBounce);
Tweener.registerTransition("easeoutinbounce", easeOutInBounce);
}
public static function easeOutExpo(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
return (((_arg1)==_arg4) ? (_arg2 + _arg3) : (((_arg3 * 1.001) * (-(Math.pow(2, ((-10 * _arg1) / _arg4))) + 1)) + _arg2));
}
public static function easeOutInBack(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutBack((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5));
};
return (easeInBack(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5));
}
public static function easeInExpo(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
return (((_arg1)==0) ? _arg2 : (((_arg3 * Math.pow(2, (10 * ((_arg1 / _arg4) - 1)))) + _arg2) - (_arg3 * 0.001)));
}
public static function easeInCubic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / _arg4);
return (((((_arg3 * _arg1) * _arg1) * _arg1) + _arg2));
}
public static function easeInQuint(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / _arg4);
return (((((((_arg3 * _arg1) * _arg1) * _arg1) * _arg1) * _arg1) + _arg2));
}
public static function easeInOutCirc(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
return ((((-(_arg3) / 2) * (Math.sqrt((1 - (_arg1 * _arg1))) - 1)) + _arg2));
};
_arg1 = (_arg1 - 2);
return ((((_arg3 / 2) * (Math.sqrt((1 - (_arg1 * _arg1))) + 1)) + _arg2));
}
public static function easeInQuad(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / _arg4);
return ((((_arg3 * _arg1) * _arg1) + _arg2));
}
public static function easeInBounce(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
return (((_arg3 - easeOutBounce((_arg4 - _arg1), 0, _arg3, _arg4)) + _arg2));
}
public static function easeOutInExpo(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutExpo((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5));
};
return (easeInExpo(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5));
}
public static function easeOutQuart(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = ((_arg1 / _arg4) - 1);
return (((-(_arg3) * ((((_arg1 * _arg1) * _arg1) * _arg1) - 1)) + _arg2));
}
public static function easeInSine(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
return ((((-(_arg3) * Math.cos(((_arg1 / _arg4) * (Math.PI / 2)))) + _arg3) + _arg2));
}
public static function easeInOutQuart(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
return (((((((_arg3 / 2) * _arg1) * _arg1) * _arg1) * _arg1) + _arg2));
};
_arg1 = (_arg1 - 2);
return ((((-(_arg3) / 2) * ((((_arg1 * _arg1) * _arg1) * _arg1) - 2)) + _arg2));
}
public static function easeOutQuad(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / _arg4);
return ((((-(_arg3) * _arg1) * (_arg1 - 2)) + _arg2));
}
public static function easeOutInElastic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutElastic((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5));
};
return (easeInElastic(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5));
}
public static function easeInElastic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
var _local6:Number;
var _local7:Number;
var _local8:Number;
if (_arg1 == 0){
return (_arg2);
};
_arg1 = (_arg1 / _arg4);
if (_arg1 == 1){
return ((_arg2 + _arg3));
};
_local6 = (((!(Boolean(_arg5))) || (isNaN(_arg5.period)))) ? (_arg4 * 0.3) : _arg5.period;
_local8 = (((!(Boolean(_arg5))) || (isNaN(_arg5.amplitude)))) ? 0 : _arg5.amplitude;
if (((!(Boolean(_local8))) || ((_local8 < Math.abs(_arg3))))){
_local8 = _arg3;
_local7 = (_local6 / 4);
} else {
_local7 = ((_local6 / (2 * Math.PI)) * Math.asin((_arg3 / _local8)));
};
--_arg1;
return ((-(((_local8 * Math.pow(2, (10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local7) * (2 * Math.PI)) / _local6)))) + _arg2));
}
public static function easeOutCubic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = ((_arg1 / _arg4) - 1);
return (((_arg3 * (((_arg1 * _arg1) * _arg1) + 1)) + _arg2));
}
public static function easeOutQuint(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = ((_arg1 / _arg4) - 1);
return (((_arg3 * (((((_arg1 * _arg1) * _arg1) * _arg1) * _arg1) + 1)) + _arg2));
}
public static function easeOutInQuad(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutQuad((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5));
};
return (easeInQuad(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5));
}
public static function easeOutSine(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
return (((_arg3 * Math.sin(((_arg1 / _arg4) * (Math.PI / 2)))) + _arg2));
}
public static function easeInOutCubic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
return ((((((_arg3 / 2) * _arg1) * _arg1) * _arg1) + _arg2));
};
_arg1 = (_arg1 - 2);
return ((((_arg3 / 2) * (((_arg1 * _arg1) * _arg1) + 2)) + _arg2));
}
public static function easeInOutQuint(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
return ((((((((_arg3 / 2) * _arg1) * _arg1) * _arg1) * _arg1) * _arg1) + _arg2));
};
_arg1 = (_arg1 - 2);
return ((((_arg3 / 2) * (((((_arg1 * _arg1) * _arg1) * _arg1) * _arg1) + 2)) + _arg2));
}
public static function easeInCirc(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / _arg4);
return (((-(_arg3) * (Math.sqrt((1 - (_arg1 * _arg1))) - 1)) + _arg2));
}
public static function easeOutInSine(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutSine((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5));
};
return (easeInSine(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5));
}
public static function easeInOutExpo(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 == 0){
return (_arg2);
};
if (_arg1 == _arg4){
return ((_arg2 + _arg3));
};
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
return (((((_arg3 / 2) * Math.pow(2, (10 * (_arg1 - 1)))) + _arg2) - (_arg3 * 0.0005)));
};
--_arg1;
return (((((_arg3 / 2) * 1.0005) * (-(Math.pow(2, (-10 * _arg1))) + 2)) + _arg2));
}
public static function easeOutElastic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
var _local6:Number;
var _local7:Number;
var _local8:Number;
if (_arg1 == 0){
return (_arg2);
};
_arg1 = (_arg1 / _arg4);
if (_arg1 == 1){
return ((_arg2 + _arg3));
};
_local6 = (((!(Boolean(_arg5))) || (isNaN(_arg5.period)))) ? (_arg4 * 0.3) : _arg5.period;
_local8 = (((!(Boolean(_arg5))) || (isNaN(_arg5.amplitude)))) ? 0 : _arg5.amplitude;
if (((!(Boolean(_local8))) || ((_local8 < Math.abs(_arg3))))){
_local8 = _arg3;
_local7 = (_local6 / 4);
} else {
_local7 = ((_local6 / (2 * Math.PI)) * Math.asin((_arg3 / _local8)));
};
return (((((_local8 * Math.pow(2, (-10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local7) * (2 * Math.PI)) / _local6))) + _arg3) + _arg2));
}
public static function easeOutCirc(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = ((_arg1 / _arg4) - 1);
return (((_arg3 * Math.sqrt((1 - (_arg1 * _arg1)))) + _arg2));
}
public static function easeOutInQuart(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutQuart((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5));
};
return (easeInQuart(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5));
}
public static function easeOutInCirc(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutCirc((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5));
};
return (easeInCirc(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5));
}
}
}//package caurina.transitions
Section 3
//PropertyInfoObj (caurina.transitions.PropertyInfoObj)
package caurina.transitions {
public class PropertyInfoObj {
public var originalValueComplete:Object;
public var modifierParameters:Array;
public var isSpecialProperty:Boolean;
public var hasModifier:Boolean;
public var valueComplete:Number;
public var extra:Object;
public var valueStart:Number;
public var modifierFunction:Function;
public var arrayIndex:Number;
public function PropertyInfoObj(_arg1:Number, _arg2:Number, _arg3:Object, _arg4:Number, _arg5:Object, _arg6:Boolean, _arg7:Function, _arg8:Array){
valueStart = _arg1;
valueComplete = _arg2;
originalValueComplete = _arg3;
arrayIndex = _arg4;
extra = _arg5;
isSpecialProperty = _arg6;
hasModifier = Boolean(_arg7);
modifierFunction = _arg7;
modifierParameters = _arg8;
}
public function toString():String{
var _local1:String;
_local1 = "\n[PropertyInfoObj ";
_local1 = (_local1 + ("valueStart:" + String(valueStart)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("valueComplete:" + String(valueComplete)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("originalValueComplete:" + String(originalValueComplete)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("arrayIndex:" + String(arrayIndex)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("extra:" + String(extra)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("isSpecialProperty:" + String(isSpecialProperty)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("hasModifier:" + String(hasModifier)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("modifierFunction:" + String(modifierFunction)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("modifierParameters:" + String(modifierParameters)));
_local1 = (_local1 + "]\n");
return (_local1);
}
public function clone():PropertyInfoObj{
var _local1:PropertyInfoObj;
_local1 = new PropertyInfoObj(valueStart, valueComplete, originalValueComplete, arrayIndex, extra, isSpecialProperty, modifierFunction, modifierParameters);
return (_local1);
}
}
}//package caurina.transitions
Section 4
//SpecialProperty (caurina.transitions.SpecialProperty)
package caurina.transitions {
public class SpecialProperty {
public var parameters:Array;
public var preProcess:Function;
public var setValue:Function;
public var getValue:Function;
public function SpecialProperty(_arg1:Function, _arg2:Function, _arg3:Array=null, _arg4:Function=null){
getValue = _arg1;
setValue = _arg2;
parameters = _arg3;
preProcess = _arg4;
}
public function toString():String{
var _local1:String;
_local1 = "";
_local1 = (_local1 + "[SpecialProperty ");
_local1 = (_local1 + ("getValue:" + String(getValue)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("setValue:" + String(setValue)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("parameters:" + String(parameters)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("preProcess:" + String(preProcess)));
_local1 = (_local1 + "]");
return (_local1);
}
}
}//package caurina.transitions
Section 5
//SpecialPropertyModifier (caurina.transitions.SpecialPropertyModifier)
package caurina.transitions {
public class SpecialPropertyModifier {
public var getValue:Function;
public var modifyValues:Function;
public function SpecialPropertyModifier(_arg1:Function, _arg2:Function){
modifyValues = _arg1;
getValue = _arg2;
}
public function toString():String{
var _local1:String;
_local1 = "";
_local1 = (_local1 + "[SpecialPropertyModifier ");
_local1 = (_local1 + ("modifyValues:" + String(modifyValues)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("getValue:" + String(getValue)));
_local1 = (_local1 + "]");
return (_local1);
}
}
}//package caurina.transitions
Section 6
//SpecialPropertySplitter (caurina.transitions.SpecialPropertySplitter)
package caurina.transitions {
public class SpecialPropertySplitter {
public var parameters:Array;
public var splitValues:Function;
public function SpecialPropertySplitter(_arg1:Function, _arg2:Array){
splitValues = _arg1;
parameters = _arg2;
}
public function toString():String{
var _local1:String;
_local1 = "";
_local1 = (_local1 + "[SpecialPropertySplitter ");
_local1 = (_local1 + ("splitValues:" + String(splitValues)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("parameters:" + String(parameters)));
_local1 = (_local1 + "]");
return (_local1);
}
}
}//package caurina.transitions
Section 7
//Tweener (caurina.transitions.Tweener)
package caurina.transitions {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
public class Tweener {
private static var _timeScale:Number = 1;
private static var _currentTimeFrame:Number;
private static var _specialPropertySplitterList:Object;
private static var _engineExists:Boolean = false;
private static var _specialPropertyModifierList:Object;
private static var _currentTime:Number;
private static var _tweenList:Array;
private static var _specialPropertyList:Object;
private static var _transitionList:Object;
private static var _inited:Boolean = false;
private static var __tweener_controller__:MovieClip;
public function Tweener(){
trace("Tweener is a static class and should not be instantiated.");
}
public static function registerSpecialPropertyModifier(_arg1:String, _arg2:Function, _arg3:Function):void{
var _local4:SpecialPropertyModifier;
if (!_inited){
init();
};
_local4 = new SpecialPropertyModifier(_arg2, _arg3);
_specialPropertyModifierList[_arg1] = _local4;
}
public static function registerSpecialProperty(_arg1:String, _arg2:Function, _arg3:Function, _arg4:Array=null, _arg5:Function=null):void{
var _local6:SpecialProperty;
if (!_inited){
init();
};
_local6 = new SpecialProperty(_arg2, _arg3, _arg4, _arg5);
_specialPropertyList[_arg1] = _local6;
}
public static function init(... _args):void{
_inited = true;
_transitionList = new Object();
Equations.init();
_specialPropertyList = new Object();
_specialPropertyModifierList = new Object();
_specialPropertySplitterList = new Object();
}
private static function updateTweens():Boolean{
var _local1:int;
if (_tweenList.length == 0){
return (false);
};
_local1 = 0;
while (_local1 < _tweenList.length) {
if ((((_tweenList[_local1] == undefined)) || (!(_tweenList[_local1].isPaused)))){
if (!updateTweenByIndex(_local1)){
removeTweenByIndex(_local1);
};
if (_tweenList[_local1] == null){
removeTweenByIndex(_local1, true);
_local1--;
};
};
_local1++;
};
return (true);
}
public static function addCaller(_arg1:Object=null, _arg2:Object=null):Boolean{
var _local3:Number;
var _local4:Array;
var _local5:Object;
var _local6:Number;
var _local7:Number;
var _local8:Function;
var _local9:TweenListObj;
var _local10:Number;
var _local11:String;
if (!Boolean(_arg1)){
return (false);
};
if ((_arg1 is Array)){
_local4 = _arg1.concat();
} else {
_local4 = [_arg1];
};
_local5 = _arg2;
if (!_inited){
init();
};
if (((!(_engineExists)) || (!(Boolean(__tweener_controller__))))){
startEngine();
};
_local6 = (isNaN(_local5.time)) ? 0 : _local5.time;
_local7 = (isNaN(_local5.delay)) ? 0 : _local5.delay;
if (typeof(_local5.transition) == "string"){
_local11 = _local5.transition.toLowerCase();
_local8 = _transitionList[_local11];
} else {
_local8 = _local5.transition;
};
if (!Boolean(_local8)){
_local8 = _transitionList["easeoutexpo"];
};
_local3 = 0;
while (_local3 < _local4.length) {
if (_local5.useFrames == true){
_local9 = new TweenListObj(_local4[_local3], (_currentTimeFrame + (_local7 / _timeScale)), (_currentTimeFrame + ((_local7 + _local6) / _timeScale)), true, _local8, _local5.transitionParams);
} else {
_local9 = new TweenListObj(_local4[_local3], (_currentTime + ((_local7 * 1000) / _timeScale)), (_currentTime + (((_local7 * 1000) + (_local6 * 1000)) / _timeScale)), false, _local8, _local5.transitionParams);
};
_local9.properties = null;
_local9.onStart = _local5.onStart;
_local9.onUpdate = _local5.onUpdate;
_local9.onComplete = _local5.onComplete;
_local9.onOverwrite = _local5.onOverwrite;
_local9.onStartParams = _local5.onStartParams;
_local9.onUpdateParams = _local5.onUpdateParams;
_local9.onCompleteParams = _local5.onCompleteParams;
_local9.onOverwriteParams = _local5.onOverwriteParams;
_local9.onStartScope = _local5.onStartScope;
_local9.onUpdateScope = _local5.onUpdateScope;
_local9.onCompleteScope = _local5.onCompleteScope;
_local9.onOverwriteScope = _local5.onOverwriteScope;
_local9.onErrorScope = _local5.onErrorScope;
_local9.isCaller = true;
_local9.count = _local5.count;
_local9.waitFrames = _local5.waitFrames;
_tweenList.push(_local9);
if ((((_local6 == 0)) && ((_local7 == 0)))){
_local10 = (_tweenList.length - 1);
updateTweenByIndex(_local10);
removeTweenByIndex(_local10);
};
_local3++;
};
return (true);
}
public static function pauseAllTweens():Boolean{
var _local1:Boolean;
var _local2:uint;
if (!Boolean(_tweenList)){
return (false);
};
_local1 = false;
_local2 = 0;
while (_local2 < _tweenList.length) {
pauseTweenByIndex(_local2);
_local1 = true;
_local2++;
};
return (_local1);
}
public static function removeTweens(_arg1:Object, ... _args):Boolean{
var _local3:Array;
var _local4:uint;
_local3 = new Array();
_local4 = 0;
while (_local4 < _args.length) {
if ((((typeof(_args[_local4]) == "string")) && (!(AuxFunctions.isInArray(_args[_local4], _local3))))){
_local3.push(_args[_local4]);
};
_local4++;
};
return (affectTweens(removeTweenByIndex, _arg1, _local3));
}
public static function splitTweens(_arg1:Number, _arg2:Array):uint{
var _local3:TweenListObj;
var _local4:TweenListObj;
var _local5:uint;
var _local6:String;
var _local7:Boolean;
_local3 = _tweenList[_arg1];
_local4 = _local3.clone(false);
_local5 = 0;
while (_local5 < _arg2.length) {
_local6 = _arg2[_local5];
if (Boolean(_local3.properties[_local6])){
_local3.properties[_local6] = undefined;
delete _local3.properties[_local6];
};
_local5++;
};
for (_local6 in _local4.properties) {
_local7 = false;
_local5 = 0;
while (_local5 < _arg2.length) {
if (_arg2[_local5] == _local6){
_local7 = true;
break;
};
_local5++;
};
if (!_local7){
_local4.properties[_local6] = undefined;
delete _local4.properties[_local6];
};
};
_tweenList.push(_local4);
return ((_tweenList.length - 1));
}
public static function updateFrame():void{
_currentTimeFrame++;
}
public static function resumeTweenByIndex(_arg1:Number):Boolean{
var _local2:TweenListObj;
var _local3:Number;
_local2 = _tweenList[_arg1];
if ((((_local2 == null)) || (!(_local2.isPaused)))){
return (false);
};
_local3 = getCurrentTweeningTime(_local2);
_local2.timeStart = (_local2.timeStart + (_local3 - _local2.timePaused));
_local2.timeComplete = (_local2.timeComplete + (_local3 - _local2.timePaused));
_local2.timePaused = undefined;
_local2.isPaused = false;
return (true);
}
public static function getVersion():String{
return ("AS3 1.31.71");
}
public static function onEnterFrame(_arg1:Event):void{
var _local2:Boolean;
updateTime();
updateFrame();
_local2 = false;
_local2 = updateTweens();
if (!_local2){
stopEngine();
};
}
public static function updateTime():void{
_currentTime = getTimer();
}
private static function updateTweenByIndex(_arg1:Number):Boolean{
var tTweening:TweenListObj;
var isOver:Boolean;
var mustUpdate:Boolean;
var nv:Number;
var t:Number;
var b:Number;
var c:Number;
var d:Number;
var pName:String;
var eventScope:Object;
var tScope:Object;
var cTime:Number;
var tProperty:Object;
var pv:Number;
var i = _arg1;
tTweening = _tweenList[i];
if ((((tTweening == null)) || (!(Boolean(tTweening.scope))))){
return (false);
};
isOver = false;
cTime = getCurrentTweeningTime(tTweening);
if (cTime >= tTweening.timeStart){
tScope = tTweening.scope;
if (tTweening.isCaller){
do {
t = (((tTweening.timeComplete - tTweening.timeStart) / tTweening.count) * (tTweening.timesCalled + 1));
b = tTweening.timeStart;
c = (tTweening.timeComplete - tTweening.timeStart);
d = (tTweening.timeComplete - tTweening.timeStart);
nv = tTweening.transition(t, b, c, d);
} while (!(cTime >= nv));
} else {
mustUpdate = (((((tTweening.skipUpdates < 1)) || (!(tTweening.skipUpdates)))) || ((tTweening.updatesSkipped >= tTweening.skipUpdates)));
if (cTime >= tTweening.timeComplete){
isOver = true;
mustUpdate = true;
};
if (!tTweening.hasStarted){
if (Boolean(tTweening.onStart)){
eventScope = (Boolean(tTweening.onStartScope)) ? tTweening.onStartScope : tScope;
try {
tTweening.onStart.apply(eventScope, tTweening.onStartParams);
} catch(e:Error) {
handleError(tTweening, e, "onStart");
};
};
for (pName in tTweening.properties) {
if (tTweening.properties[pName].isSpecialProperty){
if (Boolean(_specialPropertyList[pName].preProcess)){
tTweening.properties[pName].valueComplete = _specialPropertyList[pName].preProcess(tScope, _specialPropertyList[pName].parameters, tTweening.properties[pName].originalValueComplete, tTweening.properties[pName].extra);
};
pv = _specialPropertyList[pName].getValue(tScope, _specialPropertyList[pName].parameters, tTweening.properties[pName].extra);
} else {
pv = tScope[pName];
};
tTweening.properties[pName].valueStart = (isNaN(pv)) ? tTweening.properties[pName].valueComplete : pv;
};
mustUpdate = true;
tTweening.hasStarted = true;
};
if (mustUpdate){
for (pName in tTweening.properties) {
tProperty = tTweening.properties[pName];
if (isOver){
nv = tProperty.valueComplete;
} else {
if (tProperty.hasModifier){
t = (cTime - tTweening.timeStart);
d = (tTweening.timeComplete - tTweening.timeStart);
nv = tTweening.transition(t, 0, 1, d, tTweening.transitionParams);
nv = tProperty.modifierFunction(tProperty.valueStart, tProperty.valueComplete, nv, tProperty.modifierParameters);
} else {
t = (cTime - tTweening.timeStart);
b = tProperty.valueStart;
c = (tProperty.valueComplete - tProperty.valueStart);
d = (tTweening.timeComplete - tTweening.timeStart);
nv = tTweening.transition(t, b, c, d, tTweening.transitionParams);
};
};
if (tTweening.rounded){
nv = Math.round(nv);
};
if (tProperty.isSpecialProperty){
_specialPropertyList[pName].setValue(tScope, nv, _specialPropertyList[pName].parameters, tTweening.properties[pName].extra);
} else {
tScope[pName] = nv;
};
};
tTweening.updatesSkipped = 0;
if (Boolean(tTweening.onUpdate)){
eventScope = (Boolean(tTweening.onUpdateScope)) ? tTweening.onUpdateScope : tScope;
try {
tTweening.onUpdate.apply(eventScope, tTweening.onUpdateParams);
} catch(e:Error) {
handleError(tTweening, e, "onUpdate");
};
};
} else {
tTweening.updatesSkipped++;
};
};
if (((isOver) && (Boolean(tTweening.onComplete)))){
eventScope = (Boolean(tTweening.onCompleteScope)) ? tTweening.onCompleteScope : tScope;
try {
tTweening.onComplete.apply(eventScope, tTweening.onCompleteParams);
} catch(e:Error) {
handleError(tTweening, e, "onComplete");
};
};
return (!(isOver));
};
return (true);
}
public static function setTimeScale(_arg1:Number):void{
var _local2:Number;
var _local3:Number;
if (isNaN(_arg1)){
_arg1 = 1;
};
if (_arg1 < 1E-5){
_arg1 = 1E-5;
};
if (_arg1 != _timeScale){
if (_tweenList != null){
_local2 = 0;
while (_local2 < _tweenList.length) {
_local3 = getCurrentTweeningTime(_tweenList[_local2]);
_tweenList[_local2].timeStart = (_local3 - (((_local3 - _tweenList[_local2].timeStart) * _timeScale) / _arg1));
_tweenList[_local2].timeComplete = (_local3 - (((_local3 - _tweenList[_local2].timeComplete) * _timeScale) / _arg1));
if (_tweenList[_local2].timePaused != undefined){
_tweenList[_local2].timePaused = (_local3 - (((_local3 - _tweenList[_local2].timePaused) * _timeScale) / _arg1));
};
_local2++;
};
};
_timeScale = _arg1;
};
}
public static function resumeAllTweens():Boolean{
var _local1:Boolean;
var _local2:uint;
if (!Boolean(_tweenList)){
return (false);
};
_local1 = false;
_local2 = 0;
while (_local2 < _tweenList.length) {
resumeTweenByIndex(_local2);
_local1 = true;
_local2++;
};
return (_local1);
}
private static function handleError(_arg1:TweenListObj, _arg2:Error, _arg3:String):void{
var eventScope:Object;
var pTweening = _arg1;
var pError = _arg2;
var pCallBackName = _arg3;
if (((Boolean(pTweening.onError)) && ((pTweening.onError is Function)))){
eventScope = (Boolean(pTweening.onErrorScope)) ? pTweening.onErrorScope : pTweening.scope;
try {
pTweening.onError.apply(eventScope, [pTweening.scope, pError]);
} catch(metaError:Error) {
printError(((((String(pTweening.scope) + " raised an error while executing the 'onError' handler. Original error:\n ") + pError.getStackTrace()) + "\nonError error: ") + metaError.getStackTrace()));
};
} else {
if (!Boolean(pTweening.onError)){
printError(((((String(pTweening.scope) + " raised an error while executing the '") + pCallBackName) + "'handler. \n") + pError.getStackTrace()));
};
};
}
private static function startEngine():void{
_engineExists = true;
_tweenList = new Array();
__tweener_controller__ = new MovieClip();
__tweener_controller__.addEventListener(Event.ENTER_FRAME, Tweener.onEnterFrame);
_currentTimeFrame = 0;
updateTime();
}
public static function removeAllTweens():Boolean{
var _local1:Boolean;
var _local2:uint;
if (!Boolean(_tweenList)){
return (false);
};
_local1 = false;
_local2 = 0;
while (_local2 < _tweenList.length) {
removeTweenByIndex(_local2);
_local1 = true;
_local2++;
};
return (_local1);
}
public static function addTween(_arg1:Object=null, _arg2:Object=null):Boolean{
var _local3:Number;
var _local4:Number;
var _local5:String;
var _local6:Array;
var _local7:Object;
var _local8:Number;
var _local9:Number;
var _local10:Array;
var _local11:Object;
var _local12:Object;
var _local13:Function;
var _local14:Object;
var _local15:TweenListObj;
var _local16:Number;
var _local17:Array;
var _local18:Array;
var _local19:Array;
var _local20:String;
if (!Boolean(_arg1)){
return (false);
};
if ((_arg1 is Array)){
_local6 = _arg1.concat();
} else {
_local6 = [_arg1];
};
_local7 = TweenListObj.makePropertiesChain(_arg2);
if (!_inited){
init();
};
if (((!(_engineExists)) || (!(Boolean(__tweener_controller__))))){
startEngine();
};
_local8 = (isNaN(_local7.time)) ? 0 : _local7.time;
_local9 = (isNaN(_local7.delay)) ? 0 : _local7.delay;
_local10 = new Array();
_local11 = {time:true, delay:true, useFrames:true, skipUpdates:true, transition:true, transitionParams:true, onStart:true, onUpdate:true, onComplete:true, onOverwrite:true, onError:true, rounded:true, onStartParams:true, onUpdateParams:true, onCompleteParams:true, onOverwriteParams:true, onStartScope:true, onUpdateScope:true, onCompleteScope:true, onOverwriteScope:true, onErrorScope:true};
_local12 = new Object();
for (_local5 in _local7) {
if (!_local11[_local5]){
if (_specialPropertySplitterList[_local5]){
_local17 = _specialPropertySplitterList[_local5].splitValues(_local7[_local5], _specialPropertySplitterList[_local5].parameters);
_local3 = 0;
while (_local3 < _local17.length) {
if (_specialPropertySplitterList[_local17[_local3].name]){
_local18 = _specialPropertySplitterList[_local17[_local3].name].splitValues(_local17[_local3].value, _specialPropertySplitterList[_local17[_local3].name].parameters);
_local4 = 0;
while (_local4 < _local18.length) {
_local10[_local18[_local4].name] = {valueStart:undefined, valueComplete:_local18[_local4].value, arrayIndex:_local18[_local4].arrayIndex, isSpecialProperty:false};
_local4++;
};
} else {
_local10[_local17[_local3].name] = {valueStart:undefined, valueComplete:_local17[_local3].value, arrayIndex:_local17[_local3].arrayIndex, isSpecialProperty:false};
};
_local3++;
};
} else {
if (_specialPropertyModifierList[_local5] != undefined){
_local19 = _specialPropertyModifierList[_local5].modifyValues(_local7[_local5]);
_local3 = 0;
while (_local3 < _local19.length) {
_local12[_local19[_local3].name] = {modifierParameters:_local19[_local3].parameters, modifierFunction:_specialPropertyModifierList[_local5].getValue};
_local3++;
};
} else {
_local10[_local5] = {valueStart:undefined, valueComplete:_local7[_local5]};
};
};
};
};
for (_local5 in _local10) {
if (_specialPropertyList[_local5] != undefined){
_local10[_local5].isSpecialProperty = true;
} else {
if (_local6[0][_local5] == undefined){
printError((((("The property '" + _local5) + "' doesn't seem to be a normal object property of ") + String(_local6[0])) + " or a registered special property."));
};
};
};
for (_local5 in _local12) {
if (_local10[_local5] != undefined){
_local10[_local5].modifierParameters = _local12[_local5].modifierParameters;
_local10[_local5].modifierFunction = _local12[_local5].modifierFunction;
};
};
if (typeof(_local7.transition) == "string"){
_local20 = _local7.transition.toLowerCase();
_local13 = _transitionList[_local20];
} else {
_local13 = _local7.transition;
};
if (!Boolean(_local13)){
_local13 = _transitionList["easeoutexpo"];
};
_local3 = 0;
while (_local3 < _local6.length) {
_local14 = new Object();
for (_local5 in _local10) {
_local14[_local5] = new PropertyInfoObj(_local10[_local5].valueStart, _local10[_local5].valueComplete, _local10[_local5].valueComplete, _local10[_local5].arrayIndex, {}, _local10[_local5].isSpecialProperty, _local10[_local5].modifierFunction, _local10[_local5].modifierParameters);
};
if (_local7.useFrames == true){
_local15 = new TweenListObj(_local6[_local3], (_currentTimeFrame + (_local9 / _timeScale)), (_currentTimeFrame + ((_local9 + _local8) / _timeScale)), true, _local13, _local7.transitionParams);
} else {
_local15 = new TweenListObj(_local6[_local3], (_currentTime + ((_local9 * 1000) / _timeScale)), (_currentTime + (((_local9 * 1000) + (_local8 * 1000)) / _timeScale)), false, _local13, _local7.transitionParams);
};
_local15.properties = _local14;
_local15.onStart = _local7.onStart;
_local15.onUpdate = _local7.onUpdate;
_local15.onComplete = _local7.onComplete;
_local15.onOverwrite = _local7.onOverwrite;
_local15.onError = _local7.onError;
_local15.onStartParams = _local7.onStartParams;
_local15.onUpdateParams = _local7.onUpdateParams;
_local15.onCompleteParams = _local7.onCompleteParams;
_local15.onOverwriteParams = _local7.onOverwriteParams;
_local15.onStartScope = _local7.onStartScope;
_local15.onUpdateScope = _local7.onUpdateScope;
_local15.onCompleteScope = _local7.onCompleteScope;
_local15.onOverwriteScope = _local7.onOverwriteScope;
_local15.onErrorScope = _local7.onErrorScope;
_local15.rounded = _local7.rounded;
_local15.skipUpdates = _local7.skipUpdates;
removeTweensByTime(_local15.scope, _local15.properties, _local15.timeStart, _local15.timeComplete);
_tweenList.push(_local15);
if ((((_local8 == 0)) && ((_local9 == 0)))){
_local16 = (_tweenList.length - 1);
updateTweenByIndex(_local16);
removeTweenByIndex(_local16);
};
_local3++;
};
return (true);
}
public static function registerTransition(_arg1:String, _arg2:Function):void{
if (!_inited){
init();
};
_transitionList[_arg1] = _arg2;
}
public static function printError(_arg1:String):void{
trace(("## [Tweener] Error: " + _arg1));
}
private static function affectTweens(_arg1:Function, _arg2:Object, _arg3:Array):Boolean{
var _local4:Boolean;
var _local5:uint;
var _local6:Array;
var _local7:uint;
var _local8:uint;
var _local9:uint;
_local4 = false;
if (!Boolean(_tweenList)){
return (false);
};
_local5 = 0;
while (_local5 < _tweenList.length) {
if (((_tweenList[_local5]) && ((_tweenList[_local5].scope == _arg2)))){
if (_arg3.length == 0){
_arg1(_local5);
_local4 = true;
} else {
_local6 = new Array();
_local7 = 0;
while (_local7 < _arg3.length) {
if (Boolean(_tweenList[_local5].properties[_arg3[_local7]])){
_local6.push(_arg3[_local7]);
};
_local7++;
};
if (_local6.length > 0){
_local8 = AuxFunctions.getObjectLength(_tweenList[_local5].properties);
if (_local8 == _local6.length){
_arg1(_local5);
_local4 = true;
} else {
_local9 = splitTweens(_local5, _local6);
_arg1(_local9);
_local4 = true;
};
};
};
};
_local5++;
};
return (_local4);
}
public static function getTweens(_arg1:Object):Array{
var _local2:uint;
var _local3:String;
var _local4:Array;
if (!Boolean(_tweenList)){
return ([]);
};
_local4 = new Array();
_local2 = 0;
while (_local2 < _tweenList.length) {
if (((Boolean(_tweenList[_local2])) && ((_tweenList[_local2].scope == _arg1)))){
for (_local3 in _tweenList[_local2].properties) {
_local4.push(_local3);
};
};
_local2++;
};
return (_local4);
}
public static function isTweening(_arg1:Object):Boolean{
var _local2:uint;
if (!Boolean(_tweenList)){
return (false);
};
_local2 = 0;
while (_local2 < _tweenList.length) {
if (((Boolean(_tweenList[_local2])) && ((_tweenList[_local2].scope == _arg1)))){
return (true);
};
_local2++;
};
return (false);
}
public static function pauseTweenByIndex(_arg1:Number):Boolean{
var _local2:TweenListObj;
_local2 = _tweenList[_arg1];
if ((((_local2 == null)) || (_local2.isPaused))){
return (false);
};
_local2.timePaused = getCurrentTweeningTime(_local2);
_local2.isPaused = true;
return (true);
}
public static function getCurrentTweeningTime(_arg1:Object):Number{
return ((_arg1.useFrames) ? _currentTimeFrame : _currentTime);
}
public static function getTweenCount(_arg1:Object):Number{
var _local2:uint;
var _local3:Number;
if (!Boolean(_tweenList)){
return (0);
};
_local3 = 0;
_local2 = 0;
while (_local2 < _tweenList.length) {
if (((Boolean(_tweenList[_local2])) && ((_tweenList[_local2].scope == _arg1)))){
_local3 = (_local3 + AuxFunctions.getObjectLength(_tweenList[_local2].properties));
};
_local2++;
};
return (_local3);
}
private static function stopEngine():void{
_engineExists = false;
_tweenList = null;
_currentTime = 0;
_currentTimeFrame = 0;
__tweener_controller__.removeEventListener(Event.ENTER_FRAME, Tweener.onEnterFrame);
__tweener_controller__ = null;
}
public static function removeTweensByTime(_arg1:Object, _arg2:Object, _arg3:Number, _arg4:Number):Boolean{
var removed:Boolean;
var removedLocally:Boolean;
var i:uint;
var tl:uint;
var pName:String;
var eventScope:Object;
var p_scope = _arg1;
var p_properties = _arg2;
var p_timeStart = _arg3;
var p_timeComplete = _arg4;
removed = false;
tl = _tweenList.length;
i = 0;
while (i < tl) {
if (((Boolean(_tweenList[i])) && ((p_scope == _tweenList[i].scope)))){
if ((((p_timeComplete > _tweenList[i].timeStart)) && ((p_timeStart < _tweenList[i].timeComplete)))){
removedLocally = false;
for (pName in _tweenList[i].properties) {
if (Boolean(p_properties[pName])){
if (Boolean(_tweenList[i].onOverwrite)){
eventScope = (Boolean(_tweenList[i].onOverwriteScope)) ? _tweenList[i].onOverwriteScope : _tweenList[i].scope;
try {
_tweenList[i].onOverwrite.apply(eventScope, _tweenList[i].onOverwriteParams);
} catch(e:Error) {
handleError(_tweenList[i], e, "onOverwrite");
};
};
_tweenList[i].properties[pName] = undefined;
delete _tweenList[i].properties[pName];
removedLocally = true;
removed = true;
};
};
if (removedLocally){
if (AuxFunctions.getObjectLength(_tweenList[i].properties) == 0){
removeTweenByIndex(i);
};
};
};
};
i = (i + 1);
};
return (removed);
}
public static function registerSpecialPropertySplitter(_arg1:String, _arg2:Function, _arg3:Array=null):void{
var _local4:SpecialPropertySplitter;
if (!_inited){
init();
};
_local4 = new SpecialPropertySplitter(_arg2, _arg3);
_specialPropertySplitterList[_arg1] = _local4;
}
public static function removeTweenByIndex(_arg1:Number, _arg2:Boolean=false):Boolean{
_tweenList[_arg1] = null;
if (_arg2){
_tweenList.splice(_arg1, 1);
};
return (true);
}
public static function resumeTweens(_arg1:Object, ... _args):Boolean{
var _local3:Array;
var _local4:uint;
_local3 = new Array();
_local4 = 0;
while (_local4 < _args.length) {
if ((((typeof(_args[_local4]) == "string")) && (!(AuxFunctions.isInArray(_args[_local4], _local3))))){
_local3.push(_args[_local4]);
};
_local4++;
};
return (affectTweens(resumeTweenByIndex, _arg1, _local3));
}
public static function pauseTweens(_arg1:Object, ... _args):Boolean{
var _local3:Array;
var _local4:uint;
_local3 = new Array();
_local4 = 0;
while (_local4 < _args.length) {
if ((((typeof(_args[_local4]) == "string")) && (!(AuxFunctions.isInArray(_args[_local4], _local3))))){
_local3.push(_args[_local4]);
};
_local4++;
};
return (affectTweens(pauseTweenByIndex, _arg1, _local3));
}
}
}//package caurina.transitions
Section 8
//TweenListObj (caurina.transitions.TweenListObj)
package caurina.transitions {
public class TweenListObj {
public var onUpdate:Function;
public var useFrames:Boolean;
public var hasStarted:Boolean;
public var onOverwriteParams:Array;
public var timeStart:Number;
public var count:Number;
public var timeComplete:Number;
public var onStartParams:Array;
public var onUpdateScope:Object;
public var rounded:Boolean;
public var onUpdateParams:Array;
public var properties:Object;
public var onComplete:Function;
public var transitionParams:Object;
public var updatesSkipped:Number;
public var onStart:Function;
public var onOverwriteScope:Object;
public var skipUpdates:Number;
public var onStartScope:Object;
public var scope:Object;
public var transition:Function;
public var timePaused:Number;
public var onCompleteParams:Array;
public var timesCalled:Number;
public var isCaller:Boolean;
public var onError:Function;
public var onErrorScope:Object;
public var onOverwrite:Function;
public var isPaused:Boolean;
public var waitFrames:Boolean;
public var onCompleteScope:Object;
public function TweenListObj(_arg1:Object, _arg2:Number, _arg3:Number, _arg4:Boolean, _arg5:Function, _arg6:Object){
scope = _arg1;
timeStart = _arg2;
timeComplete = _arg3;
useFrames = _arg4;
transition = _arg5;
transitionParams = _arg6;
properties = new Object();
isPaused = false;
timePaused = undefined;
isCaller = false;
updatesSkipped = 0;
timesCalled = 0;
skipUpdates = 0;
hasStarted = false;
}
public function clone(_arg1:Boolean):TweenListObj{
var _local2:TweenListObj;
var _local3:String;
_local2 = new TweenListObj(scope, timeStart, timeComplete, useFrames, transition, transitionParams);
_local2.properties = new Array();
for (_local3 in properties) {
_local2.properties[_local3] = properties[_local3].clone();
};
_local2.skipUpdates = skipUpdates;
_local2.updatesSkipped = updatesSkipped;
if (!_arg1){
_local2.onStart = onStart;
_local2.onUpdate = onUpdate;
_local2.onComplete = onComplete;
_local2.onOverwrite = onOverwrite;
_local2.onError = onError;
_local2.onStartParams = onStartParams;
_local2.onUpdateParams = onUpdateParams;
_local2.onCompleteParams = onCompleteParams;
_local2.onOverwriteParams = onOverwriteParams;
_local2.onStartScope = onStartScope;
_local2.onUpdateScope = onUpdateScope;
_local2.onCompleteScope = onCompleteScope;
_local2.onOverwriteScope = onOverwriteScope;
_local2.onErrorScope = onErrorScope;
};
_local2.rounded = rounded;
_local2.isPaused = isPaused;
_local2.timePaused = timePaused;
_local2.isCaller = isCaller;
_local2.count = count;
_local2.timesCalled = timesCalled;
_local2.waitFrames = waitFrames;
_local2.hasStarted = hasStarted;
return (_local2);
}
public function toString():String{
var _local1:String;
var _local2:Boolean;
var _local3:String;
_local1 = "\n[TweenListObj ";
_local1 = (_local1 + ("scope:" + String(scope)));
_local1 = (_local1 + ", properties:");
_local2 = true;
for (_local3 in properties) {
if (!_local2){
_local1 = (_local1 + ",");
};
_local1 = (_local1 + ("[name:" + properties[_local3].name));
_local1 = (_local1 + (",valueStart:" + properties[_local3].valueStart));
_local1 = (_local1 + (",valueComplete:" + properties[_local3].valueComplete));
_local1 = (_local1 + "]");
_local2 = false;
};
_local1 = (_local1 + (", timeStart:" + String(timeStart)));
_local1 = (_local1 + (", timeComplete:" + String(timeComplete)));
_local1 = (_local1 + (", useFrames:" + String(useFrames)));
_local1 = (_local1 + (", transition:" + String(transition)));
_local1 = (_local1 + (", transitionParams:" + String(transitionParams)));
if (skipUpdates){
_local1 = (_local1 + (", skipUpdates:" + String(skipUpdates)));
};
if (updatesSkipped){
_local1 = (_local1 + (", updatesSkipped:" + String(updatesSkipped)));
};
if (Boolean(onStart)){
_local1 = (_local1 + (", onStart:" + String(onStart)));
};
if (Boolean(onUpdate)){
_local1 = (_local1 + (", onUpdate:" + String(onUpdate)));
};
if (Boolean(onComplete)){
_local1 = (_local1 + (", onComplete:" + String(onComplete)));
};
if (Boolean(onOverwrite)){
_local1 = (_local1 + (", onOverwrite:" + String(onOverwrite)));
};
if (Boolean(onError)){
_local1 = (_local1 + (", onError:" + String(onError)));
};
if (onStartParams){
_local1 = (_local1 + (", onStartParams:" + String(onStartParams)));
};
if (onUpdateParams){
_local1 = (_local1 + (", onUpdateParams:" + String(onUpdateParams)));
};
if (onCompleteParams){
_local1 = (_local1 + (", onCompleteParams:" + String(onCompleteParams)));
};
if (onOverwriteParams){
_local1 = (_local1 + (", onOverwriteParams:" + String(onOverwriteParams)));
};
if (onStartScope){
_local1 = (_local1 + (", onStartScope:" + String(onStartScope)));
};
if (onUpdateScope){
_local1 = (_local1 + (", onUpdateScope:" + String(onUpdateScope)));
};
if (onCompleteScope){
_local1 = (_local1 + (", onCompleteScope:" + String(onCompleteScope)));
};
if (onOverwriteScope){
_local1 = (_local1 + (", onOverwriteScope:" + String(onOverwriteScope)));
};
if (onErrorScope){
_local1 = (_local1 + (", onErrorScope:" + String(onErrorScope)));
};
if (rounded){
_local1 = (_local1 + (", rounded:" + String(rounded)));
};
if (isPaused){
_local1 = (_local1 + (", isPaused:" + String(isPaused)));
};
if (timePaused){
_local1 = (_local1 + (", timePaused:" + String(timePaused)));
};
if (isCaller){
_local1 = (_local1 + (", isCaller:" + String(isCaller)));
};
if (count){
_local1 = (_local1 + (", count:" + String(count)));
};
if (timesCalled){
_local1 = (_local1 + (", timesCalled:" + String(timesCalled)));
};
if (waitFrames){
_local1 = (_local1 + (", waitFrames:" + String(waitFrames)));
};
if (hasStarted){
_local1 = (_local1 + (", hasStarted:" + String(hasStarted)));
};
_local1 = (_local1 + "]\n");
return (_local1);
}
public static function makePropertiesChain(_arg1:Object):Object{
var _local2:Object;
var _local3:Object;
var _local4:Object;
var _local5:Object;
var _local6:Number;
var _local7:Number;
var _local8:Number;
_local2 = _arg1.base;
if (_local2){
_local3 = {};
if ((_local2 is Array)){
_local4 = [];
_local8 = 0;
while (_local8 < _local2.length) {
_local4.push(_local2[_local8]);
_local8++;
};
} else {
_local4 = [_local2];
};
_local4.push(_arg1);
_local6 = _local4.length;
_local7 = 0;
while (_local7 < _local6) {
if (_local4[_local7]["base"]){
_local5 = AuxFunctions.concatObjects(makePropertiesChain(_local4[_local7]["base"]), _local4[_local7]);
} else {
_local5 = _local4[_local7];
};
_local3 = AuxFunctions.concatObjects(_local3, _local5);
_local7++;
};
if (_local3["base"]){
delete _local3["base"];
};
return (_local3);
//unresolved jump
};
return (_arg1);
}
}
}//package caurina.transitions
Section 9
//ColorMatrix (com.gskinner.geom.ColorMatrix)
package com.gskinner.geom {
public dynamic class ColorMatrix extends Array {
private static const IDENTITY_MATRIX:Array = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1];
private static const LENGTH:Number = IDENTITY_MATRIX.length;
private static const DELTA_INDEX:Array = [0, 0.01, 0.02, 0.04, 0.05, 0.06, 0.07, 0.08, 0.1, 0.11, 0.12, 0.14, 0.15, 0.16, 0.17, 0.18, 0.2, 0.21, 0.22, 0.24, 0.25, 0.27, 0.28, 0.3, 0.32, 0.34, 0.36, 0.38, 0.4, 0.42, 0.44, 0.46, 0.48, 0.5, 0.53, 0.56, 0.59, 0.62, 0.65, 0.68, 0.71, 0.74, 0.77, 0.8, 0.83, 0.86, 0.89, 0.92, 0.95, 0.98, 1, 1.06, 1.12, 1.18, 1.24, 1.3, 1.36, 1.42, 1.48, 1.54, 1.6, 1.66, 1.72, 1.78, 1.84, 1.9, 1.96, 2, 2.12, 2.25, 2.37, 2.5, 2.62, 2.75, 2.87, 3, 3.2, 3.4, 3.6, 3.8, 4, 4.3, 4.7, 4.9, 5, 5.5, 6, 6.5, 6.8, 7, 7.3, 7.5, 7.8, 8, 8.4, 8.7, 9, 9.4, 9.6, 9.8, 10];
public function ColorMatrix(_arg1:Array=null){
_arg1 = fixMatrix(_arg1);
copyMatrix(((_arg1.length)==LENGTH) ? _arg1 : IDENTITY_MATRIX);
}
public function adjustBrightness(_arg1:Number):void{
_arg1 = cleanValue(_arg1, 100);
if ((((_arg1 == 0)) || (isNaN(_arg1)))){
return;
};
multiplyMatrix([1, 0, 0, 0, _arg1, 0, 1, 0, 0, _arg1, 0, 0, 1, 0, _arg1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1]);
}
protected function multiplyMatrix(_arg1:Array):void{
var _local2:Array;
var _local3:uint;
var _local4:uint;
var _local5:Number;
var _local6:Number;
_local2 = [];
_local3 = 0;
while (_local3 < 5) {
_local4 = 0;
while (_local4 < 5) {
_local2[_local4] = this[(_local4 + (_local3 * 5))];
_local4++;
};
_local4 = 0;
while (_local4 < 5) {
_local5 = 0;
_local6 = 0;
while (_local6 < 5) {
_local5 = (_local5 + (_arg1[(_local4 + (_local6 * 5))] * _local2[_local6]));
_local6++;
};
this[(_local4 + (_local3 * 5))] = _local5;
_local4++;
};
_local3++;
};
}
public function adjustSaturation(_arg1:Number):void{
var _local2:Number;
var _local3:Number;
var _local4:Number;
var _local5:Number;
_arg1 = cleanValue(_arg1, 100);
if ((((_arg1 == 0)) || (isNaN(_arg1)))){
return;
};
_local2 = (1 + ((_arg1)>0) ? ((3 * _arg1) / 100) : (_arg1 / 100));
_local3 = 0.3086;
_local4 = 0.6094;
_local5 = 0.082;
multiplyMatrix([((_local3 * (1 - _local2)) + _local2), (_local4 * (1 - _local2)), (_local5 * (1 - _local2)), 0, 0, (_local3 * (1 - _local2)), ((_local4 * (1 - _local2)) + _local2), (_local5 * (1 - _local2)), 0, 0, (_local3 * (1 - _local2)), (_local4 * (1 - _local2)), ((_local5 * (1 - _local2)) + _local2), 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1]);
}
public function reset():void{
var _local1:uint;
_local1 = 0;
while (_local1 < LENGTH) {
this[_local1] = IDENTITY_MATRIX[_local1];
_local1++;
};
}
public function adjustColor(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):void{
adjustHue(_arg4);
adjustContrast(_arg2);
adjustBrightness(_arg1);
adjustSaturation(_arg3);
}
public function clone():ColorMatrix{
return (new ColorMatrix(this));
}
public function toArray():Array{
return (slice(0, 20));
}
protected function cleanValue(_arg1:Number, _arg2:Number):Number{
return (Math.min(_arg2, Math.max(-(_arg2), _arg1)));
}
public function adjustHue(_arg1:Number):void{
var _local2:Number;
var _local3:Number;
var _local4:Number;
var _local5:Number;
var _local6:Number;
_arg1 = ((cleanValue(_arg1, 180) / 180) * Math.PI);
if ((((_arg1 == 0)) || (isNaN(_arg1)))){
return;
};
_local2 = Math.cos(_arg1);
_local3 = Math.sin(_arg1);
_local4 = 0.213;
_local5 = 0.715;
_local6 = 0.072;
multiplyMatrix([((_local4 + (_local2 * (1 - _local4))) + (_local3 * -(_local4))), ((_local5 + (_local2 * -(_local5))) + (_local3 * -(_local5))), ((_local6 + (_local2 * -(_local6))) + (_local3 * (1 - _local6))), 0, 0, ((_local4 + (_local2 * -(_local4))) + (_local3 * 0.143)), ((_local5 + (_local2 * (1 - _local5))) + (_local3 * 0.14)), ((_local6 + (_local2 * -(_local6))) + (_local3 * -0.283)), 0, 0, ((_local4 + (_local2 * -(_local4))) + (_local3 * -((1 - _local4)))), ((_local5 + (_local2 * -(_local5))) + (_local3 * _local5)), ((_local6 + (_local2 * (1 - _local6))) + (_local3 * _local6)), 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1]);
}
public function concat(_arg1:Array):void{
_arg1 = fixMatrix(_arg1);
if (_arg1.length != LENGTH){
return;
};
multiplyMatrix(_arg1);
}
protected function copyMatrix(_arg1:Array):void{
var _local2:Number;
var _local3:uint;
_local2 = LENGTH;
_local3 = 0;
while (_local3 < _local2) {
this[_local3] = _arg1[_local3];
_local3++;
};
}
protected function fixMatrix(_arg1:Array=null):Array{
if (_arg1 == null){
return (IDENTITY_MATRIX);
};
if ((_arg1 is ColorMatrix)){
_arg1 = _arg1.slice(0);
};
if (_arg1.length < LENGTH){
_arg1 = _arg1.slice(0, _arg1.length).concat(IDENTITY_MATRIX.slice(_arg1.length, LENGTH));
} else {
if (_arg1.length > LENGTH){
_arg1 = _arg1.slice(0, LENGTH);
};
};
return (_arg1);
}
public function adjustContrast(_arg1:Number):void{
var _local2:Number;
_arg1 = cleanValue(_arg1, 100);
if ((((_arg1 == 0)) || (isNaN(_arg1)))){
return;
};
if (_arg1 < 0){
_local2 = (127 + ((_arg1 / 100) * 127));
} else {
_local2 = (_arg1 % 1);
if (_local2 == 0){
_local2 = DELTA_INDEX[_arg1];
} else {
_local2 = ((DELTA_INDEX[(_arg1 << 0)] * (1 - _local2)) + (DELTA_INDEX[((_arg1 << 0) + 1)] * _local2));
};
_local2 = ((_local2 * 127) + 127);
};
multiplyMatrix([(_local2 / 127), 0, 0, 0, (0.5 * (127 - _local2)), 0, (_local2 / 127), 0, 0, (0.5 * (127 - _local2)), 0, 0, (_local2 / 127), 0, (0.5 * (127 - _local2)), 0, 0, 0, 1, 0, 0, 0, 0, 0, 1]);
}
public function toString():String{
return ((("ColorMatrix [ " + this.join(" , ")) + " ]"));
}
}
}//package com.gskinner.geom
Section 10
//ColDetection (com.troy.collision.ColDetection)
package com.troy.collision {
import flash.geom.*;
import flash.display.*;
public class ColDetection {
public static function getCollisionRect(_arg1:DisplayObject, _arg2:DisplayObject, _arg3:DisplayObjectContainer, _arg4:Boolean=false, _arg5:Number=0):Rectangle{
var _local6:Rectangle;
var _local7:Rectangle;
var _local8:Rectangle;
var _local9:BitmapData;
var _local10:BitmapData;
var _local11:uint;
var _local12:Rectangle;
var _local13:int;
_local6 = _arg1.getBounds(_arg3);
_local7 = _arg2.getBounds(_arg3);
_local8 = _local6.intersection(_local7);
if (_local8.size.length > 0){
if (_arg4){
_local8.width = Math.ceil(_local8.width);
_local8.height = Math.ceil(_local8.height);
_local9 = getAlphaMap(_arg1, _local8, BitmapDataChannel.RED, _arg3);
_local10 = getAlphaMap(_arg2, _local8, BitmapDataChannel.GREEN, _arg3);
_local9.draw(_local10, null, null, BlendMode.LIGHTEN);
if (_arg5 <= 0){
_local11 = 65792;
} else {
if (_arg5 > 1){
_arg5 = 1;
};
_local13 = Math.round((_arg5 * 0xFF));
_local11 = (((_local13 << 16) | (_local13 << 8)) | 0);
};
_local12 = _local9.getColorBoundsRect(_local11, _local11);
_local9.getColorBoundsRect(_local11, _local11).x = (_local12.x + _local8.x);
_local12.y = (_local12.y + _local8.y);
return (_local12);
} else {
return (_local8);
};
//unresolved jump
};
return (null);
}
public static function isColliding(_arg1:DisplayObject, _arg2:DisplayObject, _arg3:DisplayObjectContainer, _arg4:Boolean=false, _arg5:Number=0):Boolean{
var _local6:Rectangle;
_local6 = getCollisionRect(_arg1, _arg2, _arg3, _arg4, _arg5);
if (((!((_local6 == null))) && ((_local6.size.length > 0)))){
return (true);
};
return (false);
}
public static function getCollisionPoint(_arg1:DisplayObject, _arg2:DisplayObject, _arg3:DisplayObjectContainer, _arg4:Boolean=false, _arg5:Number=0):Point{
var _local6:Rectangle;
var _local7:Number;
var _local8:Number;
_local6 = getCollisionRect(_arg1, _arg2, _arg3, _arg4, _arg5);
if (((!((_local6 == null))) && ((_local6.size.length > 0)))){
_local7 = ((_local6.left + _local6.right) / 2);
_local8 = ((_local6.top + _local6.bottom) / 2);
return (new Point(_local7, _local8));
};
return (null);
}
private static function getAlphaMap(_arg1:DisplayObject, _arg2:Rectangle, _arg3:uint, _arg4:DisplayObjectContainer):BitmapData{
var _local5:Matrix;
var _local6:Matrix;
var _local7:BitmapData;
var _local8:BitmapData;
_local5 = _arg4.transform.concatenatedMatrix.clone();
_local5.invert();
_local6 = _arg1.transform.concatenatedMatrix.clone();
_local6.concat(_local5);
_local6.translate(-(_arg2.x), -(_arg2.y));
_local7 = new BitmapData(_arg2.width, _arg2.height, true, 0);
_local7.draw(_arg1, _local6);
_local8 = new BitmapData(_arg2.width, _arg2.height, false, 0);
_local8.copyChannel(_local7, _local7.rect, new Point(0, 0), BitmapDataChannel.ALPHA, _arg3);
return (_local8);
}
}
}//package com.troy.collision
Section 11
//PM_PRNG (de.polygonal.math.PM_PRNG)
package de.polygonal.math {
public class PM_PRNG {
public static var seed:uint = now.getTime();
public static var now:Date = new Date();
public function PM_PRNG(){
var _local1:Date;
super();
_local1 = new Date();
}
public static function nextDoubleRange(_arg1:Number, _arg2:Number):Number{
return ((_arg1 + ((_arg2 - _arg1) * nextDouble())));
}
public static function nextDouble():Number{
return ((gen() / 2147483647));
}
private static function gen():uint{
return ((seed = ((seed * 16807) % 2147483647)));
}
public static function nextIntRange(_arg1:Number, _arg2:Number):uint{
_arg1 = (_arg1 - 0.4999);
_arg2 = (_arg2 + 0.4999);
return (Math.round((_arg1 + ((_arg2 - _arg1) * nextDouble()))));
}
public static function nextInt():uint{
return (gen());
}
}
}//package de.polygonal.math
Section 12
//blingblinggggg_14 (Skeleton_fla.blingblinggggg_14)
package Skeleton_fla {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.net.*;
import flash.external.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class blingblinggggg_14 extends MovieClip {
public function blingblinggggg_14(){
addFrameScript(29, frame30);
}
function frame30(){
stop();
}
}
}//package Skeleton_fla
Section 13
//button_result_146 (Skeleton_fla.button_result_146)
package Skeleton_fla {
import flash.display.*;
import flash.text.*;
public dynamic class button_result_146 extends MovieClip {
public var backbtn:SimpleButton;
public var textscore:TextField;
}
}//package Skeleton_fla
Section 14
//customerdatang_682 (Skeleton_fla.customerdatang_682)
package Skeleton_fla {
import flash.display.*;
public dynamic class customerdatang_682 extends MovieClip {
public var mata:mata0;
public var rambutback:rambutback0;
public var rambutfront:rambutfront0;
public var kepala:kepala0;
public var baju:bajubiasa0;
}
}//package Skeleton_fla
Section 15
//customerduduk_683 (Skeleton_fla.customerduduk_683)
package Skeleton_fla {
import flash.display.*;
public dynamic class customerduduk_683 extends MovieClip {
public var mata:mata0;
public var rambutback:rambutback0;
public var rambutfront:rambutfront0;
public var kepala:kepala0;
public var baju:bajududuk0;
}
}//package Skeleton_fla
Section 16
//customerpotong_693 (Skeleton_fla.customerpotong_693)
package Skeleton_fla {
import flash.display.*;
public dynamic class customerpotong_693 extends MovieClip {
public var mata:mata0;
public var rambutback:rambutback0;
public var rambutfront:rambutfront0;
public var kepala:kepala0;
public var baju:bajupotong0;
}
}//package Skeleton_fla
Section 17
//dialogbox_63 (Skeleton_fla.dialogbox_63)
package Skeleton_fla {
import flash.display.*;
public dynamic class dialogbox_63 extends MovieClip {
public var idaman:MovieClip;
}
}//package Skeleton_fla
Section 18
//dialogbox_694 (Skeleton_fla.dialogbox_694)
package Skeleton_fla {
import flash.display.*;
public dynamic class dialogbox_694 extends MovieClip {
public var idaman:MovieClip;
public var subidaman:subidaman10;
}
}//package Skeleton_fla
Section 19
//flares_20 (Skeleton_fla.flares_20)
package Skeleton_fla {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.net.*;
import flash.external.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class flares_20 extends MovieClip {
public function flares_20(){
addFrameScript(20, frame21);
}
function frame21(){
stop();
}
}
}//package Skeleton_fla
Section 20
//GameWin_29 (Skeleton_fla.GameWin_29)
package Skeleton_fla {
import flash.display.*;
import flash.text.*;
public dynamic class GameWin_29 extends MovieClip {
public var nyawa3:MovieClip;
public var btnplaymore:SimpleButton;
public var result:MovieClip;
public var nyawa4:MovieClip;
public var levelup:MovieClip;
public var musicoff:MovieClip;
public var help:MovieClip;
public var kursi2:MovieClip;
public var kursi4:MovieClip;
public var kursi1:MovieClip;
public var kursi3:MovieClip;
public var nextlevel:SimpleButton;
public var youwin:TextField;
public var textlevel:TextField;
public var panelquality:MovieClip;
public var mikir4:MovieClip;
public var mikir3:MovieClip;
public var playmore:SimpleButton;
public var textscore:TextField;
public var mikir2:MovieClip;
public var pausebtn:MovieClip;
public var uang2:koin1;
public var uang3:koin1;
public var btnstart:MovieClip;
public var uang1:koin1;
public var mikir1:MovieClip;
public var btnready:MovieClip;
public var musicon:MovieClip;
public var uang4:koin1;
public var pintu:MovieClip;
public var yougameover:TextField;
public var btnplaymore2:MovieClip;
public var nyawa1:MovieClip;
public var nyawa2:MovieClip;
public var qualitybtn:MovieClip;
}
}//package Skeleton_fla
Section 21
//help_153 (Skeleton_fla.help_153)
package Skeleton_fla {
import flash.display.*;
public dynamic class help_153 extends MovieClip {
public var nextbtn:SimpleButton;
}
}//package Skeleton_fla
Section 22
//lazybananaproduction_170 (Skeleton_fla.lazybananaproduction_170)
package Skeleton_fla {
import flash.display.*;
import flash.text.*;
public dynamic class lazybananaproduction_170 extends MovieClip {
public var mTitle:TextField;
}
}//package Skeleton_fla
Section 23
//loadingbar_23 (Skeleton_fla.loadingbar_23)
package Skeleton_fla {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.net.*;
import flash.external.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class loadingbar_23 extends MovieClip {
public function loadingbar_23(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Skeleton_fla
Section 24
//MusicBtn_161 (Skeleton_fla.MusicBtn_161)
package Skeleton_fla {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.net.*;
import flash.external.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class MusicBtn_161 extends MovieClip {
public function MusicBtn_161(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Skeleton_fla
Section 25
//OptionBarPopUp_164 (Skeleton_fla.OptionBarPopUp_164)
package Skeleton_fla {
import flash.display.*;
import flash.text.*;
public dynamic class OptionBarPopUp_164 extends MovieClip {
public var mText:TextField;
}
}//package Skeleton_fla
Section 26
//panelquality2_118 (Skeleton_fla.panelquality2_118)
package Skeleton_fla {
import flash.display.*;
import flash.text.*;
public dynamic class panelquality2_118 extends MovieClip {
public var teksquality:TextField;
}
}//package Skeleton_fla
Section 27
//pintu_652 (Skeleton_fla.pintu_652)
package Skeleton_fla {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.net.*;
import flash.external.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class pintu_652 extends MovieClip {
public function pintu_652(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Skeleton_fla
Section 28
//pintumbuka_31 (Skeleton_fla.pintumbuka_31)
package Skeleton_fla {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.net.*;
import flash.external.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class pintumbuka_31 extends MovieClip {
public function pintumbuka_31(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Skeleton_fla
Section 29
//QualityBtn_162 (Skeleton_fla.QualityBtn_162)
package Skeleton_fla {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.net.*;
import flash.external.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class QualityBtn_162 extends MovieClip {
public function QualityBtn_162(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Skeleton_fla
Section 30
//Rainbow_Preloader_1 (Skeleton_fla.Rainbow_Preloader_1)
package Skeleton_fla {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.net.*;
import flash.external.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class Rainbow_Preloader_1 extends MovieClip {
public var mStart:SimpleButton;
public var text:TextField;
public var loadingbar:MovieClip;
public var timerFlag:Boolean;
public var loadFlag:Boolean;
public var timer1:Timer;
public var rainbow:MovieClip;
public function Rainbow_Preloader_1(){
addFrameScript(0, frame1, 9, frame10, 19, frame20);
}
public function loading(_arg1:Event){
var _local2:*;
var _local3:*;
var _local4:*;
_local2 = Main.GetInstance().stage.loaderInfo.bytesTotal;
_local3 = Main.GetInstance().stage.loaderInfo.bytesLoaded;
_local4 = Math.round(((_local3 * 100) / _local2));
trace(("PERCENT : " + _local4));
if (_local3 >= _local2){
loadFlag = true;
if (timerFlag){
Main.GetInstance().gotoAndStop("mainMenu");
};
removeEventListener(Event.ENTER_FRAME, loading);
};
}
function frame10(){
if (loaded == total){
gotoAndPlay("start");
} else {
gotoAndPlay("loading");
};
}
function frame1(){
timer1 = new Timer(80, 100);
timerFlag = false;
loadFlag = false;
timer1.addEventListener(TimerEvent.TIMER, onTimer);
timer1.addEventListener(TimerEvent.TIMER_COMPLETE, onTimerComplete);
timer1.start();
addEventListener(Event.ENTER_FRAME, loading);
stop();
rainbow.addEventListener(MouseEvent.CLICK, goRDU);
rainbow.useHandCursor = true;
rainbow.buttonMode = true;
}
function frame20(){
stop();
mStart.addEventListener(MouseEvent.CLICK, go);
}
public function goRDU(_arg1:MouseEvent){
Global.openWindow("http://www.rainbowdressup.com", "_blank");
}
public function onTimer(_arg1:TimerEvent){
var _local2:*;
_local2 = Math.ceil(((timer1.currentCount / timer1.repeatCount) * 100));
loadingbar.gotoAndStop(_local2);
text.text = _local2;
}
public function go(_arg1:MouseEvent){
Main.GetInstance().gotoAndStop("mainMenu");
}
public function onTimerComplete(_arg1:TimerEvent){
trace("ON TIMER");
timerFlag = true;
if (loadFlag){
Main.GetInstance().gotoAndStop("mainMenu");
};
timer1.stop();
}
}
}//package Skeleton_fla
Section 31
//RainbowDressUpBtn_149 (Skeleton_fla.RainbowDressUpBtn_149)
package Skeleton_fla {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.net.*;
import flash.external.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class RainbowDressUpBtn_149 extends MovieClip {
public var btn:MovieClip;
public function RainbowDressUpBtn_149(){
addFrameScript(0, frame1);
}
public function goto(_arg1:MouseEvent){
navigateToURL(new URLRequest("http://www.rainbowdressup.com"));
}
function frame1(){
btn.addEventListener(MouseEvent.CLICK, goto);
}
}
}//package Skeleton_fla
Section 32
//SFXBtn_163 (Skeleton_fla.SFXBtn_163)
package Skeleton_fla {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.net.*;
import flash.external.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class SFXBtn_163 extends MovieClip {
public function SFXBtn_163(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame4(){
stop();
}
function frame2(){
stop();
}
}
}//package Skeleton_fla
Section 33
//t1_10 (Skeleton_fla.t1_10)
package Skeleton_fla {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.net.*;
import flash.external.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class t1_10 extends MovieClip {
public function t1_10(){
addFrameScript(19, frame20);
}
function frame20(){
}
}
}//package Skeleton_fla
Section 34
//t1_9 (Skeleton_fla.t1_9)
package Skeleton_fla {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.net.*;
import flash.external.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class t1_9 extends MovieClip {
public var bar_mc:MovieClip;
public var _loc1;
public function t1_9(){
addFrameScript(0, frame1);
}
function frame1(){
Frame_num = 1;
angle = 360;
plus_angle = 0;
scene_width = 400;
scene_height = 45;
bar_mc.i = 0;
bar_mc._visible = 0;
bar_mc.onEnterFrame = function (){
_loc1 = this;
if ((_loc1.i % Frame_num) == 0){
mc = _loc1.duplicateMovieClip(("bar_mc" + _loc1.i), _loc1.i);
mc._x = random(scene_width);
mc._y = random(scene_height);
mc._rotation = (random(angle) + plus_angle);
};
_loc1.i++;
};
}
}
}//package Skeleton_fla
Section 35
//tutorial_752 (Skeleton_fla.tutorial_752)
package Skeleton_fla {
import flash.display.*;
public dynamic class tutorial_752 extends MovieClip {
public var nextbtn:SimpleButton;
}
}//package Skeleton_fla
Section 36
//badanbighappy (badanbighappy)
package {
import flash.display.*;
public dynamic class badanbighappy extends MovieClip {
}
}//package
Section 37
//badanbigsad (badanbigsad)
package {
import flash.display.*;
public dynamic class badanbigsad extends MovieClip {
}
}//package
Section 38
//badansmallhappy (badansmallhappy)
package {
import flash.display.*;
public dynamic class badansmallhappy extends MovieClip {
}
}//package
Section 39
//badansmallsad (badansmallsad)
package {
import flash.display.*;
public dynamic class badansmallsad extends MovieClip {
}
}//package
Section 40
//bajubiasa0 (bajubiasa0)
package {
import flash.display.*;
public dynamic class bajubiasa0 extends MovieClip {
}
}//package
Section 41
//bajubiasa1 (bajubiasa1)
package {
import flash.display.*;
public dynamic class bajubiasa1 extends MovieClip {
}
}//package
Section 42
//bajududuk0 (bajududuk0)
package {
import flash.display.*;
public dynamic class bajududuk0 extends MovieClip {
}
}//package
Section 43
//bajududuk1 (bajududuk1)
package {
import flash.display.*;
public dynamic class bajududuk1 extends MovieClip {
}
}//package
Section 44
//bajupotong0 (bajupotong0)
package {
import flash.display.*;
public dynamic class bajupotong0 extends MovieClip {
}
}//package
Section 45
//bajupotong1 (bajupotong1)
package {
import flash.display.*;
public dynamic class bajupotong1 extends MovieClip {
}
}//package
Section 46
//bel (bel)
package {
import flash.media.*;
public dynamic class bel extends Sound {
}
}//package
Section 47
//bgsound (bgsound)
package {
import flash.media.*;
public dynamic class bgsound extends Sound {
}
}//package
Section 48
//bgsound2 (bgsound2)
package {
import flash.media.*;
public dynamic class bgsound2 extends Sound {
}
}//package
Section 49
//blup (blup)
package {
import flash.media.*;
public dynamic class blup extends Sound {
}
}//package
Section 50
//bubble (bubble)
package {
import flash.media.*;
public dynamic class bubble extends Sound {
}
}//package
Section 51
//catbenar (catbenar)
package {
import flash.display.*;
public dynamic class catbenar extends MovieClip {
public var animasi:MovieClip;
}
}//package
Section 52
//catsalah (catsalah)
package {
import flash.display.*;
public dynamic class catsalah extends MovieClip {
public var animasi:MovieClip;
}
}//package
Section 53
//CBannedWin (CBannedWin)
package {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.net.*;
import flash.external.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
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 54
//CBaseMovieClip (CBaseMovieClip)
package {
import flash.events.*;
import flash.display.*;
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 55
//CCredit (CCredit)
package {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.net.*;
import flash.external.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
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 56
//CGame (CGame)
package {
import com.gskinner.geom.*;
import flash.events.*;
import caurina.transitions.*;
import flash.display.*;
import com.troy.collision.*;
import de.polygonal.math.*;
import flash.text.*;
import flash.utils.*;
import flash.filters.*;
public class CGame extends CBaseMovieClip {
public var aksi:Array;
public var mpausebtn:MovieClip;
public var result:MovieClip;
public var uibawah:MovieClip;
public var gunting:MovieClip;
public var pjgtokosmall:MovieClip;
public var bg:MovieClip;
public var customerdatang:MovieClip;
public var mejakasir:MovieClip;
public var start:Boolean;
public var subaksi:Array;
public var nextlevel:SimpleButton;
public var nextwave:int;
public var creambath:MovieClip;
public var textlevel:TextField;
public var panelquality:MovieClip;
public var playmore:SimpleButton;
public var idxserve:int;
public var pausebtn:MovieClip;
public var tempatdatang:customer;
public var startbtn:MovieClip;
public var musicon:MovieClip;
public var mRightCustomer:int;
public var btnready:MovieClip;
public var pintu:MovieClip;
public var kursinunggu1:MovieClip;
public var kursinunggu2:MovieClip;
public var nyawa1:MovieClip;
public var nyawa3:MovieClip;
public var tanaman1:MovieClip;
public var tanaman3:MovieClip;
public var tanaman4:MovieClip;
public var qualitybtn:MovieClip;
public var customerpotong1:MovieClip;
public var customerpotong2:MovieClip;
public var customerpotong3:MovieClip;
public var tanaman2:MovieClip;
public var yougameover:TextField;
public var customerpotong4:MovieClip;
public var serve:Boolean;
public var tempatduduk:Array;
public var overlaylayer:MovieClip;
public var ruangan:MovieClip;
public var musicoff:MovieClip;
public var btnplaymore:SimpleButton;
public var customertunggu2:MovieClip;
public var levelup:MovieClip;
public var customertunggu1:MovieClip;
public var nyawa2:MovieClip;
public var pjgtokobig:MovieClip;
public var nyawa:int;
public var help:MovieClip;
public var kursi1:MovieClip;
public var kursi2:MovieClip;
public var kursi3:MovieClip;
public var stateuang:Array;
public var nyawa4:MovieClip;
public var youwin:TextField;
public var pausestat:Boolean;
public var jmlcust:int;
public var kursi4:MovieClip;
public var mousecreambath:MovieClip;
public var mikir1:MovieClip;
public var mikir2:MovieClip;
public var mikir4:MovieClip;
public var mousepewarna:MovieClip;
public var mikir3:MovieClip;
public var mousecustomer:MovieClip;
public var textscore:TextField;
public var bingkai:MovieClip;
public var btnstart:MovieClip;
public var uang2:MovieClip;
public var uang3:MovieClip;
public var uang4:MovieClip;
public var pikiran:Array;
public var uang1:MovieClip;
public var tempatpotong:Array;
public var pewarna:MovieClip;
public var waktumikir:Array;
public var mousegunting:MovieClip;
public var btnplaymore2:MovieClip;
public var arrmikir:Array;
public var tatakan:MovieClip;
private static var CGameGlobal:CGame;
public function CGame(){
var _local1:String;
stateuang = new Array(4);
arrmikir = new Array(4);
tempatduduk = new Array(2);
tempatpotong = new Array(4);
pikiran = new Array(4);
waktumikir = new Array(4);
aksi = new Array(4);
subaksi = new Array(4);
super("update");
CGameGlobal = this;
trace("init cgame");
mRightCustomer = 0;
overlaylayer.visible = false;
overlaylayer.alpha = 0;
gunting.addEventListener(MouseEvent.MOUSE_DOWN, pilihitem, false, 0, true);
creambath.addEventListener(MouseEvent.MOUSE_DOWN, pilihitem, false, 0, true);
pewarna.addEventListener(MouseEvent.MOUSE_DOWN, pilihitem, false, 0, true);
addEventListener(MouseEvent.MOUSE_UP, lepaskanitem, false, 0, true);
customertunggu1.addEventListener(MouseEvent.MOUSE_DOWN, dragtunggu, false, 0, true);
customertunggu2.addEventListener(MouseEvent.MOUSE_DOWN, dragtunggu, false, 0, true);
uang1.addEventListener(MouseEvent.MOUSE_DOWN, dapetuang, false, 0, true);
uang2.addEventListener(MouseEvent.MOUSE_DOWN, dapetuang, false, 0, true);
uang3.addEventListener(MouseEvent.MOUSE_DOWN, dapetuang, false, 0, true);
uang4.addEventListener(MouseEvent.MOUSE_DOWN, dapetuang, false, 0, true);
btnready.alpha = 0;
btnstart.visible = false;
pjgtokobig.stop();
init();
start = false;
if (Main.GetInstance().level == 1){
help.visible = true;
help.nextbtn.addEventListener(MouseEvent.MOUSE_DOWN, lanjuthelp, false, 0, true);
} else {
help.visible = false;
Tweener.addTween(btnready, {alpha:1, time:1, onComplete:mulai});
};
_local1 = (100 + Main.GetInstance().level);
textlevel.text = _local1.substr(1, 2);
jmlcust = Data.dunia[(Main.GetInstance().level - 1)].jmlhcustomer;
levelup.visible = false;
nextlevel.addEventListener(MouseEvent.MOUSE_UP, gantilevel, false, 0, true);
nextlevel.visible = false;
playmore.addEventListener(MouseEvent.MOUSE_UP, linkrainbow, false, 0, true);
playmore.visible = false;
result.visible = false;
result.backbtn.addEventListener(MouseEvent.MOUSE_UP, back, false, 0, true);
youwin.visible = false;
yougameover.visible = false;
pausebtn.addEventListener(MouseEvent.MOUSE_DOWN, pause, false, 0, true);
startbtn.addEventListener(MouseEvent.MOUSE_DOWN, pauseoff, false, 0, true);
startbtn.visible = false;
mpausebtn.visible = false;
pausestat = false;
musicoff.visible = false;
musicon.visible = true;
musicoff.addEventListener(MouseEvent.MOUSE_DOWN, ngesound, false, 0, true);
musicon.addEventListener(MouseEvent.MOUSE_DOWN, ngesound, false, 0, true);
panelquality.visible = false;
qualitybtn.addEventListener(MouseEvent.MOUSE_DOWN, qualitychanged, false, 0, true);
qualitybtn.addEventListener(MouseEvent.MOUSE_OVER, showquality, false, 0, true);
qualitybtn.addEventListener(MouseEvent.MOUSE_OUT, hidequality, false, 0, true);
musicoff.cacheAsBitmap = true;
musicon.cacheAsBitmap = true;
qualitybtn.cacheAsBitmap = true;
mpausebtn.cacheAsBitmap = true;
pausebtn.cacheAsBitmap = true;
startbtn.cacheAsBitmap = true;
ruangan.cacheAsBitmap = true;
tanaman1.cacheAsBitmap = true;
tanaman2.cacheAsBitmap = true;
tanaman3.cacheAsBitmap = true;
tanaman4.cacheAsBitmap = true;
bg.cacheAsBitmap = true;
uibawah.cacheAsBitmap = true;
mejakasir.cacheAsBitmap = true;
kursinunggu1.cacheAsBitmap = true;
kursinunggu2.cacheAsBitmap = true;
bingkai.cacheAsBitmap = true;
nyawa1.cacheAsBitmap = true;
nyawa2.cacheAsBitmap = true;
nyawa3.cacheAsBitmap = true;
nyawa4.cacheAsBitmap = true;
tatakan.cacheAsBitmap = true;
}
function pause(_arg1:MouseEvent){
overlaylayer.visible = true;
mpausebtn.visible = true;
pausestat = true;
pausebtn.visible = false;
startbtn.visible = true;
Main.GetInstance().mState = Main.STATE_PAUSED;
}
function pilihitem(_arg1:MouseEvent){
Main.GetInstance().mOptionBar.PlaySFX("bubble");
if (_arg1.currentTarget == gunting){
addEventListener(MouseEvent.MOUSE_MOVE, gerakgunting, false, 0, true);
gunting.visible = false;
mousegunting.x = _arg1.stageX;
mousegunting.y = _arg1.stageY;
mousegunting.visible = true;
} else {
if (_arg1.currentTarget == creambath){
addEventListener(MouseEvent.MOUSE_MOVE, gerakcreambath, false, 0, true);
creambath.visible = false;
mousecreambath.x = _arg1.stageX;
mousecreambath.y = _arg1.stageY;
mousecreambath.visible = true;
} else {
if (_arg1.currentTarget == pewarna){
addEventListener(MouseEvent.MOUSE_MOVE, gerakpewarna, false, 0, true);
pewarna.visible = false;
mousepewarna.x = _arg1.stageX;
mousepewarna.y = _arg1.stageY;
mousepewarna.visible = true;
};
};
};
}
function tes(){
var _local1:int;
var _local2:MovieClip;
_local1 = 0;
while (_local1 < 4) {
if ((((getChildByName(("uang" + (_local1 + 1))).currentFrame == 5)) && ((stateuang[_local1] == 0)))){
stateuang[_local1] = 1;
_local2 = new koin2();
_local2.x = getChildByName(("uang" + (_local1 + 1))).x;
_local2.y = getChildByName(("uang" + (_local1 + 1))).y;
addChildAt(_local2, getChildIndex(getChildByName(("uang" + (_local1 + 1)))));
_local2.name = removeChild(getChildByName(("uang" + (_local1 + 1)))).name;
getChildByName(("uang" + (_local1 + 1))).addEventListener(MouseEvent.MOUSE_DOWN, dapetuang, false, 0, true);
};
_local1++;
};
}
function cekcreambath(){
var _local1:int;
var _local2:SimpleButton;
_local1 = 1;
while (_local1 < 5) {
if (((ColDetection.isColliding(this.getChildByName(("customerpotong" + _local1)), mousecreambath, this, true, 0)) && ((pikiran[(_local1 - 1)] == 1)))){
serve = true;
idxserve = _local1;
arrmikir[(_local1 - 1)].visible = false;
pikiran[(_local1 - 1)] = 3;
_local2 = new icon20();
_local2.x = (getChildByName(("customerpotong" + _local1)).x - 58.7);
_local2.y = (getChildByName(("customerpotong" + _local1)).y + 5.4);
_local2.name = "icon0";
addChild(_local2);
_local2.addEventListener(MouseEvent.MOUSE_DOWN, creambathdah, false, 0, true);
_local2 = new icon21();
_local2.x = getChildByName(("customerpotong" + _local1)).x;
_local2.y = (getChildByName(("customerpotong" + _local1)).y - 32.6);
_local2.name = "icon1";
addChild(_local2);
_local2.addEventListener(MouseEvent.MOUSE_DOWN, creambathdah, false, 0, true);
_local2 = new icon22();
_local2.x = (getChildByName(("customerpotong" + _local1)).x + 58.7);
_local2.y = (getChildByName(("customerpotong" + _local1)).y + 5.4);
_local2.name = "icon2";
addChild(_local2);
_local2.addEventListener(MouseEvent.MOUSE_DOWN, creambathdah, false, 0, true);
};
_local1++;
};
}
function loadtreatment(_arg1:MovieClip, _arg2:String){
var _local3:Class;
var _local4:MovieClip;
_local3 = (getDefinitionByName(_arg2) as Class);
_local4 = new (_local3);
_arg1.getChildByName("rambutback").visible = false;
_arg1.getChildByName("rambutback").stop();
_arg1.getChildByName("rambutfront").visible = false;
_arg1.getChildByName("rambutfront").stop();
_arg1.getChildByName("kepala").stop();
_local4.name = "treatment";
_arg1.addChild(_local4);
}
function hilangkanabaaba(){
btnstart.visible = false;
}
function gerakcustomer(_arg1:MouseEvent){
mousecustomer.x = _arg1.stageX;
mousecustomer.y = _arg1.stageY;
}
public function menang(){
var _local1:MovieClip;
_local1 = new badanbighappy();
_local1.scaleX = pjgtokobig.scaleX;
_local1.scaleY = pjgtokobig.scaleY;
_local1.x = pjgtokobig.x;
_local1.y = pjgtokobig.y;
addChildAt(_local1, getChildIndex(pjgtokobig));
removeChild(pjgtokobig);
pjgtokobig = _local1;
_local1 = new badansmallhappy();
_local1.x = pjgtokosmall.x;
_local1.y = pjgtokosmall.y;
addChildAt(_local1, getChildIndex(pjgtokosmall));
removeChild(pjgtokosmall);
pjgtokosmall = _local1;
if (Main.GetInstance().level == 4){
setChildIndex(playmore, (numChildren - 1));
setChildIndex(result, (numChildren - 1));
setChildIndex(youwin, (numChildren - 1));
result.visible = true;
youwin.visible = true;
playmore.visible = true;
} else {
setChildIndex(playmore, (numChildren - 1));
setChildIndex(nextlevel, (numChildren - 1));
setChildIndex(levelup, (numChildren - 1));
playmore.visible = true;
nextlevel.visible = true;
levelup.visible = true;
};
}
function lepaskanitem(_arg1:MouseEvent){
var _local2:Boolean;
var _local3:int;
if (!gunting.visible){
if (!serve){
cekgunting();
};
mousegunting.visible = false;
gunting.visible = true;
removeEventListener(MouseEvent.MOUSE_MOVE, gerakgunting);
} else {
if (!creambath.visible){
if (!serve){
cekcreambath();
};
mousecreambath.visible = false;
creambath.visible = true;
removeEventListener(MouseEvent.MOUSE_MOVE, gerakcreambath);
} else {
if (!pewarna.visible){
if (!serve){
cekpewarna();
};
mousepewarna.visible = false;
pewarna.visible = true;
removeEventListener(MouseEvent.MOUSE_MOVE, gerakpewarna);
} else {
if (((!(customertunggu1.visible)) && (!((tempatduduk[0] == null))))){
_local2 = false;
_local3 = 1;
while (_local3 < 5) {
if (((((ColDetection.isColliding(this.getChildByName(("kursi" + _local3)), mousecustomer, this, true, 0)) && (!(this.getChildByName(("customerpotong" + _local3)).visible)))) && (!(getChildByName(("uang" + _local3)).visible)))){
tempatpotong[(_local3 - 1)] = tempatduduk[0];
tempatpotong[(_local3 - 1)].state = 2;
tempatpotong[(_local3 - 1)].kesabaran = Data.dunia[(Main.GetInstance().level - 1)].kesabaran;
tempatpotong[(_local3 - 1)].kepala = 0;
loadgambar(getChildByName(("customerpotong" + _local3)), tempatpotong[(_local3 - 1)]);
getChildByName(("customerpotong" + _local3)).visible = true;
_local2 = true;
break;
};
_local3++;
};
mousecustomer.visible = false;
if (!_local2){
customertunggu1.visible = true;
} else {
tempatduduk[0] = null;
};
removeEventListener(MouseEvent.MOUSE_MOVE, gerakcustomer);
} else {
if (((!(customertunggu2.visible)) && (!((tempatduduk[1] == null))))){
_local2 = false;
_local3 = 1;
while (_local3 < 5) {
if (((((ColDetection.isColliding(this.getChildByName(("kursi" + _local3)), mousecustomer, this, true, 0)) && (!(this.getChildByName(("customerpotong" + _local3)).visible)))) && (!(getChildByName(("uang" + _local3)).visible)))){
tempatpotong[(_local3 - 1)] = tempatduduk[1];
tempatpotong[(_local3 - 1)].state = 2;
tempatpotong[(_local3 - 1)].kesabaran = Data.dunia[(Main.GetInstance().level - 1)].kesabaran;
tempatpotong[(_local3 - 1)].kepala = 0;
loadgambar(getChildByName(("customerpotong" + _local3)), tempatpotong[(_local3 - 1)]);
getChildByName(("customerpotong" + _local3)).visible = true;
_local2 = true;
break;
};
_local3++;
};
mousecustomer.visible = false;
if (!_local2){
customertunggu2.visible = true;
} else {
tempatduduk[1] = null;
};
removeEventListener(MouseEvent.MOUSE_MOVE, gerakcustomer);
};
};
};
};
};
}
public function linkrainbow(_arg1:MouseEvent){
Global.openWindow("http://www.rainbowdressup.com");
}
public function cek(){
var _local1:int;
_local1 = 1;
while (_local1 < 5) {
if (((ColDetection.isColliding(this.getChildByName(("kursi" + _local1)), mousecustomer, this, true, 0)) && (!(this.getChildByName(("customerpotong" + _local1)).visible)))){
this.getChildByName(("kursi" + _local1)).width = 90;
this.getChildByName(("kursi" + _local1)).height = 117.9;
} else {
this.getChildByName(("kursi" + _local1)).width = 85.5;
this.getChildByName(("kursi" + _local1)).height = 112.1;
};
_local1++;
};
}
function loadmikir(_arg1:MovieClip, _arg2:int, _arg3:int){
var _local4:Class;
var _local5:MovieClip;
_local4 = (getDefinitionByName(("idaman" + _arg2)) as Class);
_local5 = new (_local4);
_local5.x = -27;
_local5.y = -5;
_local5.gotoAndPlay(_arg1.getChildByName("idaman").currentFrame);
_arg1.removeChild(_arg1.getChildByName("idaman"));
_local5.name = "idaman";
_arg1.addChild(_local5);
_local4 = (getDefinitionByName((("subidaman" + _arg2) + _arg3)) as Class);
_local5 = new (_local4);
_local5.x = 27;
_local5.y = -4.7;
_local5.gotoAndPlay(_arg1.getChildByName("subidaman").currentFrame);
_arg1.removeChild(_arg1.getChildByName("subidaman"));
_local5.name = "subidaman";
_arg1.addChild(_local5);
}
function guntingdah(_arg1:MouseEvent){
removeChild(getChildByName("icon0"));
removeChild(getChildByName("icon1"));
removeChild(getChildByName("icon2"));
pjgtokosmall.x = getChildByName(("customerpotong" + idxserve)).x;
pjgtokosmall.y = (getChildByName(("customerpotong" + idxserve)).y - 2);
setChildIndex(pjgtokosmall, (getChildIndex(getChildByName(("customerpotong" + idxserve))) - 1));
aksi[(idxserve - 1)] = 1;
if (_arg1.currentTarget.name == "icon0"){
subaksi[(idxserve - 1)] = 0;
} else {
if (_arg1.currentTarget.name == "icon1"){
subaksi[(idxserve - 1)] = 1;
} else {
if (_arg1.currentTarget.name == "icon2"){
subaksi[(idxserve - 1)] = 2;
};
};
};
pikiran[(idxserve - 1)] = 2;
tempatpotong[(idxserve - 1)].kepala = 0;
Main.GetInstance().mOptionBar.PlaySFX("potongrambut");
loadgambar(getChildByName(("customerpotong" + idxserve)), tempatpotong[(idxserve - 1)]);
if ((((tempatpotong[(idxserve - 1)].lagipengen == 1)) && ((tempatpotong[(idxserve - 1)].sublagipengen == subaksi[(idxserve - 1)])))){
loadtreatment(this.getChildByName(("customerpotong" + idxserve)), "potongbenar");
} else {
loadtreatment(this.getChildByName(("customerpotong" + idxserve)), "potongsalah");
};
}
function dragtunggu(_arg1:MouseEvent){
Main.GetInstance().mOptionBar.PlaySFX("bubble");
addEventListener(MouseEvent.MOUSE_MOVE, gerakcustomer, false, 0, true);
if (_arg1.currentTarget == customertunggu1){
customertunggu1.visible = false;
loadgambar(mousecustomer, tempatduduk[0]);
} else {
customertunggu2.visible = false;
loadgambar(mousecustomer, tempatduduk[1]);
};
mousecustomer.x = _arg1.stageX;
mousecustomer.y = _arg1.stageY;
mousecustomer.visible = true;
}
public function ngesound(_arg1:MouseEvent){
Main.GetInstance().mOptionBar.ToggleMusic();
musicoff.visible = !(musicoff.visible);
musicon.visible = !(musicon.visible);
}
function loadgambar(_arg1:MovieClip, _arg2:customer){
var _local3:Class;
var _local4:MovieClip;
var _local5:int;
var _local6:ColorMatrix;
_local3 = (getDefinitionByName(("rambutback" + _arg2.rambut)) as Class);
_local4 = new (_local3);
_local4.gotoAndPlay(1);
_arg1.removeChild(_arg1.getChildByName("rambutback"));
_local4.name = "rambutback";
if (_arg2.warna == 0){
_local5 = 0;
} else {
if (_arg2.warna == 1){
_local5 = -115;
} else {
if (_arg2.warna == 2){
_local5 = 114;
} else {
if (_arg2.warna == 3){
_local5 = 42;
};
};
};
};
_local6 = new ColorMatrix();
_local6.adjustColor(0, 0, 0, _local5);
_local4.filters = [new ColorMatrixFilter(_local6)];
_arg1.addChild(_local4);
if (_arg2.state == 0){
_local3 = (getDefinitionByName(("bajubiasa" + _arg2.baju)) as Class);
} else {
if (_arg2.state == 1){
_local3 = (getDefinitionByName(("bajududuk" + _arg2.baju)) as Class);
} else {
if (_arg2.state == 2){
_local3 = (getDefinitionByName(("bajupotong" + _arg2.baju)) as Class);
};
};
};
_local4 = new (_local3);
_local4.gotoAndPlay(1);
_arg1.removeChild(_arg1.getChildByName("baju"));
_local4.name = "baju";
_arg1.addChild(_local4);
_local3 = (getDefinitionByName(("kepala" + _arg2.kepala)) as Class);
_local4 = new (_local3);
_local4.gotoAndPlay(1);
_arg1.removeChild(_arg1.getChildByName("kepala"));
_local4.name = "kepala";
_arg1.addChild(_local4);
_local3 = (getDefinitionByName(("mata" + _arg2.mata)) as Class);
_local4 = new (_local3);
_local4.gotoAndPlay(1);
_arg1.removeChild(_arg1.getChildByName("mata"));
_local4.name = "mata";
_arg1.addChild(_local4);
_local3 = (getDefinitionByName(("rambutfront" + _arg2.rambut)) as Class);
_local4 = new (_local3);
_local4.gotoAndPlay(1);
_arg1.removeChild(_arg1.getChildByName("rambutfront"));
_local4.name = "rambutfront";
if (_arg2.warna == 0){
_local5 = 0;
} else {
if (_arg2.warna == 1){
_local5 = -115;
} else {
if (_arg2.warna == 2){
_local5 = 114;
} else {
if (_arg2.warna == 3){
_local5 = 42;
};
};
};
};
_local6 = new ColorMatrix();
_local6.adjustColor(0, 0, 0, _local5);
_local4.filters = [new ColorMatrixFilter(_local6)];
_arg1.addChild(_local4);
if (_arg1.getChildByName("grumble")){
_arg1.removeChild(_arg1.getChildByName("grumble"));
};
if (_arg2.kepala == 3){
trace("grumble");
_local3 = (getDefinitionByName("grumble") as Class);
_local4 = new (_local3);
_local4.gotoAndPlay(1);
_local4.name = "grumble";
_arg1.addChild(_local4);
};
}
public function qualitychanged(_arg1:MouseEvent){
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;
};
panelquality.teksquality.text = Main.GetInstance().stage.quality;
}
function gantilevel(_arg1:MouseEvent){
Main.GetInstance().mOptionBar.PlaySFX("klik");
Main.GetInstance().level++;
Main.GetInstance().InitGame();
}
function caritempatduduk(){
customerdatang.visible = false;
tempatdatang.state = 1;
if (tempatduduk[0] == null){
tempatduduk[0] = tempatdatang;
tempatduduk[0].kesabaran = Data.dunia[(Main.GetInstance().level - 1)].kesabaran;
loadgambar(customertunggu1, tempatduduk[0]);
customertunggu1.visible = true;
} else {
if (tempatduduk[1] == null){
tempatduduk[1] = tempatdatang;
tempatduduk[1].kesabaran = Data.dunia[(Main.GetInstance().level - 1)].kesabaran;
loadgambar(customertunggu2, tempatduduk[1]);
customertunggu2.visible = true;
};
};
tempatdatang = null;
}
override public function Update(_arg1:Event){
var _local2:String;
if (((start) && (!(pausestat)))){
kurangikesabaran();
if (jmlcust > 0){
if (nextwave == 5){
Main.GetInstance().mOptionBar.PlaySFX("door");
Main.GetInstance().mOptionBar.PlaySFX("bel");
pintu.play();
};
if (nextwave == 0){
jmlcust--;
nextwave = PM_PRNG.nextIntRange(100, 200);
tempatdatang = new customer(0, PM_PRNG.nextIntRange(0, 1), PM_PRNG.nextIntRange(0, 1), PM_PRNG.nextIntRange(0, 3), PM_PRNG.nextIntRange(0, 1), Data.dunia[(Main.GetInstance().level - 1)].kesabaran, PM_PRNG.nextIntRange(1, Data.dunia[(Main.GetInstance().level - 1)].ngidam));
loadgambar(customerdatang, tempatdatang);
customerdatang.visible = true;
customerdatang.alpha = 1;
Tweener.addTween(customerdatang, {time:1, onComplete:duduk});
} else {
nextwave--;
};
} else {
cekmenang();
};
cek();
_local2 = (1000000 + Main.GetInstance().score);
textscore.text = _local2.substr(1, 6);
};
}
public function mulai(){
start = true;
btnready.visible = false;
btnstart.visible = true;
Tweener.addTween(btnstart, {alpha:0, time:1, onComplete:hilangkanabaaba});
pjgtokobig.play();
nextwave = 5;
}
public function init(){
var _local1:int;
serve = false;
customerdatang.visible = false;
customertunggu1.visible = false;
customertunggu2.visible = false;
customerpotong1.visible = false;
customerpotong2.visible = false;
customerpotong3.visible = false;
customerpotong4.visible = false;
mousecustomer.visible = false;
mikir1.visible = false;
mikir2.visible = false;
mikir3.visible = false;
mikir4.visible = false;
arrmikir[0] = mikir1;
arrmikir[1] = mikir2;
arrmikir[2] = mikir3;
arrmikir[3] = mikir4;
_local1 = 0;
while (_local1 < 4) {
pikiran[_local1] = 0;
waktumikir[_local1] = 20;
stateuang[_local1] = -1;
_local1++;
};
uang1.visible = false;
uang2.visible = false;
uang3.visible = false;
uang4.visible = false;
nyawa = 4;
}
function back(_arg1:MouseEvent){
Main.GetInstance().mOptionBar.PlaySFX("klik");
Main.GetInstance().level = 1;
Main.GetInstance().score = 0;
Main.GetInstance().InitMainMenu();
}
function creambathdah(_arg1:MouseEvent){
removeChild(getChildByName("icon0"));
removeChild(getChildByName("icon1"));
removeChild(getChildByName("icon2"));
pjgtokosmall.x = getChildByName(("customerpotong" + idxserve)).x;
pjgtokosmall.y = (getChildByName(("customerpotong" + idxserve)).y - 2);
setChildIndex(pjgtokosmall, (getChildIndex(getChildByName(("customerpotong" + idxserve))) - 1));
aksi[(idxserve - 1)] = 2;
if (_arg1.currentTarget.name == "icon0"){
subaksi[(idxserve - 1)] = 0;
} else {
if (_arg1.currentTarget.name == "icon1"){
subaksi[(idxserve - 1)] = 1;
} else {
if (_arg1.currentTarget.name == "icon2"){
subaksi[(idxserve - 1)] = 2;
};
};
};
pikiran[(idxserve - 1)] = 2;
Main.GetInstance().mOptionBar.PlaySFX("keramas");
tempatpotong[(idxserve - 1)].kepala = 0;
loadgambar(getChildByName(("customerpotong" + idxserve)), tempatpotong[(idxserve - 1)]);
if ((((tempatpotong[(idxserve - 1)].lagipengen == 2)) && ((tempatpotong[(idxserve - 1)].sublagipengen == subaksi[(idxserve - 1)])))){
loadtreatment(this.getChildByName(("customerpotong" + idxserve)), "stylebenar");
} else {
loadtreatment(this.getChildByName(("customerpotong" + idxserve)), "stylesalah");
};
arrmikir[(idxserve - 1)].visible = false;
}
function mati(){
getChildByName(("nyawa" + nyawa)).visible = false;
nyawa--;
if (nyawa == 0){
gameover();
};
}
public function kurangikesabaran(){
var _local1:int;
var _local2:MovieClip;
var _local3:int;
_local1 = 0;
while (_local1 < tempatduduk.length) {
if (((!((tempatduduk[_local1] == null))) && (getChildByName(("customertunggu" + (_local1 + 1))).visible))){
tempatduduk[_local1].kesabaran--;
if (tempatduduk[_local1].kesabaran == 100){
tempatduduk[_local1].kepala = 2;
loadgambar(getChildByName(("customertunggu" + (_local1 + 1))), tempatduduk[_local1]);
} else {
if (tempatduduk[_local1].kesabaran == 0){
mati();
tempatduduk[_local1] = null;
getChildByName(("customertunggu" + (_local1 + 1))).visible = false;
};
};
};
_local1++;
};
if (tempatdatang != null){
tempatdatang.kesabaran--;
if (tempatdatang.kesabaran == 100){
tempatdatang.kepala = 2;
loadgambar(getChildByName("customerdatang"), tempatdatang);
} else {
if (tempatdatang.kesabaran == -10){
mati();
tempatdatang = null;
getChildByName(("customerdatang" + (_local1 + 1))).visible = false;
};
};
};
_local1 = 0;
while (_local1 < tempatpotong.length) {
if (tempatpotong[_local1] != null){
if (pikiran[_local1] == 0){
var _local4 = waktumikir;
var _local5 = _local1;
var _local6 = (_local4[_local5] - 1);
_local4[_local5] = _local6;
if (waktumikir[_local1] == 0){
waktumikir[_local1] = 20;
pikiran[_local1] = 1;
tempatpotong[_local1].lagipengen = PM_PRNG.nextIntRange(0, 2);
tempatpotong[_local1].sublagipengen = PM_PRNG.nextIntRange(0, 2);
loadmikir(arrmikir[_local1], tempatpotong[_local1].lagipengen, tempatpotong[_local1].sublagipengen);
arrmikir[_local1].visible = true;
tempatpotong[_local1].countngidam--;
Main.GetInstance().mOptionBar.PlaySFX("popsfx");
};
} else {
if (pikiran[_local1] == 1){
tempatpotong[_local1].kesabaran--;
if (tempatpotong[_local1].kesabaran == 100){
tempatpotong[_local1].kepala = 2;
loadgambar(getChildByName(("customerpotong" + (_local1 + 1))), tempatpotong[_local1]);
} else {
if (tempatpotong[_local1].kesabaran == 0){
arrmikir[_local1].visible = false;
mati();
tempatpotong[_local1] = null;
getChildByName(("customerpotong" + (_local1 + 1))).visible = false;
pikiran[_local1] = 0;
};
};
} else {
if (pikiran[_local1] == 2){
_local2 = getChildByName(("customerpotong" + (_local1 + 1)));
if (_local2.getChildByName("treatment")){
if (_local2.getChildByName("treatment").animasi.currentFrame == 45){
if ((((aksi[_local1] == tempatpotong[_local1].lagipengen)) && ((subaksi[_local1] == tempatpotong[_local1].sublagipengen)))){
Main.GetInstance().mOptionBar.PlaySFX("blup");
Main.GetInstance().mOptionBar.PlaySFX("laugh");
tempatpotong[_local1].kepala = 1;
} else {
Main.GetInstance().mOptionBar.PlaySFX("blup");
Main.GetInstance().mOptionBar.PlaySFX("scream");
tempatpotong[_local1].kepala = 2;
tempatpotong[_local1].countngidam = 0;
mati();
};
if (aksi[_local1] == 1){
if (subaksi[_local1] == 0){
tempatpotong[_local1].rambut = 5;
} else {
if (subaksi[_local1] == 1){
tempatpotong[_local1].rambut = 6;
} else {
if (subaksi[_local1] == 2){
tempatpotong[_local1].rambut = 7;
};
};
};
} else {
if (aksi[_local1] == 2){
if (subaksi[_local1] == 0){
tempatpotong[_local1].rambut = 2;
} else {
if (subaksi[_local1] == 1){
tempatpotong[_local1].rambut = 3;
} else {
if (subaksi[_local1] == 2){
tempatpotong[_local1].rambut = 4;
};
};
};
} else {
if (aksi[_local1] == 0){
_local3 = subaksi[_local1];
tempatpotong[_local1].warna = _local3;
};
};
};
loadgambar(getChildByName(("customerpotong" + (_local1 + 1))), tempatpotong[_local1]);
_local2.getChildByName("rambutback").visible = true;
_local2.getChildByName("rambutback").play();
_local2.getChildByName("rambutfront").visible = true;
_local2.getChildByName("rambutfront").play();
_local2.getChildByName("kepala").play();
_local2.setChildIndex(_local2.getChildByName("treatment"), (_local2.numChildren - 1));
};
if (_local2.getChildByName("treatment").animasi.currentFrame == (_local2.getChildByName("treatment").animasi.totalFrames - 1)){
serve = false;
pjgtokosmall.x = 376.5;
pjgtokosmall.y = 116.7;
setChildIndex(pjgtokosmall, (getChildIndex(mejakasir) - 1));
_local2.removeChild(_local2.getChildByName("treatment"));
if (tempatpotong[_local1].countngidam == 0){
getChildByName(("customerpotong" + (_local1 + 1))).visible = false;
pikiran[_local1] = 0;
if ((((aksi[_local1] == tempatpotong[_local1].lagipengen)) && ((subaksi[_local1] == tempatpotong[_local1].sublagipengen)))){
stateuang[_local1] = 0;
_local2 = new koin1();
_local2.x = getChildByName(("uang" + (_local1 + 1))).x;
_local2.y = getChildByName(("uang" + (_local1 + 1))).y;
addChildAt(_local2, getChildIndex(getChildByName(("uang" + (_local1 + 1)))));
_local2.name = removeChild(getChildByName(("uang" + (_local1 + 1)))).name;
getChildByName(("uang" + (_local1 + 1))).addFrameScript(4, tes);
getChildByName(("uang" + (_local1 + 1))).visible = true;
mRightCustomer++;
cekmenang();
};
tempatpotong[_local1] = null;
} else {
pikiran[_local1] = 0;
tempatpotong[_local1].kesabaran = Data.dunia[(Main.GetInstance().level - 1)].kesabaran;
};
};
};
} else {
if (pikiran[_local1] == 3){
};
};
};
};
};
_local1++;
};
}
function warnadah(_arg1:MouseEvent){
removeChild(getChildByName("icon0"));
removeChild(getChildByName("icon1"));
removeChild(getChildByName("icon2"));
pjgtokosmall.x = getChildByName(("customerpotong" + idxserve)).x;
pjgtokosmall.y = (getChildByName(("customerpotong" + idxserve)).y - 2);
setChildIndex(pjgtokosmall, (getChildIndex(getChildByName(("customerpotong" + idxserve))) - 1));
aksi[(idxserve - 1)] = 0;
pikiran[(idxserve - 1)] = 2;
if (_arg1.currentTarget.name == "icon0"){
subaksi[(idxserve - 1)] = 0;
} else {
if (_arg1.currentTarget.name == "icon1"){
subaksi[(idxserve - 1)] = 1;
} else {
if (_arg1.currentTarget.name == "icon2"){
subaksi[(idxserve - 1)] = 2;
};
};
};
tempatpotong[(idxserve - 1)].kepala = 0;
loadgambar(getChildByName(("customerpotong" + idxserve)), tempatpotong[(idxserve - 1)]);
Main.GetInstance().mOptionBar.PlaySFX("spray");
if ((((tempatpotong[(idxserve - 1)].lagipengen == 0)) && ((tempatpotong[(idxserve - 1)].sublagipengen == subaksi[(idxserve - 1)])))){
loadtreatment(this.getChildByName(("customerpotong" + idxserve)), "catbenar");
} else {
loadtreatment(this.getChildByName(("customerpotong" + idxserve)), "catsalah");
};
arrmikir[(idxserve - 1)].visible = false;
}
function cekpewarna(){
var _local1:int;
var _local2:SimpleButton;
_local1 = 1;
while (_local1 < 5) {
if (((ColDetection.isColliding(this.getChildByName(("customerpotong" + _local1)), mousepewarna, this, true, 0)) && ((pikiran[(_local1 - 1)] == 1)))){
serve = true;
idxserve = _local1;
arrmikir[(_local1 - 1)].visible = false;
pikiran[(_local1 - 1)] = 3;
_local2 = new icon00();
_local2.x = (getChildByName(("customerpotong" + _local1)).x - 58.7);
_local2.y = (getChildByName(("customerpotong" + _local1)).y + 5.4);
_local2.name = "icon0";
addChild(_local2);
_local2.addEventListener(MouseEvent.MOUSE_DOWN, warnadah, false, 0, true);
_local2 = new icon01();
_local2.x = getChildByName(("customerpotong" + _local1)).x;
_local2.y = (getChildByName(("customerpotong" + _local1)).y - 32.6);
_local2.name = "icon1";
addChild(_local2);
_local2.addEventListener(MouseEvent.MOUSE_DOWN, warnadah, false, 0, true);
_local2 = new icon02();
_local2.x = (getChildByName(("customerpotong" + _local1)).x + 58.7);
_local2.y = (getChildByName(("customerpotong" + _local1)).y + 5.4);
_local2.name = "icon2";
addChild(_local2);
_local2.addEventListener(MouseEvent.MOUSE_DOWN, warnadah, false, 0, true);
};
_local1++;
};
}
public function showquality(_arg1:MouseEvent){
panelquality.teksquality.text = Main.GetInstance().stage.quality;
panelquality.visible = true;
}
public function hidequality(_arg1:MouseEvent){
panelquality.visible = false;
}
function lanjuthelp(_arg1:MouseEvent){
Main.GetInstance().mOptionBar.PlaySFX("klik");
help.visible = false;
Tweener.addTween(btnready, {alpha:1, time:1, onComplete:mulai});
}
function gerakpewarna(_arg1:MouseEvent){
mousepewarna.x = _arg1.stageX;
mousepewarna.y = _arg1.stageY;
}
function gerakcreambath(_arg1:MouseEvent){
mousecreambath.x = _arg1.stageX;
mousecreambath.y = _arg1.stageY;
}
function pauseoff(_arg1:MouseEvent){
overlaylayer.visible = false;
mpausebtn.visible = false;
pausestat = false;
pausebtn.visible = true;
startbtn.visible = false;
Main.GetInstance().mState = Main.STATE_GAME;
}
function cekgunting(){
var _local1:int;
var _local2:SimpleButton;
_local1 = 1;
while (_local1 < 5) {
if (((ColDetection.isColliding(this.getChildByName(("customerpotong" + _local1)), mousegunting, this, true, 0)) && ((pikiran[(_local1 - 1)] == 1)))){
serve = true;
idxserve = _local1;
arrmikir[(_local1 - 1)].visible = false;
pikiran[(_local1 - 1)] = 3;
_local2 = new icon10();
_local2.x = (getChildByName(("customerpotong" + _local1)).x - 58.7);
_local2.y = (getChildByName(("customerpotong" + _local1)).y + 5.4);
_local2.name = "icon0";
addChild(_local2);
_local2.addEventListener(MouseEvent.MOUSE_DOWN, guntingdah, false, 0, true);
_local2 = new icon11();
_local2.x = getChildByName(("customerpotong" + _local1)).x;
_local2.y = (getChildByName(("customerpotong" + _local1)).y - 32.6);
_local2.name = "icon1";
addChild(_local2);
_local2.addEventListener(MouseEvent.MOUSE_DOWN, guntingdah, false, 0, true);
_local2 = new icon12();
_local2.x = (getChildByName(("customerpotong" + _local1)).x + 58.7);
_local2.y = (getChildByName(("customerpotong" + _local1)).y + 5.4);
_local2.name = "icon2";
addChild(_local2);
_local2.addEventListener(MouseEvent.MOUSE_DOWN, guntingdah, false, 0, true);
};
_local1++;
};
}
function duduk(){
Tweener.addTween(customerdatang, {alpha:0, time:1, onComplete:caritempatduduk});
}
function dapetuang(_arg1:MouseEvent){
var _local2:int;
var _local3:MovieClip;
_local2 = _arg1.currentTarget.name.substr(4, 1);
stateuang[(_local2 - 1)] = -1;
Main.GetInstance().score = (Main.GetInstance().score + Data.dunia[(Main.GetInstance().level - 1)].duit);
_local3 = new koin3();
_local3.x = _arg1.currentTarget.x;
_local3.y = _arg1.currentTarget.y;
addChildAt(_local3, getChildIndex(_arg1.currentTarget));
_local3.name = removeChild(_arg1.currentTarget).name;
Main.GetInstance().mOptionBar.PlaySFX("coinflipsfx");
}
public function cekmenang(){
trace(("mrightcust : " + mRightCustomer));
if (mRightCustomer >= Data.dunia[(Main.GetInstance().level - 1)].target){
pausestat = true;
menang();
};
}
function gameover(){
var _local1:String;
var _local2:MovieClip;
setChildIndex(playmore, (numChildren - 1));
playmore.visible = true;
_local1 = (1000000 + Main.GetInstance().score);
result.textscore.text = _local1.substr(1, 6);
result.visible = true;
yougameover.visible = true;
start = false;
_local2 = new badanbigsad();
_local2.scaleX = pjgtokobig.scaleX;
_local2.scaleY = pjgtokobig.scaleY;
_local2.x = pjgtokobig.x;
_local2.y = pjgtokobig.y;
addChildAt(_local2, getChildIndex(pjgtokobig));
removeChild(pjgtokobig);
pjgtokobig = _local2;
_local2 = new badansmallsad();
_local2.x = pjgtokosmall.x;
_local2.y = pjgtokosmall.y;
addChildAt(_local2, getChildIndex(pjgtokosmall));
removeChild(pjgtokosmall);
pjgtokosmall = _local2;
}
function gerakgunting(_arg1:MouseEvent){
mousegunting.x = _arg1.stageX;
mousegunting.y = _arg1.stageY;
}
public static function GetInstance():CGame{
return (CGameGlobal);
}
}
}//package
Section 57
//CMainMenu (CMainMenu)
package {
import flash.events.*;
import flash.display.*;
public class CMainMenu extends MovieClip {
public var mPlayBtn:SimpleButton;
public var mPlayMoreBtn:SimpleButton;
public var mAddBtn:SimpleButton;
public function CMainMenu(){
mouseEnabled = false;
mPlayBtn.addEventListener(MouseEvent.MOUSE_UP, onMouseUp, false, 0, true);
mPlayMoreBtn.addEventListener(MouseEvent.MOUSE_UP, onMouseUp, false, 0, true);
mAddBtn.addEventListener(MouseEvent.MOUSE_UP, onMouseUp, false, 0, true);
}
private function onMouseUp(_arg1:MouseEvent):void{
if (_arg1.currentTarget.name == "mPlayBtn"){
Main.GetInstance().mOptionBar.PlaySFX("klik");
Main.GetInstance().InitGame();
} else {
if (_arg1.currentTarget.name == "mPlayMoreBtn"){
Main.GetInstance().mOptionBar.PlaySFX("klik");
Global.openWindow("http://www.rainbowdressup.com");
} else {
if (_arg1.currentTarget.name == "mAddBtn"){
Main.GetInstance().mOptionBar.PlaySFX("klik");
Global.openWindow("http://www.rainbowdressup.com/download-dressup-games.php");
};
};
};
}
}
}//package
Section 58
//coinflipsfx (coinflipsfx)
package {
import flash.media.*;
public dynamic class coinflipsfx extends Sound {
}
}//package
Section 59
//COptionBar (COptionBar)
package {
import flash.events.*;
import flash.display.*;
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 60
//customer (customer)
package {
public class customer {
public var kepala:int;
public var mata:int;
public var baju:int;
public var state:int;
public var countngidam:int;
public var kesabaran:int;
public var warna:Number;
public var rambut:int;
public var tempatduduk:int;
public var lagipengen:int;
public var sublagipengen:int;
public function customer(_arg1:int, _arg2:int, _arg3:int, _arg4:Number, _arg5:int, _arg6:int, _arg7:int){
this.kepala = _arg1;
this.rambut = _arg2;
this.mata = _arg3;
this.baju = _arg5;
this.kesabaran = _arg6;
this.state = 0;
this.warna = _arg4;
this.countngidam = _arg7;
}
}
}//package
Section 61
//Data (Data)
package {
public class Data {
public static var dunia = [{jmlhcustomer:9999, ngidam:1, duit:200, kesabaran:500, target:6}, {jmlhcustomer:9999, ngidam:2, duit:250, kesabaran:500, target:10}, {jmlhcustomer:9999, ngidam:3, duit:300, kesabaran:500, target:15}, {jmlhcustomer:9999, ngidam:4, duit:350, kesabaran:500, target:16}];
}
}//package
Section 62
//door (door)
package {
import flash.media.*;
public dynamic class door extends Sound {
}
}//package
Section 63
//FPS (FPS)
package {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.net.*;
import flash.external.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
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 64
//Global (Global)
package {
import flash.net.*;
import flash.external.*;
public class Global {
protected static const WINDOW_OPEN_FUNCTION:String = "window.open";
public static var STAGE_WIDTH = 600;
public static var STAGE_HEIGHT = 450;
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 Slope(_arg1, _arg2, _arg3, _arg4):Number{
var _local5:Number;
var _local6:Number;
_local5 = (_arg1 - _arg3);
_local6 = (_arg2 - _arg4);
return ((_local6 / _local5));
}
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 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);
}
}
}//package
Section 65
//icon00 (icon00)
package {
import flash.display.*;
public dynamic class icon00 extends SimpleButton {
}
}//package
Section 66
//icon01 (icon01)
package {
import flash.display.*;
public dynamic class icon01 extends SimpleButton {
}
}//package
Section 67
//icon02 (icon02)
package {
import flash.display.*;
public dynamic class icon02 extends SimpleButton {
}
}//package
Section 68
//icon10 (icon10)
package {
import flash.display.*;
public dynamic class icon10 extends SimpleButton {
}
}//package
Section 69
//icon11 (icon11)
package {
import flash.display.*;
public dynamic class icon11 extends SimpleButton {
}
}//package
Section 70
//icon12 (icon12)
package {
import flash.display.*;
public dynamic class icon12 extends SimpleButton {
}
}//package
Section 71
//icon20 (icon20)
package {
import flash.display.*;
public dynamic class icon20 extends SimpleButton {
}
}//package
Section 72
//icon21 (icon21)
package {
import flash.display.*;
public dynamic class icon21 extends SimpleButton {
}
}//package
Section 73
//icon22 (icon22)
package {
import flash.display.*;
public dynamic class icon22 extends SimpleButton {
}
}//package
Section 74
//idaman0 (idaman0)
package {
import flash.display.*;
public dynamic class idaman0 extends MovieClip {
}
}//package
Section 75
//idaman1 (idaman1)
package {
import flash.display.*;
public dynamic class idaman1 extends MovieClip {
}
}//package
Section 76
//idaman2 (idaman2)
package {
import flash.display.*;
public dynamic class idaman2 extends MovieClip {
}
}//package
Section 77
//kepala0 (kepala0)
package {
import flash.display.*;
public dynamic class kepala0 extends MovieClip {
}
}//package
Section 78
//kepala1 (kepala1)
package {
import flash.display.*;
public dynamic class kepala1 extends MovieClip {
}
}//package
Section 79
//kepala2 (kepala2)
package {
import flash.display.*;
public dynamic class kepala2 extends MovieClip {
}
}//package
Section 80
//keramas (keramas)
package {
import flash.media.*;
public dynamic class keramas extends Sound {
}
}//package
Section 81
//klik (klik)
package {
import flash.media.*;
public dynamic class klik extends Sound {
}
}//package
Section 82
//koin1 (koin1)
package {
import flash.display.*;
public dynamic class koin1 extends MovieClip {
}
}//package
Section 83
//koin2 (koin2)
package {
import flash.display.*;
public dynamic class koin2 extends MovieClip {
}
}//package
Section 84
//koin3 (koin3)
package {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.net.*;
import flash.external.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class koin3 extends MovieClip {
public function koin3(){
addFrameScript(30, frame31);
}
function frame31(){
visible = false;
}
}
}//package
Section 85
//laugh (laugh)
package {
import flash.media.*;
public dynamic class laugh extends Sound {
}
}//package
Section 86
//Main (Main)
package {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.ui.*;
import flash.utils.*;
import flash.net.*;
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 mFPSBar:MovieClip;
private var mMainMenu:CMainMenu;
public var mSfxFlag:Boolean;// = true
public var mOptionBar:COptionBar;
public var level:int;
public var mPreloader:MovieClip;
public var score:int;
public var mBannedWin:CBannedWin;
private var mGame:CGame;
protected static const WINDOW_OPEN_FUNCTION:String = "window.open";
public static var STATE_GAME = 1;
public static var MainGlobal:Main;
public static var STATE_PRELOADER = 0;
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, 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.MEDIUM;
level = 1;
score = 0;
}
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:XML;
var _local5:String;
if (this[_arg1]){
if (((this[_arg1].parent) && (_arg3))){
this[_arg1].parent.removeChild(this[_arg1]);
};
if (_arg2){
_local4 = describeType(this[_arg1]);
_local5 = _local4.method.@name.toXMLString();
if (_local5.indexOf("RemoveDispatcher") > -1){
this[_arg1].RemoveDispatcher();
};
};
this[_arg1] = null;
};
if (this[_arg1] != null){
trace((("WARNING ### " + _arg1) + "Not null after Kill process"));
};
}
private function RunStateGame(){
this.dispatchEvent(new Event("update"));
}
public function InitMainMenu(){
ShowWindow("MainMenu");
mState = STATE_MAIN_MENU;
}
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, "70c56fd6");
stop();
}
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);
}
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 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));
};
}
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(){
InitMainMenu();
mOptionBar = new COptionBar(0, 0, "bgsound2");
mOptionBar.visible = false;
stage.addChild(mOptionBar);
if (this.hasEventListener(Event.ENTER_FRAME)){
this.removeEventListener(Event.ENTER_FRAME, OnEnterFrame);
};
this.addEventListener(Event.ENTER_FRAME, OnEnterFrame, false, 0, true);
}
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 87
//mata0 (mata0)
package {
import flash.display.*;
public dynamic class mata0 extends MovieClip {
}
}//package
Section 88
//mata1 (mata1)
package {
import flash.display.*;
public dynamic class mata1 extends MovieClip {
}
}//package
Section 89
//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 90
//popsfx (popsfx)
package {
import flash.media.*;
public dynamic class popsfx extends Sound {
}
}//package
Section 91
//potongbenar (potongbenar)
package {
import flash.display.*;
public dynamic class potongbenar extends MovieClip {
public var animasi:MovieClip;
}
}//package
Section 92
//potongrambut (potongrambut)
package {
import flash.media.*;
public dynamic class potongrambut extends Sound {
}
}//package
Section 93
//potongsalah (potongsalah)
package {
import flash.display.*;
public dynamic class potongsalah extends MovieClip {
public var animasi:MovieClip;
}
}//package
Section 94
//rambutback0 (rambutback0)
package {
import flash.display.*;
public dynamic class rambutback0 extends MovieClip {
}
}//package
Section 95
//rambutback1 (rambutback1)
package {
import flash.display.*;
public dynamic class rambutback1 extends MovieClip {
}
}//package
Section 96
//rambutback2 (rambutback2)
package {
import flash.display.*;
public dynamic class rambutback2 extends MovieClip {
}
}//package
Section 97
//rambutback3 (rambutback3)
package {
import flash.display.*;
public dynamic class rambutback3 extends MovieClip {
}
}//package
Section 98
//rambutback4 (rambutback4)
package {
import flash.display.*;
public dynamic class rambutback4 extends MovieClip {
}
}//package
Section 99
//rambutback5 (rambutback5)
package {
import flash.display.*;
public dynamic class rambutback5 extends MovieClip {
}
}//package
Section 100
//rambutback6 (rambutback6)
package {
import flash.display.*;
public dynamic class rambutback6 extends MovieClip {
}
}//package
Section 101
//rambutback7 (rambutback7)
package {
import flash.display.*;
public dynamic class rambutback7 extends MovieClip {
}
}//package
Section 102
//rambutfront0 (rambutfront0)
package {
import flash.display.*;
public dynamic class rambutfront0 extends MovieClip {
}
}//package
Section 103
//rambutfront1 (rambutfront1)
package {
import flash.display.*;
public dynamic class rambutfront1 extends MovieClip {
}
}//package
Section 104
//rambutfront2 (rambutfront2)
package {
import flash.display.*;
public dynamic class rambutfront2 extends MovieClip {
}
}//package
Section 105
//rambutfront3 (rambutfront3)
package {
import flash.display.*;
public dynamic class rambutfront3 extends MovieClip {
}
}//package
Section 106
//rambutfront4 (rambutfront4)
package {
import flash.display.*;
public dynamic class rambutfront4 extends MovieClip {
}
}//package
Section 107
//rambutfront5 (rambutfront5)
package {
import flash.display.*;
public dynamic class rambutfront5 extends MovieClip {
}
}//package
Section 108
//rambutfront6 (rambutfront6)
package {
import flash.display.*;
public dynamic class rambutfront6 extends MovieClip {
}
}//package
Section 109
//rambutfront7 (rambutfront7)
package {
import flash.display.*;
public dynamic class rambutfront7 extends MovieClip {
}
}//package
Section 110
//scream (scream)
package {
import flash.media.*;
public dynamic class scream extends Sound {
}
}//package
Section 111
//spray (spray)
package {
import flash.media.*;
public dynamic class spray extends Sound {
}
}//package
Section 112
//stylebenar (stylebenar)
package {
import flash.display.*;
public dynamic class stylebenar extends MovieClip {
public var animasi:MovieClip;
}
}//package
Section 113
//stylesalah (stylesalah)
package {
import flash.display.*;
public dynamic class stylesalah extends MovieClip {
public var animasi:MovieClip;
}
}//package
Section 114
//subidaman00 (subidaman00)
package {
import flash.display.*;
public dynamic class subidaman00 extends MovieClip {
}
}//package
Section 115
//subidaman01 (subidaman01)
package {
import flash.display.*;
public dynamic class subidaman01 extends MovieClip {
}
}//package
Section 116
//subidaman02 (subidaman02)
package {
import flash.display.*;
public dynamic class subidaman02 extends MovieClip {
}
}//package
Section 117
//subidaman10 (subidaman10)
package {
import flash.display.*;
public dynamic class subidaman10 extends MovieClip {
}
}//package
Section 118
//subidaman11 (subidaman11)
package {
import flash.display.*;
public dynamic class subidaman11 extends MovieClip {
}
}//package
Section 119
//subidaman12 (subidaman12)
package {
import flash.display.*;
public dynamic class subidaman12 extends MovieClip {
}
}//package
Section 120
//subidaman20 (subidaman20)
package {
import flash.display.*;
public dynamic class subidaman20 extends MovieClip {
}
}//package
Section 121
//subidaman21 (subidaman21)
package {
import flash.display.*;
public dynamic class subidaman21 extends MovieClip {
}
}//package
Section 122
//subidaman22 (subidaman22)
package {
import flash.display.*;
public dynamic class subidaman22 extends MovieClip {
}
}//package