Section 1
//AuxFunctions (caurina.transitions.AuxFunctions)
package caurina.transitions {
public class AuxFunctions {
public static function getObjectLength(_arg1:Object):uint{
var _local3:String;
var _local2:uint;
for (_local3 in _arg1) {
_local2++;
};
return (_local2);
}
public static function isInArray(_arg1:String, _arg2:Array):Boolean{
var _local3:uint = _arg2.length;
var _local4:uint;
while (_local4 < _local3) {
if (_arg2[_local4] == _arg1){
return (true);
};
_local4++;
};
return (false);
}
public static function 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));
}
}
}//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):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:Number=NaN, _arg6:Number=NaN):Number{
var _local7:Number;
if (_arg1 == 0){
return (_arg2);
};
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 == 2){
return ((_arg2 + _arg3));
};
if (!_arg6){
_arg6 = (_arg4 * (0.3 * 1.5));
};
if (((!(_arg5)) || ((_arg5 < Math.abs(_arg3))))){
_arg5 = _arg3;
_local7 = (_arg6 / 4);
} else {
_local7 = ((_arg6 / (2 * Math.PI)) * Math.asin((_arg3 / _arg5)));
};
if (_arg1 < 1){
--_arg1;
return (((-0.5 * ((_arg5 * Math.pow(2, (10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local7) * (2 * Math.PI)) / _arg6)))) + _arg2));
};
--_arg1;
return ((((((_arg5 * Math.pow(2, (-10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local7) * (2 * Math.PI)) / _arg6))) * 0.5) + _arg3) + _arg2));
}
public static function easeInOutQuad(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):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):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:Number=NaN):Number{
if (!_arg5){
_arg5 = 1.70158;
};
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
_arg5 = (_arg5 * 1.525);
return ((((_arg3 / 2) * ((_arg1 * _arg1) * (((_arg5 + 1) * _arg1) - _arg5))) + _arg2));
};
_arg1 = (_arg1 - 2);
_arg5 = (_arg5 * 1.525);
return ((((_arg3 / 2) * (((_arg1 * _arg1) * (((_arg5 + 1) * _arg1) + _arg5)) + 2)) + _arg2));
}
public static function easeOutInCubic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutCubic((_arg1 * 2), _arg2, (_arg3 / 2), _arg4));
};
return (easeInCubic(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4));
}
public static function easeNone(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return ((((_arg3 * _arg1) / _arg4) + _arg2));
}
public static function easeOutBack(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number=NaN):Number{
if (!_arg5){
_arg5 = 1.70158;
};
_arg1 = ((_arg1 / _arg4) - 1);
return (((_arg3 * (((_arg1 * _arg1) * (((_arg5 + 1) * _arg1) + _arg5)) + 1)) + _arg2));
}
public static function easeInOutSine(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):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:Number=NaN):Number{
if (!_arg5){
_arg5 = 1.70158;
};
_arg1 = (_arg1 / _arg4);
return (((((_arg3 * _arg1) * _arg1) * (((_arg5 + 1) * _arg1) - _arg5)) + _arg2));
}
public static function easeInQuart(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / _arg4);
return ((((((_arg3 * _arg1) * _arg1) * _arg1) * _arg1) + _arg2));
}
public static function easeOutInQuint(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutQuint((_arg1 * 2), _arg2, (_arg3 / 2), _arg4));
};
return (easeInQuint(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4));
}
public static function easeOutInBounce(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutBounce((_arg1 * 2), _arg2, (_arg3 / 2), _arg4));
};
return (easeInBounce(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4));
}
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):Number{
return (((_arg1)==_arg4) ? (_arg2 + _arg3) : ((_arg3 * (-(Math.pow(2, ((-10 * _arg1) / _arg4))) + 1)) + _arg2));
}
public static function easeOutInBack(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number=NaN):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):Number{
return (((_arg1)==0) ? _arg2 : ((_arg3 * Math.pow(2, (10 * ((_arg1 / _arg4) - 1)))) + _arg2));
}
public static function easeInCubic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / _arg4);
return (((((_arg3 * _arg1) * _arg1) * _arg1) + _arg2));
}
public static function easeInQuint(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / _arg4);
return (((((((_arg3 * _arg1) * _arg1) * _arg1) * _arg1) * _arg1) + _arg2));
}
public static function easeInOutCirc(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):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):Number{
_arg1 = (_arg1 / _arg4);
return ((((_arg3 * _arg1) * _arg1) + _arg2));
}
public static function easeInBounce(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return (((_arg3 - easeOutBounce((_arg4 - _arg1), 0, _arg3, _arg4)) + _arg2));
}
public static function easeOutInExpo(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutExpo((_arg1 * 2), _arg2, (_arg3 / 2), _arg4));
};
return (easeInExpo(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4));
}
public static function easeOutQuart(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):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):Number{
return ((((-(_arg3) * Math.cos(((_arg1 / _arg4) * (Math.PI / 2)))) + _arg3) + _arg2));
}
public static function easeInOutQuart(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):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):Number{
_arg1 = (_arg1 / _arg4);
return ((((-(_arg3) * _arg1) * (_arg1 - 2)) + _arg2));
}
public static function easeOutInElastic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number=NaN, _arg6:Number=NaN):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutElastic((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5, _arg6));
};
return (easeInElastic(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5, _arg6));
}
public static function easeInElastic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number=NaN, _arg6:Number=NaN):Number{
var _local7:Number;
if (_arg1 == 0){
return (_arg2);
};
_arg1 = (_arg1 / _arg4);
if (_arg1 == 1){
return ((_arg2 + _arg3));
};
if (!_arg6){
_arg6 = (_arg4 * 0.3);
};
if (((!(_arg5)) || ((_arg5 < Math.abs(_arg3))))){
_arg5 = _arg3;
_local7 = (_arg6 / 4);
} else {
_local7 = ((_arg6 / (2 * Math.PI)) * Math.asin((_arg3 / _arg5)));
};
--_arg1;
return ((-(((_arg5 * Math.pow(2, (10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local7) * (2 * Math.PI)) / _arg6)))) + _arg2));
}
public static function easeOutCubic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = ((_arg1 / _arg4) - 1);
return (((_arg3 * (((_arg1 * _arg1) * _arg1) + 1)) + _arg2));
}
public static function easeOutQuint(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):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):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutQuad((_arg1 * 2), _arg2, (_arg3 / 2), _arg4));
};
return (easeInQuad(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4));
}
public static function easeOutSine(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return (((_arg3 * Math.sin(((_arg1 / _arg4) * (Math.PI / 2)))) + _arg2));
}
public static function easeInOutCubic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):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):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):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):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutSine((_arg1 * 2), _arg2, (_arg3 / 2), _arg4));
};
return (easeInSine(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4));
}
public static function easeInOutExpo(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):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));
};
--_arg1;
return ((((_arg3 / 2) * (-(Math.pow(2, (-10 * _arg1))) + 2)) + _arg2));
}
public static function easeOutElastic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number=NaN, _arg6:Number=NaN):Number{
var _local7:Number;
if (_arg1 == 0){
return (_arg2);
};
_arg1 = (_arg1 / _arg4);
if (_arg1 == 1){
return ((_arg2 + _arg3));
};
if (!_arg6){
_arg6 = (_arg4 * 0.3);
};
if (((!(_arg5)) || ((_arg5 < Math.abs(_arg3))))){
_arg5 = _arg3;
_local7 = (_arg6 / 4);
} else {
_local7 = ((_arg6 / (2 * Math.PI)) * Math.asin((_arg3 / _arg5)));
};
return (((((_arg5 * Math.pow(2, (-10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local7) * (2 * Math.PI)) / _arg6))) + _arg3) + _arg2));
}
public static function easeOutCirc(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):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):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutQuart((_arg1 * 2), _arg2, (_arg3 / 2), _arg4));
};
return (easeInQuart(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4));
}
public static function easeOutInCirc(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutCirc((_arg1 * 2), _arg2, (_arg3 / 2), _arg4));
};
return (easeInCirc(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4));
}
}
}//package caurina.transitions
Section 3
//PropertyInfoObj (caurina.transitions.PropertyInfoObj)
package caurina.transitions {
public class PropertyInfoObj {
public var modifierParameters:Array;
public var valueComplete:Number;
public var modifierFunction:Function;
public var hasModifier:Boolean;
public var valueStart:Number;
public function PropertyInfoObj(_arg1:Number, _arg2:Number, _arg3:Function, _arg4:Array){
valueStart = _arg1;
valueComplete = _arg2;
hasModifier = Boolean(_arg3);
modifierFunction = _arg3;
modifierParameters = _arg4;
}
public function toString():String{
var _local1 = "\n[PropertyInfoObj ";
_local1 = (_local1 + ("valueStart:" + String(valueStart)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("valueComplete:" + String(valueComplete)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("modifierFunction:" + String(modifierFunction)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("modifierParameters:" + String(modifierParameters)));
_local1 = (_local1 + "]\n");
return (_local1);
}
public function clone():PropertyInfoObj{
var _local1:PropertyInfoObj = new PropertyInfoObj(valueStart, valueComplete, modifierFunction, modifierParameters);
return (_local1);
}
}
}//package caurina.transitions
Section 4
//SpecialPropertiesDefault (caurina.transitions.SpecialPropertiesDefault)
package caurina.transitions {
import flash.media.*;
import flash.filters.*;
import flash.geom.*;
public class SpecialPropertiesDefault {
public function SpecialPropertiesDefault(){
trace("SpecialProperties is a static class and should not be instantiated.");
}
public static function _sound_volume_get(_arg1:Object):Number{
return (_arg1.soundTransform.volume);
}
public static function _color_splitter(_arg1):Array{
var _local2:Array = new Array();
if (_arg1 == null){
_local2.push({name:"_color_ra", value:1});
_local2.push({name:"_color_rb", value:0});
_local2.push({name:"_color_ga", value:1});
_local2.push({name:"_color_gb", value:0});
_local2.push({name:"_color_ba", value:1});
_local2.push({name:"_color_bb", value:0});
} else {
_local2.push({name:"_color_ra", value:0});
_local2.push({name:"_color_rb", value:AuxFunctions.numberToR(_arg1)});
_local2.push({name:"_color_ga", value:0});
_local2.push({name:"_color_gb", value:AuxFunctions.numberToG(_arg1)});
_local2.push({name:"_color_ba", value:0});
_local2.push({name:"_color_bb", value:AuxFunctions.numberToB(_arg1)});
};
return (_local2);
}
public static function frame_get(_arg1:Object):Number{
return (_arg1.currentFrame);
}
public static function _sound_pan_get(_arg1:Object):Number{
return (_arg1.soundTransform.pan);
}
public static function _color_property_get(_arg1:Object, _arg2:Array):Number{
return (_arg1.transform.colorTransform[_arg2[0]]);
}
public static function _sound_volume_set(_arg1:Object, _arg2:Number):void{
var _local3:SoundTransform = _arg1.soundTransform;
_local3.volume = _arg2;
_arg1.soundTransform = _local3;
}
public static function _autoAlpha_get(_arg1:Object):Number{
return (_arg1.alpha);
}
public static function _filter_splitter(_arg1:BitmapFilter):Array{
var _local2:Array = new Array();
if ((_arg1 is BlurFilter)){
_local2.push({name:"_blur_blurX", value:BlurFilter(_arg1).blurX});
_local2.push({name:"_blur_blurY", value:BlurFilter(_arg1).blurY});
_local2.push({name:"_blur_quality", value:BlurFilter(_arg1).quality});
} else {
trace("??");
};
return (_local2);
}
public static function init():void{
Tweener.registerSpecialProperty("_frame", frame_get, frame_set);
Tweener.registerSpecialProperty("_sound_volume", _sound_volume_get, _sound_volume_set);
Tweener.registerSpecialProperty("_sound_pan", _sound_pan_get, _sound_pan_set);
Tweener.registerSpecialProperty("_color_ra", _color_property_get, _color_property_set, ["redMultiplier"]);
Tweener.registerSpecialProperty("_color_rb", _color_property_get, _color_property_set, ["redOffset"]);
Tweener.registerSpecialProperty("_color_ga", _color_property_get, _color_property_set, ["greenMultiplier"]);
Tweener.registerSpecialProperty("_color_gb", _color_property_get, _color_property_set, ["greenOffset"]);
Tweener.registerSpecialProperty("_color_ba", _color_property_get, _color_property_set, ["blueMultiplier"]);
Tweener.registerSpecialProperty("_color_bb", _color_property_get, _color_property_set, ["blueOffset"]);
Tweener.registerSpecialProperty("_color_aa", _color_property_get, _color_property_set, ["alphaMultiplier"]);
Tweener.registerSpecialProperty("_color_ab", _color_property_get, _color_property_set, ["alphaOffset"]);
Tweener.registerSpecialProperty("_autoAlpha", _autoAlpha_get, _autoAlpha_set);
Tweener.registerSpecialPropertySplitter("_color", _color_splitter);
Tweener.registerSpecialPropertySplitter("_colorTransform", _colorTransform_splitter);
Tweener.registerSpecialProperty("_blur_blurX", _filter_property_get, _filter_property_set, [BlurFilter, "blurX"]);
Tweener.registerSpecialProperty("_blur_blurY", _filter_property_get, _filter_property_set, [BlurFilter, "blurY"]);
Tweener.registerSpecialProperty("_blur_quality", _filter_property_get, _filter_property_set, [BlurFilter, "quality"]);
Tweener.registerSpecialPropertySplitter("_filter", _filter_splitter);
Tweener.registerSpecialPropertyModifier("_bezier", _bezier_modifier, _bezier_get);
}
public static function _sound_pan_set(_arg1:Object, _arg2:Number):void{
var _local3:SoundTransform = _arg1.soundTransform;
_local3.pan = _arg2;
_arg1.soundTransform = _local3;
}
public static function _color_property_set(_arg1:Object, _arg2:Number, _arg3:Array):void{
var _local4:ColorTransform = _arg1.transform.colorTransform;
_local4[_arg3[0]] = _arg2;
_arg1.transform.colorTransform = _local4;
}
public static function _filter_property_get(_arg1:Object, _arg2:Array):Number{
var _local4:uint;
var _local7:Object;
var _local3:Array = _arg1.filters;
var _local5:Object = _arg2[0];
var _local6:String = _arg2[1];
_local4 = 0;
while (_local4 < _local3.length) {
if ((((_local3[_local4] is BlurFilter)) && ((_local5 == BlurFilter)))){
return (_local3[_local4][_local6]);
};
_local4++;
};
switch (_local5){
case BlurFilter:
_local7 = {blurX:0, blurY:0, quality:NaN};
break;
};
return (_local7[_local6]);
}
public static function _bezier_get(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Array):Number{
var _local5:uint;
var _local6:Number;
var _local7:Number;
var _local8:Number;
if (_arg4.length == 1){
return ((_arg1 + (_arg3 * (((2 * (1 - _arg3)) * (_arg4[0] - _arg1)) + (_arg3 * (_arg2 - _arg1))))));
};
_local5 = Math.floor((_arg3 * _arg4.length));
_local6 = ((_arg3 - (_local5 * (1 / _arg4.length))) * _arg4.length);
if (_local5 == 0){
_local7 = _arg1;
_local8 = ((_arg4[0] + _arg4[1]) / 2);
} else {
if (_local5 == (_arg4.length - 1)){
_local7 = ((_arg4[(_local5 - 1)] + _arg4[_local5]) / 2);
_local8 = _arg2;
} else {
_local7 = ((_arg4[(_local5 - 1)] + _arg4[_local5]) / 2);
_local8 = ((_arg4[_local5] + _arg4[(_local5 + 1)]) / 2);
};
};
return ((_local7 + (_local6 * (((2 * (1 - _local6)) * (_arg4[_local5] - _local7)) + (_local6 * (_local8 - _local7))))));
}
public static function frame_set(_arg1:Object, _arg2:Number):void{
_arg1.gotoAndStop(Math.round(_arg2));
}
public static function _filter_property_set(_arg1:Object, _arg2:Number, _arg3:Array):void{
var _local5:uint;
var _local8:BitmapFilter;
var _local4:Array = _arg1.filters;
var _local6:Object = _arg3[0];
var _local7:String = _arg3[1];
_local5 = 0;
while (_local5 < _local4.length) {
if ((((_local4[_local5] is BlurFilter)) && ((_local6 == BlurFilter)))){
_local4[_local5][_local7] = _arg2;
_arg1.filters = _local4;
return;
};
_local5++;
};
if (_local4 == null){
_local4 = new Array();
};
switch (_local6){
case BlurFilter:
_local8 = new BlurFilter(0, 0);
break;
};
_local8[_local7] = _arg2;
_local4.push(_local8);
_arg1.filters = _local4;
}
public static function _autoAlpha_set(_arg1:Object, _arg2:Number):void{
_arg1.alpha = _arg2;
_arg1.visible = (_arg2 > 0);
}
public static function _colorTransform_splitter(_arg1):Array{
var _local2:Array = new Array();
if (_arg1 == null){
_local2.push({name:"_color_ra", value:1});
_local2.push({name:"_color_rb", value:0});
_local2.push({name:"_color_ga", value:1});
_local2.push({name:"_color_gb", value:0});
_local2.push({name:"_color_ba", value:1});
_local2.push({name:"_color_bb", value:0});
} else {
if (_arg1.ra != undefined){
_local2.push({name:"_color_ra", value:_arg1.ra});
};
if (_arg1.rb != undefined){
_local2.push({name:"_color_rb", value:_arg1.rb});
};
if (_arg1.ga != undefined){
_local2.push({name:"_color_ba", value:_arg1.ba});
};
if (_arg1.gb != undefined){
_local2.push({name:"_color_bb", value:_arg1.bb});
};
if (_arg1.ba != undefined){
_local2.push({name:"_color_ga", value:_arg1.ga});
};
if (_arg1.bb != undefined){
_local2.push({name:"_color_gb", value:_arg1.gb});
};
if (_arg1.aa != undefined){
_local2.push({name:"_color_aa", value:_arg1.aa});
};
if (_arg1.ab != undefined){
_local2.push({name:"_color_ab", value:_arg1.ab});
};
};
return (_local2);
}
public static function _bezier_modifier(_arg1):Array{
var _local3:Array;
var _local4:uint;
var _local5:String;
var _local2:Array = [];
if ((_arg1 is Array)){
_local3 = _arg1;
} else {
_local3 = [_arg1];
};
var _local6:Object = {};
_local4 = 0;
while (_local4 < _local3.length) {
for (_local5 in _local3[_local4]) {
if (_local6[_local5] == undefined){
_local6[_local5] = [];
};
_local6[_local5].push(_local3[_local4][_local5]);
};
_local4++;
};
for (_local5 in _local6) {
_local2.push({name:_local5, parameters:_local6[_local5]});
};
return (_local2);
}
}
}//package caurina.transitions
Section 5
//SpecialProperty (caurina.transitions.SpecialProperty)
package caurina.transitions {
public class SpecialProperty {
public var parameters:Array;
public var getValue:Function;
public var setValue:Function;
public function SpecialProperty(_arg1:Function, _arg2:Function, _arg3:Array=null){
getValue = _arg1;
setValue = _arg2;
parameters = _arg3;
}
public function toString():String{
var _local1 = "";
_local1 = (_local1 + "[SpecialProperty ");
_local1 = (_local1 + ("getValue:" + String(getValue)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("setValue:" + String(setValue)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("parameters:" + String(parameters)));
_local1 = (_local1 + "]");
return (_local1);
}
}
}//package caurina.transitions
Section 6
//SpecialPropertyModifier (caurina.transitions.SpecialPropertyModifier)
package caurina.transitions {
public class SpecialPropertyModifier {
public var getValue:Function;
public var modifyValues:Function;
public function SpecialPropertyModifier(_arg1:Function, _arg2:Function){
modifyValues = _arg1;
getValue = _arg2;
}
public function toString():String{
var _local1 = "";
_local1 = (_local1 + "[SpecialPropertyModifier ");
_local1 = (_local1 + ("modifyValues:" + String(modifyValues)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("getValue:" + String(getValue)));
_local1 = (_local1 + "]");
return (_local1);
}
}
}//package caurina.transitions
Section 7
//SpecialPropertySplitter (caurina.transitions.SpecialPropertySplitter)
package caurina.transitions {
public class SpecialPropertySplitter {
public var splitValues:Function;
public function SpecialPropertySplitter(_arg1:Function){
splitValues = _arg1;
}
public function toString():String{
var _local1 = "";
_local1 = (_local1 + "[SpecialPropertySplitter ");
_local1 = (_local1 + ("splitValues:" + String(splitValues)));
_local1 = (_local1 + "]");
return (_local1);
}
}
}//package caurina.transitions
Section 8
//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 _specialPropertySplitterList:Object;
private static var _engineExists:Boolean = false;
private static var _specialPropertyModifierList:Object;
private static var _currentTime:Number;
private static var _tweenList:Array;
private static var _specialPropertyList:Object;
private static var _transitionList:Object;
private static var _inited:Boolean = false;
private static var __tweener_controller__:MovieClip;
public function Tweener(){
trace("Tweener is a static class and should not be instantiated.");
}
public static function registerSpecialPropertyModifier(_arg1:String, _arg2:Function, _arg3:Function):void{
if (!_inited){
init();
};
var _local4:SpecialPropertyModifier = new SpecialPropertyModifier(_arg2, _arg3);
_specialPropertyModifierList[_arg1] = _local4;
}
public static function registerSpecialProperty(_arg1:String, _arg2:Function, _arg3:Function, _arg4:Array=null):void{
if (!_inited){
init();
};
var _local5:SpecialProperty = new SpecialProperty(_arg2, _arg3, _arg4);
_specialPropertyList[_arg1] = _local5;
}
public static function addCaller(_arg1:Object=null, _arg2:Object=null):Boolean{
var _local5:Number;
var _local6:Number;
var _local10:Function;
var _local11:TweenListObj;
var _local12:Number;
var _local13:String;
if ((((arguments.length < 2)) || ((arguments[0] == undefined)))){
return (false);
};
var _local4:Array = new Array();
if ((arguments[0] is Array)){
_local5 = 0;
while (_local5 < arguments[0].length) {
_local4.push(arguments[0][_local5]);
_local5++;
};
} else {
_local5 = 0;
while (_local5 < (arguments.length - 1)) {
_local4.push(arguments[_local5]);
_local5++;
};
};
var _local7:Object = arguments[(arguments.length - 1)];
if (!_inited){
init();
};
if (((!(_engineExists)) || (!(Boolean(__tweener_controller__))))){
startEngine();
};
var _local8:Number = (isNaN(_local7.time)) ? 0 : _local7.time;
var _local9:Number = (isNaN(_local7.delay)) ? 0 : _local7.delay;
if (typeof(_local7.transition) == "string"){
_local13 = _local7.transition.toLowerCase();
_local10 = _transitionList[_local13];
} else {
_local10 = _local7.transition;
};
if (!Boolean(_local10)){
_local10 = _transitionList["easeoutexpo"];
};
_local5 = 0;
while (_local5 < _local4.length) {
_local11 = new TweenListObj(_local4[_local5], (_currentTime + ((_local9 * 1000) / _timeScale)), (_currentTime + (((_local9 * 1000) + (_local8 * 1000)) / _timeScale)), (_local7.useFrames == true), _local10);
_local11.properties = null;
_local11.onStart = _local7.onStart;
_local11.onUpdate = _local7.onUpdate;
_local11.onComplete = _local7.onComplete;
_local11.onOverwrite = _local7.onOverwrite;
_local11.onStartParams = _local7.onStartParams;
_local11.onUpdateParams = _local7.onUpdateParams;
_local11.onCompleteParams = _local7.onCompleteParams;
_local11.onOverwriteParams = _local7.onOverwriteParams;
_local11. = true;
_local11.count = _local7.count;
_local11.waitFrames = _local7.waitFrames;
_tweenList.push(_local11);
if ((((_local8 == 0)) && ((_local9 == 0)))){
_local12 = (_tweenList.length - 1);
updateTweenByIndex(_local12);
removeTweenByIndex(_local12);
};
_local5++;
};
return (true);
}
public static function init(_arg1=null):void{
_inited = true;
_transitionList = new Object();
Equations.init();
_specialPropertyList = new Object();
_specialPropertyModifierList = new Object();
_specialPropertySplitterList = new Object();
SpecialPropertiesDefault.init();
}
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 removeTweens(_arg1:Object, ... _args):Boolean{
var _local4:uint;
var _local3:Array = new Array();
_local4 = 0;
while (_local4 < _args.length) {
if ((((typeof(_args[_local4]) == "string")) && (!(AuxFunctions.isInArray(_args[_local4], _local3))))){
_local3.push(_args[_local4]);
};
_local4++;
};
return (affectTweens(removeTweenByIndex, _arg1, _local3));
}
public static function pauseAllTweens():Boolean{
var _local2:uint;
if (!Boolean(_tweenList)){
return (false);
};
var _local1:Boolean;
_local2 = 0;
while (_local2 < _tweenList.length) {
pauseTweenByIndex(_local2);
_local1 = true;
_local2++;
};
return (_local1);
}
public static function splitTweens(_arg1:Number, _arg2:Array):uint{
var _local5:uint;
var _local6:String;
var _local7:Boolean;
var _local3:TweenListObj = _tweenList[_arg1];
var _local4:TweenListObj = _local3.clone(false);
_local5 = 0;
while (_local5 < _arg2.length) {
_local6 = _arg2[_local5];
if (Boolean(_local3.properties[_local6])){
_local3.properties[_local6] = undefined;
delete _local3.properties[_local6];
};
_local5++;
};
for (_local6 in _local4.properties) {
_local7 = false;
_local5 = 0;
while (_local5 < _arg2.length) {
if (_arg2[_local5] == _local6){
_local7 = true;
break;
};
_local5++;
};
if (!_local7){
_local4.properties[_local6] = undefined;
delete _local4.properties[_local6];
};
};
_tweenList.push(_local4);
return ((_tweenList.length - 1));
}
public static function resumeTweenByIndex(_arg1:Number):Boolean{
var _local2:TweenListObj = _tweenList[_arg1];
if ((((_local2 == null)) || (!(_local2.isPaused)))){
return (false);
};
_local2.timeStart = (_local2.timeStart + (_currentTime - _local2.timePaused));
_local2.timeComplete = (_local2.timeComplete + (_currentTime - _local2.timePaused));
_local2.timePaused = undefined;
_local2.isPaused = false;
return (true);
}
public static function debug_getList():String{
var _local2:uint;
var _local3:uint;
var _local1 = "";
_local2 = 0;
while (_local2 < _tweenList.length) {
_local1 = (_local1 + (("[" + _local2) + "] ::\n"));
_local3 = 0;
while (_local3 < _tweenList[_local2].properties.length) {
_local1 = (_local1 + ((((" " + _tweenList[_local2].properties[_local3].name) + " -> ") + _tweenList[_local2].properties[_local3].valueComplete) + "\n"));
_local3++;
};
_local2++;
};
return (_local1);
}
public static function getVersion():String{
return ("AS3 1.25.53");
}
public static function onEnterFrame(_arg1:Event):void{
updateTime();
var _local2:Boolean;
_local2 = updateTweens();
if (!_local2){
stopEngine();
};
}
public static function updateTime():void{
_currentTime = getTimer();
}
private static function updateTweenByIndex(_arg1:Number):Boolean{
var mustUpdate:Boolean;
var nv:Number;
var t:Number;
var b:Number;
var c:Number;
var d:Number;
var pName:String;
var tScope:Object;
var tProperty:Object;
var pv:Number;
var i = _arg1;
var tTweening:TweenListObj = _tweenList[i];
if ((((tTweening == null)) || (!(Boolean(tTweening.scope))))){
return (false);
};
var isOver:Boolean;
if (_currentTime >= tTweening.timeStart){
tScope = tTweening.scope;
if (tTweening.){
do {
t = (((tTweening.timeComplete - tTweening.timeStart) / tTweening.count) * (tTweening.
+ 1));
b = tTweening.timeStart;
c = (tTweening.timeComplete - tTweening.timeStart);
d = (tTweening.timeComplete - tTweening.timeStart);
nv = tTweening.transition(t, b, c, d);
} while (!(_currentTime >= nv));
} else {
mustUpdate = (((((tTweening.skipUpdates < 1)) || (!(tTweening.skipUpdates)))) || ((tTweening. >= tTweening.skipUpdates)));
if (_currentTime >= tTweening.timeComplete){
isOver = true;
mustUpdate = true;
};
if (!tTweening.){
if (Boolean(tTweening.onStart)){
try {
tTweening.onStart.apply(tScope, tTweening.onStartParams);
} catch(e:Error) {
};
};
for (pName in tTweening.properties) {
pv = getPropertyValue(tScope, pName);
tTweening.properties[pName].valueStart = (isNaN(pv)) ? tTweening.properties[pName].valueComplete : pv;
};
mustUpdate = true;
tTweening. = true;
};
if (mustUpdate){
for (pName in tTweening.properties) {
tProperty = tTweening.properties[pName];
if (isOver){
nv = tProperty.valueComplete;
} else {
if (tProperty.hasModifier){
t = (_currentTime - tTweening.timeStart);
d = (tTweening.timeComplete - tTweening.timeStart);
nv = tTweening.transition(t, 0, 1, d);
nv = tProperty.modifierFunction(tProperty.valueStart, tProperty.valueComplete, nv, tProperty.modifierParameters);
} else {
t = (_currentTime - tTweening.timeStart);
b = tProperty.valueStart;
c = (tProperty.valueComplete - tProperty.valueStart);
d = (tTweening.timeComplete - tTweening.timeStart);
nv = tTweening.transition(t, b, c, d);
};
};
if (tTweening.rounded){
nv = Math.round(nv);
};
setPropertyValue(tScope, pName, nv);
};
tTweening. = 0;
if (Boolean(tTweening.onUpdate)){
try {
tTweening.onUpdate.apply(tScope, tTweening.onUpdateParams);
} catch(e:Error) {
};
};
} else {
tTweening.++;
};
};
if (((isOver) && (Boolean(tTweening.onComplete)))){
try {
tTweening.onComplete.apply(tScope, tTweening.onCompleteParams);
} catch(e:Error) {
};
};
return (!(isOver));
};
return (true);
}
public static function setTimeScale(_arg1:Number):void{
var _local2:Number;
if (isNaN(_arg1)){
_arg1 = 1;
};
if (_arg1 < 1E-5){
_arg1 = 1E-5;
};
if (_arg1 != _timeScale){
_local2 = 0;
while (_local2 < _tweenList.length) {
_tweenList[_local2].timeStart = (_currentTime - (((_currentTime - _tweenList[_local2].timeStart) * _timeScale) / _arg1));
_tweenList[_local2].timeComplete = (_currentTime - (((_currentTime - _tweenList[_local2].timeComplete) * _timeScale) / _arg1));
if (_tweenList[_local2].timePaused != undefined){
_tweenList[_local2].timePaused = (_currentTime - (((_currentTime - _tweenList[_local2].timePaused) * _timeScale) / _arg1));
};
_local2++;
};
_timeScale = _arg1;
};
}
public static function resumeAllTweens():Boolean{
var _local2:uint;
if (!Boolean(_tweenList)){
return (false);
};
var _local1:Boolean;
_local2 = 0;
while (_local2 < _tweenList.length) {
resumeTweenByIndex(_local2);
_local1 = true;
_local2++;
};
return (_local1);
}
private static function startEngine():void{
_engineExists = true;
_tweenList = new Array();
__tweener_controller__ = new MovieClip();
__tweener_controller__.addEventListener(Event.ENTER_FRAME, Tweener.onEnterFrame);
updateTime();
}
public static function removeAllTweens():Boolean{
var _local2:uint;
if (!Boolean(_tweenList)){
return (false);
};
var _local1:Boolean;
_local2 = 0;
while (_local2 < _tweenList.length) {
removeTweenByIndex(_local2);
_local1 = true;
_local2++;
};
return (_local1);
}
public static function addTween(_arg1:Object=null, _arg2:Object=null):Boolean{
var _local5:Number;
var _local6:Number;
var _local7:String;
var _local8:String;
var _local9:Object;
var _local15:Function;
var _local16:Object;
var _local17:TweenListObj;
var _local18:Number;
var _local19:Array;
var _local20:Array;
var _local21:String;
if ((((arguments.length < 2)) || ((arguments[0] == undefined)))){
return (false);
};
var _local4:Array = new Array();
if ((arguments[0] is Array)){
_local5 = 0;
while (_local5 < arguments[0].length) {
_local4.push(arguments[0][_local5]);
_local5++;
};
} else {
_local5 = 0;
while (_local5 < (arguments.length - 1)) {
_local4.push(arguments[_local5]);
_local5++;
};
};
_local9 = arguments[(arguments.length - 1)];
if (!_inited){
init();
};
if (((!(_engineExists)) || (!(Boolean(__tweener_controller__))))){
startEngine();
};
var _local10:Number = (isNaN(_local9.time)) ? 0 : _local9.time;
var _local11:Number = (isNaN(_local9.delay)) ? 0 : _local9.delay;
var _local12:Array = new Array();
var _local13:Object = {time:true, delay:true, useFrames:true, skipUpdates:true, transition:true, onStart:true, onUpdate:true, onComplete:true, onOverwrite:true, rounded:true, onStartParams:true, onUpdateParams:true, onCompleteParams:true, onOverwriteParams:true};
var _local14:Object = new Object();
for (_local7 in _local9) {
if (!_local13[_local7]){
if (_specialPropertySplitterList[_local7]){
_local19 = _specialPropertySplitterList[_local7].splitValues(_local9[_local7]);
_local5 = 0;
while (_local5 < _local19.length) {
_local12[_local19[_local5].name] = {valueStart:undefined, valueComplete:_local19[_local5].value};
_local5++;
};
} else {
if (_specialPropertyModifierList[_local7] != undefined){
_local20 = _specialPropertyModifierList[_local7].modifyValues(_local9[_local7]);
_local5 = 0;
while (_local5 < _local20.length) {
_local14[_local20[_local5].name] = {modifierParameters:_local20[_local5].parameters, modifierFunction:_specialPropertyModifierList[_local7].getValue};
_local5++;
};
} else {
_local12[_local7] = {valueStart:undefined, valueComplete:_local9[_local7]};
};
};
};
};
for (_local7 in _local14) {
if (_local12[_local7] != undefined){
_local12[_local7].modifierParameters = _local14[_local7].modifierParameters;
_local12[_local7].modifierFunction = _local14[_local7].modifierFunction;
};
};
if (typeof(_local9.transition) == "string"){
_local21 = _local9.transition.toLowerCase();
_local15 = _transitionList[_local21];
} else {
_local15 = _local9.transition;
};
if (!Boolean(_local15)){
_local15 = _transitionList["easeoutexpo"];
};
_local5 = 0;
while (_local5 < _local4.length) {
_local16 = new Object();
for (_local7 in _local12) {
_local16[_local7] = new PropertyInfoObj(_local12[_local7].valueStart, _local12[_local7].valueComplete, _local12[_local7].modifierFunction, _local12[_local7].modifierParameters);
};
_local17 = new TweenListObj(_local4[_local5], (_currentTime + ((_local11 * 1000) / _timeScale)), (_currentTime + (((_local11 * 1000) + (_local10 * 1000)) / _timeScale)), (_local9.useFrames == true), _local15);
_local17.properties = _local16;
_local17.onStart = _local9.onStart;
_local17.onUpdate = _local9.onUpdate;
_local17.onComplete = _local9.onComplete;
_local17.onOverwrite = _local9.onOverwrite;
_local17.onStartParams = _local9.onStartParams;
_local17.onUpdateParams = _local9.onUpdateParams;
_local17.onCompleteParams = _local9.onCompleteParams;
_local17.onOverwriteParams = _local9.onOverwriteParams;
_local17.rounded = _local9.rounded;
_local17.skipUpdates = _local9.skipUpdates;
removeTweensByTime(_local17.scope, _local17.properties, _local17.timeStart, _local17.timeComplete);
_tweenList.push(_local17);
if ((((_local10 == 0)) && ((_local11 == 0)))){
_local18 = (_tweenList.length - 1);
updateTweenByIndex(_local18);
removeTweenByIndex(_local18);
};
_local5++;
};
return (true);
}
public static function registerTransition(_arg1:String, _arg2:Function):void{
if (!_inited){
init();
};
_transitionList[_arg1] = _arg2;
}
private static function affectTweens(_arg1:Function, _arg2:Object, _arg3:Array):Boolean{
var _local5:uint;
var _local6:Array;
var _local7:uint;
var _local8:uint;
var _local9:uint;
var _local4:Boolean;
if (!Boolean(_tweenList)){
return (false);
};
_local5 = 0;
while (_local5 < _tweenList.length) {
if (((_tweenList[_local5]) && ((_tweenList[_local5].scope == _arg2)))){
if (_arg3.length == 0){
_arg1(_local5);
_local4 = true;
} else {
_local6 = new Array();
_local7 = 0;
while (_local7 < _arg3.length) {
if (Boolean(_tweenList[_local5].properties[_arg3[_local7]])){
_local6.push(_arg3[_local7]);
};
_local7++;
};
if (_local6.length > 0){
_local8 = AuxFunctions.getObjectLength(_tweenList[_local5].properties);
if (_local8 == _local6.length){
_arg1(_local5);
_local4 = true;
} else {
_local9 = splitTweens(_local5, _local6);
_arg1(_local9);
_local4 = true;
};
};
};
};
_local5++;
};
return (_local4);
}
public static function getTweens(_arg1:Object):Array{
var _local2:uint;
var _local3:String;
var _local4:Array = new Array();
_local2 = 0;
while (_local2 < _tweenList.length) {
if (_tweenList[_local2].scope == _arg1){
for (_local3 in _tweenList[_local2].properties) {
_local4.push(_local3);
};
};
_local2++;
};
return (_local4);
}
private static function setPropertyValue(_arg1:Object, _arg2:String, _arg3:Number):void{
if (_specialPropertyList[_arg2] != undefined){
if (Boolean(_specialPropertyList[_arg2].parameters)){
_specialPropertyList[_arg2].setValue(_arg1, _arg3, _specialPropertyList[_arg2].parameters);
} else {
_specialPropertyList[_arg2].setValue(_arg1, _arg3);
};
} else {
_arg1[_arg2] = _arg3;
};
}
private static function getPropertyValue(_arg1:Object, _arg2:String):Number{
if (_specialPropertyList[_arg2] != undefined){
if (Boolean(_specialPropertyList[_arg2].parameters)){
return (_specialPropertyList[_arg2].getValue(_arg1, _specialPropertyList[_arg2].parameters));
};
return (_specialPropertyList[_arg2].getValue(_arg1));
} else {
};
return (!NULL!);
}
public static function isTweening(_arg1:Object):Boolean{
var _local2:uint;
_local2 = 0;
while (_local2 < _tweenList.length) {
if (_tweenList[_local2].scope == _arg1){
return (true);
};
_local2++;
};
return (false);
}
public static function getTweenCount(_arg1:Object):Number{
var _local2:uint;
var _local3:Number = 0;
_local2 = 0;
while (_local2 < _tweenList.length) {
if (_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;
__tweener_controller__.removeEventListener(Event.ENTER_FRAME, Tweener.onEnterFrame);
__tweener_controller__ = null;
}
public static function pauseTweenByIndex(_arg1:Number):Boolean{
var _local2:TweenListObj = _tweenList[_arg1];
if ((((_local2 == null)) || (_local2.isPaused))){
return (false);
};
_local2.timePaused = _currentTime;
_local2.isPaused = true;
return (true);
}
public static function removeTweensByTime(_arg1:Object, _arg2:Object, _arg3:Number, _arg4:Number):Boolean{
var removedLocally:Boolean;
var i:uint;
var pName:String;
var p_scope = _arg1;
var p_properties = _arg2;
var p_timeStart = _arg3;
var p_timeComplete = _arg4;
var removed:Boolean;
var tl:uint = _tweenList.length;
i = 0;
while (i < tl) {
if (((Boolean(_tweenList[i])) && ((p_scope == _tweenList[i].scope)))){
if ((((p_timeComplete > _tweenList[i].timeStart)) && ((p_timeStart < _tweenList[i].timeComplete)))){
removedLocally = false;
for (pName in _tweenList[i].properties) {
if (Boolean(p_properties[pName])){
if (Boolean(_tweenList[i].onOverwrite)){
try {
_tweenList[i].onOverwrite.apply(_tweenList[i].scope, _tweenList[i].onOverwriteParams);
} catch(e:Error) {
};
};
_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):void{
if (!_inited){
init();
};
var _local3:SpecialPropertySplitter = new SpecialPropertySplitter(_arg2);
_specialPropertySplitterList[_arg1] = _local3;
}
public static function removeTweenByIndex(_arg1:Number, _arg2:Boolean=false):Boolean{
_tweenList[_arg1] = null;
if (_arg2){
_tweenList.splice(_arg1, 1);
};
return (true);
}
public static function resumeTweens(_arg1:Object, ... _args):Boolean{
var _local4:uint;
var _local3:Array = new Array();
_local4 = 0;
while (_local4 < _args.length) {
if ((((typeof(_args[_local4]) == "string")) && (!(AuxFunctions.isInArray(_args[_local4], _local3))))){
_local3.push(_args[_local4]);
};
_local4++;
};
return (affectTweens(resumeTweenByIndex, _arg1, _local3));
}
public static function pauseTweens(_arg1:Object, ... _args):Boolean{
var _local4:uint;
var _local3:Array = new Array();
_local4 = 0;
while (_local4 < _args.length) {
if ((((typeof(_args[_local4]) == "string")) && (!(AuxFunctions.isInArray(_args[_local4], _local3))))){
_local3.push(_args[_local4]);
};
_local4++;
};
return (affectTweens(pauseTweenByIndex, _arg1, _local3));
}
}
}//package caurina.transitions
Section 9
//TweenListObj (caurina.transitions.TweenListObj)
package caurina.transitions {
public class TweenListObj {
public var :Boolean;
public var onUpdate:Function;
public var useFrames:Boolean;
public var count:Number;
public var onOverwriteParams:Array;
public var timeStart:Number;
public var :Object;
public var timeComplete:Number;
public var onStartParams:Array;
public var rounded:Boolean;
public var :Number;
public var onUpdateParams:Array;
public var onComplete:Function;
public var properties:Object;
public var onStart:Function;
public var skipUpdates:Number;
public var scope:Object;
public var :Boolean;
public var timePaused:Number;
public var transition:Function;
public var onCompleteParams:Array;
public var
:Number;
public var onOverwrite:Function;
public var isPaused:Boolean;
public var waitFrames:Boolean;
public function TweenListObj(_arg1:Object, _arg2:Number, _arg3:Number, _arg4:Boolean, _arg5:Function){
scope = _arg1;
timeStart = _arg2;
timeComplete = _arg3;
useFrames = _arg4;
transition = _arg5;
= new Object();
properties = new Object();
isPaused = false;
timePaused = undefined;
= false;
= 0;
= 0;
skipUpdates = 0;
= false;
}
public function clone(_arg1:Boolean):TweenListObj{
var _local3:String;
var _local2:TweenListObj = new TweenListObj(scope, timeStart, timeComplete, useFrames, transition);
_local2.properties = new Array();
for (_local3 in properties) {
_local2.properties[_local3] = properties[_local3].clone();
};
_local2.skipUpdates = skipUpdates;
_local2. = ;
if (!_arg1){
_local2.onStart = onStart;
_local2.onUpdate = onUpdate;
_local2.onComplete = onComplete;
_local2.onOverwrite = onOverwrite;
_local2.onStartParams = onStartParams;
_local2.onUpdateParams = onUpdateParams;
_local2.onCompleteParams = onCompleteParams;
_local2.onOverwriteParams = onOverwriteParams;
};
_local2.rounded = rounded;
_local2.isPaused = isPaused;
_local2.timePaused = timePaused;
_local2. = ;
_local2.count = count;
_local2.
=
;
_local2.waitFrames = waitFrames;
_local2. = ;
return (_local2);
}
public function toString():String{
var _local1 = "\n[TweenListObj ";
_local1 = (_local1 + ("scope:" + String(scope)));
_local1 = (_local1 + ", properties:");
var _local2:uint;
while (_local2 < properties.length) {
if (_local2 > 0){
_local1 = (_local1 + ",");
};
_local1 = (_local1 + ("[name:" + properties[_local2].name));
_local1 = (_local1 + (",valueStart:" + properties[_local2].valueStart));
_local1 = (_local1 + (",valueComplete:" + properties[_local2].valueComplete));
_local1 = (_local1 + "]");
_local2++;
};
_local1 = (_local1 + (", timeStart:" + String(timeStart)));
_local1 = (_local1 + (", timeComplete:" + String(timeComplete)));
_local1 = (_local1 + (", useFrames:" + String(useFrames)));
_local1 = (_local1 + (", transition:" + String(transition)));
if (skipUpdates){
_local1 = (_local1 + (", skipUpdates:" + String(skipUpdates)));
};
if (){
_local1 = (_local1 + (", updatesSkipped:" + String()));
};
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 (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 (rounded){
_local1 = (_local1 + (", rounded:" + String(rounded)));
};
if (isPaused){
_local1 = (_local1 + (", isPaused:" + String(isPaused)));
};
if (timePaused){
_local1 = (_local1 + (", timePaused:" + String(timePaused)));
};
if (){
_local1 = (_local1 + (", isCaller:" + String()));
};
if (count){
_local1 = (_local1 + (", count:" + String(count)));
};
if (
){
_local1 = (_local1 + (", timesCalled:" + String(
)));
};
if (waitFrames){
_local1 = (_local1 + (", waitFrames:" + String(waitFrames)));
};
if (){
_local1 = (_local1 + (", hasStarted:" + String()));
};
_local1 = (_local1 + "]\n");
return (_local1);
}
}
}//package caurina.transitions
Section 10
//FlashChecker (classes.gamezhero.FlashChecker)
package classes.gamezhero {
import flash.display.*;
public dynamic class FlashChecker extends MovieClip {
public var b:SimpleButton;
public function FlashChecker(){
addFrameScript(0, frame1, 1, );
}
function frame1(){
stop();
}
function (){
stop();
}
}
}//package classes.gamezhero
Section 11
//Music (com.gamezhero.as3.media.Music)
package com.gamezhero.as3.media {
import flash.events.*;
import flash.media.*;
import flash.utils.*;
public class Music {
public var :Timer;
private var :String;// = ""
private var :Object;
public var :Array;
public var
:Array;
private var :Dictionary;
public var :Number;// = 0.5
public function Music(){
= new Dictionary();
= new Object();
= new Array();
= new Array();
= new Timer(50, 0);
super();
}
private function (_arg1:Event):void{
var _local3:String;
var _local4:Sound;
var _local2:* = _arg1.target;
if ([_local2].loopFlag == "infinity"){
_local3 = [_local2].id;
_local4 = [_local2].sound;
(_local3, _local4);
};
delete [_local2];
}
public function (_arg1:String, _arg2:Sound, _arg3:Number=0):void{
var _local4:Number = 1000;
var _local5:SoundChannel = _arg2.play(0, _local4);
var _local6:SoundTransform = _local5.soundTransform;
_local6.pan = 0;
_local6.volume = ((_arg3)>) ? : _arg3;
_local5.soundTransform = _local6;
_local5.addEventListener(Event.SOUND_COMPLETE, );
[_local5] = {id:_arg1, sound:_arg2};
[_arg1] = _local5;
}
public function setMusicVolume(_arg1:Number):void{
var _local2:*;
var _local3:SoundTransform;
= _arg1;
for (_local2 in ) {
_local3 = _local2.soundTransform;
_local3.volume = ;
_local2.soundTransform = _local3;
};
}
public function stopMusics():void{
var _local1:*;
var _local2:*;
for (_local1 in ) {
(_local1);
};
for (_local2 in ) {
};
}
public function (_arg1:String):void{
if ( [_arg1] != undefined){
.push(_arg1);
.addEventListener("timer", );
.start();
};
}
public function (_arg1:String):void{
var _local2:uint;
trace((((">>>>>>>>>>>>>>> musicIn " + _arg1) + " ") + [_arg1]));
if ( [_arg1] != undefined){
.push(_arg1);
_local2 = 0;
while (_local2 <
.length) {
if (
[_local2] == _arg1){
.splice(_local2, 1);
_local2--;
};
_local2++;
};
.addEventListener("timer", );
.start();
};
}
public function playMusic(_arg1:String, _arg2:String, _arg3:Number=0):void{
var soundFactory:Sound;
var sndClass:Class;
var id = _arg1;
var sName = _arg2;
var step = _arg3;
trace(((("playMusic id:" + id) + " activeMusic:") + ));
if ( != id){
();
= id;
try {
sndClass = (getDefinitionByName(sName) as Class);
} catch(e:ReferenceError) {
return;
};
soundFactory = (new (sndClass) as Sound);
(id, soundFactory, step);
();
} else {
();
};
}
private function (_arg1:TimerEvent=null):void{
var _local2:Number;
var _local3:SoundTransform;
var _local4:SoundChannel;
var _local5:uint;
_local2 = 0;
while (_local2 < .length) {
_local4 = [[_local2]];
_local3 = _local4.soundTransform;
_local3.volume = (_local3.volume + 0.025);
_local3.volume = ((_local3.volume)>=) ? : _local3.volume;
_local4.soundTransform = _local3;
if (_local3.volume == ){
.splice(_local2, 1);
_local2--;
_local5 = 1;
};
_local2++;
};
_local2 = 0;
while (_local2 <
.length) {
_local4 = [
[_local2]];
_local3 = _local4.soundTransform;
_local3.volume = (_local3.volume - 0.03);
_local3.volume = ((_local3.volume)<=0) ? 0 : _local3.volume;
_local4.soundTransform = _local3;
if (_local3.volume == 0){
_local4.stop();
trace("STOP AFTER MINUS");
.splice(_local2, 1);
_local2--;
_local5 = 2;
};
_local2++;
};
if ((((.length == 0)) && ((
.length == 0)))){
.removeEventListener("timer", );
.stop();
if (_local5 == 2){
= "";
};
};
}
}
}//package com.gamezhero.as3.media
Section 12
//SoundFX (com.gamezhero.as3.media.SoundFX)
package com.gamezhero.as3.media {
import flash.events.*;
import flash.media.*;
import flash.utils.*;
public class SoundFX {
private var :Dictionary;
public var :Number;// = 0.5
private var :Object;
public function SoundFX(){
= new Dictionary();
= new Object();
super();
}
public function stopSounds():void{
var _local1:*;
for (_local1 in ) {
_local1.stop();
_local1.addEventListener(Event.SOUND_COMPLETE, );
delete [_local1];
};
= new Object();
= new Dictionary();
}
public function setSoundVolume(_arg1:Number):void{
var _local2:*;
var _local3:SoundTransform;
= _arg1;
for (_local2 in ) {
_local3 = _local2.soundTransform;
_local3.volume = ( * [_local2].kof);
_local2.soundTransform = _local3;
};
}
public function
(_arg1, _arg2:Sound, _arg3:Number, _arg4, _arg5:Number):SoundChannel{
var _local6:Number = ((_arg4)=="infinity") ? 1000 : _arg4;
var _local7:SoundChannel = _arg2.play(0, _local6);
var _local8:SoundTransform = _local7.soundTransform;
_local8.pan = _arg3;
_local8.volume = ( * _arg5);
_local7.soundTransform = _local8;
_local7.addEventListener(Event.SOUND_COMPLETE, );
[_local7] = {id:_arg1, sound:_arg2, loopFlag:_arg4, pan:_arg3, kof:_arg5};
if (_arg1 != null){
[_arg1] = _local7;
};
return (_local7);
}
public function (_arg1:String, _arg2:Number):void{
var _local4:SoundTransform;
var _local3:* = [_arg1];
if (_local3 != undefined){
_local4 = _local3.soundTransform;
[_local3].pan = _arg2;
_local4.pan = _arg2;
_local3.soundTransform = _local4;
};
}
private function (_arg1:Event):void{
var _local4:Sound;
var _local5:*;
var _local6:Number;
var _local7:Number;
var _local2:* = _arg1.target;
var _local3:* = [_local2].id;
if ([_local2].loopFlag == "infinity"){
_local4 = [_local2].sound;
_local5 = [_local2].loopFlag;
_local6 = [_local2].pan;
_local7 = [_local2].kof;
(_local3, _local4, _local5, _local6, _local7);
};
delete [_local2];
delete [_local3];
}
public function
(_arg1:String, _arg2:Number):void{
var _local4:SoundTransform;
var _local3:* = [_arg1];
if (_local3 != undefined){
[_local3].kof = _arg2;
_local4 = _local3.soundTransform;
_local4.volume = ( * [_local3].kof);
_local3.soundTransform = _local4;
};
}
public function (_arg1, _arg2:String, _arg3=0, _arg4:Number=0, _arg5:Number=1):SoundChannel{
var sndClass:Class;
var soundFactory:Sound;
var id = _arg1;
var sName = _arg2;
var loopFlag = _arg3;
var pan = _arg4;
var kof = _arg5;
if ([id] == undefined){
try {
sndClass = (getDefinitionByName(sName) as Class);
soundFactory = (new (sndClass) as Sound);
} catch(e:ReferenceError) {
trace("НЕТ ТАКОГО ЗВУКА :", sName);
return (null);
};
return (
(id, soundFactory, pan, loopFlag, kof));
//unresolved jump
};
return (null);
}
public function (_arg1:String):void{
var _local2:* = [_arg1];
if (_local2 != undefined){
_local2.stop();
_local2.addEventListener(Event.SOUND_COMPLETE, );
delete [_local2];
};
}
}
}//package com.gamezhero.as3.media
Section 13
//ClassLoader (com.gamezhero.as3.utils.ClassLoader)
package com.gamezhero.as3.utils {
import flash.display.*;
import flash.events.*;
import flash.net.*;
import flash.system.*;
public class ClassLoader extends EventDispatcher {
private var :String;
private var :URLRequest;
private var
:Class;
private var :Loader;
public static var CLASS_LOADED:String = "classLoaded";
public static var LOAD_ERROR:String = "loadError";
public function ClassLoader(){
= new Loader();
.contentLoaderInfo.addEventListener(Event.COMPLETE, );
.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, );
.contentLoaderInfo.addEventListener(SecurityErrorEvent.SECURITY_ERROR, );
}
public function getClass(_arg1:String):Class{
var className = _arg1;
try {
return ((.contentLoaderInfo.applicationDomain.getDefinition(className) as Class));
} catch(e:Error) {
trace("ERROR");
};
return (null);
}
private function (_arg1:Event):void{
dispatchEvent(new Event(ClassLoader.LOAD_ERROR));
}
private function (_arg1:Event):void{
dispatchEvent(new Event(ClassLoader.LOAD_ERROR));
}
private function (_arg1:Event):void{
dispatchEvent(new Event(ClassLoader.CLASS_LOADED));
}
public function load(_arg1:String):void{
= _arg1;
= new URLRequest();
var _local2:LoaderContext = new LoaderContext();
_local2.applicationDomain = new ApplicationDomain();
.load(, _local2);
}
}
}//package com.gamezhero.as3.utils
Section 14
//URL (com.gamezhero.as3.utils.URL)
package com.gamezhero.as3.utils {
public class URL {
private var
:String;
private var
:String;
private var
:String;
private var
:String;
private var
:String;
private var
:String;
private var
:String;
private var
:String;
private static const PATTERN:RegExp = /^([A-Za-z0-9_+.]{1,8}:\/\/)?([!-~]+@)?([^\/?#:]*)(:[0-9]*)?(\/[^?#]*)?(\?[^#]*)?(\#.*)?/i;
public function URL(_arg1:String):void{
var _local2:Array = _arg1.match(URL.PATTERN);
= _local2[0];
= _local2[1];
= _local2[2];
= _local2[3];
= _local2[4];
= _local2[5];
= _local2[6];
= _local2[7];
}
public function get port():int{
return (((
.length <= 0)) ? undefined : int(
.substring(1,
.length)));
}
public function get fragment():String{
return (((
.length <= 0)) ? undefined :
);
}
public function get query():Object{
var _local2:String;
var _local3:Array;
var _local4:int;
var _local5:Array;
var _local1:* = {raw:undefined, parsed:undefined};
if (((
) && ((
.length > 0)))){
_local1.raw =
;
_local2 =
.substring(1,
.length);
_local3 = _local2.split("&");
_local1.parsed = ((_local3.length > 0)) ? {} : undefined;
_local4 = 0;
while (_local4 < _local3.length) {
_local5 = _local3[_local4].split("=");
_local1.parsed[_local5[0]] = _local5[1];
_local4++;
};
};
return (_local1);
}
public function get scheme():String{
return (((
.length <= 0)) ? undefined :
.substring(0, (
.length - 3)));
}
public function get host():String{
return (((
.length <= 0)) ? undefined :
);
}
public function get path():String{
return (((
.length <= 0)) ? undefined :
);
}
public function get url():String{
return (((
.length <= 0)) ? undefined :
);
}
public function get userinfo():Object{
var _local2:Array;
var _local1:* = {user:undefined, pass:undefined};
if (
){
_local2 =
.substring(0, (
.length - 1)).split(":");
_local1.user = (_local2[0]) ? _local2[0] : _local1.user;
_local1.pass = (_local2[1]) ? _local2[1] : _local1.pas;
};
return (_local1);
}
}
}//package com.gamezhero.as3.utils
Section 15
//GamePreloader (com.gamezhero.as3.GamePreloader)
package com.gamezhero.as3 {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.net.*;
import flash.ui.*;
public class GamePreloader extends MovieClip {
private var :MovieClip;
private var :Dictionary;
public var bg:MovieClip;
public var intro:MovieClip;
private var :String;
private var :Number;
private var :String;
private var :Object;
public static const finish:String = "PRELOAD_COMPLETE";
public function GamePreloader(_arg1:MovieClip, _arg2:Object){
var _local7:String;
var _local8:ContextMenuItem;
= new Dictionary();
super();
= new Object();
var _local3:String = GamezheroGlobal.getDomain(_arg1.stage);
var _local4:String = GamezheroGlobal.gameName;
= _arg2;
.gamezhero_url = (((("http://www.gamezhero.com/?utm_campaign=" + _local4) + "&utm_source=") + _local3) + "&utm_medium=preloader");
.gamezhero_menu = {Free Online Games @ Gamezhero.com:(((("http://www.gamezhero.com/?utm_campaign=" + _local4) + "&utm_source=") + _local3) + "&utm_medium=context_menu"), Send To Friends:(((((("http://www.gamezhero.com/sendtofriends/" + _local4) + "-onlinegames.html?utm_campaign=") + _local4) + "&utm_source=") + _local3) + "&utm_medium=send_to_friends_context_menu"), Put This Game To Your Blog or Site:(((((("http://www.gamezhero.com/freewebsitegames/" + _local4) + "-onlinegames.html?utm_campaign=") + _local4) + "&utm_source=") + _local3) + "&utm_medium=free_web_site_games_context")};
= _arg1;
.addChild(this);
stage.addEventListener(Event.RESIZE,
);
this.addEventListener(Event.ENTER_FRAME,
);
= stage.scaleMode;
= stage.align;
= stage.frameRate;
(null);
var _local5:ContextMenu = new ContextMenu();
_local5.hideBuiltInItems();
var _local6:ContextMenuBuiltInItems = _local5.builtInItems;
_local6.quality = true;
_local6.print = true;
for (_local7 in _arg2.gamezhero_menu) {
_local8 = new ContextMenuItem(_local7);
[_local8] = _arg2.gamezhero_menu[_local7];
_local8.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, );
_local5.customItems.push(_local8);
};
.loaderInfo.addEventListener(IOErrorEvent.IO_ERROR, );
.loaderInfo.addEventListener(Event.COMPLETE,
);
this.parent.contextMenu = _local5;
this.addEventListener(MouseEvent.MOUSE_DOWN, );
this.useHandCursor = true;
this.buttonMode = true;
}
public function (_arg1:Event):void{
}
public function
(_arg1:Event):void{
stage.scaleMode = StageScaleMode.NO_SCALE;
stage.align = StageAlign.TOP_LEFT;
stage.frameRate = 20;
this["bg"].width = Math.round(stage.stageWidth);
this["bg"].height = Math.round(stage.stageHeight);
this["intro"].x = Math.round((stage.stageWidth / 2));
this["intro"].y = Math.round((stage.stageHeight / 2));
}
public function (_arg1:ContextMenuEvent=null):void{
([_arg1.target]);
}
public function
(_arg1:Event=null):void{
}
public function
(_arg1:Event):void{
var _local2:Number = (-128 + (132 * (.loaderInfo.bytesLoaded / .loaderInfo.bytesTotal)));
this["intro"]["pr"]["begun"].x = (this["intro"]["pr"]["begun"].x - ((this["intro"]["pr"]["begun"].x - _local2) / 5));
if (.loaderInfo.bytesLoaded != .loaderInfo.bytesTotal){
if (this["intro"].currentLabel == "stopFrame"){
this["intro"].stop();
};
} else {
if (this["intro"].currentLabel == "stopFrame"){
this["intro"].play();
};
if (this["intro"].currentFrame == this["intro"].totalFrames){
this["intro"].stop();
();
};
if (.debug){
();
};
};
}
public function (_arg1:String):void{
var _local2:URLRequest = new URLRequest(_arg1);
navigateToURL(_local2, "_blank");
}
public function (_arg1:Event=null):void{
stage.scaleMode = ;
stage.align = ;
stage.frameRate = ;
this.removeEventListener(Event.ENTER_FRAME,
);
stage.removeEventListener(Event.RESIZE,
);
.loaderInfo.removeEventListener(IOErrorEvent.IO_ERROR, );
.loaderInfo.removeEventListener(Event.COMPLETE,
);
var _local2:Event = new Event(finish);
this.dispatchEvent(_local2);
.removeChild(this);
}
public function (_arg1:MouseEvent=null):void{
(.gamezhero_url);
}
}
}//package com.gamezhero.as3
Section 16
//GamezheroGlobal (com.gamezhero.as3.GamezheroGlobal)
package com.gamezhero.as3 {
import flash.display.*;
import com.gamezhero.as3.utils.*;
import flash.net.*;
public class GamezheroGlobal {
public static var gameCodeVar:String = "unset";
public static var gameNameVar:String = "unset";
public static var host:String = "error";
public static function getDomain(_arg1:Stage=null):String{
var url:URL;
var stage = _arg1;
if (host != "error"){
return (host);
};
try {
url = new URL(stage.loaderInfo.url);
host = url.host;
if (url.host == null){
host = "local";
};
} catch(e:Error) {
host = "error";
};
return (host);
}
public static function (_arg1:String, _arg2:String):void{
var _local3:URLRequest = new URLRequest(_arg1);
navigateToURL(_local3, _arg2);
}
public static function set gameName(_arg1:String):void{
gameNameVar = _arg1;
}
public static function get gameName():String{
return (gameNameVar);
}
public static function set gameCode(_arg1:String):void{
gameCodeVar = _arg1;
}
public static function get gameCode():String{
return (gameCodeVar);
}
}
}//package com.gamezhero.as3
Section 17
//SubmitArea (com.gamezhero.as3.SubmitArea)
package com.gamezhero.as3 {
import flash.display.*;
import flash.events.*;
import flash.net.*;
import flash.text.*;
import flash.system.*;
public class SubmitArea extends MovieClip {
private var :LocalConnection;
private var score_value:Number;// = 0
private var :LocalConnection;
private var :String;
private var
:Number;// = 0
private var
:Number;// = 0
private var score:Number;
private var
:MovieClip;
private var
:MovieClip;
private var
:Loader;
private var
:Number;
private var :MovieClip;
private var :Object;
private var :LocalConnection;
private var :String;
private var :LocalConnection;
private var :String;
private var :Object;
public var :String;// = "2.0"
private var :Number;
private var :Loader;
private var :Object;
private var :String;
private var infoText:TextField;
public static const SUBMITED:String = "gamezhero_submited";
public static const CONTINUE:String = "gamezhero_continue";
public static const ERROR:String = "gamezhero_error";
public function SubmitArea(_arg1:MovieClip, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object){
= new LocalConnection();
= new LocalConnection();
= new LocalConnection();
= new LocalConnection();
= new Loader();
= new Loader();
= new Object();
= new Object();
super();
Security.allowDomain("www.gamezhero.com", "gamezhero.com", "files.gamezhero.com", "*.gamezhero.com");
= new Date().getTime();
= ;
= ("_send_gamezhero_skin_" + );
= ("_recive_gamezhero_skin_" + );
= ("_send_gamezhero_engine_" +
);
= ("_recive_gamezhero_engine_" +
);
();
();
();
(_arg1, _arg2, _arg3, _arg4, _arg5);
}
private function iniSkin():void{
.x =
;
.y =
;
infoText.text = "";
.send(, "iniSkin", );
}
private function ():void{
.contentLoaderInfo.removeEventListener(Event.INIT,
);
.contentLoaderInfo.removeEventListener(IOErrorEvent.IO_ERROR, );
.contentLoaderInfo.removeEventListener(Event.INIT,
);
.contentLoaderInfo.removeEventListener(IOErrorEvent.IO_ERROR,
);
.removeEventListener(StatusEvent.STATUS,
);
.removeEventListener(SecurityErrorEvent.SECURITY_ERROR,
);
.removeEventListener(StatusEvent.STATUS,
);
.removeEventListener(SecurityErrorEvent.SECURITY_ERROR, );
.removeEventListener(StatusEvent.STATUS,
);
.removeEventListener(SecurityErrorEvent.SECURITY_ERROR, );
.removeEventListener(StatusEvent.STATUS, );
.removeEventListener(SecurityErrorEvent.SECURITY_ERROR, );
}
private function
(){
infoText.text = "Loading Skin...";
var _local1:String = ( ([104, 116, 116, 112, 58, 47, 47, 102, 105, 108, 101, 115, 46, 103, 97, 109, 101, 122, 104, 101, 114, 111, 46, 99, 111, 109, 47, 115, 99, 111, 114, 101, 47, 115, 107, 105, 110, 47, 115, 107, 105, 110, 95, 118, 49, 46, 115, 119, 102, 63, 103, 97, 109, 101, 122, 104, 101, 114, 111, 67, 111, 100, 101, 61]) + );
var _local2:URLRequest = new URLRequest(_local1);
.load(_local2);
addChild(
);
}
public function submitAction(_arg1:String=""):void{
();
();
dispatchEvent(new Event(SUBMITED));
}
public function
():void{
infoText = new TextField();
infoText.autoSize = TextFieldAutoSize.LEFT;
var _local1:TextFormat = new TextFormat();
_local1.color = 0xFFFFFF;
_local1.size = 11;
_local1.font = "Arial";
infoText.defaultTextFormat = _local1;
this.addChild(infoText);
infoText.x = 10;
infoText.y = 10;
}
private function
():void{
.contentLoaderInfo.addEventListener(Event.INIT,
);
.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, );
.contentLoaderInfo.addEventListener(Event.INIT,
);
.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR,
);
.addEventListener(StatusEvent.STATUS,
);
.addEventListener(SecurityErrorEvent.SECURITY_ERROR,
);
.addEventListener(StatusEvent.STATUS,
);
.addEventListener(SecurityErrorEvent.SECURITY_ERROR, );
.addEventListener(StatusEvent.STATUS,
);
.addEventListener(SecurityErrorEvent.SECURITY_ERROR, );
.addEventListener(StatusEvent.STATUS, );
.addEventListener(SecurityErrorEvent.SECURITY_ERROR, );
}
private function
(_arg1:Event=null){
infoText.text = "Error Loading Engine...";
errorAction();
}
private function
(_arg1:StatusEvent=null):void{
switch (_arg1.level){
case "status":
break;
case "error":
infoText.text = "Error Connections 'Recive From Skin'";
break;
};
}
private function
(_arg1:Event=null){
.send(, "engineIsOk");
infoText.text = "Check Engine Connection...";
}
private function
(_arg1:Event=null){
infoText.text = "Check Skin Connection... ";
.send(, "skinIsOk");
}
private function
(_arg1:StatusEvent=null):void{
switch (_arg1.level){
case "status":
break;
case "error":
infoText.text = "Error Connections 'Recive From Engine'";
break;
};
}
private function
():void{
= new Object();
.skinOk = function (){
();
};
.submitAction = function (_arg1){
.send(, "sendScore", _arg1);
};
.errorInputActin = function (){
};
.continueAction = function (){
continueAction();
};
var dom:String = ([102, 105, 108, 101, 115, 46, 103, 97, 109, 101, 122, 104, 101, 114, 111, 46, 99, 111, 109]);
.allowInsecureDomain(dom);
.allowDomain(dom);
.client = ;
.connect();
.allowInsecureDomain(dom);
.allowDomain(dom);
}
private function
(_arg1:SecurityErrorEvent=null):void{
errorAction();
}
private function
(_arg1:StatusEvent=null):void{
switch (_arg1.level){
case "status":
break;
case "error":
infoText.text = "Error Connections 'Send To Skin'";
break;
};
}
private function (_arg1:StatusEvent=null):void{
switch (_arg1.level){
case "status":
break;
case "error":
infoText.text = "Error Connections 'Send To Engine'";
break;
};
}
private function (_arg1:SecurityErrorEvent=null):void{
errorAction();
}
public function continueAction():void{
();
();
dispatchEvent(new Event(CONTINUE));
}
private function (_arg1:SecurityErrorEvent=null):void{
errorAction();
}
private function (_arg1):String{
var _local2 = "";
var _local3:Number = 0;
while (_local3 < _arg1.length) {
_local2 = (_local2 + String.fromCharCode(_arg1[_local3]));
_local3++;
};
return (_local2);
}
private function
(_arg1:MovieClip, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object):void{
= _arg1;
.addChild(this);
= _arg2;
= _arg3;
score_value = Math.abs(Math.round(_arg4));
= _arg5;
.score = score_value;
.gameName = GamezheroGlobal.gameName;
.gameCode = GamezheroGlobal.gameCode;
.domain = GamezheroGlobal.getDomain();
();
();
}
private function ():void{
this.removeChild(infoText);
this.removeChild(
);
this.removeChild();
.removeChild(this);
}
private function (_arg1:SecurityErrorEvent=null):void{
errorAction();
}
private function
():void{
infoText.text = "Loading Engine...";
var _local1:String = ( ([104, 116, 116, 112, 58, 47, 47, 102, 105, 108, 101, 115, 46, 103, 97, 109, 101, 122, 104, 101, 114, 111, 46, 99, 111, 109, 47, 115, 99, 111, 114, 101, 47, 101, 110, 103, 105, 110, 101, 47, 101, 110, 103, 105, 110, 101, 95, 118, 49, 46, 115, 119, 102, 63, 103, 97, 109, 101, 122, 104, 101, 114, 111, 67, 111, 100, 101, 61]) +
);
var _local2:URLRequest = new URLRequest(_local1);
.load(_local2);
addChild();
}
public function errorAction():void{
();
();
dispatchEvent(new Event(ERROR));
}
private function ():void{
= new Object();
.engineOk = function (){
.send(, "iniEngine", );
infoText.text = "Engine Connections...";
};
.engineError = function (){
infoText.text = "Error Engine...";
};
.submitActionDone = function (_arg1){
sendScore(_arg1);
submitAction();
};
.engineActivated = function (){
iniSkin();
};
var dom:String = ([102, 105, 108, 101, 115, 46, 103, 97, 109, 101, 122, 104, 101, 114, 111, 46, 99, 111, 109]);
.allowDomain(dom);
.allowInsecureDomain(dom);
.client = ;
.connect();
.allowDomain(dom);
.allowInsecureDomain(dom);
}
private function sendScore(_arg1):void{
var _local3:*;
var _local4:URLRequest;
var _local2:URLVariables = new URLVariables();
for (_local3 in _arg1.vars) {
_local2[_local3] = _arg1.vars[_local3];
};
_local4 = new URLRequest(_arg1.url);
_local4.method = URLRequestMethod.POST;
_local4.data = _local2;
navigateToURL(_local4, "_blank");
}
private function (_arg1:Event=null){
infoText.text = "Error Loading Skin...";
errorAction();
}
}
}//package com.gamezhero.as3
Section 18
//Congratulate (forms.Congratulate)
package forms {
import flash.display.*;
public class Congratulate extends Sprite {
}
}//package forms
Section 19
//Game (forms.Game)
package forms {
import flash.display.*;
import flash.events.*;
import game.*;
public class Game extends Sprite {
var :Levels;
public function Game(){
Global._SnowFlakeCur = 3;
this.addEventListener(Event.ENTER_FRAME, );
createLevel();
}
public function createLevel():void{
trace("PLAY MUSIC");
Global.music_interface.playMusic("game", "game");
= new Levels();
this.addChild();
}
public function ():void{
trace("DELETE LEVELE !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
removeChild();
}
private function (_arg1:Event):void{
this.removeEventListener(Event.ENTER_FRAME, );
Global._linkGame = this;
}
}
}//package forms
Section 20
//GameOver (forms.GameOver)
package forms {
import flash.display.*;
public class GameOver extends MovieClip {
}
}//package forms
Section 21
//Instruction (forms.Instruction)
package forms {
import flash.display.*;
import flash.events.*;
import game.*;
import flash.net.*;
import gate.*;
public class Instruction extends MovieClip {
public var btnMoreGames:SimpleButton;
public var bMenu:SimpleButton;
public var bNext:SimpleButton;
private var :URLRequest;
public function Instruction(){
this["bNext"].addEventListener(MouseEvent.CLICK, );
this["bNext"].addEventListener(MouseEvent.MOUSE_OVER, SoundsEvents.overSoundBut);
this["btnMoreGames"].addEventListener(MouseEvent.CLICK, );
this["btnMoreGames"].addEventListener(MouseEvent.MOUSE_OVER, SoundsEvents.overSoundBut);
this["bMenu"].addEventListener(MouseEvent.CLICK,
);
this["bMenu"].addEventListener(MouseEvent.MOUSE_OVER, SoundsEvents.overSoundBut);
}
private function (_arg1:MouseEvent):void{
this["btnMoreGames"].removeEventListener(MouseEvent.CLICK, );
= new URLRequest(Global._urls["play_more_games"]);
navigateToURL(, "_blank");
}
private function
(_arg1:MouseEvent):void{
this["bMenu"].removeEventListener(MouseEvent.CLICK,
);
new Gate(Global._root, (parent as MovieClip), "menu");
}
private function (_arg1:MouseEvent):void{
new Gate((parent.parent as MovieClip), (parent as MovieClip), "game");
removeEventListener(MouseEvent.CLICK, );
}
}
}//package forms
Section 22
//LevelCompleteF (forms.LevelCompleteF)
package forms {
import flash.display.*;
import flash.text.*;
public class LevelCompleteF extends Sprite {
public var bNext:SimpleButton;
public var t_score:TextField;
public var bMoreGame:SimpleButton;
}
}//package forms
Section 23
//LevelFailF (forms.LevelFailF)
package forms {
import flash.display.*;
import flash.text.*;
public class LevelFailF extends Sprite {
public var bonusTxt:TextField;
public var bTop:SimpleButton;
public var bMoreGame:SimpleButton;
public var bRestart:SimpleButton;
}
}//package forms
Section 24
//Map (forms.Map)
package forms {
import flash.display.*;
import flash.events.*;
import gate.*;
public class Map extends MovieClip {
public var bNext:MovieClip;
public function Map(){
this["bNext"].addEventListener(MouseEvent.CLICK, );
this["bNext"].addEventListener(MouseEvent.MOUSE_OVER, );
this["bNext"].addEventListener(MouseEvent.MOUSE_OUT, );
}
private function (_arg1:MouseEvent):void{
useHandCursor = true;
buttonMode = true;
}
private function (_arg1:MouseEvent):void{
var _local2:Gate = new Gate((parent.parent as MovieClip), (parent as MovieClip), "game");
removeEventListener(MouseEvent.CLICK, );
}
private function (_arg1:MouseEvent):void{
useHandCursor = false;
buttonMode = false;
}
}
}//package forms
Section 25
//Menu (forms.Menu)
package forms {
import flash.display.*;
import flash.events.*;
import game.*;
import flash.net.*;
import flash.text.*;
import gate.*;
public class Menu extends MovieClip {
public var youtubeBtn:SimpleButton;
public var putThisGameText_mc:MovieClip;
private var :URLRequest;
public var btnTopScore:SimpleButton;
public var copyrightText:TextField;
public var bStart:SimpleButton;
public var btnSendToFrend:SimpleButton;
public var btnMoreGames:SimpleButton;
public var gamezheroBtn:SimpleButton;
public var putGameBtn:SimpleButton;
public function Menu(){
Global.music_interface.playMusic("menu", "menu");
switch (Global._game_stored_data.data.musicVolumeFlag){
case 0:
Global.music_interface.setMusicVolume(0);
break;
case 1:
Global.music_interface.setMusicVolume(Global._music_volume_interface);
};
this["bStart"].addEventListener(MouseEvent.CLICK, );
this["bStart"].addEventListener(MouseEvent.MOUSE_OVER, SoundsEvents.overSoundBut);
this["btnSendToFrend"].addEventListener(MouseEvent.CLICK, );
this["btnSendToFrend"].addEventListener(MouseEvent.MOUSE_OVER, SoundsEvents.overSoundBut);
this["btnMoreGames"].addEventListener(MouseEvent.CLICK, );
this["btnMoreGames"].addEventListener(MouseEvent.MOUSE_OVER, SoundsEvents.overSoundBut);
this["youtubeBtn"].addEventListener(MouseEvent.CLICK, );
this["youtubeBtn"].addEventListener(MouseEvent.MOUSE_OVER, SoundsEvents.overSoundBut);
this["gamezheroBtn"].addEventListener(MouseEvent.CLICK, );
this["gamezheroBtn"].addEventListener(MouseEvent.MOUSE_OVER, SoundsEvents.overSoundBut);
this["btnTopScore"].addEventListener(MouseEvent.CLICK, );
this["btnTopScore"].addEventListener(MouseEvent.MOUSE_OVER, SoundsEvents.overSoundBut);
(this["putThisGameText_mc"] as MovieClip).mouseChildren = false;
(this["putThisGameText_mc"] as MovieClip).mouseEnabled = false;
this["putGameBtn"].addEventListener(MouseEvent.CLICK, );
this["putGameBtn"].addEventListener(MouseEvent.MOUSE_OVER, SoundsEvents.overSoundBut);
this["copyrightText"].htmlText = Global._urls["copyright"];
}
private function (_arg1:MouseEvent):void{
= new URLRequest(Global._urls["play_more_games"]);
navigateToURL(, "_blank");
}
private function (_arg1:MouseEvent):void{
new Gate((parent.parent as MovieClip), (parent as MovieClip), "instruction");
removeEventListener(MouseEvent.CLICK, );
}
private function (_arg1:MouseEvent):void{
= new URLRequest(Global._urls["send_to_friends_context"]);
navigateToURL(, "_blank");
}
private function (_arg1:MouseEvent):void{
= new URLRequest(Global._urls["youtube"]);
navigateToURL(, "_blank");
}
private function (_arg1:MouseEvent):void{
= new URLRequest(Global._urls["zorro_logo"]);
navigateToURL(, "_blank");
}
private function (_arg1:MouseEvent):void{
= new URLRequest(Global._urls["view_top_score"]);
navigateToURL(, "_blank");
}
private function (_arg1:MouseEvent):void{
= new URLRequest(Global._urls["put_this_game_context"]);
navigateToURL(, "_blank");
}
}
}//package forms
Section 26
//PauseForm (forms.PauseForm)
package forms {
import flash.display.*;
import flash.events.*;
import game.*;
import flash.net.*;
import flash.text.*;
import gate.*;
public class PauseForm extends Sprite {
public var bStop:SimpleButton;
private var :URLRequest;
public var txt:TextField;
public var bPlay:SimpleButton;
public var bZorro:SimpleButton;
public function PauseForm(){
this.addEventListener(Event.ENTER_FRAME, );
}
private function (_arg1:MouseEvent):void{
this["txt"].text = "";
}
private function (_arg1:MouseEvent):void{
this["txt"].text = "More Free Online Games At Gamezhero.com";
}
private function
(_arg1:MouseEvent):void{
var event = _arg1;
this["bStop"].removeEventListener(MouseEvent.CLICK,
);
(Global._DAM as DragAndMove).clearAllEvents();
Global._StateOfWin = "game_over";
new Gate(Global._root, Global._container, "submit_top_score");
try {
Global._root.removeChild((Global._DAM as DragAndMove).pause);
} catch(e:Error) {
};
}
private function (_arg1:MouseEvent):void{
this["txt"].text = "Continue Play";
}
private function (_arg1:MouseEvent):void{
this["txt"].text = "";
}
private function (_arg1:MouseEvent):void{
= new URLRequest(Global._urls["zorro_logo"]);
navigateToURL(, "_blank");
}
private function (_arg1:Event):void{
this.removeEventListener(Event.ENTER_FRAME, );
this["bZorro"].addEventListener(MouseEvent.CLICK, );
this["bZorro"].addEventListener(MouseEvent.MOUSE_OVER, );
this["bZorro"].addEventListener(MouseEvent.MOUSE_OUT, );
this["bPlay"].addEventListener(MouseEvent.CLICK, );
this["bPlay"].addEventListener(MouseEvent.MOUSE_OVER, );
this["bPlay"].addEventListener(MouseEvent.MOUSE_OUT, );
this["bStop"].addEventListener(MouseEvent.CLICK,
);
this["bStop"].addEventListener(MouseEvent.MOUSE_OVER, );
this["bStop"].addEventListener(MouseEvent.MOUSE_OUT, );
}
private function (_arg1:MouseEvent):void{
this["txt"].text = "Exit To Main Menu";
}
private function (_arg1:MouseEvent):void{
this["txt"].text = "";
}
private function (_arg1:MouseEvent):void{
(Global._DAM as DragAndMove).setPause(false);
}
}
}//package forms
Section 27
//TopScore (forms.TopScore)
package forms {
import flash.display.*;
import flash.events.*;
import com.gamezhero.as3.*;
import gate.*;
public class TopScore extends MovieClip {
public function TopScore(){
var scoreGamezheroForm:SubmitArea;
super();
this.addEventListener(Event.ENTER_FRAME, );
GamezheroGlobal.gameName = "santaquest";
GamezheroGlobal.gameCode = "154199160150223158200163213133146151206168170170198211172198213167149216168158148164149173201152152161082154145";
var score_value:Number = Global._scores;
var score_x_pos:Number = 280;
var score_y_pos:Number = 130;
var score_skin:Object = {border:{width:4, color:0xFFFFFF, alpha:100}, background:{topColor:0xFF0000, bottomColor:0x990000, topAlpha:50, bottomAlpha:50, cornerRadius:10}, language:"ENG"};
try {
scoreGamezheroForm = new SubmitArea(this, score_x_pos, score_y_pos, score_value, score_skin);
scoreGamezheroForm.addEventListener(SubmitArea.SUBMITED, submitAction);
scoreGamezheroForm.addEventListener(SubmitArea.CONTINUE, continueAction);
scoreGamezheroForm.addEventListener(SubmitArea.ERROR, errorAction);
} catch(e:Error) {
continueAction();
};
}
private function (_arg1:Event):void{
var _local2:Sprite;
this.removeEventListener(Event.ENTER_FRAME, );
trace(Global._win);
if (Global._StateOfWin != "game_over"){
trace("win");
Global.music_interface.playMusic("menu", "menu");
_local2 = new Congratulate();
this.addChildAt(_local2, 0);
} else {
trace("lose");
Global.music_interface.playMusic(null, "m_game_over");
_local2 = new GameOver();
this.addChildAt(_local2, 0);
};
}
public function errorAction(_arg1:Event=null):void{
trace("ERROR ACTION");
continueAction();
}
public function submitAction(_arg1:Event=null):void{
trace("SUBMIT ACTION");
continueAction();
}
public function continueAction(_arg1:Event=null):void{
trace("CONTINUE ACTION");
Global._currentLevel = 1;
Global._scores = 0;
Global._SnowFlakeCur = 0;
new Gate(Global._root, Global._container, "menu");
}
}
}//package forms
Section 28
//L1 (game.levels.L1)
package game.levels {
public class L1 {
var snowTotal:Number;// = 9
var bombTotal:Number;// = 0
var _delay:uint;// = 100
var liveSymb:uint;// = 0
var GoblinsNum:Number;// = 0
var heavySymbNum:Number;// = 0
var GoblinsProc:Number;// = 0
var bombProc:Number;// = 0
var heavySymbProc:Number;// = 0
public var aLevel:Array;
var timeGame:uint;// = 100000
var aSymbAllow:Array;
var snowProc:Number;// = 0.5
var _repeat:uint;
public function L1(){
aLevel = new Array();
_repeat = (timeGame / _delay);
aSymbAllow = new Array(1, 2, 3, 4, 5, 6);
super();
levelDesign();
();
}
public function levelDesign():void{
aLevel[0] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
aLevel[1] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
aLevel[2] = [0, 0, 1, 1, 1, 2, 1, 1, 1, 0, 0];
aLevel[3] = [0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0];
aLevel[4] = [0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0];
aLevel[5] = [0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0];
aLevel[6] = [0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0];
aLevel[7] = [0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0];
aLevel[8] = [0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0];
aLevel[9] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
aLevel[10] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
}
private function ():void{
Global._aSymbAllow = aSymbAllow;
Global._aLevelDesign = aLevel;
Global._GoblinsNum = GoblinsNum;
Global._GoblinsProc = GoblinsProc;
Global._delay = _delay;
Global._repeat = _repeat;
Global._liveSymb = liveSymb;
Global._heavySymbProc = heavySymbProc;
Global._heavySymbNum = heavySymbNum;
Global._row = aLevel[0].length;
Global._col = aLevel.length;
Global._BombsTotal = bombTotal;
Global._BombProc = bombProc;
Global._SnowFlakeProc = snowProc;
Global._SnowFlakeTotal = snowTotal;
Global._curHeavySymbNum = 0;
Global._SnowFlakeCur2 = 0;
Global._curBombs = 0;
Global._curGoblinsNum = 0;
}
}
}//package game.levels
Section 29
//L10 (game.levels.L10)
package game.levels {
public class L10 {
var snowTotal:Number;// = 5
var bombTotal:Number;// = 2
var _delay:uint;// = 100
var liveSymb:uint;// = 2
var GoblinsNum:Number;// = 4
var heavySymbNum:Number;// = 4
var GoblinsProc:Number;// = 0.2
var bombProc:Number;// = 0.2
var heavySymbProc:Number;// = 0.5
public var aLevel:Array;
var timeGame:uint;// = 140000
var aSymbAllow:Array;
var snowProc:Number;// = 0.2
var _repeat:uint;
public function L10(){
aLevel = new Array();
_repeat = (timeGame / _delay);
aSymbAllow = new Array(1, 2, 3, 4, 5, 6, 7);
super();
levelDesign();
();
}
public function levelDesign():void{
aLevel[0] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
aLevel[1] = [0, 0, 0, 0, 1, 2, 1, 0, 0, 0, 0];
aLevel[2] = [0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0];
aLevel[3] = [0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0];
aLevel[4] = [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0];
aLevel[5] = [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0];
aLevel[6] = [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0];
aLevel[7] = [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0];
aLevel[8] = [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0];
aLevel[9] = [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0];
aLevel[10] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
}
private function ():void{
Global._aSymbAllow = aSymbAllow;
Global._aLevelDesign = aLevel;
Global._GoblinsNum = GoblinsNum;
Global._GoblinsProc = GoblinsProc;
Global._delay = _delay;
Global._repeat = _repeat;
Global._liveSymb = liveSymb;
Global._heavySymbProc = heavySymbProc;
Global._heavySymbNum = heavySymbNum;
Global._row = aLevel[0].length;
Global._col = aLevel.length;
Global._BombsTotal = bombTotal;
Global._BombProc = bombProc;
Global._SnowFlakeProc = snowProc;
Global._SnowFlakeTotal = snowTotal;
Global._curHeavySymbNum = 0;
Global._SnowFlakeCur2 = 0;
Global._curBombs = 0;
Global._curGoblinsNum = 0;
}
}
}//package game.levels
Section 30
//L11 (game.levels.L11)
package game.levels {
public class L11 {
var snowTotal:Number;// = 4
var bombTotal:Number;// = 2
var _delay:uint;// = 100
var liveSymb:uint;// = 3
var GoblinsNum:Number;// = 5
var heavySymbNum:Number;// = 5
var GoblinsProc:Number;// = 0.2
var bombProc:Number;// = 0.2
var heavySymbProc:Number;// = 0.5
public var aLevel:Array;
var timeGame:uint;// = 140000
var aSymbAllow:Array;
var snowProc:Number;// = 0.2
var _repeat:uint;
public function L11(){
aLevel = new Array();
_repeat = (timeGame / _delay);
aSymbAllow = new Array(1, 2, 3, 4, 5, 6, 7, 8);
super();
levelDesign();
();
}
public function levelDesign():void{
aLevel[0] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
aLevel[1] = [0, 0, 0, 1, 1, 2, 1, 1, 0, 0, 0];
aLevel[2] = [0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0];
aLevel[3] = [0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0];
aLevel[4] = [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0];
aLevel[5] = [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0];
aLevel[6] = [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0];
aLevel[7] = [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0];
aLevel[8] = [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0];
aLevel[9] = [0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0];
aLevel[10] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
}
private function ():void{
Global._aSymbAllow = aSymbAllow;
Global._aLevelDesign = aLevel;
Global._GoblinsNum = GoblinsNum;
Global._GoblinsProc = GoblinsProc;
Global._delay = _delay;
Global._repeat = _repeat;
Global._liveSymb = liveSymb;
Global._heavySymbProc = heavySymbProc;
Global._heavySymbNum = heavySymbNum;
Global._row = aLevel[0].length;
Global._col = aLevel.length;
Global._BombsTotal = bombTotal;
Global._BombProc = bombProc;
Global._SnowFlakeProc = snowProc;
Global._SnowFlakeTotal = snowTotal;
Global._curHeavySymbNum = 0;
Global._SnowFlakeCur2 = 0;
Global._curBombs = 0;
Global._curGoblinsNum = 0;
}
}
}//package game.levels
Section 31
//L12 (game.levels.L12)
package game.levels {
public class L12 {
var snowTotal:Number;// = 4
var bombTotal:Number;// = 2
var _delay:uint;// = 100
var liveSymb:uint;// = 3
var GoblinsNum:Number;// = 7
var heavySymbNum:Number;// = 7
var GoblinsProc:Number;// = 0.2
var bombProc:Number;// = 0.2
var heavySymbProc:Number;// = 0.5
public var aLevel:Array;
var timeGame:uint;// = 150000
var aSymbAllow:Array;
var snowProc:Number;// = 0.2
var _repeat:uint;
public function L12(){
aLevel = new Array();
_repeat = (timeGame / _delay);
aSymbAllow = new Array(1, 2, 3, 4, 5, 6, 7, 8);
super();
levelDesign();
();
}
public function levelDesign():void{
aLevel[0] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
aLevel[1] = [0, 1, 1, 1, 1, 2, 1, 1, 1, 1, 0];
aLevel[2] = [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0];
aLevel[3] = [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0];
aLevel[4] = [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0];
aLevel[5] = [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0];
aLevel[6] = [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0];
aLevel[7] = [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0];
aLevel[8] = [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0];
aLevel[9] = [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0];
aLevel[10] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
}
private function ():void{
Global._aSymbAllow = aSymbAllow;
Global._aLevelDesign = aLevel;
Global._GoblinsNum = GoblinsNum;
Global._GoblinsProc = GoblinsProc;
Global._delay = _delay;
Global._repeat = _repeat;
Global._liveSymb = liveSymb;
Global._heavySymbProc = heavySymbProc;
Global._heavySymbNum = heavySymbNum;
Global._row = aLevel[0].length;
Global._col = aLevel.length;
Global._BombsTotal = bombTotal;
Global._BombProc = bombProc;
Global._SnowFlakeProc = snowProc;
Global._SnowFlakeTotal = snowTotal;
Global._curHeavySymbNum = 0;
Global._SnowFlakeCur2 = 0;
Global._curBombs = 0;
Global._curGoblinsNum = 0;
}
}
}//package game.levels
Section 32
//L13 (game.levels.L13)
package game.levels {
public class L13 {
var snowTotal:Number;// = 3
var bombTotal:Number;// = 2
var _delay:uint;// = 100
var liveSymb:uint;// = 3
var GoblinsNum:Number;// = 12
var heavySymbNum:Number;// = 12
var GoblinsProc:Number;// = 0.7
var bombProc:Number;// = 0.2
var heavySymbProc:Number;// = 0.7
public var aLevel:Array;
var timeGame:uint;// = 150000
var aSymbAllow:Array;
var snowProc:Number;// = 0.2
var _repeat:uint;
public function L13(){
aLevel = new Array();
_repeat = (timeGame / _delay);
aSymbAllow = new Array(1, 2, 3, 4, 5, 6, 7, 8, 9);
super();
levelDesign();
();
}
public function levelDesign():void{
aLevel[0] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
aLevel[1] = [0, 0, 1, 1, 1, 2, 1, 1, 1, 0, 0];
aLevel[2] = [0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0];
aLevel[3] = [0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0];
aLevel[4] = [0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0];
aLevel[5] = [0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0];
aLevel[6] = [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0];
aLevel[7] = [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0];
aLevel[8] = [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0];
aLevel[9] = [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0];
aLevel[10] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
}
private function ():void{
Global._aSymbAllow = aSymbAllow;
Global._aLevelDesign = aLevel;
Global._GoblinsNum = GoblinsNum;
Global._GoblinsProc = GoblinsProc;
Global._delay = _delay;
Global._repeat = _repeat;
Global._liveSymb = liveSymb;
Global._heavySymbProc = heavySymbProc;
Global._heavySymbNum = heavySymbNum;
Global._row = aLevel[0].length;
Global._col = aLevel.length;
Global._BombsTotal = bombTotal;
Global._BombProc = bombProc;
Global._SnowFlakeProc = snowProc;
Global._SnowFlakeTotal = snowTotal;
Global._curHeavySymbNum = 0;
Global._SnowFlakeCur2 = 0;
Global._curBombs = 0;
Global._curGoblinsNum = 0;
}
}
}//package game.levels
Section 33
//L14 (game.levels.L14)
package game.levels {
public class L14 {
var snowTotal:Number;// = 3
var bombTotal:Number;// = 3
var _delay:uint;// = 100
var liveSymb:uint;// = 3
var GoblinsNum:Number;// = 14
var heavySymbNum:Number;// = 14
var GoblinsProc:Number;// = 0.9
var bombProc:Number;// = 0.2
var heavySymbProc:Number;// = 0.9
public var aLevel:Array;
var timeGame:uint;// = 160000
var aSymbAllow:Array;
var snowProc:Number;// = 0.2
var _repeat:uint;
public function L14(){
aLevel = new Array();
_repeat = (timeGame / _delay);
aSymbAllow = new Array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10);
super();
levelDesign();
();
}
public function levelDesign():void{
aLevel[0] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
aLevel[1] = [0, 0, 1, 1, 1, 2, 1, 1, 1, 0, 0];
aLevel[2] = [0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0];
aLevel[3] = [0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0];
aLevel[4] = [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0];
aLevel[5] = [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0];
aLevel[6] = [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0];
aLevel[7] = [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0];
aLevel[8] = [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0];
aLevel[9] = [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0];
aLevel[10] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
}
private function ():void{
Global._aSymbAllow = aSymbAllow;
Global._aLevelDesign = aLevel;
Global._GoblinsNum = GoblinsNum;
Global._GoblinsProc = GoblinsProc;
Global._delay = _delay;
Global._repeat = _repeat;
Global._liveSymb = liveSymb;
Global._heavySymbProc = heavySymbProc;
Global._heavySymbNum = heavySymbNum;
Global._row = aLevel[0].length;
Global._col = aLevel.length;
Global._BombsTotal = bombTotal;
Global._BombProc = bombProc;
Global._SnowFlakeProc = snowProc;
Global._SnowFlakeTotal = snowTotal;
Global._curHeavySymbNum = 0;
Global._SnowFlakeCur2 = 0;
Global._curBombs = 0;
Global._curGoblinsNum = 0;
}
}
}//package game.levels
Section 34
//L15 (game.levels.L15)
package game.levels {
public class L15 {
var snowTotal:Number;// = 3
var bombTotal:Number;// = 3
var _delay:uint;// = 100
var liveSymb:uint;// = 3
var GoblinsNum:Number;// = 1000
var heavySymbNum:Number;// = 1000
var GoblinsProc:Number;// = 1.2
var bombProc:Number;// = 0.2
var heavySymbProc:Number;// = 1.2
public var aLevel:Array;
var timeGame:uint;// = 180000
var aSymbAllow:Array;
var snowProc:Number;// = 0.2
var _repeat:uint;
public function L15(){
aLevel = new Array();
_repeat = (timeGame / _delay);
aSymbAllow = new Array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10);
super();
levelDesign();
();
}
public function levelDesign():void{
aLevel[0] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
aLevel[1] = [0, 1, 1, 1, 1, 2, 1, 1, 1, 1, 0];
aLevel[2] = [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0];
aLevel[3] = [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0];
aLevel[4] = [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0];
aLevel[5] = [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0];
aLevel[6] = [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0];
aLevel[7] = [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0];
aLevel[8] = [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0];
aLevel[9] = [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0];
aLevel[10] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
}
private function ():void{
Global._aSymbAllow = aSymbAllow;
Global._aLevelDesign = aLevel;
Global._GoblinsNum = GoblinsNum;
Global._GoblinsProc = GoblinsProc;
Global._delay = _delay;
Global._repeat = _repeat;
Global._liveSymb = liveSymb;
Global._heavySymbProc = heavySymbProc;
Global._heavySymbNum = heavySymbNum;
Global._row = aLevel[0].length;
Global._col = aLevel.length;
Global._BombsTotal = bombTotal;
Global._BombProc = bombProc;
Global._SnowFlakeProc = snowProc;
Global._SnowFlakeTotal = snowTotal;
Global._curHeavySymbNum = 0;
Global._SnowFlakeCur2 = 0;
Global._curBombs = 0;
Global._curGoblinsNum = 0;
}
}
}//package game.levels
Section 35
//L2 (game.levels.L2)
package game.levels {
public class L2 {
var snowTotal:Number;// = 8
var bombTotal:Number;// = 0
var _delay:uint;// = 100
var liveSymb:uint;// = 0
var GoblinsNum:Number;// = 0
var heavySymbNum:Number;// = 0
var GoblinsProc:Number;// = 0
var bombProc:Number;// = 0
var heavySymbProc:Number;// = 0
public var aLevel:Array;
var timeGame:uint;// = 100000
var aSymbAllow:Array;
var snowProc:Number;// = 0.5
var _repeat:uint;
public function L2(){
aLevel = new Array();
_repeat = (timeGame / _delay);
aSymbAllow = new Array(1, 2, 3, 4, 5, 6);
super();
levelDesign();
();
}
public function levelDesign():void{
aLevel[0] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
aLevel[1] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
aLevel[2] = [0, 1, 1, 1, 1, 2, 1, 1, 1, 1, 0];
aLevel[3] = [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0];
aLevel[4] = [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0];
aLevel[5] = [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0];
aLevel[6] = [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0];
aLevel[7] = [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0];
aLevel[8] = [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0];
aLevel[9] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
aLevel[10] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
}
private function ():void{
Global._aSymbAllow = aSymbAllow;
Global._aLevelDesign = aLevel;
Global._GoblinsNum = GoblinsNum;
Global._GoblinsProc = GoblinsProc;
Global._delay = _delay;
Global._repeat = _repeat;
Global._liveSymb = liveSymb;
Global._heavySymbProc = heavySymbProc;
Global._heavySymbNum = heavySymbNum;
Global._row = aLevel[0].length;
Global._col = aLevel.length;
Global._BombsTotal = bombTotal;
Global._BombProc = bombProc;
Global._SnowFlakeProc = snowProc;
Global._SnowFlakeTotal = snowTotal;
Global._curHeavySymbNum = 0;
Global._SnowFlakeCur2 = 0;
Global._curBombs = 0;
Global._curGoblinsNum = 0;
}
}
}//package game.levels
Section 36
//L3 (game.levels.L3)
package game.levels {
public class L3 {
var snowTotal:Number;// = 7
var bombTotal:Number;// = 0
var _delay:uint;// = 100
var liveSymb:uint;// = 0
var GoblinsNum:Number;// = 0
var heavySymbNum:Number;// = 0
var GoblinsProc:Number;// = 0
var bombProc:Number;// = 0
var heavySymbProc:Number;// = 0
public var aLevel:Array;
var timeGame:uint;// = 100000
var aSymbAllow:Array;
var snowProc:Number;// = 0.5
var _repeat:uint;
public function L3(){
aLevel = new Array();
_repeat = (timeGame / _delay);
aSymbAllow = new Array(1, 2, 3, 4, 5, 6);
super();
levelDesign();
();
}
public function levelDesign():void{
aLevel[0] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
aLevel[1] = [0, 0, 1, 1, 1, 2, 1, 1, 1, 0, 0];
aLevel[2] = [0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0];
aLevel[3] = [0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0];
aLevel[4] = [0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0];
aLevel[5] = [0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0];
aLevel[6] = [0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0];
aLevel[7] = [0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0];
aLevel[8] = [0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0];
aLevel[9] = [0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0];
aLevel[10] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
}
private function ():void{
Global._aSymbAllow = aSymbAllow;
Global._aLevelDesign = aLevel;
Global._GoblinsNum = GoblinsNum;
Global._GoblinsProc = GoblinsProc;
Global._delay = _delay;
Global._repeat = _repeat;
Global._liveSymb = liveSymb;
Global._heavySymbProc = heavySymbProc;
Global._heavySymbNum = heavySymbNum;
Global._row = aLevel[0].length;
Global._col = aLevel.length;
Global._BombsTotal = bombTotal;
Global._BombProc = bombProc;
Global._SnowFlakeProc = snowProc;
Global._SnowFlakeTotal = snowTotal;
Global._curHeavySymbNum = 0;
Global._SnowFlakeCur2 = 0;
Global._curBombs = 0;
Global._curGoblinsNum = 0;
}
}
}//package game.levels
Section 37
//L4 (game.levels.L4)
package game.levels {
public class L4 {
var snowTotal:Number;// = 6
var bombTotal:Number;// = 3
var _delay:uint;// = 100
var liveSymb:uint;// = 0
var GoblinsNum:Number;// = 0
var heavySymbNum:Number;// = 0
var GoblinsProc:Number;// = 0
var bombProc:Number;// = 0.2
var heavySymbProc:Number;// = 0
public var aLevel:Array;
var timeGame:uint;// = 120000
var aSymbAllow:Array;
var snowProc:Number;// = 0.3
var _repeat:uint;
public function L4(){
aLevel = new Array();
_repeat = (timeGame / _delay);
aSymbAllow = new Array(1, 2, 3, 4, 5, 6);
super();
levelDesign();
();
}
public function levelDesign():void{
aLevel[0] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
aLevel[1] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
aLevel[2] = [0, 0, 1, 1, 1, 2, 1, 1, 1, 0, 0];
aLevel[3] = [0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0];
aLevel[4] = [0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0];
aLevel[5] = [0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0];
aLevel[6] = [0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0];
aLevel[7] = [0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0];
aLevel[8] = [0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0];
aLevel[9] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
aLevel[10] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
}
private function ():void{
Global._aSymbAllow = aSymbAllow;
Global._aLevelDesign = aLevel;
Global._GoblinsNum = GoblinsNum;
Global._GoblinsProc = GoblinsProc;
Global._delay = _delay;
Global._repeat = _repeat;
Global._liveSymb = liveSymb;
Global._heavySymbProc = heavySymbProc;
Global._heavySymbNum = heavySymbNum;
Global._row = aLevel[0].length;
Global._col = aLevel.length;
Global._BombsTotal = bombTotal;
Global._BombProc = bombProc;
Global._SnowFlakeProc = snowProc;
Global._SnowFlakeTotal = snowTotal;
Global._curHeavySymbNum = 0;
Global._SnowFlakeCur2 = 0;
Global._curBombs = 0;
Global._curGoblinsNum = 0;
}
}
}//package game.levels
Section 38
//L5 (game.levels.L5)
package game.levels {
public class L5 {
var snowTotal:Number;// = 5
var bombTotal:Number;// = 3
var _delay:uint;// = 100
var liveSymb:uint;// = 0
var GoblinsNum:Number;// = 0
var heavySymbNum:Number;// = 0
var GoblinsProc:Number;// = 0
var bombProc:Number;// = 0.2
var heavySymbProc:Number;// = 0
public var aLevel:Array;
var timeGame:uint;// = 120000
var aSymbAllow:Array;
var snowProc:Number;// = 0.3
var _repeat:uint;
public function L5(){
aLevel = new Array();
_repeat = (timeGame / _delay);
aSymbAllow = new Array(1, 2, 3, 4, 5, 6, 7);
super();
levelDesign();
();
}
public function levelDesign():void{
aLevel[0] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
aLevel[1] = [0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0];
aLevel[2] = [0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0];
aLevel[3] = [0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0];
aLevel[4] = [0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0];
aLevel[5] = [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0];
aLevel[6] = [0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0];
aLevel[7] = [0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0];
aLevel[8] = [0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0];
aLevel[9] = [0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0];
aLevel[10] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
}
private function ():void{
Global._aSymbAllow = aSymbAllow;
Global._aLevelDesign = aLevel;
Global._GoblinsNum = GoblinsNum;
Global._GoblinsProc = GoblinsProc;
Global._delay = _delay;
Global._repeat = _repeat;
Global._liveSymb = liveSymb;
Global._heavySymbProc = heavySymbProc;
Global._heavySymbNum = heavySymbNum;
Global._row = aLevel[0].length;
Global._col = aLevel.length;
Global._BombsTotal = bombTotal;
Global._BombProc = bombProc;
Global._SnowFlakeProc = snowProc;
Global._SnowFlakeTotal = snowTotal;
Global._curHeavySymbNum = 0;
Global._SnowFlakeCur2 = 0;
Global._curBombs = 0;
Global._curGoblinsNum = 0;
}
}
}//package game.levels
Section 39
//L6 (game.levels.L6)
package game.levels {
public class L6 {
var snowTotal:Number;// = 5
var bombTotal:Number;// = 3
var _delay:uint;// = 100
var liveSymb:uint;// = 2
var GoblinsNum:Number;// = 0
var heavySymbNum:Number;// = 3
var GoblinsProc:Number;// = 0
var bombProc:Number;// = 0.2
var heavySymbProc:Number;// = 0.5
public var aLevel:Array;
var timeGame:uint;// = 120000
var aSymbAllow:Array;
var snowProc:Number;// = 0.2
var _repeat:uint;
public function L6(){
aLevel = new Array();
_repeat = (timeGame / _delay);
aSymbAllow = new Array(1, 2, 3, 4, 5, 6, 7);
super();
levelDesign();
();
}
public function levelDesign():void{
aLevel[0] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
aLevel[1] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
aLevel[2] = [0, 0, 1, 1, 1, 2, 1, 1, 1, 0, 0];
aLevel[3] = [0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0];
aLevel[4] = [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0];
aLevel[5] = [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0];
aLevel[6] = [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0];
aLevel[7] = [0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0];
aLevel[8] = [0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0];
aLevel[9] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
aLevel[10] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
}
private function ():void{
Global._aSymbAllow = aSymbAllow;
Global._aLevelDesign = aLevel;
Global._GoblinsNum = GoblinsNum;
Global._GoblinsProc = GoblinsProc;
Global._delay = _delay;
Global._repeat = _repeat;
Global._liveSymb = liveSymb;
Global._heavySymbProc = heavySymbProc;
Global._heavySymbNum = heavySymbNum;
Global._row = aLevel[0].length;
Global._col = aLevel.length;
Global._BombsTotal = bombTotal;
Global._BombProc = bombProc;
Global._SnowFlakeProc = snowProc;
Global._SnowFlakeTotal = snowTotal;
Global._curHeavySymbNum = 0;
Global._SnowFlakeCur2 = 0;
Global._curBombs = 0;
Global._curGoblinsNum = 0;
}
}
}//package game.levels
Section 40
//L7 (game.levels.L7)
package game.levels {
public class L7 {
var snowTotal:Number;// = 5
var bombTotal:Number;// = 3
var _delay:uint;// = 100
var liveSymb:uint;// = 2
var GoblinsNum:Number;// = 0
var heavySymbNum:Number;// = 1
var GoblinsProc:Number;// = 0
var bombProc:Number;// = 0.2
var heavySymbProc:Number;// = 0.5
public var aLevel:Array;
var timeGame:uint;// = 120000
var aSymbAllow:Array;
var snowProc:Number;// = 0.2
var _repeat:uint;
public function L7(){
aLevel = new Array();
_repeat = (timeGame / _delay);
aSymbAllow = new Array(1, 2, 3, 4, 5, 6, 7);
super();
levelDesign();
();
}
public function levelDesign():void{
aLevel[0] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
aLevel[1] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
aLevel[2] = [0, 0, 1, 1, 1, 2, 1, 1, 1, 0, 0];
aLevel[3] = [0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0];
aLevel[4] = [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0];
aLevel[5] = [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0];
aLevel[6] = [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0];
aLevel[7] = [0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0];
aLevel[8] = [0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0];
aLevel[9] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
aLevel[10] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
}
private function ():void{
Global._aSymbAllow = aSymbAllow;
Global._aLevelDesign = aLevel;
Global._GoblinsNum = GoblinsNum;
Global._GoblinsProc = GoblinsProc;
Global._delay = _delay;
Global._repeat = _repeat;
Global._liveSymb = liveSymb;
Global._heavySymbProc = heavySymbProc;
Global._heavySymbNum = heavySymbNum;
Global._row = aLevel[0].length;
Global._col = aLevel.length;
Global._BombsTotal = bombTotal;
Global._BombProc = bombProc;
Global._SnowFlakeProc = snowProc;
Global._SnowFlakeTotal = snowTotal;
Global._curHeavySymbNum = 0;
Global._SnowFlakeCur2 = 0;
Global._curBombs = 0;
Global._curGoblinsNum = 0;
}
}
}//package game.levels
Section 41
//L8 (game.levels.L8)
package game.levels {
public class L8 {
var snowTotal:Number;// = 5
var bombTotal:Number;// = 3
var _delay:uint;// = 100
var liveSymb:uint;// = 2
var GoblinsNum:Number;// = 3
var heavySymbNum:Number;// = 2
var GoblinsProc:Number;// = 0.2
var bombProc:Number;// = 0.2
var heavySymbProc:Number;// = 0.5
public var aLevel:Array;
var timeGame:uint;// = 130000
var aSymbAllow:Array;
var snowProc:Number;// = 0.2
var _repeat:uint;
public function L8(){
aLevel = new Array();
_repeat = (timeGame / _delay);
aSymbAllow = new Array(1, 2, 3, 4, 5, 6, 7);
super();
levelDesign();
();
}
public function levelDesign():void{
aLevel[0] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
aLevel[1] = [0, 0, 0, 0, 1, 2, 1, 0, 0, 0, 0];
aLevel[2] = [0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0];
aLevel[3] = [0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0];
aLevel[4] = [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0];
aLevel[5] = [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0];
aLevel[6] = [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0];
aLevel[7] = [0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0];
aLevel[8] = [0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0];
aLevel[9] = [0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0];
aLevel[10] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
}
private function ():void{
Global._aSymbAllow = aSymbAllow;
Global._aLevelDesign = aLevel;
Global._GoblinsNum = GoblinsNum;
Global._GoblinsProc = GoblinsProc;
Global._delay = _delay;
Global._repeat = _repeat;
Global._liveSymb = liveSymb;
Global._heavySymbProc = heavySymbProc;
Global._heavySymbNum = heavySymbNum;
Global._row = aLevel[0].length;
Global._col = aLevel.length;
Global._BombsTotal = bombTotal;
Global._BombProc = bombProc;
Global._SnowFlakeProc = snowProc;
Global._SnowFlakeTotal = snowTotal;
Global._curHeavySymbNum = 0;
Global._SnowFlakeCur2 = 0;
Global._curBombs = 0;
Global._curGoblinsNum = 0;
}
}
}//package game.levels
Section 42
//L9 (game.levels.L9)
package game.levels {
public class L9 {
var snowTotal:Number;// = 5
var bombTotal:Number;// = 3
var _delay:uint;// = 100
var liveSymb:uint;// = 2
var GoblinsNum:Number;// = 3
var heavySymbNum:Number;// = 3
var GoblinsProc:Number;// = 0.2
var bombProc:Number;// = 0.2
var heavySymbProc:Number;// = 0.5
public var aLevel:Array;
var timeGame:uint;// = 130000
var aSymbAllow:Array;
var snowProc:Number;// = 0.2
var _repeat:uint;
public function L9(){
aLevel = new Array();
_repeat = (timeGame / _delay);
aSymbAllow = new Array(1, 2, 3, 4, 5, 6, 7);
super();
levelDesign();
();
}
public function levelDesign():void{
aLevel[0] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
aLevel[1] = [0, 0, 0, 0, 1, 2, 1, 0, 0, 0, 0];
aLevel[2] = [0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0];
aLevel[3] = [0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0];
aLevel[4] = [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0];
aLevel[5] = [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0];
aLevel[6] = [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0];
aLevel[7] = [0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0];
aLevel[8] = [0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0];
aLevel[9] = [0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0];
aLevel[10] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
}
private function ():void{
Global._aSymbAllow = aSymbAllow;
Global._aLevelDesign = aLevel;
Global._GoblinsNum = GoblinsNum;
Global._GoblinsProc = GoblinsProc;
Global._delay = _delay;
Global._repeat = _repeat;
Global._liveSymb = liveSymb;
Global._heavySymbProc = heavySymbProc;
Global._heavySymbNum = heavySymbNum;
Global._row = aLevel[0].length;
Global._col = aLevel.length;
Global._BombsTotal = bombTotal;
Global._BombProc = bombProc;
Global._SnowFlakeProc = snowProc;
Global._SnowFlakeTotal = snowTotal;
Global._curHeavySymbNum = 0;
Global._SnowFlakeCur2 = 0;
Global._curBombs = 0;
Global._curGoblinsNum = 0;
}
}
}//package game.levels
Section 43
//BgWalls (game.symbols.BgWalls)
package game.symbols {
import flash.display.*;
public class BgWalls extends Sprite {
}
}//package game.symbols
Section 44
//Blick (game.symbols.Blick)
package game.symbols {
import flash.display.*;
import flash.events.*;
public class Blick extends MovieClip {
public function Blick(){
this.addEventListener(Event.ENTER_FRAME, );
}
private function (_arg1:Event):void{
if (this.currentFrame >= this.totalFrames){
this.stop();
};
}
}
}//package game.symbols
Section 45
//Bomb (game.symbols.Bomb)
package game.symbols {
import flash.display.*;
import flash.events.*;
import game.*;
public class Bomb extends MovieClip {
public function Bomb(){
this.addEventListener(MouseEvent.MOUSE_OVER,
);
this.addEventListener(MouseEvent.MOUSE_OUT, );
this.addEventListener(MouseEvent.MOUSE_DOWN, );
buttonMode = true;
useHandCursor = true;
}
private function (_arg1:MouseEvent):void{
}
private function ():void{
var _local2:Number;
var _local1:Number = 0;
while (_local1 < Global._col) {
_local2 = 0;
while (_local2 < Global._row) {
if (Global._aLevelDesign[_local1][_local2] != 0){
Global._aMatrix[_local1][_local2].verify = 1;
};
_local2++;
};
_local1++;
};
}
private function (_arg1:MouseEvent):void{
var _local2:Number;
var _local3:Number;
var _local4:SearchAndDestroy;
if (Global._allowDrag == true){
this.removeEventListener(MouseEvent.CLICK, );
SoundsEvents.Bomb();
Global._bombSelect = true;
_local2 = Math.floor((Global._matrix.mouseX / Global._cellWidth));
_local3 = Math.floor((Global._matrix.mouseY / Global._cellWidth));
_local4 = new SearchAndDestroy();
Global._DAM.addChild(_local4);
();
_local4.F_bomb(_local2, _local3);
};
}
private function
(_arg1:MouseEvent):void{
}
}
}//package game.symbols
Section 46
//BonusInfo (game.symbols.BonusInfo)
package game.symbols {
import flash.display.*;
import flash.events.*;
public class BonusInfo extends MovieClip {
public var text:MovieClip;
public function BonusInfo(){
this.addEventListener(Event.ENTER_FRAME, );
}
private function (_arg1:Event):void{
if (this.currentFrame >= this.totalFrames){
this.removeEventListener(Event.ENTER_FRAME, );
parent.removeChild(this);
};
}
}
}//package game.symbols
Section 47
//Frag (game.symbols.Frag)
package game.symbols {
import flash.display.*;
import flash.events.*;
public class Frag extends MovieClip {
public var fragment:MovieClip;
public var msk:MovieClip;
public var blick:MovieClip;
public function Frag(){
addFrameScript(0, frame1);
this.addEventListener(Event.ENTER_FRAME, );
}
private function (_arg1:Event):void{
this.removeEventListener(Event.ENTER_FRAME, );
this.gotoAndStop(Global._currentLevel);
}
function frame1(){
stop();
}
}
}//package game.symbols
Section 48
//Live (game.symbols.Live)
package game.symbols {
import flash.display.*;
import flash.text.*;
public class Live extends Sprite {
public var txt:TextField;
}
}//package game.symbols
Section 49
//Noga (game.symbols.Noga)
package game.symbols {
import flash.display.*;
import flash.events.*;
public class Noga extends MovieClip {
public function Noga(){
this.addEventListener(Event.ENTER_FRAME, );
}
private function (_arg1:Event):void{
var _local2:Number;
if (currentFrame == 1){
_local2 = Math.ceil(((Math.random() * this.totalFrames) - 10));
gotoAndPlay(_local2);
};
}
}
}//package game.symbols
Section 50
//SnowFlake (game.symbols.SnowFlake)
package game.symbols {
import flash.display.*;
public class SnowFlake extends MovieClip {
}
}//package game.symbols
Section 51
//Star (game.symbols.Star)
package game.symbols {
import flash.display.*;
import flash.events.*;
public class Star extends MovieClip {
public function Star(){
this.addEventListener(Event.ENTER_FRAME, update);
}
private function update(_arg1:Event):void{
if (this.currentLabel == "end"){
this.removeEventListener(Event.ENTER_FRAME, update);
parent.removeChild(this);
};
}
}
}//package game.symbols
Section 52
//Symb1 (game.symbols.Symb1)
package game.symbols {
import flash.display.*;
public class Symb1 extends Sprite {
}
}//package game.symbols
Section 53
//Symb10 (game.symbols.Symb10)
package game.symbols {
import flash.display.*;
public class Symb10 extends Sprite {
}
}//package game.symbols
Section 54
//Symb11 (game.symbols.Symb11)
package game.symbols {
import flash.display.*;
public class Symb11 extends Sprite {
}
}//package game.symbols
Section 55
//Symb2 (game.symbols.Symb2)
package game.symbols {
import flash.display.*;
public class Symb2 extends Sprite {
}
}//package game.symbols
Section 56
//Symb2h (game.symbols.Symb2h)
package game.symbols {
import flash.display.*;
public dynamic class Symb2h extends MovieClip {
}
}//package game.symbols
Section 57
//Symb3 (game.symbols.Symb3)
package game.symbols {
import flash.display.*;
public class Symb3 extends Sprite {
}
}//package game.symbols
Section 58
//Symb4 (game.symbols.Symb4)
package game.symbols {
import flash.display.*;
public class Symb4 extends Sprite {
}
}//package game.symbols
Section 59
//Symb4h (game.symbols.Symb4h)
package game.symbols {
import flash.display.*;
public dynamic class Symb4h extends MovieClip {
}
}//package game.symbols
Section 60
//Symb5 (game.symbols.Symb5)
package game.symbols {
import flash.display.*;
public class Symb5 extends Sprite {
}
}//package game.symbols
Section 61
//Symb6 (game.symbols.Symb6)
package game.symbols {
import flash.display.*;
public class Symb6 extends Sprite {
}
}//package game.symbols
Section 62
//Symb7 (game.symbols.Symb7)
package game.symbols {
import flash.display.*;
public class Symb7 extends Sprite {
}
}//package game.symbols
Section 63
//Symb8 (game.symbols.Symb8)
package game.symbols {
import flash.display.*;
public class Symb8 extends Sprite {
}
}//package game.symbols
Section 64
//Symb8h (game.symbols.Symb8h)
package game.symbols {
import flash.display.*;
public dynamic class Symb8h extends MovieClip {
}
}//package game.symbols
Section 65
//Symb9 (game.symbols.Symb9)
package game.symbols {
import flash.display.*;
public class Symb9 extends Sprite {
}
}//package game.symbols
Section 66
//SymbX (game.symbols.SymbX)
package game.symbols {
import flash.display.*;
public class SymbX extends Sprite {
}
}//package game.symbols
Section 67
//Walls (game.symbols.Walls)
package game.symbols {
import flash.display.*;
public class Walls extends MovieClip {
}
}//package game.symbols
Section 68
//AddLive (game.AddLive)
package game {
import flash.display.*;
import game.symbols.*;
public class AddLive extends Sprite {
public function AddLive(_arg1:Sprite){
var _local2:Live = new Live();
_local2.name = "Live";
_local2.x = ((_local2.x + (Global._cellWidth / 2)) - (_local2.width / 2));
_local2.y = ((_local2.y + (Global._cellHeight / 2)) - (_local2.height / 2));
_arg1.addChild(_local2);
}
}
}//package game
Section 69
//addNewSymb (game.addNewSymb)
package game {
import flash.display.*;
public class addNewSymb extends Sprite {
private var :Number;
public var heavy:Boolean;// = false
public var live:uint;
private var target:Sprite;
private var dx:Number;
private var dy:Number;
var selectSymb:SelectRandSymbol;
public var symb:Sprite;
private var :Object;
public function addNewSymb(_arg1:Sprite, _arg2:Object, _arg3:Number, _arg4:Number){
selectSymb = new SelectRandSymbol();
= Global._cellWidth;
super();
heavy = false;
this.target = _arg1;
this. = _arg2;
this.dx = _arg3;
this.dy = _arg4;
();
}
private function ():void{
selectSymb.select();
symb = selectSymb.symb;
symb.x = dx;
symb.y = dy;
target.addChild(symb);
}
}
}//package game
Section 70
//BonusSnowFlake (game.BonusSnowFlake)
package game {
import flash.display.*;
import flash.events.*;
import game.symbols.*;
public class BonusSnowFlake extends Sprite {
private var :Boolean;// = false
private var :SnowFlake;
public function BonusSnowFlake(){
this.addEventListener(Event.ENTER_FRAME, );
}
private function (_arg1:Number, _arg2:Number):void{
var _local6:String;
var _local7:uint;
var _local8:uint;
var _local9:Object;
var _local3:SearchAndDestroy = new SearchAndDestroy();
Global._DAM.addChild(_local3);
SearchAndDestroy.tmpAr = [];
var _local4:Number = Math.floor((_arg1 / Global._cellWidth));
var _local5:Number = Math.floor((_arg2 / Global._cellHeight));
if ((((((((_local4 >= 0)) && ((_local4 <= 9)))) && ((_local5 >= 0)))) && ((_local5 <= 9)))){
if (Global._aLevelDesign[_local5][_local4] == 1){
_local6 = Global._aMatrix[_local5][_local4].type;
_local7 = 0;
while (_local7 < Global._col) {
_local8 = 0;
while (_local8 < Global._row) {
_local9 = Global._aMatrix[_local8][_local7].type;
if ((((((((_local9 == _local6)) && (!((_local9 as Frag))))) && (!((_local9 as SnowFlake))))) && (!((_local9 as Bomb))))){
SearchAndDestroy.tmpAr.push(Global._aMatrix[_local8][_local7]);
};
_local8++;
};
_local7++;
};
if (((((((!((_local6 == "[object SnowFlake]"))) && (!((_local6 == "[object Frag]"))))) && (!((_local6 == "[object Symb11]"))))) && (!((_local6 == "[object Bomb]"))))){
Global._linkLevel["txtSnowFlake"].text--;
Global._SnowFlakeCur--;
Global._SnowFlakeSelect = true;
_local3.F_destroy_for_bomb();
_local3.F_begin();
Global._SnowFlakeSelect = false;
};
};
};
}
private function (_arg1:Event):void{
this.removeEventListener(Event.ENTER_FRAME, );
Global._linkLevel["btnSnowFlake"].addEventListener(MouseEvent.CLICK, );
}
private function (_arg1:Event):void{
.x = Global._linkLevel.mouseX;
.y = Global._linkLevel.mouseY;
}
private function (_arg1:MouseEvent):void{
if ((((((Global._allowDrag == true)) && ((Global._linkLevel["txtSnowFlake"].text > 0)))) && ((Global._stopAllClick == false)))){
= new SnowFlake();
Global._linkLevel.addChild( );
.x = Global._linkLevel.mouseX;
.y = Global._linkLevel.mouseY;
Global._linkLevel["btnSnowFlake"].removeEventListener(MouseEvent.CLICK, );
.addEventListener(MouseEvent.CLICK,
);
Global._linkLevel.addEventListener(MouseEvent.MOUSE_MOVE, );
};
}
private function
(_arg1:MouseEvent):void{
if ((((Global._allowDrag == true)) && ((Global._stopAllClick == false)))){
.removeEventListener(MouseEvent.CLICK,
);
Global._linkLevel.removeChild( );
Global._linkLevel.removeEventListener(MouseEvent.MOUSE_MOVE, );
Global._linkLevel["btnSnowFlake"].addEventListener(MouseEvent.CLICK, );
(Global._matrix.mouseX, Global._matrix.mouseY);
};
}
}
}//package game
Section 71
//CreateCrossSymb (game.CreateCrossSymb)
package game {
import flash.display.*;
import game.symbols.*;
public class CreateCrossSymb {
private var :Number;
var :uint;
private var :Sprite;
private var :Object;
private var :Array;
private var :Number;
private var :Number;
private var :Sprite;
public function CreateCrossSymb(_arg1:Sprite, _arg2:Object, _arg3:Number, _arg4:Number, _arg5:Array){
= _arg2;
= _arg1;
= _arg3;
= _arg4;
= _arg5;
();
}
private function
():void{
if ((.clip as Symb1)){
= new Symb1();
};
if ((.clip as Symb2)){
= new Symb2();
};
if ((.clip as Symb3)){
= new Symb3();
};
if ((.clip as Symb4)){
= new Symb4();
};
if ((.clip as Symb5)){
= new Symb5();
};
if ((.clip as Symb6)){
= new Symb6();
};
if ((.clip as Symb7)){
= new Symb7();
};
if ((.clip as Symb8)){
= new Symb8();
};
if ((.clip as Symb9)){
= new Symb9();
};
if ((.clip as Symb10)){
= new Symb10();
};
if ((.clip as Symb11)){
= new Symb11();
};
if ((.clip as Frag)){
= new Frag();
.name = "Frag";
};
if ((.clip as Bomb)){
= new Bomb();
.name = "bomb";
};
if ((.clip as SnowFlake)){
= new SnowFlake();
.name = "SnowFlake";
};
.x = ;
.y = ;
new AddLive( );
= .clip.getChildByName("Live")["txt"].text;
.getChildByName("Live")["txt"].text = ;
if (Number( .getChildByName("Live")["txt"].text) > 1){
.getChildByName("Live").visible = true;
} else {
.getChildByName("Live").visible = false;
};
.addChild( );
.push({clip: , startX: .x, startY: .y});
}
}
}//package game
Section 72
//DragAndMove (game.DragAndMove)
package game {
import flash.display.*;
import flash.events.*;
import caurina.transitions.*;
import General.*;
import flash.utils.*;
import forms.*;
import game.symbols.*;
import flash.geom.*;
import gate.*;
public class DragAndMove extends Sprite {
private var :uint;
private var blick:Blick;
var :Number;
private var :Timer;
private var _aLevelDesign:Array;
private var :Number;
private var :Number;
private var :Number;
private var :Number;
private var
:Boolean;// = false
private var :Boolean;
private var _aMatrix:Array;
private var :Number;
private var :uint;// = 0
private var :uint;// = 0
public var PauseOn:Boolean;// = false
private var :Boolean;
private var
:Array;
private var timeLine;
public var :uint;
private var :Number;
private var :Boolean;
private var :uint;
private var :uint;
private var :Number;
private var :Number;
private var delay:uint;
private var :Number;
private var click:String;
private var :Number;
private var
:Object;
private var col:Number;
private var :uint;
private var :uint;
public var
:Number;
public var
:Number;
private var tmpAr:Array;
private var
:Boolean;
private var
:Boolean;
private var
:uint;
private var :Sprite;
private var
:Boolean;// = false
private var
:Array;
private var
:Boolean;// = false
public var
:Number;
private var :Sprite;
public var
:Number;
public var
:Number;
public var :Number;
private var row:Number;
var step:Number;// = 0
var :SearchAndDestroy;
public var :Number;
private var :Number;// = 0
private var :Number;
public var :Number;
public var pause:PauseForm;
public var myTimer:Timer;
private var :Number;
private var :Number;
public function DragAndMove(_arg1){
= new Array();
= new Array();
row = Global._row;
col = Global._col;
delay = Global._delay;
= Global._repeat;
super();
PauseOn = false;
= 0;
= 0;
_arg1.addChild(this);
stage.addEventListener(Event.DEACTIVATE,
);
}
private function (_arg1:Event):void{
clearInterval();
Global._linkMatrix.removeEventListener(Event.ENTER_FRAME, );
this.addEventListener(Event.ENTER_FRAME,
);
Global._fragmentExplode = false;
var _local2:Object = Global._linkLevel;
timeLine = _local2["timeLine"];
= new SearchAndDestroy();
addChild();
.F_begin();
.addEventListener(MouseEvent.MOUSE_DOWN, );
myTimer = new Timer(delay, );
myTimer.start();
myTimer.addEventListener(TimerEvent.TIMER, );
myTimer.addEventListener(TimerEvent.TIMER_COMPLETE, );
= setInterval(
, 10000);
}
private function ():void{
var _local1:Number;
if ( == true){
_local1 = 0;
while (_local1 <
.length) {
[_local1].clip.x = (
[_local1].startX - ( - mouseX));
_local1++;
};
};
if ((((
== true)) && (( == true)))){
_local1 = 0;
while (_local1 <
.length) {
[_local1].clip.y = (
[_local1].startY - ( - mouseY));
_local1++;
};
};
if ((((((
== true)) && (( == false)))) && (( > 0)))){
_local1 = 0;
while (_local1 <
.length) {
if (( - mouseY) > 0){
[_local1].clip.y = (
[_local1].startY - ( - mouseY));
};
_local1++;
};
};
if ((((((
== true)) && (( == false)))) && ((( - mouseY) < 0)))){
SoundsEvents.notMove();
};
}
private function
():void{
if ((((Global._StateOfWin == "none")) && ((Global._allowDrag == true)))){
blick = new Blick();
blick.addEventListener(Event.ENTER_FRAME, );
blick.x = (-450 / 2);
blick.y = (-450 / 2);
blick.rotation = 45;
blick.name = "blick";
.addChild(blick);
blick.play();
};
}
private function (_arg1:MouseEvent):void{
if ((((((Global._allowDrag == true)) && ((Global._bombSelect == false)))) && ((Global._StateOfWin == "none")))){
Global._allowDrag = false;
click = "down";
= new Point(mouseX, mouseY);
=
.x;
=
.y;
= Math.floor((
.x / ));
= Math.floor((
.y / ));
(, );
= true;
parent.parent.addEventListener(MouseEvent.MOUSE_UP,
);
.addEventListener(MouseEvent.MOUSE_MOVE, );
};
}
private function (_arg1:TimerEvent):void{
--;
timeLine["msk"].x = (68 - ((68 + 142) * (1 - ( / Global._repeat))));
}
public function clearAllEvents(_arg1:Boolean=false):void{
var removeAll = _arg1;
Tweener.removeAllTweens();
myTimer.stop();
clearInterval();
clearInterval(
);
clearInterval();
stage.removeEventListener(Event.DEACTIVATE,
);
stage.removeEventListener(Event.MOUSE_LEAVE, );
this.removeEventListener(Event.ENTER_FRAME,
);
.removeEventListener(MouseEvent.MOUSE_DOWN, );
.removeEventListener(MouseEvent.MOUSE_MOVE, );
.removeEventListener(MouseEvent.MOUSE_MOVE,
);
myTimer.removeEventListener(TimerEvent.TIMER, );
myTimer.removeEventListener(TimerEvent.TIMER_COMPLETE, );
parent.parent.removeEventListener(MouseEvent.MOUSE_UP,
);
try {
.removeChild(blick);
blick.removeEventListener(Event.ENTER_FRAME, );
} catch(e:Error) {
};
}
private function (_arg1:Event):void{
click = "leave";
if ((((click == "none")) && ((Global._bombSelect == false)))){
parent.parent.removeEventListener(MouseEvent.MOUSE_UP,
);
.removeEventListener(MouseEvent.MOUSE_DOWN, );
.removeEventListener(MouseEvent.MOUSE_MOVE, );
Global._allowDrag = false;
= false;
();
();
};
}
private function (_arg1:Event=null):void{
--;
if ( == 0){
clearInterval();
();
= false;
Global._allowDrag = true;
.addEventListener(MouseEvent.MOUSE_DOWN, );
click = "none";
};
}
private function
(_arg1:MouseEvent=null):void{
if ((((
== true)) && ((
== false)))){
();
};
}
public function F_Begin(_arg1:Sprite):void{
this. = Global._matrix;
this. = _arg1;
this._aLevelDesign = Global._aLevelDesign;
this._aMatrix = Global._aMatrix;
= Global._cellWidth;
= Global._cellHeight;
= Global._cellWidth;
Global._DAM = this;
Global._linkMatrix.addEventListener(Event.ENTER_FRAME, );
}
private function ():void{
var _local1:uint;
while (_local1 <
.length) {
if (
[_local1].clip.y >= ){
[_local1].clip.y = ((( * ) + ( / 2)) + step);
step = (step + );
};
_local1++;
};
}
private function ():void{
var _local1:Array;
var _local3:Number;
var _local4:Number;
var _local5:Number;
();
= 0;
if ( == true){
_local1 =
;
=
.length;
} else {
_local1 =
;
=
.length;
};
var _local2:Number = 0;
while (_local2 < ) {
_local3 = Math.floor((_local1[_local2].clip.x / ));
_local4 = Math.floor((_local1[_local2].clip.y / ));
if ((((((((_local3 < row)) && ((_local4 < col)))) && ((_local3 >= 0)))) && ((_local4 >= 0)))){
if (_aLevelDesign[_local4][_local3] != 0){
_aMatrix[_local4][_local3].type = _local1[_local2].clip;
_aMatrix[_local4][_local3].dx = _local1[_local2].clip.x;
_aMatrix[_local4][_local3].dy = _local1[_local2].clip.y;
_aMatrix[_local4][_local3].live = _local1[_local2].live;
};
};
_local2++;
};
_local2 = 0;
while (_local2 < col) {
_local5 = 0;
while (_local5 < row) {
tmpAr = [];
if (((((!((_aLevelDesign[_local2][_local5] == 0))) && (!((_aMatrix[_local2][_local5].type as Symb11))))) && (!((_aMatrix[_local2][_local5].type as Bomb))))){
(_local2, _local5, 0);
};
if (tmpAr.length > 2){
= 1;
break;
};
_local5++;
};
();
_local2++;
};
if ( == 0){
();
};
}
private function (_arg1:MouseEvent):void{
clearInterval(
);
= new Point(mouseX, mouseY);
= Math.abs(( -
.x));
= Math.abs(( -
.y));
step = 0;
var _local2:DisplayObject = .getChildByName("Frag");
= _local2.y;
= (( - ( * )) - ( / 2));
if ( == false){
if (( < (( * ) + ( / 2)))){
SoundsEvents.notMove();
();
};
};
if (((( > 2)) && ((
== true)))){
= false;
= true;
= false;
();
.addEventListener(MouseEvent.MOUSE_MOVE,
);
stage.addEventListener(Event.MOUSE_LEAVE, );
};
if (((( > 2)) && ((
== true)))){
= false;
= false;
= true;
();
.addEventListener(MouseEvent.MOUSE_MOVE,
);
stage.addEventListener(Event.MOUSE_LEAVE, );
};
= setInterval(, 1);
}
public function
(_arg1:Number, _arg2:Number):void{
var _local3:Object;
var _local4:uint;
= [];
= [];
= 0;
= 0;
= true;
var _local5:Number = 0;
while (_local5 < row) {
if (_aLevelDesign[_arg2][_local5] > 0){
++;
_local3 = _aMatrix[_arg2][_local5].type;
.push({clip:_local3, startX:_local3.x, startY:_local3.y, live:_local4});
};
_local5++;
};
_local5 = 0;
while (_local5 < col) {
if (_aLevelDesign[_local5][_arg1] > 0){
++;
_local3 = _aMatrix[_local5][_arg1].type;
.push({clip:_local3, startX:_local3.x, startY:_local3.y, live:_local4});
if ((_local3 as Frag)){
= false;
= _local3.y;
};
};
_local5++;
};
= Math.floor((
[0].clip.x / ));
= Math.floor((
[0].clip.y / ));
= Math.floor((
[(
.length - 1)].clip.x / ));
= Math.floor((
[(
.length - 1)].clip.y / ));
= Math.floor((
[0].clip.x / ));
= Math.floor((
[0].clip.y / ));
= Math.floor((
[(
.length - 1)].clip.x / ));
= Math.floor((
[(
.length - 1)].clip.y / ));
}
private function ():void{
var _local1:Number;
var _local2:Object;
var _local3:Number;
var _local4:Number;
= false;
= 0;
if ( == true){
_local1 = 0;
while (_local1 <
.length) {
_local2 =
[_local1].clip;
= Math.ceil((_local2.x / ));
= Math.ceil((_local2.y / ));
_local3 = ( * );
_local4 = ( * );
Tweener.addTween(
[_local1].clip, {x:(_local3 - ( / 2)), time:Global._dovodchikSpeed, onComplete: });
if (PauseOn){
Tweener.pauseAllTweens();
};
++;
_local1++;
};
};
if (
== true){
_local1 = 0;
while (_local1 <
.length) {
_local2 =
[_local1].clip;
= Math.ceil((
[_local1].clip.x / ));
= Math.ceil((
[_local1].clip.y / ));
_local3 = ( * );
_local4 = ( * );
Tweener.addTween(
[_local1].clip, {y:(_local4 - ( / 2)), time:Global._dovodchikSpeed, onComplete: });
if (PauseOn){
Tweener.pauseAllTweens();
};
++;
_local1++;
};
};
if (((( == 0)) && ((PauseOn == false)))){
();
};
}
private function (_arg1:Event=null):void{
--;
if ( == 0){
clearInterval();
();
= false;
.F_begin();
.addEventListener(MouseEvent.MOUSE_DOWN, );
};
}
private function
(_arg1:Event):void{
if ((((PauseOn == false)) && ((Global._StateOfWin == "none")))){
setPause(true);
};
}
public function setPause(_arg1:Boolean=true):void{
var how = _arg1;
if (how){
if (PauseOn == false){
myTimer.stop();
Tweener.pauseAllTweens();
Global.music_interface.stopMusics();
Global.sound_interface.stopSounds();
pause = new PauseForm();
Global._root.addChild(pause);
PauseOn = true;
};
} else {
if (PauseOn == true){
myTimer.start();
Tweener.resumeAllTweens();
Global.music_interface.playMusic("game", "game");
try {
Global._root.removeChild(pause);
} catch(e:Error) {
};
PauseOn = false;
};
};
}
public function
():void{
var _local1:Object;
var _local7:Number;
var _local8:CreateCrossSymb;
var _local2:Number = (_aMatrix[
][
].dx - );
var _local3:Number = _aMatrix[
][
].dy;
var _local4:Number = (
.length - 1);
var _local5:Number = 0;
while (_local5 < 2) {
_local7 = _local4;
while (_local7 >= 0) {
_local1 =
[_local7];
_local8 = new CreateCrossSymb(, _local1, _local2, _local3,
);
_local2 = (_local2 - );
_local7--;
};
_local5++;
};
_local2 = (_aMatrix[
][
].dx + );
_local3 = _aMatrix[
][
].dy;
_local5 = 0;
while (_local5 < 2) {
_local7 = 0;
while (_local7 <= _local4) {
_local1 =
[_local7];
_local8 = new CreateCrossSymb(, _local1, _local2, _local3,
);
_local2 = (_local2 + );
_local7++;
};
_local5++;
};
_local2 = _aMatrix[ ][].dx;
_local3 = (_aMatrix[ ][].dy - );
var _local6:Number = (
.length - 1);
_local5 = 0;
while (_local5 < 2) {
_local7 = _local6;
while (_local7 >= 0) {
_local1 =
[_local7];
_local8 = new CreateCrossSymb(, _local1, _local2, _local3,
);
_local3 = (_local3 - );
_local7--;
};
_local5++;
};
_local2 = _aMatrix[][
].dx;
_local3 = (_aMatrix[][
].dy + );
_local5 = 0;
while (_local5 < 2) {
_local7 = 0;
while (_local7 <= _local6) {
_local1 =
[_local7];
_local8 = new CreateCrossSymb(, _local1, _local2, _local3,
);
_local3 = (_local3 + );
_local7++;
};
_local5++;
};
= true;
}
private function
():void{
var _local1:Object;
var _local2:Array;
var _local3:uint;
Global._allowDrag = false;
= false;
if ( == true){
_local2 =
;
_local3 =
.length;
} else {
_local2 =
;
_local3 =
.length;
};
= 0;
var _local4:Number = 0;
while (_local4 < _local3) {
_local1 = _local2[_local4];
= _local1.startX;
= _local1.startY;
if ( == true){
Tweener.addTween(_local1.clip, {x: , time:Global._dovodchikSpeed, onComplete: });
if (PauseOn){
Tweener.pauseAllTweens();
};
++;
} else {
Tweener.addTween(_local1.clip, {y: , time:Global._dovodchikSpeed, onComplete: });
if (PauseOn){
Tweener.pauseAllTweens();
};
++;
};
_local4++;
};
if (((( == 0)) && ((PauseOn == false)))){
();
};
}
private function (_arg1:TimerEvent):void{
var _local2:LevelFailed;
Global._allowDrag = false;
= true;
Tweener.pauseAllTweens();
if ((Global._SnowFlakeCur <= 0)){
PauseOn = true;
clearAllEvents();
Global._StateOfWin = "gameover";
new Gate(Global._root, Global._container, "submit_top_score");
} else {
PauseOn = true;
clearAllEvents();
_local2 = new LevelFailed(Global._linkMatrix);
addChild(_local2);
_local2.Fail();
};
}
private function (_arg1:Number, _arg2:Number, _arg3:Number):void{
if ((((((_aMatrix[_arg1][_arg2].verify == 0)) || ((_aMatrix[_arg1][_arg2].type as Symb11)))) || ((_aMatrix[_arg1][_arg2].type as Bomb)))){
return;
};
_arg3++;
tmpAr.push(_aMatrix[_arg1][_arg2]);
_aMatrix[_arg1][_arg2].verify = 0;
var _local4:String = _aMatrix[_arg1][_arg2].type;
if ((_arg2 - 1) >= 0){
if (_local4 == _aMatrix[_arg1][(_arg2 - 1)].type){
(_arg1, (_arg2 - 1), _arg3);
};
};
if ((_arg2 + 1) < row){
if (_local4 == _aMatrix[_arg1][(_arg2 + 1)].type){
(_arg1, (_arg2 + 1), _arg3);
};
};
if ((_arg1 - 1) >= 0){
if (_local4 == _aMatrix[(_arg1 - 1)][_arg2].type){
((_arg1 - 1), _arg2, _arg3);
};
};
if ((_arg1 + 1) < col){
if (_local4 == _aMatrix[(_arg1 + 1)][_arg2].type){
((_arg1 + 1), _arg2, _arg3);
};
};
}
private function ():void{
var _local2:Number;
var _local1:Number = 0;
while (_local1 < col) {
_local2 = 0;
while (_local2 < row) {
if (_aLevelDesign[_local1][_local2] != 0){
_aMatrix[_local1][_local2].verify = 1;
};
_local2++;
};
_local1++;
};
}
public function ():void{
var _local1:Object;
var _local2:Number;
var _local3:Number;
var _local4:Number = (.numChildren - 1);
while (_local4 >= 0) {
_local1 = .getChildAt(_local4);
if (((!((_local1.name == "bg"))) && (!((_local1 as Blick))))){
_local2 = Math.floor((_local1.x / ));
_local3 = Math.floor((_local1.y / ));
if ((((((((_local2 >= row)) || ((_local3 >= col)))) || ((_local2 < 0)))) || ((_local3 < 0)))){
.removeChildAt(_local4);
};
};
_local4--;
};
_local4 = (.numChildren - 1);
while (_local4 >= 0) {
_local1 = .getChildAt(_local4);
if (((((!((_local1.name == "bg"))) && (!((_local1 as Blick))))) && (!((_local1.name == "blick"))))){
_local2 = Math.floor((_local1.x / ));
_local3 = Math.floor((_local1.y / ));
if (_aLevelDesign[_local3][_local2] < 1){
.removeChildAt(_local4);
} else {
_aMatrix[_local3][_local2].type = _local1;
_aMatrix[_local3][_local2].dx = _local1.x;
_aMatrix[_local3][_local2].dy = _local1.y;
};
};
_local4--;
};
}
private function ():void{
var _local1:Point = localToGlobal(new Point(.x, .y));
var _local2:Point = localToGlobal(new Point(mouseX, mouseY));
if (.hitTestPoint(_local2.x, _local2.y, true)){
= false;
} else {
= true;
};
}
private function
(_arg1:MouseEvent):void{
if ((((((click == "down")) && ((Global._bombSelect == false)))) || ((((click == "leave")) && ((Global._bombSelect == false)))))){
parent.parent.removeEventListener(MouseEvent.MOUSE_UP,
);
.removeEventListener(MouseEvent.MOUSE_DOWN, );
.removeEventListener(MouseEvent.MOUSE_MOVE, );
.removeEventListener(MouseEvent.MOUSE_MOVE,
);
Global._allowDrag = false;
= false;
();
();
};
}
private function (_arg1:Event):void{
if ((_arg1.currentTarget as MovieClip).currentFrame == (_arg1.currentTarget as MovieClip).totalFrames){
_arg1.currentTarget.removeEventListener(Event.ENTER_FRAME, );
.removeChild(blick);
};
}
private function
(_arg1:Event):void{
if (((((Input.isKeyPressed(27)) || (Input.isKeyPressed(80)))) && ((Global._StateOfWin == "none")))){
setPause(true);
};
Input.update();
}
}
}//package game
Section 73
//LevelComplete (game.LevelComplete)
package game {
import flash.display.*;
import flash.events.*;
import caurina.transitions.*;
import flash.utils.*;
import flash.net.*;
import forms.*;
import gate.*;
public class LevelComplete extends Sprite {
private var :Number;
private var b:Number;
private var :LevelCompleteF;
private var :Number;
private var :URLRequest;
private var :uint;
private var :Object;
private var
:Number;
public function LevelComplete(_arg1:Object){
this. = _arg1;
Global._allowDrag = false;
Global._win = true;
Global._StateOfWin = "win";
clearInterval((Global._DAM as DragAndMove).);
SoundsEvents.Win();
}
private function
():void{
if (b > -143){
["timeLine"]["msk"].x--;
["t_score"].text = (Number(["t_score"].text) +
);
["t_score"].text = (Number(["t_score"].text) +
);
b--;
SoundsEvents.Bonus2();
} else {
clearInterval();
Global._scores = ["t_score"].text;
if (Global._currentLevel != Global._maxLevel){
["bNext"].visible = true;
["bNext"].addEventListener(MouseEvent.MOUSE_OVER, SoundsEvents.overSoundBut);
} else {
trace("!!!!!");
["bNext"].visible = false;
(Global._DAM as DragAndMove).clearAllEvents(true);
new Gate(Global._root, Global._container, "submit_top_score");
};
};
}
private function (_arg1):void{
.alpha = (.alpha + 0.1);
if (.alpha >= 1){
_arg1.target.removeEventListener(Event.ENTER_FRAME, );
Global._curLevelScore = 0;
Global._curGoblinsNum = 0;
Global._curHeavySymbNum = 0;
Global._curBombs = 0;
= setInterval(
, 5);
["bNext"].addEventListener(MouseEvent.CLICK, );
["bMoreGame"].addEventListener(MouseEvent.CLICK, );
["bMoreGame"].addEventListener(MouseEvent.MOUSE_OVER, SoundsEvents.overSoundBut);
};
}
private function (_arg1:MouseEvent):void{
= new URLRequest(Global._urls["play_more_games"]);
navigateToURL(, "_blank");
}
public function Comlete():void{
(Global._DAM as DragAndMove).myTimer.stop();
Tweener.pauseAllTweens();
= new LevelCompleteF();
.x = 0;
["t_score"].text = 0;
.alpha = 0;
.x = (600 / 2);
.y = (450 / 2);
Global._linkLevel.addChild();
.addEventListener(Event.ENTER_FRAME, );
b = Math.ceil(["timeLine"]["msk"].x);
= b;
= Math.abs(( - -143));
= 10;
if (Global._currentLevel == Global._maxLevel){
["bNext"].visible = false;
};
["bNext"].visible = false;
}
private function (_arg1:MouseEvent):void{
["bNext"].removeEventListener(MouseEvent.CLICK, );
if (Global._currentLevel < Global._maxLevel){
Global._currentLevel++;
clearInterval();
Global._scores = ["t_score"].text;
["timeLine"]["msk"].x = -143;
(Global._DAM as DragAndMove).clearAllEvents();
new Gate(Global._root, null, "next level");
} else {
(Global._DAM as DragAndMove).clearAllEvents(true);
new Gate(Global._root, Global._container, "submit_top_score");
};
}
}
}//package game
Section 74
//LevelFailed (game.LevelFailed)
package game {
import flash.display.*;
import flash.events.*;
import caurina.transitions.*;
import flash.utils.*;
import flash.net.*;
import forms.*;
import gate.*;
public class LevelFailed extends Sprite {
private var txt:Sprite;
private var :Object;
private var :URLRequest;
public function LevelFailed(_arg1:Object){
this. = _arg1;
Global._allowDrag = false;
Global._fragmentExplode = true;
Global._StateOfWin = "lose";
Global.music_interface.stopMusics();
clearInterval((Global._DAM as DragAndMove).);
SoundsEvents.Fail();
}
private function (_arg1:MouseEvent):void{
txt["bMoreGame"].removeEventListener(MouseEvent.CLICK, );
= new URLRequest(Global._urls["play_more_games"]);
navigateToURL(, "_blank");
}
private function (_arg1:MouseEvent):void{
txt["bTop"].removeEventListener(MouseEvent.CLICK, );
Global._scores = (Global._scores - Global._curLevelScore);
(Global._DAM as DragAndMove).clearAllEvents(true);
new Gate(Global._root, Global._container, "submit_top_score");
}
private function (_arg1:MouseEvent):void{
txt["bRestart"].removeEventListener(MouseEvent.CLICK, );
Global._scores = (Global._scores - Global._curLevelScore);
Global._curLevelScore = 0;
Global._curGoblinsNum = 0;
Global._curHeavySymbNum = 0;
Global._curBombs = 0;
Global._allowDrag = true;
Global._bombSelect = false;
if (Global._SnowFlakeCur > 0){
Global._SnowFlakeCur--;
(Global._DAM as DragAndMove).clearAllEvents();
new Gate(Global._root, null, "next level");
} else {
(Global._DAM as DragAndMove).clearAllEvents(true);
new Gate(Global._root, Global._container, "submit_top_score");
};
}
private function (_arg1:Event):void{
txt.alpha = (txt.alpha + 0.1);
if (txt.alpha >= 1){
_arg1.target.removeEventListener(Event.ENTER_FRAME, );
Global._allowDrag = false;
Global._win = false;
(Global._DAM as DragAndMove).myTimer.stop();
txt["bRestart"].addEventListener(MouseEvent.CLICK, );
txt["bRestart"].addEventListener(MouseEvent.MOUSE_OVER, SoundsEvents.overSoundBut);
txt["bMoreGame"].addEventListener(MouseEvent.CLICK, );
txt["bMoreGame"].addEventListener(MouseEvent.MOUSE_OVER, SoundsEvents.overSoundBut);
txt["bTop"].addEventListener(MouseEvent.CLICK, );
txt["bTop"].addEventListener(MouseEvent.MOUSE_OVER, SoundsEvents.overSoundBut);
};
}
public function Fail():void{
(Global._DAM as DragAndMove).myTimer.stop();
Tweener.pauseAllTweens();
txt = new LevelFailF();
txt.alpha = 0;
txt.x = (600 / 2);
txt.y = (450 / 2);
Global._linkLevel.addChild(txt);
txt["bonusTxt"].text = Global._SnowFlakeCur;
txt.addEventListener(Event.ENTER_FRAME, );
}
}
}//package game
Section 75
//Levels (game.Levels)
package game {
import flash.display.*;
import flash.events.*;
import game.levels.*;
import flash.net.*;
import flash.text.*;
public class Levels extends MovieClip {
public var timeLine:MovieClip;
public var t_score:TextField;
public var bonusBlick:MovieClip;
public var txtSnowFlake:TextField;
private var :URLRequest;
public var btnSnowFlake:SimpleButton;
public var fragment:MovieClip;
public var gamezheroBtn:SimpleButton;
public static var _score:Object;
public function Levels(){
this.addEventListener(Event.ENTER_FRAME, update);
}
private function (_arg1:MouseEvent):void{
= new URLRequest(Global._urls["zorro_logo"]);
navigateToURL(, "_blank");
}
private function update(_arg1:Event):void{
this["gamezheroBtn"].addEventListener(MouseEvent.CLICK, );
this["gamezheroBtn"].addEventListener(MouseEvent.MOUSE_OVER, SoundsEvents.overSoundBut);
this.removeEventListener(Event.ENTER_FRAME, update);
switch (Global._currentLevel){
case 1:
new L1();
break;
case 2:
new L2();
break;
case 3:
new L3();
break;
case 4:
new L4();
break;
case 5:
new L5();
break;
case 6:
new L6();
break;
case 7:
new L7();
break;
case 8:
new L8();
break;
case 9:
new L9();
break;
case 10:
new L10();
break;
case 11:
new L11();
break;
case 12:
new L12();
break;
case 13:
new L13();
break;
case 14:
new L14();
break;
case 15:
new L15();
break;
};
this.gotoAndStop(("l" + Global._currentLevel));
_score = this["t_score"];
Global._linkLevel = this;
}
}
}//package game
Section 76
//McMatrix (game.McMatrix)
package game {
import flash.display.*;
import flash.events.*;
import game.symbols.*;
public class McMatrix extends Sprite {
var col:int;
var :MovieClip;
var :Array;
public var bg:MovieClip;
var
:Array;
var dx:Number;
var dy:Number;
var selectSymb:SelectRandSymbol;
var row:int;
var bgWalls:BgWalls;
private var :Number;
var :Sprite;
private var i:Number;
var :Sprite;
var :Number;
var :Number;
private var :Number;
private var symb:Sprite;
public function McMatrix(){
= new Array();
dx = (Global._cellWidth / 2);
dy = (Global._cellHeight / 2);
= Global._cellWidth;
= Global._cellHeight;
row = Global._row;
col = Global._col;
bgWalls = new BgWalls();
= new MovieClip();
= new Sprite();
= new Sprite();
selectSymb = new SelectRandSymbol();
= Global._aLevelDesign;
super();
Global._linkMatrix = this;
();
();
Global._aMatrix = ;
Global._StateOfWin = "none";
this.addEventListener(Event.ENTER_FRAME, );
}
private function (_arg1:Event):void{
this.removeEventListener(Event.ENTER_FRAME, );
parent["fragment"].alpha = 0.5;
Global._matrix = ;
var _local2:DragAndMove = new DragAndMove(this);
Global._linkLevel["txtSnowFlake"].text = Global._SnowFlakeCur;
var _local3:BonusSnowFlake = new BonusSnowFlake();
parent["t_score"].text = Global._scores;
addChild(_local3);
_local2.F_Begin();
}
private function
():void{
var _local2:int;
var _local1:int;
while (_local1 < row) {
[_local1] = new Array();
_local2 = 0;
while (_local2 < col) {
[_local1].push({dx:dx, dy:dy, type:SymbX, verify:0, live:0});
dx = (dx + );
_local2++;
};
dx = (Global._cellWidth / 2);
dy = (dy + );
_local1++;
};
}
private function ():void{
var _local1:Sprite;
var _local2:Number = 0;
addChild();
bgWalls.name = "bgWalls";
bgWalls.x = this.x;
bgWalls.y = this.y;
parent.addChildAt(bgWalls, 4);
parent.addChild();
.x = this.x;
.y = this.y;
.addChild(this["bg"]);
addChild();
.mask = ;
bgWalls.mask = ;
i = 0;
while (i < row) {
= 0;
while ( < col) {
if (
[i][] == 1){
selectSymb.select([i][]);
symb = selectSymb.symb;
symb.x = [i][].dx;
symb.y = [i][].dy;
[i][].type = symb;
[i][].verify = 1;
[i][].live = selectSymb.live;
.addChild(symb);
_local1 = new Sprite();
_local1.x = [i][].dx;
_local1.y = [i][].dy;
_local1.graphics.beginFill(0xFFCC00);
_local1.graphics.drawRect((0 - (Global._cellWidth / 2)), (0 - (Global._cellHeight / 2)), Global._cellWidth, Global._cellHeight);
.addChild(_local1);
new WallConstructor(
, , , i, );
};
if (
[i][] == 2){
selectSymb.selFrag();
symb = selectSymb.symb;
symb.x = [i][].dx;
symb.y = [i][].dy;
[i][].type = symb;
[i][].verify = 1;
.addChild(symb);
Global._aLevelDesign[i][] = 1;
(
[i][] == 1);
_local1 = new Sprite();
_local1.x = [i][].dx;
_local1.y = [i][].dy;
_local1.graphics.beginFill(0xFFCC00);
_local1.graphics.drawRect((0 - (Global._cellWidth / 2)), (0 - (Global._cellHeight / 2)), Global._cellWidth, Global._cellHeight);
.addChild(_local1);
new WallConstructor(
, , , i, );
};
++;
};
i++;
};
}
}
}//package game
Section 77
//Score (game.Score)
package game {
import flash.display.*;
import game.symbols.*;
public class Score extends Sprite {
private var :Sprite;
private var :Number;
private var tmpAr:Array;
private var :Number;
public function F_scoreCounts(_arg1:Number, _arg2:Array):void{
this. = ;
this. = _arg1;
this.tmpAr = _arg2;
if (((((!((Global._bombSelect == true))) && (!((Global._SnowFlakeSelect == true))))) && (!((_arg2[0].type as Bomb))))){
= (10 + (10 * Math.pow((_arg1 - 3), 2)));
} else {
= 20;
};
Global._scores = (Global._scores + );
Global._curLevelScore = (Global._curLevelScore + );
Levels._score.text = Global._scores;
();
}
private function
():void{
var _local1:uint;
var _local2:BonusInfo;
if (((((!((Global._bombSelect == true))) && (!((Global._SnowFlakeSelect == true))))) && (!((tmpAr[0].type as Bomb))))){
_local1 = ;
while (_local1 > 3) {
_local2 = new BonusInfo();
_local2.x = tmpAr[(_local1 - 1)].dx;
_local2.y = tmpAr[(_local1 - 1)].dy;
_local2["text"]["txt"].text = (10 + ((_local1 - 4) * 20));
Global._linkMatrix.addChild(_local2);
SoundsEvents.Bonus();
_local1--;
};
};
}
}
}//package game
Section 78
//SearchAndDestroy (game.SearchAndDestroy)
package game {
import flash.display.*;
import flash.events.*;
import caurina.transitions.*;
import flash.utils.*;
import flash.text.*;
import game.symbols.*;
import flash.geom.*;
import gate.*;
public class SearchAndDestroy extends Sprite {
private var col:Number;
private var :Array;
private var :Number;
var score:Score;
private var :Boolean;// = false
private var
:Array;
private var :Array;
private var :Boolean;
private var
:Number;// = 0
private var :Sprite;
private var
:Array;
var
:DragAndMove;
private var row:Number;
private var
:int;
private var i:Number;
private var :Number;
private var
:Point;
private var myTimer:Timer;
public static var tmpAr:Array;
public function SearchAndDestroy(){
= Global._aMatrix;
row = Global._row;
col = Global._col;
= Global._cellWidth;
= new Array();
score = new Score();
= new Array();
super();
this. = Global._matrix;
this.
= Global._aLevelDesign;
= false;
= 0;
}
public function ():Boolean{
var _local5:Object;
var _local6:Number;
var _local7:uint;
var _local8:Star;
var _local1:Number = 0;
var _local2:Boolean;
var _local3:TextField = Global._linkLevel["txtSnowFlake"];
var _local4:Boolean;
if (tmpAr.length > 2){
_local4 = true;
score.F_scoreCounts(tmpAr.length, tmpAr);
for each (_local5 in tmpAr) {
if (((((((!((_local5.type as Frag))) && (!((_local5.type as SnowFlake))))) && (!((_local5.type as Bomb))))) && (!((_local5.type as Symb11))))){
_local7 = _local5.type.getChildByName("Live")["txt"].text;
if (_local7 > 0){
= false;
_local7--;
_local5.type.getChildByName("Live")["txt"].text = _local7;
if (_local7 <= 1){
_local7 = 0;
_local5.type.getChildByName("Live")["txt"].text = _local7;
_local5.type.getChildByName("Live").visible = false;
};
} else {
.removeChild(_local5.type);
_local5.type = 0;
_local8 = new Star();
_local8.x = _local5.dx;
_local8.y = _local5.dy;
.addChild(_local8);
= true;
};
};
if ((_local5.type as SnowFlake)){
_local2 = true;
_local1 = (1 + (tmpAr.length - 3));
.removeChild(_local5.type);
_local5.type = 0;
_local8 = new Star();
_local8.x = _local5.dx;
_local8.y = _local5.dy;
.addChild(_local8);
= true;
};
};
_local6 = Global._linkLevel["txtSnowFlake"].text;
Global._linkLevel["txtSnowFlake"].text = (_local6 + _local1);
Global._SnowFlakeCur = (Global._SnowFlakeCur + _local1);
if (_local2 == true){
Global._linkLevel["bonusBlick"].play();
};
};
if ((((((tmpAr.length == 1)) && ((tmpAr[0].type as Frag)))) && ((Global._StateOfWin == "win")))){
.removeChild(tmpAr[0].type);
tmpAr[0].type = 0;
F_begin();
};
return (_local4);
}
private function (_arg1:Number):Number{
var _local3:Number;
var _local2:Number = 0;
while (_local2 < row) {
if (
[_local2][_arg1] > 0){
_local3 = _local2;
};
_local2++;
};
return (_local3);
}
private function (_arg1:Event=null):void{
tmpAr = [];
= [];
i = 0;
while (i < col) {
= 0;
while ( < row) {
[i][].verify = 1;
[i][].dx = [i][].type.x;
[i][].dy = [i][].type.y;
++;
};
i++;
};
();
}
private function (_arg1:Number):Number{
var _local3:Number;
var _local2:Number = 0;
while (_local2 < row) {
if (
[_local2][_arg1] > 0){
_local3 = ([_local2][_arg1].dy - );
break;
};
_local2++;
};
return (_local3);
}
public function
():void{
var _local2:uint;
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local8:Number;
var _local1:Object = 0;
var _local3:Number = 0;
= new Array();
var _local4:Number = 0;
while (_local4 < col) {
_local5 = (col - 1);
while (_local5 >= 0) {
if ([_local5][_local4].type == 0){
_local6 = [_local5][_local4].dy;
_local7 = (_local6 -
[_local3].clip.y);
_local8 = (((
/ 2) + (Global._fallDownSpeed * (_local7 / 40))) + (0.05 * _local3));
Tweener.addTween(
[_local3].clip, {y:_local6, time:_local8, transition:Global._typeTween, onComplete:});
if ((Global._DAM as DragAndMove).PauseOn){
Tweener.pauseAllTweens();
};
++;
[_local5][_local4].type =
[_local3].clip;
[_local5][_local4].dy = _local6;
[_local4][_local5].verify = 1;
_local1 =
[_local3].clip;
.push(
[_local3].clip);
_local3++;
};
_local5--;
};
_local4++;
};
if (_local1 != 0){
SoundsEvents.Fall();
} else {
Global._allowDrag = true;
Global._stopAllClick = false;
};
}
private function ():void{
(Global._DAM as DragAndMove).PauseOn = true;
(Global._DAM as DragAndMove).clearAllEvents();
var _local1:LevelComplete = new LevelComplete(Global._linkLevel);
parent.addChild(_local1);
_local1.Comlete();
}
private function ():void{
--;
if (
== 0){
();
};
}
public function
(_arg1:Number, _arg2:Number, _arg3:Number):void{
if (((([_arg1][_arg2].verify == 0)) || (([_arg1][_arg2].type as Symb11)))){
return;
};
tmpAr.push([_arg1][_arg2]);
[_arg1][_arg2].verify = 0;
var _local4:String = [_arg1][_arg2].type;
_arg3++;
if (_local4 == [_arg1][(_arg2 - 1)].type){
(_arg1, (_arg2 - 1), _arg3);
};
if (_local4 == [_arg1][(_arg2 + 1)].type){
(_arg1, (_arg2 + 1), _arg3);
};
if (_local4 == [(_arg1 - 1)][_arg2].type){
((_arg1 - 1), _arg2, _arg3);
};
if (_local4 == [(_arg1 + 1)][_arg2].type){
((_arg1 + 1), _arg2, _arg3);
};
}
private function (_arg1:TimerEvent):void{
myTimer.removeEventListener(TimerEvent.TIMER_COMPLETE, );
= true;
= false;
();
= 0;
();
();
}
public function F_destroy_for_bomb():void{
var _local2:Object;
var _local3:Number;
var _local4:Number;
var _local5:Star;
var _local6:LevelFailed;
var _local1:Boolean;
Global._allowDrag = false;
score.F_scoreCounts(tmpAr.length, tmpAr);
for each (_local2 in tmpAr) {
if ((_local2.type as Bomb)){
_local1 = true;
_local3 = Math.floor((_local2.type.x / Global._cellWidth));
_local4 = Math.floor((_local2.type.y / Global._cellWidth));
};
if (!(_local2.type as Frag)){
trace(("!!!! " + _local2.type));
_local2.type.getChildByName("Live")["txt"].text = (Number(_local2.type.getChildByName("Live")["txt"].text) - 1);
if (Number(_local2.type.getChildByName("Live")["txt"].text) < 1){
_local2.type.getChildByName("Live")["txt"].text = 0;
.removeChild(_local2.type);
_local2.type = 0;
_local5 = new Star();
_local5.x = _local2.dx;
_local5.y = _local2.dy;
.addChild(_local5);
= true;
} else {
if (Number(_local2.type.getChildByName("Live")["txt"].text) == 1){
_local2.type.getChildByName("Live")["txt"].text = 0;
_local2.type.getChildByName("Live").visible = false;
};
};
} else {
_local2.type.alpha = 0;
_local2.type = 0;
_local5 = new Star();
_local5.x = _local2.dx;
_local5.y = _local2.dy;
.addChild(_local5);
= true;
Global._fragmentExplode = true;
Global._StateOfWin = "gameover";
Global.music_interface.stopMusics();
};
};
if (_local1 == true){
F_bomb(_local3, _local4);
} else {
if (Global._StateOfWin != "gameover"){
F_begin();
} else {
Global._allowDrag = false;
if ((Global._SnowFlakeCur <= 0)){
(Global._DAM as DragAndMove).PauseOn = true;
(Global._DAM as DragAndMove).clearAllEvents();
new Gate(Global._root, Global._container, "submit_top_score");
} else {
(Global._DAM as DragAndMove).PauseOn = true;
(Global._DAM as DragAndMove).clearAllEvents();
_local6 = new LevelFailed(Global._linkLevel);
addChild(_local6);
_local6.Fail();
};
};
};
}
public function
():void{
var _local1:Number;
var _local2:Number;
var _local4:Number;
var _local5:addNewSymb;
var _local3:Number = 0;
while (_local3 < col) {
_local2 = (_local3);
_local4 = (row - 1);
while (_local4 >= 0) {
if (((!((
[_local4][_local3] == 0))) && (!((
[_local4][_local3] == 2))))){
if ([_local4][_local3].type == 0){
_local1 = [_local4][_local3].dx;
_local5 = new addNewSymb(, [_local4][_local3], _local1, _local2);
.push({clip:_local5.symb, col:_local3});
_local2 = (_local2 - );
};
};
_local4--;
};
_local3++;
};
}
public function
():void{
var _local1:Number;
var _local2:Number;
var _local3:Object;
var _local5:Object;
var _local6:Number;
var _local9:Number;
var _local10:Number;
var _local11:Number;
var _local4:Boolean;
var _local7:Number = 0;
var _local8:Number = 0;
while (_local8 < col) {
_local9 = (col - 1);
while (_local9 >= 0) {
if ([_local9][_local8].type == 0){
};
if (((!((
[_local9][_local8] == 0))) && (((_local9 - 1) >= 0)))){
if (
[(_local9 - 1)][_local8] != 0){
if (((([_local9][_local8].type == 0)) && ((_local4 == true)))){
_local4 = false;
_local1 = [_local9][_local8].dx;
_local2 = [_local9][_local8].dy;
_local5 = [_local9][_local8];
_local6 = _local9;
};
};
if (((((_local9 - 1) >= 0)) && ((_local4 == false)))){
if (((!(([(_local9 - 1)][_local8].type == 0))) && (!(([(_local9 - 1)][_local8].type == SymbX))))){
_local3 = [(_local9 - 1)][_local8];
_local5.type = _local3.type;
_local5.dx = _local3.dx;
_local5.dy = _local3.dy;
_local10 = (_local2 - _local3.type.y);
_local11 = ((Global._fallDownSpeed * (_local10 / 40)) + (0.05 * _local7));
= _local11;
Tweener.addTween(_local3.type, {y:_local2, time:_local11, transition:Global._typeTween, onComplete:});
if ((Global._DAM as DragAndMove).PauseOn){
Tweener.pauseAllTweens();
};
++;
_local7++;
_local3.type = 0;
_local4 = true;
_local9 = _local6;
};
};
};
_local9--;
};
_local4 = true;
_local8++;
};
}
public function
():void{
var _local6:Frag;
var _local7:Object;
var _local8:Point;
var _local1:Object = .getChildByName("Frag");
var _local2:Sprite = Global._linkLevel;
var _local3:Number = Math.floor((_local1.x / ));
var _local4:Number = Math.floor((_local1.y / ));
var _local5:Number = (_local3);
if ((((_local4 == _local5)) && (!((Global._StateOfWin == "gameover"))))){
Global.music_interface.stopMusics();
Global._allowDrag = false;
Global._StateOfWin = "win";
(Global._DAM as DragAndMove).myTimer.stop();
_local6 = new Frag();
_local2.addChild(_local6);
= localToGlobal(new Point(_local1.x, _local1.y));
_local6.x =
.x;
_local6.y =
.y;
_local1.alpha = 0;
tmpAr.push([_local4][_local3]);
_local7 = _local2["fragment"];
_local6.removeChild(_local6["blick"]);
_local6.removeChild(_local6["msk"]);
_local8 = new Point((_local7.x + (_local7.width / 2)), (_local7.y + (_local7.height / 2)));
Tweener.addTween(_local6, {width:_local7.width, height:_local7.height, time:1, transition:"linear"});
Tweener.addTween(_local6, {x:_local8.x, y:_local8.y, _bezier:[{x:_local6.x, y:(_local6.y + 140)}], time:1, transition:"linear", onComplete:});
if ((Global._DAM as DragAndMove).PauseOn){
Tweener.pauseAllTweens();
};
Global._bombSelect = false;
();
} else {
Global._fragmentExplode = false;
Global._bombSelect = false;
F_begin();
};
}
public function F_begin():void{
var _local2:Boolean;
Global._linesComb = false;
Global._allowDrag = false;
var _local1:Boolean;
if (Global._bombSelect == false){
Global._stopAllClick = true;
i = 0;
while (i < col) {
= 0;
while ( < row) {
if (
[i][] != 0){
tmpAr = [];
(i, , 0);
_local2 = ();
if (_local2 == true){
_local1 = true;
};
};
++;
};
i++;
};
if (_local1 == true){
SoundsEvents.Stars();
};
};
if ( == true){
myTimer = new Timer(300, 1);
myTimer.start();
myTimer.addEventListener(TimerEvent.TIMER_COMPLETE, );
} else {
= true;
();
= 0;
= 0;
();
();
};
}
public function F_bomb(_arg1:Number, _arg2:Number):void{
Global._allowDrag = false;
tmpAr = [];
if ((((
[_arg2][_arg1] == 1)) && (([_arg2][_arg1].verify == 1)))){
tmpAr.push([_arg2][_arg1]);
[_arg2][_arg1].verify = 0;
};
if ((((
[_arg2][(_arg1 - 1)] == 1)) && (([_arg2][(_arg1 - 1)].verify == 1)))){
tmpAr.push([_arg2][(_arg1 - 1)]);
[_arg2][(_arg1 - 1)].verify = 0;
};
if ((((
[_arg2][(_arg1 + 1)] == 1)) && (([_arg2][(_arg1 + 1)].verify == 1)))){
tmpAr.push([_arg2][(_arg1 + 1)]);
[_arg2][(_arg1 + 1)].verify = 0;
};
if ((((
[(_arg2 + 1)][_arg1] == 1)) && (([(_arg2 + 1)][_arg1].verify == 1)))){
tmpAr.push([(_arg2 + 1)][_arg1]);
[(_arg2 + 1)][_arg1].verify = 0;
};
if ((((
[(_arg2 - 1)][_arg1] == 1)) && (([(_arg2 - 1)][_arg1].verify == 1)))){
tmpAr.push([(_arg2 - 1)][_arg1]);
[(_arg2 - 1)][_arg1].verify = 0;
};
if ((((
[(_arg2 - 1)][(_arg1 - 1)] == 1)) && (([(_arg2 - 1)][(_arg1 - 1)].verify == 1)))){
tmpAr.push([(_arg2 - 1)][(_arg1 - 1)]);
[(_arg2 - 1)][(_arg1 - 1)].verify = 0;
};
if ((((
[(_arg2 + 1)][(_arg1 - 1)] == 1)) && (([(_arg2 + 1)][(_arg1 - 1)].verify == 1)))){
tmpAr.push([(_arg2 + 1)][(_arg1 - 1)]);
[(_arg2 + 1)][(_arg1 - 1)].verify = 0;
};
if ((((
[(_arg2 + 1)][(_arg1 + 1)] == 1)) && (([(_arg2 + 1)][(_arg1 + 1)].verify == 1)))){
tmpAr.push([(_arg2 + 1)][(_arg1 + 1)]);
[(_arg2 + 1)][(_arg1 + 1)].verify = 0;
};
if ((((
[(_arg2 - 1)][(_arg1 + 1)] == 1)) && (([(_arg2 - 1)][(_arg1 + 1)].verify == 1)))){
tmpAr.push([(_arg2 - 1)][(_arg1 + 1)]);
[(_arg2 - 1)][(_arg1 + 1)].verify = 0;
};
F_destroy_for_bomb();
}
}
}//package game
Section 79
//SelectRandSymbol (game.SelectRandSymbol)
package game {
import flash.display.*;
import game.symbols.*;
public class SelectRandSymbol {
private var :Number;
private var :Number;
private var :String;
public var heavy:Boolean;// = false
private var GoblinsNum;
public var live:uint;
private var GoblinsProc;
private var :Number;
public var symb:Sprite;
private var :Number;
public function SelectRandSymbol(){
GoblinsNum = Global._GoblinsNum;
GoblinsProc = Global._GoblinsProc;
super();
}
private function (_arg1:String):Sprite{
var _local2:Sprite;
switch (_arg1){
case "1":
_local2 = new Symb1();
_local2.name = "medved";
break;
case "2":
_local2 = new Symb2();
_local2.name = "cukerka";
break;
case "3":
_local2 = new Symb3();
_local2.name = "snowball";
break;
case "4":
_local2 = new Symb4();
_local2.name = "igrushka";
break;
case "5":
_local2 = new Symb5();
_local2.name = "kolokolchik";
break;
case "6":
_local2 = new Symb6();
_local2.name = "pechenko";
break;
case "7":
_local2 = new Symb7();
_local2.name = "sontik";
break;
case "8":
_local2 = new Symb8();
_local2.name = "watch";
break;
case "9":
_local2 = new Symb9();
_local2.name = "nosok";
break;
case "10":
_local2 = new Symb10();
_local2.name = "cherry";
break;
};
return ((_local2 as Sprite));
}
public function selFrag():void{
symb = new Frag();
symb.name = "Frag";
new AddLive(symb);
symb.getChildByName("Live")["txt"].text = 0;
symb.getChildByName("Live").visible = false;
}
public function select(_arg1:Object):void{
var _local2:uint;
var _local3:uint;
var _local4:uint;
var _local10:String;
var _local5:uint = 5;
var _local6:Array = new Array();
_local6.push(Global._GoblinsProc);
_local6.push(Global._heavySymbProc);
_local6.push(Global._BombProc);
_local6.push(Global._SnowFlakeProc);
var _local7:Number = 1;
var _local8:Number = Number.POSITIVE_INFINITY;
_local3 = 0;
while (_local3 < (_local6.length - 1)) {
if (((!((_local6[_local3] == 0))) && ((_local6[_local3] < _local8)))){
_local8 = _local6[_local3];
};
_local3++;
};
if (_local8 != Number.POSITIVE_INFINITY){
_local7 = (1 / _local8);
};
_local6 = new Array();
_local2 = Math.round(((_local5 * 1) * _local7));
_local4 = 1;
while (_local4 <= Global._aSymbAllow.length) {
_local3 = 0;
while (_local3 < _local2) {
_local6.push(String(_local4));
_local3++;
};
_local4++;
};
_local2 = Math.round(((_local5 * Global._GoblinsProc) * _local7));
_local3 = 0;
while (_local3 < _local2) {
_local6.push("goblin");
_local3++;
};
_local2 = Math.round(((_local5 * Global._BombProc) * _local7));
_local3 = 0;
while (_local3 < _local2) {
_local6.push("bomb");
_local3++;
};
_local2 = Math.round(((_local5 * Global._SnowFlakeProc) * _local7));
_local3 = 0;
while (_local3 < _local2) {
_local6.push("snowFlake");
_local3++;
};
_local2 = Math.round(((_local5 * Global._heavySymbProc) * _local7));
_local3 = 0;
while (_local3 < _local2) {
_local6.push("hard");
_local3++;
};
live = 0;
var _local9:uint = Math.round((Math.random() * (_local6.length - 1)));
= _local6[_local9];
switch (){
case "goblin":
symb = new Symb11();
symb.name = "goblin";
new AddLive(symb);
symb.getChildByName("Live")["txt"].text = 0;
symb.getChildByName("Live").visible = false;
Global._curGoblinsNum++;
if (Global._curGoblinsNum >= Global._GoblinsNum){
Global._GoblinsProc = 0;
};
break;
case "bomb":
symb = new Bomb();
symb.name = "bomb";
new AddLive(symb);
symb.getChildByName("Live")["txt"].text = 0;
symb.getChildByName("Live").visible = false;
Global._curBombs++;
if (Global._curBombs >= Global._BombsTotal){
Global._BombProc = 0;
};
break;
case "snowFlake":
symb = new SnowFlake();
symb.name = "snowFlake";
new AddLive(symb);
symb.getChildByName("Live")["txt"].text = 0;
symb.getChildByName("Live").visible = false;
Global._SnowFlakeCur2++;
if (Global._SnowFlakeCur2 >= Global._SnowFlakeTotal){
Global._SnowFlakeProc = 0;
};
break;
case "hard":
live = (Math.round(((Global._liveSymb - 1) * Math.random())) + 1);
if (live < 2){
live = 2;
};
_local10 = String(Math.round((1 + (Math.random() * (Global._aSymbAllow.length - 1)))));
trace((">>>>>>>>>>>>>> " + _local10));
symb = (_local10);
new AddLive(symb);
symb.getChildByName("Live")["txt"].text = live;
symb.getChildByName("Live").visible = true;
Global._curHeavySymbNum++;
if (Global._curHeavySymbNum >= Global._heavySymbNum){
Global._heavySymbProc = 0;
};
break;
default:
symb = ();
new AddLive(symb);
symb.getChildByName("Live")["txt"].text = 0;
symb.getChildByName("Live").visible = false;
break;
};
}
}
}//package game
Section 80
//SoundCont (game.SoundCont)
package game {
import flash.display.*;
public class SoundCont extends MovieClip {
public function SoundCont(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package game
Section 81
//SoundsEvents (game.SoundsEvents)
package game {
import flash.display.*;
import flash.events.*;
public class SoundsEvents extends Sprite {
private static var bonusPos:uint = 1;
public static function Stars():void{
trace(("STAR " + bonusPos));
if (Global._game_stored_data.data.soundVolumeFlag == 1){
Global.sound_interface.(null, ("s_magic" + bonusPos));
bonusPos++;
if (bonusPos > 3){
bonusPos = 1;
};
};
}
public static function Bonus2():void{
if (Global._game_stored_data.data.soundVolumeFlag == 1){
Global.sound_interface.("bonus2", "over_but");
};
}
public static function notMove():void{
if (Global._game_stored_data.data.soundVolumeFlag == 1){
Global.sound_interface.("notMove", "notMove");
};
}
public static function overSoundBut(_arg1:MouseEvent):void{
if (Global._game_stored_data.data.soundVolumeFlag == 1){
Global.sound_interface.("over_but", "over_but");
};
}
public static function Bomb():void{
if (Global._game_stored_data.data.soundVolumeFlag == 1){
Global.sound_interface.("bomb", "bomb");
};
}
public static function Fall():void{
if (Global._game_stored_data.data.soundVolumeFlag == 1){
Global.sound_interface.("fall", "fall");
};
}
public static function Win():void{
if (Global._game_stored_data.data.soundVolumeFlag == 1){
Global.sound_interface.("fanfar", "fanfar");
};
}
public static function Fail():void{
if (Global._game_stored_data.data.soundVolumeFlag == 1){
Global.sound_interface.("lost", "lost");
};
}
public static function Bonus():void{
if (Global._game_stored_data.data.soundVolumeFlag == 1){
Global.sound_interface.("bonus", "bonus");
};
}
}
}//package game
Section 82
//WallConstructor (game.WallConstructor)
package game {
import flash.display.*;
import game.symbols.*;
import flash.geom.*;
public class WallConstructor extends Sprite {
var col:int;
var row:int;
var :Walls;
private var :Point;
var :uint;
private var :Sprite;
public function WallConstructor(_arg1:Array, _arg2:Array, _arg3:Sprite, _arg4:uint, _arg5:uint){
= new Walls();
row = Global._row;
col = Global._col;
= Global._wdWall;
super();
= new Sprite();
.graphics.beginFill(0xFFBB00);
.graphics.drawRect((0 - ((Global._cellWidth + ) / 2)), (0 - ((Global._cellHeight + ) / 2)), (Global._cellWidth + ), (Global._cellHeight + ));
= localToGlobal(new Point(_arg2[_arg4][_arg5].dx, _arg2[_arg4][_arg5].dy));
.x = .x;
.y = .y;
_arg3.addChild();
}
}
}//package game
Section 83
//GamePreloader (gamezhero.GamePreloader)
package gamezhero {
import flash.display.*;
public dynamic class GamePreloader extends MovieClip {
public var intro:MovieClip;
public var bg:MovieClip;
}
}//package gamezhero
Section 84
//Gate (gate.Gate)
package gate {
import flash.display.*;
import flash.utils.*;
public class Gate extends MovieClip {
private var
:MovieClip;
private var
:uint;
private var
:uint;
private var
:MovieClip;
private var
;
public function Gate(_arg1:MovieClip, _arg2:MovieClip=null, _arg3=1){
= _arg1;
= _arg2;
= _arg3;
.addChild(this);
= setInterval(
, 1);
}
private function
():void{
if (this.currentLabel == "close"){
clearInterval(
);
this.stop();
if (
== "next level"){
();
} else {
.gotoAndStop(
);
};
this.play();
= setInterval(
, 1);
};
}
private function
():void{
if (this.currentLabel == "open"){
clearInterval(
);
.removeChild(this);
};
}
private function
():void{
Global._linkGame.removeChild(Global._linkLevel);
Global._linkGame.createLevel();
}
}
}//package gate
Section 85
//Input (General.Input)
package General {
import flash.display.*;
import flash.events.*;
public class Input {
public static var mouseOffsetX:Number = 0;
private static var keyArr:Array;
public static var mouseDragX:Number = 0;
public static var mouseDragY:Number = 0;
public static var mouseOffsetY:Number = 0;
public static var ascii:Array;
public static var mouseX:Number = 0;
public static var mouseY:Number = 0;
public static var mouseOver:Boolean = false;
private static var bufferSize:int;
public static var mouse:Sprite = new Sprite();
public static var mouseDown:Boolean = false;
public static var mouseReleased:Boolean = false;
public static var lastKey:int = 0;
public static var m_stageMc:Sprite;
private static var keyState:Array;
public static var timeSinceLastKey = 0;
public static var mousePressed:Boolean = false;
private static var keyBuffer:Array;
public function Input(_arg1:Sprite){
m_stageMc = _arg1;
ascii = new Array(222);
();
keyState = new Array(222);
keyArr = new Array();
var _local2:int;
while (_local2 < 222) {
keyState[_local2] = new int(0);
if (ascii[_local2] != undefined){
keyArr.push(_local2);
};
_local2++;
};
bufferSize = 5;
keyBuffer = new Array(bufferSize);
var _local3:int;
while (_local3 < bufferSize) {
keyBuffer[_local3] = new Array(0, 0);
_local3++;
};
_arg1.stage.addEventListener(KeyboardEvent.KEY_DOWN, , false, 0, true);
_arg1.stage.addEventListener(KeyboardEvent.KEY_UP, , false, 0, true);
_arg1.stage.addEventListener(MouseEvent.MOUSE_DOWN,
, false, 0, true);
_arg1.stage.addEventListener(MouseEvent.CLICK, , false, 0, true);
_arg1.stage.addEventListener(MouseEvent.MOUSE_MOVE, , false, 0, true);
_arg1.stage.addEventListener(Event.MOUSE_LEAVE, , false, 0, true);
mouse.graphics.lineStyle(0.1, 0, 100);
mouse.graphics.moveTo(0, 0);
mouse.graphics.lineTo(0, 0.1);
}
public function (_arg1:Event){
mouseReleased = mouseDown;
mouseDown = false;
}
public function (_arg1:KeyboardEvent){
keyState[_arg1.keyCode] = Math.max(keyState[_arg1.keyCode], 1);
lastKey = _arg1.keyCode;
}
private function (){
ascii[65] = "A";
ascii[66] = "B";
ascii[67] = "C";
ascii[68] = "D";
ascii[69] = "E";
ascii[70] = "F";
ascii[71] = "G";
ascii[72] = "H";
ascii[73] = "I";
ascii[74] = "J";
ascii[75] = "K";
ascii[76] = "L";
ascii[77] = "M";
ascii[78] = "N";
ascii[79] = "O";
ascii[80] = "P";
ascii[81] = "Q";
ascii[82] = "R";
ascii[83] = "S";
ascii[84] = "T";
ascii[85] = "U";
ascii[86] = "V";
ascii[87] = "W";
ascii[88] = "X";
ascii[89] = "Y";
ascii[90] = "Z";
ascii[48] = "0";
ascii[49] = "1";
ascii[50] = "2";
ascii[51] = "3";
ascii[52] = "4";
ascii[53] = "5";
ascii[54] = "6";
ascii[55] = "7";
ascii[56] = "8";
ascii[57] = "9";
ascii[32] = "Spacebar";
ascii[17] = "Ctrl";
ascii[16] = "Shift";
ascii[192] = "~";
ascii[38] = "up";
ascii[40] = "down";
ascii[37] = "left";
ascii[39] = "right";
ascii[96] = "Numpad 0";
ascii[97] = "Numpad 1";
ascii[98] = "Numpad 2";
ascii[99] = "Numpad 3";
ascii[100] = "Numpad 4";
ascii[101] = "Numpad 5";
ascii[102] = "Numpad 6";
ascii[103] = "Numpad 7";
ascii[104] = "Numpad 8";
ascii[105] = "Numpad 9";
ascii[111] = "Numpad /";
ascii[106] = "Numpad *";
ascii[109] = "Numpad -";
ascii[107] = "Numpad +";
ascii[110] = "Numpad .";
ascii[45] = "Insert";
ascii[46] = "Delete";
ascii[33] = "Page Up";
ascii[34] = "Page Down";
ascii[35] = "End";
ascii[36] = "Home";
ascii[112] = "F1";
ascii[113] = "F2";
ascii[114] = "F3";
ascii[115] = "F4";
ascii[116] = "F5";
ascii[117] = "F6";
ascii[118] = "F7";
ascii[119] = "F8";
ascii[188] = ",";
ascii[190] = ".";
ascii[186] = ";";
ascii[222] = "'";
ascii[219] = "[";
ascii[221] = "]";
ascii[189] = "-";
ascii[187] = "+";
ascii[220] = "\\";
ascii[191] = "/";
ascii[9] = "TAB";
ascii[8] = "Backspace";
ascii[27] = "ESC";
}
public function (_arg1:MouseEvent){
if (mouseDown != _arg1.buttonDown){
mouseDown = _arg1.buttonDown;
mouseReleased = !(_arg1.buttonDown);
mousePressed = _arg1.buttonDown;
mouseDragX = 0;
mouseDragY = 0;
};
mouseX = (_arg1.stageX - m_stageMc.x);
mouseY = (_arg1.stageY - m_stageMc.y);
mouseOffsetX = (mouseX - mouse.x);
mouseOffsetY = (mouseY - mouse.y);
if (mouseDown){
mouseDragX = (mouseDragX + mouseOffsetX);
mouseDragY = (mouseDragY + mouseOffsetY);
};
mouse.x = mouseX;
mouse.y = mouseY;
}
public function (_arg1:KeyboardEvent){
keyState[_arg1.keyCode] = -1;
var _local2:int = (bufferSize - 1);
while (_local2 > 0) {
keyBuffer[_local2] = keyBuffer[(_local2 - 1)];
_local2--;
};
keyBuffer[0] = [_arg1.keyCode, 0];
}
public function (_arg1:MouseEvent){
mouseDown = false;
mouseReleased = true;
}
public function
(_arg1:MouseEvent){
mousePressed = true;
mouseDown = true;
mouseDragX = 0;
mouseDragY = 0;
}
public static function getKeyHold(_arg1:int):int{
return (Math.max(0, keyState[_arg1]));
}
public static function update(){
var _local1:int;
while (_local1 < keyArr.length) {
if (keyState[keyArr[_local1]] != 0){
var _local3 = keyState;
var _local4 = keyArr[_local1];
var _local5 = (_local3[_local4] + 1);
_local3[_local4] = _local5;
};
_local1++;
};
var _local2:int;
while (_local2 < bufferSize) {
_local3 = keyBuffer[_local2];
_local4 = 1;
_local5 = (_local3[_local4] + 1);
_local3[_local4] = _local5;
_local2++;
};
mouseReleased = false;
mousePressed = false;
mouseOver = false;
}
public static function isKeyPressed(_arg1:int):Boolean{
timeSinceLastKey = 0;
return ((keyState[_arg1] == 1));
}
public static function isKeyDown(_arg1:int):Boolean{
return ((keyState[_arg1] > 0));
}
public static function getKeyString(_arg1:uint):String{
return (ascii[_arg1]);
}
public static function isKeyReleased(_arg1:int):Boolean{
return ((keyState[_arg1] == -1));
}
public static function isKeyInBuffer(_arg1:int, _arg2:int, _arg3:int){
return ((((keyBuffer[_arg2][0] == _arg1)) && ((keyBuffer[_arg2][1] <= _arg3))));
}
}
}//package General
Section 86
//ClipLanguage (lang.ClipLanguage)
package lang {
import flash.display.*;
import flash.events.*;
import flash.text.*;
import gate.*;
public class ClipLanguage extends MovieClip {
public var spanishBth:SimpleButton;
public var russianBth:SimpleButton;
public var italicBth:SimpleButton;
private var :Array;
public var englishBth:SimpleButton;
private var
:Array;
public var polandBth:SimpleButton;
public var frenchBth:SimpleButton;
public var brazileBth:SimpleButton;
public var mexicoBth:SimpleButton;
public var ukraineBth:SimpleButton;
public var germanBth:SimpleButton;
public var portugeseBth:SimpleButton;
public var australiaBth:SimpleButton;
public var infoText:TextField;
public function ClipLanguage(){
= new Array();
= new Array();
super();
addFrameScript(0, frame1);
();
();
}
private function (_arg1:MouseEvent):void{
Global._lang =
[[_arg1.currentTarget.name]].cut;
var _local2:Gate = new Gate((parent.parent as MovieClip), (parent as MovieClip), "menu");
();
}
private function ():void{
var _local1:String;
for (_local1 in
) {
[_local1].link.removeEventListener(MouseEvent.CLICK, );
[_local1].link.removeEventListener(MouseEvent.MOUSE_OVER, );
[_local1].link.removeEventListener(MouseEvent.MOUSE_OUT, );
};
}
private function ():void{
var _local1:String;
for (_local1 in
) {
[_local1].link.addEventListener(MouseEvent.CLICK, );
[_local1].link.addEventListener(MouseEvent.MOUSE_OVER, );
[_local1].link.addEventListener(MouseEvent.MOUSE_OUT, );
[
[_local1].link.name] = _local1;
};
}
private function ():void{
.push({link:this["englishBth"], cut:"en", label:"English"});
.push({link:this["germanBth"], cut:"de", label:"Deutsche"});
.push({link:this["frenchBth"], cut:"fr", label:"Français"});
.push({link:this["italicBth"], cut:"it", label:"Italiana"});
.push({link:this["spanishBth"], cut:"es", label:"Español"});
.push({link:this["portugeseBth"], cut:"pt", label:"Portuguesa"});
.push({link:this["australiaBth"], cut:"en", label:"English"});
.push({link:this["brazileBth"], cut:"pt", label:"Portuguesa"});
.push({link:this["mexicoBth"], cut:"es", label:"Español"});
.push({link:this["polandBth"], cut:"po", label:"Polski"});
.push({link:this["ukraineBth"], cut:"ua", label:"Українська"});
.push({link:this["russianBth"], cut:"ru", label:"Русский"});
}
private function (_arg1:MouseEvent):void{
}
function frame1(){
}
private function (_arg1:MouseEvent):void{
this["infoText"].text =
[[_arg1.currentTarget.name]].label;
}
private function (_arg1:MouseEvent):void{
this["infoText"].text = "Select Language";
}
}
}//package lang
Section 87
//blick_30 (SantaQuest_fla.blick_30)
package SantaQuest_fla {
import flash.display.*;
public dynamic class blick_30 extends MovieClip {
public function blick_30(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package SantaQuest_fla
Section 88
//blick_5 (SantaQuest_fla.blick_5)
package SantaQuest_fla {
import flash.display.*;
public dynamic class blick_5 extends MovieClip {
public function blick_5(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package SantaQuest_fla
Section 89
//bonusBlick_105 (SantaQuest_fla.bonusBlick_105)
package SantaQuest_fla {
import flash.display.*;
public dynamic class bonusBlick_105 extends MovieClip {
public function bonusBlick_105(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package SantaQuest_fla
Section 90
//butNext_95 (SantaQuest_fla.butNext_95)
package SantaQuest_fla {
import flash.display.*;
public dynamic class butNext_95 extends MovieClip {
public function butNext_95(){
addFrameScript(0, frame1, 9, );
}
function (){
stop();
}
function frame1(){
stop();
}
}
}//package SantaQuest_fla
Section 91
//DesignKate0008_100 (SantaQuest_fla.DesignKate0008_100)
package SantaQuest_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.filters.*;
import flash.utils.*;
import flash.net.*;
import flash.text.*;
import flash.geom.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class DesignKate0008_100 extends MovieClip {
public var :Array;
public var timer:Timer;
public var i:int;
public var ;
public var
:MovieClip;
public function DesignKate0008_100(){
addFrameScript(0, frame1);
}
function frame1(){
= this;
.addEventListener(Event.REMOVED_FROM_STAGE, );
= new Array();
timer = new Timer(2000);
timer.addEventListener(TimerEvent.TIMER, nextStep);
timer.start();
i = 0;
while (i <
.numChildren) {
=
.getChildAt(i);
if (( is Light)){
.push();
.gotoAndStop(((Math.random() > 0.5)) ? .totalFrames : 1);
};
i++;
};
nextStep();
}
public function (_arg1:Event=null){
timer.stop();
timer.removeEventListener(TimerEvent.TIMER, nextStep);
}
public function nextStep(_arg1:TimerEvent=null){
var _local2:*;
for (_local2 in ) {
if ([_local2].currentFrame == 1){
[_local2].gotoAndPlay(2);
} else {
[_local2].play();
};
};
}
}
}//package SantaQuest_fla
Section 92
//flag_bg_9 (SantaQuest_fla.flag_bg_9)
package SantaQuest_fla {
import flash.display.*;
public dynamic class flag_bg_9 extends MovieClip {
public function flag_bg_9(){
addFrameScript(4, );
}
function (){
stop();
}
}
}//package SantaQuest_fla
Section 93
//gamezhero_gameZheroPreloader_161 (SantaQuest_fla.gamezhero_gameZheroPreloader_161)
package SantaQuest_fla {
import flash.display.*;
public dynamic class gamezhero_gameZheroPreloader_161 extends MovieClip {
public var pr:MovieClip;
public function gamezhero_gameZheroPreloader_161(){
addFrameScript(139, );
}
function (){
stop();
}
}
}//package SantaQuest_fla
Section 94
//gameZheroPreloader_151 (SantaQuest_fla.gameZheroPreloader_151)
package SantaQuest_fla {
import flash.display.*;
public dynamic class gameZheroPreloader_151 extends MovieClip {
public var pr:MovieClip;
public function gameZheroPreloader_151(){
addFrameScript(104, );
}
function (){
stop();
}
}
}//package SantaQuest_fla
Section 95
//help_43 (SantaQuest_fla.help_43)
package SantaQuest_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.filters.*;
import game.*;
import flash.utils.*;
import flash.net.*;
import flash.text.*;
import flash.geom.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class help_43 extends MovieClip {
public var txt:TextField;
public var bPrev:SimpleButton;
public var bNext:SimpleButton;
public function help_43(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
this["bNext"].addEventListener(MouseEvent.CLICK, );
this["bNext"].addEventListener(MouseEvent.MOUSE_OVER, SoundsEvents.overSoundBut);
this["bPrev"].addEventListener(MouseEvent.CLICK, );
this["bPrev"].addEventListener(MouseEvent.MOUSE_OVER, SoundsEvents.overSoundBut);
();
}
public function (){
this["txt"].text = ((currentFrame + "/") + totalFrames);
}
public function (_arg1:Event=null){
var _local2:int = (currentFrame - 1);
if (_local2 < 1){
_local2 = totalFrames;
};
gotoAndStop(_local2);
();
}
public function (_arg1:Event=null){
var _local2:int = (currentFrame + 1);
trace(("CLICK " + _local2));
if (_local2 > totalFrames){
_local2 = 1;
};
gotoAndStop(_local2);
();
}
}
}//package SantaQuest_fla
Section 96
//musicMenu_6 (SantaQuest_fla.musicMenu_6)
package SantaQuest_fla {
import flash.display.*;
public dynamic class musicMenu_6 extends MovieClip {
public var blick2:MovieClip;
public function musicMenu_6(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package SantaQuest_fla
Section 97
//putThisGametext_25 (SantaQuest_fla.putThisGametext_25)
package SantaQuest_fla {
import flash.display.*;
public dynamic class putThisGametext_25 extends MovieClip {
public function putThisGametext_25(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package SantaQuest_fla
Section 98
//soundMenu1_3 (SantaQuest_fla.soundMenu1_3)
package SantaQuest_fla {
import flash.display.*;
public dynamic class soundMenu1_3 extends MovieClip {
public var blick2:MovieClip;
public function soundMenu1_3(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package SantaQuest_fla
Section 99
//SymbBlick2_56 (SantaQuest_fla.SymbBlick2_56)
package SantaQuest_fla {
import flash.display.*;
public dynamic class SymbBlick2_56 extends MovieClip {
public function SymbBlick2_56(){
addFrameScript(0, frame1);
}
function frame1(){
}
}
}//package SantaQuest_fla
Section 100
//Symbol1_37 (SantaQuest_fla.Symbol1_37)
package SantaQuest_fla {
import flash.display.*;
public dynamic class Symbol1_37 extends MovieClip {
public function Symbol1_37(){
addFrameScript(0, frame1, 19, );
}
function (){
this.x = (Math.random() * 600);
this.y = (Math.random() * 450);
this.rotation = (Math.random() * 360);
gotoAndPlay(2);
}
function frame1(){
gotoAndPlay(Math.round((this.totalFrames * Math.random())));
}
}
}//package SantaQuest_fla
Section 101
//z_2_28 (SantaQuest_fla.z_2_28)
package SantaQuest_fla {
import flash.display.*;
public dynamic class z_2_28 extends MovieClip {
public function z_2_28(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package SantaQuest_fla
Section 102
//bomb (bomb)
package {
import flash.media.*;
public dynamic class bomb extends Sound {
}
}//package
Section 103
//bonus (bonus)
package {
import flash.media.*;
public dynamic class bonus extends Sound {
}
}//package
Section 104
//click (click)
package {
import flash.media.*;
public dynamic class click extends Sound {
}
}//package
Section 105
//Container (Container)
package {
import flash.display.*;
import flash.events.*;
import game.*;
import General.*;
import forms.*;
import game.symbols.*;
import gate.*;
public class Container extends MovieClip {
public var musicGameBtn:MovieClip;
public var Live:Live;
public var txtLevelComplete:LevelCompleteF;
public var txtLevelFail:LevelFailF;
public var bg:BgWalls;
private var :Sprite;
public var soundGameBtn:MovieClip;
public var :Array;
public var :Input;
public function Container(){
= currentLabels;
super();
= new Sprite();
addChild();
= new Input();
this.addEventListener(Event.ENTER_FRAME, iniMainStage);
this.stop();
();
}
public function iniMainStage(_arg1:Event):void{
this.removeEventListener(Event.ENTER_FRAME, iniMainStage);
var _local2:SoundCont = new SoundCont();
_local2.x = -500;
addChild(_local2);
Global._root = (parent as MovieClip);
Global._container = (this as MovieClip);
var _local3:Gate = new Gate(Global._root, this, "menu");
this["soundGameBtn"].buttonMode = true;
this["soundGameBtn"].useHandCursor = true;
this["soundGameBtn"].addEventListener(MouseEvent.CLICK, );
this["musicGameBtn"].buttonMode = true;
this["musicGameBtn"].useHandCursor = true;
this["musicGameBtn"].addEventListener(MouseEvent.CLICK, );
switch (Global._game_stored_data.data.soundVolumeFlag){
case 0:
this["soundGameBtn"].gotoAndStop(1);
Global.sound_interface.setSoundVolume(0);
break;
case 1:
this["soundGameBtn"].gotoAndStop(2);
Global.sound_interface.setSoundVolume(Global._sound_volume_interface);
};
switch (Global._game_stored_data.data.musicVolumeFlag){
case 0:
this["musicGameBtn"].gotoAndStop(1);
Global.music_interface.setMusicVolume(0);
break;
case 1:
this["musicGameBtn"].gotoAndStop(2);
Global.music_interface.setMusicVolume(Global._music_volume_interface);
};
}
private function (_arg1:MouseEvent=null):void{
switch (Global._game_stored_data.data.musicVolumeFlag){
case 0:
this["musicGameBtn"].gotoAndStop(2);
Global._game_stored_data.data.musicVolumeFlag = 1;
Global.music_interface.setMusicVolume(Global._music_volume_interface);
break;
case 1:
this["musicGameBtn"].gotoAndStop(1);
Global._game_stored_data.data.musicVolumeFlag = 0;
Global.music_interface.setMusicVolume(0);
};
}
private function
(){
var _local1:Sprite = new Sprite();
_local1.graphics.lineStyle(1, 0xFF0000, 100);
_local1.graphics.beginFill(0xFF0000, 100);
_local1.graphics.moveTo(0, 0);
_local1.graphics.lineTo(600, 0);
_local1.graphics.lineTo(600, 450);
_local1.graphics.lineTo(0, 450);
_local1.graphics.moveTo(0, 0);
_local1.visible = false;
parent.addChild(_local1);
this.mask = _local1;
}
private function (_arg1:MouseEvent=null):void{
switch (Global._game_stored_data.data.soundVolumeFlag){
case 0:
this["soundGameBtn"].gotoAndStop(2);
Global._game_stored_data.data.soundVolumeFlag = 1;
Global.sound_interface.setSoundVolume(Global._sound_volume_interface);
break;
case 1:
this["soundGameBtn"].gotoAndStop(1);
Global._game_stored_data.data.soundVolumeFlag = 0;
Global.sound_interface.setSoundVolume(0);
};
}
}
}//package
Section 106
//fall (fall)
package {
import flash.media.*;
public dynamic class fall extends Sound {
}
}//package
Section 107
//fanfar (fanfar)
package {
import flash.media.*;
public dynamic class fanfar extends Sound {
}
}//package
Section 108
//game (game)
package {
import flash.media.*;
public dynamic class game extends Sound {
}
}//package
Section 109
//Global (Global)
package {
import flash.display.*;
import game.*;
import com.gamezhero.as3.media.*;
import com.gamezhero.as3.*;
import flash.net.*;
import game.symbols.*;
public class Global {
public static var _container:MovieClip;
public static var _cellWidth:Number = 40;
public static var sound_interface:SoundFX;
public static var game_root:MovieClip;
public static var _curBombs:Number = 0;
public static var _GoblinsProc:Number;
public static var _row:int;
public static var _win:Boolean;
public static var _aLevelDesign:Array;
public static var _linesComb:Boolean = false;
public static var _heavySymbNum:Number;
public static var _SnowFlakeCur2:Number = 0;
public static var sound_game:SoundFX;
public static var _linkLevel:Levels;
public static var _GoblinsNum:Number;
public static var _fragmentExplode:Boolean = false;
public static var _StateOfWin:String = "none";
public static var _scores:Number = 0;
public static var _aBodies:Array = new Array();
public static var _aMatrix:Array;
public static var _sound_volume_game:Number = 0.3;
public static var gamezhero_code:Number;
public static var _music_volume_interface:Number = 1;
private static var _userName:String = "";
public static var _game_stored_data:SharedObject = SharedObject.getLocal("santaquest-gamezhero.com");
public static var _heavySymbProc:Number;
public static var _wdWall:uint = 12;
public static var _music_volume_game:Number = 0.4;
public static var _curHeavySymbNum:Number = 0;
public static var _currentLevel:int = 1;
public static var _linkGame:Object;
public static var _linkLive:Live;
public static var _stopAllClick:Boolean = false;
public static var _SnowFlakeTotal:Number = 0;
public static var _BombsTotal:Number;
public static var _SnowFlakeSelect:Boolean;
public static var _fallDownSpeed:Number = 0.05;
public static var _delay:uint;
public static var _allowDrag:Boolean = false;
public static var music_interface:Music;
public static var _sound_volume_interface:Number = 0.5;
public static var _BombProc:Number;
public static var _SnowFlakeProc:Number = 0;
public static var _SnowFlakeCur:Number = 3;
public static var _aPointVector:Array = new Array();
public static var _DAM:Sprite;
public static var _repeat:uint;
public static var _col:int;
public static var _urls:Array = new Array();
public static var _cellHeight:Number = 40;
public static var _num_contacts:Number;
public static var music_game:Music;
public static var _lang:String;
public static var _curLevelScore:Number = 0;
public static var _root:MovieClip;
public static var _typeTween:String = "easeInOutCubic";
public static var _aSymbAllow:Array;
public static var _curGoblinsNum:Number = 0;
public static var _bombSelect:Boolean = false;
public static var _maxLevel:int = 15;
public static var _matrix:Sprite;
public static var _liveSymb:Number;
public static var _linkMatrix:Object;
public static var _dovodchikSpeed:Number = 0.05;
public static function iniUrls(_arg1:Stage=null){
var _local2:String = GamezheroGlobal.getDomain(_arg1);
_urls["send_to_friends"] = (("http://www.gamezhero.com/sendtofriends/santaquest-games.html?utm_campaign=santaquest&utm_source=" + _local2) + "&utm_medium=send_to_friends");
_urls["play_more_games"] = (("http://www.gamezhero.com/?utm_campaign=santaquest&utm_source=" + _local2) + "&utm_medium=more_free_games");
_urls["zorro_logo"] = (("http://www.gamezhero.com/?utm_campaign=santaquest&utm_source=" + _local2) + "&utm_medium=zorro_logo");
_urls["put_this_game"] = (("http://www.gamezhero.com/freewebsitegames/santaquest-games.html?utm_campaign=santaquest&utm_source=" + _local2) + "&utm_medium=free_web_site_games");
_urls["view_top_score"] = (("http://www.gamezhero.com/topscore/santaquest/?utm_campaign=santaquest&utm_source=" + _local2) + "&utm_medium=top_score");
_urls["release"] = (("http://www.gamezhero.com/online-games/puzzle-games/santaquest-onlinegames.html?utm_campaign=santaquest&utm_source=" + _local2) + "&utm_medium=release");
_urls["error"] = (("http://www.gamezhero.com/?utm_campaign=santaquest&utm_source=" + _local2) + "&utm_medium=error");
_urls["preloader"] = (("http://www.gamezhero.com/?utm_campaign=santaquest&utm_source=" + _local2) + "&utm_medium=preloader");
_urls["play_more_games_context"] = (("http://www.gamezhero.com/?utm_campaign=santaquest&utm_source=" + _local2) + "&utm_medium=context_menu");
_urls["put_this_game_context"] = (("http://www.gamezhero.com/freewebsitegames/santaquest-onlinegames.html?utm_campaign=santaquest&utm_source=" + _local2) + "&utm_medium=free_web_site_games_context");
_urls["send_to_friends_context"] = (("http://www.gamezhero.com/sendtofriends/santaquest-onlinegames.html?utm_campaign=santaquest&utm_source=" + _local2) + "&utm_medium=send_to_friends_context_menu");
_urls["copyright"] = (("<a href='http://www.gamezhero.com/?utm_campaign=santaquest&utm_source=" + _local2) + "&utm_medium=copyright'>copyright © gamezhero.com</a>");
_urls["youtube"] = "http://www.youtube.com/watch?v=b8UEmz7bKsA";
}
}
}//package
Section 110
//in (in)
package {
import flash.media.*;
public dynamic class in extends Sound {
}
}//package
Section 111
//Light (Light)
package {
import flash.display.*;
public dynamic class Light extends MovieClip {
public function Light(){
addFrameScript(0, frame1, 6, );
}
function (){
stop();
}
function frame1(){
stop();
}
}
}//package
Section 112
//lost (lost)
package {
import flash.media.*;
public dynamic class lost extends Sound {
}
}//package
Section 113
//m_game_over (m_game_over)
package {
import flash.media.*;
public dynamic class m_game_over extends Sound {
}
}//package
Section 114
//Main (Main)
package {
import flash.display.*;
import flash.events.*;
import com.gamezhero.as3.media.*;
import com.gamezhero.as3.*;
import com.gamezhero.as3.utils.*;
import flash.system.*;
public class Main extends MovieClip {
public var container:Container;
public var mcStage:MovieClip;
private var ;
private var :ClassLoader;
private var :Boolean;// = false
public function Main(){
Security.allowDomain("gamezhero.com", "files.gamezhero.com", "eufiles.gamezhero.com", "*.gamezhero.com", "*", "*.*", "*.*.*");
stage.stageFocusRect = false;
stage.scaleMode = StageScaleMode.NO_SCALE;
this.stop();
iniMainStage();
}
private function ():void{
Global.music_interface = new Music();
Global.music_game = new Music();
Global.sound_interface = new SoundFX();
Global.sound_game = new SoundFX();
Global.music_interface.setMusicVolume(Global._music_volume_interface);
Global.music_game.setMusicVolume(Global._music_volume_interface);
Global.sound_interface.setSoundVolume(Global._sound_volume_interface);
Global.sound_game.setSoundVolume(Global._sound_volume_interface);
trace(("s " + Global._game_stored_data.data.soundVolumeFlag));
trace(("m " + Global._game_stored_data.data.musicVolumeFlag));
if (isNaN(Global._game_stored_data.data.soundVolumeFlag)){
Global._game_stored_data.data.soundVolumeFlag = 1;
};
if (isNaN(Global._game_stored_data.data.musicVolumeFlag)){
Global._game_stored_data.data.musicVolumeFlag = 1;
};
trace(("s " + Global._game_stored_data.data.soundVolumeFlag));
trace(("m " + Global._game_stored_data.data.musicVolumeFlag));
}
public function iniMainStage():void{
Global.iniUrls(this.stage);
();
();
();
}
private function ():void{
if ( == false){
= true;
= new ClassLoader();
.addEventListener(ClassLoader.LOAD_ERROR,
);
.addEventListener(ClassLoader.CLASS_LOADED, );
try {
.load(("http://files.gamezhero.com/flash/superPro3.swf?time" + new Date().getTime()));
} catch(e:Error) {
trace("ERROR");
};
};
}
private function
():void{
GamezheroGlobal.gameName = "santaquest";
var _local1:GamePreloader = new GamePreloader(this, {debug:false});
_local1.addEventListener(GamePreloader.finish, nextStep);
}
private function
(_arg1:Event):void{
}
private function (_arg1:Event):void{
var proClass:Class;
var e = _arg1;
var foo:Number = Number(root.loaderInfo.parameters["gamezhero_code"]);
Global.gamezhero_code = foo;
try {
proClass = .getClass("superPro3");
= new proClass(this, 1197710244855, foo, "santaquest");
} catch(e:Error) {
trace("Error Loading PRO");
};
}
public function nextStep(_arg1:Event=null):void{
trace("HERE CODE AFTER LOADING");
this.gotoAndStop(2);
}
}
}//package
Section 115
//map (map)
package {
import flash.media.*;
public dynamic class map extends Sound {
}
}//package
Section 116
//menu (menu)
package {
import flash.media.*;
public dynamic class menu extends Sound {
}
}//package
Section 117
//notMove (notMove)
package {
import flash.media.*;
public dynamic class notMove extends Sound {
}
}//package
Section 118
//over_but (over_but)
package {
import flash.media.*;
public dynamic class over_but extends Sound {
}
}//package
Section 119
//s_magic1 (s_magic1)
package {
import flash.media.*;
public dynamic class s_magic1 extends Sound {
}
}//package
Section 120
//s_magic2 (s_magic2)
package {
import flash.media.*;
public dynamic class s_magic2 extends Sound {
}
}//package
Section 121
//s_magic3 (s_magic3)
package {
import flash.media.*;
public dynamic class s_magic3 extends Sound {
}
}//package
Section 122
//star (star)
package {
import flash.media.*;
public dynamic class star extends Sound {
}
}//package