Section 1
//AuxFunctions (caurina.transitions.AuxFunctions)
package caurina.transitions {
public class AuxFunctions {
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);
}
public static function numberToG(_arg1:Number):Number{
return (((_arg1 & 0xFF00) >> 8));
}
public static function numberToR(_arg1:Number):Number{
return (((_arg1 & 0xFF0000) >> 16));
}
public static function isInArray(_arg1:String, _arg2:Array):Boolean{
var _local3:uint = _arg2.length;
var _local4:uint;
while (_local4 < _local3) {
if (_arg2[_local4] == _arg1){
return (true);
};
_local4++;
};
return (false);
}
public static function getObjectLength(_arg1:Object):uint{
var _local3:String;
var _local2:uint;
for (_local3 in _arg1) {
_local2++;
};
return (_local2);
}
public static function numberToB(_arg1:Number):Number{
return ((_arg1 & 0xFF));
}
}
}//package caurina.transitions
Section 2
//Equations (caurina.transitions.Equations)
package caurina.transitions {
public class Equations {
public function Equations(){
trace("Equations is a static class and should not be instantiated.");
}
public static function easeOutBounce(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / _arg4);
if (_arg1 < (1 / 2.75)){
return (((_arg3 * ((7.5625 * _arg1) * _arg1)) + _arg2));
};
if (_arg1 < (2 / 2.75)){
_arg1 = (_arg1 - (1.5 / 2.75));
return (((_arg3 * (((7.5625 * _arg1) * _arg1) + 0.75)) + _arg2));
};
if (_arg1 < (2.5 / 2.75)){
_arg1 = (_arg1 - (2.25 / 2.75));
return (((_arg3 * (((7.5625 * _arg1) * _arg1) + 0.9375)) + _arg2));
};
_arg1 = (_arg1 - (2.625 / 2.75));
return (((_arg3 * (((7.5625 * _arg1) * _arg1) + 0.984375)) + _arg2));
}
public static function easeInOutElastic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
var _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;
private static var _engineExists:Boolean = false;
private static var _specialPropertyModifierList:Object;
private static var _currentTime:Number;
private static var _tweenList:Array;
private static var _specialPropertyList:Object;
private static var _transitionList:Object;
private static var _inited:Boolean = false;
private static var __tweener_controller__:MovieClip;
public function Tweener(){
trace("Tweener is a static class and should not be instantiated.");
}
public static function registerSpecialPropertyModifier(_arg1:String, _arg2:Function, _arg3:Function):void{
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 _local3:Array = new Array();
_local4 = 0;
while (_local4 < _args.length) {
if ((((typeof(_args[_local4]) == "string")) && (!(AuxFunctions.isInArray(_args[_local4], _local3))))){
_local3.push(_args[_local4]);
};
_local4++;
};
return (affectTweens(removeTweenByIndex, _arg1, _local3));
}
public static function splitTweens(_arg1:Number, _arg2:Array):uint{
var _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 updateFrame():void{
_currentTimeFrame++;
}
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.31.71");
}
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(e:Error) {
handleError(tTweening, e, "onStart");
};
};
for (pName in tTweening.properties) {
if (tTweening.properties[pName].isSpecialProperty){
if (Boolean(_specialPropertyList[pName].preProcess)){
tTweening.properties[pName].valueComplete = _specialPropertyList[pName].preProcess(tScope, _specialPropertyList[pName].parameters, tTweening.properties[pName].originalValueComplete, tTweening.properties[pName].extra);
};
pv = _specialPropertyList[pName].getValue(tScope, _specialPropertyList[pName].parameters, tTweening.properties[pName].extra);
} else {
pv = tScope[pName];
};
tTweening.properties[pName].valueStart = (isNaN(pv)) ? tTweening.properties[pName].valueComplete : pv;
};
mustUpdate = true;
tTweening.hasStarted = true;
};
if (mustUpdate){
for (pName in tTweening.properties) {
tProperty = tTweening.properties[pName];
if (isOver){
nv = tProperty.valueComplete;
} else {
if (tProperty.hasModifier){
t = (cTime - tTweening.timeStart);
d = (tTweening.timeComplete - tTweening.timeStart);
nv = tTweening.transition(t, 0, 1, d, tTweening.transitionParams);
nv = tProperty.modifierFunction(tProperty.valueStart, tProperty.valueComplete, nv, tProperty.modifierParameters);
} else {
t = (cTime - tTweening.timeStart);
b = tProperty.valueStart;
c = (tProperty.valueComplete - tProperty.valueStart);
d = (tTweening.timeComplete - tTweening.timeStart);
nv = tTweening.transition(t, b, c, d, tTweening.transitionParams);
};
};
if (tTweening.rounded){
nv = Math.round(nv);
};
if (tProperty.isSpecialProperty){
_specialPropertyList[pName].setValue(tScope, nv, _specialPropertyList[pName].parameters, tTweening.properties[pName].extra);
} else {
tScope[pName] = nv;
};
};
tTweening.updatesSkipped = 0;
if (Boolean(tTweening.onUpdate)){
eventScope = (Boolean(tTweening.onUpdateScope)) ? tTweening.onUpdateScope : tScope;
try {
tTweening.onUpdate.apply(eventScope, tTweening.onUpdateParams);
} catch(e:Error) {
handleError(tTweening, e, "onUpdate");
};
};
} else {
tTweening.updatesSkipped++;
};
};
if (((isOver) && (Boolean(tTweening.onComplete)))){
eventScope = (Boolean(tTweening.onCompleteScope)) ? tTweening.onCompleteScope : tScope;
try {
tTweening.onComplete.apply(eventScope, tTweening.onCompleteParams);
} catch(e:Error) {
handleError(tTweening, e, "onComplete");
};
};
return (!(isOver));
};
return (true);
}
public static function setTimeScale(_arg1:Number):void{
var _local2:Number;
var _local3:Number;
if (isNaN(_arg1)){
_arg1 = 1;
};
if (_arg1 < 1E-5){
_arg1 = 1E-5;
};
if (_arg1 != _timeScale){
if (_tweenList != null){
_local2 = 0;
while (_local2 < _tweenList.length) {
_local3 = getCurrentTweeningTime(_tweenList[_local2]);
_tweenList[_local2].timeStart = (_local3 - (((_local3 - _tweenList[_local2].timeStart) * _timeScale) / _arg1));
_tweenList[_local2].timeComplete = (_local3 - (((_local3 - _tweenList[_local2].timeComplete) * _timeScale) / _arg1));
if (_tweenList[_local2].timePaused != undefined){
_tweenList[_local2].timePaused = (_local3 - (((_local3 - _tweenList[_local2].timePaused) * _timeScale) / _arg1));
};
_local2++;
};
};
_timeScale = _arg1;
};
}
public static function resumeAllTweens():Boolean{
var _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 = {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;
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")) && (!(AuxFunctions.isInArray(_args[_local4], _local3))))){
_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")) && (!(AuxFunctions.isInArray(_args[_local4], _local3))))){
_local3.push(_args[_local4]);
};
_local4++;
};
return (affectTweens(pauseTweenByIndex, _arg1, _local3));
}
}
}//package caurina.transitions
Section 8
//TweenListObj (caurina.transitions.TweenListObj)
package caurina.transitions {
public class TweenListObj {
public var 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
//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 10
//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 11
//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{
_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("masuk 2");
if (((!(_connecting)) && (!(_connected)))){
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);
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 12
//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 13
//ColDetection (com.troy.collision.ColDetection)
package com.troy.collision {
import flash.display.*;
import flash.geom.*;
public class ColDetection {
public static function getCollisionRect(_arg1:DisplayObject, _arg2:DisplayObject, _arg3:DisplayObjectContainer, _arg4:Boolean=false, _arg5:Number=0):Rectangle{
var _local9:BitmapData;
var _local10:BitmapData;
var _local11:uint;
var _local12:Rectangle;
var _local13:int;
var _local6:Rectangle = _arg1.getBounds(_arg3);
var _local7:Rectangle = _arg2.getBounds(_arg3);
var _local8:Rectangle = _local6.intersection(_local7);
if (_local8.size.length > 0){
if (_arg4){
_local8.width = Math.ceil(_local8.width);
_local8.height = Math.ceil(_local8.height);
_local9 = getAlphaMap(_arg1, _local8, BitmapDataChannel.RED, _arg3);
_local10 = getAlphaMap(_arg2, _local8, BitmapDataChannel.GREEN, _arg3);
_local9.draw(_local10, null, null, BlendMode.LIGHTEN);
if (_arg5 <= 0){
_local11 = 65792;
} else {
if (_arg5 > 1){
_arg5 = 1;
};
_local13 = Math.round((_arg5 * 0xFF));
_local11 = (((_local13 << 16) | (_local13 << 8)) | 0);
};
_local12 = _local9.getColorBoundsRect(_local11, _local11);
_local9.getColorBoundsRect(_local11, _local11).x = (_local12.x + _local8.x);
_local12.y = (_local12.y + _local8.y);
return (_local12);
} else {
return (_local8);
};
//unresolved jump
};
return (null);
}
public static function isColliding(_arg1:DisplayObject, _arg2:DisplayObject, _arg3:DisplayObjectContainer, _arg4:Boolean=false, _arg5:Number=0):Boolean{
var _local6:Rectangle = getCollisionRect(_arg1, _arg2, _arg3, _arg4, _arg5);
if (((!((_local6 == null))) && ((_local6.size.length > 0)))){
return (true);
};
return (false);
}
public static function getCollisionPoint(_arg1:DisplayObject, _arg2:DisplayObject, _arg3:DisplayObjectContainer, _arg4:Boolean=false, _arg5:Number=0):Point{
var _local7:Number;
var _local8:Number;
var _local6:Rectangle = getCollisionRect(_arg1, _arg2, _arg3, _arg4, _arg5);
if (((!((_local6 == null))) && ((_local6.size.length > 0)))){
_local7 = ((_local6.left + _local6.right) / 2);
_local8 = ((_local6.top + _local6.bottom) / 2);
return (new Point(_local7, _local8));
};
return (null);
}
private static function getAlphaMap(_arg1:DisplayObject, _arg2:Rectangle, _arg3:uint, _arg4:DisplayObjectContainer):BitmapData{
var _local5:Matrix = _arg4.transform.concatenatedMatrix.clone();
_local5.invert();
var _local6:Matrix = _arg1.transform.concatenatedMatrix.clone();
_local6.concat(_local5);
_local6.translate(-(_arg2.x), -(_arg2.y));
var _local7:BitmapData = new BitmapData(_arg2.width, _arg2.height, true, 0);
_local7.draw(_arg1, _local6);
var _local8:BitmapData = new BitmapData(_arg2.width, _arg2.height, false, 0);
_local8.copyChannel(_local7, _local7.rect, new Point(0, 0), BitmapDataChannel.ALPHA, _arg3);
return (_local8);
}
}
}//package com.troy.collision
Section 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
//animBiru_276 (Madonna_fla.animBiru_276)
package Madonna_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 animBiru_276 extends MovieClip {
public function animBiru_276(){
addFrameScript(39, frame40);
}
function frame40(){
CGame.GetInstance()["proses1"]["cahaya"].setWarna("biru");
gotoAndStop(1);
visible = false;
}
}
}//package Madonna_fla
Section 16
//animKuning_274 (Madonna_fla.animKuning_274)
package Madonna_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 animKuning_274 extends MovieClip {
public function animKuning_274(){
addFrameScript(0, frame1, 39, frame40);
}
function frame40(){
CGame.GetInstance()["proses1"]["cahaya"].setWarna("kuning");
gotoAndStop(1);
visible = false;
}
function frame1(){
stop();
}
}
}//package Madonna_fla
Section 17
//animKuning2_341 (Madonna_fla.animKuning2_341)
package Madonna_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 animKuning2_341 extends MovieClip {
public function animKuning2_341(){
addFrameScript(0, frame1, 58, frame59);
}
function frame59(){
gotoAndStop(1);
visible = false;
}
function frame1(){
stop();
}
}
}//package Madonna_fla
Section 18
//animMerah_272 (Madonna_fla.animMerah_272)
package Madonna_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 animMerah_272 extends MovieClip {
public function animMerah_272(){
addFrameScript(0, frame1, 39, frame40);
}
function frame40(){
CGame.GetInstance()["proses1"]["cahaya"].setWarna("merah");
gotoAndStop(1);
visible = false;
}
function frame1(){
stop();
}
}
}//package Madonna_fla
Section 19
//animMerah2_340 (Madonna_fla.animMerah2_340)
package Madonna_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 animMerah2_340 extends MovieClip {
public function animMerah2_340(){
addFrameScript(0, frame1, 58, frame59);
}
function frame59(){
gotoAndStop(1);
visible = false;
}
function frame1(){
stop();
}
}
}//package Madonna_fla
Section 20
//animPutih_303 (Madonna_fla.animPutih_303)
package Madonna_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 animPutih_303 extends MovieClip {
public function animPutih_303(){
addFrameScript(29, frame30);
}
function frame30(){
stop();
}
}
}//package Madonna_fla
Section 21
//animSnow_295 (Madonna_fla.animSnow_295)
package Madonna_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 animSnow_295 extends MovieClip {
public function animSnow_295(){
addFrameScript(46, frame47);
}
function frame47(){
CGame.GetInstance()["proses1"].setCream();
gotoAndStop(1);
visible = false;
}
}
}//package Madonna_fla
Section 22
//animTutor1_339 (Madonna_fla.animTutor1_339)
package Madonna_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 animTutor1_339 extends MovieClip {
public var warnaKuning2:MovieClip;
public var Merah:MovieClip;
public var warnaMerah:MovieClip;
public var kacaDepan:MovieClip;
public var sinar:MovieClip;
public var oranye:MovieClip;
public var warnaKuning:MovieClip;
public var Kuning:MovieClip;
public function animTutor1_339(){
addFrameScript(57, frame58, 141, frame142);
}
function frame142(){
warnaKuning2.gotoAndPlay(2);
}
function frame58(){
sinar.gotoAndPlay(2);
}
}
}//package Madonna_fla
Section 23
//animTutor3_346 (Madonna_fla.animTutor3_346)
package Madonna_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 animTutor3_346 extends MovieClip {
public var _3:MovieClip;
public function animTutor3_346(){
addFrameScript(41, frame42, 329, frame330);
}
function frame330(){
_3.gotoAndPlay(3);
}
function frame42(){
_3.gotoAndPlay(3);
}
}
}//package Madonna_fla
Section 24
//BACK_334 (Madonna_fla.BACK_334)
package Madonna_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 BACK_334 extends MovieClip {
public var __id13_:LocalizedTextField;
public function BACK_334(){
__setProp___id13__BACK_Layer1_0();
}
function __setProp___id13__BACK_Layer1_0(){
try {
__id13_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id13_.text = "{lb_BACK}";
__id13_.textColor = 16762841;
__id13_.textSize = 17;
__id13_.bold = false;
__id13_.disableWordwrap = false;
__id13_.embedFonts = true;
__id13_.font = "GoudyHandtooled";
__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 Madonna_fla
Section 25
//BLINGEFFECT_175 (Madonna_fla.BLINGEFFECT_175)
package Madonna_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 BLINGEFFECT_175 extends MovieClip {
public function BLINGEFFECT_175(){
addFrameScript(29, frame30);
}
function frame30(){
stop();
}
}
}//package Madonna_fla
Section 26
//bungkusTutor0_335 (Madonna_fla.bungkusTutor0_335)
package Madonna_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 bungkusTutor0_335 extends MovieClip {
public var __id12_:LocalizedTextField;
public var ungu:MovieClip;
public var _3:MovieClip;
public var btnResep:MovieClip;
public var _2:MovieClip;
public function bungkusTutor0_335(){
__setProp___id12__bungkusTutor0_Layer1_0();
}
function __setProp___id12__bungkusTutor0_Layer1_0(){
try {
__id12_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id12_.text = "{lb_Tutor0}";
__id12_.textColor = 1127493;
__id12_.textSize = 15;
__id12_.bold = false;
__id12_.disableWordwrap = false;
__id12_.embedFonts = true;
__id12_.font = "GoudyHandtooled";
__id12_.hAlign = "center";
__id12_.multiline = true;
__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 Madonna_fla
Section 27
//bungkusTutor1_338 (Madonna_fla.bungkusTutor1_338)
package Madonna_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 bungkusTutor1_338 extends MovieClip {
public var __id10_:LocalizedTextField;
public function bungkusTutor1_338(){
__setProp___id10__bungkusTutor1_Layer1_0();
}
function __setProp___id10__bungkusTutor1_Layer1_0(){
try {
__id10_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id10_.text = "{lb_Tutor1}";
__id10_.textColor = 1127493;
__id10_.textSize = 15;
__id10_.bold = false;
__id10_.disableWordwrap = false;
__id10_.embedFonts = true;
__id10_.font = "GoudyHandtooled";
__id10_.hAlign = "center";
__id10_.multiline = true;
__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 Madonna_fla
Section 28
//bungkusTutor2_342 (Madonna_fla.bungkusTutor2_342)
package Madonna_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 bungkusTutor2_342 extends MovieClip {
public var __id7_:LocalizedTextField;
public function bungkusTutor2_342(){
__setProp___id7__bungkusTutor2_Layer1_0();
}
function __setProp___id7__bungkusTutor2_Layer1_0(){
try {
__id7_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id7_.text = "{lb_Tutor2}";
__id7_.textColor = 1127493;
__id7_.textSize = 15;
__id7_.bold = false;
__id7_.disableWordwrap = false;
__id7_.embedFonts = true;
__id7_.font = "GoudyHandtooled";
__id7_.hAlign = "center";
__id7_.multiline = true;
__id7_.vAlign = "middle";
__id7_.antiAliasType = "advanced";
__id7_.glowBlur = 3;
__id7_.glowColor = 0;
__id7_.useGlowFilter = false;
__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 Madonna_fla
Section 29
//bungkusTutor3_345 (Madonna_fla.bungkusTutor3_345)
package Madonna_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 bungkusTutor3_345 extends MovieClip {
public var __id6_:LocalizedTextField;
public function bungkusTutor3_345(){
__setProp___id6__bungkusTutor3_Layer1_0();
}
function __setProp___id6__bungkusTutor3_Layer1_0(){
try {
__id6_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id6_.text = "{lb_Tutor3}";
__id6_.textColor = 1127493;
__id6_.textSize = 15;
__id6_.bold = false;
__id6_.disableWordwrap = false;
__id6_.embedFonts = true;
__id6_.font = "GoudyHandtooled";
__id6_.hAlign = "center";
__id6_.multiline = true;
__id6_.vAlign = "middle";
__id6_.antiAliasType = "advanced";
__id6_.glowBlur = 3;
__id6_.glowColor = 0;
__id6_.useGlowFilter = false;
__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 Madonna_fla
Section 30
//bungkusTutor4_348 (Madonna_fla.bungkusTutor4_348)
package Madonna_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 bungkusTutor4_348 extends MovieClip {
public var __id5_:LocalizedTextField;
public function bungkusTutor4_348(){
__setProp___id5__bungkusTutor4_Layer1_0();
}
function __setProp___id5__bungkusTutor4_Layer1_0(){
try {
__id5_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id5_.text = "{lb_Tutor4}";
__id5_.textColor = 1127493;
__id5_.textSize = 15;
__id5_.bold = false;
__id5_.disableWordwrap = false;
__id5_.embedFonts = true;
__id5_.font = "GoudyHandtooled";
__id5_.hAlign = "center";
__id5_.multiline = true;
__id5_.vAlign = "middle";
__id5_.antiAliasType = "advanced";
__id5_.glowBlur = 3;
__id5_.glowColor = 0;
__id5_.useGlowFilter = false;
__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 Madonna_fla
Section 31
//bungkusTutor5_350 (Madonna_fla.bungkusTutor5_350)
package Madonna_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 bungkusTutor5_350 extends MovieClip {
public var __id4_:LocalizedTextField;
public function bungkusTutor5_350(){
__setProp___id4__bungkusTutor5_Layer1_0();
}
function __setProp___id4__bungkusTutor5_Layer1_0(){
try {
__id4_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id4_.text = "{lb_Tutor5}";
__id4_.textColor = 1127493;
__id4_.textSize = 15;
__id4_.bold = false;
__id4_.disableWordwrap = false;
__id4_.embedFonts = true;
__id4_.font = "GoudyHandtooled";
__id4_.hAlign = "center";
__id4_.multiline = true;
__id4_.vAlign = "middle";
__id4_.antiAliasType = "advanced";
__id4_.glowBlur = 3;
__id4_.glowColor = 0;
__id4_.useGlowFilter = false;
__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 Madonna_fla
Section 32
//bungkusTutor6_354 (Madonna_fla.bungkusTutor6_354)
package Madonna_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 bungkusTutor6_354 extends MovieClip {
public var __id3_:LocalizedTextField;
public function bungkusTutor6_354(){
__setProp___id3__bungkusTutor6_LocalizedTextField_0();
}
function __setProp___id3__bungkusTutor6_LocalizedTextField_0(){
try {
__id3_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id3_.text = "{lb_Tutor6}";
__id3_.textColor = 1127493;
__id3_.textSize = 15;
__id3_.bold = false;
__id3_.disableWordwrap = false;
__id3_.embedFonts = true;
__id3_.font = "GoudyHandtooled";
__id3_.hAlign = "center";
__id3_.multiline = true;
__id3_.vAlign = "middle";
__id3_.antiAliasType = "advanced";
__id3_.glowBlur = 3;
__id3_.glowColor = 0;
__id3_.useGlowFilter = false;
__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 Madonna_fla
Section 33
//bungkusTutor7_336 (Madonna_fla.bungkusTutor7_336)
package Madonna_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 bungkusTutor7_336 extends MovieClip {
public var __id11_:LocalizedTextField;
public function bungkusTutor7_336(){
__setProp___id11__bungkusTutor7_Layer1_0();
}
function __setProp___id11__bungkusTutor7_Layer1_0(){
try {
__id11_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id11_.text = "{lb_Tutor7}";
__id11_.textColor = 1127493;
__id11_.textSize = 15;
__id11_.bold = false;
__id11_.disableWordwrap = false;
__id11_.embedFonts = true;
__id11_.font = "GoudyHandtooled";
__id11_.hAlign = "center";
__id11_.multiline = true;
__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 Madonna_fla
Section 34
//flag_icon_373 (Madonna_fla.flag_icon_373)
package Madonna_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_373 extends MovieClip {
public function flag_icon_373(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Madonna_fla
Section 35
//GGGMoreGamesBtn_126 (Madonna_fla.GGGMoreGamesBtn_126)
package Madonna_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_126 extends MovieClip {
public var xmlData:XML;
public var __id44_:LocalizedTextField;
public var btn_moreGames:SimpleButton;
public function GGGMoreGamesBtn_126(){
addFrameScript(0, frame1);
__setProp___id44__GGGMoreGamesBtn_Layer1_0();
}
public function handle_btnMoreGames(_arg1:MouseEvent):void{
navigateToURL(new URLRequest(SpilGame.getMoreGamesLink("Mainscreen")), "_blank");
}
function frame1(){
xmlData = <LocalisedText><textItem identifier="lb_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_Time"><en_us>Time</en_us><en_uk>Time</en_uk><nl>Tijd</nl><fr>Temps</fr><de>Zeit</de><es>Tiempo</es><br>Tempo</br><pt>Tempo</pt><it>Tempo</it><se>Tid</se><pl>Czas</pl><ru>Время</ru><id>Waktu</id><ar>Time</ar><jp>Time</jp><cn>Time</cn></textItem><textItem identifier="lb_MagicIce"><en_us>Fairy Ice Cream</en_us><en_uk>Fairy Ice Cream</en_uk><nl>Felice's Feeënijs</nl><fr>Glaces féeriques</fr><de>Marias Feen-Eiscreme</de><es>Helados para hadas</es><br>Sorvete de Fada</br><pt>Gelado das Fadas</pt><it>Il gelato fatato</it><se>Madonnas feglass</se><pl>Wróżkowe Lody Madonny</pl><ru>Мария и волшебное мороженое</ru><id>Es Krim Peri Madona</id><ar>Fairy Ice Cream</ar><jp>Fairy Ice Cream</jp><cn>Fairy Ice Cream</cn></textItem><textItem identifier="lb_CONTINUE?"><en_us>CONTINUE?</en_us><en_uk>CONTINUE?</en_uk><nl>DOORGAAN?</nl><fr>CONTINUER ?</fr><de>WEITERSPIELEN?</de><es>¿Continuar?</es><br>CONTINUAR?</br><pt>CONTINUAR?</pt><it>VUOI CONTINUARE?</it><se>FORTSÄTTA?</se><pl>KONTYNUOWAĆ?</pl><ru>ПРОДОЛЖИМ?</ru><id>LANJUTKAN?</id><ar>CONTINUE?</ar><jp>CONTINUE?</jp><cn>CONTINUE?</cn></textItem><textItem identifier="lb_DonForget"><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>PAUSA</br><pt>EM PAUSA</pt><it>IN PAUSA</it><se>PAUSAT</se><pl>PAUZA</pl><ru>ПАУЗА</ru><id>JEDA</id><ar>PAUSED</ar><jp>PAUSED</jp><cn>PAUSED</cn></textItem><textItem identifier="lb_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_YouDid"><en_us>You finished the game!</en_us><en_uk>You finished the game!</en_uk><nl>Je hebt het spel uitgespeeld!</nl><fr>Tu as réussi le jeu !</fr><de>Du hast das Spiel abgeschlossen!</de><es>¡Has terminado el juego!</es><br>Você terminou o jogo!</br><pt>Acabaste o jogo!</pt><it>Hai finito il gioco!</it><se>Du klarade spelet!</se><pl>Gra ukończona!</pl><ru>Игра пройдена!</ru><id>Kamu sudah menyelesaikan game!</id><ar>You finished the game!</ar><jp>You finished the game!</jp><cn>You finished the game!</cn></textItem><textItem identifier="lb_NO"><en_us>No</en_us><en_uk>No</en_uk><nl>Nee</nl><fr>Non</fr><de>Nein</de><es>No</es><br>Não</br><pt>Não</pt><it>No</it><se>Nej</se><pl>Nie</pl><ru>Нет</ru><id>Tidak</id><ar>No</ar><jp>No</jp><cn>No</cn></textItem><textItem identifier="lb_YES"><en_us>Yes</en_us><en_uk>Yes</en_uk><nl>Ja</nl><fr>Oui</fr><de>Ja</de><es>Sí</es><br>Sim</br><pt>Sim</pt><it>Sì</it><se>Ja</se><pl>Tak</pl><ru>Да</ru><id>Ya</id><ar>Yes</ar><jp>Yes</jp><cn>Yes</cn></textItem><textItem identifier="lb_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_KetGameOver"><en_us>Wanna try again?</en_us><en_uk>Do you want to try again?</en_uk><nl>Nogmaals proberen?</nl><fr>Tu veux réessayer ?</fr><de>Noch mal probieren?</de><es>¿Quieres volver a intentarlo?</es><br>Quer tentar de novo?</br><pt>Queres tentar outa vez?</pt><it>Vuoi riprovare?</it><se>Försöka igen?</se><pl>Chcesz spróbować ponownie?</pl><ru>Попробуем еще раз?</ru><id>Mau coba lagi?</id><ar>Wanna try again?</ar><jp>Wanna try again?</jp><cn>Wanna try again?</cn></textItem><textItem identifier="lb_NextLevel"><en_us>Next Level</en_us><en_uk>Next Level</en_uk><nl>Volgende 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_BACK"><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>VOLTAR</br><pt>VOLTAR</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_SKIP"><en_us>SKIP</en_us><en_uk>SKIP</en_uk><nl>OVERSLAAN</nl><fr>PASSER</fr><de>ÜBERSPRINGEN</de><es>SALTAR</es><br>PULAR</br><pt>IGNORAR</pt><it>SALTA</it><se>SKIPPA</se><pl>POMIŃ</pl><ru>ПРОПУСТИТЬ</ru><id>LEWATI</id><ar>SKIP</ar><jp>SKIP</jp><cn>SKIP</cn></textItem><textItem identifier="lb_NEXT"><en_us>NEXT</en_us><en_uk>NEXT</en_uk><nl>VOLGENDE</nl><fr>SUIVANT</fr><de>WEITER</de><es>SIGUIENTE</es><br>AVANÇAR</br><pt>SEGUINTE</pt><it>AVANTI</it><se>NÄSTA</se><pl>DALEJ</pl><ru>ДАЛЬШЕ</ru><id>BERIKUT</id><ar>NEXT</ar><jp>NEXT</jp><cn>NEXT</cn></textItem><textItem identifier="lb_PLAY"><en_us>PLAY</en_us><en_uk>PLAY</en_uk><nl>SPELEN</nl><fr>JOUER</fr><de>SPIELEN</de><es>JUGAR</es><br>JOGAR</br><pt>JOGAR</pt><it>GIOCA</it><se>SPELA</se><pl>GRAJ</pl><ru>ИГРАТЬ</ru><id>MAIN</id><ar>PLAY</ar><jp>PLAY</jp><cn>PLAY</cn></textItem><textItem identifier="lb_Tutor0"><en_us>You'll find the ice-cream orders in the top-left corner. To figure out how to make each dish, use the recipe book. The napkin color under each order shows which fairy's order it is. (In this case, it's the Blue Fairy.)</en_us><en_uk>You will find the ice cream orders in the top left corner. Use the receipe book to work out how to make each dish. The napkin colour under each order shows which fairy the order belongs to. (In this case, it is the Blue Fairy.)</en_uk><nl>De ijsbestellingen staan in de linkerbovenhoek. Bekijk het receptenboek om te zien hoe je elk ijsje maakt. De kleur van het servetje onder elke bestelling geeft aan voor welke fee de bestelling is (nu is dat de blauwe fee).</nl><fr>Tu trouveras les commandes de glace en haut à gauche. Pour savoir comment préparer les différents plats, consulte le livre de recettes. La couleur de serviette sous chaque commande te montre quelle fée l'a passée. (Dans le cas présent, c'est la Fée bleue).</fr><de>Du findest die Eisbestellungen in der oberen, linken Ecke. Im Rezeptbuch kannst du nachlesen, wie jedes Rezept zubereitet wird. Die Serviettenfarbe unter jeder Bestellung zeigt an, von welcher Fee die Bestellung stammt. (In diesem Fall von der blauen Fee.)</de><es>Encontrarás los pedidos de helados en la esquina superior izquierda. Para averiguar cómo se hace cada helado, haz clic en el libro de recetas. El color de la servilleta bajo cada pedido muestra para qué hada es. (En este caso, es para el Hada Azul).</es><br>Você vai ver os pedidos de sorvete no canto superior esquerdo. Para saber como preparar cada prato, use o livro de receitas. A cor do guardanapo embaixo de cada pedido indica de que fada ele é. (Neste caso, é da Fada Azul.)</br><pt>Encontras os pedidos de gelado no canto superior esquerdo. Para descobrires como se faz cada prato, usa o livro de receitas. A cor do guardanapo por baixo de cada pedido mostra de que fada é o pedido. (Neste caso, é a Fada Azul.)</pt><it>Troverai gli ordini dei gelati nell'angolo in alto a sinistra. Per capire come fare ogni piatto clicca sul libro di ricette. Il colore del tovagliolo sotto ogni ordine indica la fata che ha fatto l'ordine (in questo caso si tratta della Fata Blu).</it><se>Du hittar glassbeställningarna längst upp till vänster. Använd receptboken för att se hur du tillagar varje rätt. Servettfärgen under varje beställning visar vilken febeställning det är. (I detta fall: Den blå fens.)</se><pl>Zamówienia na lody znajdziesz w lewym górnym rogu. Aby dowiedzieć się, jak przygotować każdy z deserów, użyj książki z przepisami. Kolor serwetki pod każdym zamówieniem pokazuje, która wróżka je złożyła. (W tym przypadku to Błękitna Wróżka.)</pl><ru>Заказы появляются в левом верхнем углу. Чтобы узнать, как приготовить заказанное мороженое, используй книгу рецептов. Цвет салфетки под каждым из заказов показывает, какая из фей его сделала (сейчас это голубая фея). </ru><id>Kamu lihat pesanan es krim di sudut kiri atas. Untuk tahu cara membuat setiap masakan, gunakan buku resep. Warna serbet kertas di bawah setiap pesanan menunjukkan pesanan dari peri yang mana. (Dalam kasus ini, ini pesanan Peri Biru)</id><ar>You'll find the ice-cream orders in the top-left corner. To figure out how to make each dish, use the recipe book. The napkin color under each order shows which fairy's order it is. (In this case, it's the Blue Fairy.)</ar><jp>You'll find the ice-cream orders in the top-left corner. To figure out how to make each dish, use the recipe book. The napkin color under each order shows which fairy's order it is. (In this case, it's the Blue Fairy.)</jp><cn>You'll find the ice-cream orders in the top-left corner. To figure out how to make each dish, use the recipe book. The napkin color under each order shows which fairy's order it is. (In this case, it's the Blue Fairy.)</cn></textItem><textItem identifier="lb_Tutor1"><en_us>First click the correct color combination.</en_us><en_uk>First click the correct colour combination.</en_uk><nl>Klik eerst op de juiste kleurencombinatie.</nl><fr>Commence par cliquer sur la bonne combinaison de couleurs.</fr><de>Klicke als Erstes die richtige Farbkombination an.</de><es>Primero haz clic en la combinación de colores correcta.</es><br>Primeiro, clique na combinação de cores correta.</br><pt>Primeiro clica na combinação certa de cores.</pt><it>Prima clicca sulla combinazione di colori giusta.</it><se>Klicka först på rätt färgkombination.</se><pl>Najpierw kliknij na właściwą kombinację kolorów.</pl><ru>Вначале подбери нужное сочетание цветов.</ru><id>Pertama, klik kombinasi warna yang benar.</id><ar>First click the correct color combination.</ar><jp>First click the correct color combination.</jp><cn>First click the correct color combination.</cn></textItem><textItem identifier="lb_Tutor2"><en_us>Then click the snowflake-maker to freeze the ice cream.</en_us><en_uk>Then click the snowflake maker to freeze the ice cream.</en_uk><nl>Klik dan op de sneeuwvlokjesmaker om het te bevriezen.</nl><fr>Clique ensuite sur le générateur de flocons de neige pour congeler la glace.</fr><de>Klicke dann den Schneeflockenbereiter an, um die Eiscreme zu gefrieren.</de><es>Luego haz clic en los copos de nieve para enfriar el helado.</es><br>Depois, clique no gerador de floco de neve para congelar o sorvete.</br><pt>Depois clica no fazedor de flocos de neve para congelares o gelado.</pt><it>Poi clicca sulla macchina che crea i fiocchi di neve per congelare il gelato.</it><se>Klicka sedan på ismaskinen för att skapa glass.</se><pl>Następnie kliknij na maszynę do płatków śniegu, aby zrobić lód.</pl><ru>Затем щелкни по сосуду со снежинками, чтобы заморозить мороженое.</ru><id>Lalu, klik pembuat bunga salju untuk membekukan es.</id><ar>Then click the snowflake-maker to freeze the ice cream.</ar><jp>Then click the snowflake-maker to freeze the ice cream.</jp><cn>Then click the snowflake-maker to freeze the ice cream.</cn></textItem><textItem identifier="lb_Tutor3"><en_us>Click the correct ice-cream dish.</en_us><en_uk>Click the correct ice cream dish.</en_uk><nl>Klik op het juiste kommetje.</nl><fr>Clique sur la bonne coupelle de glace.</fr><de>Klicke die richtige Eisschüssel an.</de><es>Haz clic en la copa de helado correcta.</es><br>Clique no prato de sorvete correto.</br><pt>Clica no prato de gelado correcto.</pt><it>Clicca sul piatto di gelato giusto.</it><se>Klicka på rätt glasskål.</se><pl>Kliknij na odpowiednie naczynie do lodów.</pl><ru>Щелкни по вазочке нужного цвета.</ru><id>Klik hidangan es krim yang benar.</id><ar>Click the correct ice-cream dish.</ar><jp>Click the correct ice-cream dish.</jp><cn>Click the correct ice-cream dish.</cn></textItem><textItem identifier="lb_Tutor4"><en_us>To put the ice cream in the dish, click the ice cream, then click the dish.</en_us><en_uk>To place the ice cream in the dish, click the ice cream, and then click the dish.</en_uk><nl>Om het ijs in het kommetje te doen, klik je op het ijsje en daarna op het kommetje.</nl><fr>Pour placer la glace dans la coupelle, clique sur la glace, puis sur la coupelle.</fr><de>Um die Eiscreme in die Schüssel zu geben, klicke die Eiscreme an, dann die Schüssel.</de><es>Para colocar el helado en la copa, haz clic en el helado y luego en la copa.</es><br>Para colocar o sorvete no prato, clique no sorvete e depois no prato.</br><pt>Para colocares o gelado no prato, clica no gelado e depois no prato.</pt><it>Per mettere il gelato sul piatto, clicca prima sul gelato e poi sul piatto.</it><se>Lägg glassen i skålen genom att klicka på glassen och sedan skålen.</se><pl>Aby umieścić lody w naczyniu, kliknij na lody, a następnie na maszynę.</pl><ru>Чтобы поместить мороженое в вазочку, щелкни по мороженому, а затем по вазочке.</ru><id>Untuk menaruh es krim dalam hidangan, klik es krimnya, lalu klik hidangannya.</id><ar>To put the ice cream in the dish, click the ice cream, then click the dish.</ar><jp>To put the ice cream in the dish, click the ice cream, then click the dish.</jp><cn>To put the ice cream in the dish, click the ice cream, then click the dish.</cn></textItem><textItem identifier="lb_Tutor5"><en_us>To deliver the order, click the ice-cream order, then the correct color of fairy.</en_us><en_uk>To deliver the order, click the ice cream order, then click the correct colour of fairy.</en_uk><nl>Om de bestelling aan de klant te geven, klik je op de bestelling en daarna op de juiste fee.</nl><fr>Pour servir la commande, clique sur la glace puis sur la fée de la bonne couleur.</fr><de>Um die Bestellung auszuliefern, klicke die Eisbestellung an, dann die richtige Farbe der Fee.</de><es>Para entregar el pedido, haz clic en el helado pedido y luego en el color de hada correcto.</es><br>Para entregar o pedido, clique no sorvete pronto e depois na fada correta.</br><pt>Para entregares o pedido, clica no pedido de gelado, depois na cor correcta da fada.</pt><it>Per consegnare l'ordine clicca sull'ordine del gelato e poi sul colore della fata giusta.</it><se>Servera: Klicka på glassbeställningen och sedan på fen av rätt färg.</se><pl>Aby dostarczyć zamówienie, kliknij na nie, a następnie na właściwą wróżkę.</pl><ru>Чтобы доставить заказ, щелкни по мороженому, а затем по фее нужного цвета.</ru><id>Untuk mengantarkan pesanan, klik pesanan es krim, lalu koreksi warna peri.</id><ar>To deliver the order, click the ice-cream order, then the correct color of fairy.</ar><jp>To deliver the order, click the ice-cream order, then the correct color of fairy.</jp><cn>To deliver the order, click the ice-cream order, then the correct color of fairy.</cn></textItem><textItem identifier="lb_Tutor6"><en_us>If you make a mistake, click it and then the Recycle Fairy.</en_us><en_uk>If you make a mistake, click it and then click the Recycle Fairy.</en_uk><nl>Als je een fout maakt, klik je erop en daarna op de recycle-fee.</nl><fr>Si tu as fait une faute, clique dessus puis clique sur la Fée de recyclage.</fr><de>Wenn du einen Fehler machst, klicke das Eis an, dann die Recycling-Fee.</de><es>Si cometes algún fallo, haz clic en el helado y luego en el Hada Reciclaje.</es><br>Se você fizer um prato errado, clique nele e depois na Fada de Reciclagem.</br><pt>Se te enganares, clica nele e depois na Fada da Reciclagem.</pt><it>Se fai un errore cliccaci sopra e poi clicca sulla Fatina Riciclina. </it><se>Om du gör ett misstag, klicka på det och sedan på sopfen.</se><pl>Jeśli się pomylisz, kliknij na zamówienie, a następnie na Wróżkę Recyklingową.</pl><ru>Если допущена ошибка, щелкни по мороженому, а затем по урне.</ru><id>Jika kamu membuat kesalahan, klik kesalahannya, lalu Peri Daur Ulang.</id><ar>If you make a mistake, click it and then the Recycle Fairy.</ar><jp>If you make a mistake, click it and then the Recycle Fairy.</jp><cn>If you make a mistake, click it and then the Recycle Fairy.</cn></textItem><textItem identifier="lb_Tutor7"><en_us>Click the recipe book to look up ingredients.</en_us><en_uk>Click the recipe book to look up the ingredients.</en_uk><nl>Klik op het receptenboek om ingrediënten op te zoeken.</nl><fr>Clique sur le livre de recettes pour voir les ingrédients.</fr><de>Klicke das Rezeptbuch an, um Zutaten nachzuschlagen.</de><es>Haz clic en el libro de recetas para ver los ingredientes.</es><br>Use o livro de receitas para consultar os ingredientes.</br><pt>Clica no livro de receitas para veres os ingredientes.</pt><it>Clicca sul libro di ricette per vedere gli ingredienti.</it><se>Klicka på receptboken för att se ingredienserna.</se><pl>Kliknij na książkę z przepisami, aby spojrzeć na składniki.</pl><ru>Щелкни по книге рецептов, чтобы узнать ингредиенты.</ru><id>Klik buku resep untuk melihat bahannya.</id><ar>Click the recipe book to look up ingredients.</ar><jp>Click the recipe book to look up ingredients.</jp><cn>Click the recipe book to look up ingredients.</cn></textItem><textItem identifier="lb_Tutorial"><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 bermain</id><ar>How to Play</ar><jp>How to Play</jp><cn>How to Play</cn></textItem><textItem identifier="lb_Congratulations"><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_YouCan"><en_us>You can go to next level!</en_us><en_uk>You can go to the next level!</en_uk><nl>Je gaat door naar het volgende level!</nl><fr>Tu peux passer au niveau suivant !</fr><de>Du kannst den nächsten Level spielen!</de><es>¡Puedes ir al siguiente nivel!</es><br>Você pode ir para a próxima fase!</br><pt>Podes avançar para o nível seguinte!</pt><it>Puoi proseguire al prossimo livello!</it><se>Du kan gå till nästa nivå!</se><pl>Możesz przejść do następnego poziomu!</pl><ru>Пора на следующий уровень!</ru><id>Kamu bisa naik ke level berikutnya!</id><ar>You can go to next level!</ar><jp>You can go to next level!</jp><cn>You can go to next level!</cn></textItem><textItem identifier="lbPapanLevel"><en_us>Level</en_us><en_uk>Level</en_uk><nl>Level</nl><fr>Niveau</fr><de>Level</de><es>Nivel</es><br>Fase</br><pt>Nível</pt><it>Livello</it><se>Nivå</se><pl>Poziom</pl><ru>Уровень</ru><id>Level</id><ar>Level</ar><jp>Level</jp><cn>Level</cn></textItem><textItem identifier="lbTargetScore"><en_us>Target Score</en_us><en_uk>Target Score</en_uk><nl>Doelscore</nl><fr>Score à atteindre</fr><de>Punkteziel</de><es>Puntuación objetivo</es><br>Meta de Pontos</br><pt>Pontuação-alvo</pt><it>Obiettivo punteggio</it><se>Målpoäng</se><pl>Wynik docelowy</pl><ru>Цель</ru><id>Skor Target</id><ar>Target Score</ar><jp>Target Score</jp><cn>Target Score</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 divertissants sur :</fr><de>Mehr witzige 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 roliga spel på:</se><pl>Więcej zabawnych gier na:</pl><ru>Больше веселых игр на:</ru><id>Permainan lucu 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___id44__GGGMoreGamesBtn_Layer1_0(){
try {
__id44_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id44_.text = "{btn_moregamesat}";
__id44_.textColor = 0;
__id44_.textSize = 12;
__id44_.bold = false;
__id44_.disableWordwrap = false;
__id44_.embedFonts = true;
__id44_.font = "Franklin Gothic Book";
__id44_.hAlign = "center";
__id44_.multiline = false;
__id44_.vAlign = "top";
__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 Madonna_fla
Section 36
//grail3_291 (Madonna_fla.grail3_291)
package Madonna_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 grail3_291 extends MovieClip {
public function grail3_291(){
addFrameScript(0, frame1, 1, frame2, 124, frame125);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
function frame125(){
CGame.GetInstance()["proses2"].setGelas(3);
}
}
}//package Madonna_fla
Section 37
//grail3b_347 (Madonna_fla.grail3b_347)
package Madonna_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 grail3b_347 extends MovieClip {
public function grail3b_347(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 177, frame178);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
function frame3(){
gotoAndPlay(85);
}
function frame178(){
stop();
}
}
}//package Madonna_fla
Section 38
//grailmuncul1_288 (Madonna_fla.grailmuncul1_288)
package Madonna_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 grailmuncul1_288 extends MovieClip {
public function grailmuncul1_288(){
addFrameScript(49, frame50);
}
function frame50(){
stop();
}
}
}//package Madonna_fla
Section 39
//grailmuncul1b_287 (Madonna_fla.grailmuncul1b_287)
package Madonna_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 grailmuncul1b_287 extends MovieClip {
public function grailmuncul1b_287(){
addFrameScript(49, frame50);
}
function frame50(){
stop();
}
}
}//package Madonna_fla
Section 40
//grailsummon1_286 (Madonna_fla.grailsummon1_286)
package Madonna_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 grailsummon1_286 extends MovieClip {
public function grailsummon1_286(){
addFrameScript(0, frame1, 1, frame2, 177, frame178);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
function frame178(){
CGame.GetInstance()["proses2"].setGelas(1);
stop();
}
}
}//package Madonna_fla
Section 41
//grailsummonb2_289 (Madonna_fla.grailsummonb2_289)
package Madonna_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 grailsummonb2_289 extends MovieClip {
public function grailsummonb2_289(){
addFrameScript(1, frame2, 177, frame178);
}
function frame178(){
CGame.GetInstance()["proses2"].setGelas(2);
}
function frame2(){
stop();
}
}
}//package Madonna_fla
Section 42
//madonnaicemaking_240 (Madonna_fla.madonnaicemaking_240)
package Madonna_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 madonnaicemaking_240 extends MovieClip {
public function madonnaicemaking_240(){
addFrameScript(89, frame90);
}
function frame90(){
stop();
CGame.GetInstance().orang.setOrang("diamKiri");
}
}
}//package Madonna_fla
Section 43
//madonnamakinggraila_224 (Madonna_fla.madonnamakinggraila_224)
package Madonna_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 madonnamakinggraila_224 extends MovieClip {
public function madonnamakinggraila_224(){
addFrameScript(119, frame120, 184, frame185);
}
function frame185(){
stop();
CGame.GetInstance().orang.setOrang("diamKanan");
}
function frame120(){
}
}
}//package Madonna_fla
Section 44
//mainmenu_1_326 (Madonna_fla.mainmenu_1_326)
package Madonna_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 mainmenu_1_326 extends MovieClip {
public var __id18_:LocalizedTextField;
public function mainmenu_1_326(){
__setProp___id18__mainmenu_1_Layer1_0();
}
function __setProp___id18__mainmenu_1_Layer1_0(){
try {
__id18_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id18_.text = "{lb_MainMenu}";
__id18_.textColor = 16760283;
__id18_.textSize = 17;
__id18_.bold = false;
__id18_.disableWordwrap = false;
__id18_.embedFonts = true;
__id18_.font = "GoudyHandtooled";
__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 Madonna_fla
Section 45
//mainmenu_321 (Madonna_fla.mainmenu_321)
package Madonna_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 mainmenu_321 extends MovieClip {
public var __id21_:LocalizedTextField;
public function mainmenu_321(){
__setProp___id21__mainmenu_Layer1_0();
}
function __setProp___id21__mainmenu_Layer1_0(){
try {
__id21_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id21_.text = "{lb_MainMenu}";
__id21_.textColor = 14545663;
__id21_.textSize = 17;
__id21_.bold = false;
__id21_.disableWordwrap = false;
__id21_.embedFonts = true;
__id21_.font = "GoudyHandtooled";
__id21_.hAlign = "center";
__id21_.multiline = true;
__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 Madonna_fla
Section 46
//MusicBtn_80 (Madonna_fla.MusicBtn_80)
package Madonna_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_80 extends MovieClip {
public function MusicBtn_80(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Madonna_fla
Section 47
//NEXT_333 (Madonna_fla.NEXT_333)
package Madonna_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 NEXT_333 extends MovieClip {
public var __id14_:LocalizedTextField;
public function NEXT_333(){
__setProp___id14__NEXT_Layer1_0();
}
function __setProp___id14__NEXT_Layer1_0(){
try {
__id14_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id14_.text = "{lb_NEXT}";
__id14_.textColor = 15464161;
__id14_.textSize = 17;
__id14_.bold = false;
__id14_.disableWordwrap = false;
__id14_.embedFonts = true;
__id14_.font = "GoudyHandtooled";
__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 Madonna_fla
Section 48
//nextlevel_0_319 (Madonna_fla.nextlevel_0_319)
package Madonna_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 nextlevel_0_319 extends MovieClip {
public var __id23_:LocalizedTextField;
public function nextlevel_0_319(){
__setProp___id23__nextlevel_0_Layer1_0();
}
function __setProp___id23__nextlevel_0_Layer1_0(){
try {
__id23_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id23_.text = "{lb_NextLevel}";
__id23_.textColor = 14545663;
__id23_.textSize = 17;
__id23_.bold = false;
__id23_.disableWordwrap = false;
__id23_.embedFonts = true;
__id23_.font = "GoudyHandtooled";
__id23_.hAlign = "center";
__id23_.multiline = true;
__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 Madonna_fla
Section 49
//no_314 (Madonna_fla.no_314)
package Madonna_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 no_314 extends MovieClip {
public var __id26_:LocalizedTextField;
public function no_314(){
__setProp___id26__no_Layer1_0();
}
function __setProp___id26__no_Layer1_0(){
try {
__id26_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id26_.text = "lb_NO";
__id26_.textColor = 94909;
__id26_.textSize = 50;
__id26_.bold = false;
__id26_.disableWordwrap = false;
__id26_.embedFonts = true;
__id26_.font = "GoudyHandtooled";
__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 Madonna_fla
Section 50
//papan1_188 (Madonna_fla.papan1_188)
package Madonna_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 papan1_188 extends MovieClip {
public var bintang:MovieClip;
public function papan1_188(){
addFrameScript(29, frame30);
}
function frame30(){
stop();
}
}
}//package Madonna_fla
Section 51
//papan2_186 (Madonna_fla.papan2_186)
package Madonna_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 papan2_186 extends MovieClip {
public var bintang:MovieClip;
public function papan2_186(){
addFrameScript(29, frame30);
}
function frame30(){
stop();
}
}
}//package Madonna_fla
Section 52
//papan3_182 (Madonna_fla.papan3_182)
package Madonna_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 papan3_182 extends MovieClip {
public var bintang:MovieClip;
public function papan3_182(){
addFrameScript(29, frame30);
}
function frame30(){
stop();
}
}
}//package Madonna_fla
Section 53
//PLAY_125 (Madonna_fla.PLAY_125)
package Madonna_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 PLAY_125 extends MovieClip {
public var __id45_:LocalizedTextField;
public function PLAY_125(){
__setProp___id45__PLAY_Layer1_0();
}
function __setProp___id45__PLAY_Layer1_0(){
try {
__id45_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id45_.text = "{lb_PLAY}";
__id45_.textColor = 16110821;
__id45_.textSize = 50;
__id45_.bold = false;
__id45_.disableWordwrap = false;
__id45_.embedFonts = true;
__id45_.font = "GoudyHandtooled";
__id45_.hAlign = "center";
__id45_.multiline = true;
__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 Madonna_fla
Section 54
//playmore_0_320 (Madonna_fla.playmore_0_320)
package Madonna_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 playmore_0_320 extends MovieClip {
public var __id22_:LocalizedTextField;
public function playmore_0_320(){
__setProp___id22__playmore_0_Layer1_0();
}
function __setProp___id22__playmore_0_Layer1_0(){
try {
__id22_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id22_.text = "{lb_PlayMoreGames}";
__id22_.textColor = 16756424;
__id22_.textSize = 17;
__id22_.bold = false;
__id22_.disableWordwrap = false;
__id22_.embedFonts = true;
__id22_.font = "GoudyHandtooled";
__id22_.hAlign = "center";
__id22_.multiline = true;
__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 Madonna_fla
Section 55
//playmore_327 (Madonna_fla.playmore_327)
package Madonna_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 playmore_327 extends MovieClip {
public var __id17_:LocalizedTextField;
public function playmore_327(){
__setProp___id17__playmore_Layer1_0();
}
function __setProp___id17__playmore_Layer1_0(){
try {
__id17_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id17_.text = "{lb_PlayMoreGames}";
__id17_.textColor = 14545663;
__id17_.textSize = 17;
__id17_.bold = false;
__id17_.disableWordwrap = false;
__id17_.embedFonts = true;
__id17_.font = "GoudyHandtooled";
__id17_.hAlign = "center";
__id17_.multiline = true;
__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 Madonna_fla
Section 56
//QualityBtn_81 (Madonna_fla.QualityBtn_81)
package Madonna_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_81 extends MovieClip {
public function QualityBtn_81(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Madonna_fla
Section 57
//SFXBtn_82 (Madonna_fla.SFXBtn_82)
package Madonna_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_82 extends MovieClip {
public function SFXBtn_82(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
function frame3(){
stop();
}
function frame4(){
stop();
}
}
}//package Madonna_fla
Section 58
//SKIP_332 (Madonna_fla.SKIP_332)
package Madonna_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 SKIP_332 extends MovieClip {
public var __id15_:LocalizedTextField;
public function SKIP_332(){
__setProp___id15__SKIP_Layer1_0();
}
function __setProp___id15__SKIP_Layer1_0(){
try {
__id15_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id15_.text = "{lb_SKIP}";
__id15_.textColor = 15727103;
__id15_.textSize = 17;
__id15_.bold = false;
__id15_.disableWordwrap = false;
__id15_.embedFonts = true;
__id15_.font = "GoudyHandtooled";
__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 Madonna_fla
Section 59
//Timeline_308 (Madonna_fla.Timeline_308)
package Madonna_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 Timeline_308 extends MovieClip {
public var __id29_:LocalizedTextField;
public var __id28_:LocalizedTextField;
public function Timeline_308(){
__setProp___id28__();
__setProp___id29__();
}
function __setProp___id28__(){
try {
__id28_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id28_.text = "{lb_CONTINUE?}";
__id28_.textColor = 94909;
__id28_.textSize = 50;
__id28_.bold = false;
__id28_.disableWordwrap = false;
__id28_.embedFonts = true;
__id28_.font = "GoudyHandtooled";
__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) {
};
}
function __setProp___id29__(){
try {
__id29_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id29_.text = "{lb_DonForget}";
__id29_.textColor = 94909;
__id29_.textSize = 50;
__id29_.bold = false;
__id29_.disableWordwrap = false;
__id29_.embedFonts = true;
__id29_.font = "GoudyHandtooled";
__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 Madonna_fla
Section 60
//Timeline_316 (Madonna_fla.Timeline_316)
package Madonna_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 Timeline_316 extends MovieClip {
public var __id25_:LocalizedTextField;
public var __id24_:LocalizedTextField;
public function Timeline_316(){
__setProp___id24__();
__setProp___id25__();
}
function __setProp___id24__(){
try {
__id24_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id24_.text = "{lb_Congratulations}";
__id24_.textColor = 94909;
__id24_.textSize = 25;
__id24_.bold = false;
__id24_.disableWordwrap = false;
__id24_.embedFonts = true;
__id24_.font = "GoudyHandtooled";
__id24_.hAlign = "center";
__id24_.multiline = true;
__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) {
};
}
function __setProp___id25__(){
try {
__id25_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id25_.text = "{lb_YouCan}";
__id25_.textColor = 94909;
__id25_.textSize = 25;
__id25_.bold = false;
__id25_.disableWordwrap = false;
__id25_.embedFonts = true;
__id25_.font = "GoudyHandtooled";
__id25_.hAlign = "center";
__id25_.multiline = true;
__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 Madonna_fla
Section 61
//Timeline_323 (Madonna_fla.Timeline_323)
package Madonna_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 Timeline_323 extends MovieClip {
public var __id20_:LocalizedTextField;
public var __id19_:LocalizedTextField;
public function Timeline_323(){
__setProp___id19__();
__setProp___id20__();
}
function __setProp___id20__(){
try {
__id20_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id20_.text = "{lb_KetGameOver}";
__id20_.textColor = 94909;
__id20_.textSize = 50;
__id20_.bold = false;
__id20_.disableWordwrap = false;
__id20_.embedFonts = true;
__id20_.font = "GoudyHandtooled";
__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) {
};
}
function __setProp___id19__(){
try {
__id19_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id19_.text = "{lb_GameOver}";
__id19_.textColor = 94909;
__id19_.textSize = 50;
__id19_.bold = false;
__id19_.disableWordwrap = false;
__id19_.embedFonts = true;
__id19_.font = "GoudyHandtooled";
__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 Madonna_fla
Section 62
//Timeline_329 (Madonna_fla.Timeline_329)
package Madonna_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 Timeline_329 extends MovieClip {
public var __id16_:LocalizedTextField;
public function Timeline_329(){
__setProp___id16__();
}
function __setProp___id16__(){
try {
__id16_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id16_.text = "{lb_Tutorial}";
__id16_.textColor = 1127493;
__id16_.textSize = 100;
__id16_.bold = false;
__id16_.disableWordwrap = false;
__id16_.embedFonts = true;
__id16_.font = "GoudyHandtooled";
__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 Madonna_fla
Section 63
//Timeline_357 (Madonna_fla.Timeline_357)
package Madonna_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 Timeline_357 extends MovieClip {
public var __id2_:LocalizedTextField;
public function Timeline_357(){
__setProp___id2__();
}
function __setProp___id2__(){
try {
__id2_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id2_.text = "lb_YouDid";
__id2_.textColor = 94909;
__id2_.textSize = 50;
__id2_.bold = false;
__id2_.disableWordwrap = false;
__id2_.embedFonts = true;
__id2_.font = "GoudyHandtooled";
__id2_.hAlign = "center";
__id2_.multiline = true;
__id2_.vAlign = "middle";
__id2_.antiAliasType = "advanced";
__id2_.glowBlur = 3;
__id2_.glowColor = 0;
__id2_.useGlowFilter = false;
__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 Madonna_fla
Section 64
//Timeline_85 (Madonna_fla.Timeline_85)
package Madonna_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 Timeline_85 extends MovieClip {
public var __id46_:LocalizedTextField;
public function Timeline_85(){
__setProp___id46__();
}
function __setProp___id46__(){
try {
__id46_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id46_.text = "{lb_MagicIce}";
__id46_.textColor = 76609;
__id46_.textSize = 175;
__id46_.bold = false;
__id46_.disableWordwrap = false;
__id46_.embedFonts = true;
__id46_.font = "Phyllis";
__id46_.hAlign = "center";
__id46_.multiline = false;
__id46_.vAlign = "middle";
__id46_.antiAliasType = "advanced";
__id46_.glowBlur = 3;
__id46_.glowColor = 2730978;
__id46_.useGlowFilter = true;
__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 Madonna_fla
Section 65
//timeplate_281 (Madonna_fla.timeplate_281)
package Madonna_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 timeplate_281 extends MovieClip {
public var __id36_:LocalizedTextField;
public function timeplate_281(){
__setProp___id36__timeplate_Layer1_0();
}
function __setProp___id36__timeplate_Layer1_0(){
try {
__id36_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id36_.text = "{lb_Time}";
__id36_.textColor = 0xFFFFFF;
__id36_.textSize = 50;
__id36_.bold = false;
__id36_.disableWordwrap = false;
__id36_.embedFonts = true;
__id36_.font = "Alako-Bold";
__id36_.hAlign = "center";
__id36_.multiline = false;
__id36_.vAlign = "middle";
__id36_.antiAliasType = "advanced";
__id36_.glowBlur = 3;
__id36_.glowColor = 0;
__id36_.useGlowFilter = false;
__id36_.glowQuality = 1;
__id36_.glowStrength = 5;
__id36_.gridFitType = "pixel";
__id36_.italic = false;
__id36_.selectable = false;
__id36_.underline = false;
try {
__id36_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package Madonna_fla
Section 66
//ui_278 (Madonna_fla.ui_278)
package Madonna_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 ui_278 extends MovieClip {
public var __id37_:LocalizedTextField;
public var waktu:MovieClip;
public var score:TextField;
public var btnSound:MovieClip;
public var btnPause:MovieClip;
public function ui_278(){
__setProp___id37__ui_Layer1_0();
}
function __setProp___id37__ui_Layer1_0(){
try {
__id37_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id37_.text = "{lb_Score}";
__id37_.textColor = 0xFFFFFF;
__id37_.textSize = 50;
__id37_.bold = false;
__id37_.disableWordwrap = false;
__id37_.embedFonts = true;
__id37_.font = "Alako-Bold";
__id37_.hAlign = "center";
__id37_.multiline = false;
__id37_.vAlign = "top";
__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 Madonna_fla
Section 67
//yes_313 (Madonna_fla.yes_313)
package Madonna_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 yes_313 extends MovieClip {
public var __id27_:LocalizedTextField;
public function yes_313(){
__setProp___id27__yes_Layer1_0();
}
function __setProp___id27__yes_Layer1_0(){
try {
__id27_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id27_.text = "lb_YES";
__id27_.textColor = 94909;
__id27_.textSize = 50;
__id27_.bold = false;
__id27_.disableWordwrap = false;
__id27_.embedFonts = true;
__id27_.font = "GoudyHandtooled";
__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 Madonna_fla
Section 68
//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,");
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 69
//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 70
//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 71
//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.TWEEN;
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.TEEN;
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.TWEEN;
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.TWEEN;
_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.TWEEN;
_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.TWEEN;
_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.TWEEN;
_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.TWEEN;
_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.TWEEN;
_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.TWEEN;
_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.TWEEN;
_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.TWEEN;
_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.TWEEN;
_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.TWEEN;
_local1.preferedLanguage = "id";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 105;
_local1.domain = "www.flashgames.ru";
_local1.emailLink = "igra";
_local1.portalGroup = PortalGroup.TWEEN;
_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.TWEEN;
_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.TWEEN;
_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 72
//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.TEEN]);
}
public function set p_hyves(_arg1:String):void{
portal_groups[PortalGroup.HYVES] = _arg1;
}
public function set p_teen(_arg1:String):void{
portal_groups[PortalGroup.TEEN] = _arg1;
}
public function get p_tween():String{
return (portal_groups[PortalGroup.TWEEN]);
}
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.TWEEN] = _arg1;
}
public function get p_zapapa():String{
return (portal_groups[PortalGroup.ZAPAPA]);
}
}
}//package spill.localisation
Section 73
//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.embedFonts = false;
_local1.embedInputFonts = false;
_local1.forceFont = "_sans";
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.agame.com";
_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.embedFonts = true;
_local1.embedInputFonts = false;
_local1.forceFont = "MS UI Gothic";
_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 74
//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 75
//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 76
//LanguageSelectPopup_mc (spill.localisation.LanguageSelectPopup_mc)
package spill.localisation {
import flash.display.*;
public dynamic class LanguageSelectPopup_mc extends MovieClip {
public var l_cn:MovieClip;
public var l_br:MovieClip;
public var l_se:MovieClip;
public var l_id:MovieClip;
public var l_es_ar:MovieClip;
public var l_es_mx: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_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 77
//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 78
//PortalGroup (spill.localisation.PortalGroup)
package spill.localisation {
import flash.xml.*;
public class PortalGroup {
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 TWEEN:uint = 1;
public static const HYVES:uint = 5;
public static const TEEN:uint = 3;
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 79
//spil_internal (spill.localisation.spil_internal)
package spill.localisation {
public namespace spil_internal = "spill.localisation";
}//package spill.localisation
Section 80
//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]);
};
return (_local2[currentLanguage.name]);
//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 81
//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 82
//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 {
field.embedFonts = false;
};
if (TextFieldFit.forceFont){
format.font = TextFieldFit.forceFont;
} else {
if (_font != ""){
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 83
//bgsound (bgsound)
package {
import flash.media.*;
public dynamic class bgsound extends Sound {
}
}//package
Section 84
//bgSound (bgSound)
package {
import flash.media.*;
public dynamic class bgSound extends Sound {
}
}//package
Section 85
//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 86
//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 87
//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 88
//CGame (CGame)
package {
import flash.display.*;
import flash.events.*;
import caurina.transitions.*;
import de.polygonal.math.*;
public class CGame extends CBaseMovieClip {
public var gelas:MovieClip;
public var pewarna:MovieClip;
public var order:MovieClip;
public var btnResep:MovieClip;
public var orang:MovieClip;
public var proses1:MovieClip;
public var proses2:MovieClip;
public var papanOrder:MovieClip;
public var order2:MovieClip;
public var kacaDepan:MovieClip;
public var botol:MovieClip;
public var border:MovieClip;
public var putih:MovieClip;
public var peri:MovieClip;
private static var CGameGlobal:CGame;
public function CGame(){
super("update");
CGameGlobal = this;
trace("init cgame");
Data.createPapan();
if (Data.level == 1){
Data.show("tutor");
} else {
Data.show("awal");
};
setButton();
setEventButton();
initOrder();
init();
}
public function nilaiAwal(){
initOrder();
proses1.reset();
proses2.reset();
Data.waktu = 10000;
border["score"].text = Data.score;
}
public function cekLamaOrder(){
var _local1:* = 1;
while (_local1 <= Data.maxOrder) {
if (papanOrder[("_" + _local1)]["bintang"]){
if (order[("_" + _local1)].lama > 2250){
papanOrder[("_" + _local1)]["bintang"]["_1"].visible = true;
} else {
papanOrder[("_" + _local1)]["bintang"]["_1"].visible = false;
};
if (order[("_" + _local1)].lama > 1500){
papanOrder[("_" + _local1)]["bintang"]["_2"].visible = true;
} else {
papanOrder[("_" + _local1)]["bintang"]["_2"].visible = false;
};
if (order[("_" + _local1)].lama > 750){
papanOrder[("_" + _local1)]["bintang"]["_3"].visible = true;
} else {
papanOrder[("_" + _local1)]["bintang"]["_3"].visible = false;
};
if (order[("_" + _local1)].lama > 0){
papanOrder[("_" + _local1)]["bintang"]["_4"].visible = true;
} else {
papanOrder[("_" + _local1)]["bintang"]["_4"].visible = false;
createOrder(_local1);
Data.kurangScore();
};
};
_local1++;
};
}
public function onKlik(_arg1:MouseEvent){
Data.suaraBlup();
if (_arg1.currentTarget.name == "btnResep"){
Data.show("resep");
} else {
if (_arg1.currentTarget.name == "btnPause"){
Data.show("paused");
} else {
if (_arg1.currentTarget.name == "btnSound"){
Data.ToggleSound();
} else {
if (_arg1.currentTarget.name == "botol"){
CGame.GetInstance().orang.setOrang("gerakKiri");
botol["snow"].visible = true;
botol["snow"].gotoAndPlay(1);
} else {
if (_arg1.currentTarget.name.substr(0, 1) == "_"){
if (proses2["gelas"].numChildren == 0){
orang.setOrang("gerakKanan");
proses2.setAnimGelas(_arg1.currentTarget.name.substr(1, 1));
};
} else {
if ((((((_arg1.currentTarget.name == "Merah")) || ((_arg1.currentTarget.name == "Kuning")))) || ((_arg1.currentTarget.name == "Biru")))){
if (((!(proses1["cahaya"].penuh)) && ((proses1["cream"].numChildren == 0)))){
orang.setOrang("diamKiri");
pewarna[("warna" + _arg1.currentTarget.name)].visible = true;
pewarna[("warna" + _arg1.currentTarget.name)].gotoAndPlay(1);
};
} else {
if (!Data.flagKlik){
if (proses2){
if (!proses2.locked){
proses2.resetPosisi();
Data.normal(proses2);
};
};
} else {
Data.flagKlik = false;
};
};
};
};
};
};
};
}
override public function Update(_arg1:Event){
Data.waktuBerkurang();
cekLamaOrder();
}
public function setEventButton(){
addEventListener(MouseEvent.MOUSE_MOVE, onMove, false, 0, true);
addEventListener(MouseEvent.CLICK, onKlik, false, 0, true);
border["btnPause"].addEventListener(MouseEvent.CLICK, onKlik, false, 0, true);
border["btnSound"].addEventListener(MouseEvent.CLICK, onKlik, false, 0, true);
pewarna["Merah"].addEventListener(MouseEvent.CLICK, onKlik, false, 0, true);
pewarna["Kuning"].addEventListener(MouseEvent.CLICK, onKlik, false, 0, true);
pewarna["Biru"].addEventListener(MouseEvent.CLICK, onKlik, false, 0, true);
botol.addEventListener(MouseEvent.CLICK, onKlik, false, 0, true);
gelas["_1"].addEventListener(MouseEvent.CLICK, onKlik, false, 0, true);
gelas["_2"].addEventListener(MouseEvent.CLICK, onKlik, false, 0, true);
gelas["_3"].addEventListener(MouseEvent.CLICK, onKlik, false, 0, true);
btnResep.addEventListener(MouseEvent.CLICK, onKlik, false, 0, true);
}
public function initOrder(){
var _local1:* = 1;
while (_local1 <= 3) {
if (_local1 <= Data.maxOrder){
createOrder(_local1);
order[("_" + _local1)].AddDispatcher();
} else {
order[("_" + _local1)].visible = false;
Data.resetMC(order2[("_" + _local1)]);
papanOrder[("_" + _local1)].visible = false;
};
_local1++;
};
}
public function init(){
Data.setJadiButton(btnResep);
pewarna["warnaMerah"].visible = false;
pewarna["warnaKuning"].visible = false;
pewarna["warnaBiru"].visible = false;
botol["snow"].visible = false;
pewarna["warnaMerah"].gotoAndStop(1);
pewarna["warnaKuning"].gotoAndStop(1);
pewarna["warnaBiru"].gotoAndStop(1);
botol["snow"].gotoAndStop(1);
kacaDepan.mouseEnabled = false;
kacaDepan.mouseChildren = false;
putih.mouseEnabled = false;
putih.mouseChildren = false;
Data.setInitLevel();
nilaiAwal();
}
public function setButton(){
Data.setJadiButton(border["btnPause"]);
Data.setJadiButton(border["btnSound"]);
Data.setJadiButton(pewarna["Merah"]);
Data.setJadiButton(pewarna["Kuning"]);
Data.setJadiButton(pewarna["Biru"]);
Data.setJadiButton(botol["dalam"]);
Data.setJadiButton(gelas["_1"]);
Data.setJadiButton(gelas["_2"]);
Data.setJadiButton(gelas["_3"]);
}
public function createOrder(_arg1:int){
trace((("Total ice cream : " + (Data.maxIceCream * 2)) - 3));
Data.orderCream[_arg1] = PM_PRNG.nextIntRange(1, ((Data.maxIceCream * 2) - 3));
Data.orderGelas[_arg1] = PM_PRNG.nextIntRange(1, Data.maxGelas);
Data.orderBungkus[_arg1] = PM_PRNG.nextIntRange(1, Data.maxBungkus);
order[("_" + _arg1)].alpha = 1;
order[("_" + _arg1)].scaleX = 0;
order[("_" + _arg1)].scaleY = 0;
order[("_" + _arg1)].visible = true;
order[("_" + _arg1)].setOrder(Data.orderCream[_arg1], Data.orderGelas[_arg1], Data.orderBungkus[_arg1]);
Tweener.addTween(order[("_" + _arg1)], {scaleX:1, scaleY:1, time:0.5});
papanOrder[("_" + _arg1)].visible = true;
papanOrder[("_" + _arg1)].gotoAndPlay(1);
}
public function onMove(_arg1:MouseEvent){
if (!proses1.locked){
proses1.x = _arg1.stageX;
proses1.y = _arg1.stageY;
};
if (!proses2.locked){
proses2.x = _arg1.stageX;
proses2.y = _arg1.stageY;
};
}
public function changeOrder(_arg1:int, _arg2:int){
if (_arg2 == 1){
Tweener.addTween(order[("_" + _arg1)], {scaleX:1.3, scaleY:1.3, time:0.5, onComplete:changeOrder, onCompleteParams:[_arg1, 2]});
};
if (_arg2 == 2){
Tweener.addTween(order[("_" + _arg1)], {scaleX:1.8, scaleY:1.8, alpha:0, time:0.2, onComplete:changeOrder, onCompleteParams:[_arg1, 3]});
papanOrder[("_" + _arg1)].visible = false;
};
if (_arg2 == 3){
createOrder(_arg1);
};
}
public static function GetInstance():CGame{
return (CGameGlobal);
}
}
}//package
Section 89
//CKalah (CKalah)
package {
import flash.media.*;
public dynamic class CKalah extends Sound {
}
}//package
Section 90
//CKlik (CKlik)
package {
import flash.media.*;
public dynamic class CKlik extends Sound {
}
}//package
Section 91
//cling (cling)
package {
import flash.media.*;
public dynamic class cling extends Sound {
}
}//package
Section 92
//CMainMenu (CMainMenu)
package {
import flash.display.*;
import flash.events.*;
public class CMainMenu extends MovieClip {
public var btnPlay:MovieClip;
public function CMainMenu(){
mouseEnabled = false;
Data.setJadiButton(btnPlay);
btnPlay.addEventListener(MouseEvent.CLICK, onKlik, false, 0, true);
}
private function onKlik(_arg1:MouseEvent):void{
Data.suaraClick();
if (_arg1.currentTarget.name == "btnPlay"){
Data.level = 1;
Data.score = 0;
Main.GetInstance().InitGame();
};
}
}
}//package
Section 93
//CMenang (CMenang)
package {
import flash.media.*;
public dynamic class CMenang extends Sound {
}
}//package
Section 94
//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 95
//COrang (COrang)
package {
import flash.display.*;
import flash.events.*;
public class COrang extends CBaseMovieClip {
public var gerakKiri:MovieClip;
public var diamKanan:MovieClip;
public var gerakKanan:MovieClip;
public var diamKiri:MovieClip;
public function COrang(){
super("update");
setOrang("diamKiri");
}
public function setOrang(_arg1:String){
reset();
this.addChild(this[_arg1]);
this[_arg1].gotoAndPlay(1);
}
override public function Update(_arg1:Event){
}
public function reset(){
while (this.numChildren > 0) {
this.removeChildAt(0);
};
}
}
}//package
Section 96
//COrder (COrder)
package {
import flash.display.*;
import flash.events.*;
public class COrder extends CBaseMovieClip {
public var gelas:MovieClip;
public var cream:MovieClip;
public var lama:int;
public var bungkus:MovieClip;
public function COrder(){
super("update");
}
public function setOrder(_arg1:int, _arg2:int, _arg3:int){
setBungkus(("_" + _arg3));
setGelas(("_" + _arg2));
trace(("rCream = " + _arg1));
if (_arg1 == 1){
setCream("oranye");
Data.setMC(CGame.GetInstance().order2[this.name], "oranye");
};
if (_arg1 == 2){
setCream("hijau");
Data.setMC(CGame.GetInstance().order2[this.name], "hijau");
};
if (_arg1 == 3){
setCream("ungu");
Data.setMC(CGame.GetInstance().order2[this.name], "ungu");
};
lama = 3000;
}
public function setCream(_arg1:String){
while (cream.numChildren > 0) {
cream.removeChild(cream.getChildAt(0));
};
cream.addChild(cream[_arg1]);
}
override public function Update(_arg1:Event){
lama--;
}
public function setBungkus(_arg1:String){
while (bungkus.numChildren > 0) {
bungkus.removeChild(bungkus.getChildAt(0));
};
bungkus.addChild(bungkus[_arg1]);
}
public function setGelas(_arg1:String){
while (gelas.numChildren > 0) {
gelas.removeChild(gelas.getChildAt(0));
};
gelas.addChild(gelas[_arg1]);
}
}
}//package
Section 97
//CPapanFinal (CPapanFinal)
package {
import flash.display.*;
import flash.events.*;
public class CPapanFinal extends CBaseMovieClip {
public var btnMainMenu:MovieClip;
public var btnPlayMore:MovieClip;
public function CPapanFinal(){
super("update");
Data.setJadiButton(btnPlayMore);
Data.setJadiButton(btnMainMenu);
btnMainMenu.addEventListener(MouseEvent.CLICK, onKlik, false, 0, true);
}
public function onKlik(_arg1:MouseEvent){
if (_arg1.currentTarget.name == "btnMainMenu"){
Main.GetInstance().InitMainMenu();
};
}
override public function Update(_arg1:Event){
}
}
}//package
Section 98
//CPapanGameOver (CPapanGameOver)
package {
import flash.display.*;
import flash.events.*;
public class CPapanGameOver extends CBaseMovieClip {
public var btnMainMenu:MovieClip;
public var btnPlayMore:MovieClip;
public function CPapanGameOver(){
super("update");
Data.setJadiButton(btnPlayMore);
Data.setJadiButton(btnMainMenu);
btnMainMenu.addEventListener(MouseEvent.CLICK, onKlik, false, 0, true);
}
public function onKlik(_arg1:MouseEvent){
if (_arg1.currentTarget.name == "btnMainMenu"){
Main.GetInstance().InitMainMenu();
};
}
override public function Update(_arg1:Event){
}
}
}//package
Section 99
//CPapanLevel (CPapanLevel)
package {
import flash.text.*;
import flash.events.*;
import spill.localisation.*;
import caurina.transitions.*;
public class CPapanLevel extends CBaseMovieClip {
public var targetScore:TextField;
public var level:TextField;
public var __id1_:LocalizedTextField;
public var __id0_:LocalizedTextField;
public function CPapanLevel(){
super("update");
__setProp___id0__papanLevel_Layer2_0();
__setProp___id1__papanLevel_Layer2_0();
}
public function hilang(_arg1:int){
if (_arg1 == 1){
Tweener.addTween(this, {alpha:0, time:0.3, transition:"linear", onComplete:hilang, onCompleteParams:[2]});
};
if (_arg1 == 2){
Main.GetInstance().mState = Main.STATE_GAME;
this["parent"].removeChild(this);
};
}
public function init(){
this.alpha = 1;
if (Data.level == 0){
Data.level = 1;
};
level.text = Data.level;
targetScore.text = (Data.level * 100);
Tweener.addTween(this, {time:1.5, onComplete:hilang, onCompleteParams:[1]});
}
override public function Update(_arg1:Event){
}
function __setProp___id1__papanLevel_Layer2_0(){
try {
__id1_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id1_.text = "{lbTargetScore}";
__id1_.textColor = 94909;
__id1_.textSize = 120;
__id1_.bold = false;
__id1_.disableWordwrap = false;
__id1_.embedFonts = true;
__id1_.font = "GoudyHandtooled";
__id1_.hAlign = "right";
__id1_.multiline = false;
__id1_.vAlign = "middle";
__id1_.antiAliasType = "advanced";
__id1_.glowBlur = 3;
__id1_.glowColor = 0;
__id1_.useGlowFilter = false;
__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) {
};
}
function __setProp___id0__papanLevel_Layer2_0(){
try {
__id0_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id0_.text = "{lbPapanLevel}";
__id0_.textColor = 94909;
__id0_.textSize = 120;
__id0_.bold = false;
__id0_.disableWordwrap = false;
__id0_.embedFonts = true;
__id0_.font = "GoudyHandtooled";
__id0_.hAlign = "center";
__id0_.multiline = false;
__id0_.vAlign = "middle";
__id0_.antiAliasType = "advanced";
__id0_.glowBlur = 3;
__id0_.glowColor = 0;
__id0_.useGlowFilter = false;
__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
Section 100
//CPapanNextLevel (CPapanNextLevel)
package {
import flash.display.*;
import flash.events.*;
public class CPapanNextLevel extends CBaseMovieClip {
public var btnMainMenu:MovieClip;
public var btnNextLevel:MovieClip;
public var btnPlayMore:MovieClip;
public function CPapanNextLevel(){
super("update");
Data.setJadiButton(btnNextLevel);
Data.setJadiButton(btnMainMenu);
Data.setJadiButton(btnPlayMore);
btnMainMenu.addEventListener(MouseEvent.CLICK, onKlik, false, 0, true);
btnNextLevel.addEventListener(MouseEvent.CLICK, onKlik, false, 0, true);
}
public function onKlik(_arg1:MouseEvent){
if (_arg1.currentTarget.name == "btnMainMenu"){
Main.GetInstance().InitMainMenu();
};
if (_arg1.currentTarget.name == "btnNextLevel"){
Main.GetInstance().destroyGame();
Main.GetInstance().InitGame();
};
}
override public function Update(_arg1:Event){
}
}
}//package
Section 101
//CPapanPaused (CPapanPaused)
package {
import flash.display.*;
import flash.events.*;
public class CPapanPaused extends CBaseMovieClip {
public var btnYes:MovieClip;
public var btnNo:MovieClip;
public function CPapanPaused(){
super("update");
Data.setJadiButton(btnYes);
Data.setJadiButton(btnNo);
btnYes.addEventListener(MouseEvent.CLICK, onKlik, false, 0, true);
btnNo.addEventListener(MouseEvent.CLICK, onKlik, false, 0, true);
}
public function onKlik(_arg1:MouseEvent){
if (_arg1.currentTarget.name == "btnYes"){
Main.GetInstance().mState = Main.STATE_GAME;
this["parent"].removeChild(this);
};
if (_arg1.currentTarget.name == "btnNo"){
Main.GetInstance().InitMainMenu();
};
}
override public function Update(_arg1:Event){
}
}
}//package
Section 102
//CPapanResep (CPapanResep)
package {
import flash.display.*;
import flash.events.*;
public class CPapanResep extends CBaseMovieClip {
public var btnBack:MovieClip;
public function CPapanResep(){
super("update");
Data.setJadiButton(btnBack);
btnBack.addEventListener(MouseEvent.CLICK, onKlik, false, 0, true);
}
override public function Update(_arg1:Event){
}
public function onKlik(_arg1:MouseEvent){
if (_arg1.currentTarget.name == "btnBack"){
Main.GetInstance().mState = Main.STATE_GAME;
this["parent"].removeChild(this);
};
}
}
}//package
Section 103
//CPapanTutorial (CPapanTutorial)
package {
import flash.display.*;
import flash.events.*;
public class CPapanTutorial extends CBaseMovieClip {
public var btnBack:MovieClip;
public var btnSkip:MovieClip;
public var btnNext:MovieClip;
public function CPapanTutorial(){
addFrameScript(0, frame1);
super("update");
Data.setJadiButton(btnBack);
Data.setJadiButton(btnSkip);
Data.setJadiButton(btnNext);
btnBack.addEventListener(MouseEvent.CLICK, onKlik, false, 0, true);
btnSkip.addEventListener(MouseEvent.CLICK, onKlik, false, 0, true);
btnNext.addEventListener(MouseEvent.CLICK, onKlik, false, 0, true);
}
public function onKlik(_arg1:MouseEvent){
if (_arg1.currentTarget.name == "btnBack"){
if (currentFrame > 1){
prevFrame();
};
};
if (_arg1.currentTarget.name == "btnSkip"){
Data.show("awal");
this["parent"].removeChild(this);
};
if (_arg1.currentTarget.name == "btnNext"){
if (currentFrame < totalFrames){
nextFrame();
};
};
}
function frame1(){
stop();
}
override public function Update(_arg1:Event){
}
}
}//package
Section 104
//CPeri (CPeri)
package {
import flash.display.*;
import flash.events.*;
import caurina.transitions.*;
public class CPeri extends CBaseMovieClip {
public var _1:MovieClip;
public var _3:MovieClip;
public var _4:MovieClip;
public var _2:MovieClip;
public function CPeri(){
super("update");
this["_1"].yAwal = this["_1"].y;
this["_2"].yAwal = this["_2"].y;
this["_3"].yAwal = this["_3"].y;
this["_4"].yAwal = this["_4"].y;
this["_1"].addEventListener(MouseEvent.CLICK, onKlik, false, 0, true);
this["_2"].addEventListener(MouseEvent.CLICK, onKlik, false, 0, true);
this["_3"].addEventListener(MouseEvent.CLICK, onKlik, false, 0, true);
this["_4"].addEventListener(MouseEvent.CLICK, onKlik, false, 0, true);
Data.setJadiButton(this["_1"]);
Data.setJadiButton(this["_2"]);
Data.setJadiButton(this["_3"]);
Data.setJadiButton(this["_4"]);
}
public function onKlik(_arg1:MouseEvent){
if (_arg1.currentTarget.name == "_1"){
if (!CGame.GetInstance().proses2.locked){
Data.pilBungkus = 1;
animTerbang(1, 1);
CGame.GetInstance().proses2.reset();
};
};
if (_arg1.currentTarget.name == "_2"){
if (!CGame.GetInstance().proses2.locked){
Data.pilBungkus = 2;
animTerbang(2, 1);
CGame.GetInstance().proses2.reset();
};
};
if (_arg1.currentTarget.name == "_3"){
if (!CGame.GetInstance().proses2.locked){
Data.pilBungkus = 3;
animTerbang(3, 1);
CGame.GetInstance().proses2.reset();
};
};
if (_arg1.currentTarget.name == "_4"){
if (!CGame.GetInstance().proses2.locked){
animTerbangTrash(4, 1);
CGame.GetInstance().proses2.reset();
};
};
}
override public function Update(_arg1:Event){
}
public function animTerbang(_arg1:int, _arg2:int){
trace(("idx peri = " + _arg1));
if (_arg2 == 1){
Data.cekPesanan();
Tweener.addTween(this[("_" + _arg1)], {y:(this[("_" + _arg1)].y - 200), time:1, onComplete:animTerbang, onCompleteParams:[_arg1, 2]});
} else {
if (_arg2 == 2){
Tweener.addTween(this[("_" + _arg1)], {y:this[("_" + _arg1)].yAwal, time:2, onComplete:animTerbang, onCompleteParams:[_arg1, 3]});
Data.normal(CGame.GetInstance().proses2);
};
};
}
public function animTerbangTrash(_arg1:int, _arg2:int){
trace(("idx peri = " + _arg1));
if (_arg2 == 1){
Tweener.addTween(this[("_" + _arg1)], {y:(this[("_" + _arg1)].y - 200), time:1, onComplete:animTerbang, onCompleteParams:[_arg1, 2]});
} else {
if (_arg2 == 2){
Tweener.addTween(this[("_" + _arg1)], {y:this[("_" + _arg1)].yAwal, time:2, onComplete:animTerbang, onCompleteParams:[_arg1, 3]});
};
};
}
}
}//package
Section 105
//CPewarna (CPewarna)
package {
import flash.display.*;
import flash.events.*;
public class CPewarna extends CBaseMovieClip {
public var merah:MovieClip;
public var ungu:MovieClip;
public var biru:MovieClip;
public var penuh:Boolean;
public var oranye:MovieClip;
public var hijau:MovieClip;
public var kuning:MovieClip;
public var warnaAsal:String;
public function CPewarna(){
super("update");
reset();
warnaAsal = "";
}
override public function Update(_arg1:Event){
}
public function reset(){
while (this.numChildren > 0) {
removeChild(this.getChildAt(0));
};
penuh = false;
}
public function setWarna(_arg1:String){
Data.suaraCling();
reset();
if ((((((warnaAsal == "merah")) && ((_arg1 == "kuning")))) || ((((warnaAsal == "kuning")) && ((_arg1 == "merah")))))){
addChild(oranye);
warnaAsal = "oranye";
penuh = true;
} else {
if ((((((warnaAsal == "merah")) && ((_arg1 == "biru")))) || ((((warnaAsal == "biru")) && ((_arg1 == "merah")))))){
addChild(ungu);
warnaAsal = "ungu";
penuh = true;
} else {
if ((((((warnaAsal == "kuning")) && ((_arg1 == "biru")))) || ((((warnaAsal == "biru")) && ((_arg1 == "kuning")))))){
addChild(hijau);
warnaAsal = "hijau";
penuh = true;
} else {
if (warnaAsal == ""){
addChild(this[_arg1]);
warnaAsal = _arg1;
} else {
if (warnaAsal == _arg1){
addChild(this[_arg1]);
warnaAsal = _arg1;
};
};
};
};
};
CGame.GetInstance().putih.gotoAndPlay(1);
}
}
}//package
Section 106
//CProses1 (CProses1)
package {
import flash.display.*;
import flash.events.*;
import com.troy.collision.*;
public class CProses1 extends CBaseMovieClip {
public var cream:MovieClip;
public var locked:Boolean;
public var warna:String;
public var cahaya:MovieClip;
public function CProses1(){
super("update");
cream.addEventListener(MouseEvent.CLICK, onKlik, false, 0, true);
reset();
}
public function setCream(){
Data.suaraCling();
resetCream();
if ((((((cahaya.warnaAsal == "oranye")) || ((cahaya.warnaAsal == "hijau")))) || ((cahaya.warnaAsal == "ungu")))){
warna = cahaya.warnaAsal;
cream.addChild(cream[cahaya.warnaAsal]);
cahaya.reset();
CGame.GetInstance().putih.gotoAndPlay(1);
};
}
public function onKlik(_arg1:MouseEvent){
if (_arg1.currentTarget.name == "cream"){
if (locked){
Data.terang(cream);
locked = false;
} else {
if (ColDetection.isColliding(this, CGame.GetInstance().proses2, CGame.GetInstance(), false)){
CGame.GetInstance()["proses2"].setCream(warna);
reset();
} else {
if (ColDetection.isColliding(this, CGame.GetInstance().peri["_4"], CGame.GetInstance(), false)){
CGame.GetInstance().peri.animTerbangTrash(4, 1);
reset();
trace("kenak peri 4");
} else {
resetPosisi();
};
};
};
};
}
public function resetCream(){
while (cream.numChildren > 0) {
cream.removeChild(cream.getChildAt(0));
};
}
public function reset(){
warna = "";
resetPosisi();
resetCream();
cahaya.warnaAsal = "";
}
override public function Update(_arg1:Event){
}
public function resetPosisi(){
locked = true;
this.x = 188.3;
this.y = 501.2;
}
}
}//package
Section 107
//CProses2 (CProses2)
package {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
public class CProses2 extends CBaseMovieClip {
public var gelas:MovieClip;
public var cream:MovieClip;
public var kenakPeri:Boolean;
public var rec:Rectangle;
public var locked:Boolean;
public var animGelas:MovieClip;
public function CProses2(){
super("update");
reset();
addEventListener(MouseEvent.CLICK, onKlik, false, 0, true);
locked = true;
gelas.visible = false;
}
override public function Update(_arg1:Event){
}
public function setAnimGelas(_arg1:int){
trace("gelas kenak set");
animGelas.visible = true;
resetAnimGelas();
animGelas.addChild(animGelas[("_" + _arg1)]);
if (_arg1 == 1){
animGelas[("_" + _arg1)].gotoAndPlay(100);
};
if (_arg1 == 2){
animGelas[("_" + _arg1)].gotoAndPlay(80);
};
if (_arg1 == 3){
animGelas[("_" + _arg1)].gotoAndPlay(50);
};
}
public function onKlik(_arg1:MouseEvent){
if ((((gelas.numChildren > 0)) && ((cream.numChildren > 0)))){
if (locked){
Data.terang(this);
locked = false;
scaleX = 0.5;
scaleY = 0.5;
trace("masuk sini");
this.mouseEnabled = false;
this.mouseChildren = false;
Data.flagKlik = true;
};
};
}
public function resetCream(){
while (cream.numChildren > 0) {
cream.removeChild(cream.getChildAt(0));
};
}
public function resetAnimGelas(){
while (animGelas.numChildren > 0) {
animGelas.removeChild(animGelas.getChildAt(0));
};
}
public function setGelas(_arg1:int){
Data.suaraCling();
gelas.visible = true;
resetGelas();
gelas.addChild(gelas[("_" + _arg1)]);
if (animGelas[("_" + _arg1)].parent){
animGelas.removeChild(animGelas[("_" + _arg1)]);
};
Data.pilGelas = _arg1;
}
public function resetGelas(){
while (gelas.numChildren > 0) {
gelas.removeChild(gelas.getChildAt(0));
};
}
public function setCream(_arg1:String){
Data.suaraCling();
resetCream();
cream.addChild(cream[_arg1]);
if (_arg1 == "oranye"){
Data.pilCream = 1;
};
if (_arg1 == "hijau"){
Data.pilCream = 2;
};
if (_arg1 == "ungu"){
Data.pilCream = 3;
};
}
public function resetPosisi(){
this.x = 635.9;
this.y = 505.2;
locked = true;
scaleX = 1;
scaleY = 1;
this.mouseEnabled = true;
this.mouseChildren = true;
}
public function reset(){
resetAnimGelas();
resetGelas();
resetCream();
resetPosisi();
}
}
}//package
Section 108
//Data (Data)
package {
import flash.display.*;
import flash.events.*;
import caurina.transitions.*;
import flash.filters.*;
public class Data {
public var papanNextLevel:CPapanNextLevel;
public var papanTutor:CPapanTutorial;
public var papanFinal:CPapanFinal;
public var papanGameOver:CPapanGameOver;
public var papanLevel:CPapanLevel;
public var papanPaused:CPapanPaused;
public var papanResep:CPapanResep;
public static var level:int;
public static var score:int;
public static var waktu:int;
public static var pilGelas:int;
public static var pilCream:int;
public static var maxIceCream:int;
public static var maxOrder:int;
public static var orderBungkus:Array = new Array(4);
public static var orderGelas:Array = new Array(4);
public static var orderCream:Array = new Array(4);
public static var flagKlik:Boolean;
public static var pilBungkus:int;
public static var maxBungkus:int;
public static var maxGelas:int;
public static function terang(_arg1:MovieClip){
var _local2:GlowFilter = new GlowFilter();
_local2.color = 0x995500;
_local2.alpha = 1;
_local2.blurX = 15;
_local2.blurY = 15;
_local2.quality = BitmapFilterQuality.LOW;
_arg1.filters = [_local2];
}
public static function kurangScore(){
suaraSalah();
score = (score - 5);
if (score < 0){
score = 0;
};
CGame.GetInstance()["border"]["score"].text = score;
}
public static function setInitLevel(){
if (level == 1){
initLevel1();
};
if (level == 2){
initLevel2();
};
if (level == 3){
initLevel3();
};
if (level == 4){
initLevel4();
};
if (level == 5){
initLevel5();
};
if (level == 6){
initLevel6();
};
if (level == 7){
initLevel7();
};
if (level == 8){
initLevel8();
};
}
public static function tambahScore(){
suaraBenar();
score = (score + 10);
CGame.GetInstance()["border"]["score"].text = score;
if (score >= (100 * level)){
if (level < 8){
show("nextLevel");
level++;
} else {
show("final");
};
};
}
public static function resetMC(_arg1:MovieClip){
while (_arg1.numChildren > 0) {
_arg1.removeChild(_arg1.getChildAt(0));
};
}
public static function suaraBlup(){
Main.GetInstance().mOptionBar.PlaySFX("CKlik", 0.5);
}
public static function cekPesanan(){
trace(("pil Cream = " + pilCream));
trace(("pil Gelas = " + pilGelas));
trace(("pil Bungkus = " + pilBungkus));
var _local1:Boolean;
var _local2:* = 1;
while (_local2 <= 3) {
if (((((((!(_local1)) && ((orderCream[_local2] == pilCream)))) && ((orderGelas[_local2] == pilGelas)))) && ((orderBungkus[_local2] == pilBungkus)))){
_local1 = true;
CGame.GetInstance().changeOrder(_local2, 1);
tambahScore();
};
_local2++;
};
if (!_local1){
kurangScore();
};
}
public static function setMax(_arg1:int, _arg2:int, _arg3:int, _arg4:int){
maxIceCream = _arg1;
maxGelas = _arg2;
maxBungkus = _arg3;
maxOrder = _arg4;
}
public static function suaraCling(){
Main.GetInstance().mOptionBar.PlaySFX("cling", 0.1);
}
public static function setJadiButton(_arg1:MovieClip){
_arg1.buttonMode = true;
_arg1.useHandCursor = true;
_arg1.addEventListener(MouseEvent.MOUSE_OVER, onOver, false, 0, true);
_arg1.addEventListener(MouseEvent.MOUSE_OUT, onOut, false, 0, true);
}
public static function onOver(_arg1:MouseEvent){
Tweener.addTween(_arg1.currentTarget, {scaleX:1.2, scaleY:1.2, time:0.2});
}
public static function terangPutih(_arg1:MovieClip){
var _local2:GlowFilter = new GlowFilter();
_local2.color = 0xCCCCCC;
_local2.alpha = 1;
_local2.blurX = 15;
_local2.blurY = 15;
_local2.quality = BitmapFilterQuality.LOW;
_arg1.filters = [_local2];
}
public static function initLevel1(){
setMax(2, 1, 1, 1);
cekVisible();
}
public static function initLevel2(){
setMax(2, 2, 1, 1);
cekVisible();
}
public static function initLevel3(){
setMax(2, 2, 2, 1);
cekVisible();
}
public static function initLevel4(){
setMax(2, 2, 2, 2);
cekVisible();
}
public static function initLevel5(){
setMax(3, 2, 2, 2);
cekVisible();
}
public static function initLevel6(){
setMax(3, 3, 2, 2);
cekVisible();
}
public static function initLevel7(){
setMax(3, 3, 3, 2);
cekVisible();
}
public static function initLevel8(){
setMax(3, 3, 3, 3);
cekVisible();
}
public static function waktuBerkurang(){
waktu = (waktu - 1);
CGame.GetInstance().border.waktu.kotakMask.scaleX = (waktu / 10000);
if (waktu < 0){
show("gameOver");
};
}
public static function normal(_arg1:MovieClip){
_arg1.filters = [];
}
public static function cekVisible(){
var _local1:*;
if (maxIceCream < 3){
CGame.GetInstance().pewarna["Biru"].visible = false;
};
_local1 = 1;
while (_local1 <= 3) {
if (_local1 > maxGelas){
CGame.GetInstance().gelas[("_" + _local1)].visible = false;
};
_local1++;
};
_local1 = 1;
while (_local1 <= 3) {
if (_local1 > maxBungkus){
CGame.GetInstance().peri[("_" + _local1)].visible = false;
};
_local1++;
};
}
public static function suaraBenar(){
Main.GetInstance().mOptionBar.PlaySFX("CMenang", 0.5);
}
public static function onOut(_arg1:MouseEvent){
Tweener.addTween(_arg1.currentTarget, {scaleX:1, scaleY:1, time:0.2});
}
public static function createPapan(){
papanTutor = new CPapanTutorial();
papanPaused = new CPapanPaused();
papanNextLevel = new CPapanNextLevel();
papanFinal = new CPapanFinal();
papanGameOver = new CPapanGameOver();
papanLevel = new CPapanLevel();
papanResep = new CPapanResep();
}
public static function suaraSalah(){
Main.GetInstance().mOptionBar.PlaySFX("CKalah", 0.5);
}
public static function suaraClick(){
Main.GetInstance().mOptionBar.PlaySFX("smooth", 0.5);
}
public static function ToggleSound(){
Main.GetInstance().mOptionBar.ToggleMusic();
Main.GetInstance().mOptionBar.ToggleSFX();
}
public static function show(_arg1:String){
Main.GetInstance().mState = Main.STATE_PAUSED;
if (_arg1 == "tutor"){
CGame.GetInstance().addChild(papanTutor);
papanTutor.x = 400;
papanTutor.y = 300;
};
if (_arg1 == "paused"){
CGame.GetInstance().addChild(papanPaused);
papanPaused.x = 400;
papanPaused.y = 300;
};
if (_arg1 == "nextLevel"){
CGame.GetInstance().addChild(papanNextLevel);
papanNextLevel.x = 400;
papanNextLevel.y = 300;
Main.GetInstance().submitScore(score);
};
if (_arg1 == "final"){
CGame.GetInstance().addChild(papanFinal);
papanFinal.x = 400;
papanFinal.y = 300;
Main.GetInstance().submitScore(score);
};
if (_arg1 == "gameOver"){
CGame.GetInstance().addChild(papanGameOver);
papanGameOver.x = 400;
papanGameOver.y = 300;
Main.GetInstance().submitScore(score);
};
if (_arg1 == "awal"){
CGame.GetInstance().addChild(papanLevel);
papanLevel.init();
papanLevel.x = 400;
papanLevel.y = 300;
};
if (_arg1 == "resep"){
CGame.GetInstance().addChild(papanResep);
papanResep.x = 400;
papanResep.y = 300;
};
}
public static function setMC(_arg1:MovieClip, _arg2:String){
resetMC(_arg1);
_arg1.addChild(_arg1[_arg2]);
}
}
}//package
Section 109
//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 110
//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://www.lazybanana.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 111
//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;
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;
public var flag:Boolean;
public var mOptionBar:COptionBar;
public var mBannedWin:CBannedWin;
private var mGame:CGame;
protected static const WINDOW_OPEN_FUNCTION:String = "window.open";
public static var STATE_GAME = 1;
public static var MainGlobal:Main;
public static var STATE_PRELOADER = 0;
public static var STATE_MAIN_MENU = 2;
public static var STATE_PAUSED = 3;
public function Main(){
mState = STATE_PRELOADER;
super();
addFrameScript(0, frame1, 15, frame16);
Data.level = 1;
trace("init main 1");
MainGlobal = this;
mState = STATE_MAIN_MENU;
Global.STAGE_HEIGHT = stage.stageHeight;
Global.STAGE_WIDTH = stage.stageWidth;
stage.addEventListener(FocusEvent.FOCUS_IN, OnKeyFocusChange, false, 0, true);
stage.addEventListener(Event.ADDED, OnAddedToStage, false, 0, true);
stage.addEventListener(KeyboardEvent.KEY_UP, onKeyUp, false, 0, true);
stage.showDefaultContextMenu = false;
stage.quality = StageQuality.HIGH;
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);
}
public function SubmitAward(_arg1:String):void{
trace(("Submitting award : " + _arg1));
_awardsCallbackID = AwardsService.submitAward(_arg1, onAwardRequestProcessed);
}
private function RunStateGame(){
this.dispatchEvent(new Event("update"));
}
public function InitMainMenu(){
var _local1:*;
if (mGame){
_local1 = 1;
while (_local1 <= 3) {
if (mGame.order[("_" + _local1)]){
mGame.order[("_" + _local1)].RemoveDispatcher();
};
_local1++;
};
KillWindow("Game", true, true);
};
ShowWindow("MainMenu");
mState = STATE_MAIN_MENU;
}
public function destroyGame(){
var _local1:*;
if (mGame){
_local1 = 1;
while (_local1 <= 3) {
if (mGame.order[("_" + _local1)]){
mGame.order[("_" + _local1)].RemoveDispatcher();
};
_local1++;
};
KillWindow("Game", true, true);
};
}
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){
}
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"));
};
}
private function OnKeyFocusChange(_arg1:FocusEvent):void{
stage.focus = this.stage;
}
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);
};
};
}
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 !!!");
};
}
private function InitOnce(){
InitMainMenu();
mOptionBar = new COptionBar(0, 0, "bgsound", 0.5);
stage.addChild(mOptionBar);
mFPSBar = new FPS();
stage.addChild(mFPSBar);
if (this.hasEventListener(Event.ENTER_FRAME)){
this.removeEventListener(Event.ENTER_FRAME, OnEnterFrame);
};
mFPSBar.visible = false;
mOptionBar.visible = false;
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):void{
trace(("Submitting score : " + _arg1));
_scoreCallbackID = ScoreService.submitScore(_arg1, onScoreRequestProcessed);
}
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"));
};
}
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 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(){
if (mMainMenu){
KillWindow("MainMenu", false, true);
};
ShowWindow("Game");
mGame.AddDispatcher();
mState = STATE_PAUSED;
}
function frame1(){
stop();
xmlData = <LocalisedText><textItem identifier="lb_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_Time"><en_us>Time</en_us><en_uk>Time</en_uk><nl>Tijd</nl><fr>Temps</fr><de>Zeit</de><es>Tiempo</es><br>Tempo</br><pt>Tempo</pt><it>Tempo</it><se>Tid</se><pl>Czas</pl><ru>Время</ru><id>Waktu</id><ar>Time</ar><jp>Time</jp><cn>Time</cn></textItem><textItem identifier="lb_MagicIce"><en_us>Fairy Ice Cream</en_us><en_uk>Fairy Ice Cream</en_uk><nl>Felice's Feeënijs</nl><fr>Glaces féeriques</fr><de>Marias Feen-Eiscreme</de><es>Helados para hadas</es><br>Sorvete de Fada</br><pt>Gelado das Fadas</pt><it>Il gelato fatato</it><se>Madonnas feglass</se><pl>Wróżkowe Lody Madonny</pl><ru>Мария и волшебное мороженое</ru><id>Es Krim Peri Madona</id><ar>Fairy Ice Cream</ar><jp>Fairy Ice Cream</jp><cn>Fairy Ice Cream</cn></textItem><textItem identifier="lb_CONTINUE?"><en_us>CONTINUE?</en_us><en_uk>CONTINUE?</en_uk><nl>DOORGAAN?</nl><fr>CONTINUER ?</fr><de>WEITERSPIELEN?</de><es>¿Continuar?</es><br>CONTINUAR?</br><pt>CONTINUAR?</pt><it>VUOI CONTINUARE?</it><se>FORTSÄTTA?</se><pl>KONTYNUOWAĆ?</pl><ru>ПРОДОЛЖИМ?</ru><id>LANJUTKAN?</id><ar>CONTINUE?</ar><jp>CONTINUE?</jp><cn>CONTINUE?</cn></textItem><textItem identifier="lb_DonForget"><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>PAUSA</br><pt>EM PAUSA</pt><it>IN PAUSA</it><se>PAUSAT</se><pl>PAUZA</pl><ru>ПАУЗА</ru><id>JEDA</id><ar>PAUSED</ar><jp>PAUSED</jp><cn>PAUSED</cn></textItem><textItem identifier="lb_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_YouDid"><en_us>You finished the game!</en_us><en_uk>You finished the game!</en_uk><nl>Je hebt het spel uitgespeeld!</nl><fr>Tu as réussi le jeu !</fr><de>Du hast das Spiel abgeschlossen!</de><es>¡Has terminado el juego!</es><br>Você terminou o jogo!</br><pt>Acabaste o jogo!</pt><it>Hai finito il gioco!</it><se>Du klarade spelet!</se><pl>Gra ukończona!</pl><ru>Игра пройдена!</ru><id>Kamu sudah menyelesaikan game!</id><ar>You finished the game!</ar><jp>You finished the game!</jp><cn>You finished the game!</cn></textItem><textItem identifier="lb_NO"><en_us>No</en_us><en_uk>No</en_uk><nl>Nee</nl><fr>Non</fr><de>Nein</de><es>No</es><br>Não</br><pt>Não</pt><it>No</it><se>Nej</se><pl>Nie</pl><ru>Нет</ru><id>Tidak</id><ar>No</ar><jp>No</jp><cn>No</cn></textItem><textItem identifier="lb_YES"><en_us>Yes</en_us><en_uk>Yes</en_uk><nl>Ja</nl><fr>Oui</fr><de>Ja</de><es>Sí</es><br>Sim</br><pt>Sim</pt><it>Sì</it><se>Ja</se><pl>Tak</pl><ru>Да</ru><id>Ya</id><ar>Yes</ar><jp>Yes</jp><cn>Yes</cn></textItem><textItem identifier="lb_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_KetGameOver"><en_us>Wanna try again?</en_us><en_uk>Do you want to try again?</en_uk><nl>Nogmaals proberen?</nl><fr>Tu veux réessayer ?</fr><de>Noch mal probieren?</de><es>¿Quieres volver a intentarlo?</es><br>Quer tentar de novo?</br><pt>Queres tentar outa vez?</pt><it>Vuoi riprovare?</it><se>Försöka igen?</se><pl>Chcesz spróbować ponownie?</pl><ru>Попробуем еще раз?</ru><id>Mau coba lagi?</id><ar>Wanna try again?</ar><jp>Wanna try again?</jp><cn>Wanna try again?</cn></textItem><textItem identifier="lb_NextLevel"><en_us>Next Level</en_us><en_uk>Next Level</en_uk><nl>Volgende 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_BACK"><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>VOLTAR</br><pt>VOLTAR</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_SKIP"><en_us>SKIP</en_us><en_uk>SKIP</en_uk><nl>OVERSLAAN</nl><fr>PASSER</fr><de>ÜBERSPRINGEN</de><es>SALTAR</es><br>PULAR</br><pt>IGNORAR</pt><it>SALTA</it><se>SKIPPA</se><pl>POMIŃ</pl><ru>ПРОПУСТИТЬ</ru><id>LEWATI</id><ar>SKIP</ar><jp>SKIP</jp><cn>SKIP</cn></textItem><textItem identifier="lb_NEXT"><en_us>NEXT</en_us><en_uk>NEXT</en_uk><nl>VOLGENDE</nl><fr>SUIVANT</fr><de>WEITER</de><es>SIGUIENTE</es><br>AVANÇAR</br><pt>SEGUINTE</pt><it>AVANTI</it><se>NÄSTA</se><pl>DALEJ</pl><ru>ДАЛЬШЕ</ru><id>BERIKUT</id><ar>NEXT</ar><jp>NEXT</jp><cn>NEXT</cn></textItem><textItem identifier="lb_PLAY"><en_us>PLAY</en_us><en_uk>PLAY</en_uk><nl>SPELEN</nl><fr>JOUER</fr><de>SPIELEN</de><es>JUGAR</es><br>JOGAR</br><pt>JOGAR</pt><it>GIOCA</it><se>SPELA</se><pl>GRAJ</pl><ru>ИГРАТЬ</ru><id>MAIN</id><ar>PLAY</ar><jp>PLAY</jp><cn>PLAY</cn></textItem><textItem identifier="lb_Tutor0"><en_us>You'll find the ice-cream orders in the top-left corner. To figure out how to make each dish, use the recipe book. The napkin color under each order shows which fairy's order it is. (In this case, it's the Blue Fairy.)</en_us><en_uk>You will find the ice cream orders in the top left corner. Use the receipe book to work out how to make each dish. The napkin colour under each order shows which fairy the order belongs to. (In this case, it is the Blue Fairy.)</en_uk><nl>De ijsbestellingen staan in de linkerbovenhoek. Bekijk het receptenboek om te zien hoe je elk ijsje maakt. De kleur van het servetje onder elke bestelling geeft aan voor welke fee de bestelling is (nu is dat de blauwe fee).</nl><fr>Tu trouveras les commandes de glace en haut à gauche. Pour savoir comment préparer les différents plats, consulte le livre de recettes. La couleur de serviette sous chaque commande te montre quelle fée l'a passée. (Dans le cas présent, c'est la Fée bleue).</fr><de>Du findest die Eisbestellungen in der oberen, linken Ecke. Im Rezeptbuch kannst du nachlesen, wie jedes Rezept zubereitet wird. Die Serviettenfarbe unter jeder Bestellung zeigt an, von welcher Fee die Bestellung stammt. (In diesem Fall von der blauen Fee.)</de><es>Encontrarás los pedidos de helados en la esquina superior izquierda. Para averiguar cómo se hace cada helado, haz clic en el libro de recetas. El color de la servilleta bajo cada pedido muestra para qué hada es. (En este caso, es para el Hada Azul).</es><br>Você vai ver os pedidos de sorvete no canto superior esquerdo. Para saber como preparar cada prato, use o livro de receitas. A cor do guardanapo embaixo de cada pedido indica de que fada ele é. (Neste caso, é da Fada Azul.)</br><pt>Encontras os pedidos de gelado no canto superior esquerdo. Para descobrires como se faz cada prato, usa o livro de receitas. A cor do guardanapo por baixo de cada pedido mostra de que fada é o pedido. (Neste caso, é a Fada Azul.)</pt><it>Troverai gli ordini dei gelati nell'angolo in alto a sinistra. Per capire come fare ogni piatto clicca sul libro di ricette. Il colore del tovagliolo sotto ogni ordine indica la fata che ha fatto l'ordine (in questo caso si tratta della Fata Blu).</it><se>Du hittar glassbeställningarna längst upp till vänster. Använd receptboken för att se hur du tillagar varje rätt. Servettfärgen under varje beställning visar vilken febeställning det är. (I detta fall: Den blå fens.)</se><pl>Zamówienia na lody znajdziesz w lewym górnym rogu. Aby dowiedzieć się, jak przygotować każdy z deserów, użyj książki z przepisami. Kolor serwetki pod każdym zamówieniem pokazuje, która wróżka je złożyła. (W tym przypadku to Błękitna Wróżka.)</pl><ru>Заказы появляются в левом верхнем углу. Чтобы узнать, как приготовить заказанное мороженое, используй книгу рецептов. Цвет салфетки под каждым из заказов показывает, какая из фей его сделала (сейчас это голубая фея). </ru><id>Kamu lihat pesanan es krim di sudut kiri atas. Untuk tahu cara membuat setiap masakan, gunakan buku resep. Warna serbet kertas di bawah setiap pesanan menunjukkan pesanan dari peri yang mana. (Dalam kasus ini, ini pesanan Peri Biru)</id><ar>You'll find the ice-cream orders in the top-left corner. To figure out how to make each dish, use the recipe book. The napkin color under each order shows which fairy's order it is. (In this case, it's the Blue Fairy.)</ar><jp>You'll find the ice-cream orders in the top-left corner. To figure out how to make each dish, use the recipe book. The napkin color under each order shows which fairy's order it is. (In this case, it's the Blue Fairy.)</jp><cn>You'll find the ice-cream orders in the top-left corner. To figure out how to make each dish, use the recipe book. The napkin color under each order shows which fairy's order it is. (In this case, it's the Blue Fairy.)</cn></textItem><textItem identifier="lb_Tutor1"><en_us>First click the correct color combination.</en_us><en_uk>First click the correct colour combination.</en_uk><nl>Klik eerst op de juiste kleurencombinatie.</nl><fr>Commence par cliquer sur la bonne combinaison de couleurs.</fr><de>Klicke als Erstes die richtige Farbkombination an.</de><es>Primero haz clic en la combinación de colores correcta.</es><br>Primeiro, clique na combinação de cores correta.</br><pt>Primeiro clica na combinação certa de cores.</pt><it>Prima clicca sulla combinazione di colori giusta.</it><se>Klicka först på rätt färgkombination.</se><pl>Najpierw kliknij na właściwą kombinację kolorów.</pl><ru>Вначале подбери нужное сочетание цветов.</ru><id>Pertama, klik kombinasi warna yang benar.</id><ar>First click the correct color combination.</ar><jp>First click the correct color combination.</jp><cn>First click the correct color combination.</cn></textItem><textItem identifier="lb_Tutor2"><en_us>Then click the snowflake-maker to freeze the ice cream.</en_us><en_uk>Then click the snowflake maker to freeze the ice cream.</en_uk><nl>Klik dan op de sneeuwvlokjesmaker om het te bevriezen.</nl><fr>Clique ensuite sur le générateur de flocons de neige pour congeler la glace.</fr><de>Klicke dann den Schneeflockenbereiter an, um die Eiscreme zu gefrieren.</de><es>Luego haz clic en los copos de nieve para enfriar el helado.</es><br>Depois, clique no gerador de floco de neve para congelar o sorvete.</br><pt>Depois clica no fazedor de flocos de neve para congelares o gelado.</pt><it>Poi clicca sulla macchina che crea i fiocchi di neve per congelare il gelato.</it><se>Klicka sedan på ismaskinen för att skapa glass.</se><pl>Następnie kliknij na maszynę do płatków śniegu, aby zrobić lód.</pl><ru>Затем щелкни по сосуду со снежинками, чтобы заморозить мороженое.</ru><id>Lalu, klik pembuat bunga salju untuk membekukan es.</id><ar>Then click the snowflake-maker to freeze the ice cream.</ar><jp>Then click the snowflake-maker to freeze the ice cream.</jp><cn>Then click the snowflake-maker to freeze the ice cream.</cn></textItem><textItem identifier="lb_Tutor3"><en_us>Click the correct ice-cream dish.</en_us><en_uk>Click the correct ice cream dish.</en_uk><nl>Klik op het juiste kommetje.</nl><fr>Clique sur la bonne coupelle de glace.</fr><de>Klicke die richtige Eisschüssel an.</de><es>Haz clic en la copa de helado correcta.</es><br>Clique no prato de sorvete correto.</br><pt>Clica no prato de gelado correcto.</pt><it>Clicca sul piatto di gelato giusto.</it><se>Klicka på rätt glasskål.</se><pl>Kliknij na odpowiednie naczynie do lodów.</pl><ru>Щелкни по вазочке нужного цвета.</ru><id>Klik hidangan es krim yang benar.</id><ar>Click the correct ice-cream dish.</ar><jp>Click the correct ice-cream dish.</jp><cn>Click the correct ice-cream dish.</cn></textItem><textItem identifier="lb_Tutor4"><en_us>To put the ice cream in the dish, click the ice cream, then click the dish.</en_us><en_uk>To place the ice cream in the dish, click the ice cream, and then click the dish.</en_uk><nl>Om het ijs in het kommetje te doen, klik je op het ijsje en daarna op het kommetje.</nl><fr>Pour placer la glace dans la coupelle, clique sur la glace, puis sur la coupelle.</fr><de>Um die Eiscreme in die Schüssel zu geben, klicke die Eiscreme an, dann die Schüssel.</de><es>Para colocar el helado en la copa, haz clic en el helado y luego en la copa.</es><br>Para colocar o sorvete no prato, clique no sorvete e depois no prato.</br><pt>Para colocares o gelado no prato, clica no gelado e depois no prato.</pt><it>Per mettere il gelato sul piatto, clicca prima sul gelato e poi sul piatto.</it><se>Lägg glassen i skålen genom att klicka på glassen och sedan skålen.</se><pl>Aby umieścić lody w naczyniu, kliknij na lody, a następnie na maszynę.</pl><ru>Чтобы поместить мороженое в вазочку, щелкни по мороженому, а затем по вазочке.</ru><id>Untuk menaruh es krim dalam hidangan, klik es krimnya, lalu klik hidangannya.</id><ar>To put the ice cream in the dish, click the ice cream, then click the dish.</ar><jp>To put the ice cream in the dish, click the ice cream, then click the dish.</jp><cn>To put the ice cream in the dish, click the ice cream, then click the dish.</cn></textItem><textItem identifier="lb_Tutor5"><en_us>To deliver the order, click the ice-cream order, then the correct color of fairy.</en_us><en_uk>To deliver the order, click the ice cream order, then click the correct colour of fairy.</en_uk><nl>Om de bestelling aan de klant te geven, klik je op de bestelling en daarna op de juiste fee.</nl><fr>Pour servir la commande, clique sur la glace puis sur la fée de la bonne couleur.</fr><de>Um die Bestellung auszuliefern, klicke die Eisbestellung an, dann die richtige Farbe der Fee.</de><es>Para entregar el pedido, haz clic en el helado pedido y luego en el color de hada correcto.</es><br>Para entregar o pedido, clique no sorvete pronto e depois na fada correta.</br><pt>Para entregares o pedido, clica no pedido de gelado, depois na cor correcta da fada.</pt><it>Per consegnare l'ordine clicca sull'ordine del gelato e poi sul colore della fata giusta.</it><se>Servera: Klicka på glassbeställningen och sedan på fen av rätt färg.</se><pl>Aby dostarczyć zamówienie, kliknij na nie, a następnie na właściwą wróżkę.</pl><ru>Чтобы доставить заказ, щелкни по мороженому, а затем по фее нужного цвета.</ru><id>Untuk mengantarkan pesanan, klik pesanan es krim, lalu koreksi warna peri.</id><ar>To deliver the order, click the ice-cream order, then the correct color of fairy.</ar><jp>To deliver the order, click the ice-cream order, then the correct color of fairy.</jp><cn>To deliver the order, click the ice-cream order, then the correct color of fairy.</cn></textItem><textItem identifier="lb_Tutor6"><en_us>If you make a mistake, click it and then the Recycle Fairy.</en_us><en_uk>If you make a mistake, click it and then click the Recycle Fairy.</en_uk><nl>Als je een fout maakt, klik je erop en daarna op de recycle-fee.</nl><fr>Si tu as fait une faute, clique dessus puis clique sur la Fée de recyclage.</fr><de>Wenn du einen Fehler machst, klicke das Eis an, dann die Recycling-Fee.</de><es>Si cometes algún fallo, haz clic en el helado y luego en el Hada Reciclaje.</es><br>Se você fizer um prato errado, clique nele e depois na Fada de Reciclagem.</br><pt>Se te enganares, clica nele e depois na Fada da Reciclagem.</pt><it>Se fai un errore cliccaci sopra e poi clicca sulla Fatina Riciclina. </it><se>Om du gör ett misstag, klicka på det och sedan på sopfen.</se><pl>Jeśli się pomylisz, kliknij na zamówienie, a następnie na Wróżkę Recyklingową.</pl><ru>Если допущена ошибка, щелкни по мороженому, а затем по урне.</ru><id>Jika kamu membuat kesalahan, klik kesalahannya, lalu Peri Daur Ulang.</id><ar>If you make a mistake, click it and then the Recycle Fairy.</ar><jp>If you make a mistake, click it and then the Recycle Fairy.</jp><cn>If you make a mistake, click it and then the Recycle Fairy.</cn></textItem><textItem identifier="lb_Tutor7"><en_us>Click the recipe book to look up ingredients.</en_us><en_uk>Click the recipe book to look up the ingredients.</en_uk><nl>Klik op het receptenboek om ingrediënten op te zoeken.</nl><fr>Clique sur le livre de recettes pour voir les ingrédients.</fr><de>Klicke das Rezeptbuch an, um Zutaten nachzuschlagen.</de><es>Haz clic en el libro de recetas para ver los ingredientes.</es><br>Use o livro de receitas para consultar os ingredientes.</br><pt>Clica no livro de receitas para veres os ingredientes.</pt><it>Clicca sul libro di ricette per vedere gli ingredienti.</it><se>Klicka på receptboken för att se ingredienserna.</se><pl>Kliknij na książkę z przepisami, aby spojrzeć na składniki.</pl><ru>Щелкни по книге рецептов, чтобы узнать ингредиенты.</ru><id>Klik buku resep untuk melihat bahannya.</id><ar>Click the recipe book to look up ingredients.</ar><jp>Click the recipe book to look up ingredients.</jp><cn>Click the recipe book to look up ingredients.</cn></textItem><textItem identifier="lb_Tutorial"><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 bermain</id><ar>How to Play</ar><jp>How to Play</jp><cn>How to Play</cn></textItem><textItem identifier="lb_Congratulations"><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_YouCan"><en_us>You can go to next level!</en_us><en_uk>You can go to the next level!</en_uk><nl>Je gaat door naar het volgende level!</nl><fr>Tu peux passer au niveau suivant !</fr><de>Du kannst den nächsten Level spielen!</de><es>¡Puedes ir al siguiente nivel!</es><br>Você pode ir para a próxima fase!</br><pt>Podes avançar para o nível seguinte!</pt><it>Puoi proseguire al prossimo livello!</it><se>Du kan gå till nästa nivå!</se><pl>Możesz przejść do następnego poziomu!</pl><ru>Пора на следующий уровень!</ru><id>Kamu bisa naik ke level berikutnya!</id><ar>You can go to next level!</ar><jp>You can go to next level!</jp><cn>You can go to next level!</cn></textItem><textItem identifier="lbPapanLevel"><en_us>Level</en_us><en_uk>Level</en_uk><nl>Level</nl><fr>Niveau</fr><de>Level</de><es>Nivel</es><br>Fase</br><pt>Nível</pt><it>Livello</it><se>Nivå</se><pl>Poziom</pl><ru>Уровень</ru><id>Level</id><ar>Level</ar><jp>Level</jp><cn>Level</cn></textItem><textItem identifier="lbTargetScore"><en_us>Target Score</en_us><en_uk>Target Score</en_uk><nl>Doelscore</nl><fr>Score à atteindre</fr><de>Punkteziel</de><es>Puntuación objetivo</es><br>Meta de Pontos</br><pt>Pontuação-alvo</pt><it>Obiettivo punteggio</it><se>Målpoäng</se><pl>Wynik docelowy</pl><ru>Цель</ru><id>Skor Target</id><ar>Target Score</ar><jp>Target Score</jp><cn>Target Score</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 divertissants sur :</fr><de>Mehr witzige 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 roliga spel på:</se><pl>Więcej zabawnych gier na:</pl><ru>Больше веселых игр на:</ru><id>Permainan lucu 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("Madonna", PortalGroup.GIRL, "Madonna.html", this, true);
stop();
this.addEventListener(Event.ENTER_FRAME, loading);
flag = false;
}
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 112
//smooth (smooth)
package {
import flash.media.*;
public dynamic class smooth extends Sound {
}
}//package