Section 1
//AuxFunctions (caurina.transitions.AuxFunctions)
package caurina.transitions {
public class AuxFunctions {
public static function getObjectLength(_arg1:Object):uint{
var _local3:String;
var _local2:uint;
for (_local3 in _arg1) {
_local2++;
};
return (_local2);
}
public static function numberToG(_arg1:Number):Number{
return (((_arg1 & 0xFF00) >> 8));
}
public static function numberToB(_arg1:Number):Number{
return ((_arg1 & 0xFF));
}
public static function numberToR(_arg1:Number):Number{
return (((_arg1 & 0xFF0000) >> 16));
}
public static function concatObjects(... _args):Object{
var _local3:Object;
var _local5:String;
var _local2:Object = {};
var _local4:int;
while (_local4 < _args.length) {
_local3 = _args[_local4];
for (_local5 in _local3) {
if (_local3[_local5] == null){
delete _local2[_local5];
} else {
_local2[_local5] = _local3[_local5];
};
};
_local4++;
};
return (_local2);
}
}
}//package caurina.transitions
Section 2
//Equations (caurina.transitions.Equations)
package caurina.transitions {
public class Equations {
public function Equations(){
trace("Equations is a static class and should not be instantiated.");
}
public static function easeOutBounce(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / _arg4);
if (_arg1 < (1 / 2.75)){
return (((_arg3 * ((7.5625 * _arg1) * _arg1)) + _arg2));
};
if (_arg1 < (2 / 2.75)){
_arg1 = (_arg1 - (1.5 / 2.75));
return (((_arg3 * (((7.5625 * _arg1) * _arg1) + 0.75)) + _arg2));
};
if (_arg1 < (2.5 / 2.75)){
_arg1 = (_arg1 - (2.25 / 2.75));
return (((_arg3 * (((7.5625 * _arg1) * _arg1) + 0.9375)) + _arg2));
};
_arg1 = (_arg1 - (2.625 / 2.75));
return (((_arg3 * (((7.5625 * _arg1) * _arg1) + 0.984375)) + _arg2));
}
public static function easeInOutElastic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
var _local7:Number;
if (_arg1 == 0){
return (_arg2);
};
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 == 2){
return ((_arg2 + _arg3));
};
var _local6:Number = (((!(Boolean(_arg5))) || (isNaN(_arg5.period)))) ? (_arg4 * (0.3 * 1.5)) : _arg5.period;
var _local8:Number = (((!(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 = (((!(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 = (((!(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 = (((!(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 _local7:Number;
if (_arg1 == 0){
return (_arg2);
};
_arg1 = (_arg1 / _arg4);
if (_arg1 == 1){
return ((_arg2 + _arg3));
};
var _local6:Number = (((!(Boolean(_arg5))) || (isNaN(_arg5.period)))) ? (_arg4 * 0.3) : _arg5.period;
var _local8:Number = (((!(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 _local7:Number;
if (_arg1 == 0){
return (_arg2);
};
_arg1 = (_arg1 / _arg4);
if (_arg1 == 1){
return ((_arg2 + _arg3));
};
var _local6:Number = (((!(Boolean(_arg5))) || (isNaN(_arg5.period)))) ? (_arg4 * 0.3) : _arg5.period;
var _local8:Number = (((!(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 modifierParameters:Array;
public var isSpecialProperty:Boolean;
public var valueComplete:Number;
public var modifierFunction:Function;
public var extra:Object;
public var valueStart:Number;
public var hasModifier:Boolean;
public var arrayIndex:Number;
public var originalValueComplete:Object;
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 = "\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 = 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 getValue:Function;
public var preProcess:Function;
public var setValue: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 = "";
_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 = "";
_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 = "";
_local1 = (_local1 + "[SpecialPropertySplitter ");
_local1 = (_local1 + ("splitValues:" + String(splitValues)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("parameters:" + String(parameters)));
_local1 = (_local1 + "]");
return (_local1);
}
}
}//package caurina.transitions
Section 7
//Tweener (caurina.transitions.Tweener)
package caurina.transitions {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
public class Tweener {
private static var _timeScale:Number = 1;
private static var _currentTimeFrame:Number;
private static var _specialPropertySplitterList:Object;
public static var autoOverwrite:Boolean = true;
private static var _engineExists:Boolean = false;
private static var _currentTime:Number;
private static var _tweenList:Array;
private static var _specialPropertyModifierList:Object;
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{
if (!_inited){
init();
};
var _local4:SpecialPropertyModifier = new SpecialPropertyModifier(_arg2, _arg3);
_specialPropertyModifierList[_arg1] = _local4;
}
public static function registerSpecialProperty(_arg1:String, _arg2:Function, _arg3:Function, _arg4:Array=null, _arg5:Function=null):void{
if (!_inited){
init();
};
var _local6:SpecialProperty = 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 _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];
};
var _local5:Object = _arg2;
if (!_inited){
init();
};
if (((!(_engineExists)) || (!(Boolean(__tweener_controller__))))){
startEngine();
};
var _local6:Number = (isNaN(_local5.time)) ? 0 : _local5.time;
var _local7:Number = (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 _local2:uint;
if (!Boolean(_tweenList)){
return (false);
};
var _local1:Boolean;
_local2 = 0;
while (_local2 < _tweenList.length) {
pauseTweenByIndex(_local2);
_local1 = true;
_local2++;
};
return (_local1);
}
public static function removeTweens(_arg1:Object, ... _args):Boolean{
var _local4:uint;
var _local5:SpecialPropertySplitter;
var _local6:Array;
var _local7:uint;
var _local3:Array = new Array();
_local4 = 0;
while (_local4 < _args.length) {
if ((((typeof(_args[_local4]) == "string")) && ((_local3.indexOf(_args[_local4]) == -1)))){
if (_specialPropertySplitterList[_args[_local4]]){
_local5 = _specialPropertySplitterList[_args[_local4]];
_local6 = _local5.splitValues(_arg1, null);
_local7 = 0;
while (_local7 < _local6.length) {
_local3.push(_local6[_local7].name);
_local7++;
};
} else {
_local3.push(_args[_local4]);
};
};
_local4++;
};
return (affectTweens(removeTweenByIndex, _arg1, _local3));
}
public static function updateFrame():void{
_currentTimeFrame++;
}
public static function splitTweens(_arg1:Number, _arg2:Array):uint{
var _local5:uint;
var _local6:String;
var _local7:Boolean;
var _local3:TweenListObj = _tweenList[_arg1];
var _local4:TweenListObj = _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 resumeTweenByIndex(_arg1:Number):Boolean{
var _local2:TweenListObj = _tweenList[_arg1];
if ((((_local2 == null)) || (!(_local2.isPaused)))){
return (false);
};
var _local3:Number = 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.33.74");
}
public static function onEnterFrame(_arg1:Event):void{
updateTime();
updateFrame();
var _local2:Boolean;
_local2 = updateTweens();
if (!_local2){
stopEngine();
};
}
public static function updateTime():void{
_currentTime = getTimer();
}
private static function updateTweenByIndex(_arg1:Number):Boolean{
var tTweening:TweenListObj;
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 tProperty:Object;
var pv:Number;
var i = _arg1;
tTweening = _tweenList[i];
if ((((tTweening == null)) || (!(Boolean(tTweening.scope))))){
return (false);
};
var isOver:Boolean;
var cTime:Number = getCurrentTweeningTime(tTweening);
if (cTime >= tTweening.timeStart){
tScope = tTweening.scope;
if (tTweening.isCaller){
do {
t = (((tTweening.timeComplete - tTweening.timeStart) / tTweening.count) * (tTweening.timesCalled + 1));
b = tTweening.timeStart;
c = (tTweening.timeComplete - tTweening.timeStart);
d = (tTweening.timeComplete - tTweening.timeStart);
nv = tTweening.transition(t, b, c, d);
} while (!(cTime >= nv));
} else {
mustUpdate = (((((tTweening.skipUpdates < 1)) || (!(tTweening.skipUpdates)))) || ((tTweening.updatesSkipped >= tTweening.skipUpdates)));
if (cTime >= tTweening.timeComplete){
isOver = true;
mustUpdate = true;
};
if (!tTweening.hasStarted){
if (Boolean(tTweening.onStart)){
eventScope = (Boolean(tTweening.onStartScope)) ? tTweening.onStartScope : tScope;
try {
tTweening.onStart.apply(eventScope, tTweening.onStartParams);
} catch(e2:Error) {
handleError(tTweening, e2, "onStart");
};
};
for (pName in tTweening.properties) {
if (tTweening.properties[pName].isSpecialProperty){
if (Boolean(_specialPropertyList[pName].preProcess)){
tTweening.properties[pName].valueComplete = _specialPropertyList[pName].preProcess(tScope, _specialPropertyList[pName].parameters, tTweening.properties[pName].originalValueComplete, tTweening.properties[pName].extra);
};
pv = _specialPropertyList[pName].getValue(tScope, _specialPropertyList[pName].parameters, tTweening.properties[pName].extra);
} else {
pv = tScope[pName];
};
tTweening.properties[pName].valueStart = (isNaN(pv)) ? tTweening.properties[pName].valueComplete : pv;
};
mustUpdate = true;
tTweening.hasStarted = true;
};
if (mustUpdate){
for (pName in tTweening.properties) {
tProperty = tTweening.properties[pName];
if (isOver){
nv = tProperty.valueComplete;
} else {
if (tProperty.hasModifier){
t = (cTime - tTweening.timeStart);
d = (tTweening.timeComplete - tTweening.timeStart);
nv = tTweening.transition(t, 0, 1, d, tTweening.transitionParams);
nv = tProperty.modifierFunction(tProperty.valueStart, tProperty.valueComplete, nv, tProperty.modifierParameters);
} else {
t = (cTime - tTweening.timeStart);
b = tProperty.valueStart;
c = (tProperty.valueComplete - tProperty.valueStart);
d = (tTweening.timeComplete - tTweening.timeStart);
nv = tTweening.transition(t, b, c, d, tTweening.transitionParams);
};
};
if (tTweening.rounded){
nv = Math.round(nv);
};
if (tProperty.isSpecialProperty){
_specialPropertyList[pName].setValue(tScope, nv, _specialPropertyList[pName].parameters, tTweening.properties[pName].extra);
} else {
tScope[pName] = nv;
};
};
tTweening.updatesSkipped = 0;
if (Boolean(tTweening.onUpdate)){
eventScope = (Boolean(tTweening.onUpdateScope)) ? tTweening.onUpdateScope : tScope;
try {
tTweening.onUpdate.apply(eventScope, tTweening.onUpdateParams);
} catch(e3:Error) {
handleError(tTweening, e3, "onUpdate");
};
};
} else {
tTweening.updatesSkipped++;
};
};
if (((isOver) && (Boolean(tTweening.onComplete)))){
eventScope = (Boolean(tTweening.onCompleteScope)) ? tTweening.onCompleteScope : tScope;
try {
tTweening.onComplete.apply(eventScope, tTweening.onCompleteParams);
} catch(e4:Error) {
handleError(tTweening, e4, "onComplete");
};
};
return (!(isOver));
};
return (true);
}
public static function setTimeScale(_arg1:Number):void{
var _local2:Number;
var _local3:Number;
if (isNaN(_arg1)){
_arg1 = 1;
};
if (_arg1 < 1E-5){
_arg1 = 1E-5;
};
if (_arg1 != _timeScale){
if (_tweenList != null){
_local2 = 0;
while (_local2 < _tweenList.length) {
_local3 = getCurrentTweeningTime(_tweenList[_local2]);
_tweenList[_local2].timeStart = (_local3 - (((_local3 - _tweenList[_local2].timeStart) * _timeScale) / _arg1));
_tweenList[_local2].timeComplete = (_local3 - (((_local3 - _tweenList[_local2].timeComplete) * _timeScale) / _arg1));
if (_tweenList[_local2].timePaused != undefined){
_tweenList[_local2].timePaused = (_local3 - (((_local3 - _tweenList[_local2].timePaused) * _timeScale) / _arg1));
};
_local2++;
};
};
_timeScale = _arg1;
};
}
public static function resumeAllTweens():Boolean{
var _local2:uint;
if (!Boolean(_tweenList)){
return (false);
};
var _local1:Boolean;
_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 _local2:uint;
if (!Boolean(_tweenList)){
return (false);
};
var _local1:Boolean;
_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 _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];
};
var _local7:Object = TweenListObj.makePropertiesChain(_arg2);
if (!_inited){
init();
};
if (((!(_engineExists)) || (!(Boolean(__tweener_controller__))))){
startEngine();
};
var _local8:Number = (isNaN(_local7.time)) ? 0 : _local7.time;
var _local9:Number = (isNaN(_local7.delay)) ? 0 : _local7.delay;
var _local10:Array = new Array();
var _local11:Object = {overwrite:true, 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};
var _local12:Object = 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;
if (((_local7.overwrite == undefined)) ? autoOverwrite : _local7.overwrite){
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 _local5:uint;
var _local6:Array;
var _local7:uint;
var _local8:uint;
var _local9:uint;
var _local4:Boolean;
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;
if (!Boolean(_tweenList)){
return ([]);
};
var _local4:Array = 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 = _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;
if (!Boolean(_tweenList)){
return (0);
};
var _local3:Number = 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 removedLocally:Boolean;
var i:uint;
var pName:String;
var eventScope:Object;
var p_scope = _arg1;
var p_properties = _arg2;
var p_timeStart = _arg3;
var p_timeComplete = _arg4;
var removed:Boolean;
var tl:uint = _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{
if (!_inited){
init();
};
var _local4:SpecialPropertySplitter = 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 _local4:uint;
var _local3:Array = new Array();
_local4 = 0;
while (_local4 < _args.length) {
if ((((typeof(_args[_local4]) == "string")) && ((_local3.indexOf(_args[_local4]) == -1)))){
_local3.push(_args[_local4]);
};
_local4++;
};
return (affectTweens(resumeTweenByIndex, _arg1, _local3));
}
public static function pauseTweens(_arg1:Object, ... _args):Boolean{
var _local4:uint;
var _local3:Array = new Array();
_local4 = 0;
while (_local4 < _args.length) {
if ((((typeof(_args[_local4]) == "string")) && ((_local3.indexOf(_args[_local4]) == -1)))){
_local3.push(_args[_local4]);
};
_local4++;
};
return (affectTweens(pauseTweenByIndex, _arg1, _local3));
}
}
}//package caurina.transitions
Section 8
//TweenListObj (caurina.transitions.TweenListObj)
package caurina.transitions {
public class TweenListObj {
public var hasStarted:Boolean;
public var onUpdate:Function;
public var useFrames:Boolean;
public var count:Number;
public var onOverwriteParams:Array;
public var timeStart: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 isCaller:Boolean;
public var timePaused:Number;
public var transition:Function;
public var onCompleteParams:Array;
public var onError:Function;
public var timesCalled:Number;
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 _local3:String;
var _local2:TweenListObj = 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 _local3:String;
var _local1 = "\n[TweenListObj ";
_local1 = (_local1 + ("scope:" + String(scope)));
_local1 = (_local1 + ", properties:");
var _local2:Boolean;
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 _local3:Object;
var _local4:Object;
var _local5:Object;
var _local6:Number;
var _local7:Number;
var _local8:Number;
var _local2:Object = _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]);
}
public function adjustSaturation(_arg1:Number):void{
_arg1 = cleanValue(_arg1, 100);
if ((((_arg1 == 0)) || (isNaN(_arg1)))){
return;
};
var _local2:Number = (1 + ((_arg1)>0) ? ((3 * _arg1) / 100) : (_arg1 / 100));
var _local3:Number = 0.3086;
var _local4:Number = 0.6094;
var _local5:Number = 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]);
}
protected function multiplyMatrix(_arg1:Array):void{
var _local4:uint;
var _local5:Number;
var _local6:Number;
var _local2:Array = [];
var _local3:uint;
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++;
};
}
protected function cleanValue(_arg1:Number, _arg2:Number):Number{
return (Math.min(_arg2, Math.max(-(_arg2), _arg1)));
}
public function adjustHue(_arg1:Number):void{
_arg1 = ((cleanValue(_arg1, 180) / 180) * Math.PI);
if ((((_arg1 == 0)) || (isNaN(_arg1)))){
return;
};
var _local2:Number = Math.cos(_arg1);
var _local3:Number = Math.sin(_arg1);
var _local4:Number = 0.213;
var _local5:Number = 0.715;
var _local6:Number = 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 toString():String{
return ((("ColorMatrix [ " + this.join(" , ")) + " ]"));
}
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 reset():void{
var _local1:uint;
while (_local1 < LENGTH) {
this[_local1] = IDENTITY_MATRIX[_local1];
_local1++;
};
}
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 adjustColor(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):void{
adjustHue(_arg4);
adjustContrast(_arg2);
adjustBrightness(_arg1);
adjustSaturation(_arg3);
}
protected function copyMatrix(_arg1:Array):void{
var _local2:Number = LENGTH;
var _local3:uint;
while (_local3 < _local2) {
this[_local3] = _arg1[_local3];
_local3++;
};
}
public function concat(_arg1:Array):void{
_arg1 = fixMatrix(_arg1);
if (_arg1.length != LENGTH){
return;
};
multiplyMatrix(_arg1);
}
public function clone():ColorMatrix{
return (new ColorMatrix(this));
}
public function toArray():Array{
return (slice(0, 20));
}
}
}//package com.gskinner.geom
Section 10
//AwardsService (com.spilgames.api.AwardsService)
package com.spilgames.api {
public class AwardsService {
public static function submitAward(_arg1:String, _arg2:Function=null):int{
return (SpilGamesServices.getInstance().send("Awards", "submitAward", _arg2, {tag:_arg1, userName:User.getUserName(), userHash:User.getUserHash()}));
}
}
}//package com.spilgames.api
Section 11
//ScoreService (com.spilgames.api.ScoreService)
package com.spilgames.api {
public class ScoreService {
public static function submitScore(_arg1:int, _arg2:Function=null):int{
return (SpilGamesServices.getInstance().send("Score", "submitScore", _arg2, {score:_arg1, userName:User.getUserName(), userHash:User.getUserHash()}));
}
}
}//package com.spilgames.api
Section 12
//SpilGamesServices (com.spilgames.api.SpilGamesServices)
package com.spilgames.api {
import flash.display.*;
import flash.events.*;
import flash.net.*;
import flash.system.*;
public class SpilGamesServices extends MovieClip {
private var _connected:Boolean;// = false
private var _connecting:Boolean;// = false
private var DEFAULT_CONNECTION_LOCATION:String;// = "http://www8.agame.com/games/flash/services/ServicesConnection.swf"
private var _loader:Loader;
private var _servicesConnection;// = null
public static const INVALID_ID:int = -1;
private static var _instance:SpilGamesServices = null;
public function SpilGamesServices(_arg1:Private=null){
if (!_arg1){
throw (new Error("Cannot instantiate this class, use SpilGamesServices.getInstance"));
};
}
private function handleRemovedFromStage(_arg1:Event):void{
trace("WARNING: please do not remove SpilGamesServices from the stage");
}
private function handleLoadComplete(_arg1:Event):void{
trace("FLAG A handleLoadComplete");
_loader.contentLoaderInfo.removeEventListener(Event.COMPLETE, handleLoadComplete);
_loader.contentLoaderInfo.removeEventListener(IOErrorEvent.IO_ERROR, handleIOError);
_servicesConnection = LoaderInfo(_arg1.target).content;
_servicesConnection.addEventListener(Event.COMPLETE, handleServicesReady);
_servicesConnection.addEventListener(ErrorEvent.ERROR, handleServicesFailed);
_servicesConnection.addEventListener("serviceError", handleServiceError);
addChild(_servicesConnection);
}
public function send(_arg1:String, _arg2:String, _arg3:Function, _arg4:Object=null):int{
if (isReady()){
return (_servicesConnection.send(_arg1, _arg2, _arg3, _arg4));
};
return (INVALID_ID);
}
private function handleServicesFailed(_arg1:ErrorEvent):void{
_servicesConnection.addEventListener(Event.COMPLETE, handleServicesReady);
_servicesConnection.addEventListener(ErrorEvent.ERROR, handleServicesFailed);
_servicesConnection.addEventListener("serviceError", handleServiceError);
_connecting = false;
if (hasEventListener("servicesFailed")){
dispatchEvent(new ErrorEvent("servicesFailed", false, false, _arg1.text));
};
}
public function get version():String{
return ("1.0");
}
public function isReady():Boolean{
return (((!((_servicesConnection == null))) && (_servicesConnection.isReady())));
}
private function handleIOError(_arg1:IOErrorEvent):void{
_loader.contentLoaderInfo.removeEventListener(Event.COMPLETE, handleLoadComplete);
_loader.contentLoaderInfo.removeEventListener(IOErrorEvent.IO_ERROR, handleIOError);
_connecting = false;
if (hasEventListener(_arg1.type)){
dispatchEvent(_arg1);
};
}
private function handleServiceError(_arg1:Event):void{
var _local2:String;
if (hasEventListener("serviceError")){
_local2 = "";
if ((_arg1 is ErrorEvent)){
_local2 = ErrorEvent(_arg1).text;
} else {
_local2 = _arg1.toString();
};
dispatchEvent(new ErrorEvent("serviceError", false, false, _local2));
};
}
public function disconnect():void{
if (_servicesConnection){
_servicesConnection.removeEventListener(Event.COMPLETE, handleServicesReady);
_servicesConnection.removeEventListener(ErrorEvent.ERROR, handleServicesFailed);
_servicesConnection.removeEventListener("serviceError", handleServiceError);
if (_connected){
_servicesConnection.disconnect();
};
removeChild(_servicesConnection);
};
_servicesConnection = null;
if (_loader){
try {
_loader.close();
} catch(e:Error) {
} finally {
_loader.contentLoaderInfo.removeEventListener(Event.COMPLETE, handleLoadComplete);
_loader.contentLoaderInfo.removeEventListener(IOErrorEvent.IO_ERROR, handleIOError);
};
_loader = null;
};
removeEventListener(Event.REMOVED_FROM_STAGE, handleRemovedFromStage);
if (parent){
parent.removeChild(this);
};
_connected = (_connecting = false);
}
private function handleServicesReady(_arg1:Event):void{
_loader.contentLoaderInfo.removeEventListener(Event.COMPLETE, handleLoadComplete);
_loader.contentLoaderInfo.removeEventListener(IOErrorEvent.IO_ERROR, handleIOError);
_connected = true;
_connecting = false;
dispatchEvent(new Event("servicesReady"));
}
public function get connection(){
return (_servicesConnection);
}
public function getSiteID():int{
if (_servicesConnection != null){
return (_servicesConnection.getSiteID());
};
return (INVALID_ID);
}
public function getChannelID():int{
if (_servicesConnection != null){
return (_servicesConnection.getChannelID());
};
return (INVALID_ID);
}
public function connect(_arg1:DisplayObjectContainer):void{
var _local2:URLRequest;
var _local3:String;
var _local4:URLVariables;
var _local5:Date;
trace("FLAG B0 connect");
if (((!(_connecting)) && (!(_connected)))){
trace("FLAG B1 connect");
if (!_arg1.stage){
throw (new Error("The given clip must be present in the display list (added to stage)"));
};
_connecting = true;
_arg1.stage.addChild(this);
addEventListener(Event.REMOVED_FROM_STAGE, handleRemovedFromStage);
trace("FLAG B2 connect");
if (((root.loaderInfo.parameters["servicesLoc"]) && ((root.loaderInfo.parameters["servicesLoc"].length > 0)))){
_local3 = root.loaderInfo.parameters["servicesLoc"];
_local2 = new URLRequest(_local3);
} else {
_local3 = DEFAULT_CONNECTION_LOCATION;
_local4 = new URLVariables();
_local5 = new Date();
_local4.nocache = (((_local5.month + 1) * 31) + _local5.day);
_local2 = new URLRequest(_local3);
_local2.data = _local4;
};
allowDomain(_local3);
_loader = new Loader();
_loader.contentLoaderInfo.addEventListener(Event.COMPLETE, handleLoadComplete);
_loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, handleIOError);
_loader.load(_local2);
};
}
public function getItemID():int{
if (_servicesConnection != null){
return (_servicesConnection.getItemID());
};
return (INVALID_ID);
}
public function allowDomain(_arg1:String):void{
Security.allowDomain("*");
Security.allowInsecureDomain("*");
}
public function get connecting():Boolean{
return (_connecting);
}
public function isDomainAllowed():Boolean{
return (((!((_servicesConnection == null))) && (_servicesConnection.isDomainValid())));
}
public function bringToFront(_arg1:Event=null):void{
var e = _arg1;
if (parent){
try {
parent.setChildIndex(this, (parent.numChildren - 1));
} catch(e:Error) {
removeEventListener(Event.ENTER_FRAME, bringToFront);
};
};
}
public static function getInstance():SpilGamesServices{
if (!_instance){
_instance = new SpilGamesServices(new Private());
};
return (_instance);
}
}
}//package com.spilgames.api
class Private {
private function Private(){
}
}
Section 13
//User (com.spilgames.api.User)
package com.spilgames.api {
import flash.display.*;
public class User {
public static function getUserName():String{
var _local1:* = SpilGamesServices.getInstance().connection;
if (_local1 != null){
return (_local1.getUserName());
};
return ("");
}
public static function isGuest():Boolean{
var _local2:DisplayObject;
var _local3:Object;
var _local1:* = SpilGamesServices.getInstance().connection;
if (_local1 != null){
return (_local1.isGuest());
};
_local2 = SpilGamesServices.getInstance().root;
if (_local2.loaderInfo != null){
_local3 = _local2.loaderInfo.parameters;
return (((((((!(_local3.username)) || ((_local3.username == "")))) || (!(_local3.hash)))) || ((_local3.hash == ""))));
};
return (false);
}
public static function getUserHash():String{
var _local1:* = SpilGamesServices.getInstance().connection;
if (_local1 != null){
return (_local1.getUserHash());
};
return ("");
}
}
}//package com.spilgames.api
Section 14
//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 = 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 15
//BARISTANGANTARPESANAN_161 (Skeleton_fla.BARISTANGANTARPESANAN_161)
package Skeleton_fla {
import flash.xml.*;
import flash.display.*;
import flash.text.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import flash.utils.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
public dynamic class BARISTANGANTARPESANAN_161 extends MovieClip {
public function BARISTANGANTARPESANAN_161(){
addFrameScript(39, frame40);
}
function frame40(){
stop();
}
}
}//package Skeleton_fla
Section 16
//BARISTASELESAIANTARJALAN_110 (Skeleton_fla.BARISTASELESAIANTARJALAN_110)
package Skeleton_fla {
import flash.xml.*;
import flash.display.*;
import flash.text.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import flash.utils.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
public dynamic class BARISTASELESAIANTARJALAN_110 extends MovieClip {
public function BARISTASELESAIANTARJALAN_110(){
addFrameScript(39, frame40);
}
function frame40(){
stop();
}
}
}//package Skeleton_fla
Section 17
//CANGKIRKOPI_217 (Skeleton_fla.CANGKIRKOPI_217)
package Skeleton_fla {
import flash.xml.*;
import flash.display.*;
import flash.text.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import flash.utils.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
public dynamic class CANGKIRKOPI_217 extends MovieClip {
public var sendok:MovieClip;
public function CANGKIRKOPI_217(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Skeleton_fla
Section 18
//flag_icon_409 (Skeleton_fla.flag_icon_409)
package Skeleton_fla {
import flash.xml.*;
import flash.display.*;
import flash.text.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import flash.utils.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
public dynamic class flag_icon_409 extends MovieClip {
public function flag_icon_409(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Skeleton_fla
Section 19
//GGGMoreGamesBtn_320 (Skeleton_fla.GGGMoreGamesBtn_320)
package Skeleton_fla {
import flash.xml.*;
import flash.display.*;
import flash.text.*;
import flash.events.*;
import spill.localisation.*;
import flash.geom.*;
import flash.media.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import flash.utils.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
public dynamic class GGGMoreGamesBtn_320 extends MovieClip {
public var xmlData:XML;
public var __id32_:LocalizedTextField;
public var btn_moreGames:SimpleButton;
public function GGGMoreGamesBtn_320(){
addFrameScript(0, frame1);
__setProp___id32__GGGMoreGamesBtn_Layer1_0();
}
public function handle_btnMoreGames(_arg1:MouseEvent):void{
navigateToURL(new URLRequest(SpilGame.getMoreGamesLink("Mainscreen")), "_blank");
}
function frame1(){
xmlData = <LocalisedText><textItem identifier="lb_Coffee_Coffee"><en_us>Coffee</en_us><en_uk>Coffee</en_uk><nl>Koffie</nl><fr>Café</fr><de>Kaffee</de><es>Café</es><br>Café</br><pt>Café</pt><it>Caffè</it><se>Kaffe</se><pl>Kawa</pl><ru>Кофе</ru><id>Kopi</id><ar>Coffee</ar><jp>Coffee</jp><cn>Coffee</cn></textItem><textItem identifier="lb_Coffee_Trash"><en_us>Trash Can</en_us><en_uk>Bin</en_uk><nl>Vuilnis</nl><fr>Poubelle</fr><de>Mülleimer</de><es>Papelera</es><br>Lixeira</br><pt>Lata de Lixo</pt><it>Pattumiera</it><se>Soptunna</se><pl>Kosz na śmieci</pl><ru>Мусор</ru><id>Tempat Sampah</id><ar>Trash Can</ar><jp>Trash Can</jp><cn>Trash Can</cn></textItem><textItem identifier="lb_Congratulation_Congratulation"><en_us>Congratulations!</en_us><en_uk>Congratulations!</en_uk><nl>Gefeliciteerd!</nl><fr>Félicitations !</fr><de>Glückwunsch!</de><es>¡Enhorabuena!</es><br>Parabéns!</br><pt>Parabéns!</pt><it>Complimenti!</it><se>Gratulerar!</se><pl>Gratulacje!</pl><ru>Поздравляем!</ru><id>Selamat!</id><ar>Congratulations!</ar><jp>Congratulations!</jp><cn>Congratulations!</cn></textItem><textItem identifier="lb_Congratulation_Content"><en_us>Thanks for helping me out! All of the customers seems very satisfied. You definitely have the talent to be a barista!</en_us><en_uk>Thanks for helping me out! All the customers seem very satisfied. You definitely have enough talent to be a barista!</en_uk><nl>Bedankt voor je hulp! De klanten lijken zeer tevreden. Je hebt duidelijk talent om koffie te maken!</nl><fr>Merci beaucoup de me dépanner ! Les clients semblent tous très satisfaits. Tu as vraiment ce qu'il faut pour faire du café !</fr><de>Danke für deine Hilfe! Die Kunden sehen alle sehr zufrieden aus. Du hast definitiv das Zeug zu einer guten Kaffeeköchin!</de><es>¡Gracias por ayudarme! Todos los clientes parecen muy satisfechos. ¡Definitivamente tienes talento para hacer café!</es><br>Agradeço por me ajudar! Todos os clientes ficaram bem satisfeitos. Você tem mesmo talento para ser barista!</br><pt>Obrigado por me ajudares! Os clientes parecem estar todos satisfeitos. Sem dúvida que tens talento como barman!</pt><it>Grazie per l'aiuto! Tutti i clienti sembrano molto soddisfatti. Hai sicuramente il talento per fare la barista!</it><se>Tack för att du hjälpt mig! Alla kunderna är mycket nöjda. Du har definitivt talang för att bli en barista!</se><pl>Dziękuję za pomoc! Wszyscy klienci wyglądają na zadowolonych. Jesteś urodzonym baristą!</pl><ru>Спасибо за помощь! Все клиенты остались довольны! Ты и впрямь знаешь толк в кофе!</ru><id>Terima kasih sudah membantuku! Semua pelanggan tampak sangat puas. Kamu jelas berbakat untuk menjadi barista!</id><ar>Thanks for helping me out! All of the customers seems very satisfied. You definitely have the talent to be a barista!</ar><jp>Thanks for helping me out! All of the customers seems very satisfied. You definitely have the talent to be a barista!</jp><cn>Thanks for helping me out! All of the customers seems very satisfied. You definitely have the talent to be a barista!</cn></textItem><textItem identifier="lb_Congratulation_MainMenu"><en_us>Main Menu</en_us><en_uk>Main Menu</en_uk><nl>Hoofdmenu</nl><fr>Menu principal</fr><de>Hauptmenü</de><es>Menú principal</es><br>Menu Principal</br><pt>Menu Principal</pt><it>Menu principale</it><se>Huvudmeny</se><pl>Menu główne</pl><ru>Главное меню</ru><id>Menu Utama</id><ar>Main Menu</ar><jp>Main Menu</jp><cn>Main Menu</cn></textItem><textItem identifier="lb_Congratulation_PlayAgain"><en_us>Play Again</en_us><en_uk>Play Again</en_uk><nl>Opnieuw spelen</nl><fr>Rejouer</fr><de>Nochmal spielen</de><es>Volver a jugar</es><br>Jogar de Novo</br><pt>Jogar Novamente</pt><it>Rigioca</it><se>Spela om</se><pl>Zagraj ponownie</pl><ru>Еще раз</ru><id>Main Lagi</id><ar>Play Again</ar><jp>Play Again</jp><cn>Play Again</cn></textItem><textItem identifier="lb_Game_Goal"><en_us>Target:</en_us><en_uk>Objective:</en_uk><nl>Doel:</nl><fr>But :</fr><de>Ziel:</de><es>Objetivo:</es><br>Meta:</br><pt>Objectivo:</pt><it>Obiettivo:</it><se>Mål:</se><pl>Cel:</pl><ru>Цель:</ru><id>Target:</id><ar>Target:</ar><jp>Target:</jp><cn>Target:</cn></textItem><textItem identifier="lb_Game_Milk"><en_us>Milk</en_us><en_uk>Milk</en_uk><nl>Melk</nl><fr>Lait</fr><de>Milch</de><es>Leche</es><br>Leite</br><pt>Leite</pt><it>Latte</it><se>Mjölk</se><pl>Mleko</pl><ru>Молоко</ru><id>Susu</id><ar>Milk</ar><jp>Milk</jp><cn>Milk</cn></textItem><textItem identifier="lb_Game_Score"><en_us>Score:</en_us><en_uk>Score:</en_uk><nl>Score:</nl><fr>Score :</fr><de>Punkte:</de><es>Puntuación:</es><br>Pontuação:</br><pt>Pontuação:</pt><it>Punteggio:</it><se>Poäng:</se><pl>Wynik:</pl><ru>Счет:</ru><id>Skor:</id><ar>Score:</ar><jp>Score:</jp><cn>Score:</cn></textItem><textItem identifier="lb_Game_Tissue"><en_us>Tissues</en_us><en_uk>Tissues</en_uk><nl>Servetjes</nl><fr>Serviettes</fr><de>Papiertücher</de><es>Servilletas</es><br>Lenços</br><pt>Lenços</pt><it>Fazzolettini di carta</it><se>Servetter</se><pl>Serwetki</pl><ru>Салфетки</ru><id>Tisu</id><ar>Tissues</ar><jp>Tissues</jp><cn>Tissues</cn></textItem><textItem identifier="lb_GameOver_Content"><en_us>Uh oh, the customers have been complaining. I'm sorry, but we're letting you go.</en_us><en_uk>Uh oh, the customers have been complaining. I'm sorry, but we'll have to let you go.</en_uk><nl>Oeps! De klanten lopen te klagen. Sorry, maar we moeten je ontslaan.</nl><fr>Oh non, des clients se sont plaints. Désolés, mais nous devons te renvoyer.</fr><de>Oh oh, die Kunden beschweren sich. Es tut mir leid, aber du bist gefeuert.</de><es>Vaya, los clientes se han estado quejando. Lo siento, pero vamos a despedirte.</es><br>Xi, os clientes estão reclamando. Sinto muito, mas vou ter que te demitir.</br><pt>Ops, os cloietnes estão a queixar-se. lamento, mas foste despedido.</pt><it>Oh oh, i clienti si stanno lamentando. Mi spiace ma dobbiamo licenziarti.</it><se>Åh nej, kunderna har klagat. Tyvärr måste vi ge dig sparken.</se><pl>Niestety klienci się skarżą. Przykro mi, ale musisz odejść.</pl><ru>Похоже, клиенты остались недовольны... Прости, но нам придется расстаться!</ru><id>Gawat, pelanggannya mengeluh. Maaf, kami harus memecatmu.</id><ar>Uh oh, the customers have been complaining. I'm sorry, but we're letting you go.</ar><jp>Uh oh, the customers have been complaining. I'm sorry, but we're letting you go.</jp><cn>Uh oh, the customers have been complaining. I'm sorry, but we're letting you go.</cn></textItem><textItem identifier="lb_GameOver_GameOver"><en_us>Game Over</en_us><en_uk>Game Over</en_uk><nl>Game over</nl><fr>Game over</fr><de>Game Over</de><es>Fin de partida</es><br>Acabou</br><pt>Fim do Jogo</pt><it>Gioco finito </it><se>Game over</se><pl>Koniec gry</pl><ru>Конец игры</ru><id>Game Tamat</id><ar>Game Over</ar><jp>Game Over</jp><cn>Game Over</cn></textItem><textItem identifier="lb_GameOver_TryAgain"><en_us>Try Again</en_us><en_uk>Try again</en_uk><nl>Nog een keer</nl><fr>Essayer de nouveau </fr><de>Nochmal probieren</de><es>¿Volver a intentar?</es><br>Tentar de Novo</br><pt>Tentar Novamente</pt><it>Riprova</it><se>Försök igen</se><pl>Spróbuj ponownie</pl><ru>Еще раз</ru><id>Coba Lagi</id><ar>Try Again</ar><jp>Try Again</jp><cn>Try Again</cn></textItem><textItem identifier="lb_MainMenu_NightShiftCoffee"><en_us>Night Shift Coffee</en_us><en_uk>Night Shift Coffee</en_uk><nl>Avondkoffie</nl><fr>Café de nuit</fr><de>Kaffee für die Nachtschicht</de><es>Café nocturno</es><br>Café Noturno</br><pt>Café da Noite</pt><it>Notte in caffetteria</it><se>Jobba på nattkafé</se><pl>Nocny Dyżur w Kawiarni</pl><ru>Ночное кафе</ru><id>Kopi Malam Hari</id><ar>Night Shift Coffee</ar><jp>Night Shift Coffee</jp><cn>Night Shift Coffee</cn></textItem><textItem identifier="lb_MainMenu_Start"><en_us>Start</en_us><en_uk>Start</en_uk><nl>Starten</nl><fr>Jouer</fr><de>Start</de><es>Iniciar</es><br>Começar</br><pt>Começar</pt><it>Avvia</it><se>Starta</se><pl>Start</pl><ru>Играть</ru><id>Mulai</id><ar>Start</ar><jp>Start</jp><cn>Start</cn></textItem><textItem identifier="lb_NextLevel_NextLevel"><en_us>Next Level</en_us><en_uk>Next Level</en_uk><nl>Volgend level</nl><fr>Niveau suivant</fr><de>Nächster Level</de><es>Siguiente nivel</es><br>Próxima Fase</br><pt>Nível Seguinte</pt><it>Prossimo livello</it><se>Nästa nivå</se><pl>Następny poziom</pl><ru>Следующий уровень</ru><id>Level Berikutnya</id><ar>Next Level</ar><jp>Next Level</jp><cn>Next Level</cn></textItem><textItem identifier="lb_NextLevel_NiceJob"><en_us>Nice job!</en_us><en_uk>Well done!</en_uk><nl>Goed gedaan!</nl><fr>Bon boulot !</fr><de>Gute Arbeit!</de><es>¡Buen trabajo!</es><br>Bom trabalho!</br><pt>Bom trabalho!</pt><it>Ottimo lavoro!</it><se>Snyggt jobbat!</se><pl>Świetnie!</pl><ru>Отлично!</ru><id>Kerja bagus!</id><ar>Nice job!</ar><jp>Nice job!</jp><cn>Nice job!</cn></textItem><textItem identifier="lb_Tutorial_HowToPlay"><en_us>How to Play</en_us><en_uk>How to Play</en_uk><nl>Spelregels</nl><fr>Instructions</fr><de>Anleitung</de><es>Cómo jugar</es><br>Como Jogar</br><pt>Como jogar</pt><it>Come giocare</it><se>Spelregler</se><pl>Jak grać</pl><ru>Как играть</ru><id>Cara Main</id><ar>How to Play</ar><jp>How to Play</jp><cn>How to Play</cn></textItem><textItem identifier="lb_Tutorial_Next"><en_us>Next</en_us><en_uk>Next</en_uk><nl>Volgende</nl><fr>Suivant</fr><de>Weiter</de><es>Siguiente</es><br>Seguinte</br><pt>Seguinte</pt><it>Avanti</it><se>Nästa</se><pl>Dalej</pl><ru>Дальше</ru><id>Berikutnya</id><ar>Next</ar><jp>Next</jp><cn>Next</cn></textItem><textItem identifier="lb_Tutorial_Prev"><en_us>Back</en_us><en_uk>Back</en_uk><nl>Terug</nl><fr>Retour</fr><de>Zurück</de><es>Atrás</es><br>Anterior</br><pt>Retroceder</pt><it>Indietro</it><se>Bakåt</se><pl>Powrót</pl><ru>Назад</ru><id>Kembali</id><ar>Back</ar><jp>Back</jp><cn>Back</cn></textItem><textItem identifier="lb_Tutorial_Start"><en_us>Start</en_us><en_uk>Start</en_uk><nl>Starten</nl><fr>Jouer</fr><de>Start</de><es>Iniciar</es><br>Começar</br><pt>Começar</pt><it>Avvia</it><se>Starta</se><pl>Start</pl><ru>Играть</ru><id>Mulai</id><ar>Start</ar><jp>Start</jp><cn>Start</cn></textItem><textItem identifier="lb_Tutorial_Sugar"><en_us>Sugar</en_us><en_uk>Sugar</en_uk><nl>Suiker</nl><fr>Sucre</fr><de>Zucker</de><es>Azúcar</es><br>Açúcar</br><pt>Açúcar</pt><it>Zucchero</it><se>Socker</se><pl>Cukier</pl><ru>Сахар</ru><id>Gula</id><ar>Sugar</ar><jp>Sugar</jp><cn>Sugar</cn></textItem><textItem identifier="lb_Tutorial_Tutorial0"><en_us>Your job is to serve customers their coffee orders! Let's give it a try, and prepare a Robusta with chocolate.</en_us><en_uk>Your job is to serve customers their coffee orders! Let's give it a try, and prepare a Robusta with chocolate.</en_uk><nl>Je taak is om klanten hun koffiebestelling te geven. Probeer het eens! Maak een Robusta met chocolade.</nl><fr>Ton boulot, c'est de servir aux clients le café qu'ils te demandent ! Faisons un essai : prépare un robusta avec du chocolat.</fr><de>Deine Aufgabe ist es, den Kunden ihre Kaffeebestellungen zu servieren! Lass es uns einmal probieren und einen Robusta-Kaffee mit Schokolade zubereiten.</de><es>¡Tu trabajo consiste en servir a los clientes sus pedidos de café! Vamos a probar a preparar un Robusta con chocolate.</es><br>Seu trabalho é servir o café que os clientes pedem! Vamos tentar, prepare um Robusta com chocolate.</br><pt>O teu trabalho é servir os pedidos de café dos clientes! Vamos experimentar e preparar um Robusta com chocolate.</pt><it>Il tuo lavoro consiste nel servire le ordinazioni del caffè ai clienti! Facciamo una prova e prepara una Robusta con cioccolata.</it><se>Ditt jobb är att servera kundernas kaffebeställningar! Prova nu genom att göra en robusta med choklad.</se><pl>Twoim zadaniem jest podawać klientom kawę zgodnie z zamówieniem! Spróbuj przygotować robustę z czekoladą.</pl><ru>Твоя задача – обслуживать клиентов, подавая им кофе! Давай для начала приготовим "Robusta" с шоколадом.</ru><id>Tugasmu adalah melayani pesanan kopi pelanggan! Mari kita coba, dan buatlah kopi Robusta dengan cokelat.</id><ar>Your job is to serve customers their coffee orders! Let's give it a try, and prepare a Robusta with chocolate.</ar><jp>Your job is to serve customers their coffee orders! Let's give it a try, and prepare a Robusta with chocolate.</jp><cn>Your job is to serve customers their coffee orders! Let's give it a try, and prepare a Robusta with chocolate.</cn></textItem><textItem identifier="lb_Tutorial_Tutorial1"><en_us>Click the rack to grab a cup.</en_us><en_uk>Click the rack to grab a cup.</en_uk><nl>Klik op het rek om een kopje te pakken.</nl><fr>Clique sur l'étagère pour prendre une tasse.</fr><de>Klicke das Regal an, um eine Tasse zu holen.</de><es>Haz clic en el estante para coger una taza. </es><br>Clique na estante para pegar uma xícara.</br><pt>Clica na prateleira para pegares numa chávena.</pt><it>Clicca sullo scaffale per prendere una tazza.</it><se>Klicka på hyllan för att ta en kopp.</se><pl>Kliknij na stojak, aby wziąć filiżankę.</pl><ru>Щелкни по полке, чтобы взять чашку.</ru><id>Klik rak untuk mengambil gelas.</id><ar>Click the rack to grab a cup.</ar><jp>Click the rack to grab a cup.</jp><cn>Click the rack to grab a cup.</cn></textItem><textItem identifier="lb_Tutorial_Tutorial2"><en_us>Then click on the correct jar. In this case, it's the Robusta.</en_us><en_uk>Then click on the correct jar. In this case, it's the Robusta.</en_uk><nl>Klik dan op de juiste bus; in dit geval de Robusta.</nl><fr>Puis clique sur le bon pot. Dans le cas où nous sommes, c'est le robusta.</fr><de>Klicke dann das richtige Glas an. In diesem Fall das Glas mit dem Robusta-Kaffee.</de><es>Después haz clic en el tarro correcto. En este caso, es el de Robusta. </es><br>Depois, clique na jarra correta. Neste caso, é a Robusta.</br><pt>Depois clica no frasco certo. Neste caso, é o frasco de Robusta.</pt><it>Poi clicca sul barattolo giusto. In questo caso è quello con l'etichetta Robusta.</it><se>Klicka sedan på rätt burk. I det här fallet ''robusta''.</se><pl>Teraz kliknij na właściwy słoik. W tym przypadku chodzi o robustę.</pl><ru>Затем щелкни по нужной банке. Сейчас нам нужна "Robusta".</ru><id>Lalu klik stoples yang benar. Dalam kasus ini, stoples Robusta.</id><ar>Then click on the correct jar. In this case, it's the Robusta.</ar><jp>Then click on the correct jar. In this case, it's the Robusta.</jp><cn>Then click on the correct jar. In this case, it's the Robusta.</cn></textItem><textItem identifier="lb_Tutorial_Tutorial3"><en_us>Click on the extra ingredient to add it. In this case, it's chocolate.</en_us><en_uk>Click on the extra ingredient to add it. In this case, it's chocolate.</en_uk><nl>Klik om het extra ingrediënt toe te voegen; in dit geval chocolade.</nl><fr>Clique sur l'ingrédient supplémentaire pour l'ajouter. Cette fois, c'est le chocolat.</fr><de>Klicke die zusätzliche Zutat an, um sie hinzuzugeben. In diesem Fall ist das Schokolade.</de><es>Haz clic en el ingrediente extra para añadirlo. En este caso, es el chocolate.</es><br>Clique no ingrediente extra para adicioná-lo. Neste caso, é o chocolate.</br><pt>Clica no ingrediente adicional para o juntares. Neste caso, é chocolate.</pt><it>Clicca sull'ingrediente extra per aggiungerlo. In questo caso è la cioccolata.</it><se>Klicka på extraingrediensen för att lägga till den. I det här fallet ''choklad''. </se><pl>Kliknij na dodatkowy składnik, aby go użyć. W tym przypadku jest to czekolada.</pl><ru>Щелкни, чтобы добавить дополнительный ингредиент. Сейчас нам нужен шоколад.</ru><id>Klik bahan ekstra untuk menambahkannya. Dalam kasus ini, cokelat.</id><ar>Click on the extra ingredient to add it. In this case, it's chocolate.</ar><jp>Click on the extra ingredient to add it. In this case, it's chocolate.</jp><cn>Click on the extra ingredient to add it. In this case, it's chocolate.</cn></textItem><textItem identifier="lb_Tutorial_Tutorial4"><en_us>Click on the teapot to add water to the cup.</en_us><en_uk>Click on the teapot to add water to the cup.</en_uk><nl>Klik op de theepot om water in het kopje te doen.</nl><fr>Clique sur la carafe d'eau pour ajouter de l'eau dans la tasse.</fr><de>Klicke den Teekessel an, um Wasser in die Tasse zu gießen.</de><es>Haz clic en la tetera para añadirle agua a la taza.</es><br>Clique na chaleira para colocar água na xícara.</br><pt>Clica no bule para juntares água à chávena.</pt><it>Clicca sulla teiera per aggiungere acqua.</it><se>Klicka på tekannan för att hälla vatten i koppen.</se><pl>Kliknij na dzbanek i nalej wody do filiżanki.</pl><ru>Щелкни по чайнику, чтобы добавить в чашку воды.</ru><id>Klik poci untuk menuangkan air ke gelas.</id><ar>Click on the teapot to add water to the cup.</ar><jp>Click on the teapot to add water to the cup.</jp><cn>Click on the teapot to add water to the cup.</cn></textItem><textItem identifier="lb_Tutorial_Tutorial5"><en_us>Click the coffee cup and stir the order to perfection!</en_us><en_uk>Click the coffee cup and stir the order to perfection!</en_uk><nl>Klik op het kopje en roer tot je bestelling helemaal perfect is!</nl><fr>Clique sur la tasse à café et mélange le tout pour que ça soit parfait !</fr><de>Klicke die Kaffeetasse an, um den Kaffee zum Abschluss umzurühren!</de><es>¡Haz clic en la taza para remover el café y entregarlo perfecto!</es><br>Clique na xícara de café e mexa até ficar perfeito!</br><pt>Clica na chávena de café e mexe até ficar perfeito!</pt><it>Clicca sulla tazzina da caffè e mescola l'ordinazione alla perfezione!</it><se>Klicka på kaffekoppen för att röra om tills det är perfekt!</se><pl>Kliknij na filiżankę z kawą i dobrze pomieszaj!</pl><ru>Щелкни по чашке, чтобы размешать кофе.</ru><id>Klik gelas kopi dan aduk pesanan hingga sempurna!</id><ar>Click the coffee cup and stir the order to perfection!</ar><jp>Click the coffee cup and stir the order to perfection!</jp><cn>Click the coffee cup and stir the order to perfection!</cn></textItem><textItem identifier="lb_Tutorial_Tutorial6"><en_us>Don't worry about making mistakes! If you want to throw an order away, just click on the trash can.</en_us><en_uk>Don't worry about making mistakes! If you want to throw an order away, just click on the bin.</en_uk><nl>Fouten maken is menselijk! Klik gewoon op de vuilnisbak om iets weg te gooien.</nl><fr>Ne t'en fais pas si tu fais des erreurs : tu peux te débarrasser d'une commande en cliquant simplement sur la poubelle.</fr><de>Und wenn du einmal einen Fehler machst - nicht schlimm! Wenn du eine Bestellung wegwerfen möchtest, klicke einfach den Mülleimer an.</de><es>¡No te preocupes si cometes errores! Si quieres deshacerte de un pedido, tan sólo tienes que hacer clic en la papelera.</es><br>Não se preocupe em cometer erros! Se quiser jogar fora um pedido errado, é só clicar na lixeira.</br><pt>Não te preocupes com erros! Se quiseres deitar fora o pedido, clica na lata de lixo.</pt><it>Non preoccuparti se fai errori! Se vuoi buttare via un'ordinazione devi solo cliccare sulla pattumiera.</it><se>Oroa dig inte för att göra fel! Klicka bara på soptunnan om du vill kasta bort en beställning.</se><pl>Nie przejmuj się pomyłkami! Jeśli chcesz wyrzucić zamówienie, kliknij na kosz na śmieci.</pl><ru>Не бойся ошибок. Если заказ был испорчен, просто щелкни по урне.</ru><id>Jangan cemas kamu keliru! Kalau kamu mau membuang pesanan, klik saja tempat sampah.</id><ar>Don't worry about making mistakes! If you want to throw an order away, just click on the trash can.</ar><jp>Don't worry about making mistakes! If you want to throw an order away, just click on the trash can.</jp><cn>Don't worry about making mistakes! If you want to throw an order away, just click on the trash can.</cn></textItem><textItem identifier="lb_Tutorial_Tutorial7"><en_us>Click the customer whose order you've prepared.</en_us><en_uk>Click the customer whose order you have prepared.</en_uk><nl>Klik op de klant voor wie je de bestelling gemaakt hebt.</nl><fr>Clique sur le client dont tu as préparé la commande.</fr><de>Klicke den Kunden an, dessen Bestellung du zubereitet hast.</de><es>Haz clic en el cliente cuyo pedido has preparado.</es><br>Clique no cliente cujo pedido você preparou.</br><pt>Clica no cliente cujo pedido preparaste.</pt><it>Clicca sul cliente al quale hai preparato l'ordinazione.</it><se>Klicka på kunden vars beställning du gjort.</se><pl>Kliknij na klienta, którego zamówienie przygotowałeś.</pl><ru>Щелкни по клиенту, чей заказ приготовлен.</ru><id>Klik pelanggan yang pesannya sudah dibuat.</id><ar>Click the customer whose order you've prepared.</ar><jp>Click the customer whose order you've prepared.</jp><cn>Click the customer whose order you've prepared.</cn></textItem><textItem identifier="lb_Tutorial_Tutorial8"><en_us>Sometimes a customer ask for milk or sugar. Click on the extra item, then give it to the customer.</en_us><en_uk>Sometimes customers may ask for milk or sugar. Click on the extra item, and then give it to the customer.</en_uk><nl>Soms vraagt een klant om melk en suiker. Klik dan op de melk of suiker en geef het aan de klant.</nl><fr>Il arrive qu'un client demande du lait ou du sucre. Clique sur l'ingrédient supplémentaire puis donne-le au client.</fr><de>Manchmal fragen Kunden auch nach Milch oder Zucker. Klicke dann die gewünschte Zutat an, um sie dem Kunden zu geben.</de><es>A veces los clientes piden leche o azúcar. Haz clic en el ingrediente extra y luego dáselo al cliente.</es><br>Às vezes um cliente pede leite ou açúcar. Clique no item extra e o dê ao cliente.</br><pt>Por vezes um cliente pede leite ou açúcar. Clica no objecto adicional e depois dá-o ao cliente.</pt><it>A volte un cliente chiede del latte o dello zucchero. Clicca sull'ingrediente extra e poi portalo al cliente.</it><se>Ibland frågar en kund efter mjölk eller socker. Klicka på det och ge det sedan till kunden.</se><pl>Czasem klient prosi o mleko lub cukier. Kliknij na dodatkowy przedmiot, a następnie podaj go klientowi.</pl><ru>Иногда клиент хочет молока или сахара. Перетащи нужный предмет клиенту.</ru><id>Kadang pelanggan meminta susu atau gula. Klik hal ekstra itu untuk memberikannya ke pelanggan.</id><ar>Sometimes a customer ask for milk or sugar. Click on the extra item, then give it to the customer.</ar><jp>Sometimes a customer ask for milk or sugar. Click on the extra item, then give it to the customer.</jp><cn>Sometimes a customer ask for milk or sugar. Click on the extra item, then give it to the customer.</cn></textItem><textItem identifier="lb_pause"><en_us>Paused</en_us><en_uk>Paused</en_uk><nl>Gepauzeerd</nl><fr>En pause</fr><de>Angehalten</de><es>En pausa</es><br>Em pausa</br><pt>Em Pausa</pt><it>In pausa</it><se>Pausat</se><pl>Pauza</pl><ru>Пауза</ru><id>Dijeda</id><ar>Paused</ar><jp>Paused</jp><cn>Paused</cn></textItem><textItem identifier="btn_moregamesat"><en_us>More funny games at:</en_us><en_uk>More funny games at:</en_uk><nl>Meer grappige spelletjes op:</nl><fr>Plus de jeux rigolos sur :</fr><de>Mehr lustige Spiele auf:</de><es>Más juegos divertidos en:</es><br>Mais jogos divertidos em:</br><pt>Mais jogos divertidos em:</pt><it>Più giochi divertenti su:</it><se>Fler kul spel på:</se><pl>Więcej zabawnych gier na:</pl><ru>Другие смешные игры на</ru><id>Game kocak lainnya di:</id><ar>More funny games at:</ar><jp>ゲームを始める</jp><cn>开始游戏</cn></textItem></LocalisedText>
;
SpilGame.importXMLv2(xmlData);
trace("Language Data Succesfully included");
btn_moreGames.addEventListener(MouseEvent.CLICK, handle_btnMoreGames);
}
function __setProp___id32__GGGMoreGamesBtn_Layer1_0(){
try {
__id32_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id32_.text = "{btn_moregamesat}";
__id32_.textColor = 0;
__id32_.textSize = 12;
__id32_.bold = false;
__id32_.disableWordwrap = false;
__id32_.embedFonts = true;
__id32_.font = "Franklin Gothic Book";
__id32_.hAlign = "center";
__id32_.multiline = false;
__id32_.vAlign = "top";
__id32_.antiAliasType = "advanced";
__id32_.glowBlur = 3;
__id32_.glowColor = 0;
__id32_.useGlowFilter = false;
__id32_.glowQuality = 1;
__id32_.glowStrength = 5;
__id32_.gridFitType = "pixel";
__id32_.italic = false;
__id32_.selectable = false;
__id32_.underline = false;
try {
__id32_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package Skeleton_fla
Section 20
//LABELPAUSE_267 (Skeleton_fla.LABELPAUSE_267)
package Skeleton_fla {
import flash.xml.*;
import flash.display.*;
import flash.text.*;
import flash.events.*;
import spill.localisation.*;
import flash.geom.*;
import flash.media.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import flash.utils.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
public dynamic class LABELPAUSE_267 extends MovieClip {
public var __id44_:LocalizedTextField;
public function LABELPAUSE_267(){
__setProp___id44__LABELPAUSE_Layer1_0();
}
function __setProp___id44__LABELPAUSE_Layer1_0(){
try {
__id44_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id44_.text = "{lb_pause}";
__id44_.textColor = 16711937;
__id44_.textSize = 100;
__id44_.bold = false;
__id44_.disableWordwrap = false;
__id44_.embedFonts = true;
__id44_.font = "Casual";
__id44_.hAlign = "center";
__id44_.multiline = false;
__id44_.vAlign = "middle";
__id44_.antiAliasType = "advanced";
__id44_.glowBlur = 3;
__id44_.glowColor = 0;
__id44_.useGlowFilter = false;
__id44_.glowQuality = 1;
__id44_.glowStrength = 5;
__id44_.gridFitType = "pixel";
__id44_.italic = false;
__id44_.selectable = false;
__id44_.underline = false;
try {
__id44_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package Skeleton_fla
Section 21
//lb_Cangkir_Coffee_372 (Skeleton_fla.lb_Cangkir_Coffee_372)
package Skeleton_fla {
import flash.xml.*;
import flash.display.*;
import flash.text.*;
import flash.events.*;
import spill.localisation.*;
import flash.geom.*;
import flash.media.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import flash.utils.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
public dynamic class lb_Cangkir_Coffee_372 extends MovieClip {
public var __id31_:LocalizedTextField;
public function lb_Cangkir_Coffee_372(){
__setProp___id31__lb_Cangkir_Coffee_Layer1_0();
}
function __setProp___id31__lb_Cangkir_Coffee_Layer1_0(){
try {
__id31_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id31_.text = "{lb_Cangkir_Coffee}";
__id31_.textColor = 11302206;
__id31_.textSize = 100;
__id31_.bold = false;
__id31_.disableWordwrap = false;
__id31_.embedFonts = true;
__id31_.font = "Blackjack";
__id31_.hAlign = "center";
__id31_.multiline = false;
__id31_.vAlign = "middle";
__id31_.antiAliasType = "advanced";
__id31_.glowBlur = 3;
__id31_.glowColor = 0;
__id31_.useGlowFilter = false;
__id31_.glowQuality = 1;
__id31_.glowStrength = 5;
__id31_.gridFitType = "pixel";
__id31_.italic = false;
__id31_.selectable = false;
__id31_.underline = false;
try {
__id31_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package Skeleton_fla
Section 22
//lb_Coffee_Arabica_373 (Skeleton_fla.lb_Coffee_Arabica_373)
package Skeleton_fla {
import flash.xml.*;
import flash.display.*;
import flash.text.*;
import flash.events.*;
import spill.localisation.*;
import flash.geom.*;
import flash.media.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import flash.utils.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
public dynamic class lb_Coffee_Arabica_373 extends MovieClip {
public var __id30_:LocalizedTextField;
public function lb_Coffee_Arabica_373(){
__setProp___id30__lb_Coffee_Arabica_Layer1_0();
}
function __setProp___id30__lb_Coffee_Arabica_Layer1_0(){
try {
__id30_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id30_.text = "{lb_Coffee_Arabica}";
__id30_.textColor = 0xFFFFFF;
__id30_.textSize = 100;
__id30_.bold = false;
__id30_.disableWordwrap = false;
__id30_.embedFonts = true;
__id30_.font = "Blackjack";
__id30_.hAlign = "center";
__id30_.multiline = false;
__id30_.vAlign = "middle";
__id30_.antiAliasType = "advanced";
__id30_.glowBlur = 3;
__id30_.glowColor = 0;
__id30_.useGlowFilter = false;
__id30_.glowQuality = 1;
__id30_.glowStrength = 5;
__id30_.gridFitType = "pixel";
__id30_.italic = false;
__id30_.selectable = false;
__id30_.underline = false;
try {
__id30_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package Skeleton_fla
Section 23
//lb_Coffee_ByCaffeLover_291 (Skeleton_fla.lb_Coffee_ByCaffeLover_291)
package Skeleton_fla {
import flash.xml.*;
import flash.display.*;
import flash.text.*;
import flash.events.*;
import spill.localisation.*;
import flash.geom.*;
import flash.media.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import flash.utils.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
public dynamic class lb_Coffee_ByCaffeLover_291 extends MovieClip {
public var __id40_:LocalizedTextField;
public function lb_Coffee_ByCaffeLover_291(){
__setProp___id40__lb_Coffee_ByCaffeLover_Layer1_0();
}
function __setProp___id40__lb_Coffee_ByCaffeLover_Layer1_0(){
try {
__id40_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id40_.text = "{lb_Coffee_ByCaffeLover}";
__id40_.textColor = 16756655;
__id40_.textSize = 100;
__id40_.bold = false;
__id40_.disableWordwrap = false;
__id40_.embedFonts = true;
__id40_.font = "Blackjack";
__id40_.hAlign = "center";
__id40_.multiline = false;
__id40_.vAlign = "middle";
__id40_.antiAliasType = "advanced";
__id40_.glowBlur = 3;
__id40_.glowColor = 0;
__id40_.useGlowFilter = false;
__id40_.glowQuality = 1;
__id40_.glowStrength = 5;
__id40_.gridFitType = "pixel";
__id40_.italic = false;
__id40_.selectable = false;
__id40_.underline = false;
try {
__id40_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package Skeleton_fla
Section 24
//lb_Coffee_Chocolate_300 (Skeleton_fla.lb_Coffee_Chocolate_300)
package Skeleton_fla {
import flash.xml.*;
import flash.display.*;
import flash.text.*;
import flash.events.*;
import spill.localisation.*;
import flash.geom.*;
import flash.media.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import flash.utils.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
public dynamic class lb_Coffee_Chocolate_300 extends MovieClip {
public var __id37_:LocalizedTextField;
public function lb_Coffee_Chocolate_300(){
__setProp___id37__lb_Coffee_Chocolate_Layer1_0();
}
function __setProp___id37__lb_Coffee_Chocolate_Layer1_0(){
try {
__id37_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id37_.text = "{lb_Coffee_Chocolate}";
__id37_.textColor = 3941397;
__id37_.textSize = 100;
__id37_.bold = false;
__id37_.disableWordwrap = false;
__id37_.embedFonts = true;
__id37_.font = "Blackjack";
__id37_.hAlign = "center";
__id37_.multiline = false;
__id37_.vAlign = "middle";
__id37_.antiAliasType = "advanced";
__id37_.glowBlur = 3;
__id37_.glowColor = 0;
__id37_.useGlowFilter = false;
__id37_.glowQuality = 1;
__id37_.glowStrength = 5;
__id37_.gridFitType = "pixel";
__id37_.italic = false;
__id37_.selectable = false;
__id37_.underline = false;
try {
__id37_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package Skeleton_fla
Section 25
//lb_Coffee_Cinnamon_297 (Skeleton_fla.lb_Coffee_Cinnamon_297)
package Skeleton_fla {
import flash.xml.*;
import flash.display.*;
import flash.text.*;
import flash.events.*;
import spill.localisation.*;
import flash.geom.*;
import flash.media.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import flash.utils.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
public dynamic class lb_Coffee_Cinnamon_297 extends MovieClip {
public var __id38_:LocalizedTextField;
public function lb_Coffee_Cinnamon_297(){
__setProp___id38__lb_Coffee_Cinnamon_Layer1_0();
}
function __setProp___id38__lb_Coffee_Cinnamon_Layer1_0(){
try {
__id38_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id38_.text = "{lb_Coffee_Cinnamon}";
__id38_.textColor = 8406546;
__id38_.textSize = 100;
__id38_.bold = false;
__id38_.disableWordwrap = false;
__id38_.embedFonts = true;
__id38_.font = "Blackjack";
__id38_.hAlign = "center";
__id38_.multiline = false;
__id38_.vAlign = "middle";
__id38_.antiAliasType = "advanced";
__id38_.glowBlur = 3;
__id38_.glowColor = 0;
__id38_.useGlowFilter = false;
__id38_.glowQuality = 1;
__id38_.glowStrength = 5;
__id38_.gridFitType = "pixel";
__id38_.italic = false;
__id38_.selectable = false;
__id38_.underline = false;
try {
__id38_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package Skeleton_fla
Section 26
//lb_Coffee_Coffee_150 (Skeleton_fla.lb_Coffee_Coffee_150)
package Skeleton_fla {
import flash.xml.*;
import flash.display.*;
import flash.text.*;
import flash.events.*;
import spill.localisation.*;
import flash.geom.*;
import flash.media.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import flash.utils.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
public dynamic class lb_Coffee_Coffee_150 extends MovieClip {
public var __id54_:LocalizedTextField;
public function lb_Coffee_Coffee_150(){
__setProp___id54__lb_Coffee_Coffee_Layer1_0();
}
function __setProp___id54__lb_Coffee_Coffee_Layer1_0(){
try {
__id54_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id54_.text = "{lb_Coffee_Coffee}";
__id54_.textColor = 10246681;
__id54_.textSize = 100;
__id54_.bold = false;
__id54_.disableWordwrap = false;
__id54_.embedFonts = true;
__id54_.font = "Blackjack";
__id54_.hAlign = "center";
__id54_.multiline = false;
__id54_.vAlign = "middle";
__id54_.antiAliasType = "advanced";
__id54_.glowBlur = 3;
__id54_.glowColor = 0;
__id54_.useGlowFilter = false;
__id54_.glowQuality = 1;
__id54_.glowStrength = 5;
__id54_.gridFitType = "pixel";
__id54_.italic = false;
__id54_.selectable = false;
__id54_.underline = false;
try {
__id54_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package Skeleton_fla
Section 27
//lb_Coffee_Liquer_290 (Skeleton_fla.lb_Coffee_Liquer_290)
package Skeleton_fla {
import flash.xml.*;
import flash.display.*;
import flash.text.*;
import flash.events.*;
import spill.localisation.*;
import flash.geom.*;
import flash.media.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import flash.utils.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
public dynamic class lb_Coffee_Liquer_290 extends MovieClip {
public var __id41_:LocalizedTextField;
public function lb_Coffee_Liquer_290(){
__setProp___id41__lb_Coffee_Liquer_Layer1_0();
}
function __setProp___id41__lb_Coffee_Liquer_Layer1_0(){
try {
__id41_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id41_.text = "{lb_Coffee_Liquer}";
__id41_.textColor = 8406546;
__id41_.textSize = 100;
__id41_.bold = false;
__id41_.disableWordwrap = false;
__id41_.embedFonts = true;
__id41_.font = "Blackjack";
__id41_.hAlign = "center";
__id41_.multiline = false;
__id41_.vAlign = "middle";
__id41_.antiAliasType = "advanced";
__id41_.glowBlur = 3;
__id41_.glowColor = 0;
__id41_.useGlowFilter = false;
__id41_.glowQuality = 1;
__id41_.glowStrength = 5;
__id41_.gridFitType = "pixel";
__id41_.italic = false;
__id41_.selectable = false;
__id41_.underline = false;
try {
__id41_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package Skeleton_fla
Section 28
//lb_Coffee_Robusta_374 (Skeleton_fla.lb_Coffee_Robusta_374)
package Skeleton_fla {
import flash.xml.*;
import flash.display.*;
import flash.text.*;
import flash.events.*;
import spill.localisation.*;
import flash.geom.*;
import flash.media.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import flash.utils.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
public dynamic class lb_Coffee_Robusta_374 extends MovieClip {
public var __id29_:LocalizedTextField;
public function lb_Coffee_Robusta_374(){
__setProp___id29__lb_Coffee_Robusta_Layer1_0();
}
function __setProp___id29__lb_Coffee_Robusta_Layer1_0(){
try {
__id29_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id29_.text = "{lb_Coffee_Robusta}";
__id29_.textColor = 0xFFFFFF;
__id29_.textSize = 100;
__id29_.bold = false;
__id29_.disableWordwrap = false;
__id29_.embedFonts = true;
__id29_.font = "Blackjack";
__id29_.hAlign = "center";
__id29_.multiline = false;
__id29_.vAlign = "middle";
__id29_.antiAliasType = "advanced";
__id29_.glowBlur = 3;
__id29_.glowColor = 0;
__id29_.useGlowFilter = false;
__id29_.glowQuality = 1;
__id29_.glowStrength = 5;
__id29_.gridFitType = "pixel";
__id29_.italic = false;
__id29_.selectable = false;
__id29_.underline = false;
try {
__id29_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package Skeleton_fla
Section 29
//lb_Coffee_Tea_294 (Skeleton_fla.lb_Coffee_Tea_294)
package Skeleton_fla {
import flash.xml.*;
import flash.display.*;
import flash.text.*;
import flash.events.*;
import spill.localisation.*;
import flash.geom.*;
import flash.media.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import flash.utils.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
public dynamic class lb_Coffee_Tea_294 extends MovieClip {
public var __id39_:LocalizedTextField;
public function lb_Coffee_Tea_294(){
__setProp___id39__lb_Coffee_Tea_Layer1_0();
}
function __setProp___id39__lb_Coffee_Tea_Layer1_0(){
try {
__id39_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id39_.text = "{lb_Coffee_Tea}";
__id39_.textColor = 8406546;
__id39_.textSize = 100;
__id39_.bold = false;
__id39_.disableWordwrap = false;
__id39_.embedFonts = true;
__id39_.font = "Blackjack";
__id39_.hAlign = "center";
__id39_.multiline = false;
__id39_.vAlign = "middle";
__id39_.antiAliasType = "advanced";
__id39_.glowBlur = 3;
__id39_.glowColor = 0;
__id39_.useGlowFilter = false;
__id39_.glowQuality = 1;
__id39_.glowStrength = 5;
__id39_.gridFitType = "pixel";
__id39_.italic = false;
__id39_.selectable = false;
__id39_.underline = false;
try {
__id39_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package Skeleton_fla
Section 30
//lb_Coffee_Trash_108 (Skeleton_fla.lb_Coffee_Trash_108)
package Skeleton_fla {
import flash.xml.*;
import flash.display.*;
import flash.text.*;
import flash.events.*;
import spill.localisation.*;
import flash.geom.*;
import flash.media.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import flash.utils.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
public dynamic class lb_Coffee_Trash_108 extends MovieClip {
public var __id63_:LocalizedTextField;
public function lb_Coffee_Trash_108(){
__setProp___id63__lb_Coffee_Trash_Layer1_0();
}
function __setProp___id63__lb_Coffee_Trash_Layer1_0(){
try {
__id63_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id63_.text = "{lb_Coffee_Trash}";
__id63_.textColor = 12760475;
__id63_.textSize = 100;
__id63_.bold = false;
__id63_.disableWordwrap = false;
__id63_.embedFonts = true;
__id63_.font = "Blackjack";
__id63_.hAlign = "center";
__id63_.multiline = true;
__id63_.vAlign = "middle";
__id63_.antiAliasType = "advanced";
__id63_.glowBlur = 3;
__id63_.glowColor = 0;
__id63_.useGlowFilter = false;
__id63_.glowQuality = 1;
__id63_.glowStrength = 5;
__id63_.gridFitType = "pixel";
__id63_.italic = false;
__id63_.selectable = false;
__id63_.underline = false;
try {
__id63_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package Skeleton_fla
Section 31
//lb_Congratulation_Congratulation_375 (Skeleton_fla.lb_Congratulation_Congratulation_375)
package Skeleton_fla {
import flash.xml.*;
import flash.display.*;
import flash.text.*;
import flash.events.*;
import spill.localisation.*;
import flash.geom.*;
import flash.media.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import flash.utils.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
public dynamic class lb_Congratulation_Congratulation_375 extends MovieClip {
public var __id28_:LocalizedTextField;
public function lb_Congratulation_Congratulation_375(){
__setProp___id28__lb_Congratulation_Congratulation_Layer1_0();
}
function __setProp___id28__lb_Congratulation_Congratulation_Layer1_0(){
try {
__id28_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id28_.text = "{lb_Congratulation_Congratulation}";
__id28_.textColor = 6371604;
__id28_.textSize = 100;
__id28_.bold = false;
__id28_.disableWordwrap = false;
__id28_.embedFonts = true;
__id28_.font = "Blackjack";
__id28_.hAlign = "center";
__id28_.multiline = false;
__id28_.vAlign = "middle";
__id28_.antiAliasType = "advanced";
__id28_.glowBlur = 3;
__id28_.glowColor = 0;
__id28_.useGlowFilter = false;
__id28_.glowQuality = 1;
__id28_.glowStrength = 5;
__id28_.gridFitType = "pixel";
__id28_.italic = false;
__id28_.selectable = false;
__id28_.underline = false;
try {
__id28_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package Skeleton_fla
Section 32
//lb_Congratulation_Content_376 (Skeleton_fla.lb_Congratulation_Content_376)
package Skeleton_fla {
import flash.xml.*;
import flash.display.*;
import flash.text.*;
import flash.events.*;
import spill.localisation.*;
import flash.geom.*;
import flash.media.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import flash.utils.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
public dynamic class lb_Congratulation_Content_376 extends MovieClip {
public var __id27_:LocalizedTextField;
public function lb_Congratulation_Content_376(){
__setProp___id27__lb_Congratulation_Content_Layer1_0();
}
function __setProp___id27__lb_Congratulation_Content_Layer1_0(){
try {
__id27_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id27_.text = "{lb_Congratulation_Content}";
__id27_.textColor = 16773308;
__id27_.textSize = 100;
__id27_.bold = false;
__id27_.disableWordwrap = false;
__id27_.embedFonts = true;
__id27_.font = "Blackjack";
__id27_.hAlign = "center";
__id27_.multiline = false;
__id27_.vAlign = "middle";
__id27_.antiAliasType = "advanced";
__id27_.glowBlur = 3;
__id27_.glowColor = 0;
__id27_.useGlowFilter = false;
__id27_.glowQuality = 1;
__id27_.glowStrength = 5;
__id27_.gridFitType = "pixel";
__id27_.italic = false;
__id27_.selectable = false;
__id27_.underline = false;
try {
__id27_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package Skeleton_fla
Section 33
//lb_Congratulation_MainMenu_377 (Skeleton_fla.lb_Congratulation_MainMenu_377)
package Skeleton_fla {
import flash.xml.*;
import flash.display.*;
import flash.text.*;
import flash.events.*;
import spill.localisation.*;
import flash.geom.*;
import flash.media.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import flash.utils.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
public dynamic class lb_Congratulation_MainMenu_377 extends MovieClip {
public var __id26_:LocalizedTextField;
public function lb_Congratulation_MainMenu_377(){
__setProp___id26__lb_Congratulation_MainMenu_Layer1_0();
}
function __setProp___id26__lb_Congratulation_MainMenu_Layer1_0(){
try {
__id26_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id26_.text = "{lb_Congratulation_MainMenu}";
__id26_.textColor = 16773308;
__id26_.textSize = 100;
__id26_.bold = false;
__id26_.disableWordwrap = false;
__id26_.embedFonts = true;
__id26_.font = "Blackjack";
__id26_.hAlign = "center";
__id26_.multiline = false;
__id26_.vAlign = "middle";
__id26_.antiAliasType = "advanced";
__id26_.glowBlur = 3;
__id26_.glowColor = 0;
__id26_.useGlowFilter = false;
__id26_.glowQuality = 1;
__id26_.glowStrength = 5;
__id26_.gridFitType = "pixel";
__id26_.italic = false;
__id26_.selectable = false;
__id26_.underline = false;
try {
__id26_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package Skeleton_fla
Section 34
//lb_Congratulation_PlayAgain_378 (Skeleton_fla.lb_Congratulation_PlayAgain_378)
package Skeleton_fla {
import flash.xml.*;
import flash.display.*;
import flash.text.*;
import flash.events.*;
import spill.localisation.*;
import flash.geom.*;
import flash.media.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import flash.utils.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
public dynamic class lb_Congratulation_PlayAgain_378 extends MovieClip {
public var __id25_:LocalizedTextField;
public function lb_Congratulation_PlayAgain_378(){
__setProp___id25__lb_Congratulation_PlayAgain_Layer1_0();
}
function __setProp___id25__lb_Congratulation_PlayAgain_Layer1_0(){
try {
__id25_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id25_.text = "{lb_Congratulation_PlayAgain}";
__id25_.textColor = 16773308;
__id25_.textSize = 100;
__id25_.bold = false;
__id25_.disableWordwrap = false;
__id25_.embedFonts = true;
__id25_.font = "Blackjack";
__id25_.hAlign = "center";
__id25_.multiline = false;
__id25_.vAlign = "middle";
__id25_.antiAliasType = "advanced";
__id25_.glowBlur = 3;
__id25_.glowColor = 0;
__id25_.useGlowFilter = false;
__id25_.glowQuality = 1;
__id25_.glowStrength = 5;
__id25_.gridFitType = "pixel";
__id25_.italic = false;
__id25_.selectable = false;
__id25_.underline = false;
try {
__id25_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package Skeleton_fla
Section 35
//lb_Game_Arabica_379 (Skeleton_fla.lb_Game_Arabica_379)
package Skeleton_fla {
import flash.xml.*;
import flash.display.*;
import flash.text.*;
import flash.events.*;
import spill.localisation.*;
import flash.geom.*;
import flash.media.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import flash.utils.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
public dynamic class lb_Game_Arabica_379 extends MovieClip {
public var __id24_:LocalizedTextField;
public function lb_Game_Arabica_379(){
__setProp___id24__lb_Game_Arabica_Layer1_0();
}
function __setProp___id24__lb_Game_Arabica_Layer1_0(){
try {
__id24_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id24_.text = "{lb_Game_Arabica}";
__id24_.textColor = 0xFFFFFF;
__id24_.textSize = 100;
__id24_.bold = false;
__id24_.disableWordwrap = false;
__id24_.embedFonts = true;
__id24_.font = "Blackjack";
__id24_.hAlign = "center";
__id24_.multiline = false;
__id24_.vAlign = "middle";
__id24_.antiAliasType = "advanced";
__id24_.glowBlur = 3;
__id24_.glowColor = 0;
__id24_.useGlowFilter = false;
__id24_.glowQuality = 1;
__id24_.glowStrength = 5;
__id24_.gridFitType = "pixel";
__id24_.italic = false;
__id24_.selectable = false;
__id24_.underline = false;
try {
__id24_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package Skeleton_fla
Section 36
//lb_Game_Cinnamon_380 (Skeleton_fla.lb_Game_Cinnamon_380)
package Skeleton_fla {
import flash.xml.*;
import flash.display.*;
import flash.text.*;
import flash.events.*;
import spill.localisation.*;
import flash.geom.*;
import flash.media.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import flash.utils.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
public dynamic class lb_Game_Cinnamon_380 extends MovieClip {
public var __id23_:LocalizedTextField;
public function lb_Game_Cinnamon_380(){
__setProp___id23__lb_Game_Cinnamon_Layer1_0();
}
function __setProp___id23__lb_Game_Cinnamon_Layer1_0(){
try {
__id23_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id23_.text = "{lb_Game_Cinnamon}";
__id23_.textColor = 8406546;
__id23_.textSize = 100;
__id23_.bold = false;
__id23_.disableWordwrap = false;
__id23_.embedFonts = true;
__id23_.font = "Blackjack";
__id23_.hAlign = "center";
__id23_.multiline = false;
__id23_.vAlign = "middle";
__id23_.antiAliasType = "advanced";
__id23_.glowBlur = 3;
__id23_.glowColor = 0;
__id23_.useGlowFilter = false;
__id23_.glowQuality = 1;
__id23_.glowStrength = 5;
__id23_.gridFitType = "pixel";
__id23_.italic = false;
__id23_.selectable = false;
__id23_.underline = false;
try {
__id23_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package Skeleton_fla
Section 37
//lb_Game_Civet_381 (Skeleton_fla.lb_Game_Civet_381)
package Skeleton_fla {
import flash.xml.*;
import flash.display.*;
import flash.text.*;
import flash.events.*;
import spill.localisation.*;
import flash.geom.*;
import flash.media.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import flash.utils.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
public dynamic class lb_Game_Civet_381 extends MovieClip {
public var __id22_:LocalizedTextField;
public function lb_Game_Civet_381(){
__setProp___id22__lb_Game_Civet_Layer1_0();
}
function __setProp___id22__lb_Game_Civet_Layer1_0(){
try {
__id22_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id22_.text = "{lb_Game_Civet}";
__id22_.textColor = 0xFFFFFF;
__id22_.textSize = 100;
__id22_.bold = false;
__id22_.disableWordwrap = false;
__id22_.embedFonts = true;
__id22_.font = "Blackjack";
__id22_.hAlign = "center";
__id22_.multiline = false;
__id22_.vAlign = "middle";
__id22_.antiAliasType = "advanced";
__id22_.glowBlur = 3;
__id22_.glowColor = 0;
__id22_.useGlowFilter = false;
__id22_.glowQuality = 1;
__id22_.glowStrength = 5;
__id22_.gridFitType = "pixel";
__id22_.italic = false;
__id22_.selectable = false;
__id22_.underline = false;
try {
__id22_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package Skeleton_fla
Section 38
//lb_Game_Goal_253 (Skeleton_fla.lb_Game_Goal_253)
package Skeleton_fla {
import flash.xml.*;
import flash.display.*;
import flash.text.*;
import flash.events.*;
import spill.localisation.*;
import flash.geom.*;
import flash.media.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import flash.utils.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
public dynamic class lb_Game_Goal_253 extends MovieClip {
public var __id45_:LocalizedTextField;
public function lb_Game_Goal_253(){
__setProp___id45__lb_Game_Goal_Layer1_0();
}
function __setProp___id45__lb_Game_Goal_Layer1_0(){
try {
__id45_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id45_.text = "{lb_Game_Goal}";
__id45_.textColor = 65793;
__id45_.textSize = 100;
__id45_.bold = false;
__id45_.disableWordwrap = false;
__id45_.embedFonts = true;
__id45_.font = "Blackjack";
__id45_.hAlign = "center";
__id45_.multiline = false;
__id45_.vAlign = "middle";
__id45_.antiAliasType = "advanced";
__id45_.glowBlur = 3;
__id45_.glowColor = 0;
__id45_.useGlowFilter = false;
__id45_.glowQuality = 1;
__id45_.glowStrength = 5;
__id45_.gridFitType = "pixel";
__id45_.italic = false;
__id45_.selectable = false;
__id45_.underline = false;
try {
__id45_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package Skeleton_fla
Section 39
//lb_Game_Liquer_382 (Skeleton_fla.lb_Game_Liquer_382)
package Skeleton_fla {
import flash.xml.*;
import flash.display.*;
import flash.text.*;
import flash.events.*;
import spill.localisation.*;
import flash.geom.*;
import flash.media.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import flash.utils.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
public dynamic class lb_Game_Liquer_382 extends MovieClip {
public var __id21_:LocalizedTextField;
public function lb_Game_Liquer_382(){
__setProp___id21__lb_Game_Liquer_Layer1_0();
}
function __setProp___id21__lb_Game_Liquer_Layer1_0(){
try {
__id21_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id21_.text = "{lb_Game_Liquer}";
__id21_.textColor = 8406546;
__id21_.textSize = 100;
__id21_.bold = false;
__id21_.disableWordwrap = false;
__id21_.embedFonts = true;
__id21_.font = "Blackjack";
__id21_.hAlign = "center";
__id21_.multiline = false;
__id21_.vAlign = "middle";
__id21_.antiAliasType = "advanced";
__id21_.glowBlur = 3;
__id21_.glowColor = 0;
__id21_.useGlowFilter = false;
__id21_.glowQuality = 1;
__id21_.glowStrength = 5;
__id21_.gridFitType = "pixel";
__id21_.italic = false;
__id21_.selectable = false;
__id21_.underline = false;
try {
__id21_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package Skeleton_fla
Section 40
//lb_Game_Milk_97 (Skeleton_fla.lb_Game_Milk_97)
package Skeleton_fla {
import flash.xml.*;
import flash.display.*;
import flash.text.*;
import flash.events.*;
import spill.localisation.*;
import flash.geom.*;
import flash.media.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import flash.utils.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
public dynamic class lb_Game_Milk_97 extends MovieClip {
public var __id65_:LocalizedTextField;
public function lb_Game_Milk_97(){
__setProp___id65__lb_Game_Milk_Layer1_0();
}
function __setProp___id65__lb_Game_Milk_Layer1_0(){
try {
__id65_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id65_.text = "{lb_Game_Milk}";
__id65_.textColor = 9133628;
__id65_.textSize = 100;
__id65_.bold = false;
__id65_.disableWordwrap = false;
__id65_.embedFonts = true;
__id65_.font = "Blackjack";
__id65_.hAlign = "center";
__id65_.multiline = false;
__id65_.vAlign = "middle";
__id65_.antiAliasType = "advanced";
__id65_.glowBlur = 3;
__id65_.glowColor = 0;
__id65_.useGlowFilter = false;
__id65_.glowQuality = 1;
__id65_.glowStrength = 5;
__id65_.gridFitType = "pixel";
__id65_.italic = false;
__id65_.selectable = false;
__id65_.underline = false;
try {
__id65_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package Skeleton_fla
Section 41
//lb_Game_Score_252 (Skeleton_fla.lb_Game_Score_252)
package Skeleton_fla {
import flash.xml.*;
import flash.display.*;
import flash.text.*;
import flash.events.*;
import spill.localisation.*;
import flash.geom.*;
import flash.media.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import flash.utils.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
public dynamic class lb_Game_Score_252 extends MovieClip {
public var __id46_:LocalizedTextField;
public function lb_Game_Score_252(){
__setProp___id46__lb_Game_Score_Layer1_0();
}
function __setProp___id46__lb_Game_Score_Layer1_0(){
try {
__id46_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id46_.text = "{lb_Game_Score}";
__id46_.textColor = 12525358;
__id46_.textSize = 100;
__id46_.bold = false;
__id46_.disableWordwrap = false;
__id46_.embedFonts = true;
__id46_.font = "Blackjack";
__id46_.hAlign = "center";
__id46_.multiline = false;
__id46_.vAlign = "middle";
__id46_.antiAliasType = "advanced";
__id46_.glowBlur = 3;
__id46_.glowColor = 0;
__id46_.useGlowFilter = false;
__id46_.glowQuality = 1;
__id46_.glowStrength = 5;
__id46_.gridFitType = "pixel";
__id46_.italic = false;
__id46_.selectable = false;
__id46_.underline = false;
try {
__id46_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package Skeleton_fla
Section 42
//lb_Game_SpecialMix_383 (Skeleton_fla.lb_Game_SpecialMix_383)
package Skeleton_fla {
import flash.xml.*;
import flash.display.*;
import flash.text.*;
import flash.events.*;
import spill.localisation.*;
import flash.geom.*;
import flash.media.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import flash.utils.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
public dynamic class lb_Game_SpecialMix_383 extends MovieClip {
public var __id20_:LocalizedTextField;
public function lb_Game_SpecialMix_383(){
__setProp___id20__lb_Game_SpecialMix_Layer1_0();
}
function __setProp___id20__lb_Game_SpecialMix_Layer1_0(){
try {
__id20_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id20_.text = "{lb_Game_SpecialMix}";
__id20_.textColor = 0xFFFFFF;
__id20_.textSize = 100;
__id20_.bold = false;
__id20_.disableWordwrap = false;
__id20_.embedFonts = true;
__id20_.font = "Blackjack";
__id20_.hAlign = "center";
__id20_.multiline = false;
__id20_.vAlign = "middle";
__id20_.antiAliasType = "advanced";
__id20_.glowBlur = 3;
__id20_.glowColor = 0;
__id20_.useGlowFilter = false;
__id20_.glowQuality = 1;
__id20_.glowStrength = 5;
__id20_.gridFitType = "pixel";
__id20_.italic = false;
__id20_.selectable = false;
__id20_.underline = false;
try {
__id20_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package Skeleton_fla
Section 43
//lb_Game_Tea_384 (Skeleton_fla.lb_Game_Tea_384)
package Skeleton_fla {
import flash.xml.*;
import flash.display.*;
import flash.text.*;
import flash.events.*;
import spill.localisation.*;
import flash.geom.*;
import flash.media.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import flash.utils.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
public dynamic class lb_Game_Tea_384 extends MovieClip {
public var __id19_:LocalizedTextField;
public function lb_Game_Tea_384(){
__setProp___id19__lb_Game_Tea_Layer1_0();
}
function __setProp___id19__lb_Game_Tea_Layer1_0(){
try {
__id19_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id19_.text = "{lb_Game_Tea}";
__id19_.textColor = 8406546;
__id19_.textSize = 100;
__id19_.bold = false;
__id19_.disableWordwrap = false;
__id19_.embedFonts = true;
__id19_.font = "Blackjack";
__id19_.hAlign = "center";
__id19_.multiline = false;
__id19_.vAlign = "middle";
__id19_.antiAliasType = "advanced";
__id19_.glowBlur = 3;
__id19_.glowColor = 0;
__id19_.useGlowFilter = false;
__id19_.glowQuality = 1;
__id19_.glowStrength = 5;
__id19_.gridFitType = "pixel";
__id19_.italic = false;
__id19_.selectable = false;
__id19_.underline = false;
try {
__id19_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package Skeleton_fla
Section 44
//lb_Game_Tissue_98 (Skeleton_fla.lb_Game_Tissue_98)
package Skeleton_fla {
import flash.xml.*;
import flash.display.*;
import flash.text.*;
import flash.events.*;
import spill.localisation.*;
import flash.geom.*;
import flash.media.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import flash.utils.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
public dynamic class lb_Game_Tissue_98 extends MovieClip {
public var __id64_:LocalizedTextField;
public function lb_Game_Tissue_98(){
__setProp___id64__lb_Game_Tissue_Layer1_0();
}
function __setProp___id64__lb_Game_Tissue_Layer1_0(){
try {
__id64_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id64_.text = "{lb_Game_Tissue}";
__id64_.textColor = 0xFFFFFF;
__id64_.textSize = 100;
__id64_.bold = false;
__id64_.disableWordwrap = false;
__id64_.embedFonts = true;
__id64_.font = "Blackjack";
__id64_.hAlign = "center";
__id64_.multiline = false;
__id64_.vAlign = "middle";
__id64_.antiAliasType = "advanced";
__id64_.glowBlur = 3;
__id64_.glowColor = 0;
__id64_.useGlowFilter = false;
__id64_.glowQuality = 1;
__id64_.glowStrength = 5;
__id64_.gridFitType = "pixel";
__id64_.italic = false;
__id64_.selectable = false;
__id64_.underline = false;
try {
__id64_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package Skeleton_fla
Section 45
//lb_GameOver_Content_385 (Skeleton_fla.lb_GameOver_Content_385)
package Skeleton_fla {
import flash.xml.*;
import flash.display.*;
import flash.text.*;
import flash.events.*;
import spill.localisation.*;
import flash.geom.*;
import flash.media.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import flash.utils.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
public dynamic class lb_GameOver_Content_385 extends MovieClip {
public var __id18_:LocalizedTextField;
public function lb_GameOver_Content_385(){
__setProp___id18__lb_GameOver_Content_Layer1_0();
}
function __setProp___id18__lb_GameOver_Content_Layer1_0(){
try {
__id18_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id18_.text = "{lb_GameOver_Content}";
__id18_.textColor = 16773308;
__id18_.textSize = 100;
__id18_.bold = false;
__id18_.disableWordwrap = false;
__id18_.embedFonts = true;
__id18_.font = "Blackjack";
__id18_.hAlign = "center";
__id18_.multiline = true;
__id18_.vAlign = "middle";
__id18_.antiAliasType = "advanced";
__id18_.glowBlur = 3;
__id18_.glowColor = 0;
__id18_.useGlowFilter = false;
__id18_.glowQuality = 1;
__id18_.glowStrength = 5;
__id18_.gridFitType = "pixel";
__id18_.italic = false;
__id18_.selectable = false;
__id18_.underline = false;
try {
__id18_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package Skeleton_fla
Section 46
//lb_GameOver_GameOver_386 (Skeleton_fla.lb_GameOver_GameOver_386)
package Skeleton_fla {
import flash.xml.*;
import flash.display.*;
import flash.text.*;
import flash.events.*;
import spill.localisation.*;
import flash.geom.*;
import flash.media.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import flash.utils.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
public dynamic class lb_GameOver_GameOver_386 extends MovieClip {
public var __id17_:LocalizedTextField;
public function lb_GameOver_GameOver_386(){
__setProp___id17__lb_GameOver_GameOver_Layer1_0();
}
function __setProp___id17__lb_GameOver_GameOver_Layer1_0(){
try {
__id17_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id17_.text = "{lb_GameOver_GameOver}";
__id17_.textColor = 6371604;
__id17_.textSize = 100;
__id17_.bold = false;
__id17_.disableWordwrap = false;
__id17_.embedFonts = true;
__id17_.font = "Blackjack";
__id17_.hAlign = "center";
__id17_.multiline = false;
__id17_.vAlign = "middle";
__id17_.antiAliasType = "advanced";
__id17_.glowBlur = 3;
__id17_.glowColor = 0;
__id17_.useGlowFilter = false;
__id17_.glowQuality = 1;
__id17_.glowStrength = 5;
__id17_.gridFitType = "pixel";
__id17_.italic = false;
__id17_.selectable = false;
__id17_.underline = false;
try {
__id17_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package Skeleton_fla
Section 47
//lb_GameOver_TryAgain_387 (Skeleton_fla.lb_GameOver_TryAgain_387)
package Skeleton_fla {
import flash.xml.*;
import flash.display.*;
import flash.text.*;
import flash.events.*;
import spill.localisation.*;
import flash.geom.*;
import flash.media.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import flash.utils.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
public dynamic class lb_GameOver_TryAgain_387 extends MovieClip {
public var __id16_:LocalizedTextField;
public function lb_GameOver_TryAgain_387(){
__setProp___id16__lb_GameOver_TryAgain_Layer1_0();
}
function __setProp___id16__lb_GameOver_TryAgain_Layer1_0(){
try {
__id16_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id16_.text = "{lb_GameOver_TryAgain}";
__id16_.textColor = 16773308;
__id16_.textSize = 100;
__id16_.bold = false;
__id16_.disableWordwrap = false;
__id16_.embedFonts = true;
__id16_.font = "Blackjack";
__id16_.hAlign = "center";
__id16_.multiline = false;
__id16_.vAlign = "middle";
__id16_.antiAliasType = "advanced";
__id16_.glowBlur = 3;
__id16_.glowColor = 0;
__id16_.useGlowFilter = false;
__id16_.glowQuality = 1;
__id16_.glowStrength = 5;
__id16_.gridFitType = "pixel";
__id16_.italic = false;
__id16_.selectable = false;
__id16_.underline = false;
try {
__id16_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package Skeleton_fla
Section 48
//lb_MainMenu_NightShiftCoffee_284 (Skeleton_fla.lb_MainMenu_NightShiftCoffee_284)
package Skeleton_fla {
import flash.xml.*;
import flash.display.*;
import flash.text.*;
import flash.events.*;
import spill.localisation.*;
import flash.geom.*;
import flash.media.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import flash.utils.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
public dynamic class lb_MainMenu_NightShiftCoffee_284 extends MovieClip {
public var __id42_:LocalizedTextField;
public function lb_MainMenu_NightShiftCoffee_284(){
__setProp___id42__lb_MainMenu_NightShiftCoffee_Layer1_0();
}
function __setProp___id42__lb_MainMenu_NightShiftCoffee_Layer1_0(){
try {
__id42_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id42_.text = "{lb_MainMenu_NightShiftCoffee}";
__id42_.textColor = 10246681;
__id42_.textSize = 100;
__id42_.bold = false;
__id42_.disableWordwrap = false;
__id42_.embedFonts = true;
__id42_.font = "Blackjack";
__id42_.hAlign = "center";
__id42_.multiline = false;
__id42_.vAlign = "middle";
__id42_.antiAliasType = "advanced";
__id42_.glowBlur = 3;
__id42_.glowColor = 0;
__id42_.useGlowFilter = false;
__id42_.glowQuality = 1;
__id42_.glowStrength = 5;
__id42_.gridFitType = "pixel";
__id42_.italic = false;
__id42_.selectable = false;
__id42_.underline = false;
try {
__id42_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package Skeleton_fla
Section 49
//lb_MainMenu_Start_317 (Skeleton_fla.lb_MainMenu_Start_317)
package Skeleton_fla {
import flash.xml.*;
import flash.display.*;
import flash.text.*;
import flash.events.*;
import spill.localisation.*;
import flash.geom.*;
import flash.media.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import flash.utils.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
public dynamic class lb_MainMenu_Start_317 extends MovieClip {
public var __id33_:LocalizedTextField;
public function lb_MainMenu_Start_317(){
__setProp___id33__lb_MainMenu_Start_Layer1_0();
}
function __setProp___id33__lb_MainMenu_Start_Layer1_0(){
try {
__id33_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id33_.text = "{lb_MainMenu_Start}";
__id33_.textColor = 0xFFFFFF;
__id33_.textSize = 100;
__id33_.bold = false;
__id33_.disableWordwrap = false;
__id33_.embedFonts = true;
__id33_.font = "Blackjack";
__id33_.hAlign = "center";
__id33_.multiline = false;
__id33_.vAlign = "middle";
__id33_.antiAliasType = "advanced";
__id33_.glowBlur = 3;
__id33_.glowColor = 0;
__id33_.useGlowFilter = false;
__id33_.glowQuality = 1;
__id33_.glowStrength = 5;
__id33_.gridFitType = "pixel";
__id33_.italic = false;
__id33_.selectable = false;
__id33_.underline = false;
try {
__id33_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package Skeleton_fla
Section 50
//lb_NextLevel_NextLevel_388 (Skeleton_fla.lb_NextLevel_NextLevel_388)
package Skeleton_fla {
import flash.xml.*;
import flash.display.*;
import flash.text.*;
import flash.events.*;
import spill.localisation.*;
import flash.geom.*;
import flash.media.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import flash.utils.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
public dynamic class lb_NextLevel_NextLevel_388 extends MovieClip {
public var __id15_:LocalizedTextField;
public function lb_NextLevel_NextLevel_388(){
__setProp___id15__lb_NextLevel_NextLevel_Layer1_0();
}
function __setProp___id15__lb_NextLevel_NextLevel_Layer1_0(){
try {
__id15_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id15_.text = "{lb_NextLevel_NextLevel}";
__id15_.textColor = 16773308;
__id15_.textSize = 100;
__id15_.bold = false;
__id15_.disableWordwrap = false;
__id15_.embedFonts = true;
__id15_.font = "Blackjack";
__id15_.hAlign = "center";
__id15_.multiline = false;
__id15_.vAlign = "middle";
__id15_.antiAliasType = "advanced";
__id15_.glowBlur = 3;
__id15_.glowColor = 0;
__id15_.useGlowFilter = false;
__id15_.glowQuality = 1;
__id15_.glowStrength = 5;
__id15_.gridFitType = "pixel";
__id15_.italic = false;
__id15_.selectable = false;
__id15_.underline = false;
try {
__id15_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package Skeleton_fla
Section 51
//lb_NextLevel_NiceJob_389 (Skeleton_fla.lb_NextLevel_NiceJob_389)
package Skeleton_fla {
import flash.xml.*;
import flash.display.*;
import flash.text.*;
import flash.events.*;
import spill.localisation.*;
import flash.geom.*;
import flash.media.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import flash.utils.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
public dynamic class lb_NextLevel_NiceJob_389 extends MovieClip {
public var __id14_:LocalizedTextField;
public function lb_NextLevel_NiceJob_389(){
__setProp___id14__lb_NextLevel_NiceJob_Layer1_0();
}
function __setProp___id14__lb_NextLevel_NiceJob_Layer1_0(){
try {
__id14_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id14_.text = "{lb_NextLevel_NiceJob}";
__id14_.textColor = 6371604;
__id14_.textSize = 100;
__id14_.bold = false;
__id14_.disableWordwrap = false;
__id14_.embedFonts = true;
__id14_.font = "Blackjack";
__id14_.hAlign = "center";
__id14_.multiline = false;
__id14_.vAlign = "middle";
__id14_.antiAliasType = "advanced";
__id14_.glowBlur = 3;
__id14_.glowColor = 0;
__id14_.useGlowFilter = false;
__id14_.glowQuality = 1;
__id14_.glowStrength = 5;
__id14_.gridFitType = "pixel";
__id14_.italic = false;
__id14_.selectable = false;
__id14_.underline = false;
try {
__id14_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package Skeleton_fla
Section 52
//lb_Tutorial_HowToPlay_390 (Skeleton_fla.lb_Tutorial_HowToPlay_390)
package Skeleton_fla {
import flash.xml.*;
import flash.display.*;
import flash.text.*;
import flash.events.*;
import spill.localisation.*;
import flash.geom.*;
import flash.media.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import flash.utils.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
public dynamic class lb_Tutorial_HowToPlay_390 extends MovieClip {
public var __id13_:LocalizedTextField;
public function lb_Tutorial_HowToPlay_390(){
__setProp___id13__lb_Tutorial_HowToPlay_Layer1_0();
}
function __setProp___id13__lb_Tutorial_HowToPlay_Layer1_0(){
try {
__id13_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id13_.text = "{lb_Tutorial_HowToPlay}";
__id13_.textColor = 6371604;
__id13_.textSize = 100;
__id13_.bold = false;
__id13_.disableWordwrap = false;
__id13_.embedFonts = true;
__id13_.font = "Blackjack";
__id13_.hAlign = "center";
__id13_.multiline = false;
__id13_.vAlign = "middle";
__id13_.antiAliasType = "advanced";
__id13_.glowBlur = 3;
__id13_.glowColor = 0;
__id13_.useGlowFilter = false;
__id13_.glowQuality = 1;
__id13_.glowStrength = 5;
__id13_.gridFitType = "pixel";
__id13_.italic = false;
__id13_.selectable = false;
__id13_.underline = false;
try {
__id13_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package Skeleton_fla
Section 53
//lb_Tutorial_Milk_391 (Skeleton_fla.lb_Tutorial_Milk_391)
package Skeleton_fla {
import flash.xml.*;
import flash.display.*;
import flash.text.*;
import flash.events.*;
import spill.localisation.*;
import flash.geom.*;
import flash.media.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import flash.utils.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
public dynamic class lb_Tutorial_Milk_391 extends MovieClip {
public var __id12_:LocalizedTextField;
public function lb_Tutorial_Milk_391(){
__setProp___id12__lb_Tutorial_Milk_Layer1_0();
}
function __setProp___id12__lb_Tutorial_Milk_Layer1_0(){
try {
__id12_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id12_.text = "{lb_Game_Milk}";
__id12_.textColor = 9133628;
__id12_.textSize = 100;
__id12_.bold = false;
__id12_.disableWordwrap = false;
__id12_.embedFonts = true;
__id12_.font = "Blackjack";
__id12_.hAlign = "center";
__id12_.multiline = false;
__id12_.vAlign = "middle";
__id12_.antiAliasType = "advanced";
__id12_.glowBlur = 3;
__id12_.glowColor = 0;
__id12_.useGlowFilter = false;
__id12_.glowQuality = 1;
__id12_.glowStrength = 5;
__id12_.gridFitType = "pixel";
__id12_.italic = false;
__id12_.selectable = false;
__id12_.underline = false;
try {
__id12_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package Skeleton_fla
Section 54
//lb_Tutorial_Next_392 (Skeleton_fla.lb_Tutorial_Next_392)
package Skeleton_fla {
import flash.xml.*;
import flash.display.*;
import flash.text.*;
import flash.events.*;
import spill.localisation.*;
import flash.geom.*;
import flash.media.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import flash.utils.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
public dynamic class lb_Tutorial_Next_392 extends MovieClip {
public var __id11_:LocalizedTextField;
public function lb_Tutorial_Next_392(){
__setProp___id11__lb_Tutorial_Next_Layer1_0();
}
function __setProp___id11__lb_Tutorial_Next_Layer1_0(){
try {
__id11_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id11_.text = "{lb_Tutorial_Next}";
__id11_.textColor = 0xFFFFFF;
__id11_.textSize = 100;
__id11_.bold = false;
__id11_.disableWordwrap = false;
__id11_.embedFonts = true;
__id11_.font = "Blackjack";
__id11_.hAlign = "center";
__id11_.multiline = false;
__id11_.vAlign = "middle";
__id11_.antiAliasType = "advanced";
__id11_.glowBlur = 3;
__id11_.glowColor = 0;
__id11_.useGlowFilter = false;
__id11_.glowQuality = 1;
__id11_.glowStrength = 5;
__id11_.gridFitType = "pixel";
__id11_.italic = false;
__id11_.selectable = false;
__id11_.underline = false;
try {
__id11_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package Skeleton_fla
Section 55
//lb_Tutorial_Prev_393 (Skeleton_fla.lb_Tutorial_Prev_393)
package Skeleton_fla {
import flash.xml.*;
import flash.display.*;
import flash.text.*;
import flash.events.*;
import spill.localisation.*;
import flash.geom.*;
import flash.media.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import flash.utils.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
public dynamic class lb_Tutorial_Prev_393 extends MovieClip {
public var __id10_:LocalizedTextField;
public function lb_Tutorial_Prev_393(){
__setProp___id10__lb_Tutorial_Prev_Layer1_0();
}
function __setProp___id10__lb_Tutorial_Prev_Layer1_0(){
try {
__id10_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id10_.text = "{lb_Tutorial_Prev}";
__id10_.textColor = 0xFFFFFF;
__id10_.textSize = 100;
__id10_.bold = false;
__id10_.disableWordwrap = false;
__id10_.embedFonts = true;
__id10_.font = "Blackjack";
__id10_.hAlign = "center";
__id10_.multiline = false;
__id10_.vAlign = "middle";
__id10_.antiAliasType = "advanced";
__id10_.glowBlur = 3;
__id10_.glowColor = 0;
__id10_.useGlowFilter = false;
__id10_.glowQuality = 1;
__id10_.glowStrength = 5;
__id10_.gridFitType = "pixel";
__id10_.italic = false;
__id10_.selectable = false;
__id10_.underline = false;
try {
__id10_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package Skeleton_fla
Section 56
//lb_Tutorial_Start_395 (Skeleton_fla.lb_Tutorial_Start_395)
package Skeleton_fla {
import flash.xml.*;
import flash.display.*;
import flash.text.*;
import flash.events.*;
import spill.localisation.*;
import flash.geom.*;
import flash.media.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import flash.utils.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
public dynamic class lb_Tutorial_Start_395 extends MovieClip {
public var __id9_:LocalizedTextField;
public function lb_Tutorial_Start_395(){
__setProp___id9__lb_Tutorial_Start_Layer1_0();
}
function __setProp___id9__lb_Tutorial_Start_Layer1_0(){
try {
__id9_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id9_.text = "{lb_Tutorial_Start}";
__id9_.textColor = 0xFFFFFF;
__id9_.textSize = 100;
__id9_.bold = false;
__id9_.disableWordwrap = false;
__id9_.embedFonts = true;
__id9_.font = "Blackjack";
__id9_.hAlign = "center";
__id9_.multiline = false;
__id9_.vAlign = "middle";
__id9_.antiAliasType = "advanced";
__id9_.glowBlur = 3;
__id9_.glowColor = 0;
__id9_.useGlowFilter = false;
__id9_.glowQuality = 1;
__id9_.glowStrength = 5;
__id9_.gridFitType = "pixel";
__id9_.italic = false;
__id9_.selectable = false;
__id9_.underline = false;
try {
__id9_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package Skeleton_fla
Section 57
//lb_Tutorial_Sugar_90 (Skeleton_fla.lb_Tutorial_Sugar_90)
package Skeleton_fla {
import flash.xml.*;
import flash.display.*;
import flash.text.*;
import flash.events.*;
import spill.localisation.*;
import flash.geom.*;
import flash.media.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import flash.utils.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
public dynamic class lb_Tutorial_Sugar_90 extends MovieClip {
public var __id66_:LocalizedTextField;
public function lb_Tutorial_Sugar_90(){
__setProp___id66__lb_Tutorial_Sugar_Layer1_0();
}
function __setProp___id66__lb_Tutorial_Sugar_Layer1_0(){
try {
__id66_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id66_.text = "{lb_Tutorial_Sugar}";
__id66_.textColor = 9133628;
__id66_.textSize = 100;
__id66_.bold = false;
__id66_.disableWordwrap = false;
__id66_.embedFonts = true;
__id66_.font = "Blackjack";
__id66_.hAlign = "center";
__id66_.multiline = false;
__id66_.vAlign = "middle";
__id66_.antiAliasType = "advanced";
__id66_.glowBlur = 3;
__id66_.glowColor = 0;
__id66_.useGlowFilter = false;
__id66_.glowQuality = 1;
__id66_.glowStrength = 5;
__id66_.gridFitType = "pixel";
__id66_.italic = false;
__id66_.selectable = false;
__id66_.underline = false;
try {
__id66_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package Skeleton_fla
Section 58
//lb_Tutorial_Tutorial0_396 (Skeleton_fla.lb_Tutorial_Tutorial0_396)
package Skeleton_fla {
import flash.xml.*;
import flash.display.*;
import flash.text.*;
import flash.events.*;
import spill.localisation.*;
import flash.geom.*;
import flash.media.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import flash.utils.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
public dynamic class lb_Tutorial_Tutorial0_396 extends MovieClip {
public var __id8_:LocalizedTextField;
public function lb_Tutorial_Tutorial0_396(){
__setProp___id8__lb_Tutorial_Tutorial0_Layer1_0();
}
function __setProp___id8__lb_Tutorial_Tutorial0_Layer1_0(){
try {
__id8_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id8_.text = "{lb_Tutorial_Tutorial0}";
__id8_.textColor = 0xFFFFFF;
__id8_.textSize = 100;
__id8_.bold = false;
__id8_.disableWordwrap = false;
__id8_.embedFonts = true;
__id8_.font = "Blackjack";
__id8_.hAlign = "center";
__id8_.multiline = true;
__id8_.vAlign = "middle";
__id8_.antiAliasType = "advanced";
__id8_.glowBlur = 5;
__id8_.glowColor = 0;
__id8_.useGlowFilter = true;
__id8_.glowQuality = 1;
__id8_.glowStrength = 5;
__id8_.gridFitType = "pixel";
__id8_.italic = false;
__id8_.selectable = false;
__id8_.underline = false;
try {
__id8_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package Skeleton_fla
Section 59
//lb_Tutorial_Tutorial1_397 (Skeleton_fla.lb_Tutorial_Tutorial1_397)
package Skeleton_fla {
import flash.xml.*;
import flash.display.*;
import flash.text.*;
import flash.events.*;
import spill.localisation.*;
import flash.geom.*;
import flash.media.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import flash.utils.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
public dynamic class lb_Tutorial_Tutorial1_397 extends MovieClip {
public var __id7_:LocalizedTextField;
public function lb_Tutorial_Tutorial1_397(){
__setProp___id7__lb_Tutorial_Tutorial1_Layer1_0();
}
function __setProp___id7__lb_Tutorial_Tutorial1_Layer1_0(){
try {
__id7_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id7_.text = "{lb_Tutorial_Tutorial1}";
__id7_.textColor = 0xFFFFFF;
__id7_.textSize = 100;
__id7_.bold = false;
__id7_.disableWordwrap = false;
__id7_.embedFonts = true;
__id7_.font = "Blackjack";
__id7_.hAlign = "center";
__id7_.multiline = true;
__id7_.vAlign = "middle";
__id7_.antiAliasType = "advanced";
__id7_.glowBlur = 5;
__id7_.glowColor = 0;
__id7_.useGlowFilter = true;
__id7_.glowQuality = 1;
__id7_.glowStrength = 5;
__id7_.gridFitType = "pixel";
__id7_.italic = false;
__id7_.selectable = false;
__id7_.underline = false;
try {
__id7_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package Skeleton_fla
Section 60
//lb_Tutorial_Tutorial2_398 (Skeleton_fla.lb_Tutorial_Tutorial2_398)
package Skeleton_fla {
import flash.xml.*;
import flash.display.*;
import flash.text.*;
import flash.events.*;
import spill.localisation.*;
import flash.geom.*;
import flash.media.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import flash.utils.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
public dynamic class lb_Tutorial_Tutorial2_398 extends MovieClip {
public var __id6_:LocalizedTextField;
public function lb_Tutorial_Tutorial2_398(){
__setProp___id6__lb_Tutorial_Tutorial2_Layer1_0();
}
function __setProp___id6__lb_Tutorial_Tutorial2_Layer1_0(){
try {
__id6_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id6_.text = "{lb_Tutorial_Tutorial2}";
__id6_.textColor = 0xFFFFFF;
__id6_.textSize = 100;
__id6_.bold = false;
__id6_.disableWordwrap = false;
__id6_.embedFonts = true;
__id6_.font = "Blackjack";
__id6_.hAlign = "center";
__id6_.multiline = true;
__id6_.vAlign = "middle";
__id6_.antiAliasType = "advanced";
__id6_.glowBlur = 5;
__id6_.glowColor = 0;
__id6_.useGlowFilter = true;
__id6_.glowQuality = 1;
__id6_.glowStrength = 5;
__id6_.gridFitType = "pixel";
__id6_.italic = false;
__id6_.selectable = false;
__id6_.underline = false;
try {
__id6_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package Skeleton_fla
Section 61
//lb_Tutorial_Tutorial3_399 (Skeleton_fla.lb_Tutorial_Tutorial3_399)
package Skeleton_fla {
import flash.xml.*;
import flash.display.*;
import flash.text.*;
import flash.events.*;
import spill.localisation.*;
import flash.geom.*;
import flash.media.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import flash.utils.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
public dynamic class lb_Tutorial_Tutorial3_399 extends MovieClip {
public var __id5_:LocalizedTextField;
public function lb_Tutorial_Tutorial3_399(){
__setProp___id5__lb_Tutorial_Tutorial3_Layer1_0();
}
function __setProp___id5__lb_Tutorial_Tutorial3_Layer1_0(){
try {
__id5_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id5_.text = "{lb_Tutorial_Tutorial3}";
__id5_.textColor = 0xFFFFFF;
__id5_.textSize = 100;
__id5_.bold = false;
__id5_.disableWordwrap = false;
__id5_.embedFonts = true;
__id5_.font = "Blackjack";
__id5_.hAlign = "center";
__id5_.multiline = true;
__id5_.vAlign = "middle";
__id5_.antiAliasType = "advanced";
__id5_.glowBlur = 5;
__id5_.glowColor = 0;
__id5_.useGlowFilter = true;
__id5_.glowQuality = 1;
__id5_.glowStrength = 5;
__id5_.gridFitType = "pixel";
__id5_.italic = false;
__id5_.selectable = false;
__id5_.underline = false;
try {
__id5_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package Skeleton_fla
Section 62
//lb_Tutorial_Tutorial4_400 (Skeleton_fla.lb_Tutorial_Tutorial4_400)
package Skeleton_fla {
import flash.xml.*;
import flash.display.*;
import flash.text.*;
import flash.events.*;
import spill.localisation.*;
import flash.geom.*;
import flash.media.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import flash.utils.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
public dynamic class lb_Tutorial_Tutorial4_400 extends MovieClip {
public var __id4_:LocalizedTextField;
public function lb_Tutorial_Tutorial4_400(){
__setProp___id4__lb_Tutorial_Tutorial4_Layer1_0();
}
function __setProp___id4__lb_Tutorial_Tutorial4_Layer1_0(){
try {
__id4_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id4_.text = "{lb_Tutorial_Tutorial4}";
__id4_.textColor = 0xFFFFFF;
__id4_.textSize = 100;
__id4_.bold = false;
__id4_.disableWordwrap = false;
__id4_.embedFonts = true;
__id4_.font = "Blackjack";
__id4_.hAlign = "center";
__id4_.multiline = true;
__id4_.vAlign = "middle";
__id4_.antiAliasType = "advanced";
__id4_.glowBlur = 5;
__id4_.glowColor = 0;
__id4_.useGlowFilter = true;
__id4_.glowQuality = 1;
__id4_.glowStrength = 5;
__id4_.gridFitType = "pixel";
__id4_.italic = false;
__id4_.selectable = false;
__id4_.underline = false;
try {
__id4_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package Skeleton_fla
Section 63
//lb_Tutorial_Tutorial5_401 (Skeleton_fla.lb_Tutorial_Tutorial5_401)
package Skeleton_fla {
import flash.xml.*;
import flash.display.*;
import flash.text.*;
import flash.events.*;
import spill.localisation.*;
import flash.geom.*;
import flash.media.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import flash.utils.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
public dynamic class lb_Tutorial_Tutorial5_401 extends MovieClip {
public var __id3_:LocalizedTextField;
public function lb_Tutorial_Tutorial5_401(){
__setProp___id3__lb_Tutorial_Tutorial5_Layer1_0();
}
function __setProp___id3__lb_Tutorial_Tutorial5_Layer1_0(){
try {
__id3_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id3_.text = "{lb_Tutorial_Tutorial5}";
__id3_.textColor = 0xFFFFFF;
__id3_.textSize = 100;
__id3_.bold = false;
__id3_.disableWordwrap = false;
__id3_.embedFonts = true;
__id3_.font = "Blackjack";
__id3_.hAlign = "center";
__id3_.multiline = true;
__id3_.vAlign = "middle";
__id3_.antiAliasType = "advanced";
__id3_.glowBlur = 5;
__id3_.glowColor = 0;
__id3_.useGlowFilter = true;
__id3_.glowQuality = 1;
__id3_.glowStrength = 5;
__id3_.gridFitType = "pixel";
__id3_.italic = false;
__id3_.selectable = false;
__id3_.underline = false;
try {
__id3_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package Skeleton_fla
Section 64
//lb_Tutorial_Tutorial6_402 (Skeleton_fla.lb_Tutorial_Tutorial6_402)
package Skeleton_fla {
import flash.xml.*;
import flash.display.*;
import flash.text.*;
import flash.events.*;
import spill.localisation.*;
import flash.geom.*;
import flash.media.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import flash.utils.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
public dynamic class lb_Tutorial_Tutorial6_402 extends MovieClip {
public var __id2_:LocalizedTextField;
public function lb_Tutorial_Tutorial6_402(){
__setProp___id2__lb_Tutorial_Tutorial6_Layer1_0();
}
function __setProp___id2__lb_Tutorial_Tutorial6_Layer1_0(){
try {
__id2_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id2_.text = "{lb_Tutorial_Tutorial6}";
__id2_.textColor = 0xFFFFFF;
__id2_.textSize = 100;
__id2_.bold = false;
__id2_.disableWordwrap = false;
__id2_.embedFonts = true;
__id2_.font = "Blackjack";
__id2_.hAlign = "center";
__id2_.multiline = true;
__id2_.vAlign = "middle";
__id2_.antiAliasType = "advanced";
__id2_.glowBlur = 5;
__id2_.glowColor = 0;
__id2_.useGlowFilter = true;
__id2_.glowQuality = 1;
__id2_.glowStrength = 5;
__id2_.gridFitType = "pixel";
__id2_.italic = false;
__id2_.selectable = false;
__id2_.underline = false;
try {
__id2_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package Skeleton_fla
Section 65
//lb_Tutorial_Tutorial7_403 (Skeleton_fla.lb_Tutorial_Tutorial7_403)
package Skeleton_fla {
import flash.xml.*;
import flash.display.*;
import flash.text.*;
import flash.events.*;
import spill.localisation.*;
import flash.geom.*;
import flash.media.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import flash.utils.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
public dynamic class lb_Tutorial_Tutorial7_403 extends MovieClip {
public var __id1_:LocalizedTextField;
public function lb_Tutorial_Tutorial7_403(){
__setProp___id1__lb_Tutorial_Tutorial7_Layer1_0();
}
function __setProp___id1__lb_Tutorial_Tutorial7_Layer1_0(){
try {
__id1_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id1_.text = "{lb_Tutorial_Tutorial7}";
__id1_.textColor = 0xFFFFFF;
__id1_.textSize = 100;
__id1_.bold = false;
__id1_.disableWordwrap = false;
__id1_.embedFonts = true;
__id1_.font = "Blackjack";
__id1_.hAlign = "center";
__id1_.multiline = true;
__id1_.vAlign = "middle";
__id1_.antiAliasType = "advanced";
__id1_.glowBlur = 5;
__id1_.glowColor = 0;
__id1_.useGlowFilter = true;
__id1_.glowQuality = 1;
__id1_.glowStrength = 5;
__id1_.gridFitType = "pixel";
__id1_.italic = false;
__id1_.selectable = false;
__id1_.underline = false;
try {
__id1_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package Skeleton_fla
Section 66
//lb_Tutorial_Tutorial8_404 (Skeleton_fla.lb_Tutorial_Tutorial8_404)
package Skeleton_fla {
import flash.xml.*;
import flash.display.*;
import flash.text.*;
import flash.events.*;
import spill.localisation.*;
import flash.geom.*;
import flash.media.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import flash.utils.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
public dynamic class lb_Tutorial_Tutorial8_404 extends MovieClip {
public var __id0_:LocalizedTextField;
public function lb_Tutorial_Tutorial8_404(){
__setProp___id0__lb_Tutorial_Tutorial8_Layer1_0();
}
function __setProp___id0__lb_Tutorial_Tutorial8_Layer1_0(){
try {
__id0_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id0_.text = "{lb_Tutorial_Tutorial8}";
__id0_.textColor = 0xFFFFFF;
__id0_.textSize = 100;
__id0_.bold = false;
__id0_.disableWordwrap = false;
__id0_.embedFonts = true;
__id0_.font = "Blackjack";
__id0_.hAlign = "center";
__id0_.multiline = true;
__id0_.vAlign = "middle";
__id0_.antiAliasType = "advanced";
__id0_.glowBlur = 5;
__id0_.glowColor = 0;
__id0_.useGlowFilter = true;
__id0_.glowQuality = 1;
__id0_.glowStrength = 5;
__id0_.gridFitType = "pixel";
__id0_.italic = false;
__id0_.selectable = false;
__id0_.underline = false;
try {
__id0_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package Skeleton_fla
Section 67
//MusicBtn_275 (Skeleton_fla.MusicBtn_275)
package Skeleton_fla {
import flash.xml.*;
import flash.display.*;
import flash.text.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import flash.utils.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
public dynamic class MusicBtn_275 extends MovieClip {
public function MusicBtn_275(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Skeleton_fla
Section 68
//QualityBtn_276 (Skeleton_fla.QualityBtn_276)
package Skeleton_fla {
import flash.xml.*;
import flash.display.*;
import flash.text.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import flash.utils.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
public dynamic class QualityBtn_276 extends MovieClip {
public function QualityBtn_276(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Skeleton_fla
Section 69
//SFXBtn_277 (Skeleton_fla.SFXBtn_277)
package Skeleton_fla {
import flash.xml.*;
import flash.display.*;
import flash.text.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import flash.utils.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
public dynamic class SFXBtn_277 extends MovieClip {
public function SFXBtn_277(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
function frame3(){
stop();
}
function frame4(){
stop();
}
}
}//package Skeleton_fla
Section 70
//TANGANMENUANGAIR_228 (Skeleton_fla.TANGANMENUANGAIR_228)
package Skeleton_fla {
import flash.xml.*;
import flash.display.*;
import flash.text.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import flash.utils.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
public dynamic class TANGANMENUANGAIR_228 extends MovieClip {
public function TANGANMENUANGAIR_228(){
addFrameScript(19, frame20);
}
function frame20(){
stop();
}
}
}//package Skeleton_fla
Section 71
//TANGANMENUANGKOPI_243 (Skeleton_fla.TANGANMENUANGKOPI_243)
package Skeleton_fla {
import flash.xml.*;
import flash.display.*;
import flash.text.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import flash.utils.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
public dynamic class TANGANMENUANGKOPI_243 extends MovieClip {
public function TANGANMENUANGKOPI_243(){
addFrameScript(19, frame20);
}
function frame20(){
stop();
}
}
}//package Skeleton_fla
Section 72
//Brand (spill.localisation.Brand)
package spill.localisation {
import flash.xml.*;
public class Brand {
public var domain:String;
public var emailPage:String;
public var name:String;
public var site_id:uint;
public var isExternal:Boolean;// = false
public var id:Number;
public var hostingDomain:String;// = ""
public var preferedLanguage:String;// = ""
public var moreLink:String;// = ""
public var hasSendToFriendLink:Boolean;// = true
public var emailLink:String;// = "game"
public var portalGroup:uint;
public var useGoogleAnalitics:Boolean;// = true
private static const topLevelDoubles:String = ((((((((((((((("ac.cn,ac.jp,ac.uk,ad.jp,adm.br,adv.br,agr.br," + "ah.cn,am.br,arq.br,art.br,asn.au,ato.br,av.tr,bel.tr,bio.br,biz.tr,bj.cn,bmd.br,") + "cim.br,cng.br,cnt.br,co.at,co.jp,co.uk,com.au,com.br,com.cn,com.eg,com.hk,com.mx,") + "com.ru,com.tr,com.tw,conf.au,cq.cn,csiro.au,dr.tr,ecn.br,edu.au,edu.br,edu.tr,") + "emu.id.au,eng.br,esp.br,etc.br,eti.br,eun.eg,far.br,fj.cn,fm.br,fnd.br,fot.br,") + "fst.br,g12.br,gb.com,gb.net,gd.cn,gen.tr,ggf.br,gob.mx,gov.au,gov.br,gov.cn,") + "gov.hk,gov.tr,gr.jp,gs.cn,gx.cn,gz.cn,ha.cn,hb.cn,he.cn,hi.cn,hk.cn,hl.cn,hn.cn,") + "id.au,idv.tw,imb.br,ind.br,inf.br,info.au,info.tr,jl.cn,jor.br,js.cn,jx.cn,k12.tr,") + "lel.br,ln.cn,ltd.uk,mat.br,me.uk,med.br,mil.br,mil.tr,mo.cn,mus.br,name.tr,ne.jp,") + "net.au,net.br,net.cn,net.eg,net.hk,net.lu,net.mx,net.ru,net.tr,net.tw,net.uk,") + "nm.cn,no.com,nom.br,not.br,ntr.br,nx.cn,odo.br,oop.br,or.at,or.jp,org.au,org.br,") + "org.cn,org.hk,org.lu,org.ru,org.tr,org.tw,org.uk,plc.uk,pol.tr,pp.ru,ppg.br,pro.br,") + "psc.br,psi.br,qh.cn,qsl.br,rec.br,sc.cn,sd.cn,se.com,se.net,sh.cn,slg.br,sn.cn,") + "srv.br,sx.cn,tel.tr,tj.cn,tmp.br,trd.br,tur.br,tv.br,tw.cn,uk.com,uk.net,vet.br,") + "wattle.id.au,web.tr,xj.cn,xz.cn,yn.cn,zj.cn,zlg.br,co.nr,co.nz,com.fr,com.ph,com.ar,") + "com.id,com.in");
private function get utm_campaign():String{
if (isExternal){
return (("utm_campaign=" + hostingDomain));
};
return ("");
}
public function exportXML():XML{
var _local3:XML;
var _local1:XML = <portal/>
;
_local1.@id = site_id;
_local1.@language = preferedLanguage;
_local1.@channel = portalGroup;
var _local2:XML = <domain/>
;
_local2.appendChild(new XMLNode(3, domain));
_local1.appendChild(_local2);
if (moreLink){
_local3 = <more_games_path/>
;
_local3.appendChild(new XMLNode(3, moreLink));
_local1.appendChild(_local3);
};
_local2 = <game_path/>
;
_local2.appendChild(new XMLNode(3, emailLink));
_local1.appendChild(_local2);
if (!useGoogleAnalitics){
_local1.attributes.noGoogleAnalitics = true;
};
if (!hasSendToFriendLink){
_local1.attributes.noSendToFriendLink = true;
};
return (_local1);
}
public function getPromotionLink(_arg1:String, _arg2:String, _arg3:Boolean, _arg4:String="", _arg5:String=""):String{
var _local6:String = ("http://" + domain);
_local6 = (_local6 + ((("/" + emailLink) + "/") + _arg2));
if (useGoogleAnalitics){
_local6 = (_local6 + ("?utm_medium=brandedgames_" + (_arg3) ? "external" : "internal"));
_local6 = (_local6 + ("&utm_campaign=" + _arg1));
_arg4 = stripSubDomain(_arg4);
trace(_arg4);
if (_arg4 == "localhost"){
_arg4 = "offline_play";
};
_local6 = (_local6 + ("&utm_source=" + _arg4));
if (((!((_arg5 == ""))) && (!((_arg5 == null))))){
_local6 = (_local6 + ("&utm_content=" + _arg5));
};
};
return (_local6);
}
private function get utm_source():String{
return (("utm_source=brandedgames_" + (isExternal) ? "external" : "internal"));
}
public function getMoreGamesLink(_arg1:String, _arg2:Boolean, _arg3:String="", _arg4:String=""):String{
var _local5:String = ("http://" + domain);
_local5 = (_local5 + ("/" + moreLink));
if (useGoogleAnalitics){
_local5 = (_local5 + ("?utm_medium=brandedgames_" + (_arg2) ? "external" : "internal"));
_local5 = (_local5 + ("&utm_campaign=" + _arg1));
_arg3 = stripSubDomain(_arg3);
if (_arg3 == "localhost"){
_arg3 = "offline_play";
};
_local5 = (_local5 + ("&utm_source=" + _arg3));
if (((!((_arg4 == ""))) && (!((_arg4 == null))))){
_local5 = (_local5 + ("&utm_content=" + _arg4));
};
};
return (_local5);
}
public function get backgroundColor():uint{
return (PortalGroup.backgroundColors[portalGroup]);
}
private function get utm_term():String{
return ("utm_term=");
}
public function importXML(_arg1:XMLNode):void{
}
public function getSendToFriendLink(_arg1:String, _arg2:String, _arg3:Boolean, _arg4:String=""):String{
if (!hasSendToFriendLink){
return (getMoreGamesLink(_arg1, _arg3));
};
var _local5:String = ("http://" + domain);
_local5 = (_local5 + ((("/" + emailLink) + "/") + _arg2));
if (useGoogleAnalitics){
_local5 = (_local5 + ("?utm_medium=brandedgames_" + (_arg3) ? "external" : "internal"));
_local5 = (_local5 + ("&utm_campaign=" + _arg1));
_arg4 = stripSubDomain(_arg4);
if (_arg4 == "localhost"){
_arg4 = "offline_play";
};
_local5 = (_local5 + ("&utm_source=" + _arg4));
_local5 = (_local5 + "&utm_content=send_to_friend");
};
return (_local5);
}
private static function stripSubDomain(_arg1:String):String{
if (!_arg1){
return ("");
};
var _local2:Array = _arg1.split(".");
if (_local2.length <= 2){
return (_arg1);
};
_local2 = _local2.reverse();
if (topLevelDoubles.indexOf((((_local2[1] + ".") + _local2[0]) + ",")) > 0){
return (((((_local2[2] + ".") + _local2[1]) + ".") + _local2[0]));
};
return (((_local2[1] + ".") + _local2[0]));
}
}
}//package spill.localisation
Section 73
//Branding (spill.localisation.Branding)
package spill.localisation {
import flash.display.*;
import flash.text.*;
public class Branding {
public static function traceAllBrands():void{
trace(outputAllBrands());
}
public static function outputAllBrands():String{
var _local3:Brand;
var _local1:Array = Brandings.getBrandsArray();
var _local2 = "";
for each (_local3 in _local1) {
_local2 = (_local2 + (_local3.getSendToFriendLink(gameName, emailPage, isExternal, embedDomain) + "\n"));
};
return (_local2);
}
private static function replaceFn():String{
var _local2:String = SpilGame.getString(arguments[1]);
if (((!(_local2)) || ((_local2 == "")))){
return ((("{" + arguments[1]) + "}"));
};
return (_local2);
}
public static function initTextField(_arg1:TextField):void{
var _local2:TextFormat;
trace(_arg1.text);
_arg1.text = _arg1.text.replace(/{([^{}]*)}/g, replaceFn);
trace(_arg1.text);
_arg1.embedFonts = currentLanguage.embedFonts;
if (currentLanguage.forceFont != ""){
_local2 = new TextFormat();
_local2.font = currentLanguage.forceFont;
_arg1.setTextFormat(_local2);
};
}
public static function Init(_arg1:String, _arg2:int, _arg3:String, _arg4:Sprite, _arg5:Boolean=false){
SpilGame.initialize(_arg1, _arg2, _arg3, _arg4, _arg5);
}
}
}//package spill.localisation
Section 74
//BrandingLogo (spill.localisation.BrandingLogo)
package spill.localisation {
import flash.display.*;
import flash.events.*;
public class BrandingLogo extends MovieClip {
public function BrandingLogo(){
addFrameScript(0, frame1);
super();
stop();
mouseEnabled = false;
mouseChildren = false;
addEventListener(Event.ADDED_TO_STAGE, added, false, 0, true);
addEventListener(Event.REMOVED_FROM_STAGE, removed, false, 0, true);
if (stage){
added();
};
brandingChanged();
}
private function added(_arg1:Event=null):void{
SpilGame.addEventListener("brandingChanged", brandingChanged, false, 0, true);
brandingChanged();
}
private function brandingChanged(_arg1:Event=null):void{
if (SpilGame.currentBranding){
gotoAndStop(SpilGame.currentBranding.domain);
};
}
function frame1(){
stop();
}
private function removed(_arg1:Event):void{
SpilGame.removeEventListener("brandingChanged", brandingChanged);
}
}
}//package spill.localisation
Section 75
//Brandings (spill.localisation.Brandings)
package spill.localisation {
public class Brandings {
private static var brands_by_id:Object = new Object();
private static var brands_by_domain:Object = new Object();
public static function getBrandByID(_arg1:Number):Brand{
return (brands_by_id[_arg1]);
}
public static function getBrandsArray():Array{
var _local2:Brand;
var _local1:Array = new Array();
for each (_local2 in brands_by_domain) {
_local1.push(_local2);
};
return (_local1);
}
private static function addBrand(_arg1:Brand):Brand{
if (brands_by_domain[_arg1.domain]){
trace(("ERROR: Attempting to add duplicate brand by domain: " + _arg1.domain));
} else {
brands_by_domain[_arg1.domain] = _arg1;
};
if (brands_by_id[_arg1.site_id]){
trace(("ERROR: Attempting to add duplicate brand by id: " + _arg1.site_id));
} else {
brands_by_id[_arg1.site_id] = _arg1;
};
return (_arg1);
}
public static function initialize():void{
var _local1:Brand;
_local1 = new Brand();
_local1.site_id = 79;
_local1.domain = "www.agame.com";
_local1.preferedLanguage = "en_us";
_local1.portalGroup = PortalGroup.TEENS;
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 88;
_local1.domain = "www.gamesgames.com";
_local1.preferedLanguage = "en_us";
_local1.portalGroup = PortalGroup.FAMILY;
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 90;
_local1.domain = "www.girlsgogames.com";
_local1.preferedLanguage = "en_us";
_local1.portalGroup = PortalGroup.GIRL;
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 45;
_local1.domain = "www.a10.com";
_local1.preferedLanguage = "en_us";
_local1.portalGroup = PortalGroup.YOUNG_ADULTS;
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 92;
_local1.domain = "www.games.co.uk";
_local1.preferedLanguage = "en_uk";
_local1.portalGroup = PortalGroup.FAMILY;
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 107;
_local1.domain = "www.agame.co.uk";
_local1.preferedLanguage = "en_uk";
_local1.portalGroup = PortalGroup.TEENS;
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 102;
_local1.domain = "www.girlsgogames.co.uk";
_local1.preferedLanguage = "en_uk";
_local1.portalGroup = PortalGroup.GIRL;
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 2;
_local1.domain = "www.game.com.cn";
_local1.moreLink = "moregames/";
_local1.preferedLanguage = "cn";
_local1.portalGroup = PortalGroup.NONE;
_local1.useGoogleAnalitics = false;
_local1.hasSendToFriendLink = false;
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 25;
_local1.domain = "www.spel.nl";
_local1.portalGroup = PortalGroup.TEENS;
_local1.preferedLanguage = "nl";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 1;
_local1.domain = "www.spelletjes.nl";
_local1.emailLink = "spel";
_local1.portalGroup = PortalGroup.FAMILY;
_local1.preferedLanguage = "nl";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 93;
_local1.domain = "www.girlsgogames.nl";
_local1.emailLink = "spel";
_local1.portalGroup = PortalGroup.GIRL;
_local1.preferedLanguage = "nl";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 12;
_local1.domain = "www.jeu.fr";
_local1.emailLink = "jeu";
_local1.portalGroup = PortalGroup.TEENS;
_local1.preferedLanguage = "fr";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 95;
_local1.domain = "www.girlsgogames.fr";
_local1.emailLink = "jeu";
_local1.portalGroup = PortalGroup.GIRL;
_local1.preferedLanguage = "fr";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 11;
_local1.domain = "www.jeux.fr";
_local1.emailLink = "jeu";
_local1.portalGroup = PortalGroup.FAMILY;
_local1.preferedLanguage = "fr";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 26;
_local1.domain = "www.spielen.com";
_local1.emailLink = "spiel";
_local1.portalGroup = PortalGroup.TEENS;
_local1.preferedLanguage = "de";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 94;
_local1.domain = "www.girlsgogames.de";
_local1.emailLink = "spiel";
_local1.portalGroup = PortalGroup.GIRL;
_local1.preferedLanguage = "de";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 5;
_local1.domain = "www.jetztspielen.de";
_local1.emailLink = "spiel";
_local1.portalGroup = PortalGroup.FAMILY;
_local1.preferedLanguage = "de";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 109;
_local1.domain = "www.minigry.pl";
_local1.emailLink = "gra";
_local1.portalGroup = PortalGroup.TEENS;
_local1.preferedLanguage = "pl";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 16;
_local1.domain = "www.gry.pl";
_local1.emailLink = "gra";
_local1.portalGroup = PortalGroup.FAMILY;
_local1.preferedLanguage = "pl";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 98;
_local1.domain = "www.girlsgogames.pl";
_local1.emailLink = "gra";
_local1.portalGroup = PortalGroup.GIRL;
_local1.preferedLanguage = "pl";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 108;
_local1.domain = "www.spel.se";
_local1.emailLink = "spel_";
_local1.portalGroup = PortalGroup.TEENS;
_local1.preferedLanguage = "se";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 100;
_local1.domain = "www.girlsgogames.se";
_local1.emailLink = "spel_";
_local1.portalGroup = PortalGroup.GIRL;
_local1.preferedLanguage = "se";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 44;
_local1.domain = "www.spela.se";
_local1.emailLink = "spel_";
_local1.preferedLanguage = "se";
_local1.portalGroup = PortalGroup.FAMILY;
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 106;
_local1.domain = "www.giocaregratis.it";
_local1.emailLink = "gioco";
_local1.portalGroup = PortalGroup.TEENS;
_local1.preferedLanguage = "it";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 15;
_local1.domain = "www.gioco.it";
_local1.emailLink = "gioco";
_local1.portalGroup = PortalGroup.FAMILY;
_local1.preferedLanguage = "it";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 99;
_local1.domain = "www.girlsgogames.it";
_local1.emailLink = "gioco";
_local1.portalGroup = PortalGroup.GIRL;
_local1.preferedLanguage = "it";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 97;
_local1.domain = "www.zapjuegos.com";
_local1.emailLink = "juego";
_local1.portalGroup = PortalGroup.TEENS;
_local1.preferedLanguage = "es";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 86;
_local1.domain = "www.juegos.com";
_local1.emailLink = "juego";
_local1.portalGroup = PortalGroup.FAMILY;
_local1.preferedLanguage = "es";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 96;
_local1.domain = "www.juegosdechicas.com";
_local1.emailLink = "juego";
_local1.portalGroup = PortalGroup.GIRL;
_local1.preferedLanguage = "es";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 122;
_local1.domain = "www.girlsgogames.es";
_local1.emailLink = "juego";
_local1.portalGroup = PortalGroup.GIRL;
_local1.preferedLanguage = "es";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 125;
_local1.domain = "www.juegos.mx";
_local1.emailLink = "juego";
_local1.portalGroup = PortalGroup.TEENS;
_local1.preferedLanguage = "es";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 126;
_local1.domain = "www.juegosdechicas.mx";
_local1.emailLink = "juego";
_local1.portalGroup = PortalGroup.GIRL;
_local1.preferedLanguage = "es";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 127;
_local1.domain = "www.juegos.com.ar";
_local1.emailLink = "juego";
_local1.portalGroup = PortalGroup.TEENS;
_local1.preferedLanguage = "es";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 128;
_local1.domain = "www.juegosdechicas.com.ar";
_local1.emailLink = "juego";
_local1.portalGroup = PortalGroup.GIRL;
_local1.preferedLanguage = "es";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 91;
_local1.domain = "www.clickjogos.com";
_local1.emailLink = "jogo";
_local1.portalGroup = PortalGroup.TEENS;
_local1.preferedLanguage = "br";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 101;
_local1.domain = "www.girlsgogames.com.br";
_local1.emailLink = "jogo";
_local1.portalGroup = PortalGroup.GIRL;
_local1.preferedLanguage = "br";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 50;
_local1.domain = "www.ojogos.com.br";
_local1.emailLink = "jogo";
_local1.portalGroup = PortalGroup.FAMILY;
_local1.preferedLanguage = "br";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 55;
_local1.domain = "www.games.co.id";
_local1.emailLink = "permainanme";
_local1.portalGroup = PortalGroup.TEENS;
_local1.preferedLanguage = "id";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 105;
_local1.domain = "www.flashgames.ru";
_local1.emailLink = "igra";
_local1.portalGroup = PortalGroup.TEENS;
_local1.preferedLanguage = "ru";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 104;
_local1.domain = "www.girlsgogames.ru";
_local1.emailLink = "igra";
_local1.portalGroup = PortalGroup.GIRL;
_local1.preferedLanguage = "ru";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 103;
_local1.domain = "www.ourgames.ru";
_local1.emailLink = "igra";
_local1.portalGroup = PortalGroup.FAMILY;
_local1.preferedLanguage = "ru";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 24;
_local1.domain = "www.game.co.in";
_local1.emailLink = "game";
_local1.portalGroup = PortalGroup.TEENS;
_local1.preferedLanguage = "in";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 87;
_local1.domain = "www.ojogos.pt";
_local1.emailLink = "jogo";
_local1.portalGroup = PortalGroup.FAMILY;
_local1.preferedLanguage = "pt";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 120;
_local1.domain = "www.egames.jp";
_local1.emailLink = "game";
_local1.portalGroup = PortalGroup.TEENS;
_local1.preferedLanguage = "jp";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 121;
_local1.domain = "www.dailygame.com";
_local1.emailLink = "/game/";
_local1.portalGroup = PortalGroup.FAMILY;
_local1.preferedLanguage = "en_us";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 123;
_local1.domain = "www.zapapa.com";
_local1.emailLink = "game";
_local1.portalGroup = PortalGroup.ZAPAPA;
_local1.preferedLanguage = "en_us";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 124;
_local1.domain = "www.zapapa.nl";
_local1.emailLink = "game";
_local1.portalGroup = PortalGroup.HYVES;
_local1.preferedLanguage = "nl";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 0;
_local1.domain = "gamedev.dev.spilgames.com";
_local1.portalGroup = PortalGroup.FAMILY;
_local1.preferedLanguage = "en_us";
addBrand(_local1);
}
public static function exportXML():XML{
var _local2:Brand;
var _local1:XML = <portals/>
;
for each (_local2 in brands_by_domain) {
_local1.appendChild(_local2.exportXML());
};
return (_local1);
}
public static function getBrandByDomain(_arg1:String):Brand{
return (brands_by_domain[_arg1]);
}
public static function hasDomain(_arg1:String):Boolean{
return (!((brands_by_domain[_arg1] == null)));
}
}
}//package spill.localisation
Section 76
//Language (spill.localisation.Language)
package spill.localisation {
import flash.xml.*;
public class Language {
public var portal_groups:Array;
public var references:Array;
public var name:String;
public var embedInputFonts:Boolean;// = true
public var id:uint;
public var forceFont:String;// = null
public var textLanguage:String;
public var bwcId:int;
public var embedFonts:Boolean;// = true
public var displayName:String;// = ""
public var dname:String;
public function Language(_arg1:String, _arg2:String=null){
references = [];
super();
name = _arg1;
dname = _arg2;
portal_groups = new Array();
}
public function exportXML():XMLNode{
var _local1:XMLNode = new XMLNode(1, "language");
_local1.attributes.name = name;
if (textLanguage != null){
_local1.attributes.textLanguage = textLanguage;
};
if (references.length){
_local1.attributes.references = references.toString();
};
_local1.attributes.id = bwcId;
var _local2:XMLNode = new XMLNode(1, "display_name");
_local2.firstChild = new XMLNode(3, displayName);
_local1.appendChild(_local2);
var _local3:Array = [];
var _local4:Array = PortalGroup.channelNames;
var _local5:int;
while (_local5 < _local4.length) {
_local3.push(Brandings.getBrandByDomain(portal_groups[_local5]).site_id);
_local5++;
};
_local1.attributes.channels = _local3.join(",");
return (_local1);
}
public function get p_teen():String{
return (portal_groups[PortalGroup.YOUNG_ADULTS]);
}
public function set p_hyves(_arg1:String):void{
portal_groups[PortalGroup.HYVES] = _arg1;
}
public function set p_teen(_arg1:String):void{
portal_groups[PortalGroup.YOUNG_ADULTS] = _arg1;
}
public function get p_tween():String{
return (portal_groups[PortalGroup.TEENS]);
}
public function get p_family():String{
return (portal_groups[PortalGroup.FAMILY]);
}
public function get p_girl():String{
trace("Language", portal_groups[PortalGroup.GIRL]);
return (portal_groups[PortalGroup.GIRL]);
}
public function get p_hyves():String{
return (portal_groups[PortalGroup.HYVES]);
}
public function set p_girl(_arg1:String):void{
portal_groups[PortalGroup.GIRL] = _arg1;
}
public function set p_zapapa(_arg1:String):void{
portal_groups[PortalGroup.ZAPAPA] = _arg1;
}
public function get displayAcronim():String{
return ((dname) ? dname : name);
}
public function set p_family(_arg1:String):void{
portal_groups[PortalGroup.FAMILY] = _arg1;
}
public function set p_tween(_arg1:String):void{
portal_groups[PortalGroup.TEENS] = _arg1;
}
public function get p_zapapa():String{
return (portal_groups[PortalGroup.ZAPAPA]);
}
}
}//package spill.localisation
Section 77
//Languages (spill.localisation.Languages)
package spill.localisation {
import flash.xml.*;
public class Languages {
public static var languages:Object = new Object();
private static var _init:Boolean = false;
public static function initialize():void{
var _local1:Language;
if (_init){
return;
};
_init = true;
_local1 = new Language("nl");
_local1.displayName = "Nederlands";
_local1.p_family = "www.spelletjes.nl";
_local1.p_tween = "www.spel.nl";
_local1.p_girl = "www.girlsgogames.nl";
_local1.p_teen = "www.a10.com";
_local1.p_zapapa = "www.zapapa.com";
_local1.p_hyves = "www.zapapa.nl";
_local1.bwcId = 3;
addLanguage(_local1);
_local1 = new Language("es");
_local1.displayName = "Español";
_local1.p_family = "www.juegos.com";
_local1.p_tween = "www.zapjuegos.com";
_local1.p_girl = "www.girlsgogames.es";
_local1.p_teen = "www.a10.com";
_local1.p_zapapa = "www.zapapa.com";
_local1.bwcId = 9;
addLanguage(_local1);
_local1 = new Language("pl");
_local1.displayName = "Polski";
_local1.p_family = "www.gry.pl";
_local1.p_tween = "www.gry.pl";
_local1.p_girl = "www.girlsgogames.pl";
_local1.p_teen = "www.a10.com";
_local1.p_zapapa = "www.zapapa.com";
_local1.bwcId = 6;
addLanguage(_local1);
_local1 = new Language("fr");
_local1.displayName = "Français";
_local1.p_family = "www.jeux.fr";
_local1.p_tween = "www.jeu.fr";
_local1.p_girl = "www.girlsgogames.fr";
_local1.p_teen = "www.a10.com";
_local1.p_zapapa = "www.zapapa.com";
_local1.bwcId = 4;
addLanguage(_local1);
_local1 = new Language("en_us", "us");
_local1.displayName = "English";
_local1.p_family = "www.gamesgames.com";
_local1.p_tween = "www.agame.com";
_local1.p_girl = "www.girlsgogames.com";
_local1.p_teen = "www.a10.com";
_local1.p_zapapa = "www.zapapa.com";
_local1.bwcId = 1;
addLanguage(_local1);
addReference(_local1, "en");
_local1 = new Language("id");
_local1.displayName = "Bahasa Ind.";
_local1.p_family = "www.games.co.id";
_local1.p_tween = "www.games.co.id";
_local1.p_girl = "www.games.co.id";
_local1.p_teen = "www.a10.com";
_local1.p_zapapa = "www.zapapa.com";
_local1.bwcId = 11;
addLanguage(_local1);
_local1 = new Language("ru");
_local1.displayName = "Русский";
_local1.p_family = "www.ourgames.ru";
_local1.p_tween = "www.flashgames.ru";
_local1.p_girl = "www.girlsgogames.ru";
_local1.p_teen = "www.a10.com";
_local1.p_zapapa = "www.zapapa.com";
_local1.bwcId = 12;
addLanguage(_local1);
_local1 = new Language("se");
_local1.displayName = "Svenska";
_local1.p_family = "www.spela.se";
_local1.p_tween = "www.spel.se";
_local1.p_girl = "www.girlsgogames.se";
_local1.p_teen = "www.a10.com";
_local1.p_zapapa = "www.zapapa.com";
_local1.bwcId = 7;
addLanguage(_local1);
addReference(_local1, "sv");
_local1 = new Language("it");
_local1.displayName = "Italiano";
_local1.p_family = "www.gioco.it";
_local1.p_tween = "www.gioco.it";
_local1.p_girl = "www.girlsgogames.it";
_local1.p_teen = "www.a10.com";
_local1.p_zapapa = "www.zapapa.com";
_local1.bwcId = 8;
addLanguage(_local1);
_local1 = new Language("en_uk", "uk");
_local1.displayName = "English";
_local1.p_family = "www.games.co.uk";
_local1.p_tween = "www.agame.com";
_local1.p_girl = "www.girlsgogames.co.uk";
_local1.p_teen = "www.a10.com";
_local1.p_zapapa = "www.zapapa.com";
_local1.bwcId = 13;
addLanguage(_local1);
_local1 = new Language("cn");
_local1.displayName = "中文";
_local1.p_family = "www.game.com.cn";
_local1.p_tween = "www.game.com.cn";
_local1.p_girl = "www.game.com.cn";
_local1.p_teen = "www.game.com.cn";
_local1.p_zapapa = "www.zapapa.com";
_local1.bwcId = 2;
_local1.textLanguage = "en_us";
_local1.embedInputFonts = false;
addLanguage(_local1);
addReference(_local1, "zh-CN");
addReference(_local1, "zh-TW");
_local1 = new Language("pt");
_local1.displayName = "Português";
_local1.p_family = "www.ojogos.pt";
_local1.p_tween = "www.ojogos.pt";
_local1.p_girl = "www.ojogos.pt";
_local1.p_teen = "www.a10.com";
_local1.p_zapapa = "www.zapapa.com";
_local1.bwcId = 17;
addLanguage(_local1);
_local1 = new Language("in");
_local1.displayName = "English";
_local1.p_family = "www.game.co.in";
_local1.p_tween = "www.game.co.in";
_local1.p_girl = "www.game.co.in";
_local1.p_teen = "www.a10.com";
_local1.p_zapapa = "www.zapapa.com";
_local1.textLanguage = "en_uk";
_local1.bwcId = 14;
addLanguage(_local1);
_local1 = new Language("de");
_local1.displayName = "Deutsch";
_local1.p_family = "www.jetztspielen.de";
_local1.p_tween = "www.spielen.com";
_local1.p_girl = "www.girlsgogames.de";
_local1.p_teen = "www.a10.com";
_local1.p_zapapa = "www.zapapa.com";
_local1.bwcId = 5;
addLanguage(_local1);
_local1 = new Language("br");
_local1.displayName = "Português (BR)";
_local1.p_family = "www.ojogos.com.br";
_local1.p_tween = "www.clickjogos.com";
_local1.p_girl = "www.girlsgogames.com.br";
_local1.p_teen = "www.a10.com";
_local1.p_zapapa = "www.zapapa.com";
_local1.bwcId = 10;
addLanguage(_local1);
_local1 = new Language("jp");
_local1.displayName = "日本語";
_local1.p_family = "www.egames.jp";
_local1.p_tween = "www.egames.jp";
_local1.p_girl = "www.egames.jp";
_local1.p_teen = "www.a10.com";
_local1.p_zapapa = "www.zapapa.com";
_local1.embedInputFonts = false;
_local1.textLanguage = "en_us";
_local1.bwcId = 19;
addLanguage(_local1);
addReference(_local1, "ja");
_local1 = new Language("ar");
_local1.displayName = "English";
_local1.p_family = "www.dailygame.com";
_local1.p_tween = "www.dailygame.com";
_local1.p_girl = "www.dailygame.com";
_local1.p_teen = "www.a10.com";
_local1.p_zapapa = "www.zapapa.com";
_local1.bwcId = 20;
addLanguage(_local1);
addReference(_local1, "ar");
_local1 = new Language("es_mx", "mx");
_local1.displayName = "Español";
_local1.p_family = "www.juegos.mx";
_local1.p_tween = "www.juegos.mx";
_local1.p_girl = "www.juegosdechicas.mx";
_local1.p_teen = "www.a10.com";
_local1.p_zapapa = "www.zapapa.com";
_local1.textLanguage = "es";
addLanguage(_local1);
addReference(_local1, "mx");
_local1 = new Language("es_ar", "arg");
_local1.displayName = "Español";
_local1.p_family = "www.juegos.com.ar";
_local1.p_tween = "www.juegos.com.ar";
_local1.p_girl = "www.juegosdechicas.com.ar";
_local1.p_teen = "www.a10.com";
_local1.p_zapapa = "www.zapapa.com";
_local1.textLanguage = "es";
addLanguage(_local1);
addReference(_local1, "arg");
}
public static function exportXML():XMLNode{
var _local3:Language;
var _local1:Array = getLanguagesArray();
var _local2:XMLNode = new XMLNode(1, "languages");
for each (_local3 in _local1) {
_local2.appendChild(_local3.exportXML());
};
return (_local2);
}
public static function getLanguagesArray():Array{
var _local3:Language;
var _local1:Array = new Array();
var _local2:Object = new Object();
for each (_local3 in languages) {
if (!_local2[_local3.name]){
_local1.push(_local3);
_local2[_local3.name] = true;
};
};
return (_local1);
}
public static function getLanguage(_arg1:String):Language{
return (languages[_arg1]);
}
private static function addLanguage(_arg1:Language):void{
languages[_arg1.name] = _arg1;
}
private static function addReference(_arg1:Language, _arg2:String):void{
languages[_arg2] = _arg1;
_arg1.references.push(_arg2);
}
public static function getLanguageByOldID(_arg1:int):Language{
var _local2:Language;
for each (_local2 in languages) {
if (_local2.bwcId == _arg1){
return (_local2);
};
};
return (null);
}
}
}//package spill.localisation
Section 78
//LanguageSelectBox (spill.localisation.LanguageSelectBox)
package spill.localisation {
import flash.display.*;
import flash.text.*;
import flash.events.*;
public class LanguageSelectBox extends MovieClip {
private var flag:MovieClip;
private var languageName_text:TextField;
private var popup:MovieClip;
private var mc:MovieClip;
public function LanguageSelectBox(){
trace("new langselecbox");
super();
if (numChildren > 0){
removeChildAt(0);
};
addEventListener(Event.ADDED_TO_STAGE, added, false, 0, true);
addEventListener(Event.REMOVED_FROM_STAGE, removed, false, 0, true);
addEventListener(MouseEvent.MOUSE_OVER, mouseOver, false, 0, true);
addEventListener(MouseEvent.MOUSE_OUT, mouseOut, false, 0, true);
Languages.initialize();
popup = new LanguageSelectPopup_mc();
x = Math.round(x);
y = Math.round(y);
popup.y = (-(Math.floor(popup.height)) + 1);
popup.visible = false;
addChild(popup);
mc = new LanguageSelectBox_mc();
addChild(mc);
flag = mc.flag;
languageName_text = mc.languageName_text;
if (stage){
added();
};
init();
languageChanged();
}
private function added(_arg1:Event=null):void{
trace("addedselebnox");
SpilGame.addEventListener("languageChanged", languageChanged, false, 0, true);
}
private function mouseOut(_arg1:MouseEvent):void{
popup.visible = false;
}
public function set popupLocation(_arg1:String):void{
trace(("popupLocation = " + _arg1));
if (_arg1 == "bottom"){
popup.y = Math.floor(mc.height);
} else {
popup.y = (-(Math.floor(mc.height)) + 1);
};
}
private function removed(_arg1:Event):void{
SpilGame.removeEventListener("languageChanged", languageChanged);
}
public function init():void{
var _local3:MovieClip;
var _local4:Language;
trace("initselectbox");
var _local1:Array = new Array(popup.l_br, popup.l_de, popup.l_en_us, popup.l_fr, popup.l_in, popup.l_jp, popup.l_pt, popup.l_ru, popup.l_ar, popup.l_cn, popup.l_en_uk, popup.l_es, popup.l_id, popup.l_it, popup.l_nl, popup.l_pl, popup.l_se, popup.l_es_mx, popup.l_es_ar);
var _local2:int;
while (_local2 < _local1.length) {
_local3 = MovieClip(_local1[_local2]);
if (_local3){
_local3.addEventListener(MouseEvent.CLICK, itemClicked, true, 0, true);
_local3.flag.gotoAndStop(_local3.name.substr(2));
_local3.flag.mouseEnabled = false;
_local3.text.mouseEnabled = false;
_local4 = Languages.getLanguage(_local3.name.substr(2));
if (_local4){
_local3.text.text = _local4.displayAcronim;
} else {
trace((("Error, '" + _local3.name.substr(2)) + "' language not found"));
};
} else {
trace((((("Error, btn number '" + _local2) + "' is not a MovieClip or there is no button '") + _local1[_local2]) + "'"));
};
_local2++;
};
}
private function itemClicked(_arg1:MouseEvent):void{
SpilGame.changeLanguage(_arg1.currentTarget.name.substr(2));
popup.visible = false;
}
private function mouseOver(_arg1:MouseEvent):void{
popup.visible = true;
}
private function languageChanged(_arg1:Event=null):void{
if (SpilGame.currentLanguage){
if ((((SpilGame.portalGroup == PortalGroup.HYVES)) && ((SpilGame.currentLanguage.name == "nl")))){
this.visible = false;
return;
};
this.visible = true;
flag.gotoAndStop(SpilGame.currentLanguage.name);
languageName_text.text = SpilGame.currentLanguage.displayName;
languageName_text.embedFonts = SpilGame.currentLanguage.embedInputFonts;
};
}
}
}//package spill.localisation
Section 79
//LanguageSelectBox_mc (spill.localisation.LanguageSelectBox_mc)
package spill.localisation {
import flash.display.*;
import flash.text.*;
public dynamic class LanguageSelectBox_mc extends MovieClip {
public var languageName_text:TextField;
public var flag:MovieClip;
}
}//package spill.localisation
Section 80
//LanguageSelectPopup_mc (spill.localisation.LanguageSelectPopup_mc)
package spill.localisation {
import flash.display.*;
public dynamic class LanguageSelectPopup_mc extends MovieClip {
public var l_br:MovieClip;
public var l_se:MovieClip;
public var l_id:MovieClip;
public var l_in:MovieClip;
public var l_en_uk:MovieClip;
public var l_en_us:MovieClip;
public var l_es:MovieClip;
public var l_ar:MovieClip;
public var l_it:MovieClip;
public var l_cn:MovieClip;
public var l_pl:MovieClip;
public var l_nl:MovieClip;
public var l_de:MovieClip;
public var l_ru:MovieClip;
public var l_pt:MovieClip;
public var l_jp:MovieClip;
public var l_fr:MovieClip;
}
}//package spill.localisation
Section 81
//LocalizedTextField (spill.localisation.LocalizedTextField)
package spill.localisation {
import flash.events.*;
public class LocalizedTextField extends TextFieldFit {
private var regex:RegExp;
private var originalText:String;
public function LocalizedTextField(){
regex = /{([^{}]*)}/g;
super();
addEventListener(Event.ADDED_TO_STAGE, added, false, 0, true);
addEventListener(Event.REMOVED_FROM_STAGE, removed, false, 0, true);
added();
}
private function added(_arg1:Event=null):void{
SpilGame.addEventListener("languageChanged", languageChanged, false, 0, true);
text = originalText;
}
private function replaceFn():String{
var _local2:String = SpilGame.getString(arguments[1]);
if (((!(_local2)) || ((_local2 == "")))){
return ((("{" + arguments[1]) + "}"));
};
return (_local2);
}
private function removed(_arg1:Event):void{
SpilGame.removeEventListener("languageChanged", languageChanged);
}
override public function set text(_arg1:String):void{
originalText = _arg1;
if ((_arg1 is String)){
super.text = _arg1.replace(regex, replaceFn);
} else {
super.text = "";
};
}
private function languageChanged(_arg1:Event):void{
text = originalText;
updateProperties();
}
}
}//package spill.localisation
Section 82
//PortalGroup (spill.localisation.PortalGroup)
package spill.localisation {
import flash.xml.*;
public class PortalGroup {
public static const YOUNG_ADULTS:uint = 3;
public static const FAMILY:uint = 0;
public static const channelNames:Array = ["family", "tween", "girl", "teen", "zapapa", "hyves"];
public static const ZAPAPA:uint = 4;
public static const HYVES:uint = 5;
public static const TEENS:uint = 1;
public static const GIRL:uint = 2;
public static const backgroundColors:Array = [0xFFFFFF, 0xFFFFFF, 16742331, 0xFFFFFF, 0xFFFFFF, 0xFFFFFF];
public static const NONE:uint = 6;
public static function getName(_arg1:int):String{
return (channelNames[_arg1]);
}
public static function exportXML():XMLNode{
var _local3:XMLNode;
var _local1:XMLNode = new XMLNode(1, "channels");
var _local2:int;
while (_local2 < 5) {
_local3 = new XMLNode(1, "channel");
_local3.attributes.name = channelNames[_local2];
_local3.attributes.id = _local2;
_local1.appendChild(_local3);
_local2++;
};
return (_local1);
}
}
}//package spill.localisation
Section 83
//spil_internal (spill.localisation.spil_internal)
package spill.localisation {
public namespace spil_internal = "spill.localisation";
}//package spill.localisation
Section 84
//SpilGame (spill.localisation.SpilGame)
package spill.localisation {
import flash.display.*;
import flash.text.*;
import flash.events.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
public class SpilGame {
private static const cookieName:String = "spilgames_language_v100";
private static const cookiePath:String = "/";
private static const cookieLanguageVar:String = "savedLang";
public static const LANGUAGE_CHANGED:String = "languageChanged";
public static const BRANDING_CHANGED:String = "brandingChanged";
private static var strings:Object = new Object();
public static var currentBranding:Brand;
private static var contexMenuItem:ContextMenuItem;
spil_internal static var gameName:String;
spil_internal static var debugHostDomain:String = "";
private static var localDomains:Object = new Object();
spil_internal static var emailPage:String;
private static var channelLock:Boolean = false;
spil_internal static var debugEmbedDomain:String = "";
private static var eventDispatcher:EventDispatcher;
private static var _init:Boolean = false;
public static var currentLanguage:Language;
spil_internal static var portalGroup:uint;
private static var stage:Sprite;
public static function getSpilCompanyLink():String{
if (currentLanguage.name == "cn"){
return ("http://www.game.com.cn/downloads/");
};
return ("http://www.gameportal.net");
}
public static function getPromotionLink(_arg1:String="feature_promotion"):String{
var _local2:String = (embedDomain) ? embedDomain : hostingDomain;
return (currentBranding.getPromotionLink(gameName, emailPage, isExternal, _local2, _arg1));
}
public static function traceAllBrands():void{
trace(outputAllBrands());
}
public static function getString(_arg1:String):String{
var _local2:Object = strings[_arg1];
if (_local2){
if (currentLanguage.textLanguage){
return (_local2[currentLanguage.textLanguage]);
};
if (_local2[currentLanguage.name]){
return (_local2[currentLanguage.name]);
};
return (_local2["en_us"]);
//unresolved jump
};
return ("");
}
public static function initialize(_arg1:String, _arg2:int, _arg3:String, _arg4:Sprite, _arg5:Boolean=false):void{
stage = _arg4;
if (_init){
trace("ERROR: LocalisationManager already initialised");
return;
};
_init = true;
localDomains["localhost"] = true;
localDomains["www8.agame.com"] = true;
localDomains["gamedev.dev.spilgames.com"] = true;
localDomains["stg.spel.nl"] = true;
localDomains["stg.girlsgogames.nl"] = true;
localDomains["stg.pl.spel.nl"] = true;
localDomains["stg.pl.girlsgogames.nl"] = true;
trace(localDomains["stg.girlsgogames.nl"]);
Brandings.initialize();
Languages.initialize();
initContexMenu(_arg4);
channelLock = _arg5;
gameName = _arg1.replace(" ", "_");
portalGroup = _arg2;
emailPage = _arg3;
chooseLanguage();
chooseBranding();
if (portalGroup == PortalGroup.HYVES){
changeLanguage("nl");
};
}
public static function get isExternal():Boolean{
return (((((!(Brandings.hasDomain(embedDomain))) && (!(localDomains[embedDomain])))) && (!(isStagingDomain))));
}
private static function initContexMenu(_arg1:Sprite):void{
contexMenuItem = new ContextMenuItem("");
_arg1.contextMenu = new ContextMenu();
_arg1.contextMenu.customItems.push(contexMenuItem);
contexMenuItem.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, contexMenuClicked);
}
private static function replaceFn():String{
var _local2:String = SpilGame.getString(arguments[1]);
if (((!(_local2)) || ((_local2 == "")))){
return ((("{" + arguments[1]) + "}"));
};
return (_local2);
}
spil_internal static function get hostingDomain():String{
var _local1:LocalConnection;
if (debugHostDomain != ""){
return (debugHostDomain);
};
_local1 = new LocalConnection();
return (_local1.domain);
}
spil_internal static function chooseLanguage():void{
if (cookieLanguage != null){
currentLanguage = cookieLanguage;
} else {
if (isExternal){
currentLanguage = systemLanguage;
} else {
currentLanguage = portalLanguage;
if (!currentLanguage){
currentLanguage = systemLanguage;
};
};
};
if (!currentLanguage){
trace("Unable to determine language, using 'English US'");
currentLanguage = Languages.getLanguage("en_us");
};
TextFieldFit.embedFonts = currentLanguage.embedFonts;
TextFieldFit.forceFont = currentLanguage.forceFont;
dispatchEvent(new Event(LANGUAGE_CHANGED));
}
private static function contexMenuClicked(_arg1:ContextMenuEvent):void{
navigateToURL(new URLRequest(getMoreGamesLink("Contex_Menu")));
}
public static function initTextField(_arg1:TextField):void{
var _local2:TextFormat;
trace(_arg1.text);
_arg1.text = _arg1.text.replace(/{([^{}]*)}/g, replaceFn);
trace(_arg1.text);
_arg1.embedFonts = currentLanguage.embedFonts;
if (currentLanguage.forceFont != ""){
_local2 = new TextFormat();
_local2.font = currentLanguage.forceFont;
_arg1.setTextFormat(_local2);
};
}
public static function importXMLv2(_arg1:XML):void{
var _local2:XML;
var _local3:Object;
var _local4:XML;
for each (_local2 in _arg1.children()) {
_local3 = (strings[_local2.attribute("identifier")] = new Object());
for each (_local4 in _local2.children()) {
if (_local4.children().length() > 0){
_local3[_local4.name()] = _local4.children()[0].toString();
} else {
_local3[_local4.name()] = "";
};
};
};
}
spil_internal static function changeLanguage(_arg1:String):void{
var _local2:Language = Languages.getLanguage(_arg1);
if (!_local2){
trace("ERROR: Supplied language string does not have a matching language");
} else {
cookieLanguage = _local2;
currentLanguage = _local2;
};
TextFieldFit.embedFonts = currentLanguage.embedFonts;
TextFieldFit.forceFont = currentLanguage.forceFont;
chooseBranding();
dispatchEvent(new Event(LANGUAGE_CHANGED));
}
public static function getSendToFriendLink():String{
return (currentBranding.getSendToFriendLink(gameName, emailPage, isExternal, embedDomain));
}
spil_internal static function chooseBranding():void{
currentBranding = Brandings.getBrandByDomain(currentLanguage.portal_groups[portalGroup]);
if (!(currentBranding is Brand)){
currentBranding = Brandings.getBrandByDomain("www.agame.com");
};
contexMenuItem.caption = ("More Games: " + currentBranding.domain);
dispatchEvent(new Event(BRANDING_CHANGED));
}
spil_internal static function get systemLanguage():Language{
return (Languages.getLanguage(Capabilities.language));
}
spil_internal static function set cookieLanguage(_arg1:Language):void{
var _local2:SharedObject = SharedObject.getLocal(cookieName, cookiePath);
if (_arg1 == null){
_local2.data[cookieLanguageVar] = null;
} else {
_local2.data[cookieLanguageVar] = _arg1.name;
};
_local2.flush();
}
public static function importXML(_arg1:XML):void{
var _local2:XML;
var _local3:Object;
var _local4:XML;
for each (_local2 in _arg1.children()) {
_local3 = (strings[_local2.identifier] = new Object());
for each (_local4 in _local2.children()) {
_local3[_local4.name()] = _local4.children()[0].toString();
};
};
}
spil_internal static function dispatchEvent(_arg1:Event):void{
if (!eventDispatcher){
eventDispatcher = new EventDispatcher();
};
eventDispatcher.dispatchEvent(_arg1);
}
private static function getDomain(_arg1:String):String{
var _local2:String;
var _local3:uint;
if (_arg1.indexOf("file") == 0){
return ("offline_play");
};
_local2 = new String();
_local3 = 7;
while (_local3 < _arg1.length) {
if (_arg1.charAt(_local3) == "/"){
break;
};
_local2 = (_local2 + _arg1.charAt(_local3));
_local3++;
};
if (_local2 == "localhost"){
_local2 = "offline_play";
};
return (_local2);
}
public static function exportXML():XML{
var _local1:XML = <spil_games/>
;
_local1.appendChild(Brandings.exportXML());
_local1.appendChild(Languages.exportXML());
_local1.appendChild(PortalGroup.exportXML());
return (_local1);
}
public static function removeEventListener(_arg1:String, _arg2:Function, _arg3:Boolean=false):void{
if (!eventDispatcher){
eventDispatcher = new EventDispatcher();
};
eventDispatcher.removeEventListener(_arg1, _arg2, _arg3);
}
public static function outputAllBrands():String{
var _local3:Brand;
var _local1:Array = Brandings.getBrandsArray();
var _local2 = "";
for each (_local3 in _local1) {
_local2 = (_local2 + (_local3.getSendToFriendLink(gameName, emailPage, isExternal, embedDomain) + "\n"));
};
return (_local2);
}
public static function addEventListener(_arg1:String, _arg2:Function, _arg3:Boolean=false, _arg4:int=0, _arg5:Boolean=false):void{
if (!eventDispatcher){
eventDispatcher = new EventDispatcher();
};
eventDispatcher.addEventListener(_arg1, _arg2, _arg3, _arg4, _arg5);
}
public static function getMoreGamesLink(_arg1:String=""):String{
var _local2:String = (embedDomain) ? embedDomain : hostingDomain;
return (currentBranding.getMoreGamesLink(gameName, isExternal, _local2, _arg1));
}
public static function get isStagingDomain():Boolean{
var _local1:String = ("http://" + embedDomain);
return ((_local1.indexOf("http://stg.") >= 0));
}
spil_internal static function get cookieLanguage():Language{
var _local1:SharedObject = SharedObject.getLocal(cookieName, cookiePath);
var _local2:String = String(_local1.data[cookieLanguageVar]);
return (Languages.getLanguage(_local2));
}
private static function get portalLanguage():Language{
var _local1:Brand;
var _local2:String;
var _local3:Language;
if (isExternal){
return (null);
};
if (!embedDomain){
return (null);
};
_local1 = Brandings.getBrandByDomain(embedDomain);
if (!_local1){
return (null);
};
_local2 = _local1.preferedLanguage;
if (!_local2){
return (null);
};
_local3 = Languages.getLanguage(_local2);
if (!_local3){
return (null);
};
return (_local3);
}
spil_internal static function get embedDomain():String{
var loc:String;
if (debugEmbedDomain != ""){
return (debugEmbedDomain);
};
if (ExternalInterface.available){
try {
loc = ExternalInterface.call("window.location.href.toString");
if (((!((loc == ""))) && (!((loc == null))))){
trace(("embed domain = " + getDomain(loc)));
return (getDomain(loc));
};
} catch(e:SecurityError) {
trace(("Security Error connecting to external interface, error = " + e));
} catch(e:Error) {
trace(("Error connecting to external interface, error = " + e));
};
};
return (null);
}
}
}//package spill.localisation
Section 85
//SpilGamesLink (spill.localisation.SpilGamesLink)
package spill.localisation {
import flash.display.*;
import flash.events.*;
import flash.net.*;
public class SpilGamesLink extends SimpleButton {
public function SpilGamesLink(){
addEventListener(MouseEvent.CLICK, buttonClicked);
}
private function buttonClicked(_arg1:MouseEvent):void{
navigateToURL(new URLRequest(SpilGame.getSpilCompanyLink()), "_blank");
}
}
}//package spill.localisation
Section 86
//TextFieldFit (spill.localisation.TextFieldFit)
package spill.localisation {
import flash.display.*;
import flash.text.*;
import flash.events.*;
import flash.utils.*;
import flash.filters.*;
public class TextFieldFit extends MovieClip {
protected var _glowQuality:Number;// = 1
protected var _gridFitType:String;// = "pixel"
protected var _text:String;// = "default"
private var debugBounding:Sprite;
protected var _disableWordwrap:Boolean;// = false
protected var _textSize:Number;// = 12
protected var _multiline:Boolean;// = false
protected var _font:String;// = ""
protected var _embedFonts:Boolean;// = true
protected var _underline:Boolean;// = false
protected var _vAlign:String;// = "top"
protected var _italic:Boolean;// = false
protected var _useGlowFilter:Boolean;// = false
protected var _glowColor:uint;// = 0
protected var _bold:Boolean;// = false
private var h:Number;
protected var _antiAliasType:String;// = "advanced"
private var sizeChanged:Boolean;// = true
private var w:Number;
private var embeddedFonts:Array;
protected var _hAlign:String;// = "left"
protected var _textColor:uint;// = 0
protected var _glowStrength:Number;// = 5
protected var _glowBlur:Number;// = 3
protected var _selectable:Boolean;// = false
private var format:TextFormat;
private var field:TextField;
private var valid:Boolean;// = true
private static const gutter:Number = 2;
spil_internal static var embedFonts:Boolean = true;
spil_internal static var forceAAType:String = null;
spil_internal static var forceFont:String = null;
public static var alwaysCheckWidth:Boolean = false;
public function TextFieldFit(){
var _local1:Boolean = ((!((parent == null))) && ((getQualifiedClassName(parent) == "fl.livepreview::LivePreviewParent")));
var _local2:Number = width;
var _local3:Number = height;
if (numChildren > 0){
removeChildAt(0);
};
if (!field){
field = new TextField();
addChild(field);
};
field.border = false;
field.background = false;
field.type = TextFieldType.DYNAMIC;
mouseEnabled = false;
mouseChildren = false;
format = new TextFormat();
embeddedFonts = Font.enumerateFonts(false);
setSize(_local2, _local3);
validate();
if (stage){
addEventListener(Event.RENDER, init);
stage.invalidate();
};
init();
}
private function resizeText(_arg1:Boolean=false):void{
if (!doesTextFit()){
format.size = Object((Number(format.size) - 1));
if (format.size <= 3){
trace("WARNING: Text resised to 3px, either an error occured or the text just wont fit");
return;
};
field.setTextFormat(format);
resizeText(true);
} else {
if (_arg1 == false){
while (doesTextFit()) {
if (format.size <= textSize){
format.size = Object((Number(format.size) + 1));
field.setTextFormat(format);
if (!doesTextFit()){
format.size = Object((Number(format.size) - 1));
field.setTextFormat(format);
break;
};
} else {
break;
};
};
};
};
}
public function set hAlign(_arg1:String):void{
_hAlign = _arg1;
invalidate();
}
public function set bold(_arg1:Boolean):void{
_bold = _arg1;
invalidate();
}
private function init(_arg1:Event=null):void{
removeEventListener(Event.RENDER, init);
updateProperties();
layoutText();
}
private function validate(_arg1:Event=null):void{
updateProperties();
layoutText();
removeEventListener(Event.ENTER_FRAME, validate);
valid = true;
}
public function set glowBlur(_arg1:Number):void{
_glowBlur = _arg1;
invalidate();
}
public function get vAlign():String{
return (_vAlign);
}
public function get italic():Boolean{
return (_italic);
}
public function get textColor():uint{
return (_textColor);
}
private function invalidate():void{
if (valid){
addEventListener(Event.ENTER_FRAME, validate);
if (stage){
stage.invalidate();
};
valid = false;
};
}
public function get text():String{
return (_text);
}
public function get useGlowFilter():Boolean{
return (_useGlowFilter);
}
public function get selectable():Boolean{
return (_selectable);
}
public function set text(_arg1:String):void{
_text = _arg1;
invalidate();
}
public function set embedFonts(_arg1:Boolean):void{
_embedFonts = _arg1;
invalidate();
}
public function set vAlign(_arg1:String):void{
_vAlign = _arg1;
invalidate();
}
public function set italic(_arg1:Boolean):void{
_italic = _arg1;
invalidate();
}
public function get font():String{
return (_font);
}
public function set multiline(_arg1:Boolean):void{
_multiline = _arg1;
invalidate();
}
public function get disableWordwrap():Boolean{
return (_disableWordwrap);
}
public function set textColor(_arg1:uint):void{
_textColor = _arg1;
invalidate();
}
public function get antiAliasType():String{
return (_antiAliasType);
}
private function layoutText():void{
resizeText();
field.height = (field.textHeight + (gutter * 2));
if (vAlign == "top"){
field.y = 0;
} else {
if (vAlign == "middle"){
field.y = ((h - field.height) / 2);
} else {
if (vAlign == "bottom"){
field.y = (h - field.height);
};
};
};
}
public function set glowQuality(_arg1:Number):void{
_glowQuality = _arg1;
invalidate();
}
public function get hAlign():String{
return (_hAlign);
}
public function setSize(_arg1:Number, _arg2:Number):void{
w = _arg1;
h = _arg2;
scaleX = (scaleY = 1);
field.width = w;
field.height = h;
invalidate();
}
public function get bold():Boolean{
return (_bold);
}
public function set gridFitType(_arg1:String):void{
_gridFitType = _arg1;
invalidate();
}
public function set underline(_arg1:Boolean):void{
_underline = _arg1;
invalidate();
}
public function get glowBlur():Number{
return (_glowBlur);
}
public function set useGlowFilter(_arg1:Boolean):void{
_useGlowFilter = _arg1;
invalidate();
}
public function set font(_arg1:String):void{
_font = _arg1;
invalidate();
}
public function set textSize(_arg1:Number):void{
_textSize = _arg1;
sizeChanged = true;
invalidate();
}
public function set selectable(_arg1:Boolean):void{
_selectable = _arg1;
invalidate();
}
public function get multiline():Boolean{
return (_multiline);
}
public function get embedFonts():Boolean{
return (_embedFonts);
}
public function set glowColor(_arg1:uint):void{
_glowColor = _arg1;
invalidate();
}
public function set disableWordwrap(_arg1:Boolean):void{
_disableWordwrap = _arg1;
invalidate();
}
public function get glowQuality():Number{
return (_glowQuality);
}
public function get gridFitType():String{
return (_gridFitType);
}
public function get underline():Boolean{
return (_underline);
}
public function get textSize():Number{
return (_textSize);
}
public function get glowColor():uint{
return (_glowColor);
}
public function set antiAliasType(_arg1:String):void{
_antiAliasType = _arg1;
invalidate();
}
public function set glowStrength(_arg1:Number):void{
_glowStrength = _arg1;
invalidate();
}
protected function updateProperties():void{
var _local1:Boolean;
var _local2:Font;
field.text = _text;
field.multiline = ((((_text.indexOf(" ") < 0)) && ((_text.length < 14)))) ? false : _multiline;
field.wordWrap = ((field.multiline) && (!(_disableWordwrap)));
field.selectable = _selectable;
field.antiAliasType = (forceAAType) ? forceAAType : _antiAliasType;
field.gridFitType = _gridFitType;
embeddedFonts = Font.enumerateFonts(false);
if (((((_embedFonts) && (!((_font == ""))))) && (TextFieldFit.embedFonts))){
_local1 = false;
for each (_local2 in embeddedFonts) {
if (_font == _local2.fontName){
_local1 = true;
break;
};
};
field.embedFonts = _local1;
if (!_local1){
trace(((("WARNING: Embedded font '" + _font) + "' not found, disabling embedding of fonts, text = ") + _text));
} else {
trace((("Found Embedded font '" + _font) + "' using font"));
};
} else {
field.embedFonts = false;
};
if (TextFieldFit.forceFont){
format.font = TextFieldFit.forceFont;
} else {
format.font = _font;
};
if (sizeChanged){
format.size = _textSize;
};
format.color = _textColor;
format.align = _hAlign;
format.bold = _bold;
format.italic = _italic;
format.underline = _underline;
format.leftMargin = 0;
format.rightMargin = 0;
field.setTextFormat(format);
if (_useGlowFilter){
filters = [new GlowFilter(_glowColor, 1, _glowBlur, _glowBlur, _glowStrength, _glowQuality)];
} else {
filters = [];
};
}
private function doesTextFit():Boolean{
if (((((field.textHeight + (gutter * 2)) > h)) || (((((field.textWidth + (gutter * 2)) > w)) && (((!(field.multiline)) || (alwaysCheckWidth))))))){
return (false);
};
return (true);
}
public function get glowStrength():Number{
return (_glowStrength);
}
}
}//package spill.localisation
Section 87
//Submitter (Spill.Components.Submitter)
package Spill.Components {
import flash.display.*;
public dynamic class Submitter extends MovieClip {
}
}//package Spill.Components
Section 88
//CBalonRequest (CBalonRequest)
package {
import flash.display.*;
import flash.text.*;
public dynamic class CBalonRequest extends MovieClip {
public var obyek:TextField;
}
}//package
Section 89
//CBannedWin (CBannedWin)
package {
import flash.xml.*;
import flash.display.*;
import flash.text.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import flash.utils.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
public dynamic class CBannedWin extends MovieClip {
public var mBtn:SimpleButton;
public function CBannedWin(){
addFrameScript(0, frame1);
}
public function GotoSapi(_arg1:MouseEvent){
var _local2:URLRequest = new URLRequest("http://www.lazybanana.com");
navigateToURL(_local2);
}
function frame1(){
mBtn.addEventListener(MouseEvent.MOUSE_DOWN, GotoSapi);
}
}
}//package
Section 90
//CBarista (CBarista)
package {
import flash.display.*;
import flash.events.*;
import caurina.transitions.*;
import de.polygonal.math.*;
public class CBarista extends CBaseMovieClip {
public var barista1:MovieClip;
public var barista2:MovieClip;
public var barista3:MovieClip;
public var barista4:MovieClip;
public var barista5:MovieClip;
public var barista6:MovieClip;
public var barista7:MovieClip;
public var barista9:MovieClip;
public var indexNganggur:int;
public var posNganggur:Array;
public var barista8:MovieClip;
private static var CGameGlobal:CBarista;
public function CBarista(){
posNganggur = new Array();
super("update");
CGameGlobal = this;
trace("init CBarista");
init();
}
public function init():void{
Template.setButton(CMejaBar.GetInstance().cangkir);
Data.statusBikinKopi = 0;
Template.removeObyekChildAll(this);
posNganggur = [0, 1, 2, 3];
indexNganggur = PM_PRNG.nextIntRange(0, 3);
this.addChild(this[("barista" + (Data.indexBaristaNganggur1 + posNganggur[indexNganggur]))]);
Tweener.addTween(this, {time:0, onComplete:setBaristaNganggur, transition:"linear"});
}
public function setBaristaAntarPesanan():void{
swapBarista(Data.indexBaristaBawaCangkir, Data.indexBaristaNgantarPesanan);
this[("barista" + Data.indexBaristaNgantarPesanan)].gotoAndPlay(1);
setBaristaMuncul(Data.indexBaristaNgantarPesanan);
Tweener.addTween(this, {delay:(this[("barista" + Data.indexBaristaNgantarPesanan)].totalFrames / 40), onComplete:setBaristaSelesaiAntarPesanan, transition:"linear"});
}
private function setBaristaNganggurGanti():void{
var _local1:int = posNganggur[indexNganggur];
posNganggur.splice(indexNganggur, 1);
if (posNganggur.length == 0){
posNganggur = [0, 1, 2, 3];
};
indexNganggur = PM_PRNG.nextIntRange(0, (posNganggur.length - 1));
Template.swapChild(this, this[("barista" + (Data.indexBaristaNganggur1 + _local1))], this[("barista" + (Data.indexBaristaNganggur1 + posNganggur[indexNganggur]))]);
Tweener.addTween(this, {time:0, onComplete:setBaristaNganggur, transition:"linear"});
}
public function swapBarista(_arg1:int, _arg2:int):void{
Template.swapChild(this, this[("barista" + _arg1)], this[("barista" + _arg2)]);
}
override public function Update(_arg1:Event){
}
private function setBaristaNganggur():void{
setBaristaMuncul((Data.indexBaristaNganggur1 + posNganggur[indexNganggur]));
var _local1:int = PM_PRNG.nextIntRange(3, 5);
Tweener.addTween(this, {delay:2, time:_local1, transition:"linear"});
Tweener.addTween(this[("barista" + (Data.indexBaristaNganggur1 + posNganggur[indexNganggur]))], {delay:(2 + _local1), time:2, alpha:0, onComplete:setBaristaNganggurGanti, transition:"linear"});
}
public function setBaristaBikinKopi():void{
Tweener.removeTweens(this);
Tweener.removeTweens(this[("barista" + (Data.indexBaristaNganggur1 + posNganggur[indexNganggur]))]);
Template.swapChild(this, this[("barista" + (Data.indexBaristaNganggur1 + posNganggur[indexNganggur]))], this[("barista" + Data.indexBaristaMenungguKopi)]);
Template.unsetButton(CMejaBar.GetInstance().cangkir);
setBaristaMuncul(Data.indexBaristaMenungguKopi);
Data.statusBikinKopi = 1;
CMejaKerja.GetInstance().step = 0;
CMejaKerja.GetInstance().statusCampuranKopi = false;
CMejaKerja.GetInstance().setVisibleTangan_Cangkir(true);
}
private function callInit():void{
CMejaKerja.GetInstance().step = 0;
Template.setButton(CMejaBar.GetInstance().milk);
Template.setButton(CMejaBar.GetInstance().sugar);
init();
}
private function setBaristaSelesaiAntarPesanan():void{
swapBarista(Data.indexBaristaNgantarPesanan, Data.indexBaristaSelesaiAntar);
this[("barista" + Data.indexBaristaSelesaiAntar)].gotoAndPlay(1);
setBaristaMuncul(Data.indexBaristaSelesaiAntar);
Tweener.addTween(this, {delay:((this[("barista" + Data.indexBaristaSelesaiAntar)].totalFrames / 40) + 1), onComplete:callInit, transition:"linear"});
}
public function setBaristaMuncul(_arg1:int):void{
this[("barista" + _arg1)].alpha = 0;
Tweener.addTween(this[("barista" + _arg1)], {time:2, alpha:1, transition:"linear"});
}
public static function GetInstance():CBarista{
return (CGameGlobal);
}
}
}//package
Section 91
//CBaseMovieClip (CBaseMovieClip)
package {
import flash.display.*;
import flash.events.*;
public class CBaseMovieClip extends MovieClip {
public var mEventType:String;
public function CBaseMovieClip(_arg1:String){
mEventType = _arg1;
}
public function AddDispatcher():void{
Main.GetInstance().addEventListener(mEventType, Update, false, 0, true);
}
public function Update(_arg1:Event){
}
public function RemoveDispatcher(){
Main.GetInstance().removeEventListener(mEventType, Update);
}
}
}//package
Section 92
//CBGSound (CBGSound)
package {
import flash.media.*;
public dynamic class CBGSound extends Sound {
}
}//package
Section 93
//CButton (CButton)
package {
import flash.media.*;
public dynamic class CButton extends Sound {
}
}//package
Section 94
//CCoin (CCoin)
package {
import flash.display.*;
import flash.text.*;
public dynamic class CCoin extends MovieClip {
public var nilai:TextField;
}
}//package
Section 95
//CCongratulation (CCongratulation)
package {
import flash.display.*;
import flash.events.*;
public class CCongratulation extends CBaseMovieClip {
public var btnPlayAgain:MovieClip;
public var btnMainMenu:MovieClip;
public var btnMoreGames:MovieClip;
private static var CGameGlobal:CCongratulation;
public function CCongratulation(){
super("update");
CGameGlobal = this;
trace("init CCongratulation");
init();
}
private function onMouseUp(_arg1:MouseEvent):void{
if (_arg1.currentTarget.name == "btnPlayAgain"){
Template.initLevel();
Main.GetInstance().KillWindow("EndGame");
Main.GetInstance().KillWindow("Game");
Main.GetInstance().InitGame();
Template.buttonSound();
};
if (_arg1.currentTarget.name == "btnMainMenu"){
Main.GetInstance().KillWindow("EndGame");
Main.GetInstance().KillWindow("Game");
Main.GetInstance().InitMainMenu();
Template.buttonSound();
};
if (_arg1.currentTarget.name == "btnMoreGames"){
Template.moreGame();
Template.buttonSound();
};
}
override public function Update(_arg1:Event){
}
private function init():void{
Main.GetInstance().submitScore(CGame.GetInstance().UI.scoreGoal.score.text);
Template.setButton(btnPlayAgain);
Template.setButton(btnMainMenu);
btnPlayAgain.addEventListener(MouseEvent.MOUSE_UP, onMouseUp, false, 0, true);
btnMainMenu.addEventListener(MouseEvent.MOUSE_UP, onMouseUp, false, 0, true);
}
public static function GetInstance():CCongratulation{
return (CGameGlobal);
}
}
}//package
Section 96
//CCredit (CCredit)
package {
import flash.xml.*;
import flash.display.*;
import flash.text.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import flash.utils.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
public dynamic class CCredit extends MovieClip {
public var mFilter:Array;
public var mClose:MovieClip;
public var mTitle:MovieClip;
public var mLogo:MovieClip;
public function CCredit(){
addFrameScript(0, frame1);
}
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 = [];
}
public function onMouseOver(_arg1:MouseEvent){
var _local2:GlowFilter = 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];
}
}
}//package
Section 97
//CCustomer (CCustomer)
package {
import flash.display.*;
import flash.events.*;
import caurina.transitions.*;
import de.polygonal.math.*;
public class CCustomer extends CBaseMovieClip {
public var coin1:CCoin;
public var coin2:CCoin;
public var coin3:CCoin;
public var maxTempatDuduk;// = 3
public var posisiDuduk1:MovieClip;
public var posisiDuduk2:MovieClip;
public var posisiDuduk3:MovieClip;
public var delayMuncul:Array;
public var flagGoal:Boolean;// = false
private static var CGameGlobal:CCustomer;
public function CCustomer(){
delayMuncul = [1, 2, 3, 4, 5];
super("update");
CGameGlobal = this;
trace("init CCustomer");
init();
}
public function stopDatang(_arg1:MovieClip):MovieClip{
var _local2:MovieClip;
if (!flagGoal){
_arg1.ghostDatang.stop();
_arg1 = Template.gantiChild(_arg1, _arg1.ghostDuduk);
_arg1.ghostDuduk.gotoAndPlay((PM_PRNG.nextIntRange(1, (_arg1.ghostDuduk.totalFrames / 10)) * 10));
Template.setButton(this[("posisiDuduk" + _arg1.parent.index)]);
this[("posisiDuduk" + _arg1.parent.index)].addEventListener(MouseEvent.MOUSE_UP, onMouseUp, false, 0, true);
_arg1.ghostDatang.gotoAndStop(1);
_arg1.ghostDuduk.permintaan.obyekPermintaan = Template.createMovie(_arg1.ghostDuduk.permintaan.obyekPermintaan, CBalonRequest, _arg1.ghostDuduk.permintaan);
_arg1 = setPermintaan(_arg1, PM_PRNG.nextIntRange(1, 2), PM_PRNG.nextIntRange(0, (Data.kopi - 1)), PM_PRNG.nextIntRange(0, (Data.kopiCampuran - 1)));
_local2 = CGame.GetInstance();
if (_arg1.parent.indexCust == Data.indexGhostCabaret){
_local2[("tanganCabaret" + _arg1.parent.index)].alpha = 1;
_local2[("tanganCabaret" + _arg1.parent.index)].visible = true;
};
Tweener.addTween(this[("posisiDuduk" + _arg1.parent.index)], {time:60, onComplete:setNewCustomer, onCompleteParams:[_arg1.parent.index], transition:"linear"});
};
return (_arg1);
}
private function onMouseUp(_arg1:MouseEvent):void{
var _local2:MovieClip;
if (!flagGoal){
if (Data.statusBikinKopi == 3){
trace(((("Customer = " + _arg1.currentTarget.customer) + " Ghost = ") + _arg1.currentTarget.customer.ghostDuduk));
Data.statusBikinKopi = 4;
CBarista.GetInstance().setBaristaAntarPesanan();
Template.unsetButton(CGame.GetInstance().trash);
_local2 = CBarista.GetInstance();
Tweener.addTween(_arg1.currentTarget, {time:(_local2[("barista" + Data.indexBaristaNgantarPesanan)].totalFrames / 40), onComplete:setNewCustomer, onCompleteParams:[_arg1.currentTarget.index], transition:"linear"});
};
if (CGame.GetInstance().overlay.visible){
setNewCustomer(_arg1.currentTarget.index);
};
};
}
public function customerDuduk(_arg1:MovieClip):void{
if (!flagGoal){
trace(("cust.level = " + _arg1.level));
trace(("cust.index = " + _arg1.index));
trace(((("posisiDuduk[" + _arg1.index) + "].customer = ") + this[("posisiDuduk" + _arg1.index)].customer));
trace(((("posisiDuduk[" + _arg1.index) + "].customer.ghostDatang = ") + this[("posisiDuduk" + _arg1.index)].customer.ghostDatang));
trace(((("posisiDuduk[" + _arg1.index) + "].numChildren = ") + this[("posisiDuduk" + _arg1.index)].numChildren));
this[("posisiDuduk" + _arg1.index)].customer = stopDatang(this[("posisiDuduk" + _arg1.index)].customer);
};
}
private function init():void{
var _local1:int;
var _local2:int;
_local1 = 1;
while (_local1 <= maxTempatDuduk) {
this[("posisiDuduk" + _local1)].index = _local1;
this[("posisiDuduk" + _local1)].indexCust = PM_PRNG.nextIntRange(1, Data.maxCustomerShow[(Template.level - 1)]);
_local2 = PM_PRNG.nextIntRange(0, (delayMuncul.length - 1));
Tweener.addTween(this[("posisiDuduk" + _local1)], {time:delayMuncul[_local2], onComplete:setCustomer, onCompleteParams:[this[("posisiDuduk" + _local1)].index, this[("posisiDuduk" + _local1)].indexCust], transition:"linear"});
delayMuncul.splice(_local2, 1);
_local1++;
};
_local1 = 1;
while (_local1 <= 3) {
this[("coin" + _local1)] = new CCoin();
_local1++;
};
}
private function removeChildAll(_arg1:int):void{
if (this[("posisiDuduk" + _arg1)].customer != null){
while (this[("posisiDuduk" + _arg1)].customer.numChildren > 0) {
this[("posisiDuduk" + _arg1)].customer.removeChildAt(0);
};
};
}
private function setVisibleTanganCabaret(_arg1:MovieClip):void{
_arg1.visible = false;
}
private function setCoin(_arg1:int, _arg2:Array, _arg3:Boolean):void{
if (_arg3){
if (_arg2.length == 2){
this[("coin" + _arg1)].nilai.text = (int(this[("coin" + _arg1)].nilai.text) + 150);
} else {
if (_arg2[0] < 9){
this[("coin" + _arg1)].nilai.text = (int(this[("coin" + _arg1)].nilai.text) + 100);
} else {
this[("coin" + _arg1)].nilai.text = (int(this[("coin" + _arg1)].nilai.text) + 25);
};
};
this[("posisiDuduk" + _arg1)].addChild(this[("coin" + _arg1)]);
this[("coin" + _arg1)].x = 0;
this[("coin" + _arg1)].y = 0;
this[("coin" + _arg1)].visible = false;
};
}
private function setNewCustomer(_arg1:int):void{
var _local2:int;
var _local3:Boolean;
var _local4:int;
var _local5:int;
var _local6:int;
var _local7:int;
var _local8:MovieClip;
if (!flagGoal){
this[("posisiDuduk" + _arg1)].removeEventListener(MouseEvent.MOUSE_UP, onMouseUp);
Tweener.removeTweens(this[("posisiDuduk" + _arg1)]);
Template.unsetButton(this[("posisiDuduk" + _arg1)]);
_local2 = 0;
_local3 = false;
if (((!(CGame.GetInstance().overlay.visible)) || (CMejaBar.GetInstance().ambil))){
_local6 = 0;
while (_local6 < Data[("permintaanPosisi" + _arg1)].length) {
_local7 = 0;
while (_local7 < Data.permintaan.length) {
if (Data[("permintaanPosisi" + _arg1)][_local6] == Data.permintaan[_local7]){
_local2++;
};
_local7++;
};
_local6++;
};
if ((((Data[("permintaanPosisi" + _arg1)].length == Data.permintaan.length)) && ((_local2 == Data[("permintaanPosisi" + _arg1)].length)))){
trace(((((((("Permintaan Kopi = " + _local2) + " ") + _local5) + " ") + Data[("permintaanPosisi" + _arg1)]) + " ") + Data.permintaan));
_local3 = true;
Data.permintaan.splice(0, Data.permintaan.length);
};
} else {
if (Data[("permintaanPosisi" + _arg1)][0] == Data.permintaanTambahan){
trace(((("Permintaan Tambahan Kopi = " + Data[("permintaanPosisi" + _arg1)]) + " ") + Data.permintaanTambahan));
_local3 = true;
Data.permintaanTambahan = null;
};
};
_local4 = 0;
_local5 = PM_PRNG.nextIntRange(0, (this[("posisiDuduk" + _arg1)].permintaan.length - 1));
if (((!(_local3)) || (((!((Data.statusBikinKopi == 4))) && (((!(CGame.GetInstance().overlay.visible)) || (CMejaBar.GetInstance().ambil))))))){
_local3 = false;
_local5 = 0;
trace(("numChildren = " + this[("posisiDuduk" + _arg1)].numChildren));
this[("posisiDuduk" + _arg1)].customer = Template.gantiChild(this[("posisiDuduk" + _arg1)].customer, this[("posisiDuduk" + _arg1)].customer.ghostMarah);
Tweener.addTween(this[("posisiDuduk" + _arg1)].customer, {delay:10, time:1, alpha:0, onComplete:removeChildAll, onCompleteParams:[_arg1], transition:"linear"});
_local4 = 10;
} else {
if (_local5 != 0){
setCoin(_arg1, Data[("permintaanPosisi" + this[("posisiDuduk" + _arg1)].index)], _local3);
if (!flagGoal){
Template.setButton(this[("posisiDuduk" + _arg1)]);
this[("posisiDuduk" + _arg1)].addEventListener(MouseEvent.MOUSE_UP, onMouseUp, false, 0, true);
trace(((((("Customer = " + this[("posisiDuduk" + _arg1)].customer) + " Permintaan = ") + this[("posisiDuduk" + _arg1)].permintaan[_local5]) + " Ghost = ") + this[("posisiDuduk" + _arg1)].customer.ghostDuduk));
this[("posisiDuduk" + _arg1)].customer = setPermintaan(this[("posisiDuduk" + _arg1)].customer, this[("posisiDuduk" + _arg1)].permintaan[_local5], 0, 0);
this[("posisiDuduk" + _arg1)].customer.ghostDuduk.permintaan.obyekPermintaan.obyek.visible = false;
this[("posisiDuduk" + _arg1)].permintaan.splice(_local5, 1);
Tweener.addTween(this[("posisiDuduk" + _arg1)], {time:30, onComplete:setNewCustomer, onCompleteParams:[_arg1], transition:"linear"});
};
};
};
if (this[("posisiDuduk" + _arg1)].permintaan[_local5] == 0){
if (!flagGoal){
setCoin(_arg1, Data[("permintaanPosisi" + this[("posisiDuduk" + _arg1)].index)], _local3);
};
if (!flagGoal){
Tweener.addTween(this[("posisiDuduk" + _arg1)].customer, {time:(1 + _local4), alpha:0, onComplete:removeChildAll, onCompleteParams:[_arg1], transition:"linear"});
if (_local4 > 0){
this[("posisiDuduk" + _arg1)].indexCust = PM_PRNG.nextIntRange(1, Data.maxCustomerShow[(Template.level - 1)]);
Tweener.addTween(this[("posisiDuduk" + _arg1)], {time:(PM_PRNG.nextIntRange(1, 6) + _local4), onComplete:setCustomer, onCompleteParams:[this[("posisiDuduk" + _arg1)].index, this[("posisiDuduk" + _arg1)].indexCust], transition:"linear"});
} else {
this[("coin" + _arg1)].visible = true;
this[("coin" + _arg1)].index = _arg1;
this[("coin" + _arg1)].cntMarah = _local4;
this[("coin" + _arg1)].mouseChildren = false;
Template.setButton(this[("coin" + _arg1)]);
this[("coin" + _arg1)].addEventListener(MouseEvent.MOUSE_UP, onMouseUpCoin, false, 0, true);
};
_local8 = CGame.GetInstance();
Tweener.addTween(_local8[("tanganCabaret" + _arg1)], {time:(1 + _local4), alpha:0, onComplete:setVisibleTanganCabaret, onCompleteParams:[_local8[("tanganCabaret" + this[("posisiDuduk" + _arg1)].index)]], transition:"linear"});
};
};
};
}
private function setCustomer(_arg1:int, _arg2:int):void{
if (!flagGoal){
this[("posisiDuduk" + _arg1)].customer = createCustomer(_arg1, _arg2, this[("posisiDuduk" + _arg1)].customer);
};
}
override public function Update(_arg1:Event){
}
private function setPermintaan(_arg1:MovieClip, _arg2:int, _arg3:int, _arg4:int):MovieClip{
if (!flagGoal){
Data[("permintaanPosisi" + _arg1.parent.index)].splice(0, Data[("permintaanPosisi" + _arg1.parent.index)].length);
if (_arg2 == 1){
_arg1.ghostDuduk.permintaan.obyekPermintaan.obyek.text = Data.permintaanKopi[_arg3];
Data[("permintaanPosisi" + _arg1.parent.index)].push((_arg3 + 1));
};
if (_arg2 == 2){
_arg1.ghostDuduk.permintaan.obyekPermintaan.obyek.text = ((Data.permintaanKopi[_arg3] + " + ") + Data.permintaanCampuran[_arg4]);
Data[("permintaanPosisi" + _arg1.parent.index)].push((_arg3 + 1));
Data[("permintaanPosisi" + _arg1.parent.index)].push((_arg4 + 5));
};
if ((((_arg2 == 1)) || ((_arg2 == 2)))){
_arg1.ghostDuduk.permintaan.obyekPermintaan.gotoAndStop(1);
};
if (_arg2 == 3){
_arg1.ghostDuduk.permintaan.obyekPermintaan.gotoAndStop(2);
Data[("permintaanPosisi" + _arg1.parent.index)].push(9);
};
if (_arg2 == 4){
_arg1.ghostDuduk.permintaan.obyekPermintaan.gotoAndStop(3);
Data[("permintaanPosisi" + _arg1.parent.index)].push(10);
};
_arg1.ghostDuduk.permintaan.obyekPermintaan.scaleX = 0;
_arg1.ghostDuduk.permintaan.obyekPermintaan.scaleY = 0;
Tweener.addTween(_arg1.ghostDuduk.permintaan.obyekPermintaan, {time:1, scaleX:1, scaleY:1, transition:"linear"});
};
return (_arg1);
}
private function onMouseUpCoin(_arg1:MouseEvent):void{
CGame.GetInstance().UI.scoreGoal.score.text = (int(CGame.GetInstance().UI.scoreGoal.score.text) + int(_arg1.currentTarget.nilai.text));
setScore();
this[("posisiDuduk" + _arg1.currentTarget.index)].indexCust = PM_PRNG.nextIntRange(1, Data.maxCustomerShow[(Template.level - 1)]);
Tweener.addTween(this[("posisiDuduk" + _arg1.currentTarget.index)], {time:(PM_PRNG.nextIntRange(1, 6) + _arg1.currentTarget.cntMarah), onComplete:setCustomer, onCompleteParams:[this[("posisiDuduk" + _arg1.currentTarget.index)].index, this[("posisiDuduk" + _arg1.currentTarget.index)].indexCust], transition:"linear"});
_arg1.currentTarget.visible = false;
Template.unsetButton(_arg1.currentTarget);
_arg1.currentTarget.removeEventListener(MouseEvent.MOUSE_UP, onMouseUpCoin);
}
private function createCustomer(_arg1:int, _arg2:int, _arg3:MovieClip):MovieClip{
if (!flagGoal){
if (this[("posisiDuduk" + _arg1)].numChildren > 0){
this[("posisiDuduk" + _arg1)].removeChild(_arg3);
};
if (_arg2 == Data.indexGhostCowok){
_arg3 = new CGhostCowok();
};
if (_arg2 == Data.indexGhostCewek){
_arg3 = new CGhostCewek();
};
if (_arg2 == Data.indexGhostGraveyard){
_arg3 = new CGhostGraveyard();
};
if (_arg2 == Data.indexGhostParty){
_arg3 = new CGhostParty();
};
if (_arg2 == Data.indexGhostCabaret){
_arg3 = new CGhostCabaret();
};
this[("posisiDuduk" + _arg1)].addChild(_arg3);
this[("coin" + _arg1)].nilai.text = 0;
_arg3.index = this[("posisiDuduk" + _arg1)].index;
_arg3.level = Template.level;
_arg3 = Template.gantiChild(_arg3, _arg3.ghostDatang);
Tweener.addTween(_arg3, {time:(_arg3.ghostDatang.totalFrames / 40), onComplete:customerDuduk, onCompleteParams:[_arg3], transition:"linear"});
this[("posisiDuduk" + _arg1)].permintaan = [0, 3, 4];
};
return (_arg3);
}
private function setScore():void{
var _local1:int;
if (int(CGame.GetInstance().UI.scoreGoal.score.text) >= Template.goal){
flagGoal = true;
Template.pauseGame(true, true);
_local1 = 1;
while (_local1 <= 3) {
if (this[("posisiDuduk" + _local1)].numChildren > 0){
Template.killObyek(this[("posisiDuduk" + _local1)].customer);
};
_local1++;
};
if (Template.level < Template.maxLevel){
Main.GetInstance().InitNextLevel();
} else {
Main.GetInstance().InitCongratulation();
};
};
}
public static function GetInstance():CCustomer{
return (CGameGlobal);
}
}
}//package
Section 98
//CGame (CGame)
package {
import flash.display.*;
import flash.events.*;
import caurina.transitions.*;
public class CGame extends CBaseMovieClip {
public var tanganCabaret2:MovieClip;
public var mejaBar:MovieClip;
public var tanganCabaret1:MovieClip;
public var tanganCabaret3:MovieClip;
public var cekJam:int;// = 0
public var mejaKerja:MovieClip;
public var overlay:MovieClip;
public var btnSound:MovieClip;
public var UI:MovieClip;
public var customer:MovieClip;
public var overlayOption:MovieClip;
public var btnPlay:MovieClip;
public var trash:MovieClip;
private static var CGameGlobal:CGame;
public function CGame(){
super("update");
CGameGlobal = this;
trace("init cgame");
init();
}
private function init():void{
UI.jam.gotoAndStop(1);
overlay.visible = false;
var _local1 = 1;
while (_local1 <= 3) {
this[("tanganCabaret" + _local1)].visible = false;
_local1++;
};
Template.setLevel();
UI.scoreGoal.score.text = Template.score;
UI.scoreGoal.goal.text = Template.goal;
trash.addEventListener(MouseEvent.MOUSE_UP, onMouseUp, false, 0, true);
btnPlay.gotoAndStop(1);
Template.setButton(btnPlay);
Template.setButton(btnSound);
overlayOption.visible = false;
btnPlay.addEventListener(MouseEvent.MOUSE_UP, onMouseUp, false, 0, true);
btnSound.addEventListener(MouseEvent.MOUSE_UP, onMouseUp, false, 0, true);
Template.setSound(btnSound);
}
private function onMouseUp(_arg1:MouseEvent):void{
var _local2:MovieClip;
var _local3:int;
var _local4:MovieClip;
if ((((_arg1.currentTarget.name == "trash")) && (_arg1.currentTarget.buttonMode))){
CBarista.GetInstance().init();
CMejaKerja.GetInstance().setVisibleTangan_Cangkir(false);
Template.unsetButton(trash);
_local2 = CMejaKerja.GetInstance();
_local3 = 1;
while (_local3 <= Data.maxItemMejaKerja) {
if (_local2[("item" + _local3)] != null){
Template.unsetButton(_local2[("item" + _local3)]);
};
_local3++;
};
Template.unsetButton(_local2["tombolOn"]);
Template.unsetButton(_local2["cangkirKopi"]);
Template.setMouseOutButton(_local2["teko"]);
};
if (_arg1.currentTarget.name == "btnPlay"){
_local4 = CBarista.GetInstance();
if (_arg1.currentTarget.currentFrame == 1){
_arg1.currentTarget.gotoAndStop(2);
overlayOption.visible = true;
Template.pauseGame(true);
UI = Template.pauseTweener(UI, true);
_local4 = Template.pauseTweener(_local4, true);
customer = Template.pauseTweener(customer, true);
mejaKerja = Template.pauseTweener(mejaKerja, true);
} else {
_arg1.currentTarget.gotoAndStop(1);
overlayOption.visible = false;
Template.pauseGame(false);
UI = Template.pauseTweener(UI, false);
_local4 = Template.pauseTweener(_local4, false);
customer = Template.pauseTweener(customer, false);
mejaKerja = Template.pauseTweener(mejaKerja, false);
};
};
if (_arg1.currentTarget.name == "btnSound"){
Template.toggleSound(_arg1.currentTarget);
};
}
private function setDetakJam():void{
UI.jam.scaleX = 1;
UI.jam.scaleY = 1;
UI.jam.alpha = 1;
Tweener.addTween(UI.jam, {time:0.5, scaleX:1.2, scaleY:1.2, alpha:0.3, onComplete:setDetakJam, transition:"linear"});
}
override public function Update(_arg1:Event){
var _local2:int;
if ((cekJam / (40 * 60)) < Template.time){
UI.jam.jarumPanjang.rotation = (UI.jam.jarumPanjang.rotation + ((12 * 360) / ((40 * 60) * Template.time)));
UI.jam.jarumPendek.rotation = (UI.jam.jarumPendek.rotation + (360 / ((40 * 60) * Template.time)));
cekJam++;
if ((cekJam / (40 * 60)) == (Template.time - 0.5)){
setDetakJam();
};
} else {
Template.pauseGame(true, true);
customer.flagGoal = true;
_local2 = 1;
while (_local2 <= 3) {
if (customer[("posisiDuduk" + _local2)].numChildren > 0){
Template.killObyek(customer[("posisiDuduk" + _local2)].customer);
};
_local2++;
};
Main.GetInstance().InitGameOver();
};
}
public static function GetInstance():CGame{
return (CGameGlobal);
}
}
}//package
Section 99
//CGameOver (CGameOver)
package {
import flash.display.*;
import flash.events.*;
public class CGameOver extends CBaseMovieClip {
public var btnTryAgain:MovieClip;
public var btnMainMenu:MovieClip;
public var btnMoreGames:MovieClip;
private static var CGameGlobal:CGameOver;
public function CGameOver(){
super("update");
CGameGlobal = this;
trace("init CGameOver");
init();
}
private function onMouseUp(_arg1:MouseEvent):void{
if ((((_arg1.currentTarget.name == "btnTryAgain")) || ((_arg1.currentTarget.name == "btnMainMenu")))){
Main.GetInstance().KillWindow("EndGame");
Main.GetInstance().KillWindow("Game");
Template.buttonSound();
};
if (_arg1.currentTarget.name == "btnTryAgain"){
Main.GetInstance().InitGame();
};
if (_arg1.currentTarget.name == "btnMainMenu"){
Main.GetInstance().InitMainMenu();
};
if (_arg1.currentTarget.name == "btnMoreGames"){
Template.moreGame();
Template.buttonSound();
};
}
override public function Update(_arg1:Event){
}
private function init():void{
Main.GetInstance().submitScore(CGame.GetInstance().UI.scoreGoal.score.text);
Template.setButton(btnTryAgain);
Template.setButton(btnMainMenu);
btnTryAgain.addEventListener(MouseEvent.MOUSE_UP, onMouseUp, false, 0, true);
btnMainMenu.addEventListener(MouseEvent.MOUSE_UP, onMouseUp, false, 0, true);
}
public static function GetInstance():CGameOver{
return (CGameGlobal);
}
}
}//package
Section 100
//CGhostCabaret (CGhostCabaret)
package {
import flash.display.*;
import flash.events.*;
public class CGhostCabaret extends CBaseMovieClip {
public var level:int;
public var ghostDatang:MovieClip;
public var ghostMarah:MovieClip;
public var index:int;
public var ghostDuduk:MovieClip;
private static var CGameGlobal:CGhostCabaret;
public function CGhostCabaret(){
super("update");
CGameGlobal = this;
trace("init CGhostCabaret");
}
override public function Update(_arg1:Event){
}
public static function GetInstance():CGhostCabaret{
return (CGameGlobal);
}
}
}//package
Section 101
//CGhostCewek (CGhostCewek)
package {
import flash.display.*;
import flash.events.*;
public class CGhostCewek extends CBaseMovieClip {
public var level:int;
public var ghostDatang:MovieClip;
public var ghostMarah:MovieClip;
public var index:int;
public var ghostDuduk:MovieClip;
private static var CGameGlobal:CGhostCewek;
public function CGhostCewek(){
super("update");
CGameGlobal = this;
trace("init CGhostCewek");
}
override public function Update(_arg1:Event){
}
public static function GetInstance():CGhostCewek{
return (CGameGlobal);
}
}
}//package
Section 102
//CGhostCowok (CGhostCowok)
package {
import flash.display.*;
import flash.events.*;
public class CGhostCowok extends CBaseMovieClip {
public var level:int;
public var ghostDatang:MovieClip;
public var ghostMarah:MovieClip;
public var index:int;
public var ghostDuduk:MovieClip;
private static var CGameGlobal:CGhostCowok;
public function CGhostCowok(){
super("update");
CGameGlobal = this;
trace("init CGhostCowok");
}
override public function Update(_arg1:Event){
}
public static function GetInstance():CGhostCowok{
return (CGameGlobal);
}
}
}//package
Section 103
//CGhostGraveyard (CGhostGraveyard)
package {
import flash.display.*;
import flash.events.*;
public class CGhostGraveyard extends CBaseMovieClip {
public var level:int;
public var ghostDatang:MovieClip;
public var ghostMarah:MovieClip;
public var index:int;
public var ghostDuduk:MovieClip;
private static var CGameGlobal:CGhostGraveyard;
public function CGhostGraveyard(){
super("update");
CGameGlobal = this;
trace("init CGhostGraveyard");
}
override public function Update(_arg1:Event){
}
public static function GetInstance():CGhostGraveyard{
return (CGameGlobal);
}
}
}//package
Section 104
//CGhostParty (CGhostParty)
package {
import flash.display.*;
import flash.events.*;
public class CGhostParty extends CBaseMovieClip {
public var level:int;
public var ghostDatang:MovieClip;
public var ghostMarah:MovieClip;
public var index:int;
public var ghostDuduk:MovieClip;
private static var CGameGlobal:CGhostParty;
public function CGhostParty(){
super("update");
CGameGlobal = this;
trace("init CGhostParty");
}
override public function Update(_arg1:Event){
}
public static function GetInstance():CGhostParty{
return (CGameGlobal);
}
}
}//package
Section 105
//CMainMenu (CMainMenu)
package {
import flash.display.*;
import flash.events.*;
public class CMainMenu extends MovieClip {
public var btnMoreGames:MovieClip;
public var btnStart:MovieClip;
public var btnTutorial:MovieClip;
public function CMainMenu(){
Main.GetInstance().submitScore(100);
mouseEnabled = false;
Template.setButton(btnStart);
btnStart.addEventListener(MouseEvent.MOUSE_UP, onMouseUp, false, 0, true);
}
private function onMouseUp(_arg1:MouseEvent):void{
if (_arg1.currentTarget.name == "btnStart"){
Main.GetInstance().KillWindow("MainMenu");
Main.GetInstance().InitTutorial();
Template.buttonSound();
};
if (_arg1.currentTarget.name == "btnTutorial"){
Main.GetInstance().KillWindow("MainMenu");
Main.GetInstance().InitTutorial();
Template.buttonSound();
};
if (_arg1.currentTarget.name == "btnMoreGames"){
Template.moreGame();
Template.buttonSound();
};
}
}
}//package
Section 106
//CMejaBar (CMejaBar)
package {
import flash.display.*;
import flash.events.*;
import caurina.transitions.*;
public class CMejaBar extends CBaseMovieClip {
public var cangkir:MovieClip;
public var sugar:MovieClip;
public var ambil:Boolean;// = false
public var milk:MovieClip;
public var obyekMove:MovieClip;
private static var CGameGlobal:CMejaBar;
public function CMejaBar(){
super("update");
CGameGlobal = this;
trace("init CMejaBar");
init();
}
private function onMouseUp(_arg1:MouseEvent):void{
if ((((((_arg1.currentTarget.name == "cangkir")) && ((Data.statusBikinKopi == 0)))) && (!(ambil)))){
CBarista.GetInstance().setBaristaBikinKopi();
};
if (((((!(ambil)) && ((CMejaKerja.GetInstance().step < 7)))) && ((Data.statusBikinKopi < 3)))){
if (_arg1.currentTarget.name == "milk"){
setAmbil(_arg1.currentTarget, 9);
};
if (_arg1.currentTarget.name == "sugar"){
setAmbil(_arg1.currentTarget, 10);
};
};
}
private function onMouseMoveGame(_arg1:MouseEvent):void{
obyekMove.x = CGame.GetInstance().mouseX;
obyekMove.y = CGame.GetInstance().mouseY;
}
private function setOverlay():void{
CGame.GetInstance().overlay.visible = false;
}
private function init():void{
Template.setButton(milk);
Template.setButton(sugar);
cangkir.addEventListener(MouseEvent.MOUSE_UP, onMouseUp, false, 0, true);
milk.addEventListener(MouseEvent.MOUSE_UP, onMouseUp, false, 0, true);
sugar.addEventListener(MouseEvent.MOUSE_UP, onMouseUp, false, 0, true);
}
private function setAmbil(_arg1:MovieClip, _arg2:int):void{
Template.unsetButton(cangkir);
Template.unsetButton(milk);
Template.unsetButton(sugar);
_arg1.visible = false;
_arg1.ambil = true;
ambil = true;
if (_arg2 == 9){
obyekMove = Template.createMovie(obyekMove, CMilkMove, CGame.GetInstance(), false, CGame.GetInstance().mouseX, CGame.GetInstance().mouseY);
} else {
obyekMove = Template.createMovie(obyekMove, CSugarMove, CGame.GetInstance(), false, CGame.GetInstance().mouseX, CGame.GetInstance().mouseY);
};
obyekMove.mouseChildren = false;
obyekMove.mouseEnabled = false;
CGame.GetInstance().overlay.visible = true;
CGame.GetInstance().useHandCursor = true;
CGame.GetInstance().buttonMode = true;
CGame.GetInstance().addEventListener(MouseEvent.MOUSE_MOVE, onMouseMoveGame, false, 0, true);
CGame.GetInstance().addEventListener(MouseEvent.MOUSE_DOWN, onMouseDownGame, false, 0, true);
Data.permintaanTambahan = _arg2;
}
override public function Update(_arg1:Event){
}
private function onMouseDownGame(_arg1:MouseEvent):void{
if (ambil){
CGame.GetInstance().removeEventListener(MouseEvent.MOUSE_DOWN, onMouseDownGame);
if (Data.statusBikinKopi == 0){
Template.setButton(cangkir);
};
Template.setButton(milk);
Template.setButton(sugar);
if (milk.ambil){
milk.visible = true;
milk.ambil = false;
} else {
if (sugar.ambil){
sugar.visible = true;
sugar.ambil = false;
};
};
ambil = false;
Template.killObyek(obyekMove);
Tweener.addTween(CGame.GetInstance().overlay, {time:0.5, onComplete:setOverlay, transition:"linear"});
CGame.GetInstance().useHandCursor = false;
CGame.GetInstance().buttonMode = false;
};
}
public static function GetInstance():CMejaBar{
return (CGameGlobal);
}
}
}//package
Section 107
//CMejaKerja (CMejaKerja)
package {
import flash.display.*;
import flash.events.*;
import caurina.transitions.*;
public class CMejaKerja extends CBaseMovieClip {
public var item3:MovieClip;
public var item4:MovieClip;
public var item6:MovieClip;
public var item8:MovieClip;
public var item5:MovieClip;
public var item7:MovieClip;
public var item1:MovieClip;
public var tombolOff:MovieClip;
public var tangan:MovieClip;
public var teko:MovieClip;
public var statusCampuranKopi:Boolean;
public var bayangan1:MovieClip;
public var bayangan2:MovieClip;
public var bayangan4:MovieClip;
public var bayangan5:MovieClip;
public var bayangan6:MovieClip;
public var bayangan7:MovieClip;
public var bayangan8:MovieClip;
public var bayangan3:MovieClip;
public var posYTeko:int;
public var step:int;
public var cangkirKopi:MovieClip;
public var tombolOn:MovieClip;
public var item2:MovieClip;
private static var CGameGlobal:CMejaKerja;
public function CMejaKerja(){
super("update");
CGameGlobal = this;
trace("init CMejaKerja");
init();
}
private function selesaiMenuangAir():void{
step = 6;
CBarista.GetInstance().swapBarista(Data.indexBaristaMeracikKopi, Data.indexBaristaMenungguKopi);
setCampuranKopi(true);
Template.swapChild(tangan, tangan[("tangan" + Data.indexTanganMenuangAir)], tangan[("tangan" + Data.indexTanganMenunggu)]);
teko.visible = true;
cangkirKopi.nextFrame();
Template.setButton(cangkirKopi);
Template.setButton(CGame.GetInstance().trash);
Template.setMouseOverButton(teko);
}
private function init():void{
var _local1:int;
setVisibleTangan_Cangkir(false);
Template.removeObyekChildAll(tangan);
tangan.addChild(tangan[("tangan" + Data.indexTanganMenunggu)]);
_local1 = 1;
while (_local1 <= Data.maxItemMejaKerja) {
if (this[("item" + _local1)] != null){
this[("item" + _local1)].index = _local1;
};
_local1++;
};
tombolOn.gotoAndStop(1);
tombolOff.gotoAndStop(2);
teko.asapTeko.visible = false;
teko.asapTeko.gotoAndStop(1);
teko.rotation = 0;
posYTeko = teko.y;
step = 0;
_local1 = 1;
while (_local1 <= Data.maxItemMejaKerja) {
if (this[("item" + _local1)] != null){
this[("item" + _local1)].addEventListener(MouseEvent.MOUSE_UP, onMouseUp, false, 0, true);
};
_local1++;
};
tombolOn.addEventListener(MouseEvent.MOUSE_UP, onMouseUp, false, 0, true);
tombolOff.addEventListener(MouseEvent.MOUSE_UP, onMouseUp, false, 0, true);
teko.addEventListener(MouseEvent.MOUSE_UP, onMouseUp, false, 0, true);
cangkirKopi.addEventListener(MouseEvent.MOUSE_UP, onMouseUp, false, 0, true);
tombolOn.visible = false;
tombolOff.visible = false;
}
private function selesaiMengadukKopi():void{
step = 8;
CBarista.GetInstance().swapBarista(Data.indexBaristaMeracikKopi, Data.indexBaristaBawaCangkir);
CBarista.GetInstance().setBaristaMuncul(Data.indexBaristaBawaCangkir);
Template.swapChild(tangan, tangan[("tangan" + Data.indexTanganMengadukKopi)], tangan[("tangan" + Data.indexTanganMenunggu)]);
cangkirKopi.sendok.visible = true;
setVisibleTangan_Cangkir(false);
Data.statusBikinKopi = 3;
Template.setButton(CGame.GetInstance().trash);
setMouseOutButton();
}
private function setCampuranKopi(_arg1:Boolean):void{
var _local2:int;
if (!statusCampuranKopi){
_local2 = ((Data.maxItemMejaKerja / 2) + 1);
while (_local2 <= Data.maxItemMejaKerja) {
if (this[("item" + _local2)] != null){
if (_arg1){
Template.setButton(this[("item" + _local2)]);
} else {
Template.unsetButton(this[("item" + _local2)]);
};
};
_local2++;
};
};
}
private function setTekoDingin():void{
step = 2;
Template.setButton(tombolOn);
Template.unsetButton(teko);
Template.setButton(CGame.GetInstance().trash);
setCampuranKopi(true);
}
private function onMouseUp(_arg1:MouseEvent):void{
var _local2:int;
if (Data.statusBikinKopi == 2){
if (((((((!((_arg1.currentTarget.index == null))) && ((_arg1.currentTarget.index <= (Data.maxItemMejaKerja / 2))))) && ((step == 0)))) && (_arg1.currentTarget.buttonMode))){
step = 1;
_local2 = 1;
while (_local2 <= (Data.maxItemMejaKerja / 2)) {
if (this[("item" + _local2)] != null){
Template.unsetButton(this[("item" + _local2)]);
};
_local2++;
};
CBarista.GetInstance().swapBarista(Data.indexBaristaMenungguKopi, Data.indexBaristaMeracikKopi);
Template.swapChild(tangan, tangan[("tangan" + Data.indexTanganMenunggu)], tangan[("tangan" + Data.indexTanganMenuangKopi)]);
tangan[("tangan" + Data.indexTanganMenuangKopi)].gotoAndPlay(1);
_arg1.currentTarget.sendok.visible = false;
Tweener.addTween(this, {time:((tangan[("tangan" + Data.indexTanganMenuangKopi)].totalFrames / 40) + 0.3), onComplete:selesaiMenuangKopi, onCompleteParams:[_arg1.currentTarget.index], transition:"linear"});
Data.permintaan.push(_arg1.currentTarget.index);
setCampuranKopi(false);
};
if (((((((!((_arg1.currentTarget.index == null))) && ((_arg1.currentTarget.index > (Data.maxItemMejaKerja / 2))))) && (!(statusCampuranKopi)))) && (_arg1.currentTarget.buttonMode))){
_local2 = ((Data.maxItemMejaKerja / 2) + 1);
while (_local2 <= Data.maxItemMejaKerja) {
if (this[("item" + _local2)] != null){
Template.unsetButton(this[("item" + _local2)]);
};
_local2++;
};
if (step == 0){
_local2 = 1;
while (_local2 <= (Data.maxItemMejaKerja / 2)) {
if (this[("item" + _local2)] != null){
Template.unsetButton(this[("item" + _local2)]);
};
_local2++;
};
};
Template.unsetButton(teko);
Template.unsetButton(cangkirKopi);
CBarista.GetInstance().swapBarista(Data.indexBaristaMenungguKopi, Data.indexBaristaMeracikKopi);
Template.swapChild(tangan, tangan[("tangan" + Data.indexTanganMenunggu)], tangan[("tangan" + Data.indexTanganMenuangKopi)]);
tangan[("tangan" + Data.indexTanganMenuangKopi)].gotoAndPlay(1);
Tweener.addTween(this, {time:((tangan[("tangan" + Data.indexTanganMenuangKopi)].totalFrames / 40) + 0.3), onComplete:selesaiMenuangCampuranKopi, onCompleteParams:[_arg1.currentTarget.index], transition:"linear"});
Data.permintaan.push(_arg1.currentTarget.index);
setCampuranKopi(false);
};
if ((((((((_arg1.currentTarget.name == "tombolOn")) && ((_arg1.currentTarget.currentFrame == 1)))) && ((step == 2)))) && (_arg1.currentTarget.buttonMode))){
_arg1.currentTarget.gotoAndStop(2);
};
if ((((((_arg1.currentTarget.name == "tombolOff")) && ((_arg1.currentTarget.currentFrame == 1)))) && (_arg1.currentTarget.buttonMode))){
_arg1.currentTarget.gotoAndStop(2);
};
if ((((((((_arg1.currentTarget.name == "tombolOn")) && ((_arg1.currentTarget.currentFrame == 2)))) && ((step == 2)))) && (_arg1.currentTarget.buttonMode))){
Template.unsetButton(CGame.GetInstance().trash);
setCampuranKopi(false);
tombolOff.gotoAndStop(1);
Template.unsetButton(tombolOn);
Template.setButton(tombolOff);
Tweener.addTween(this, {time:Data.waktuMatangTeko, onComplete:tekoMatang, transition:"linear"});
};
if ((((((_arg1.currentTarget.name == "tombolOff")) && ((_arg1.currentTarget.currentFrame == 2)))) && (_arg1.currentTarget.buttonMode))){
if (step == 3){
step = 4;
Tweener.removeTweens(teko);
teko.rotation = 0;
teko.y = posYTeko;
Template.setButton(teko);
teko.asapTeko.visible = false;
teko.asapTeko.gotoAndStop(1);
tombolOn.gotoAndStop(1);
Template.unsetButton(tombolOn);
Template.unsetButton(tombolOff);
Tweener.addTween(this, {time:Data.waktuTekoDingin, onComplete:setTekoDingin, transition:"linear"});
};
if (step == 2){
Tweener.removeTweens(this);
tombolOn.gotoAndStop(1);
Template.setButton(tombolOn);
Template.unsetButton(tombolOff);
Template.setButton(CGame.GetInstance().trash);
setCampuranKopi(true);
};
};
if ((((((_arg1.currentTarget.name == "teko")) && ((step == 4)))) && (_arg1.currentTarget.buttonMode))){
step = 5;
setCampuranKopi(false);
Tweener.removeTweens(this);
Template.unsetButton(teko);
CBarista.GetInstance().swapBarista(Data.indexBaristaMenungguKopi, Data.indexBaristaMeracikKopi);
Template.swapChild(tangan, tangan[("tangan" + Data.indexTanganMenunggu)], tangan[("tangan" + Data.indexTanganMenuangAir)]);
tangan[("tangan" + Data.indexTanganMenuangAir)].gotoAndPlay(1);
_arg1.currentTarget.visible = false;
Tweener.addTween(this, {time:((tangan[("tangan" + Data.indexTanganMenuangAir)].totalFrames / 40) + 0.5), onComplete:selesaiMenuangAir, transition:"linear"});
};
if ((((((_arg1.currentTarget.name == "cangkirKopi")) && ((step == 6)))) && (_arg1.currentTarget.buttonMode))){
step = 7;
Template.unsetButton(CGame.GetInstance().trash);
Template.unsetButton(CMejaBar.GetInstance().milk);
Template.unsetButton(CMejaBar.GetInstance().sugar);
setCampuranKopi(false);
Template.unsetButton(cangkirKopi);
CBarista.GetInstance().swapBarista(Data.indexBaristaMenungguKopi, Data.indexBaristaMeracikKopi);
Template.swapChild(tangan, tangan[("tangan" + Data.indexTanganMenunggu)], tangan[("tangan" + Data.indexTanganMengadukKopi)]);
tangan[("tangan" + Data.indexTanganMengadukKopi)].gotoAndPlay(1);
_arg1.currentTarget.sendok.visible = false;
Tweener.addTween(this, {time:((tangan[("tangan" + Data.indexTanganMengadukKopi)].totalFrames / 40) + 0.5), onComplete:selesaiMengadukKopi, transition:"linear"});
};
};
}
private function selesaiMenuangKopi(_arg1:int):void{
step = 4;
Template.setButton(teko);
CBarista.GetInstance().swapBarista(Data.indexBaristaMeracikKopi, Data.indexBaristaMenungguKopi);
setCampuranKopi(true);
Template.swapChild(tangan, tangan[("tangan" + Data.indexTanganMenuangKopi)], tangan[("tangan" + Data.indexTanganMenunggu)]);
this[("item" + _arg1)].sendok.visible = true;
Template.setButton(tombolOn);
Template.setButton(CGame.GetInstance().trash);
Template.setMouseOverButton(this[("item" + _arg1)]);
setCampuranKopi(true);
}
private function setSiapBikinKopi():void{
Data.statusBikinKopi = 2;
var _local1 = 1;
while (_local1 <= Data.maxItemMejaKerja) {
if (this[("item" + _local1)] != null){
Template.setButton(this[("item" + _local1)]);
};
_local1++;
};
}
public function setVisibleTangan_Cangkir(_arg1:Boolean):void{
tangan.visible = _arg1;
cangkirKopi.visible = _arg1;
if (_arg1){
tangan.alpha = 0;
cangkirKopi.alpha = 0;
cangkirKopi.gotoAndStop(1);
Tweener.addTween(tangan, {time:1, alpha:1, transition:"linear"});
Tweener.addTween(cangkirKopi, {time:1, alpha:1, onComplete:setSiapBikinKopi, transition:"linear"});
Data.permintaan.splice(0, Data.permintaan.length);
};
}
override public function Update(_arg1:Event){
}
private function tekoMatang():void{
step = 3;
teko.asapTeko.gotoAndPlay(1);
teko.asapTeko.visible = true;
animasiTeko();
}
private function selesaiMenuangCampuranKopi(_arg1:int):void{
var _local2:int;
CBarista.GetInstance().swapBarista(Data.indexBaristaMeracikKopi, Data.indexBaristaMenungguKopi);
setCampuranKopi(false);
statusCampuranKopi = true;
Template.swapChild(tangan, tangan[("tangan" + Data.indexTanganMenuangKopi)], tangan[("tangan" + Data.indexTanganMenunggu)]);
if (step == 0){
_local2 = 1;
while (_local2 <= (Data.maxItemMejaKerja / 2)) {
if (this[("item" + _local2)] != null){
Template.setButton(this[("item" + _local2)]);
};
_local2++;
};
};
if (step == 4){
Template.setButton(teko);
};
if (step == 6){
Template.setButton(cangkirKopi);
};
Template.setButton(CGame.GetInstance().trash);
Template.setMouseOverButton(this[("item" + _arg1)]);
}
private function animasiTeko():void{
Tweener.addTween(teko, {delay:0, time:0.2, rotation:5, transition:"linear"});
Tweener.addTween(teko, {delay:0.2, time:0.2, rotation:-5, transition:"linear"});
Tweener.addTween(teko, {delay:0.4, time:0.2, rotation:5, transition:"linear"});
Tweener.addTween(teko, {delay:0.6, time:0.2, rotation:-5, transition:"linear"});
Tweener.addTween(teko, {time:0.4, y:(teko.y - 5), transition:"linear"});
Tweener.addTween(teko, {delay:0.4, time:0.4, y:teko.y, onComplete:animasiTeko, transition:"linear"});
}
private function setMouseOutButton():void{
var _local1 = 1;
while (_local1 <= Data.maxItemMejaKerja) {
if (this[("item" + _local1)] != null){
Template.setMouseOutButton(this[("item" + _local1)]);
};
_local1++;
};
Template.setMouseOutButton(teko);
}
public static function GetInstance():CMejaKerja{
return (CGameGlobal);
}
}
}//package
Section 108
//CMenuGame (CMenuGame)
package {
import flash.display.*;
import flash.events.*;
public class CMenuGame extends CBaseMovieClip {
public var btnMainMenu:MovieClip;
public var btnMoreGames:MovieClip;
public var btnResume:MovieClip;
private static var CGameGlobal:CMenuGame;
public function CMenuGame(){
super("update");
CGameGlobal = this;
trace("init CMenuGame");
init();
}
private function onMouseUp(_arg1:MouseEvent):void{
if (_arg1.currentTarget.name == "btnResume"){
Main.GetInstance().KillWindow("MenuGame");
Template.pauseGame(false);
Template.buttonSound();
};
if (_arg1.currentTarget.name == "btnMainMenu"){
Main.GetInstance().KillWindow("MenuGame");
Main.GetInstance().KillWindow("Game");
Main.GetInstance().InitMainMenu();
Template.buttonSound();
};
if (_arg1.currentTarget.name == "btnMoreGames"){
Template.moreGame();
Template.buttonSound();
};
}
override public function Update(_arg1:Event){
}
private function init():void{
Template.setButton(btnResume);
Template.setButton(btnMainMenu);
Template.setButton(btnMoreGames);
btnResume.addEventListener(MouseEvent.MOUSE_UP, onMouseUp, false, 0, true);
btnMainMenu.addEventListener(MouseEvent.MOUSE_UP, onMouseUp, false, 0, true);
btnMoreGames.addEventListener(MouseEvent.MOUSE_UP, onMouseUp, false, 0, true);
}
public static function GetInstance():CMenuGame{
return (CGameGlobal);
}
}
}//package
Section 109
//CMilkMove (CMilkMove)
package {
import flash.display.*;
public dynamic class CMilkMove extends MovieClip {
}
}//package
Section 110
//CNextLevel (CNextLevel)
package {
import flash.display.*;
import flash.events.*;
public class CNextLevel extends CBaseMovieClip {
public var btnMainMenu:MovieClip;
public var btnNextLevel:MovieClip;
public var btnMoreGames:MovieClip;
private static var CGameGlobal:CNextLevel;
public function CNextLevel(){
super("update");
CGameGlobal = this;
trace("init CNextLevel");
init();
}
private function onMouseUp(_arg1:MouseEvent):void{
if (_arg1.currentTarget.name == "btnNextLevel"){
Main.GetInstance().KillWindow("NextLevel");
Template.score = CGame.GetInstance().UI.scoreGoal.score.text;
Main.GetInstance().KillWindow("Game");
Template.level++;
Main.GetInstance().InitGame();
Template.buttonSound();
};
if (_arg1.currentTarget.name == "btnMainMenu"){
Main.GetInstance().KillWindow("NextLevel");
Main.GetInstance().KillWindow("Game");
Main.GetInstance().InitMainMenu();
Template.buttonSound();
};
if (_arg1.currentTarget.name == "btnMoreGames"){
Template.moreGame();
Template.buttonSound();
};
}
override public function Update(_arg1:Event){
}
private function init():void{
Main.GetInstance().submitScore(CGame.GetInstance().UI.scoreGoal.score.text);
Template.setButton(btnNextLevel);
Template.setButton(btnMainMenu);
btnNextLevel.addEventListener(MouseEvent.MOUSE_UP, onMouseUp, false, 0, true);
btnMainMenu.addEventListener(MouseEvent.MOUSE_UP, onMouseUp, false, 0, true);
}
public static function GetInstance():CNextLevel{
return (CGameGlobal);
}
}
}//package
Section 111
//COptionBar (COptionBar)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
public class COptionBar extends MovieClip {
public var mMusic:MovieClip;
private var mSfxChannel:Array;
public var mQuality:MovieClip;
public var mSFX:MovieClip;
private var mBgm:Sound;
public var mPopUp:MovieClip;
private var mBgmFlag:Boolean;
private var mBgmChannel:SoundChannel;
private var mSfxFlag:Boolean;// = true
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;
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");
}
public function StopSFX(_arg1:int){
mSfxChannel[_arg1].stop();
}
private function MusicOut(_arg1:MouseEvent):void{
if (!mBgmFlag){
mMusic.gotoAndStop(2);
} else {
mMusic.gotoAndStop(1);
};
HidePopUp();
}
private function HidePopUp(){
mPopUp.alpha = 0;
}
public function PlaySFX(_arg1:String, _arg2:Number=1):int{
if (!mSfxFlag){
return;
};
var _local3:Class = (getDefinitionByName(_arg1) as Class);
var _local4:Sound = new (_local3);
var _local5:SoundTransform = new SoundTransform(_arg2, 0);
var _local6:SoundChannel = _local4.play(0, 1, _local5);
mSfxChannel.push(_local6);
return ((mSfxChannel.length - 1));
}
private function QualityOver(_arg1:MouseEvent):void{
mQuality.gotoAndStop(2);
ShowPopUp((("Quality: " + Main.GetInstance().stage.quality) + " (B)"));
}
private function SFXOver(_arg1:MouseEvent):void{
if (!mSfxFlag){
mSFX.gotoAndStop(4);
} else {
mSFX.gotoAndStop(3);
};
ShowPopUp("Toggle SFX (N)");
}
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);
};
}
public function ChangeBGMVol(_arg1:Number){
mBgmVol = _arg1;
mBgmChannel.soundTransform = new SoundTransform(mBgmVol, 0);
}
private function StartBGM(){
trace(("start bgm : " + mBgm));
if (!mBgm){
return;
};
mBgmFlag = true;
var _local1:SoundTransform = new SoundTransform(mBgmVol, 0);
mBgmChannel = mBgm.play(0, 999, _local1);
MusicOut(null);
}
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;
}
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);
};
}
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)"));
}
private function QualityOut(_arg1:MouseEvent):void{
mQuality.gotoAndStop(1);
HidePopUp();
}
private function MusicOver(_arg1:MouseEvent):void{
if (!mBgmFlag){
mMusic.gotoAndStop(4);
} else {
mMusic.gotoAndStop(3);
};
ShowPopUp("Toggle Music (M)");
}
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();
};
}
}
}//package
Section 112
//CSugarMove (CSugarMove)
package {
import flash.display.*;
public dynamic class CSugarMove extends MovieClip {
}
}//package
Section 113
//CTutorial (CTutorial)
package {
import flash.display.*;
import flash.events.*;
public class CTutorial extends CBaseMovieClip {
public var btnNext:MovieClip;
public var obyek:MovieClip;
public var btnStart:MovieClip;
public var btnPrev:MovieClip;
private static var CGameGlobal:CTutorial;
public function CTutorial(){
super("update");
CGameGlobal = this;
trace("init CTutorial");
init();
}
private function init():void{
obyek.gotoAndStop(1);
btnPrev.visible = false;
Template.setButton(btnNext);
Template.setButton(btnPrev);
Template.setButton(btnStart);
btnNext.addEventListener(MouseEvent.MOUSE_UP, onMouseUp, false, 0, true);
btnPrev.addEventListener(MouseEvent.MOUSE_UP, onMouseUp, false, 0, true);
btnStart.addEventListener(MouseEvent.MOUSE_UP, onMouseUp, false, 0, true);
}
private function onMouseUp(_arg1:MouseEvent):void{
if (_arg1.currentTarget.name == "btnNext"){
if (obyek.currentFrame == 8){
btnNext.visible = false;
};
if (obyek.currentFrame == 1){
btnPrev.visible = true;
};
if (obyek.currentFrame < 9){
obyek.gotoAndStop((obyek.currentFrame + 1));
};
Template.buttonSound();
};
if (_arg1.currentTarget.name == "btnPrev"){
if (obyek.currentFrame == 2){
btnPrev.visible = false;
};
if (obyek.currentFrame == 9){
btnNext.visible = true;
};
if (obyek.currentFrame > 1){
obyek.gotoAndStop((obyek.currentFrame - 1));
};
Template.buttonSound();
};
if (_arg1.currentTarget.name == "btnStart"){
Template.initLevel();
Main.GetInstance().KillWindow("Tutorial");
Main.GetInstance().InitGame();
Template.buttonSound();
};
}
override public function Update(_arg1:Event){
}
public static function GetInstance():CTutorial{
return (CGameGlobal);
}
}
}//package
Section 114
//Data (Data)
package {
public class Data {
public static var indexArabica = 2;
public static var permintaanPosisi2:Array = new Array();
public static var kopiCampuran:int;
public static var indexGhostParty = 4;
public static var indexBaristaMeracikKopi = 3;
public static var indexChocolate = 5;
public static var indexBaristaNgantarPesanan = 1;
public static var indexTanganMenuangAir = 3;
public static var indexRobusta = 1;
public static var indexBaristaSelesaiAntar = 9;
public static var permintaanCampuran:Array = ["Chocolate", "Cinnamon", "Tea", "Liquer"];
public static var indexCinnamon = 6;
public static var maxItemMejaKerja = 8;
public static var indexLiquer = 8;
public static var indexBaristaBawaCangkir = 4;
public static var indexGhostCowok = 1;
public static var indexCivet = 3;
public static var indexGhostCabaret = 5;
public static var indexTanganMenuangKopi = 2;
public static var statusBikinKopi:int;
public static var indexSpecialMix = 4;
public static var indexBaristaNganggur2 = 6;
public static var indexBaristaNganggur4 = 8;
public static var waktuTekoDingin = 5;
public static var indexBaristaMenungguKopi = 2;
public static var indexBaristaNganggur1 = 5;
public static var indexTea = 7;
public static var indexBaristaNganggur3 = 7;
public static var kopi:int;
public static var indexGhostCewek = 2;
public static var indexTanganMenunggu = 1;
public static var indexTanganMengadukKopi = 4;
public static var permintaan:Array = new Array();
public static var waktuMatangTeko = 1;
public static var permintaanKopi:Array = ["Robusta", "Arabica", "Civet", "SpecialMix"];
public static var permintaanTambahan:int;
public static var permintaanPosisi1:Array = new Array();
public static var permintaanPosisi3:Array = new Array();
public static var indexGhostGraveyard = 3;
public static var maxCustomerShow:Array = [2, 2, 3, 3, 4, 4, 5, 5];
}
}//package
Section 115
//FPS (FPS)
package {
import flash.xml.*;
import flash.display.*;
import flash.text.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import flash.utils.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
public dynamic class FPS extends MovieClip {
public var secondTime:Number;
public var prevSecondTime:Number;
public var frames:Number;
public var prevFrameTime:Number;
public var frameTime:Number;
public var iBar:MovieClip;
public var time:Number;
public var fps:String;
public var tf:TextField;
public function FPS(){
addFrameScript(0, frame1, 1, frame2);
}
function frame2(){
stop();
this.addEventListener(Event.ENTER_FRAME, onEnterFrame);
}
function frame1(){
prevFrameTime = getTimer();
prevSecondTime = getTimer();
frames = 0;
fps = "...";
}
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 116
//Global (Global)
package {
import flash.display.*;
import flash.geom.*;
import flash.net.*;
import flash.external.*;
import flash.utils.*;
public class Global {
protected static const WINDOW_OPEN_FUNCTION:String = "window.open";
public static var STAGE_HEIGHT = 450;
public static var STAGE_WIDTH = 600;
public static function getIsoPoint(_arg1:Point):Point{
return (new Point((_arg1.x - _arg1.y), ((_arg1.x + _arg1.y) / 2)));
}
public static function AngleOfTwoLines(_arg1:Object, _arg2:Object):Number{
var _local3:Number = _arg1.x1;
var _local4:Number = _arg1.y1;
var _local5:Number = _arg1.x2;
var _local6:Number = _arg1.y2;
var _local7:Number = _arg2.x1;
var _local8:Number = _arg2.y1;
var _local9:Number = _arg2.x2;
var _local10:Number = _arg2.y2;
var _local11:Number = Global.Slope(_local3, _local4, _local5, _local6);
var _local12:Number = Global.Slope(_local7, _local8, _local9, _local10);
return (Math.atan(((_local12 - _local11) / (1 + (_local11 * _local12)))));
}
public static function htmlColorToAS(_arg1:String):uint{
var _local2 = "0x";
var _local3 = 1;
while (_local3 < _arg1.length) {
_local2 = _local2.concat(_arg1.charAt(_local3));
_local3++;
};
return (uint(_local2));
}
public static function Slope(_arg1, _arg2, _arg3, _arg4):Number{
var _local5:Number = (_arg1 - _arg3);
var _local6:Number = (_arg2 - _arg4);
return ((_local6 / _local5));
}
public static function duplicateMovieClip(_arg1:MovieClip):MovieClip{
var _local4:Rectangle;
var _local2:Class = Object(_arg1).constructor;
var _local3:MovieClip = new (_local2);
_local3.transform = _arg1.transform;
_local3.filters = _arg1.filters;
_local3.cacheAsBitmap = _arg1.cacheAsBitmap;
_local3.opaqueBackground = _arg1.opaqueBackground;
if (_arg1.scale9Grid){
_local4 = _arg1.scale9Grid;
_local3.scale9Grid = _local4;
};
return (_local3);
}
public static function AngleOfTwoDots(_arg1, _arg2, _arg3, _arg4):Number{
var _local5:Number = (_arg1 - _arg3);
var _local6:Number = (_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://freshgirlsgames.com", _arg2:String="_blank", _arg3:String=""):String{
var _loc_4:URLRequest;
var _loc_5:String;
var opened:Boolean;
var msg:String;
var url = _arg1;
var target = _arg2;
var param3 = _arg3;
var ok:Boolean;
opened = false;
_loc_4 = new URLRequest(url);
msg = "Start the openWindow func ...\n";
if (!ExternalInterface.available){
try {
opened = false;
navigateToURL(_loc_4, target);
msg = (msg + "flag a - 1");
} catch(err:SecurityError) {
navigateToURL(_loc_4, "_blank");
opened = true;
msg = (msg + "flag a - 2");
} finally {
opened = true;
};
msg = (msg + "external interface not available\n");
} else {
try {
_loc_5 = String(ExternalInterface.call("function() {return navigator.userAgent;}")).toLowerCase();
msg = (msg + "Trying extenal interface sandbox security\n");
msg = (msg + "flag b - 1");
opened = false;
} catch(err:SecurityError) {
msg = (msg + (err.message + "\n"));
ok = false;
try {
opened = false;
navigateToURL(_loc_4, target);
msg = (msg + "flag b - 2");
} catch(err:SecurityError) {
opened = true;
msg = (msg + "flag b - 3");
navigateToURL(_loc_4, "_blank");
} finally {
opened = true;
};
} catch(err:Error) {
} finally {
opened = false;
};
if (((ok) && (!(opened)))){
msg = (msg + "External interface available, continuing ...\n");
if (((!((_loc_5.indexOf("firefox") == -1))) || (((!((_loc_5.indexOf("msie") == -1))) && ((uint(_loc_5.substr((_loc_5.indexOf("msie") + 5), 3)) >= 7)))))){
try {
ExternalInterface.call("window.open", _loc_4.url, target);
opened = false;
msg = (msg + "flag c - 1");
msg = (msg + "Trying window.open JS ...\n");
} catch(err:SecurityError) {
msg = (msg + (err.message + "\n"));
trace(("e : " + err.message));
if (!opened){
try {
opened = false;
navigateToURL(_loc_4, target);
msg = (msg + "flag d - 1");
} catch(err:SecurityError) {
opened = true;
navigateToURL(_loc_4, "_blank");
msg = (msg + "flag d - 2");
} finally {
opened = true;
};
};
} catch(err:Error) {
msg = (msg + (err.message + "\n"));
if (!opened){
try {
opened = false;
navigateToURL(_loc_4, target);
msg = (msg + "flag e - 1");
} catch(err:SecurityError) {
opened = true;
navigateToURL(_loc_4, "_blank");
msg = (msg + "flag e - 2");
} finally {
opened = true;
};
};
} finally {
opened = true;
};
} else {
if (!opened){
msg = (msg + "Open with navigateToURL\n");
try {
opened = false;
navigateToURL(_loc_4, target);
msg = (msg + "flag f - 1");
} catch(err:SecurityError) {
navigateToURL(_loc_4, "_blank");
msg = (msg + "flag f - 2");
} finally {
opened = true;
};
};
};
};
};
return (msg);
}
public static function getMoneyString(_arg1:int):String{
var _local2 = "";
var _local3:String = _arg1;
var _local4:int;
var _local5:int = (_local3.length - 1);
while (_local5 >= 0) {
_local4++;
_local2 = (_local3.charAt(_local5) + _local2);
if ((_local4 % 3) == 0){
_local2 = ("," + _local2);
};
_local5--;
};
if (_local2.charAt(0) == ","){
return (_local2.substr(1, (_local2.length - 1)));
};
return (_local2);
}
public static function getFormatedString(_arg1:String, _arg2:Array, _arg3:String="%"):String{
var _local4:String;
for (_local4 in _arg2) {
_arg1 = _arg1.replace((_arg3 + _local4), _arg2[_local4]);
trace(_local4, _arg2[_local4]);
};
return (_arg1);
}
public static function clone(_arg1:Object){
var _local2:ByteArray = new ByteArray();
_local2.writeObject(_arg1);
_local2.position = 0;
return (_local2.readObject());
}
}
}//package
Section 117
//Main (Main)
package {
import flash.display.*;
import flash.text.*;
import flash.events.*;
import spill.localisation.*;
import com.spilgames.api.*;
import flash.media.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.utils.*;
public dynamic class Main extends MovieClip {
private var mContextMenu:ContextMenu;
public var mPreloader:MovieClip;
public var mBgmStartFlag:Boolean;// = false
private var _scoreCallbackID:int;
private var mBgm:SoundChannel;
public var mState:int;
public var lbar:MovieClip;
private var mCongratulation:CCongratulation;
public var mBgmFlag:Boolean;// = true
public var mFPSBar:MovieClip;
private var mMainMenu:CMainMenu;
private var _awardsCallbackID:int;
public var lpc:TextField;
public var xmlData:XML;
public var mSfxFlag:Boolean;// = true
private var mSfx:SoundChannel;
private var mNextLevel:CNextLevel;
public var flag:Boolean;
public var mOptionBar:COptionBar;
private var mTutorial:CTutorial;
private var mGameOver:CGameOver;
public var mBannedWin:CBannedWin;
private var mMenuGame:CMenuGame;
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;
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;
var _local1:SpilGamesServices = SpilGamesServices.getInstance();
_local1.addEventListener("servicesReady", onServicesReady);
_local1.addEventListener("servicesFailed", onServicesFailed);
_local1.connect(this);
}
private function isDomainNOTAllowed(_arg1:Array):Boolean{
var _local4:Number;
var _local2:LocalConnection = new LocalConnection();
var _local3:String = _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);
}
function frame1(){
stop();
xmlData = <LocalisedText><textItem identifier="lb_Coffee_Coffee"><en_us>Coffee</en_us><en_uk>Coffee</en_uk><nl>Koffie</nl><fr>Café</fr><de>Kaffee</de><es>Café</es><br>Café</br><pt>Café</pt><it>Caffè</it><se>Kaffe</se><pl>Kawa</pl><ru>Кофе</ru><id>Kopi</id><ar>Coffee</ar><jp>Coffee</jp><cn>Coffee</cn></textItem><textItem identifier="lb_Coffee_Trash"><en_us>Trash Can</en_us><en_uk>Bin</en_uk><nl>Vuilnis</nl><fr>Poubelle</fr><de>Mülleimer</de><es>Papelera</es><br>Lixeira</br><pt>Lata de Lixo</pt><it>Pattumiera</it><se>Soptunna</se><pl>Kosz na śmieci</pl><ru>Мусор</ru><id>Tempat Sampah</id><ar>Trash Can</ar><jp>Trash Can</jp><cn>Trash Can</cn></textItem><textItem identifier="lb_Congratulation_Congratulation"><en_us>Congratulations!</en_us><en_uk>Congratulations!</en_uk><nl>Gefeliciteerd!</nl><fr>Félicitations !</fr><de>Glückwunsch!</de><es>¡Enhorabuena!</es><br>Parabéns!</br><pt>Parabéns!</pt><it>Complimenti!</it><se>Gratulerar!</se><pl>Gratulacje!</pl><ru>Поздравляем!</ru><id>Selamat!</id><ar>Congratulations!</ar><jp>Congratulations!</jp><cn>Congratulations!</cn></textItem><textItem identifier="lb_Congratulation_Content"><en_us>Thanks for helping me out! All of the customers seems very satisfied. You definitely have the talent to be a barista!</en_us><en_uk>Thanks for helping me out! All the customers seem very satisfied. You definitely have enough talent to be a barista!</en_uk><nl>Bedankt voor je hulp! De klanten lijken zeer tevreden. Je hebt duidelijk talent om koffie te maken!</nl><fr>Merci beaucoup de me dépanner ! Les clients semblent tous très satisfaits. Tu as vraiment ce qu'il faut pour faire du café !</fr><de>Danke für deine Hilfe! Die Kunden sehen alle sehr zufrieden aus. Du hast definitiv das Zeug zu einer guten Kaffeeköchin!</de><es>¡Gracias por ayudarme! Todos los clientes parecen muy satisfechos. ¡Definitivamente tienes talento para hacer café!</es><br>Agradeço por me ajudar! Todos os clientes ficaram bem satisfeitos. Você tem mesmo talento para ser barista!</br><pt>Obrigado por me ajudares! Os clientes parecem estar todos satisfeitos. Sem dúvida que tens talento como barman!</pt><it>Grazie per l'aiuto! Tutti i clienti sembrano molto soddisfatti. Hai sicuramente il talento per fare la barista!</it><se>Tack för att du hjälpt mig! Alla kunderna är mycket nöjda. Du har definitivt talang för att bli en barista!</se><pl>Dziękuję za pomoc! Wszyscy klienci wyglądają na zadowolonych. Jesteś urodzonym baristą!</pl><ru>Спасибо за помощь! Все клиенты остались довольны! Ты и впрямь знаешь толк в кофе!</ru><id>Terima kasih sudah membantuku! Semua pelanggan tampak sangat puas. Kamu jelas berbakat untuk menjadi barista!</id><ar>Thanks for helping me out! All of the customers seems very satisfied. You definitely have the talent to be a barista!</ar><jp>Thanks for helping me out! All of the customers seems very satisfied. You definitely have the talent to be a barista!</jp><cn>Thanks for helping me out! All of the customers seems very satisfied. You definitely have the talent to be a barista!</cn></textItem><textItem identifier="lb_Congratulation_MainMenu"><en_us>Main Menu</en_us><en_uk>Main Menu</en_uk><nl>Hoofdmenu</nl><fr>Menu principal</fr><de>Hauptmenü</de><es>Menú principal</es><br>Menu Principal</br><pt>Menu Principal</pt><it>Menu principale</it><se>Huvudmeny</se><pl>Menu główne</pl><ru>Главное меню</ru><id>Menu Utama</id><ar>Main Menu</ar><jp>Main Menu</jp><cn>Main Menu</cn></textItem><textItem identifier="lb_Congratulation_PlayAgain"><en_us>Play Again</en_us><en_uk>Play Again</en_uk><nl>Opnieuw spelen</nl><fr>Rejouer</fr><de>Nochmal spielen</de><es>Volver a jugar</es><br>Jogar de Novo</br><pt>Jogar Novamente</pt><it>Rigioca</it><se>Spela om</se><pl>Zagraj ponownie</pl><ru>Еще раз</ru><id>Main Lagi</id><ar>Play Again</ar><jp>Play Again</jp><cn>Play Again</cn></textItem><textItem identifier="lb_Game_Goal"><en_us>Target:</en_us><en_uk>Objective:</en_uk><nl>Doel:</nl><fr>But :</fr><de>Ziel:</de><es>Objetivo:</es><br>Meta:</br><pt>Objectivo:</pt><it>Obiettivo:</it><se>Mål:</se><pl>Cel:</pl><ru>Цель:</ru><id>Target:</id><ar>Target:</ar><jp>Target:</jp><cn>Target:</cn></textItem><textItem identifier="lb_Game_Milk"><en_us>Milk</en_us><en_uk>Milk</en_uk><nl>Melk</nl><fr>Lait</fr><de>Milch</de><es>Leche</es><br>Leite</br><pt>Leite</pt><it>Latte</it><se>Mjölk</se><pl>Mleko</pl><ru>Молоко</ru><id>Susu</id><ar>Milk</ar><jp>Milk</jp><cn>Milk</cn></textItem><textItem identifier="lb_Game_Score"><en_us>Score:</en_us><en_uk>Score:</en_uk><nl>Score:</nl><fr>Score :</fr><de>Punkte:</de><es>Puntuación:</es><br>Pontuação:</br><pt>Pontuação:</pt><it>Punteggio:</it><se>Poäng:</se><pl>Wynik:</pl><ru>Счет:</ru><id>Skor:</id><ar>Score:</ar><jp>Score:</jp><cn>Score:</cn></textItem><textItem identifier="lb_Game_Tissue"><en_us>Tissues</en_us><en_uk>Tissues</en_uk><nl>Servetjes</nl><fr>Serviettes</fr><de>Papiertücher</de><es>Servilletas</es><br>Lenços</br><pt>Lenços</pt><it>Fazzolettini di carta</it><se>Servetter</se><pl>Serwetki</pl><ru>Салфетки</ru><id>Tisu</id><ar>Tissues</ar><jp>Tissues</jp><cn>Tissues</cn></textItem><textItem identifier="lb_GameOver_Content"><en_us>Uh oh, the customers have been complaining. I'm sorry, but we're letting you go.</en_us><en_uk>Uh oh, the customers have been complaining. I'm sorry, but we'll have to let you go.</en_uk><nl>Oeps! De klanten lopen te klagen. Sorry, maar we moeten je ontslaan.</nl><fr>Oh non, des clients se sont plaints. Désolés, mais nous devons te renvoyer.</fr><de>Oh oh, die Kunden beschweren sich. Es tut mir leid, aber du bist gefeuert.</de><es>Vaya, los clientes se han estado quejando. Lo siento, pero vamos a despedirte.</es><br>Xi, os clientes estão reclamando. Sinto muito, mas vou ter que te demitir.</br><pt>Ops, os cloietnes estão a queixar-se. lamento, mas foste despedido.</pt><it>Oh oh, i clienti si stanno lamentando. Mi spiace ma dobbiamo licenziarti.</it><se>Åh nej, kunderna har klagat. Tyvärr måste vi ge dig sparken.</se><pl>Niestety klienci się skarżą. Przykro mi, ale musisz odejść.</pl><ru>Похоже, клиенты остались недовольны... Прости, но нам придется расстаться!</ru><id>Gawat, pelanggannya mengeluh. Maaf, kami harus memecatmu.</id><ar>Uh oh, the customers have been complaining. I'm sorry, but we're letting you go.</ar><jp>Uh oh, the customers have been complaining. I'm sorry, but we're letting you go.</jp><cn>Uh oh, the customers have been complaining. I'm sorry, but we're letting you go.</cn></textItem><textItem identifier="lb_GameOver_GameOver"><en_us>Game Over</en_us><en_uk>Game Over</en_uk><nl>Game over</nl><fr>Game over</fr><de>Game Over</de><es>Fin de partida</es><br>Acabou</br><pt>Fim do Jogo</pt><it>Gioco finito </it><se>Game over</se><pl>Koniec gry</pl><ru>Конец игры</ru><id>Game Tamat</id><ar>Game Over</ar><jp>Game Over</jp><cn>Game Over</cn></textItem><textItem identifier="lb_GameOver_TryAgain"><en_us>Try Again</en_us><en_uk>Try again</en_uk><nl>Nog een keer</nl><fr>Essayer de nouveau </fr><de>Nochmal probieren</de><es>¿Volver a intentar?</es><br>Tentar de Novo</br><pt>Tentar Novamente</pt><it>Riprova</it><se>Försök igen</se><pl>Spróbuj ponownie</pl><ru>Еще раз</ru><id>Coba Lagi</id><ar>Try Again</ar><jp>Try Again</jp><cn>Try Again</cn></textItem><textItem identifier="lb_MainMenu_NightShiftCoffee"><en_us>Night Shift Coffee</en_us><en_uk>Night Shift Coffee</en_uk><nl>Avondkoffie</nl><fr>Café de nuit</fr><de>Kaffee für die Nachtschicht</de><es>Café nocturno</es><br>Café Noturno</br><pt>Café da Noite</pt><it>Notte in caffetteria</it><se>Jobba på nattkafé</se><pl>Nocny Dyżur w Kawiarni</pl><ru>Ночное кафе</ru><id>Kopi Malam Hari</id><ar>Night Shift Coffee</ar><jp>Night Shift Coffee</jp><cn>Night Shift Coffee</cn></textItem><textItem identifier="lb_MainMenu_Start"><en_us>Start</en_us><en_uk>Start</en_uk><nl>Starten</nl><fr>Jouer</fr><de>Start</de><es>Iniciar</es><br>Começar</br><pt>Começar</pt><it>Avvia</it><se>Starta</se><pl>Start</pl><ru>Играть</ru><id>Mulai</id><ar>Start</ar><jp>Start</jp><cn>Start</cn></textItem><textItem identifier="lb_NextLevel_NextLevel"><en_us>Next Level</en_us><en_uk>Next Level</en_uk><nl>Volgend level</nl><fr>Niveau suivant</fr><de>Nächster Level</de><es>Siguiente nivel</es><br>Próxima Fase</br><pt>Nível Seguinte</pt><it>Prossimo livello</it><se>Nästa nivå</se><pl>Następny poziom</pl><ru>Следующий уровень</ru><id>Level Berikutnya</id><ar>Next Level</ar><jp>Next Level</jp><cn>Next Level</cn></textItem><textItem identifier="lb_NextLevel_NiceJob"><en_us>Nice job!</en_us><en_uk>Well done!</en_uk><nl>Goed gedaan!</nl><fr>Bon boulot !</fr><de>Gute Arbeit!</de><es>¡Buen trabajo!</es><br>Bom trabalho!</br><pt>Bom trabalho!</pt><it>Ottimo lavoro!</it><se>Snyggt jobbat!</se><pl>Świetnie!</pl><ru>Отлично!</ru><id>Kerja bagus!</id><ar>Nice job!</ar><jp>Nice job!</jp><cn>Nice job!</cn></textItem><textItem identifier="lb_Tutorial_HowToPlay"><en_us>How to Play</en_us><en_uk>How to Play</en_uk><nl>Spelregels</nl><fr>Instructions</fr><de>Anleitung</de><es>Cómo jugar</es><br>Como Jogar</br><pt>Como jogar</pt><it>Come giocare</it><se>Spelregler</se><pl>Jak grać</pl><ru>Как играть</ru><id>Cara Main</id><ar>How to Play</ar><jp>How to Play</jp><cn>How to Play</cn></textItem><textItem identifier="lb_Tutorial_Next"><en_us>Next</en_us><en_uk>Next</en_uk><nl>Volgende</nl><fr>Suivant</fr><de>Weiter</de><es>Siguiente</es><br>Seguinte</br><pt>Seguinte</pt><it>Avanti</it><se>Nästa</se><pl>Dalej</pl><ru>Дальше</ru><id>Berikutnya</id><ar>Next</ar><jp>Next</jp><cn>Next</cn></textItem><textItem identifier="lb_Tutorial_Prev"><en_us>Back</en_us><en_uk>Back</en_uk><nl>Terug</nl><fr>Retour</fr><de>Zurück</de><es>Atrás</es><br>Anterior</br><pt>Retroceder</pt><it>Indietro</it><se>Bakåt</se><pl>Powrót</pl><ru>Назад</ru><id>Kembali</id><ar>Back</ar><jp>Back</jp><cn>Back</cn></textItem><textItem identifier="lb_Tutorial_Start"><en_us>Start</en_us><en_uk>Start</en_uk><nl>Starten</nl><fr>Jouer</fr><de>Start</de><es>Iniciar</es><br>Começar</br><pt>Começar</pt><it>Avvia</it><se>Starta</se><pl>Start</pl><ru>Играть</ru><id>Mulai</id><ar>Start</ar><jp>Start</jp><cn>Start</cn></textItem><textItem identifier="lb_Tutorial_Sugar"><en_us>Sugar</en_us><en_uk>Sugar</en_uk><nl>Suiker</nl><fr>Sucre</fr><de>Zucker</de><es>Azúcar</es><br>Açúcar</br><pt>Açúcar</pt><it>Zucchero</it><se>Socker</se><pl>Cukier</pl><ru>Сахар</ru><id>Gula</id><ar>Sugar</ar><jp>Sugar</jp><cn>Sugar</cn></textItem><textItem identifier="lb_Tutorial_Tutorial0"><en_us>Your job is to serve customers their coffee orders! Let's give it a try, and prepare a Robusta with chocolate.</en_us><en_uk>Your job is to serve customers their coffee orders! Let's give it a try, and prepare a Robusta with chocolate.</en_uk><nl>Je taak is om klanten hun koffiebestelling te geven. Probeer het eens! Maak een Robusta met chocolade.</nl><fr>Ton boulot, c'est de servir aux clients le café qu'ils te demandent ! Faisons un essai : prépare un robusta avec du chocolat.</fr><de>Deine Aufgabe ist es, den Kunden ihre Kaffeebestellungen zu servieren! Lass es uns einmal probieren und einen Robusta-Kaffee mit Schokolade zubereiten.</de><es>¡Tu trabajo consiste en servir a los clientes sus pedidos de café! Vamos a probar a preparar un Robusta con chocolate.</es><br>Seu trabalho é servir o café que os clientes pedem! Vamos tentar, prepare um Robusta com chocolate.</br><pt>O teu trabalho é servir os pedidos de café dos clientes! Vamos experimentar e preparar um Robusta com chocolate.</pt><it>Il tuo lavoro consiste nel servire le ordinazioni del caffè ai clienti! Facciamo una prova e prepara una Robusta con cioccolata.</it><se>Ditt jobb är att servera kundernas kaffebeställningar! Prova nu genom att göra en robusta med choklad.</se><pl>Twoim zadaniem jest podawać klientom kawę zgodnie z zamówieniem! Spróbuj przygotować robustę z czekoladą.</pl><ru>Твоя задача – обслуживать клиентов, подавая им кофе! Давай для начала приготовим "Robusta" с шоколадом.</ru><id>Tugasmu adalah melayani pesanan kopi pelanggan! Mari kita coba, dan buatlah kopi Robusta dengan cokelat.</id><ar>Your job is to serve customers their coffee orders! Let's give it a try, and prepare a Robusta with chocolate.</ar><jp>Your job is to serve customers their coffee orders! Let's give it a try, and prepare a Robusta with chocolate.</jp><cn>Your job is to serve customers their coffee orders! Let's give it a try, and prepare a Robusta with chocolate.</cn></textItem><textItem identifier="lb_Tutorial_Tutorial1"><en_us>Click the rack to grab a cup.</en_us><en_uk>Click the rack to grab a cup.</en_uk><nl>Klik op het rek om een kopje te pakken.</nl><fr>Clique sur l'étagère pour prendre une tasse.</fr><de>Klicke das Regal an, um eine Tasse zu holen.</de><es>Haz clic en el estante para coger una taza. </es><br>Clique na estante para pegar uma xícara.</br><pt>Clica na prateleira para pegares numa chávena.</pt><it>Clicca sullo scaffale per prendere una tazza.</it><se>Klicka på hyllan för att ta en kopp.</se><pl>Kliknij na stojak, aby wziąć filiżankę.</pl><ru>Щелкни по полке, чтобы взять чашку.</ru><id>Klik rak untuk mengambil gelas.</id><ar>Click the rack to grab a cup.</ar><jp>Click the rack to grab a cup.</jp><cn>Click the rack to grab a cup.</cn></textItem><textItem identifier="lb_Tutorial_Tutorial2"><en_us>Then click on the correct jar. In this case, it's the Robusta.</en_us><en_uk>Then click on the correct jar. In this case, it's the Robusta.</en_uk><nl>Klik dan op de juiste bus; in dit geval de Robusta.</nl><fr>Puis clique sur le bon pot. Dans le cas où nous sommes, c'est le robusta.</fr><de>Klicke dann das richtige Glas an. In diesem Fall das Glas mit dem Robusta-Kaffee.</de><es>Después haz clic en el tarro correcto. En este caso, es el de Robusta. </es><br>Depois, clique na jarra correta. Neste caso, é a Robusta.</br><pt>Depois clica no frasco certo. Neste caso, é o frasco de Robusta.</pt><it>Poi clicca sul barattolo giusto. In questo caso è quello con l'etichetta Robusta.</it><se>Klicka sedan på rätt burk. I det här fallet ''robusta''.</se><pl>Teraz kliknij na właściwy słoik. W tym przypadku chodzi o robustę.</pl><ru>Затем щелкни по нужной банке. Сейчас нам нужна "Robusta".</ru><id>Lalu klik stoples yang benar. Dalam kasus ini, stoples Robusta.</id><ar>Then click on the correct jar. In this case, it's the Robusta.</ar><jp>Then click on the correct jar. In this case, it's the Robusta.</jp><cn>Then click on the correct jar. In this case, it's the Robusta.</cn></textItem><textItem identifier="lb_Tutorial_Tutorial3"><en_us>Click on the extra ingredient to add it. In this case, it's chocolate.</en_us><en_uk>Click on the extra ingredient to add it. In this case, it's chocolate.</en_uk><nl>Klik om het extra ingrediënt toe te voegen; in dit geval chocolade.</nl><fr>Clique sur l'ingrédient supplémentaire pour l'ajouter. Cette fois, c'est le chocolat.</fr><de>Klicke die zusätzliche Zutat an, um sie hinzuzugeben. In diesem Fall ist das Schokolade.</de><es>Haz clic en el ingrediente extra para añadirlo. En este caso, es el chocolate.</es><br>Clique no ingrediente extra para adicioná-lo. Neste caso, é o chocolate.</br><pt>Clica no ingrediente adicional para o juntares. Neste caso, é chocolate.</pt><it>Clicca sull'ingrediente extra per aggiungerlo. In questo caso è la cioccolata.</it><se>Klicka på extraingrediensen för att lägga till den. I det här fallet ''choklad''. </se><pl>Kliknij na dodatkowy składnik, aby go użyć. W tym przypadku jest to czekolada.</pl><ru>Щелкни, чтобы добавить дополнительный ингредиент. Сейчас нам нужен шоколад.</ru><id>Klik bahan ekstra untuk menambahkannya. Dalam kasus ini, cokelat.</id><ar>Click on the extra ingredient to add it. In this case, it's chocolate.</ar><jp>Click on the extra ingredient to add it. In this case, it's chocolate.</jp><cn>Click on the extra ingredient to add it. In this case, it's chocolate.</cn></textItem><textItem identifier="lb_Tutorial_Tutorial4"><en_us>Click on the teapot to add water to the cup.</en_us><en_uk>Click on the teapot to add water to the cup.</en_uk><nl>Klik op de theepot om water in het kopje te doen.</nl><fr>Clique sur la carafe d'eau pour ajouter de l'eau dans la tasse.</fr><de>Klicke den Teekessel an, um Wasser in die Tasse zu gießen.</de><es>Haz clic en la tetera para añadirle agua a la taza.</es><br>Clique na chaleira para colocar água na xícara.</br><pt>Clica no bule para juntares água à chávena.</pt><it>Clicca sulla teiera per aggiungere acqua.</it><se>Klicka på tekannan för att hälla vatten i koppen.</se><pl>Kliknij na dzbanek i nalej wody do filiżanki.</pl><ru>Щелкни по чайнику, чтобы добавить в чашку воды.</ru><id>Klik poci untuk menuangkan air ke gelas.</id><ar>Click on the teapot to add water to the cup.</ar><jp>Click on the teapot to add water to the cup.</jp><cn>Click on the teapot to add water to the cup.</cn></textItem><textItem identifier="lb_Tutorial_Tutorial5"><en_us>Click the coffee cup and stir the order to perfection!</en_us><en_uk>Click the coffee cup and stir the order to perfection!</en_uk><nl>Klik op het kopje en roer tot je bestelling helemaal perfect is!</nl><fr>Clique sur la tasse à café et mélange le tout pour que ça soit parfait !</fr><de>Klicke die Kaffeetasse an, um den Kaffee zum Abschluss umzurühren!</de><es>¡Haz clic en la taza para remover el café y entregarlo perfecto!</es><br>Clique na xícara de café e mexa até ficar perfeito!</br><pt>Clica na chávena de café e mexe até ficar perfeito!</pt><it>Clicca sulla tazzina da caffè e mescola l'ordinazione alla perfezione!</it><se>Klicka på kaffekoppen för att röra om tills det är perfekt!</se><pl>Kliknij na filiżankę z kawą i dobrze pomieszaj!</pl><ru>Щелкни по чашке, чтобы размешать кофе.</ru><id>Klik gelas kopi dan aduk pesanan hingga sempurna!</id><ar>Click the coffee cup and stir the order to perfection!</ar><jp>Click the coffee cup and stir the order to perfection!</jp><cn>Click the coffee cup and stir the order to perfection!</cn></textItem><textItem identifier="lb_Tutorial_Tutorial6"><en_us>Don't worry about making mistakes! If you want to throw an order away, just click on the trash can.</en_us><en_uk>Don't worry about making mistakes! If you want to throw an order away, just click on the bin.</en_uk><nl>Fouten maken is menselijk! Klik gewoon op de vuilnisbak om iets weg te gooien.</nl><fr>Ne t'en fais pas si tu fais des erreurs : tu peux te débarrasser d'une commande en cliquant simplement sur la poubelle.</fr><de>Und wenn du einmal einen Fehler machst - nicht schlimm! Wenn du eine Bestellung wegwerfen möchtest, klicke einfach den Mülleimer an.</de><es>¡No te preocupes si cometes errores! Si quieres deshacerte de un pedido, tan sólo tienes que hacer clic en la papelera.</es><br>Não se preocupe em cometer erros! Se quiser jogar fora um pedido errado, é só clicar na lixeira.</br><pt>Não te preocupes com erros! Se quiseres deitar fora o pedido, clica na lata de lixo.</pt><it>Non preoccuparti se fai errori! Se vuoi buttare via un'ordinazione devi solo cliccare sulla pattumiera.</it><se>Oroa dig inte för att göra fel! Klicka bara på soptunnan om du vill kasta bort en beställning.</se><pl>Nie przejmuj się pomyłkami! Jeśli chcesz wyrzucić zamówienie, kliknij na kosz na śmieci.</pl><ru>Не бойся ошибок. Если заказ был испорчен, просто щелкни по урне.</ru><id>Jangan cemas kamu keliru! Kalau kamu mau membuang pesanan, klik saja tempat sampah.</id><ar>Don't worry about making mistakes! If you want to throw an order away, just click on the trash can.</ar><jp>Don't worry about making mistakes! If you want to throw an order away, just click on the trash can.</jp><cn>Don't worry about making mistakes! If you want to throw an order away, just click on the trash can.</cn></textItem><textItem identifier="lb_Tutorial_Tutorial7"><en_us>Click the customer whose order you've prepared.</en_us><en_uk>Click the customer whose order you have prepared.</en_uk><nl>Klik op de klant voor wie je de bestelling gemaakt hebt.</nl><fr>Clique sur le client dont tu as préparé la commande.</fr><de>Klicke den Kunden an, dessen Bestellung du zubereitet hast.</de><es>Haz clic en el cliente cuyo pedido has preparado.</es><br>Clique no cliente cujo pedido você preparou.</br><pt>Clica no cliente cujo pedido preparaste.</pt><it>Clicca sul cliente al quale hai preparato l'ordinazione.</it><se>Klicka på kunden vars beställning du gjort.</se><pl>Kliknij na klienta, którego zamówienie przygotowałeś.</pl><ru>Щелкни по клиенту, чей заказ приготовлен.</ru><id>Klik pelanggan yang pesannya sudah dibuat.</id><ar>Click the customer whose order you've prepared.</ar><jp>Click the customer whose order you've prepared.</jp><cn>Click the customer whose order you've prepared.</cn></textItem><textItem identifier="lb_Tutorial_Tutorial8"><en_us>Sometimes a customer ask for milk or sugar. Click on the extra item, then give it to the customer.</en_us><en_uk>Sometimes customers may ask for milk or sugar. Click on the extra item, and then give it to the customer.</en_uk><nl>Soms vraagt een klant om melk en suiker. Klik dan op de melk of suiker en geef het aan de klant.</nl><fr>Il arrive qu'un client demande du lait ou du sucre. Clique sur l'ingrédient supplémentaire puis donne-le au client.</fr><de>Manchmal fragen Kunden auch nach Milch oder Zucker. Klicke dann die gewünschte Zutat an, um sie dem Kunden zu geben.</de><es>A veces los clientes piden leche o azúcar. Haz clic en el ingrediente extra y luego dáselo al cliente.</es><br>Às vezes um cliente pede leite ou açúcar. Clique no item extra e o dê ao cliente.</br><pt>Por vezes um cliente pede leite ou açúcar. Clica no objecto adicional e depois dá-o ao cliente.</pt><it>A volte un cliente chiede del latte o dello zucchero. Clicca sull'ingrediente extra e poi portalo al cliente.</it><se>Ibland frågar en kund efter mjölk eller socker. Klicka på det och ge det sedan till kunden.</se><pl>Czasem klient prosi o mleko lub cukier. Kliknij na dodatkowy przedmiot, a następnie podaj go klientowi.</pl><ru>Иногда клиент хочет молока или сахара. Перетащи нужный предмет клиенту.</ru><id>Kadang pelanggan meminta susu atau gula. Klik hal ekstra itu untuk memberikannya ke pelanggan.</id><ar>Sometimes a customer ask for milk or sugar. Click on the extra item, then give it to the customer.</ar><jp>Sometimes a customer ask for milk or sugar. Click on the extra item, then give it to the customer.</jp><cn>Sometimes a customer ask for milk or sugar. Click on the extra item, then give it to the customer.</cn></textItem><textItem identifier="lb_pause"><en_us>Paused</en_us><en_uk>Paused</en_uk><nl>Gepauzeerd</nl><fr>En pause</fr><de>Angehalten</de><es>En pausa</es><br>Em pausa</br><pt>Em Pausa</pt><it>In pausa</it><se>Pausat</se><pl>Pauza</pl><ru>Пауза</ru><id>Dijeda</id><ar>Paused</ar><jp>Paused</jp><cn>Paused</cn></textItem><textItem identifier="btn_moregamesat"><en_us>More funny games at:</en_us><en_uk>More funny games at:</en_uk><nl>Meer grappige spelletjes op:</nl><fr>Plus de jeux rigolos sur :</fr><de>Mehr lustige Spiele auf:</de><es>Más juegos divertidos en:</es><br>Mais jogos divertidos em:</br><pt>Mais jogos divertidos em:</pt><it>Più giochi divertenti su:</it><se>Fler kul spel på:</se><pl>Więcej zabawnych gier na:</pl><ru>Другие смешные игры на</ru><id>Game kocak lainnya di:</id><ar>More funny games at:</ar><jp>ゲームを始める</jp><cn>开始游戏</cn></textItem></LocalisedText>
;
SpilGame.importXMLv2(xmlData);
trace("Language Data Succesfully included");
contextMenu = new ContextMenu();
contextMenu.hideBuiltInItems();
Languages.initialize();
Languages.getLanguage("jp").forceFont = "Arial Unicode MS";
Languages.getLanguage("jp").embedFonts = true;
Languages.getLanguage("cn").forceFont = "Arial Unicode MS";
Languages.getLanguage("cn").embedFonts = true;
Languages.getLanguage("ru").forceFont = "Arial";
Languages.getLanguage("ru").embedFonts = true;
Languages.getLanguage("fr").forceFont = "Arial";
Languages.getLanguage("fr").embedFonts = true;
Languages.getLanguage("de").forceFont = "Arial";
Languages.getLanguage("de").embedFonts = true;
Languages.getLanguage("es").forceFont = "Arial";
Languages.getLanguage("es").embedFonts = true;
Languages.getLanguage("br").forceFont = "Arial";
Languages.getLanguage("br").embedFonts = true;
Languages.getLanguage("pt").forceFont = "Arial";
Languages.getLanguage("pt").embedFonts = true;
Languages.getLanguage("it").forceFont = "Arial";
Languages.getLanguage("it").embedFonts = true;
Languages.getLanguage("pl").forceFont = "Arial";
Languages.getLanguage("pl").embedFonts = true;
Languages.getLanguage("se").forceFont = "Arial";
Languages.getLanguage("se").embedFonts = true;
Languages.getLanguage("nl").forceFont = "Arial";
Languages.getLanguage("nl").embedFonts = true;
Branding.Init("night_shift_coffee", PortalGroup.GIRL, "night_shift_coffee.html", this, true);
stop();
this.addEventListener(Event.ENTER_FRAME, loading);
flag = false;
}
private function RunStateGame(){
this.dispatchEvent(new Event("update"));
}
public function InitNextLevel(){
ShowWindow("NextLevel");
mNextLevel.AddDispatcher();
Template.pauseGame(true, true);
}
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 _local5:XML;
var _local6:String;
var _local4:String = ("m" + _arg1);
if (this[_local4]){
if (((this[_local4].parent) && (_arg3))){
this[_local4].parent.removeChild(this[_local4]);
};
if (_arg2){
_local5 = describeType(this[_local4]);
_local6 = _local5.method.@name.toXMLString();
if (_local6.indexOf("RemoveDispatcher") > -1){
this[_local4].RemoveDispatcher();
};
};
this[_local4] = null;
};
if (this[_local4] != null){
trace((("WARNING ### " + _arg1) + "Not null after Kill process"));
};
}
private function menuSelectHandler(_arg1:ContextMenuEvent){
}
public function InitMainMenu(){
ShowWindow("MainMenu");
mState = STATE_MAIN_MENU;
}
private function onScoreRequestProcessed(_arg1:int, _arg2:Object):void{
trace(("onScoreRequestProcessed" + "\n"));
trace((("\tcallbackID: " + _arg1) + "\n"));
if (!_arg2.errorMessage){
trace((("\txml: " + _arg2.xml) + "\n"));
} else {
trace((("\tError in request: " + _arg2.errorMessage) + "\n"));
};
}
public function submitAward(_arg1:String):void{
var _local2:int = AwardsService.submitAward(_arg1, onAwardRequestProcessed);
}
private function OnKeyFocusChange(_arg1:FocusEvent):void{
stage.focus = this.stage;
}
public function InitCongratulation(){
ShowWindow("Congratulation");
mCongratulation.AddDispatcher();
Template.pauseGame(true, true);
}
private function isDomainAllowed(_arg1:Array):Boolean{
var _local4:Number;
var _local2:LocalConnection = new LocalConnection();
var _local3:String = _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);
}
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;
};
};
}
public function loading(_arg1:Event){
var _local2:* = this.stage.loaderInfo.bytesTotal;
var _local3:* = this.stage.loaderInfo.bytesLoaded;
var _local4:* = Math.round(((_local3 * 100) / _local2));
var _local5:Number = (_local3 / _local2);
if (((lbar) && (lpc))){
lbar.scaleX = (_local4 / 100);
lpc.text = (int(_local4) + "%");
};
if (_local4 >= 100){
trace(("loading ... CurrentFrame : " + this.currentFrame));
if (this.currentFrame != 16){
trace("Sapi A");
if (!flag){
this.gotoAndStop(16);
};
} else {
flag = true;
trace("Sapi B");
this.removeEventListener(Event.ENTER_FRAME, loading);
};
};
}
public function InitGameOver(){
ShowWindow("GameOver");
mGameOver.AddDispatcher();
Template.pauseGame(true, true);
}
public function InitMenuGame(){
ShowWindow("MenuGame");
mMenuGame.AddDispatcher();
Template.pauseGame(true);
}
private function onServicesReady(_arg1:Event):void{
trace("ScoreAndAwardServices are ready\n");
}
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 _local3:*;
var _local1:Array = new Array("localhost");
var _local2:Array = 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 !!!");
};
}
public function InitTutorial(){
ShowWindow("Tutorial");
mTutorial.AddDispatcher();
Template.pauseGame(true, true);
}
private function InitOnce(){
trace("Init Once");
InitMainMenu();
mOptionBar = new COptionBar(0, 0, "CBGSound");
mOptionBar.visible = false;
stage.addChild(mOptionBar);
mFPSBar = new FPS();
mFPSBar.visible = false;
stage.addChild(mFPSBar);
if (this.hasEventListener(Event.ENTER_FRAME)){
this.removeEventListener(Event.ENTER_FRAME, OnEnterFrame);
};
this.addEventListener(Event.ENTER_FRAME, OnEnterFrame, false, 0, true);
}
function frame16(){
InitOnce();
}
public function OnEnterFrame(_arg1:Event){
switch (mState){
case STATE_GAME:
RunStateGame();
break;
case STATE_PAUSED:
this.dispatchEvent(new Event("pause"));
break;
default:
break;
};
}
public function PL_LOADING(_arg1:ProgressEvent):void{
var _local2:Number = ((_arg1.bytesLoaded / _arg1.bytesTotal) * 100);
lbar.scaleX = (_local2 / 100);
lpc.text = (int(_local2) + "%");
if (_local2 >= 100){
this.gotoAndStop(3);
};
}
public function submitScore(_arg1:int):void{
trace(("submitScore = " + _arg1));
var _local2:int = ScoreService.submitScore(_arg1, onScoreRequestProcessed);
}
public function ShowWindow(_arg1:String){
var _local2:String = ("C" + _arg1);
var _local3:String = ("m" + _arg1);
var _local4:Class = (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;
}
private function onAwardRequestProcessed(_arg1:int, _arg2:Object):void{
trace(("onAwardRequestProcessed" + "\n"));
trace((("\tcallbackID: " + _arg1) + "\n"));
if (!_arg2.errorMessage){
trace((("\txml: " + _arg2.xml) + "\n"));
} else {
trace((("\tError in request: " + _arg2.errorMessage) + "\n"));
};
}
private function onServicesFailed(_arg1:ErrorEvent):void{
trace((("ScoreAndAwardServices failed: " + _arg1.text) + "\n"));
}
private function isPlayerAllowed(_arg1:Array):Boolean{
var _local2:String = Capabilities.playerType;
trace(("PlayerType : " + _local2));
var _local3:Number = 0;
while (_local3 < _arg1.length) {
if (_local2 == _arg1[_local3]){
return (true);
};
_local3++;
};
return (false);
}
public static function GetInstance():Main{
return (MainGlobal);
}
}
}//package
Section 118
//SubmitterProxy (SubmitterProxy)
package {
import flash.display.*;
import flash.events.*;
import com.spilgames.api.*;
import flash.system.*;
public class SubmitterProxy extends MovieClip {
public var m_scoreXMLData:XML;
public var m_achievXMLData:XML;
private var parentObj;
public var m_scoreServerTimeXMLData:XML;
private static var _failed:Boolean = false;
private static var _loading:Boolean = false;
private static var _initialised:Boolean = false;
private static var SpilComp:SpilGamesServices;
public function SubmitterProxy():void{
var cld:*;
super();
Security.allowDomain("*");
parentObj = this.parent;
parentObj.stop();
var i:int = (parentObj.numChildren - 1);
while (i >= 0) {
cld = parentObj.getChildAt(i);
if ((cld is MovieClip)){
cld.visible = false;
} else {
if (cld != null){
parentObj.removeChild(cld);
};
};
i = (i - 1);
};
try {
parentObj["setLoader"] = setLoader;
parentObj["isDomainAllowed"] = isDomainAllowed;
parentObj["hasUserData"] = hasUserData;
parentObj["_O0000Ol01"] = setLoader;
parentObj["_O0Olll0lO"] = isDomainAllowed;
} catch(e:Error) {
trace(e);
};
}
private function SpilConfiguratorFailedToInitialise(_arg1:Event):void{
if (SpilComp){
SpilComp.removeEventListener("servicesReady", SpilConfiguratorReady);
SpilComp.removeEventListener(IOErrorEvent.IO_ERROR, SpilConfiguratorFailedToLoad);
SpilComp.removeEventListener("servicesFailed", SpilConfiguratorFailedToInitialise);
};
_failed = true;
_loading = false;
parentObj.dispatchEvent(new Event("LoadingFailed"));
}
public function SpilCallback(_arg1:int, _arg2:Object):void{
}
private function onLoadDone():void{
parentObj["isSWFReady"] = isSWFReady;
parentObj["setServerSelect"] = setServerSelect;
parentObj["requestScoreServerTime"] = requestScoreServerTime;
parentObj["getScoreServerTime"] = getScoreServerTime;
parentObj["submitScore"] = submitScore;
parentObj["requestHighscoreList"] = requestHighscoreList;
parentObj["requestUserHighscoreList"] = requestUserHighscoreList;
parentObj["submitGrantAward"] = submitGrantAward;
parentObj["requestAwardList"] = requestAwardList;
parentObj["requestAwardInfo"] = requestAwardInfo;
parentObj["destroy"] = destroy;
parentObj["getSpilGamesConnector"] = getSpilGamesConnector;
parentObj["_O0O1l0OO0"] = isSWFReady;
parentObj["_O0lOO010l"] = requestScoreServerTime;
parentObj["_O01Ol1O1O"] = getScoreServerTime;
parentObj["_O01lOO10O"] = submitScore;
parentObj["_O110l10ll"] = requestHighscoreList;
parentObj["_O11lll1OO0"] = requestUserHighscoreList;
parentObj["_O00OOl1Ol"] = submitGrantAward;
parentObj["_O1OlO10OO"] = requestAwardList;
parentObj["_OOlOOOll1"] = requestAwardInfo;
parentObj["_O010ll111"] = destroy;
parentObj["OO00OO1l1l"] = OO00OO1l1l();
}
private function processTimeResults(_arg1:int, _arg2:Object):void{
if (_arg2){
if (_arg2.errorMessage){
} else {
if (_arg2.xml){
m_scoreServerTimeXMLData = _arg2.xml;
};
};
} else {
m_scoreServerTimeXMLData = new XML("<hyscore><time>123456789</time></hyscore>");
};
}
private function isSWFReady():Boolean{
return (((SpilComp) && (SpilComp.isSWFReady())));
}
private function requestAwardList():void{
if (SpilComp){
SpilComp.send("Awards", "getAwardList", processAwardResults, {userName:SpilComp.getUserName(), userHash:SpilComp.getUserHash()});
};
}
public function set O1lll0ll0(_arg1:XML):void{
m_scoreServerTimeXMLData = _arg1;
}
public function OO00OO1l1l():SubmitterProxy{
return (this);
}
private function hasUserData():Boolean{
return (!(SpilComp.hasValidUserData()));
}
public function get O0l00l0O0():XML{
return (m_scoreXMLData);
}
private function destroy():void{
parentObj = null;
m_scoreXMLData = null;
m_achievXMLData = null;
}
private function requestScoreServerTime():void{
if (SpilComp){
SpilComp.send("Score", "checkServerTime", processTimeResults);
};
}
private function requestUserHighscoreList(_arg1:String):void{
if (SpilComp){
SpilComp.send("Score", "getUserRankList", processScoreResults, {targetUserName:_arg1});
};
}
public function get O1OlOO00O():XML{
return (m_achievXMLData);
}
private function submitGrantAward(_arg1:String):void{
if (SpilComp){
SpilComp.send("Awards", "submitAward", processAwardResults, {tag:_arg1, userName:SpilComp.getUserName(), userHash:SpilComp.getUserHash()});
};
}
private function setLoader(_arg1=null, _arg2:String="default", _arg3="", _arg4:int=0, _arg5:String="normal", _arg6:String="", _arg7:int=0, _arg8:int=0, _arg9:int=1, _arg10:Boolean=false, _arg11:int=1):void{
if (!_initialised){
trace("Initialising for the first time");
_initialised = true;
if (_arg1){
SpilComp = SpilGamesServices.getInstance();
SpilComp.addEventListener("servicesReady", SpilConfiguratorReady);
SpilComp.addEventListener(IOErrorEvent.IO_ERROR, SpilConfiguratorFailedToLoad);
SpilComp.addEventListener("servicesFailed", SpilConfiguratorFailedToInitialise);
_loading = true;
SpilComp.connect(_arg1);
} else {
throw (new Error("'container' cannot be null"));
};
} else {
trace("Initialisation called multiple times");
if (!_loading){
trace("Ready with loading");
if (!_failed){
trace("Simulate Submitter complete");
onLoadDone();
parentObj.dispatchEvent(new Event(Event.COMPLETE));
} else {
trace("Simulate Submitter LoadingFailed");
parentObj.dispatchEvent(new Event("LoadingFailed"));
};
} else {
trace("Still loading");
};
};
}
private function requestHighscoreList():void{
if (SpilComp){
SpilComp.send("Score", "getRankingList", processScoreResults, null);
};
}
public function set O0l00l0O0(_arg1:XML):void{
m_scoreXMLData = _arg1;
}
private function setServerSelect(_arg1:int):void{
if (SpilComp){
};
}
private function requestAwardInfo(_arg1:int):void{
if (SpilComp){
SpilComp.send("Awards", "getAward", SpilCallback, {awardID:_arg1});
};
}
public function set O1OlOO00O(_arg1:XML):void{
m_achievXMLData = _arg1;
}
private function processAwardResults(_arg1:int, _arg2:Object):void{
if (_arg2){
m_achievXMLData = _arg2.xml;
} else {
m_achievXMLData = new XML("<hyscor><awardid>147</awardid></hyscor>");
};
}
public function getSpilGamesConnector(){
return (SpilComp);
}
public function get O1lll0ll0():XML{
return (m_scoreServerTimeXMLData);
}
private function processScoreResults(_arg1:int, _arg2:Object):void{
if (_arg2){
m_scoreXMLData = _arg2.xml;
} else {
m_scoreXMLData = <hyscor><resultset>
<group>daily</group>
<result>
<position>1</position>
<timestamp>1271247768</timestamp>
<username>noot</username>
<authenticated>1</authenticated>
<score>2</score>
<gamelevel>0</gamelevel>
<country>NL</country>
</result>
</resultset>
<resultset>
<group>weekly</group>
<result>
<position>1</position>
<timestamp>1271247768</timestamp>
<username>noot</username>
<authenticated>1</authenticated>
<score>2</score>
<gamelevel>0</gamelevel>
<country>NL</country>
</result>
</resultset>
<resultset>
<group>monthly</group>
<result>
<position>1</position>
<timestamp>1271247768</timestamp>
<username>noot</username>
<authenticated>1</authenticated>
<score>2</score>
<gamelevel>0</gamelevel>
<country>NL</country>
</result>
</resultset>
</hyscor>
;
};
}
private function getScoreServerTime():void{
if (SpilComp){
SpilComp.send("Score", "getLatestTimeCheck", processTimeResults);
};
}
private function SpilConfiguratorReady(_arg1:Event):void{
if (SpilComp){
SpilComp.removeEventListener("servicesReady", SpilConfiguratorReady);
SpilComp.removeEventListener(IOErrorEvent.IO_ERROR, SpilConfiguratorFailedToLoad);
SpilComp.removeEventListener("servicesFailed", SpilConfiguratorFailedToInitialise);
};
_loading = false;
onLoadDone();
parentObj.dispatchEvent(new Event(Event.COMPLETE));
}
private function doCommTest():String{
if (SpilComp){
return ("y");
};
return (("FAILED " + SpilComp));
}
private function submitScore(_arg1:int):void{
if (SpilComp){
SpilComp.send("Score", "submitScore", processScoreResults, {score:_arg1, userName:SpilComp.getUserName(), userHash:SpilComp.getUserHash()});
};
}
private function SpilConfiguratorFailedToLoad(_arg1:Event):void{
if (SpilComp){
SpilComp.removeEventListener("servicesReady", SpilConfiguratorReady);
SpilComp.removeEventListener(IOErrorEvent.IO_ERROR, SpilConfiguratorFailedToLoad);
SpilComp.removeEventListener("servicesFailed", SpilConfiguratorFailedToInitialise);
};
trace("SpilConfiguratorFailedToLoad", _arg1.toString());
_failed = true;
_loading = false;
if (parentObj.hasEventListener(IOErrorEvent.IO_ERROR)){
parentObj.dispatchEvent(new IOErrorEvent(IOErrorEvent.IO_ERROR));
};
}
private function onLegacyEvent(_arg1:Event):void{
dispatchEvent(_arg1);
}
private function isDomainAllowed(_arg1:Boolean=false):Boolean{
return (SpilComp.isDomainAllowed());
}
private function setLoader2(_arg1=null, _arg2:String="default", _arg3:int=1, _arg4="", _arg5:int=0, _arg6:String="normal", _arg7:String="", _arg8:int=0, _arg9:int=0, _arg10:int=1, _arg11:Boolean=false, _arg12:int=1):void{
setLoader(_arg1, _arg2, _arg4, _arg5, _arg6, _arg7, _arg8, _arg9, _arg10, _arg11, _arg12);
}
}
}//package
Section 119
//Template (Template)
package {
import flash.display.*;
import flash.text.*;
import flash.events.*;
import caurina.transitions.*;
import com.gskinner.geom.*;
import flash.filters.*;
public class Template {
public static var maxLevel = 8;
public static var level:int;
public static var cntDelayTime:int;
public static var score:int;
public static var goal:int;
public static var kecepatanTime = 0.1;
public static var time:int;
public static var flagAmbil:Boolean;
public static var objectAmbil:MovieClip = null;
public static var indukObject:String = "bayi";
public static var xAwalTime:int;
public static var delayTime = 40;
public static var xAkhirTime:int;
public static function pauseGame(_arg1:Boolean=true, _arg2:Boolean=false):void{
if (_arg1){
Tweener.pauseAllTweens();
Main.GetInstance().mState = Main.STATE_PAUSED;
} else {
Tweener.resumeAllTweens();
Main.GetInstance().mState = Main.STATE_GAME;
};
if (_arg2){
Tweener.removeAllTweens();
};
}
public static function pauseTweener(_arg1:MovieClip, _arg2:Boolean):MovieClip{
var _local4:Boolean;
var _local5:MovieClip;
if (_arg2){
if (_arg1.totalFrames > 1){
_arg1.stop();
};
} else {
if (_arg1.totalFrames > 1){
_arg1.play();
};
};
var _local3:int;
while (_local3 < _arg1.numChildren) {
if ((_arg1.getChildAt(_local3) is MovieClip)){
_local4 = true;
if ((((_arg1.getChildAt(_local3).totalFrames > 1)) && ((_arg1.getChildAt(_local3).totalFrames < 5)))){
_local4 = false;
};
} else {
_local4 = false;
};
if (!_local4){
} else {
_local5 = _arg1.getChildAt(_local3);
_local5 = pauseTweener(_local5, _arg2);
};
_local3++;
};
return (_arg1);
}
public static function setMouseOutButton(_arg1:MovieClip):void{
_arg1.filters = [];
_arg1.scaleX = 1;
_arg1.scaleY = 1;
}
public static function removeObyekChildAll(_arg1:MovieClip):void{
if (_arg1 != null){
while (_arg1.numChildren > 0) {
_arg1.removeChildAt(0);
};
};
}
public static function createMovie(_arg1:MovieClip, _arg2:Class, _arg3:MovieClip, _arg4:Boolean=false, _arg5:int=0, _arg6:int=0, _arg7:Boolean=false):MovieClip{
var _local8:Class = _arg2;
if (_local8){
_arg1 = new (_local8);
_arg3.addChild(_arg1);
if (!_arg4){
_arg1.x = _arg5;
_arg1.y = _arg6;
} else {
setTitikPusat(_arg1, _arg1.x, _arg1.y, _arg1.x, _arg1.y);
};
if (_arg7){
_arg1.AddDispatcher();
};
};
return (_arg1);
}
public static function setItem(_arg1:int, _arg2:int):void{
var _local3:int;
_local3 = (_arg1 + 1);
while (_local3 <= 4) {
killObyek(CGame.GetInstance().mejaKerja[("item" + _local3)]);
_local3++;
};
_local3 = (_arg1 + 1);
while (_local3 <= 4) {
killObyek(CGame.GetInstance().mejaKerja[("bayangan" + _local3)]);
_local3++;
};
_local3 = (_arg2 + 5);
while (_local3 <= 8) {
killObyek(CGame.GetInstance().mejaKerja[("item" + _local3)]);
_local3++;
};
_local3 = (_arg2 + 5);
while (_local3 <= 8) {
killObyek(CGame.GetInstance().mejaKerja[("bayangan" + _local3)]);
_local3++;
};
Data.kopi = _arg1;
Data.kopiCampuran = _arg2;
}
public static function toggleSound(_arg1:MovieClip):MovieClip{
if (_arg1.currentFrame == 1){
_arg1.gotoAndStop(2);
if ((((Main.GetInstance().mOptionBar.mMusic.currentFrame == 1)) || ((Main.GetInstance().mOptionBar.mMusic.currentFrame == 3)))){
Main.GetInstance().mOptionBar.ToggleMusic();
};
} else {
_arg1.gotoAndStop(1);
if ((((Main.GetInstance().mOptionBar.mMusic.currentFrame == 2)) || ((Main.GetInstance().mOptionBar.mMusic.currentFrame == 4)))){
Main.GetInstance().mOptionBar.ToggleMusic();
};
};
return (_arg1);
}
public static function timeRunAngkaCountDown(_arg1:Boolean, _arg2:TextField):Boolean{
if (_arg1){
if (int(_arg2.text) > xAkhirTime){
cntDelayTime++;
if (cntDelayTime == delayTime){
_arg2.text = (int(_arg2.text) - 1);
cntDelayTime = 0;
};
} else {
_arg1 = false;
timeEnd();
};
return (_arg1);
};
}
public static function level1():void{
setItem(2, 1);
time = 3;
goal = 400;
}
public static function level2():void{
setItem(2, 2);
time = 4;
goal = 1000;
}
private static function cekTaruh(_arg1:MovieClip, _arg2:int):MovieClip{
if (_arg1.bayiKe == 0){
CGame.GetInstance().removeEventListener(MouseEvent.MOUSE_MOVE, onMouseMove);
CGame.GetInstance().removeEventListener(MouseEvent.MOUSE_UP, onMouseUp);
CGame.GetInstance().removeChild(bayi[ambilBayi]);
_arg1[indukObject].addChild(bayi[ambilBayi]);
bayi[ambilBayi].x = 0;
bayi[ambilBayi].y = 0;
bayi[ambilBayi].scaleX = 1;
bayi[ambilBayi].scaleY = 1;
_arg1.bayiKe = ambilBayi;
if (_arg2 > indexNull){
bayi[ambilBayi].posisi = _arg2;
};
if (_arg2 == bayi[ambilBayi].permintaan){
bayi[ambilBayi].ballonPermintaan = killObyek(bayi[ambilBayi].ballonPermintaan);
bayi[ambilBayi].permintaan = 0;
};
if (_arg2 == indexKursiMinumSusu){
kursiMinumSusu.prosesBeriSusu();
};
if (_arg2 == indexBedDiaper){
bedDiaper.prosesGantiDiaper();
};
if (_arg2 == indexBedRock){
bedRock.panah.visible = true;
};
if (_arg2 == indexKarpetTeddy){
karpetTeddy.prosesMaininTeddy();
};
if (_arg2 > allItem){
bayi[ambilBayi].flagStatusLife = false;
bayi[ambilBayi].statusLife = killObyek(bayi[ambilBayi].statusLife);
bayi[ambilBayi].setIstirahat();
CGame.GetInstance().headerMenu.score.obyek.text = (int(CGame.GetInstance().headerMenu.score.obyek.text) + tambahScore);
};
flagAmbil = false;
ambilBayi = 0;
objectAmbil = null;
};
return (_arg1);
}
public static function setTimeAngkaCountDown(_arg1:TextField, _arg2:int, _arg3:int):void{
xAwalTime = _arg2;
xAkhirTime = _arg3;
_arg1.text = xAwalTime;
cntDelayTime = 0;
}
public static function level5():void{
setItem(3, 4);
time = 4;
goal = 4000;
}
public static function level6():void{
setItem(4, 4);
time = 4.5;
goal = 5400;
}
public static function level7():void{
setItem(4, 4);
time = 5;
goal = 7000;
}
public static function setButton(_arg1:MovieClip, _arg2:Boolean=true):void{
_arg1.useHandCursor = true;
_arg1.buttonMode = true;
_arg1.glow = _arg2;
_arg1.addEventListener(MouseEvent.MOUSE_OVER, onMouseOver, false, 0, true);
_arg1.addEventListener(MouseEvent.MOUSE_OUT, onMouseOut, false, 0, true);
}
public static function timeRunBar(_arg1:Boolean, _arg2:MovieClip):Boolean{
if (_arg1){
if (_arg2.x > xAkhirTime){
cntDelayTime++;
if (cntDelayTime == delayTime){
_arg2.x = (_arg2.x + kecepatanTime);
cntDelayTime = 0;
};
} else {
_arg1 = false;
timeEnd();
};
return (_arg1);
};
}
public static function level3():void{
setItem(3, 2);
time = 4;
goal = 1800;
}
public static function level4():void{
setItem(3, 3);
time = 4;
goal = 2800;
}
public static function setPutDropObject(_arg1:MovieClip):void{
_arg1.useHandCursor = true;
_arg1.buttonMode = true;
_arg1.addEventListener(MouseEvent.MOUSE_DOWN, onMouseDown, false, 0, true);
}
public static function setTitikPusat(_arg1:MovieClip, _arg2:int, _arg3:int, _arg4:int, _arg5:int):void{
_arg4 = (_arg2 - (_arg1.width / 2));
_arg5 = (_arg3 - (_arg1.height / 2));
}
public static function setTimeBar(_arg1:MovieClip, _arg2:int, _arg3:int):void{
xAwalTime = _arg2;
xAkhirTime = _arg3;
_arg1.x = xAwalTime;
cntDelayTime = 0;
}
private static function onMouseDown(_arg1:MouseEvent):void{
if (!flagAmbil){
if ((((_arg1.currentTarget.bayiKe > 0)) && ((((((((bayi[_arg1.currentTarget.bayiKe].posisi > allItem)) && ((bayi[_arg1.currentTarget.bayiKe].permintaan > 0)))) && ((bayi[_arg1.currentTarget.bayiKe].permintaan <= allItem)))) || ((((bayi[_arg1.currentTarget.bayiKe].posisi <= allItem)) && ((bayi[_arg1.currentTarget.bayiKe].permintaan > allItem)))))))){
objectAmbil = _arg1.currentTarget;
flagAmbil = true;
ambilBayi = _arg1.currentTarget.bayiKe;
bayi[ambilBayi].parent.removeChild(bayi[ambilBayi]);
CGame.GetInstance().addChild(bayi[ambilBayi]);
bayi[ambilBayi].x = CGame.GetInstance().mouseX;
bayi[ambilBayi].y = CGame.GetInstance().mouseY;
bayi[ambilBayi].scaleX = 0.95;
bayi[ambilBayi].scaleY = 0.95;
CGame.GetInstance().addEventListener(MouseEvent.MOUSE_MOVE, onMouseMove, false, 0, true);
CGame.GetInstance().addEventListener(MouseEvent.MOUSE_UP, onMouseUp, false, 0, true);
_arg1.currentTarget.bayiKe = 0;
};
};
}
public static function swapChild(_arg1:MovieClip, _arg2:MovieClip, _arg3:MovieClip):void{
if (((((!((_arg1 == null))) && (!((_arg2 == null))))) && (!((_arg3 == null))))){
killObyek(_arg2, false);
_arg1.addChild(_arg3);
};
}
public static function unsetButton(_arg1:MovieClip):void{
_arg1.useHandCursor = false;
_arg1.buttonMode = false;
_arg1.glow = false;
_arg1.removeEventListener(MouseEvent.MOUSE_OVER, onMouseOver);
_arg1.removeEventListener(MouseEvent.MOUSE_OUT, onMouseOut);
_arg1.filters = [];
_arg1.scaleX = 1;
_arg1.scaleY = 1;
}
public static function timeEnd():void{
if (level < maxLevel){
Main.GetInstance().InitNextLevel();
} else {
Main.GetInstance().InitEndGame();
};
}
private static function onMouseUp(_arg1:MouseEvent):void{
if (flagAmbil){
if (((((!((bedBiru == null))) && (bedBiru.over))) && ((indexBedBiru == bayi[ambilBayi].permintaan)))){
bedBiru = cekTaruh(bedBiru, indexBedBiru);
} else {
if (((((!((bedMerah == null))) && (bedMerah.over))) && ((indexBedMerah == bayi[ambilBayi].permintaan)))){
bedMerah = cekTaruh(bedMerah, indexBedMerah);
} else {
if (((((!((bedIjo == null))) && (bedIjo.over))) && ((indexBedIjo == bayi[ambilBayi].permintaan)))){
bedIjo = cekTaruh(bedIjo, indexBedIjo);
} else {
if (((((!((kursiMinumSusu == null))) && (kursiMinumSusu.over))) && ((indexKursiMinumSusu == bayi[ambilBayi].permintaan)))){
kursiMinumSusu = cekTaruh(kursiMinumSusu, indexKursiMinumSusu);
} else {
if (((((!((bedDiaper == null))) && (bedDiaper.over))) && ((indexBedDiaper == bayi[ambilBayi].permintaan)))){
bedDiaper = cekTaruh(bedDiaper, indexBedDiaper);
} else {
if (((((!((bedRock == null))) && (bedRock.over))) && ((indexBedRock == bayi[ambilBayi].permintaan)))){
bedRock = cekTaruh(bedRock, indexBedRock);
} else {
if (((((!((karpetTeddy == null))) && (karpetTeddy.over))) && ((indexKarpetTeddy == bayi[ambilBayi].permintaan)))){
karpetTeddy = cekTaruh(karpetTeddy, indexKarpetTeddy);
};
};
};
};
};
};
};
if (flagAmbil){
objectAmbil = cekTaruh(objectAmbil, indexNull);
};
};
}
public static function setLevel():void{
if (level == 1){
level1();
};
if (level == 2){
level2();
};
if (level == 3){
level3();
};
if (level == 4){
level4();
};
if (level == 5){
level5();
};
if (level == 6){
level6();
};
if (level == 7){
level7();
};
if (level == 8){
level8();
};
}
public static function gantiChild(_arg1:MovieClip, _arg2:MovieClip):MovieClip{
if (((!((_arg1 == null))) && (!((_arg2 == null))))){
removeObyekChildAll(_arg1);
_arg1.addChild(_arg2);
};
return (_arg1);
}
public static function level8():void{
setItem(4, 4);
time = 5.5;
goal = 9800;
}
public static function setSound(_arg1:MovieClip):MovieClip{
if ((((Main.GetInstance().mOptionBar.mMusic.currentFrame == 2)) || ((Main.GetInstance().mOptionBar.mMusic.currentFrame == 4)))){
_arg1.gotoAndStop(2);
} else {
_arg1.gotoAndStop(1);
};
return (_arg1);
}
public static function initLevel():void{
level = 1;
score = 0;
}
public static function moreGame():void{
}
private static function onMouseOut(_arg1:MouseEvent):void{
setMouseOutButton(_arg1.currentTarget);
}
public static function setMouseOverButton(_arg1:MovieClip, _arg2:Boolean=true):void{
var _local3:ColorMatrix = new ColorMatrix();
_local3.adjustSaturation(30);
if (_arg2){
_arg1.filters = [new ColorMatrixFilter(_local3), new GlowFilter(16746019, (alpha = 1), (blurX = 5), (blurY = 5), (strength = 5))];
} else {
_arg1.filters = [new ColorMatrixFilter(_local3)];
};
_arg1.scaleX = 1.1;
_arg1.scaleY = 1.1;
}
public static function killObyek(_arg1:MovieClip, _arg2:Boolean=true, _arg3:Boolean=false):MovieClip{
if (_arg1 != null){
_arg1.parent.removeChild(_arg1);
if (_arg3){
_arg1.RemoveDispatcher();
};
if (_arg2){
_arg1 = null;
};
};
return (_arg1);
}
private static function onMouseMove(_arg1:MouseEvent):void{
if (flagAmbil){
bayi[ambilBayi].x = CGame.GetInstance().mouseX;
bayi[ambilBayi].y = CGame.GetInstance().mouseY;
};
}
private static function onMouseOver(_arg1:MouseEvent):void{
setMouseOverButton(_arg1.currentTarget, _arg1.currentTarget.glow);
}
public static function buttonSound():void{
Main.GetInstance().mOptionBar.PlaySFX("CButton");
}
}
}//package