Section 1
//a10_animation_67 (example_localization_AS3_fla.a10_animation_67)
package example_localization_AS3_fla {
import flash.display.*;
public dynamic class a10_animation_67 extends MovieClip {
public function a10_animation_67(){
addFrameScript(38, frame39);
}
function frame39(){
stop();
}
}
}//package example_localization_AS3_fla
Section 2
//Back (fl.transitions.easing.Back)
package fl.transitions.easing {
public class Back {
public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number=0):Number{
if (!_arg5){
_arg5 = 1.70158;
};
_arg1 = ((_arg1 / _arg4) - 1);
return (((_arg3 * (((_arg1 * _arg1) * (((_arg5 + 1) * _arg1) + _arg5)) + 1)) + _arg2));
}
public static function easeIn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number=0):Number{
if (!_arg5){
_arg5 = 1.70158;
};
_arg1 = (_arg1 / _arg4);
return (((((_arg3 * _arg1) * _arg1) * (((_arg5 + 1) * _arg1) - _arg5)) + _arg2));
}
public static function easeInOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number=0):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));
}
}
}//package fl.transitions.easing
Section 3
//Tween (fl.transitions.Tween)
package fl.transitions {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
public class Tween extends EventDispatcher {
private var _position:Number;// = NAN
public var prevTime:Number;// = NAN
public var prevPos:Number;// = NAN
public var isPlaying:Boolean;// = false
private var _fps:Number;// = NAN
private var _time:Number;// = NAN
public var begin:Number;// = NAN
private var _finish:Number;// = NAN
public var change:Number;// = NAN
public var looping:Boolean;// = false
private var _intervalID:uint;// = 0
public var func:Function;
private var _timer:Timer;// = null
private var _startTime:Number;// = NAN
public var prop:String;// = ""
private var _duration:Number;// = NAN
public var obj:Object;// = null
public var useSeconds:Boolean;// = false
protected static var _mc:MovieClip = new MovieClip();
public function Tween(_arg1:Object, _arg2:String, _arg3:Function, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Boolean=false){
this.func = function (_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return ((((_arg3 * _arg1) / _arg4) + _arg2));
};
super();
if (!arguments.length){
return;
};
this.obj = _arg1;
this.prop = _arg2;
this.begin = _arg4;
this.position = _arg4;
this.duration = _arg6;
this.useSeconds = _arg7;
if ((_arg3 is Function)){
this.func = _arg3;
};
this.finish = _arg5;
this._timer = new Timer(100);
this.start();
}
public function continueTo(_arg1:Number, _arg2:Number):void{
this.begin = this.position;
this.finish = _arg1;
if (!isNaN(_arg2)){
this.duration = _arg2;
};
this.start();
}
protected function startEnterFrame():void{
var _local1:Number;
if (isNaN(this._fps)){
_mc.addEventListener(Event.ENTER_FRAME, this.onEnterFrame, false, 0, true);
} else {
_local1 = (1000 / this._fps);
this._timer.delay = _local1;
this._timer.addEventListener(TimerEvent.TIMER, this.timerHandler, false, 0, true);
this._timer.start();
};
this.isPlaying = true;
}
public function stop():void{
this.stopEnterFrame();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_STOP, this._time, this._position));
}
private function fixTime():void{
if (this.useSeconds){
this._startTime = (getTimer() - (this._time * 1000));
};
}
public function set FPS(_arg1:Number):void{
var _local2:Boolean = this.isPlaying;
this.stopEnterFrame();
this._fps = _arg1;
if (_local2){
this.startEnterFrame();
};
}
public function get finish():Number{
return ((this.begin + this.change));
}
public function get duration():Number{
return (this._duration);
}
protected function stopEnterFrame():void{
if (isNaN(this._fps)){
_mc.removeEventListener(Event.ENTER_FRAME, this.onEnterFrame);
} else {
this._timer.stop();
};
this.isPlaying = false;
}
public function set time(_arg1:Number):void{
this.prevTime = this._time;
if (_arg1 > this.duration){
if (this.looping){
this.rewind((_arg1 - this._duration));
this.update();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_LOOP, this._time, this._position));
} else {
if (this.useSeconds){
this._time = this._duration;
this.update();
};
this.stop();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_FINISH, this._time, this._position));
};
} else {
if (_arg1 < 0){
this.rewind();
this.update();
} else {
this._time = _arg1;
this.update();
};
};
}
public function getPosition(_arg1:Number=NaN):Number{
if (isNaN(_arg1)){
_arg1 = this._time;
};
return (this.func(_arg1, this.begin, this.change, this._duration));
}
public function set finish(_arg1:Number):void{
this.change = (_arg1 - this.begin);
}
public function set duration(_arg1:Number):void{
this._duration = ((_arg1)<=0) ? Infinity : _arg1;
}
public function get position():Number{
return (this.getPosition(this._time));
}
public function setPosition(_arg1:Number):void{
this.prevPos = this._position;
if (this.prop.length){
this.obj[this.prop] = (this._position = _arg1);
};
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_CHANGE, this._time, this._position));
}
public function resume():void{
this.fixTime();
this.startEnterFrame();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_RESUME, this._time, this._position));
}
public function fforward():void{
this.time = this._duration;
this.fixTime();
}
protected function onEnterFrame(_arg1:Event):void{
this.nextFrame();
}
public function yoyo():void{
this.continueTo(this.begin, this.time);
}
public function nextFrame():void{
if (this.useSeconds){
this.time = ((getTimer() - this._startTime) / 1000);
} else {
this.time = (this._time + 1);
};
}
protected function timerHandler(_arg1:TimerEvent):void{
this.nextFrame();
_arg1.updateAfterEvent();
}
public function get FPS():Number{
return (this._fps);
}
public function rewind(_arg1:Number=0):void{
this._time = _arg1;
this.fixTime();
this.update();
}
public function set position(_arg1:Number):void{
this.setPosition(_arg1);
}
public function get time():Number{
return (this._time);
}
private function update():void{
this.setPosition(this.getPosition(this._time));
}
public function start():void{
this.rewind();
this.startEnterFrame();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_START, this._time, this._position));
}
public function prevFrame():void{
if (!this.useSeconds){
this.time = (this._time - 1);
};
}
}
}//package fl.transitions
Section 4
//TweenEvent (fl.transitions.TweenEvent)
package fl.transitions {
import flash.events.*;
public class TweenEvent extends Event {
public var position:Number;// = NAN
public var time:Number;// = NAN
public static const MOTION_START:String = "motionStart";
public static const MOTION_STOP:String = "motionStop";
public static const MOTION_LOOP:String = "motionLoop";
public static const MOTION_CHANGE:String = "motionChange";
public static const MOTION_FINISH:String = "motionFinish";
public static const MOTION_RESUME:String = "motionResume";
public function TweenEvent(_arg1:String, _arg2:Number, _arg3:Number, _arg4:Boolean=false, _arg5:Boolean=false){
super(_arg1, _arg4, _arg5);
this.time = _arg2;
this.position = _arg3;
}
override public function clone():Event{
return (new TweenEvent(this.type, this.time, this.position, this.bubbles, this.cancelable));
}
}
}//package fl.transitions
Section 5
//adBox_body_4 (jumper3_fla.adBox_body_4)
package jumper3_fla {
import flash.display.*;
public dynamic class adBox_body_4 extends MovieClip {
public var body:MovieClip;
public function adBox_body_4(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package jumper3_fla
Section 6
//branding_aligned_center_15 (jumper3_fla.branding_aligned_center_15)
package jumper3_fla {
import flash.display.*;
public dynamic class branding_aligned_center_15 extends MovieClip {
public function branding_aligned_center_15(){
addFrameScript(0, frame1, 3, frame4);
}
function frame1(){
stop();
gotoAndStop(45);
}
function frame4(){
trace("parent ", this.parent);
}
}
}//package jumper3_fla
Section 7
//crasheffect_149 (jumper3_fla.crasheffect_149)
package jumper3_fla {
import flash.display.*;
import flash.events.*;
public dynamic class crasheffect_149 extends MovieClip {
public function crasheffect_149(){
addFrameScript(6, frame7, 44, frame45, 51, frame52);
}
function frame52(){
stop();
dispatchEvent(new Event("CLOSE"));
}
function frame7(){
dispatchEvent(new Event("ON_PAUSE"));
}
function frame45(){
dispatchEvent(new Event("OFF_PAUSE"));
}
}
}//package jumper3_fla
Section 8
//embed_55 (jumper3_fla.embed_55)
package jumper3_fla {
import flash.display.*;
public dynamic class embed_55 extends MovieClip {
public function embed_55(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package jumper3_fla
Section 9
//er_logo_001_227 (jumper3_fla.er_logo_001_227)
package jumper3_fla {
import flash.display.*;
public dynamic class er_logo_001_227 extends MovieClip {
public function er_logo_001_227(){
addFrameScript(0, frame1, 57, frame58);
}
function frame58(){
stop();
}
function frame1(){
stop();
}
}
}//package jumper3_fla
Section 10
//icons_71 (jumper3_fla.icons_71)
package jumper3_fla {
import flash.display.*;
public dynamic class icons_71 extends MovieClip {
public function icons_71(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package jumper3_fla
Section 11
//info_help_en_159 (jumper3_fla.info_help_en_159)
package jumper3_fla {
import flash.display.*;
public dynamic class info_help_en_159 extends MovieClip {
public function info_help_en_159(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package jumper3_fla
Section 12
//info_help_ru_158 (jumper3_fla.info_help_ru_158)
package jumper3_fla {
import flash.display.*;
public dynamic class info_help_ru_158 extends MovieClip {
public function info_help_ru_158(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package jumper3_fla
Section 13
//task_status_143 (jumper3_fla.task_status_143)
package jumper3_fla {
import flash.display.*;
public dynamic class task_status_143 extends MovieClip {
public function task_status_143(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package jumper3_fla
Section 14
//text1_14 (jumper3_fla.text1_14)
package jumper3_fla {
import flash.display.*;
public dynamic class text1_14 extends MovieClip {
public function text1_14(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package jumper3_fla
Section 15
//wnd_1_166 (jumper3_fla.wnd_1_166)
package jumper3_fla {
import flash.display.*;
public dynamic class wnd_1_166 extends MovieClip {
public function wnd_1_166(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package jumper3_fla
Section 16
//wnd_2_167 (jumper3_fla.wnd_2_167)
package jumper3_fla {
import flash.display.*;
public dynamic class wnd_2_167 extends MovieClip {
public function wnd_2_167(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package jumper3_fla
Section 17
//wnd_3_171 (jumper3_fla.wnd_3_171)
package jumper3_fla {
import flash.display.*;
public dynamic class wnd_3_171 extends MovieClip {
public function wnd_3_171(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package jumper3_fla
Section 18
//wnd_4_172 (jumper3_fla.wnd_4_172)
package jumper3_fla {
import flash.display.*;
public dynamic class wnd_4_172 extends MovieClip {
public function wnd_4_172(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package jumper3_fla
Section 19
//wnd_5_173 (jumper3_fla.wnd_5_173)
package jumper3_fla {
import flash.display.*;
public dynamic class wnd_5_173 extends MovieClip {
public function wnd_5_173(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package jumper3_fla
Section 20
//wnd_6_174 (jumper3_fla.wnd_6_174)
package jumper3_fla {
import flash.display.*;
public dynamic class wnd_6_174 extends MovieClip {
public function wnd_6_174(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package jumper3_fla
Section 21
//wnd_7_175 (jumper3_fla.wnd_7_175)
package jumper3_fla {
import flash.display.*;
public dynamic class wnd_7_175 extends MovieClip {
public function wnd_7_175(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package jumper3_fla
Section 22
//wnd_8_176 (jumper3_fla.wnd_8_176)
package jumper3_fla {
import flash.display.*;
public dynamic class wnd_8_176 extends MovieClip {
public function wnd_8_176(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package jumper3_fla
Section 23
//wnd01_177 (jumper3_fla.wnd01_177)
package jumper3_fla {
import flash.display.*;
public dynamic class wnd01_177 extends MovieClip {
public function wnd01_177(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package jumper3_fla
Section 24
//wnd02_178 (jumper3_fla.wnd02_178)
package jumper3_fla {
import flash.display.*;
public dynamic class wnd02_178 extends MovieClip {
public function wnd02_178(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package jumper3_fla
Section 25
//wnd03_179 (jumper3_fla.wnd03_179)
package jumper3_fla {
import flash.display.*;
public dynamic class wnd03_179 extends MovieClip {
public function wnd03_179(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package jumper3_fla
Section 26
//wnd04_180 (jumper3_fla.wnd04_180)
package jumper3_fla {
import flash.display.*;
public dynamic class wnd04_180 extends MovieClip {
public function wnd04_180(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package jumper3_fla
Section 27
//wnd05_181 (jumper3_fla.wnd05_181)
package jumper3_fla {
import flash.display.*;
public dynamic class wnd05_181 extends MovieClip {
public function wnd05_181(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package jumper3_fla
Section 28
//wnd06_182 (jumper3_fla.wnd06_182)
package jumper3_fla {
import flash.display.*;
public dynamic class wnd06_182 extends MovieClip {
public function wnd06_182(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package jumper3_fla
Section 29
//O1OOO0O00 (Util.O1OOO0O00)
package Util {
import flash.net.*;
import flash.external.*;
public class O1OOO0O00 {
private static const _O1lO0Oll1:Array = ["www.a10.com.gp.dev.spilgames.eu", "stg.pl.a10.com", "gamedev.dev.spilgames.com", "www.agame.com", "www.girlsgogames.com", "www.games.co.uk", "www.mygames.co.uk", "www.girlsgogames.co.uk", "www.spel.nl", "www.spelletjes.nl", "www.girlsgogames.nl", "www.jetztspielen.de", "www.spielen.com", "www.girlsgogames.de", "www.jeux.fr", "www.jeu.fr", "www.girlsgogames.fr", "www.juegos.com", "www.zapjuegos.com", "www.juegosdechicas.com", "www.gioco.it", "www.giocaregratis.it", "www.girlsgogames.it", "www.gry.pl", "www.minigry.pl", "www.girlsgogames.pl", "www.spela.se", "www.spel.eu", "www.girlsgogames.se", "www.ojogos.pt", "www.ourgames.ru", "www.flashgames.ru", "www.girlsgogames.ru", "www.oyunlar123.com", "www.asoyun.com", "www.girlsgogamestr.com", "www.gamesgames.com", "www.agame.com", "www.girlsgogames.com", "www.juegos.com", "www.zapjuegos.com", "www.juegosdechicas.com", "www.ojogos.com.br", "www.clickjogos.com", "www.girlsgogames.com.br", "www.game.com.cn", "www.xiaoyouxi.com", "www.egames.jp", "www.game.co.in", "www.game.co.in", "www.girlsgogames.in", "www.games.co.id", "www.laro.com.ph", "www.game.com.my", "www.onrpg.com", "www.zlonggames.com", "www.a10.com", "localhost"];
private static var _OOl10ll1l:URLRequest;
private static var _O0Oll0l00;
public function O1OOO0O00():void{
super();
try {
_O0Oll0l00 = ExternalInterface.call("window.location.href.toString");
} catch(e) {
_O0Oll0l00 = "error";
};
if ((((_O0Oll0l00 == null)) || ((_O0Oll0l00 == "")))){
_O0Oll0l00 = "error";
};
if (String(_O0Oll0l00).indexOf(".swf") != -1){
_O0Oll0l00 = "error";
};
}
public function O0111l110():Boolean{
if (((!((_O001llOll(_O11ll1l00(_O0Oll0l00)) == -1))) && (!((_O0Oll0l00 == "error"))))){
return (true);
};
return (false);
}
private static function _O11ll1l00(_arg1:String):String{
var _local2:String = new String();
var _local3:uint = 7;
while (_local3 < _arg1.length) {
if (_arg1.charAt(_local3) == "/"){
break;
};
_local2 = (_local2 + _arg1.charAt(_local3));
_local3++;
};
return (_local2);
}
private static function _O001llOll(_arg1:String):Number{
var _local2:uint;
if (((_O1lO0Oll1) && (_arg1))){
_local2 = 0;
while (_local2 < _O1lO0Oll1.length) {
if (_arg1 == _O1lO0Oll1[_local2]){
return (_local2);
};
_local2++;
};
return (-1);
} else {
trace("cannot find site name");
};
return (-1);
}
}
}//package Util
Section 30
//Arr_001 (Arr_001)
package {
import flash.media.*;
public dynamic class Arr_001 extends Sound {
}
}//package
Section 31
//Arr_002 (Arr_002)
package {
import flash.media.*;
public dynamic class Arr_002 extends Sound {
}
}//package
Section 32
//Arr_003 (Arr_003)
package {
import flash.media.*;
public dynamic class Arr_003 extends Sound {
}
}//package
Section 33
//Bonus_bonus (Bonus_bonus)
package {
import flash.media.*;
public dynamic class Bonus_bonus extends Sound {
}
}//package
Section 34
//Bonus_combo (Bonus_combo)
package {
import flash.media.*;
public dynamic class Bonus_combo extends Sound {
}
}//package
Section 35
//Bonus_mission_enter (Bonus_mission_enter)
package {
import flash.media.*;
public dynamic class Bonus_mission_enter extends Sound {
}
}//package
Section 36
//Bonus_mission_exit (Bonus_mission_exit)
package {
import flash.media.*;
public dynamic class Bonus_mission_exit extends Sound {
}
}//package
Section 37
//Bonus_new_parashute (Bonus_new_parashute)
package {
import flash.media.*;
public dynamic class Bonus_new_parashute extends Sound {
}
}//package
Section 38
//BonusStageTheme (BonusStageTheme)
package {
import flash.media.*;
public dynamic class BonusStageTheme extends Sound {
}
}//package
Section 39
//CityTheme (CityTheme)
package {
import flash.media.*;
public dynamic class CityTheme extends Sound {
}
}//package
Section 40
//Crash (Crash)
package {
import flash.text.*;
public dynamic class Crash extends Font {
}
}//package
Section 41
//Cut_scenes (Cut_scenes)
package {
import flash.media.*;
public dynamic class Cut_scenes extends Sound {
}
}//package
Section 42
//ERLogo (ERLogo)
package {
import flash.display.*;
import flash.events.*;
public dynamic class ERLogo extends MovieClip {
public var logo_mc:MovieClip;
public function ERLogo(){
addFrameScript(0, frame1, 119, frame120);
}
function frame120(){
dispatchEvent(new Event(Event.COMPLETE));
}
function frame1(){
stop();
}
}
}//package
Section 43
//Faster (Faster)
package {
import flash.media.*;
public dynamic class Faster extends Sound {
}
}//package
Section 44
//ForestTheme (ForestTheme)
package {
import flash.media.*;
public dynamic class ForestTheme extends Sound {
}
}//package
Section 45
//Hit_easy_001 (Hit_easy_001)
package {
import flash.media.*;
public dynamic class Hit_easy_001 extends Sound {
}
}//package
Section 46
//Hit_easy_002 (Hit_easy_002)
package {
import flash.media.*;
public dynamic class Hit_easy_002 extends Sound {
}
}//package
Section 47
//Hit_strong (Hit_strong)
package {
import flash.media.*;
public dynamic class Hit_strong extends Sound {
}
}//package
Section 48
//hpmeter (hpmeter)
package {
import flash.display.*;
public dynamic class hpmeter extends MovieClip {
public function hpmeter(){
addFrameScript(4, frame5, 9, frame10, 14, frame15, 19, frame20, 24, frame25, 29, frame30, 34, frame35, 39, frame40, 44, frame45, 49, frame50, 54, frame55);
}
function frame50(){
gotoAndPlay(46);
}
function frame40(){
gotoAndPlay(36);
}
function frame30(){
gotoAndPlay(26);
}
function frame20(){
gotoAndPlay(16);
}
function frame10(){
gotoAndPlay(6);
}
function frame55(){
gotoAndPlay(51);
}
function frame45(){
gotoAndPlay(41);
}
function frame5(){
gotoAndPlay(1);
}
function frame25(){
gotoAndPlay(21);
}
function frame15(){
gotoAndPlay(11);
}
function frame35(){
gotoAndPlay(31);
}
}
}//package
Section 49
//language (language)
package {
import flash.net.*;
public class language {
public static var localConnection = new LocalConnection();
public static var _languageNum:uint = 0;
public static var _languageBox:Array = new Array();
public static var SpillGroupUrl:Array = new Array();
public static var gamename = "Jumper2";
public static function get url2():String{
var _local1:int;
while (_local1 < SpillGroupUrl.length) {
if (localConnection.domain == SpillGroupUrl[_local1]){
return (_languageBox[_languageNum].url2);
};
_local1++;
};
return (_languageBox[_languageNum].url2);
}
public static function get language_nr():String{
return (_languageBox[_languageNum].language_nr);
}
public static function get portal():String{
return (_languageBox[_languageNum].portal);
}
public static function set Language(_arg1:Object):void{
var domainextention:int;
var domainname:int;
var languageVersion = _arg1;
var returnDomain:Function = function (_arg1:String):String{
var _local2:String = new String();
var _local3:uint = 7;
while (_local3 < _arg1.length) {
if (_arg1.charAt(_local3) == "/"){
break;
};
_local2 = (_local2 + _arg1.charAt(_local3));
_local3++;
};
return (_local2);
};
var hostingdomain = "";
var myList:String = localConnection.domain;
var myArray:Array = myList.split(".");
if (myArray.length <= 3){
domainextention = (myArray.length - 1);
domainname = (myArray.length - 2);
hostingdomain = ((myArray[domainname] + ".") + myArray[domainextention]);
} else {
hostingdomain = localConnection.domain;
};
if (hostingdomain == "undefined.localhost"){
hostingdomain = "offline_play";
};
var language1:* = new languageItem();
language1.url1 = ((("http://www.a10.com/moregames/?utm_medium=brandedgames_external&utm_campaign=" + gamename) + "&utm_source=") + hostingdomain);
language1.url2 = ((("http://www.a10.com/moregames/?utm_medium=brandedgames_internal&utm_campaign=" + gamename) + "&utm_source=") + hostingdomain);
language1.language_nr = 1;
language1.branding_nr = 46;
language1.portal = "teen";
_languageBox.push(language1);
SpillGroupUrl.push("localhost");
SpillGroupUrl.push("www8.agame.com");
SpillGroupUrl.push("gamedev.dev.spilgames.com");
if ((((((languageVersion is Number)) || ((languageVersion is uint)))) || ((languageVersion is int)))){
_languageNum = (Number(languageVersion) - 1);
};
}
public static function get url1():String{
var _local1:int;
while (_local1 < SpillGroupUrl.length) {
if (localConnection.domain == SpillGroupUrl[_local1]){
return (_languageBox[_languageNum].url2);
};
_local1++;
};
return (_languageBox[_languageNum].url1);
}
public static function get branding_nr():String{
return (_languageBox[_languageNum].branding_nr);
}
}
var _local1:* = (language.Language = 1);
return (_local1);
}//package
class languageItem {
public var url1:String;
public var url2:String;
public var language_nr:int;
public var portal:String;
public var branding_nr:int;
private function languageItem(){
}
}
Section 50
//marker (marker)
package {
import flash.display.*;
public dynamic class marker extends MovieClip {
}
}//package
Section 51
//MenuTheme (MenuTheme)
package {
import flash.media.*;
public dynamic class MenuTheme extends Sound {
}
}//package
Section 52
//mishka (mishka)
package {
import flash.display.*;
public dynamic class mishka extends MovieClip {
}
}//package
Section 53
//MochiAd (MochiAd)
package {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
public class MochiAd {
public static function getVersion():String{
return ("3.0 as3");
}
public static function showClickAwayAd(_arg1:Object):void{
var clip:Object;
var mc:MovieClip;
var chk:MovieClip;
var options = _arg1;
var DEFAULTS:Object = {ad_timeout:2000, regpt:"o", method:"showClickAwayAd", res:"300x250", no_bg:true, ad_started:function ():void{
}, ad_finished:function ():void{
}, ad_loaded:function (_arg1:Number, _arg2:Number):void{
}, ad_failed:function ():void{
trace("[MochiAd] Couldn't load an ad, make sure your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_skipped:function ():void{
}};
options = MochiAd._parseOptions(options, DEFAULTS);
clip = options.clip;
var ad_timeout:Number = options.ad_timeout;
delete options.ad_timeout;
if (!MochiAd.load(options)){
options.ad_failed();
options.ad_finished();
return;
};
options.ad_started();
mc = clip._mochiad;
mc["onUnload"] = function ():void{
MochiAd._cleanup(mc);
options.ad_finished();
};
var wh:Array = MochiAd._getRes(options, clip);
var w:Number = wh[0];
var h:Number = wh[1];
mc.x = (w * 0.5);
mc.y = (h * 0.5);
chk = createEmptyMovieClip(mc, "_mochiad_wait", 3);
chk.ad_timeout = ad_timeout;
chk.started = getTimer();
chk.showing = false;
mc.unloadAd = function ():void{
MochiAd.unload(clip);
};
mc.adLoaded = options.ad_loaded;
mc.adSkipped = options.ad_skipped;
mc.rpc = function (_arg1:Number, _arg2:Object):void{
MochiAd.rpc(clip, _arg1, _arg2);
};
var sendHostProgress:Boolean;
mc.regContLC = function (_arg1:String):void{
mc._containerLCName = _arg1;
};
chk["onEnterFrame"] = function ():void{
var _local4:Number;
if (!this.parent){
delete this.onEnterFrame;
return;
};
var _local1:Object = this.parent._mochiad_ctr;
var _local2:Number = (getTimer() - this.started);
var _local3:Boolean;
if (!chk.showing){
_local4 = this.parent._mochiad_ctr.contentLoaderInfo.bytesTotal;
if (_local4 > 0){
chk.showing = true;
_local3 = true;
chk.started = getTimer();
} else {
if (_local2 > chk.ad_timeout){
options.ad_failed();
_local3 = true;
};
};
};
if (this.root == null){
_local3 = true;
};
if (_local3){
delete this.onEnterFrame;
};
};
doOnEnterFrame(chk);
}
public static function _isNetworkAvailable():Boolean{
return (!((Security.sandboxType == "localWithFile")));
}
public static function _allowDomains(_arg1:String):String{
var _local2:String = _arg1.split("/")[2].split(":")[0];
if (Security.sandboxType == "application"){
return (_local2);
};
Security.allowDomain("*");
Security.allowDomain(_local2);
Security.allowInsecureDomain("*");
Security.allowInsecureDomain(_local2);
return (_local2);
}
public static function unload(_arg1:Object):Boolean{
if (((_arg1.clip) && (_arg1.clip._mochiad))){
_arg1 = _arg1.clip;
};
if (_arg1.origFrameRate != undefined){
_arg1.stage.frameRate = _arg1.origFrameRate;
};
if (!_arg1._mochiad){
return (false);
};
if (_arg1._mochiad._containerLCName != undefined){
_arg1._mochiad.lc.send(_arg1._mochiad._containerLCName, "notify", {id:"unload"});
};
if (_arg1._mochiad.onUnload){
_arg1._mochiad.onUnload();
};
delete _arg1._mochiad_loaded;
delete _arg1._mochiad;
return (true);
}
public static function showInterLevelAd(_arg1:Object):void{
var clip:Object;
var mc:MovieClip;
var chk:MovieClip;
var options = _arg1;
var DEFAULTS:Object = {ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function ():void{
if ((this.clip is MovieClip)){
this.clip.stop();
} else {
throw (new Error("MochiAd.showInterLevelAd requires a clip that is a MovieClip or is an instance of a class that extends MovieClip. If your clip is a Sprite, then you must provide custom ad_started and ad_finished handlers."));
};
}, ad_finished:function ():void{
if ((this.clip is MovieClip)){
this.clip.play();
} else {
throw (new Error("MochiAd.showInterLevelAd requires a clip that is a MovieClip or is an instance of a class that extends MovieClip. If your clip is a Sprite, then you must provide custom ad_started and ad_finished handlers."));
};
}, ad_loaded:function (_arg1:Number, _arg2:Number):void{
}, ad_failed:function ():void{
trace("[MochiAd] Couldn't load an ad, make sure your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_skipped:function ():void{
}};
options = MochiAd._parseOptions(options, DEFAULTS);
clip = options.clip;
var ad_msec:Number = 11000;
var ad_timeout:Number = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time:Number = options.fadeout_time;
delete options.fadeout_time;
if (!MochiAd.load(options)){
options.ad_failed();
options.ad_finished();
return;
};
options.ad_started();
mc = clip._mochiad;
mc["onUnload"] = function ():void{
MochiAd._cleanup(mc);
options.ad_finished();
};
var wh:Array = MochiAd._getRes(options, clip);
var w:Number = wh[0];
var h:Number = wh[1];
mc.x = (w * 0.5);
mc.y = (h * 0.5);
chk = createEmptyMovieClip(mc, "_mochiad_wait", 3);
chk.ad_msec = ad_msec;
chk.ad_timeout = ad_timeout;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function ():void{
if (!this.parent){
delete this.onEnterFrame;
delete this.fadeFunction;
return;
};
var _local1:Number = (100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time)));
if (_local1 > 0){
this.parent.alpha = (_local1 * 0.01);
} else {
MochiAd.unload(clip);
delete this["onEnterFrame"];
};
};
mc.unloadAd = function ():void{
MochiAd.unload(clip);
};
mc.adLoaded = options.ad_loaded;
mc.adSkipped = options.ad_skipped;
mc.adjustProgress = function (_arg1:Number):void{
var _local2:Object = mc._mochiad_wait;
_local2.server_control = true;
_local2.showing = true;
_local2.started = getTimer();
_local2.ad_msec = (_arg1 - 250);
};
mc.rpc = function (_arg1:Number, _arg2:Object):void{
MochiAd.rpc(clip, _arg1, _arg2);
};
chk["onEnterFrame"] = function ():void{
var _local4:Number;
if (!this.parent){
delete this.onEnterFrame;
delete this.fadeFunction;
return;
};
var _local1:Object = this.parent._mochiad_ctr;
var _local2:Number = (getTimer() - this.started);
var _local3:Boolean;
if (!chk.showing){
_local4 = this.parent._mochiad_ctr.contentLoaderInfo.bytesTotal;
if (_local4 > 0){
chk.showing = true;
chk.started = getTimer();
MochiAd.adShowing(clip);
} else {
if (_local2 > chk.ad_timeout){
options.ad_failed();
_local3 = true;
};
};
};
if (_local2 > chk.ad_msec){
_local3 = true;
};
if (_local3){
if (this.server_control){
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = this.fadeFunction;
};
};
};
doOnEnterFrame(chk);
}
public static function _parseOptions(_arg1:Object, _arg2:Object):Object{
var _local4:String;
var _local5:Array;
var _local6:Number;
var _local7:Array;
var _local3:Object = {};
for (_local4 in _arg2) {
_local3[_local4] = _arg2[_local4];
};
if (_arg1){
for (_local4 in _arg1) {
_local3[_local4] = _arg1[_local4];
};
};
if (_local3.clip == undefined){
throw (new Error("MochiAd is missing the 'clip' parameter. This should be a MovieClip, Sprite or an instance of a class that extends MovieClip or Sprite."));
};
_arg1 = _local3.clip.loaderInfo.parameters.mochiad_options;
if (_arg1){
_local5 = _arg1.split("&");
_local6 = 0;
while (_local6 < _local5.length) {
_local7 = _local5[_local6].split("=");
_local3[unescape(_local7[0])] = unescape(_local7[1]);
_local6++;
};
};
if (_local3.id == "test"){
trace("[MochiAd] WARNING: Using the MochiAds test identifier, make sure to use the code from your dashboard, not this example!");
};
return (_local3);
}
public static function _cleanup(_arg1:Object):void{
var k:String;
var lc:LocalConnection;
var f:Function;
var mc = _arg1;
if (("lc" in mc)){
lc = mc.lc;
f = function ():void{
try {
lc.client = null;
lc.close();
} catch(e:Error) {
};
};
setTimeout(f, 0);
};
var idx:Number = DisplayObjectContainer(mc).numChildren;
while (idx > 0) {
idx = (idx - 1);
DisplayObjectContainer(mc).removeChildAt(idx);
};
for (k in mc) {
delete mc[k];
};
}
public static function load(_arg1:Object):MovieClip{
var clip:Object;
var k:String;
var server:String;
var hostname:String;
var lc:LocalConnection;
var name:String;
var loader:Loader;
var g:Function;
var req:URLRequest;
var v:Object;
var options = _arg1;
var DEFAULTS:Object = {server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = MochiAd._parseOptions(options, DEFAULTS);
options.swfv = 9;
options.mav = MochiAd.getVersion();
clip = options.clip;
if (!MochiAd._isNetworkAvailable()){
return (null);
};
try {
if (clip._mochiad_loaded){
return (null);
};
} catch(e:Error) {
throw (new Error("MochiAd requires a clip that is an instance of a dynamic class. If your class extends Sprite or MovieClip, you must make it dynamic."));
};
var depth:Number = options.depth;
delete options.depth;
var mc:MovieClip = createEmptyMovieClip(clip, "_mochiad", depth);
var wh:Array = MochiAd._getRes(options, clip);
options.res = ((wh[0] + "x") + wh[1]);
options.server = (options.server + options.id);
delete options.id;
clip._mochiad_loaded = true;
if (clip.loaderInfo.loaderURL.indexOf("http") == 0){
options.as3_swf = clip.loaderInfo.loaderURL;
} else {
trace("[MochiAd] NOTE: Security Sandbox Violation errors below are normal");
};
var lv:URLVariables = new URLVariables();
for (k in options) {
v = options[k];
if (!(v is Function)){
lv[k] = v;
};
};
server = lv.server;
delete lv.server;
hostname = _allowDomains(server);
lc = new LocalConnection();
lc.client = mc;
name = ["", Math.floor(new Date().getTime()), Math.floor((Math.random() * 999999))].join("_");
lc.allowDomain("*", "localhost");
lc.allowInsecureDomain("*", "localhost");
lc.connect(name);
mc.lc = lc;
mc.lcName = name;
lv.lc = name;
lv.st = getTimer();
loader = new Loader();
g = function (_arg1:Object):void{
_arg1.target.removeEventListener(_arg1.type, arguments.callee);
MochiAd.unload(clip);
};
loader.contentLoaderInfo.addEventListener(Event.UNLOAD, g);
req = new URLRequest(((server + ".swf?cacheBust=") + new Date().getTime()));
req.contentType = "application/x-www-form-urlencoded";
req.method = URLRequestMethod.POST;
req.data = lv;
loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, function (_arg1:IOErrorEvent):void{
trace("[MochiAds] Blocked URL");
});
loader.load(req);
mc.addChild(loader);
mc._mochiad_ctr = loader;
return (mc);
}
public static function runMethod(_arg1:Object, _arg2:String, _arg3:Array):Object{
var _local4:Array = _arg2.split(".");
var _local5:Number = 0;
while (_local5 < (_local4.length - 1)) {
if ((((_arg1[_local4[_local5]] == undefined)) || ((_arg1[_local4[_local5]] == null)))){
return (undefined);
};
_arg1 = _arg1[_local4[_local5]];
_local5++;
};
if (typeof(_arg1[_local4[_local5]]) == "function"){
return (_arg1[_local4[_local5]].apply(_arg1, _arg3));
};
return (undefined);
}
public static function createEmptyMovieClip(_arg1:Object, _arg2:String, _arg3:Number):MovieClip{
var _local4:MovieClip = new MovieClip();
if (((false) && (_arg3))){
_arg1.addChildAt(_local4, _arg3);
} else {
_arg1.addChild(_local4);
};
_arg1[_arg2] = _local4;
_local4["_name"] = _arg2;
return (_local4);
}
public static function _getRes(_arg1:Object, _arg2:Object):Array{
var _local6:Array;
var _local3:Object = _arg2.getBounds(_arg2.root);
var _local4:Number = 0;
var _local5:Number = 0;
if (typeof(_arg1.res) != "undefined"){
_local6 = _arg1.res.split("x");
_local4 = parseFloat(_local6[0]);
_local5 = parseFloat(_local6[1]);
} else {
_local4 = (_local3.xMax - _local3.xMin);
_local5 = (_local3.yMax - _local3.yMin);
};
if ((((_local4 == 0)) || ((_local5 == 0)))){
_local4 = _arg2.stage.stageWidth;
_local5 = _arg2.stage.stageHeight;
};
return ([_local4, _local5]);
}
public static function adShowing(_arg1:Object):void{
_arg1.origFrameRate = _arg1.stage.frameRate;
_arg1.stage.frameRate = 30;
}
public static function getValue(_arg1:Object, _arg2:String):Object{
var _local3:Array = _arg2.split(".");
var _local4:Number = 0;
while (_local4 < (_local3.length - 1)) {
if ((((_arg1[_local3[_local4]] == undefined)) || ((_arg1[_local3[_local4]] == null)))){
return (undefined);
};
_arg1 = _arg1[_local3[_local4]];
_local4++;
};
return (_arg1[_local3[_local4]]);
}
public static function rpc(_arg1:Object, _arg2:Number, _arg3:Object):void{
var _local4:Object;
var _local5:Object;
switch (_arg3.id){
case "setValue":
MochiAd.setValue(_arg1, _arg3.objectName, _arg3.value);
break;
case "getValue":
_local4 = MochiAd.getValue(_arg1, _arg3.objectName);
_arg1._mochiad.lc.send(_arg1._mochiad._containerLCName, "rpcResult", _arg2, _local4);
break;
case "runMethod":
_local5 = MochiAd.runMethod(_arg1, _arg3.method, _arg3.args);
_arg1._mochiad.lc.send(_arg1._mochiad._containerLCName, "rpcResult", _arg2, _local5);
break;
default:
trace(("[mochiads rpc] unknown rpc id: " + _arg3.id));
};
}
public static function setValue(_arg1:Object, _arg2:String, _arg3:Object):void{
var _local4:Array = _arg2.split(".");
var _local5:Number = 0;
while (_local5 < (_local4.length - 1)) {
if ((((_arg1[_local4[_local5]] == undefined)) || ((_arg1[_local4[_local5]] == null)))){
return;
};
_arg1 = _arg1[_local4[_local5]];
_local5++;
};
_arg1[_local4[_local5]] = _arg3;
}
public static function showPreGameAd(_arg1:Object):void{
var clip:Object;
var mc:MovieClip;
var chk:MovieClip;
var complete:Boolean;
var unloaded:Boolean;
var sendHostProgress:Boolean;
var fn:Function;
var r:MovieClip;
var options = _arg1;
var DEFAULTS:Object = {ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:0xFF8A00, background:16777161, outline:13994812, no_progress_bar:false, ad_started:function ():void{
if ((this.clip is MovieClip)){
this.clip.stop();
} else {
throw (new Error("MochiAd.showPreGameAd requires a clip that is a MovieClip or is an instance of a class that extends MovieClip. If your clip is a Sprite, then you must provide custom ad_started and ad_finished handlers."));
};
}, ad_finished:function ():void{
if ((this.clip is MovieClip)){
this.clip.play();
} else {
throw (new Error("MochiAd.showPreGameAd requires a clip that is a MovieClip or is an instance of a class that extends MovieClip. If your clip is a Sprite, then you must provide custom ad_started and ad_finished handlers."));
};
}, ad_loaded:function (_arg1:Number, _arg2:Number):void{
}, ad_failed:function ():void{
trace("[MochiAd] Couldn't load an ad, make sure your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_skipped:function ():void{
}, ad_progress:function (_arg1:Number):void{
}};
options = MochiAd._parseOptions(options, DEFAULTS);
if ("c862232051e0a94e1c3609b3916ddb17".substr(0) == "dfeada81ac97cde83665f81c12da7def"){
options.ad_started();
fn = function ():void{
options.ad_finished();
};
setTimeout(fn, 100);
return;
};
clip = options.clip;
var ad_msec:Number = 11000;
var ad_timeout:Number = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time:Number = options.fadeout_time;
delete options.fadeout_time;
if (!MochiAd.load(options)){
options.ad_failed();
options.ad_finished();
return;
};
options.ad_started();
mc = clip._mochiad;
mc["onUnload"] = function ():void{
MochiAd._cleanup(mc);
var fn:Function = function ():void{
options.ad_finished();
};
setTimeout(fn, 100);
};
var wh:Array = MochiAd._getRes(options, clip);
var w:Number = wh[0];
var h:Number = wh[1];
mc.x = (w * 0.5);
mc.y = (h * 0.5);
chk = createEmptyMovieClip(mc, "_mochiad_wait", 3);
chk.x = (w * -0.5);
chk.y = (h * -0.5);
var bar:MovieClip = createEmptyMovieClip(chk, "_mochiad_bar", 4);
if (options.no_progress_bar){
bar.visible = false;
delete options.no_progress_bar;
} else {
bar.x = 10;
bar.y = (h - 20);
};
var bar_color:Number = options.color;
delete options.color;
var bar_background:Number = options.background;
delete options.background;
var bar_outline:Number = options.outline;
delete options.outline;
var backing_mc:MovieClip = createEmptyMovieClip(bar, "_outline", 1);
var backing:Object = backing_mc.graphics;
backing.beginFill(bar_background);
backing.moveTo(0, 0);
backing.lineTo((w - 20), 0);
backing.lineTo((w - 20), 10);
backing.lineTo(0, 10);
backing.lineTo(0, 0);
backing.endFill();
var inside_mc:MovieClip = createEmptyMovieClip(bar, "_inside", 2);
var inside:Object = inside_mc.graphics;
inside.beginFill(bar_color);
inside.moveTo(0, 0);
inside.lineTo((w - 20), 0);
inside.lineTo((w - 20), 10);
inside.lineTo(0, 10);
inside.lineTo(0, 0);
inside.endFill();
inside_mc.scaleX = 0;
var outline_mc:MovieClip = createEmptyMovieClip(bar, "_outline", 3);
var outline:Object = outline_mc.graphics;
outline.lineStyle(0, bar_outline, 100);
outline.moveTo(0, 0);
outline.lineTo((w - 20), 0);
outline.lineTo((w - 20), 10);
outline.lineTo(0, 10);
outline.lineTo(0, 0);
chk.ad_msec = ad_msec;
chk.ad_timeout = ad_timeout;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function ():void{
var _local1:Number = (100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time)));
if (_local1 > 0){
this.parent.alpha = (_local1 * 0.01);
} else {
MochiAd.unload(clip);
delete this["onEnterFrame"];
};
};
complete = false;
unloaded = false;
var f:Function = function (_arg1:Event):void{
_arg1.target.removeEventListener(_arg1.type, arguments.callee);
complete = true;
if (unloaded){
MochiAd.unload(clip);
};
};
clip.loaderInfo.addEventListener(Event.COMPLETE, f);
if ((clip.root is MovieClip)){
r = (clip.root as MovieClip);
if (r.framesLoaded >= r.totalFrames){
complete = true;
};
};
mc.unloadAd = function ():void{
unloaded = true;
if (complete){
MochiAd.unload(clip);
};
};
mc.adLoaded = options.ad_loaded;
mc.adSkipped = options.ad_skipped;
mc.adjustProgress = function (_arg1:Number):void{
var _local2:Object = mc._mochiad_wait;
_local2.server_control = true;
_local2.showing = true;
_local2.started = getTimer();
_local2.ad_msec = _arg1;
};
mc.rpc = function (_arg1:Number, _arg2:Object):void{
MochiAd.rpc(clip, _arg1, _arg2);
};
mc.rpcTestFn = function (_arg1:String):Object{
trace(("[MOCHIAD rpcTestFn] " + _arg1));
return (_arg1);
};
mc.regContLC = function (_arg1:String):void{
mc._containerLCName = _arg1;
};
sendHostProgress = false;
mc.sendHostLoadProgress = function (_arg1:String):void{
sendHostProgress = true;
};
chk["onEnterFrame"] = function ():void{
var _local11:Number;
if (((!(this.parent)) || (!(this.parent.parent)))){
delete this["onEnterFrame"];
return;
};
var _local1:Object = this.parent.parent.root;
var _local2:Object = this.parent._mochiad_ctr;
var _local3:Number = (getTimer() - this.started);
var _local4:Boolean;
var _local5:Number = _local1.loaderInfo.bytesTotal;
var _local6:Number = _local1.loaderInfo.bytesLoaded;
if (complete){
_local6 = Math.max(1, _local6);
_local5 = _local6;
};
var _local7:Number = ((100 * _local6) / _local5);
var _local8:Number = ((100 * _local3) / chk.ad_msec);
var _local9:Object = this._mochiad_bar._inside;
var _local10:Number = Math.min(100, Math.min(((_local7) || (0)), _local8));
_local10 = Math.max(this.last_pcnt, _local10);
this.last_pcnt = _local10;
_local9.scaleX = (_local10 * 0.01);
options.ad_progress(_local10);
if (sendHostProgress){
clip._mochiad.lc.send(clip._mochiad._containerLCName, "notify", {id:"hostLoadPcnt", pcnt:_local7});
if (_local7 == 100){
sendHostProgress = false;
};
};
if (!chk.showing){
_local11 = this.parent._mochiad_ctr.contentLoaderInfo.bytesTotal;
if (_local11 > 0){
chk.showing = true;
chk.started = getTimer();
MochiAd.adShowing(clip);
} else {
if ((((_local3 > chk.ad_timeout)) && ((_local7 == 100)))){
options.ad_failed();
_local4 = true;
};
};
};
if (_local3 > chk.ad_msec){
_local4 = true;
};
if (((complete) && (_local4))){
if (this.server_control){
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
};
};
};
doOnEnterFrame(chk);
}
public static function showPreloaderAd(_arg1:Object):void{
trace("[MochiAd] DEPRECATED: showPreloaderAd was renamed to showPreGameAd in 2.0");
MochiAd.showPreGameAd(_arg1);
}
public static function showTimedAd(_arg1:Object):void{
trace("[MochiAd] DEPRECATED: showTimedAd was renamed to showInterLevelAd in 2.0");
MochiAd.showInterLevelAd(_arg1);
}
public static function doOnEnterFrame(_arg1:MovieClip):void{
var mc = _arg1;
var f:Function = function (_arg1:Object):void{
if (((("onEnterFrame" in mc)) && (mc.onEnterFrame))){
mc.onEnterFrame();
} else {
_arg1.target.removeEventListener(_arg1.type, arguments.callee);
};
};
mc.addEventListener(Event.ENTER_FRAME, f);
}
}
}//package
Section 54
//MountainsTheme (MountainsTheme)
package {
import flash.media.*;
public dynamic class MountainsTheme extends Sound {
}
}//package
Section 55
//MouseClickSelection (MouseClickSelection)
package {
import flash.media.*;
public dynamic class MouseClickSelection extends Sound {
}
}//package
Section 56
//MouseOverSelections (MouseOverSelections)
package {
import flash.media.*;
public dynamic class MouseOverSelections extends Sound {
}
}//package
Section 57
//OOO000lll (OOO000lll)
package {
import flash.display.*;
import flash.events.*;
import Util.*;
import flash.net.*;
import flash.system.*;
public class OOO000lll extends MovieClip {
public var O1OlOO00O:XML;
private var _O10OOO1O0:Loader;
private var _O1l10l101:Object;
private var _OO0l101l1:Object;
public var OOO10O100:String;
public var O0l00l0O0:XML;
private var _OOl10010l:String;
private var _O001OO010:Object;
private var _O01OO1O00;
private var _O01O0lOl0:int;
private var _O1Ol011l1:String;
private var _O11OO0110:String;
private var _OOO00l00l:int;
private var _O0lO0100O:String;
private var _OOOOll01l:Array;
private var _O111O01OO:Object;
private var _OO10001Ol:Boolean;
private var _OO1l1OO10:String;
public var O1lll0ll0:XML;
private var _O1OO1OllO:Object;
private var _O0l0OO01O;
private var _OO0l1lOO1:int;
public var OOOll0OO0:int;
public function OOO000lll():void{
var _O1OlO10O0:*;
super();
Security.allowDomain("*");
_OO10001Ol = false;
_O01OO1O00 = this.parent;
_O01OO1O00.stop();
var _OOll00l11:int;
while (true) {
try {
_O1OlO10O0 = _O01OO1O00.getChildAt(_OOll00l11);
if ((_O1OlO10O0 is MovieClip)){
_O1OlO10O0.visible = false;
} else {
_O01OO1O00.removeChild(_O1OlO10O0);
};
_OOll00l11 = (_OOll00l11 + 1);
} catch(e:Error) {
break;
};
};
try {
_O01OO1O00["_O0000Ol01"] = _O0000Ol01;
_O01OO1O00["_O0Olll0lO"] = _O0Olll0lO;
} catch(e:Error) {
};
}
private function _O11lll1OO0(_arg1:String):void{
if (_O0l0OO01O){
_O0l0OO01O.OO0011ll1O(_arg1);
};
}
private function _OO0OO1OO0(_arg1:Event):void{
if ((((((_arg1.type == "ScoreLoadSubmitComplete")) || ((_arg1.type == "ScoreLoadListComplete")))) || ((_arg1.type == "ScoreLoadUserListComplete")))){
O0l00l0O0 = _O0l0OO01O.O011Oll0O();
} else {
if (_arg1.type == "ScoreLoadTimeComplete"){
O1lll0ll0 = _O0l0OO01O.OO011OOl1();
} else {
O0l00l0O0 = _O0l0OO01O.O0001O0Ol();
};
};
_O01OO1O00.dispatchEvent(_arg1);
}
private function _O10Ol0l10(_arg1:IOErrorEvent):void{
removeEventListener(Event.ENTER_FRAME, _O0OlOOO1O);
_O01OO1O00.dispatchEvent(new IOErrorEvent(IOErrorEvent.IO_ERROR));
}
private function _O01Ol1O1O():void{
if (_O0l0OO01O){
_O0l0OO01O.OO011OOl1();
};
}
private function _O110l10ll():void{
if (_O0l0OO01O){
_O0l0OO01O.O01l01OlO();
};
}
private function _O01O1101l():void{
stop();
_O10OOO1O0 = new Loader();
_O10OOO1O0.load(new URLRequest(_O1Ol011l1));
_O01OO1O00.addChildAt(_O10OOO1O0, 0);
this.addEventListener(Event.ENTER_FRAME, _O0OlOOO1O);
_O10OOO1O0.contentLoaderInfo.addEventListener(Event.COMPLETE, _O100O0Oll);
_O10OOO1O0.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, _O10Ol0l10);
}
private function _O0000Ol01(_arg1=null, _arg2:String="default", _arg3="", _arg4:int=0, _arg5:String="normal", _arg6:String="", _arg7:int=0, _arg8:int=0, _arg9:int=1, _arg10:Boolean=false):void{
OOO10O100 = _arg5;
OOOll0OO0 = _arg4;
_O11OO0110 = _arg2;
if (_arg3 == ""){
_OO1l1OO10 = _O11OO0110;
} else {
_OO1l1OO10 = _arg3;
};
if (((!((_arg1 == null))) && (!((_arg1.loaderInfo == null))))){
_O1l10l101 = _arg1.loaderInfo.parameters["username"];
_O001OO010 = _arg1.loaderInfo.parameters["hash"];
_OO0l101l1 = _arg1.loaderInfo.parameters["id"];
_O1OO1OllO = _arg1.loaderInfo.parameters["s"];
_O111O01OO = _arg1.loaderInfo.parameters["c"];
_O1Ol011l1 = "http://www8.agame.com/games/flash/highscore/SubmitterV2.swf";
if (_O00O00010(_arg10)){
_O01O1101l();
} else {
_O01OO1O00.dispatchEvent(new Event("LoadingFailed"));
};
};
_OOl10010l = _arg6;
_OO0l1lOO1 = _arg7;
_O01O0lOl0 = _arg8;
_OOO00l00l = _arg9;
}
private function _O0O1l0OO0():Boolean{
return (!((_O0l0OO01O == null)));
}
private function _O100O0Oll(_arg1:Event):void{
_O0l0OO01O = _arg1.currentTarget.content;
_O0l0OO01O.O0011ll110O0(_O1OO1OllO, 1, _OO0l101l1, _O111O01OO, OOOll0OO0, _OOl10010l, _OO0l1lOO1, _O01O0lOl0, _OOO00l00l, _O1l10l101, _O001OO010);
_O0l0OO01O.addEventListener("HyScorSubmitterLoaded", _OOl11lOOl);
_O0l0OO01O.addEventListener("ScoreLoadError", _OO0OO1OO0);
_O0l0OO01O.addEventListener("ScoreLoadTimeComplete", _OO0OO1OO0);
_O0l0OO01O.addEventListener("ScoreLoadSubmitComplete", _OO0OO1OO0);
_O0l0OO01O.addEventListener("ScoreLoadListComplete", _OO0OO1OO0);
_O0l0OO01O.addEventListener("ScoreLoadUserListComplete", _OO0OO1OO0);
_O0l0OO01O.addEventListener("AchievLoadError", _O0l0O1Oll);
_O0l0OO01O.addEventListener("AchievLoadTimeComplete", _O0l0O1Oll);
_O0l0OO01O.addEventListener("AchievLoadListComplete", _O0l0O1Oll);
_O0l0OO01O.addEventListener("AchievLoadInfoComplete", _O0l0O1Oll);
_O0l0OO01O.addEventListener("AchievLoadGrantComplete", _O0l0O1Oll);
_O01OO1O00["_O0Olll0lO"] = _O0Olll0lO;
_O01OO1O00["_O0O1l0OO0"] = _O0O1l0OO0;
_O01OO1O00["_O01Ol1O1O"] = _O01Ol1O1O;
_O01OO1O00["_O01lOO10O"] = _O01lOO10O;
_O01OO1O00["_O110l10ll"] = _O110l10ll;
_O01OO1O00["_O11lll1OO0"] = _O11lll1OO0;
_O01OO1O00["_O00OOl1Ol"] = _O00OOl1Ol;
_O01OO1O00["_O1OlO10OO"] = _O1OlO10OO;
_O01OO1O00["_OOlOOOll1"] = _OOlOOOll1;
_O01OO1O00["_O010ll111"] = _O010ll111;
}
private function _O00O00010(_arg1:Boolean=false):Boolean{
var _local4:String;
var _local5:O1OOO0O00;
var _local2:Boolean = _arg1;
if (!_local2){
_OOOOll01l = ["www8.agame.com"];
} else {
_OOOOll01l = ["localhost", "www8.agame.com", "www.zlonggames.com", "gamedev.dev.spilgames.com", "stg.pl.a10.com", "www.a10.com.gp.dev.spilgames.eu"];
};
var _local3:LocalConnection = new LocalConnection();
if (((isNaN((_OO0l101l1 as int))) || (isNaN((_O1OO1OllO as int))))){
return (false);
};
for each (_local4 in _OOOOll01l) {
if (_local3.domain == _local4){
_local5 = new O1OOO0O00();
if (_local5.O0111l110()){
_OO10001Ol = true;
return (true);
};
};
};
return (false);
}
private function _O00OOl1Ol(_arg1:String):void{
if (_O0l0OO01O){
_O0l0OO01O.OO00lO1l0(_arg1, _O1l10l101, _O001OO010);
};
}
private function _O0OlOOO1O(_arg1:Event):void{
var _local2 = (((_O10OOO1O0.contentLoaderInfo.bytesLoaded / _O10OOO1O0.contentLoaderInfo.bytesTotal) * 100) >> 0);
if (_local2 >= 100){
removeEventListener(Event.ENTER_FRAME, _O0OlOOO1O);
};
}
private function _OOl11lOOl(_arg1:Event):void{
if (_O0l0OO01O){
_O0l0OO01O.removeEventListener("HyScorSubmitterLoaded", _OOl11lOOl);
};
_O01OO1O00.dispatchEvent(new Event(Event.COMPLETE));
}
private function _O01lOO10O(_arg1:int):void{
if (_O0l0OO01O){
_O0l0OO01O.O0l01llOl(_arg1, _O1l10l101, _O001OO010);
};
}
private function _O0Olll0lO():Boolean{
return (_O00O00010(false));
}
private function _O1OlO10OO():void{
if (_O0l0OO01O){
_O0l0OO01O.O1l0OOl1l(_O1l10l101, _O001OO010);
};
}
private function _O10O00lO0():String{
if (_O0l0OO01O){
return (_O0l0OO01O.OOOO00ll0());
};
return (("FAILED " + _O0l0OO01O));
}
private function _O0l0O1Oll(_arg1:Event):void{
if ((((((_arg1.type == "AchievLoadListComplete")) || ((_arg1.type == "AchievLoadInfoComplete")))) || ((_arg1.type == "AchievLoadGrantComplete")))){
O1OlOO00O = _O0l0OO01O.O11OO0l0l();
} else {
O1OlOO00O = _O0l0OO01O.O0O100l0l();
};
_O01OO1O00.dispatchEvent(_arg1);
}
private function _O010ll111():void{
_O0l0OO01O.removeEventListener("ScoreLoadError", _OO0OO1OO0);
_O0l0OO01O.removeEventListener("ScoreLoadTimeComplete", _OO0OO1OO0);
_O0l0OO01O.removeEventListener("ScoreLoadSubmitComplete", _OO0OO1OO0);
_O0l0OO01O.removeEventListener("ScoreLoadListComplete", _OO0OO1OO0);
_O0l0OO01O.removeEventListener("ScoreLoadUserListComplete", _OO0OO1OO0);
_O0l0OO01O.removeEventListener("AchievLoadError", _O0l0O1Oll);
_O0l0OO01O.removeEventListener("AchievLoadTimeComplete", _O0l0O1Oll);
_O0l0OO01O.removeEventListener("AchievLoadListComplete", _O0l0O1Oll);
_O0l0OO01O.removeEventListener("AchievLoadInfoComplete", _O0l0O1Oll);
_O0l0OO01O.removeEventListener("AchievLoadGrantComplete", _O0l0O1Oll);
_O01OO1O00 = null;
_OOOOll01l = null;
_O0l0OO01O = null;
_O1l10l101 = null;
_O001OO010 = null;
_O10OOO1O0 = null;
O1lll0ll0 = null;
O0l00l0O0 = null;
O1OlOO00O = null;
}
private function _OOlOOOll1(_arg1:int):void{
if (_O0l0OO01O){
_O0l0OO01O.O1OlOO111(_arg1);
};
}
}
}//package
Section 58
//PrecipiceTheme (PrecipiceTheme)
package {
import flash.media.*;
public dynamic class PrecipiceTheme extends Sound {
}
}//package
Section 59
//Punch (Punch)
package {
import flash.media.*;
public dynamic class Punch extends Sound {
}
}//package
Section 60
//Submitter (Submitter)
package {
import flash.display.*;
public dynamic class Submitter extends MovieClip {
public var OO00OO1l1l:OOO000lll;
}
}//package
Section 61
//Thnx_001 (Thnx_001)
package {
import flash.media.*;
public dynamic class Thnx_001 extends Sound {
}
}//package
Section 62
//Thnx_002 (Thnx_002)
package {
import flash.media.*;
public dynamic class Thnx_002 extends Sound {
}
}//package
Section 63
//V_About (V_About)
package {
import flash.display.*;
import flash.events.*;
import flash.text.*;
import flash.filters.*;
public class V_About extends MovieClip implements VI_Windows {
private var curr_table:Array;
private var glow:GlowFilter;
private var curr_langId:uint;// = 0
public var z_btn:V_Menu_Btn;
public var info_txt:TextField;
public function V_About(){
glow = new GlowFilter(2232843, 2, 2, 5, 5, BitmapFilterQuality.HIGH, false, false);
z_btn.filters = [glow];
z_btn.setColors(0xFFFFFF, 0x888888);
z_btn.setText("Menu");
z_btn.addEventListener(MouseEvent.MOUSE_DOWN, onMouseLister);
}
public function hide():void{
}
private function onMouseLister(_arg1:MouseEvent):void{
dispatchEvent(new Event("GOTO_MENU"));
}
public function renderFunc(_arg1:Number):void{
}
public function translate(_arg1:Array, _arg2:uint):void{
z_btn.setText(_arg1[10][_arg2]);
info_txt.autoSize = TextFieldAutoSize.LEFT;
info_txt.text = "";
curr_langId = _arg2;
curr_table = _arg1;
var _local3 = "";
var _local4:uint;
while (_local4 <= 5) {
_local3 = (_local3 + (_arg1[(40 + _local4)][_arg2] + "\n\n"));
_local4++;
};
info_txt.text = _local3;
}
public function show():void{
}
}
}//package
Section 64
//V_Achivments_wnd (V_Achivments_wnd)
package {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.filters.*;
public class V_Achivments_wnd extends MovieClip implements VI_Windows {
public var z4_mc:MovieClip;
public var z10_mc:MovieClip;
private var currLangId:uint;
private var currTable:Array;
private var glow:GlowFilter;
private var hash:Dictionary;
public var z9_mc:MovieClip;
public var z_btn:V_Menu_Btn;
public var z7_mc:MovieClip;
public var z5_mc:MovieClip;
public var z3_mc:MovieClip;
public var z1_mc:MovieClip;
private var mas_achivments:Array;
public var z8_mc:MovieClip;
public var z6_mc:MovieClip;
public var z_mc:MovieClip;
public var z2_mc:MovieClip;
public function V_Achivments_wnd(){
var _local2:MovieClip;
super();
glow = new GlowFilter(2232843, 2, 2, 5, 5, BitmapFilterQuality.HIGH, false, false);
z_btn.filters = [glow];
z_btn.setColors(0xFFFFFF, 0x888888);
z_btn.setText("Menu");
z_btn.addEventListener(MouseEvent.MOUSE_DOWN, onMouseLister);
z_mc.visible = false;
z_mc.mouseEnabled = false;
z_mc.info_txt.mouseEnabled = false;
mas_achivments = new Array(z1_mc, z2_mc, z3_mc, z4_mc, z5_mc, z6_mc, z7_mc, z8_mc, z9_mc, z10_mc);
setVisibleElements([0, 0, 0, 0, 0, 0, 0, 0, 0, 0]);
hash = new Dictionary();
var _local1:uint;
while (_local1 < mas_achivments.length) {
_local2 = mas_achivments[_local1];
hash[_local2] = _local1;
_local2.addEventListener(MouseEvent.ROLL_OVER, onItemLister);
_local2.addEventListener(MouseEvent.ROLL_OUT, onItemLister);
_local1++;
};
}
public function renderFunc(_arg1:Number):void{
}
private function showDescription(_arg1:int):void{
z_mc.info_txt.text = currTable[(47 + _arg1)][currLangId];
z_mc.visible = true;
}
public function hide():void{
}
private function onItemLister(_arg1:MouseEvent):void{
switch (_arg1.type){
case MouseEvent.ROLL_OVER:
showDescription(hash[_arg1.currentTarget]);
break;
case MouseEvent.ROLL_OUT:
z_mc.visible = false;
break;
};
}
public function translate(_arg1:Array, _arg2:uint):void{
z_btn.setText(_arg1[36][_arg2]);
currTable = _arg1;
currLangId = _arg2;
}
public function show():void{
}
public function serialize():String{
var _local3:int;
var _local1 = "";
var _local2:int;
while (_local2 < 10) {
_local3 = 0;
if (mas_achivments[_local2].visible){
_local3 = 1;
};
_local1 = (_local1 + (_local3.toString() + "@"));
_local2++;
};
return (_local1);
}
public function setVisibleElements(_arg1:Array):void{
var _local2:int;
while (_local2 < 10) {
if (_arg1[_local2]){
mas_achivments[_local2].visible = true;
} else {
mas_achivments[_local2].visible = false;
};
_local2++;
};
}
private function onMouseLister(_arg1:MouseEvent):void{
this.parent.removeChild(this);
this.visible = false;
}
}
}//package
Section 65
//V_Armatura1 (V_Armatura1)
package {
import flash.display.*;
public dynamic class V_Armatura1 extends MovieClip {
}
}//package
Section 66
//V_Armatura2 (V_Armatura2)
package {
import flash.display.*;
public dynamic class V_Armatura2 extends MovieClip {
}
}//package
Section 67
//V_Armatura3 (V_Armatura3)
package {
import flash.display.*;
public dynamic class V_Armatura3 extends MovieClip {
}
}//package
Section 68
//V_Armatura4 (V_Armatura4)
package {
import flash.display.*;
public dynamic class V_Armatura4 extends MovieClip {
}
}//package
Section 69
//V_Armatura5 (V_Armatura5)
package {
import flash.display.*;
public dynamic class V_Armatura5 extends MovieClip {
}
}//package
Section 70
//V_Balon (V_Balon)
package {
import flash.display.*;
public dynamic class V_Balon extends MovieClip {
}
}//package
Section 71
//V_Bbox (V_Bbox)
package {
import flash.display.*;
public dynamic class V_Bbox extends MovieClip {
}
}//package
Section 72
//V_BonusFon (V_BonusFon)
package {
import flash.display.*;
public dynamic class V_BonusFon extends MovieClip {
}
}//package
Section 73
//V_Cloud1 (V_Cloud1)
package {
import flash.display.*;
public dynamic class V_Cloud1 extends MovieClip {
}
}//package
Section 74
//V_Cloud2 (V_Cloud2)
package {
import flash.display.*;
public dynamic class V_Cloud2 extends MovieClip {
}
}//package
Section 75
//V_Cloud3 (V_Cloud3)
package {
import flash.display.*;
public dynamic class V_Cloud3 extends MovieClip {
}
}//package
Section 76
//V_Combo (V_Combo)
package {
import flash.display.*;
public dynamic class V_Combo extends MovieClip {
}
}//package
Section 77
//V_Counter (V_Counter)
package {
import flash.display.*;
import flash.utils.*;
import flash.filters.*;
public class V_Counter extends MovieClip {
private var show_back_flag:Boolean;// = false
private var speed:Number;// = 60
private var last_time:Number;// = 0
private var mas_hide:Array;
private var blur:BlurFilter;
private var back:Sprite;
private var mas1:Array;
private var mas_show:Array;
private var mas2:Array;
public var z_mc:V_Font;
public function V_Counter(){
mas1 = new Array();
mas2 = new Array();
mas_show = new Array();
mas_hide = new Array();
blur = new BlurFilter(8, 8, 8);
super();
z_mc.visible = false;
back = new Sprite();
addChild(back);
}
public function setSpeed(_arg1:Number):void{
speed = _arg1;
}
public function showBack():void{
show_back_flag = true;
}
public function init(_arg1:int):void{
var _local3:V_Font;
var _local4:V_Font;
var _local2:uint;
while (_local2 < _arg1) {
_local3 = new V_Font();
_local4 = new V_Font();
addChild(_local3);
addChild(_local4);
mas1.push(_local3);
_local4.x = (_local3.x = (_local2 * 17));
_local3.y = -17;
_local3.visible = false;
_local4.y = 0;
mas2.push(_local4);
_local2++;
};
last_time = getTimer();
back.graphics.clear();
back.graphics.beginFill(0xFF0000, 1);
back.graphics.drawRect(0, 0, (this.width + 10), 27);
back.graphics.endFill();
back.x = -13;
back.y = -13;
back.filters = [blur];
back.alpha = 0;
}
public function calc(_arg1:Number):void{
var _local2:V_Font;
_arg1 = ((getTimer() - last_time) / 1000);
last_time = getTimer();
var _local3:int;
while (_local3 < mas_show.length) {
_local2 = mas_show[_local3];
_local2.y = (_local2.y + (_arg1 * speed));
if (_local2.y > 0){
_local2.y = 0;
_local2.alpha = 1;
};
_local2.alpha = ((17 + _local2.y) / 17);
_local3++;
};
_local3 = 0;
while (_local3 < mas_hide.length) {
_local2 = mas_hide[_local3];
_local2.y = (_local2.y + (_arg1 * speed));
if (_local2.y > 17){
_local2.y = -17;
_local2.alpha = 0;
_local2.visible = false;
} else {
_local2.alpha = ((17 - _local2.y) / 17);
};
_local3++;
};
if (show_back_flag){
back.alpha = (back.alpha + (_arg1 * 2));
if (back.alpha > 1){
back.alpha = 1;
show_back_flag = false;
};
} else {
if (back.alpha != 0){
back.alpha = (back.alpha - _arg1);
};
if (back.alpha < 0){
back.alpha = 0;
};
};
}
public function refresh():void{
var _local2:V_Font;
var _local3:V_Font;
last_time = getTimer();
var _local1:uint;
while (_local1 < mas1.length) {
_local2 = mas1[_local1];
_local3 = mas2[_local1];
_local2.y = -17;
_local2.visible = false;
_local3.y = 0;
_local3.visible = true;
_local2.gotoAndStop(1);
_local3.gotoAndStop(1);
_local1++;
};
}
public function setValue(_arg1:String):void{
var _local2:V_Font;
var _local6:int;
var _local7:V_Font;
var _local8:V_Font;
while (mas_show.length) {
_local2 = mas_show.shift();
_local2.y = 0;
_local2.visible = true;
_local2.alpha = 1;
};
while (mas_hide.length) {
_local2 = mas_hide.shift();
_local2.y = -17;
_local2.visible = false;
_local2.alpha = 0;
};
var _local3:String = _arg1;
var _local4:uint = (mas1.length - 1);
trace(" ");
trace("points ", _local3);
var _local5:uint;
while (_local5 < mas1.length) {
_local6 = 1;
if (_local5 < _local3.length){
_local6 = (1 + int(_local3.charAt(((_local3.length - _local5) - 1))));
};
_local7 = mas1[_local4];
_local8 = mas2[_local4];
if (_local7.y >= 0){
if (_local7.currentFrame != _local6){
_local8.gotoAndStop(_local6);
_local8.visible = true;
_local8.alpha = 0;
_local8.alpha = -17;
mas_show.push(_local8);
mas_hide.push(_local7);
};
} else {
if (_local8.currentFrame != _local6){
_local7.gotoAndStop(_local6);
_local7.visible = true;
_local7.alpha = 0;
_local7.alpha = -17;
mas_show.push(_local7);
mas_hide.push(_local8);
};
};
_local4--;
_local5++;
};
}
}
}//package
Section 78
//V_Crasheffect_Wnd (V_Crasheffect_Wnd)
package {
import flash.display.*;
import flash.events.*;
public class V_Crasheffect_Wnd extends MovieClip implements VI_Windows {
public var z_mc:MovieClip;
public function V_Crasheffect_Wnd(){
z_mc.addEventListener("CLOSE", lister);
z_mc.addEventListener("ON_PAUSE", lister);
z_mc.addEventListener("OFF_PAUSE", lister);
z_mc.stop();
}
private function lister(_arg1:Event):void{
dispatchEvent(_arg1.clone());
}
public function hide():void{
}
public function renderFunc(_arg1:Number):void{
}
public function show():void{
z_mc.gotoAndPlay(1);
}
}
}//package
Section 79
//V_Dver (V_Dver)
package {
import flash.display.*;
public dynamic class V_Dver extends MovieClip {
}
}//package
Section 80
//V_Dver2 (V_Dver2)
package {
import flash.display.*;
public dynamic class V_Dver2 extends MovieClip {
}
}//package
Section 81
//V_FightBtn (V_FightBtn)
package {
import flash.display.*;
public dynamic class V_FightBtn extends SimpleButton {
}
}//package
Section 82
//V_Flag1 (V_Flag1)
package {
import flash.display.*;
public dynamic class V_Flag1 extends MovieClip {
}
}//package
Section 83
//V_Flag2 (V_Flag2)
package {
import flash.display.*;
public dynamic class V_Flag2 extends MovieClip {
}
}//package
Section 84
//V_Fon2 (V_Fon2)
package {
import flash.display.*;
public dynamic class V_Fon2 extends BitmapData {
public function V_Fon2(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 85
//V_Fon3 (V_Fon3)
package {
import flash.display.*;
public dynamic class V_Fon3 extends MovieClip {
public function V_Fon3(){
addFrameScript(249, frame250);
}
function frame250(){
stop();
}
}
}//package
Section 86
//V_Font (V_Font)
package {
import flash.display.*;
public dynamic class V_Font extends MovieClip {
public function V_Font(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 87
//V_Forest (V_Forest)
package {
import flash.display.*;
public dynamic class V_Forest extends MovieClip {
public function V_Forest(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 88
//V_Game (V_Game)
package {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.utils.*;
public class V_Game extends Sprite implements VI_Game {
private var curr_them:int;// = -1
private var curr_mini_game:VI_Game;
private var dist_x:Number;// = 0
private var dist_y:Number;// = 0
private var statistics:Object;
private var curr_game_time:Number;// = 0
private var m_game1:V_MiniGame1;
private var mas_objs:Array;
private var curr_render:V_Render;
private var jump_men:V_Object;
private var speed:Number;// = 0.15
private var moveAng:Number;// = 0
private var stage_width:Number;// = 0
private var count_bonuse:uint;// = 0
private var backg:MovieClip;
private var general_game_time:Number;// = 0
private var last_pos_x:Number;// = 0
private var last_pos_y:Number;// = 0
private var flag_pause:Boolean;// = false
private var prc_combo:Number;// = 65
private var t:Number;// = 0
private var keyLists:Array;
private var curr_mission:uint;// = 0
private var lastTime:Number;// = 0
private var dh:Number;// = 200
private var flag_mini_games:Boolean;// = false
private var stage_height:Number;// = 0
private var dw:Number;// = 200
private var ref_interface:MovieClip;
private var flag_down:Boolean;// = false
private var rain:MovieClip;
private var time_combo:Number;// = 0
private var curr_step_time:Number;// = 0
private var last_dist:Number;// = 1000
private var mouse_pos:Point;
private var mas_clouds:Array;
private var init_game:Boolean;// = false
private var p2:V_Point;
private var p3:V_Point;
private var speed_step:Number;// = 0.07
private var p4:V_Point;
private var min_z:Number;// = 0.2
private var p1:V_Point;
private var bonus_nums:Array;
private var last_time:Number;
private var spline:V_Spline;
private var spl_t:Number;// = 1
private var flag_game:Boolean;// = false
private var cam_pos:Point;
private var prc_pass:Number;// = 70
private var prc_mg:Number;// = 90
public function V_Game(){
mas_objs = new Array();
mas_clouds = new Array();
mouse_pos = new Point();
p1 = new V_Point();
p2 = new V_Point();
p3 = new V_Point();
p4 = new V_Point();
bonus_nums = new Array(52, 54, 56, 58, 60);
statistics = new Object();
keyLists = new Array();
super();
trace("VGame");
curr_render = new V_Render();
addChild(curr_render);
curr_render.initRender(550, 400, (550 / 2), (400 / 2), 0.2, 1);
trace("/VGame");
spline = new V_Spline(new Point(275, 200), new Point(275, 200), new Point(475, 100), new Point(175, 300));
statistics.points = 0;
statistics.parashut = 0;
statistics.passenger = 0;
statistics.mishka = 0;
statistics.collisions = 0;
statistics.curr_mission = 0;
statistics.complete = false;
statistics.bad_passanger_level = 0;
statistics.bad_mishka_level = 0;
statistics.collision_all_game = 0;
statistics.bad_passanger_all_game = 0;
statistics.bad_mishka_all_game = 0;
statistics.bad_minigames = 0;
statistics.bad_muha = 0;
statistics.missed_muha_minigame = 0;
statistics.missed_minigames = 0;
rain = new V_Rain();
rain.x = 270;
rain.y = 200;
rain.stop();
}
private function createSpiralPosObjs():void{
var _local13:uint;
var _local14:Number;
var _local15:Number;
var _local16:V_Object;
var _local1:uint = (30 + (Math.random() * 20));
var _local2:int = Math.round((Math.random() * 4));
var _local3:Number = 0;
switch (_local2){
case 0:
_local3 = 180;
break;
case 1:
_local3 = 120;
break;
case 2:
_local3 = 140;
break;
case 3:
_local3 = 200;
break;
case 4:
_local3 = 240;
break;
};
var _local4:Number = (5 + (Math.random() * 5));
var _local5:int = Math.round((Math.random() * 6));
var _local6:* = 0;
var _local7:uint;
switch (_local5){
case 0:
_local6 = 15;
_local7 = 1;
break;
case 1:
_local6 = 180;
_local7 = 2;
break;
case 2:
_local6 = 15;
_local7 = 1;
break;
case 3:
_local6 = 120;
_local7 = 3;
break;
default:
_local6 = 60;
_local7 = 6;
_local4 = 0;
break;
};
var _local8:Number = 0;
var _local9:Number = (Math.random() * 360);
var _local10:Number = ((stage_width / 2) - (Math.random() * stage_width));
var _local11:Number = ((stage_height / 2) - (Math.random() * stage_height));
var _local12:int;
while (_local12 < _local1) {
_local8 = (_local8 + (_local6 + _local4));
_local13 = getBonusNumObj();
_local14 = Math.random();
if (curr_mission <= 2){
if (_local14 >= 0.98){
_local13 = getNumObj();
};
} else {
if ((((curr_mission > 2)) && ((curr_mission <= 6)))){
if (_local14 >= 0.96){
_local13 = getNumObj();
};
} else {
if (_local14 >= 0.94){
_local13 = getNumObj();
};
};
};
_local15 = (min_z - (Math.floor((_local12 / _local7)) * 0.08));
_local16 = V_Utility.getPoolObject();
_local16.Update(_local13);
_local16._draw();
_local16.obj_oldx = ((_local3 * Math.cos(((_local9 + _local8) * V_Utility.IN_RAD))) + _local10);
_local16.obj_oldy = ((_local3 * Math.sin(((_local9 + _local8) * V_Utility.IN_RAD))) + _local11);
_local16.obj_z = _local15;
_local16.alpha = 0;
mas_objs.push(_local16);
curr_render.addChildObject(_local16);
_local12++;
};
}
private function createMiniGame(_arg1:int):void{
if (!m_game1){
m_game1 = new V_MiniGame1(curr_render);
m_game1.addEventListener("END_GAME", onMiniGameLister);
};
rain.visible = false;
curr_mini_game = m_game1;
flag_mini_games = true;
var _local2:Object = new Object();
_local2.stage_w = stage_width;
_local2.stage_h = stage_height;
_local2.z = jump_men.obj_z;
_local2.type = 1;
_local2.ref_interface = ref_interface;
curr_mini_game.init(_local2);
}
public function mouseMove(_arg1:Number, _arg2:Number):void{
if (flag_down){
};
if (!flag_pause){
mouse_pos.x = _arg1;
mouse_pos.y = _arg2;
p2.x = (_arg1 - (stage_width / 2));
p2.y = (_arg2 - (stage_height / 2));
p2.x = (p2.x / jump_men.obj_z);
p2.y = (p2.y / jump_men.obj_z);
p1.x = jump_men.obj_x;
p1.y = jump_men.obj_y;
dist_x = (p2.x - p1.x);
dist_y = (p2.y - p1.y);
if (((((!(jump_men.flag_collision)) && (flag_game))) && (init_game))){
if (dist_x > 0){
if ((((jump_men.getId() == 0)) && ((dist_x < 50)))){
} else {
if (jump_men.getId() != 101){
jump_men.Update(101);
jump_men.setPointLoop(5, 18);
};
};
} else {
if ((((jump_men.getId() == 0)) && ((dist_x > -50)))){
} else {
if (jump_men.getId() != 100){
jump_men.Update(100);
jump_men.setPointLoop(5, 18);
};
};
};
t = 0;
};
};
if (flag_mini_games){
curr_mini_game.mouseMove(_arg1, _arg2);
};
}
public function init(_arg1:Object):void{
destructor();
stage_width = _arg1.stage_w;
stage_height = _arg1.stage_h;
if (!jump_men){
jump_men = V_Utility.getPoolObject();
};
curr_render.addChildObject(jump_men);
curr_mission = _arg1.mission;
trace(curr_mission);
switch (curr_mission){
case 1:
backg = new V_Gori();
curr_them = 20;
break;
case 2:
backg = new V_Gorod();
curr_them = 23;
break;
case 3:
backg = new V_Propast();
curr_them = 21;
break;
case 4:
backg = new V_Forest();
curr_them = 22;
break;
case 5:
backg = new V_Gorod();
curr_them = 23;
break;
case 6:
backg = new V_Gori();
curr_them = 20;
break;
case 7:
backg = new V_Propast();
curr_them = 21;
break;
};
if (curr_mission == 7){
if (!rain.parent){
addChild(rain);
};
rain.play();
} else {
if (rain.parent){
removeChild(rain);
};
rain.stop();
};
rain.name = String(int((Math.random() * 20)));
backg.gotoAndStop(1);
curr_render.removeBackgaround();
curr_render.addBackgaround(backg);
trace("!!!!");
jump_men.Update(0);
jump_men._draw();
jump_men.obj_z = min_z;
jump_men.obj_x = 0;
jump_men.obj_y = 0;
jump_men.obj_sx = 1.1;
jump_men.obj_sy = 1.1;
jump_men.flag_collision = false;
last_time = getTimer();
init_game = false;
flag_down = false;
mouse_pos.x = (p2.x = (stage_width / 2));
mouse_pos.y = (p2.y = (stage_height / 2));
backg.x = p2.x;
backg.y = p2.y;
backg.scaleX = (backg.scaleY = 1);
last_dist = 1000;
firstClouds();
t = 1;
curr_game_time = 0;
general_game_time = 60;
curr_step_time = (general_game_time / 5);
flag_game = true;
speed = 0.15;
count_bonuse = 0;
time_combo = 0;
ref_interface = _arg1.ref_int;
lastTime = getTimer();
statistics.points = 0;
statistics.parashut = 0;
statistics.passenger = 0;
statistics.mishka = 0;
statistics.collisions = 0;
statistics.curr_mission = curr_mission;
statistics.complete = false;
statistics.bad_passanger_level = 0;
statistics.bad_mishka_level = 0;
ref_interface.refresh();
ref_interface.setStatistics(statistics);
setPause(false);
V_Utility.playSound(18, int.MAX_VALUE);
V_Utility.playSound(curr_them, int.MAX_VALUE);
}
public function checkKeys():void{
var _local1:Boolean;
if (!jump_men.flag_collision){
if (keyLists[37]){
mouse_pos.x = (mouse_pos.x - 5);
_local1 = true;
if (mouse_pos.x < 0){
mouse_pos.x = 0;
};
};
if (keyLists[39]){
mouse_pos.x = (mouse_pos.x + 5);
_local1 = true;
if (mouse_pos.x > stage_width){
mouse_pos.x = stage_width;
};
};
if (keyLists[38]){
mouse_pos.y = (mouse_pos.y - 5);
_local1 = true;
if (mouse_pos.y < 0){
mouse_pos.y = 0;
};
};
if (keyLists[40]){
mouse_pos.y = (mouse_pos.y + 5);
_local1 = true;
if (mouse_pos.y > stage_height){
mouse_pos.y = stage_height;
};
};
if (_local1){
p2.x = (mouse_pos.x - (stage_width / 2));
p2.y = (mouse_pos.y - (stage_height / 2));
p2.x = (p2.x / jump_men.obj_z);
p2.y = (p2.y / jump_men.obj_z);
p1.x = jump_men.obj_x;
p1.y = jump_men.obj_y;
dist_x = (p2.x - p1.x);
dist_y = (p2.y - p1.y);
t = 0;
};
};
}
public function mouseUp(_arg1:Number, _arg2:Number):void{
flag_down = false;
}
private function createFreePosObjs():void{
var _local8:uint;
var _local9:V_Object;
var _local1:Number = 0;
if (curr_mission <= 2){
_local1 = 350;
} else {
if ((((curr_mission > 2)) && ((curr_mission <= 6)))){
_local1 = 250;
} else {
_local1 = 150;
};
};
var _local2:Number = ((stage_width / 2) + (dw / 2));
var _local3:Number = ((stage_height / 2) + (dh / 2));
var _local4:Number = -(_local2);
var _local5:Number = -(_local3);
var _local6:Number = 0;
var _local7:Number = min_z;
while ((((_local4 < _local2)) || ((_local5 < _local3)))) {
_local8 = getNumObj();
_local9 = V_Utility.getPoolObject();
V_Utility.getPoolObject().obj_oldx = (_local9.obj_x = _local4);
_local9.obj_oldy = (_local9.obj_y = _local5);
_local9.Update(_local8);
_local9._draw();
_local9.obj_z = _local7;
_local9.alpha = 0;
mas_objs.push(_local9);
curr_render.addChildObject(_local9);
_local4 = (_local4 + _local1);
_local6 = (_local6 + 1);
_local7 = (_local7 - 0.05);
if (_local4 > _local2){
if (_local5 < _local3){
_local4 = -(_local2);
_local5 = (_local5 + _local1);
};
};
};
trace(("objs " + _local6));
}
private function createCirclePosObjs():void{
}
public function _onKeyDown(_arg1:int):void{
keyLists[_arg1] = true;
if (flag_mini_games){
curr_mini_game._onKeyDown(_arg1);
};
}
private function renderFon():void{
var _local1:uint = Math.round(((curr_game_time / general_game_time) * backg.totalFrames));
var _local2:uint = (Math.floor((curr_game_time / curr_step_time)) + 1);
speed = (0.15 + (_local2 * speed_step));
switch (curr_mission){
case 1:
case 6:
if (_local2 == 1){
backg.scaleX = (backg.scaleY = (1 + (((curr_game_time / curr_step_time) - (_local2 - 1)) * 0.355)));
} else {
if (_local2 == 2){
backg.scaleX = (backg.scaleY = (1 + (((curr_game_time / curr_step_time) - (_local2 - 1)) * 0.343)));
} else {
if (_local2 == 3){
backg.scaleX = (backg.scaleY = (1 + (((curr_game_time / curr_step_time) - (_local2 - 1)) * 0.175)));
} else {
if (_local2 == 4){
backg.scaleX = (backg.scaleY = (1 + (((curr_game_time / curr_step_time) - (_local2 - 1)) * 0.75)));
} else {
backg.scaleX = (backg.scaleY = (1 + (((curr_game_time / curr_step_time) - (_local2 - 1)) * 0.3)));
};
};
};
};
break;
case 2:
case 5:
if (_local2 == 1){
backg.scaleX = (backg.scaleY = (1 + (((curr_game_time / curr_step_time) - (_local2 - 1)) * 0.355)));
} else {
if (_local2 == 2){
backg.scaleX = (backg.scaleY = (1 + (((curr_game_time / curr_step_time) - (_local2 - 1)) * 0.33095)));
} else {
if (_local2 == 3){
backg.scaleX = (backg.scaleY = (1 + (((curr_game_time / curr_step_time) - (_local2 - 1)) * 0.18)));
} else {
if (_local2 == 4){
backg.scaleX = (backg.scaleY = (1 + (((curr_game_time / curr_step_time) - (_local2 - 1)) * 0.72)));
} else {
backg.scaleX = (backg.scaleY = (1 + (((curr_game_time / curr_step_time) - (_local2 - 1)) * 0.3)));
};
};
};
};
break;
case 3:
case 7:
if (_local2 == 1){
backg.scaleX = (backg.scaleY = (1 + (((curr_game_time / curr_step_time) - (_local2 - 1)) * 0.38)));
} else {
if (_local2 == 2){
backg.scaleX = (backg.scaleY = (1 + (((curr_game_time / curr_step_time) - (_local2 - 1)) * 0.335)));
} else {
if (_local2 == 3){
backg.scaleX = (backg.scaleY = (1 + (((curr_game_time / curr_step_time) - (_local2 - 1)) * 0.18)));
} else {
if (_local2 == 4){
backg.scaleX = (backg.scaleY = (1 + (((curr_game_time / curr_step_time) - (_local2 - 1)) * 0.68)));
} else {
backg.scaleX = (backg.scaleY = (1 + (((curr_game_time / curr_step_time) - (_local2 - 1)) * 0.3)));
};
};
};
};
break;
case 4:
if (_local2 == 1){
backg.scaleX = (backg.scaleY = (1 + (((curr_game_time / curr_step_time) - (_local2 - 1)) * 0.345)));
} else {
if (_local2 == 2){
backg.scaleX = (backg.scaleY = (1 + (((curr_game_time / curr_step_time) - (_local2 - 1)) * 0.35)));
} else {
if (_local2 == 3){
backg.scaleX = (backg.scaleY = (1 + (((curr_game_time / curr_step_time) - (_local2 - 1)) * 0.18)));
} else {
if (_local2 == 4){
backg.scaleX = (backg.scaleY = (1 + (((curr_game_time / curr_step_time) - (_local2 - 1)) * 0.75)));
} else {
backg.scaleX = (backg.scaleY = (1 + (((curr_game_time / curr_step_time) - (_local2 - 1)) * 0.3)));
};
};
};
};
break;
};
if (backg.currentFrame != _local2){
trace(_local2);
backg.gotoAndStop(_local2);
};
}
private function showObjects():void{
var _local1:V_Object;
var _local2:int;
while (_local2 < mas_objs.length) {
_local1 = mas_objs[_local2];
curr_render.addChildObject(_local1);
_local2++;
};
_local2 = 0;
while (_local2 < mas_clouds.length) {
_local1 = mas_clouds[_local2];
curr_render.addChildObject(_local1);
_local2++;
};
curr_render.addChildObject(jump_men);
}
public function getPause():Boolean{
var _local1:Boolean;
if (flag_mini_games){
_local1 = curr_mini_game.getPause();
} else {
_local1 = flag_pause;
};
return (_local1);
}
private function getBonusNumObj():uint{
var _local3:uint;
count_bonuse = (count_bonuse + 1);
var _local1:uint;
var _local2:Number = Math.random();
if (_local2 >= 0.87){
_local1 = 50;
} else {
_local3 = Math.round((Math.random() * (bonus_nums.length - 1)));
_local1 = bonus_nums[_local3];
};
if ((count_bonuse % prc_pass) == 0){
_local1 = Math.round((62 + Math.random()));
};
if ((count_bonuse % prc_mg) == 0){
_local1 = (70 + Math.round((Math.random() * 2)));
};
if ((count_bonuse % prc_combo) == 0){
_local1 = 67;
};
return (_local1);
}
private function hideObjects():void{
var _local1:V_Object;
var _local2:int;
while (_local2 < mas_objs.length) {
_local1 = mas_objs[_local2];
curr_render.deleteRenderObject(_local1);
_local2++;
};
_local2 = 0;
while (_local2 < mas_clouds.length) {
_local1 = mas_clouds[_local2];
curr_render.deleteRenderObject(_local1);
_local2++;
};
curr_render.deleteRenderObject(jump_men);
}
private function createObjects():void{
if (curr_game_time >= general_game_time){
return;
};
if (mas_objs.length > 0){
if (mas_objs[(mas_objs.length - 1)].obj_z < (min_z + 0.4)){
return;
};
};
var _local1:Boolean;
var _local2:Number = Math.random();
if (curr_mission <= 2){
if (_local2 >= 0.95){
_local1 = false;
};
} else {
if ((((curr_mission > 2)) && ((curr_mission <= 6)))){
if (_local2 >= 0.9){
_local1 = false;
};
} else {
if (_local2 >= 0.85){
_local1 = false;
};
};
};
if (!_local1){
createFreePosObjs();
} else {
createSpiralPosObjs();
};
}
private function getNumObj():uint{
count_bonuse = (count_bonuse + 1);
var _local1:uint;
_local1 = (5 + Math.round((Math.random() * 24)));
if ((count_bonuse % prc_pass) == 0){
_local1 = Math.round((62 + Math.random()));
};
if ((count_bonuse % prc_mg) == 0){
_local1 = (70 + Math.round((Math.random() * 2)));
};
if ((count_bonuse % prc_combo) == 0){
_local1 = 67;
};
return (_local1);
}
public function _onKeyUp(_arg1:int):void{
keyLists[_arg1] = false;
if (flag_mini_games){
curr_mini_game._onKeyUp(_arg1);
};
}
public function renderGame(_arg1:Number):void{
var _local7:uint;
var _local8:V_Object;
var _local9:uint;
var _local10:Number;
var _local11:Number;
var _local12:int;
var _local13:Number;
_arg1 = ((getTimer() - lastTime) / 1000);
lastTime = getTimer();
curr_render.beginScene();
var _local2:Boolean;
if ((getTimer() - last_time) >= 30){
last_time = getTimer();
_local2 = true;
};
var _local3:Number = 0;
var _local4:Number = 0;
var _local5:Number = 0;
var _local6:Number = 0;
if (!flag_pause){
if (flag_game){
if (!init_game){
jump_men.obj_z = (jump_men.obj_z + ((_arg1 * speed) * 2));
if (jump_men.obj_z >= 1){
jump_men.obj_z = 1;
init_game = true;
};
} else {
if ((((t < 1)) && (!(jump_men.flag_collision)))){
t = (t + (_arg1 * 1.5));
if (t > 1){
t = 1;
};
jump_men.obj_x = (p1.x + (dist_x * t));
jump_men.obj_y = (p1.y + (dist_y * t));
if (jump_men.getId() != 0){
if (jump_men.getDir() > 0){
if (V_Utility.distanceEx(p2.x, p2.y, jump_men.obj_x, jump_men.obj_y) < 10){
jump_men.setDir(-1);
jump_men.setLoop(true);
};
};
};
};
_local3 = (jump_men.obj_x / (stage_width / 2));
_local4 = (jump_men.obj_y / (stage_height / 2));
if (_local3 > 1){
_local3 = 1;
};
if (_local4 > 1){
_local4 = 1;
};
if (_local3 < -1){
_local3 = -1;
};
if (_local4 < -1){
_local4 = -1;
};
_local3 = (_local3 * (dw * -1));
_local4 = (_local4 * (dh * -1));
};
checkKeys();
if (jump_men.getDir() < 0){
if (jump_men._currFrame() <= 1){
jump_men.Update(0);
};
};
jump_men._draw();
if (jump_men.getId() == 102){
if (jump_men._currFrame() >= jump_men._totalFrames()){
jump_men.Update(0);
jump_men.flag_collision = false;
};
};
if (jump_men.flag_collision){
if ((curr_game_time - jump_men.last_time_collision) >= 1.5){
jump_men.flag_collision = false;
};
};
_local7 = 0;
while (_local7 < mas_clouds.length) {
_local8 = mas_clouds[_local7];
mas_clouds[_local7].obj_x = (_local8.obj_oldx + _local3);
_local8.obj_y = (_local8.obj_oldy + _local4);
if (init_game){
if (_local8.obj_z <= 0.7){
_local8.obj_z = (_local8.obj_z + (_arg1 * speed));
} else {
_local8.obj_z = (_local8.obj_z + ((_arg1 * speed) * 2));
};
} else {
_local8.obj_z = (_local8.obj_z + (_arg1 * speed));
};
if (_local8.obj_z >= 1){
_local8.obj_z = 1;
_local8.alpha = (_local8.alpha - (_arg1 * 4));
if (_local8.alpha < 0){
mas_clouds.splice(_local7, 1);
_local7--;
curr_render.deleteRenderObject(_local8);
V_Utility.releasePoolObject(_local8);
};
} else {
if (_local8.alpha != 1){
if (_local8.obj_z < jump_men.obj_z){
_local8.alpha = (_local8.obj_z / 0.5);
if (_local8.alpha > 1){
_local8.alpha = 1;
};
};
};
};
_local7++;
};
_local7 = 0;
while (_local7 < mas_objs.length) {
_local8 = mas_objs[_local7];
mas_objs[_local7].obj_x = (_local8.obj_oldx + _local3);
_local8.obj_y = (_local8.obj_oldy + _local4);
_local9 = _local8.getId();
_local8._draw();
if (_local8.obj_z <= 0.7){
_local8.obj_z = (_local8.obj_z + (_arg1 * speed));
} else {
_local8.obj_z = (_local8.obj_z + ((_arg1 * speed) * 2));
};
if (_local8.obj_z >= 1){
_local8.obj_z = 1;
_local8.alpha = (_local8.alpha - (_arg1 * 4));
if (_local8.alpha < 0){
mas_objs.splice(_local7, 1);
_local7--;
curr_render.deleteRenderObject(_local8);
V_Utility.releasePoolObject(_local8);
_local8 = null;
if (_local9 == 50){
statistics.bad_mishka_level = (statistics.bad_mishka_level + 1);
statistics.bad_mishka_all_game = (statistics.bad_mishka_all_game + 1);
} else {
if ((((_local9 >= 62)) && ((_local9 <= 65)))){
statistics.bad_passanger_level = (statistics.bad_passanger_level + 1);
statistics.bad_passanger_all_game = (statistics.bad_passanger_all_game + 1);
} else {
if ((((_local9 == 71)) || ((_local9 == 72)))){
if (_local9 == 71){
(statistics.missed_muha_minigame + 1);
};
statistics.missed_minigames = (statistics.missed_minigames + 1);
};
};
};
};
} else {
if (_local8.alpha != 1){
_local8.alpha = (_local8.obj_z / 0.5);
if (_local8.alpha >= 1){
_local8.alpha = 1;
};
};
};
if (_local8 != null){
_local10 = Math.abs((_local8.obj_z - jump_men.obj_z));
if (_local10 < 0.05){
_local11 = V_Utility.distanceEx(_local8.obj_x, _local8.obj_y, jump_men.obj_x, jump_men.obj_y);
if (_local11 < 100){
if (!jump_men.flag_collision){
if ((((((((((((_local9 == 50)) || ((_local9 == 52)))) || ((_local9 == 54)))) || ((_local9 == 56)))) || ((_local9 == 58)))) || ((_local9 == 60)))){
_local8.Update((_local9 + 1));
if (_local9 == 50){
statistics.points = (statistics.points + (time_combo) ? 200 : 100);
statistics.mishka = (statistics.mishka + 1);
} else {
if (_local9 == 52){
statistics.points = (statistics.points + (time_combo) ? 10 : 5);
} else {
if (_local9 == 54){
statistics.points = (statistics.points + (time_combo) ? 20 : 10);
} else {
if (_local9 == 56){
statistics.points = (statistics.points + (time_combo) ? 50 : 25);
} else {
if (_local9 == 58){
statistics.points = (statistics.points + (time_combo) ? 100 : 50);
} else {
if (_local9 == 60){
statistics.points = (statistics.points + (time_combo) ? 150 : 75);
};
};
};
};
};
};
V_Utility.playSound(3, 1);
ref_interface.setStatistics(statistics);
} else {
if ((((_local9 >= 62)) && ((_local9 <= 63)))){
if (statistics.parashut){
dispatchEvent(new Event("SAVE_PASSENGER"));
_local8.Update(Math.round((64 + Math.random())));
statistics.parashut = (statistics.parashut - 1);
statistics.passenger = (statistics.passenger + 1);
ref_interface.setStatistics(statistics);
_local12 = Math.round((16 + Math.random()));
V_Utility.playSound(_local12, 1);
V_Utility.playSound(8, 1);
} else {
spl_t = 0;
statistics.collisions = (statistics.collisions + 1);
statistics.collision_all_game = (statistics.collision_all_game + 1);
ref_interface.collision();
jump_men.flag_collision = true;
jump_men.Update(102);
jump_men.last_time_collision = curr_game_time;
t = 1;
statistics.points = (statistics.points - 500);
ref_interface.setStatistics(statistics);
};
} else {
if (_local9 == 67){
mas_objs.splice(_local7, 1);
_local7--;
curr_render.deleteRenderObject(_local8);
V_Utility.releasePoolObject(_local8);
V_Utility.playSound(4, 1);
time_combo = 4;
} else {
if ((((_local9 >= 5)) && ((_local9 <= 29)))){
if ((curr_game_time / general_game_time) < 0.6){
if ((((((((((((((((_local9 == 7)) || ((_local9 == 10)))) || ((_local9 == 12)))) || ((_local9 == 20)))) || ((_local9 == 21)))) || ((_local9 == 24)))) || ((_local9 == 26)))) || ((_local9 == 29)))){
statistics.points = (statistics.points - 1000);
ref_interface.setStatistics(statistics);
V_Utility.playSound(12, 1);
V_Utility.playSound(8, 1);
dispatchEvent(new Event("SHOW_CRASH"));
} else {
statistics.points = (statistics.points - 500);
ref_interface.setStatistics(statistics);
_local12 = (10 + Math.round(Math.random()));
V_Utility.playSound(_local12, 1);
};
} else {
statistics.points = (statistics.points - 1000);
ref_interface.setStatistics(statistics);
V_Utility.playSound(12, 1);
V_Utility.playSound(8, 1);
dispatchEvent(new Event("SHOW_CRASH"));
};
_local13 = Math.random();
if (_local13 >= 0.7){
_local12 = Math.round((Math.random() * 2));
V_Utility.playSound(_local12, 1);
};
ref_interface.collision();
spl_t = 0;
statistics.collisions = (statistics.collisions + 1);
statistics.collision_all_game = (statistics.collision_all_game + 1);
jump_men.flag_collision = true;
jump_men.Update(102);
jump_men.last_time_collision = curr_game_time;
t = 1;
} else {
if (_local9 == 70){
setPause(true);
mas_objs.splice(_local7, 1);
_local7--;
curr_render.deleteRenderObject(_local8);
V_Utility.releasePoolObject(_local8);
hideObjects();
V_Utility.playSound(5, 1);
createMiniGame(1);
} else {
if (_local9 == 71){
setPause(true);
mas_objs.splice(_local7, 1);
_local7--;
curr_render.deleteRenderObject(_local8);
V_Utility.releasePoolObject(_local8);
V_Utility.playSound(5, 1);
dispatchEvent(new Event("MUHA_MINIGAME"));
} else {
if (_local9 == 72){
setPause(true);
mas_objs.splice(_local7, 1);
_local7--;
curr_render.deleteRenderObject(_local8);
V_Utility.releasePoolObject(_local8);
V_Utility.playSound(5, 1);
dispatchEvent(new Event("EVEN_MINIGAME3"));
};
};
};
};
};
};
};
};
};
};
if ((((((((((((_local9 == 51)) || ((_local9 == 53)))) || ((_local9 == 55)))) || ((_local9 == 57)))) || ((_local9 == 59)))) || ((_local9 == 61)))){
if (_local8._currFrame() >= _local8._totalFrames()){
curr_render.deleteRenderObject(_local8);
V_Utility.releasePoolObject(_local8);
mas_objs.splice(_local7, 1);
_local7--;
};
};
};
_local7++;
};
if (init_game){
if (spl_t < 1){
spl_t = (spl_t + (_arg1 * 2));
if (spl_t > 1){
spl_t = 1;
};
cam_pos = spline.getNode(spl_t);
curr_render.setCenterPerspective(cam_pos.x, cam_pos.y);
};
createObjects();
createClouds();
curr_game_time = (curr_game_time + _arg1);
if (time_combo){
time_combo = (time_combo - _arg1);
if (time_combo < 0){
time_combo = 0;
};
};
if (curr_game_time > general_game_time){
curr_game_time = general_game_time;
};
if ((((curr_game_time >= general_game_time)) && ((mas_objs.length == 0)))){
flag_game = false;
jump_men.Update(103);
jump_men.setPointLoop(29, 29);
} else {
jump_men.obj_z = (1 - ((curr_game_time / general_game_time) * 0.2));
ref_interface.setProgress((curr_game_time / general_game_time));
renderFon();
};
};
} else {
if (jump_men.getId() == 103){
_local7 = 0;
while (_local7 < mas_objs.length) {
_local8 = mas_objs[_local7];
mas_objs[_local7].obj_x = (_local8.obj_oldx + _local3);
_local8.obj_y = (_local8.obj_oldy + _local4);
_local8._draw();
_local8.obj_z = (_local8.obj_z + (_arg1 * speed));
_local7++;
};
_local7 = 0;
while (_local7 < mas_clouds.length) {
_local8 = mas_clouds[_local7];
mas_clouds[_local7].obj_x = (_local8.obj_oldx + _local3);
_local8.obj_y = (_local8.obj_oldy + _local4);
_local8._draw();
_local8.obj_z = (_local8.obj_z + (_arg1 * speed));
_local7++;
};
jump_men._draw();
jump_men.obj_z = (jump_men.obj_z - (_arg1 / 4));
if (jump_men.obj_z <= 0.3){
jump_men.Update(0);
destructor();
V_Utility.stopSound(18);
rain.stop();
dispatchEvent(new Event("COMPLETE_GAME"));
};
};
};
};
if (flag_mini_games){
curr_mini_game.renderGame(_arg1);
};
curr_render.endScene();
}
private function firstClouds():void{
var _local3:V_Object;
var _local4:int;
var _local5:uint;
var _local6:Number;
var _local1:Number = 20;
var _local2:Boolean;
if (!mas_clouds.length){
_local2 = true;
} else {
if (mas_clouds[(mas_clouds.length - 1)].obj_z > 0.3){
_local2 = true;
};
};
if (_local2){
_local4 = 0;
while (_local4 < _local1) {
_local5 = (2 + Math.round((Math.random() * 2)));
_local6 = ((min_z - 0.1) + (0.02 * _local4));
_local3 = V_Utility.getPoolObject();
_local3.Update(_local5);
_local3._draw();
_local3.obj_oldx = (_local3.obj_x = (stage_width - ((Math.random() * stage_width) * 2)));
_local3.obj_oldy = (_local3.obj_y = (stage_height - ((Math.random() * stage_height) * 2)));
_local3.obj_z = _local6;
_local3.alpha = 1;
mas_clouds.push(_local3);
curr_render.addChildObject(_local3);
_local4++;
};
};
}
public function setPause(_arg1:Boolean, _arg2:Boolean=false):void{
if (flag_mini_games){
curr_mini_game.setPause(_arg1);
} else {
if (!_arg1){
V_Utility.playSound(18, int.MAX_VALUE);
if (!_arg2){
V_Utility.playSound(curr_them, int.MAX_VALUE);
};
if (curr_mission == 7){
rain.play();
};
} else {
V_Utility.stopSound(18);
if (!_arg2){
V_Utility.stopSound(curr_them);
};
rain.stop();
};
flag_pause = _arg1;
};
lastTime = getTimer();
}
private function onMiniGameLister(_arg1:Event):void{
rain.visible = true;
curr_mini_game = null;
flag_mini_games = false;
showObjects();
curr_render.removeBackgaround();
curr_render.addBackgaround(backg);
setPause(false);
}
public function mouseDown(_arg1:Number, _arg2:Number):void{
flag_down = true;
}
public function destructor():void{
var _local1:V_Object;
curr_render.removeBackgaround();
while (mas_objs.length) {
_local1 = (mas_objs.shift() as V_Object);
curr_render.deleteRenderObject(_local1);
V_Utility.releasePoolObject(_local1);
};
while (mas_clouds.length) {
_local1 = (mas_clouds.shift() as V_Object);
curr_render.deleteRenderObject(_local1);
V_Utility.releasePoolObject(_local1);
};
if (jump_men){
curr_render.deleteRenderObject(jump_men);
};
V_Utility.stopSound(curr_them);
}
private function createClouds():void{
var _local3:V_Object;
var _local4:Number;
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local8:uint;
var _local9:uint;
var _local10:Number;
var _local1:Number = (10 + (Math.random() * 10));
var _local2:Boolean;
if (!mas_clouds.length){
_local2 = true;
} else {
if (mas_clouds[(mas_clouds.length - 1)].obj_z >= (min_z + 0.1)){
_local2 = true;
};
};
if (_local2){
_local4 = (Math.random() * ((stage_width / 2) + (dw / 2)));
if (_local4 >= 1000){
_local5 = (Math.random() * 360);
_local6 = 0;
_local7 = (360 / _local1);
_local8 = 0;
while (_local8 < _local1) {
_local6 = (_local6 + ((_local8 * _local7) + _local5));
_local6 = (_local6 * V_Utility.IN_RAD);
_local9 = (2 + Math.round((Math.random() * 2)));
_local10 = min_z;
_local10 = (_local10 - (_local8 * 0.05));
_local3 = V_Utility.getPoolObject();
_local3.Update(_local9);
_local3._draw();
_local3.obj_oldx = (_local3.obj_x = (_local4 * Math.sin(_local6)));
_local3.obj_oldy = (_local3.obj_y = (_local4 * Math.cos(_local6)));
_local3.obj_z = _local10;
_local3.alpha = 0;
mas_clouds.push(_local3);
curr_render.addChildObject(_local3);
_local8++;
};
} else {
_local8 = 0;
while (_local8 < _local1) {
_local9 = (2 + Math.round((Math.random() * 2)));
_local10 = min_z;
_local10 = (_local10 - (_local8 * 0.05));
_local3 = V_Utility.getPoolObject();
_local3.Update(_local9);
_local3._draw();
_local3.obj_oldx = (_local3.obj_x = ((stage_width + dw) - ((Math.random() * (stage_width + (dw / 2))) * 2)));
_local3.obj_oldy = (_local3.obj_y = ((stage_height + dh) - ((Math.random() * (stage_height + (dh / 2))) * 2)));
_local3.obj_z = _local10;
_local3.alpha = 0;
mas_clouds.push(_local3);
curr_render.addChildObject(_local3);
_local8++;
};
};
};
}
}
}//package
Section 89
//V_GameLabel (V_GameLabel)
package {
import flash.display.*;
import flash.text.*;
import flash.filters.*;
public class V_GameLabel extends MovieClip {
private var glow:GlowFilter;
public var caption_txt:TextField;
public function V_GameLabel(){
glow = new GlowFilter(2232843, 2, 2, 5, 5, BitmapFilterQuality.HIGH, false, false);
caption_txt.filters = [glow];
}
public function setText(_arg1:String):void{
caption_txt.text = _arg1;
}
}
}//package
Section 90
//V_GameTutorial (V_GameTutorial)
package {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.utils.*;
public class V_GameTutorial extends Sprite implements VI_Game {
private var tutorial_wnd:MovieClip;
private var curr_mini_game:VI_Game;
private var dist_x:Number;// = 0
private var dist_y:Number;// = 0
private var statistics:Object;
private var curr_game_time:Number;// = 0
private var m_game1:V_MiniGame1;
private var mas_objs:Array;
private var curr_render:V_Render;
private var jump_men:V_Object;
private var speed:Number;// = 0.15
private var moveAng:Number;// = 0
private var stage_width:Number;// = 0
private var count_bonuse:uint;// = 0
private var backg:MovieClip;
private var general_game_time:Number;// = 0
private var last_pos_x:Number;// = 0
private var last_pos_y:Number;// = 0
private var flag_pause:Boolean;// = false
private var t:Number;// = 0
private var curr_mission:uint;// = 0
private var lastTime:Number;// = 0
private var dh:Number;// = 200
private var flag_mini_games:Boolean;// = false
private var stage_height:Number;// = 0
private var dw:Number;// = 200
private var ref_interface:MovieClip;
private var flag_down:Boolean;// = false
private var curr_step_time:Number;// = 0
private var last_dist:Number;// = 1000
private var mouse_pos:Point;
private var mas_clouds:Array;
private var init_game:Boolean;// = false
private var p2:V_Point;
private var p3:V_Point;
private var speed_step:Number;// = 0.07
private var curr_tutorial:uint;// = 0
private var min_z:Number;// = 0.2
private var p1:V_Point;
private var p4:V_Point;
private var bonus_nums:Array;
private var last_time:Number;
private var spline:V_Spline;
private var cam_pos:Point;
private var flag_game:Boolean;// = false
private var spl_t:Number;// = 1
private var prc_pass:Number;// = 50
private var prc_mg:Number;// = 90
public function V_GameTutorial(){
mas_objs = new Array();
mas_clouds = new Array();
p1 = new V_Point();
p2 = new V_Point();
p3 = new V_Point();
p4 = new V_Point();
bonus_nums = new Array(52, 54, 56, 58, 60);
statistics = new Object();
mouse_pos = new Point();
super();
trace("VGame tutorial");
curr_render = new V_Render();
addChild(curr_render);
curr_render.initRender(550, 400, (550 / 2), (400 / 2), 0.2, 1);
trace("/VGame tutorial");
spline = new V_Spline(new Point(275, 200), new Point(275, 200), new Point(475, 100), new Point(175, 300));
statistics.points = 0;
statistics.parashut = 0;
statistics.passenger = 0;
statistics.mishka = 0;
statistics.good_collisions = 0;
statistics.collisions = 0;
}
private function createSpiralPosObjs(_arg1:uint, _arg2:uint):void{
var _local14:uint;
var _local15:Number;
var _local16:V_Object;
var _local3:uint = _arg1;
var _local4:Number = 0;
_local4 = 90;
var _local5:Number = 5;
var _local6:int = Math.round((Math.random() * 6));
var _local7:* = 0;
var _local8:uint;
_local7 = 15;
_local8 = 1;
var _local9:Number = 0;
var _local10:Number = 0;
var _local11:Number = 0;
var _local12:Number = 0;
var _local13:int;
while (_local13 < _local3) {
_local9 = (_local9 + (_local7 + _local5));
_local14 = _arg2;
_local15 = (min_z - (Math.floor((_local13 / _local8)) * 0.08));
_local16 = V_Utility.getPoolObject();
_local16.Update(_local14);
_local16._draw();
_local16.obj_oldx = ((_local4 * Math.cos(((_local10 + _local9) * V_Utility.IN_RAD))) + _local11);
_local16.obj_oldy = ((_local4 * Math.sin(((_local10 + _local9) * V_Utility.IN_RAD))) + _local12);
_local16.obj_z = _local15;
_local16.alpha = 0;
mas_objs.push(_local16);
curr_render.addChildObject(_local16);
_local13++;
};
}
private function createMiniGame(_arg1:int):void{
if (!m_game1){
m_game1 = new V_MiniGame1(curr_render);
m_game1.addEventListener("END_GAME", onMiniGameLister);
};
curr_mini_game = m_game1;
flag_mini_games = true;
var _local2:Object = new Object();
_local2.stage_w = stage_width;
_local2.stage_h = stage_height;
_local2.z = jump_men.obj_z;
_local2.type = 1;
_local2.ref_interface = ref_interface;
curr_mini_game.init(_local2);
}
public function mouseMove(_arg1:Number, _arg2:Number):void{
if (flag_down){
};
p2.x = (_arg1 - (stage_width / 2));
p2.y = (_arg2 - (stage_height / 2));
p2.x = (p2.x / jump_men.obj_z);
p2.y = (p2.y / jump_men.obj_z);
p1.x = jump_men.obj_x;
p1.y = jump_men.obj_y;
dist_x = (p2.x - p1.x);
dist_y = (p2.y - p1.y);
if (((((!(jump_men.flag_collision)) && (flag_game))) && (init_game))){
if (dist_x > 0){
if ((((jump_men.getId() == 0)) && ((dist_x < 50)))){
} else {
if (jump_men.getId() != 101){
jump_men.Update(101);
jump_men.setPointLoop(5, 18);
};
};
} else {
if ((((jump_men.getId() == 0)) && ((dist_x > -50)))){
} else {
if (jump_men.getId() != 100){
jump_men.Update(100);
jump_men.setPointLoop(5, 18);
};
};
};
t = 0;
};
if (flag_mini_games){
curr_mini_game.mouseMove(_arg1, _arg2);
};
}
public function init(_arg1:Object):void{
destructor();
stage_width = _arg1.stage_w;
stage_height = _arg1.stage_h;
if (!jump_men){
jump_men = V_Utility.getPoolObject();
};
if (!tutorial_wnd){
tutorial_wnd = _arg1.tutorial;
tutorial_wnd.addEventListener("CLICK_NEXT", onTutorialLister);
};
curr_render.addChildObject(jump_men);
curr_mission = _arg1.mission;
curr_mission = 2;
backg = new V_Gorod();
backg.gotoAndStop(1);
curr_render.removeBackgaround();
curr_render.addBackgaround(backg);
trace("!!!!");
jump_men.Update(0);
jump_men._draw();
jump_men.obj_z = 1;
jump_men.obj_x = 0;
jump_men.obj_y = 0;
jump_men.obj_sx = 1.1;
jump_men.obj_sy = 1.1;
jump_men.flag_collision = false;
last_time = getTimer();
init_game = false;
flag_down = false;
mouse_pos.x = (p2.x = (stage_width / 2));
mouse_pos.y = (p2.y = (stage_height / 2));
backg.x = p2.x;
backg.y = p2.y;
backg.scaleX = (backg.scaleY = 1);
last_dist = 1000;
firstClouds();
t = 1;
curr_game_time = 0;
general_game_time = 240;
curr_step_time = (general_game_time / 5);
flag_game = true;
speed = 0.15;
count_bonuse = 0;
ref_interface = _arg1.ref_int;
lastTime = getTimer();
statistics.points = 0;
statistics.parashut = 0;
statistics.passenger = 0;
statistics.mishka = 0;
statistics.collisions = 0;
ref_interface.refresh();
ref_interface.setStatistics(statistics);
curr_tutorial = 8;
tutorial_wnd.hideAll();
tutorial_wnd.showWindow(curr_tutorial);
tutorial_wnd.showLabel(false);
setPause(true);
}
private function createFreePosObjs():void{
var _local8:uint;
var _local9:V_Object;
var _local1:Number = 0;
_local1 = 300;
var _local2:Number = ((stage_width / 2) + (dw / 2));
var _local3:Number = ((stage_height / 2) + (dh / 2));
var _local4:Number = -(_local2);
var _local5:Number = -(_local3);
var _local6:Number = 0;
var _local7:Number = min_z;
while ((((_local4 < _local2)) || ((_local5 < _local3)))) {
_local8 = getNumObj();
_local9 = V_Utility.getPoolObject();
V_Utility.getPoolObject().obj_oldx = (_local9.obj_x = _local4);
_local9.obj_oldy = (_local9.obj_y = _local5);
_local9.Update(_local8);
_local9._draw();
_local7 = (_local7 - 0.1);
_local9.obj_z = _local7;
_local9.alpha = 0;
mas_objs.push(_local9);
curr_render.addChildObject(_local9);
_local4 = (_local4 + _local1);
_local6 = (_local6 + 1);
_local7 = (_local7 - 0.05);
if (_local4 > _local2){
if (_local5 < _local3){
_local4 = -(_local2);
_local5 = (_local5 + _local1);
};
};
};
}
public function mouseUp(_arg1:Number, _arg2:Number):void{
flag_down = false;
}
public function _onKeyDown(_arg1:int):void{
if (!flag_pause){
if (((((!(jump_men.flag_collision)) && (flag_game))) && (init_game))){
if (_arg1 == 37){
mouse_pos.x = (mouse_pos.x - 5);
if (mouse_pos.x < 0){
mouse_pos.x = 0;
};
};
if (_arg1 == 39){
mouse_pos.x = (mouse_pos.x + 5);
if (mouse_pos.x > stage_width){
mouse_pos.x = stage_width;
};
};
if (_arg1 == 38){
mouse_pos.y = (mouse_pos.y - 5);
if (mouse_pos.y < 0){
mouse_pos.y = 0;
};
};
if (_arg1 == 40){
mouse_pos.y = (mouse_pos.y + 5);
if (mouse_pos.y > stage_height){
mouse_pos.y = stage_height;
};
};
p2.x = (mouse_pos.x - (stage_width / 2));
p2.y = (mouse_pos.y - (stage_height / 2));
p2.x = (p2.x / jump_men.obj_z);
p2.y = (p2.y / jump_men.obj_z);
p1.x = jump_men.obj_x;
p1.y = jump_men.obj_y;
dist_x = (p2.x - p1.x);
dist_y = (p2.y - p1.y);
t = 0;
};
};
}
private function renderFon():void{
var _local1:uint = Math.round(((curr_game_time / general_game_time) * backg.totalFrames));
var _local2:uint = (Math.floor((curr_game_time / curr_step_time)) + 1);
speed = (0.15 + (_local2 * speed_step));
switch (curr_mission){
case 1:
case 6:
if (_local2 == 1){
backg.scaleX = (backg.scaleY = (1 + (((curr_game_time / curr_step_time) - (_local2 - 1)) * 0.355)));
} else {
if (_local2 == 2){
backg.scaleX = (backg.scaleY = (1 + (((curr_game_time / curr_step_time) - (_local2 - 1)) * 0.343)));
} else {
if (_local2 == 3){
backg.scaleX = (backg.scaleY = (1 + (((curr_game_time / curr_step_time) - (_local2 - 1)) * 0.175)));
} else {
if (_local2 == 4){
backg.scaleX = (backg.scaleY = (1 + (((curr_game_time / curr_step_time) - (_local2 - 1)) * 0.75)));
} else {
backg.scaleX = (backg.scaleY = (1 + (((curr_game_time / curr_step_time) - (_local2 - 1)) * 0.3)));
};
};
};
};
break;
case 2:
case 5:
if (_local2 == 1){
backg.scaleX = (backg.scaleY = (1 + (((curr_game_time / curr_step_time) - (_local2 - 1)) * 0.355)));
} else {
if (_local2 == 2){
backg.scaleX = (backg.scaleY = (1 + (((curr_game_time / curr_step_time) - (_local2 - 1)) * 0.33095)));
} else {
if (_local2 == 3){
backg.scaleX = (backg.scaleY = (1 + (((curr_game_time / curr_step_time) - (_local2 - 1)) * 0.18)));
} else {
if (_local2 == 4){
backg.scaleX = (backg.scaleY = (1 + (((curr_game_time / curr_step_time) - (_local2 - 1)) * 0.72)));
} else {
backg.scaleX = (backg.scaleY = (1 + (((curr_game_time / curr_step_time) - (_local2 - 1)) * 0.3)));
};
};
};
};
break;
case 3:
case 7:
if (_local2 == 1){
backg.scaleX = (backg.scaleY = (1 + (((curr_game_time / curr_step_time) - (_local2 - 1)) * 0.38)));
} else {
if (_local2 == 2){
backg.scaleX = (backg.scaleY = (1 + (((curr_game_time / curr_step_time) - (_local2 - 1)) * 0.335)));
} else {
if (_local2 == 3){
backg.scaleX = (backg.scaleY = (1 + (((curr_game_time / curr_step_time) - (_local2 - 1)) * 0.18)));
} else {
if (_local2 == 4){
backg.scaleX = (backg.scaleY = (1 + (((curr_game_time / curr_step_time) - (_local2 - 1)) * 0.68)));
} else {
backg.scaleX = (backg.scaleY = (1 + (((curr_game_time / curr_step_time) - (_local2 - 1)) * 0.3)));
};
};
};
};
break;
case 4:
if (_local2 == 1){
backg.scaleX = (backg.scaleY = (1 + (((curr_game_time / curr_step_time) - (_local2 - 1)) * 0.345)));
} else {
if (_local2 == 2){
backg.scaleX = (backg.scaleY = (1 + (((curr_game_time / curr_step_time) - (_local2 - 1)) * 0.35)));
} else {
if (_local2 == 3){
backg.scaleX = (backg.scaleY = (1 + (((curr_game_time / curr_step_time) - (_local2 - 1)) * 0.18)));
} else {
if (_local2 == 4){
backg.scaleX = (backg.scaleY = (1 + (((curr_game_time / curr_step_time) - (_local2 - 1)) * 0.75)));
} else {
backg.scaleX = (backg.scaleY = (1 + (((curr_game_time / curr_step_time) - (_local2 - 1)) * 0.3)));
};
};
};
};
break;
};
if (backg.currentFrame != _local2){
trace(_local2);
backg.gotoAndStop(_local2);
};
}
private function showObjects():void{
var _local1:V_Object;
var _local2:int;
while (_local2 < mas_objs.length) {
_local1 = mas_objs[_local2];
curr_render.addChildObject(_local1);
_local2++;
};
_local2 = 0;
while (_local2 < mas_clouds.length) {
_local1 = mas_clouds[_local2];
curr_render.addChildObject(_local1);
_local2++;
};
curr_render.addChildObject(jump_men);
}
public function getPause():Boolean{
return (flag_pause);
}
private function getBonusNumObj():uint{
var _local3:uint;
count_bonuse = (count_bonuse + 1);
var _local1:uint;
var _local2:Number = Math.random();
if (_local2 > 0.9){
_local1 = 50;
} else {
_local3 = Math.round((Math.random() * (bonus_nums.length - 1)));
_local1 = bonus_nums[_local3];
};
if ((count_bonuse % prc_pass) == 0){
_local1 = Math.round((62 + (Math.random() * 3)));
};
if ((count_bonuse % prc_mg) == 0){
_local1 = (70 + Math.round((Math.random() * 2)));
};
return (_local1);
}
private function hideObjects():void{
var _local1:V_Object;
var _local2:int;
while (_local2 < mas_objs.length) {
_local1 = mas_objs[_local2];
curr_render.deleteRenderObject(_local1);
_local2++;
};
_local2 = 0;
while (_local2 < mas_clouds.length) {
_local1 = mas_clouds[_local2];
curr_render.deleteRenderObject(_local1);
_local2++;
};
curr_render.deleteRenderObject(jump_men);
}
private function getNumObj():uint{
count_bonuse = (count_bonuse + 1);
var _local1:uint;
_local1 = (5 + Math.round((Math.random() * 24)));
return (_local1);
}
public function _onKeyUp(_arg1:int):void{
}
private function onTutorialLister(_arg1:Event):void{
var _local2:String;
switch (curr_tutorial){
case 8:
case 9:
case 10:
case 11:
case 12:
case 13:
tutorial_wnd.hideWindow(curr_tutorial);
if (curr_tutorial == 13){
curr_tutorial = 0;
} else {
curr_tutorial = (curr_tutorial + 1);
};
tutorial_wnd.showWindow(curr_tutorial);
break;
case 0:
tutorial_wnd.hideWindow(curr_tutorial);
curr_tutorial = 1;
tutorial_wnd.showWindow(curr_tutorial);
break;
case 1:
tutorial_wnd.hideWindow(curr_tutorial);
curr_tutorial = 2;
tutorial_wnd.showWindow(curr_tutorial);
break;
case 2:
createFreePosObjs();
setPause(false);
tutorial_wnd.hideWindow(curr_tutorial);
tutorial_wnd.showLabel(true);
statistics.good_collisions = 0;
_local2 = (statistics.good_collisions + "/5");
statistics.collisions = 0;
tutorial_wnd.setText(_local2, 2);
break;
case 3:
createSpiralPosObjs(20, 52);
setPause(false);
tutorial_wnd.hideWindow(curr_tutorial);
tutorial_wnd.showLabel(true);
statistics.points = 0;
_local2 = (statistics.points + "/100");
tutorial_wnd.setText(_local2, 3);
break;
case 4:
statistics.parashut = 1;
createSpiralPosObjs(1, 62);
setPause(false);
tutorial_wnd.hideWindow(curr_tutorial);
tutorial_wnd.showLabel(true);
statistics.passenger = 0;
_local2 = (statistics.passenger + "/1");
tutorial_wnd.setText(_local2, 4);
break;
case 5:
tutorial_wnd.hideWindow(curr_tutorial);
curr_tutorial = 6;
tutorial_wnd.showWindow(curr_tutorial);
break;
case 6:
tutorial_wnd.hideWindow(curr_tutorial);
curr_tutorial = 7;
tutorial_wnd.showWindow(curr_tutorial);
break;
case 7:
dispatchEvent(new Event("TUTORIAL_COMPLETE"));
break;
};
}
public function renderGame(_arg1:Number):void{
var _local7:uint;
var _local8:V_Object;
var _local9:uint;
var _local10:String;
var _local11:Number;
var _local12:Number;
var _local13:int;
_arg1 = ((getTimer() - lastTime) / 1000);
lastTime = getTimer();
curr_render.beginScene();
var _local2:Boolean;
if ((getTimer() - last_time) >= 30){
last_time = getTimer();
_local2 = true;
};
var _local3:Number = 0;
var _local4:Number = 0;
var _local5:Number = 0;
var _local6:Number = 0;
if (!flag_pause){
if (flag_game){
if (!init_game){
jump_men.obj_z = (jump_men.obj_z + ((_arg1 * speed) * 2));
if (jump_men.obj_z >= 1){
jump_men.obj_z = 1;
init_game = true;
};
} else {
if ((((t < 1)) && (!(jump_men.flag_collision)))){
t = (t + (_arg1 * 1.5));
if (t > 1){
t = 1;
};
jump_men.obj_x = (p1.x + (dist_x * t));
jump_men.obj_y = (p1.y + (dist_y * t));
if (jump_men.getId() != 0){
if (jump_men.getDir() > 0){
if (V_Utility.distanceEx(p2.x, p2.y, jump_men.obj_x, jump_men.obj_y) < 10){
jump_men.setDir(-1);
jump_men.setLoop(true);
};
};
};
};
_local3 = (jump_men.obj_x / (stage_width / 2));
_local4 = (jump_men.obj_y / (stage_height / 2));
if (_local3 > 1){
_local3 = 1;
};
if (_local4 > 1){
_local4 = 1;
};
if (_local3 < -1){
_local3 = -1;
};
if (_local4 < -1){
_local4 = -1;
};
_local3 = (_local3 * (dw * -1));
_local4 = (_local4 * (dh * -1));
};
if (jump_men.getDir() < 0){
if (jump_men._currFrame() <= 1){
jump_men.Update(0);
};
};
jump_men._draw();
if (jump_men.getId() == 102){
if (jump_men._currFrame() >= jump_men._totalFrames()){
jump_men.Update(0);
jump_men.flag_collision = false;
};
};
if (jump_men.flag_collision){
if ((curr_game_time - jump_men.last_time_collision) >= 1.5){
jump_men.flag_collision = false;
};
};
_local7 = 0;
while (_local7 < mas_clouds.length) {
_local8 = mas_clouds[_local7];
mas_clouds[_local7].obj_x = (_local8.obj_oldx + _local3);
_local8.obj_y = (_local8.obj_oldy + _local4);
if (init_game){
if (_local8.obj_z <= 0.7){
_local8.obj_z = (_local8.obj_z + (_arg1 * speed));
} else {
_local8.obj_z = (_local8.obj_z + ((_arg1 * speed) * 2));
};
} else {
_local8.obj_z = (_local8.obj_z + (_arg1 * speed));
};
if (_local8.obj_z >= 1){
_local8.obj_z = 1;
_local8.alpha = (_local8.alpha - (_arg1 * 4));
if (_local8.alpha < 0){
mas_clouds.splice(_local7, 1);
_local7--;
curr_render.deleteRenderObject(_local8);
V_Utility.releasePoolObject(_local8);
};
} else {
if (_local8.alpha != 1){
if (_local8.obj_z < jump_men.obj_z){
_local8.alpha = (_local8.obj_z / 0.5);
if (_local8.alpha > 1){
_local8.alpha = 1;
};
};
};
};
_local7++;
};
_local7 = 0;
while (_local7 < mas_objs.length) {
_local8 = mas_objs[_local7];
mas_objs[_local7].obj_x = (_local8.obj_oldx + _local3);
_local8.obj_y = (_local8.obj_oldy + _local4);
_local9 = _local8.getId();
_local8._draw();
if (_local8.obj_z <= 0.7){
_local8.obj_z = (_local8.obj_z + (_arg1 * speed));
} else {
_local8.obj_z = (_local8.obj_z + ((_arg1 * speed) * 2));
};
if (_local8.obj_z >= 1){
_local8.obj_z = 1;
_local8.alpha = (_local8.alpha - (_arg1 * 4));
if (_local8.alpha < 0){
mas_objs.splice(_local7, 1);
_local7--;
if (curr_tutorial == 2){
if (!statistics.collisions){
statistics.good_collisions = (statistics.good_collisions + 1);
};
if (statistics.good_collisions > 5){
statistics.good_collisions = 5;
};
_local10 = (statistics.good_collisions + "/5");
tutorial_wnd.setText(_local10, 2);
};
curr_render.deleteRenderObject(_local8);
V_Utility.releasePoolObject(_local8);
_local8 = null;
};
} else {
if (_local8.alpha != 1){
_local8.alpha = (_local8.obj_z / 0.5);
if (_local8.alpha >= 1){
_local8.alpha = 1;
};
};
};
if (_local8 != null){
_local11 = Math.abs((_local8.obj_z - jump_men.obj_z));
if (_local11 < 0.05){
_local12 = V_Utility.distanceEx(_local8.obj_x, _local8.obj_y, jump_men.obj_x, jump_men.obj_y);
if (_local12 < 100){
if (!jump_men.flag_collision){
if ((((((((((((_local9 == 50)) || ((_local9 == 52)))) || ((_local9 == 54)))) || ((_local9 == 56)))) || ((_local9 == 58)))) || ((_local9 == 60)))){
_local8.Update((_local9 + 1));
if (_local9 == 50){
statistics.points = (statistics.points + 100);
} else {
if (_local9 == 52){
statistics.points = (statistics.points + 5);
} else {
if (_local9 == 54){
statistics.points = (statistics.points + 10);
} else {
if (_local9 == 56){
statistics.points = (statistics.points + 25);
} else {
if (_local9 == 58){
statistics.points = (statistics.points + 50);
} else {
if (_local9 == 60){
statistics.points = (statistics.points + 75);
};
};
};
};
};
};
if (curr_tutorial == 3){
V_Utility.playSound(3, 1);
_local10 = (statistics.points + "/100");
tutorial_wnd.setText(_local10, 3);
};
} else {
if ((((_local9 >= 62)) && ((_local9 <= 65)))){
if (statistics.parashut){
dispatchEvent(new Event("SAVE_PASSENGER"));
mas_objs.splice(_local7, 1);
_local7--;
curr_render.deleteRenderObject(_local8);
V_Utility.releasePoolObject(_local8);
statistics.parashut = (statistics.parashut - 1);
statistics.passenger = (statistics.passenger + 1);
_local10 = (statistics.passenger + "/1");
tutorial_wnd.setText(_local10, 4);
_local13 = Math.round((16 + Math.random()));
V_Utility.playSound(_local13, 1);
V_Utility.playSound(8, 1);
ref_interface.setStatistics(statistics);
} else {
spl_t = 0;
jump_men.flag_collision = true;
jump_men.Update(102);
jump_men.last_time_collision = curr_game_time;
t = 1;
statistics.points = (statistics.points - 500);
ref_interface.setStatistics(statistics);
};
} else {
if (_local9 == 66){
mas_objs.splice(_local7, 1);
_local7--;
curr_render.deleteRenderObject(_local8);
V_Utility.releasePoolObject(_local8);
statistics.parashut = (statistics.parashut + 1);
ref_interface.setStatistics(statistics);
} else {
if ((((_local9 >= 5)) && ((_local9 <= 29)))){
if ((curr_game_time / general_game_time) < 0.6){
if ((((((((((((((((_local9 == 7)) || ((_local9 == 10)))) || ((_local9 == 12)))) || ((_local9 == 20)))) || ((_local9 == 21)))) || ((_local9 == 24)))) || ((_local9 == 26)))) || ((_local9 == 29)))){
dispatchEvent(new Event("SHOW_CRASH"));
};
} else {
dispatchEvent(new Event("SHOW_CRASH"));
};
_local13 = (10 + Math.round(Math.random()));
V_Utility.playSound(_local13, 1);
statistics.collisions = (statistics.collisions + 1);
statistics.good_collisions = (statistics.good_collisions - 1);
if (statistics.good_collisions < 0){
statistics.good_collisions = 0;
};
_local10 = (statistics.good_collisions + "/5");
tutorial_wnd.setText(_local10, 2);
spl_t = 0;
jump_men.flag_collision = true;
jump_men.Update(102);
jump_men.last_time_collision = curr_game_time;
t = 1;
};
};
};
};
};
};
};
if ((((((((((((_local9 == 51)) || ((_local9 == 53)))) || ((_local9 == 55)))) || ((_local9 == 57)))) || ((_local9 == 59)))) || ((_local9 == 61)))){
if (_local8._currFrame() >= _local8._totalFrames()){
curr_render.deleteRenderObject(_local8);
V_Utility.releasePoolObject(_local8);
mas_objs.splice(_local7, 1);
_local7--;
};
};
};
_local7++;
};
if (init_game){
if (spl_t < 1){
spl_t = (spl_t + (_arg1 * 2));
if (spl_t > 1){
spl_t = 1;
};
cam_pos = spline.getNode(spl_t);
curr_render.setCenterPerspective(cam_pos.x, cam_pos.y);
};
createClouds();
if (!mas_objs.length){
switch (curr_tutorial){
case 2:
if (!jump_men.flag_collision){
setPause(true);
if (statistics.good_collisions >= 5){
curr_tutorial = (curr_tutorial + 1);
};
tutorial_wnd.showWindow(curr_tutorial);
tutorial_wnd.showLabel(false);
};
break;
case 3:
setPause(true);
if (statistics.points >= 100){
curr_tutorial = (curr_tutorial + 1);
};
tutorial_wnd.showWindow(curr_tutorial);
tutorial_wnd.showLabel(false);
break;
case 4:
setPause(true);
if (statistics.passenger >= 1){
curr_tutorial = (curr_tutorial + 1);
};
tutorial_wnd.showWindow(curr_tutorial);
tutorial_wnd.showLabel(false);
break;
};
};
};
} else {
if (jump_men.getId() == 103){
_local7 = 0;
while (_local7 < mas_objs.length) {
_local8 = mas_objs[_local7];
mas_objs[_local7].obj_x = (_local8.obj_oldx + _local3);
_local8.obj_y = (_local8.obj_oldy + _local4);
_local8._draw();
_local8.obj_z = (_local8.obj_z + (_arg1 * speed));
_local7++;
};
_local7 = 0;
while (_local7 < mas_clouds.length) {
_local8 = mas_clouds[_local7];
mas_clouds[_local7].obj_x = (_local8.obj_oldx + _local3);
_local8.obj_y = (_local8.obj_oldy + _local4);
_local8._draw();
_local8.obj_z = (_local8.obj_z + (_arg1 * speed));
_local7++;
};
jump_men._draw();
jump_men.obj_z = (jump_men.obj_z - (_arg1 / 4));
if (jump_men.obj_z <= 0.3){
jump_men.Update(0);
destructor();
dispatchEvent(new Event("COMPLETE_GAME"));
};
};
};
};
if (flag_mini_games){
curr_mini_game.renderGame(_arg1);
};
curr_render.endScene();
}
private function firstClouds():void{
var _local3:V_Object;
var _local4:int;
var _local5:uint;
var _local6:Number;
var _local1:Number = 20;
var _local2:Boolean;
if (!mas_clouds.length){
_local2 = true;
} else {
if (mas_clouds[(mas_clouds.length - 1)].obj_z > 0.3){
_local2 = true;
};
};
if (_local2){
_local4 = 0;
while (_local4 < _local1) {
_local5 = (2 + Math.round((Math.random() * 2)));
_local6 = ((min_z - 0.1) + (0.02 * _local4));
_local3 = V_Utility.getPoolObject();
_local3.Update(_local5);
_local3._draw();
_local3.obj_oldx = (_local3.obj_x = (stage_width - ((Math.random() * stage_width) * 2)));
_local3.obj_oldy = (_local3.obj_y = (stage_height - ((Math.random() * stage_height) * 2)));
_local3.obj_z = _local6;
_local3.alpha = 1;
mas_clouds.push(_local3);
curr_render.addChildObject(_local3);
_local4++;
};
};
}
public function setPause(_arg1:Boolean, _arg2:Boolean=false):void{
flag_pause = _arg1;
if (!_arg1){
V_Utility.playSound(18, 0);
} else {
V_Utility.stopSound(18);
};
}
private function onMiniGameLister(_arg1:Event):void{
curr_mini_game = null;
flag_mini_games = false;
showObjects();
curr_render.removeBackgaround();
curr_render.addBackgaround(backg);
setPause(false);
}
public function mouseDown(_arg1:Number, _arg2:Number):void{
flag_down = true;
}
public function destructor():void{
var _local1:V_Object;
while (mas_objs.length) {
_local1 = (mas_objs.shift() as V_Object);
curr_render.deleteRenderObject(_local1);
V_Utility.releasePoolObject(_local1);
};
while (mas_clouds.length) {
_local1 = (mas_clouds.shift() as V_Object);
curr_render.deleteRenderObject(_local1);
V_Utility.releasePoolObject(_local1);
};
if (jump_men){
curr_render.deleteRenderObject(jump_men);
};
}
private function createClouds():void{
var _local3:V_Object;
var _local4:Number;
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local8:uint;
var _local9:uint;
var _local10:Number;
var _local1:Number = (10 + (Math.random() * 10));
var _local2:Boolean;
if (!mas_clouds.length){
_local2 = true;
} else {
if (mas_clouds[(mas_clouds.length - 1)].obj_z >= (min_z + 0.1)){
_local2 = true;
};
};
if (_local2){
_local4 = (Math.random() * ((stage_width / 2) + (dw / 2)));
if (_local4 >= 1000){
_local5 = (Math.random() * 360);
_local6 = 0;
_local7 = (360 / _local1);
_local8 = 0;
while (_local8 < _local1) {
_local6 = (_local6 + ((_local8 * _local7) + _local5));
_local6 = (_local6 * V_Utility.IN_RAD);
_local9 = (2 + Math.round((Math.random() * 2)));
_local10 = min_z;
_local10 = (_local10 - (_local8 * 0.05));
_local3 = V_Utility.getPoolObject();
_local3.Update(_local9);
_local3._draw();
_local3.obj_oldx = (_local3.obj_x = (_local4 * Math.sin(_local6)));
_local3.obj_oldy = (_local3.obj_y = (_local4 * Math.cos(_local6)));
_local3.obj_z = _local10;
_local3.alpha = 0;
mas_clouds.push(_local3);
curr_render.addChildObject(_local3);
_local8++;
};
} else {
_local8 = 0;
while (_local8 < _local1) {
_local9 = (2 + Math.round((Math.random() * 2)));
_local10 = min_z;
_local10 = (_local10 - (_local8 * 0.05));
_local3 = V_Utility.getPoolObject();
_local3.Update(_local9);
_local3._draw();
_local3.obj_oldx = (_local3.obj_x = ((stage_width + dw) - ((Math.random() * (stage_width + (dw / 2))) * 2)));
_local3.obj_oldy = (_local3.obj_y = ((stage_height + dh) - ((Math.random() * (stage_height + (dh / 2))) * 2)));
_local3.obj_z = _local10;
_local3.alpha = 0;
mas_clouds.push(_local3);
curr_render.addChildObject(_local3);
_local8++;
};
};
};
}
}
}//package
Section 91
//V_Generation_wnd (V_Generation_wnd)
package {
import flash.display.*;
import flash.text.*;
public class V_Generation_wnd extends MovieClip implements VI_Windows {
private var format:TextFormat;
public var z_txt:TextField;
public function V_Generation_wnd(){
z_txt.autoSize = TextFieldAutoSize.CENTER;
var _local1:Font = new Crash();
format = new TextFormat();
format.font = _local1.fontName;
format.size = 30;
format.color = 0xFF9900;
}
public function hide():void{
}
public function translate(_arg1:Array, _arg2:uint):void{
z_txt.text = _arg1[30][_arg2];
z_txt.setTextFormat(format);
}
public function renderFunc(_arg1:Number):void{
}
public function show():void{
}
}
}//package
Section 92
//V_Gori (V_Gori)
package {
import flash.display.*;
public dynamic class V_Gori extends MovieClip {
}
}//package
Section 93
//V_Gorod (V_Gorod)
package {
import flash.display.*;
public dynamic class V_Gorod extends MovieClip {
}
}//package
Section 94
//V_Help_Wnd (V_Help_Wnd)
package {
import flash.display.*;
import flash.events.*;
import flash.filters.*;
public class V_Help_Wnd extends MovieClip implements VI_Windows {
public var info_ru_mc:MovieClip;
private var info_mc:MovieClip;
public var info_eng_mc:MovieClip;
private var glow:GlowFilter;
public var z2_btn:V_Menu_Btn;
public var z_btn:V_Menu_Btn;
public function V_Help_Wnd(){
glow = new GlowFilter(2232843, 2, 2, 5, 5, BitmapFilterQuality.HIGH, false, false);
z_btn.setText("Next");
z_btn.setColors(0xFFFFFF, 0x888888);
z_btn.filters = [glow];
z2_btn.setText("Exit");
z2_btn.setColors(0xFFFFFF, 0x888888);
z2_btn.filters = [glow];
z_btn.addEventListener(MouseEvent.MOUSE_DOWN, onLister);
z2_btn.addEventListener(MouseEvent.MOUSE_DOWN, onLister);
info_ru_mc.visible = false;
info_mc = info_eng_mc;
}
public function show():void{
}
public function translate(_arg1:Array, _arg2:uint):void{
z_btn.setText(_arg1[6][_arg2]);
z2_btn.setText(_arg1[7][_arg2]);
if (_arg2 == 0){
info_ru_mc.visible = false;
info_mc = info_eng_mc;
info_mc.visible = true;
} else {
if (_arg2 == 1){
info_eng_mc.visible = false;
info_mc = info_ru_mc;
info_mc.visible = true;
};
};
}
public function hide():void{
}
private function onLister(_arg1:MouseEvent):void{
switch (_arg1.currentTarget.name){
case "z_btn":
info_mc.nextFrame();
break;
case "z2_btn":
dispatchEvent(new Event("CLOSE_HELP"));
break;
};
}
public function renderFunc(_arg1:Number):void{
}
}
}//package
Section 95
//V_Interface_wnd (V_Interface_wnd)
package {
import flash.display.*;
public class V_Interface_wnd extends MovieClip implements VI_Windows {
public var c1_mc:V_Counter;
private var mas_points_objs:Array;
private var lastPoints:uint;// = 0
private var statistics:Object;
private var mas_parawut_objs:Array;
public var c2_mc:V_Counter;
private var mas_hp:Array;
public var bck_mc:MovieClip;
public var hp_mc:hpmeter;
public var path_mc:MovieClip;
public var marker_mc:marker;
public function V_Interface_wnd(){
mas_hp = new Array(1, 6, 11, 16, 21, 26, 31, 36, 41, 46, 51);
super();
bck_mc.mouseEnabled = false;
this.mouseEnabled = false;
trace(c1_mc);
c1_mc.init(3);
c2_mc.init(8);
c2_mc.x = ((550 - c2_mc.width) - 10);
hp_mc.visible = false;
}
private function checkPoint():void{
if (statistics.points > 9999999){
statistics.points = 9999999;
};
if (statistics.points < 0){
statistics.points = 0;
};
if (lastPoints < statistics.points){
if ((((statistics.points >= 100)) && ((lastPoints < 100)))){
statistics.parashut = (statistics.parashut + 1);
V_Utility.playSound(7, 1);
};
if ((((statistics.points >= 300)) && ((lastPoints < 300)))){
statistics.parashut = (statistics.parashut + 1);
V_Utility.playSound(7, 1);
};
if ((((statistics.points >= 600)) && ((lastPoints < 600)))){
statistics.parashut = (statistics.parashut + 1);
V_Utility.playSound(7, 1);
};
if ((((statistics.points >= 1000)) && ((lastPoints < 1000)))){
statistics.parashut = (statistics.parashut + 1);
V_Utility.playSound(7, 1);
};
if ((((statistics.points >= 1500)) && ((lastPoints < 1500)))){
statistics.parashut = (statistics.parashut + 1);
V_Utility.playSound(7, 1);
};
if ((((statistics.points >= 3000)) && ((lastPoints < 3000)))){
statistics.parashut = (statistics.parashut + 1);
V_Utility.playSound(7, 1);
};
if ((((statistics.points >= 6000)) && ((lastPoints < 6000)))){
statistics.parashut = (statistics.parashut + 1);
V_Utility.playSound(7, 1);
};
if ((((statistics.points >= 9000)) && ((lastPoints < 9000)))){
statistics.parashut = (statistics.parashut + 1);
V_Utility.playSound(7, 1);
};
if ((((statistics.points >= 18000)) && ((lastPoints < 18000)))){
statistics.parashut = (statistics.parashut + 1);
V_Utility.playSound(7, 1);
};
lastPoints = statistics.points;
};
}
public function hide():void{
}
public function setHp(_arg1:int):void{
if (mas_hp[_arg1]){
hp_mc.gotoAndPlay(mas_hp[_arg1]);
};
}
public function showProgressLevel(_arg1:Boolean):void{
path_mc.visible = (marker_mc.visible = _arg1);
hp_mc.visible = !(_arg1);
}
public function refresh():void{
lastPoints = 0;
}
public function setStatistics(_arg1:Object):void{
statistics = _arg1;
checkPoint();
setPoints();
setParawuts();
}
public function setProgress(_arg1:Number):void{
var _local2:Number = (24 + ((324 - 24) * _arg1));
marker_mc.y = _local2;
}
public function getStatistics():Object{
return (statistics);
}
private function setPoints():void{
if (statistics.points > 9999999){
statistics.points = 9999999;
};
if (statistics.points < 0){
statistics.points = 0;
};
var _local1:String = statistics.points;
c2_mc.setValue(_local1);
}
public function collision():void{
c2_mc.showBack();
}
public function renderFunc(_arg1:Number):void{
c1_mc.calc(_arg1);
c2_mc.calc(_arg1);
}
public function show():void{
}
private function setParawuts():void{
if (statistics.parashut > 999){
statistics.parashut = 999;
};
if (statistics.parashut < 0){
statistics.parashut = 0;
};
var _local1:String = statistics.parashut;
c1_mc.setValue(_local1);
}
}
}//package
Section 96
//V_IntroLogo (V_IntroLogo)
package {
import flash.display.*;
import flash.events.*;
import flash.net.*;
public class V_IntroLogo extends MovieClip {
public function V_IntroLogo(){
addFrameScript(0, frame1);
this.addEventListener(MouseEvent.MOUSE_DOWN, onCLick);
if (language.portal == "family"){
this.gotoAndStop(1);
};
if (language.portal == "tweens"){
this.gotoAndStop(3);
};
if (language.portal == "girl"){
this.gotoAndStop(2);
};
if (language.portal == "game_com_cn"){
this.gotoAndStop(4);
};
if (language.portal == "teen"){
this.gotoAndStop(5);
};
}
private function onCLick(_arg1:MouseEvent){
var _local2:URLRequest;
if (int(language.language_nr) == 2){
_local2 = new URLRequest(language.url1);
} else {
_local2 = new URLRequest(((language.url1 + "&utm_content=") + _arg1.currentTarget.name));
};
navigateToURL(_local2, "_blank");
}
function frame1(){
this.stop();
}
}
}//package
Section 97
//V_Jump_db (V_Jump_db)
package {
import flash.display.*;
public dynamic class V_Jump_db extends MovieClip {
}
}//package
Section 98
//V_Jump_rb (V_Jump_rb)
package {
import flash.display.*;
public dynamic class V_Jump_rb extends MovieClip {
}
}//package
Section 99
//V_Jumper (V_Jumper)
package {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.filters.*;
import flash.net.*;
public class V_Jumper extends MovieClip {
private var game2:V_MiniGame2;
private var game3:V_MiniGame3;
private var lib:V_Librarry;
private var first_type_game:int;// = 0
private var tutorial_wnd:V_Tutorial_wnd;
private var menu_wnd:V_Menu_Wnd;
private var curr_mission:int;// = 0
private var mas_wnd:Array;
private var render:V_Render;
private var table_langs:Array;
private var lang_wnd:V_Lang_Wnd;
private var survive_game:V_SurvivalGame;
private var generating_wnd:V_Generation_wnd;
private var first_flag:Boolean;// = false
private var mission_wnd:V_Mission_Wnd;
private var about_wnd:V_About;
private var id_timeout:Number;// = 0
private var save_pass_wnd:V_Save_pssanger_wnd;
private var inserts_wnd_flag:Boolean;// = false
private var ref_wnd:VI_Windows;
private var mission_complete_wnd:V_Mission_Complete;
private var flagLibrarry:Boolean;// = false
private var crash_wnd:V_Crasheffect_Wnd;
private var sound_lib:V_SoundLibrarry;
private var curr_game:VI_Game;
private var achiv_wnd:V_Achivments_wnd;
private var colorf:ColorMatrixFilter;
private var flag_game:Boolean;// = false
private var interface_wnd:V_Interface_wnd;
private var pause_label:V_GameLabel;
private var intro:V_IntroLogo;
private var tutorial:V_GameTutorial;
private var help_wnd:V_Help_Wnd;
private var erLogo:ERLogo;
private var game1:V_Game;
private static const GENERATING_WND:uint = 7;
private static const INTERFACE_WND:uint = 5;
private static const SAVE_PASS_WND:uint = 9;
private static const MISSION_COMPLETE_WND:uint = 6;
private static const TUTORIAL_WND:uint = 10;
private static const MENU_WND:uint = 0;
private static const HELP_WND:uint = 2;
private static const ACHIV_WND:uint = 11;
private static const CRASH_WND:uint = 8;
private static const MISSION_WND:uint = 1;
private static const ABOUT_WND:uint = 4;
private static const LANG_WND:uint = 3;
public function V_Jumper(){
mas_wnd = new Array();
table_langs = new Array();
super();
menu_wnd = new V_Menu_Wnd();
menu_wnd.name = "menu_wnd";
menu_wnd.visible = false;
mas_wnd.push(menu_wnd);
mission_wnd = new V_Mission_Wnd();
mission_wnd.name = "mission_wnd";
mission_wnd.visible = false;
mas_wnd.push(mission_wnd);
help_wnd = new V_Help_Wnd();
help_wnd.name = "help_wnd";
help_wnd.visible = false;
mas_wnd.push(help_wnd);
lang_wnd = new V_Lang_Wnd();
lang_wnd.name = "lang_wnd";
lang_wnd.visible = false;
mas_wnd.push(lang_wnd);
about_wnd = new V_About();
about_wnd.name = "about_wnd";
about_wnd.visible = false;
mas_wnd.push(about_wnd);
interface_wnd = new V_Interface_wnd();
interface_wnd.name = "interface_wnd";
interface_wnd.visible = false;
mas_wnd.push(interface_wnd);
mission_complete_wnd = new V_Mission_Complete();
mission_complete_wnd.name = "mission_complete_wnd";
mission_complete_wnd.visible = false;
mas_wnd.push(mission_complete_wnd);
generating_wnd = new V_Generation_wnd();
generating_wnd.name = "generating_wnd";
generating_wnd.visible = false;
mas_wnd.push(generating_wnd);
crash_wnd = new V_Crasheffect_Wnd();
crash_wnd.name = "crash_wnd";
crash_wnd.visible = false;
mas_wnd.push(crash_wnd);
save_pass_wnd = new V_Save_pssanger_wnd();
save_pass_wnd.name = "save_pass_wnd";
save_pass_wnd.visible = false;
mas_wnd.push(save_pass_wnd);
tutorial_wnd = new V_Tutorial_wnd();
tutorial_wnd.name = "tutorial_wnd";
tutorial_wnd.visible = false;
mas_wnd.push(tutorial_wnd);
achiv_wnd = new V_Achivments_wnd();
achiv_wnd.name = "V_Achivments_wnd";
achiv_wnd.visible = false;
achiv_wnd.x = 275;
achiv_wnd.y = 200;
mas_wnd.push(achiv_wnd);
menu_wnd.addEventListener("START_GAME", onWindowLister);
menu_wnd.addEventListener("HIDE_WND", onWindowLister);
menu_wnd.addEventListener("SHOW_HELP", onWindowLister);
menu_wnd.addEventListener("SHOW_ABOUT", onWindowLister);
menu_wnd.addEventListener("SHOW_LANG", onWindowLister);
menu_wnd.addEventListener("SHOW_WND_LANG", onWindowLister);
menu_wnd.addEventListener("MORE_GAMES", onWindowLister);
menu_wnd.addEventListener("SURVIVE_GAME", onWindowLister);
lang_wnd.addEventListener("CLOSE_WINDOW", onWindowLister);
lang_wnd.addEventListener("SHOW_MENU", onWindowLister);
lang_wnd.addEventListener("SEL_ENGLISH", onWindowLister);
lang_wnd.addEventListener("SEL_RUSSIAN", onWindowLister);
mission_wnd.addEventListener("START_MISSION", onWindowLister);
mission_wnd.addEventListener("GOTO_MENU", onWindowLister);
mission_wnd.addEventListener("SHOW_ACHIVMENTS", onWindowLister);
about_wnd.addEventListener("GOTO_MENU", onWindowLister);
help_wnd.addEventListener("CLOSE_HELP", onWindowLister);
crash_wnd.addEventListener("CLOSE", onWindowLister);
crash_wnd.addEventListener("ON_PAUSE", onWindowLister);
crash_wnd.addEventListener("OFF_PAUSE", onWindowLister);
save_pass_wnd.addEventListener("CLOSE", onWindowLister);
save_pass_wnd.addEventListener("ON_PAUSE", onWindowLister);
save_pass_wnd.addEventListener("OFF_PAUSE", onWindowLister);
mission_complete_wnd.addEventListener("GOTO_MISSION_WND", onWindowLister);
this.addEventListener(Event.ADDED_TO_STAGE, onLister);
pause_label = new V_GameLabel();
addChild(pause_label);
var _local1:Array = new Array();
_local1 = _local1.concat([0.3086, 0.6094, 0.082, 0, 0]);
_local1 = _local1.concat([0.3086, 0.6094, 0.082, 0, 0]);
_local1 = _local1.concat([0.3086, 0.6094, 0.082, 0, 0]);
_local1 = _local1.concat([0, 0, 0, 1, 0]);
colorf = new ColorMatrixFilter(_local1);
fillTableLangs();
createSoundsLib();
loadGameParameters();
}
private function startGame():void{
showWindow(MENU_WND);
V_Utility.playSound(19, int.MAX_VALUE);
pause_label.visible = false;
inserts_wnd_flag = false;
}
private function fillTableLangs():void{
table_langs[0] = ["Start Game", "Играть"];
table_langs[1] = ["Scores", "Очки"];
table_langs[2] = ["Tutorial", "Обучение"];
table_langs[3] = ["Lang", "Язык"];
table_langs[4] = ["About", "Авторы"];
table_langs[5] = ["More Games", "Больше игр"];
table_langs[6] = ["Next", "Далее"];
table_langs[7] = ["Exit", "Выход"];
table_langs[8] = ["English", "Английский"];
table_langs[9] = ["Russian", "Русский"];
table_langs[10] = ["Menu", "Меню"];
table_langs[11] = ["Mission", "Миссия"];
table_langs[12] = ["Difficulty", "Сложность"];
table_langs[13] = ["easy", "легкая"];
table_langs[14] = ["normal", "нормальная"];
table_langs[15] = ["hard", "сложная"];
table_langs[16] = ["Best Score", "Лучший счет"];
table_langs[17] = ["Task", "Задача"];
table_langs[18] = ["skypoints", "очков"];
table_langs[19] = ["passengers", "пассажиров"];
table_langs[20] = ["without collisions", "без столкновенний"];
table_langs[211] = ["gold teddy bears", "плюшевых медведей"];
table_langs[21] = ["very hard", "очень сложная"];
table_langs[22] = ["Game design", "Гейм дизайн"];
table_langs[23] = ["Art", "Арт"];
table_langs[24] = ["Programmer", "Программирование"];
table_langs[25] = ["Music", "Музыка"];
table_langs[26] = ["Давид Арамян", "Давид Арамян"];
table_langs[27] = ["Сергей Голденок", "Сергей Голденок"];
table_langs[28] = ["Давид Арамян", "Давид Арамян"];
table_langs[29] = ["Josh Kemp (Kelwynshade)", "Josh Kemp (Kelwynshade)"];
table_langs[30] = ["Loading... Please stand by...", "Загрузка... Пожалуйста, оставайтесь с нами..."];
table_langs[31] = ["- Click here to continue -", "- Нажми, чтобы продолжить -"];
table_langs[32] = ["Obstacles has avoided", "Препятствий избежал"];
table_langs[33] = ["Skypoints has collected", "Очков собранно"];
table_langs[34] = ["Rescued passengers", "Пассажиров спасено"];
table_langs[35] = ["Achievements", "Достижения"];
table_langs[36] = ["Close", "Закрыть"];
table_langs[37] = ["New Achievment Unlocked!", "Открыт новый Ачивмент!"];
table_langs[38] = ["Total score:", "Общий счет:"];
table_langs[39] = ["Submit", "Отправить"];
table_langs[40] = ["a David Aramyan Game", "игра Давида Арамян"];
table_langs[41] = ["Developed by: Evil Rat Studio", "Разработано: Evil Rat Studio"];
table_langs[42] = ["Gamedesign by: David Aramyan", "Геймдизайн: Давид Арамян"];
table_langs[43] = ["Art by: Sergii Goldenok & Akira ", "Арт: Сергей Голденок и Akira"];
table_langs[44] = ["Coded by: Viktor Hranovskiy ", "Программирование: Виктор Храновский"];
table_langs[45] = ["Music by: Josh Kemp (Kelwynshade) ", "Музыка: Josh Kemp (Kelwynshade)"];
table_langs[46] = ["Pause ", "Пауза"];
table_langs[47] = ["Has completed level without collisions ", "Прошел уровень без единого столкновения"];
table_langs[48] = ["Has saved all passengers in one level ", "Спас всех пассажиров на уровне"];
table_langs[49] = ["Has completed the game ", "Прошел всю игру"];
table_langs[50] = ["Has completed all additional tasks ", "Выполнил все дополнительные задания"];
table_langs[51] = ["Has collected all teddy bears in the game ", "Собрал всех мишек в игре"];
table_langs[52] = ["Has saved all passengers in the game ", "Спас всех пассажиров в игре"];
table_langs[53] = ["Has collected about 200 000 skypoints in the game ", "Набрал 200 000 очков в игре"];
table_langs[54] = ["Has killed all flies in the game ", "Убил всех мух в игре"];
table_langs[55] = ["Stunt man. Has completed all stunt sections without any collision ", "Трюкач. Прошел все трюковые участки без единого столкновения"];
table_langs[56] = ["Has finished the game on 101% - completed all additional tasks, collected all achievements, and finished all missions ", "Прошел игру на 101% - выполнил все дополнительные задания, собрал все ачивменты, прошел все миссии"];
table_langs[57] = ["Surviving", "Выживание"];
table_langs[58] = ["Only available on A10.com", "Доступно только на A10.com"];
translate_windows(0);
}
private function createGame(_arg1:int):void{
V_Utility.stopSound(19);
if (!flagLibrarry){
showWindow(GENERATING_WND);
first_type_game = _arg1;
id_timeout = setTimeout(loadLibrarryTimeOut, 1000, _arg1);
} else {
createTimeOutGame(_arg1);
};
}
private function onERLogo(_arg1):void{
startGame();
removeChild(erLogo);
erLogo.stop();
erLogo.logo_mc.stop();
erLogo.removeEventListener(MouseEvent.MOUSE_DOWN, onERLogo);
erLogo.removeEventListener(Event.COMPLETE, onERLogo);
}
private function onLister(_arg1:Event):void{
stage.showDefaultContextMenu = false;
stage.scaleMode = StageScaleMode.NO_SCALE;
stage.addEventListener(Event.ENTER_FRAME, onRenderFunc);
stage.addEventListener(MouseEvent.MOUSE_MOVE, onMouseListener);
stage.addEventListener(MouseEvent.MOUSE_DOWN, onMouseListener);
stage.addEventListener(MouseEvent.MOUSE_UP, onMouseListener);
stage.addEventListener(KeyboardEvent.KEY_DOWN, onKeyLister);
stage.addEventListener(KeyboardEvent.KEY_UP, onKeyLister);
pause_label.y = (200 - (pause_label.height / 2));
mission_wnd.iniSubmiter(stage);
}
private function createSoundsLib():void{
sound_lib = new V_SoundLibrarry();
sound_lib.loadSound(0, new Arr_001());
sound_lib.loadSound(1, new Arr_002());
sound_lib.loadSound(2, new Arr_003());
sound_lib.loadSound(3, new Bonus_bonus());
sound_lib.loadSound(4, new Bonus_combo());
sound_lib.loadSound(5, new Bonus_mission_enter());
sound_lib.loadSound(6, new Bonus_mission_exit());
sound_lib.loadSound(7, new Bonus_new_parashute());
sound_lib.loadSound(8, new Cut_scenes());
sound_lib.loadSound(9, new Faster());
sound_lib.loadSound(10, new Hit_easy_001());
sound_lib.loadSound(11, new Hit_easy_002());
sound_lib.loadSound(12, new Hit_strong());
sound_lib.loadSound(13, new MouseClickSelection());
sound_lib.loadSound(14, new MouseOverSelections());
sound_lib.loadSound(15, new Punch());
sound_lib.loadSound(16, new Thnx_001());
sound_lib.loadSound(17, new Thnx_002());
sound_lib.loadSound(18, new Wind_loop());
sound_lib.loadSound(19, new MenuTheme(), 0.7);
sound_lib.loadSound(20, new MountainsTheme(), 0.7);
sound_lib.loadSound(21, new PrecipiceTheme(), 0.7);
sound_lib.loadSound(22, new ForestTheme(), 0.7);
sound_lib.loadSound(23, new CityTheme(), 0.7);
sound_lib.loadSound(24, new BonusStageTheme(), 0.7);
V_Utility.ref_slib = sound_lib;
}
private function onGameLister(_arg1:Event):void{
switch (_arg1.type){
case "COMPLETE_GAME":
V_Utility.playSound(19, int.MAX_VALUE);
hideWindow(INTERFACE_WND);
showWindow(MISSION_COMPLETE_WND);
mission_complete_wnd.setResults(interface_wnd.getStatistics());
mission_wnd.setResults(interface_wnd.getStatistics());
achiv_wnd.setVisibleElements(mission_complete_wnd.getAchivLockeds());
mission_wnd.setAchivs(mission_complete_wnd.getAchivLockeds());
saveGameParameters();
curr_game = null;
break;
case "SHOW_CRASH":
showWindow(CRASH_WND);
inserts_wnd_flag = true;
break;
case "SAVE_PASSENGER":
showWindow(SAVE_PASS_WND);
inserts_wnd_flag = true;
break;
case "MUHA_MINIGAME":
if (curr_mission >= 0){
removeChild(game1);
} else {
removeChild(survive_game);
};
createMiniGame(0);
break;
case "EVEN_MINIGAME3":
if (curr_mission >= 0){
removeChild(game1);
} else {
removeChild(survive_game);
};
createMiniGame(1);
break;
case "END_GAME_MUHA":
removeChild(game2);
if (curr_mission >= 0){
addChildAt(game1, 0);
curr_game = game1;
} else {
addChildAt(survive_game, 0);
curr_game = survive_game;
};
curr_game.setPause(false);
break;
case "END_GAME_3":
removeChild(game3);
if (curr_mission >= 0){
addChildAt(game1, 0);
curr_game = game1;
} else {
addChildAt(survive_game, 0);
curr_game = survive_game;
};
curr_game.setPause(false);
break;
case "TUTORIAL_COMPLETE":
hideWindow(INTERFACE_WND);
hideWindow(TUTORIAL_WND);
removeChild(tutorial);
if (first_type_game == -2){
showWindow(MENU_WND);
} else {
showWindow(MISSION_WND);
};
first_flag = true;
first_type_game = 0;
break;
};
}
public function loadGameParameters():void{
var _local2:Array;
var _local1:SharedObject = SharedObject.getLocal("Jumper2_3.save");
if (_local1.data._save != undefined){
first_flag = true;
_local2 = _local1.data._save.split("@");
mission_wnd.setValues(_local2);
mission_complete_wnd.setAchiveLockeds(_local2);
achiv_wnd.setVisibleElements(mission_complete_wnd.getAchivLockeds());
mission_wnd.setAchivs(mission_complete_wnd.getAchivLockeds());
};
}
private function _urlMoraGames():void{
clearTimeout(id_timeout);
navigateToURL(new URLRequest("http://www.flashgamelicense.com"), "_blank");
}
public function initGame():void{
intro = new V_IntroLogo();
addChild(intro);
intro.x = 275;
intro.y = 200;
intro.scaleX = (intro.scaleY = 0.82);
setTimeout(showERLogo, 2000);
}
private function createMiniGame(_arg1:uint):void{
stage.focus = stage;
switch (_arg1){
case 0:
if (!game2){
game2 = new V_MiniGame2();
game2.addEventListener("END_GAME_MUHA", onGameLister);
};
addChildAt(game2, 0);
curr_game = game2;
curr_game.init(interface_wnd);
break;
case 1:
if (!game3){
game3 = new V_MiniGame3();
game3.addEventListener("END_GAME_3", onGameLister);
};
addChildAt(game3, 0);
curr_game = game3;
curr_game.init(interface_wnd);
break;
};
}
private function translate_windows(_arg1:uint):void{
menu_wnd.translate(table_langs, _arg1);
help_wnd.translate(table_langs, _arg1);
lang_wnd.translate(table_langs, _arg1);
mission_wnd.translate(table_langs, _arg1);
about_wnd.translate(table_langs, _arg1);
mission_complete_wnd.translate(table_langs, _arg1);
generating_wnd.translate(table_langs, _arg1);
tutorial_wnd.translate(table_langs, _arg1);
achiv_wnd.translate(table_langs, _arg1);
pause_label.setText(table_langs[46][_arg1]);
}
private function showERLogo():void{
removeChild(intro);
erLogo = new ERLogo();
addChild(erLogo);
erLogo.gotoAndPlay(2);
erLogo.x = 275;
erLogo.y = 200;
erLogo.scaleX = (erLogo.scaleY = 0.82);
erLogo.logo_mc.gotoAndPlay(2);
erLogo.addEventListener(MouseEvent.MOUSE_DOWN, onERLogo);
erLogo.addEventListener(Event.COMPLETE, onERLogo);
}
private function createTimeOutGame(_arg1:int):void{
stage.focus = stage;
if (id_timeout){
hideWindow(GENERATING_WND);
clearTimeout(id_timeout);
};
curr_mission = _arg1;
var _local2:Object = new Object();
if (_arg1 >= 0){
if (!game1){
interface_wnd.showProgressLevel(true);
game1 = new V_Game();
game1.addEventListener("COMPLETE_GAME", onGameLister);
game1.addEventListener("SHOW_CRASH", onGameLister);
game1.addEventListener("SAVE_PASSENGER", onGameLister);
game1.addEventListener("MUHA_MINIGAME", onGameLister);
game1.addEventListener("EVEN_MINIGAME3", onGameLister);
addChildAt(game1, 0);
};
if (!game1.parent){
addChildAt(game1, 0);
};
curr_game = game1;
} else {
if (game1){
if (game1.parent){
removeChild(game1);
};
};
if (_arg1 == -1){
if (!tutorial){
tutorial = new V_GameTutorial();
tutorial.addEventListener("TUTORIAL_COMPLETE", onGameLister);
};
showWindow(TUTORIAL_WND);
curr_game = tutorial;
addChildAt(tutorial, 0);
_local2.tutorial = tutorial_wnd;
} else {
if (_arg1 == -2){
interface_wnd.showProgressLevel(false);
if (!survive_game){
survive_game = new V_SurvivalGame();
survive_game.addEventListener("COMPLETE_GAME", onGameLister);
survive_game.addEventListener("SHOW_CRASH", onGameLister);
survive_game.addEventListener("SAVE_PASSENGER", onGameLister);
survive_game.addEventListener("MUHA_MINIGAME", onGameLister);
survive_game.addEventListener("EVEN_MINIGAME3", onGameLister);
};
if (!survive_game.parent){
addChildAt(survive_game, 0);
};
curr_game = survive_game;
};
};
};
_local2.stage_w = stage.stageWidth;
_local2.stage_h = stage.stageHeight;
_local2.mission = (_arg1 + 1);
_local2.ref_int = interface_wnd;
ref_wnd = interface_wnd;
curr_game.init(_local2);
flag_game = true;
}
private function onRenderFunc(_arg1:Event):void{
if (interface_wnd){
interface_wnd.renderFunc(0);
};
if (ref_wnd){
ref_wnd.renderFunc(0);
};
if (mission_wnd.visible){
mission_wnd.renderFunc(0);
};
if (((flag_game) && (curr_game))){
curr_game.renderGame(0);
};
}
private function showWindow(_arg1:uint):void{
if (!mas_wnd[_arg1].visible){
mas_wnd[_arg1].visible = true;
addChild(mas_wnd[_arg1]);
if (_arg1 != INTERFACE_WND){
ref_wnd = mas_wnd[_arg1];
ref_wnd.show();
};
};
}
private function hideWindow(_arg1:uint):void{
if (mas_wnd[_arg1].visible){
mas_wnd[_arg1].visible = false;
removeChild(mas_wnd[_arg1]);
};
}
public function saveGameParameters():void{
var _local1:SharedObject = SharedObject.getLocal("Jumper2_3.save");
var _local2:* = (mission_wnd.serialize() + achiv_wnd.serialize());
_local1.data._save = _local2;
}
private function onWindowLister(_arg1:Event):void{
switch (_arg1.currentTarget.name){
case "menu_wnd":
switch (_arg1.type){
case "START_GAME":
menu_wnd.hide();
break;
case "SHOW_HELP":
hideWindow(MENU_WND);
createGame(-1);
break;
case "SURVIVE_GAME":
trace("SURVIVE_GAME");
hideWindow(MENU_WND);
showWindow(INTERFACE_WND);
createGame(-2);
break;
case "SHOW_LANG":
menu_wnd.hide();
break;
case "HIDE_WND":
hideWindow(MENU_WND);
if (first_flag){
showWindow(MISSION_WND);
} else {
showWindow(INTERFACE_WND);
createGame(1);
};
break;
case "SHOW_WND_LANG":
hideWindow(MENU_WND);
showWindow(LANG_WND);
break;
case "SHOW_ABOUT":
showWindow(ABOUT_WND);
break;
case "MORE_GAMES":
break;
};
break;
case "mission_wnd":
switch (_arg1.type){
case "START_MISSION":
hideWindow(MISSION_WND);
showWindow(INTERFACE_WND);
createGame(mission_wnd.getSelectMission());
break;
case "GOTO_MENU":
hideWindow(MISSION_WND);
showWindow(MENU_WND);
break;
case "SHOW_ACHIVMENTS":
showWindow(ACHIV_WND);
break;
};
break;
case "help_wnd":
hideWindow(HELP_WND);
break;
case "lang_wnd":
switch (_arg1.type){
case "CLOSE_WINDOW":
lang_wnd.hide();
break;
case "SHOW_MENU":
showWindow(MENU_WND);
hideWindow(LANG_WND);
break;
case "SEL_ENGLISH":
translate_windows(0);
break;
case "SEL_RUSSIAN":
translate_windows(1);
break;
};
break;
case "about_wnd":
hideWindow(ABOUT_WND);
break;
case "mission_complete_wnd":
flag_game = false;
hideWindow(MISSION_COMPLETE_WND);
if (curr_mission >= 0){
showWindow(MISSION_WND);
} else {
showWindow(MENU_WND);
};
break;
case "crash_wnd":
switch (_arg1.type){
case "ON_PAUSE":
curr_game.setPause(true, true);
inserts_wnd_flag = true;
break;
case "OFF_PAUSE":
curr_game.setPause(false, true);
inserts_wnd_flag = false;
break;
default:
hideWindow(CRASH_WND);
break;
};
break;
case "save_pass_wnd":
switch (_arg1.type){
case "ON_PAUSE":
curr_game.setPause(true, true);
inserts_wnd_flag = true;
break;
case "OFF_PAUSE":
curr_game.setPause(false, true);
inserts_wnd_flag = false;
break;
default:
hideWindow(SAVE_PASS_WND);
break;
};
break;
};
}
private function fillLibrarry():void{
if (!lib){
flagLibrarry = true;
lib = new V_Librarry();
V_Utility.ref_lib = lib;
lib.loadLibrarry(new V_JumperMen(), 0, false, 1);
lib.loadLibrarry(new V_JumperMen2(), 1, false, 1);
lib.loadLibrarry(new V_Jumper_right(), 100, false, 1);
lib.loadLibrarry(new V_Jumper_left(), 101, false, 1);
lib.loadLibrarry(new V_JumperCollision(), 102, false, 1);
lib.loadLibrarry(new V_Parawut(), 103, false, 1);
lib.loadLibrarry(new V_Jumper_dwn(), 104, false, 1);
lib.loadLibrarry(new V_Cloud1(), 2, true);
lib.loadLibrarry(new V_Cloud2(), 3, true);
lib.loadLibrarry(new V_Cloud3(), 4, true);
lib.loadLibrarry(new V_Armatura1(), 5, true);
lib.loadLibrarry(new V_Armatura2(), 6, true);
lib.loadLibrarry(new V_Armatura3(), 7, true);
lib.loadLibrarry(new V_Armatura4(), 8, true);
lib.loadLibrarry(new V_Armatura5(), 9, true);
lib.loadLibrarry(new V_Balon(), 10, true);
lib.loadLibrarry(new V_Dver(), 11, true);
lib.loadLibrarry(new V_Dver2(), 12, true);
lib.loadLibrarry(new V_Kolesa(), 13, true);
lib.loadLibrarry(new V_Kreslo(), 14, true);
lib.loadLibrarry(new V_Kreslo2(), 15, true);
lib.loadLibrarry(new V_Lestnica(), 16, true);
lib.loadLibrarry(new V_Lestnica2(), 17, true);
lib.loadLibrarry(new V_Oblomok(), 18, true);
lib.loadLibrarry(new V_Oblomok2(), 19, true);
lib.loadLibrarry(new V_Oblomok3(), 20, true);
lib.loadLibrarry(new V_Ognetushitel(), 21, true);
lib.loadLibrarry(new V_Polka(), 22, true);
lib.loadLibrarry(new V_Rama(), 23, true);
lib.loadLibrarry(new V_Shesteronka(), 24, true);
lib.loadLibrarry(new V_Shesteronka2(), 25, true);
lib.loadLibrarry(new V_Shpala(), 26, true);
lib.loadLibrarry(new V_Truba(), 27, true);
lib.loadLibrarry(new V_Truba2(), 28, true);
lib.loadLibrarry(new V_Vint(), 29, true);
lib.loadLibrarry(new V_Mishka1(), 50, true);
lib.loadLibrarry(new V_Mishka_kill(), 51, true);
lib.loadLibrarry(new V_score5(), 52, true);
lib.loadLibrarry(new V_score5_kill(), 53, true);
lib.loadLibrarry(new V_score10(), 54, true);
lib.loadLibrarry(new V_score10_kill(), 55, true);
lib.loadLibrarry(new V_score25(), 56, true);
lib.loadLibrarry(new V_score25kill(), 57, true);
lib.loadLibrarry(new V_score50(), 58, true);
lib.loadLibrarry(new V_score50kill(), 59, true);
lib.loadLibrarry(new V_score75(), 60, true);
lib.loadLibrarry(new V_score75kill(), 61, true);
lib.loadLibrarry(new V_Passenger1(), 62);
lib.loadLibrarry(new V_Passenger2(), 63);
lib.loadLibrarry(new V_Passenger3(), 64);
lib.loadLibrarry(new V_Passenger4(), 65);
lib.loadLibrarry(new V_Parawuts(), 66);
lib.loadLibrarry(new V_Combo(), 67);
lib.loadLibrarry(new V_Mg1(), 70);
lib.loadLibrarry(new V_Mg2(), 71);
lib.loadLibrarry(new V_Mg3(), 72);
lib.loadLibrarry(new V_JumperM2(), 90);
lib.loadLibrarry(new V_Jumper_lb(), 91);
lib.loadLibrarry(new V_Jump_db(), 92);
lib.loadLibrarry(new V_Jump_rb(), 93);
lib.loadLibrarry(new V_Muha(), 94);
lib.loadLibrarry(new V_Muha_lop(), 95);
lib.loadLibrarry(new V_Bbox(), 96);
};
}
private function onMouseListener(_arg1:MouseEvent):void{
switch (_arg1.type){
case MouseEvent.MOUSE_MOVE:
if (curr_game){
curr_game.mouseMove(_arg1.stageX, _arg1.stageY);
};
break;
case MouseEvent.MOUSE_DOWN:
if (curr_game){
curr_game.mouseDown(_arg1.stageX, _arg1.stageY);
};
break;
case MouseEvent.MOUSE_UP:
if (curr_game){
curr_game.mouseUp(_arg1.stageX, _arg1.stageY);
};
break;
};
}
private function onKeyLister(_arg1:KeyboardEvent):void{
switch (_arg1.type){
case KeyboardEvent.KEY_DOWN:
if (_arg1.keyCode == 32){
if (((((first_flag) && (curr_game))) && (!((curr_game is V_GameTutorial))))){
if (!inserts_wnd_flag){
curr_game.setPause(!(curr_game.getPause()));
pause_label.visible = curr_game.getPause();
if (pause_label.visible){
(curr_game as Sprite).filters = [colorf];
interface_wnd.filters = [colorf];
} else {
(curr_game as Sprite).filters = [];
interface_wnd.filters = [];
};
};
};
};
trace(("key code " + _arg1.keyCode));
if (curr_game){
curr_game._onKeyDown(_arg1.keyCode);
};
break;
case KeyboardEvent.KEY_UP:
if (curr_game){
curr_game._onKeyUp(_arg1.keyCode);
};
break;
};
}
private function loadLibrarryTimeOut(_arg1:int):void{
clearTimeout(id_timeout);
fillLibrarry();
id_timeout = setTimeout(createTimeOutGame, 1000, (first_flag) ? _arg1 : -1);
}
}
}//package
Section 100
//V_Jumper_dwn (V_Jumper_dwn)
package {
import flash.display.*;
public dynamic class V_Jumper_dwn extends MovieClip {
}
}//package
Section 101
//V_Jumper_lb (V_Jumper_lb)
package {
import flash.display.*;
public dynamic class V_Jumper_lb extends MovieClip {
}
}//package
Section 102
//V_Jumper_left (V_Jumper_left)
package {
import flash.display.*;
public dynamic class V_Jumper_left extends MovieClip {
}
}//package
Section 103
//V_Jumper_right (V_Jumper_right)
package {
import flash.display.*;
public dynamic class V_Jumper_right extends MovieClip {
}
}//package
Section 104
//V_JumperCollision (V_JumperCollision)
package {
import flash.display.*;
public dynamic class V_JumperCollision extends MovieClip {
}
}//package
Section 105
//V_JumperM2 (V_JumperM2)
package {
import flash.display.*;
public dynamic class V_JumperM2 extends MovieClip {
}
}//package
Section 106
//V_JumperMen (V_JumperMen)
package {
import flash.display.*;
public dynamic class V_JumperMen extends MovieClip {
}
}//package
Section 107
//V_JumperMen2 (V_JumperMen2)
package {
import flash.display.*;
public dynamic class V_JumperMen2 extends MovieClip {
}
}//package
Section 108
//V_JumperPreload (V_JumperPreload)
package {
import flash.display.*;
import flash.events.*;
import flash.text.*;
import flash.filters.*;
import flash.system.*;
public class V_JumperPreload extends MovieClip {
private var glow:GlowFilter;
private var game:MovieClip;
private var format:TextFormat;
public var z_mc:MovieClip;
private static const DOCUMENT_CLASS:String = "V_Jumper";
public function V_JumperPreload(){
Security.allowDomain("www.er-studio.ru");
Security.allowDomain("www.flashgamelicense.com");
Security.allowInsecureDomain("www.er-studio.ru");
Security.allowInsecureDomain("www.flashgamelicense.com");
super();
stop();
glow = new GlowFilter(2232843, 2, 2, 5, 5, BitmapFilterQuality.HIGH, false, false);
loaderInfo.addEventListener(ProgressEvent.PROGRESS, onProgress);
loaderInfo.addEventListener(Event.COMPLETE, onComplete);
z_mc.z_btn.setText("Start Game");
z_mc.z_btn.x = (-(z_mc.z_btn.width) / 2);
z_mc.z_btn.setColors(0xFFFFFF, 0x888888);
z_mc.z_btn.visible = false;
z_mc.z_btn.addEventListener(MouseEvent.MOUSE_DOWN, onMouseLister);
glow = new GlowFilter(2232843, 2, 2, 5, 5, BitmapFilterQuality.HIGH, false, false);
z_mc.z_btn.filters = [glow];
var _local1:Font = new Crash();
format = new TextFormat();
format.font = _local1.fontName;
format.size = 30;
z_mc.z_txt.setTextFormat(format);
z_mc.z_txt.autoSize = TextFieldAutoSize.CENTER;
}
private function createGame():void{
var _local1:Class = (loaderInfo.applicationDomain.getDefinition(DOCUMENT_CLASS) as Class);
trace(_local1);
game = new (_local1);
addChild(game);
game.initGame();
}
private function checkUrls():Boolean{
var _local1:Boolean;
_local1 = true;
return (_local1);
}
private function onProgress(_arg1:ProgressEvent):void{
var _local2:uint = _arg1.bytesLoaded;
var _local3:uint = _arg1.bytesTotal;
z_mc.z_txt.text = (("Loading... " + Math.round(((_local2 / _local3) * 100))) + "%");
}
private function onMouseLister(_arg1:MouseEvent):void{
addEventListener(Event.ENTER_FRAME, enterFrameHandler);
z_mc.z_btn.removeEventListener(MouseEvent.MOUSE_DOWN, onMouseLister);
z_mc.z_btn.filters = [];
removeChild(z_mc);
play();
}
private function onComplete(_arg1:Event):void{
if (checkUrls()){
z_mc.z_txt.visible = false;
z_mc.z_btn.visible = true;
};
}
private function enterFrameHandler(_arg1:Event):void{
trace(currentFrame);
if (currentFrame >= 3){
stop();
removeEventListener(Event.ENTER_FRAME, enterFrameHandler);
createGame();
};
}
private function correctDomain(_arg1:String):Boolean{
var _local2:String = loaderInfo.url;
trace(_local2);
var _local3:int = _local2.indexOf(_arg1);
var _local4:Boolean;
if (_local3 != -1){
_local4 = true;
};
return (_local4);
}
}
}//package
Section 109
//V_JumpM2 (V_JumpM2)
package {
import flash.display.*;
public dynamic class V_JumpM2 extends MovieClip {
public function V_JumpM2(){
addFrameScript(19, frame20, 50, frame51, 106, frame107, 166, frame167, 216, frame217, 268, frame269, 330, frame331, 384, frame385, 426, frame427, 480, frame481, 540, frame541, 606, frame607);
}
function frame481(){
gotoAndPlay(1);
}
function frame385(){
gotoAndPlay(1);
}
function frame331(){
gotoAndPlay(1);
}
function frame167(){
gotoAndPlay(1);
}
function frame269(){
gotoAndPlay(1);
}
function frame51(){
gotoAndPlay(1);
}
function frame107(){
gotoAndPlay(1);
}
function frame427(){
gotoAndPlay(1);
}
function frame607(){
gotoAndPlay(1);
}
function frame20(){
gotoAndPlay(1);
}
function frame541(){
gotoAndPlay(1);
}
function frame217(){
gotoAndPlay(1);
}
}
}//package
Section 110
//V_Kolesa (V_Kolesa)
package {
import flash.display.*;
public dynamic class V_Kolesa extends MovieClip {
}
}//package
Section 111
//V_Kreslo (V_Kreslo)
package {
import flash.display.*;
public dynamic class V_Kreslo extends MovieClip {
}
}//package
Section 112
//V_Kreslo2 (V_Kreslo2)
package {
import flash.display.*;
public dynamic class V_Kreslo2 extends MovieClip {
}
}//package
Section 113
//V_Lang_Wnd (V_Lang_Wnd)
package {
import flash.display.*;
import flash.events.*;
import fl.transitions.*;
import fl.transitions.easing.*;
public class V_Lang_Wnd extends MovieClip implements VI_Windows {
private var curr_menu_item_obj:V_Menu_Btn;
private var curr_menu_item:uint;
private var show_menu_list_tween:Tween;
private var hide_menu_list_tween:Tween;
private var menu_list:V_MenuList;
public function V_Lang_Wnd(){
menu_list = new V_MenuList();
menu_list.name = "menu_list";
menu_list.setVerticalSpace(0.8);
menu_list.addItem("English");
menu_list.addItem("Russian");
menu_list.addItem("Menu");
menu_list.addEventListener("ITEM_DOWN", onItemLister);
menu_list.addEventListener("ITEM_UP", onItemLister);
menu_list.addEventListener("ITEM_ROLL_OVER", onItemLister);
menu_list.addEventListener("ITEM_ROLL_OUT", onItemLister);
addChild(menu_list);
menu_list.y = 290;
show_menu_list_tween = new Tween(menu_list, "x", Back.easeOut, -300, 15, 1, true);
show_menu_list_tween.stop();
hide_menu_list_tween = new Tween(menu_list, "x", Back.easeIn, 15, -300, 1, true);
hide_menu_list_tween.stop();
hide_menu_list_tween.addEventListener(TweenEvent.MOTION_FINISH, onHideEvent);
}
public function renderFunc(_arg1:Number):void{
}
public function hide():void{
show_menu_list_tween.stop();
hide_menu_list_tween.start();
}
public function show():void{
hide_menu_list_tween.stop();
show_menu_list_tween.start();
}
public function translate(_arg1:Array, _arg2:uint):void{
menu_list.setNameItem(0, _arg1[8][_arg2]);
menu_list.setNameItem(1, _arg1[9][_arg2]);
menu_list.setNameItem(2, _arg1[10][_arg2]);
}
private function onHideEvent(_arg1:TweenEvent):void{
dispatchEvent(new Event("SHOW_MENU"));
}
private function onItemLister(_arg1:Event):void{
switch (_arg1.currentTarget.name){
case "menu_list":
switch (_arg1.type){
case "ITEM_DOWN":
curr_menu_item = menu_list.getEventItem();
switch (curr_menu_item){
case 0:
dispatchEvent(new Event("SEL_ENGLISH"));
break;
case 1:
dispatchEvent(new Event("SEL_RUSSIAN"));
break;
case 2:
dispatchEvent(new Event("CLOSE_WINDOW"));
break;
};
break;
};
break;
};
}
}
}//package
Section 114
//V_Lestnica (V_Lestnica)
package {
import flash.display.*;
public dynamic class V_Lestnica extends MovieClip {
}
}//package
Section 115
//V_Lestnica2 (V_Lestnica2)
package {
import flash.display.*;
public dynamic class V_Lestnica2 extends MovieClip {
}
}//package
Section 116
//V_Librarry (V_Librarry)
package {
import flash.display.*;
import flash.geom.*;
import flash.filters.*;
public class V_Librarry extends Sprite {
private var mas_objects:Array;
private var blur:BlurFilter;
public function V_Librarry(){
mas_objects = new Array();
blur = new BlurFilter(1.8, 1.8, 1.8);
super();
}
public function getFrame(_arg1:Number, _arg2:Number):BitmapData{
return (mas_objects[_arg1][_arg2]);
}
public function loadLibrarry(_arg1:MovieClip, _arg2:uint, _arg3:Boolean=false, _arg4:Number=1):void{
var _local7:BitmapData;
var _local5:Array = new Array();
_arg1.scaleX = (_arg1.scaleY = _arg4);
var _local6:uint = 1;
while (_local6 <= _arg1.totalFrames) {
_arg1.gotoAndStop(_local6);
_local7 = new BitmapData(_arg1.width, _arg1.height, true, 0);
_local7.draw(_arg1, new Matrix(_arg1.scaleX, 0, 0, _arg1.scaleY));
if (_arg3){
_local7.applyFilter(_local7, _local7.rect, new Point(0, 0), blur);
};
_local5[_local6] = _local7;
_local6++;
};
mas_objects[_arg2] = _local5;
}
public function countFrames(_arg1:uint):Number{
return ((mas_objects[_arg1].length - 1));
}
public function v_Librarry(){
}
}
}//package
Section 117
//V_Menu_Btn (V_Menu_Btn)
package {
import flash.display.*;
import flash.events.*;
import flash.text.*;
public class V_Menu_Btn extends MovieClip {
public var caption:TextField;
private var hint:String;// = ""
public var hint_mc:MovieClip;
private var out_color:uint;// = 0
private var format:TextFormat;
private var over_color:uint;// = 0xFFFFFF
public var but_btn:SimpleButton;
public function V_Menu_Btn(){
caption.autoSize = TextFieldAutoSize.LEFT;
but_btn.addEventListener(MouseEvent.MOUSE_DOWN, onLister);
but_btn.addEventListener(MouseEvent.MOUSE_MOVE, onLister);
but_btn.addEventListener(MouseEvent.MOUSE_UP, onLister);
but_btn.addEventListener(MouseEvent.ROLL_OVER, onLister);
but_btn.addEventListener(MouseEvent.ROLL_OUT, onLister);
but_btn.width = caption.width;
hint_mc.mouseEnabled = false;
hint_mc.hint_txt.mouseEnabled = false;
hint_mc.hint_txt.autoSize = TextFieldAutoSize.LEFT;
if (hint_mc.parent){
hint_mc.parent.removeChild(hint_mc);
};
format = new TextFormat();
}
private function setHint(_arg1:String):void{
hint_mc.hint_txt.text = _arg1;
hint_mc.back_mc.width = (hint_mc.hint_txt.width + 4);
hint_mc.back_mc.height = (hint_mc.hint_txt.height + 4);
}
private function onLister(_arg1:MouseEvent):void{
switch (_arg1.type){
case MouseEvent.MOUSE_DOWN:
V_Utility.playSound(13, 1);
dispatchEvent(new Event("ITEM_DOWN"));
break;
case MouseEvent.MOUSE_UP:
dispatchEvent(new Event("ITEM_UP"));
break;
case MouseEvent.MOUSE_MOVE:
dispatchEvent(new Event("ITEM_MOVE"));
break;
case MouseEvent.ROLL_OUT:
caption.textColor = out_color;
showHint(false);
dispatchEvent(new Event("ITEM_ROLL_OUT"));
break;
case MouseEvent.ROLL_OVER:
V_Utility.playSound(14, 1);
caption.textColor = over_color;
showHint(true);
dispatchEvent(new Event("ITEM_ROLL_OVER"));
break;
};
}
private function showHint(_arg1:Boolean):void{
if (!hint.length){
return;
};
if (_arg1){
showHint(false);
addChild(hint_mc);
hint_mc.y = but_btn.height;
hint_mc.x = 20;
} else {
if (hint_mc.parent){
hint_mc.parent.removeChild(hint_mc);
};
};
}
public function setText(_arg1:String):void{
caption.text = _arg1;
caption.setTextFormat(format);
but_btn.width = caption.width;
}
public function set Hint(_arg1:String):void{
hint = _arg1;
setHint(_arg1);
}
public function get Hint():String{
return (hint);
}
public function setColors(_arg1:uint, _arg2:uint):void{
out_color = _arg2;
over_color = _arg1;
caption.textColor = out_color;
}
public function getText():String{
return (caption.text);
}
}
}//package
Section 118
//V_Menu_Wnd (V_Menu_Wnd)
package {
import flash.display.*;
import flash.events.*;
import fl.transitions.*;
import fl.transitions.easing.*;
import flash.net.*;
public class V_Menu_Wnd extends MovieClip implements VI_Windows {
private var currLang:int;// = 0
private var currTable:Array;
private var logo_btn:V_SponsorLogo;
private var GENERATE_MSG:String;// = ""
private var curr_menu_item_obj:V_Menu_Btn;
private var curr_menu_item:uint;
private var show_menu_list_tween:Tween;
private var hide_menu_list_tween:Tween;
private var menu_list:V_MenuList;
public function V_Menu_Wnd(){
trace(1);
menu_list = new V_MenuList();
menu_list.name = "menu_list";
menu_list.setVerticalSpace(0.8);
menu_list.addItem("Start Game");
menu_list.addItem("Surviving");
menu_list.addItem("Scores");
menu_list.addItem("Help");
menu_list.addItem("Lang");
menu_list.addItem("About");
logo_btn = new V_SponsorLogo();
menu_list.addChild(logo_btn);
logo_btn.x = (103 * 0.6);
logo_btn.y = 205;
logo_btn.scaleX = (logo_btn.scaleY = 0.6);
menu_list.addEventListener("ITEM_DOWN", onItemLister);
menu_list.addEventListener("ITEM_UP", onItemLister);
menu_list.addEventListener("ITEM_ROLL_OVER", onItemLister);
menu_list.addEventListener("ITEM_ROLL_OUT", onItemLister);
addChild(menu_list);
menu_list.y = 155;
menu_list.x = 15;
show_menu_list_tween = new Tween(menu_list, "x", Back.easeOut, -300, 15, 1, true);
show_menu_list_tween.stop();
hide_menu_list_tween = new Tween(menu_list, "x", Back.easeIn, 15, -300, 1, true);
hide_menu_list_tween.stop();
hide_menu_list_tween.addEventListener(TweenEvent.MOTION_FINISH, onHideEvent);
addEventListener(Event.ADDED_TO_STAGE, onAdded);
}
public function hide():void{
show_menu_list_tween.stop();
hide_menu_list_tween.start();
}
public function translate(_arg1:Array, _arg2:uint):void{
menu_list.setNameItem(0, _arg1[0][_arg2]);
menu_list.setNameItem(1, _arg1[57][_arg2]);
menu_list.setNameItem(2, _arg1[1][_arg2]);
menu_list.setNameItem(3, _arg1[2][_arg2]);
menu_list.setNameItem(4, _arg1[3][_arg2]);
menu_list.setNameItem(5, _arg1[4][_arg2]);
currLang = _arg2;
currTable = _arg1;
}
private function onItemLister(_arg1:Event):void{
switch (_arg1.currentTarget.name){
case "menu_list":
switch (_arg1.type){
case "ITEM_DOWN":
curr_menu_item = menu_list.getEventItem();
switch (curr_menu_item){
case 0:
GENERATE_MSG = "HIDE_WND";
dispatchEvent(new Event("START_GAME"));
break;
case 1:
GENERATE_MSG = "SURVIVE_GAME";
hide();
break;
case 2:
navigateToURL(new URLRequest("http://www.a10.com/game/The-Jumper-2.html"));
break;
case 3:
dispatchEvent(new Event("SHOW_HELP"));
break;
case 4:
GENERATE_MSG = "SHOW_WND_LANG";
dispatchEvent(new Event("SHOW_LANG"));
break;
case 5:
dispatchEvent(new Event("SHOW_ABOUT"));
break;
case 6:
dispatchEvent(new Event("MORE_GAMES"));
break;
};
break;
case "ITEM_ROLL_OVER":
curr_menu_item = menu_list.getEventItem();
trace(curr_menu_item);
break;
case "ITEM_ROLL_OUT":
break;
};
break;
};
}
private function onHideEvent(_arg1:TweenEvent):void{
dispatchEvent(new Event(GENERATE_MSG));
}
private function onAdded(_arg1:Event):void{
if (checkDomain()){
menu_list.hideItem(2, true);
};
}
private function checkDomain():Boolean{
var _local1:Boolean;
if ((((stage.loaderInfo.url.indexOf("agame.com") == -1)) && ((stage.loaderInfo.url.indexOf("game.asia") == -1)))){
_local1 = false;
};
return (_local1);
}
public function renderFunc(_arg1:Number):void{
}
public function show():void{
trace("show");
hide_menu_list_tween.stop();
show_menu_list_tween.start();
if (((((stage) && (currTable))) && (stage))){
if (stage.loaderInfo.url.indexOf("A10.com") == -1){
menu_list.setHintItem(2, currTable[58][currLang]);
};
};
}
}
}//package
Section 119
//V_MenuList (V_MenuList)
package {
import flash.display.*;
import flash.events.*;
import flash.filters.*;
public class V_MenuList extends Sprite {
private var mas_items:Array;
private var currItem:V_Menu_Btn;
private var curr_item:int;// = -1
private var glow:GlowFilter;
private var vspace:Number;// = 1
private var hides:int;// = 0
public function V_MenuList(){
mas_items = new Array();
super();
glow = new GlowFilter(2232843, 2, 2, 5, 5, BitmapFilterQuality.HIGH, false, false);
}
private function rePosition():void{
var _local3:V_Menu_Btn;
var _local1:int = hides;
var _local2:uint;
while (_local2 < mas_items.length) {
_local3 = (mas_items[_local2] as V_Menu_Btn);
if (_local3.visible){
_local3.y = ((_local1 * _local3.height) * vspace);
_local1 = (_local1 + 1);
};
_local2++;
};
}
public function setNameItem(_arg1:uint, _arg2:String):void{
mas_items[_arg1].setText(_arg2);
}
public function setVerticalSpace(_arg1:Number):void{
vspace = _arg1;
}
public function addItem(_arg1:String):void{
var _local2:V_Menu_Btn = new V_Menu_Btn();
_local2.filters = [glow];
addChildAt(_local2, 0);
_local2.x = 0;
_local2.y = ((mas_items.length * _local2.height) * vspace);
_local2.addEventListener("ITEM_DOWN", onItemLister);
_local2.addEventListener("ITEM_UP", onItemLister);
_local2.addEventListener("ITEM_MOVE", onItemLister);
_local2.addEventListener("ITEM_ROLL_OVER", onItemLister);
_local2.addEventListener("ITEM_ROLL_OUT", onItemLister);
_local2.name = mas_items.length.toString();
_local2.setText(_arg1);
_local2.setColors(0xFFFFFF, 0x888888);
mas_items.push(_local2);
}
public function hideItem(_arg1:uint, _arg2:Boolean):void{
if (_arg2){
hides = (hides + 1);
} else {
hides = (hides - 1);
};
mas_items[_arg1].visible = !(_arg2);
rePosition();
}
public function getEventItem():uint{
return (curr_item);
}
public function getItemeObject():V_Menu_Btn{
return (currItem);
}
public function setHintItem(_arg1:uint, _arg2:String):void{
mas_items[_arg1].Hint = _arg2;
}
private function onItemLister(_arg1:Event):void{
curr_item = _arg1.currentTarget.name;
currItem = (_arg1.currentTarget as V_Menu_Btn);
dispatchEvent(_arg1);
}
}
}//package
Section 120
//V_Mg1 (V_Mg1)
package {
import flash.display.*;
public dynamic class V_Mg1 extends MovieClip {
}
}//package
Section 121
//V_Mg2 (V_Mg2)
package {
import flash.display.*;
public dynamic class V_Mg2 extends MovieClip {
}
}//package
Section 122
//V_Mg3 (V_Mg3)
package {
import flash.display.*;
public dynamic class V_Mg3 extends MovieClip {
}
}//package
Section 123
//V_MiniGame1 (V_MiniGame1)
package {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.utils.*;
public class V_MiniGame1 extends EventDispatcher implements VI_Game {
private var dh:Number;// = 200
private var stage_height:Number;// = 0
private var dw:Number;// = 200
private var ref_interface:MovieClip;
private var id_timeOut:Number;// = 0
private var dist_x:Number;// = 0
private var dist_y:Number;// = 0
private var type_m_game:uint;// = 0
private var curr_time:Number;// = 0
private var mas_objs:Array;
private var mas_clouds:Array;
private var p1:V_Point;
private var p2:V_Point;
private var curr_render:V_Render;
private var p4:V_Point;
private var stage_width:Number;// = 0
private var speed:Number;// = 0.7
private var jump_men:V_Object;
private var bonus_nums:Array;
private var ref_statistics:Object;
private var p3:V_Point;
private var general_time:Number;// = 15
private var min_z:Number;// = 0.2
private var d_x:Number;// = 0
private var d_y:Number;// = 0
private var flag_pause:Boolean;// = false
private var last_pos_x:Number;// = 0
private var last_pos_y:Number;// = 0
private var flag_game:Boolean;// = true
private var mouse_pos:Point;
private var t:Number;// = 0
private var bckg:MovieClip;
private var keyLists:Array;
public function V_MiniGame1(_arg1:V_Render){
bonus_nums = new Array(52, 54, 56, 58, 60);
mas_objs = new Array();
mas_clouds = new Array();
p1 = new V_Point();
p2 = new V_Point();
p3 = new V_Point();
p4 = new V_Point();
mouse_pos = new Point();
keyLists = new Array();
super();
curr_render = _arg1;
mas_objs = new Array();
bckg = new V_BonusFon();
}
private function getNumObj():uint{
var _local2:Number;
var _local3:uint;
var _local1:uint;
if (type_m_game){
_local2 = Math.random();
if (_local2 > 0.9){
_local1 = 50;
} else {
_local3 = Math.round((Math.random() * (bonus_nums.length - 1)));
_local1 = bonus_nums[_local3];
};
} else {
_local1 = (5 + Math.round((Math.random() * 24)));
};
return (_local1);
}
private function createSpiralPosObjs():void{
var _local13:uint;
var _local14:Number;
var _local15:V_Object;
var _local1:uint = (20 + (Math.random() * 20));
var _local2:int = Math.round((Math.random() * 4));
var _local3:Number = 0;
switch (_local2){
case 0:
_local3 = 180;
break;
case 1:
_local3 = 120;
break;
case 2:
_local3 = 140;
break;
case 3:
_local3 = 160;
break;
case 4:
_local3 = 210;
break;
};
var _local4:Number = 5;
var _local5:int = Math.round((Math.random() * 6));
var _local6:* = 0;
var _local7:uint;
switch (_local5){
case 0:
_local6 = 15;
_local7 = 1;
break;
case 1:
_local6 = 180;
_local7 = 2;
break;
case 2:
_local6 = 15;
_local7 = 1;
break;
case 3:
_local6 = 120;
_local7 = 3;
break;
default:
_local6 = 60;
_local7 = 6;
_local4 = 0;
break;
};
var _local8:Number = 0;
var _local9:Number = (Math.random() * 360);
var _local10:Number = ((stage_width / 2) - (Math.random() * stage_width));
var _local11:Number = ((stage_height / 2) - (Math.random() * stage_height));
var _local12:int;
while (_local12 < _local1) {
_local8 = (_local8 + (_local6 + _local4));
_local13 = getNumObj();
_local14 = (min_z - (Math.floor((_local12 / _local7)) * 0.08));
_local15 = V_Utility.getPoolObject();
_local15.Update(_local13);
_local15._draw();
_local15.obj_oldx = ((_local3 * Math.cos(((_local9 + _local8) * V_Utility.IN_RAD))) + _local10);
_local15.obj_oldy = ((_local3 * Math.sin(((_local9 + _local8) * V_Utility.IN_RAD))) + _local11);
_local15.obj_z = _local14;
_local15.alpha = 0;
mas_objs.push(_local15);
curr_render.addChildObject(_local15);
_local12++;
};
}
private function playSnd():void{
clearTimeout(id_timeOut);
V_Utility.playSound(9, 1);
}
public function mouseMove(_arg1:Number, _arg2:Number):void{
if (!flag_pause){
p2.x = (_arg1 - (stage_width / 2));
p2.y = (_arg2 - (stage_height / 2));
p2.x = (p2.x / jump_men.obj_z);
p2.y = (p2.y / jump_men.obj_z);
p1.x = jump_men.obj_x;
p1.y = jump_men.obj_y;
dist_x = (p2.x - p1.x);
dist_y = (p2.y - p1.y);
if (((!(jump_men.flag_collision)) && (flag_game))){
t = 0;
};
};
}
public function checkKeys():void{
var _local1:Boolean;
if (!jump_men.flag_collision){
if (keyLists[37]){
mouse_pos.x = (mouse_pos.x - 5);
_local1 = true;
if (mouse_pos.x < 0){
mouse_pos.x = 0;
};
};
if (keyLists[39]){
mouse_pos.x = (mouse_pos.x + 5);
_local1 = true;
if (mouse_pos.x > stage_width){
mouse_pos.x = stage_width;
};
};
if (keyLists[38]){
mouse_pos.y = (mouse_pos.y - 5);
_local1 = true;
if (mouse_pos.y < 0){
mouse_pos.y = 0;
};
};
if (keyLists[40]){
mouse_pos.y = (mouse_pos.y + 5);
_local1 = true;
if (mouse_pos.y > stage_height){
mouse_pos.y = stage_height;
};
};
if (_local1){
p2.x = (mouse_pos.x - (stage_width / 2));
p2.y = (mouse_pos.y - (stage_height / 2));
p2.x = (p2.x / jump_men.obj_z);
p2.y = (p2.y / jump_men.obj_z);
p1.x = jump_men.obj_x;
p1.y = jump_men.obj_y;
dist_x = (p2.x - p1.x);
dist_y = (p2.y - p1.y);
t = 0;
};
};
}
public function mouseUp(_arg1:Number, _arg2:Number):void{
}
public function init(_arg1:Object):void{
bckg;
curr_render.removeBackgaround();
curr_render.addBackgaround(bckg);
stage_width = _arg1.stage_w;
stage_height = _arg1.stage_h;
if (!jump_men){
jump_men = V_Utility.getPoolObject();
};
jump_men.Update(104);
jump_men.setPointLoop(10, 16);
jump_men._draw();
jump_men.obj_x = 0;
jump_men.obj_y = 0;
jump_men.obj_sx = 1.3;
jump_men.obj_sy = 1.3;
jump_men.flag_collision = false;
curr_render.addChildObject(jump_men);
jump_men.obj_z = _arg1.z;
jump_men.alpha = 1;
mouse_pos.x = 275;
mouse_pos.y = 200;
type_m_game = _arg1.type;
flag_game = true;
curr_time = 0;
ref_interface = _arg1.ref_interface;
ref_statistics = ref_interface.getStatistics();
id_timeOut = setTimeout(playSnd, 500);
V_Utility.playSound(24, int.MAX_VALUE);
}
private function firstClouds():void{
var _local3:V_Object;
var _local4:int;
var _local5:uint;
var _local6:Number;
var _local1:Number = 10;
var _local2:Boolean;
if (!mas_clouds.length){
_local2 = true;
} else {
if (mas_clouds[(mas_clouds.length - 1)].obj_z > 0.3){
_local2 = true;
};
};
if (_local2){
_local4 = 0;
while (_local4 < _local1) {
_local5 = (2 + Math.round((Math.random() * 2)));
_local6 = (min_z + (Math.random() * 0.4));
_local3 = V_Utility.getPoolObject();
_local3.Update(_local5);
_local3._draw();
_local3.obj_oldx = (_local3.obj_x = ((stage_width + dw) - ((Math.random() * (stage_width + (dw / 2))) * 2)));
_local3.obj_oldy = (_local3.obj_y = ((stage_height + dh) - ((Math.random() * (stage_height + (dh / 2))) * 2)));
_local3.obj_z = _local6;
_local3.alpha = 1;
mas_clouds.push(_local3);
curr_render.addChildObject(_local3);
_local4++;
};
};
}
public function renderGame(_arg1:Number):void{
var _local2:uint;
var _local3:V_Object;
var _local4:uint;
var _local5:Number;
var _local6:Number;
if (!flag_pause){
if ((((t < 1)) && (!(jump_men.flag_collision)))){
t = (t + (_arg1 * 2));
if (t > 1){
t = 1;
};
jump_men.obj_x = (p1.x + (dist_x * t));
jump_men.obj_y = (p1.y + (dist_y * t));
};
d_x = (jump_men.obj_x / (stage_width / 2));
d_y = (jump_men.obj_y / (stage_height / 2));
if (d_x > 1){
d_x = 1;
};
if (d_y > 1){
d_y = 1;
};
if (d_x < -1){
d_x = -1;
};
if (d_y < -1){
d_y = -1;
};
d_x = (d_x * (dw * -1));
d_y = (d_y * (dh * -1));
jump_men._draw();
checkKeys();
_local2 = 0;
while (_local2 < mas_clouds.length) {
_local3 = mas_clouds[_local2];
_local3.obj_x = (_local3.obj_oldx + d_x);
_local3.obj_y = (_local3.obj_oldy + d_y);
if (_local3.obj_z <= 0.7){
_local3.obj_z = (_local3.obj_z + (_arg1 * speed));
} else {
_local3.obj_z = (_local3.obj_z + ((_arg1 * speed) * 2));
};
if (_local3.obj_z >= 1){
_local3.obj_z = 1;
_local3.alpha = (_local3.alpha - (_arg1 * 4));
if (_local3.alpha < 0){
mas_clouds.splice(_local2, 1);
_local2--;
curr_render.deleteRenderObject(_local3);
V_Utility.releasePoolObject(_local3);
};
} else {
if (_local3.alpha != 1){
if (_local3.obj_z < jump_men.obj_z){
_local3.alpha = (_local3.obj_z / 0.5);
if (_local3.alpha > 1){
_local3.alpha = 1;
};
};
};
};
_local2++;
};
_local2 = 0;
while (_local2 < mas_objs.length) {
_local3 = mas_objs[_local2];
_local3.obj_x = (_local3.obj_oldx + d_x);
_local3.obj_y = (_local3.obj_oldy + d_y);
_local4 = _local3.getId();
_local3._draw();
if (_local3.obj_z <= 0.7){
_local3.obj_z = (_local3.obj_z + (_arg1 * speed));
} else {
_local3.obj_z = (_local3.obj_z + ((_arg1 * speed) * 2));
};
if (_local3.obj_z >= 1){
_local3.obj_z = 1;
_local3.alpha = (_local3.alpha - (_arg1 * 4));
if (_local3.alpha < 0){
mas_objs.splice(_local2, 1);
_local2--;
curr_render.deleteRenderObject(_local3);
V_Utility.releasePoolObject(_local3);
_local3 = null;
};
} else {
if (_local3.alpha != 1){
_local3.alpha = (_local3.obj_z / 0.5);
if (_local3.alpha >= 1){
_local3.alpha = 1;
};
};
};
if (_local3 != null){
_local5 = Math.abs((_local3.obj_z - jump_men.obj_z));
if (_local5 < 0.05){
_local6 = V_Utility.distanceEx(_local3.obj_x, _local3.obj_y, jump_men.obj_x, jump_men.obj_y);
if (_local6 < 100){
if (!jump_men.flag_collision){
if ((((((((((((_local4 == 50)) || ((_local4 == 52)))) || ((_local4 == 54)))) || ((_local4 == 56)))) || ((_local4 == 58)))) || ((_local4 == 60)))){
_local3.Update((_local4 + 1));
if (_local4 == 50){
ref_statistics.points = (ref_statistics.points + 100);
} else {
if (_local4 == 52){
ref_statistics.points = (ref_statistics.points + 5);
} else {
if (_local4 == 54){
ref_statistics.points = (ref_statistics.points + 10);
} else {
if (_local4 == 56){
ref_statistics.points = (ref_statistics.points + 25);
} else {
if (_local4 == 58){
ref_statistics.points = (ref_statistics.points + 50);
} else {
if (_local4 == 60){
ref_statistics.points = (ref_statistics.points + 75);
};
};
};
};
};
};
V_Utility.playSound(3, 1);
ref_interface.setStatistics(ref_statistics);
};
};
};
};
if ((((((((((((_local4 == 51)) || ((_local4 == 53)))) || ((_local4 == 55)))) || ((_local4 == 57)))) || ((_local4 == 59)))) || ((_local4 == 61)))){
if (_local3._currFrame() >= _local3._totalFrames()){
curr_render.deleteRenderObject(_local3);
V_Utility.releasePoolObject(_local3);
mas_objs.splice(_local2, 1);
_local2--;
};
};
};
_local2++;
};
createObjs();
curr_time = (curr_time + _arg1);
if (curr_time > general_time){
destructor();
V_Utility.playSound(6, 1);
dispatchEvent(new Event("END_GAME"));
};
};
}
private function createObjs():void{
var _local1:V_Object;
if (mas_objs.length){
_local1 = mas_objs[(mas_objs.length - 1)];
if (_local1.obj_z < (min_z + 0.1)){
return;
};
};
if (type_m_game){
createSpiralPosObjs();
} else {
createFreePosObjs();
};
}
public function setPause(_arg1:Boolean, _arg2:Boolean=false):void{
if (!_arg1){
bckg.play();
V_Utility.playSound(24, int.MAX_VALUE);
} else {
bckg.stop();
V_Utility.stopSound(24);
};
flag_pause = _arg1;
}
public function _onKeyUp(_arg1:int):void{
keyLists[_arg1] = false;
}
private function createFreePosObjs():void{
var _local3:uint;
var _local4:Number;
var _local5:V_Object;
var _local1:Number = 0;
_local1 = (20 + (Math.random() * 20));
var _local2:int;
while (_local2 < _local1) {
_local3 = getNumObj();
_local4 = (-(_local2) * 0.05);
_local5 = V_Utility.getPoolObject();
_local5.Update(_local3);
_local5._draw();
_local5.obj_oldx = (_local5.obj_x = (stage_width - ((Math.random() * stage_width) * 2)));
_local5.obj_oldy = (_local5.obj_y = (stage_height - ((Math.random() * stage_height) * 2)));
_local5.obj_z = _local4;
_local5.alpha = 0;
mas_objs.push(_local5);
curr_render.addChildObject(_local5);
_local2++;
};
}
public function getPause():Boolean{
return (flag_pause);
}
public function _onKeyDown(_arg1:int):void{
keyLists[_arg1] = true;
}
public function mouseDown(_arg1:Number, _arg2:Number):void{
}
public function destructor():void{
var _local1:V_Object;
while (mas_objs.length) {
_local1 = (mas_objs.shift() as V_Object);
curr_render.deleteRenderObject(_local1);
V_Utility.releasePoolObject(_local1);
};
while (mas_clouds.length) {
_local1 = (mas_clouds.shift() as V_Object);
curr_render.deleteRenderObject(_local1);
V_Utility.releasePoolObject(_local1);
};
if (jump_men){
curr_render.deleteRenderObject(jump_men);
};
V_Utility.stopSound(24);
}
private function createClouds():void{
var _local3:V_Object;
var _local4:Number;
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local8:uint;
var _local9:uint;
var _local10:Number;
var _local1:Number = (10 + (Math.random() * 10));
var _local2:Boolean;
if (!mas_clouds.length){
_local2 = true;
} else {
if (mas_clouds[(mas_clouds.length - 1)].obj_z >= (min_z + 0.1)){
_local2 = true;
};
};
if (_local2){
_local4 = (Math.random() * ((stage_width / 2) + (dw / 2)));
if (_local4 >= 1000){
_local5 = (Math.random() * 360);
_local6 = 0;
_local7 = (360 / _local1);
_local8 = 0;
while (_local8 < _local1) {
_local6 = (_local6 + ((_local8 * _local7) + _local5));
_local6 = (_local6 * V_Utility.IN_RAD);
_local9 = (2 + Math.round((Math.random() * 2)));
_local10 = min_z;
_local10 = (_local10 - (_local8 * 0.05));
_local3 = V_Utility.getPoolObject();
_local3.Update(_local9);
_local3._draw();
_local3.obj_oldx = (_local3.obj_x = (_local4 * Math.sin(_local6)));
_local3.obj_oldy = (_local3.obj_y = (_local4 * Math.cos(_local6)));
_local3.obj_z = _local10;
_local3.alpha = 0;
mas_clouds.push(_local3);
curr_render.addChildObject(_local3);
_local8++;
};
} else {
_local8 = 0;
while (_local8 < _local1) {
_local9 = (2 + Math.round((Math.random() * 2)));
_local10 = min_z;
_local10 = (_local10 - (_local8 * 0.05));
_local3 = V_Utility.getPoolObject();
_local3.Update(_local9);
_local3._draw();
_local3.obj_oldx = (_local3.obj_x = ((stage_width + dw) - ((Math.random() * (stage_width + (dw / 2))) * 2)));
_local3.obj_oldy = (_local3.obj_y = ((stage_height + dh) - ((Math.random() * (stage_height + (dh / 2))) * 2)));
_local3.obj_z = _local10;
_local3.alpha = 0;
mas_clouds.push(_local3);
curr_render.addChildObject(_local3);
_local8++;
};
};
};
}
}
}//package
Section 124
//V_MiniGame2 (V_MiniGame2)
package {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
public class V_MiniGame2 extends Sprite implements VI_Game {
private var lastTime:Number;
private var ref_interface:MovieClip;
private var rbtn:V_FightBtn;
private var jump:V_Object;
private var mas_objs:Array;
private var ubtn:V_FightBtn;
private var general_time:Number;// = 15
private var speed:Number;// = 150
private var last_create_obj_time:Number;// = 0
private var ref_statistics:Object;
private var b:Bitmap;
private var delta_create:Number;// = 0.75
private var flag_pause:Boolean;// = false
private var lbtn:V_FightBtn;
private var keyLists:Array;
private var mas_btns:Array;
private var game_time:Number;// = 0
public function V_MiniGame2(){
mas_objs = new Array();
keyLists = new Array();
mas_btns = new Array();
super();
b = new Bitmap();
b.bitmapData = new V_Fon2(0, 0);
addChild(b);
jump = V_Utility.getPoolObject();
addChild(jump);
jump.Update(90);
jump.x = 285;
jump.y = 200;
lbtn = new V_FightBtn();
addChild(lbtn);
lbtn.name = "lbtn";
lbtn.x = 190;
lbtn.y = 103;
rbtn = new V_FightBtn();
addChild(rbtn);
rbtn.x = 348;
rbtn.y = 149;
rbtn.rotation = 180;
rbtn.name = "rbtn";
ubtn = new V_FightBtn();
addChild(ubtn);
ubtn.x = 292;
ubtn.y = 103;
ubtn.rotation = 90;
ubtn.name = "ubtn";
ubtn.scaleX = (ubtn.scaleY = (rbtn.scaleX = (rbtn.scaleY = (lbtn.scaleX = (lbtn.scaleY = 0.78)))));
lbtn.addEventListener(MouseEvent.MOUSE_DOWN, onMouse);
rbtn.addEventListener(MouseEvent.MOUSE_DOWN, onMouse);
ubtn.addEventListener(MouseEvent.MOUSE_DOWN, onMouse);
mas_btns.push(lbtn);
mas_btns.push(rbtn);
mas_btns.push(ubtn);
}
public function destructor():void{
var _local1:V_Object;
while (mas_objs.length) {
_local1 = (mas_objs.shift() as V_Object);
removeChild(_local1);
V_Utility.releasePoolObject(_local1);
};
V_Utility.playSound(6, 1);
V_Utility.stopSound(24);
}
public function init(_arg1:Object):void{
ref_interface = (_arg1 as MovieClip);
ref_statistics = ref_interface.getStatistics();
last_create_obj_time = 0;
lastTime = getTimer();
game_time = 0;
V_Utility.playSound(24, int.MAX_VALUE);
}
public function mouseMove(_arg1:Number, _arg2:Number):void{
}
public function mouseUp(_arg1:Number, _arg2:Number):void{
}
public function renderGame(_arg1:Number):void{
var _local2:uint;
var _local3:V_Object;
var _local4:Number;
_arg1 = ((getTimer() - lastTime) / 1000);
lastTime = getTimer();
mas_btns[0].visible = false;
mas_btns[1].visible = false;
mas_btns[2].visible = false;
if (!flag_pause){
jump._draw();
if (jump.getId() != 90){
if (jump._currFrame() >= jump._totalFrames()){
jump.Update(90);
};
};
_local2 = 0;
while (_local2 < mas_objs.length) {
_local3 = mas_objs[_local2];
if (_local3.getId() != 95){
_local3.x = (_local3.x + ((_local3.obj_dir * speed) * _arg1));
};
_local3._draw();
_local4 = Math.abs((_local3.x - jump.x));
if ((((((((_local3.obj_dir > 0)) && ((_local4 <= 120)))) && (!(mas_btns[2].visible)))) && (!((_local3.getId() == 95))))){
mas_btns[0].visible = true;
};
if ((((((((_local3.obj_dir < 0)) && ((_local4 <= 120)))) && (!(mas_btns[2].visible)))) && (!((_local3.getId() == 95))))){
mas_btns[1].visible = true;
};
if (((((mas_btns[0].visible) && (mas_btns[1].visible))) && (!((_local3.getId() == 95))))){
mas_btns[0].visible = false;
mas_btns[1].visible = false;
mas_btns[2].visible = true;
};
if (_local3.getId() != 95){
if ((((_local4 <= 70)) && ((_local4 >= 30)))){
if ((((_local3.obj_dir > 0)) && ((((jump.getId() == 91)) || ((jump.getId() == 92)))))){
ref_statistics.points = (ref_statistics.points + 300);
ref_interface.setStatistics(ref_statistics);
_local3.Update(95);
V_Utility.playSound(15, 1);
} else {
if ((((_local4 <= 50)) && ((_local3.obj_dir > 0)))){
ref_statistics.points = (ref_statistics.points - 100);
ref_interface.collision();
ref_statistics.bad_minigames = (ref_statistics.bad_minigames + 1);
ref_statistics.bad_muha = (ref_statistics.bad_muha + 1);
ref_interface.setStatistics(ref_statistics);
_local3.Update(95);
V_Utility.playSound(15, 1);
};
};
if ((((_local3.obj_dir < 0)) && ((((jump.getId() == 93)) || ((jump.getId() == 92)))))){
ref_statistics.points = (ref_statistics.points + 300);
ref_interface.setStatistics(ref_statistics);
_local3.Update(95);
V_Utility.playSound(15, 1);
} else {
if ((((_local4 <= 40)) && ((_local3.obj_dir < 0)))){
ref_statistics.points = (ref_statistics.points - 100);
ref_interface.collision();
ref_statistics.bad_minigames = (ref_statistics.bad_minigames + 1);
ref_statistics.bad_muha = (ref_statistics.bad_muha + 1);
ref_interface.setStatistics(ref_statistics);
_local3.Update(95);
V_Utility.playSound(15, 1);
};
};
};
};
if ((((_local3.x > (stage.stageWidth + 200))) || ((_local3.x < -200)))){
mas_objs.splice(_local2, 1);
_local2--;
V_Utility.releasePoolObject(_local3);
removeChild(_local3);
_local3 = null;
};
if (_local3 != null){
if (_local3.getId() == 95){
if (_local3._currFrame() >= _local3._totalFrames()){
mas_objs.splice(_local2, 1);
_local2--;
V_Utility.releasePoolObject(_local3);
removeChild(_local3);
_local3 = null;
};
};
};
_local2++;
};
last_create_obj_time = (last_create_obj_time + _arg1);
if (last_create_obj_time > delta_create){
last_create_obj_time = 0;
createObject();
};
game_time = (game_time + _arg1);
if (game_time >= general_time){
destructor();
V_Utility.playSound(6, 1);
dispatchEvent(new Event("END_GAME_MUHA"));
};
};
}
public function setPause(_arg1:Boolean, _arg2:Boolean=false):void{
flag_pause = _arg1;
if (_arg1){
V_Utility.stopSound(24);
} else {
V_Utility.playSound(24, int.MAX_VALUE);
};
lastTime = getTimer();
}
private function onMouse(_arg1:MouseEvent):void{
if (!_arg1.currentTarget.visible){
return;
};
switch (_arg1.currentTarget.name){
case "lbtn":
if ((((jump.getId() == 90)) && (!(flag_pause)))){
jump.Update(91);
};
break;
case "rbtn":
if ((((jump.getId() == 90)) && (!(flag_pause)))){
jump.Update(93);
};
break;
case "ubtn":
if ((((jump.getId() == 90)) && (!(flag_pause)))){
jump.Update(92);
};
break;
};
}
public function getPause():Boolean{
return (flag_pause);
}
public function _onKeyDown(_arg1:int):void{
if (_arg1 == 37){
if ((((((((jump.getId() == 90)) && (!(flag_pause)))) && (!(keyLists[_arg1])))) && (mas_btns[0].visible))){
jump.Update(91);
};
} else {
if (_arg1 == 39){
if ((((((((jump.getId() == 90)) && (!(flag_pause)))) && (!(keyLists[_arg1])))) && (mas_btns[1].visible))){
jump.Update(93);
};
} else {
if (_arg1 == 38){
if ((((((((jump.getId() == 90)) && (!(flag_pause)))) && (!(keyLists[_arg1])))) && (mas_btns[2].visible))){
jump.Update(92);
};
};
};
};
keyLists[_arg1] = true;
}
private function createObject():void{
var _local2:V_Object;
var _local1:int = Math.round((Math.random() * 3));
switch (_local1){
case 1:
_local2 = V_Utility.getPoolObject();
addChild(_local2);
mas_objs.push(_local2);
_local2.obj_dir = 1;
_local2.Update(94);
_local2.y = 200;
_local2.x = -100;
break;
case 2:
_local2 = V_Utility.getPoolObject();
addChild(_local2);
mas_objs.push(_local2);
_local2.obj_dir = -1;
_local2.Update(94);
_local2.y = 200;
_local2.x = (stage.stageWidth + 100);
_local2.scaleX = -1;
break;
case 3:
_local2 = V_Utility.getPoolObject();
addChild(_local2);
mas_objs.push(_local2);
_local2.obj_dir = 1;
_local2.Update(94);
_local2.y = 200;
_local2.x = -100;
_local2 = V_Utility.getPoolObject();
addChild(_local2);
mas_objs.push(_local2);
_local2.obj_dir = -1;
_local2.Update(94);
_local2.y = 200;
_local2.x = (stage.stageWidth + 100);
_local2.scaleX = -1;
break;
};
}
public function mouseDown(_arg1:Number, _arg2:Number):void{
}
public function _onKeyUp(_arg1:int):void{
keyLists[_arg1] = false;
}
}
}//package
Section 125
//V_MiniGame3 (V_MiniGame3)
package {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
public class V_MiniGame3 extends Sprite implements VI_Game {
private var lastTime:Number;
private var ref_interface:MovieClip;
private var other_anims:Array;
private var right_anims:Array;
private var collision_frame:uint;// = 573
private var rbtn:V_FightBtn;
private var jump:V_JumpM2;
private var mas_objs:Array;
private var general_time:Number;// = 15
private var fon:MovieClip;
private var ubtn:V_FightBtn;
private var left_anims:Array;
private var speed:Number;// = 150
private var last_create_obj_time:Number;// = 0
private var ref_statistics:Object;
private var delta_create:Number;// = 2
private var flag_pause:Boolean;// = false
private var lbtn:V_FightBtn;
private var mas_btns:Array;
private var game_time:Number;// = 0
public function V_MiniGame3(){
mas_objs = new Array();
left_anims = new Array(21, 129, 235, 401, 497);
right_anims = new Array(79, 181, 339, 443);
other_anims = new Array(295, 295);
mas_btns = new Array();
super();
fon = new V_Fon3();
addChild(fon);
fon.x = 275;
fon.y = 200;
jump = new V_JumpM2();
addChild(jump);
jump.x = 275;
jump.y = 100;
lbtn = new V_FightBtn();
addChild(lbtn);
lbtn.name = "lbtn";
lbtn.x = 190;
lbtn.y = 13;
rbtn = new V_FightBtn();
addChild(rbtn);
rbtn.x = 348;
rbtn.y = 59;
rbtn.rotation = 180;
rbtn.name = "rbtn";
ubtn = new V_FightBtn();
addChild(ubtn);
ubtn.x = 292;
ubtn.y = 13;
ubtn.rotation = 90;
ubtn.name = "ubtn";
ubtn.scaleX = (ubtn.scaleY = (rbtn.scaleX = (rbtn.scaleY = (lbtn.scaleX = (lbtn.scaleY = 0.78)))));
lbtn.addEventListener(MouseEvent.MOUSE_DOWN, onMouse);
rbtn.addEventListener(MouseEvent.MOUSE_DOWN, onMouse);
ubtn.addEventListener(MouseEvent.MOUSE_DOWN, onMouse);
mas_btns.push(lbtn);
mas_btns.push(rbtn);
mas_btns.push(ubtn);
hideAllBtns();
}
public function init(_arg1:Object):void{
last_create_obj_time = 0;
lastTime = getTimer();
game_time = 0;
jump.gotoAndPlay(1);
ref_interface = (_arg1 as MovieClip);
ref_statistics = ref_interface.getStatistics();
fon.gotoAndPlay(1);
hideAllBtns();
V_Utility.playSound(24, int.MAX_VALUE);
}
public function mouseMove(_arg1:Number, _arg2:Number):void{
}
public function mouseUp(_arg1:Number, _arg2:Number):void{
}
public function renderGame(_arg1:Number):void{
var _local2:uint;
var _local3:V_Object;
var _local4:Number;
_arg1 = ((getTimer() - lastTime) / 1000);
lastTime = getTimer();
if (!flag_pause){
_local2 = 0;
while (_local2 < mas_objs.length) {
_local3 = mas_objs[_local2];
_local3.y = (_local3.y - (speed * _arg1));
_local3._draw();
if (!_local3.flag_collision){
_local4 = Math.abs((jump.y - _local3.y));
if ((((_local4 <= 150)) && ((((jump.currentFrame >= 1)) && ((jump.currentFrame <= 20)))))){
showRandomBtns();
};
if (_local4 <= 70){
_local3.flag_collision = true;
if ((((jump.currentFrame >= 1)) && ((jump.currentFrame <= 20)))){
hideAllBtns();
ref_statistics.points = (ref_statistics.points - 100);
ref_interface.collision();
ref_statistics.bad_minigames = (ref_statistics.bad_minigames + 1);
V_Utility.playSound(15, 1);
ref_interface.setStatistics(ref_statistics);
jump.gotoAndPlay(collision_frame);
} else {
ref_statistics.points = (ref_statistics.points + 300);
ref_interface.setStatistics(ref_statistics);
};
};
};
_local2++;
};
last_create_obj_time = (last_create_obj_time + _arg1);
if (last_create_obj_time > delta_create){
last_create_obj_time = 0;
createObject();
};
game_time = (game_time + _arg1);
if (game_time >= general_time){
destructor();
dispatchEvent(new Event("END_GAME_3"));
};
};
}
private function switchAnimation(_arg1:int):void{
var _local2:uint;
var _local3:uint;
if (!mas_btns[(_arg1 - 1)].visible){
return;
};
hideAllBtns();
switch (_arg1){
case 1:
_local3 = Math.round((Math.random() * (left_anims.length - 1)));
_local2 = left_anims[_local3];
break;
case 2:
_local3 = Math.round((Math.random() * (right_anims.length - 1)));
_local2 = right_anims[_local3];
break;
default:
_local3 = Math.round((Math.random() * (other_anims.length - 1)));
trace(_local3);
_local2 = other_anims[_local3];
break;
};
trace(_local2);
if ((((jump.currentFrame >= 1)) && ((jump.currentFrame <= 20)))){
jump.gotoAndPlay(_local2);
};
}
public function setPause(_arg1:Boolean, _arg2:Boolean=false):void{
flag_pause = _arg1;
if (!_arg1){
jump.play();
fon.play();
V_Utility.playSound(24, int.MAX_VALUE);
} else {
jump.stop();
fon.stop();
V_Utility.stopSound(24);
};
}
private function hideAllBtns():void{
mas_btns[0].visible = false;
mas_btns[1].visible = false;
mas_btns[2].visible = false;
}
private function onMouse(_arg1:MouseEvent):void{
if (!flag_pause){
if (!_arg1.currentTarget.visible){
return;
};
switch (_arg1.currentTarget.name){
case "lbtn":
switchAnimation(1);
break;
case "rbtn":
switchAnimation(2);
break;
case "ubtn":
switchAnimation(3);
break;
};
};
}
public function _onKeyDown(_arg1:int):void{
if (_arg1 == 37){
switchAnimation(1);
} else {
if (_arg1 == 39){
switchAnimation(2);
} else {
if (_arg1 == 38){
switchAnimation(3);
};
};
};
}
private function showRandomBtns():void{
var _local1:int;
if (((((!(mas_btns[0].visible)) && (!(mas_btns[1].visible)))) && (!(mas_btns[2].visible)))){
hideAllBtns();
_local1 = Math.round((Math.random() * 2));
mas_btns[_local1].visible = true;
};
}
public function getPause():Boolean{
return (flag_pause);
}
private function createObject():void{
var _local1:V_Object;
_local1 = V_Utility.getPoolObject();
addChild(_local1);
mas_objs.push(_local1);
_local1.Update(96);
_local1.y = 500;
_local1.x = 275;
}
public function mouseDown(_arg1:Number, _arg2:Number):void{
}
public function destructor():void{
var _local1:V_Object;
while (mas_objs.length) {
_local1 = (mas_objs.shift() as V_Object);
removeChild(_local1);
V_Utility.releasePoolObject(_local1);
};
V_Utility.stopSound(24);
V_Utility.playSound(6, 1);
}
public function _onKeyUp(_arg1:int):void{
}
}
}//package
Section 126
//V_Mishka_kill (V_Mishka_kill)
package {
import flash.display.*;
public dynamic class V_Mishka_kill extends MovieClip {
}
}//package
Section 127
//V_Mishka1 (V_Mishka1)
package {
import flash.display.*;
public dynamic class V_Mishka1 extends MovieClip {
}
}//package
Section 128
//V_Mission_Complete (V_Mission_Complete)
package {
import flash.display.*;
import flash.events.*;
import flash.text.*;
import flash.filters.*;
public class V_Mission_Complete extends MovieClip implements VI_Windows {
private var curr_table:Array;
private var points_to_passangers:int;// = 0
private var mission_comlets:Array;
private var achivs_locked:Array;
private var glow:GlowFilter;
public var points_txt:TextField;
private var mass_points:Array;
public var t3_mc:MovieClip;
public var z_btn:V_Menu_Btn;
private var res:Object;
private var mas_tasks:Array;
public var t2_mc:MovieClip;
public var c1_mc:V_Counter;
public var sp_logo:MovieClip;
private var checkLogo:Boolean;// = false
private var curr_langId:uint;// = 0
public var t1_mc:MovieClip;
public var achiv_txt:TextField;
private var mission_points:int;// = 0
private var format:TextFormat;
public var t4_mc:MovieClip;
public function V_Mission_Complete(){
glow = new GlowFilter(2232843, 2, 2, 5, 5, BitmapFilterQuality.HIGH, false, false);
z_btn.filters = [glow];
z_btn.setColors(0xFFFFFF, 0x888888);
z_btn.setText("Next");
z_btn.addEventListener(MouseEvent.MOUSE_DOWN, onMouseLister);
mas_tasks = new Array(t1_mc, t2_mc, t3_mc, t4_mc);
var _local1:Font = new Crash();
format = new TextFormat();
format.font = _local1.fontName;
format.size = 20;
format.color = 0xFF9900;
var _local2:uint;
while (_local2 < mas_tasks.length) {
mas_tasks[_local2].visible = false;
mas_tasks[_local2].info_txt.autoSize = TextFieldAutoSize.LEFT;
_local2++;
};
achivs_locked = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
achiv_txt.text = "";
mission_comlets = new Array(0, 0, 0, 0, 0, 0, 0);
mass_points = new Array(0, 0, 0, 0, 0, 0, 0);
c1_mc.init(1);
c1_mc.setSpeed(10);
}
public function show():void{
z_btn.visible = false;
}
public function setAchiveLockeds(_arg1:Array):void{
var _local2:int;
while (_local2 < 9) {
achivs_locked[_local2] = int(_arg1.shift());
trace(achivs_locked[_local2]);
_local2++;
};
}
private function checkAchivments(_arg1:Object):void{
achiv_txt.text = "";
if (_arg1.collisions == 0){
if (((!(achivs_locked[0])) && (_arg1.complete))){
achivs_locked[0] = 1;
setAchiveTxt();
};
};
if (_arg1.bad_passanger_level == 0){
if (((!(achivs_locked[1])) && (_arg1.complete))){
achivs_locked[1] = 1;
setAchiveTxt();
};
};
if (completGame()){
if (!achivs_locked[2]){
achivs_locked[2] = 1;
setAchiveTxt();
};
};
if (completGame()){
if ((((((_arg1.collision_all_game == 0)) && ((_arg1.bad_passanger_all_game == 0)))) && ((_arg1.bad_mishka_all_game == 0)))){
if (!achivs_locked[3]){
achivs_locked[3] = 1;
setAchiveTxt();
};
};
};
if (completGame()){
if (_arg1.bad_mishka_all_game == 0){
if (!achivs_locked[4]){
achivs_locked[4] = 1;
setAchiveTxt();
};
};
};
if (completGame()){
if (_arg1.bad_passanger_all_game == 0){
if (!achivs_locked[5]){
achivs_locked[5] = 1;
setAchiveTxt();
};
};
};
if (AllPoints() >= 200000){
if (!achivs_locked[6]){
achivs_locked[6] = 1;
setAchiveTxt();
};
};
if (completGame()){
if ((((_arg1.bad_muha == 0)) && ((_arg1.missed_muha_minigame == 0)))){
if (!achivs_locked[7]){
achivs_locked[7] = 1;
setAchiveTxt();
};
};
};
if (completGame()){
if ((((_arg1.bad_minigames == 0)) && ((_arg1.missed_minigames == 0)))){
if (!achivs_locked[8]){
achivs_locked[8] = 1;
setAchiveTxt();
};
};
};
if (completGame()){
if ((((((((((((((_arg1.bad_minigames == 0)) && ((_arg1.bad_muha == 0)))) && ((AllPoints() >= 200000)))) && ((_arg1.bad_mishka_all_game == 0)))) && ((_arg1.collision_all_game == 0)))) && ((_arg1.missed_minigames == 0)))) && ((_arg1.bad_passanger_level == 0)))){
if (!achivs_locked[9]){
achivs_locked[9] = 1;
setAchiveTxt();
};
};
};
}
public function setResults(_arg1:Object):void{
c1_mc.refresh();
var _local2:uint;
while (_local2 < mas_tasks.length) {
mas_tasks[_local2].visible = false;
mas_tasks[_local2].z_mc.visible = false;
_local2++;
};
format.size = 14;
trace(("val.curr_mission " + _arg1.curr_mission));
switch (_arg1.curr_mission){
case 1:
mas_tasks[0].info_txt.text = (((((curr_table[17][curr_langId] + ": 3 000 ") + curr_table[18][curr_langId]) + " (+5 000 ") + curr_table[18][curr_langId]) + ")");
mas_tasks[0].visible = true;
if (_arg1.points >= 3000){
_arg1.complete = true;
_arg1.points = (_arg1.points + 5000);
mas_tasks[0].z_mc.gotoAndStop(2);
} else {
mas_tasks[0].z_mc.gotoAndStop(1);
};
mas_tasks[0].z_mc.visible = true;
break;
case 2:
mas_tasks[0].info_txt.text = (((((curr_table[17][curr_langId] + ": 3 ") + curr_table[19][curr_langId]) + " (+5 000 ") + curr_table[18][curr_langId]) + ")");
mas_tasks[0].visible = true;
if (_arg1.passenger >= 3){
_arg1.complete = true;
_arg1.points = (_arg1.points + 5000);
mas_tasks[0].z_mc.gotoAndStop(2);
} else {
mas_tasks[0].z_mc.gotoAndStop(1);
};
mas_tasks[0].z_mc.visible = true;
break;
case 3:
mas_tasks[0].info_txt.text = (((((curr_table[17][curr_langId] + ": ") + curr_table[20][curr_langId]) + " (+10 000 ") + curr_table[18][curr_langId]) + ")");
mas_tasks[0].visible = true;
if (_arg1.collisions == 0){
_arg1.complete = true;
_arg1.points = (_arg1.points + 10000);
mas_tasks[0].z_mc.gotoAndStop(2);
} else {
mas_tasks[0].z_mc.gotoAndStop(1);
};
mas_tasks[0].z_mc.visible = true;
break;
case 4:
mas_tasks[0].info_txt.text = (((((curr_table[17][curr_langId] + ": 10 ") + curr_table[211][curr_langId]) + " (+10 000 ") + curr_table[18][curr_langId]) + ")");
mas_tasks[0].visible = true;
if (_arg1.mishka >= 10){
_arg1.complete = true;
_arg1.points = (_arg1.points + 10000);
mas_tasks[0].z_mc.gotoAndStop(2);
} else {
mas_tasks[0].z_mc.gotoAndStop(1);
};
mas_tasks[0].z_mc.visible = true;
break;
case 5:
mas_tasks[0].info_txt.text = (((((curr_table[17][curr_langId] + ": 10 000 ") + curr_table[18][curr_langId]) + " (+20 000 ") + curr_table[18][curr_langId]) + ")");
mas_tasks[0].visible = true;
if (_arg1.points >= 10000){
_arg1.complete = true;
_arg1.points = (_arg1.points + 20000);
mas_tasks[0].z_mc.gotoAndStop(2);
} else {
mas_tasks[0].z_mc.gotoAndStop(1);
};
mas_tasks[0].z_mc.visible = true;
break;
case 6:
mas_tasks[0].info_txt.text = (((((curr_table[17][curr_langId] + ": 20 ") + curr_table[211][curr_langId]) + " (+20 000 ") + curr_table[18][curr_langId]) + ")");
mas_tasks[0].visible = true;
if (_arg1.mishka >= 20){
_arg1.complete = true;
_arg1.points = (_arg1.points + 10000);
mas_tasks[0].z_mc.gotoAndStop(2);
} else {
mas_tasks[0].z_mc.gotoAndStop(1);
};
mas_tasks[0].z_mc.visible = true;
break;
case 7:
mas_tasks[0].info_txt.text = (((((curr_table[17][curr_langId] + ": 6 ") + curr_table[19][curr_langId]) + " (+33 000 ") + curr_table[18][curr_langId]) + ")");
mas_tasks[0].visible = true;
mas_tasks[1].info_txt.text = (((((curr_table[17][curr_langId] + ": 20 000 ") + curr_table[18][curr_langId]) + " (+33 000 ") + curr_table[18][curr_langId]) + ")");
mas_tasks[1].visible = true;
mas_tasks[2].info_txt.text = (((((curr_table[17][curr_langId] + ": ") + curr_table[20][curr_langId]) + " (+33 000 ") + curr_table[18][curr_langId]) + ")");
mas_tasks[2].visible = true;
if ((((((_arg1.passenger >= 6)) && ((_arg1.points >= 20000)))) && ((_arg1.collisions == 0)))){
_arg1.complete = true;
_arg1.points = (_arg1.points + 99000);
mas_tasks[0].z_mc.gotoAndStop(2);
mas_tasks[1].z_mc.gotoAndStop(2);
mas_tasks[2].z_mc.gotoAndStop(2);
} else {
if (_arg1.passenger < 6){
mas_tasks[0].z_mc.gotoAndStop(1);
} else {
_arg1.points = (_arg1.points + 33000);
mas_tasks[0].z_mc.gotoAndStop(2);
};
if (_arg1.points < 20000){
mas_tasks[1].z_mc.gotoAndStop(1);
} else {
_arg1.points = (_arg1.points + 33000);
mas_tasks[1].z_mc.gotoAndStop(2);
};
if (_arg1.collisions > 0){
mas_tasks[2].z_mc.gotoAndStop(1);
} else {
mas_tasks[2].z_mc.gotoAndStop(2);
_arg1.points = (_arg1.points + 33000);
};
};
mas_tasks[0].z_mc.visible = true;
mas_tasks[1].z_mc.visible = true;
mas_tasks[2].z_mc.visible = true;
break;
};
if (_arg1.curr_mission > 0){
mission_comlets[(_arg1.curr_mission - 1)] = _arg1.complete;
};
if (_arg1.complete){
if (_arg1.points > int(mass_points[(_arg1.curr_mission - 1)])){
mass_points[(_arg1.curr_mission - 1)] = int(_arg1.points);
};
};
points_txt.text = ((curr_table[1][curr_langId] + ": ") + _arg1.points.toString());
format.size = 18;
points_txt.setTextFormat(format);
c1_mc.setValue(_arg1.passenger);
points_to_passangers = (_arg1.passenger * 1000);
mission_points = _arg1.points;
_arg1.points = (_arg1.points + points_to_passangers);
if (_arg1.curr_mission > 0){
checkAchivments(_arg1);
};
}
private function setAchiveTxt():void{
achiv_txt.text = curr_table[37][curr_langId];
}
private function completGame():Boolean{
var _local1:Boolean;
var _local2:uint;
while (_local2 < mission_comlets.length) {
if (!mission_comlets[_local2]){
_local1 = false;
break;
};
_local2++;
};
return (_local1);
}
public function hide():void{
achiv_txt.text = "";
}
private function AllPoints():Number{
var _local1:Number = 0;
var _local2:uint;
while (_local2 < mass_points.length) {
_local1 = (_local1 + mass_points[_local2]);
_local2++;
};
return (_local1);
}
public function translate(_arg1:Array, _arg2:uint):void{
z_btn.setText(_arg1[6][_arg2]);
curr_table = _arg1;
curr_langId = _arg2;
}
private function onMouseLister(_arg1:MouseEvent):void{
trace(1);
dispatchEvent(new Event("GOTO_MISSION_WND"));
}
public function getAchivLockeds():Array{
return (achivs_locked);
}
public function renderFunc(_arg1:Number):void{
c1_mc.calc(_arg1);
if (points_to_passangers > 0){
points_to_passangers = (points_to_passangers - 100);
mission_points = (mission_points + 100);
points_txt.text = ((curr_table[1][curr_langId] + ": ") + mission_points.toString());
format.size = 18;
points_txt.setTextFormat(format);
} else {
if (!z_btn.visible){
z_btn.visible = true;
};
};
}
}
}//package
Section 129
//V_Mission_Wnd (V_Mission_Wnd)
package {
import flash.display.*;
import flash.events.*;
import flash.text.*;
import flash.filters.*;
public class V_Mission_Wnd extends MovieClip implements VI_Windows {
private var curr_table:Array;
public var desc_mc:MovieClip;
private var glow:GlowFilter;
private var dx:Number;// = 0
private var dy:Number;// = 0
private var miss_x:Number;// = 0
private var move_flag:Boolean;// = false
private var lastScore:Number;// = 0
private var Sub:Submitter;
private var last_selected:V_MissionItem;
private var achivs:Array;
public var submit_btn:V_Menu_Btn;
public var achivs_btn:V_Menu_Btn;
public var submit_wnd:MovieClip;
private var mas_missions:Array;
private var curr_num_mission:uint;// = 0
private var curr_langId:uint;// = 0
private var best_scores:Array;
private var last_achivs:Array;
private var t:Number;// = 0
public var total_txt:TextField;
private var miss_y:Number;// = 0
private var format:TextFormat;
public var jumper_mc:MovieClip;
public var menu_btn:V_Menu_Btn;
public function V_Mission_Wnd(){
var _local1:String;
mas_missions = new Array();
best_scores = new Array();
achivs = new Array(0, 0, 0, 0, 0, 0, 0, 0);
super();
glow = new GlowFilter(2232843, 2, 2, 5, 5, BitmapFilterQuality.HIGH, false, false);
menu_btn.filters = [glow];
menu_btn.setColors(0xFFFFFF, 0x888888);
menu_btn.setText("Menu");
menu_btn.addEventListener(MouseEvent.MOUSE_DOWN, onMouseLister);
achivs_btn.addEventListener(MouseEvent.MOUSE_DOWN, onMouseLister);
submit_btn.addEventListener(MouseEvent.MOUSE_DOWN, onMouseLister);
achivs_btn.filters = [glow];
achivs_btn.setColors(0xFFFFFF, 0x888888);
submit_btn.filters = [glow];
submit_btn.setColors(0xFFFFFF, 0x888888);
submit_wnd.submit1_btn.filters = [glow];
submit_wnd.submit1_btn.setColors(0xFFFFFF, 0x888888);
submit_wnd.submit1_btn.addEventListener(MouseEvent.MOUSE_DOWN, onMouseLister);
createMission(145, 40);
createMission(239, 60);
createMission(168, 150);
createMission(278, 160);
createMission(378, 170);
createMission(190, 280);
createMission(360, 320);
jumper_mc.visible = false;
desc_mc.visible = false;
desc_mc.info_txt.autoSize = TextFieldAutoSize.LEFT;
total_txt.mouseEnabled = false;
submit_wnd.visible = false;
Sub = new Submitter();
Sub.addEventListener(Event.COMPLETE, SubmiterComponentInitialized);
Sub.addEventListener(IOErrorEvent.IO_ERROR, FailedToLoadSubmitter);
Sub.addEventListener("LoadingFailed", FailedToLoadSubmitter);
trace("-----------------------------");
for (_local1 in Sub) {
trace(("f " + _local1));
};
trace("-----------------------------");
}
private function onMouseLister(_arg1:MouseEvent):void{
switch (_arg1.currentTarget.name){
case "menu_btn":
dispatchEvent(new Event("GOTO_MENU"));
break;
case "achivs_btn":
dispatchEvent(new Event("SHOW_ACHIVMENTS"));
break;
case "submit1_btn":
sendScores();
break;
case "submit_btn":
if (getTotalScores() != lastScore){
sendScores();
lastScore = getTotalScores();
trace(((lastScore + "~~") + getTotalScores()));
};
break;
};
}
private function onLister(_arg1:Event):void{
var _local2:uint;
switch (_arg1.type){
case "ITEM_DOWN":
curr_num_mission = _arg1.currentTarget.name;
last_selected = (_arg1.currentTarget as V_MissionItem);
jumper_mc.x = (last_selected.x - 40);
jumper_mc.y = last_selected.y;
jumper_mc.visible = true;
dispatchEvent(new Event("START_MISSION"));
break;
case "ITEM_OVER":
_local2 = uint(_arg1.currentTarget.name);
desc_mc.visible = true;
setDescrition(_local2);
break;
case "ITEM_OUT":
_local2 = uint(_arg1.currentTarget.name);
desc_mc.visible = false;
break;
};
}
public function eventHandlerAchiev(_arg1:Event):void{
if (_arg1.currentTarget.OO00OO1l1l.O1OlOO00O != null){
trace(_arg1.currentTarget.OO00OO1l1l.O1OlOO00O.toString());
} else {
trace(_arg1.type);
};
}
public function renderFunc(_arg1:Number):void{
}
private function moveJumper(_arg1:Number):void{
if (move_flag){
t = (t + _arg1);
if (t > 1){
t = 1;
move_flag = false;
dispatchEvent(new Event("START_MISSION"));
};
jumper_mc.x = (miss_x + (dx * t));
jumper_mc.y = (miss_y + (dy * t));
};
}
private function setDescrition(_arg1:int){
var _local2 = (((curr_table[11][curr_langId] + " ") + (_arg1 + 1)) + "\n");
switch (_arg1){
case 0:
_local2 = (_local2 + (((curr_table[12][curr_langId] + ": ") + curr_table[13][curr_langId]) + "\n"));
_local2 = (_local2 + (((curr_table[16][curr_langId] + ": ") + best_scores[_arg1]) + "\n"));
_local2 = (_local2 + (((((curr_table[17][curr_langId] + ": 3 000 ") + curr_table[18][curr_langId]) + " (+5 000 ") + curr_table[18][curr_langId]) + ")\n"));
desc_mc.icons_mc.gotoAndStop(3);
break;
case 1:
_local2 = (_local2 + (((curr_table[12][curr_langId] + ": ") + curr_table[13][curr_langId]) + "\n"));
_local2 = (_local2 + (((curr_table[16][curr_langId] + ": ") + best_scores[_arg1]) + "\n"));
_local2 = (_local2 + (((((curr_table[17][curr_langId] + ": 3 ") + curr_table[19][curr_langId]) + " (+5 000 ") + curr_table[18][curr_langId]) + ")\n"));
desc_mc.icons_mc.gotoAndStop(1);
break;
case 2:
_local2 = (_local2 + (((curr_table[12][curr_langId] + ": ") + curr_table[14][curr_langId]) + "\n"));
_local2 = (_local2 + (((curr_table[16][curr_langId] + ": ") + best_scores[_arg1]) + "\n"));
_local2 = (_local2 + (((((curr_table[17][curr_langId] + ": ") + curr_table[20][curr_langId]) + " (+10 000 ") + curr_table[18][curr_langId]) + ")\n"));
desc_mc.icons_mc.gotoAndStop(4);
break;
case 3:
_local2 = (_local2 + (((curr_table[12][curr_langId] + ": ") + curr_table[14][curr_langId]) + "\n"));
_local2 = (_local2 + (((curr_table[16][curr_langId] + ": ") + best_scores[_arg1]) + "\n"));
_local2 = (_local2 + (((((curr_table[17][curr_langId] + ": 10 ") + curr_table[211][curr_langId]) + " (+10 000 ") + curr_table[18][curr_langId]) + ")\n"));
desc_mc.icons_mc.gotoAndStop(2);
break;
case 4:
_local2 = (_local2 + (((curr_table[12][curr_langId] + ": ") + curr_table[15][curr_langId]) + "\n"));
_local2 = (_local2 + (((curr_table[16][curr_langId] + ": ") + best_scores[_arg1]) + "\n"));
_local2 = (_local2 + (((((curr_table[17][curr_langId] + ": 10 000 ") + curr_table[18][curr_langId]) + " (+20 000 ") + curr_table[18][curr_langId]) + ")\n"));
desc_mc.icons_mc.gotoAndStop(1);
break;
case 5:
_local2 = (_local2 + (((curr_table[12][curr_langId] + ": ") + curr_table[15][curr_langId]) + "\n"));
_local2 = (_local2 + (((curr_table[16][curr_langId] + ": ") + best_scores[_arg1]) + "\n"));
_local2 = (_local2 + (((((curr_table[17][curr_langId] + ": 20 ") + curr_table[211][curr_langId]) + " (+20 000 ") + curr_table[18][curr_langId]) + ")\n"));
desc_mc.icons_mc.gotoAndStop(3);
break;
case 6:
_local2 = (_local2 + (((curr_table[12][curr_langId] + ": ") + curr_table[21][curr_langId]) + "\n"));
_local2 = (_local2 + (((curr_table[16][curr_langId] + ": ") + best_scores[_arg1]) + "\n"));
_local2 = (_local2 + (((((curr_table[17][curr_langId] + ": 6 ") + curr_table[19][curr_langId]) + " (+33 000 ") + curr_table[18][curr_langId]) + ")\n"));
_local2 = (_local2 + (((((curr_table[17][curr_langId] + ": 20 000 ") + curr_table[18][curr_langId]) + " (+33 000 ") + curr_table[18][curr_langId]) + ")\n"));
_local2 = (_local2 + (((((curr_table[17][curr_langId] + ": ") + curr_table[20][curr_langId]) + " (+33 000 ") + curr_table[18][curr_langId]) + ")\n"));
desc_mc.icons_mc.gotoAndStop(4);
break;
};
desc_mc.info_txt.text = _local2;
}
public function setAchivs(_arg1:Array):void{
var val = _arg1;
trace("-----------------set achivs-----------");
if (achivs){
last_achivs = achivs.concat();
achivs = val;
try {
submitAchivs();
} catch(e:Error) {
trace("error send achivs ", e);
};
};
}
private function SubmiterComponentInitialized(_arg1:Event):void{
Sub.removeEventListener(Event.COMPLETE, SubmiterComponentInitialized);
Sub.removeEventListener(IOErrorEvent.IO_ERROR, FailedToLoadSubmitter);
Sub.removeEventListener("LoadingFailed", FailedToLoadSubmitter);
Sub.addEventListener("ScoreLoadError", eventHandlerScore);
Sub.addEventListener("ScoreLoadTimeComplete", eventHandlerScore);
Sub.addEventListener("ScoreLoadSubmitComplete", eventHandlerScore);
Sub.addEventListener("ScoreLoadListComplete", eventHandlerScore);
Sub.addEventListener("ScoreLoadUserListComplete", eventHandlerScore);
Sub.addEventListener("AchievLoadError", eventHandlerAchiev);
Sub.addEventListener("AchievLoadTimeComplete", eventHandlerAchiev);
Sub.addEventListener("AchievLoadListComplete", eventHandlerAchiev);
Sub.addEventListener("AchievLoadInfoComplete", eventHandlerAchiev);
Sub.addEventListener("AchievLoadGrantComplete", eventHandlerAchiev);
}
public function eventHandlerScore(_arg1:Event):void{
if (_arg1.currentTarget.OO00OO1l1l.O0l00l0O0 != null){
trace(_arg1.currentTarget.OO00OO1l1l.O0l00l0O0.toString());
} else {
trace(_arg1.type);
};
}
public function setValues(_arg1:Array):void{
var _local2:int;
while (_local2 < 7) {
best_scores[_local2] = _arg1.shift();
if (best_scores[_local2] > 0){
mas_missions[_local2].setSelected(true);
};
_local2++;
};
setTotalScore();
}
private function setTotalScore():void{
var _local1:uint = getTotalScores();
total_txt.text = ((curr_table[38][curr_langId] + " ") + _local1.toString());
}
public function getSelectMission():uint{
return (curr_num_mission);
}
public function setResults(_arg1:Object):void{
if ((((_arg1.points > best_scores[(_arg1.curr_mission - 1)])) && (_arg1.complete))){
best_scores[(_arg1.curr_mission - 1)] = _arg1.points;
mas_missions[(_arg1.curr_mission - 1)].setSelected(true);
};
setTotalScore();
}
public function hide():void{
}
public function processMethods():void{
if (Sub){
Sub._O01lOO10O(getTotalScores());
};
}
public function getCurrMission():uint{
return (curr_num_mission);
}
public function iniSubmiter(_arg1:Stage):void{
trace("stage", _arg1);
Sub._O0000Ol01(_arg1, "Jumper2", "Jumper2.html", 0, "normal", "", 0, 0, 1, true);
}
public function translate(_arg1:Array, _arg2:uint):void{
menu_btn.x = 5;
menu_btn.setText(_arg1[10][_arg2]);
achivs_btn.setText(_arg1[35][_arg2]);
submit_btn.setText(_arg1[39][_arg2]);
submit_wnd.submit1_btn.setText(_arg1[39][_arg2]);
achivs_btn.x = ((550 - achivs_btn.width) - 5);
submit_btn.x = ((550 / 2) - (submit_btn.width / 2));
submit_wnd.submit1_btn.x = submit_btn.x;
curr_langId = _arg2;
curr_table = _arg1;
setTotalScore();
}
private function showSubmitWnd():void{
submit_wnd.name_txt.text = "";
submit_wnd.visible = true;
stage.focus = submit_wnd.name_txt;
}
private function sendScores():void{
try {
processMethods();
} catch(e:Error) {
trace(e);
};
submit_wnd.visible = false;
}
private function getTotalScores():int{
var _local1:uint;
var _local2:uint;
while (_local2 < best_scores.length) {
_local1 = (_local1 + int(best_scores[_local2]));
_local2++;
};
return (_local1);
}
public function submitAchivs():void{
if (achivs){
if (((achivs[0]) && (!(last_achivs[0])))){
Sub._O00OOl1Ol("award1");
};
if (((achivs[1]) && (!(last_achivs[1])))){
Sub._O00OOl1Ol("award2");
};
if (((achivs[2]) && (!(last_achivs[2])))){
Sub._O00OOl1Ol("award3");
};
if (((achivs[6]) && (!(last_achivs[6])))){
Sub._O00OOl1Ol("award7");
};
if (((achivs[7]) && (!(last_achivs[7])))){
Sub._O00OOl1Ol("award8");
};
};
}
public function serialize():String{
var _local1 = "";
var _local2:uint;
while (_local2 < 7) {
_local1 = (_local1 + (best_scores[_local2] + "@"));
_local2++;
};
return (_local1);
}
private function FailedToLoadSubmitter(_arg1:Event):void{
Sub.removeEventListener(Event.COMPLETE, SubmiterComponentInitialized);
Sub.removeEventListener("LoadingFailed", FailedToLoadSubmitter);
}
public function destroy():void{
if (Sub){
if (Sub.hasEventListener("ScoreLoadError")){
Sub.removeEventListener("ScoreLoadError", eventHandlerScore);
};
if (Sub.hasEventListener("ScoreLoadTimeComplete")){
Sub.removeEventListener("ScoreLoadTimeComplete", eventHandlerScore);
};
if (Sub.hasEventListener("ScoreLoadSubmitComplete")){
Sub.removeEventListener("ScoreLoadSubmitComplete", eventHandlerScore);
};
if (Sub.hasEventListener("ScoreLoadListComplete")){
Sub.removeEventListener("ScoreLoadListComplete", eventHandlerScore);
};
if (Sub.hasEventListener("ScoreLoadUserListComplete")){
Sub.removeEventListener("ScoreLoadUserListComplete", eventHandlerScore);
};
if (Sub.hasEventListener("AchievLoadError")){
Sub.removeEventListener("AchievLoadError", eventHandlerAchiev);
};
if (Sub.hasEventListener("AchievLoadTimeComplete")){
Sub.removeEventListener("AchievLoadTimeComplete", eventHandlerAchiev);
};
if (Sub.hasEventListener("AchievLoadListComplete")){
Sub.removeEventListener("AchievLoadListComplete", eventHandlerAchiev);
};
if (Sub.hasEventListener("AchievLoadInfoComplete")){
Sub.removeEventListener("AchievLoadInfoComplete", eventHandlerAchiev);
};
if (Sub.hasEventListener("AchievLoadGrantComplete")){
Sub.removeEventListener("AchievLoadGrantComplete", eventHandlerAchiev);
};
Sub._O010ll111();
};
}
private function createMission(_arg1:Number, _arg2:Number):void{
var _local3:V_MissionItem = new V_MissionItem();
addChildAt(_local3, 1);
_local3.x = _arg1;
_local3.y = _arg2;
_local3.name = mas_missions.length.toString();
best_scores[mas_missions.length] = 0;
_local3.addEventListener("ITEM_DOWN", onLister);
_local3.addEventListener("ITEM_OVER", onLister);
_local3.addEventListener("ITEM_OUT", onLister);
_local3.setNumMission((mas_missions.length + 1));
mas_missions.push(_local3);
}
public function setDescriptionMission(_arg1:uint):void{
var _local2 = "";
}
public function show():void{
if (((stage) && (curr_table))){
if (stage.loaderInfo.url.indexOf("A10.com") == -1){
submit_btn.Hint = curr_table[58][curr_langId];
};
};
}
}
}//package
Section 130
//V_MissionItem (V_MissionItem)
package {
import flash.display.*;
import flash.events.*;
import flash.text.*;
public class V_MissionItem extends Sprite {
private var b:SimpleButton;
private var z_txt:TextField;
private var f2:V_Flag2;
private var f1:V_Flag1;
private var format:TextFormat;
private var selected:Boolean;// = false
public function V_MissionItem(){
f1 = new V_Flag1();
f1.scaleX = (f1.scaleY = 0.13);
f2 = new V_Flag2();
f2.scaleX = (f2.scaleY = 0.13);
addChild(f2);
var _local1:Sprite = new Sprite();
_local1.graphics.clear();
_local1.graphics.beginFill(0xFF0000);
_local1.graphics.drawRect(0, 0, 100, 100);
_local1.graphics.endFill();
z_txt = new TextField();
addChild(z_txt);
z_txt.text = "0";
z_txt.autoSize = TextFieldAutoSize.LEFT;
format = new TextFormat();
format.size = 16;
format.color = 0xFFFFFF;
format.bold = true;
z_txt.setTextFormat(format);
z_txt.y = -15;
b = new SimpleButton(_local1, _local1, _local1, _local1);
addChild(b);
_local1.alpha = 0;
_local1.height = 80;
_local1.width = 50;
_local1.x = -25;
_local1.y = -25;
b.addEventListener(MouseEvent.MOUSE_DOWN, onLister);
b.addEventListener(MouseEvent.MOUSE_UP, onLister);
b.addEventListener(MouseEvent.MOUSE_MOVE, onLister);
b.addEventListener(MouseEvent.ROLL_OVER, onLister);
b.addEventListener(MouseEvent.ROLL_OUT, onLister);
}
public function setNumMission(_arg1:Number):void{
z_txt.text = _arg1.toString();
z_txt.setTextFormat(format);
}
private function onLister(_arg1:MouseEvent):void{
switch (_arg1.type){
case MouseEvent.MOUSE_DOWN:
dispatchEvent(new Event("ITEM_DOWN"));
break;
case MouseEvent.MOUSE_UP:
dispatchEvent(new Event("ITEM_UP"));
break;
case MouseEvent.MOUSE_MOVE:
break;
case MouseEvent.ROLL_OUT:
dispatchEvent(new Event("ITEM_OUT"));
break;
case MouseEvent.ROLL_OVER:
dispatchEvent(new Event("ITEM_OVER"));
break;
};
}
public function setSelected(_arg1:Boolean):void{
if (selected != _arg1){
selected = _arg1;
if (_arg1){
removeChild(f2);
addChildAt(f1, 0);
} else {
removeChild(f1);
addChildAt(f2, 0);
};
};
}
}
}//package
Section 131
//V_Muha (V_Muha)
package {
import flash.display.*;
public dynamic class V_Muha extends MovieClip {
}
}//package
Section 132
//V_Muha_lop (V_Muha_lop)
package {
import flash.display.*;
public dynamic class V_Muha_lop extends MovieClip {
}
}//package
Section 133
//V_Object (V_Object)
package {
import flash.display.*;
import flash.geom.*;
public class V_Object extends Sprite {
public var last_time_collision:Number;// = 0
private var dir:int;// = 1
public var flag_collision:Boolean;// = false
public var del_flag:Boolean;// = false
private var loop:Boolean;// = true
public var obj_sx:Number;// = 1
public var obj_sy:Number;// = 1
private var bitmap:Bitmap;
public var obj_x:Number;// = 0
public var obj_y:Number;// = 0
public var obj_z:Number;// = 0
public var obj_dir:Number;// = 1
private var speed:Number;// = 1
private var forward:Point;
private var pointLoop:Point;
private var currFrame:uint;// = 0
private var ang:Number;// = 180
private var myId:uint;
private var IN_RAD:Number;// = 0.017453292519
private var refLib:V_Librarry;
public var obj_oldx:Number;// = 0
public var obj_oldy:Number;// = 0
public function V_Object(_arg1:V_Librarry, _arg2:uint){
forward = new Point();
pointLoop = new Point();
super();
refLib = _arg1;
myId = _arg2;
bitmap = new Bitmap();
addChild(bitmap);
_draw();
pointLoop.x = 1;
pointLoop.y = refLib.countFrames(myId);
currFrame = 0;
}
public function setAngleEX(_arg1:Number=0):void{
this.ang = _arg1;
}
public function setSpeed(_arg1:Number=1):void{
this.speed = _arg1;
}
public function getSpeed():Number{
return (this.speed);
}
public function setPointLoop(_arg1:uint, _arg2:uint):void{
pointLoop.x = _arg1;
pointLoop.y = _arg2;
}
public function _draw():void{
currFrame = (currFrame + (1 * dir));
if (loop){
if (dir > 0){
if (currFrame > pointLoop.y){
currFrame = pointLoop.x;
} else {
if (currFrame < 1){
currFrame = pointLoop.y;
};
};
};
} else {
currFrame = refLib.countFrames(myId);
};
bitmap.bitmapData = (refLib.getFrame(myId, currFrame) as BitmapData);
bitmap.x = (-(bitmap.width) / 2);
bitmap.y = (-(bitmap.height) / 2);
}
public function setLoop(_arg1:Boolean):void{
loop = _arg1;
}
public function _destructor():void{
refLib = null;
this.myId = 0;
bitmap.bitmapData = null;
}
public function setAngle(_arg1:Number=0):void{
this.ang = _arg1;
this.rotation = this.ang;
}
public function _move():void{
forward.x = Math.sin((ang * IN_RAD));
forward.y = Math.cos((ang * IN_RAD));
this.x = (this.x + (speed * forward.x));
this.y = (this.y - (speed * forward.y));
}
public function getId():uint{
return (myId);
}
public function setDir(_arg1:int):void{
dir = _arg1;
}
public function _totalFrames():Number{
return (refLib.countFrames(myId));
}
public function getDir():int{
return (dir);
}
public function _currFrame():Number{
return (this.currFrame);
}
public function Update(_arg1:uint):void{
currFrame = 0;
myId = _arg1;
pointLoop.x = 1;
pointLoop.y = refLib.countFrames(myId);
dir = 1;
_draw();
}
}
}//package
Section 134
//V_Oblomok (V_Oblomok)
package {
import flash.display.*;
public dynamic class V_Oblomok extends MovieClip {
}
}//package
Section 135
//V_Oblomok2 (V_Oblomok2)
package {
import flash.display.*;
public dynamic class V_Oblomok2 extends MovieClip {
}
}//package
Section 136
//V_Oblomok3 (V_Oblomok3)
package {
import flash.display.*;
public dynamic class V_Oblomok3 extends MovieClip {
}
}//package
Section 137
//V_Ognetushitel (V_Ognetushitel)
package {
import flash.display.*;
public dynamic class V_Ognetushitel extends MovieClip {
}
}//package
Section 138
//V_Parawut (V_Parawut)
package {
import flash.display.*;
public dynamic class V_Parawut extends MovieClip {
public function V_Parawut(){
addFrameScript(28, frame29);
}
function frame29(){
stop();
}
}
}//package
Section 139
//V_Parawuts (V_Parawuts)
package {
import flash.display.*;
public dynamic class V_Parawuts extends MovieClip {
}
}//package
Section 140
//V_Passenger1 (V_Passenger1)
package {
import flash.display.*;
public dynamic class V_Passenger1 extends MovieClip {
}
}//package
Section 141
//V_Passenger2 (V_Passenger2)
package {
import flash.display.*;
public dynamic class V_Passenger2 extends MovieClip {
}
}//package
Section 142
//V_Passenger3 (V_Passenger3)
package {
import flash.display.*;
public dynamic class V_Passenger3 extends MovieClip {
}
}//package
Section 143
//V_Passenger4 (V_Passenger4)
package {
import flash.display.*;
public dynamic class V_Passenger4 extends MovieClip {
}
}//package
Section 144
//V_Point (V_Point)
package {
public class V_Point {
public var x:Number;
public var y:Number;
public function V_Point(_arg1:Number=0, _arg2:Number=0){
this.x = _arg1;
this.y = _arg2;
}
public function printPoint():String{
return (((("x " + this.x.toString()) + " y ") + this.y.toString()));
}
}
}//package
Section 145
//V_Polka (V_Polka)
package {
import flash.display.*;
public dynamic class V_Polka extends MovieClip {
}
}//package
Section 146
//V_Propast (V_Propast)
package {
import flash.display.*;
public dynamic class V_Propast extends MovieClip {
}
}//package
Section 147
//V_Rain (V_Rain)
package {
import flash.display.*;
public dynamic class V_Rain extends MovieClip {
public var name_i:int;
public var i:int;
public function V_Rain(){
addFrameScript(130, frame131, 138, frame139);
}
function frame131(){
i = int(this.name);
i = (i - 1);
trace("i:", i, this.name);
this.name = i.toString();
if (i < 0){
i = int((Math.random() * 20));
this.name = i.toString();
gotoAndPlay(133);
} else {
gotoAndPlay(66);
};
}
function frame139(){
name_i = int(this.name);
name_i = (name_i - 1);
this.name = name_i.toString();
if (name_i < 0){
name_i = int((Math.random() * 20));
this.name = name_i.toString();
gotoAndPlay(1);
} else {
gotoAndPlay(133);
};
}
}
}//package
Section 148
//V_Rama (V_Rama)
package {
import flash.display.*;
public dynamic class V_Rama extends MovieClip {
}
}//package
Section 149
//V_Reklama (V_Reklama)
package {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
public class V_Reklama extends MovieClip {
public var adBox:MovieClip;
public var adBoxCPM:MovieClip;
public function V_Reklama(){
super();
adBoxCPM.visible = false;
V_Utility.options_showads = true;
V_Utility.options_usecmpstar = false;
V_Utility.options_usemochiad = true;
V_Utility.cpm_ads_id = "825Q17E0EFBB";
V_Utility.mochiads_id = function ():String{
return ("73875def42bae431");
};
if (!V_Utility.options_showads){
this.visible = false;
};
if (Math.random() > 0.5){
adBox.gotoAndStop(1);
} else {
adBox.gotoAndStop(2);
};
this.addEventListener(Event.ADDED_TO_STAGE, function (_arg1:Event):void{
Mochi();
});
}
private function Mochi():void{
var CPMStarContentSpotID:String;
adBox.addEventListener(MouseEvent.MOUSE_DOWN, function (_arg1:MouseEvent):void{
if (adBox.currentFrame == 1){
navigateToURL(new URLRequest("http://er-studio.ru/tales_of_crevan.html"), "_blank");
} else {
navigateToURL(new URLRequest("http://er-studio.ru/the_jumper.html"), "_blank");
};
});
if (((!(checkDomain())) && (V_Utility.options_showads))){
if (((V_Utility.options_usemochiad) && (!(V_Utility.options_usecmpstar)))){
MochiAd.showClickAwayAd({clip:adBox, id:V_Utility.mochiads_id()});
} else {
if (((!(V_Utility.options_usemochiad)) && (V_Utility.options_usecmpstar))){
CPMStarContentSpotID = V_Utility.cpm_ads_id;
loadURL(("http://server.cpmstar.com/adviewas2.swf?contentspotid=" + CPMStarContentSpotID));
} else {
if (Math.random() > 0.5){
MochiAd.showClickAwayAd({clip:adBox, id:V_Utility.mochiads_id()});
} else {
CPMStarContentSpotID = V_Utility.cpm_ads_id;
loadURL(("http://server.cpmstar.com/adviewas2.swf?contentspotid=" + CPMStarContentSpotID));
};
};
};
} else {
adBox.visible = false;
};
}
private function loadURL(_arg1:String):void{
var url = _arg1;
var loader:Loader = new Loader();
var lc:LoaderContext = new LoaderContext();
lc.checkPolicyFile = true;
lc.applicationDomain = ApplicationDomain.currentDomain;
lc.securityDomain = SecurityDomain.currentDomain;
loader.load(new URLRequest(url), lc);
setTimeout(function ():void{
adBox.visible = false;
adBoxCPM.visible = true;
}, 3000);
}
private function checkDomain():Boolean{
var _local1:Boolean;
if ((((((stage.loaderInfo.url.indexOf("kongregate.com") == -1)) && ((stage.loaderInfo.url.indexOf("agame.com") == -1)))) && ((stage.loaderInfo.url.indexOf("game.asia") == -1)))){
_local1 = false;
};
return (_local1);
}
}
}//package
Section 150
//V_Render (V_Render)
package {
import flash.display.*;
import flash.utils.*;
public class V_Render extends Sprite {
private var objectContainer:Sprite;
private var lastTime:Number;
private var cos:Number;// = 0
private var center_y:Number;// = 0
private var ref_back:MovieClip;
private var center_x:Number;// = 0
private var zmin:Number;// = 0
private var hash:Dictionary;
private var sin:Number;// = 0
private var screen_w:Number;// = 0
private var zmax:Number;// = 0
private var screen_h:Number;// = 0
private var mas_objects:Array;
private var _delta:Number;// = 0
public function V_Render(){
mas_objects = new Array();
super();
hash = new Dictionary(true);
objectContainer = new Sprite();
addChild(objectContainer);
setRotationPerspective(0);
}
public function deleteRenderObject(_arg1:V_Object):void{
if (hash[_arg1]){
hash[_arg1] = null;
delete hash[_arg1];
_arg1.visible = false;
objectContainer.removeChild(_arg1);
};
}
public function render_refresh():void{
while (objectContainer.numChildren) {
objectContainer.removeChildAt(0);
};
}
public function getDelta(){
return (_delta);
}
public function getMouseY():Number{
return (stage.mouseY);
}
public function addBackgaround(_arg1:MovieClip):void{
ref_back = _arg1;
this.addChildAt(_arg1, 0);
}
public function initRender(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number):void{
center_x = _arg3;
center_y = _arg4;
if (zmin < 0){
zmin = 0;
};
if (zmax > 1){
zmax = 1;
};
zmin = _arg5;
zmax = _arg6;
lastTime = getTimer();
}
public function getMouseX():Number{
return (stage.mouseX);
}
public function addChildObject(_arg1:V_Object):void{
if (!hash[_arg1]){
hash[_arg1] = _arg1;
_arg1.visible = false;
objectContainer.addChild(_arg1);
} else {
trace("delete");
};
}
public function removeBackgaround():void{
if (ref_back){
this.removeChild(ref_back);
};
ref_back = null;
}
public function setCenterPerspective(_arg1:Number, _arg2:Number):void{
center_x = _arg1;
center_y = _arg2;
}
public function setRotationPerspective(_arg1:Number):void{
cos = Math.cos(_arg1);
sin = Math.sin(_arg1);
}
public function endScene():void{
var _local1:V_Object;
var _local3:V_Object;
var _local4:Number;
var _local5:Number;
for each (_local1 in hash) {
if (_local1.obj_z > zmax){
_local1.visible = false;
} else {
if (_local1.obj_z < zmin){
_local1.visible = false;
} else {
_local1.visible = true;
mas_objects.push(_local1);
};
};
};
if (!mas_objects.length){
return;
};
mas_objects.sortOn("obj_z", Array.NUMERIC);
var _local2:uint;
while (_local2 < mas_objects.length) {
_local3 = (mas_objects[_local2] as V_Object);
objectContainer.setChildIndex(_local3, _local2);
_local4 = (_local3.obj_x * _local3.obj_z);
_local5 = (_local3.obj_y * _local3.obj_z);
_local3.x = (((_local4 * cos) - (_local5 * sin)) + center_x);
_local3.y = (((_local5 * cos) + (_local4 * sin)) + center_y);
_local3.scaleX = (_local3.obj_sx * _local3.obj_z);
_local3.scaleY = (_local3.obj_sy * _local3.obj_z);
_local2++;
};
}
public function beginScene():void{
_delta = ((getTimer() - lastTime) / 1000);
lastTime = getTimer();
mas_objects = [];
}
}
}//package
Section 151
//V_Save_pssanger_wnd (V_Save_pssanger_wnd)
package {
import flash.display.*;
import flash.events.*;
public class V_Save_pssanger_wnd extends MovieClip implements VI_Windows {
public var z_mc:V_Savepassenger_Wnd;
public function V_Save_pssanger_wnd(){
z_mc.addEventListener("CLOSE", lister);
z_mc.addEventListener("ON_PAUSE", lister);
z_mc.addEventListener("OFF_PAUSE", lister);
z_mc.stop();
}
private function lister(_arg1:Event):void{
dispatchEvent(_arg1.clone());
}
public function hide():void{
}
public function renderFunc(_arg1:Number):void{
}
public function show():void{
z_mc.gotoAndPlay(1);
}
}
}//package
Section 152
//V_Savepassenger_Wnd (V_Savepassenger_Wnd)
package {
import flash.display.*;
import flash.events.*;
public dynamic class V_Savepassenger_Wnd extends MovieClip {
public function V_Savepassenger_Wnd(){
addFrameScript(6, frame7, 44, frame45, 51, frame52);
}
function frame52(){
dispatchEvent(new Event("CLOSE"));
stop();
}
function frame7(){
dispatchEvent(new Event("ON_PAUSE"));
}
function frame45(){
dispatchEvent(new Event("OFF_PAUSE"));
}
}
}//package
Section 153
//V_score10 (V_score10)
package {
import flash.display.*;
public dynamic class V_score10 extends MovieClip {
}
}//package
Section 154
//V_score10_kill (V_score10_kill)
package {
import flash.display.*;
public dynamic class V_score10_kill extends MovieClip {
}
}//package
Section 155
//V_score25 (V_score25)
package {
import flash.display.*;
public dynamic class V_score25 extends MovieClip {
}
}//package
Section 156
//V_score25kill (V_score25kill)
package {
import flash.display.*;
public dynamic class V_score25kill extends MovieClip {
}
}//package
Section 157
//V_score5 (V_score5)
package {
import flash.display.*;
public dynamic class V_score5 extends MovieClip {
}
}//package
Section 158
//V_score5_kill (V_score5_kill)
package {
import flash.display.*;
public dynamic class V_score5_kill extends MovieClip {
}
}//package
Section 159
//V_score50 (V_score50)
package {
import flash.display.*;
public dynamic class V_score50 extends MovieClip {
}
}//package
Section 160
//V_score50kill (V_score50kill)
package {
import flash.display.*;
public dynamic class V_score50kill extends MovieClip {
}
}//package
Section 161
//V_score75 (V_score75)
package {
import flash.display.*;
public dynamic class V_score75 extends MovieClip {
}
}//package
Section 162
//V_score75kill (V_score75kill)
package {
import flash.display.*;
public dynamic class V_score75kill extends MovieClip {
}
}//package
Section 163
//V_Shesteronka (V_Shesteronka)
package {
import flash.display.*;
public dynamic class V_Shesteronka extends MovieClip {
}
}//package
Section 164
//V_Shesteronka2 (V_Shesteronka2)
package {
import flash.display.*;
public dynamic class V_Shesteronka2 extends MovieClip {
}
}//package
Section 165
//V_Shpala (V_Shpala)
package {
import flash.display.*;
public dynamic class V_Shpala extends MovieClip {
}
}//package
Section 166
//V_SoundLibrarry (V_SoundLibrarry)
package {
import flash.media.*;
public class V_SoundLibrarry {
private var mas_channels:Array;
private var mas_soundsTransform:Array;
private var ms_sounds:Array;
public function V_SoundLibrarry(){
ms_sounds = new Array();
mas_channels = new Array();
mas_soundsTransform = new Array();
super();
}
public function stopSound(_arg1:uint):void{
if (mas_channels[_arg1]){
mas_channels[_arg1].stop();
};
}
public function loadSound(_arg1:uint, _arg2:Sound, _arg3:Number=1):void{
ms_sounds[_arg1] = _arg2;
mas_soundsTransform[_arg1] = new SoundTransform(_arg3);
}
public function playSound(_arg1:uint, _arg2:int):void{
if ((ms_sounds[_arg1] as Sound)){
if (mas_channels[_arg1]){
mas_channels[_arg1].stop();
mas_channels[_arg1] = null;
};
mas_channels[_arg1] = (ms_sounds[_arg1] as Sound).play(0, _arg2);
mas_channels[_arg1].soundTransform = mas_soundsTransform[_arg1];
};
}
}
}//package
Section 167
//V_Spline (V_Spline)
package {
import flash.geom.*;
public class V_Spline {
private var endP:Point;
private var p1:Point;
private var p2:Point;
private var cp:Point;
private var startP:Point;
public function V_Spline(_arg1:Point, _arg2:Point, _arg3:Point, _arg4:Point){
cp = new Point();
super();
startP = _arg1;
endP = _arg2;
p1 = _arg3;
p2 = _arg4;
}
public function getNode(_arg1:Number):Point{
cp.x = (((((((1 - _arg1) * (1 - _arg1)) * (1 - _arg1)) * startP.x) + ((((3 * _arg1) * (1 - _arg1)) * (1 - _arg1)) * p1.x)) + ((((3 * _arg1) * _arg1) * (1 - _arg1)) * p2.x)) + (((_arg1 * _arg1) * _arg1) * endP.x));
cp.y = (((((((1 - _arg1) * (1 - _arg1)) * (1 - _arg1)) * startP.y) + ((((3 * _arg1) * (1 - _arg1)) * (1 - _arg1)) * p1.y)) + ((((3 * _arg1) * _arg1) * (1 - _arg1)) * p2.y)) + (((_arg1 * _arg1) * _arg1) * endP.y));
return (cp);
}
}
}//package
Section 168
//V_SponsorLogo (V_SponsorLogo)
package {
import flash.display.*;
import flash.events.*;
import flash.net.*;
public class V_SponsorLogo extends MovieClip {
public var button_levelmap:SimpleButton;
public var logo_mainscreen:MovieClip;
public var title_mc:MovieClip;
public function V_SponsorLogo(){
logo_mainscreen.gotoAndStop(45);
title_mc.gotoAndStop(1);
button_levelmap.addEventListener(MouseEvent.MOUSE_DOWN, onCLick);
}
private function onCLick(_arg1:MouseEvent){
var _local2:URLRequest;
if (int(language.language_nr) == 2){
_local2 = new URLRequest(language.url1);
} else {
_local2 = new URLRequest(((language.url1 + "&utm_content=") + _arg1.currentTarget.name));
};
navigateToURL(_local2, "_blank");
}
}
}//package
Section 169
//V_SurvivalGame (V_SurvivalGame)
package {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.utils.*;
public class V_SurvivalGame extends Sprite implements VI_Game {
private var curr_them:int;// = -1
private var curr_mini_game:VI_Game;
private var dist_x:Number;// = 0
private var dist_y:Number;// = 0
private var statistics:Object;
private var curr_game_time:Number;// = 0
private var m_game1:V_MiniGame1;
private var mas_objs:Array;
private var curr_render:V_Render;
private var curr_hp:int;// = 0
private var jump_men:V_Object;
private var speed:Number;// = 0.15
private var moveAng:Number;// = 0
private var stage_width:Number;// = 0
private var count_bonuse:uint;// = 0
private var backg:MovieClip;
private var general_game_time:Number;// = 0
private var last_pos_x:Number;// = 0
private var last_pos_y:Number;// = 0
private var flag_pause:Boolean;// = false
private var prc_combo:Number;// = 65
private var t:Number;// = 0
private var keyLists:Array;
private var curr_mission:uint;// = 0
private var lastTime:Number;// = 0
private var dh:Number;// = 200
private var flag_mini_games:Boolean;// = false
private var stage_height:Number;// = 0
private var dw:Number;// = 200
private var ref_interface:MovieClip;
private var flag_down:Boolean;// = false
private var rain:MovieClip;
private var time_combo:Number;// = 0
private var curr_step_time:Number;// = 0
private var last_dist:Number;// = 1000
private var mouse_pos:Point;
private var mas_clouds:Array;
private var init_game:Boolean;// = false
private var p2:V_Point;
private var p3:V_Point;
private var speed_step:Number;// = 0.07
private var p4:V_Point;
private var min_z:Number;// = 0.2
private var p1:V_Point;
private var bonus_nums:Array;
private var last_time:Number;
private var spline:V_Spline;
private var spl_t:Number;// = 1
private var flag_game:Boolean;// = false
private var cam_pos:Point;
private var prc_pass:Number;// = 70
private var prc_mg:Number;// = 90
public function V_SurvivalGame(){
mas_objs = new Array();
mas_clouds = new Array();
mouse_pos = new Point();
p1 = new V_Point();
p2 = new V_Point();
p3 = new V_Point();
p4 = new V_Point();
bonus_nums = new Array(52, 54, 56, 58, 60);
statistics = new Object();
keyLists = new Array();
super();
trace("VGame");
curr_render = new V_Render();
addChild(curr_render);
curr_render.initRender(550, 400, (550 / 2), (400 / 2), 0.2, 1);
trace("/VGame");
spline = new V_Spline(new Point(275, 200), new Point(275, 200), new Point(475, 100), new Point(175, 300));
statistics.points = 0;
statistics.parashut = 0;
statistics.passenger = 0;
statistics.mishka = 0;
statistics.collisions = 0;
statistics.curr_mission = 0;
statistics.complete = false;
rain = new V_Rain();
rain.x = 270;
rain.y = 200;
rain.stop();
}
private function createSpiralPosObjs():void{
var _local13:uint;
var _local14:Number;
var _local15:Number;
var _local16:V_Object;
var _local1:uint = (30 + (Math.random() * 20));
var _local2:int = Math.round((Math.random() * 4));
var _local3:Number = 0;
switch (_local2){
case 0:
_local3 = 180;
break;
case 1:
_local3 = 120;
break;
case 2:
_local3 = 140;
break;
case 3:
_local3 = 200;
break;
case 4:
_local3 = 240;
break;
};
var _local4:Number = (5 + (Math.random() * 5));
var _local5:int = Math.round((Math.random() * 6));
var _local6:* = 0;
var _local7:uint;
switch (_local5){
case 0:
_local6 = 15;
_local7 = 1;
break;
case 1:
_local6 = 180;
_local7 = 2;
break;
case 2:
_local6 = 15;
_local7 = 1;
break;
case 3:
_local6 = 120;
_local7 = 3;
break;
default:
_local6 = 60;
_local7 = 6;
_local4 = 0;
break;
};
var _local8:Number = 0;
var _local9:Number = (Math.random() * 360);
var _local10:Number = ((stage_width / 2) - (Math.random() * stage_width));
var _local11:Number = ((stage_height / 2) - (Math.random() * stage_height));
var _local12:int;
while (_local12 < _local1) {
_local8 = (_local8 + (_local6 + _local4));
_local13 = getBonusNumObj();
_local14 = Math.random();
if (curr_mission <= 2){
if (_local14 >= 0.98){
_local13 = getNumObj();
};
} else {
if ((((curr_mission > 2)) && ((curr_mission <= 6)))){
if (_local14 >= 0.96){
_local13 = getNumObj();
};
} else {
if (_local14 >= 0.94){
_local13 = getNumObj();
};
};
};
_local15 = (min_z - (Math.floor((_local12 / _local7)) * 0.08));
_local16 = V_Utility.getPoolObject();
_local16.Update(_local13);
_local16._draw();
_local16.obj_oldx = ((_local3 * Math.cos(((_local9 + _local8) * V_Utility.IN_RAD))) + _local10);
_local16.obj_oldy = ((_local3 * Math.sin(((_local9 + _local8) * V_Utility.IN_RAD))) + _local11);
_local16.obj_z = _local15;
_local16.alpha = 0;
mas_objs.push(_local16);
curr_render.addChildObject(_local16);
_local12++;
};
}
private function createMiniGame(_arg1:int):void{
if (!m_game1){
m_game1 = new V_MiniGame1(curr_render);
m_game1.addEventListener("END_GAME", onMiniGameLister);
};
rain.visible = false;
curr_mini_game = m_game1;
flag_mini_games = true;
var _local2:Object = new Object();
_local2.stage_w = stage_width;
_local2.stage_h = stage_height;
_local2.z = jump_men.obj_z;
_local2.type = 1;
_local2.ref_interface = ref_interface;
curr_mini_game.init(_local2);
}
private function setHp():void{
if (curr_hp >= 11){
(curr_hp == 11);
};
if (curr_hp < 0){
curr_hp = 0;
};
ref_interface.setHp(curr_hp);
}
public function mouseMove(_arg1:Number, _arg2:Number):void{
if (flag_down){
};
if (!flag_pause){
mouse_pos.x = _arg1;
mouse_pos.y = _arg2;
p2.x = (_arg1 - (stage_width / 2));
p2.y = (_arg2 - (stage_height / 2));
p2.x = (p2.x / jump_men.obj_z);
p2.y = (p2.y / jump_men.obj_z);
p1.x = jump_men.obj_x;
p1.y = jump_men.obj_y;
dist_x = (p2.x - p1.x);
dist_y = (p2.y - p1.y);
if (((((!(jump_men.flag_collision)) && (flag_game))) && (init_game))){
if (dist_x > 0){
if ((((jump_men.getId() == 0)) && ((dist_x < 50)))){
} else {
if (jump_men.getId() != 101){
jump_men.Update(101);
jump_men.setPointLoop(5, 18);
};
};
} else {
if ((((jump_men.getId() == 0)) && ((dist_x > -50)))){
} else {
if (jump_men.getId() != 100){
jump_men.Update(100);
jump_men.setPointLoop(5, 18);
};
};
};
t = 0;
};
};
if (flag_mini_games){
curr_mini_game.mouseMove(_arg1, _arg2);
};
}
public function init(_arg1:Object):void{
destructor();
stage_width = _arg1.stage_w;
stage_height = _arg1.stage_h;
if (!jump_men){
jump_men = V_Utility.getPoolObject();
};
curr_render.addChildObject(jump_men);
curr_mission = 1;
statistics.mission = -2;
var _local2:uint = (1 + Math.round((Math.random() * 6)));
switch (_local2){
case 1:
backg = new V_Gori();
curr_them = 20;
break;
case 2:
backg = new V_Gorod();
curr_them = 23;
break;
case 3:
backg = new V_Propast();
curr_them = 21;
break;
case 4:
backg = new V_Forest();
curr_them = 22;
break;
case 5:
backg = new V_Gorod();
curr_them = 23;
break;
case 6:
backg = new V_Gori();
curr_them = 20;
break;
case 7:
backg = new V_Propast();
curr_them = 21;
break;
};
if (curr_mission == 7){
if (!rain.parent){
addChild(rain);
};
rain.play();
} else {
if (rain.parent){
removeChild(rain);
};
rain.stop();
};
rain.name = String(int((Math.random() * 20)));
backg.gotoAndStop(1);
curr_render.removeBackgaround();
curr_render.addBackgaround(backg);
jump_men.Update(0);
jump_men._draw();
jump_men.obj_z = min_z;
jump_men.obj_x = 0;
jump_men.obj_y = 0;
jump_men.obj_sx = 1.1;
jump_men.obj_sy = 1.1;
jump_men.flag_collision = false;
last_time = getTimer();
init_game = false;
flag_down = false;
mouse_pos.x = (p2.x = (stage_width / 2));
mouse_pos.y = (p2.y = (stage_height / 2));
backg.x = p2.x;
backg.y = p2.y;
backg.scaleX = (backg.scaleY = 1);
last_dist = 1000;
firstClouds();
t = 1;
curr_game_time = 0;
general_game_time = 60;
curr_step_time = (general_game_time / 5);
flag_game = true;
speed = 0.15;
count_bonuse = 0;
time_combo = 0;
ref_interface = _arg1.ref_int;
lastTime = getTimer();
statistics.points = 0;
statistics.parashut = 0;
statistics.passenger = 0;
statistics.mishka = 0;
statistics.collisions = 0;
statistics.curr_mission = -2;
statistics.complete = false;
statistics.bad_passanger_level = 0;
statistics.bad_mishka_level = 0;
curr_hp = 0;
ref_interface.refresh();
ref_interface.setStatistics(statistics);
setHp();
setPause(false);
V_Utility.playSound(18, int.MAX_VALUE);
V_Utility.playSound(curr_them, int.MAX_VALUE);
}
public function checkKeys():void{
var _local1:Boolean;
if (!jump_men.flag_collision){
if (keyLists[37]){
mouse_pos.x = (mouse_pos.x - 5);
_local1 = true;
if (mouse_pos.x < 0){
mouse_pos.x = 0;
};
};
if (keyLists[39]){
mouse_pos.x = (mouse_pos.x + 5);
_local1 = true;
if (mouse_pos.x > stage_width){
mouse_pos.x = stage_width;
};
};
if (keyLists[38]){
mouse_pos.y = (mouse_pos.y - 5);
_local1 = true;
if (mouse_pos.y < 0){
mouse_pos.y = 0;
};
};
if (keyLists[40]){
mouse_pos.y = (mouse_pos.y + 5);
_local1 = true;
if (mouse_pos.y > stage_height){
mouse_pos.y = stage_height;
};
};
if (_local1){
p2.x = (mouse_pos.x - (stage_width / 2));
p2.y = (mouse_pos.y - (stage_height / 2));
p2.x = (p2.x / jump_men.obj_z);
p2.y = (p2.y / jump_men.obj_z);
p1.x = jump_men.obj_x;
p1.y = jump_men.obj_y;
dist_x = (p2.x - p1.x);
dist_y = (p2.y - p1.y);
t = 0;
};
};
}
public function mouseUp(_arg1:Number, _arg2:Number):void{
flag_down = false;
}
private function createFreePosObjs():void{
var _local8:uint;
var _local9:V_Object;
var _local1:Number = 0;
if (curr_mission <= 2){
_local1 = 350;
} else {
if ((((curr_mission > 2)) && ((curr_mission <= 6)))){
_local1 = 250;
} else {
_local1 = 150;
};
};
var _local2:Number = ((stage_width / 2) + (dw / 2));
var _local3:Number = ((stage_height / 2) + (dh / 2));
var _local4:Number = -(_local2);
var _local5:Number = -(_local3);
var _local6:Number = 0;
var _local7:Number = min_z;
while ((((_local4 < _local2)) || ((_local5 < _local3)))) {
_local8 = getNumObj();
_local9 = V_Utility.getPoolObject();
V_Utility.getPoolObject().obj_oldx = (_local9.obj_x = _local4);
_local9.obj_oldy = (_local9.obj_y = _local5);
_local9.Update(_local8);
_local9._draw();
_local9.obj_z = _local7;
_local9.alpha = 0;
mas_objs.push(_local9);
curr_render.addChildObject(_local9);
_local4 = (_local4 + _local1);
_local6 = (_local6 + 1);
_local7 = (_local7 - 0.05);
if (_local4 > _local2){
if (_local5 < _local3){
_local4 = -(_local2);
_local5 = (_local5 + _local1);
};
};
};
trace(("objs " + _local6));
}
public function _onKeyDown(_arg1:int):void{
keyLists[_arg1] = true;
if (flag_mini_games){
curr_mini_game._onKeyDown(_arg1);
};
}
private function createCirclePosObjs():void{
}
private function renderFon():void{
var _local1:uint = Math.round(((curr_game_time / general_game_time) * backg.totalFrames));
var _local2:uint = (Math.floor((curr_game_time / curr_step_time)) + 1);
speed = (0.15 + (_local2 * speed_step));
switch (curr_mission){
case 1:
case 6:
if (_local2 == 1){
backg.scaleX = (backg.scaleY = (1 + (((curr_game_time / curr_step_time) - (_local2 - 1)) * 0.355)));
} else {
if (_local2 == 2){
backg.scaleX = (backg.scaleY = (1 + (((curr_game_time / curr_step_time) - (_local2 - 1)) * 0.343)));
} else {
if (_local2 == 3){
backg.scaleX = (backg.scaleY = (1 + (((curr_game_time / curr_step_time) - (_local2 - 1)) * 0.175)));
} else {
if (_local2 == 4){
backg.scaleX = (backg.scaleY = (1 + (((curr_game_time / curr_step_time) - (_local2 - 1)) * 0.75)));
} else {
backg.scaleX = (backg.scaleY = (1 + (((curr_game_time / curr_step_time) - (_local2 - 1)) * 0.3)));
};
};
};
};
break;
case 2:
case 5:
if (_local2 == 1){
backg.scaleX = (backg.scaleY = (1 + (((curr_game_time / curr_step_time) - (_local2 - 1)) * 0.355)));
} else {
if (_local2 == 2){
backg.scaleX = (backg.scaleY = (1 + (((curr_game_time / curr_step_time) - (_local2 - 1)) * 0.33095)));
} else {
if (_local2 == 3){
backg.scaleX = (backg.scaleY = (1 + (((curr_game_time / curr_step_time) - (_local2 - 1)) * 0.18)));
} else {
if (_local2 == 4){
backg.scaleX = (backg.scaleY = (1 + (((curr_game_time / curr_step_time) - (_local2 - 1)) * 0.72)));
} else {
backg.scaleX = (backg.scaleY = (1 + (((curr_game_time / curr_step_time) - (_local2 - 1)) * 0.3)));
};
};
};
};
break;
case 3:
case 7:
if (_local2 == 1){
backg.scaleX = (backg.scaleY = (1 + (((curr_game_time / curr_step_time) - (_local2 - 1)) * 0.38)));
} else {
if (_local2 == 2){
backg.scaleX = (backg.scaleY = (1 + (((curr_game_time / curr_step_time) - (_local2 - 1)) * 0.335)));
} else {
if (_local2 == 3){
backg.scaleX = (backg.scaleY = (1 + (((curr_game_time / curr_step_time) - (_local2 - 1)) * 0.18)));
} else {
if (_local2 == 4){
backg.scaleX = (backg.scaleY = (1 + (((curr_game_time / curr_step_time) - (_local2 - 1)) * 0.68)));
} else {
backg.scaleX = (backg.scaleY = (1 + (((curr_game_time / curr_step_time) - (_local2 - 1)) * 0.3)));
};
};
};
};
break;
case 4:
if (_local2 == 1){
backg.scaleX = (backg.scaleY = (1 + (((curr_game_time / curr_step_time) - (_local2 - 1)) * 0.345)));
} else {
if (_local2 == 2){
backg.scaleX = (backg.scaleY = (1 + (((curr_game_time / curr_step_time) - (_local2 - 1)) * 0.35)));
} else {
if (_local2 == 3){
backg.scaleX = (backg.scaleY = (1 + (((curr_game_time / curr_step_time) - (_local2 - 1)) * 0.18)));
} else {
if (_local2 == 4){
backg.scaleX = (backg.scaleY = (1 + (((curr_game_time / curr_step_time) - (_local2 - 1)) * 0.75)));
} else {
backg.scaleX = (backg.scaleY = (1 + (((curr_game_time / curr_step_time) - (_local2 - 1)) * 0.3)));
};
};
};
};
break;
};
if (backg.currentFrame != _local2){
trace(_local2);
backg.gotoAndStop(_local2);
};
}
private function showObjects():void{
var _local1:V_Object;
var _local2:int;
while (_local2 < mas_objs.length) {
_local1 = mas_objs[_local2];
curr_render.addChildObject(_local1);
_local2++;
};
_local2 = 0;
while (_local2 < mas_clouds.length) {
_local1 = mas_clouds[_local2];
curr_render.addChildObject(_local1);
_local2++;
};
curr_render.addChildObject(jump_men);
}
public function getPause():Boolean{
var _local1:Boolean;
if (flag_mini_games){
_local1 = curr_mini_game.getPause();
} else {
_local1 = flag_pause;
};
return (_local1);
}
private function getBonusNumObj():uint{
var _local3:uint;
count_bonuse = (count_bonuse + 1);
var _local1:uint;
var _local2:Number = Math.random();
if (_local2 >= 0.87){
_local1 = 50;
} else {
_local3 = Math.round((Math.random() * (bonus_nums.length - 1)));
_local1 = bonus_nums[_local3];
};
if ((count_bonuse % prc_pass) == 0){
_local1 = Math.round((62 + Math.random()));
};
if ((count_bonuse % prc_mg) == 0){
_local1 = (70 + Math.round((Math.random() * 2)));
};
if ((count_bonuse % prc_combo) == 0){
_local1 = 67;
};
return (_local1);
}
private function hideObjects():void{
var _local1:V_Object;
var _local2:int;
while (_local2 < mas_objs.length) {
_local1 = mas_objs[_local2];
curr_render.deleteRenderObject(_local1);
_local2++;
};
_local2 = 0;
while (_local2 < mas_clouds.length) {
_local1 = mas_clouds[_local2];
curr_render.deleteRenderObject(_local1);
_local2++;
};
curr_render.deleteRenderObject(jump_men);
}
private function createObjects():void{
if (mas_objs.length > 0){
if (mas_objs[(mas_objs.length - 1)].obj_z < (min_z + 0.4)){
return;
};
};
var _local1:Boolean;
var _local2:Number = Math.random();
if (curr_mission <= 2){
if (_local2 >= 0.95){
_local1 = false;
};
} else {
if ((((curr_mission > 2)) && ((curr_mission <= 6)))){
if (_local2 >= 0.9){
_local1 = false;
};
} else {
if (_local2 >= 0.85){
_local1 = false;
};
};
};
if (!_local1){
createFreePosObjs();
} else {
createSpiralPosObjs();
};
}
private function getNumObj():uint{
count_bonuse = (count_bonuse + 1);
var _local1:uint;
_local1 = (5 + Math.round((Math.random() * 24)));
if ((count_bonuse % prc_pass) == 0){
_local1 = Math.round((62 + Math.random()));
};
if ((count_bonuse % prc_mg) == 0){
_local1 = (70 + Math.round((Math.random() * 2)));
};
if ((count_bonuse % prc_combo) == 0){
_local1 = 67;
};
return (_local1);
}
public function _onKeyUp(_arg1:int):void{
keyLists[_arg1] = false;
if (flag_mini_games){
curr_mini_game._onKeyUp(_arg1);
};
}
public function renderGame(_arg1:Number):void{
var _local7:uint;
var _local8:V_Object;
var _local9:uint;
var _local10:Number;
var _local11:Number;
var _local12:int;
var _local13:Number;
_arg1 = ((getTimer() - lastTime) / 1000);
lastTime = getTimer();
curr_render.beginScene();
var _local2:Boolean;
if ((getTimer() - last_time) >= 30){
last_time = getTimer();
_local2 = true;
};
var _local3:Number = 0;
var _local4:Number = 0;
var _local5:Number = 0;
var _local6:Number = 0;
if (!flag_pause){
if (flag_game){
if (!init_game){
jump_men.obj_z = (jump_men.obj_z + ((_arg1 * speed) * 2));
if (jump_men.obj_z >= 1){
jump_men.obj_z = 1;
init_game = true;
};
} else {
if ((((t < 1)) && (!(jump_men.flag_collision)))){
t = (t + (_arg1 * 1.5));
if (t > 1){
t = 1;
};
jump_men.obj_x = (p1.x + (dist_x * t));
jump_men.obj_y = (p1.y + (dist_y * t));
if (jump_men.getId() != 0){
if (jump_men.getDir() > 0){
if (V_Utility.distanceEx(p2.x, p2.y, jump_men.obj_x, jump_men.obj_y) < 10){
jump_men.setDir(-1);
jump_men.setLoop(true);
};
};
};
};
_local3 = (jump_men.obj_x / (stage_width / 2));
_local4 = (jump_men.obj_y / (stage_height / 2));
if (_local3 > 1){
_local3 = 1;
};
if (_local4 > 1){
_local4 = 1;
};
if (_local3 < -1){
_local3 = -1;
};
if (_local4 < -1){
_local4 = -1;
};
_local3 = (_local3 * (dw * -1));
_local4 = (_local4 * (dh * -1));
};
checkKeys();
if (jump_men.getDir() < 0){
if (jump_men._currFrame() <= 1){
jump_men.Update(0);
};
};
jump_men._draw();
if (jump_men.getId() == 102){
if (jump_men._currFrame() >= jump_men._totalFrames()){
jump_men.Update(0);
jump_men.flag_collision = false;
};
};
if (jump_men.flag_collision){
if ((curr_game_time - jump_men.last_time_collision) >= 1.5){
jump_men.flag_collision = false;
};
};
_local7 = 0;
while (_local7 < mas_clouds.length) {
_local8 = mas_clouds[_local7];
mas_clouds[_local7].obj_x = (_local8.obj_oldx + _local3);
_local8.obj_y = (_local8.obj_oldy + _local4);
if (init_game){
if (_local8.obj_z <= 0.7){
_local8.obj_z = (_local8.obj_z + (_arg1 * speed));
} else {
_local8.obj_z = (_local8.obj_z + ((_arg1 * speed) * 2));
};
} else {
_local8.obj_z = (_local8.obj_z + (_arg1 * speed));
};
if (_local8.obj_z >= 1){
_local8.obj_z = 1;
_local8.alpha = (_local8.alpha - (_arg1 * 4));
if (_local8.alpha < 0){
mas_clouds.splice(_local7, 1);
_local7--;
curr_render.deleteRenderObject(_local8);
V_Utility.releasePoolObject(_local8);
};
} else {
if (_local8.alpha != 1){
if (_local8.obj_z < jump_men.obj_z){
_local8.alpha = (_local8.obj_z / 0.5);
if (_local8.alpha > 1){
_local8.alpha = 1;
};
};
};
};
_local7++;
};
_local7 = 0;
while (_local7 < mas_objs.length) {
_local8 = mas_objs[_local7];
mas_objs[_local7].obj_x = (_local8.obj_oldx + _local3);
_local8.obj_y = (_local8.obj_oldy + _local4);
_local9 = _local8.getId();
_local8._draw();
if (_local8.obj_z <= 0.7){
_local8.obj_z = (_local8.obj_z + (_arg1 * speed));
} else {
_local8.obj_z = (_local8.obj_z + ((_arg1 * speed) * 2));
};
if (_local8.obj_z >= 1){
_local8.obj_z = 1;
_local8.alpha = (_local8.alpha - (_arg1 * 4));
if (_local8.alpha < 0){
mas_objs.splice(_local7, 1);
_local7--;
curr_render.deleteRenderObject(_local8);
V_Utility.releasePoolObject(_local8);
_local8 = null;
if (_local9 == 50){
statistics.bad_mishka_level = (statistics.bad_mishka_level + 1);
statistics.bad_mishka_all_game = (statistics.bad_mishka_all_game + 1);
} else {
if ((((_local9 >= 62)) && ((_local9 <= 65)))){
statistics.bad_passanger_level = (statistics.bad_passanger_level + 1);
statistics.bad_passanger_all_game = (statistics.bad_passanger_all_game + 1);
};
};
};
} else {
if (_local8.alpha != 1){
_local8.alpha = (_local8.obj_z / 0.5);
if (_local8.alpha >= 1){
_local8.alpha = 1;
};
};
};
if (_local8 != null){
_local10 = Math.abs((_local8.obj_z - jump_men.obj_z));
if (_local10 < 0.05){
_local11 = V_Utility.distanceEx(_local8.obj_x, _local8.obj_y, jump_men.obj_x, jump_men.obj_y);
if (_local11 < 100){
if (!jump_men.flag_collision){
if ((((((((((((_local9 == 50)) || ((_local9 == 52)))) || ((_local9 == 54)))) || ((_local9 == 56)))) || ((_local9 == 58)))) || ((_local9 == 60)))){
_local8.Update((_local9 + 1));
if (_local9 == 50){
statistics.points = (statistics.points + (time_combo) ? 200 : 100);
statistics.mishka = (statistics.mishka + 1);
} else {
if (_local9 == 52){
statistics.points = (statistics.points + (time_combo) ? 10 : 5);
} else {
if (_local9 == 54){
statistics.points = (statistics.points + (time_combo) ? 20 : 10);
} else {
if (_local9 == 56){
statistics.points = (statistics.points + (time_combo) ? 50 : 25);
} else {
if (_local9 == 58){
statistics.points = (statistics.points + (time_combo) ? 100 : 50);
} else {
if (_local9 == 60){
statistics.points = (statistics.points + (time_combo) ? 150 : 75);
};
};
};
};
};
};
V_Utility.playSound(3, 1);
ref_interface.setStatistics(statistics);
} else {
if ((((_local9 >= 62)) && ((_local9 <= 63)))){
if (statistics.parashut){
dispatchEvent(new Event("SAVE_PASSENGER"));
_local8.Update(Math.round((64 + Math.random())));
statistics.parashut = (statistics.parashut - 1);
statistics.passenger = (statistics.passenger + 1);
ref_interface.setStatistics(statistics);
_local12 = Math.round((16 + Math.random()));
V_Utility.playSound(_local12, 1);
V_Utility.playSound(8, 1);
} else {
spl_t = 0;
statistics.collisions = (statistics.collisions + 1);
statistics.collision_all_game = (statistics.collision_all_game + 1);
ref_interface.collision();
jump_men.flag_collision = true;
jump_men.Update(102);
jump_men.last_time_collision = curr_game_time;
t = 1;
statistics.points = (statistics.points - 500);
curr_hp = (curr_hp + 2);
setHp();
ref_interface.setStatistics(statistics);
};
} else {
if (_local9 == 67){
mas_objs.splice(_local7, 1);
_local7--;
curr_render.deleteRenderObject(_local8);
V_Utility.releasePoolObject(_local8);
V_Utility.playSound(4, 1);
time_combo = 4;
} else {
if ((((_local9 >= 5)) && ((_local9 <= 29)))){
if ((curr_game_time / general_game_time) < 0.6){
if ((((((((((((((((_local9 == 7)) || ((_local9 == 10)))) || ((_local9 == 12)))) || ((_local9 == 20)))) || ((_local9 == 21)))) || ((_local9 == 24)))) || ((_local9 == 26)))) || ((_local9 == 29)))){
statistics.points = (statistics.points - 1000);
ref_interface.setStatistics(statistics);
V_Utility.playSound(12, 1);
V_Utility.playSound(8, 1);
dispatchEvent(new Event("SHOW_CRASH"));
} else {
statistics.points = (statistics.points - 500);
ref_interface.setStatistics(statistics);
_local12 = (10 + Math.round(Math.random()));
V_Utility.playSound(_local12, 1);
};
} else {
statistics.points = (statistics.points - 1000);
ref_interface.setStatistics(statistics);
V_Utility.playSound(12, 1);
V_Utility.playSound(8, 1);
dispatchEvent(new Event("SHOW_CRASH"));
};
_local13 = Math.random();
if (_local13 >= 0.7){
_local12 = Math.round((Math.random() * 2));
V_Utility.playSound(_local12, 1);
};
ref_interface.collision();
spl_t = 0;
statistics.collisions = (statistics.collisions + 1);
statistics.collision_all_game = (statistics.collision_all_game + 1);
jump_men.flag_collision = true;
jump_men.Update(102);
jump_men.last_time_collision = curr_game_time;
t = 1;
curr_hp = (curr_hp + 2);
setHp();
} else {
if (_local9 == 70){
setPause(true);
mas_objs.splice(_local7, 1);
_local7--;
curr_render.deleteRenderObject(_local8);
V_Utility.releasePoolObject(_local8);
hideObjects();
V_Utility.playSound(5, 1);
createMiniGame(1);
} else {
if (_local9 == 71){
setPause(true);
mas_objs.splice(_local7, 1);
_local7--;
curr_render.deleteRenderObject(_local8);
V_Utility.releasePoolObject(_local8);
V_Utility.playSound(5, 1);
dispatchEvent(new Event("MUHA_MINIGAME"));
} else {
if (_local9 == 72){
setPause(true);
mas_objs.splice(_local7, 1);
_local7--;
curr_render.deleteRenderObject(_local8);
V_Utility.releasePoolObject(_local8);
V_Utility.playSound(5, 1);
dispatchEvent(new Event("EVEN_MINIGAME3"));
};
};
};
};
};
};
};
};
};
};
if ((((((((((((_local9 == 51)) || ((_local9 == 53)))) || ((_local9 == 55)))) || ((_local9 == 57)))) || ((_local9 == 59)))) || ((_local9 == 61)))){
if (_local8._currFrame() >= _local8._totalFrames()){
curr_render.deleteRenderObject(_local8);
V_Utility.releasePoolObject(_local8);
mas_objs.splice(_local7, 1);
_local7--;
};
};
};
_local7++;
};
if (init_game){
if (spl_t < 1){
spl_t = (spl_t + (_arg1 * 2));
if (spl_t > 1){
spl_t = 1;
};
cam_pos = spline.getNode(spl_t);
curr_render.setCenterPerspective(cam_pos.x, cam_pos.y);
};
createObjects();
createClouds();
curr_game_time = (curr_game_time + _arg1);
if (time_combo){
time_combo = (time_combo - _arg1);
if (time_combo < 0){
time_combo = 0;
};
};
curr_mission = Math.floor((curr_game_time / general_game_time));
if (curr_mission > 7){
curr_mission = 7;
};
speed = (0.15 + (curr_mission * speed_step));
if (!jump_men.flag_collision){
if (curr_hp >= 10){
jump_men.Update(0);
destructor();
V_Utility.stopSound(18);
rain.stop();
dispatchEvent(new Event("COMPLETE_GAME"));
};
};
};
};
};
if (flag_mini_games){
curr_mini_game.renderGame(_arg1);
};
curr_render.endScene();
}
private function firstClouds():void{
var _local3:V_Object;
var _local4:int;
var _local5:uint;
var _local6:Number;
var _local1:Number = 20;
var _local2:Boolean;
if (!mas_clouds.length){
_local2 = true;
} else {
if (mas_clouds[(mas_clouds.length - 1)].obj_z > 0.3){
_local2 = true;
};
};
if (_local2){
_local4 = 0;
while (_local4 < _local1) {
_local5 = (2 + Math.round((Math.random() * 2)));
_local6 = ((min_z - 0.1) + (0.02 * _local4));
_local3 = V_Utility.getPoolObject();
_local3.Update(_local5);
_local3._draw();
_local3.obj_oldx = (_local3.obj_x = (stage_width - ((Math.random() * stage_width) * 2)));
_local3.obj_oldy = (_local3.obj_y = (stage_height - ((Math.random() * stage_height) * 2)));
_local3.obj_z = _local6;
_local3.alpha = 1;
mas_clouds.push(_local3);
curr_render.addChildObject(_local3);
_local4++;
};
};
}
public function setPause(_arg1:Boolean, _arg2:Boolean=false):void{
if (flag_mini_games){
curr_mini_game.setPause(_arg1);
} else {
if (!_arg1){
V_Utility.playSound(18, int.MAX_VALUE);
if (!_arg2){
V_Utility.playSound(curr_them, int.MAX_VALUE);
};
if (curr_mission == 7){
rain.play();
};
} else {
V_Utility.stopSound(18);
if (!_arg2){
V_Utility.stopSound(curr_them);
};
rain.stop();
};
flag_pause = _arg1;
};
lastTime = getTimer();
}
private function onMiniGameLister(_arg1:Event):void{
rain.visible = true;
curr_mini_game = null;
flag_mini_games = false;
showObjects();
curr_render.removeBackgaround();
curr_render.addBackgaround(backg);
setPause(false);
}
public function mouseDown(_arg1:Number, _arg2:Number):void{
flag_down = true;
}
public function destructor():void{
var _local1:V_Object;
curr_render.removeBackgaround();
while (mas_objs.length) {
_local1 = (mas_objs.shift() as V_Object);
curr_render.deleteRenderObject(_local1);
V_Utility.releasePoolObject(_local1);
};
while (mas_clouds.length) {
_local1 = (mas_clouds.shift() as V_Object);
curr_render.deleteRenderObject(_local1);
V_Utility.releasePoolObject(_local1);
};
if (jump_men){
curr_render.deleteRenderObject(jump_men);
};
V_Utility.stopSound(curr_them);
}
private function createClouds():void{
var _local3:V_Object;
var _local4:Number;
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local8:uint;
var _local9:uint;
var _local10:Number;
var _local1:Number = (10 + (Math.random() * 10));
var _local2:Boolean;
if (!mas_clouds.length){
_local2 = true;
} else {
if (mas_clouds[(mas_clouds.length - 1)].obj_z >= (min_z + 0.1)){
_local2 = true;
};
};
if (_local2){
_local4 = (Math.random() * ((stage_width / 2) + (dw / 2)));
if (_local4 >= 1000){
_local5 = (Math.random() * 360);
_local6 = 0;
_local7 = (360 / _local1);
_local8 = 0;
while (_local8 < _local1) {
_local6 = (_local6 + ((_local8 * _local7) + _local5));
_local6 = (_local6 * V_Utility.IN_RAD);
_local9 = (2 + Math.round((Math.random() * 2)));
_local10 = min_z;
_local10 = (_local10 - (_local8 * 0.05));
_local3 = V_Utility.getPoolObject();
_local3.Update(_local9);
_local3._draw();
_local3.obj_oldx = (_local3.obj_x = (_local4 * Math.sin(_local6)));
_local3.obj_oldy = (_local3.obj_y = (_local4 * Math.cos(_local6)));
_local3.obj_z = _local10;
_local3.alpha = 0;
mas_clouds.push(_local3);
curr_render.addChildObject(_local3);
_local8++;
};
} else {
_local8 = 0;
while (_local8 < _local1) {
_local9 = (2 + Math.round((Math.random() * 2)));
_local10 = min_z;
_local10 = (_local10 - (_local8 * 0.05));
_local3 = V_Utility.getPoolObject();
_local3.Update(_local9);
_local3._draw();
_local3.obj_oldx = (_local3.obj_x = ((stage_width + dw) - ((Math.random() * (stage_width + (dw / 2))) * 2)));
_local3.obj_oldy = (_local3.obj_y = ((stage_height + dh) - ((Math.random() * (stage_height + (dh / 2))) * 2)));
_local3.obj_z = _local10;
_local3.alpha = 0;
mas_clouds.push(_local3);
curr_render.addChildObject(_local3);
_local8++;
};
};
};
}
}
}//package
Section 170
//V_Truba (V_Truba)
package {
import flash.display.*;
public dynamic class V_Truba extends MovieClip {
}
}//package
Section 171
//V_Truba2 (V_Truba2)
package {
import flash.display.*;
public dynamic class V_Truba2 extends MovieClip {
}
}//package
Section 172
//V_Tutorial_wnd (V_Tutorial_wnd)
package {
import flash.display.*;
import flash.events.*;
import flash.text.*;
import flash.filters.*;
public class V_Tutorial_wnd extends MovieClip implements VI_Windows {
public var w01_mc:MovieClip;
private var glow:GlowFilter;
public var b_mc:MovieClip;
private var table_langs:Array;
public var w7_mc:MovieClip;
public var w3_mc:MovieClip;
public var w04_mc:MovieClip;
public var click_btn:V_Menu_Btn;
public var z_txt:TextField;
public var w2_mc:MovieClip;
public var w03_mc:MovieClip;
public var w6_mc:MovieClip;
private var langs:Array;
private var _lang_id:uint;// = 0
private var tutorials:Array;
public var w5_mc:MovieClip;
public var w06_mc:MovieClip;
public var w1_mc:MovieClip;
public var w02_mc:MovieClip;
private var curr_wnd:MovieClip;
public var w8_mc:MovieClip;
public var w4_mc:MovieClip;
public var w05_mc:MovieClip;
public function V_Tutorial_wnd(){
langs = new Array(2, 1);
super();
glow = new GlowFilter(2232843, 2, 2, 5, 5, BitmapFilterQuality.HIGH, false, false);
click_btn.filters = [glow];
click_btn.setColors(0xFFFFFF, 0x888888);
click_btn.setText("Next");
click_btn.addEventListener(MouseEvent.MOUSE_DOWN, onMouseLister);
tutorials = new Array(w1_mc, w2_mc, w3_mc, w4_mc, w5_mc, w6_mc, w7_mc, w8_mc, w01_mc, w02_mc, w03_mc, w04_mc, w05_mc, w06_mc);
var _local1:uint;
while (_local1 < tutorials.length) {
tutorials[_local1].visible = false;
_local1++;
};
b_mc.visible = false;
}
public function renderFunc(_arg1:Number):void{
}
public function setText(_arg1:String, _arg2):void{
switch (_arg2){
case 2:
z_txt.text = ((table_langs[32][_lang_id] + " ") + _arg1);
break;
case 3:
z_txt.text = ((table_langs[33][_lang_id] + " ") + _arg1);
break;
case 4:
z_txt.text = ((table_langs[34][_lang_id] + " ") + _arg1);
break;
};
}
public function hide():void{
}
public function translate(_arg1:Array, _arg2:uint):void{
_lang_id = _arg2;
table_langs = _arg1;
click_btn.setText(_arg1[31][_arg2]);
click_btn.x = ((550 / 2) - (click_btn.width / 2));
var _local3:uint;
while (_local3 < tutorials.length) {
tutorials[_local3].gotoAndStop(langs[_lang_id]);
_local3++;
};
}
public function hideWindow(_arg1:uint):void{
tutorials[_arg1].visible = false;
click_btn.visible = (b_mc.visible = false);
}
public function showWindow(_arg1:uint):void{
tutorials[_arg1].visible = true;
click_btn.visible = (b_mc.visible = true);
}
private function onMouseLister(_arg1:MouseEvent):void{
dispatchEvent(new Event("CLICK_NEXT"));
}
public function showLabel(_arg1:Boolean):void{
z_txt.visible = _arg1;
}
public function show():void{
}
public function hideAll():void{
var _local1:uint;
while (_local1 < tutorials.length) {
tutorials[_local1].visible = false;
_local1++;
};
}
}
}//package
Section 173
//V_Utility (V_Utility)
package {
public class V_Utility {
public static const IN_RAD:Number = 0.017453292519;
public static var options_usecmpstar:Boolean = false;
private static var curr_id:uint = 0;
public static var cpm_ads_id:String = "";
public static var mochiads_id:Function;
public static var ref_lib:V_Librarry;
public static var ref_slib:V_SoundLibrarry;
private static var pool_objs:Array = new Array();
public static var options_showads:Boolean = true;
public static var options_usemochiad:Boolean = true;
public static function angleBetween(_arg1:V_Point, _arg2:V_Point):Number{
var _local3:Number = (((_arg1.x * _arg2.x) + (_arg1.y * _arg2.y)) / (Math.sqrt(((_arg1.x * _arg1.x) + (_arg1.y * _arg1.y))) * Math.sqrt(((_arg2.x * _arg2.x) + (_arg2.y * _arg2.y)))));
var _local4:Number = Math.acos(_local3);
return (_local4);
}
public static function substractBetween(_arg1:V_Point, _arg2:V_Point):V_Point{
var _local3:V_Point = new V_Point(0, 0);
_local3.x = (_arg1.x - _arg2.x);
_local3.y = (_arg1.y - _arg2.y);
return (_local3);
}
public static function distanceEx(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return (Math.sqrt((((_arg3 - _arg1) * (_arg3 - _arg1)) + ((_arg4 - _arg2) * (_arg4 - _arg2)))));
}
public static function releasePoolObject(_arg1:V_Object):void{
var _local2:Boolean;
if (!_local2){
pool_objs.push(_arg1);
} else {
trace("111");
};
}
public static function stopSound(_arg1:uint):void{
if (V_Utility.ref_slib){
V_Utility.ref_slib.stopSound(_arg1);
};
}
public static function getPoolObject():V_Object{
var _local1:V_Object;
if (pool_objs.length){
_local1 = pool_objs.shift();
} else {
_local1 = new V_Object(ref_lib, 0);
_local1.name = curr_id.toString();
curr_id = (curr_id + 1);
};
_local1.scaleX = (_local1.scaleY = 1);
_local1.alpha = 1;
_local1.visible = true;
_local1.flag_collision = false;
return (_local1);
}
public static function distance(_arg1:V_Point, _arg2:V_Point):Number{
return (Math.sqrt((((_arg2.x - _arg1.x) * (_arg2.x - _arg1.x)) + ((_arg2.y - _arg1.y) * (_arg2.y - _arg1.y)))));
}
public static function playSound(_arg1:uint, _arg2:uint=0):void{
if (V_Utility.ref_slib){
V_Utility.ref_slib.playSound(_arg1, _arg2);
};
}
}
}//package
Section 174
//V_Vint (V_Vint)
package {
import flash.display.*;
public dynamic class V_Vint extends MovieClip {
}
}//package
Section 175
//VI_Game (VI_Game)
package {
public interface VI_Game {
function init(_arg1:Object):void;
function _onKeyDown(_arg1:int):void;
function setPause(_arg1:Boolean, _arg2:Boolean=false):void;
function mouseMove(_arg1:Number, _arg2:Number):void;
function mouseUp(_arg1:Number, _arg2:Number):void;
function renderGame(_arg1:Number):void;
function destructor():void;
function _onKeyUp(_arg1:int):void;
function mouseDown(_arg1:Number, _arg2:Number):void;
function getPause():Boolean;
}
}//package
Section 176
//VI_Windows (VI_Windows)
package {
public interface VI_Windows {
function renderFunc(_arg1:Number):void;
function hide():void;
function show():void;
}
}//package
Section 177
//Wind_loop (Wind_loop)
package {
import flash.media.*;
public dynamic class Wind_loop extends Sound {
}
}//package