Section 1
//AuxFunctions (caurina.transitions.AuxFunctions)
package caurina.transitions {
public class AuxFunctions {
public static function getObjectLength(_arg1:Object):uint{
var _local2:uint;
var _local3:String;
_local2 = 0;
for (_local3 in _arg1) {
_local2++;
};
return (_local2);
}
public static function numberToG(_arg1:Number):Number{
return (((_arg1 & 0xFF00) >> 8));
}
public static function numberToB(_arg1:Number):Number{
return ((_arg1 & 0xFF));
}
public static function numberToR(_arg1:Number):Number{
return (((_arg1 & 0xFF0000) >> 16));
}
public static function concatObjects(... _args):Object{
var _local2:Object;
var _local3:Object;
var _local4:int;
var _local5:String;
_local2 = {};
_local4 = 0;
while (_local4 < _args.length) {
_local3 = _args[_local4];
for (_local5 in _local3) {
if (_local3[_local5] == null){
delete _local2[_local5];
} else {
_local2[_local5] = _local3[_local5];
};
};
_local4++;
};
return (_local2);
}
}
}//package caurina.transitions
Section 2
//Equations (caurina.transitions.Equations)
package caurina.transitions {
public class Equations {
public function Equations(){
trace("Equations is a static class and should not be instantiated.");
}
public static function easeOutBounce(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / _arg4);
if (_arg1 < (1 / 2.75)){
return (((_arg3 * ((7.5625 * _arg1) * _arg1)) + _arg2));
};
if (_arg1 < (2 / 2.75)){
_arg1 = (_arg1 - (1.5 / 2.75));
return (((_arg3 * (((7.5625 * _arg1) * _arg1) + 0.75)) + _arg2));
};
if (_arg1 < (2.5 / 2.75)){
_arg1 = (_arg1 - (2.25 / 2.75));
return (((_arg3 * (((7.5625 * _arg1) * _arg1) + 0.9375)) + _arg2));
};
_arg1 = (_arg1 - (2.625 / 2.75));
return (((_arg3 * (((7.5625 * _arg1) * _arg1) + 0.984375)) + _arg2));
}
public static function easeInOutElastic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
var _local6:Number;
var _local7:Number;
var _local8:Number;
if (_arg1 == 0){
return (_arg2);
};
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 == 2){
return ((_arg2 + _arg3));
};
_local6 = (((!(Boolean(_arg5))) || (isNaN(_arg5.period)))) ? (_arg4 * (0.3 * 1.5)) : _arg5.period;
_local8 = (((!(Boolean(_arg5))) || (isNaN(_arg5.amplitude)))) ? 0 : _arg5.amplitude;
if (((!(Boolean(_local8))) || ((_local8 < Math.abs(_arg3))))){
_local8 = _arg3;
_local7 = (_local6 / 4);
} else {
_local7 = ((_local6 / (2 * Math.PI)) * Math.asin((_arg3 / _local8)));
};
if (_arg1 < 1){
--_arg1;
return (((-0.5 * ((_local8 * Math.pow(2, (10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local7) * (2 * Math.PI)) / _local6)))) + _arg2));
};
--_arg1;
return ((((((_local8 * Math.pow(2, (-10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local7) * (2 * Math.PI)) / _local6))) * 0.5) + _arg3) + _arg2));
}
public static function easeInOutQuad(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
return (((((_arg3 / 2) * _arg1) * _arg1) + _arg2));
};
--_arg1;
return ((((-(_arg3) / 2) * ((_arg1 * (_arg1 - 2)) - 1)) + _arg2));
}
public static function easeInOutBounce(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 < (_arg4 / 2)){
return (((easeInBounce((_arg1 * 2), 0, _arg3, _arg4) * 0.5) + _arg2));
};
return ((((easeOutBounce(((_arg1 * 2) - _arg4), 0, _arg3, _arg4) * 0.5) + (_arg3 * 0.5)) + _arg2));
}
public static function easeInOutBack(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
var _local6:Number;
_local6 = (((!(Boolean(_arg5))) || (isNaN(_arg5.overshoot)))) ? 1.70158 : _arg5.overshoot;
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
_local6 = (_local6 * 1.525);
return ((((_arg3 / 2) * ((_arg1 * _arg1) * (((_local6 + 1) * _arg1) - _local6))) + _arg2));
};
_arg1 = (_arg1 - 2);
_local6 = (_local6 * 1.525);
return ((((_arg3 / 2) * (((_arg1 * _arg1) * (((_local6 + 1) * _arg1) + _local6)) + 2)) + _arg2));
}
public static function easeOutInCubic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutCubic((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5));
};
return (easeInCubic(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5));
}
public static function easeNone(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
return ((((_arg3 * _arg1) / _arg4) + _arg2));
}
public static function easeOutBack(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
var _local6:Number;
_local6 = (((!(Boolean(_arg5))) || (isNaN(_arg5.overshoot)))) ? 1.70158 : _arg5.overshoot;
_arg1 = ((_arg1 / _arg4) - 1);
return (((_arg3 * (((_arg1 * _arg1) * (((_local6 + 1) * _arg1) + _local6)) + 1)) + _arg2));
}
public static function easeInOutSine(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
return ((((-(_arg3) / 2) * (Math.cos(((Math.PI * _arg1) / _arg4)) - 1)) + _arg2));
}
public static function easeInBack(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
var _local6:Number;
_local6 = (((!(Boolean(_arg5))) || (isNaN(_arg5.overshoot)))) ? 1.70158 : _arg5.overshoot;
_arg1 = (_arg1 / _arg4);
return (((((_arg3 * _arg1) * _arg1) * (((_local6 + 1) * _arg1) - _local6)) + _arg2));
}
public static function easeInQuart(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / _arg4);
return ((((((_arg3 * _arg1) * _arg1) * _arg1) * _arg1) + _arg2));
}
public static function easeOutInQuint(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutQuint((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5));
};
return (easeInQuint(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5));
}
public static function easeOutInBounce(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutBounce((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5));
};
return (easeInBounce(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5));
}
public static function init():void{
Tweener.registerTransition("easenone", easeNone);
Tweener.registerTransition("linear", easeNone);
Tweener.registerTransition("easeinquad", easeInQuad);
Tweener.registerTransition("easeoutquad", easeOutQuad);
Tweener.registerTransition("easeinoutquad", easeInOutQuad);
Tweener.registerTransition("easeoutinquad", easeOutInQuad);
Tweener.registerTransition("easeincubic", easeInCubic);
Tweener.registerTransition("easeoutcubic", easeOutCubic);
Tweener.registerTransition("easeinoutcubic", easeInOutCubic);
Tweener.registerTransition("easeoutincubic", easeOutInCubic);
Tweener.registerTransition("easeinquart", easeInQuart);
Tweener.registerTransition("easeoutquart", easeOutQuart);
Tweener.registerTransition("easeinoutquart", easeInOutQuart);
Tweener.registerTransition("easeoutinquart", easeOutInQuart);
Tweener.registerTransition("easeinquint", easeInQuint);
Tweener.registerTransition("easeoutquint", easeOutQuint);
Tweener.registerTransition("easeinoutquint", easeInOutQuint);
Tweener.registerTransition("easeoutinquint", easeOutInQuint);
Tweener.registerTransition("easeinsine", easeInSine);
Tweener.registerTransition("easeoutsine", easeOutSine);
Tweener.registerTransition("easeinoutsine", easeInOutSine);
Tweener.registerTransition("easeoutinsine", easeOutInSine);
Tweener.registerTransition("easeincirc", easeInCirc);
Tweener.registerTransition("easeoutcirc", easeOutCirc);
Tweener.registerTransition("easeinoutcirc", easeInOutCirc);
Tweener.registerTransition("easeoutincirc", easeOutInCirc);
Tweener.registerTransition("easeinexpo", easeInExpo);
Tweener.registerTransition("easeoutexpo", easeOutExpo);
Tweener.registerTransition("easeinoutexpo", easeInOutExpo);
Tweener.registerTransition("easeoutinexpo", easeOutInExpo);
Tweener.registerTransition("easeinelastic", easeInElastic);
Tweener.registerTransition("easeoutelastic", easeOutElastic);
Tweener.registerTransition("easeinoutelastic", easeInOutElastic);
Tweener.registerTransition("easeoutinelastic", easeOutInElastic);
Tweener.registerTransition("easeinback", easeInBack);
Tweener.registerTransition("easeoutback", easeOutBack);
Tweener.registerTransition("easeinoutback", easeInOutBack);
Tweener.registerTransition("easeoutinback", easeOutInBack);
Tweener.registerTransition("easeinbounce", easeInBounce);
Tweener.registerTransition("easeoutbounce", easeOutBounce);
Tweener.registerTransition("easeinoutbounce", easeInOutBounce);
Tweener.registerTransition("easeoutinbounce", easeOutInBounce);
}
public static function easeOutExpo(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
return (((_arg1)==_arg4) ? (_arg2 + _arg3) : (((_arg3 * 1.001) * (-(Math.pow(2, ((-10 * _arg1) / _arg4))) + 1)) + _arg2));
}
public static function easeOutInBack(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutBack((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5));
};
return (easeInBack(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5));
}
public static function easeInExpo(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
return (((_arg1)==0) ? _arg2 : (((_arg3 * Math.pow(2, (10 * ((_arg1 / _arg4) - 1)))) + _arg2) - (_arg3 * 0.001)));
}
public static function easeInCubic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / _arg4);
return (((((_arg3 * _arg1) * _arg1) * _arg1) + _arg2));
}
public static function easeInQuint(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / _arg4);
return (((((((_arg3 * _arg1) * _arg1) * _arg1) * _arg1) * _arg1) + _arg2));
}
public static function easeInOutCirc(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
return ((((-(_arg3) / 2) * (Math.sqrt((1 - (_arg1 * _arg1))) - 1)) + _arg2));
};
_arg1 = (_arg1 - 2);
return ((((_arg3 / 2) * (Math.sqrt((1 - (_arg1 * _arg1))) + 1)) + _arg2));
}
public static function easeInQuad(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / _arg4);
return ((((_arg3 * _arg1) * _arg1) + _arg2));
}
public static function easeInBounce(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
return (((_arg3 - easeOutBounce((_arg4 - _arg1), 0, _arg3, _arg4)) + _arg2));
}
public static function easeOutInExpo(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutExpo((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5));
};
return (easeInExpo(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5));
}
public static function easeOutQuart(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = ((_arg1 / _arg4) - 1);
return (((-(_arg3) * ((((_arg1 * _arg1) * _arg1) * _arg1) - 1)) + _arg2));
}
public static function easeInSine(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
return ((((-(_arg3) * Math.cos(((_arg1 / _arg4) * (Math.PI / 2)))) + _arg3) + _arg2));
}
public static function easeInOutQuart(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
return (((((((_arg3 / 2) * _arg1) * _arg1) * _arg1) * _arg1) + _arg2));
};
_arg1 = (_arg1 - 2);
return ((((-(_arg3) / 2) * ((((_arg1 * _arg1) * _arg1) * _arg1) - 2)) + _arg2));
}
public static function easeOutQuad(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / _arg4);
return ((((-(_arg3) * _arg1) * (_arg1 - 2)) + _arg2));
}
public static function easeOutInElastic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutElastic((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5));
};
return (easeInElastic(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5));
}
public static function easeInElastic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
var _local6:Number;
var _local7:Number;
var _local8:Number;
if (_arg1 == 0){
return (_arg2);
};
_arg1 = (_arg1 / _arg4);
if (_arg1 == 1){
return ((_arg2 + _arg3));
};
_local6 = (((!(Boolean(_arg5))) || (isNaN(_arg5.period)))) ? (_arg4 * 0.3) : _arg5.period;
_local8 = (((!(Boolean(_arg5))) || (isNaN(_arg5.amplitude)))) ? 0 : _arg5.amplitude;
if (((!(Boolean(_local8))) || ((_local8 < Math.abs(_arg3))))){
_local8 = _arg3;
_local7 = (_local6 / 4);
} else {
_local7 = ((_local6 / (2 * Math.PI)) * Math.asin((_arg3 / _local8)));
};
--_arg1;
return ((-(((_local8 * Math.pow(2, (10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local7) * (2 * Math.PI)) / _local6)))) + _arg2));
}
public static function easeOutCubic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = ((_arg1 / _arg4) - 1);
return (((_arg3 * (((_arg1 * _arg1) * _arg1) + 1)) + _arg2));
}
public static function easeOutQuint(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = ((_arg1 / _arg4) - 1);
return (((_arg3 * (((((_arg1 * _arg1) * _arg1) * _arg1) * _arg1) + 1)) + _arg2));
}
public static function easeOutInQuad(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutQuad((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5));
};
return (easeInQuad(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5));
}
public static function easeOutSine(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
return (((_arg3 * Math.sin(((_arg1 / _arg4) * (Math.PI / 2)))) + _arg2));
}
public static function easeInOutCubic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
return ((((((_arg3 / 2) * _arg1) * _arg1) * _arg1) + _arg2));
};
_arg1 = (_arg1 - 2);
return ((((_arg3 / 2) * (((_arg1 * _arg1) * _arg1) + 2)) + _arg2));
}
public static function easeInOutQuint(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
return ((((((((_arg3 / 2) * _arg1) * _arg1) * _arg1) * _arg1) * _arg1) + _arg2));
};
_arg1 = (_arg1 - 2);
return ((((_arg3 / 2) * (((((_arg1 * _arg1) * _arg1) * _arg1) * _arg1) + 2)) + _arg2));
}
public static function easeInCirc(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / _arg4);
return (((-(_arg3) * (Math.sqrt((1 - (_arg1 * _arg1))) - 1)) + _arg2));
}
public static function easeOutInSine(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutSine((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5));
};
return (easeInSine(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5));
}
public static function easeInOutExpo(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 == 0){
return (_arg2);
};
if (_arg1 == _arg4){
return ((_arg2 + _arg3));
};
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
return (((((_arg3 / 2) * Math.pow(2, (10 * (_arg1 - 1)))) + _arg2) - (_arg3 * 0.0005)));
};
--_arg1;
return (((((_arg3 / 2) * 1.0005) * (-(Math.pow(2, (-10 * _arg1))) + 2)) + _arg2));
}
public static function easeOutElastic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
var _local6:Number;
var _local7:Number;
var _local8:Number;
if (_arg1 == 0){
return (_arg2);
};
_arg1 = (_arg1 / _arg4);
if (_arg1 == 1){
return ((_arg2 + _arg3));
};
_local6 = (((!(Boolean(_arg5))) || (isNaN(_arg5.period)))) ? (_arg4 * 0.3) : _arg5.period;
_local8 = (((!(Boolean(_arg5))) || (isNaN(_arg5.amplitude)))) ? 0 : _arg5.amplitude;
if (((!(Boolean(_local8))) || ((_local8 < Math.abs(_arg3))))){
_local8 = _arg3;
_local7 = (_local6 / 4);
} else {
_local7 = ((_local6 / (2 * Math.PI)) * Math.asin((_arg3 / _local8)));
};
return (((((_local8 * Math.pow(2, (-10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local7) * (2 * Math.PI)) / _local6))) + _arg3) + _arg2));
}
public static function easeOutCirc(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = ((_arg1 / _arg4) - 1);
return (((_arg3 * Math.sqrt((1 - (_arg1 * _arg1)))) + _arg2));
}
public static function easeOutInQuart(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutQuart((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5));
};
return (easeInQuart(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5));
}
public static function easeOutInCirc(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutCirc((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5));
};
return (easeInCirc(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5));
}
}
}//package caurina.transitions
Section 3
//PropertyInfoObj (caurina.transitions.PropertyInfoObj)
package caurina.transitions {
public class PropertyInfoObj {
public var originalValueComplete:Object;
public var modifierParameters:Array;
public var isSpecialProperty:Boolean;
public var hasModifier:Boolean;
public var valueComplete:Number;
public var extra:Object;
public var valueStart:Number;
public var modifierFunction:Function;
public var arrayIndex:Number;
public function PropertyInfoObj(_arg1:Number, _arg2:Number, _arg3:Object, _arg4:Number, _arg5:Object, _arg6:Boolean, _arg7:Function, _arg8:Array){
valueStart = _arg1;
valueComplete = _arg2;
originalValueComplete = _arg3;
arrayIndex = _arg4;
extra = _arg5;
isSpecialProperty = _arg6;
hasModifier = Boolean(_arg7);
modifierFunction = _arg7;
modifierParameters = _arg8;
}
public function toString():String{
var _local1:String;
_local1 = "\n[PropertyInfoObj ";
_local1 = (_local1 + ("valueStart:" + String(valueStart)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("valueComplete:" + String(valueComplete)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("originalValueComplete:" + String(originalValueComplete)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("arrayIndex:" + String(arrayIndex)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("extra:" + String(extra)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("isSpecialProperty:" + String(isSpecialProperty)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("hasModifier:" + String(hasModifier)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("modifierFunction:" + String(modifierFunction)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("modifierParameters:" + String(modifierParameters)));
_local1 = (_local1 + "]\n");
return (_local1);
}
public function clone():PropertyInfoObj{
var _local1:PropertyInfoObj;
_local1 = new PropertyInfoObj(valueStart, valueComplete, originalValueComplete, arrayIndex, extra, isSpecialProperty, modifierFunction, modifierParameters);
return (_local1);
}
}
}//package caurina.transitions
Section 4
//SpecialProperty (caurina.transitions.SpecialProperty)
package caurina.transitions {
public class SpecialProperty {
public var parameters:Array;
public var preProcess:Function;
public var setValue:Function;
public var getValue:Function;
public function SpecialProperty(_arg1:Function, _arg2:Function, _arg3:Array=null, _arg4:Function=null){
getValue = _arg1;
setValue = _arg2;
parameters = _arg3;
preProcess = _arg4;
}
public function toString():String{
var _local1:String;
_local1 = "";
_local1 = (_local1 + "[SpecialProperty ");
_local1 = (_local1 + ("getValue:" + String(getValue)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("setValue:" + String(setValue)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("parameters:" + String(parameters)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("preProcess:" + String(preProcess)));
_local1 = (_local1 + "]");
return (_local1);
}
}
}//package caurina.transitions
Section 5
//SpecialPropertyModifier (caurina.transitions.SpecialPropertyModifier)
package caurina.transitions {
public class SpecialPropertyModifier {
public var getValue:Function;
public var modifyValues:Function;
public function SpecialPropertyModifier(_arg1:Function, _arg2:Function){
modifyValues = _arg1;
getValue = _arg2;
}
public function toString():String{
var _local1:String;
_local1 = "";
_local1 = (_local1 + "[SpecialPropertyModifier ");
_local1 = (_local1 + ("modifyValues:" + String(modifyValues)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("getValue:" + String(getValue)));
_local1 = (_local1 + "]");
return (_local1);
}
}
}//package caurina.transitions
Section 6
//SpecialPropertySplitter (caurina.transitions.SpecialPropertySplitter)
package caurina.transitions {
public class SpecialPropertySplitter {
public var parameters:Array;
public var splitValues:Function;
public function SpecialPropertySplitter(_arg1:Function, _arg2:Array){
splitValues = _arg1;
parameters = _arg2;
}
public function toString():String{
var _local1:String;
_local1 = "";
_local1 = (_local1 + "[SpecialPropertySplitter ");
_local1 = (_local1 + ("splitValues:" + String(splitValues)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("parameters:" + String(parameters)));
_local1 = (_local1 + "]");
return (_local1);
}
}
}//package caurina.transitions
Section 7
//Tweener (caurina.transitions.Tweener)
package caurina.transitions {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
public class Tweener {
private static var _timeScale:Number = 1;
private static var _currentTimeFrame:Number;
private static var _specialPropertySplitterList:Object;
public static var autoOverwrite:Boolean = true;
private static var _engineExists:Boolean = false;
private static var _currentTime:Number;
private static var _tweenList:Array;
private static var _specialPropertyModifierList:Object;
private static var _specialPropertyList:Object;
private static var _transitionList:Object;
private static var _inited:Boolean = false;
private static var __tweener_controller__:MovieClip;
public function Tweener(){
trace("Tweener is a static class and should not be instantiated.");
}
public static function registerSpecialPropertyModifier(_arg1:String, _arg2:Function, _arg3:Function):void{
var _local4:SpecialPropertyModifier;
if (!_inited){
init();
};
_local4 = new SpecialPropertyModifier(_arg2, _arg3);
_specialPropertyModifierList[_arg1] = _local4;
}
public static function registerSpecialProperty(_arg1:String, _arg2:Function, _arg3:Function, _arg4:Array=null, _arg5:Function=null):void{
var _local6:SpecialProperty;
if (!_inited){
init();
};
_local6 = new SpecialProperty(_arg2, _arg3, _arg4, _arg5);
_specialPropertyList[_arg1] = _local6;
}
public static function init(... _args):void{
_inited = true;
_transitionList = new Object();
Equations.init();
_specialPropertyList = new Object();
_specialPropertyModifierList = new Object();
_specialPropertySplitterList = new Object();
}
private static function updateTweens():Boolean{
var _local1:int;
if (_tweenList.length == 0){
return (false);
};
_local1 = 0;
while (_local1 < _tweenList.length) {
if ((((_tweenList[_local1] == undefined)) || (!(_tweenList[_local1].isPaused)))){
if (!updateTweenByIndex(_local1)){
removeTweenByIndex(_local1);
};
if (_tweenList[_local1] == null){
removeTweenByIndex(_local1, true);
_local1--;
};
};
_local1++;
};
return (true);
}
public static function addCaller(_arg1:Object=null, _arg2:Object=null):Boolean{
var _local3:Number;
var _local4:Array;
var _local5:Object;
var _local6:Number;
var _local7:Number;
var _local8:Function;
var _local9:TweenListObj;
var _local10:Number;
var _local11:String;
if (!Boolean(_arg1)){
return (false);
};
if ((_arg1 is Array)){
_local4 = _arg1.concat();
} else {
_local4 = [_arg1];
};
_local5 = _arg2;
if (!_inited){
init();
};
if (((!(_engineExists)) || (!(Boolean(__tweener_controller__))))){
startEngine();
};
_local6 = (isNaN(_local5.time)) ? 0 : _local5.time;
_local7 = (isNaN(_local5.delay)) ? 0 : _local5.delay;
if (typeof(_local5.transition) == "string"){
_local11 = _local5.transition.toLowerCase();
_local8 = _transitionList[_local11];
} else {
_local8 = _local5.transition;
};
if (!Boolean(_local8)){
_local8 = _transitionList["easeoutexpo"];
};
_local3 = 0;
while (_local3 < _local4.length) {
if (_local5.useFrames == true){
_local9 = new TweenListObj(_local4[_local3], (_currentTimeFrame + (_local7 / _timeScale)), (_currentTimeFrame + ((_local7 + _local6) / _timeScale)), true, _local8, _local5.transitionParams);
} else {
_local9 = new TweenListObj(_local4[_local3], (_currentTime + ((_local7 * 1000) / _timeScale)), (_currentTime + (((_local7 * 1000) + (_local6 * 1000)) / _timeScale)), false, _local8, _local5.transitionParams);
};
_local9.properties = null;
_local9.onStart = _local5.onStart;
_local9.onUpdate = _local5.onUpdate;
_local9.onComplete = _local5.onComplete;
_local9.onOverwrite = _local5.onOverwrite;
_local9.onStartParams = _local5.onStartParams;
_local9.onUpdateParams = _local5.onUpdateParams;
_local9.onCompleteParams = _local5.onCompleteParams;
_local9.onOverwriteParams = _local5.onOverwriteParams;
_local9.onStartScope = _local5.onStartScope;
_local9.onUpdateScope = _local5.onUpdateScope;
_local9.onCompleteScope = _local5.onCompleteScope;
_local9.onOverwriteScope = _local5.onOverwriteScope;
_local9.onErrorScope = _local5.onErrorScope;
_local9.isCaller = true;
_local9.count = _local5.count;
_local9.waitFrames = _local5.waitFrames;
_tweenList.push(_local9);
if ((((_local6 == 0)) && ((_local7 == 0)))){
_local10 = (_tweenList.length - 1);
updateTweenByIndex(_local10);
removeTweenByIndex(_local10);
};
_local3++;
};
return (true);
}
public static function pauseAllTweens():Boolean{
var _local1:Boolean;
var _local2:uint;
if (!Boolean(_tweenList)){
return (false);
};
_local1 = false;
_local2 = 0;
while (_local2 < _tweenList.length) {
pauseTweenByIndex(_local2);
_local1 = true;
_local2++;
};
return (_local1);
}
public static function removeTweens(_arg1:Object, ... _args):Boolean{
var _local3:Array;
var _local4:uint;
var _local5:SpecialPropertySplitter;
var _local6:Array;
var _local7:uint;
_local3 = new Array();
_local4 = 0;
while (_local4 < _args.length) {
if ((((typeof(_args[_local4]) == "string")) && ((_local3.indexOf(_args[_local4]) == -1)))){
if (_specialPropertySplitterList[_args[_local4]]){
_local5 = _specialPropertySplitterList[_args[_local4]];
_local6 = _local5.splitValues(_arg1, null);
_local7 = 0;
while (_local7 < _local6.length) {
_local3.push(_local6[_local7].name);
_local7++;
};
} else {
_local3.push(_args[_local4]);
};
};
_local4++;
};
return (affectTweens(removeTweenByIndex, _arg1, _local3));
}
public static function updateFrame():void{
_currentTimeFrame++;
}
public static function splitTweens(_arg1:Number, _arg2:Array):uint{
var _local3:TweenListObj;
var _local4:TweenListObj;
var _local5:uint;
var _local6:String;
var _local7:Boolean;
_local3 = _tweenList[_arg1];
_local4 = _local3.clone(false);
_local5 = 0;
while (_local5 < _arg2.length) {
_local6 = _arg2[_local5];
if (Boolean(_local3.properties[_local6])){
_local3.properties[_local6] = undefined;
delete _local3.properties[_local6];
};
_local5++;
};
for (_local6 in _local4.properties) {
_local7 = false;
_local5 = 0;
while (_local5 < _arg2.length) {
if (_arg2[_local5] == _local6){
_local7 = true;
break;
};
_local5++;
};
if (!_local7){
_local4.properties[_local6] = undefined;
delete _local4.properties[_local6];
};
};
_tweenList.push(_local4);
return ((_tweenList.length - 1));
}
public static function resumeTweenByIndex(_arg1:Number):Boolean{
var _local2:TweenListObj;
var _local3:Number;
_local2 = _tweenList[_arg1];
if ((((_local2 == null)) || (!(_local2.isPaused)))){
return (false);
};
_local3 = getCurrentTweeningTime(_local2);
_local2.timeStart = (_local2.timeStart + (_local3 - _local2.timePaused));
_local2.timeComplete = (_local2.timeComplete + (_local3 - _local2.timePaused));
_local2.timePaused = undefined;
_local2.isPaused = false;
return (true);
}
public static function getVersion():String{
return ("AS3 1.33.74");
}
public static function onEnterFrame(_arg1:Event):void{
var _local2:Boolean;
updateTime();
updateFrame();
_local2 = false;
_local2 = updateTweens();
if (!_local2){
stopEngine();
};
}
public static function updateTime():void{
_currentTime = getTimer();
}
private static function updateTweenByIndex(_arg1:Number):Boolean{
var tTweening:TweenListObj;
var isOver:Boolean;
var mustUpdate:Boolean;
var nv:Number;
var t:Number;
var b:Number;
var c:Number;
var d:Number;
var pName:String;
var eventScope:Object;
var tScope:Object;
var cTime:Number;
var tProperty:Object;
var pv:Number;
var i = _arg1;
tTweening = _tweenList[i];
if ((((tTweening == null)) || (!(Boolean(tTweening.scope))))){
return (false);
};
isOver = false;
cTime = getCurrentTweeningTime(tTweening);
if (cTime >= tTweening.timeStart){
tScope = tTweening.scope;
if (tTweening.isCaller){
do {
t = (((tTweening.timeComplete - tTweening.timeStart) / tTweening.count) * (tTweening.timesCalled + 1));
b = tTweening.timeStart;
c = (tTweening.timeComplete - tTweening.timeStart);
d = (tTweening.timeComplete - tTweening.timeStart);
nv = tTweening.transition(t, b, c, d);
} while (!(cTime >= nv));
} else {
mustUpdate = (((((tTweening.skipUpdates < 1)) || (!(tTweening.skipUpdates)))) || ((tTweening.updatesSkipped >= tTweening.skipUpdates)));
if (cTime >= tTweening.timeComplete){
isOver = true;
mustUpdate = true;
};
if (!tTweening.hasStarted){
if (Boolean(tTweening.onStart)){
eventScope = (Boolean(tTweening.onStartScope)) ? tTweening.onStartScope : tScope;
try {
tTweening.onStart.apply(eventScope, tTweening.onStartParams);
} catch(e2:Error) {
handleError(tTweening, e2, "onStart");
};
};
for (pName in tTweening.properties) {
if (tTweening.properties[pName].isSpecialProperty){
if (Boolean(_specialPropertyList[pName].preProcess)){
tTweening.properties[pName].valueComplete = _specialPropertyList[pName].preProcess(tScope, _specialPropertyList[pName].parameters, tTweening.properties[pName].originalValueComplete, tTweening.properties[pName].extra);
};
pv = _specialPropertyList[pName].getValue(tScope, _specialPropertyList[pName].parameters, tTweening.properties[pName].extra);
} else {
pv = tScope[pName];
};
tTweening.properties[pName].valueStart = (isNaN(pv)) ? tTweening.properties[pName].valueComplete : pv;
};
mustUpdate = true;
tTweening.hasStarted = true;
};
if (mustUpdate){
for (pName in tTweening.properties) {
tProperty = tTweening.properties[pName];
if (isOver){
nv = tProperty.valueComplete;
} else {
if (tProperty.hasModifier){
t = (cTime - tTweening.timeStart);
d = (tTweening.timeComplete - tTweening.timeStart);
nv = tTweening.transition(t, 0, 1, d, tTweening.transitionParams);
nv = tProperty.modifierFunction(tProperty.valueStart, tProperty.valueComplete, nv, tProperty.modifierParameters);
} else {
t = (cTime - tTweening.timeStart);
b = tProperty.valueStart;
c = (tProperty.valueComplete - tProperty.valueStart);
d = (tTweening.timeComplete - tTweening.timeStart);
nv = tTweening.transition(t, b, c, d, tTweening.transitionParams);
};
};
if (tTweening.rounded){
nv = Math.round(nv);
};
if (tProperty.isSpecialProperty){
_specialPropertyList[pName].setValue(tScope, nv, _specialPropertyList[pName].parameters, tTweening.properties[pName].extra);
} else {
tScope[pName] = nv;
};
};
tTweening.updatesSkipped = 0;
if (Boolean(tTweening.onUpdate)){
eventScope = (Boolean(tTweening.onUpdateScope)) ? tTweening.onUpdateScope : tScope;
try {
tTweening.onUpdate.apply(eventScope, tTweening.onUpdateParams);
} catch(e3:Error) {
handleError(tTweening, e3, "onUpdate");
};
};
} else {
tTweening.updatesSkipped++;
};
};
if (((isOver) && (Boolean(tTweening.onComplete)))){
eventScope = (Boolean(tTweening.onCompleteScope)) ? tTweening.onCompleteScope : tScope;
try {
tTweening.onComplete.apply(eventScope, tTweening.onCompleteParams);
} catch(e4:Error) {
handleError(tTweening, e4, "onComplete");
};
};
return (!(isOver));
};
return (true);
}
public static function setTimeScale(_arg1:Number):void{
var _local2:Number;
var _local3:Number;
if (isNaN(_arg1)){
_arg1 = 1;
};
if (_arg1 < 1E-5){
_arg1 = 1E-5;
};
if (_arg1 != _timeScale){
if (_tweenList != null){
_local2 = 0;
while (_local2 < _tweenList.length) {
_local3 = getCurrentTweeningTime(_tweenList[_local2]);
_tweenList[_local2].timeStart = (_local3 - (((_local3 - _tweenList[_local2].timeStart) * _timeScale) / _arg1));
_tweenList[_local2].timeComplete = (_local3 - (((_local3 - _tweenList[_local2].timeComplete) * _timeScale) / _arg1));
if (_tweenList[_local2].timePaused != undefined){
_tweenList[_local2].timePaused = (_local3 - (((_local3 - _tweenList[_local2].timePaused) * _timeScale) / _arg1));
};
_local2++;
};
};
_timeScale = _arg1;
};
}
public static function resumeAllTweens():Boolean{
var _local1:Boolean;
var _local2:uint;
if (!Boolean(_tweenList)){
return (false);
};
_local1 = false;
_local2 = 0;
while (_local2 < _tweenList.length) {
resumeTweenByIndex(_local2);
_local1 = true;
_local2++;
};
return (_local1);
}
private static function handleError(_arg1:TweenListObj, _arg2:Error, _arg3:String):void{
var eventScope:Object;
var pTweening = _arg1;
var pError = _arg2;
var pCallBackName = _arg3;
if (((Boolean(pTweening.onError)) && ((pTweening.onError is Function)))){
eventScope = (Boolean(pTweening.onErrorScope)) ? pTweening.onErrorScope : pTweening.scope;
try {
pTweening.onError.apply(eventScope, [pTweening.scope, pError]);
} catch(metaError:Error) {
printError(((((String(pTweening.scope) + " raised an error while executing the 'onError' handler. Original error:\n ") + pError.getStackTrace()) + "\nonError error: ") + metaError.getStackTrace()));
};
} else {
if (!Boolean(pTweening.onError)){
printError(((((String(pTweening.scope) + " raised an error while executing the '") + pCallBackName) + "'handler. \n") + pError.getStackTrace()));
};
};
}
private static function startEngine():void{
_engineExists = true;
_tweenList = new Array();
__tweener_controller__ = new MovieClip();
__tweener_controller__.addEventListener(Event.ENTER_FRAME, Tweener.onEnterFrame);
_currentTimeFrame = 0;
updateTime();
}
public static function removeAllTweens():Boolean{
var _local1:Boolean;
var _local2:uint;
if (!Boolean(_tweenList)){
return (false);
};
_local1 = false;
_local2 = 0;
while (_local2 < _tweenList.length) {
removeTweenByIndex(_local2);
_local1 = true;
_local2++;
};
return (_local1);
}
public static function addTween(_arg1:Object=null, _arg2:Object=null):Boolean{
var _local3:Number;
var _local4:Number;
var _local5:String;
var _local6:Array;
var _local7:Object;
var _local8:Number;
var _local9:Number;
var _local10:Array;
var _local11:Object;
var _local12:Object;
var _local13:Function;
var _local14:Object;
var _local15:TweenListObj;
var _local16:Number;
var _local17:Array;
var _local18:Array;
var _local19:Array;
var _local20:String;
if (!Boolean(_arg1)){
return (false);
};
if ((_arg1 is Array)){
_local6 = _arg1.concat();
} else {
_local6 = [_arg1];
};
_local7 = TweenListObj.makePropertiesChain(_arg2);
if (!_inited){
init();
};
if (((!(_engineExists)) || (!(Boolean(__tweener_controller__))))){
startEngine();
};
_local8 = (isNaN(_local7.time)) ? 0 : _local7.time;
_local9 = (isNaN(_local7.delay)) ? 0 : _local7.delay;
_local10 = new Array();
_local11 = {overwrite:true, time:true, delay:true, useFrames:true, skipUpdates:true, transition:true, transitionParams:true, onStart:true, onUpdate:true, onComplete:true, onOverwrite:true, onError:true, rounded:true, onStartParams:true, onUpdateParams:true, onCompleteParams:true, onOverwriteParams:true, onStartScope:true, onUpdateScope:true, onCompleteScope:true, onOverwriteScope:true, onErrorScope:true};
_local12 = new Object();
for (_local5 in _local7) {
if (!_local11[_local5]){
if (_specialPropertySplitterList[_local5]){
_local17 = _specialPropertySplitterList[_local5].splitValues(_local7[_local5], _specialPropertySplitterList[_local5].parameters);
_local3 = 0;
while (_local3 < _local17.length) {
if (_specialPropertySplitterList[_local17[_local3].name]){
_local18 = _specialPropertySplitterList[_local17[_local3].name].splitValues(_local17[_local3].value, _specialPropertySplitterList[_local17[_local3].name].parameters);
_local4 = 0;
while (_local4 < _local18.length) {
_local10[_local18[_local4].name] = {valueStart:undefined, valueComplete:_local18[_local4].value, arrayIndex:_local18[_local4].arrayIndex, isSpecialProperty:false};
_local4++;
};
} else {
_local10[_local17[_local3].name] = {valueStart:undefined, valueComplete:_local17[_local3].value, arrayIndex:_local17[_local3].arrayIndex, isSpecialProperty:false};
};
_local3++;
};
} else {
if (_specialPropertyModifierList[_local5] != undefined){
_local19 = _specialPropertyModifierList[_local5].modifyValues(_local7[_local5]);
_local3 = 0;
while (_local3 < _local19.length) {
_local12[_local19[_local3].name] = {modifierParameters:_local19[_local3].parameters, modifierFunction:_specialPropertyModifierList[_local5].getValue};
_local3++;
};
} else {
_local10[_local5] = {valueStart:undefined, valueComplete:_local7[_local5]};
};
};
};
};
for (_local5 in _local10) {
if (_specialPropertyList[_local5] != undefined){
_local10[_local5].isSpecialProperty = true;
} else {
if (_local6[0][_local5] == undefined){
printError((((("The property '" + _local5) + "' doesn't seem to be a normal object property of ") + String(_local6[0])) + " or a registered special property."));
};
};
};
for (_local5 in _local12) {
if (_local10[_local5] != undefined){
_local10[_local5].modifierParameters = _local12[_local5].modifierParameters;
_local10[_local5].modifierFunction = _local12[_local5].modifierFunction;
};
};
if (typeof(_local7.transition) == "string"){
_local20 = _local7.transition.toLowerCase();
_local13 = _transitionList[_local20];
} else {
_local13 = _local7.transition;
};
if (!Boolean(_local13)){
_local13 = _transitionList["easeoutexpo"];
};
_local3 = 0;
while (_local3 < _local6.length) {
_local14 = new Object();
for (_local5 in _local10) {
_local14[_local5] = new PropertyInfoObj(_local10[_local5].valueStart, _local10[_local5].valueComplete, _local10[_local5].valueComplete, _local10[_local5].arrayIndex, {}, _local10[_local5].isSpecialProperty, _local10[_local5].modifierFunction, _local10[_local5].modifierParameters);
};
if (_local7.useFrames == true){
_local15 = new TweenListObj(_local6[_local3], (_currentTimeFrame + (_local9 / _timeScale)), (_currentTimeFrame + ((_local9 + _local8) / _timeScale)), true, _local13, _local7.transitionParams);
} else {
_local15 = new TweenListObj(_local6[_local3], (_currentTime + ((_local9 * 1000) / _timeScale)), (_currentTime + (((_local9 * 1000) + (_local8 * 1000)) / _timeScale)), false, _local13, _local7.transitionParams);
};
_local15.properties = _local14;
_local15.onStart = _local7.onStart;
_local15.onUpdate = _local7.onUpdate;
_local15.onComplete = _local7.onComplete;
_local15.onOverwrite = _local7.onOverwrite;
_local15.onError = _local7.onError;
_local15.onStartParams = _local7.onStartParams;
_local15.onUpdateParams = _local7.onUpdateParams;
_local15.onCompleteParams = _local7.onCompleteParams;
_local15.onOverwriteParams = _local7.onOverwriteParams;
_local15.onStartScope = _local7.onStartScope;
_local15.onUpdateScope = _local7.onUpdateScope;
_local15.onCompleteScope = _local7.onCompleteScope;
_local15.onOverwriteScope = _local7.onOverwriteScope;
_local15.onErrorScope = _local7.onErrorScope;
_local15.rounded = _local7.rounded;
_local15.skipUpdates = _local7.skipUpdates;
if (((_local7.overwrite == undefined)) ? autoOverwrite : _local7.overwrite){
removeTweensByTime(_local15.scope, _local15.properties, _local15.timeStart, _local15.timeComplete);
};
_tweenList.push(_local15);
if ((((_local8 == 0)) && ((_local9 == 0)))){
_local16 = (_tweenList.length - 1);
updateTweenByIndex(_local16);
removeTweenByIndex(_local16);
};
_local3++;
};
return (true);
}
public static function registerTransition(_arg1:String, _arg2:Function):void{
if (!_inited){
init();
};
_transitionList[_arg1] = _arg2;
}
public static function printError(_arg1:String):void{
trace(("## [Tweener] Error: " + _arg1));
}
private static function affectTweens(_arg1:Function, _arg2:Object, _arg3:Array):Boolean{
var _local4:Boolean;
var _local5:uint;
var _local6:Array;
var _local7:uint;
var _local8:uint;
var _local9:uint;
_local4 = false;
if (!Boolean(_tweenList)){
return (false);
};
_local5 = 0;
while (_local5 < _tweenList.length) {
if (((_tweenList[_local5]) && ((_tweenList[_local5].scope == _arg2)))){
if (_arg3.length == 0){
_arg1(_local5);
_local4 = true;
} else {
_local6 = new Array();
_local7 = 0;
while (_local7 < _arg3.length) {
if (Boolean(_tweenList[_local5].properties[_arg3[_local7]])){
_local6.push(_arg3[_local7]);
};
_local7++;
};
if (_local6.length > 0){
_local8 = AuxFunctions.getObjectLength(_tweenList[_local5].properties);
if (_local8 == _local6.length){
_arg1(_local5);
_local4 = true;
} else {
_local9 = splitTweens(_local5, _local6);
_arg1(_local9);
_local4 = true;
};
};
};
};
_local5++;
};
return (_local4);
}
public static function getTweens(_arg1:Object):Array{
var _local2:uint;
var _local3:String;
var _local4:Array;
if (!Boolean(_tweenList)){
return ([]);
};
_local4 = new Array();
_local2 = 0;
while (_local2 < _tweenList.length) {
if (((Boolean(_tweenList[_local2])) && ((_tweenList[_local2].scope == _arg1)))){
for (_local3 in _tweenList[_local2].properties) {
_local4.push(_local3);
};
};
_local2++;
};
return (_local4);
}
public static function isTweening(_arg1:Object):Boolean{
var _local2:uint;
if (!Boolean(_tweenList)){
return (false);
};
_local2 = 0;
while (_local2 < _tweenList.length) {
if (((Boolean(_tweenList[_local2])) && ((_tweenList[_local2].scope == _arg1)))){
return (true);
};
_local2++;
};
return (false);
}
public static function pauseTweenByIndex(_arg1:Number):Boolean{
var _local2:TweenListObj;
_local2 = _tweenList[_arg1];
if ((((_local2 == null)) || (_local2.isPaused))){
return (false);
};
_local2.timePaused = getCurrentTweeningTime(_local2);
_local2.isPaused = true;
return (true);
}
public static function getCurrentTweeningTime(_arg1:Object):Number{
return ((_arg1.useFrames) ? _currentTimeFrame : _currentTime);
}
public static function getTweenCount(_arg1:Object):Number{
var _local2:uint;
var _local3:Number;
if (!Boolean(_tweenList)){
return (0);
};
_local3 = 0;
_local2 = 0;
while (_local2 < _tweenList.length) {
if (((Boolean(_tweenList[_local2])) && ((_tweenList[_local2].scope == _arg1)))){
_local3 = (_local3 + AuxFunctions.getObjectLength(_tweenList[_local2].properties));
};
_local2++;
};
return (_local3);
}
private static function stopEngine():void{
_engineExists = false;
_tweenList = null;
_currentTime = 0;
_currentTimeFrame = 0;
__tweener_controller__.removeEventListener(Event.ENTER_FRAME, Tweener.onEnterFrame);
__tweener_controller__ = null;
}
public static function removeTweensByTime(_arg1:Object, _arg2:Object, _arg3:Number, _arg4:Number):Boolean{
var removed:Boolean;
var removedLocally:Boolean;
var i:uint;
var tl:uint;
var pName:String;
var eventScope:Object;
var p_scope = _arg1;
var p_properties = _arg2;
var p_timeStart = _arg3;
var p_timeComplete = _arg4;
removed = false;
tl = _tweenList.length;
i = 0;
while (i < tl) {
if (((Boolean(_tweenList[i])) && ((p_scope == _tweenList[i].scope)))){
if ((((p_timeComplete > _tweenList[i].timeStart)) && ((p_timeStart < _tweenList[i].timeComplete)))){
removedLocally = false;
for (pName in _tweenList[i].properties) {
if (Boolean(p_properties[pName])){
if (Boolean(_tweenList[i].onOverwrite)){
eventScope = (Boolean(_tweenList[i].onOverwriteScope)) ? _tweenList[i].onOverwriteScope : _tweenList[i].scope;
try {
_tweenList[i].onOverwrite.apply(eventScope, _tweenList[i].onOverwriteParams);
} catch(e:Error) {
handleError(_tweenList[i], e, "onOverwrite");
};
};
_tweenList[i].properties[pName] = undefined;
delete _tweenList[i].properties[pName];
removedLocally = true;
removed = true;
};
};
if (removedLocally){
if (AuxFunctions.getObjectLength(_tweenList[i].properties) == 0){
removeTweenByIndex(i);
};
};
};
};
i = (i + 1);
};
return (removed);
}
public static function registerSpecialPropertySplitter(_arg1:String, _arg2:Function, _arg3:Array=null):void{
var _local4:SpecialPropertySplitter;
if (!_inited){
init();
};
_local4 = new SpecialPropertySplitter(_arg2, _arg3);
_specialPropertySplitterList[_arg1] = _local4;
}
public static function removeTweenByIndex(_arg1:Number, _arg2:Boolean=false):Boolean{
_tweenList[_arg1] = null;
if (_arg2){
_tweenList.splice(_arg1, 1);
};
return (true);
}
public static function resumeTweens(_arg1:Object, ... _args):Boolean{
var _local3:Array;
var _local4:uint;
_local3 = new Array();
_local4 = 0;
while (_local4 < _args.length) {
if ((((typeof(_args[_local4]) == "string")) && ((_local3.indexOf(_args[_local4]) == -1)))){
_local3.push(_args[_local4]);
};
_local4++;
};
return (affectTweens(resumeTweenByIndex, _arg1, _local3));
}
public static function pauseTweens(_arg1:Object, ... _args):Boolean{
var _local3:Array;
var _local4:uint;
_local3 = new Array();
_local4 = 0;
while (_local4 < _args.length) {
if ((((typeof(_args[_local4]) == "string")) && ((_local3.indexOf(_args[_local4]) == -1)))){
_local3.push(_args[_local4]);
};
_local4++;
};
return (affectTweens(pauseTweenByIndex, _arg1, _local3));
}
}
}//package caurina.transitions
Section 8
//TweenListObj (caurina.transitions.TweenListObj)
package caurina.transitions {
public class TweenListObj {
public var onUpdate:Function;
public var useFrames:Boolean;
public var hasStarted:Boolean;
public var onOverwriteParams:Array;
public var timeStart:Number;
public var count:Number;
public var timeComplete:Number;
public var onStartParams:Array;
public var onUpdateScope:Object;
public var rounded:Boolean;
public var onUpdateParams:Array;
public var properties:Object;
public var onComplete:Function;
public var transitionParams:Object;
public var updatesSkipped:Number;
public var onStart:Function;
public var onOverwriteScope:Object;
public var skipUpdates:Number;
public var onStartScope:Object;
public var scope:Object;
public var transition:Function;
public var timePaused:Number;
public var onCompleteParams:Array;
public var timesCalled:Number;
public var isCaller:Boolean;
public var onError:Function;
public var onErrorScope:Object;
public var onOverwrite:Function;
public var isPaused:Boolean;
public var waitFrames:Boolean;
public var onCompleteScope:Object;
public function TweenListObj(_arg1:Object, _arg2:Number, _arg3:Number, _arg4:Boolean, _arg5:Function, _arg6:Object){
scope = _arg1;
timeStart = _arg2;
timeComplete = _arg3;
useFrames = _arg4;
transition = _arg5;
transitionParams = _arg6;
properties = new Object();
isPaused = false;
timePaused = undefined;
isCaller = false;
updatesSkipped = 0;
timesCalled = 0;
skipUpdates = 0;
hasStarted = false;
}
public function clone(_arg1:Boolean):TweenListObj{
var _local2:TweenListObj;
var _local3:String;
_local2 = new TweenListObj(scope, timeStart, timeComplete, useFrames, transition, transitionParams);
_local2.properties = new Array();
for (_local3 in properties) {
_local2.properties[_local3] = properties[_local3].clone();
};
_local2.skipUpdates = skipUpdates;
_local2.updatesSkipped = updatesSkipped;
if (!_arg1){
_local2.onStart = onStart;
_local2.onUpdate = onUpdate;
_local2.onComplete = onComplete;
_local2.onOverwrite = onOverwrite;
_local2.onError = onError;
_local2.onStartParams = onStartParams;
_local2.onUpdateParams = onUpdateParams;
_local2.onCompleteParams = onCompleteParams;
_local2.onOverwriteParams = onOverwriteParams;
_local2.onStartScope = onStartScope;
_local2.onUpdateScope = onUpdateScope;
_local2.onCompleteScope = onCompleteScope;
_local2.onOverwriteScope = onOverwriteScope;
_local2.onErrorScope = onErrorScope;
};
_local2.rounded = rounded;
_local2.isPaused = isPaused;
_local2.timePaused = timePaused;
_local2.isCaller = isCaller;
_local2.count = count;
_local2.timesCalled = timesCalled;
_local2.waitFrames = waitFrames;
_local2.hasStarted = hasStarted;
return (_local2);
}
public function toString():String{
var _local1:String;
var _local2:Boolean;
var _local3:String;
_local1 = "\n[TweenListObj ";
_local1 = (_local1 + ("scope:" + String(scope)));
_local1 = (_local1 + ", properties:");
_local2 = true;
for (_local3 in properties) {
if (!_local2){
_local1 = (_local1 + ",");
};
_local1 = (_local1 + ("[name:" + properties[_local3].name));
_local1 = (_local1 + (",valueStart:" + properties[_local3].valueStart));
_local1 = (_local1 + (",valueComplete:" + properties[_local3].valueComplete));
_local1 = (_local1 + "]");
_local2 = false;
};
_local1 = (_local1 + (", timeStart:" + String(timeStart)));
_local1 = (_local1 + (", timeComplete:" + String(timeComplete)));
_local1 = (_local1 + (", useFrames:" + String(useFrames)));
_local1 = (_local1 + (", transition:" + String(transition)));
_local1 = (_local1 + (", transitionParams:" + String(transitionParams)));
if (skipUpdates){
_local1 = (_local1 + (", skipUpdates:" + String(skipUpdates)));
};
if (updatesSkipped){
_local1 = (_local1 + (", updatesSkipped:" + String(updatesSkipped)));
};
if (Boolean(onStart)){
_local1 = (_local1 + (", onStart:" + String(onStart)));
};
if (Boolean(onUpdate)){
_local1 = (_local1 + (", onUpdate:" + String(onUpdate)));
};
if (Boolean(onComplete)){
_local1 = (_local1 + (", onComplete:" + String(onComplete)));
};
if (Boolean(onOverwrite)){
_local1 = (_local1 + (", onOverwrite:" + String(onOverwrite)));
};
if (Boolean(onError)){
_local1 = (_local1 + (", onError:" + String(onError)));
};
if (onStartParams){
_local1 = (_local1 + (", onStartParams:" + String(onStartParams)));
};
if (onUpdateParams){
_local1 = (_local1 + (", onUpdateParams:" + String(onUpdateParams)));
};
if (onCompleteParams){
_local1 = (_local1 + (", onCompleteParams:" + String(onCompleteParams)));
};
if (onOverwriteParams){
_local1 = (_local1 + (", onOverwriteParams:" + String(onOverwriteParams)));
};
if (onStartScope){
_local1 = (_local1 + (", onStartScope:" + String(onStartScope)));
};
if (onUpdateScope){
_local1 = (_local1 + (", onUpdateScope:" + String(onUpdateScope)));
};
if (onCompleteScope){
_local1 = (_local1 + (", onCompleteScope:" + String(onCompleteScope)));
};
if (onOverwriteScope){
_local1 = (_local1 + (", onOverwriteScope:" + String(onOverwriteScope)));
};
if (onErrorScope){
_local1 = (_local1 + (", onErrorScope:" + String(onErrorScope)));
};
if (rounded){
_local1 = (_local1 + (", rounded:" + String(rounded)));
};
if (isPaused){
_local1 = (_local1 + (", isPaused:" + String(isPaused)));
};
if (timePaused){
_local1 = (_local1 + (", timePaused:" + String(timePaused)));
};
if (isCaller){
_local1 = (_local1 + (", isCaller:" + String(isCaller)));
};
if (count){
_local1 = (_local1 + (", count:" + String(count)));
};
if (timesCalled){
_local1 = (_local1 + (", timesCalled:" + String(timesCalled)));
};
if (waitFrames){
_local1 = (_local1 + (", waitFrames:" + String(waitFrames)));
};
if (hasStarted){
_local1 = (_local1 + (", hasStarted:" + String(hasStarted)));
};
_local1 = (_local1 + "]\n");
return (_local1);
}
public static function makePropertiesChain(_arg1:Object):Object{
var _local2:Object;
var _local3:Object;
var _local4:Object;
var _local5:Object;
var _local6:Number;
var _local7:Number;
var _local8:Number;
_local2 = _arg1.base;
if (_local2){
_local3 = {};
if ((_local2 is Array)){
_local4 = [];
_local8 = 0;
while (_local8 < _local2.length) {
_local4.push(_local2[_local8]);
_local8++;
};
} else {
_local4 = [_local2];
};
_local4.push(_arg1);
_local6 = _local4.length;
_local7 = 0;
while (_local7 < _local6) {
if (_local4[_local7]["base"]){
_local5 = AuxFunctions.concatObjects(makePropertiesChain(_local4[_local7]["base"]), _local4[_local7]);
} else {
_local5 = _local4[_local7];
};
_local3 = AuxFunctions.concatObjects(_local3, _local5);
_local7++;
};
if (_local3["base"]){
delete _local3["base"];
};
return (_local3);
//unresolved jump
};
return (_arg1);
}
}
}//package caurina.transitions
Section 9
//ContainerPreloader (com.scoreplug.graphics.ContainerPreloader)
package com.scoreplug.graphics {
import flash.display.*;
import flash.text.*;
public dynamic class ContainerPreloader extends MovieClip {
public var textField:TextField;
}
}//package com.scoreplug.graphics
Section 10
//AwardsService (com.spilgames.api.AwardsService)
package com.spilgames.api {
public class AwardsService {
public static function submitAward(_arg1:String, _arg2:Function=null):int{
return (SpilGamesServices.getInstance().send("Awards", "submitAward", _arg2, {tag:_arg1, userName:User.getUserName(), userHash:User.getUserHash()}));
}
}
}//package com.spilgames.api
Section 11
//ScoreService (com.spilgames.api.ScoreService)
package com.spilgames.api {
public class ScoreService {
public static function submitScore(_arg1:int, _arg2:Function=null):int{
return (SpilGamesServices.getInstance().send("Score", "submitScore", _arg2, {score:_arg1, userName:User.getUserName(), userHash:User.getUserHash()}));
}
}
}//package com.spilgames.api
Section 12
//SpilGamesServices (com.spilgames.api.SpilGamesServices)
package com.spilgames.api {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
public class SpilGamesServices extends MovieClip {
private const DEFAULT_CONNECTION_LOCATION:String = "http://www8.agame.com/games/flash/services/ServicesConnection.swf";
private var _alwaysInFront:Boolean;// = false
private var _loader:Loader;
private var _request:URLRequest;
private var _connecting:Boolean;// = false
private var _servicesConnection;// = null
private var _connected:Boolean;// = false
private var currentDelay:Number;// = 0
private var previousFrameTime:Number;
private var _numConnectionLoadTries:uint;// = 0
public static const INVALID_ID:int = -1;
public static const CONFIGURATION_FAILED:String = "configurationFailure";
private static const MAX_CONNECTION_LOAD_RETRIES:uint = 99;
public static const INVALID_DOMAIN:String = "invalidDomain";
private static var _instance:SpilGamesServices = null;
public function SpilGamesServices(_arg1:Private=null){
_servicesConnection = null;
_connecting = false;
_connected = false;
_numConnectionLoadTries = 0;
_alwaysInFront = false;
currentDelay = 0;
super();
if (!_arg1){
throw (new Error("Cannot instantiate this class, use SpilGamesServices.getInstance"));
};
}
public function get alwaysInFront():Boolean{
return (_alwaysInFront);
}
public function get version():String{
return ("1.1");
}
private function handleRemovedFromStage(_arg1:Event):void{
trace("WARNING: please do not remove SpilGamesServices from the stage");
}
private function handleIOError(_arg1:IOErrorEvent):void{
_numConnectionLoadTries++;
if (_numConnectionLoadTries > MAX_CONNECTION_LOAD_RETRIES){
_loader.contentLoaderInfo.removeEventListener(Event.COMPLETE, handleLoadComplete);
_loader.contentLoaderInfo.removeEventListener(IOErrorEvent.IO_ERROR, handleIOError);
_connecting = false;
trace("ERROR: SpilGamesServices failed to load the connection object");
if (hasEventListener(_arg1.type)){
dispatchEvent(_arg1);
};
} else {
trace(("WARN: SpilGamesServices failed to load the connection object, retry #" + _numConnectionLoadTries));
previousFrameTime = getTimer();
addEventListener(Event.ENTER_FRAME, updateConnectionRetry);
};
}
public function allowDomain(_arg1:String):void{
Security.allowDomain("*");
Security.allowInsecureDomain("*");
}
private function updateConnectionRetry(_arg1:Event):void{
var _local2:Number;
var _local3:Number;
_local2 = getTimer();
_local3 = ((_local2 - previousFrameTime) / 1000);
currentDelay = (currentDelay + _local3);
if (currentDelay >= 2){
trace(("WARN: SpilGamesServices trying to reconnect after: " + currentDelay));
_loader.load(_request);
removeEventListener(Event.ENTER_FRAME, updateConnectionRetry);
currentDelay = 0;
};
previousFrameTime = _local2;
}
public function getItemID():int{
if (_servicesConnection != null){
return (_servicesConnection.getItemID());
};
return (INVALID_ID);
}
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);
};
};
}
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);
}
public function getSiteID():int{
if (_servicesConnection != null){
return (_servicesConnection.getSiteID());
};
return (INVALID_ID);
}
public function isReady():Boolean{
return (((!((_servicesConnection == null))) && (_servicesConnection.isReady())));
}
public function isDomainAllowed():Boolean{
return (((!((_servicesConnection == null))) && (_servicesConnection.isDomainValid())));
}
public function getChannelID():int{
if (_servicesConnection != null){
return (_servicesConnection.getChannelID());
};
return (INVALID_ID);
}
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"));
}
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.ENTER_FRAME, bringToFront);
removeEventListener(Event.REMOVED_FROM_STAGE, handleRemovedFromStage);
if (parent){
parent.removeChild(this);
};
_connected = (_connecting = false);
}
public function get connecting():Boolean{
return (_connecting);
}
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 connection(){
return (_servicesConnection);
}
public function isServiceAvailable(_arg1:String):Boolean{
return (((isReady()) && (_servicesConnection.isServiceAvailable(_arg1))));
}
public function set alwaysInFront(_arg1:Boolean):void{
if (_alwaysInFront != _arg1){
_alwaysInFront = _arg1;
if (_alwaysInFront){
addEventListener(Event.ENTER_FRAME, bringToFront);
} else {
removeEventListener(Event.ENTER_FRAME, bringToFront);
};
};
}
public function connect(_arg1:DisplayObjectContainer, ... _args):void{
var _local3:String;
var _local4:URLVariables;
var _local5:Date;
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"];
_request = new URLRequest(_local3);
} else {
_local3 = DEFAULT_CONNECTION_LOCATION;
_local4 = new URLVariables();
_local5 = new Date();
_local4.nocache = ((((_local5.fullYear * 12) + (_local5.month + 1)) * 31) + _local5.day);
_request = new URLRequest(_local3);
_request.data = _local4;
};
allowDomain(_local3);
_loader = new Loader();
_loader.contentLoaderInfo.addEventListener(Event.COMPLETE, handleLoadComplete);
_loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, handleIOError);
_loader.load(_request);
};
}
public static function getInstance():SpilGamesServices{
if (!_instance){
_instance = new SpilGamesServices(new Private());
};
return (_instance);
}
}
}//package com.spilgames.api
class Private {
private function Private(){
}
}
Section 13
//User (com.spilgames.api.User)
package com.spilgames.api {
import flash.display.*;
public class User {
public static function getUserName():String{
var _local1:*;
_local1 = SpilGamesServices.getInstance().connection;
if (_local1 != null){
return (_local1.getUserName());
};
return ("");
}
public static function isGuest():Boolean{
var _local1:*;
var _local2:DisplayObject;
var _local3:Object;
_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:*;
_local1 = SpilGamesServices.getInstance().connection;
if (_local1 != null){
return (_local1.getUserHash());
};
return ("");
}
}
}//package com.spilgames.api
Section 14
//btn_addtoyoursite_93 (kaboomBot_spillGames_NGv1_fla.btn_addtoyoursite_93)
package kaboomBot_spillGames_NGv1_fla {
import flash.geom.*;
import flash.display.*;
import flash.xml.*;
import flash.text.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.net.*;
import flash.ui.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.printing.*;
public dynamic class btn_addtoyoursite_93 extends MovieClip {
public var titleDefinition_txt:TextField;
public function btn_addtoyoursite_93(){
addFrameScript(0, frame1);
}
function frame1(){
linkBtns(this);
}
public function linkBtns(_arg1:MovieClip){
var movr:Function;
var mout:Function;
var clck:Function;
var btn = _arg1;
movr = function (_arg1:MouseEvent){
};
mout = function (_arg1:MouseEvent){
};
clck = function (_arg1:MouseEvent){
var _local2:String;
var _local3:URLRequest;
MovieClip(parent).botAdobo();
_local2 = "http://gameportal.net";
_local3 = new URLRequest(_local2);
navigateToURL(_local3, "_new");
};
btn.buttonMode = true;
btn.addEventListener(MouseEvent.MOUSE_OVER, movr);
btn.addEventListener(MouseEvent.MOUSE_OUT, mout);
btn.addEventListener(MouseEvent.CLICK, clck);
}
}
}//package kaboomBot_spillGames_NGv1_fla
Section 15
//btn_back_122 (kaboomBot_spillGames_NGv1_fla.btn_back_122)
package kaboomBot_spillGames_NGv1_fla {
import flash.display.*;
import spill.localisation.*;
public dynamic class btn_back_122 extends MovieClip {
public var __id13_:LocalizedTextField;
public function btn_back_122(){
__setProp___id13__btn_back_text_1();
}
function __setProp___id13__btn_back_text_1(){
try {
__id13_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id13_.text = "{btn_back}";
__id13_.textColor = 0xFFFFFF;
__id13_.textSize = 25;
__id13_.bold = false;
__id13_.disableWordwrap = false;
__id13_.embedFonts = true;
__id13_.font = "fnt_timesNewRoman*";
__id13_.hAlign = "center";
__id13_.multiline = false;
__id13_.vAlign = "top";
__id13_.antiAliasType = "advanced";
__id13_.glowBlur = 3;
__id13_.glowColor = 0;
__id13_.useGlowFilter = false;
__id13_.glowQuality = 2;
__id13_.glowStrength = 5;
__id13_.gridFitType = "none";
__id13_.italic = false;
__id13_.selectable = false;
__id13_.underline = false;
try {
__id13_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package kaboomBot_spillGames_NGv1_fla
Section 16
//btn_highScores_85 (kaboomBot_spillGames_NGv1_fla.btn_highScores_85)
package kaboomBot_spillGames_NGv1_fla {
import flash.display.*;
import spill.localisation.*;
public dynamic class btn_highScores_85 extends MovieClip {
public var __id3_:LocalizedTextField;
public function btn_highScores_85(){
__setProp___id3__btn_highScores_Layer1_1();
}
function __setProp___id3__btn_highScores_Layer1_1(){
try {
__id3_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id3_.text = "{btn_highscore}";
__id3_.textColor = 0xFFFFFF;
__id3_.textSize = 12;
__id3_.bold = false;
__id3_.disableWordwrap = false;
__id3_.embedFonts = true;
__id3_.font = "fnt_timesNewRoman*";
__id3_.hAlign = "center";
__id3_.multiline = false;
__id3_.vAlign = "top";
__id3_.antiAliasType = "advanced";
__id3_.glowBlur = 3;
__id3_.glowColor = 0;
__id3_.useGlowFilter = false;
__id3_.glowQuality = 2;
__id3_.glowStrength = 5;
__id3_.gridFitType = "none";
__id3_.italic = false;
__id3_.selectable = false;
__id3_.underline = false;
try {
__id3_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package kaboomBot_spillGames_NGv1_fla
Section 17
//btn_loadGame_84 (kaboomBot_spillGames_NGv1_fla.btn_loadGame_84)
package kaboomBot_spillGames_NGv1_fla {
import flash.display.*;
import spill.localisation.*;
public dynamic class btn_loadGame_84 extends MovieClip {
public var __id2_:LocalizedTextField;
public function btn_loadGame_84(){
__setProp___id2__btn_loadGame_Layer1_1();
}
function __setProp___id2__btn_loadGame_Layer1_1(){
try {
__id2_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id2_.text = "{btn_loadgame}";
__id2_.textColor = 0xFFFFFF;
__id2_.textSize = 16;
__id2_.bold = false;
__id2_.disableWordwrap = false;
__id2_.embedFonts = true;
__id2_.font = "fnt_timesNewRoman*";
__id2_.hAlign = "center";
__id2_.multiline = false;
__id2_.vAlign = "top";
__id2_.antiAliasType = "advanced";
__id2_.glowBlur = 3;
__id2_.glowColor = 0;
__id2_.useGlowFilter = false;
__id2_.glowQuality = 2;
__id2_.glowStrength = 5;
__id2_.gridFitType = "none";
__id2_.italic = false;
__id2_.selectable = false;
__id2_.underline = false;
try {
__id2_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package kaboomBot_spillGames_NGv1_fla
Section 18
//btn_mainMenu_132 (kaboomBot_spillGames_NGv1_fla.btn_mainMenu_132)
package kaboomBot_spillGames_NGv1_fla {
import flash.display.*;
import spill.localisation.*;
public dynamic class btn_mainMenu_132 extends MovieClip {
public var __id20_:LocalizedTextField;
public function btn_mainMenu_132(){
addFrameScript(0, frame1);
__setProp___id20__btn_mainMenu_text_1();
}
function __setProp___id20__btn_mainMenu_text_1(){
try {
__id20_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id20_.text = "{btn_mainmenu}";
__id20_.textColor = 0xFFFFFF;
__id20_.textSize = 25;
__id20_.bold = false;
__id20_.disableWordwrap = false;
__id20_.embedFonts = true;
__id20_.font = "fnt_timesNewRoman*";
__id20_.hAlign = "left";
__id20_.multiline = false;
__id20_.vAlign = "top";
__id20_.antiAliasType = "advanced";
__id20_.glowBlur = 3;
__id20_.glowColor = 0;
__id20_.useGlowFilter = false;
__id20_.glowQuality = 2;
__id20_.glowStrength = 5;
__id20_.gridFitType = "none";
__id20_.italic = false;
__id20_.selectable = false;
__id20_.underline = false;
try {
__id20_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function frame1(){
}
}
}//package kaboomBot_spillGames_NGv1_fla
Section 19
//btn_moreGames_86 (kaboomBot_spillGames_NGv1_fla.btn_moreGames_86)
package kaboomBot_spillGames_NGv1_fla {
import flash.display.*;
import spill.localisation.*;
public dynamic class btn_moreGames_86 extends MovieClip {
public var __id4_:LocalizedTextField;
public function btn_moreGames_86(){
__setProp___id4__btn_moreGames_Layer1_1();
}
function __setProp___id4__btn_moreGames_Layer1_1(){
try {
__id4_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id4_.text = "{btn_moregames}";
__id4_.textColor = 0xFFFFFF;
__id4_.textSize = 14;
__id4_.bold = false;
__id4_.disableWordwrap = false;
__id4_.embedFonts = true;
__id4_.font = "Planet N";
__id4_.hAlign = "center";
__id4_.multiline = false;
__id4_.vAlign = "top";
__id4_.antiAliasType = "advanced";
__id4_.glowBlur = 3;
__id4_.glowColor = 0;
__id4_.useGlowFilter = false;
__id4_.glowQuality = 2;
__id4_.glowStrength = 5;
__id4_.gridFitType = "none";
__id4_.italic = false;
__id4_.selectable = false;
__id4_.underline = false;
try {
__id4_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package kaboomBot_spillGames_NGv1_fla
Section 20
//btn_musicToggle_92 (kaboomBot_spillGames_NGv1_fla.btn_musicToggle_92)
package kaboomBot_spillGames_NGv1_fla {
import flash.display.*;
import flash.text.*;
import spill.localisation.*;
public dynamic class btn_musicToggle_92 extends MovieClip {
public var titleDefinition_txt:TextField;
public var __id9_:LocalizedTextField;
public function btn_musicToggle_92(){
__setProp___id9__btn_musicToggle_Layer1_1();
}
function __setProp___id9__btn_musicToggle_Layer1_1(){
try {
__id9_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id9_.text = "{btn_music}";
__id9_.textColor = 0xFFFFFF;
__id9_.textSize = 14;
__id9_.bold = false;
__id9_.disableWordwrap = false;
__id9_.embedFonts = true;
__id9_.font = "fnt_timesNewRoman*";
__id9_.hAlign = "center";
__id9_.multiline = false;
__id9_.vAlign = "top";
__id9_.antiAliasType = "advanced";
__id9_.glowBlur = 3;
__id9_.glowColor = 0;
__id9_.useGlowFilter = false;
__id9_.glowQuality = 2;
__id9_.glowStrength = 5;
__id9_.gridFitType = "none";
__id9_.italic = false;
__id9_.selectable = false;
__id9_.underline = false;
try {
__id9_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package kaboomBot_spillGames_NGv1_fla
Section 21
//btn_newGame_83 (kaboomBot_spillGames_NGv1_fla.btn_newGame_83)
package kaboomBot_spillGames_NGv1_fla {
import flash.display.*;
import spill.localisation.*;
public dynamic class btn_newGame_83 extends MovieClip {
public var __id1_:LocalizedTextField;
public function btn_newGame_83(){
__setProp___id1__btn_newGame_Layer1_1();
}
function __setProp___id1__btn_newGame_Layer1_1(){
try {
__id1_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id1_.text = "{btn_newgame}";
__id1_.textColor = 0xFFFFFF;
__id1_.textSize = 16;
__id1_.bold = false;
__id1_.disableWordwrap = false;
__id1_.embedFonts = true;
__id1_.font = "fnt_timesNewRoman*";
__id1_.hAlign = "center";
__id1_.multiline = false;
__id1_.vAlign = "top";
__id1_.antiAliasType = "advanced";
__id1_.glowBlur = 3;
__id1_.glowColor = 0;
__id1_.useGlowFilter = false;
__id1_.glowQuality = 2;
__id1_.glowStrength = 5;
__id1_.gridFitType = "none";
__id1_.italic = false;
__id1_.selectable = false;
__id1_.underline = false;
try {
__id1_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package kaboomBot_spillGames_NGv1_fla
Section 22
//btn_newGameNo_89 (kaboomBot_spillGames_NGv1_fla.btn_newGameNo_89)
package kaboomBot_spillGames_NGv1_fla {
import flash.display.*;
import spill.localisation.*;
public dynamic class btn_newGameNo_89 extends MovieClip {
public var __id6_:LocalizedTextField;
public function btn_newGameNo_89(){
__setProp___id6__btn_newGameNo_Layer1_1();
}
function __setProp___id6__btn_newGameNo_Layer1_1(){
try {
__id6_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id6_.text = "{btn_no}";
__id6_.textColor = 0xFFFFFF;
__id6_.textSize = 16;
__id6_.bold = false;
__id6_.disableWordwrap = false;
__id6_.embedFonts = true;
__id6_.font = "fnt_timesNewRoman*";
__id6_.hAlign = "center";
__id6_.multiline = false;
__id6_.vAlign = "top";
__id6_.antiAliasType = "advanced";
__id6_.glowBlur = 3;
__id6_.glowColor = 0;
__id6_.useGlowFilter = false;
__id6_.glowQuality = 2;
__id6_.glowStrength = 5;
__id6_.gridFitType = "none";
__id6_.italic = false;
__id6_.selectable = false;
__id6_.underline = false;
try {
__id6_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package kaboomBot_spillGames_NGv1_fla
Section 23
//btn_newGameYes_88 (kaboomBot_spillGames_NGv1_fla.btn_newGameYes_88)
package kaboomBot_spillGames_NGv1_fla {
import flash.display.*;
import spill.localisation.*;
public dynamic class btn_newGameYes_88 extends MovieClip {
public var __id5_:LocalizedTextField;
public function btn_newGameYes_88(){
__setProp___id5__btn_newGameYes_Layer1_1();
}
function __setProp___id5__btn_newGameYes_Layer1_1(){
try {
__id5_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id5_.text = "{btn_yes}";
__id5_.textColor = 0xFFFFFF;
__id5_.textSize = 16;
__id5_.bold = false;
__id5_.disableWordwrap = false;
__id5_.embedFonts = true;
__id5_.font = "fnt_timesNewRoman*";
__id5_.hAlign = "center";
__id5_.multiline = false;
__id5_.vAlign = "top";
__id5_.antiAliasType = "advanced";
__id5_.glowBlur = 3;
__id5_.glowColor = 0;
__id5_.useGlowFilter = false;
__id5_.glowQuality = 2;
__id5_.glowStrength = 5;
__id5_.gridFitType = "none";
__id5_.italic = false;
__id5_.selectable = false;
__id5_.underline = false;
try {
__id5_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package kaboomBot_spillGames_NGv1_fla
Section 24
//btn_postLevelMainMenu_206 (kaboomBot_spillGames_NGv1_fla.btn_postLevelMainMenu_206)
package kaboomBot_spillGames_NGv1_fla {
import flash.display.*;
import spill.localisation.*;
public dynamic class btn_postLevelMainMenu_206 extends MovieClip {
public var __id30_:LocalizedTextField;
public function btn_postLevelMainMenu_206(){
__setProp___id30__btn_postLevelMainMenu_Layer1_1();
}
function __setProp___id30__btn_postLevelMainMenu_Layer1_1(){
try {
__id30_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id30_.text = "{btn_mainmenu}";
__id30_.textColor = 0xFFFFFF;
__id30_.textSize = 25;
__id30_.bold = false;
__id30_.disableWordwrap = false;
__id30_.embedFonts = true;
__id30_.font = "fnt_timesNewRoman*";
__id30_.hAlign = "center";
__id30_.multiline = false;
__id30_.vAlign = "top";
__id30_.antiAliasType = "advanced";
__id30_.glowBlur = 3;
__id30_.glowColor = 0;
__id30_.useGlowFilter = false;
__id30_.glowQuality = 2;
__id30_.glowStrength = 5;
__id30_.gridFitType = "none";
__id30_.italic = false;
__id30_.selectable = false;
__id30_.underline = false;
try {
__id30_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package kaboomBot_spillGames_NGv1_fla
Section 25
//btn_start_121 (kaboomBot_spillGames_NGv1_fla.btn_start_121)
package kaboomBot_spillGames_NGv1_fla {
import flash.display.*;
import spill.localisation.*;
public dynamic class btn_start_121 extends MovieClip {
public var __id12_:LocalizedTextField;
public function btn_start_121(){
__setProp___id12__btn_start_text_1();
}
function __setProp___id12__btn_start_text_1(){
try {
__id12_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id12_.text = "{btn_start}";
__id12_.textColor = 0xFFFFFF;
__id12_.textSize = 25;
__id12_.bold = false;
__id12_.disableWordwrap = false;
__id12_.embedFonts = true;
__id12_.font = "fnt_timesNewRoman*";
__id12_.hAlign = "center";
__id12_.multiline = false;
__id12_.vAlign = "top";
__id12_.antiAliasType = "advanced";
__id12_.glowBlur = 3;
__id12_.glowColor = 0;
__id12_.useGlowFilter = false;
__id12_.glowQuality = 2;
__id12_.glowStrength = 5;
__id12_.gridFitType = "none";
__id12_.italic = false;
__id12_.selectable = false;
__id12_.underline = false;
try {
__id12_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package kaboomBot_spillGames_NGv1_fla
Section 26
//btn_start1_77 (kaboomBot_spillGames_NGv1_fla.btn_start1_77)
package kaboomBot_spillGames_NGv1_fla {
import flash.display.*;
import spill.localisation.*;
public dynamic class btn_start1_77 extends MovieClip {
public var __id0_:LocalizedTextField;
public function btn_start1_77(){
__setProp___id0__btn_start1_text_1();
}
function __setProp___id0__btn_start1_text_1(){
try {
__id0_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id0_.text = "{btn_play}";
__id0_.textColor = 0xFFFFFF;
__id0_.textSize = 25;
__id0_.bold = false;
__id0_.disableWordwrap = false;
__id0_.embedFonts = true;
__id0_.font = "fnt_timesNewRoman*";
__id0_.hAlign = "center";
__id0_.multiline = false;
__id0_.vAlign = "top";
__id0_.antiAliasType = "advanced";
__id0_.glowBlur = 3;
__id0_.glowColor = 0;
__id0_.useGlowFilter = false;
__id0_.glowQuality = 2;
__id0_.glowStrength = 5;
__id0_.gridFitType = "none";
__id0_.italic = false;
__id0_.selectable = false;
__id0_.underline = false;
try {
__id0_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package kaboomBot_spillGames_NGv1_fla
Section 27
//btn_submitScore_205 (kaboomBot_spillGames_NGv1_fla.btn_submitScore_205)
package kaboomBot_spillGames_NGv1_fla {
import flash.display.*;
import spill.localisation.*;
public dynamic class btn_submitScore_205 extends MovieClip {
public var __id29_:LocalizedTextField;
public function btn_submitScore_205(){
__setProp___id29__btn_submitScore_Layer1_1();
}
function __setProp___id29__btn_submitScore_Layer1_1(){
try {
__id29_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id29_.text = "{btn_submit}";
__id29_.textColor = 0xFFFFFF;
__id29_.textSize = 25;
__id29_.bold = false;
__id29_.disableWordwrap = false;
__id29_.embedFonts = true;
__id29_.font = "fnt_timesNewRoman*";
__id29_.hAlign = "center";
__id29_.multiline = false;
__id29_.vAlign = "top";
__id29_.antiAliasType = "advanced";
__id29_.glowBlur = 3;
__id29_.glowColor = 0;
__id29_.useGlowFilter = false;
__id29_.glowQuality = 2;
__id29_.glowStrength = 5;
__id29_.gridFitType = "none";
__id29_.italic = false;
__id29_.selectable = false;
__id29_.underline = false;
try {
__id29_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package kaboomBot_spillGames_NGv1_fla
Section 28
//flag_icon_213 (kaboomBot_spillGames_NGv1_fla.flag_icon_213)
package kaboomBot_spillGames_NGv1_fla {
import flash.display.*;
public dynamic class flag_icon_213 extends MovieClip {
public function flag_icon_213(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package kaboomBot_spillGames_NGv1_fla
Section 29
//l_br_215 (kaboomBot_spillGames_NGv1_fla.l_br_215)
package kaboomBot_spillGames_NGv1_fla {
import flash.display.*;
import flash.text.*;
public dynamic class l_br_215 extends MovieClip {
public var text:TextField;
public var flag:MovieClip;
}
}//package kaboomBot_spillGames_NGv1_fla
Section 30
//MainTimeline (kaboomBot_spillGames_NGv1_fla.MainTimeline)
package kaboomBot_spillGames_NGv1_fla {
import flash.geom.*;
import flash.display.*;
import flash.xml.*;
import flash.text.*;
import flash.events.*;
import spill.localisation.*;
import caurina.transitions.*;
import com.spilgames.api.*;
import flash.media.*;
import com.scoreplug.graphics.*;
import flash.utils.*;
import flash.net.*;
import flash.ui.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.printing.*;
public dynamic class MainTimeline extends MovieClip {
public var lvl3_promptOrigXpos:Number;
public var lvl6_controllerPad_mc:MovieClip;
public var moreGames_btn:MovieClip;
public var lvl14_promptOrigXpos:Number;
public var t_txt:TextField;
public var lvl7_state:String;
public var lvl16_state:String;
public var c1:MovieClip;
public var c3:MovieClip;
public var level_mc:MovieClip;
public var c5:MovieClip;
public var c6:MovieClip;
public var c7:MovieClip;
public var c8:MovieClip;
public var c2:MovieClip;
public var lvl3_controllerDroneOrigYpos:Number;
public var __id18_:LocalizedTextField;
public var lvl13_controllerDroneOrigXpos:Number;
public var award7Des:String;
public var c4:MovieClip;
public var award1_mc:MovieClip;
public var lvl17_controllerDroneOrigXpos:Number;
public var btn_spil:SpilGamesLink;
public var lvl12_promptOrigXpos:Number;
public var c9:MovieClip;
public var lvl8_controllerPad_mc:MovieClip;
public var lvl1_promptOrigXpos:Number;
public var PLmainMenu_btn:MovieClip;
public var mainMenu_btn:MovieClip;
public var awards_btn:MovieClip;
public var lvl11_controllerPad_mc:MovieClip;
public var highscores_btn:MovieClip;
public var xmlData:XML;
public var btn_moregamesat:BrandingLogo;
public var i:int;
public var explodeSnd2:Sound;
public var __setPropDict:Dictionary;
public var lvl7_controllerDroneOrigYpos:Number;
public var kaboomBot_so:SharedObject;
public var preloader:ContainerPreloader;
public var awardBack_btn:MovieClip;
public var explodeSnd1:Sound;
public var lvl10_state:String;
public var award8Des:String;
public var lvl13_controllerPad_mc:MovieClip;
public var lvl13_controllerDroneOrigYpos:Number;
public var lvl1_state:String;
public var award2_mc:MovieClip;
public var award4_Name:String;
public var lvl20_controllerDroneOrigXpos:Number;
public var lvl17_controllerDroneOrigYpos:Number;
public var newGamePrompt_mc:MovieClip;
public var explodeSnd:Sound;
public var lvl8_controllerDroneOrigXpos:Number;
public var lvl20_controllerDroneOrigYpos:Number;
public var lvl4_controllerDroneOrigXpos:Number;
public var lvl15_controllerPad_mc:MovieClip;
public var lvl15_state:String;
public var lvl6_state:String;
public var award9Des:String;
public var award3_mc:MovieClip;
public var fader_mc:MovieClip;
public var award5_Name:String;
public var lvl17_controllerPad_mc:MovieClip;
public var lvl10_promptOrigXpos:Number;
public var lvl4_controllerDroneOrigYpos:Number;
public var lvl8_controllerDroneOrigYpos:Number;
public var award10Des:String;
public var proceedNextLevelCounter;
public var lvl10_controllerDroneOrigXpos:Number;
public var lvl14_controllerDroneOrigXpos:Number;
public var lvl18_controllerDroneOrigXpos:Number;
public var lvl8_promptOrigXpos:Number;
public var lvl19_controllerPad_mc:MovieClip;
public var lvl19_promptOrigXpos:Number;
public var award4_mc:MovieClip;
public var lvl1_controllerPad_mc:MovieClip;
public var lvl20_state:String;
public var lvl6_promptOrigXpos:Number;
public var titlebg1Snd:Sound;
public var lvl14_state:String;
public var fontList:Array;
public var lvl14_controllerDroneOrigYpos:Number;
public var lvl17_promptOrigXpos:Number;
public var lvl10_controllerDroneOrigYpos:Number;
public var titleChar_mc:MovieClip;
public var lvl18_controllerDroneOrigYpos:Number;
public var lvl3_controllerPad_mc:MovieClip;
public var start2_btn:MovieClip;
public var award6_Name:String;
public var musicCode:Number;
public var award5_mc:MovieClip;
public var c10:MovieClip;
public var c11:MovieClip;
public var c13:MovieClip;
public var c15:MovieClip;
public var c16:MovieClip;
public var c17:MovieClip;
public var c18:MovieClip;
public var c14:MovieClip;
public var bestScore_txt:TextField;
public var lvl1_controllerDroneOrigXpos:Number;
public var lvl9_controllerDroneOrigXpos:Number;
public var c19:MovieClip;
public var c12:MovieClip;
public var lvl5_controllerDroneOrigXpos:Number;
public var lvl4_promptOrigXpos:Number;
public var c20:MovieClip;
public var lvl19_state:String;
public var lvl15_promptOrigXpos:Number;
public var lvl5_controllerPad_mc:MovieClip;
public var lvl5_state:String;
public var submitScore_btn:MovieClip;
public var titleDefinition_txt:TextField;
public var attempt_txt:TextField;
public var gamePlayDuration:Number;
public var award1Des:String;
public var lvl2_promptOrigXpos:Number;
public var award6_mc:MovieClip;
public var lvl13_promptOrigXpos:Number;
public var music:String;
public var lvl7_controllerPad_mc:MovieClip;
public var start1_btn:MovieClip;
public var lvl1_controllerDroneOrigYpos:Number;
public var lvl9_controllerDroneOrigYpos:Number;
public var smokeArray:Array;
public var lvl5_controllerDroneOrigYpos:Number;
public var lvl10_controllerPad_mc:MovieClip;
public var lvl11_controllerDroneOrigXpos:Number;
public var trackPlayDurationTmr:Timer;
public var lvl19_controllerDroneOrigXpos:Number;
public var newGame_btn:MovieClip;
public var award7_Name:String;
public var lvl15_controllerDroneOrigXpos:Number;
public var award2Des:String;
public var myContextMenu:ContextMenu;
public var curtain_mc:MovieClip;
public var lvl11_promptOrigXpos:Number;
public var lvl9_controllerPad_mc:MovieClip;
public var lvl13_state:String;
public var lvl12_controllerPad_mc:MovieClip;
public var award7_mc:MovieClip;
public var lvl4_state:String;
public var lvl20_promptOrigXpos:Number;
public var award1_Name:String;
public var lvl11_controllerDroneOrigYpos:Number;
public var lvl15_controllerDroneOrigYpos:Number;
public var lvl19_controllerDroneOrigYpos:Number;
public var lvl9_state:String;
public var lvl18_state:String;
public var lvl14_controllerPad_mc:MovieClip;
public var cheatPrompt_mc:MovieClip;
public var lvl2_controllerDroneOrigXpos:Number;
public var award3Des:String;
public var attempt:Number;
public var lvl6_controllerDroneOrigXpos:Number;
public var award8_mc:MovieClip;
public var award8_Name:String;
public var lvl16_controllerPad_mc:MovieClip;
public var back_btn:MovieClip;
public var lvl12_state:String;
public var award4Des:String;
public var lvl2_controllerDroneOrigYpos:Number;
public var lvl6_controllerDroneOrigYpos:Number;
public var lvl9_promptOrigXpos:Number;
public var titleLogo_mc:MovieClip;
public var level_txt:TextField;
public var award9_mc:MovieClip;
public var lvl18_controllerPad_mc:MovieClip;
public var award2_Name:String;
public var lvl12_controllerDroneOrigXpos:Number;
public var __id10_:LocalizedTextField;
public var proceedPostLevelTimerObj:Timer;
public var lvl3_state:String;
public var new_txt:MovieClip;
public var _spilGamesServices:SpilGamesServices;
public var lvl16_controllerDroneOrigXpos:Number;
public var proceedPostLevelCounter;
public var lvl8_state:String;
public var lvl7_promptOrigXpos:Number;
public var lvl18_promptOrigXpos:Number;
public var award10_mc:MovieClip;
public var latestScore_txt:TextField;
public var award5Des:String;
public var lvl17_state:String;
public var level:Number;
public var lvl2_controllerPad_mc:MovieClip;
public var collisiondetection:Collision;
public var loadGame_btn:MovieClip;
public var lvl16_controllerDroneOrigYpos:Number;
public var award9_Name:String;
public var lvl12_controllerDroneOrigYpos:Number;
public var lvl5_promptOrigXpos:Number;
public var lvl16_promptOrigXpos:Number;
public var __id26_:LocalizedTextField;
public var lvl4_controllerPad_mc:MovieClip;
public var award10_Name:String;
public var lvl3_controllerDroneOrigXpos:Number;
public var proceedNextLevelTimerObj:Timer;
public var lvl7_controllerDroneOrigXpos:Number;
public var award6Des:String;
public var award3_Name:String;
public var lvl2_state:String;
public var lvl11_state:String;
public var keyIsPressed:String;
public var lvl20_controllerPad_mc:MovieClip;
public function MainTimeline(){
__setPropDict = new Dictionary(true);
super();
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8, 8, frame9, 9, frame10, 10, frame11, 11, frame12, 12, frame13, 13, frame14, 14, frame15, 15, frame16, 16, frame17, 17, frame18, 18, frame19, 19, frame20, 20, frame21, 21, frame22, 22, frame23, 23, frame24, 24, frame25, 25, frame26, 26, frame27);
}
public function lvl14_errorMove(){
screenShake();
t_txt.text = "hit";
Mouse.show();
lvl14_state = "passive";
lvl14_controllerPad_mc.controllerDrone_mc.x = lvl14_controllerDroneOrigXpos;
lvl14_controllerPad_mc.controllerDrone_mc.y = lvl14_controllerDroneOrigYpos;
lvl14_controllerPad_mc.prompt_mc.x = lvl14_promptOrigXpos;
level_mc.bot_mc.x = lvl14_controllerPad_mc.controllerDrone_mc.x;
level_mc.bot_mc.y = lvl14_controllerPad_mc.controllerDrone_mc.y;
lvl14_controllerPad_mc.controllerDrone_mc.addEventListener(MouseEvent.MOUSE_OVER, lvl14_start);
}
public function mainMenuButton(_arg1:MovieClip, _arg2:String){
var movr:Function;
var mout:Function;
var clck:Function;
var btn = _arg1;
var whereTo = _arg2;
movr = function (_arg1:MouseEvent){
};
mout = function (_arg1:MouseEvent){
};
clck = function (_arg1:MouseEvent){
switch (level){
case 1:
lvl1_state = "passive";
stage.removeEventListener(Event.ENTER_FRAME, lvl1_Looper);
break;
case 2:
lvl2_state = "passive";
stage.removeEventListener(Event.ENTER_FRAME, lvl2_Looper);
break;
case 3:
lvl3_state = "passive";
stage.removeEventListener(Event.ENTER_FRAME, lvl3_Looper);
break;
case 4:
lvl4_state = "passive";
stage.removeEventListener(Event.ENTER_FRAME, lvl4_Looper);
break;
case 5:
lvl5_state = "passive";
stage.removeEventListener(Event.ENTER_FRAME, lvl5_Looper);
break;
case 6:
lvl6_state = "passive";
stage.removeEventListener(Event.ENTER_FRAME, lvl6_Looper);
break;
case 7:
lvl7_state = "passive";
stage.removeEventListener(Event.ENTER_FRAME, lvl7_Looper);
break;
case 8:
lvl8_state = "passive";
stage.removeEventListener(Event.ENTER_FRAME, lvl8_Looper);
break;
case 9:
lvl9_state = "passive";
stage.removeEventListener(Event.ENTER_FRAME, lvl9_Looper);
break;
case 10:
lvl10_state = "passive";
stage.removeEventListener(Event.ENTER_FRAME, lvl10_Looper);
break;
case 11:
lvl11_state = "passive";
stage.removeEventListener(Event.ENTER_FRAME, lvl11_Looper);
break;
case 12:
lvl12_state = "passive";
stage.removeEventListener(Event.ENTER_FRAME, lvl12_Looper);
break;
case 13:
lvl13_state = "passive";
stage.removeEventListener(Event.ENTER_FRAME, lvl13_Looper);
break;
case 14:
lvl14_state = "passive";
stage.removeEventListener(Event.ENTER_FRAME, lvl14_Looper);
break;
case 15:
lvl15_state = "passive";
stage.removeEventListener(Event.ENTER_FRAME, lvl15_Looper);
break;
case 16:
lvl16_state = "passive";
stage.removeEventListener(Event.ENTER_FRAME, lvl16_Looper);
break;
case 17:
lvl17_state = "passive";
stage.removeEventListener(Event.ENTER_FRAME, lvl17_Looper);
break;
case 18:
lvl18_state = "passive";
stage.removeEventListener(Event.ENTER_FRAME, lvl18_Looper);
break;
case 19:
lvl19_state = "passive";
stage.removeEventListener(Event.ENTER_FRAME, lvl19_Looper);
break;
case 20:
lvl20_state = "passive";
stage.removeEventListener(Event.ENTER_FRAME, lvl20_Looper);
break;
};
endLevelCleanUpArray(smokeArray);
trace(("click" + smokeArray.length));
gotoAndStop(whereTo);
};
btn.buttonMode = true;
btn.addEventListener(MouseEvent.MOUSE_OVER, movr);
btn.addEventListener(MouseEvent.MOUSE_OUT, mout);
btn.addEventListener(MouseEvent.CLICK, clck);
}
public function lvl9_errorMove(){
screenShake();
t_txt.text = "hit";
Mouse.show();
lvl9_state = "passive";
lvl9_controllerPad_mc.controllerDrone_mc.x = lvl9_controllerDroneOrigXpos;
lvl9_controllerPad_mc.controllerDrone_mc.y = lvl9_controllerDroneOrigYpos;
lvl9_controllerPad_mc.prompt_mc.x = lvl9_promptOrigXpos;
level_mc.bot_mc.x = lvl9_controllerPad_mc.controllerDrone_mc.x;
level_mc.bot_mc.y = lvl9_controllerPad_mc.controllerDrone_mc.y;
lvl9_controllerPad_mc.controllerDrone_mc.addEventListener(MouseEvent.MOUSE_OVER, lvl9_start);
}
public function onServicesReady(_arg1:Event):void{
}
function frame10(){
if ((((__setPropDict[__id26_] == undefined)) || (!((((int(__setPropDict[__id26_]) >= 6)) && ((int(__setPropDict[__id26_]) <= 25))))))){
__setPropDict[__id26_] = currentFrame;
__setProp___id26__main_ui_6();
};
if ((((__setPropDict[__id18_] == undefined)) || (!((((int(__setPropDict[__id18_]) >= 6)) && ((int(__setPropDict[__id18_]) <= 25))))))){
__setPropDict[__id18_] = currentFrame;
__setProp___id18__main_controlBGandlevel_6();
};
stop();
trace(("new" + smokeArray.length));
slideOutCurtain();
lvl5_state = "passive";
lvl5_controllerDroneOrigXpos = lvl5_controllerPad_mc.controllerDrone_mc.x;
lvl5_controllerDroneOrigYpos = lvl5_controllerPad_mc.controllerDrone_mc.y;
lvl5_promptOrigXpos = lvl5_controllerPad_mc.prompt_mc.x;
lvl5_controllerPad_mc.controllerDrone_mc.addEventListener(MouseEvent.MOUSE_OVER, lvl5_start);
stage.addEventListener(Event.ENTER_FRAME, lvl5_Looper);
}
function frame11(){
if ((((__setPropDict[__id26_] == undefined)) || (!((((int(__setPropDict[__id26_]) >= 6)) && ((int(__setPropDict[__id26_]) <= 25))))))){
__setPropDict[__id26_] = currentFrame;
__setProp___id26__main_ui_6();
};
if ((((__setPropDict[__id18_] == undefined)) || (!((((int(__setPropDict[__id18_]) >= 6)) && ((int(__setPropDict[__id18_]) <= 25))))))){
__setPropDict[__id18_] = currentFrame;
__setProp___id18__main_controlBGandlevel_6();
};
stop();
slideOutCurtain();
lvl6_state = "passive";
lvl6_controllerDroneOrigXpos = lvl6_controllerPad_mc.controllerDrone_mc.x;
lvl6_controllerDroneOrigYpos = lvl6_controllerPad_mc.controllerDrone_mc.y;
lvl6_promptOrigXpos = lvl6_controllerPad_mc.prompt_mc.x;
lvl6_controllerPad_mc.controllerDrone_mc.addEventListener(MouseEvent.MOUSE_OVER, lvl6_start);
stage.addEventListener(Event.ENTER_FRAME, lvl6_Looper);
}
function frame16(){
if ((((__setPropDict[__id26_] == undefined)) || (!((((int(__setPropDict[__id26_]) >= 6)) && ((int(__setPropDict[__id26_]) <= 25))))))){
__setPropDict[__id26_] = currentFrame;
__setProp___id26__main_ui_6();
};
if ((((__setPropDict[__id18_] == undefined)) || (!((((int(__setPropDict[__id18_]) >= 6)) && ((int(__setPropDict[__id18_]) <= 25))))))){
__setPropDict[__id18_] = currentFrame;
__setProp___id18__main_controlBGandlevel_6();
};
stop();
slideOutCurtain();
lvl11_state = "passive";
lvl11_controllerDroneOrigXpos = lvl11_controllerPad_mc.controllerDrone_mc.x;
lvl11_controllerDroneOrigYpos = lvl11_controllerPad_mc.controllerDrone_mc.y;
lvl11_promptOrigXpos = lvl11_controllerPad_mc.prompt_mc.x;
lvl11_controllerPad_mc.controllerDrone_mc.addEventListener(MouseEvent.MOUSE_OVER, lvl11_start);
stage.addEventListener(Event.ENTER_FRAME, lvl11_Looper);
}
public function lvl12_Looper(_arg1:Event){
var _local2:Point;
var _local3:Point;
attSmoke();
instanceLooper(smokeArray);
if (lvl12_state == "running"){
_local2 = new Point(mouseX, mouseY);
_local3 = lvl12_controllerPad_mc.globalToLocal(_local2);
lvl12_controllerPad_mc.controllerDrone_mc.x = _local3.x;
lvl12_controllerPad_mc.controllerDrone_mc.y = _local3.y;
level_mc.bot_mc.x = lvl12_controllerPad_mc.controllerDrone_mc.x;
level_mc.bot_mc.y = lvl12_controllerPad_mc.controllerDrone_mc.y;
if (collisiondetection.isColliding(level_mc.bot_mc, level_mc.wall_mc) == true){
lvl12_errorMove();
} else {
if (collisiondetection.isColliding(level_mc.bot_mc, level_mc.target_mc) == true){
screenShake();
lvl12_state = "passive";
level_mc.target_mc.x = 10000;
level_mc.bot_mc.alpha = 0;
levelUpdate();
proceedNextLevelTimerObj.start();
Mouse.show();
stage.removeEventListener(Event.ENTER_FRAME, lvl12_Looper);
} else {
t_txt.text = "no";
};
};
};
}
function frame4(){
if ((((__setPropDict[__id10_] == undefined)) || (!((int(__setPropDict[__id10_]) == 4))))){
__setPropDict[__id10_] = currentFrame;
__setProp___id10__main_ui_4();
};
stop();
fader_mc.gotoAndPlay(2);
initTitle();
firstTimeAward();
titleNavButton(start1_btn, "howTo");
titleNavButton(newGame_btn, "");
titleNavButton(loadGame_btn, "howTo");
titleNavButton(newGamePrompt_mc.yes_btn, "howTo");
titleNavButton(newGamePrompt_mc.no_btn, "");
titleNavButton(awards_btn, "awards");
cheatButton(c1, "level1", 1);
cheatButton(c2, "level2", 2);
cheatButton(c3, "level3", 3);
cheatButton(c4, "level4", 4);
cheatButton(c5, "level5", 5);
cheatButton(c6, "level6", 6);
cheatButton(c7, "level7", 7);
cheatButton(c8, "level8", 8);
cheatButton(c9, "level9", 9);
cheatButton(c10, "level10", 10);
cheatButton(c11, "level11", 11);
cheatButton(c12, "level12", 12);
cheatButton(c13, "level13", 13);
cheatButton(c14, "level14", 14);
cheatButton(c15, "level15", 15);
cheatButton(c16, "level16", 16);
cheatButton(c17, "level17", 17);
cheatButton(c18, "level18", 18);
cheatButton(c19, "level19", 19);
cheatButton(c20, "level20", 20);
btn_spil.addEventListener(MouseEvent.CLICK, handle_btnSpil);
moreGames_btn.addEventListener(MouseEvent.CLICK, handle_btnMoreGames);
btn_moregamesat.buttonMode = true;
btn_moregamesat.mouseEnabled = true;
btn_moregamesat.addEventListener(MouseEvent.CLICK, handle_btnMoreGames);
}
public function lvl17_errorMove(){
screenShake();
t_txt.text = "hit";
Mouse.show();
lvl17_state = "passive";
lvl17_controllerPad_mc.controllerDrone_mc.x = lvl17_controllerDroneOrigXpos;
lvl17_controllerPad_mc.controllerDrone_mc.y = lvl17_controllerDroneOrigYpos;
lvl17_controllerPad_mc.prompt_mc.x = lvl17_promptOrigXpos;
level_mc.bot_mc.x = lvl17_controllerPad_mc.controllerDrone_mc.x;
level_mc.bot_mc.y = lvl17_controllerPad_mc.controllerDrone_mc.y;
lvl17_controllerPad_mc.controllerDrone_mc.addEventListener(MouseEvent.MOUSE_OVER, lvl17_start);
}
public function lvl10_start(_arg1:MouseEvent){
Mouse.hide();
addAttempt();
lvl10_state = "running";
lvl10_controllerPad_mc.prompt_mc.x = -2000;
lvl10_controllerPad_mc.controllerDrone_mc.removeEventListener(MouseEvent.MOUSE_OVER, lvl10_start);
}
function frame2(){
stage.frameRate = 45;
musicCode = 0;
music = "on";
titlebg1Snd = new GameBGSnd();
playTitleBGSnd();
explodeSnd = new ExplodeSnd();
explodeSnd1 = new ExplodeSnd1();
explodeSnd2 = new ExplodeSnd2();
}
public function lvl1_Looper(_arg1:Event){
var _local2:Point;
var _local3:Point;
attSmoke();
instanceLooper(smokeArray);
if (lvl1_state == "running"){
_local2 = new Point(mouseX, mouseY);
_local3 = lvl1_controllerPad_mc.globalToLocal(_local2);
lvl1_controllerPad_mc.controllerDrone_mc.x = _local3.x;
lvl1_controllerPad_mc.controllerDrone_mc.y = _local3.y;
level_mc.bot_mc.x = lvl1_controllerPad_mc.controllerDrone_mc.x;
level_mc.bot_mc.y = lvl1_controllerPad_mc.controllerDrone_mc.y;
if (collisiondetection.isColliding(level_mc.bot_mc, level_mc.wall_mc) == true){
lvl1_errorMove();
} else {
if (collisiondetection.isColliding(level_mc.bot_mc, level_mc.target_mc) == true){
screenShake();
lvl1_state = "passive";
level_mc.target_mc.x = 10000;
level_mc.bot_mc.alpha = 0;
levelUpdate();
proceedNextLevelTimerObj.start();
Mouse.show();
stage.removeEventListener(Event.ENTER_FRAME, lvl1_Looper);
} else {
t_txt.text = "no";
};
};
};
}
public function lvl1_start(_arg1:MouseEvent){
Mouse.hide();
addAttempt();
lvl1_state = "running";
lvl1_controllerPad_mc.prompt_mc.x = -2000;
lvl1_controllerPad_mc.controllerDrone_mc.removeEventListener(MouseEvent.MOUSE_OVER, lvl1_start);
}
function frame23(){
if ((((__setPropDict[__id26_] == undefined)) || (!((((int(__setPropDict[__id26_]) >= 6)) && ((int(__setPropDict[__id26_]) <= 25))))))){
__setPropDict[__id26_] = currentFrame;
__setProp___id26__main_ui_6();
};
if ((((__setPropDict[__id18_] == undefined)) || (!((((int(__setPropDict[__id18_]) >= 6)) && ((int(__setPropDict[__id18_]) <= 25))))))){
__setPropDict[__id18_] = currentFrame;
__setProp___id18__main_controlBGandlevel_6();
};
stop();
slideOutCurtain();
lvl18_state = "passive";
lvl18_controllerDroneOrigXpos = lvl18_controllerPad_mc.controllerDrone_mc.x;
lvl18_controllerDroneOrigYpos = lvl18_controllerPad_mc.controllerDrone_mc.y;
lvl18_promptOrigXpos = lvl18_controllerPad_mc.prompt_mc.x;
lvl18_controllerPad_mc.controllerDrone_mc.addEventListener(MouseEvent.MOUSE_OVER, lvl18_start);
stage.addEventListener(Event.ENTER_FRAME, lvl18_Looper);
}
function frame1(){
xmlData = <LocalisedText><textItem identifier="btn_play"><en_us>Start Game</en_us><en_uk>Start Game</en_uk><nl>Spel starten</nl><fr>Commencer le jeu</fr><de>Spiel starten</de><es>Comenzar</es><br>Começar</br><pt>Iniciar</pt><it>Inizia gioco</it><se>Starta spel</se><pl>Start</pl><ru>Начать игру</ru><id>Mulai Game</id><ar>Start Game</ar><jp>Start Game</jp><cn>Start Game</cn><es_mx>Comenzar juego</es_mx><es_ar>Iniciar juego</es_ar></textItem><textItem identifier="btn_newgame"><en_us>New Game</en_us><en_uk>New Game</en_uk><nl>Nieuw spel</nl><fr>Nouveau jeu</fr><de>Neues Spiel</de><es>Partida nueva</es><br>Novo jogo</br><pt>Novo jogo</pt><it>Nuovo gioco</it><se>Nytt spel</se><pl>Nowa gra</pl><ru>Новая игра</ru><id>Game Baru</id><ar>New Game</ar><jp>New Game</jp><cn>New Game</cn><es_mx>Nuevo juego</es_mx><es_ar>Nuevo juego</es_ar></textItem><textItem identifier="btn_loadgame"><en_us>Load Game</en_us><en_uk>Load Game</en_uk><nl>Spel laden</nl><fr>Charger le jeu</fr><de>Spiel laden</de><es>Cargar partida</es><br>Carregar jogo</br><pt>Carregar jogo</pt><it>Carica gioco</it><se>Ladda spel</se><pl>Ładuj grę</pl><ru>Продолжить</ru><id>Muatkan Game</id><ar>Load Game</ar><jp>Load Game</jp><cn>Load Game</cn><es_mx>Cargar juego</es_mx><es_ar>Cargar juego</es_ar></textItem><textItem identifier="btn_awards"><en_us>Achievements </en_us><en_uk>Achievements </en_uk><nl></nl><fr></fr><de></de><es></es><br></br><pt></pt><it></it><se></se><pl></pl><ru></ru><id></id><ar></ar><jp></jp><cn></cn><es_mx></es_mx><es_ar></es_ar></textItem><textItem identifier="btn_music"><en_us>Music</en_us><en_uk>Music</en_uk><nl>Muziek</nl><fr>Musique</fr><de>Musik</de><es>Música</es><br>Música</br><pt>Música</pt><it>Musica</it><se>Musik</se><pl>Muzyka</pl><ru>Музыка</ru><id>Musik</id><ar>Music</ar><jp>Music</jp><cn>Music</cn><es_mx>Música</es_mx><es_ar>Música</es_ar></textItem><textItem identifier="btn_moregames"><en_us>More Games</en_us><en_uk>More Games</en_uk><nl>Meer spellen</nl><fr>Plus de jeux</fr><de>Mehr Spiele</de><es>Más juegos</es><br>Mais jogos</br><pt>Mais jogos</pt><it>Più giochi</it><se>Fler spel</se><pl>Więcej gier</pl><ru>Другие игры</ru><id>Game Lainnya</id><ar>More Games</ar><jp>More Games</jp><cn>More Games</cn><es_mx>Más juegos</es_mx><es_ar>Más juegos</es_ar></textItem><textItem identifier="btn_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><es_mx>Atrás</es_mx><es_ar>Atrás</es_ar></textItem><textItem identifier="btn_start"><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>Mainkan</id><ar>Play</ar><jp>Play</jp><cn>Play</cn><es_mx>Jugar</es_mx><es_ar>Jugar</es_ar></textItem><textItem identifier="ui_howto1"><en_us>You have 2 screens: the control pad and the monitor.
Operate the bot using the control pad.
View the bot's location in the cave using the monitor.</en_us><en_uk>You have 2 screens: the control pad and the monitor.
Use the control pad to operate the bot.
Use the monitor to view the bot's location in the cave.</en_uk><nl>Je hebt 2 schermen: het besturingsscherm en de monitor.
Je bestuurt de robot in het besturingsscherm.
Op de monitor zie je waar de robot zich in de grot bevindt.</nl><fr>Il y a 2 écrans : l'écran de commande et le moniteur.
Dirige le robot à l'aide de l'écran de commande.
Regarde à quel endroit le robot se trouve dans la caverne à l'aide du moniteur.</fr><de>Du hast 2 Bildschirme: die Steuerung und den Monitor.
Bewege den Roboter mit der Steuerung.
Die Position des Roboters in der Höhle siehst du auf dem Monitor.
</de><es>Tienes dos pantallas: el panel de control y el monitor.
Controla el robot con el panel de control.
Comprueba su ubicación en la cueva con el monitor.</es><br>Você tem duas telas: painel de controle e vídeo.
Você opera o robô no painel de controle.
Você observa o robô no vídeo.</br><pt>Tens dois ecrãs: o painel de controlo e o monitor.
Opera o robô no painel de controlo.
Observa a posição do robô na cave através do monitor.</pt><it>Hai 2 schermi: il pannello di controllo ed il monitor.
Fai funzionare il robot usando il pannello di controllo.
Osserva la posizione del robot nella grotta usando il monitor.</it><se>Två skärmar: Kontrollpanel och bildskärm.
Styr roboten med kontrollpanelen.
Följ robotens position i gruvan på bildskärmen.</se><pl>Masz 2 ekrany: dżojpad i monitor. Steruj robotem przy pomocy dżojpada. Sprawdzaj lokalizację robota w jaskini używając monitora.</pl><ru>Перед тобой 2 экрана – пульт управления и монитор.
Используй пульт для управления роботом.
Следи за движением робота в шахте с помощью монитора.</ru><id>Kamu punya 2 layar, bantalan kontrol dan monitor.
Operasikan bot menggunakan bantalan kontrol.
Lihat lokasi bot dalam gua menggunakan monitor.</id><ar>You have 2 screens: the control pad and the monitor.
Operate the bot using the control pad.
View the bot's location in the cave using the monitor.</ar><jp>You have 2 screens: the control pad and the monitor.
Operate the bot using the control pad.
View the bot's location in the cave using the monitor.</jp><cn>You have 2 screens: the control pad and the monitor.
Operate the bot using the control pad.
View the bot's location in the cave using the monitor.</cn><es_mx>Tienes 2 pantallas: el panel de control y el monitor.
Opera el robot usando el panel de control.
Puedes ver la ubicación del robot en la cueva usando el monitor.</es_mx><es_ar>Tenés 2 pantallas: el panel de control y el monitor.
Manejá el robot con el panel de control.
Mirá la ubicación del robot en la cueva usando el monitor.</es_ar></textItem><textItem identifier="ui_howto2"><en_us>The red button starts the game. Use the controls to move the bot.</en_us><en_uk>The red button starts the game. Use the controls to move the bot.</en_uk><nl>Begin bij de rode knop. Gebruik het besturingsscherm om de robot te bewegen.</nl><fr>Le bouton rouge commence le jeu. Utilise les commandes pour déplacer le robot.</fr><de>Der rote Schalter startet das Spiel. Bewege den Roboter mithilfe der Steuerung.</de><es>El botón rojo es para comenzar. Mueve al robot con los controles.</es><br>O botão vermelho começa o jogo. Use os controles para mover o robô.</br><pt>O botão vermelho inicia o jogo. Use os controlos para movimentar o robô.</pt><it>Il tasto rosso avvia il gioco. Usa i comandi per guidare il robot.</it><se>Den röda knappen startar spelet. Styr roboten med kontrollerna.</se><pl>Czerwony przycisk rozpoczyna grę. Użyj klawiszy sterowania, aby poruszać robotem.</pl><ru>Используй красную кнопку, чтобы начать игру. Используй пульт для управления роботом.</ru><id>Tombol merah memulai game. Gunakan kontrol untuk menggerakkan bot.</id><ar>The red button starts the game. Use the controls to move the bot.</ar><jp>The red button starts the game. Use the controls to move the bot.</jp><cn>The red button starts the game. Use the controls to move the bot.</cn><es_mx>El botón rojo inicia el juego. Usa los controles para mover el robot.</es_mx><es_ar>El botón rojo inicia el juego. Usá los controles para mover el robot.</es_ar></textItem><textItem identifier="ui_howto3"><en_us>Your goal is to demolish obstructions in the cave.</en_us><en_uk>Your objective is to demolish obstacles in the cave.</en_uk><nl>Je doel is om obstakels in de grot te slopen.</nl><fr>Ton but est de démolir les obstacles qui se trouvent dans la caverne.</fr><de>Dein Ziel ist es, Hindernisse in der Höhle zu beseitigen.</de><es>Tu objetivo es derribar obstáculos en la cueva.</es><br>Seu objetivo é derrubar todos os obstáculos na cave.</br><pt>O teu objectivo é destruir os obstáculos na cave.</pt><it>Il tuo obiettivo è di eliminare gli ostacoli nella grotta.</it><se>Ditt mål är att riva gruvans alla hinder.</se><pl>Twoim celem jest zniszczenie zatorów w jaskini.</pl><ru>Твоя задача – взорвать все объекты, загромождающие шахту.</ru><id>Tujuanmu adalah untuk menghancurkan rintangan-rintangan dalam gua.</id><ar>Your goal is to demolish obstructions in the cave.</ar><jp>Your goal is to demolish obstructions in the cave.</jp><cn>Your goal is to demolish obstructions in the cave.</cn><es_mx>Tu meta es destruir los obstáculos en la cueva.</es_mx><es_ar>Tu objetivo es demoler las obstrucciones en la cueva.</es_ar></textItem><textItem identifier="ui_howto4"><en_us>It gets harder to control the bot the deeper you go into the cave. Be careful!</en_us><en_uk>It gets harder to control the bot the deeper you go into the cave. Be careful!</en_uk><nl>Hoe dieper je in de grot komt, hoe moeilijker de robot te besturen is. Wees voorzichtig!</nl><fr>Plus tu pénètres dans la caverne, plus il sera difficile de diriger le robot. Fais attention !</fr><de>Je tiefer du in die Höhle hineingehst, umso schwerer wird es, den Roboter zu kontrollieren. Sei vorsichtig!</de><es>Cuanto más te adentras en la cueva, más difícil es controlar el robot. ¡Cuidado!</es><br>Quanto mais você avançar na cave, mais difícil será controlar o robô. Tome cuidado!</br><pt>Quanto mais fundo estiveres na cave, mais difícil é de controlar o robô. Tem cuidado!</pt><it>Più in profondità andrai nella grotta, più difficile sarà controllare il robot. Fai attenzione!</it><se>Ju längre ner du kommer, desto svårare blir det. Var försiktig!</se><pl>Im niżej w głąb jaskini schodzisz, tym trudniej kontrolować robota. Uważaj!</pl><ru>Помни: чем глубже робот уходит под землю, тем сложнее им управлять!</ru><id>Semakin sulit untuk mengontrol bot jika semakin dalam kamu masuk ke dalam gua. Hati-hati!</id><ar>It gets harder to control the bot the deeper you go into the cave. Be careful!</ar><jp>It gets harder to control the bot the deeper you go into the cave. Be careful!</jp><cn>It gets harder to control the bot the deeper you go into the cave. Be careful!</cn><es_mx>Será más difícil controlar el robot entre más te adentres a la cueva. ¡Ten cuidado!</es_mx><es_ar>Cuidado: mientras más profundo te internás en la cueva, más difícil de controlar se vuelve el robot.</es_ar></textItem><textItem identifier="ui_attempt"><en_us>Attempt:</en_us><en_uk>Attempt:</en_uk><nl>Poging:</nl><fr>Essai :</fr><de>Versuch:</de><es>Intento:</es><br>Tentativa:</br><pt>Tentativa:</pt><it>Tentativo:</it><se>Försök:</se><pl>Próba:</pl><ru>Попытка:</ru><id>Percobaan:</id><ar>Attempt:</ar><jp>Attempt:</jp><cn>Attempt:</cn><es_mx>Intentos:</es_mx><es_ar>Intento:</es_ar></textItem><textItem identifier="ui_section"><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><es_mx>Nivel:</es_mx><es_ar>Nivel:</es_ar></textItem><textItem identifier="btn_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><es_mx>Menú principal</es_mx><es_ar>Menú principal</es_ar></textItem><textItem identifier="ui_kaboombotControlPad"><en_us>Control Pad</en_us><en_uk>Control Pad</en_uk><nl>Besturingsscherm</nl><fr>Écran de commande</fr><de>Steuerung</de><es>Panel de control</es><br>Painel de Controle</br><pt>Painel de Controlo</pt><it>Pannello di controllo</it><se>Kontrollpanel</se><pl>Dżojpad</pl><ru>Пульт</ru><id>Bantalan Kontrol</id><ar>Control Pad</ar><jp>Control Pad</jp><cn>Control Pad</cn><es_mx>Panel de control</es_mx><es_ar>Panel de control</es_ar></textItem><textItem identifier="ui_cctv"><en_us>Monitor</en_us><en_uk>Monitor</en_uk><nl>Monitor</nl><fr>Moniteur</fr><de>Monitor</de><es>Monitor</es><br>Vídeo</br><pt>Monitor</pt><it>Monitor</it><se>Bildskärm</se><pl>Monitor</pl><ru>Монитор</ru><id>Monitor</id><ar>Monitor</ar><jp>Monitor</jp><cn>Monitor</cn><es_mx>Monitor</es_mx><es_ar>Monitor</es_ar></textItem><textItem identifier="ui_place"><en_us>The red button starts the game.</en_us><en_uk>The red button starts the game.</en_uk><nl>Begin het spel bij de rode knop.</nl><fr>Le bouton rouge commence le jeu.</fr><de>Der rote Schalter startet das Spiel.</de><es>El botón rojo comienza el juego.</es><br>O botão vermelho começa o jogo.</br><pt>O botão vermelho inicia o jogo.</pt><it>Il tasto rosso avvia il gioco.</it><se>Den röda knappen startar spelet.</se><pl>Czerwony przycisk rozpoczyna grę.</pl><ru>Используй красную кнопку, чтобы начать игру.</ru><id>Tombol merah memulai game.</id><ar>The red button starts the game.</ar><jp>The red button starts the game.</jp><cn>The red button starts the game.</cn><es_mx>El botón rojo inicia el juego.</es_mx><es_ar>El botón rojo inicia el juego.</es_ar></textItem><textItem identifier="ui_new"><en_us>New</en_us><en_uk>New</en_uk><nl>Nieuw</nl><fr>Nouveau</fr><de>Neu</de><es>Nuevo</es><br>Novo</br><pt>Novo</pt><it>Nuovo</it><se>Ny</se><pl>Nowy</pl><ru>Новый</ru><id>Baru</id><ar>New</ar><jp>New</jp><cn>New</cn><es_mx>Nuevo</es_mx><es_ar>Nuevo</es_ar></textItem><textItem identifier="ui_bestscore"><en_us>High Score:</en_us><en_uk>Highscore:</en_uk><nl>Topscore:</nl><fr>Meilleur score :</fr><de>Highscore:</de><es>Puntuación máxima:</es><br>Recorde:</br><pt>Recorde:</pt><it>Punteggio più alto:</it><se>Toppoäng:</se><pl>Najlepszy wynik:</pl><ru>Рекорд:</ru><id>Skor Tertinggi:</id><ar>High Score:</ar><jp>High Score:</jp><cn>High Score:</cn><es_mx>Puntaje alto:</es_mx><es_ar>Puntaje más alto:</es_ar></textItem><textItem identifier="ui_yourscore"><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><es_mx>Puntaje:</es_mx><es_ar>Puntaje:</es_ar></textItem><textItem identifier="btn_submit"><en_us>Submit Score</en_us><en_uk>Submit Score</en_uk><nl>Score verzenden</nl><fr>Envoyer le score</fr><de>Punkte eintragen</de><es>Enviar puntuación</es><br>Enviar pontuação</br><pt>Enviar pontuação</pt><it>Invia punteggio</it><se>Skicka poäng</se><pl>Zapisz wynik</pl><ru>Сохранить</ru><id>Kirim Skor</id><ar>Submit Score</ar><jp>Submit Score</jp><cn>Submit Score</cn><es_mx>Enviar puntaje</es_mx><es_ar>Enviar puntaje</es_ar></textItem><textItem identifier="ui_selectingNew"><en_us>Choosing New Game will delete your saved game.</en_us><en_uk>Choosing New Game will delete your saved game.</en_uk><nl>Als je een nieuw spel kiest, gaat je opgeslagen spel verloren.</nl><fr>Si tu choisis Nouveau jeu, cela effacera ton jeu sauvegardé.</fr><de>Wenn du „Neues Spiel“ wählst, wird dein gespeicherter Spielstand gelöscht.</de><es>Si eliges esta opción, borrarás la partida guardada.</es><br>Se você selecionar Novo Jogo vai excluir seu jogo gravado.</br><pt>Se escolheres Novo Jogo vais apagar o teu jogo guardado.</pt><it>Scegliendo Nuovo Gioco cancellerai quello salvato.</it><se>Väljer du Nytt spel raderas ditt sparade spel.</se><pl>Wybranie nowej gry usunie zapisaną grę.</pl><ru>Если начать новую игру, сохраненная игра будет стерта.</ru><id>Memilih Game Baru akan menghapus game simpananmu.</id><ar>Choosing New Game will delete your saved game.</ar><jp>Choosing New Game will delete your saved game.</jp><cn>Choosing New Game will delete your saved game.</cn><es_mx>Si seleccionas Nuevo juego se eliminará tu juego guardado.</es_mx><es_ar>Si elegís Nuevo juego se borrará tu juego guardado.</es_ar></textItem><textItem identifier="ui_doyou"><en_us>Continue?</en_us><en_uk>Continue?</en_uk><nl>Doorgaan?</nl><fr>Continuer ?</fr><de>Weiter?</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><es_mx>¿Continuar?</es_mx><es_ar>¿Continuar?</es_ar></textItem><textItem identifier="btn_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><es_mx>Sí</es_mx><es_ar>Sí</es_ar></textItem><textItem identifier="btn_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><es_mx>No</es_mx><es_ar>No</es_ar></textItem><textItem identifier="ui_bgdesign"><en_us>Remote-Controlled Demolition Bot</en_us><en_uk>Remote-Controlled Demolition Bot</en_uk><nl>Op afstand bestuurbare slooprobot.</nl><fr>Robot de démolition télécommandé</fr><de>Ferngesteuerter Abrissroboter </de><es>Robot de demolición por control remoto</es><br>Robô Demolidor por Controle Remoto</br><pt>Robô de Demolição por Controlo-Remoto</pt><it>Robot distruttivo telecomandato</it><se>Fjärrstyrd rivningsrobot</se><pl>Zdalnie sterowany robot niszczący</pl><ru>Радиоуправляемый робот-подрывник</ru><id>Bot Penghancur Dikendalikan Jarak Jauh</id><ar>Remote-Controlled Demolition Bot</ar><jp>Remote-Controlled Demolition Bot</jp><cn>Remote-Controlled Demolition Bot</cn><es_mx>Robot de demolición de control remoto</es_mx><es_ar>Robot de demolición manejado a control remoto</es_ar></textItem><textItem identifier="btn_highscore"><en_us>High Scores</en_us><en_uk>Highscores</en_uk><nl>Topscores</nl><fr>Meilleurs scores</fr><de>Highscores</de><es>Puntuaciones máximas</es><br>Recordes</br><pt>Recordes</pt><it>Punteggi più alti</it><se>Toppoäng</se><pl>Najlepsze wyniki</pl><ru>Рекорды</ru><id>Skor Tertinggi</id><ar>High Scores</ar><jp>High Scores</jp><cn>High Scores</cn><es_mx>Puntajes altos</es_mx><es_ar>Puntajes más altos</es_ar></textItem><textItem identifier="ui_moregamesAt"><en_us>More games at:</en_us><en_uk>More games at:</en_uk><nl>Meer spellen op:</nl><fr>Plus de jeux sur :</fr><de>Mehr Spiele auf:</de><es>Más juegos en:</es><br>Mais jogos em:</br><pt>Mais jogos em:</pt><it>Più giochi su:</it><se>Fler spel på:</se><pl>Więcej gier na:</pl><ru>Другие игры на:</ru><id>Game lainnya di:</id><ar>More games at:</ar><jp>More games at:</jp><cn>More games at:</cn><es_mx>Más juegos en:</es_mx><es_ar>Más juegos en:</es_ar></textItem></LocalisedText>
;
SpilGame.importXMLv2(xmlData);
trace("Language Data Succesfully included");
fontList = Font.enumerateFonts();
i = 0;
while (i < fontList.length) {
trace(fontList[i].fontName);
i++;
};
contextMenu = new ContextMenu();
contextMenu.hideBuiltInItems();
Languages.initialize();
Languages.getLanguage("jp").textLanguage = "en_us";
Languages.getLanguage("cn").textLanguage = "en_us";
SpilGame.initialize("KaboomBOT", PortalGroup.TEENS, "KaboomBOT.html", this, true);
_spilGamesServices = SpilGamesServices.getInstance();
_spilGamesServices.addEventListener("servicesReady", onServicesReady);
_spilGamesServices.addEventListener("servicesFailed", onServicesFailed);
_spilGamesServices.connect(this);
this.loaderInfo.addEventListener(ProgressEvent.PROGRESS, onLoadingProgress);
stop();
}
public function playExplodeSnd1(){
if (music == "on"){
explodeSnd1.play();
};
}
public function playExplodeSnd2(){
if (music == "on"){
explodeSnd2.play();
};
}
function frame8(){
if ((((__setPropDict[__id26_] == undefined)) || (!((((int(__setPropDict[__id26_]) >= 6)) && ((int(__setPropDict[__id26_]) <= 25))))))){
__setPropDict[__id26_] = currentFrame;
__setProp___id26__main_ui_6();
};
if ((((__setPropDict[__id18_] == undefined)) || (!((((int(__setPropDict[__id18_]) >= 6)) && ((int(__setPropDict[__id18_]) <= 25))))))){
__setPropDict[__id18_] = currentFrame;
__setProp___id18__main_controlBGandlevel_6();
};
stop();
slideOutCurtain();
lvl3_state = "passive";
lvl3_controllerDroneOrigXpos = lvl3_controllerPad_mc.controllerDrone_mc.x;
lvl3_controllerDroneOrigYpos = lvl3_controllerPad_mc.controllerDrone_mc.y;
lvl3_promptOrigXpos = lvl3_controllerPad_mc.prompt_mc.x;
lvl3_controllerPad_mc.controllerDrone_mc.addEventListener(MouseEvent.MOUSE_OVER, lvl3_start);
stage.addEventListener(Event.ENTER_FRAME, lvl3_Looper);
}
function frame19(){
if ((((__setPropDict[__id26_] == undefined)) || (!((((int(__setPropDict[__id26_]) >= 6)) && ((int(__setPropDict[__id26_]) <= 25))))))){
__setPropDict[__id26_] = currentFrame;
__setProp___id26__main_ui_6();
};
if ((((__setPropDict[__id18_] == undefined)) || (!((((int(__setPropDict[__id18_]) >= 6)) && ((int(__setPropDict[__id18_]) <= 25))))))){
__setPropDict[__id18_] = currentFrame;
__setProp___id18__main_controlBGandlevel_6();
};
stop();
slideOutCurtain();
lvl14_state = "passive";
lvl14_controllerDroneOrigXpos = lvl14_controllerPad_mc.controllerDrone_mc.x;
lvl14_controllerDroneOrigYpos = lvl14_controllerPad_mc.controllerDrone_mc.y;
lvl14_promptOrigXpos = lvl14_controllerPad_mc.prompt_mc.x;
lvl14_controllerPad_mc.controllerDrone_mc.addEventListener(MouseEvent.MOUSE_OVER, lvl14_start);
stage.addEventListener(Event.ENTER_FRAME, lvl14_Looper);
}
function frame3(){
MochiBot.track(this, "b35c8dc6");
stage.frameRate = 30;
myContextMenu = new ContextMenu();
this.contextMenu = myContextMenu;
myContextMenu.addEventListener(ContextMenuEvent.MENU_SELECT, menuSelectHandler);
myContextMenu.hideBuiltInItems();
kaboomBot_so = SharedObject.getLocal("kaboomBotSavedData");
smokeArray = new Array();
attempt = 0;
level = 1;
collisiondetection = new Collision();
LSO_Checker();
stage.addEventListener(KeyboardEvent.KEY_DOWN, kd);
keyIsPressed = "false";
stage.addEventListener(KeyboardEvent.KEY_UP, ku);
proceedNextLevelCounter = 0;
proceedNextLevelTimerObj = new Timer(1000, 2);
proceedNextLevelTimerObj.addEventListener(TimerEvent.TIMER, dropCurtain);
proceedNextLevelTimerObj.addEventListener(TimerEvent.TIMER_COMPLETE, proceedNextLevel);
proceedPostLevelCounter = 0;
proceedPostLevelTimerObj = new Timer(1000, 2);
proceedPostLevelTimerObj.addEventListener(TimerEvent.TIMER, dropCurtain2);
proceedPostLevelTimerObj.addEventListener(TimerEvent.TIMER_COMPLETE, proceedPostLevel);
award1_Name = "Not bad";
award2_Name = "Half way thru";
award3_Name = "Nice Work";
award4_Name = "Job Well Done";
award5_Name = "Impossible";
award6_Name = "Super Impossible ";
award7_Name = "You must be great!";
award8_Name = "Yeah Kaboom!";
award9_Name = "Love kabooming!";
award10_Name = "I'm a Kaboomer!";
award1Des = "Reaching section 5.";
award2Des = "Reaching section 10.";
award3Des = "Reaching section 15.";
award4Des = "Completing all levels or finishing the game.";
award5Des = "Reaching section 10 with just less than 11 attempts.";
award6Des = "Finishing the game with just less than 21 attempts";
award7Des = "Checking out the game.";
award8Des = "Playing the game for 10 minutes.";
award9Des = "Playing the game for 20 minutes.";
award10Des = "Playing the game for 30 minutes.";
trackPlayDurationTmr = new Timer(1000, 0);
trackPlayDurationTmr.addEventListener(TimerEvent.TIMER, trackPlayDuration);
trackPlayDurationTmr.start();
}
public function dropCurtain(_arg1:TimerEvent){
proceedNextLevelCounter++;
if (proceedNextLevelCounter == 1){
slideInCurtain();
};
}
function frame14(){
if ((((__setPropDict[__id26_] == undefined)) || (!((((int(__setPropDict[__id26_]) >= 6)) && ((int(__setPropDict[__id26_]) <= 25))))))){
__setPropDict[__id26_] = currentFrame;
__setProp___id26__main_ui_6();
};
if ((((__setPropDict[__id18_] == undefined)) || (!((((int(__setPropDict[__id18_]) >= 6)) && ((int(__setPropDict[__id18_]) <= 25))))))){
__setPropDict[__id18_] = currentFrame;
__setProp___id18__main_controlBGandlevel_6();
};
stop();
slideOutCurtain();
lvl9_state = "passive";
lvl9_controllerDroneOrigXpos = lvl9_controllerPad_mc.controllerDrone_mc.x;
lvl9_controllerDroneOrigYpos = lvl9_controllerPad_mc.controllerDrone_mc.y;
lvl9_promptOrigXpos = lvl9_controllerPad_mc.prompt_mc.x;
lvl9_controllerPad_mc.controllerDrone_mc.addEventListener(MouseEvent.MOUSE_OVER, lvl9_start);
stage.addEventListener(Event.ENTER_FRAME, lvl9_Looper);
}
public function removeFromArray(_arg1:Array, _arg2:MovieClip){
var _local3:Number;
_local3 = 0;
while (_local3 < _arg1.length) {
if (_arg1[_local3] == _arg2){
_arg1.splice(_local3, 1);
level_mc.removeChild(_arg2);
break;
};
_local3++;
};
}
public function lvl15_start(_arg1:MouseEvent){
Mouse.hide();
addAttempt();
lvl15_state = "running";
lvl15_controllerPad_mc.prompt_mc.x = -2000;
lvl15_controllerPad_mc.controllerDrone_mc.removeEventListener(MouseEvent.MOUSE_OVER, lvl15_start);
}
function frame24(){
if ((((__setPropDict[__id26_] == undefined)) || (!((((int(__setPropDict[__id26_]) >= 6)) && ((int(__setPropDict[__id26_]) <= 25))))))){
__setPropDict[__id26_] = currentFrame;
__setProp___id26__main_ui_6();
};
if ((((__setPropDict[__id18_] == undefined)) || (!((((int(__setPropDict[__id18_]) >= 6)) && ((int(__setPropDict[__id18_]) <= 25))))))){
__setPropDict[__id18_] = currentFrame;
__setProp___id18__main_controlBGandlevel_6();
};
stop();
slideOutCurtain();
lvl19_state = "passive";
lvl19_controllerDroneOrigXpos = lvl19_controllerPad_mc.controllerDrone_mc.x;
lvl19_controllerDroneOrigYpos = lvl19_controllerPad_mc.controllerDrone_mc.y;
lvl19_promptOrigXpos = lvl19_controllerPad_mc.prompt_mc.x;
lvl19_controllerPad_mc.controllerDrone_mc.addEventListener(MouseEvent.MOUSE_OVER, lvl19_start);
stage.addEventListener(Event.ENTER_FRAME, lvl19_Looper);
}
public function lvl6_start(_arg1:MouseEvent){
Mouse.hide();
addAttempt();
lvl6_state = "running";
lvl6_controllerPad_mc.prompt_mc.x = -2000;
lvl6_controllerPad_mc.controllerDrone_mc.removeEventListener(MouseEvent.MOUSE_OVER, lvl6_start);
}
public function lvl6_Looper(_arg1:Event){
var _local2:Point;
var _local3:Point;
attSmoke();
instanceLooper(smokeArray);
if (lvl6_state == "running"){
_local2 = new Point(mouseX, mouseY);
_local3 = lvl6_controllerPad_mc.globalToLocal(_local2);
lvl6_controllerPad_mc.controllerDrone_mc.x = _local3.x;
lvl6_controllerPad_mc.controllerDrone_mc.y = _local3.y;
level_mc.bot_mc.x = lvl6_controllerPad_mc.controllerDrone_mc.x;
level_mc.bot_mc.y = lvl6_controllerPad_mc.controllerDrone_mc.y;
if (collisiondetection.isColliding(level_mc.bot_mc, level_mc.wall_mc) == true){
lvl6_errorMove();
} else {
if (collisiondetection.isColliding(level_mc.bot_mc, level_mc.target_mc) == true){
screenShake();
lvl6_state = "passive";
level_mc.target_mc.x = 10000;
level_mc.bot_mc.alpha = 0;
levelUpdate();
proceedNextLevelTimerObj.start();
Mouse.show();
stage.removeEventListener(Event.ENTER_FRAME, lvl6_Looper);
} else {
t_txt.text = "no";
};
};
};
}
function __setProp___id18__main_controlBGandlevel_6(){
try {
__id18_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id18_.text = "{ui_bgdesign}";
__id18_.textColor = 0xFFFFFF;
__id18_.textSize = 25;
__id18_.bold = false;
__id18_.disableWordwrap = false;
__id18_.embedFonts = true;
__id18_.font = "fnt_timesNewRoman*";
__id18_.hAlign = "center";
__id18_.multiline = false;
__id18_.vAlign = "top";
__id18_.antiAliasType = "advanced";
__id18_.glowBlur = 3;
__id18_.glowColor = 0;
__id18_.useGlowFilter = false;
__id18_.glowQuality = 2;
__id18_.glowStrength = 5;
__id18_.gridFitType = "none";
__id18_.italic = false;
__id18_.selectable = false;
__id18_.underline = false;
try {
__id18_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function frame12(){
if ((((__setPropDict[__id26_] == undefined)) || (!((((int(__setPropDict[__id26_]) >= 6)) && ((int(__setPropDict[__id26_]) <= 25))))))){
__setPropDict[__id26_] = currentFrame;
__setProp___id26__main_ui_6();
};
if ((((__setPropDict[__id18_] == undefined)) || (!((((int(__setPropDict[__id18_]) >= 6)) && ((int(__setPropDict[__id18_]) <= 25))))))){
__setPropDict[__id18_] = currentFrame;
__setProp___id18__main_controlBGandlevel_6();
};
stop();
slideOutCurtain();
lvl7_state = "passive";
lvl7_controllerDroneOrigXpos = lvl7_controllerPad_mc.controllerDrone_mc.x;
lvl7_controllerDroneOrigYpos = lvl7_controllerPad_mc.controllerDrone_mc.y;
lvl7_promptOrigXpos = lvl7_controllerPad_mc.prompt_mc.x;
lvl7_controllerPad_mc.controllerDrone_mc.addEventListener(MouseEvent.MOUSE_OVER, lvl7_start);
stage.addEventListener(Event.ENTER_FRAME, lvl7_Looper);
}
function frame18(){
if ((((__setPropDict[__id26_] == undefined)) || (!((((int(__setPropDict[__id26_]) >= 6)) && ((int(__setPropDict[__id26_]) <= 25))))))){
__setPropDict[__id26_] = currentFrame;
__setProp___id26__main_ui_6();
};
if ((((__setPropDict[__id18_] == undefined)) || (!((((int(__setPropDict[__id18_]) >= 6)) && ((int(__setPropDict[__id18_]) <= 25))))))){
__setPropDict[__id18_] = currentFrame;
__setProp___id18__main_controlBGandlevel_6();
};
stop();
slideOutCurtain();
lvl13_state = "passive";
lvl13_controllerDroneOrigXpos = lvl13_controllerPad_mc.controllerDrone_mc.x;
lvl13_controllerDroneOrigYpos = lvl13_controllerPad_mc.controllerDrone_mc.y;
lvl13_promptOrigXpos = lvl13_controllerPad_mc.prompt_mc.x;
lvl13_controllerPad_mc.controllerDrone_mc.addEventListener(MouseEvent.MOUSE_OVER, lvl13_start);
stage.addEventListener(Event.ENTER_FRAME, lvl13_Looper);
}
public function lvl2_errorMove(){
screenShake();
t_txt.text = "hit";
Mouse.show();
lvl2_state = "passive";
lvl2_controllerPad_mc.controllerDrone_mc.x = lvl2_controllerDroneOrigXpos;
lvl2_controllerPad_mc.controllerDrone_mc.y = lvl2_controllerDroneOrigYpos;
lvl2_controllerPad_mc.prompt_mc.x = lvl2_promptOrigXpos;
level_mc.bot_mc.x = lvl2_controllerPad_mc.controllerDrone_mc.x;
level_mc.bot_mc.y = lvl2_controllerPad_mc.controllerDrone_mc.y;
lvl2_controllerPad_mc.controllerDrone_mc.addEventListener(MouseEvent.MOUSE_OVER, lvl2_start);
}
function frame5(){
stop();
fader_mc.gotoAndPlay(2);
navButton(start2_btn, "level1");
navButton(back_btn, "title");
}
function frame7(){
if ((((__setPropDict[__id26_] == undefined)) || (!((((int(__setPropDict[__id26_]) >= 6)) && ((int(__setPropDict[__id26_]) <= 25))))))){
__setPropDict[__id26_] = currentFrame;
__setProp___id26__main_ui_6();
};
if ((((__setPropDict[__id18_] == undefined)) || (!((((int(__setPropDict[__id18_]) >= 6)) && ((int(__setPropDict[__id18_]) <= 25))))))){
__setPropDict[__id18_] = currentFrame;
__setProp___id18__main_controlBGandlevel_6();
};
stop();
slideOutCurtain();
lvl2_state = "passive";
lvl2_controllerDroneOrigXpos = lvl2_controllerPad_mc.controllerDrone_mc.x;
lvl2_controllerDroneOrigYpos = lvl2_controllerPad_mc.controllerDrone_mc.y;
lvl2_promptOrigXpos = lvl2_controllerPad_mc.prompt_mc.x;
lvl2_controllerPad_mc.controllerDrone_mc.addEventListener(MouseEvent.MOUSE_OVER, lvl2_start);
stage.addEventListener(Event.ENTER_FRAME, lvl2_Looper);
}
function frame20(){
if ((((__setPropDict[__id26_] == undefined)) || (!((((int(__setPropDict[__id26_]) >= 6)) && ((int(__setPropDict[__id26_]) <= 25))))))){
__setPropDict[__id26_] = currentFrame;
__setProp___id26__main_ui_6();
};
if ((((__setPropDict[__id18_] == undefined)) || (!((((int(__setPropDict[__id18_]) >= 6)) && ((int(__setPropDict[__id18_]) <= 25))))))){
__setPropDict[__id18_] = currentFrame;
__setProp___id18__main_controlBGandlevel_6();
};
stop();
slideOutCurtain();
lvl15_state = "passive";
lvl15_controllerDroneOrigXpos = lvl15_controllerPad_mc.controllerDrone_mc.x;
lvl15_controllerDroneOrigYpos = lvl15_controllerPad_mc.controllerDrone_mc.y;
lvl15_promptOrigXpos = lvl15_controllerPad_mc.prompt_mc.x;
lvl15_controllerPad_mc.controllerDrone_mc.addEventListener(MouseEvent.MOUSE_OVER, lvl15_start);
stage.addEventListener(Event.ENTER_FRAME, lvl15_Looper);
}
function frame15(){
if ((((__setPropDict[__id26_] == undefined)) || (!((((int(__setPropDict[__id26_]) >= 6)) && ((int(__setPropDict[__id26_]) <= 25))))))){
__setPropDict[__id26_] = currentFrame;
__setProp___id26__main_ui_6();
};
if ((((__setPropDict[__id18_] == undefined)) || (!((((int(__setPropDict[__id18_]) >= 6)) && ((int(__setPropDict[__id18_]) <= 25))))))){
__setPropDict[__id18_] = currentFrame;
__setProp___id18__main_controlBGandlevel_6();
};
stop();
slideOutCurtain();
lvl10_state = "passive";
lvl10_controllerDroneOrigXpos = lvl10_controllerPad_mc.controllerDrone_mc.x;
lvl10_controllerDroneOrigYpos = lvl10_controllerPad_mc.controllerDrone_mc.y;
lvl10_promptOrigXpos = lvl10_controllerPad_mc.prompt_mc.x;
lvl10_controllerPad_mc.controllerDrone_mc.addEventListener(MouseEvent.MOUSE_OVER, lvl10_start);
stage.addEventListener(Event.ENTER_FRAME, lvl10_Looper);
}
function frame6(){
if ((((__setPropDict[__id26_] == undefined)) || (!((((int(__setPropDict[__id26_]) >= 6)) && ((int(__setPropDict[__id26_]) <= 25))))))){
__setPropDict[__id26_] = currentFrame;
__setProp___id26__main_ui_6();
};
if ((((__setPropDict[__id18_] == undefined)) || (!((((int(__setPropDict[__id18_]) >= 6)) && ((int(__setPropDict[__id18_]) <= 25))))))){
__setPropDict[__id18_] = currentFrame;
__setProp___id18__main_controlBGandlevel_6();
};
stop();
slideOutCurtain();
lvl1_state = "passive";
lvl1_controllerDroneOrigXpos = lvl1_controllerPad_mc.controllerDrone_mc.x;
lvl1_controllerDroneOrigYpos = lvl1_controllerPad_mc.controllerDrone_mc.y;
lvl1_promptOrigXpos = lvl1_controllerPad_mc.prompt_mc.x;
lvl1_controllerPad_mc.controllerDrone_mc.addEventListener(MouseEvent.MOUSE_OVER, lvl1_start);
stage.addEventListener(Event.ENTER_FRAME, lvl1_Looper);
}
function frame9(){
if ((((__setPropDict[__id26_] == undefined)) || (!((((int(__setPropDict[__id26_]) >= 6)) && ((int(__setPropDict[__id26_]) <= 25))))))){
__setPropDict[__id26_] = currentFrame;
__setProp___id26__main_ui_6();
};
if ((((__setPropDict[__id18_] == undefined)) || (!((((int(__setPropDict[__id18_]) >= 6)) && ((int(__setPropDict[__id18_]) <= 25))))))){
__setPropDict[__id18_] = currentFrame;
__setProp___id18__main_controlBGandlevel_6();
};
stop();
slideOutCurtain();
lvl4_state = "passive";
lvl4_controllerDroneOrigXpos = lvl4_controllerPad_mc.controllerDrone_mc.x;
lvl4_controllerDroneOrigYpos = lvl4_controllerPad_mc.controllerDrone_mc.y;
lvl4_promptOrigXpos = lvl4_controllerPad_mc.prompt_mc.x;
lvl4_controllerPad_mc.controllerDrone_mc.addEventListener(MouseEvent.MOUSE_OVER, lvl4_start);
stage.addEventListener(Event.ENTER_FRAME, lvl4_Looper);
}
public function lvl17_Looper(_arg1:Event){
var _local2:Point;
var _local3:Point;
attSmoke();
instanceLooper(smokeArray);
if (lvl17_state == "running"){
_local2 = new Point(mouseX, mouseY);
_local3 = lvl17_controllerPad_mc.globalToLocal(_local2);
lvl17_controllerPad_mc.controllerDrone_mc.x = _local3.x;
lvl17_controllerPad_mc.controllerDrone_mc.y = _local3.y;
level_mc.bot_mc.x = lvl17_controllerPad_mc.controllerDrone_mc.x;
level_mc.bot_mc.y = lvl17_controllerPad_mc.controllerDrone_mc.y;
if (collisiondetection.isColliding(level_mc.bot_mc, level_mc.wall_mc) == true){
lvl17_errorMove();
} else {
if (collisiondetection.isColliding(level_mc.bot_mc, level_mc.target_mc) == true){
screenShake();
lvl17_state = "passive";
level_mc.target_mc.x = 10000;
level_mc.bot_mc.alpha = 0;
levelUpdate();
proceedNextLevelTimerObj.start();
Mouse.show();
stage.removeEventListener(Event.ENTER_FRAME, lvl17_Looper);
} else {
t_txt.text = "no";
};
};
};
level_mc.wall_mc.obsCir1_mc.rotation = (level_mc.wall_mc.obsCir1_mc.rotation + 2);
level_mc.wall_mc.obsCir2_mc.rotation = (level_mc.wall_mc.obsCir2_mc.rotation - 2);
}
function frame25(){
if ((((__setPropDict[__id26_] == undefined)) || (!((((int(__setPropDict[__id26_]) >= 6)) && ((int(__setPropDict[__id26_]) <= 25))))))){
__setPropDict[__id26_] = currentFrame;
__setProp___id26__main_ui_6();
};
if ((((__setPropDict[__id18_] == undefined)) || (!((((int(__setPropDict[__id18_]) >= 6)) && ((int(__setPropDict[__id18_]) <= 25))))))){
__setPropDict[__id18_] = currentFrame;
__setProp___id18__main_controlBGandlevel_6();
};
stop();
slideOutCurtain();
lvl20_state = "passive";
lvl20_controllerDroneOrigXpos = lvl20_controllerPad_mc.controllerDrone_mc.x;
lvl20_controllerDroneOrigYpos = lvl20_controllerPad_mc.controllerDrone_mc.y;
lvl20_promptOrigXpos = lvl20_controllerPad_mc.prompt_mc.x;
lvl20_controllerPad_mc.controllerDrone_mc.addEventListener(MouseEvent.MOUSE_OVER, lvl20_start);
stage.addEventListener(Event.ENTER_FRAME, lvl20_Looper);
}
function frame13(){
if ((((__setPropDict[__id26_] == undefined)) || (!((((int(__setPropDict[__id26_]) >= 6)) && ((int(__setPropDict[__id26_]) <= 25))))))){
__setPropDict[__id26_] = currentFrame;
__setProp___id26__main_ui_6();
};
if ((((__setPropDict[__id18_] == undefined)) || (!((((int(__setPropDict[__id18_]) >= 6)) && ((int(__setPropDict[__id18_]) <= 25))))))){
__setPropDict[__id18_] = currentFrame;
__setProp___id18__main_controlBGandlevel_6();
};
stop();
slideOutCurtain();
lvl8_state = "passive";
lvl8_controllerDroneOrigXpos = lvl8_controllerPad_mc.controllerDrone_mc.x;
lvl8_controllerDroneOrigYpos = lvl8_controllerPad_mc.controllerDrone_mc.y;
lvl8_promptOrigXpos = lvl8_controllerPad_mc.prompt_mc.x;
lvl8_controllerPad_mc.controllerDrone_mc.addEventListener(MouseEvent.MOUSE_OVER, lvl8_start);
stage.addEventListener(Event.ENTER_FRAME, lvl8_Looper);
}
function frame17(){
if ((((__setPropDict[__id26_] == undefined)) || (!((((int(__setPropDict[__id26_]) >= 6)) && ((int(__setPropDict[__id26_]) <= 25))))))){
__setPropDict[__id26_] = currentFrame;
__setProp___id26__main_ui_6();
};
if ((((__setPropDict[__id18_] == undefined)) || (!((((int(__setPropDict[__id18_]) >= 6)) && ((int(__setPropDict[__id18_]) <= 25))))))){
__setPropDict[__id18_] = currentFrame;
__setProp___id18__main_controlBGandlevel_6();
};
stop();
slideOutCurtain();
lvl12_state = "passive";
lvl12_controllerDroneOrigXpos = lvl12_controllerPad_mc.controllerDrone_mc.x;
lvl12_controllerDroneOrigYpos = lvl12_controllerPad_mc.controllerDrone_mc.y;
lvl12_promptOrigXpos = lvl12_controllerPad_mc.prompt_mc.x;
lvl12_controllerPad_mc.controllerDrone_mc.addEventListener(MouseEvent.MOUSE_OVER, lvl12_start);
stage.addEventListener(Event.ENTER_FRAME, lvl12_Looper);
}
function frame22(){
if ((((__setPropDict[__id26_] == undefined)) || (!((((int(__setPropDict[__id26_]) >= 6)) && ((int(__setPropDict[__id26_]) <= 25))))))){
__setPropDict[__id26_] = currentFrame;
__setProp___id26__main_ui_6();
};
if ((((__setPropDict[__id18_] == undefined)) || (!((((int(__setPropDict[__id18_]) >= 6)) && ((int(__setPropDict[__id18_]) <= 25))))))){
__setPropDict[__id18_] = currentFrame;
__setProp___id18__main_controlBGandlevel_6();
};
stop();
slideOutCurtain();
lvl17_state = "passive";
lvl17_controllerDroneOrigXpos = lvl17_controllerPad_mc.controllerDrone_mc.x;
lvl17_controllerDroneOrigYpos = lvl17_controllerPad_mc.controllerDrone_mc.y;
lvl17_promptOrigXpos = lvl17_controllerPad_mc.prompt_mc.x;
lvl17_controllerPad_mc.controllerDrone_mc.addEventListener(MouseEvent.MOUSE_OVER, lvl17_start);
stage.addEventListener(Event.ENTER_FRAME, lvl17_Looper);
}
function __setProp___id10__main_ui_4(){
try {
__id10_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id10_.text = "{ui_moregamesAt}";
__id10_.textColor = 0xFFFFFF;
__id10_.textSize = 14;
__id10_.bold = false;
__id10_.disableWordwrap = false;
__id10_.embedFonts = true;
__id10_.font = "fnt_timesNewRoman*";
__id10_.hAlign = "center";
__id10_.multiline = false;
__id10_.vAlign = "top";
__id10_.antiAliasType = "advanced";
__id10_.glowBlur = 3;
__id10_.glowColor = 0;
__id10_.useGlowFilter = false;
__id10_.glowQuality = 2;
__id10_.glowStrength = 5;
__id10_.gridFitType = "none";
__id10_.italic = false;
__id10_.selectable = false;
__id10_.underline = false;
try {
__id10_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function frame26(){
stop();
if (kaboomBot_so.data.bestScore_so == undefined){
kaboomBot_so.data.bestScore_so = attempt;
} else {
if (attempt > kaboomBot_so.data.bestScore_so){
kaboomBot_so.data.bestScore_so = attempt;
} else {
new_txt.x = -1000;
};
};
bestScore_txt.text = String(kaboomBot_so.data.bestScore_so);
latestScore_txt.text = String(attempt);
postLevelNavButton(PLmainMenu_btn, "title");
submitScoreButton(submitScore_btn);
}
function frame27(){
stop();
fader_mc.gotoAndPlay(2);
awardBackButton(awardBack_btn, "title");
initAwardsScreen();
}
public function lvl5_errorMove(){
screenShake();
t_txt.text = "hit";
Mouse.show();
lvl5_state = "passive";
lvl5_controllerPad_mc.controllerDrone_mc.x = lvl5_controllerDroneOrigXpos;
lvl5_controllerPad_mc.controllerDrone_mc.y = lvl5_controllerDroneOrigYpos;
lvl5_controllerPad_mc.prompt_mc.x = lvl5_promptOrigXpos;
level_mc.bot_mc.x = lvl5_controllerPad_mc.controllerDrone_mc.x;
level_mc.bot_mc.y = lvl5_controllerPad_mc.controllerDrone_mc.y;
lvl5_controllerPad_mc.controllerDrone_mc.addEventListener(MouseEvent.MOUSE_OVER, lvl5_start);
}
function frame21(){
if ((((__setPropDict[__id26_] == undefined)) || (!((((int(__setPropDict[__id26_]) >= 6)) && ((int(__setPropDict[__id26_]) <= 25))))))){
__setPropDict[__id26_] = currentFrame;
__setProp___id26__main_ui_6();
};
if ((((__setPropDict[__id18_] == undefined)) || (!((((int(__setPropDict[__id18_]) >= 6)) && ((int(__setPropDict[__id18_]) <= 25))))))){
__setPropDict[__id18_] = currentFrame;
__setProp___id18__main_controlBGandlevel_6();
};
stop();
slideOutCurtain();
lvl16_state = "passive";
lvl16_controllerDroneOrigXpos = lvl16_controllerPad_mc.controllerDrone_mc.x;
lvl16_controllerDroneOrigYpos = lvl16_controllerPad_mc.controllerDrone_mc.y;
lvl16_promptOrigXpos = lvl16_controllerPad_mc.prompt_mc.x;
lvl16_controllerPad_mc.controllerDrone_mc.addEventListener(MouseEvent.MOUSE_OVER, lvl16_start);
stage.addEventListener(Event.ENTER_FRAME, lvl16_Looper);
}
public function submitScoreButton(_arg1:MovieClip){
var movr:Function;
var mout:Function;
var clck:Function;
var btn = _arg1;
movr = function (_arg1:MouseEvent){
};
mout = function (_arg1:MouseEvent){
};
clck = function (_arg1:MouseEvent){
ScoreService.submitScore(kaboomBot_so.data.bestScore_so);
};
btn.buttonMode = true;
btn.addEventListener(MouseEvent.MOUSE_OVER, movr);
btn.addEventListener(MouseEvent.MOUSE_OUT, mout);
btn.addEventListener(MouseEvent.CLICK, clck);
}
public function lvl10_errorMove(){
screenShake();
t_txt.text = "hit";
Mouse.show();
lvl10_state = "passive";
lvl10_controllerPad_mc.controllerDrone_mc.x = lvl10_controllerDroneOrigXpos;
lvl10_controllerPad_mc.controllerDrone_mc.y = lvl10_controllerDroneOrigYpos;
lvl10_controllerPad_mc.prompt_mc.x = lvl10_promptOrigXpos;
level_mc.bot_mc.x = lvl10_controllerPad_mc.controllerDrone_mc.x;
level_mc.bot_mc.y = lvl10_controllerPad_mc.controllerDrone_mc.y;
lvl10_controllerPad_mc.controllerDrone_mc.addEventListener(MouseEvent.MOUSE_OVER, lvl10_start);
}
public function lvl13_errorMove(){
screenShake();
t_txt.text = "hit";
Mouse.show();
lvl13_state = "passive";
lvl13_controllerPad_mc.controllerDrone_mc.x = lvl13_controllerDroneOrigXpos;
lvl13_controllerPad_mc.controllerDrone_mc.y = lvl13_controllerDroneOrigYpos;
lvl13_controllerPad_mc.prompt_mc.x = lvl13_promptOrigXpos;
level_mc.bot_mc.x = lvl13_controllerPad_mc.controllerDrone_mc.x;
level_mc.bot_mc.y = lvl13_controllerPad_mc.controllerDrone_mc.y;
lvl13_controllerPad_mc.controllerDrone_mc.addEventListener(MouseEvent.MOUSE_OVER, lvl13_start);
}
public function lvl13_Looper(_arg1:Event){
var _local2:Point;
var _local3:Point;
attSmoke();
instanceLooper(smokeArray);
if (lvl13_state == "running"){
_local2 = new Point(mouseX, mouseY);
_local3 = lvl13_controllerPad_mc.globalToLocal(_local2);
lvl13_controllerPad_mc.controllerDrone_mc.x = _local3.x;
lvl13_controllerPad_mc.controllerDrone_mc.y = _local3.y;
level_mc.bot_mc.x = lvl13_controllerPad_mc.controllerDrone_mc.x;
level_mc.bot_mc.y = lvl13_controllerPad_mc.controllerDrone_mc.y;
if (collisiondetection.isColliding(level_mc.bot_mc, level_mc.wall_mc) == true){
lvl13_errorMove();
} else {
if (collisiondetection.isColliding(level_mc.bot_mc, level_mc.target_mc) == true){
screenShake();
lvl13_state = "passive";
level_mc.target_mc.x = 10000;
level_mc.bot_mc.alpha = 0;
levelUpdate();
proceedNextLevelTimerObj.start();
Mouse.show();
stage.removeEventListener(Event.ENTER_FRAME, lvl13_Looper);
} else {
t_txt.text = "no";
};
};
};
}
public function lvl2_Looper(_arg1:Event){
var _local2:Point;
var _local3:Point;
attSmoke();
instanceLooper(smokeArray);
if (lvl2_state == "running"){
_local2 = new Point(mouseX, mouseY);
_local3 = lvl2_controllerPad_mc.globalToLocal(_local2);
lvl2_controllerPad_mc.controllerDrone_mc.x = _local3.x;
lvl2_controllerPad_mc.controllerDrone_mc.y = _local3.y;
level_mc.bot_mc.x = lvl2_controllerPad_mc.controllerDrone_mc.x;
level_mc.bot_mc.y = lvl2_controllerPad_mc.controllerDrone_mc.y;
if (collisiondetection.isColliding(level_mc.bot_mc, level_mc.wall_mc) == true){
lvl2_errorMove();
} else {
if (collisiondetection.isColliding(level_mc.bot_mc, level_mc.target_mc) == true){
screenShake();
lvl2_state = "passive";
level_mc.target_mc.x = 10000;
level_mc.bot_mc.alpha = 0;
levelUpdate();
proceedNextLevelTimerObj.start();
Mouse.show();
stage.removeEventListener(Event.ENTER_FRAME, lvl2_Looper);
} else {
t_txt.text = "no";
};
};
};
}
public function randomGenerator(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
_local3 = (Math.floor((Math.random() * (_arg2 - _arg1))) + _arg1);
return (_local3);
}
public function lvl8_errorMove(){
screenShake();
t_txt.text = "hit";
Mouse.show();
lvl8_state = "passive";
lvl8_controllerPad_mc.controllerDrone_mc.x = lvl8_controllerDroneOrigXpos;
lvl8_controllerPad_mc.controllerDrone_mc.y = lvl8_controllerDroneOrigYpos;
lvl8_controllerPad_mc.prompt_mc.x = lvl8_promptOrigXpos;
level_mc.bot_mc.x = lvl8_controllerPad_mc.controllerDrone_mc.x;
level_mc.bot_mc.y = lvl8_controllerPad_mc.controllerDrone_mc.y;
lvl8_controllerPad_mc.controllerDrone_mc.addEventListener(MouseEvent.MOUSE_OVER, lvl8_start);
}
public function awardBackButton(_arg1:MovieClip, _arg2:String){
var movr:Function;
var mout:Function;
var clck:Function;
var btn = _arg1;
var whereTo = _arg2;
movr = function (_arg1:MouseEvent){
};
mout = function (_arg1:MouseEvent){
};
clck = function (_arg1:MouseEvent){
gotoAndStop(whereTo);
};
btn.buttonMode = true;
btn.addEventListener(MouseEvent.MOUSE_OVER, movr);
btn.addEventListener(MouseEvent.MOUSE_OUT, mout);
btn.addEventListener(MouseEvent.CLICK, clck);
}
public function lvl20_start(_arg1:MouseEvent){
Mouse.hide();
addAttempt();
lvl20_state = "running";
lvl20_controllerPad_mc.prompt_mc.x = -2000;
lvl20_controllerPad_mc.controllerDrone_mc.removeEventListener(MouseEvent.MOUSE_OVER, lvl20_start);
}
public function ku(_arg1:KeyboardEvent){
keyIsPressed = "false";
}
public function levelUpdate(){
level++;
saveToLSO();
}
public function lvl14_start(_arg1:MouseEvent){
Mouse.hide();
addAttempt();
lvl14_state = "running";
lvl14_controllerPad_mc.prompt_mc.x = -2000;
lvl14_controllerPad_mc.controllerDrone_mc.removeEventListener(MouseEvent.MOUSE_OVER, lvl14_start);
}
public function kd(_arg1:KeyboardEvent){
keyIsPressed = "true";
if (_arg1.keyCode == 77){
musicCode++;
if (musicCode == 1){
SoundMixer.stopAll();
music = "off";
};
if (musicCode == 2){
music = "on";
playTitleBGSnd();
musicCode = 0;
};
};
}
public function attExplosion(_arg1:MovieClip){
var _local2:Explosion;
playExplodeSnd();
_local2 = new Explosion();
_local2.x = _arg1.x;
_local2.y = _arg1.y;
level_mc.addChild(_local2);
}
public function lvl5_start(_arg1:MouseEvent){
Mouse.hide();
addAttempt();
lvl5_state = "running";
lvl5_controllerPad_mc.prompt_mc.x = -2000;
lvl5_controllerPad_mc.controllerDrone_mc.removeEventListener(MouseEvent.MOUSE_OVER, lvl5_start);
}
public function lvl16_errorMove(){
screenShake();
t_txt.text = "hit";
Mouse.show();
lvl16_state = "passive";
lvl16_controllerPad_mc.controllerDrone_mc.x = lvl16_controllerDroneOrigXpos;
lvl16_controllerPad_mc.controllerDrone_mc.y = lvl16_controllerDroneOrigYpos;
lvl16_controllerPad_mc.prompt_mc.x = lvl16_promptOrigXpos;
level_mc.bot_mc.x = lvl16_controllerPad_mc.controllerDrone_mc.x;
level_mc.bot_mc.y = lvl16_controllerPad_mc.controllerDrone_mc.y;
lvl16_controllerPad_mc.controllerDrone_mc.addEventListener(MouseEvent.MOUSE_OVER, lvl16_start);
}
public function lvl7_Looper(_arg1:Event){
var _local2:Point;
var _local3:Point;
attSmoke();
instanceLooper(smokeArray);
if (lvl7_state == "running"){
_local2 = new Point(mouseX, mouseY);
_local3 = lvl7_controllerPad_mc.globalToLocal(_local2);
lvl7_controllerPad_mc.controllerDrone_mc.x = _local3.x;
lvl7_controllerPad_mc.controllerDrone_mc.y = _local3.y;
level_mc.bot_mc.x = lvl7_controllerPad_mc.controllerDrone_mc.x;
level_mc.bot_mc.y = lvl7_controllerPad_mc.controllerDrone_mc.y;
if (collisiondetection.isColliding(level_mc.bot_mc, level_mc.wall_mc) == true){
lvl7_errorMove();
} else {
if (collisiondetection.isColliding(level_mc.bot_mc, level_mc.target_mc) == true){
screenShake();
lvl7_state = "passive";
level_mc.target_mc.x = 10000;
level_mc.bot_mc.alpha = 0;
levelUpdate();
proceedNextLevelTimerObj.start();
Mouse.show();
stage.removeEventListener(Event.ENTER_FRAME, lvl7_Looper);
} else {
t_txt.text = "no";
};
};
};
level_mc.wall_mc.obsCir1_mc.rotation = (level_mc.wall_mc.obsCir1_mc.rotation - 2);
level_mc.wall_mc.obsCross1_mc.rotation = (level_mc.wall_mc.obsCross1_mc.rotation + 2);
}
public function handle_btnSpil(_arg1:MouseEvent):void{
navigateToURL(new URLRequest(SpilGame.getSpilCompanyLink()));
}
public function proceedPostLevel(_arg1:TimerEvent){
endLevelCleanUpArray(smokeArray);
gotoAndStop("postLevelScreen");
proceedPostLevelCounter = 0;
proceedPostLevelTimerObj.reset();
}
public function lvl20_Looper(_arg1:Event){
var _local2:Point;
var _local3:Point;
attSmoke();
instanceLooper(smokeArray);
if (lvl20_state == "running"){
_local2 = new Point(mouseX, mouseY);
_local3 = lvl20_controllerPad_mc.globalToLocal(_local2);
lvl20_controllerPad_mc.controllerDrone_mc.x = _local3.x;
lvl20_controllerPad_mc.controllerDrone_mc.y = _local3.y;
level_mc.bot_mc.x = lvl20_controllerPad_mc.controllerDrone_mc.x;
level_mc.bot_mc.y = lvl20_controllerPad_mc.controllerDrone_mc.y;
if (collisiondetection.isColliding(level_mc.bot_mc, level_mc.wall_mc) == true){
lvl20_errorMove();
} else {
if (collisiondetection.isColliding(level_mc.bot_mc, level_mc.target_mc) == true){
screenShake();
lvl20_state = "passive";
level_mc.target_mc.x = 10000;
level_mc.bot_mc.alpha = 0;
proceedPostLevelTimerObj.start();
Mouse.show();
stage.removeEventListener(Event.ENTER_FRAME, lvl20_Looper);
} else {
t_txt.text = "no";
};
};
};
level_mc.wall_mc.obsCross1_mc.rotation = (level_mc.wall_mc.obsCross1_mc.rotation - 2);
level_mc.wall_mc.obsCross2_mc.rotation = (level_mc.wall_mc.obsCross2_mc.rotation + 2);
level_mc.wall_mc.obsCross3_mc.rotation = (level_mc.wall_mc.obsCross3_mc.rotation - 2);
level_mc.wall_mc.obsCross4_mc.rotation = (level_mc.wall_mc.obsCross4_mc.rotation - 2);
level_mc.wall_mc.obsCross5_mc.rotation = (level_mc.wall_mc.obsCross5_mc.rotation + 2);
level_mc.wall_mc.obsCross6_mc.rotation = (level_mc.wall_mc.obsCross6_mc.rotation - 2);
}
public function lvl19_start(_arg1:MouseEvent){
Mouse.hide();
addAttempt();
lvl19_state = "running";
lvl19_controllerPad_mc.prompt_mc.x = -2000;
lvl19_controllerPad_mc.controllerDrone_mc.removeEventListener(MouseEvent.MOUSE_OVER, lvl19_start);
}
public function trackPlayDuration(_arg1:TimerEvent){
if (kaboomBot_so.data.gamePlayDuration_so == undefined){
gamePlayDuration = 0;
kaboomBot_so.data.gamePlayDuration_so = gamePlayDuration;
} else {
gamePlayDuration = kaboomBot_so.data.gamePlayDuration_so;
};
gamePlayDuration++;
kaboomBot_so.data.gamePlayDuration_so = gamePlayDuration;
trace(kaboomBot_so.data.gamePlayDuration_so);
if ((((gamePlayDuration == 600)) && ((kaboomBot_so.data.award8_so == undefined)))){
kaboomBot_so.data.award8_so = 1;
promptAchievement(award8_Name);
};
if ((((gamePlayDuration == 1200)) && ((kaboomBot_so.data.award9_so == undefined)))){
kaboomBot_so.data.award9_so = 1;
promptAchievement(award9_Name);
};
if ((((gamePlayDuration == 1800)) && ((kaboomBot_so.data.award10_so == undefined)))){
kaboomBot_so.data.award10_so = 1;
promptAchievement(award10_Name);
};
}
public function playTitleBGSnd(){
SoundMixer.stopAll();
if (music == "on"){
titlebg1Snd.play(0, int.MAX_VALUE);
};
}
public function cheatButton(_arg1:MovieClip, _arg2:String, _arg3:Number){
var movr:Function;
var mout:Function;
var clck:Function;
var btn = _arg1;
var whereTo = _arg2;
var lvl = _arg3;
movr = function (_arg1:MouseEvent){
};
mout = function (_arg1:MouseEvent){
};
clck = function (_arg1:MouseEvent){
level = lvl;
gotoAndStop(whereTo);
};
btn.buttonMode = true;
btn.addEventListener(MouseEvent.MOUSE_OVER, movr);
btn.addEventListener(MouseEvent.MOUSE_OUT, mout);
btn.addEventListener(MouseEvent.CLICK, clck);
}
public function lvl19_errorMove(){
screenShake();
t_txt.text = "hit";
Mouse.show();
lvl19_state = "passive";
lvl19_controllerPad_mc.controllerDrone_mc.x = lvl19_controllerDroneOrigXpos;
lvl19_controllerPad_mc.controllerDrone_mc.y = lvl19_controllerDroneOrigYpos;
lvl19_controllerPad_mc.prompt_mc.x = lvl19_promptOrigXpos;
level_mc.bot_mc.x = lvl19_controllerPad_mc.controllerDrone_mc.x;
level_mc.bot_mc.y = lvl19_controllerPad_mc.controllerDrone_mc.y;
lvl19_controllerPad_mc.controllerDrone_mc.addEventListener(MouseEvent.MOUSE_OVER, lvl19_start);
}
public function lvl18_Looper(_arg1:Event){
var _local2:Point;
var _local3:Point;
attSmoke();
instanceLooper(smokeArray);
if (lvl18_state == "running"){
_local2 = new Point(mouseX, mouseY);
_local3 = lvl18_controllerPad_mc.globalToLocal(_local2);
lvl18_controllerPad_mc.controllerDrone_mc.x = _local3.x;
lvl18_controllerPad_mc.controllerDrone_mc.y = _local3.y;
level_mc.bot_mc.x = lvl18_controllerPad_mc.controllerDrone_mc.x;
level_mc.bot_mc.y = lvl18_controllerPad_mc.controllerDrone_mc.y;
if (collisiondetection.isColliding(level_mc.bot_mc, level_mc.wall_mc) == true){
lvl18_errorMove();
} else {
if (collisiondetection.isColliding(level_mc.bot_mc, level_mc.target_mc) == true){
screenShake();
lvl18_state = "passive";
level_mc.target_mc.x = 10000;
level_mc.bot_mc.alpha = 0;
levelUpdate();
proceedNextLevelTimerObj.start();
Mouse.show();
stage.removeEventListener(Event.ENTER_FRAME, lvl18_Looper);
} else {
t_txt.text = "no";
};
};
};
level_mc.wall_mc.obsCir1_mc.rotation = (level_mc.wall_mc.obsCir1_mc.rotation - 2);
}
public function onServicesFailed(_arg1:Event):void{
}
public function screenShake(){
Earthquake.go(this, 6, 0.3);
attExplosion(level_mc.bot_mc);
}
public function LSO_Checker(){
if (kaboomBot_so.data.gameDataExist != undefined){
attempt = kaboomBot_so.data.attempt_so;
level = kaboomBot_so.data.level_so;
} else {
attempt = 0;
level = 1;
};
}
public function lvl1_errorMove(){
screenShake();
t_txt.text = "hit";
Mouse.show();
lvl1_state = "passive";
lvl1_controllerPad_mc.controllerDrone_mc.x = lvl1_controllerDroneOrigXpos;
lvl1_controllerPad_mc.controllerDrone_mc.y = lvl1_controllerDroneOrigYpos;
lvl1_controllerPad_mc.prompt_mc.x = lvl1_promptOrigXpos;
level_mc.bot_mc.x = lvl1_controllerPad_mc.controllerDrone_mc.x;
level_mc.bot_mc.y = lvl1_controllerPad_mc.controllerDrone_mc.y;
lvl1_controllerPad_mc.controllerDrone_mc.addEventListener(MouseEvent.MOUSE_OVER, lvl1_start);
}
public function _setAwardsNameDesc(_arg1:MovieClip, _arg2:String, _arg3:String){
_arg1.awardName_txt.text = _arg2;
_arg1.awardDesc_txt.text = _arg3;
}
public function deleteLSO(){
delete kaboomBot_so.data.gameDataExist;
delete kaboomBot_so.data.attempt_so;
delete kaboomBot_so.data.level_so;
}
public function lvl3_Looper(_arg1:Event){
var _local2:Point;
var _local3:Point;
attSmoke();
instanceLooper(smokeArray);
if (lvl3_state == "running"){
_local2 = new Point(mouseX, mouseY);
_local3 = lvl3_controllerPad_mc.globalToLocal(_local2);
lvl3_controllerPad_mc.controllerDrone_mc.x = _local3.x;
lvl3_controllerPad_mc.controllerDrone_mc.y = _local3.y;
level_mc.bot_mc.x = lvl3_controllerPad_mc.controllerDrone_mc.x;
level_mc.bot_mc.y = lvl3_controllerPad_mc.controllerDrone_mc.y;
if (collisiondetection.isColliding(level_mc.bot_mc, level_mc.wall_mc) == true){
lvl3_errorMove();
} else {
if (collisiondetection.isColliding(level_mc.bot_mc, level_mc.target_mc) == true){
screenShake();
lvl3_state = "passive";
level_mc.target_mc.x = 10000;
level_mc.bot_mc.alpha = 0;
levelUpdate();
proceedNextLevelTimerObj.start();
Mouse.show();
stage.removeEventListener(Event.ENTER_FRAME, lvl3_Looper);
} else {
t_txt.text = "no";
};
};
};
level_mc.wall_mc.obsCir1_mc.rotation = (level_mc.wall_mc.obsCir1_mc.rotation - 2);
}
public function handle_btnMoreGames(_arg1:MouseEvent):void{
navigateToURL(new URLRequest(SpilGame.getMoreGamesLink("Mainscreen")), "_blank");
}
public function lvl14_Looper(_arg1:Event){
var _local2:Point;
var _local3:Point;
attSmoke();
instanceLooper(smokeArray);
if (lvl14_state == "running"){
_local2 = new Point(mouseX, mouseY);
_local3 = lvl14_controllerPad_mc.globalToLocal(_local2);
lvl14_controllerPad_mc.controllerDrone_mc.x = _local3.x;
lvl14_controllerPad_mc.controllerDrone_mc.y = _local3.y;
level_mc.bot_mc.x = lvl14_controllerPad_mc.controllerDrone_mc.x;
level_mc.bot_mc.y = lvl14_controllerPad_mc.controllerDrone_mc.y;
if (collisiondetection.isColliding(level_mc.bot_mc, level_mc.wall_mc) == true){
lvl14_errorMove();
} else {
if (collisiondetection.isColliding(level_mc.bot_mc, level_mc.target_mc) == true){
screenShake();
lvl14_state = "passive";
level_mc.target_mc.x = 10000;
level_mc.bot_mc.alpha = 0;
levelUpdate();
proceedNextLevelTimerObj.start();
Mouse.show();
stage.removeEventListener(Event.ENTER_FRAME, lvl14_Looper);
} else {
t_txt.text = "no";
};
};
};
level_mc.wall_mc.obsCross1_mc.rotation = (level_mc.wall_mc.obsCross1_mc.rotation - 2);
level_mc.wall_mc.obsCross2_mc.rotation = (level_mc.wall_mc.obsCross2_mc.rotation + 2);
}
public function lvl13_start(_arg1:MouseEvent){
Mouse.hide();
addAttempt();
lvl13_state = "running";
lvl13_controllerPad_mc.prompt_mc.x = -2000;
lvl13_controllerPad_mc.controllerDrone_mc.removeEventListener(MouseEvent.MOUSE_OVER, lvl13_start);
}
public function navButton(_arg1:MovieClip, _arg2:String){
var movr:Function;
var mout:Function;
var clck:Function;
var btn = _arg1;
var whereTo = _arg2;
movr = function (_arg1:MouseEvent){
};
mout = function (_arg1:MouseEvent){
};
clck = function (_arg1:MouseEvent){
gotoAndStop(whereTo);
};
btn.buttonMode = true;
btn.addEventListener(MouseEvent.MOUSE_OVER, movr);
btn.addEventListener(MouseEvent.MOUSE_OUT, mout);
btn.addEventListener(MouseEvent.CLICK, clck);
}
public function lvl4_start(_arg1:MouseEvent){
Mouse.hide();
addAttempt();
lvl4_state = "running";
lvl4_controllerPad_mc.prompt_mc.x = -2000;
lvl4_controllerPad_mc.controllerDrone_mc.removeEventListener(MouseEvent.MOUSE_OVER, lvl4_start);
}
public function lvl4_errorMove(){
screenShake();
t_txt.text = "hit";
Mouse.show();
lvl4_state = "passive";
lvl4_controllerPad_mc.controllerDrone_mc.x = lvl4_controllerDroneOrigXpos;
lvl4_controllerPad_mc.controllerDrone_mc.y = lvl4_controllerDroneOrigYpos;
lvl4_controllerPad_mc.prompt_mc.x = lvl4_promptOrigXpos;
level_mc.bot_mc.x = lvl4_controllerPad_mc.controllerDrone_mc.x;
level_mc.bot_mc.y = lvl4_controllerPad_mc.controllerDrone_mc.y;
lvl4_controllerPad_mc.controllerDrone_mc.addEventListener(MouseEvent.MOUSE_OVER, lvl4_start);
}
public function levelAwards(){
if (kaboomBot_so.data.award1_so == undefined){
if (level == 5){
kaboomBot_so.data.award1_so = 1;
promptAchievement(award1_Name);
AwardsService.submitAward("award1");
};
};
if (kaboomBot_so.data.award2_so == undefined){
if (level == 10){
kaboomBot_so.data.award2_so = 1;
promptAchievement(award2_Name);
AwardsService.submitAward("award2");
};
};
if (kaboomBot_so.data.award3_so == undefined){
if (level == 15){
kaboomBot_so.data.award3_so = 1;
promptAchievement(award3_Name);
AwardsService.submitAward("award3");
};
};
if (kaboomBot_so.data.award4_so == undefined){
if (level == 20){
kaboomBot_so.data.award4_so = 1;
promptAchievement(award4_Name);
AwardsService.submitAward("award4");
};
};
if (kaboomBot_so.data.award5_so == undefined){
if ((((level == 10)) && ((attempt < 11)))){
kaboomBot_so.data.award5_so = 1;
promptAchievement(award5_Name);
};
};
if (kaboomBot_so.data.award6_so == undefined){
if ((((level == 20)) && ((attempt < 21)))){
kaboomBot_so.data.award6_so = 1;
promptAchievement(award6_Name);
};
};
}
public function lvl8_Looper(_arg1:Event){
var _local2:Point;
var _local3:Point;
attSmoke();
instanceLooper(smokeArray);
if (lvl8_state == "running"){
_local2 = new Point(mouseX, mouseY);
_local3 = lvl8_controllerPad_mc.globalToLocal(_local2);
lvl8_controllerPad_mc.controllerDrone_mc.x = _local3.x;
lvl8_controllerPad_mc.controllerDrone_mc.y = _local3.y;
level_mc.bot_mc.x = lvl8_controllerPad_mc.controllerDrone_mc.x;
level_mc.bot_mc.y = lvl8_controllerPad_mc.controllerDrone_mc.y;
if (collisiondetection.isColliding(level_mc.bot_mc, level_mc.wall_mc) == true){
lvl8_errorMove();
} else {
if (collisiondetection.isColliding(level_mc.bot_mc, level_mc.target_mc) == true){
screenShake();
lvl8_state = "passive";
level_mc.target_mc.x = 10000;
level_mc.bot_mc.alpha = 0;
levelUpdate();
proceedNextLevelTimerObj.start();
Mouse.show();
stage.removeEventListener(Event.ENTER_FRAME, lvl8_Looper);
} else {
t_txt.text = "no";
};
};
};
level_mc.wall_mc.obsCross1_mc.rotation = (level_mc.wall_mc.obsCross1_mc.rotation - 2);
}
public function lvl12_errorMove(){
screenShake();
t_txt.text = "hit";
Mouse.show();
lvl12_state = "passive";
lvl12_controllerPad_mc.controllerDrone_mc.x = lvl12_controllerDroneOrigXpos;
lvl12_controllerPad_mc.controllerDrone_mc.y = lvl12_controllerDroneOrigYpos;
lvl12_controllerPad_mc.prompt_mc.x = lvl12_promptOrigXpos;
level_mc.bot_mc.x = lvl12_controllerPad_mc.controllerDrone_mc.x;
level_mc.bot_mc.y = lvl12_controllerPad_mc.controllerDrone_mc.y;
lvl12_controllerPad_mc.controllerDrone_mc.addEventListener(MouseEvent.MOUSE_OVER, lvl12_start);
}
public function lvl20_errorMove(){
screenShake();
t_txt.text = "hit";
Mouse.show();
lvl20_state = "passive";
lvl20_controllerPad_mc.controllerDrone_mc.x = lvl20_controllerDroneOrigXpos;
lvl20_controllerPad_mc.controllerDrone_mc.y = lvl20_controllerDroneOrigYpos;
lvl20_controllerPad_mc.prompt_mc.x = lvl20_promptOrigXpos;
level_mc.bot_mc.x = lvl20_controllerPad_mc.controllerDrone_mc.x;
level_mc.bot_mc.y = lvl20_controllerPad_mc.controllerDrone_mc.y;
lvl20_controllerPad_mc.controllerDrone_mc.addEventListener(MouseEvent.MOUSE_OVER, lvl20_start);
}
public function lvl19_Looper(_arg1:Event){
var _local2:Point;
var _local3:Point;
attSmoke();
instanceLooper(smokeArray);
if (lvl19_state == "running"){
_local2 = new Point(mouseX, mouseY);
_local3 = lvl19_controllerPad_mc.globalToLocal(_local2);
lvl19_controllerPad_mc.controllerDrone_mc.x = _local3.x;
lvl19_controllerPad_mc.controllerDrone_mc.y = _local3.y;
level_mc.bot_mc.x = lvl19_controllerPad_mc.controllerDrone_mc.x;
level_mc.bot_mc.y = lvl19_controllerPad_mc.controllerDrone_mc.y;
if (collisiondetection.isColliding(level_mc.bot_mc, level_mc.wall_mc) == true){
lvl19_errorMove();
} else {
if (collisiondetection.isColliding(level_mc.bot_mc, level_mc.target_mc) == true){
screenShake();
lvl19_state = "passive";
level_mc.target_mc.x = 10000;
level_mc.bot_mc.alpha = 0;
levelUpdate();
proceedNextLevelTimerObj.start();
Mouse.show();
stage.removeEventListener(Event.ENTER_FRAME, lvl19_Looper);
} else {
t_txt.text = "no";
};
};
};
level_mc.wall_mc.obsCir1_mc.rotation = (level_mc.wall_mc.obsCir1_mc.rotation - 2);
level_mc.wall_mc.obsCross1_mc.rotation = (level_mc.wall_mc.obsCross1_mc.rotation - 2);
}
public function lvl7_errorMove(){
screenShake();
t_txt.text = "hit";
Mouse.show();
lvl7_state = "passive";
lvl7_controllerPad_mc.controllerDrone_mc.x = lvl7_controllerDroneOrigXpos;
lvl7_controllerPad_mc.controllerDrone_mc.y = lvl7_controllerDroneOrigYpos;
lvl7_controllerPad_mc.prompt_mc.x = lvl7_promptOrigXpos;
level_mc.bot_mc.x = lvl7_controllerPad_mc.controllerDrone_mc.x;
level_mc.bot_mc.y = lvl7_controllerPad_mc.controllerDrone_mc.y;
lvl7_controllerPad_mc.controllerDrone_mc.addEventListener(MouseEvent.MOUSE_OVER, lvl7_start);
}
public function lvl18_start(_arg1:MouseEvent){
Mouse.hide();
addAttempt();
lvl18_state = "running";
lvl18_controllerPad_mc.prompt_mc.x = -2000;
lvl18_controllerPad_mc.controllerDrone_mc.removeEventListener(MouseEvent.MOUSE_OVER, lvl18_start);
}
public function lvl9_start(_arg1:MouseEvent){
Mouse.hide();
addAttempt();
lvl9_state = "running";
lvl9_controllerPad_mc.prompt_mc.x = -2000;
lvl9_controllerPad_mc.controllerDrone_mc.removeEventListener(MouseEvent.MOUSE_OVER, lvl9_start);
}
public function lvl10_Looper(_arg1:Event){
var _local2:Point;
var _local3:Point;
attSmoke();
instanceLooper(smokeArray);
if (lvl10_state == "running"){
_local2 = new Point(mouseX, mouseY);
_local3 = lvl10_controllerPad_mc.globalToLocal(_local2);
lvl10_controllerPad_mc.controllerDrone_mc.x = _local3.x;
lvl10_controllerPad_mc.controllerDrone_mc.y = _local3.y;
level_mc.bot_mc.x = lvl10_controllerPad_mc.controllerDrone_mc.x;
level_mc.bot_mc.y = lvl10_controllerPad_mc.controllerDrone_mc.y;
if (collisiondetection.isColliding(level_mc.bot_mc, level_mc.wall_mc) == true){
lvl10_errorMove();
} else {
if (collisiondetection.isColliding(level_mc.bot_mc, level_mc.target_mc) == true){
screenShake();
lvl10_state = "passive";
level_mc.target_mc.x = 10000;
level_mc.bot_mc.alpha = 0;
levelUpdate();
proceedNextLevelTimerObj.start();
Mouse.show();
stage.removeEventListener(Event.ENTER_FRAME, lvl10_Looper);
} else {
t_txt.text = "no";
};
};
};
level_mc.wall_mc.obsCross1_mc.rotation = (level_mc.wall_mc.obsCross1_mc.rotation - 2);
}
public function initialise():void{
contextMenu = new ContextMenu();
contextMenu.hideBuiltInItems();
gotoAndPlay(2);
}
public function titleNavButton(_arg1:MovieClip, _arg2:String){
var movr:Function;
var mout:Function;
var clck:Function;
var btn = _arg1;
var whereTo = _arg2;
movr = function (_arg1:MouseEvent){
};
mout = function (_arg1:MouseEvent){
};
clck = function (_arg1:MouseEvent){
var _local2:String;
if (btn == newGame_btn){
Tweener.addTween(newGamePrompt_mc, {y:250, time:0.4, transition:"easeOutBack"});
} else {
if (btn == loadGame_btn){
_local2 = String(("level" + level));
gotoAndStop(_local2);
} else {
if (btn == start1_btn){
LSO_Checker();
gotoAndStop(whereTo);
} else {
if (btn == newGamePrompt_mc.yes_btn){
deleteLSO();
LSO_Checker();
gotoAndStop(whereTo);
} else {
if (btn == newGamePrompt_mc.no_btn){
Tweener.addTween(newGamePrompt_mc, {y:-250, time:0.4, transition:"easeOutBack"});
} else {
gotoAndStop(whereTo);
};
};
};
};
};
};
btn.buttonMode = true;
btn.addEventListener(MouseEvent.MOUSE_OVER, movr);
btn.addEventListener(MouseEvent.MOUSE_OUT, mout);
btn.addEventListener(MouseEvent.CLICK, clck);
}
public function firstTimeAward(){
if (kaboomBot_so.data.award7_so == undefined){
kaboomBot_so.data.award7_so = 1;
promptAchievement(award7_Name);
AwardsService.submitAward("award7_Name");
trace("first time");
};
}
public function lvl15_errorMove(){
screenShake();
t_txt.text = "hit";
Mouse.show();
lvl15_state = "passive";
lvl15_controllerPad_mc.controllerDrone_mc.x = lvl15_controllerDroneOrigXpos;
lvl15_controllerPad_mc.controllerDrone_mc.y = lvl15_controllerDroneOrigYpos;
lvl15_controllerPad_mc.prompt_mc.x = lvl15_promptOrigXpos;
level_mc.bot_mc.x = lvl15_controllerPad_mc.controllerDrone_mc.x;
level_mc.bot_mc.y = lvl15_controllerPad_mc.controllerDrone_mc.y;
lvl15_controllerPad_mc.controllerDrone_mc.addEventListener(MouseEvent.MOUSE_OVER, lvl15_start);
}
public function lvl12_start(_arg1:MouseEvent){
Mouse.hide();
addAttempt();
lvl12_state = "running";
lvl12_controllerPad_mc.prompt_mc.x = -2000;
lvl12_controllerPad_mc.controllerDrone_mc.removeEventListener(MouseEvent.MOUSE_OVER, lvl12_start);
}
public function addAttempt(){
attempt++;
attempt_txt.text = String(attempt);
if (attempt > 1){
};
saveToLSO();
}
public function initAwardsScreen(){
_setAwardsNameDesc(award1_mc, award1_Name, award1Des);
_setAwardsNameDesc(award2_mc, award2_Name, award2Des);
_setAwardsNameDesc(award3_mc, award3_Name, award3Des);
_setAwardsNameDesc(award4_mc, award4_Name, award4Des);
_setAwardsNameDesc(award5_mc, award5_Name, award5Des);
_setAwardsNameDesc(award6_mc, award6_Name, award6Des);
_setAwardsNameDesc(award7_mc, award7_Name, award7Des);
_setAwardsNameDesc(award8_mc, award8_Name, award8Des);
_setAwardsNameDesc(award9_mc, award9_Name, award9Des);
_setAwardsNameDesc(award10_mc, award10_Name, award10Des);
if (kaboomBot_so.data.award1_so != undefined){
award1_mc.gotoAndStop(2);
};
if (kaboomBot_so.data.award2_so != undefined){
award2_mc.gotoAndStop(2);
};
if (kaboomBot_so.data.award3_so != undefined){
award3_mc.gotoAndStop(2);
};
if (kaboomBot_so.data.award4_so != undefined){
award4_mc.gotoAndStop(2);
};
if (kaboomBot_so.data.award5_so != undefined){
award5_mc.gotoAndStop(2);
};
if (kaboomBot_so.data.award6_so != undefined){
award6_mc.gotoAndStop(2);
};
if (kaboomBot_so.data.award7_so != undefined){
award7_mc.gotoAndStop(2);
};
if (kaboomBot_so.data.award8_so != undefined){
award8_mc.gotoAndStop(2);
};
if (kaboomBot_so.data.award9_so != undefined){
award9_mc.gotoAndStop(2);
};
if (kaboomBot_so.data.award10_so != undefined){
award10_mc.gotoAndStop(2);
};
}
public function lvl3_start(_arg1:MouseEvent){
Mouse.hide();
addAttempt();
lvl3_state = "running";
lvl3_controllerPad_mc.prompt_mc.x = -2000;
lvl3_controllerPad_mc.controllerDrone_mc.removeEventListener(MouseEvent.MOUSE_OVER, lvl3_start);
}
public function slideInCurtain(){
curtain_mc.y = -500;
Tweener.addTween(curtain_mc, {y:0, time:0.5, transition:"easeOutStrong"});
}
public function lvl4_Looper(_arg1:Event){
var _local2:Point;
var _local3:Point;
attSmoke();
instanceLooper(smokeArray);
if (lvl4_state == "running"){
_local2 = new Point(mouseX, mouseY);
_local3 = lvl4_controllerPad_mc.globalToLocal(_local2);
lvl4_controllerPad_mc.controllerDrone_mc.x = _local3.x;
lvl4_controllerPad_mc.controllerDrone_mc.y = _local3.y;
level_mc.bot_mc.x = lvl4_controllerPad_mc.controllerDrone_mc.x;
level_mc.bot_mc.y = lvl4_controllerPad_mc.controllerDrone_mc.y;
if (collisiondetection.isColliding(level_mc.bot_mc, level_mc.wall_mc) == true){
lvl4_errorMove();
} else {
if (collisiondetection.isColliding(level_mc.bot_mc, level_mc.target_mc) == true){
screenShake();
lvl4_state = "passive";
level_mc.target_mc.x = 10000;
level_mc.bot_mc.alpha = 0;
levelUpdate();
proceedNextLevelTimerObj.start();
Mouse.show();
stage.removeEventListener(Event.ENTER_FRAME, lvl4_Looper);
} else {
t_txt.text = "no";
};
};
};
level_mc.wall_mc.obsCir1_mc.rotation = (level_mc.wall_mc.obsCir1_mc.rotation - 2);
}
public function lvl15_Looper(_arg1:Event){
var _local2:Point;
var _local3:Point;
attSmoke();
instanceLooper(smokeArray);
if (lvl15_state == "running"){
_local2 = new Point(mouseX, mouseY);
_local3 = lvl15_controllerPad_mc.globalToLocal(_local2);
lvl15_controllerPad_mc.controllerDrone_mc.x = _local3.x;
lvl15_controllerPad_mc.controllerDrone_mc.y = _local3.y;
level_mc.bot_mc.x = lvl15_controllerPad_mc.controllerDrone_mc.x;
level_mc.bot_mc.y = lvl15_controllerPad_mc.controllerDrone_mc.y;
if (collisiondetection.isColliding(level_mc.bot_mc, level_mc.wall_mc) == true){
lvl15_errorMove();
} else {
if (collisiondetection.isColliding(level_mc.bot_mc, level_mc.target_mc) == true){
screenShake();
lvl15_state = "passive";
level_mc.target_mc.x = 10000;
level_mc.bot_mc.alpha = 0;
levelUpdate();
proceedNextLevelTimerObj.start();
Mouse.show();
stage.removeEventListener(Event.ENTER_FRAME, lvl15_Looper);
} else {
t_txt.text = "no";
};
};
};
level_mc.wall_mc.obsCross1_mc.rotation = (level_mc.wall_mc.obsCross1_mc.rotation - 2);
level_mc.wall_mc.obsCross2_mc.rotation = (level_mc.wall_mc.obsCross2_mc.rotation + 2);
level_mc.wall_mc.obsCross3_mc.rotation = (level_mc.wall_mc.obsCross3_mc.rotation - 2);
}
public function lvl18_errorMove(){
screenShake();
t_txt.text = "hit";
Mouse.show();
lvl18_state = "passive";
lvl18_controllerPad_mc.controllerDrone_mc.x = lvl18_controllerDroneOrigXpos;
lvl18_controllerPad_mc.controllerDrone_mc.y = lvl18_controllerDroneOrigYpos;
lvl18_controllerPad_mc.prompt_mc.x = lvl18_promptOrigXpos;
level_mc.bot_mc.x = lvl18_controllerPad_mc.controllerDrone_mc.x;
level_mc.bot_mc.y = lvl18_controllerPad_mc.controllerDrone_mc.y;
lvl18_controllerPad_mc.controllerDrone_mc.addEventListener(MouseEvent.MOUSE_OVER, lvl18_start);
}
public function playExplodeSnd(){
if (music == "on"){
explodeSnd.play();
};
}
public function promptAchievement(_arg1:String){
var _local2:PromptAward;
_local2 = new PromptAward();
_local2.x = 349;
_local2.y = 461;
_local2._name_txt.text = _arg1;
this.addChild(_local2);
}
public function initTitle(){
newGame_btn.y = 1000;
loadGame_btn.y = 1000;
start1_btn.y = 1000;
start1_btn.x = 1000;
newGame_btn.x = 1000;
loadGame_btn.x = 1000;
highscores_btn.x = 1000;
moreGames_btn.x = 1000;
awards_btn.x = 1000;
titleChar_mc.x = 0x0200;
titleChar_mc.y = 267;
titleChar_mc.scaleX = 0;
titleChar_mc.scaleY = 0;
Tweener.addTween(titleChar_mc, {x:340, y:253, scaleX:1, scaleY:1, time:0.5, delay:0.1, transition:"easeOutStrong"});
titleLogo_mc.scaleX = 0;
titleLogo_mc.scaleY = 0;
Tweener.addTween(titleLogo_mc, {scaleX:1, scaleY:1, time:1, transition:"easeOutElastic"});
titleDefinition_txt.x = 1000;
Tweener.addTween(titleDefinition_txt, {x:25.2, time:1, transition:"easeOutStrong"});
Tweener.addTween(start1_btn, {x:183.3, time:0.5, delay:0.1, transition:"easeOutStrong"});
Tweener.addTween(newGame_btn, {x:91.3, time:0.5, delay:0.1, transition:"easeOutStrong"});
Tweener.addTween(loadGame_btn, {x:264.4, time:0.5, delay:0.2, transition:"easeOutStrong"});
Tweener.addTween(highscores_btn, {x:438.4, time:0.5, delay:0.3, transition:"easeOutStrong"});
Tweener.addTween(moreGames_btn, {x:607, time:0.5, delay:0.4, transition:"easeOutStrong"});
Tweener.addTween(awards_btn, {x:364, time:0.5, delay:0.5, transition:"easeOutStrong"});
if (kaboomBot_so.data.gameDataExist != undefined){
newGame_btn.y = 421;
loadGame_btn.y = 421;
} else {
start1_btn.y = 421;
};
}
public function lvl17_start(_arg1:MouseEvent){
Mouse.hide();
addAttempt();
lvl17_state = "running";
lvl17_controllerPad_mc.prompt_mc.x = -2000;
lvl17_controllerPad_mc.controllerDrone_mc.removeEventListener(MouseEvent.MOUSE_OVER, lvl17_start);
}
public function lvl8_start(_arg1:MouseEvent){
Mouse.hide();
addAttempt();
lvl8_state = "running";
lvl8_controllerPad_mc.prompt_mc.x = -2000;
lvl8_controllerPad_mc.controllerDrone_mc.removeEventListener(MouseEvent.MOUSE_OVER, lvl8_start);
}
public function proceedNextLevel(_arg1:TimerEvent){
var _local2:String;
endLevelCleanUpArray(smokeArray);
_local2 = String(("level" + level));
gotoAndStop(_local2);
proceedNextLevelCounter = 0;
proceedNextLevelTimerObj.reset();
}
public function instanceLooper(_arg1:Array){
var _local2:Number;
_local2 = (_arg1.length - 1);
while (_local2 >= 0) {
_arg1[_local2].looper();
_local2--;
};
}
public function attSmoke(){
var _local1:Smoke;
_local1 = new Smoke();
_local1.x = level_mc.bot_mc.x;
_local1.y = (level_mc.bot_mc.y + 10);
level_mc.addChild(_local1);
smokeArray.push(_local1);
}
public function lvl9_Looper(_arg1:Event){
var _local2:Point;
var _local3:Point;
attSmoke();
instanceLooper(smokeArray);
if (lvl9_state == "running"){
_local2 = new Point(mouseX, mouseY);
_local3 = lvl9_controllerPad_mc.globalToLocal(_local2);
lvl9_controllerPad_mc.controllerDrone_mc.x = _local3.x;
lvl9_controllerPad_mc.controllerDrone_mc.y = _local3.y;
level_mc.bot_mc.x = lvl9_controllerPad_mc.controllerDrone_mc.x;
level_mc.bot_mc.y = lvl9_controllerPad_mc.controllerDrone_mc.y;
if (collisiondetection.isColliding(level_mc.bot_mc, level_mc.wall_mc) == true){
lvl9_errorMove();
} else {
if (collisiondetection.isColliding(level_mc.bot_mc, level_mc.target_mc) == true){
screenShake();
lvl9_state = "passive";
level_mc.target_mc.x = 10000;
level_mc.bot_mc.alpha = 0;
levelUpdate();
proceedNextLevelTimerObj.start();
Mouse.show();
stage.removeEventListener(Event.ENTER_FRAME, lvl9_Looper);
} else {
t_txt.text = "no";
};
};
};
}
function __setProp___id26__main_ui_6(){
try {
__id26_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id26_.text = "{ui_moregamesAt}";
__id26_.textColor = 0xFFFFFF;
__id26_.textSize = 14;
__id26_.bold = false;
__id26_.disableWordwrap = false;
__id26_.embedFonts = true;
__id26_.font = "fnt_timesNewRoman*";
__id26_.hAlign = "center";
__id26_.multiline = false;
__id26_.vAlign = "top";
__id26_.antiAliasType = "advanced";
__id26_.glowBlur = 3;
__id26_.glowColor = 0;
__id26_.useGlowFilter = false;
__id26_.glowQuality = 2;
__id26_.glowStrength = 5;
__id26_.gridFitType = "none";
__id26_.italic = false;
__id26_.selectable = false;
__id26_.underline = false;
try {
__id26_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
public function lvl3_errorMove(){
screenShake();
t_txt.text = "hit";
Mouse.show();
lvl3_state = "passive";
lvl3_controllerPad_mc.controllerDrone_mc.x = lvl3_controllerDroneOrigXpos;
lvl3_controllerPad_mc.controllerDrone_mc.y = lvl3_controllerDroneOrigYpos;
lvl3_controllerPad_mc.prompt_mc.x = lvl3_promptOrigXpos;
level_mc.bot_mc.x = lvl3_controllerPad_mc.controllerDrone_mc.x;
level_mc.bot_mc.y = lvl3_controllerPad_mc.controllerDrone_mc.y;
lvl3_controllerPad_mc.controllerDrone_mc.addEventListener(MouseEvent.MOUSE_OVER, lvl3_start);
}
public function menuSelectHandler(_arg1:ContextMenuEvent):void{
if ((((currentFrame >= 4)) && ((currentFrame <= 20)))){
switch (level){
case 1:
if (lvl1_state == "running"){
lvl1_errorMove();
noCheatPrompt();
};
break;
case 2:
if (lvl2_state == "running"){
lvl2_errorMove();
noCheatPrompt();
};
break;
case 3:
if (lvl3_state == "running"){
lvl3_errorMove();
noCheatPrompt();
};
break;
case 4:
if (lvl4_state == "running"){
lvl4_errorMove();
noCheatPrompt();
};
break;
case 5:
if (lvl5_state == "running"){
lvl5_errorMove();
noCheatPrompt();
};
break;
case 6:
if (lvl6_state == "running"){
lvl6_errorMove();
noCheatPrompt();
};
break;
case 7:
if (lvl7_state == "running"){
lvl7_errorMove();
noCheatPrompt();
};
break;
case 8:
if (lvl8_state == "running"){
lvl8_errorMove();
noCheatPrompt();
};
break;
case 9:
if (lvl9_state == "running"){
lvl9_errorMove();
noCheatPrompt();
};
break;
case 10:
if (lvl10_state == "running"){
lvl10_errorMove();
noCheatPrompt();
};
break;
case 11:
if (lvl11_state == "running"){
lvl11_errorMove();
noCheatPrompt();
};
break;
case 12:
if (lvl12_state == "running"){
lvl12_errorMove();
noCheatPrompt();
};
break;
case 13:
if (lvl13_state == "running"){
lvl13_errorMove();
noCheatPrompt();
};
break;
case 14:
if (lvl14_state == "running"){
lvl14_errorMove();
noCheatPrompt();
};
break;
case 15:
if (lvl15_state == "running"){
lvl15_errorMove();
noCheatPrompt();
};
break;
case 16:
if (lvl16_state == "running"){
lvl16_errorMove();
noCheatPrompt();
};
break;
case 17:
if (lvl17_state == "running"){
lvl17_errorMove();
noCheatPrompt();
};
break;
case 18:
if (lvl18_state == "running"){
lvl18_errorMove();
noCheatPrompt();
};
break;
case 19:
if (lvl19_state == "running"){
lvl19_errorMove();
noCheatPrompt();
};
break;
case 20:
if (lvl20_state == "running"){
lvl20_errorMove();
noCheatPrompt();
};
break;
};
};
}
public function initUI(){
attempt_txt.text = String(attempt);
level_txt.text = String(level);
if (attempt > 1){
};
}
public function onLoadingProgress(_arg1:ProgressEvent):void{
var _local2:Number;
_local2 = (_arg1.bytesLoaded / _arg1.bytesTotal);
preloader.textField.text = (int((_local2 * 100)).toString() + "%");
if (_local2 >= 1){
initialise();
};
}
public function lvl11_start(_arg1:MouseEvent){
Mouse.hide();
addAttempt();
lvl11_state = "running";
lvl11_controllerPad_mc.prompt_mc.x = -2000;
lvl11_controllerPad_mc.controllerDrone_mc.removeEventListener(MouseEvent.MOUSE_OVER, lvl11_start);
}
public function lvl11_Looper(_arg1:Event){
var _local2:Point;
var _local3:Point;
attSmoke();
instanceLooper(smokeArray);
if (lvl11_state == "running"){
_local2 = new Point(mouseX, mouseY);
_local3 = lvl11_controllerPad_mc.globalToLocal(_local2);
lvl11_controllerPad_mc.controllerDrone_mc.x = _local3.x;
lvl11_controllerPad_mc.controllerDrone_mc.y = _local3.y;
level_mc.bot_mc.x = lvl11_controllerPad_mc.controllerDrone_mc.x;
level_mc.bot_mc.y = lvl11_controllerPad_mc.controllerDrone_mc.y;
if (collisiondetection.isColliding(level_mc.bot_mc, level_mc.wall_mc) == true){
lvl11_errorMove();
} else {
if (collisiondetection.isColliding(level_mc.bot_mc, level_mc.target_mc) == true){
screenShake();
lvl11_state = "passive";
level_mc.target_mc.x = 10000;
level_mc.bot_mc.alpha = 0;
levelUpdate();
proceedNextLevelTimerObj.start();
Mouse.show();
stage.removeEventListener(Event.ENTER_FRAME, lvl11_Looper);
} else {
t_txt.text = "no";
};
};
};
level_mc.wall_mc.obsCross1_mc.rotation = (level_mc.wall_mc.obsCross1_mc.rotation - 2);
level_mc.wall_mc.obsCross2_mc.rotation = (level_mc.wall_mc.obsCross2_mc.rotation - 2);
level_mc.wall_mc.obsCross3_mc.rotation = (level_mc.wall_mc.obsCross3_mc.rotation - 2);
}
public function lvl2_start(_arg1:MouseEvent){
Mouse.hide();
addAttempt();
lvl2_state = "running";
lvl2_controllerPad_mc.prompt_mc.x = -2000;
lvl2_controllerPad_mc.controllerDrone_mc.removeEventListener(MouseEvent.MOUSE_OVER, lvl2_start);
}
public function lvl11_errorMove(){
screenShake();
t_txt.text = "hit";
Mouse.show();
lvl11_state = "passive";
lvl11_controllerPad_mc.controllerDrone_mc.x = lvl11_controllerDroneOrigXpos;
lvl11_controllerPad_mc.controllerDrone_mc.y = lvl11_controllerDroneOrigYpos;
lvl11_controllerPad_mc.prompt_mc.x = lvl11_promptOrigXpos;
level_mc.bot_mc.x = lvl11_controllerPad_mc.controllerDrone_mc.x;
level_mc.bot_mc.y = lvl11_controllerPad_mc.controllerDrone_mc.y;
lvl11_controllerPad_mc.controllerDrone_mc.addEventListener(MouseEvent.MOUSE_OVER, lvl11_start);
}
public function noCheatPrompt(){
Tweener.addTween(cheatPrompt_mc, {y:250, time:0.5, transition:"easeOutStrong"});
}
public function saveToLSO(){
kaboomBot_so.data.gameDataExist = "true";
kaboomBot_so.data.attempt_so = attempt;
kaboomBot_so.data.level_so = level;
kaboomBot_so.flush();
}
public function postLevelNavButton(_arg1:MovieClip, _arg2:String){
var movr:Function;
var mout:Function;
var clck:Function;
var btn = _arg1;
var whereTo = _arg2;
movr = function (_arg1:MouseEvent){
};
mout = function (_arg1:MouseEvent){
};
clck = function (_arg1:MouseEvent){
gotoAndStop(whereTo);
};
btn.buttonMode = true;
btn.addEventListener(MouseEvent.MOUSE_OVER, movr);
btn.addEventListener(MouseEvent.MOUSE_OUT, mout);
btn.addEventListener(MouseEvent.CLICK, clck);
}
public function lvl5_Looper(_arg1:Event){
var _local2:Point;
var _local3:Point;
attSmoke();
instanceLooper(smokeArray);
if (lvl5_state == "running"){
_local2 = new Point(mouseX, mouseY);
_local3 = lvl5_controllerPad_mc.globalToLocal(_local2);
lvl5_controllerPad_mc.controllerDrone_mc.x = _local3.x;
lvl5_controllerPad_mc.controllerDrone_mc.y = _local3.y;
level_mc.bot_mc.x = lvl5_controllerPad_mc.controllerDrone_mc.x;
level_mc.bot_mc.y = lvl5_controllerPad_mc.controllerDrone_mc.y;
if (collisiondetection.isColliding(level_mc.bot_mc, level_mc.wall_mc) == true){
lvl5_errorMove();
} else {
if (collisiondetection.isColliding(level_mc.bot_mc, level_mc.target_mc) == true){
screenShake();
lvl5_state = "passive";
level_mc.target_mc.x = 10000;
level_mc.bot_mc.alpha = 0;
levelUpdate();
proceedNextLevelTimerObj.start();
Mouse.show();
stage.removeEventListener(Event.ENTER_FRAME, lvl5_Looper);
} else {
t_txt.text = "no";
};
};
};
}
public function lvl6_errorMove(){
screenShake();
t_txt.text = "hit";
Mouse.show();
lvl6_state = "passive";
lvl6_controllerPad_mc.controllerDrone_mc.x = lvl6_controllerDroneOrigXpos;
lvl6_controllerPad_mc.controllerDrone_mc.y = lvl6_controllerDroneOrigYpos;
lvl6_controllerPad_mc.prompt_mc.x = lvl6_promptOrigXpos;
level_mc.bot_mc.x = lvl6_controllerPad_mc.controllerDrone_mc.x;
level_mc.bot_mc.y = lvl6_controllerPad_mc.controllerDrone_mc.y;
lvl6_controllerPad_mc.controllerDrone_mc.addEventListener(MouseEvent.MOUSE_OVER, lvl6_start);
}
public function lvl16_Looper(_arg1:Event){
var _local2:Point;
var _local3:Point;
attSmoke();
instanceLooper(smokeArray);
if (lvl16_state == "running"){
_local2 = new Point(mouseX, mouseY);
_local3 = lvl16_controllerPad_mc.globalToLocal(_local2);
lvl16_controllerPad_mc.controllerDrone_mc.x = _local3.x;
lvl16_controllerPad_mc.controllerDrone_mc.y = _local3.y;
level_mc.bot_mc.x = lvl16_controllerPad_mc.controllerDrone_mc.x;
level_mc.bot_mc.y = lvl16_controllerPad_mc.controllerDrone_mc.y;
if (collisiondetection.isColliding(level_mc.bot_mc, level_mc.wall_mc) == true){
lvl16_errorMove();
} else {
if (collisiondetection.isColliding(level_mc.bot_mc, level_mc.target_mc) == true){
screenShake();
lvl16_state = "passive";
level_mc.target_mc.x = 10000;
level_mc.bot_mc.alpha = 0;
levelUpdate();
proceedNextLevelTimerObj.start();
Mouse.show();
stage.removeEventListener(Event.ENTER_FRAME, lvl16_Looper);
} else {
t_txt.text = "no";
};
};
};
level_mc.wall_mc.obsCross1_mc.rotation = (level_mc.wall_mc.obsCross1_mc.rotation - 2);
}
public function dropCurtain2(_arg1:TimerEvent){
proceedPostLevelCounter++;
if (proceedPostLevelCounter == 1){
slideInCurtain();
};
}
public function lvl16_start(_arg1:MouseEvent){
Mouse.hide();
addAttempt();
lvl16_state = "running";
lvl16_controllerPad_mc.prompt_mc.x = -2000;
lvl16_controllerPad_mc.controllerDrone_mc.removeEventListener(MouseEvent.MOUSE_OVER, lvl16_start);
}
public function slideOutCurtain(){
curtain_mc.y = 0;
Tweener.addTween(curtain_mc, {y:500, time:0.5, transition:"easeOutStrong"});
initUI();
levelAwards();
mainMenuButton(mainMenu_btn, "title");
}
public function endLevelCleanUpArray(_arg1:Array){
var _local2:Number;
_local2 = (_arg1.length - 1);
while (_local2 >= 0) {
_arg1[_local2].destruct("");
_local2--;
};
}
public function lvl7_start(_arg1:MouseEvent){
Mouse.hide();
addAttempt();
lvl7_state = "running";
lvl7_controllerPad_mc.prompt_mc.x = -2000;
lvl7_controllerPad_mc.controllerDrone_mc.removeEventListener(MouseEvent.MOUSE_OVER, lvl7_start);
}
}
}//package kaboomBot_spillGames_NGv1_fla
Section 31
//mc_attempt_133 (kaboomBot_spillGames_NGv1_fla.mc_attempt_133)
package kaboomBot_spillGames_NGv1_fla {
import flash.display.*;
import spill.localisation.*;
public dynamic class mc_attempt_133 extends MovieClip {
public var __id21_:LocalizedTextField;
public function mc_attempt_133(){
__setProp___id21__mc_attempt_Layer1_1();
}
function __setProp___id21__mc_attempt_Layer1_1(){
try {
__id21_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id21_.text = "{ui_attempt}";
__id21_.textColor = 0xFFFFFF;
__id21_.textSize = 25;
__id21_.bold = false;
__id21_.disableWordwrap = false;
__id21_.embedFonts = true;
__id21_.font = "fnt_timesNewRoman*";
__id21_.hAlign = "left";
__id21_.multiline = false;
__id21_.vAlign = "top";
__id21_.antiAliasType = "advanced";
__id21_.glowBlur = 3;
__id21_.glowColor = 0;
__id21_.useGlowFilter = false;
__id21_.glowQuality = 2;
__id21_.glowStrength = 5;
__id21_.gridFitType = "none";
__id21_.italic = false;
__id21_.selectable = false;
__id21_.underline = false;
try {
__id21_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package kaboomBot_spillGames_NGv1_fla
Section 32
//mc_awardHolder_209 (kaboomBot_spillGames_NGv1_fla.mc_awardHolder_209)
package kaboomBot_spillGames_NGv1_fla {
import flash.display.*;
import flash.text.*;
public dynamic class mc_awardHolder_209 extends MovieClip {
public var awardDesc_txt:TextField;
public var awardName_txt:TextField;
public function mc_awardHolder_209(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package kaboomBot_spillGames_NGv1_fla
Section 33
//mc_cctvui_136 (kaboomBot_spillGames_NGv1_fla.mc_cctvui_136)
package kaboomBot_spillGames_NGv1_fla {
import flash.display.*;
import spill.localisation.*;
public dynamic class mc_cctvui_136 extends MovieClip {
public var __id24_:LocalizedTextField;
public function mc_cctvui_136(){
__setProp___id24__mc_cctvui_Layer1_1();
}
function __setProp___id24__mc_cctvui_Layer1_1(){
try {
__id24_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id24_.text = "{ui_cctv}";
__id24_.textColor = 0xFFFFFF;
__id24_.textSize = 25;
__id24_.bold = false;
__id24_.disableWordwrap = false;
__id24_.embedFonts = true;
__id24_.font = "fnt_timesNewRoman*";
__id24_.hAlign = "left";
__id24_.multiline = false;
__id24_.vAlign = "top";
__id24_.antiAliasType = "advanced";
__id24_.glowBlur = 3;
__id24_.glowColor = 0;
__id24_.useGlowFilter = false;
__id24_.glowQuality = 2;
__id24_.glowStrength = 5;
__id24_.gridFitType = "none";
__id24_.italic = false;
__id24_.selectable = false;
__id24_.underline = false;
try {
__id24_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package kaboomBot_spillGames_NGv1_fla
Section 34
//mc_cheatPrompt_139 (kaboomBot_spillGames_NGv1_fla.mc_cheatPrompt_139)
package kaboomBot_spillGames_NGv1_fla {
import flash.display.*;
import flash.events.*;
import caurina.transitions.*;
public dynamic class mc_cheatPrompt_139 extends MovieClip {
public function mc_cheatPrompt_139(){
addFrameScript(0, frame1);
}
public function klik(_arg1:MouseEvent){
Tweener.addTween(this, {y:-250, time:0.5, transition:"easeInStrong"});
}
function frame1(){
this.addEventListener(MouseEvent.CLICK, klik);
}
}
}//package kaboomBot_spillGames_NGv1_fla
Section 35
//mc_controller_131 (kaboomBot_spillGames_NGv1_fla.mc_controller_131)
package kaboomBot_spillGames_NGv1_fla {
import flash.display.*;
public dynamic class mc_controller_131 extends MovieClip {
public function mc_controller_131(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package kaboomBot_spillGames_NGv1_fla
Section 36
//mc_controlPad1_128 (kaboomBot_spillGames_NGv1_fla.mc_controlPad1_128)
package kaboomBot_spillGames_NGv1_fla {
import flash.display.*;
public dynamic class mc_controlPad1_128 extends MovieClip {
public var prompt_mc:MovieClip;
public var controllerDrone_mc:MovieClip;
}
}//package kaboomBot_spillGames_NGv1_fla
Section 37
//mc_controlPad10_170 (kaboomBot_spillGames_NGv1_fla.mc_controlPad10_170)
package kaboomBot_spillGames_NGv1_fla {
import flash.display.*;
public dynamic class mc_controlPad10_170 extends MovieClip {
public var prompt_mc:MovieClip;
public var controllerDrone_mc:MovieClip;
}
}//package kaboomBot_spillGames_NGv1_fla
Section 38
//mc_controlPad11_173 (kaboomBot_spillGames_NGv1_fla.mc_controlPad11_173)
package kaboomBot_spillGames_NGv1_fla {
import flash.display.*;
public dynamic class mc_controlPad11_173 extends MovieClip {
public var prompt_mc:MovieClip;
public var controllerDrone_mc:MovieClip;
}
}//package kaboomBot_spillGames_NGv1_fla
Section 39
//mc_controlPad12_176 (kaboomBot_spillGames_NGv1_fla.mc_controlPad12_176)
package kaboomBot_spillGames_NGv1_fla {
import flash.display.*;
public dynamic class mc_controlPad12_176 extends MovieClip {
public var prompt_mc:MovieClip;
public var controllerDrone_mc:MovieClip;
}
}//package kaboomBot_spillGames_NGv1_fla
Section 40
//mc_controlPad13_179 (kaboomBot_spillGames_NGv1_fla.mc_controlPad13_179)
package kaboomBot_spillGames_NGv1_fla {
import flash.display.*;
public dynamic class mc_controlPad13_179 extends MovieClip {
public var prompt_mc:MovieClip;
public var controllerDrone_mc:MovieClip;
}
}//package kaboomBot_spillGames_NGv1_fla
Section 41
//mc_controlPad14_182 (kaboomBot_spillGames_NGv1_fla.mc_controlPad14_182)
package kaboomBot_spillGames_NGv1_fla {
import flash.display.*;
public dynamic class mc_controlPad14_182 extends MovieClip {
public var prompt_mc:MovieClip;
public var controllerDrone_mc:MovieClip;
}
}//package kaboomBot_spillGames_NGv1_fla
Section 42
//mc_controlPad15_185 (kaboomBot_spillGames_NGv1_fla.mc_controlPad15_185)
package kaboomBot_spillGames_NGv1_fla {
import flash.display.*;
public dynamic class mc_controlPad15_185 extends MovieClip {
public var prompt_mc:MovieClip;
public var controllerDrone_mc:MovieClip;
}
}//package kaboomBot_spillGames_NGv1_fla
Section 43
//mc_controlPad16_188 (kaboomBot_spillGames_NGv1_fla.mc_controlPad16_188)
package kaboomBot_spillGames_NGv1_fla {
import flash.display.*;
public dynamic class mc_controlPad16_188 extends MovieClip {
public var prompt_mc:MovieClip;
public var controllerDrone_mc:MovieClip;
}
}//package kaboomBot_spillGames_NGv1_fla
Section 44
//mc_controlPad17_191 (kaboomBot_spillGames_NGv1_fla.mc_controlPad17_191)
package kaboomBot_spillGames_NGv1_fla {
import flash.display.*;
public dynamic class mc_controlPad17_191 extends MovieClip {
public var prompt_mc:MovieClip;
public var controllerDrone_mc:MovieClip;
}
}//package kaboomBot_spillGames_NGv1_fla
Section 45
//mc_controlPad18_194 (kaboomBot_spillGames_NGv1_fla.mc_controlPad18_194)
package kaboomBot_spillGames_NGv1_fla {
import flash.display.*;
public dynamic class mc_controlPad18_194 extends MovieClip {
public var prompt_mc:MovieClip;
public var controllerDrone_mc:MovieClip;
}
}//package kaboomBot_spillGames_NGv1_fla
Section 46
//mc_controlPad19_197 (kaboomBot_spillGames_NGv1_fla.mc_controlPad19_197)
package kaboomBot_spillGames_NGv1_fla {
import flash.display.*;
public dynamic class mc_controlPad19_197 extends MovieClip {
public var prompt_mc:MovieClip;
public var controllerDrone_mc:MovieClip;
}
}//package kaboomBot_spillGames_NGv1_fla
Section 47
//mc_controlPad2_143 (kaboomBot_spillGames_NGv1_fla.mc_controlPad2_143)
package kaboomBot_spillGames_NGv1_fla {
import flash.display.*;
public dynamic class mc_controlPad2_143 extends MovieClip {
public var prompt_mc:MovieClip;
public var controllerDrone_mc:MovieClip;
}
}//package kaboomBot_spillGames_NGv1_fla
Section 48
//mc_controlPad20_200 (kaboomBot_spillGames_NGv1_fla.mc_controlPad20_200)
package kaboomBot_spillGames_NGv1_fla {
import flash.display.*;
public dynamic class mc_controlPad20_200 extends MovieClip {
public var prompt_mc:MovieClip;
public var controllerDrone_mc:MovieClip;
}
}//package kaboomBot_spillGames_NGv1_fla
Section 49
//mc_controlPad3_148 (kaboomBot_spillGames_NGv1_fla.mc_controlPad3_148)
package kaboomBot_spillGames_NGv1_fla {
import flash.display.*;
public dynamic class mc_controlPad3_148 extends MovieClip {
public var prompt_mc:MovieClip;
public var controllerDrone_mc:MovieClip;
}
}//package kaboomBot_spillGames_NGv1_fla
Section 50
//mc_controlPad4_151 (kaboomBot_spillGames_NGv1_fla.mc_controlPad4_151)
package kaboomBot_spillGames_NGv1_fla {
import flash.display.*;
public dynamic class mc_controlPad4_151 extends MovieClip {
public var prompt_mc:MovieClip;
public var controllerDrone_mc:MovieClip;
}
}//package kaboomBot_spillGames_NGv1_fla
Section 51
//mc_controlPad5_154 (kaboomBot_spillGames_NGv1_fla.mc_controlPad5_154)
package kaboomBot_spillGames_NGv1_fla {
import flash.display.*;
public dynamic class mc_controlPad5_154 extends MovieClip {
public var prompt_mc:MovieClip;
public var controllerDrone_mc:MovieClip;
}
}//package kaboomBot_spillGames_NGv1_fla
Section 52
//mc_controlPad6_157 (kaboomBot_spillGames_NGv1_fla.mc_controlPad6_157)
package kaboomBot_spillGames_NGv1_fla {
import flash.display.*;
public dynamic class mc_controlPad6_157 extends MovieClip {
public var prompt_mc:MovieClip;
public var controllerDrone_mc:MovieClip;
}
}//package kaboomBot_spillGames_NGv1_fla
Section 53
//mc_controlPad7_161 (kaboomBot_spillGames_NGv1_fla.mc_controlPad7_161)
package kaboomBot_spillGames_NGv1_fla {
import flash.display.*;
public dynamic class mc_controlPad7_161 extends MovieClip {
public var prompt_mc:MovieClip;
public var controllerDrone_mc:MovieClip;
}
}//package kaboomBot_spillGames_NGv1_fla
Section 54
//mc_controlPad8_164 (kaboomBot_spillGames_NGv1_fla.mc_controlPad8_164)
package kaboomBot_spillGames_NGv1_fla {
import flash.display.*;
public dynamic class mc_controlPad8_164 extends MovieClip {
public var prompt_mc:MovieClip;
public var controllerDrone_mc:MovieClip;
}
}//package kaboomBot_spillGames_NGv1_fla
Section 55
//mc_controlPad9_167 (kaboomBot_spillGames_NGv1_fla.mc_controlPad9_167)
package kaboomBot_spillGames_NGv1_fla {
import flash.display.*;
public dynamic class mc_controlPad9_167 extends MovieClip {
public var prompt_mc:MovieClip;
public var controllerDrone_mc:MovieClip;
}
}//package kaboomBot_spillGames_NGv1_fla
Section 56
//mc_fader_118 (kaboomBot_spillGames_NGv1_fla.mc_fader_118)
package kaboomBot_spillGames_NGv1_fla {
import flash.display.*;
public dynamic class mc_fader_118 extends MovieClip {
public function mc_fader_118(){
addFrameScript(0, frame1, 10, frame11);
}
function frame1(){
stop();
}
function frame11(){
stop();
gotoAndStop(1);
}
}
}//package kaboomBot_spillGames_NGv1_fla
Section 57
//mc_howTo_123 (kaboomBot_spillGames_NGv1_fla.mc_howTo_123)
package kaboomBot_spillGames_NGv1_fla {
import flash.display.*;
import spill.localisation.*;
public dynamic class mc_howTo_123 extends MovieClip {
public var __id17_:LocalizedTextField;
public var __id14_:LocalizedTextField;
public var __id15_:LocalizedTextField;
public var __id16_:LocalizedTextField;
public function mc_howTo_123(){
__setProp___id16__mc_howTo_Layer1_1();
__setProp___id14__mc_howTo_Layer1_1();
__setProp___id17__mc_howTo_Layer1_1();
__setProp___id15__mc_howTo_Layer1_1();
}
function __setProp___id15__mc_howTo_Layer1_1(){
try {
__id15_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id15_.text = "{ui_howto2}";
__id15_.textColor = 0xFFFFFF;
__id15_.textSize = 10;
__id15_.bold = false;
__id15_.disableWordwrap = false;
__id15_.embedFonts = true;
__id15_.font = "fnt_timesNewRoman*";
__id15_.hAlign = "left";
__id15_.multiline = false;
__id15_.vAlign = "top";
__id15_.antiAliasType = "advanced";
__id15_.glowBlur = 3;
__id15_.glowColor = 0;
__id15_.useGlowFilter = false;
__id15_.glowQuality = 2;
__id15_.glowStrength = 5;
__id15_.gridFitType = "none";
__id15_.italic = false;
__id15_.selectable = false;
__id15_.underline = false;
try {
__id15_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id16__mc_howTo_Layer1_1(){
try {
__id16_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id16_.text = "{ui_howto4}";
__id16_.textColor = 0xFFFFFF;
__id16_.textSize = 10;
__id16_.bold = false;
__id16_.disableWordwrap = false;
__id16_.embedFonts = true;
__id16_.font = "fnt_timesNewRoman*";
__id16_.hAlign = "left";
__id16_.multiline = false;
__id16_.vAlign = "top";
__id16_.antiAliasType = "advanced";
__id16_.glowBlur = 3;
__id16_.glowColor = 0;
__id16_.useGlowFilter = false;
__id16_.glowQuality = 2;
__id16_.glowStrength = 5;
__id16_.gridFitType = "none";
__id16_.italic = false;
__id16_.selectable = false;
__id16_.underline = false;
try {
__id16_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id14__mc_howTo_Layer1_1(){
try {
__id14_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id14_.text = "{ui_howto1}";
__id14_.textColor = 0xFFFFFF;
__id14_.textSize = 10;
__id14_.bold = false;
__id14_.disableWordwrap = false;
__id14_.embedFonts = true;
__id14_.font = "fnt_timesNewRoman*";
__id14_.hAlign = "left";
__id14_.multiline = false;
__id14_.vAlign = "top";
__id14_.antiAliasType = "advanced";
__id14_.glowBlur = 3;
__id14_.glowColor = 0;
__id14_.useGlowFilter = false;
__id14_.glowQuality = 2;
__id14_.glowStrength = 5;
__id14_.gridFitType = "none";
__id14_.italic = false;
__id14_.selectable = false;
__id14_.underline = false;
try {
__id14_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id17__mc_howTo_Layer1_1(){
try {
__id17_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id17_.text = "{ui_howto3}";
__id17_.textColor = 0xFFFFFF;
__id17_.textSize = 10;
__id17_.bold = false;
__id17_.disableWordwrap = false;
__id17_.embedFonts = true;
__id17_.font = "fnt_timesNewRoman*";
__id17_.hAlign = "left";
__id17_.multiline = false;
__id17_.vAlign = "top";
__id17_.antiAliasType = "advanced";
__id17_.glowBlur = 3;
__id17_.glowColor = 0;
__id17_.useGlowFilter = false;
__id17_.glowQuality = 2;
__id17_.glowStrength = 5;
__id17_.gridFitType = "none";
__id17_.italic = false;
__id17_.selectable = false;
__id17_.underline = false;
try {
__id17_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package kaboomBot_spillGames_NGv1_fla
Section 58
//mc_kaboombotCOntrolPadui_135 (kaboomBot_spillGames_NGv1_fla.mc_kaboombotCOntrolPadui_135)
package kaboomBot_spillGames_NGv1_fla {
import flash.display.*;
import spill.localisation.*;
public dynamic class mc_kaboombotCOntrolPadui_135 extends MovieClip {
public var __id23_:LocalizedTextField;
public function mc_kaboombotCOntrolPadui_135(){
__setProp___id23__mc_kaboombotCOntrolPadui_Layer1_1();
}
function __setProp___id23__mc_kaboombotCOntrolPadui_Layer1_1(){
try {
__id23_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id23_.text = "{ui_kaboombotControlPad}";
__id23_.textColor = 0xFFFFFF;
__id23_.textSize = 25;
__id23_.bold = false;
__id23_.disableWordwrap = false;
__id23_.embedFonts = true;
__id23_.font = "fnt_timesNewRoman*";
__id23_.hAlign = "left";
__id23_.multiline = false;
__id23_.vAlign = "top";
__id23_.antiAliasType = "advanced";
__id23_.glowBlur = 3;
__id23_.glowColor = 0;
__id23_.useGlowFilter = false;
__id23_.glowQuality = 2;
__id23_.glowStrength = 5;
__id23_.gridFitType = "none";
__id23_.italic = false;
__id23_.selectable = false;
__id23_.underline = false;
try {
__id23_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package kaboomBot_spillGames_NGv1_fla
Section 59
//mc_level1_124 (kaboomBot_spillGames_NGv1_fla.mc_level1_124)
package kaboomBot_spillGames_NGv1_fla {
import flash.display.*;
public dynamic class mc_level1_124 extends MovieClip {
public var target_mc:MovieClip;
public var bot_mc:MovieClip;
public var wall_mc:MovieClip;
}
}//package kaboomBot_spillGames_NGv1_fla
Section 60
//mc_level10_168 (kaboomBot_spillGames_NGv1_fla.mc_level10_168)
package kaboomBot_spillGames_NGv1_fla {
import flash.display.*;
public dynamic class mc_level10_168 extends MovieClip {
public var target_mc:MovieClip;
public var bot_mc:MovieClip;
public var wall_mc:MovieClip;
}
}//package kaboomBot_spillGames_NGv1_fla
Section 61
//mc_level11_171 (kaboomBot_spillGames_NGv1_fla.mc_level11_171)
package kaboomBot_spillGames_NGv1_fla {
import flash.display.*;
public dynamic class mc_level11_171 extends MovieClip {
public var target_mc:MovieClip;
public var bot_mc:MovieClip;
public var wall_mc:MovieClip;
}
}//package kaboomBot_spillGames_NGv1_fla
Section 62
//mc_level12_174 (kaboomBot_spillGames_NGv1_fla.mc_level12_174)
package kaboomBot_spillGames_NGv1_fla {
import flash.display.*;
public dynamic class mc_level12_174 extends MovieClip {
public var target_mc:MovieClip;
public var bot_mc:MovieClip;
public var wall_mc:MovieClip;
}
}//package kaboomBot_spillGames_NGv1_fla
Section 63
//mc_level13_177 (kaboomBot_spillGames_NGv1_fla.mc_level13_177)
package kaboomBot_spillGames_NGv1_fla {
import flash.display.*;
public dynamic class mc_level13_177 extends MovieClip {
public var target_mc:MovieClip;
public var bot_mc:MovieClip;
public var wall_mc:MovieClip;
}
}//package kaboomBot_spillGames_NGv1_fla
Section 64
//mc_level14_180 (kaboomBot_spillGames_NGv1_fla.mc_level14_180)
package kaboomBot_spillGames_NGv1_fla {
import flash.display.*;
public dynamic class mc_level14_180 extends MovieClip {
public var target_mc:MovieClip;
public var bot_mc:MovieClip;
public var wall_mc:MovieClip;
}
}//package kaboomBot_spillGames_NGv1_fla
Section 65
//mc_level15_183 (kaboomBot_spillGames_NGv1_fla.mc_level15_183)
package kaboomBot_spillGames_NGv1_fla {
import flash.display.*;
public dynamic class mc_level15_183 extends MovieClip {
public var target_mc:MovieClip;
public var bot_mc:MovieClip;
public var wall_mc:MovieClip;
}
}//package kaboomBot_spillGames_NGv1_fla
Section 66
//mc_level16_186 (kaboomBot_spillGames_NGv1_fla.mc_level16_186)
package kaboomBot_spillGames_NGv1_fla {
import flash.display.*;
public dynamic class mc_level16_186 extends MovieClip {
public var target_mc:MovieClip;
public var bot_mc:MovieClip;
public var wall_mc:MovieClip;
}
}//package kaboomBot_spillGames_NGv1_fla
Section 67
//mc_level17_189 (kaboomBot_spillGames_NGv1_fla.mc_level17_189)
package kaboomBot_spillGames_NGv1_fla {
import flash.display.*;
public dynamic class mc_level17_189 extends MovieClip {
public var target_mc:MovieClip;
public var bot_mc:MovieClip;
public var wall_mc:MovieClip;
}
}//package kaboomBot_spillGames_NGv1_fla
Section 68
//mc_level18_192 (kaboomBot_spillGames_NGv1_fla.mc_level18_192)
package kaboomBot_spillGames_NGv1_fla {
import flash.display.*;
public dynamic class mc_level18_192 extends MovieClip {
public var target_mc:MovieClip;
public var bot_mc:MovieClip;
public var wall_mc:MovieClip;
}
}//package kaboomBot_spillGames_NGv1_fla
Section 69
//mc_level19_195 (kaboomBot_spillGames_NGv1_fla.mc_level19_195)
package kaboomBot_spillGames_NGv1_fla {
import flash.display.*;
public dynamic class mc_level19_195 extends MovieClip {
public var target_mc:MovieClip;
public var bot_mc:MovieClip;
public var wall_mc:MovieClip;
}
}//package kaboomBot_spillGames_NGv1_fla
Section 70
//mc_level2_141 (kaboomBot_spillGames_NGv1_fla.mc_level2_141)
package kaboomBot_spillGames_NGv1_fla {
import flash.display.*;
public dynamic class mc_level2_141 extends MovieClip {
public var target_mc:MovieClip;
public var bot_mc:MovieClip;
public var wall_mc:MovieClip;
}
}//package kaboomBot_spillGames_NGv1_fla
Section 71
//mc_level20_198 (kaboomBot_spillGames_NGv1_fla.mc_level20_198)
package kaboomBot_spillGames_NGv1_fla {
import flash.display.*;
public dynamic class mc_level20_198 extends MovieClip {
public var target_mc:MovieClip;
public var bot_mc:MovieClip;
public var wall_mc:MovieClip;
}
}//package kaboomBot_spillGames_NGv1_fla
Section 72
//mc_level3_144 (kaboomBot_spillGames_NGv1_fla.mc_level3_144)
package kaboomBot_spillGames_NGv1_fla {
import flash.display.*;
public dynamic class mc_level3_144 extends MovieClip {
public var target_mc:MovieClip;
public var bot_mc:MovieClip;
public var wall_mc:MovieClip;
}
}//package kaboomBot_spillGames_NGv1_fla
Section 73
//mc_level4_149 (kaboomBot_spillGames_NGv1_fla.mc_level4_149)
package kaboomBot_spillGames_NGv1_fla {
import flash.display.*;
public dynamic class mc_level4_149 extends MovieClip {
public var target_mc:MovieClip;
public var bot_mc:MovieClip;
public var wall_mc:MovieClip;
}
}//package kaboomBot_spillGames_NGv1_fla
Section 74
//mc_level5_152 (kaboomBot_spillGames_NGv1_fla.mc_level5_152)
package kaboomBot_spillGames_NGv1_fla {
import flash.display.*;
public dynamic class mc_level5_152 extends MovieClip {
public var target_mc:MovieClip;
public var bot_mc:MovieClip;
public var wall_mc:MovieClip;
}
}//package kaboomBot_spillGames_NGv1_fla
Section 75
//mc_level6_155 (kaboomBot_spillGames_NGv1_fla.mc_level6_155)
package kaboomBot_spillGames_NGv1_fla {
import flash.display.*;
public dynamic class mc_level6_155 extends MovieClip {
public var target_mc:MovieClip;
public var bot_mc:MovieClip;
public var wall_mc:MovieClip;
}
}//package kaboomBot_spillGames_NGv1_fla
Section 76
//mc_level7_158 (kaboomBot_spillGames_NGv1_fla.mc_level7_158)
package kaboomBot_spillGames_NGv1_fla {
import flash.display.*;
public dynamic class mc_level7_158 extends MovieClip {
public var target_mc:MovieClip;
public var bot_mc:MovieClip;
public var wall_mc:MovieClip;
}
}//package kaboomBot_spillGames_NGv1_fla
Section 77
//mc_level8_162 (kaboomBot_spillGames_NGv1_fla.mc_level8_162)
package kaboomBot_spillGames_NGv1_fla {
import flash.display.*;
public dynamic class mc_level8_162 extends MovieClip {
public var target_mc:MovieClip;
public var bot_mc:MovieClip;
public var wall_mc:MovieClip;
}
}//package kaboomBot_spillGames_NGv1_fla
Section 78
//mc_level9_165 (kaboomBot_spillGames_NGv1_fla.mc_level9_165)
package kaboomBot_spillGames_NGv1_fla {
import flash.display.*;
public dynamic class mc_level9_165 extends MovieClip {
public var target_mc:MovieClip;
public var bot_mc:MovieClip;
public var wall_mc:MovieClip;
}
}//package kaboomBot_spillGames_NGv1_fla
Section 79
//mc_new_207 (kaboomBot_spillGames_NGv1_fla.mc_new_207)
package kaboomBot_spillGames_NGv1_fla {
import flash.display.*;
import spill.localisation.*;
public dynamic class mc_new_207 extends MovieClip {
public var __id31_:LocalizedTextField;
public function mc_new_207(){
__setProp___id31__mc_new_Layer1_1();
}
function __setProp___id31__mc_new_Layer1_1(){
try {
__id31_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id31_.text = "{ui_new}";
__id31_.textColor = 0xFFFFFF;
__id31_.textSize = 25;
__id31_.bold = false;
__id31_.disableWordwrap = false;
__id31_.embedFonts = true;
__id31_.font = "fnt_timesNewRoman*";
__id31_.hAlign = "left";
__id31_.multiline = false;
__id31_.vAlign = "top";
__id31_.antiAliasType = "advanced";
__id31_.glowBlur = 3;
__id31_.glowColor = 0;
__id31_.useGlowFilter = false;
__id31_.glowQuality = 2;
__id31_.glowStrength = 5;
__id31_.gridFitType = "none";
__id31_.italic = false;
__id31_.selectable = false;
__id31_.underline = false;
try {
__id31_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package kaboomBot_spillGames_NGv1_fla
Section 80
//mc_newGamePrompt_87 (kaboomBot_spillGames_NGv1_fla.mc_newGamePrompt_87)
package kaboomBot_spillGames_NGv1_fla {
import flash.display.*;
import spill.localisation.*;
public dynamic class mc_newGamePrompt_87 extends MovieClip {
public var yes_btn:MovieClip;
public var __id7_:LocalizedTextField;
public var __id8_:LocalizedTextField;
public var no_btn:MovieClip;
public function mc_newGamePrompt_87(){
__setProp___id7__mc_newGamePrompt_text_1();
__setProp___id8__mc_newGamePrompt_text_1();
}
function __setProp___id7__mc_newGamePrompt_text_1(){
try {
__id7_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id7_.text = "{ui_doyou}";
__id7_.textColor = 0xFFFFFF;
__id7_.textSize = 16;
__id7_.bold = false;
__id7_.disableWordwrap = false;
__id7_.embedFonts = true;
__id7_.font = "fnt_timesNewRoman*";
__id7_.hAlign = "center";
__id7_.multiline = false;
__id7_.vAlign = "top";
__id7_.antiAliasType = "advanced";
__id7_.glowBlur = 3;
__id7_.glowColor = 0;
__id7_.useGlowFilter = false;
__id7_.glowQuality = 2;
__id7_.glowStrength = 5;
__id7_.gridFitType = "none";
__id7_.italic = false;
__id7_.selectable = false;
__id7_.underline = false;
try {
__id7_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id8__mc_newGamePrompt_text_1(){
try {
__id8_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id8_.text = "{ui_selectingNew}";
__id8_.textColor = 0xFFFFFF;
__id8_.textSize = 16;
__id8_.bold = false;
__id8_.disableWordwrap = false;
__id8_.embedFonts = true;
__id8_.font = "fnt_timesNewRoman*";
__id8_.hAlign = "center";
__id8_.multiline = false;
__id8_.vAlign = "top";
__id8_.antiAliasType = "advanced";
__id8_.glowBlur = 3;
__id8_.glowColor = 0;
__id8_.useGlowFilter = false;
__id8_.glowQuality = 2;
__id8_.glowStrength = 5;
__id8_.gridFitType = "none";
__id8_.italic = false;
__id8_.selectable = false;
__id8_.underline = false;
try {
__id8_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package kaboomBot_spillGames_NGv1_fla
Section 81
//mc_prompt_130 (kaboomBot_spillGames_NGv1_fla.mc_prompt_130)
package kaboomBot_spillGames_NGv1_fla {
import flash.display.*;
import spill.localisation.*;
public dynamic class mc_prompt_130 extends MovieClip {
public var __id19_:LocalizedTextField;
public function mc_prompt_130(){
__setProp___id19__mc_prompt_Layer1_1();
}
function __setProp___id19__mc_prompt_Layer1_1(){
try {
__id19_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id19_.text = "{ui_place}";
__id19_.textColor = 0xFFFFFF;
__id19_.textSize = 10;
__id19_.bold = false;
__id19_.disableWordwrap = false;
__id19_.embedFonts = true;
__id19_.font = "fnt_timesNewRoman*";
__id19_.hAlign = "left";
__id19_.multiline = false;
__id19_.vAlign = "top";
__id19_.antiAliasType = "advanced";
__id19_.glowBlur = 3;
__id19_.glowColor = 0;
__id19_.useGlowFilter = false;
__id19_.glowQuality = 2;
__id19_.glowStrength = 5;
__id19_.gridFitType = "none";
__id19_.italic = false;
__id19_.selectable = false;
__id19_.underline = false;
try {
__id19_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package kaboomBot_spillGames_NGv1_fla
Section 82
//mc_scoresContainer_204 (kaboomBot_spillGames_NGv1_fla.mc_scoresContainer_204)
package kaboomBot_spillGames_NGv1_fla {
import flash.display.*;
import spill.localisation.*;
public dynamic class mc_scoresContainer_204 extends MovieClip {
public var __id28_:LocalizedTextField;
public var __id27_:LocalizedTextField;
public function mc_scoresContainer_204(){
__setProp___id28__mc_scoresContainer_Layer1_1();
__setProp___id27__mc_scoresContainer_Layer1_1();
}
function __setProp___id28__mc_scoresContainer_Layer1_1(){
try {
__id28_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id28_.text = "{ui_yourscore}";
__id28_.textColor = 0xFFCC00;
__id28_.textSize = 25;
__id28_.bold = false;
__id28_.disableWordwrap = false;
__id28_.embedFonts = true;
__id28_.font = "fnt_timesNewRoman*";
__id28_.hAlign = "center";
__id28_.multiline = false;
__id28_.vAlign = "top";
__id28_.antiAliasType = "advanced";
__id28_.glowBlur = 3;
__id28_.glowColor = 0;
__id28_.useGlowFilter = false;
__id28_.glowQuality = 2;
__id28_.glowStrength = 5;
__id28_.gridFitType = "none";
__id28_.italic = false;
__id28_.selectable = false;
__id28_.underline = false;
try {
__id28_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id27__mc_scoresContainer_Layer1_1(){
try {
__id27_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id27_.text = "{ui_bestscore}";
__id27_.textColor = 0x999999;
__id27_.textSize = 25;
__id27_.bold = false;
__id27_.disableWordwrap = false;
__id27_.embedFonts = true;
__id27_.font = "fnt_timesNewRoman*";
__id27_.hAlign = "center";
__id27_.multiline = false;
__id27_.vAlign = "top";
__id27_.antiAliasType = "advanced";
__id27_.glowBlur = 3;
__id27_.glowColor = 0;
__id27_.useGlowFilter = false;
__id27_.glowQuality = 2;
__id27_.glowStrength = 5;
__id27_.gridFitType = "none";
__id27_.italic = false;
__id27_.selectable = false;
__id27_.underline = false;
try {
__id27_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package kaboomBot_spillGames_NGv1_fla
Section 83
//mc_section_134 (kaboomBot_spillGames_NGv1_fla.mc_section_134)
package kaboomBot_spillGames_NGv1_fla {
import flash.display.*;
import spill.localisation.*;
public dynamic class mc_section_134 extends MovieClip {
public var __id22_:LocalizedTextField;
public function mc_section_134(){
__setProp___id22__mc_section_Layer1_1();
}
function __setProp___id22__mc_section_Layer1_1(){
try {
__id22_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id22_.text = "{ui_section}";
__id22_.textColor = 0xFFB800;
__id22_.textSize = 25;
__id22_.bold = false;
__id22_.disableWordwrap = false;
__id22_.embedFonts = true;
__id22_.font = "fnt_timesNewRoman*";
__id22_.hAlign = "left";
__id22_.multiline = false;
__id22_.vAlign = "top";
__id22_.antiAliasType = "advanced";
__id22_.glowBlur = 3;
__id22_.glowColor = 0;
__id22_.useGlowFilter = false;
__id22_.glowQuality = 2;
__id22_.glowStrength = 5;
__id22_.gridFitType = "none";
__id22_.italic = false;
__id22_.selectable = false;
__id22_.underline = false;
try {
__id22_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package kaboomBot_spillGames_NGv1_fla
Section 84
//mc_wall10_169 (kaboomBot_spillGames_NGv1_fla.mc_wall10_169)
package kaboomBot_spillGames_NGv1_fla {
import flash.display.*;
public dynamic class mc_wall10_169 extends MovieClip {
public var obsCross1_mc:MovieClip;
}
}//package kaboomBot_spillGames_NGv1_fla
Section 85
//mc_wall11_172 (kaboomBot_spillGames_NGv1_fla.mc_wall11_172)
package kaboomBot_spillGames_NGv1_fla {
import flash.display.*;
public dynamic class mc_wall11_172 extends MovieClip {
public var obsCross2_mc:MovieClip;
public var obsCross3_mc:MovieClip;
public var obsCross1_mc:MovieClip;
}
}//package kaboomBot_spillGames_NGv1_fla
Section 86
//mc_wall14_181 (kaboomBot_spillGames_NGv1_fla.mc_wall14_181)
package kaboomBot_spillGames_NGv1_fla {
import flash.display.*;
public dynamic class mc_wall14_181 extends MovieClip {
public var obsCross2_mc:MovieClip;
public var obsCross1_mc:MovieClip;
}
}//package kaboomBot_spillGames_NGv1_fla
Section 87
//mc_wall15_184 (kaboomBot_spillGames_NGv1_fla.mc_wall15_184)
package kaboomBot_spillGames_NGv1_fla {
import flash.display.*;
public dynamic class mc_wall15_184 extends MovieClip {
public var obsCross2_mc:MovieClip;
public var obsCross3_mc:MovieClip;
public var obsCross1_mc:MovieClip;
}
}//package kaboomBot_spillGames_NGv1_fla
Section 88
//mc_wall16_187 (kaboomBot_spillGames_NGv1_fla.mc_wall16_187)
package kaboomBot_spillGames_NGv1_fla {
import flash.display.*;
public dynamic class mc_wall16_187 extends MovieClip {
public var obsCross1_mc:MovieClip;
}
}//package kaboomBot_spillGames_NGv1_fla
Section 89
//mc_wall17_190 (kaboomBot_spillGames_NGv1_fla.mc_wall17_190)
package kaboomBot_spillGames_NGv1_fla {
import flash.display.*;
public dynamic class mc_wall17_190 extends MovieClip {
public var obsCir1_mc:MovieClip;
public var obsCir2_mc:MovieClip;
}
}//package kaboomBot_spillGames_NGv1_fla
Section 90
//mc_wall18_193 (kaboomBot_spillGames_NGv1_fla.mc_wall18_193)
package kaboomBot_spillGames_NGv1_fla {
import flash.display.*;
public dynamic class mc_wall18_193 extends MovieClip {
public var obsCir1_mc:MovieClip;
}
}//package kaboomBot_spillGames_NGv1_fla
Section 91
//mc_wall19_196 (kaboomBot_spillGames_NGv1_fla.mc_wall19_196)
package kaboomBot_spillGames_NGv1_fla {
import flash.display.*;
public dynamic class mc_wall19_196 extends MovieClip {
public var obsCir1_mc:MovieClip;
public var obsCross1_mc:MovieClip;
}
}//package kaboomBot_spillGames_NGv1_fla
Section 92
//mc_wall20_199 (kaboomBot_spillGames_NGv1_fla.mc_wall20_199)
package kaboomBot_spillGames_NGv1_fla {
import flash.display.*;
public dynamic class mc_wall20_199 extends MovieClip {
public var obsCross5_mc:MovieClip;
public var obsCross2_mc:MovieClip;
public var obsCross6_mc:MovieClip;
public var obsCross3_mc:MovieClip;
public var obsCross1_mc:MovieClip;
public var obsCross4_mc:MovieClip;
}
}//package kaboomBot_spillGames_NGv1_fla
Section 93
//mc_wall3_145 (kaboomBot_spillGames_NGv1_fla.mc_wall3_145)
package kaboomBot_spillGames_NGv1_fla {
import flash.display.*;
public dynamic class mc_wall3_145 extends MovieClip {
public var obsCir1_mc:MovieClip;
}
}//package kaboomBot_spillGames_NGv1_fla
Section 94
//mc_wall4_150 (kaboomBot_spillGames_NGv1_fla.mc_wall4_150)
package kaboomBot_spillGames_NGv1_fla {
import flash.display.*;
public dynamic class mc_wall4_150 extends MovieClip {
public var obsCir1_mc:MovieClip;
}
}//package kaboomBot_spillGames_NGv1_fla
Section 95
//mc_wall7_159 (kaboomBot_spillGames_NGv1_fla.mc_wall7_159)
package kaboomBot_spillGames_NGv1_fla {
import flash.display.*;
public dynamic class mc_wall7_159 extends MovieClip {
public var obsCir1_mc:MovieClip;
public var obsCross1_mc:MovieClip;
}
}//package kaboomBot_spillGames_NGv1_fla
Section 96
//mc_wall8_163 (kaboomBot_spillGames_NGv1_fla.mc_wall8_163)
package kaboomBot_spillGames_NGv1_fla {
import flash.display.*;
public dynamic class mc_wall8_163 extends MovieClip {
public var obsCross1_mc:MovieClip;
}
}//package kaboomBot_spillGames_NGv1_fla
Section 97
//Brand (spill.localisation.Brand)
package spill.localisation {
import flash.xml.*;
public class Brand {
public var domain:String;
public var useGoogleAnalitics:Boolean;// = true
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 portalGroup:uint;
public var emailLink:String;// = "game"
private static const topLevelDoubles:String = ((((((((((((((("ac.cn,ac.jp,ac.uk,ad.jp,adm.br,adv.br,agr.br," + "ah.cn,am.br,arq.br,art.br,asn.au,ato.br,av.tr,bel.tr,bio.br,biz.tr,bj.cn,bmd.br,") + "cim.br,cng.br,cnt.br,co.at,co.jp,co.uk,com.au,com.br,com.cn,com.eg,com.hk,com.mx,") + "com.ru,com.tr,com.tw,conf.au,cq.cn,csiro.au,dr.tr,ecn.br,edu.au,edu.br,edu.tr,") + "emu.id.au,eng.br,esp.br,etc.br,eti.br,eun.eg,far.br,fj.cn,fm.br,fnd.br,fot.br,") + "fst.br,g12.br,gb.com,gb.net,gd.cn,gen.tr,ggf.br,gob.mx,gov.au,gov.br,gov.cn,") + "gov.hk,gov.tr,gr.jp,gs.cn,gx.cn,gz.cn,ha.cn,hb.cn,he.cn,hi.cn,hk.cn,hl.cn,hn.cn,") + "id.au,idv.tw,imb.br,ind.br,inf.br,info.au,info.tr,jl.cn,jor.br,js.cn,jx.cn,k12.tr,") + "lel.br,ln.cn,ltd.uk,mat.br,me.uk,med.br,mil.br,mil.tr,mo.cn,mus.br,name.tr,ne.jp,") + "net.au,net.br,net.cn,net.eg,net.hk,net.lu,net.mx,net.ru,net.tr,net.tw,net.uk,") + "nm.cn,no.com,nom.br,not.br,ntr.br,nx.cn,odo.br,oop.br,or.at,or.jp,org.au,org.br,") + "org.cn,org.hk,org.lu,org.ru,org.tr,org.tw,org.uk,plc.uk,pol.tr,pp.ru,ppg.br,pro.br,") + "psc.br,psi.br,qh.cn,qsl.br,rec.br,sc.cn,sd.cn,se.com,se.net,sh.cn,slg.br,sn.cn,") + "srv.br,sx.cn,tel.tr,tj.cn,tmp.br,trd.br,tur.br,tv.br,tw.cn,uk.com,uk.net,vet.br,") + "wattle.id.au,web.tr,xj.cn,xz.cn,yn.cn,zj.cn,zlg.br,co.nr,co.nz,com.fr,com.ph,com.ar,") + "com.id,com.in");
public function Brand(){
moreLink = "";
emailLink = "game";
useGoogleAnalitics = true;
hasSendToFriendLink = true;
preferedLanguage = "";
isExternal = false;
hostingDomain = "";
super();
}
public function exportXML():XML{
var _local1:XML;
var _local2:XML;
var _local3:XML;
_local1 = <portal/>
;
_local1.@id = site_id;
_local1.@language = preferedLanguage;
_local1.@channel = portalGroup;
_local2 = <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);
}
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;
_local5 = ("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);
}
private function get utm_campaign():String{
if (isExternal){
return (("utm_campaign=" + hostingDomain));
};
return ("");
}
public function get backgroundColor():uint{
return (PortalGroup.backgroundColors[portalGroup]);
}
public function getPromotionLink(_arg1:String, _arg2:String, _arg3:Boolean, _arg4:String="", _arg5:String=""):String{
var _local6:String;
_local6 = ("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_term():String{
return ("utm_term=");
}
public function importXML(_arg1:XMLNode):void{
}
public function getSendToFriendLink(_arg1:String, _arg2:String, _arg3:Boolean, _arg4:String=""):String{
var _local5:String;
if (!hasSendToFriendLink){
return (getMoreGamesLink(_arg1, _arg3));
};
_local5 = ("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);
}
public static function stripSubDomain(_arg1:String):String{
var _local2:Array;
if (!_arg1){
return ("");
};
_local2 = _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 98
//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 99
//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 _local1:Array;
var _local2:Brand;
_local1 = new Array();
for each (_local2 in brands_by_domain) {
_local1.push(_local2);
};
return (_local1);
}
private static function addBrand(_arg1:Brand):Brand{
if (brands_by_domain[_arg1.domain]){
trace(("ERROR: Attempting to add duplicate brand by domain: " + _arg1.domain));
} else {
brands_by_domain[_arg1.domain] = _arg1;
};
if (brands_by_id[_arg1.site_id]){
trace(("ERROR: Attempting to add duplicate brand by id: " + _arg1.site_id));
} else {
brands_by_id[_arg1.site_id] = _arg1;
};
return (_arg1);
}
public static function initialize():void{
var _local1:Brand;
_local1 = new Brand();
_local1.site_id = 79;
_local1.domain = "www.agame.com";
_local1.preferedLanguage = "en_us";
_local1.portalGroup = PortalGroup.TEENS;
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 88;
_local1.domain = "www.gamesgames.com";
_local1.preferedLanguage = "en_us";
_local1.portalGroup = PortalGroup.FAMILY;
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 90;
_local1.domain = "www.girlsgogames.com";
_local1.preferedLanguage = "en_us";
_local1.portalGroup = PortalGroup.GIRL;
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 45;
_local1.domain = "www.a10.com";
_local1.preferedLanguage = "en_us";
_local1.portalGroup = PortalGroup.YOUNG_ADULTS;
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 92;
_local1.domain = "www.games.co.uk";
_local1.preferedLanguage = "en_uk";
_local1.portalGroup = PortalGroup.FAMILY;
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 107;
_local1.domain = "www.agame.co.uk";
_local1.preferedLanguage = "en_uk";
_local1.portalGroup = PortalGroup.TEENS;
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 102;
_local1.domain = "www.girlsgogames.co.uk";
_local1.preferedLanguage = "en_uk";
_local1.portalGroup = PortalGroup.GIRL;
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 2;
_local1.domain = "www.game.com.cn";
_local1.moreLink = "moregames/";
_local1.preferedLanguage = "cn";
_local1.portalGroup = PortalGroup.NONE;
_local1.useGoogleAnalitics = false;
_local1.hasSendToFriendLink = false;
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 25;
_local1.domain = "www.spel.nl";
_local1.portalGroup = PortalGroup.TEENS;
_local1.preferedLanguage = "nl";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 1;
_local1.domain = "www.spelletjes.nl";
_local1.emailLink = "spel";
_local1.portalGroup = PortalGroup.FAMILY;
_local1.preferedLanguage = "nl";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 93;
_local1.domain = "www.girlsgogames.nl";
_local1.emailLink = "spel";
_local1.portalGroup = PortalGroup.GIRL;
_local1.preferedLanguage = "nl";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 12;
_local1.domain = "www.jeu.fr";
_local1.emailLink = "jeu";
_local1.portalGroup = PortalGroup.TEENS;
_local1.preferedLanguage = "fr";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 95;
_local1.domain = "www.girlsgogames.fr";
_local1.emailLink = "jeu";
_local1.portalGroup = PortalGroup.GIRL;
_local1.preferedLanguage = "fr";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 11;
_local1.domain = "www.jeux.fr";
_local1.emailLink = "jeu";
_local1.portalGroup = PortalGroup.FAMILY;
_local1.preferedLanguage = "fr";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 26;
_local1.domain = "www.spielen.com";
_local1.emailLink = "spiel";
_local1.portalGroup = PortalGroup.TEENS;
_local1.preferedLanguage = "de";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 94;
_local1.domain = "www.girlsgogames.de";
_local1.emailLink = "spiel";
_local1.portalGroup = PortalGroup.GIRL;
_local1.preferedLanguage = "de";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 5;
_local1.domain = "www.jetztspielen.de";
_local1.emailLink = "spiel";
_local1.portalGroup = PortalGroup.FAMILY;
_local1.preferedLanguage = "de";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 109;
_local1.domain = "www.minigry.pl";
_local1.emailLink = "gra";
_local1.portalGroup = PortalGroup.TEENS;
_local1.preferedLanguage = "pl";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 16;
_local1.domain = "www.gry.pl";
_local1.emailLink = "gra";
_local1.portalGroup = PortalGroup.FAMILY;
_local1.preferedLanguage = "pl";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 98;
_local1.domain = "www.girlsgogames.pl";
_local1.emailLink = "gra";
_local1.portalGroup = PortalGroup.GIRL;
_local1.preferedLanguage = "pl";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 108;
_local1.domain = "www.spel.se";
_local1.emailLink = "spel_";
_local1.portalGroup = PortalGroup.TEENS;
_local1.preferedLanguage = "se";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 100;
_local1.domain = "www.girlsgogames.se";
_local1.emailLink = "spel_";
_local1.portalGroup = PortalGroup.GIRL;
_local1.preferedLanguage = "se";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 44;
_local1.domain = "www.spela.se";
_local1.emailLink = "spel_";
_local1.preferedLanguage = "se";
_local1.portalGroup = PortalGroup.FAMILY;
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 106;
_local1.domain = "www.giocaregratis.it";
_local1.emailLink = "gioco";
_local1.portalGroup = PortalGroup.TEENS;
_local1.preferedLanguage = "it";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 15;
_local1.domain = "www.gioco.it";
_local1.emailLink = "gioco";
_local1.portalGroup = PortalGroup.FAMILY;
_local1.preferedLanguage = "it";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 99;
_local1.domain = "www.girlsgogames.it";
_local1.emailLink = "gioco";
_local1.portalGroup = PortalGroup.GIRL;
_local1.preferedLanguage = "it";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 97;
_local1.domain = "www.zapjuegos.com";
_local1.emailLink = "juego";
_local1.portalGroup = PortalGroup.TEENS;
_local1.preferedLanguage = "es";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 86;
_local1.domain = "www.juegos.com";
_local1.emailLink = "juego";
_local1.portalGroup = PortalGroup.FAMILY;
_local1.preferedLanguage = "es";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 96;
_local1.domain = "www.juegosdechicas.com";
_local1.emailLink = "juego";
_local1.portalGroup = PortalGroup.GIRL;
_local1.preferedLanguage = "es";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 122;
_local1.domain = "www.girlsgogames.es";
_local1.emailLink = "juego";
_local1.portalGroup = PortalGroup.GIRL;
_local1.preferedLanguage = "es";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 125;
_local1.domain = "www.juegos.mx";
_local1.emailLink = "juego";
_local1.portalGroup = PortalGroup.TEENS;
_local1.preferedLanguage = "es";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 126;
_local1.domain = "www.juegosdechicas.mx";
_local1.emailLink = "juego";
_local1.portalGroup = PortalGroup.GIRL;
_local1.preferedLanguage = "es";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 127;
_local1.domain = "www.juegos.com.ar";
_local1.emailLink = "juego";
_local1.portalGroup = PortalGroup.TEENS;
_local1.preferedLanguage = "es";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 128;
_local1.domain = "www.juegosdechicas.com.ar";
_local1.emailLink = "juego";
_local1.portalGroup = PortalGroup.GIRL;
_local1.preferedLanguage = "es";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 91;
_local1.domain = "www.clickjogos.com";
_local1.emailLink = "jogo";
_local1.portalGroup = PortalGroup.TEENS;
_local1.preferedLanguage = "br";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 101;
_local1.domain = "www.girlsgogames.com.br";
_local1.emailLink = "jogo";
_local1.portalGroup = PortalGroup.GIRL;
_local1.preferedLanguage = "br";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 50;
_local1.domain = "www.ojogos.com.br";
_local1.emailLink = "jogo";
_local1.portalGroup = PortalGroup.FAMILY;
_local1.preferedLanguage = "br";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 55;
_local1.domain = "www.games.co.id";
_local1.emailLink = "permainanme";
_local1.portalGroup = PortalGroup.TEENS;
_local1.preferedLanguage = "id";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 105;
_local1.domain = "www.flashgames.ru";
_local1.emailLink = "igra";
_local1.portalGroup = PortalGroup.TEENS;
_local1.preferedLanguage = "ru";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 104;
_local1.domain = "www.girlsgogames.ru";
_local1.emailLink = "igra";
_local1.portalGroup = PortalGroup.GIRL;
_local1.preferedLanguage = "ru";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 103;
_local1.domain = "www.ourgames.ru";
_local1.emailLink = "igra";
_local1.portalGroup = PortalGroup.FAMILY;
_local1.preferedLanguage = "ru";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 24;
_local1.domain = "www.game.co.in";
_local1.emailLink = "game";
_local1.portalGroup = PortalGroup.TEENS;
_local1.preferedLanguage = "in";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 87;
_local1.domain = "www.ojogos.pt";
_local1.emailLink = "jogo";
_local1.portalGroup = PortalGroup.FAMILY;
_local1.preferedLanguage = "pt";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 120;
_local1.domain = "www.egames.jp";
_local1.emailLink = "game";
_local1.portalGroup = PortalGroup.TEENS;
_local1.preferedLanguage = "jp";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 121;
_local1.domain = "www.dailygame.com";
_local1.emailLink = "/game/";
_local1.portalGroup = PortalGroup.FAMILY;
_local1.preferedLanguage = "en_us";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 123;
_local1.domain = "www.zapapa.com";
_local1.emailLink = "game";
_local1.portalGroup = PortalGroup.ZAPAPA;
_local1.preferedLanguage = "en_us";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 124;
_local1.domain = "www.zapapa.nl";
_local1.emailLink = "game";
_local1.portalGroup = PortalGroup.HYVES;
_local1.preferedLanguage = "nl";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 0;
_local1.domain = "gamedev.dev.spilgames.com";
_local1.portalGroup = PortalGroup.FAMILY;
_local1.preferedLanguage = "en_us";
addBrand(_local1);
}
public static function exportXML():XML{
var _local1:XML;
var _local2:Brand;
_local1 = <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 100
//Language (spill.localisation.Language)
package spill.localisation {
import flash.xml.*;
public class Language {
public var references:Array;
public var name:String;
public var embedInputFonts:Boolean;// = true
public var forceFont:String;// = null
public var id:uint;
public var portal_groups:Array;
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){
embedFonts = true;
embedInputFonts = true;
forceFont = null;
references = [];
displayName = "";
super();
name = _arg1;
dname = _arg2;
portal_groups = new Array();
}
public function exportXML():XMLNode{
var _local1:XMLNode;
var _local2:XMLNode;
var _local3:Array;
var _local4:Array;
var _local5:int;
_local1 = 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;
_local2 = new XMLNode(1, "display_name");
_local2.firstChild = new XMLNode(3, displayName);
_local1.appendChild(_local2);
_local3 = [];
_local4 = PortalGroup.channelNames;
_local5 = 0;
while (_local5 < _local4.length) {
_local3.push(Brandings.getBrandByDomain(portal_groups[_local5]).site_id);
_local5++;
};
_local1.attributes.channels = _local3.join(",");
return (_local1);
}
public function get p_teen():String{
return (portal_groups[PortalGroup.YOUNG_ADULTS]);
}
public function set p_hyves(_arg1:String):void{
portal_groups[PortalGroup.HYVES] = _arg1;
}
public function set p_teen(_arg1:String):void{
portal_groups[PortalGroup.YOUNG_ADULTS] = _arg1;
}
public function get p_tween():String{
return (portal_groups[PortalGroup.TEENS]);
}
public function get p_family():String{
return (portal_groups[PortalGroup.FAMILY]);
}
public function get p_girl():String{
trace("Language", portal_groups[PortalGroup.GIRL]);
return (portal_groups[PortalGroup.GIRL]);
}
public function get p_hyves():String{
return (portal_groups[PortalGroup.HYVES]);
}
public function set p_girl(_arg1:String):void{
portal_groups[PortalGroup.GIRL] = _arg1;
}
public function set p_zapapa(_arg1:String):void{
portal_groups[PortalGroup.ZAPAPA] = _arg1;
}
public function get displayAcronim():String{
return ((dname) ? dname : name);
}
public function set p_family(_arg1:String):void{
portal_groups[PortalGroup.FAMILY] = _arg1;
}
public function set p_tween(_arg1:String):void{
portal_groups[PortalGroup.TEENS] = _arg1;
}
public function get p_zapapa():String{
return (portal_groups[PortalGroup.ZAPAPA]);
}
}
}//package spill.localisation
Section 101
//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.embedInputFonts = false;
addLanguage(_local1);
addReference(_local1, "zh-CN");
addReference(_local1, "zh-TW");
_local1 = new Language("pt");
_local1.displayName = "Português";
_local1.p_family = "www.ojogos.pt";
_local1.p_tween = "www.ojogos.pt";
_local1.p_girl = "www.ojogos.pt";
_local1.p_teen = "www.a10.com";
_local1.p_zapapa = "www.zapapa.com";
_local1.bwcId = 17;
addLanguage(_local1);
_local1 = new Language("in");
_local1.displayName = "English";
_local1.p_family = "www.game.co.in";
_local1.p_tween = "www.game.co.in";
_local1.p_girl = "www.game.co.in";
_local1.p_teen = "www.a10.com";
_local1.p_zapapa = "www.zapapa.com";
_local1.textLanguage = "en_uk";
_local1.bwcId = 14;
addLanguage(_local1);
_local1 = new Language("de");
_local1.displayName = "Deutsch";
_local1.p_family = "www.jetztspielen.de";
_local1.p_tween = "www.spielen.com";
_local1.p_girl = "www.girlsgogames.de";
_local1.p_teen = "www.a10.com";
_local1.p_zapapa = "www.zapapa.com";
_local1.bwcId = 5;
addLanguage(_local1);
_local1 = new Language("br");
_local1.displayName = "Português (BR)";
_local1.p_family = "www.ojogos.com.br";
_local1.p_tween = "www.clickjogos.com";
_local1.p_girl = "www.girlsgogames.com.br";
_local1.p_teen = "www.a10.com";
_local1.p_zapapa = "www.zapapa.com";
_local1.bwcId = 10;
addLanguage(_local1);
_local1 = new Language("jp");
_local1.displayName = "日本語";
_local1.p_family = "www.egames.jp";
_local1.p_tween = "www.egames.jp";
_local1.p_girl = "www.egames.jp";
_local1.p_teen = "www.a10.com";
_local1.p_zapapa = "www.zapapa.com";
_local1.embedInputFonts = false;
_local1.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 (mx)";
_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";
addLanguage(_local1);
addReference(_local1, "mx");
_local1 = new Language("es_ar", "arg");
_local1.displayName = "Español (ar)";
_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";
addLanguage(_local1);
addReference(_local1, "arg");
}
public static function exportXML():XMLNode{
var _local1:Array;
var _local2:XMLNode;
var _local3:Language;
_local1 = getLanguagesArray();
_local2 = new XMLNode(1, "languages");
for each (_local3 in _local1) {
_local2.appendChild(_local3.exportXML());
};
return (_local2);
}
public static function getLanguagesArray():Array{
var _local1:Array;
var _local2:Object;
var _local3:Language;
_local1 = new Array();
_local2 = 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 102
//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 mc:MovieClip;
private var popup:MovieClip;
private var languageName_text:TextField;
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);
}
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);
};
}
public function init():void{
var _local1:Array;
var _local2:int;
var _local3:MovieClip;
var _local4:Language;
trace("initselectbox");
_local1 = 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);
_local2 = 0;
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 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;
};
}
private function mouseOut(_arg1:MouseEvent):void{
popup.visible = false;
}
private function removed(_arg1:Event):void{
SpilGame.removeEventListener("languageChanged", languageChanged);
}
private function itemClicked(_arg1:MouseEvent):void{
SpilGame.changeLanguage(_arg1.currentTarget.name.substr(2));
popup.visible = false;
}
}
}//package spill.localisation
Section 103
//LanguageSelectBox_mc (spill.localisation.LanguageSelectBox_mc)
package spill.localisation {
import flash.display.*;
import flash.text.*;
public dynamic class LanguageSelectBox_mc extends MovieClip {
public var flag:MovieClip;
public var languageName_text:TextField;
}
}//package spill.localisation
Section 104
//LanguageSelectPopup_mc (spill.localisation.LanguageSelectPopup_mc)
package spill.localisation {
import flash.display.*;
public dynamic class LanguageSelectPopup_mc extends MovieClip {
public var l_se:MovieClip;
public var l_ar:MovieClip;
public var l_br:MovieClip;
public var l_in:MovieClip;
public var l_cn:MovieClip;
public var l_de:MovieClip;
public var l_es_mx:MovieClip;
public var l_es:MovieClip;
public var l_en_uk:MovieClip;
public var l_fr:MovieClip;
public var l_en_us:MovieClip;
public var l_pl:MovieClip;
public var l_pt:MovieClip;
public var l_nl:MovieClip;
public var l_id:MovieClip;
public var l_es_ar:MovieClip;
public var l_it:MovieClip;
public var l_jp:MovieClip;
public var l_ru:MovieClip;
}
}//package spill.localisation
Section 105
//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 languageChanged(_arg1:Event):void{
text = originalText;
updateProperties();
}
override public function set text(_arg1:String):void{
originalText = _arg1;
if ((_arg1 is String)){
super.text = _arg1.replace(regex, replaceFn);
} else {
super.text = "";
};
trace(super.text);
}
private function removed(_arg1:Event):void{
SpilGame.removeEventListener("languageChanged", languageChanged);
}
private function replaceFn():String{
var _local2:String;
_local2 = SpilGame.getString(arguments[1]);
if (((!(_local2)) || ((_local2 == "")))){
return ((("{" + arguments[1]) + "}"));
};
return (_local2);
}
private function added(_arg1:Event=null):void{
SpilGame.addEventListener("languageChanged", languageChanged, false, 0, true);
text = originalText;
}
}
}//package spill.localisation
Section 106
//PortalGroup (spill.localisation.PortalGroup)
package spill.localisation {
import flash.xml.*;
public class PortalGroup {
public static const YOUNG_ADULTS:uint = 3;
public static const FAMILY:uint = 0;
public static const channelNames:Array = ["family", "tween", "girl", "teen", "zapapa", "hyves"];
public static const ZAPAPA:uint = 4;
public static const HYVES:uint = 5;
public static const TEENS:uint = 1;
public static const GIRL:uint = 2;
public static const backgroundColors:Array = [0xFFFFFF, 0xFFFFFF, 16742331, 0xFFFFFF, 0xFFFFFF, 0xFFFFFF];
public static const NONE:uint = 6;
public static function getName(_arg1:int):String{
return (channelNames[_arg1]);
}
public static function exportXML():XMLNode{
var _local1:XMLNode;
var _local2:int;
var _local3:XMLNode;
_local1 = new XMLNode(1, "channels");
_local2 = 0;
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 107
//spil_internal (spill.localisation.spil_internal)
package spill.localisation {
public namespace spil_internal = "spill.localisation";
}//package spill.localisation
Section 108
//SpilGame (spill.localisation.SpilGame)
package spill.localisation {
import flash.display.*;
import flash.text.*;
import flash.events.*;
import flash.net.*;
import flash.ui.*;
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{
var _local1:String;
_local1 = "http://www.gameportal.net/";
_local1 = (_local1 + ("?utm_medium=brandedgames_" + (isExternal) ? "external" : "internal"));
_local1 = (_local1 + ("&utm_campaign=" + gameName));
_local1 = (_local1 + ("&utm_source=" + Brand.stripSubDomain((embedDomain) ? embedDomain : hostingDomain)));
_local1 = (_local1 + "&utm_content=Branding_Link");
return (_local1);
}
public static function getPromotionLink(_arg1:String="feature_promotion"):String{
var _local2:String;
_local2 = (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;
_local2 = strings[_arg1];
if (_local2){
if (currentLanguage.textLanguage){
return (_local2[currentLanguage.textLanguage]);
};
if (_local2[currentLanguage.name]){
return (_local2[currentLanguage.name]);
};
return (_local2["en_us"]);
//unresolved jump
};
return ("");
}
public static function initialize(_arg1:String, _arg2:int, _arg3:String, _arg4:Sprite, _arg5:Boolean=false):void{
stage = _arg4;
if (_init){
trace("ERROR: LocalisationManager already initialised");
return;
};
_init = true;
localDomains["localhost"] = true;
localDomains["www8.agame.com"] = true;
localDomains["gamedev.dev.spilgames.com"] = true;
localDomains["stg.spel.nl"] = true;
localDomains["stg.girlsgogames.nl"] = true;
localDomains["stg.pl.spel.nl"] = true;
localDomains["stg.pl.girlsgogames.nl"] = true;
trace(localDomains["stg.girlsgogames.nl"]);
Brandings.initialize();
Languages.initialize();
initContexMenu(_arg4);
channelLock = _arg5;
gameName = _arg1.replace(" ", "_");
portalGroup = _arg2;
emailPage = _arg3;
chooseLanguage();
chooseBranding();
if (portalGroup == PortalGroup.HYVES){
changeLanguage("nl");
};
}
public static function get isExternal():Boolean{
return (((((!(Brandings.hasDomain(embedDomain))) && (!(localDomains[embedDomain])))) && (!(isStagingDomain))));
}
private static function initContexMenu(_arg1:Sprite):void{
contexMenuItem = new ContextMenuItem("");
_arg1.contextMenu = new ContextMenu();
_arg1.contextMenu.customItems.push(contexMenuItem);
contexMenuItem.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, contexMenuClicked);
}
private static function replaceFn():String{
var _local2:String;
_local2 = 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;
_local2 = 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;
_local2 = 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;
_local1 = <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 _local1:Array;
var _local2:String;
var _local3:Brand;
_local1 = Brandings.getBrandsArray();
_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;
_local2 = (embedDomain) ? embedDomain : hostingDomain;
return (currentBranding.getMoreGamesLink(gameName, isExternal, _local2, _arg1));
}
public static function get isStagingDomain():Boolean{
var _local1:String;
_local1 = ("http://" + embedDomain);
return ((_local1.indexOf("http://stg.") >= 0));
}
spil_internal static function get cookieLanguage():Language{
var _local1:SharedObject;
var _local2:String;
_local1 = SharedObject.getLocal(cookieName, cookiePath);
_local2 = 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 109
//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 110
//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 _text:String;// = "default"
protected var _textSize:Number;// = 12
protected var _embedFonts:Boolean;// = true
protected var _glowColor:uint;// = 0
private var h:Number;
protected var _antiAliasType:String;// = "advanced"
private var w:Number;
protected var _numLines:uint;// = 1
protected var _useGlowFilter:Boolean;// = false
protected var _hAlign:String;// = "left"
protected var _textColor:uint;// = 0
protected var _glowStrength:Number;// = 5
protected var _glowBlur:Number;// = 3
private var field:TextField;
protected var _gridFitType:String;// = "pixel"
protected var _glowQuality:Number;// = 1
private var debugBounding:Sprite;
protected var _disableWordwrap:Boolean;// = false
protected var _multiline:Boolean;// = false
protected var _font:String;// = ""
protected var _underline:Boolean;// = false
protected var _vAlign:String;// = "top"
protected var _italic:Boolean;// = false
protected var _bold:Boolean;// = false
private var sizeChanged:Boolean;// = true
private var embeddedFonts:Array;
protected var _selectable:Boolean;// = false
private var format:TextFormat;
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;
var _local2:Number;
var _local3:Number;
sizeChanged = true;
valid = true;
_text = "default";
_textColor = 0;
_textSize = 12;
_multiline = false;
_numLines = 1;
_disableWordwrap = false;
_hAlign = "left";
_vAlign = "top";
_bold = false;
_underline = false;
_italic = false;
_selectable = false;
_font = "";
_embedFonts = true;
_antiAliasType = "advanced";
_gridFitType = "pixel";
_useGlowFilter = false;
_glowBlur = 3;
_glowColor = 0;
_glowStrength = 5;
_glowQuality = 1;
super();
_local1 = ((!((parent == null))) && ((getQualifiedClassName(parent) == "fl.livepreview::LivePreviewParent")));
_local2 = width;
_local3 = 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 get italic():Boolean{
return (_italic);
}
public function set numLines(_arg1:uint):void{
_numLines = _arg1;
invalidate();
}
public function get textColor():uint{
return (_textColor);
}
public function get vAlign():String{
return (_vAlign);
}
public function get useGlowFilter():Boolean{
return (_useGlowFilter);
}
public function get selectable():Boolean{
return (_selectable);
}
public function set italic(_arg1:Boolean):void{
_italic = _arg1;
invalidate();
}
public function set text(_arg1:String):void{
_text = _arg1;
invalidate();
}
public function set vAlign(_arg1:String):void{
_vAlign = _arg1;
invalidate();
}
public function get font():String{
return (_font);
}
public function set textColor(_arg1:uint):void{
_textColor = _arg1;
invalidate();
}
public function get antiAliasType():String{
return (_antiAliasType);
}
public function get bold():Boolean{
return (_bold);
}
public function set useGlowFilter(_arg1:Boolean):void{
_useGlowFilter = _arg1;
invalidate();
}
public function set selectable(_arg1:Boolean):void{
_selectable = _arg1;
invalidate();
}
public function get multiline():Boolean{
return (_multiline);
}
public function set disableWordwrap(_arg1:Boolean):void{
_disableWordwrap = _arg1;
invalidate();
}
public function get glowQuality():Number{
return (_glowQuality);
}
public function get embedFonts():Boolean{
return (_embedFonts);
}
public function get gridFitType():String{
return (_gridFitType);
}
public function set font(_arg1:String):void{
_font = _arg1;
invalidate();
}
public function get underline():Boolean{
return (_underline);
}
public function get textSize():Number{
return (_textSize);
}
public function set antiAliasType(_arg1:String):void{
_antiAliasType = _arg1;
invalidate();
}
protected function updateProperties():void{
var _local1:Boolean;
var _local2:Font;
field.text = _text;
field.multiline = ((((_text.indexOf(" ") < 0)) && ((_text.length < 14)))) ? false : _multiline;
field.wordWrap = ((field.multiline) && (!(_disableWordwrap)));
field.selectable = _selectable;
field.antiAliasType = (forceAAType) ? forceAAType : _antiAliasType;
field.gridFitType = _gridFitType;
embeddedFonts = Font.enumerateFonts(false);
if (((((_embedFonts) && (!((_font == ""))))) && (TextFieldFit.embedFonts))){
_local1 = false;
for each (_local2 in embeddedFonts) {
if (_font == _local2.fontName){
_local1 = true;
break;
};
};
field.embedFonts = _local1;
if (!_local1){
trace(((("WARNING: Embedded font '" + _font) + "' not found, disabling embedding of fonts, text = ") + _text));
} else {
trace((("Found Embedded font '" + _font) + "' using font"));
};
} else {
field.embedFonts = false;
};
if (TextFieldFit.forceFont){
format.font = TextFieldFit.forceFont;
} else {
format.font = _font;
};
if (sizeChanged){
format.size = _textSize;
};
format.color = _textColor;
format.align = _hAlign;
format.bold = _bold;
format.italic = _italic;
format.underline = _underline;
format.leftMargin = 0;
format.rightMargin = 0;
field.setTextFormat(format);
if (_useGlowFilter){
filters = [new GlowFilter(_glowColor, 1, _glowBlur, _glowBlur, _glowStrength, _glowQuality)];
} else {
filters = [];
};
}
private function doesTextFit():Boolean{
if (((!(field.multiline)) || (alwaysCheckWidth))){
if (((((field.textHeight + (gutter * 2)) > h)) || (((field.textWidth + (gutter * 2)) > w)))){
return (false);
};
} else {
if (field.multiline){
if (field.numLines > _numLines){
return (false);
};
};
};
return (true);
}
public function get glowStrength():Number{
return (_glowStrength);
}
public function set hAlign(_arg1:String):void{
_hAlign = _arg1;
invalidate();
}
private function init(_arg1:Event=null):void{
removeEventListener(Event.RENDER, init);
updateProperties();
layoutText();
}
public function set bold(_arg1:Boolean):void{
_bold = _arg1;
invalidate();
}
public function get numLines():uint{
return (_numLines);
}
private function validate(_arg1:Event=null):void{
updateProperties();
layoutText();
removeEventListener(Event.ENTER_FRAME, validate);
valid = true;
}
public function get text():String{
return (_text);
}
public function set glowBlur(_arg1:Number):void{
_glowBlur = _arg1;
invalidate();
}
private function invalidate():void{
if (valid){
addEventListener(Event.ENTER_FRAME, validate);
if (stage){
stage.invalidate();
};
valid = false;
};
}
public function set embedFonts(_arg1:Boolean):void{
_embedFonts = _arg1;
invalidate();
}
public function set multiline(_arg1:Boolean):void{
_multiline = _arg1;
invalidate();
}
public function get disableWordwrap():Boolean{
return (_disableWordwrap);
}
public function set glowQuality(_arg1:Number):void{
_glowQuality = _arg1;
invalidate();
}
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 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 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 textSize(_arg1:Number):void{
_textSize = _arg1;
sizeChanged = true;
invalidate();
}
public function set glowColor(_arg1:uint):void{
_glowColor = _arg1;
invalidate();
}
public function get textField():TextField{
return (field);
}
public function get glowColor():uint{
return (_glowColor);
}
public function set glowStrength(_arg1:Number):void{
_glowStrength = _arg1;
invalidate();
}
}
}//package spill.localisation
Section 111
//Collision (Collision)
package {
import flash.geom.*;
import flash.display.*;
public class Collision {
private function getAlphaMap(_arg1:DisplayObject, _arg2:Rectangle, _arg3:uint, _arg4:Rectangle):BitmapData{
var _local5:BitmapData;
var _local6:Matrix;
var _local7:Number;
var _local8:Number;
var _local9:Number;
var _local10:Number;
var _local11:BitmapData;
_local5 = new BitmapData(_arg2.width, _arg2.height, true, 0);
_local6 = new Matrix();
_local7 = (_arg1.x - _arg4.x);
_local8 = (_arg1.y - _arg4.y);
_local9 = ((_arg4.x + _local7) - _arg2.x);
_local10 = ((_arg4.y + _local8) - _arg2.y);
_local6.translate(_local9, _local10);
_local5.draw(_arg1, _local6);
_local11 = new BitmapData(_arg2.width, _arg2.height, false, 0);
_local11.copyChannel(_local5, _local5.rect, new Point(0, 0), BitmapDataChannel.ALPHA, _arg3);
return (_local11);
}
public function isColliding(_arg1:DisplayObject, _arg2:DisplayObject, _arg3:Number=0):Boolean{
var _local4:Rectangle;
_local4 = getCollision(_arg1, _arg2, _arg3);
if (((!((_local4 == null))) && ((_local4.size.length > 0)))){
return (true);
};
return (false);
}
public function getCollisionPoint(_arg1:DisplayObject, _arg2:DisplayObject, _arg3:Number=0):Point{
var _local4:Point;
var _local5:Rectangle;
var _local6:Number;
var _local7:Number;
_local5 = getCollision(_arg1, _arg2, _arg3);
if (((!((_local5 == null))) && ((_local5.size.length > 0)))){
_local6 = ((_local5.left + _local5.right) / 2);
_local7 = ((_local5.top + _local5.bottom) / 2);
_local4 = new Point(_local6, _local7);
};
return (_local4);
}
public function getCollision(_arg1:DisplayObject, _arg2:DisplayObject, _arg3:Number=0):Rectangle{
var _local4:Rectangle;
var _local5:DisplayObjectContainer;
var _local6:Rectangle;
var _local7:Rectangle;
var _local8:Boolean;
var _local9:Rectangle;
var _local10:BitmapData;
var _local11:BitmapData;
var _local12:uint;
var _local13:Number;
if (_arg1.parent == _arg2.parent){
_local5 = _arg1.parent;
_local6 = _arg1.getBounds(_local5);
_local7 = _arg2.getBounds(_local5);
_local8 = _local6.intersects(_local7);
if (_local8){
_local9 = _local6.union(_local7);
_local10 = getAlphaMap(_arg1, _local9, BitmapDataChannel.RED, _local6);
_local11 = getAlphaMap(_arg2, _local9, BitmapDataChannel.GREEN, _local7);
_local10.draw(_local11, new Matrix(), new ColorTransform(), BlendMode.LIGHTEN);
if (_arg3 > 1){
_arg3 = 1;
};
if (_arg3 < 0){
_arg3 = 0;
};
if (_arg3 == 0){
_local12 = 65792;
} else {
_local13 = Math.round((_arg3 * 0xFF));
_local12 = (((_local13 << 16) | (_local13 << 8)) | 0);
};
_local4 = _local10.getColorBoundsRect(_local12, _local12);
_local10.getColorBoundsRect(_local12, _local12).x = (_local4.x + _local9.x);
_local4.y = (_local4.y + _local9.y);
return (_local4);
};
};
return (_local4);
}
}
}//package
Section 112
//Earthquake (Earthquake)
package {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
public class Earthquake {
private static const FRAME_RATE:int = 30;
private static var timer:Timer;
private static var originalX:int;
private static var originalY:int;
private static var intensityOffset:int;
private static var intensity:int;
private static var image:DisplayObject;
private static function cleanup():void{
timer = null;
image = null;
}
public static function go(_arg1:DisplayObject, _arg2:Number=10, _arg3:Number=1):void{
var _local4:int;
var _local5:int;
if (timer){
timer.stop();
};
image = _arg1;
originalX = 0;
originalY = 0;
intensity = _arg2;
intensityOffset = (intensity / 2);
_local4 = int((1000 / FRAME_RATE));
_local5 = int(((_arg3 * 1000) / _local4));
timer = new Timer(_local4, _local5);
timer.addEventListener(TimerEvent.TIMER, quake);
timer.addEventListener(TimerEvent.TIMER_COMPLETE, resetImage);
timer.start();
}
public static function temp():void{
}
private static function quake(_arg1:TimerEvent):void{
var _local2:int;
var _local3:int;
_local2 = ((originalX + (Math.random() * intensity)) - intensityOffset);
_local3 = ((originalY + (Math.random() * intensity)) - intensityOffset);
image.x = _local2;
image.y = _local3;
}
private static function resetImage(_arg1:TimerEvent=null):void{
image.x = originalX;
image.y = originalY;
cleanup();
}
}
}//package
Section 113
//ExplodeSnd (ExplodeSnd)
package {
import flash.media.*;
public dynamic class ExplodeSnd extends Sound {
}
}//package
Section 114
//ExplodeSnd1 (ExplodeSnd1)
package {
import flash.media.*;
public dynamic class ExplodeSnd1 extends Sound {
}
}//package
Section 115
//ExplodeSnd2 (ExplodeSnd2)
package {
import flash.media.*;
public dynamic class ExplodeSnd2 extends Sound {
}
}//package
Section 116
//Explosion (Explosion)
package {
import flash.display.*;
public dynamic class Explosion extends MovieClip {
public function Explosion(){
addFrameScript(13, frame14);
}
function frame14(){
stop();
MovieClip(parent).removeChild(this);
}
}
}//package
Section 117
//GameBGSnd (GameBGSnd)
package {
import flash.media.*;
public dynamic class GameBGSnd extends Sound {
}
}//package
Section 118
//MochiBot (MochiBot)
package {
import flash.display.*;
import flash.net.*;
import flash.system.*;
public dynamic class MochiBot extends Sprite {
public static function track(_arg1:Sprite, _arg2:String):MochiBot{
var _local3:MochiBot;
var _local4:String;
var _local5:URLVariables;
var _local6:String;
var _local7:URLRequest;
var _local8:Loader;
if (Security.sandboxType == "localWithFile"){
return (null);
};
_local3 = new (MochiBot);
_arg1.addChild(_local3);
Security.allowDomain("*");
Security.allowInsecureDomain("*");
_local4 = "http://core.mochibot.com/my/core.swf";
_local5 = new URLVariables();
_local5["sb"] = Security.sandboxType;
_local5["v"] = Capabilities.version;
_local5["swfid"] = _arg2;
_local5["mv"] = "8";
_local5["fv"] = "9";
_local6 = _local3.root.loaderInfo.loaderURL;
if (_local6.indexOf("http") == 0){
_local5["url"] = _local6;
} else {
_local5["url"] = "local";
};
_local7 = new URLRequest(_local4);
_local7.contentType = "application/x-www-form-urlencoded";
_local7.method = URLRequestMethod.POST;
_local7.data = _local5;
_local8 = new Loader();
_local3.addChild(_local8);
_local8.load(_local7);
return (_local3);
}
}
}//package
Section 119
//PromptAward (PromptAward)
package {
import flash.display.*;
import flash.text.*;
import caurina.transitions.*;
public dynamic class PromptAward extends MovieClip {
public var _name_txt:TextField;
public function PromptAward(){
addFrameScript(0, frame1);
}
public function _goUpAgain(){
Tweener.addTween(this, {scaleX:0, scaleY:0, time:1, onComplete:_disappear, transition:"easeInBack"});
}
public function _disappear(){
MovieClip(parent).removeChild(this);
}
function frame1(){
stop();
this.scaleX = 0;
this.scaleY = 0;
Tweener.addTween(this, {scaleX:1, scaleY:1, time:0.4, onComplete:_goUp, transition:"easeIntBack"});
}
public function _goUp(){
Tweener.addTween(this, {y:(this.y - 5), time:1, onComplete:_goUpAgain, transition:"easeOutBack"});
}
}
}//package
Section 120
//Smoke (Smoke)
package {
import flash.geom.*;
import flash.display.*;
import flash.xml.*;
import flash.text.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.net.*;
import flash.ui.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.printing.*;
public dynamic class Smoke extends MovieClip {
public var smoke_mc:MovieClip;
public var durationCounter:Number;
public function Smoke(){
addFrameScript(0, frame1);
}
public function looper(){
var _local1:Number;
var _local2:Number;
var _local3:Number;
_local1 = MovieClip(parent.parent).randomGenerator(1, 4);
_local2 = MovieClip(parent.parent).randomGenerator(-4, 4);
_local3 = MovieClip(parent.parent).randomGenerator(2, 6);
smoke_mc.x = (smoke_mc.x + _local2);
smoke_mc.y = (smoke_mc.y + _local1);
smoke_mc.rotation = (smoke_mc.rotation - _local3);
smoke_mc.scaleX = (smoke_mc.scaleX - 0.1);
smoke_mc.scaleY = (smoke_mc.scaleY - 0.1);
if (smoke_mc.scaleY <= 0){
destruct("");
};
}
function frame1(){
durationCounter = 50;
}
public function destruct(_arg1:String){
MovieClip(parent.parent).removeFromArray(MovieClip(parent.parent).smokeArray, this);
}
}
}//package