Section 1
//AutWaterSel_123 (SummerCrazeeng_fla.AutWaterSel_123)
package SummerCrazeeng_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
public dynamic class AutWaterSel_123 extends MovieClip {
public function AutWaterSel_123(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package SummerCrazeeng_fla
Section 2
//banan_stays_133 (SummerCrazeeng_fla.banan_stays_133)
package SummerCrazeeng_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
public dynamic class banan_stays_133 extends MovieClip {
public function banan_stays_133(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package SummerCrazeeng_fla
Section 3
//banana_ride_135 (SummerCrazeeng_fla.banana_ride_135)
package SummerCrazeeng_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
public dynamic class banana_ride_135 extends MovieClip {
public const initJetY:int = 0;
public const initJetX:int = 0;
public const manShift:int = 23;
public const initBanY:int = 35;
public const initBanX:int = 160;
public const initManX:int = 190;
public const initRopeX:int = 88;
public const initRopeY:int = 37;
public const maxShift:int = -851;
public const shiftManY:int = -31;
public var r2:MovieClip;
public var r0:MovieClip;
public var bTimer:FBTimer;
public var hasRent:Boolean;
public var rp:MovieClip;
public var riders:Array;
public var speed:Number;
public var jt:MovieClip;
public var t:Number;
public var bnn:MovieClip;
public var riding:Boolean;
public var Rarray:Array;
public var rentShift:Number;
public var rinds:Array;
public var r1:MovieClip;
public function banana_ride_135(){
addFrameScript(0, frame1);
}
public function init(_arg1:Boolean, _arg2:int, _arg3:int, _arg4:int){
var _local5:int;
hasRent = _arg1;
rentShift = 0;
t = 0;
bTimer.start();
rinds[0] = _arg2;
rinds[1] = _arg3;
rinds[2] = _arg4;
_local5 = 0;
while (_local5 < 3) {
if (rinds[_local5] >= 0){
Rarray[_local5].visible = true;
riders[_local5] = (parent.ppls[rinds[_local5]].buyerType + 1);
Rarray[_local5].gotoAndStop(riders[_local5]);
} else {
Rarray[_local5].visible = false;
};
Rarray[_local5].x = (initManX + (_local5 * manShift));
_local5++;
};
jt.x = initJetX;
jt.y = initJetY;
rp.x = initRopeX;
rp.y = initRopeY;
bnn.x = initBanX;
bnn.y = initBanY;
riding = true;
parent.bananat.bananism.visible = false;
parent.Sounds = parent.Banan_01.play();
}
public function upride(_arg1:int){
var _local2:int;
t = (t + speed);
jt.x = (jt.x - speed);
rp.x = (rp.x - speed);
bnn.x = (bnn.x - speed);
if (((hasRent) && ((jt.x < -330)))){
rentShift = ((-330 - jt.x) * 0.25);
jt.y = (initJetY + rentShift);
};
bnn.y = ((initBanY + (Math.sin((t * 0.025)) * 3)) + rentShift);
_local2 = 0;
while (_local2 < 3) {
Rarray[_local2].x = (Rarray[_local2].x - speed);
Rarray[_local2].y = ((bnn.y + shiftManY) + Math.min(0, (Math.sin(((-(_local2) * 1.5) + (t * 0.025))) * 5)));
_local2++;
};
rp.y = ((initRopeY + (Math.sin((t * 0.025)) * 1.5)) + rentShift);
rp.rotation = ((((Math.sin((t * 0.025)) * 1.1) / 79) * 360) / Math.PI);
if (jt.x < maxShift){
bTimer.stop();
riding = false;
parent.bananat.bananism.visible = true;
parent.finishBanan(rinds[0], rinds[1], rinds[2]);
};
}
function frame1(){
bTimer = new FBTimer(int((1000 / (root as MovieClip).fps)), upride);
speed = 5;
riders = new Array(0, 0, 0);
Rarray = new Array(r0, r1, r2);
rinds = new Array(-1, -1, -1);
riding = false;
stop();
}
}
}//package SummerCrazeeng_fla
Section 4
//banana_rider_139 (SummerCrazeeng_fla.banana_rider_139)
package SummerCrazeeng_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
public dynamic class banana_rider_139 extends MovieClip {
public function banana_rider_139(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package SummerCrazeeng_fla
Section 5
//Bananat_130 (SummerCrazeeng_fla.Bananat_130)
package SummerCrazeeng_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
public dynamic class Bananat_130 extends MovieClip {
public var bTimer:FBTimer;
public var bs:MovieClip;
public var bCT:Array;
public var build:MovieClip;
public var free:Boolean;
public var ch:MovieClip;
public var bNC:Array;
public var canBuy:Boolean;
public var bananism:MovieClip;
public var nums:MovieClip;
public var isOn:int;
public var sel:Boolean;
public var bananatNumDeed:int;
public var banimat:animat;
public function Bananat_130(){
addFrameScript(0, frame1);
}
public function MouseClick(_arg1:MouseEvent):void{
if (((sel) && (bananism.visible))){
parent.Bananieren(-1);
};
}
public function grayBuy(){
canBuy = false;
build.buildSign.isGray = true;
build.buildSign.gotoAndStop(3);
}
public function unGrayBuy(){
canBuy = true;
build.buildSign.isGray = false;
build.buildSign.gotoAndStop(1);
}
public function fall(_arg1:int){
bs.y = (bs.y + 20);
if (bs.y >= 0){
bTimer.stop();
bs.y = 0;
bananism.visible = true;
};
}
public function enable(){
this.visible = true;
build.visible = false;
bs.visible = true;
bs.y = 0;
bananism.visible = true;
}
public function MouseOut(_arg1:MouseEvent):void{
bs.gotoAndStop(1);
}
function frame1(){
bTimer = new FBTimer(int((1000 / (root as MovieClip).fps)), fall);
build.buildSign.ico.gotoAndStop(3);
sel = false;
free = true;
ch.mouseEnabled = false;
nums.mouseEnabled = false;
bananism.mouseEnabled = false;
ch.visible = false;
nums.visible = false;
bananatNumDeed = -1;
bNC = new Array(1, 2, 3, 3, 2, 1);
bCT = new Array(110, 110, 110, 110, 110, 110);
banimat = new animat(bananism, bCT, bNC);
banimat.PlayAnim(0);
bs.addEventListener(MouseEvent.MOUSE_OVER, MouseOver);
bs.addEventListener(MouseEvent.MOUSE_OUT, MouseOut);
bs.addEventListener(MouseEvent.CLICK, MouseClick);
}
public function buy(){
parent.Sounds = parent.Zdan_postr.play(0, 0, root.svol);
bs.y = -430;
bs.visible = true;
build.visible = false;
bTimer.start();
isOn = 1;
parent.money = (parent.money - 400);
parent.wish2xatamat[5] = 1;
parent.testBneed();
parent.updateMoney();
}
public function unbuy(){
this.visible = true;
bs.visible = false;
bananism.visible = false;
build.visible = true;
build.buildSign.price = 400;
canBuy = (parent.money >= 400);
if (!canBuy){
grayBuy();
} else {
unGrayBuy();
};
}
public function setNum(_arg1:int){
if (0 >= _arg1){
ch.visible = false;
nums.visible = false;
} else {
ch.visible = true;
nums.visible = true;
nums.setNum(_arg1);
};
}
public function disable(){
this.visible = false;
}
public function MouseOver(_arg1:MouseEvent):void{
if (sel){
bs.gotoAndStop(2);
};
}
}
}//package SummerCrazeeng_fla
Section 6
//bananat_mainsym_131 (SummerCrazeeng_fla.bananat_mainsym_131)
package SummerCrazeeng_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
public dynamic class bananat_mainsym_131 extends MovieClip {
public function bananat_mainsym_131(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package SummerCrazeeng_fla
Section 7
//barGoals_143 (SummerCrazeeng_fla.barGoals_143)
package SummerCrazeeng_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
public dynamic class barGoals_143 extends MovieClip {
public var goaltotal:int;
public var numtxt:TextField;
public var goalstate:int;
public var but:MovieClip;
public var ico:MovieClip;
public var goalstxt:TextField;
public function barGoals_143(){
addFrameScript(0, frame1);
}
public function getNextGoal(){
var _local1:Goals;
var _local2:Goals;
var _local3:int;
var _local4:int;
if (parent.victory){
return;
};
_local1 = parent.lgoals[parent.curlevel];
_local2 = parent.goalstate;
_local2.setField(parent.goalnum, goalstate);
_local3 = -1;
_local4 = 1;
while (_local4 < 8) {
if (_local2.fieldByNum(_local4) < _local1.fieldByNum(_local4)){
_local3 = _local4;
break;
};
_local4++;
};
if (_local3 < 0){
parent.Sounds = parent.End_level.play(0, 0, root.svol);
parent.victory = true;
parent.initVictory();
} else {
if (goalstate != -2){
parent.Sounds = parent.GOAL.play(0, 0, root.svol);
};
parent.goalnum = _local3;
goaltotal = _local1.fieldByNum(_local3);
goalstate = _local2.fieldByNum(_local3);
ico.gotoAndStop(_local3);
};
}
function frame1(){
goaltotal = 0;
goalstate = -2;
ico.mouseEnabled = false;
numtxt.mouseEnabled = false;
but.clickFunc = parent.showGoalsIngame;
}
public function updateGoals(_arg1:int=1){
if (parent.victory){
return;
};
goalstate = (goalstate + _arg1);
if (-1 == parent.goalnum){
getNextGoal();
};
if (goalstate >= goaltotal){
getNextGoal();
};
parent.goalstate.setField(parent.goalnum, goalstate);
numtxt.text = ((goalstate.toString() + "/") + goaltotal.toString());
}
}
}//package SummerCrazeeng_fla
Section 8
//Batamat_125 (SummerCrazeeng_fla.Batamat_125)
package SummerCrazeeng_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
public dynamic class Batamat_125 extends MovieClip {
public var batamatNumDeed:int;
public var bTimer:FBTimer;
public var sv:MovieClip;
public var bs:MovieClip;
public var build:MovieClip;
public var ch:MovieClip;
public var canBuy:Boolean;
public var nums:MovieClip;
public var warrow:MovieClip;
public function Batamat_125(){
addFrameScript(0, frame1);
}
public function MouseOver(_arg1:MouseEvent):void{
bs.gotoAndStop(2);
}
public function MouseUp(_arg1=null){
if (((!(nums.visible)) && ((sv.getNum() == 0)))){
parent.FillBatamat();
};
}
public function grayBuy(){
canBuy = false;
build.buildSign.isGray = true;
build.buildSign.gotoAndStop(3);
}
function frame1(){
bTimer = new FBTimer(int((1000 / (root as MovieClip).fps)), fall);
build.buildSign.ico.gotoAndStop(2);
warrow.mouseEnabled = false;
sv.mouseEnabled = false;
nums.mouseEnabled = false;
batamatNumDeed = -1;
bs.addEventListener(MouseEvent.MOUSE_OVER, MouseOver);
bs.addEventListener(MouseEvent.MOUSE_OUT, MouseOut);
sv.FillFunc = onFillBatamat;
bs.addEventListener(MouseEvent.CLICK, MouseUp);
ch.visible = false;
nums.visible = false;
stop();
}
public function unGrayBuy(){
canBuy = true;
build.buildSign.isGray = false;
build.buildSign.gotoAndStop(1);
}
public function fall(_arg1:int){
bs.y = (bs.y + 20);
if (bs.y >= 0){
bTimer.stop();
bs.y = 0;
sv.visible = true;
};
}
public function enable(){
this.visible = true;
build.visible = false;
bs.visible = true;
sv.visible = true;
bs.y = 0;
}
public function MouseOut(_arg1:MouseEvent):void{
bs.gotoAndStop(1);
}
public function buy(){
parent.Sounds = parent.Zdan_postr.play(0, 0, root.svol);
bs.y = -430;
bs.visible = true;
build.visible = false;
bTimer.start();
isOn = 1;
parent.money = (parent.money - 500);
parent.wish2xatamat[1] = 1;
parent.testBneed();
parent.updateMoney();
}
public function onFillBatamat(){
parent.unsetGrayButter();
}
public function unbuy(){
this.visible = true;
bs.visible = false;
sv.visible = false;
build.visible = true;
build.buildSign.price = 500;
canBuy = (parent.money >= 500);
if (!canBuy){
grayBuy();
} else {
unGrayBuy();
};
}
public function setNum(_arg1:int){
if (0 >= _arg1){
ch.visible = false;
nums.visible = false;
} else {
ch.visible = true;
nums.visible = true;
nums.setNum(_arg1);
};
}
public function disable(){
this.visible = false;
}
}
}//package SummerCrazeeng_fla
Section 9
//Batamat_mainsym_126 (SummerCrazeeng_fla.Batamat_mainsym_126)
package SummerCrazeeng_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
public dynamic class Batamat_mainsym_126 extends MovieClip {
public function Batamat_mainsym_126(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package SummerCrazeeng_fla
Section 10
//buildIcon_117 (SummerCrazeeng_fla.buildIcon_117)
package SummerCrazeeng_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
public dynamic class buildIcon_117 extends MovieClip {
public function buildIcon_117(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package SummerCrazeeng_fla
Section 11
//buildPlace_114 (SummerCrazeeng_fla.buildPlace_114)
package SummerCrazeeng_fla {
import flash.display.*;
public dynamic class buildPlace_114 extends MovieClip {
public var buildSign:MovieClip;
}
}//package SummerCrazeeng_fla
Section 12
//buildSign_115 (SummerCrazeeng_fla.buildSign_115)
package SummerCrazeeng_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
public dynamic class buildSign_115 extends MovieClip {
public var price:int;
public var pricetxt:TextField;
public var ico:MovieClip;
public var isGray:Boolean;
public function buildSign_115(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
public function MouseUp(_arg1){
if (!isGray){
parent.parent.buy();
};
}
function frame3(){
pricetxt.text = price;
}
function frame1(){
pricetxt.text = price;
parent.addEventListener(MouseEvent.MOUSE_OVER, MouseOver);
parent.addEventListener(MouseEvent.MOUSE_OUT, MouseOut);
parent.addEventListener(MouseEvent.CLICK, MouseUp);
stop();
}
public function MouseOut(_arg1:MouseEvent):void{
if (!isGray){
this.gotoAndStop(1);
};
}
function frame2(){
pricetxt.text = price;
}
public function MouseOver(_arg1:MouseEvent):void{
if (!isGray){
this.gotoAndStop(2);
};
}
}
}//package SummerCrazeeng_fla
Section 13
//buoy_121 (SummerCrazeeng_fla.buoy_121)
package SummerCrazeeng_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
public dynamic class buoy_121 extends MovieClip {
public function buoy_121(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package SummerCrazeeng_fla
Section 14
//butterTop_70 (SummerCrazeeng_fla.butterTop_70)
package SummerCrazeeng_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
public dynamic class butterTop_70 extends MovieClip {
public var hl:MovieClip;
public function butterTop_70(){
addFrameScript(0, frame1);
}
function frame1(){
hl.visible = false;
}
}
}//package SummerCrazeeng_fla
Section 15
//buttonMinus_83 (SummerCrazeeng_fla.buttonMinus_83)
package SummerCrazeeng_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
public dynamic class buttonMinus_83 extends MovieClip {
public var clickFunc:Function;
public var isactive:Boolean;
public function buttonMinus_83(){
addFrameScript(0, frame1);
}
public function MouseUp(_arg1){
gotoAndStop(2);
}
public function MouseClick(_arg1){
if (((!((null == clickFunc))) && (isactive))){
clickFunc();
};
}
function frame1(){
this.addEventListener(MouseEvent.MOUSE_OVER, MouseOver);
this.addEventListener(MouseEvent.MOUSE_OUT, MouseOut);
this.addEventListener(MouseEvent.CLICK, MouseClick);
this.addEventListener(MouseEvent.MOUSE_DOWN, MouseDown);
this.addEventListener(MouseEvent.MOUSE_UP, MouseUp);
stop();
}
public function MouseOut(_arg1){
gotoAndStop(1);
}
public function MouseDown(_arg1){
gotoAndStop(3);
}
public function MouseOver(_arg1){
gotoAndStop(2);
}
}
}//package SummerCrazeeng_fla
Section 16
//buttonNoMoarHints_55 (SummerCrazeeng_fla.buttonNoMoarHints_55)
package SummerCrazeeng_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
public dynamic class buttonNoMoarHints_55 extends MovieClip {
public var nomoretxt:TextField;
public var ch:MovieClip;
public var cover:SimpleButton;
public function buttonNoMoarHints_55(){
addFrameScript(0, frame1);
}
function frame1(){
cover.addEventListener(MouseEvent.CLICK, ch.MouseClick);
cover.useHandCursor = false;
nomoretxt.text = root.lc.String.(@id == "NO_MORE_HINTS");
}
}
}//package SummerCrazeeng_fla
Section 17
//buttonPlus_82 (SummerCrazeeng_fla.buttonPlus_82)
package SummerCrazeeng_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
public dynamic class buttonPlus_82 extends MovieClip {
public var clickFunc:Function;
public var isactive:Boolean;
public function buttonPlus_82(){
addFrameScript(0, frame1);
}
public function MouseUp(_arg1){
gotoAndStop(2);
}
public function MouseClick(_arg1){
if (((!((null == clickFunc))) && (isactive))){
clickFunc();
};
}
function frame1(){
this.addEventListener(MouseEvent.MOUSE_OVER, MouseOver);
this.addEventListener(MouseEvent.MOUSE_OUT, MouseOut);
this.addEventListener(MouseEvent.CLICK, MouseClick);
this.addEventListener(MouseEvent.MOUSE_DOWN, MouseDown);
this.addEventListener(MouseEvent.MOUSE_UP, MouseUp);
stop();
}
public function MouseOut(_arg1){
gotoAndStop(1);
}
public function MouseDown(_arg1){
gotoAndStop(3);
}
public function MouseOver(_arg1){
gotoAndStop(2);
}
}
}//package SummerCrazeeng_fla
Section 18
//buttonPlusUpgrade_161 (SummerCrazeeng_fla.buttonPlusUpgrade_161)
package SummerCrazeeng_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
public dynamic class buttonPlusUpgrade_161 extends MovieClip {
public var clickFunc:Function;
public var isactive:Boolean;
public function buttonPlusUpgrade_161(){
addFrameScript(0, frame1);
}
public function MouseUp(_arg1){
gotoAndStop(2);
}
public function MouseClick(_arg1){
if (((!((null == clickFunc))) && (isactive))){
clickFunc();
};
}
function frame1(){
this.addEventListener(MouseEvent.MOUSE_OVER, MouseOver);
this.addEventListener(MouseEvent.MOUSE_OUT, MouseOut);
this.addEventListener(MouseEvent.CLICK, MouseClick);
this.addEventListener(MouseEvent.MOUSE_DOWN, MouseDown);
this.addEventListener(MouseEvent.MOUSE_UP, MouseUp);
stop();
}
public function MouseOut(_arg1){
gotoAndStop(1);
}
public function MouseDown(_arg1){
gotoAndStop(3);
}
public function MouseOver(_arg1){
gotoAndStop(2);
}
}
}//package SummerCrazeeng_fla
Section 19
//buttonUpgrade_162 (SummerCrazeeng_fla.buttonUpgrade_162)
package SummerCrazeeng_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
public dynamic class buttonUpgrade_162 extends MovieClip {
public var clickFunc:Function;
public var isactive:Boolean;
public function buttonUpgrade_162(){
addFrameScript(0, frame1);
}
public function MouseUp(_arg1){
if (isactive){
gotoAndStop(2);
};
}
public function MouseClick(_arg1){
if (((!((null == clickFunc))) && (isactive))){
clickFunc();
};
}
function frame1(){
this.addEventListener(MouseEvent.MOUSE_OVER, MouseOver);
this.addEventListener(MouseEvent.MOUSE_OUT, MouseOut);
this.addEventListener(MouseEvent.CLICK, MouseClick);
this.addEventListener(MouseEvent.MOUSE_DOWN, MouseDown);
this.addEventListener(MouseEvent.MOUSE_UP, MouseUp);
stop();
}
public function MouseOut(_arg1){
if (isactive){
gotoAndStop(1);
};
}
public function MouseDown(_arg1){
if (isactive){
gotoAndStop(3);
};
}
public function MouseOver(_arg1){
if (isactive){
gotoAndStop(2);
};
}
}
}//package SummerCrazeeng_fla
Section 20
//checkBox_56 (SummerCrazeeng_fla.checkBox_56)
package SummerCrazeeng_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
public dynamic class checkBox_56 extends MovieClip {
public var V:MovieClip;
public var clickFunc:Function;
public var checked:Boolean;
public function checkBox_56(){
addFrameScript(0, frame1);
}
public function MouseUp(_arg1){
gotoAndStop(2);
}
public function MouseClick(_arg1){
checked = !(checked);
V.visible = checked;
if (null != clickFunc){
clickFunc(checked);
};
}
function frame1(){
V.visible = checked;
this.addEventListener(MouseEvent.MOUSE_OVER, MouseOver);
this.addEventListener(MouseEvent.MOUSE_OUT, MouseOut);
this.addEventListener(MouseEvent.CLICK, MouseClick);
this.addEventListener(MouseEvent.MOUSE_DOWN, MouseDown);
this.addEventListener(MouseEvent.MOUSE_UP, MouseUp);
stop();
}
public function MouseOut(_arg1){
gotoAndStop(1);
}
public function MouseDown(_arg1){
gotoAndStop(3);
}
public function MouseOver(_arg1){
gotoAndStop(2);
}
}
}//package SummerCrazeeng_fla
Section 21
//checkNums_23 (SummerCrazeeng_fla.checkNums_23)
package SummerCrazeeng_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
public dynamic class checkNums_23 extends MovieClip {
public function checkNums_23(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
public function setNum(_arg1:int){
gotoAndStop(_arg1);
}
}
}//package SummerCrazeeng_fla
Section 22
//clock_148 (SummerCrazeeng_fla.clock_148)
package SummerCrazeeng_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
public dynamic class clock_148 extends MovieClip {
public var ticker:FBTimer;
public var seconds:int;
public var timetxt:TextField;
public function clock_148(){
addFrameScript(0, frame1);
}
public function Reset(){
seconds = 0;
minutes = 0;
}
function frame1(){
seconds = 0;
ticker = new FBTimer(1000, tick);
}
public function Start(){
ticker.start();
}
public function tick(_arg1:int){
seconds++;
timetxt.text = ((Math.floor((seconds * 0.0166666666666667)) + ":") + a0((seconds % 60)));
}
public function a0(_arg1:int):String{
if (_arg1 < 10){
return (("0" + _arg1.toString()));
};
return (_arg1.toString());
}
}
}//package SummerCrazeeng_fla
Section 23
//completeOrder_25 (SummerCrazeeng_fla.completeOrder_25)
package SummerCrazeeng_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
public dynamic class completeOrder_25 extends MovieClip {
public const conv:String = "0123456789-+!*comb=";
public const begX:int = 0;
public const fadeTime:int = 500;
public const begY:int = 0;
public const dxSym:int = 11;
public const deltat:int = 50;
public const dySym:int = 13;
public var s3Timer:Timer;
public var s1Fin:Boolean;
public var str3:String;
public var processing:Array;
public var str2:String;
public var str1:String;
public var snum2:int;
public var s2Timer:Timer;
public var snum1:int;
public var s2Fin:Boolean;
public var snum3:int;
public var symbols2:Array;
public var rdydie2:Boolean;
public var rdydie3:Boolean;
public var symbols1:Array;
public var s1Timer:Timer;
public var symbols3:Array;
public var s3Fin:Boolean;
public var rdydie1:Boolean;
public var TimerOfDeath:Timer;
public function completeOrder_25(){
addFrameScript(0, frame1);
}
public function fadeSymS2(_arg1){
snum2--;
if (-1 >= snum2){
s2Fin = true;
processing[1] = false;
s2Timer.stop();
if (((((s3Fin) && (s2Fin))) && (s1Fin))){
Clear();
};
return;
};
symbols2[snum2].StartFade();
}
public function fadeSymS3(_arg1){
snum3--;
if (-1 >= snum3){
s3Fin = true;
processing[2] = false;
s3Timer.stop();
if (((((s3Fin) && (s2Fin))) && (s1Fin))){
Clear();
};
return;
};
symbols3[snum3].StartFade();
}
public function Clear(){
var _local1:int;
rdydie1 = true;
rdydie2 = true;
rdydie3 = true;
_local1 = 0;
while (_local1 < symbols1.length) {
if (symbols1[_local1] != null){
removeChild(symbols1[_local1]);
symbols1[_local1] = null;
};
_local1++;
};
snum1 = 0;
_local1 = 0;
while (_local1 < symbols2.length) {
if (symbols2[_local1] != null){
removeChild(symbols2[_local1]);
symbols2[_local1] = null;
};
_local1++;
};
snum2 = 0;
_local1 = 0;
while (_local1 < symbols3.length) {
if (symbols3[_local1] != null){
removeChild(symbols3[_local1]);
symbols3[_local1] = null;
};
_local1++;
};
snum3 = 0;
}
function frame1(){
s1Timer = new Timer(deltat);
s2Timer = new Timer(deltat);
s3Timer = new Timer(deltat);
TimerOfDeath = new Timer(1000, 1);
TimerOfDeath.addEventListener(TimerEvent.TIMER, CallOfDeath);
snum1 = 0;
snum2 = 0;
snum3 = 0;
symbols1 = new Array();
symbols2 = new Array();
symbols3 = new Array();
s1Fin = true;
s2Fin = true;
s3Fin = true;
rdydie1 = false;
rdydie2 = false;
rdydie3 = false;
processing = new Array(false, false, false);
}
public function fade(_arg1:int){
switch (_arg1){
case 0:
s1Timer.removeEventListener(TimerEvent.TIMER, placeSymS1);
s1Timer.addEventListener(TimerEvent.TIMER, fadeSymS1);
s1Timer.start();
break;
case 1:
s2Timer.addEventListener(TimerEvent.TIMER, fadeSymS2);
s2Timer.removeEventListener(TimerEvent.TIMER, placeSymS2);
s2Timer.start();
break;
case 2:
s3Timer.removeEventListener(TimerEvent.TIMER, placeSymS3);
s3Timer.addEventListener(TimerEvent.TIMER, fadeSymS3);
s3Timer.start();
break;
};
}
public function placeSymS3(_arg1){
symbols3[snum3] = this.addChild(new digitFly());
symbols3[snum3].x = (begX + (snum3 * dxSym));
symbols3[snum3].y = (begY + (dySym * 2));
putsym(symbols3[snum3].dg, str3.charAt(snum3));
snum3++;
if (str3.length <= snum3){
s3Timer.stop();
rdydie3 = true;
if (((((rdydie1) && (rdydie2))) && (rdydie3))){
TimerOfDeath.start();
};
};
}
public function putsym(_arg1:MovieClip, _arg2:String){
switch (_arg2){
case "-":
_arg1.gotoAndStop(11);
break;
case "*":
_arg1.gotoAndStop(14);
break;
case "=":
_arg1.gotoAndStop(19);
break;
default:
_arg1.c.text = _arg2;
};
}
public function placeSymS2(_arg1){
symbols2[snum2] = this.addChild(new digitFly());
symbols2[snum2].x = (begX + (snum2 * dxSym));
symbols2[snum2].y = (begY + dySym);
putsym(symbols2[snum2].dg, str2.charAt(snum2));
snum2++;
if (str2.length <= snum2){
s2Timer.stop();
rdydie2 = true;
if (((((rdydie1) && (rdydie2))) && (rdydie3))){
TimerOfDeath.start();
};
};
}
public function CallOfDeath(_arg1){
if (!s1Fin){
fade(0);
};
if (!s2Fin){
fade(1);
};
if (!s3Fin){
fade(2);
};
}
public function fadeSymS1(_arg1){
snum1--;
if (-1 >= snum1){
processing[0] = false;
s1Fin = true;
s1Timer.stop();
if (((((s3Fin) && (s2Fin))) && (s1Fin))){
Clear();
};
return;
};
symbols1[snum1].StartFade();
}
public function Resume(){
if (((processing[0]) && ((str1.length > snum1)))){
s1Timer.start();
};
if (((processing[1]) && ((str2.length > snum2)))){
s2Timer.start();
};
if (((processing[2]) && ((str3.length > snum3)))){
s3Timer.start();
};
if (((((rdydie1) && (rdydie2))) && (rdydie3))){
TimerOfDeath.start();
};
}
public function Pause(){
if (processing[0]){
s1Timer.stop();
};
if (processing[1]){
s2Timer.stop();
};
if (processing[2]){
s3Timer.stop();
};
}
public function placeSymS1(_arg1){
symbols1[snum1] = this.addChild(new digitFly());
symbols1[snum1].x = (begX + (snum1 * dxSym));
symbols1[snum1].y = begY;
putsym(symbols1[snum1].dg, str1.charAt(snum1));
snum1++;
if (str1.length <= snum1){
s1Timer.stop();
rdydie1 = true;
if (((((rdydie1) && (rdydie2))) && (rdydie3))){
TimerOfDeath.start();
};
};
}
public function write(_arg1:String, _arg2:int){
Clear();
processing[_arg2] = true;
switch (_arg2){
case 0:
s1Fin = false;
rdydie1 = false;
str1 = _arg1;
s1Timer.removeEventListener(TimerEvent.TIMER, fadeSymS1);
s1Timer.addEventListener(TimerEvent.TIMER, placeSymS1);
s1Timer.start();
break;
case 1:
s2Fin = false;
rdydie2 = false;
str2 = _arg1;
s2Timer.removeEventListener(TimerEvent.TIMER, fadeSymS2);
s2Timer.addEventListener(TimerEvent.TIMER, placeSymS2);
s2Timer.start();
break;
case 2:
s3Fin = false;
rdydie2 = false;
str3 = _arg1;
s3Timer.removeEventListener(TimerEvent.TIMER, fadeSymS3);
s3Timer.addEventListener(TimerEvent.TIMER, placeSymS3);
s3Timer.start();
break;
};
}
public function sym2numAt(_arg1:String, _arg2:int):int{
var _local3:int;
_local3 = 0;
while (_local3 < conv.length) {
if (conv.charAt(_local3) == _arg1.charAt(_arg2)){
return (_local3);
};
_local3++;
};
return (-1);
}
}
}//package SummerCrazeeng_fla
Section 24
//cont_47 (SummerCrazeeng_fla.cont_47)
package SummerCrazeeng_fla {
import flash.display.*;
public dynamic class cont_47 extends MovieClip {
public var u2:MovieClip;
public var u1:MovieClip;
}
}//package SummerCrazeeng_fla
Section 25
//cupAnim_63 (SummerCrazeeng_fla.cupAnim_63)
package SummerCrazeeng_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
public dynamic class cupAnim_63 extends MovieClip {
public var cup:MovieClip;
public function cupAnim_63(){
addFrameScript(59, frame60);
}
function frame60(){
stop();
}
}
}//package SummerCrazeeng_fla
Section 26
//cupico_61 (SummerCrazeeng_fla.cupico_61)
package SummerCrazeeng_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
public dynamic class cupico_61 extends MovieClip {
public function cupico_61(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package SummerCrazeeng_fla
Section 27
//digit_8 (SummerCrazeeng_fla.digit_8)
package SummerCrazeeng_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
public dynamic class digit_8 extends MovieClip {
public var c:TextField;
public function digit_8(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
public function setNum(_arg1:int){
gotoAndStop((1 + _arg1));
}
}
}//package SummerCrazeeng_fla
Section 28
//glass_72 (SummerCrazeeng_fla.glass_72)
package SummerCrazeeng_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
public dynamic class glass_72 extends MovieClip {
public const glassY:int = 73;
public const glassX:int = 9;
public var ys:Array;
public var strm:MovieClip;
public var m1:MovieClip;
public var widths:Array;
public var xs:Array;
public var m2:MovieClip;
public var we:MovieClip;
public var wm:MovieClip;
public function glass_72(){
addFrameScript(0, frame1);
}
public function setWaterEdge(_arg1:Number){
var _local2:Number;
var _local3:int;
var _local4:int;
var _local5:*;
_local2 = ((-((ys[0] - ys[5])) * _arg1) + ys[0]);
_local3 = -1;
_local4 = 0;
while (_local4 < 5) {
if ((((ys[_local4] >= _local2)) && ((ys[(_local4 + 1)] <= _local2)))){
_local3 = _local4;
break;
};
_local4++;
};
_local5 = ((_local2 - ys[(_local4 + 1)]) / (ys[_local4] - ys[(_local4 + 1)]));
if (_local3 == 5){
we.width = widths[5];
we.x = (glassX + xs[5]);
we.y = (glassY + ys[5]);
} else {
we.width = ((widths[(_local3 + 1)] * (1 - _local5)) + (widths[_local3] * _local5));
we.x = ((glassX + (xs[(_local3 + 1)] * (1 - _local5))) + (xs[_local3] * _local5));
we.y = ((glassY + (ys[(_local3 + 1)] * (1 - _local5))) + (ys[_local3] * _local5));
m2.y = (we.y - 181);
m1.y = we.y;
};
}
public function setWaterMark(_arg1:Number){
var _local2:Number;
var _local3:int;
var _local4:int;
var _local5:*;
_local2 = ((-((ys[0] - ys[5])) * _arg1) + ys[0]);
_local3 = -1;
_local4 = 0;
while (_local4 < 5) {
if ((((ys[_local4] >= _local2)) && ((ys[(_local4 + 1)] <= _local2)))){
_local3 = _local4;
break;
};
_local4++;
};
_local5 = ((_local2 - ys[(_local4 + 1)]) / (ys[_local4] - ys[(_local4 + 1)]));
if (_local3 == 5){
wm.width = widths[5];
wm.x = (glassX + xs[5]);
wm.y = (glassY + ys[5]);
} else {
wm.width = ((widths[(_local3 + 1)] * (1 - _local5)) + (widths[_local3] * _local5));
wm.x = ((glassX + (xs[(_local3 + 1)] * (1 - _local5))) + (xs[_local3] * _local5));
wm.y = ((glassY + (ys[(_local3 + 1)] * (1 - _local5))) + (ys[_local3] * _local5));
};
}
function frame1(){
strm.visible = false;
widths = new Array(56, 64, 70, 70, 85, 70);
ys = new Array(158, 154, 135, 75, 35, 2);
xs = new Array(20, 16, 13, 13, 5, 13);
we.visible = false;
}
}
}//package SummerCrazeeng_fla
Section 29
//goalsButton_144 (SummerCrazeeng_fla.goalsButton_144)
package SummerCrazeeng_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
public dynamic class goalsButton_144 extends MovieClip {
public var clickFunc:Function;
public var capt:TextField;
public function goalsButton_144(){
addFrameScript(0, frame1);
}
public function MouseUp(_arg1){
gotoAndStop(2);
}
public function MouseClick(_arg1){
if (null != clickFunc){
clickFunc();
};
}
function frame1(){
this.addEventListener(MouseEvent.MOUSE_OVER, MouseOver);
this.addEventListener(MouseEvent.MOUSE_OUT, MouseOut);
this.addEventListener(MouseEvent.CLICK, MouseClick);
this.addEventListener(MouseEvent.MOUSE_DOWN, MouseDown);
this.addEventListener(MouseEvent.MOUSE_UP, MouseUp);
stop();
}
public function MouseOut(_arg1){
gotoAndStop(1);
}
public function MouseDown(_arg1){
gotoAndStop(3);
}
public function MouseOver(_arg1){
gotoAndStop(2);
}
}
}//package SummerCrazeeng_fla
Section 30
//goldcup_64 (SummerCrazeeng_fla.goldcup_64)
package SummerCrazeeng_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
public dynamic class goldcup_64 extends MovieClip {
public function goldcup_64(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package SummerCrazeeng_fla
Section 31
//HandItem_32 (SummerCrazeeng_fla.HandItem_32)
package SummerCrazeeng_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
public dynamic class HandItem_32 extends MovieClip {
public function HandItem_32(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
public function setItem(_arg1:int){
var _local2:Array;
_local2 = new Array(0, 4, 1, 2, 3, 5, 6);
if (0 != _arg1){
gotoAndStop(_local2[_arg1]);
};
}
}
}//package SummerCrazeeng_fla
Section 32
//hintArrow_59 (SummerCrazeeng_fla.hintArrow_59)
package SummerCrazeeng_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
public dynamic class hintArrow_59 extends MovieClip {
public function hintArrow_59(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package SummerCrazeeng_fla
Section 33
//hintArrowCont_58 (SummerCrazeeng_fla.hintArrowCont_58)
package SummerCrazeeng_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
public dynamic class hintArrowCont_58 extends MovieClip {
public var hp:int;
public var ar:MovieClip;
public var at:FBTimer;
public var aPhaze:Number;
public var vp:int;
public function hintArrowCont_58(){
addFrameScript(0, frame1);
}
public function af(_arg1:int){
ar.x = (((ar.width * 0.5) * vp) + ((Math.sin(aPhaze) * hp) * 10));
ar.y = (((-(ar.height) * 0.5) * hp) + ((Math.sin(aPhaze) * vp) * 10));
aPhaze = (aPhaze + 0.5);
}
public function stopArrow(){
at.stop();
ar.x = (ar.width * 0.5);
ar.y = (ar.height * 0.5);
aPhaze = 0;
}
function frame1(){
}
public function SetupArrow(_arg1:int, _arg2:int){
if ((((0 == _arg1)) && ((0 == _arg2)))){
return;
};
hp = _arg1;
vp = _arg2;
aPhaze = 0;
at = new FBTimer(120, af);
if (0 == (_arg1 * _arg2)){
ar.gotoAndStop(1);
if (_arg1 == 1){
ar.rotation = 90;
} else {
if (_arg1 == -1){
ar.rotation = -90;
} else {
if (_arg2 == 1){
ar.rotation = 180;
} else {
ar.rotation = 0;
};
};
};
} else {
ar.gotoAndStop(2);
if (_arg1 == 1){
if (_arg2 == -1){
ar.rotation = 0;
} else {
ar.rotation = 90;
};
} else {
if (_arg2 == -1){
ar.rotation = -90;
} else {
ar.rotation = 180;
};
};
};
ar.x = ((ar.width * 0.5) * _arg2);
ar.y = ((-(ar.height) * 0.5) * _arg1);
at.start();
}
}
}//package SummerCrazeeng_fla
Section 34
//hintRotateMiddle_53 (SummerCrazeeng_fla.hintRotateMiddle_53)
package SummerCrazeeng_fla {
import flash.display.*;
public dynamic class hintRotateMiddle_53 extends MovieClip {
public var rotor:MovieClip;
}
}//package SummerCrazeeng_fla
Section 35
//icoBuilding_157 (SummerCrazeeng_fla.icoBuilding_157)
package SummerCrazeeng_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
public dynamic class icoBuilding_157 extends MovieClip {
public function icoBuilding_157(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package SummerCrazeeng_fla
Section 36
//leftHandUp0_30 (SummerCrazeeng_fla.leftHandUp0_30)
package SummerCrazeeng_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
public dynamic class leftHandUp0_30 extends MovieClip {
public function leftHandUp0_30(){
addFrameScript(7, frame8);
}
function frame8(){
gotoAndPlay(1);
}
}
}//package SummerCrazeeng_fla
Section 37
//loaderBar_2 (SummerCrazeeng_fla.loaderBar_2)
package SummerCrazeeng_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
public dynamic class loaderBar_2 extends MovieClip {
public var mainLoaded:Boolean;
public var alph:Number;
public var m:MovieClip;
public var locLoader;
public var country:String;
public var loads:Array;
public var locPath:String;
public var lang:String;
public function loaderBar_2(){
addFrameScript(0, frame1);
}
public function lfinLoaded(_arg1:Event):void{
root.End_levelpng = (this.lfinLoader.content as Bitmap);
loads[5] = true;
if (loadComplete()){
parent.gotoAndStop(3);
};
}
public function cmxLoaded(_arg1:Event):void{
root.Komiks_01jpg = (this.cmxLoader.content as Bitmap);
loads[4] = true;
if (loadComplete()){
parent.gotoAndStop(3);
};
}
public function errorMmenu(_arg1:Event):void{
loads[3] = true;
if (loadComplete()){
parent.gotoAndStop(3);
};
}
public function errorCmx(_arg1:Event):void{
loads[4] = true;
if (loadComplete()){
parent.gotoAndStop(3);
};
}
public function errorLoc(_arg1:Event):void{
loads[2] = true;
if (loadComplete()){
parent.gotoAndStop(3);
};
}
public function loadComplete():Boolean{
var _local1:Boolean;
for each (_local1 in loads) {
if (!_local1){
return (false);
};
};
root.mainback.visible = true;
return (true);
}
public function errorLfin(_arg1:Event):void{
loads[5] = true;
if (loadComplete()){
parent.gotoAndStop(3);
};
}
function frame1(){
this.loaderInfo.addEventListener(ProgressEvent.PROGRESS, ex);
this.loaderInfo.addEventListener(Event.COMPLETE, complet);
loads = new Array(false, false, false, false, false, false);
lang = root.loaderInfo.parameters.language;
country = root.loaderInfo.parameters.country;
if (lang == null){
lang = "en";
};
if (country == null){
country = "US";
};
locPath = (((("localized/" + lang) + "-") + country) + "/");
mainLoaded = false;
this.logoLoader = new Loader();
this.logoLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, logoLoaded, false, 0, true);
this.logoLoader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, errorLogo, false, 0, true);
this.logoLoader.load(new URLRequest("logos/logo.png"));
locLoader = new URLLoader();
locLoader.addEventListener(Event.COMPLETE, locLoaded, false, 0, true);
locLoader.addEventListener(IOErrorEvent.IO_ERROR, errorLoc, false, 0, true);
locLoader.load(new URLRequest((locPath + "text/text.xml")));
this.mmenuLoader = new Loader();
this.mmenuLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, mmenuLoaded, false, 0, true);
this.mmenuLoader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, errorMmenu, false, 0, true);
this.mmenuLoader.load(new URLRequest((locPath + "images/Main_menu.jpg")));
this.cmxLoader = new Loader();
this.cmxLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, cmxLoaded, false, 0, true);
this.cmxLoader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, errorCmx, false, 0, true);
this.cmxLoader.load(new URLRequest((locPath + "images/Komiks_01.jpg")));
this.lfinLoader = new Loader();
this.lfinLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, lfinLoaded, false, 0, true);
this.lfinLoader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, errorLfin, false, 0, true);
this.lfinLoader.load(new URLRequest((locPath + "images/End_level.png")));
}
public function mmenuLoaded(_arg1:Event):void{
root.Main_menujpg = (this.mmenuLoader.content as Bitmap);
root.mainback.addChild(new Bitmap(root.Main_menujpg.bitmapData.clone()));
loads[3] = true;
if (loadComplete()){
parent.gotoAndStop(3);
};
}
public function locLoaded(_arg1:Event):void{
root.lc = new XML(_arg1.target.data);
loads[2] = true;
if (loadComplete()){
parent.gotoAndStop(3);
};
}
public function logoLoaded(_arg1:Event):void{
root.logoBMP = (this.logoLoader.content as Bitmap);
loads[1] = true;
if (loadComplete()){
parent.gotoAndStop(3);
};
}
public function complet(_arg1:Event){
this.loaderInfo.removeEventListener(ProgressEvent.PROGRESS, ex);
this.loaderInfo.removeEventListener(Event.COMPLETE, complet);
loads[0] = true;
if (loadComplete()){
parent.gotoAndStop(3);
};
}
public function ex(_arg1:ProgressEvent):void{
alph = (_arg1.bytesLoaded / _arg1.bytesTotal);
m.x = (-219 * (1 - alph));
if (_arg1.bytesLoaded == _arg1.bytesTotal){
alph = 1;
this.loaderInfo.removeEventListener(ProgressEvent.PROGRESS, ex);
this.loaderInfo.removeEventListener(Event.COMPLETE, complet);
loads[0] = true;
if (loadComplete()){
parent.gotoAndStop(3);
};
};
}
public function errorLogo(_arg1:Event):void{
loads[1] = true;
if (loadComplete()){
parent.gotoAndStop(3);
};
}
}
}//package SummerCrazeeng_fla
Section 38
//loaderLogoFBN_6 (SummerCrazeeng_fla.loaderLogoFBN_6)
package SummerCrazeeng_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
public dynamic class loaderLogoFBN_6 extends MovieClip {
public function loaderLogoFBN_6(){
addFrameScript(0, frame1);
}
function frame1(){
visible = false;
}
}
}//package SummerCrazeeng_fla
Section 39
//loaderLogoMain_4 (SummerCrazeeng_fla.loaderLogoMain_4)
package SummerCrazeeng_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
public dynamic class loaderLogoMain_4 extends MovieClip {
public var loader;
public function loaderLogoMain_4(){
addFrameScript(0, frame1);
}
public function error(_arg1:Event):void{
visible = true;
parent.bnlogo.visible = true;
parent.olologo.visible = true;
}
public function Loaded(_arg1:Event):void{
addChild((loader.content as Bitmap));
visible = true;
parent.bnlogo.visible = true;
parent.olologo.visible = true;
}
function frame1(){
visible = false;
loader = new Loader();
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, Loaded, false, 0, true);
loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, error, false, 0, true);
loader.load(new URLRequest((parent.bar.locPath + "images/Logo_Loader.jpg")));
}
}
}//package SummerCrazeeng_fla
Section 40
//loaderLogoOlowar_5 (SummerCrazeeng_fla.loaderLogoOlowar_5)
package SummerCrazeeng_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
public dynamic class loaderLogoOlowar_5 extends MovieClip {
public function loaderLogoOlowar_5(){
addFrameScript(0, frame1);
}
function frame1(){
visible = false;
}
}
}//package SummerCrazeeng_fla
Section 41
//mainBack_1 (SummerCrazeeng_fla.mainBack_1)
package SummerCrazeeng_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
public dynamic class mainBack_1 extends MovieClip {
public var done:Boolean;
public function mainBack_1(){
addFrameScript(0, frame1);
}
function frame1(){
if (((!(done)) && (!((root.Main_menujpg == null))))){
done = true;
this.addChild(new Bitmap(root.Main_menujpg.bitmapData.clone()));
};
}
}
}//package SummerCrazeeng_fla
Section 42
//mainButton_50 (SummerCrazeeng_fla.mainButton_50)
package SummerCrazeeng_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
public dynamic class mainButton_50 extends MovieClip {
public var clickFunc:Function;
public var capt:TextField;
public function mainButton_50(){
addFrameScript(0, frame1);
}
public function MouseUp(_arg1){
gotoAndStop(2);
}
public function MouseClick(_arg1){
if (null != clickFunc){
clickFunc();
};
}
function frame1(){
this.addEventListener(MouseEvent.MOUSE_OVER, MouseOver);
this.addEventListener(MouseEvent.MOUSE_OUT, MouseOut);
this.addEventListener(MouseEvent.CLICK, MouseClick);
this.addEventListener(MouseEvent.MOUSE_DOWN, MouseDown);
this.addEventListener(MouseEvent.MOUSE_UP, MouseUp);
stop();
}
public function MouseOut(_arg1){
gotoAndStop(1);
}
public function MouseDown(_arg1){
gotoAndStop(3);
}
public function MouseOver(_arg1){
gotoAndStop(2);
}
}
}//package SummerCrazeeng_fla
Section 43
//mainButtonBigger_166 (SummerCrazeeng_fla.mainButtonBigger_166)
package SummerCrazeeng_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
public dynamic class mainButtonBigger_166 extends MovieClip {
public var clickFunc:Function;
public var capt:TextField;
public function mainButtonBigger_166(){
addFrameScript(0, frame1);
}
public function MouseUp(_arg1){
gotoAndStop(2);
}
public function MouseClick(_arg1){
if (null != clickFunc){
clickFunc();
};
}
function frame1(){
this.addEventListener(MouseEvent.MOUSE_OVER, MouseOver);
this.addEventListener(MouseEvent.MOUSE_OUT, MouseOut);
this.addEventListener(MouseEvent.CLICK, MouseClick);
this.addEventListener(MouseEvent.MOUSE_DOWN, MouseDown);
this.addEventListener(MouseEvent.MOUSE_UP, MouseUp);
stop();
}
public function MouseOut(_arg1){
gotoAndStop(1);
}
public function MouseDown(_arg1){
gotoAndStop(3);
}
public function MouseOver(_arg1){
gotoAndStop(2);
}
}
}//package SummerCrazeeng_fla
Section 44
//mainButtonDownload_156 (SummerCrazeeng_fla.mainButtonDownload_156)
package SummerCrazeeng_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
public dynamic class mainButtonDownload_156 extends MovieClip {
public var clickFunc:Function;
public var capt:TextField;
public function mainButtonDownload_156(){
addFrameScript(0, frame1);
}
public function MouseUp(_arg1){
gotoAndStop(2);
}
public function MouseClick(_arg1){
if (null != clickFunc){
clickFunc();
};
}
function frame1(){
this.addEventListener(MouseEvent.MOUSE_OVER, MouseOver);
this.addEventListener(MouseEvent.MOUSE_OUT, MouseOut);
this.addEventListener(MouseEvent.CLICK, MouseClick);
this.addEventListener(MouseEvent.MOUSE_DOWN, MouseDown);
this.addEventListener(MouseEvent.MOUSE_UP, MouseUp);
stop();
}
public function MouseOut(_arg1){
gotoAndStop(1);
}
public function MouseDown(_arg1){
gotoAndStop(3);
}
public function MouseOver(_arg1){
gotoAndStop(2);
}
}
}//package SummerCrazeeng_fla
Section 45
//MainTimeline (SummerCrazeeng_fla.MainTimeline)
package SummerCrazeeng_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
public dynamic class MainTimeline extends MovieClip {
public const logoX:int = 10;
public const logoY:int = 10;
public const bananatX:int = 51;
public const bananatY:int = 48;
public const mapShiftX = 31;
public const dt:Number = 0.025;
public const mapShiftY = -35;
public const buttertime:int = 500;
public const mashaSpeed:Number;
public const fps:int = 40;
public const msBetweenCadres:int;
public const ratamatX:int = 14;
public const ratamatY:int = 44;
public const timeBetweenPeopleEnter = 500;
public const watamatX:int = 45;
public const watamatY:int = 21;
public const satamatX:int = 12;
public const satamatY:int = 34;
public const wereX:int = 13;
public const wereY:int = 20;
public const FieldSizeX:int = 65;
public const FieldSizeY:int = 65;
public const batamatX:int = 53;
public const batamatY:int = 31;
public const blockSizeY:int = 8;
public const blockSizeX:int = 8;
public var goalBar:MovieClip;
public var link:String;
public var clock:MovieClip;
public var bar:MovieClip;
public var bNeed:Boolean;
public var ChosenDirY:int;
public var fpsMeter:Timer;
public var LastUnusedInd:int;
public var MashaTask:Array;
public var mashaWorked:Boolean;
public var ChosenDirX:int;
public var closedList:Array;
public var gameStarted:Boolean;
public var peopleLastEnter:int;
public var lvlHasBanan:Array;
public var winSecs:int;
public var levelMoneys:Array;
public var rentPos:Array;
public var stars:int;
public var bground:MovieClip;
public var txtField:String;
public var i:int;
public var j:int;
public var mtasksTotal;
public var tmpbool:Boolean;
public var mFade:FadeIn;
public var lastDeed:int;
public var hdescs:Array;
public var delivering:Boolean;
public var combometr:int;
public var Money:Sound;
public var souvPlaces:Array;
public var Zont_put:Sound;
public var tMoney:TextField;
public var Voda_v_stakan:Sound;
public var dload_f:String;
public var lvlHasBatamat:Array;
public var money:int;
public var menubut:MovieClip;
public var Banan_01:Sound;
public var minigame:MovieClip;
public var vol:SoundTransform;
public var fpsCounter:int;
public var Field:Array;
public var rentPlaces:Array;
public var bypass:String;
public var alawar_f:Boolean;
public var bChances:Array;
public var hintTimer:FBTimer;
public var mXpos:int;
public var pTotalTxt:TextField;
public var it:int;
public var swimPlaces:Array;
public var mashaPathI:int;
public var banPlaces:Array;
public var waha:MovieClip;
public var curlevel:int;
public var Predmet_up:Sound;
public var Sounds:SoundChannel;
public var goalstate:Goals;
public var mYpos:int;
public var dirX:int;
public var Combo:Sound;
public var Moto_start:Sound;
public var dirY:int;
public var Click_Interface1:Sound;
public var lc:XML;
public var levels:Array;
public var finScoreSent:Boolean;
public var YA_W_no:Sound;
public var comboword:String;
public var sheslongs:Array;
public var Wrong:Sound;
public var upgradesBought:Array;
public var bananat:MovieClip;
public var fpsText:TextField;
public var NextPointX:int;
public var Main_menujpg:Bitmap;
public var NextPointY:int;
public var wareSlots:Array;
public var YA_M_no:Sound;
public var music_game:Sound;
public var gPause:Boolean;
public var hintsOn:Boolean;
public var upos:Array;
public var mtasksShow;
public var smask:MovieClip;
public var mXshift:Number;
public var OField:Array;
public var gpanel:MovieClip;
public var Music:SoundChannel;
public var cheats:Boolean;
public var openList:Array;
public var victory:Boolean;
public var butterbar:MovieClip;
public var mainback:MovieClip;
public var allsounds:Array;
public var ummc:Array;
public var satamat:MovieClip;
public var sb:MovieClip;
public var topmost:Array;
public var Predmet_down:Sound;
public var lvlHasRent:Array;
public var Zont_take:Sound;
public var briderMask:MovieClip;
public var Ambient:SoundChannel;
public var aFade:FadeIn;
public var hint:hintRotateOuter;
public var Zdan_postr:Sound;
public var buyerChances:Array;
public var uposs:Array;
public var shezOccupied:Array;
public var masha:MovieClip;
public var mouseDisable:Boolean;
public var score:Array;
public var mYshift:Number;
public var levelStates:Array;
public var swim1:MovieClip;
public var swim2:MovieClip;
public var lpops:Array;
public var shezPlaces:Array;
public var Komiks_01jpg:Bitmap;
public var hints:Array;
public var lastStamp:int;
public var Avtomat_01:Sound;
public var lgoals:Array;
public var olologo:MovieClip;
public var mashaPath:Array;
public var goalsSym:MovieClip;
public var batamat:MovieClip;
public var VhodOchered:int;
public var ratamat:MovieClip;
public var YA_W_yes:Sound;
public var More_01:Sound;
public var GOAL:Sound;
public var souvPos:Array;
public var mashaFazaZakaza:int;
public var End_level:Sound;
public var End_levelpng:Bitmap;
public var cont:MovieClip;
public var watamat:MovieClip;
public var numsAdded:int;
public var Moto_finish:Sound;
public var motobar:MovieClip;
public var brider:MovieClip;
public var startScreen:MovieClip;
public var menuMap:MovieClip;
public var Take_water:Sound;
public var svol:SoundTransform;
public var ppls:Array;
public var goalnum:int;
public var MPoints:Array;
public var lvlHasSS:Array;
public var levelChances:Array;
public var updTimer:Timer;
public var Stamp:int;
public var moto:MovieClip;
public var mashatimer:FBTimer;
public var wish2xatamat:Array;
public var LastIndex:int;
public var banPos:Array;
public var logoBMP:Bitmap;
public var hintInd:int;
public var close_f:String;
public var bnlogo:MovieClip;
public var mashaTimerFunc:Function;
public var sclogo:MovieClip;
public var pplsTotal:int;
public var YA_M_yes:Sound;
public function MainTimeline(){
msBetweenCadres = int((1000 / fps));
mashaSpeed = (blockSizeX * 15);
super();
addFrameScript(0, frame1, 2, frame3);
}
public function removeShezlong():Boolean{
var _local1:int;
if (mashaFazaZakaza == 1){
mashaFazaZakaza = 2;
shiftNums();
numsAdded = 1;
StartMashaTimer(processMashaDeed, 300);
masha.Manim2.PlayAnim(4);
return (false);
};
if (mashaFazaZakaza == 2){
lastDeed = 8;
if (!haveFreeShes()){
unsetGrayEnter();
};
shezOccupied[MashaTask[0].pind] = false;
cont.removeChild(sheslongs[MashaTask[0].pind]);
sheslongs[MashaTask[0].pind] = null;
_local1 = 0;
while (_local1 < 3) {
if (uposs[_local1] == MashaTask[0].pind){
ummc[_local1].visible = true;
setUmbrella(_local1);
};
_local1++;
};
masha.RH = true;
masha.LH = true;
masha.RHItem = 3;
masha.LHItem = 4;
if (((!((undefined == MashaTask[1]))) && ((MashaTask[1].deed == 8)))){
NextPointX = shezPlaces[MashaTask[1].pind].X;
NextPointY = (shezPlaces[MashaTask[1].pind].Y + 1);
mashaFazaZakaza = 0;
numsAdded = 0;
shiftMashaDeed();
} else {
mashaFazaZakaza = 3;
NextPointX = wereX;
NextPointY = wereY;
};
SendMasha();
} else {
if (mashaFazaZakaza == 0){
mashaFazaZakaza = 1;
NextPointX = shezPlaces[MashaTask[0].pind].X;
NextPointY = (shezPlaces[MashaTask[0].pind].Y + 1);
SendMasha();
} else {
if (mashaFazaZakaza == 3){
mashaFazaZakaza = 4;
masha.Manim2.PlayAnim(4);
StartMashaTimer(processMashaDeed, 300);
masha.RH = false;
masha.LH = false;
return (false);
};
numsAdded = 0;
shiftMashaDeed();
if (0 == mtasksTotal){
masha.stand();
};
return (processMashaDeed());
};
};
return (true);
}
public function RemoveShezlong(_arg1:int){
MashaTask[mtasksTotal] = new mtask(8, 0, _arg1);
mtasksTotal++;
mtasksShow++;
sheslongs[_arg1].setNum(mtasksShow);
if (1 == mtasksTotal){
processMashaDeed();
mashaFazaZakaza = 0;
};
}
public function destroy(_arg1=null){
var ev = _arg1;
ClearLevel();
clock.ticker.Delete();
brider.bTimer.Delete();
moto.deliveryTimer.removeEventListener(TimerEvent.TIMER, moto.Move);
updTimer.stop();
updTimer.removeEventListener(TimerEvent.TIMER, Update);
updTimer = null;
fpsMeter.stop();
fpsMeter.addEventListener(TimerEvent.TIMER, UpdateFPS);
fpsMeter = null;
Music.stop();
Ambient.stop();
Sounds.stop();
try {
Banan_01.close();
} catch(err:Error) {
};
try {
Moto_start.close();
} catch(err:Error) {
};
try {
End_level.close();
} catch(err:Error) {
};
try {
Avtomat_01.close();
} catch(err:Error) {
};
try {
GOAL.close();
} catch(err:Error) {
};
try {
Moto_finish.close();
} catch(err:Error) {
};
try {
Combo.close();
} catch(err:Error) {
};
try {
Voda_v_stakan.close();
} catch(err:Error) {
};
try {
Zdan_postr.close();
} catch(err:Error) {
};
try {
Money.close();
} catch(err:Error) {
};
try {
YA_M_yes.close();
} catch(err:Error) {
};
try {
Wrong.close();
} catch(err:Error) {
};
try {
YA_W_yes.close();
} catch(err:Error) {
};
try {
YA_M_no.close();
} catch(err:Error) {
};
try {
Predmet_down.close();
} catch(err:Error) {
};
try {
Zont_take.close();
} catch(err:Error) {
};
try {
YA_W_no.close();
} catch(err:Error) {
};
try {
Zont_put.close();
} catch(err:Error) {
};
try {
Predmet_up.close();
} catch(err:Error) {
};
try {
Take_water.close();
} catch(err:Error) {
};
try {
Click_Interface1.close();
} catch(err:Error) {
};
try {
music_game.close();
} catch(err:Error) {
};
try {
More_01.close();
} catch(err:Error) {
};
mail_ru_connection.close();
}
public function GetNextDir2(_arg1:int, _arg2:int, _arg3:int, _arg4:Array):vec2i{
if ((((0 == _arg3)) || ((_arg4.length <= 1)))){
return (new vec2i(0, 0));
};
_arg3--;
if ((((((NextPointX == mXpos)) && ((NextPointY == mYpos)))) && ((_arg4 == mashaPath)))){
};
if (_arg4[(_arg3 + 1)].X < _arg4[_arg3].X){
return (new vec2i(1, 0));
};
if (_arg4[(_arg3 + 1)].X > _arg4[_arg3].X){
return (new vec2i(-1, 0));
};
if (_arg4[(_arg3 + 1)].Y < _arg4[_arg3].Y){
return (new vec2i(0, 1));
};
if (_arg4[(_arg3 + 1)].Y > _arg4[_arg3].Y){
return (new vec2i(0, -1));
};
}
public function sendEnd(){
if (gameStarted){
try {
mail_ru_connection.send(loaderInfo.parameters.lcom_name, "endGame", getScore());
} catch(err:Error) {
};
debug("endGame\n");
resetScore();
gameStarted = false;
};
}
public function globalClose(){
if ("" != close_f){
ExternalInterface.call(close_f);
};
}
public function ProcessAddMoney(_arg1:int, _arg2:int){
var _local3:int;
var _local4:int;
var _local5:int;
var _local6:String;
_local6 = "";
if ((((((_arg2 == 3)) || ((_arg2 == 9)))) && (sheslongs[ppls[_arg1].KresloNom].hasUmbrella))){
if (_arg2 == 3){
_local6 = "+5=";
money = (money + 5);
} else {
_local6 = "+10=";
money = (money + 10);
};
};
switch (_arg2){
case 3:
_local3 = (10 + ppls[_arg1].LastMGResult);
_local4 = 5;
_local5 = 5;
if (ppls[_arg1].LastMGResult > 5){
switch (ppls[_arg1].buyerType){
case 0:
Sounds = YA_M_yes.play(0, 0, root.svol);
break;
case 1:
Sounds = YA_W_yes.play(0, 0, root.svol);
break;
};
} else {
if (ppls[_arg1].LastMGResult < 3){
switch (ppls[_arg1].buyerType){
case 0:
Sounds = YA_M_no.play(0, 0, root.svol);
break;
case 1:
Sounds = YA_W_no.play(0, 0, root.svol);
break;
};
};
};
break;
case 9:
_local3 = (70 + (10 * ppls[_arg1].LastMGResult));
_local4 = 5;
_local5 = 5;
if (ppls[_arg1].LastMGResult > 1){
switch (ppls[_arg1].buyerType){
case 0:
Sounds = YA_M_yes.play(0, 0, root.svol);
break;
case 1:
Sounds = YA_W_yes.play(0, 0, root.svol);
break;
};
} else {
if (ppls[_arg1].LastMGResult < 1){
switch (ppls[_arg1].buyerType){
case 0:
Sounds = YA_M_no.play(0, 0, root.svol);
break;
case 1:
Sounds = YA_W_no.play(0, 0, root.svol);
break;
};
};
};
break;
case 7:
_local3 = (45 + (15 * ppls[_arg1].LastMGResult));
_local4 = 5;
_local5 = 5;
break;
case 14:
_local3 = 0;
_local4 = 5;
_local5 = 5;
break;
case -3:
case 4:
_local3 = 10;
_local4 = 5;
_local5 = 1;
break;
case 15:
_local3 = 50;
_local4 = 5;
_local5 = 5;
break;
case 16:
_local3 = 25;
_local4 = 50;
_local5 = 50;
break;
};
money = (money + _local3);
if (goalnum == 7){
goalBar.updateGoals(_local3);
} else {
goalstate.money = (goalstate.money + _local3);
};
if (_local3 > 0){
ppls[_arg1].mc.co.write((("-+" + String(_local3)) + _local6), 0);
Sounds = Money.play(0, 0, root.svol);
};
if ((((lastDeed == _arg2)) || ((((lastDeed == 14)) && ((_arg2 == 15)))))){
combometr++;
Sounds = Combo.play(0, 0, root.svol);
ppls[_arg1].mc.co.write(comboword, 1);
ppls[_arg1].mc.co.write(("-+" + String((_local4 + (_local5 * (combometr - 1))))), 2);
if (hints[6]){
StartMashaTimer(comboHint, 300);
};
} else {
lastDeed = _arg2;
combometr = 0;
};
updateMoney();
}
public function setAllHints(_arg1:Boolean){
var _local2:int;
_local2 = 0;
while (_local2 < hints.length) {
hints[_local2] = !(_arg1);
_local2++;
};
if ((((curlevel == 0)) && ((levels[0].popularity < 3)))){
levels[0].popularity = 3;
};
}
public function startLevel(_arg1:int){
victory = false;
curlevel = _arg1;
menuMap.visible = false;
goalstate = new Goals();
minigame = addChild(new menuGoals());
minigame.ShowGoals(lgoals[curlevel]);
levels[curlevel].popularity = lpops[curlevel];
sb.InitSmiles((sb.Smile2[(levels[curlevel].popularity + 1)] - sb.Smile1[(levels[curlevel].popularity + 1)]));
if ((((0 == curlevel)) && (hints[4]))){
levels[0].popularity = 1;
};
goalstate.peoples = levels[curlevel].popularity;
copyWishes();
bNeed = false;
prepareBuilding(batamat, lvlHasBatamat[curlevel]);
wish2xatamat[1] = ((lvlHasBatamat[curlevel] == 1)) ? 1 : 0;
prepareBuilding(satamat, lvlHasSS[curlevel]);
wish2xatamat[3] = ((lvlHasSS[curlevel] == 1)) ? 1 : 0;
prepareBuilding(ratamat, lvlHasRent[curlevel]);
wish2xatamat[4] = ((lvlHasRent[curlevel] == 1)) ? 1 : 0;
prepareBuilding(bananat, lvlHasBanan[curlevel]);
wish2xatamat[5] = ((lvlHasBanan[curlevel] == 1)) ? 1 : 0;
money = levelMoneys[curlevel];
updateMoney();
if (curlevel > 0){
ummc[0].ind = 0;
setUmbrella(0);
ummc[0].visible = true;
ummc[1].ind = 1;
if (upgradesBought[0]){
ummc[1].visible = true;
setUmbrella(1);
} else {
ummc[1].visible = false;
};
} else {
ummc[0].visible = false;
ummc[1].visible = false;
};
}
public function setGrayButter(_arg1:int=0){
wish2xatamat[1] = 0;
setGray(_arg1, 9);
}
public function CompleteMGWater(_arg1:int, _arg2:int){
removeChild(minigame);
minigame = null;
ppls[_arg2].mc.th.sm.resumeSmileys();
if (watamat.sv.getNum() == 0){
return;
};
MashaTask[mtasksTotal] = new mtask(3, _arg1, _arg2);
mtasksTotal++;
mtasksShow++;
ppls[_arg2].LastMGResult = _arg1;
ppls[_arg2].mc.th.visible = true;
ppls[_arg2].mc.th.setNum(mtasksShow);
ppls[_arg2].OrderNumber = mtasksTotal;
if (1 == mtasksTotal){
mashaFazaZakaza = 0;
processMashaDeed();
};
}
public function FillWatamat(){
MashaTask[mtasksTotal] = new mtask(5, 0, 0);
mtasksTotal++;
mtasksShow++;
watamat.setNum(mtasksShow);
watamat.watamatNumDeed = mtasksTotal;
if (1 == mtasksTotal){
processMashaDeed();
};
}
public function globalPause(){
var _local1:int;
gPause = true;
if (null != mashatimer){
mashatimer.pause();
};
butterbar.progressor.pause();
motobar.progressor.pause();
_local1 = 0;
while (_local1 < ppls.length) {
if (null != ppls[_local1]){
ppls[_local1].mc.Manim.Pause();
if (ppls[_local1].mc.th.sm.visible){
ppls[_local1].mc.th.sm.PauseSmileys();
};
ppls[_local1].pauseTimer();
ppls[_local1].mc.co.Pause();
};
_local1++;
};
masha.Pause();
clock.ticker.pause();
}
public function GimmeWater(_arg1:int){
if (ppls[_arg1].mc.th.ch.visible){
cancelDeed(ppls[_arg1].mc.th.mun);
return;
};
ppls[_arg1].mc.th.ch.visible = false;
ppls[_arg1].mc.th.sm.PauseSmileys();
minigame = addChild(new MGGlass());
minigame.ind = _arg1;
minigame.head.setHead(ppls[_arg1].buyerType);
minigame.head.setState(0);
}
function frame1(){
bypass = "";
alawar_f = true;
if (root.loaderInfo.parameters.alawar_f != undefined){
alawar_f = !((root.loaderInfo.parameters.alawar_f.toString() == "true"));
};
mainback.visible = false;
stop();
lc = <root>
<String id="PLAY">PLAY</String>
<String id="CONTINUE">CONTINUE</String>
<String id="MENU">MENU</String>
<String id="SHOP">SHOP</String>
<String id="EXIT">EXIT</String>
<String id="DOWNLOAD">DOWNLOAD\nFULL\nVERSION</String>
<String id="DOWNLOAD_WORD">DOWNLOAD</String>
<String id="SOUNDS">SOUNDS</String>
<String id="OK">OK</String>
<String id="CANCEL">CANCEL</String>
<String id="BUY">BUY</String>
<String id="ORDER">ORDER</String>
<String id="GOALS_SMALL">Goals</String>
<String id="GOALS_BIG">GOALS</String>
<String id="BUILDINGS_SMALL">Buildings</String>
<String id="UMBRELLA_CAPT">UMBRELLA</String>
<String id="SANDWICHSHOP_CAPT">SANDWICH SHOP</String>
<String id="RENT_CAPT">RENT</String>
<String id="SOUVENIRS_CAPT">SOUVENIRS SHOP</String>
<String id="BANANA_CAPT">THE BANANA</String>
<String id="SANDWICHSHOP_NEED">To start next level you need to buy the sandwich bar.</String>
<String id="RENT_NEED">To start next level you need to buy the rent.</String>
<String id="SOUVENIRS_NEED">To start next level you need to buy the souvenir shop.</String>
<String id="BANANA_NEED">To start next level you need to buy the banana.</String>
<String id="MENUGOALS_CAPT">TASKS</String>
<String id="TASK_SELLWATER">Sell water</String>
<String id="TASK_SELLSAND">Sell sandwiches</String>
<String id="TASK_SELLSOUV">Sell souvenirs</String>
<String id="TASK_SELLBANANA">Sell banana tickets</String>
<String id="TASK_SELLRENT">Sell rent</String>
<String id="TASK_POPULARITY">Popularity</String>
<String id="TASK_MONEY">Earn money</String>
<String id="MENUGOALS_COMPLETE">For completion:</String>
<String id="MENUGOALS_MASTER">MASTER</String>
<String id="MENUGOALS_EXPERT">EXPERT</String>
<String id="MENUWIN_MASTER">Master</String>
<String id="MENUWIN_EXPERT">Expert</String>
<String id="MENUWIN_TIME">Time</String>
<String id="MENUWIN_STARS">Stars</String>
<String id="MGGLASS_FILLGLASS">Fill a full glass.</String>
<String id="MGGLASS_CAPTION">WATER</String>
<String id="NAGSCREEN_CAPTION">CONGRATULATIONS</String>
<String id="NAGSCREEN_TEXT0">You've completed\nonline version!</String>
<String id="NAGSCREEN_TEXT1">Download full version\nto get:\n50 levels\n7 minigames\n15 buildings\n50 upgrades\n10 visitors\n2 helpers</String>
<String id="WHOUSE_CAPTION">WAREHOUSE</String>
<String id="WHOUSE_SOUV">Souvenirs</String>
<String id="WHOUSE_SAND">Sandwiches</String>
<String id="UMBRELLA_DESC">Second Umbrella.\nIf the client is sitting under umbrella,he waits for the order longer and pays big tip.</String>
<String id="SANDWICHSHOP_DESC">\nMany clients want to have a snack.</String>
<String id="SOUVENIRS_DESC">\nFor those who want to bring souvenir from the sea.</String>
<String id="RENT_DESC">\nYou can rent beach mattress here.</String>
<String id="BANANA_DESC">\nThere's nothing like banana on the beach!</String>
<String id="NO_MORE_HINTS">Don't show hints anymore.</String>
<String id="MUSIC">MUSIC</String>
<String id="SOUND">SOUND</String>
<String id="SHOW_LEVELNUM">Level: </String>
<String id="HINT_00">\nThis is a list of tasks to complete to pass the level.</String>
<String id="HINT_01">\nFor completing the level you get stars to buy upgrades.</String>
<String id="HINT_02">\nIf you complete the level fast, you will get bonus stars.</String>
<String id="HINT_04">\nClick here to allow client to the beach.</String>
<String id="HINT_06">\nFor making successive actions of the same type, you get a bonus.</String>
<String id="HINT_07">\nClick here to take order.</String>
<String id="HINT_08">In this minigame you need to fill the glass with water. The more water you fill - the more tips you will get.</String>
<String id="HINT_09">This is a shop. In order to complete next level you need to buy the rent.</String>
<String id="HINT_11">\nThe water machine is empty. Click it to fill it.</String>
<String id="HINT_14">If the client is sitting under umbrella, he waits for the order longer and pays big tips. Click the umbrella.</String>
<String id="HINT_15">\nNow click the client.</String>
<String id="HINT_16">Smiles show the patience level of the clients. Try to complete orders as fast as you can.</String>
<String id="HINT_17">\nClick here to build the rent building.</String>
<String id="HINT_19">\nClick here to give a pool raft for rent.</String>
<String id="HINT_29">There are no resources left in the sandwich bar. Click the warehouse to order them.</String>
<String id="HINT_35">Arrows show which upgrades are required for the next level. There are also other not required upgrades.</String>
<String id="HINT_33">Resources for the sandwich bar are delivered. Click the building to bring them from the warehouse.</String>
<String id="NEXT">NEXT</String>
<String id="COMBO">COMBO!</String>
</root>
;
}
function frame3(){
hint.visible = false;
svol = new SoundTransform(1, 0);
allsounds = new Array(21);
Banan_01 = new Banan_0();
Moto_start = new Moto_star();
End_level = new End_leve();
Avtomat_01 = new Avtomat_0();
GOAL = new Goa();
Moto_finish = new Moto_finis();
Combo = new Comb();
Voda_v_stakan = new Voda_v_staka();
Zdan_postr = new Zdan_post();
Money = new Mone();
YA_M_yes = new YA_M_ye();
Wrong = new Wron();
YA_W_yes = new YA_W_ye();
YA_M_no = new YA_M_n();
Predmet_down = new Predmet_dow();
Zont_take = new Zont_tak();
YA_W_no = new YA_W_n();
Zont_put = new Zont_pu();
Predmet_up = new Predmet_u();
Take_water = new Take_wate();
Click_Interface1 = new Click_Interface();
music_game = new music_gam();
More_01 = new More_0();
Ambient = new SoundChannel();
Music = new SoundChannel();
Sounds = new SoundChannel();
Ambient = More_01.play(0, 100000);
Music = music_game.play(0, 100000);
mFade = new FadeIn(Music);
aFade = new FadeIn(Ambient);
vol = new SoundTransform(0, 0);
Sounds.soundTransform = vol;
Music.soundTransform = vol;
Ambient.soundTransform = vol;
Music.soundTransform = vol;
Ambient.soundTransform = vol;
Music.soundTransform = vol;
aFade.Play();
mFade.Stop();
smask.cacheAsBitmap = true;
cont.mask = smask;
tmpbool = false;
mashaWorked = false;
money = 390;
lastDeed = -1;
combometr = 0;
MashaTask = new Array();
mtasksTotal = 0;
mtasksShow = 0;
levels = new Array();
curlevel = 0;
stars = 0;
levels[0] = new level(3, 1);
levels[1] = new level(3, 1);
levels[2] = new level(3, 1);
levels[3] = new level(3, 1);
levels[4] = new level(4, 1);
levels[5] = new level(4, 1);
lpops = new Array(3, 3, 3, 3, 4, 4);
pplsTotal = 0;
LastIndex = 0;
ppls = new Array();
VhodOchered = 0;
LastUnusedInd = 1;
sheslongs = new Array();
mashaFazaZakaza = 0;
topmost = new Array(gpanel, minigame);
wareSlots = new Array(0, 0);
delivering = true;
gPause = true;
ummc = new Array(null, null, null);
uposs = new Array(-1, -1, -1);
levelStates = new Array(-1, 0, 0, 0, 0, 0, 0);
upgradesBought = new Array(false, false, false, false, false);
masha = new Mashk();
wish2xatamat = new Array(1, 1, 1, 1, 1, 1, 1);
cont.mouseEnabled = false;
cont.addChild(masha);
masha.mouseEnabled = false;
masha.init();
watamat.sv.StartFill();
batamat.sv.StartFill();
satamat.sv.StartFill();
butterbar.visible = false;
motobar.visible = false;
swim1.init();
swim2.init();
swim1.visible = false;
swim2.visible = false;
hint.visible = false;
hintInd = -1;
hintsOn = true;
ummc[0] = cont.u1;
ummc[1] = cont.u2;
goalsSym = null;
numsAdded = 0;
brider.mask = briderMask;
score = new Array(0, 0, 0, 0, 0, 0);
cheats = false;
if (root.loaderInfo.parameters.use_cheats != undefined){
cheats = (root.loaderInfo.parameters.use_cheats.toString().toLowerCase() == "true");
};
comboword = lc.String.(@id == "COMBO");
hints = new Array();
i = 0;
while (i < 36) {
hints[i] = true;
i++;
};
dload_f = "";
if (root.loaderInfo.parameters.dload_f != undefined){
dload_f = root.loaderInfo.parameters.dload_f;
};
link = "http://www.alawar.com/download/BeachPartyCraze.exe";
if (root.loaderInfo.parameters.link != undefined){
link = root.loaderInfo.parameters.link;
};
close_f = "";
if (root.loaderInfo.parameters.close_f != undefined){
close_f = root.loaderInfo.parameters.close_f;
} else {
startScreen.quitbut.visible = false;
};
menubut.clickFunc = showMenuMenu;
finScoreSent = false;
gameStarted = false;
txtField = "1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111101000101111111111111111111111111111111111111111111111111111111111010001011111111111111111111111111111111111111111111111111111111110100010111111111111111111111111111111111111111111111111111111111101000101111111111111111111111111111111111111111111111111111111111010001011111111111111111111111111111111111111111111111111111111110100010111111111111111111111111111111111111111111111111111111111101000101111111111111111111111111111111111111111111111111111111111010001011111111111111111111111111111111111111111111111111111111110100010111111111111111111111111111111111111111111111111111111111101000101111111111111111111111111111111111111110011111111111111111010001011111111111111111111111111111111111111100111111111111111110100010111111111111111111111111111111111111100001111111111111111101000101111111111011111111111111111111111111110000000000000000000000000000000000000111111111111111111111111111000000000000000000000000000000000000001111111111111111111111111110000011111111001111111100111111110011111111111111111111111111111111100111111110011111111001111111100111111111111111111111111111111111001111111100111111110011111111001111111111111111111111111111111110011111111001111111100111111110011111111111111111111111111111111100111111110011111111001111111100111111111111111111111111111111000001111111100111111110011111111000001111111111111111111111111111110000111111000011111100001111110011111111111111111111111111111111100000000000000000000000000000000001111111111111111111111111000000000000000000000000000000000000000000011111111111111111111000000000011111111001111111100111111110000000001111111111111111110000000000111111110011111111001111111100000000011111111111111100000000000001111111100111111110011111111000000000000111111111111111111111110011111111001111111100111111110011111111111111111111111111111111100111111110011111111001111111100111111111111111111111111111111111001111111100001111110011111111001111111111111111111111111111111110000111111000011111100001111110011111111111111111111111111111111100000000000000000000000000000000111111111111111111111111111111111000000000000000000000000000000001111111111111111111111111111111110011111111001111111100111111110011111111111111111111111111111111100111111110011111111001111111100111111111111111111111111111111111001111111100111111110011111111001111111111111111111111111111110000011111111001111111100111111110000011111111111111111111111111111100111111110000111111001111111100111111111111111111111111111111111000011111100001111110000111111001111111111111111111111111110000000000000000000000000000000000000000000111111111111111111111100000000000000000000000000000000000000000001111111111111111111100000000000000000000000000000000000000000000000111111111111100000000000000000000000000000000000000000000000000000000011111111011111110111111101111111011111110111111101111111011111110111111110111111101111111011111110111111101111111011111110111111101111111101111111011111110111111101111111011111110111111101111111011111111011111110111111101111111011111110111111101111111011111110111111110111111101111111011111110111111101111111011111110111111101111111101111111011111110111111101111111011111110111111101111111011111111011111110111111101111111011111110111111101111111011111110111111110111111101111111011111110111111101111111011111110111111101111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111";
shezOccupied = new Array(false, false, false, false, false, false, false, false, false);
shezPlaces = new Array(new vec2i(21, 30), new vec2i(32, 30), new vec2i(43, 30), new vec2i(21, 39), new vec2i(32, 39), new vec2i(43, 39), new vec2i(21, 47), new vec2i(32, 47), new vec2i(43, 47));
buyerChances = new Array();
buyerChances[0] = new Array(10, 15, 15, 20, 20, 20, 200);
buyerChances[1] = new Array(10, 15, 15, 20, 20, 20, 200);
levelChances = new Array();
levelChances[0] = new Array(80, 0, 20, 0, 0, 0, 200);
levelChances[1] = new Array(20, 0, 20, 0, 30, 0, 200);
levelChances[2] = new Array(15, 35, 20, 0, 10, 0, 200);
levelChances[3] = new Array(35, 10, 15, 25, 0, 0, 200);
levelChances[4] = new Array(20, 23, 10, 23, 10, 0, 200);
levelChances[5] = new Array(15, 17, 10, 20, 10, 25, 200);
bChances = new Array();
bChances[0] = new Array(0, 100, 0, 0);
bChances[1] = new Array(0, 100, 0, 0);
bChances[2] = new Array(0, 100, 0, 0);
bChances[3] = new Array(0, 100, 0, 0);
bChances[4] = new Array(100, 0, 0, 0);
bChances[5] = new Array(0, 100, 0, 0);
swimPlaces = new Array(new vec2i(4, 58), new vec2i(12, 58), new vec2i(20, 58), new vec2i(28, 58), new vec2i(36, 58), new vec2i(44, 58), new vec2i(52, 58), new vec2i(60, 58));
upos = new Array(new vec2i(181, 122), new vec2i(269, 122), new vec2i(357, 122), new vec2i(181, 194), new vec2i(269, 194), new vec2i(357, 194), new vec2i(181, 266), new vec2i(269, 266), new vec2i(357, 266));
souvPos = new Array(new vec2i(6, 34), new vec2i(9, 32), new vec2i(13, 31));
souvPlaces = new Array(false, false, false);
rentPos = new Array(new vec2i(5, 50), new vec2i(9, 49), new vec2i(13, 47));
rentPlaces = new Array(false, false, false);
banPos = new Array(new vec2i(57, 50), new vec2i(55, 49), new vec2i(53, 48));
banPlaces = new Array(false, false, false);
lgoals = new Array();
lgoals[0] = new Goals();
lgoals[0].water = 4;
lgoals[0].butter = 0;
lgoals[0].comp = 60;
lgoals[0].master = 10;
lgoals[0].expert = 15;
lgoals[0].masterTime = 260;
lgoals[0].expertTime = 160;
lgoals[1] = new Goals();
lgoals[1].swims = 4;
lgoals[1].comp = 60;
lgoals[1].master = 15;
lgoals[1].expert = 25;
lgoals[1].masterTime = 300;
lgoals[1].expertTime = 200;
lgoals[2] = new Goals();
lgoals[2].butter = 4;
lgoals[2].comp = 100;
lgoals[2].master = 25;
lgoals[2].expert = 30;
lgoals[2].masterTime = 300;
lgoals[2].expertTime = 200;
lgoals[3] = new Goals();
lgoals[3].water = 6;
lgoals[3].butter = 2;
lgoals[3].souv = 4;
lgoals[3].comp = 90;
lgoals[3].master = 20;
lgoals[3].expert = 35;
lgoals[3].masterTime = 360;
lgoals[3].expertTime = 260;
lgoals[4] = new Goals();
lgoals[4].butter = 5;
lgoals[4].souv = 5;
lgoals[4].comp = 100;
lgoals[4].master = 20;
lgoals[4].expert = 25;
lgoals[4].masterTime = 400;
lgoals[4].expertTime = 300;
lgoals[5] = new Goals();
lgoals[5].water = 3;
lgoals[5].butter = 4;
lgoals[5].souv = 3;
lgoals[5].bananas = 6;
lgoals[5].comp = 10;
lgoals[5].master = 20;
lgoals[5].expert = 25;
lgoals[5].masterTime = 660;
lgoals[5].expertTime = 560;
lvlHasBatamat = new Array(0, 0, 2, 1, 2, 1);
lvlHasSS = new Array(0, 0, 0, 2, 1, 1);
lvlHasRent = new Array(0, 2, 1, 0, 1, 0);
lvlHasBanan = new Array(0, 0, 0, 0, 0, 2);
levelMoneys = new Array(100, 330, 450, 130, 130, 100);
hdescs = new Array();
it = 0;
while (it < 40) {
if (root.lc.String.(@id == ("HINT_" + add0(it))) != null){
hdescs[it] = parseNewline(root.lc.String.(@id == ("HINT_" + add0(it))).toString());
};
it++;
};
menubut.capt.text = root.lc.String.(@id == "MENU");
goalBar.goalstxt.text = root.lc.String.(@id == "GOALS_BIG");
updateWare();
fpsText.visible = false;
updTimer = new Timer(int((1000 / fps)));
updTimer.addEventListener(TimerEvent.TIMER, Update);
updTimer.start();
fpsCounter = 0;
fpsMeter = new Timer(int(1000));
fpsMeter.addEventListener(TimerEvent.TIMER, UpdateFPS);
fpsMeter.start();
stage.addEventListener(KeyboardEvent.KEY_DOWN, kd);
MPoints = new Array();
Field = new Array();
i = 0;
while (i < FieldSizeX) {
Field[i] = new Array(FieldSizeY);
j = 0;
while (j < FieldSizeX) {
Field[i][j] = txtField.charAt((i + (j * FieldSizeX)));
j++;
};
i++;
};
OField = new Array();
mXshift = 0;
mYshift = 0;
mXpos = 37;
mYpos = 8;
dirX = 0;
dirY = 0;
ChosenDirX = 0;
ChosenDirY = 0;
NextPointX = 27;
NextPointY = 30;
mashaPath = new Array();
openList = new Array();
closedList = new Array();
mashaPathI = 0;
mouseDisable = false;
mouseDisable = true;
addEventListener(MouseEvent.MOUSE_DOWN, MouseDown);
stop();
lastStamp = -1;
mainback.visible = false;
stop();
}
public function GimmeRent(_arg1:int){
if (ppls[_arg1].mc.th.ch.visible){
cancelDeed(ppls[_arg1].mc.th.mun);
return;
};
ppls[_arg1].mc.th.sm.PauseSmileys();
MashaTask[mtasksTotal] = new mtask(14, -1, _arg1);
mtasksTotal++;
mtasksShow++;
ppls[_arg1].LastMGResult = -1;
ppls[_arg1].mc.th.visible = true;
ppls[_arg1].mc.th.setNum(mtasksShow);
ppls[_arg1].OrderNumber = mtasksTotal;
ppls[_arg1].OrderNumber = mtasksTotal;
if (1 == mtasksTotal){
mashaFazaZakaza = 0;
processMashaDeed();
};
}
public function CompleteMGButter(_arg1:int, _arg2:int){
removeChild(minigame);
minigame = null;
ppls[_arg2].mc.th.sm.resumeSmileys();
if (batamat.sv.getNum() == 0){
return;
};
MashaTask[mtasksTotal] = new mtask(9, _arg1, _arg2);
mtasksTotal++;
mtasksShow++;
ppls[_arg2].LastMGResult = _arg1;
ppls[_arg2].mc.th.visible = true;
ppls[_arg2].mc.th.setNum(mtasksShow);
ppls[_arg2].OrderNumber = mtasksTotal;
ppls[_arg2].OrderNumber = mtasksTotal;
if (1 == mtasksTotal){
mashaFazaZakaza = 0;
processMashaDeed();
};
}
public function checkClosed(_arg1:int, _arg2:int):Boolean{
var _local3:int;
while (_local3 < closedList.length) {
if ((((closedList[_local3][0].X == _arg1)) && ((closedList[_local3][0].Y == _arg2)))){
return (true);
};
_local3++;
};
return (false);
}
public function whomSend(){
if (root.mouseX > 358){
if (ppls.length > 2){
LemmeEnter(2);
};
} else {
if (ppls.length > 1){
LemmeEnter(1);
};
};
}
public function intrand(_arg1:int, _arg2:int):int{
return ((_arg1 + Math.floor((Math.random() * ((_arg2 - _arg1) + 1)))));
}
public function closeGoals(){
globalResume();
removeChild(goalsSym);
}
public function Download(){
var _local1:URLRequest;
_local1 = new URLRequest(link);
navigateToURL(_local1, "_blank");
}
public function mashaGiveRent():Boolean{
switch (mashaFazaZakaza){
case 0:
if (((!((mXpos == ratamatX))) || (!((mYpos == ratamatY))))){
NextPointX = ratamatX;
NextPointY = ratamatY;
SendMasha();
mashaFazaZakaza = 1;
break;
};
case 1:
ppls[MashaTask[0].pind].State = 2;
if (goalnum == 6){
goalBar.updateGoals();
} else {
goalstate.swims++;
};
orderRent(MashaTask[0].pind);
shiftNums();
shiftMashaDeed();
return (processMashaDeed());
};
return (true);
}
public function deliverSouv():Boolean{
switch (mashaFazaZakaza){
case 0:
if (((!((mXpos == satamatX))) || (!((mYpos == satamatY))))){
NextPointX = satamatX;
NextPointY = satamatY;
SendMasha();
break;
};
case 1:
mashaFazaZakaza = 2;
StartMashaTimer(processMashaDeed, 300);
return (false);
case 2:
ppls[MashaTask[0].pind].State = 2;
orderSouv(MashaTask[0].pind);
shiftNums();
shiftMashaDeed();
return (processMashaDeed());
};
return (true);
}
public function showMainMenu(){
sendEnd();
aFade.Play();
Sounds = Click_Interface1.play(0, 0, root.svol);
menuMap.visible = false;
startScreen.visible = true;
}
public function showNag(_arg1:Boolean){
var win = _arg1;
try {
removeChild(goalsSym);
} catch(err:Error) {
};
goalsSym = addChild(new nagScreen());
}
public function prepareBuilding(_arg1:MovieClip, _arg2:int){
_arg1.isOn = _arg2;
switch (_arg2){
case 0:
_arg1.disable();
break;
case 1:
_arg1.enable();
break;
case 2:
bNeed = true;
_arg1.unbuy();
break;
};
}
public function getScore(){
var _local1:int;
var _local2:int;
_local1 = 0;
_local2 = 0;
while (_local2 < 6) {
_local1 = (_local1 + score[_local2]);
_local2++;
};
return (_local1);
}
public function endEatButter(_arg1:int){
ppls[_arg1].mc.Lay();
makeWish(_arg1, 1);
}
public function mfunc(_arg1){
mashatimer.del();
mashatimer = null;
mashaTimerFunc();
}
public function hintUmbrella(){
ummc[0].Click();
globalResume();
if (hints[15]){
hints[15] = false;
hint.SetupHint(ppls[hintInd].mc.x, (ppls[hintInd].mc.y - 30), hdescs[15], ummc[0].Click, 66, 65);
};
}
public function DoEnter(_arg1:int){
ppls[_arg1].KresloNom = 0;
ppls[_arg1].leaveTime = (intrand(50000, 120000) + timestamp());
while (shezOccupied[ppls[_arg1].KresloNom]) {
ppls[_arg1].KresloNom = ((ppls[_arg1].KresloNom + 1) % 9);
};
shezOccupied[ppls[_arg1].KresloNom] = true;
if (!haveFreeShes()){
setGrayEnter();
};
ppls[_arg1].nextpos = null;
ppls[_arg1].nextpos = shezPlaces[ppls[_arg1].KresloNom];
ppls[_arg1].deed = 0;
ppls[_arg1].mc.th.unsetNum();
ppls[_arg1].mc.th.visible = false;
ppls[_arg1].mc.onShez(true);
sendPeep(_arg1);
i = 0;
while (i < ppls.length) {
if (((((((!((ppls[i] == null))) && ((4 == ppls[i].deed)))) && ((ppls[i].VhodPlaceNom > 1)))) && (((ppls[_arg1].VhodPlaceNom % 2) == (ppls[i].VhodPlaceNom % 2))))){
ppls[i].VhodPlaceNom = (ppls[i].VhodPlaceNom - 2);
ppls[i].nextpos = new vec2i((34 + (6 * (ppls[i].VhodPlaceNom % 2))), ((ppls[i].VhodPlaceNom < 2)) ? 18 : 8);
ppls[i].mc.visible = true;
sendPeep(i);
};
i++;
};
ppls[_arg1].VhodPlaceNom = -1;
if (lastDeed != -2){
ProcessAddMoney(_arg1, 4);
} else {
ProcessAddMoney(_arg1, -3);
};
VhodOchered--;
}
public function processWaterDeed():Boolean{
switch (mashaFazaZakaza){
case 0:
mashaFazaZakaza = 1;
if (((!((mXpos == watamatX))) || (!((mYpos == watamatY))))){
NextPointX = watamatX;
NextPointY = watamatY;
SendMasha();
break;
};
case 1:
mashaFazaZakaza = 2;
watamat.sv.setNum((watamat.sv.getNum() - 1));
Sounds = Take_water.play(0, 0, root.svol);
if (watamat.sv.getNum() == 0){
setGrayWater();
};
masha.Manim2.PlayAnim(4);
masha.RH = true;
masha.RHItem = 2;
ppls[MashaTask[0].pind].mc.StopSmileys();
StartMashaTimer(processMashaDeed, 300);
return (false);
case 2:
if (((((!((undefined == MashaTask[1]))) && ((MashaTask[1].deed == 3)))) && ((watamat.sv.getNum() > 0)))){
mashaFazaZakaza = 3;
Sounds = Take_water.play(0, 0, root.svol);
watamat.sv.setNum((watamat.sv.getNum() - 1));
if (watamat.sv.getNum() == 0){
setGrayWater(1);
};
tmpbool = true;
masha.LH = true;
masha.LHItem = 2;
masha.Manim2.PlayAnim(4);
ppls[MashaTask[1].pind].mc.StopSmileys();
StartMashaTimer(processMashaDeed, 300);
return (false);
};
case 3:
mashaWorked = false;
if (mashaFazaZakaza != 3){
mashaFazaZakaza = 4;
} else {
mashaFazaZakaza = 5;
};
NextPointX = ppls[MashaTask[0].pind].pos.X;
NextPointY = (ppls[MashaTask[0].pind].pos.Y + 1);
SendMasha();
break;
case 5:
case 4:
if (5 == mashaFazaZakaza){
if (mashaWorked){
mashaFazaZakaza = 4;
SendMasha();
} else {
mashaWorked = true;
if (masha.LHItem == 2){
masha.LH = false;
masha.LHItem = 0;
};
if (((hints[11]) && ((watamat.sv.getNum() == 0)))){
hints[11] = false;
hint.SetupHint(419, 72, hdescs[11], watamat.MouseUp, 116, 96);
};
Sounds = Predmet_up.play(0, 0, root.svol);
startDrinkWater(MashaTask[0].pind);
shiftNums();
shiftMashaDeed();
tmpbool = false;
if (MashaTask[0].deed != 3){
};
mashaFazaZakaza = 5;
NextPointX = ppls[MashaTask[0].pind].pos.X;
NextPointY = (ppls[MashaTask[0].pind].pos.Y + 1);
StartMashaTimer(processMashaDeed, 300);
return (false);
};
} else {
if (masha.RHItem == 2){
masha.RH = false;
masha.RHItem = 0;
};
if (((hints[11]) && ((watamat.sv.getNum() == 0)))){
hints[11] = false;
hint.SetupHint(419, 72, hdescs[11], watamat.MouseUp, 116, 96);
};
Sounds = Predmet_up.play(0, 0, root.svol);
startDrinkWater(MashaTask[0].pind);
shiftNums();
mashaFazaZakaza = 6;
StartMashaTimer(processMashaDeed, 300);
return (false);
};
break;
case 6:
shiftMashaDeed();
return (processMashaDeed());
};
return (true);
}
public function Update(_arg1:TimerEvent):void{
var _local2:int;
var _local3:vec2i;
if (gPause){
return;
};
if ((((levels[curlevel].popularity > pplsTotal)) && (((getTimer() - peopleLastEnter) >= timeBetweenPeopleEnter)))){
peopleLastEnter = getTimer();
pTotalTxt.text = levels[curlevel].popularity;
AddUser(int((Math.random() * 2)));
};
_local2 = 0;
while (_local2 < ppls.length) {
if (null != ppls[_local2]){
UpdatePeoplePos(_local2);
if (null != ppls[_local2]){
sortZ(ppls[_local2].pos.Y, ppls[_local2].mc);
};
};
_local2++;
};
fpsCounter++;
mXshift = (mXshift + ((dt * dirX) * mashaSpeed));
while (Math.abs(mXshift) > blockSizeX) {
if (0 == dirX){
mXshift = 0;
break;
};
mXpos = (mXpos + dirX);
mXshift = (mXshift - (blockSizeX * dirX));
mashaGotDir();
sortZ(mYpos, masha);
};
mYshift = (mYshift + ((dt * dirY) * mashaSpeed));
while (Math.abs(mYshift) > blockSizeY) {
if (0 == dirY){
mYshift = 0;
break;
};
mYpos = (mYpos + dirY);
mYshift = (mYshift - (blockSizeX * dirY));
mashaGotDir();
};
masha.x = ((mXshift + (mXpos * blockSizeX)) + mapShiftX);
masha.y = ((mYshift + (mYpos * blockSizeY)) + mapShiftY);
}
public function sendPeep(_arg1:int){
ppls[_arg1].Way = null;
ppls[_arg1].Way = new Array();
FindPath(ppls[_arg1].pos, ppls[_arg1].nextpos, ppls[_arg1].Way);
ppls[_arg1].pathI = (ppls[_arg1].Way.length - 1);
ppls[_arg1].shift = 0;
peopleGotDir(_arg1);
}
public function winLevel(){
ClearLevel();
curlevel++;
levelStates[curlevel] = -1;
showMap();
}
public function unsetGrayEnter(){
var _local1:int;
_local1 = 0;
while (_local1 < ppls.length) {
if (((!((null == ppls[_local1]))) && ((4 == ppls[_local1].deed)))){
ppls[_local1].mc.th.unsetShade();
};
_local1++;
};
}
public function showMap(){
aFade.Stop();
hideMainscreen();
if (curlevel != 0){
menuMap.visible = true;
menuMap.Init();
} else {
minigame = addChild(new comics());
};
}
public function timestamp():Number{
return (new Date().getTime());
}
public function mashaGotDir(){
var _local1:vec2i;
_local1 = GetNextDir2(dirX, dirY, mashaPathI, mashaPath);
if (((!((_local1.X == dirX))) || (!((_local1.Y == dirY))))){
if (_local1.X > 0){
masha.goRight();
} else {
if (_local1.X < 0){
masha.goLeft();
} else {
if (_local1.Y < 0){
masha.goUp();
} else {
if (_local1.Y > 0){
masha.goDown();
} else {
if (!processMashaDeed()){
if (masha.Manim2.NA <= 3){
masha.stand();
};
} else {
return;
};
};
};
};
};
dirX = _local1.X;
dirY = _local1.Y;
_local1 = null;
};
mashaPathI--;
}
public function unsetGray(_arg1:int){
var _local2:int;
_local2 = 0;
while (_local2 < ppls.length) {
if (((!((null == ppls[_local2]))) && ((_arg1 == ppls[_local2].deed)))){
ppls[_local2].mc.th.unsetShade();
};
_local2++;
};
}
public function comboHint(_arg1=null){
if (hints[6]){
globalPause();
hints[6] = false;
hint.SetupHint(347, 53, hdescs[6], globalResume, 127, 55, false, -2, -2, true);
};
}
public function shiftMashaDeed(_arg1:int=0){
if (0 == _arg1){
mashaFazaZakaza = 0;
MashaTask.shift();
} else {
MashaTask.splice(_arg1, 1);
};
mtasksTotal--;
if ((((MashaTask.length == 0)) && (tmpbool))){
};
}
public function startAction(){
aFade.Play();
mFade.Play();
removeChild(minigame);
dirX = 0;
dirY = 0;
mXpos = 37;
mYpos = 8;
masha.stand();
minigame = null;
goalBar.numtxt.visible = true;
goalnum = -1;
goalstate.money = money;
goalBar.updateGoals();
MashaTask[0] = new mtask(12, 0, 0);
StartMashaTimer(processMashaDeed, 300);
mtasksTotal++;
clock.Reset();
clock.Start();
peopleLastEnter = (getTimer() + 2000);
gPause = false;
}
public function startEatButter(_arg1:int){
var _local2:int;
ppls[_arg1].deed = 11;
ProcessAddMoney(_arg1, 9);
if (goalnum == 4){
goalBar.updateGoals();
} else {
goalstate.butter++;
};
_local2 = 0;
while (_local2 < ppls[_arg1].mc.th.sm.getNum()) {
sb.AddSmile();
_local2++;
};
ppls[_arg1].mc.th.sm.StopSmileys();
ppls[_arg1].mc.th.clearObjs();
ppls[_arg1].mc.EatButter();
ppls[_arg1].StartTimer(endEatButter, 2000);
}
public function unsetGraySouv(){
unsetGray(7);
}
public function shiftNums(_arg1:int=0){
var _local2:int;
_local2 = 0;
while (_local2 < ppls.length) {
if (((!((null == ppls[_local2]))) && ((_arg1 < ppls[_local2].OrderNumber)))){
ppls[_local2].OrderNumber--;
ppls[_local2].mc.th.setNum(ppls[_local2].OrderNumber);
if (0 > ppls[_local2].OrderNumber){
};
};
_local2++;
};
if (watamat.watamatNumDeed > _arg1){
watamat.watamatNumDeed--;
watamat.setNum(watamat.watamatNumDeed);
};
if (batamat.batamatNumDeed > _arg1){
batamat.batamatNumDeed--;
batamat.setNum(batamat.batamatNumDeed);
};
if (satamat.satamatNumDeed > _arg1){
satamat.satamatNumDeed--;
satamat.setNum(satamat.satamatNumDeed);
};
if (bananat.bananatNumDeed > _arg1){
bananat.bananatNumDeed--;
bananat.setNum(bananat.bananatNumDeed);
};
_local2 = 0;
while (_local2 < 9) {
if (((!((sheslongs[_local2] == null))) && ((sheslongs[_local2].NumSet > _arg1)))){
sheslongs[_local2].setNum((sheslongs[_local2].NumSet - 1));
};
_local2++;
};
mtasksShow--;
}
public function CompleteMGSouv(_arg1:int, _arg2:int){
removeChild(minigame);
minigame = null;
ppls[_arg2].mc.th.sm.resumeSmileys();
MashaTask[mtasksTotal] = new mtask(7, _arg1, _arg2);
mtasksTotal++;
mtasksShow++;
ppls[_arg2].LastMGResult = _arg1;
ppls[_arg2].mc.th.visible = true;
ppls[_arg2].mc.th.setNum(mtasksShow);
ppls[_arg2].OrderNumber = mtasksTotal;
ppls[_arg2].OrderNumber = mtasksTotal;
if (1 == mtasksTotal){
mashaFazaZakaza = 0;
processMashaDeed();
};
}
public function ClearLevel(){
var i:int;
if (hint.visible){
hint.onEnd(false);
};
gPause = true;
i = 0;
while (i < 9) {
shezOccupied[i] = false;
if (null != sheslongs[i]){
if (sheslongs[i].hasUmbrella){
sheslongs[i].unsetUmbrella();
};
cont.removeChild(sheslongs[i]);
sheslongs[i] = null;
};
i = (i + 1);
};
i = 0;
while (i < ppls.length) {
if (ppls[i] != null){
ppls[i].stopTimer();
ppls[i].mc.StopSmileys();
cont.removeChild(ppls[i].mc);
};
i = (i + 1);
};
ppls = null;
ppls = new Array();
pplsTotal = 0;
LastIndex = 0;
i = 0;
while (i < 3) {
souvPlaces[i] = false;
rentPlaces[i] = false;
banPlaces[i] = false;
i = (i + 1);
};
mashaTask = null;
mashaTask = new Array();
mtasksTotal = 0;
mtasksShow = 0;
mXpos = 37;
mYpos = 8;
masha.stand();
masha.LHItem = (masha.RHItem = 0);
masha.LH = (masha.RH = false);
wareSlots[0] = 0;
wareSlots[1] = 0;
updateWare();
swim1.Manim.Stop();
swim1.visible = false;
swim2.Manim.Stop();
swim2.visible = false;
ratamat.matrases[0] = 1;
ratamat.m0.gotoAndStop(1);
ratamat.matrases[1] = 1;
ratamat.m1.gotoAndStop(1);
unsetGrayRent();
watamat.setNum(-1);
batamat.setNum(-1);
satamat.setNum(-1);
bananat.setNum(-1);
watamat.sv.StartFill();
batamat.sv.StartFill();
satamat.sv.StartFill();
i = 0;
while (i < 3) {
if (((!((undefined == ummc[i]))) && (!((null == ummc[i]))))){
ummc[i].owner = -1;
};
i = (i + 1);
};
if (null != minigame){
try {
removeChild(minigame);
} catch(err:Error) {
};
minigame = null;
};
i = 0;
while (i < 3) {
if (((!((null == ummc[i]))) && (!(ummc[i].stands)))){
ummc[i].Click();
};
i = (i + 1);
};
Mouse.show();
aFade.Stop();
mFade.Stop();
}
public function startDrinkWater(_arg1:int){
var _local2:int;
ppls[_arg1].deed = 11;
ProcessAddMoney(_arg1, 3);
if (goalnum == 2){
goalBar.updateGoals();
} else {
goalstate.water++;
};
_local2 = 0;
while (_local2 < ppls[_arg1].mc.th.sm.getNum()) {
sb.AddSmile();
_local2++;
};
ppls[_arg1].mc.th.sm.StopSmileys();
ppls[_arg1].mc.th.clearObjs();
ppls[_arg1].mc.DrinkWater();
ppls[_arg1].StartTimer(endDrinkWater, 2000);
}
public function makeThinkOfWishOnKreslo(_arg1:int){
ppls[_arg1].mc.SetClockThought();
ppls[_arg1].deed = 6;
ppls[_arg1].StartTimer(makeWishOnKreslo, 2000);
}
public function sellBanana():Boolean{
var _local1:Array;
var _local2:int;
var _local3:int;
switch (mashaFazaZakaza){
case 0:
if (((!((mXpos == bananatX))) || (!((mYpos == bananatY))))){
NextPointX = bananatX;
NextPointY = bananatY;
SendMasha();
mashaFazaZakaza = 1;
break;
};
case 1:
_local1 = new Array(-1, -1, -1);
_local2 = 0;
_local3 = 0;
while (_local3 < ppls.length) {
if (((((!((null == ppls[_local3]))) && ((ppls[_local3].deed == 16)))) && ((ppls[_local3].State == 1)))){
ppls[_local3].State = 2;
ppls[_local3].mc.cdrs.visible = false;
ppls[_local3].mc.th.visible = false;
_local1[_local2] = _local3;
_local2++;
ProcessAddMoney(_local3, 16);
if (goalnum == 5){
goalBar.updateGoals();
} else {
goalstate.bananas++;
};
};
_local3++;
};
lastDeed = -1;
brider.init(true, _local1[0], _local1[1], _local1[2]);
shiftNums();
shiftMashaDeed();
return (processMashaDeed());
};
return (true);
}
public function showMenuMenu(){
globalPause();
goalsSym = addChild(new menuMenu());
}
public function setGraySouv(_arg1:int=0){
wish2xatamat[3] = 0;
setGray(_arg1, 7);
}
public function StartMashaTimer(_arg1:Function, _arg2:int){
if (mashatimer != null){
mashatimer.stop();
};
mashaTimerFunc = _arg1;
mashatimer = null;
mashatimer = new FBTimer(_arg2, mfunc, -1, 1);
mashatimer.start();
}
public function FindPath(_arg1:vec2i, _arg2:vec2i, _arg3:Array):void{
var _local4:int;
var _local5:int;
var _local6:int;
var _local7:vec2i;
var _local8:vec2i;
var _local9:int;
var _local10:int;
var _local11:int;
var _local12:int;
if ((((_arg1.X == _arg2.X)) && ((_arg1.Y == _arg2.Y)))){
return;
};
openList = null;
openList = new Array();
closedList = null;
closedList = new Array();
openList.push(new Array(_arg1.clone(), new vec2i(0, 0), -1));
_local4 = 1;
_local5 = 0;
_local7 = new vec2i(0, 0);
_local8 = new vec2i(0, 0);
while (true) {
_local6 = getBestOpen();
closedList.push(openList[_local6]);
_local7 = closedList[(closedList.length - 1)][0];
_local9 = (closedList[(closedList.length - 1)][1].X + 1);
openList.splice(_local6, 1);
_local11 = -1;
while (_local11 < 2) {
_local12 = -1;
while (_local12 < 2) {
if (Math.abs(_local11) == Math.abs(_local12)){
} else {
_local8.X = (_local7.X + _local11);
_local8.Y = (_local7.Y + _local12);
if (((!(checkClosed(_local8.X, _local8.Y))) && ((Field[_local8.X][_local8.Y] == 0)))){
if (!updateIfExists(_local8.X, _local8.Y, _local9)){
openList.push(new Array(_local8.clone(), new vec2i(_local9, (_local8.distanceTo(_arg2) + _local9)), (closedList.length - 1)));
if ((((_local8.X == _arg2.X)) && ((_local8.Y == _arg2.Y)))){
SavePath(_arg3, _local8);
return;
};
};
};
};
_local12++;
};
_local11++;
};
if (openList.length == 0){
return;
};
};
}
public function updateMoney(){
if (bNeed){
if (int(tMoney.text) < money){
if ((((((batamat.isOn == 2)) && (!(batamat.canBuy)))) && ((money >= 500)))){
batamat.unGrayBuy();
};
if ((((((satamat.isOn == 2)) && (!(satamat.canBuy)))) && ((money >= 200)))){
satamat.unGrayBuy();
};
if ((((((ratamat.isOn == 2)) && (!(ratamat.canBuy)))) && ((money >= 400)))){
ratamat.unGrayBuy();
if (hints[17]){
hints[17] = false;
hint.SetupHint(83, 305, hdescs[17], ratamat.buy, 72, 66);
};
};
if ((((((bananat.isOn == 2)) && (!(bananat.canBuy)))) && ((money >= 400)))){
bananat.unGrayBuy();
};
} else {
if ((((((batamat.isOn == 2)) && (batamat.canBuy))) && ((money < 500)))){
batamat.grayBuy();
};
if ((((((satamat.isOn == 2)) && (satamat.canBuy))) && ((money < 200)))){
satamat.grayBuy();
};
if ((((((ratamat.isOn == 2)) && (ratamat.canBuy))) && ((money < 400)))){
ratamat.grayBuy();
};
if ((((((bananat.isOn == 2)) && (bananat.canBuy))) && ((money < 400)))){
bananat.grayBuy();
};
};
};
tMoney.text = money;
}
public function updateSwimmingPos(_arg1:int){
ppls[_arg1].swimAlph = (ppls[_arg1].swimAlph + 0.02);
if (1 > ppls[_arg1].swimAlph){
ppls[_arg1].mc.x = ((((ppls[_arg1].pos.X * (1 - ppls[_arg1].swimAlph)) + (ppls[_arg1].nextpos.X * ppls[_arg1].swimAlph)) * blockSizeX) + mapShiftX);
ppls[_arg1].mc.y = (((((ppls[_arg1].pos.Y * (1 - ppls[_arg1].swimAlph)) + (ppls[_arg1].nextpos.Y * ppls[_arg1].swimAlph)) * blockSizeY) + mapShiftY) + ((10 * Math.sin((ppls[_arg1].swimAlph * Math.PI))) * (ppls[_arg1].swimsRight) ? 1 : -0.5));
} else {
ppls[_arg1].pos = ppls[_arg1].nextpos.clone();
doSwim(_arg1);
};
}
public function globalResume(){
var _local1:int;
gPause = false;
if (null != mashatimer){
mashatimer.resume();
};
butterbar.progressor.resume();
motobar.progressor.resume();
_local1 = 0;
while (_local1 < ppls.length) {
if (null != ppls[_local1]){
ppls[_local1].mc.Manim.Resume();
ppls[_local1].mc.co.Resume();
if (ppls[_local1].mc.th.sm.visible){
ppls[_local1].mc.th.sm.resumeSmileys();
};
ppls[_local1].resumeTimer();
};
_local1++;
};
masha.Resume();
clock.ticker.resume();
}
public function doSwim(_arg1):Boolean{
var _local2:Boolean;
switch (ppls[_arg1].State){
case 0:
ppls[_arg1].BichPlaceNom = Math.floor(((Math.random() * (swimPlaces.length - 3)) + 2));
ppls[_arg1].nextpos = swimPlaces[ppls[_arg1].BichPlaceNom];
ppls[_arg1].mc.onSwim(true);
sendPeep(_arg1);
ppls[_arg1].State = -1;
break;
case -1:
ppls[_arg1].State = 1;
ppls[_arg1].StartTimer(endSwim, 10000);
case 1:
ppls[_arg1].mc.onSwim(false);
if (ppls[_arg1].BichPlaceNom == 2){
ppls[_arg1].BichPlaceNom = 3;
_local2 = true;
} else {
if (ppls[_arg1].BichPlaceNom == (swimPlaces.length - 2)){
ppls[_arg1].BichPlaceNom = (swimPlaces.length - 3);
_local2 = false;
} else {
_local2 = (Math.random() < 0.5);
ppls[_arg1].BichPlaceNom = (ppls[_arg1].BichPlaceNom + (_local2) ? 1 : -1);
};
};
ppls[_arg1].nextpos = swimPlaces[ppls[_arg1].BichPlaceNom];
ppls[_arg1].swimming = true;
if ((((ppls[_arg1].swimAlph < 0.1)) || (!((ppls[_arg1].swimsRight == _local2))))){
if (_local2){
ppls[_arg1].mc.swimRight();
} else {
ppls[_arg1].mc.swimLeft();
};
};
ppls[_arg1].swimsRight = _local2;
ppls[_arg1].swimAlph = 0;
return (false);
case 2:
ppls[_arg1].swimAlph = 0;
ppls[_arg1].swimming = false;
ppls[_arg1].nextpos = shezPlaces[ppls[_arg1].KresloNom];
ppls[_arg1].mc.onShez(true);
sendPeep(_arg1);
ppls[_arg1].State = 3;
return (false);
case 3:
ppls[_arg1].mc.Lay();
ppls[_arg1].State = 0;
makeWish(_arg1, 3);
break;
};
return (true);
}
public function doFillSatamat():Boolean{
switch (mashaFazaZakaza){
case 0:
if (((!((mXpos == wereX))) || (!((mYpos == wereY))))){
NextPointX = wereX;
NextPointY = wereY;
SendMasha();
mashaFazaZakaza = 1;
break;
};
case 1:
Sounds = Predmet_up.play(0, 0, root.svol);
masha.Manim2.PlayAnim(4);
StartMashaTimer(processMashaDeed, 300);
mashaFazaZakaza = 2;
return (false);
case 2:
if (wareSlots[0] == 4){
wareSlots[0] = 0;
} else {
wareSlots[1] = 0;
};
updateWare();
masha.RH = true;
masha.RHItem = 6;
NextPointX = satamatX;
NextPointY = satamatY;
SendMasha();
mashaFazaZakaza = 3;
break;
case 3:
Sounds = Predmet_down.play(0, 0, root.svol);
masha.RH = false;
masha.RHItem = 0;
StartMashaTimer(processMashaDeed, 300);
mashaFazaZakaza = 4;
return (false);
case 4:
satamat.sv.setNum(3);
unsetGraySouv();
shiftNums();
shiftMashaDeed();
return (processMashaDeed());
};
return (true);
}
public function sendStart(){
if (!gameStarted){
try {
mail_ru_connection.send(loaderInfo.parameters.lcom_name, "startGame");
} catch(err:Error) {
};
gameStarted = true;
debug("startGame\n");
};
}
public function setSound(_arg1:Boolean){
svol.volume = (_arg1) ? 1 : 0;
}
public function kd(_arg1:KeyboardEvent){
if (cheats){
switch (_arg1.keyCode){
case 80:
if (!victory){
initVictory();
};
break;
case 107:
case 187:
money = (money + 100);
updateMoney();
break;
case 32:
break;
case 81:
break;
};
};
}
public function DoDelivery(){
delivering = false;
if ((wareSlots[0] % 2) != 0){
var _local1 = wareSlots;
var _local2:int;
var _local3 = (_local1[_local2] + 1);
_local1[_local2] = _local3;
waha.w1.gotoAndStop(wareSlots[0]);
};
if ((wareSlots[1] % 2) != 0){
_local1 = wareSlots;
_local2 = 1;
_local3 = (_local1[_local2] + 1);
_local1[_local2] = _local3;
waha.w2.gotoAndStop(wareSlots[1]);
};
if (((((hints[33]) && ((((wareSlots[0] == 2)) || ((wareSlots[1] == 2)))))) && ((batamat.sv.getNum() == 0)))){
hints[33] = false;
hint.SetupHint(491, 170, hdescs[33], batamat.MouseUp, 120, 78);
};
}
public function setGray(_arg1:int, _arg2:int){
var _local3:int;
if (_arg1 != 1){
_local3 = 0;
while (_local3 < ppls.length) {
if (((((!((null == ppls[_local3]))) && ((_arg2 == ppls[_local3].deed)))) && (!((MashaTask[0].pind == _local3))))){
ppls[_local3].OrderNumber = -1;
ppls[_local3].mc.th.setNum(ppls[_local3].OrderNumber);
ppls[_local3].mc.th.setShade();
};
_local3++;
};
} else {
_local3 = 0;
while (_local3 < ppls.length) {
if (((((((!((null == ppls[_local3]))) && ((_arg2 == ppls[_local3].deed)))) && (!((MashaTask[0].pind == _local3))))) && (!((MashaTask[1].pind == _local3))))){
ppls[_local3].OrderNumber = -1;
ppls[_local3].mc.th.setNum(ppls[_local3].OrderNumber);
ppls[_local3].mc.th.setShade();
};
_local3++;
};
};
_local3 = (_arg1 + 1);
while (_local3 < MashaTask.length) {
if (MashaTask[_local3].deed == _arg2){
shiftNums(_local3);
shiftMashaDeed(_local3);
_local3--;
};
_local3++;
};
}
public function processMashaDeed(_arg1=null):Boolean{
if (0 == mtasksTotal){
return (false);
};
switch (MashaTask[0].deed){
case 12:
NextPointX = 37;
NextPointY = 21;
SendMasha();
shiftMashaDeed();
break;
case 8:
return (removeShezlong());
case 5:
switch (mashaFazaZakaza){
case 0:
if (((!((mXpos == watamatX))) || (!((mYpos == watamatY))))){
mashaFazaZakaza = 1;
NextPointX = watamatX;
NextPointY = watamatY;
SendMasha();
break;
};
case 1:
mashaFazaZakaza = 2;
Sounds = Avtomat_01.play(0, 0, root.svol);
watamat.sv.StartFill();
masha.Manim2.PlayAnim(4);
StartMashaTimer(processMashaDeed, 300);
return (false);
case 2:
masha.stand();
shiftNums();
shiftMashaDeed();
return (processMashaDeed());
};
break;
case 9:
return (processButterDeed());
case 3:
return (processWaterDeed());
case 4:
NextPointX = 37;
NextPointY = 21;
if ((((NextPointX == mXpos)) && ((NextPointY == mYpos)))){
if (0 != mashaFazaZakaza){
DoEnter(MashaTask[0].pind);
shiftNums();
shiftMashaDeed();
return (processMashaDeed());
};
mashaFazaZakaza = 1;
StartMashaTimer(processMashaDeed, 300);
return (false);
} else {
SendMasha();
};
break;
case 7:
return (deliverSouv());
case 10:
return (doFillBatamat());
case 13:
return (doFillSatamat());
case 14:
return (mashaGiveRent());
case 15:
return (mashaTakeRent());
case 16:
return (sellBanana());
};
return (true);
}
public function makeInitWish(_arg1:int){
makeWish(_arg1, 6);
}
public function DrawField():void{
var _local1:int;
var _local2:int;
_local1 = 0;
while (_local1 < FieldSizeX) {
OField[_local1] = new Array(FieldSizeY);
_local2 = 0;
while (_local2 < FieldSizeX) {
if (Field[_local1][_local2] != 1){
OField[_local1][_local2] = root.addChild(new _tmpFieldPiece());
OField[_local1][_local2].x = ((blockSizeX * (_local1 - 0.5)) + mapShiftX);
OField[_local1][_local2].y = ((blockSizeY * (_local2 - 0.5)) + mapShiftY);
OField[_local1][_local2].width = blockSizeX;
OField[_local1][_local2].height = blockSizeY;
};
_local2++;
};
_local1++;
};
}
public function doStamp():void{
var _local1:Date;
_local1 = new Date();
Stamp = (_local1.getMilliseconds() + (1000 * _local1.getSeconds()));
if (lastStamp < 0){
//unresolved jump
};
lastStamp = Stamp;
}
public function GettaRent(_arg1:int){
if (ppls[_arg1].mc.th.ch.visible){
cancelDeed(ppls[_arg1].mc.th.mun);
return;
};
ppls[_arg1].mc.th.sm.PauseSmileys();
MashaTask[mtasksTotal] = new mtask(15, -1, _arg1);
mtasksTotal++;
mtasksShow++;
ppls[_arg1].LastMGResult = -1;
ppls[_arg1].mc.th.visible = true;
ppls[_arg1].mc.th.setNum(mtasksShow);
ppls[_arg1].OrderNumber = mtasksTotal;
ppls[_arg1].OrderNumber = mtasksTotal;
if (1 == mtasksTotal){
mashaFazaZakaza = 0;
processMashaDeed();
};
}
public function endSwim(_arg1){
ppls[_arg1].State = 2;
}
public function makeWishOnKreslo(_arg1:int){
switch (ppls[_arg1].nextWish){
case 3:
ppls[_arg1].mc.SetWaterThought();
ppls[_arg1].deed = 3;
if (hints[7]){
globalPause();
hints[7] = false;
hintInd = _arg1;
hint.SetupHint((ppls[_arg1].mc.x + 27), (ppls[_arg1].mc.y - 74), hdescs[7], hintWater, 45, 45, false, -2, -2, true);
};
if ((((curlevel == 1)) && (hints[16]))){
hints[16] = false;
hintInd = _arg1;
hint.SetupHint((ppls[hintInd].mc.x + 45), (ppls[hintInd].mc.y - 68), hdescs[16], hintSmileBar, 25, 60);
};
break;
case 9:
ppls[_arg1].mc.SetButterThought();
ppls[_arg1].deed = 9;
break;
};
}
public function setGrayWater(_arg1:int=0){
setGray(_arg1, 3);
}
public function unsetGrayButter(){
unsetGray(9);
}
public function debug(_arg1:String){
}
public function endComix(){
removeChild(minigame);
startLevel(0);
}
public function hideMainscreen(){
startScreen.visible = false;
}
public function UpdatePeoplePos(_arg1:int){
if (ppls[_arg1].swimming){
updateSwimmingPos(_arg1);
return;
};
if ((((Math.abs(ppls[_arg1].dirX) > 0)) || ((Math.abs(ppls[_arg1].dirY) > 0)))){
ppls[_arg1].shift = (ppls[_arg1].shift + (dt * ppls[_arg1].speed));
};
while (ppls[_arg1].shift > blockSizeX) {
ppls[_arg1].shift = (ppls[_arg1].shift - blockSizeX);
ppls[_arg1].pos.X = (ppls[_arg1].pos.X + ppls[_arg1].dirX);
ppls[_arg1].pos.Y = (ppls[_arg1].pos.Y + ppls[_arg1].dirY);
peopleGotDir(_arg1);
if (null == ppls[_arg1]){
return;
};
if (0 == (ppls[_arg1].dirX + ppls[_arg1].dirY)){
ppls[_arg1].shift = 0;
break;
};
};
ppls[_arg1].mc.x = (((ppls[_arg1].shift * ppls[_arg1].dirX) + (ppls[_arg1].pos.X * blockSizeX)) + mapShiftX);
ppls[_arg1].mc.y = (((ppls[_arg1].shift * ppls[_arg1].dirY) + (ppls[_arg1].pos.Y * blockSizeY)) + mapShiftY);
}
public function userDied(_arg1:int){
var _local2:int;
if (((!((undefined == MashaTask[0]))) && ((MashaTask[0].pind == _arg1)))){
shiftNums();
shiftMashaDeed();
NextPointX = mXpos;
NextPointY = mYpos;
SendMasha();
} else {
_local2 = 1;
while (_local2 < MashaTask.length) {
if (MashaTask[_local2].pind == _arg1){
shiftNums(_local2);
shiftMashaDeed(_local2);
break;
};
_local2++;
};
};
}
public function hintRent(){
GimmeRent(hintInd);
}
public function GimmeButter(_arg1:int){
if (ppls[_arg1].mc.th.ch.visible){
cancelDeed(ppls[_arg1].mc.th.mun);
return;
};
ppls[_arg1].mc.th.ch.visible = false;
ppls[_arg1].mc.th.sm.PauseSmileys();
minigame = addChild(new MGButter());
minigame.ind = _arg1;
minigame.head.setHead(ppls[_arg1].buyerType);
minigame.head.setState(0);
}
public function doFillBatamat():Boolean{
switch (mashaFazaZakaza){
case 0:
if (((!((mXpos == wereX))) || (!((mYpos == wereY))))){
NextPointX = wereX;
NextPointY = wereY;
SendMasha();
mashaFazaZakaza = 1;
break;
};
case 1:
Sounds = Predmet_up.play(0, 0, root.svol);
masha.Manim2.PlayAnim(4);
StartMashaTimer(processMashaDeed, 300);
mashaFazaZakaza = 2;
return (false);
case 2:
if (wareSlots[0] == 2){
wareSlots[0] = 0;
} else {
wareSlots[1] = 0;
};
updateWare();
masha.RH = true;
masha.RHItem = 5;
NextPointX = batamatX;
NextPointY = batamatY;
SendMasha();
mashaFazaZakaza = 3;
break;
case 3:
Sounds = Predmet_down.play(0, 0, root.svol);
masha.RH = false;
masha.RHItem = 0;
StartMashaTimer(processMashaDeed, 300);
mashaFazaZakaza = 4;
return (false);
case 4:
batamat.sv.setNum(3);
unsetGrayButter();
shiftNums();
shiftMashaDeed();
return (processMashaDeed());
};
return (true);
}
public function cancelDeed(_arg1:int, _arg2:int=-1):void{
var _local3:int;
var _local4:String;
var _local5:int;
_local3 = ((_arg1 + numsAdded) - 1);
_local4 = ((("check - " + MashaTask[_local3].pind) + "=") + " ");
_local5 = 0;
while (_local5 < MashaTask.length) {
_local4 = (_local4 + (MashaTask[_local5].pind + "-"));
_local5++;
};
if (_local3 < 0){
return;
};
if (_local3 == 0){
switch (MashaTask[_local3].deed){
case 4:
ppls[MashaTask[_local3].pind].mc.th.unsetNum();
ppls[MashaTask[_local3].pind].OrderNumber = -1;
break;
case 3:
case 9:
switch (mashaFazaZakaza){
case 0:
case 1:
ppls[MashaTask[_local3].pind].mc.th.unsetNum();
ppls[MashaTask[_local3].pind].OrderNumber = -1;
break;
default:
return;
};
break;
case 14:
case 15:
ppls[MashaTask[_local3].pind].mc.th.unsetNum();
ppls[MashaTask[_local3].pind].OrderNumber = -1;
break;
case 5:
watamat.watamatNumDeed = -1;
watamat.setNum(watamat.watamatNumDeed);
break;
case 10:
return;
case 8:
return;
default:
return;
};
} else {
if (_local3 == 1){
switch (MashaTask[1].deed){
case 3:
case 9:
if ((((MashaTask[1].deed == MashaTask[0].deed)) && ((mashaFazaZakaza >= 2)))){
return;
};
break;
};
};
switch (MashaTask[_local3].deed){
case 4:
case 3:
case 9:
case 14:
case 15:
ppls[MashaTask[_local3].pind].mc.th.unsetNum();
ppls[MashaTask[_local3].pind].OrderNumber = -1;
break;
case 5:
watamat.watamatNumDeed = -1;
watamat.setNum(watamat.watamatNumDeed);
break;
case 10:
batamat.batamatNumDeed = -1;
batamat.setNum(batamat.batamatNumDeed);
break;
case 8:
sheslongs[_arg2].setNum(-1);
break;
};
};
shiftMashaDeed(_local3);
shiftNums(_local3);
_local4 = "";
_local5 = 0;
while (_local5 < MashaTask.length) {
_local4 = (_local4 + (MashaTask[_local5].pind + "-"));
_local5++;
};
if (0 == _local3){
NextPointX = mXpos;
NextPointY = mYpos;
SendMasha();
};
}
public function sortZ(_arg1:int, _arg2:MovieClip){
var _local3:int;
if (_arg2 == null){
return;
};
_local3 = 0;
while (_local3 < ppls.length) {
if (((((!((ppls[_local3] == null))) && (!((ppls[_local3].mc == _arg2))))) && ((((((_arg2.y > ppls[_local3].mc.y)) && ((cont.getChildIndex(_arg2) < cont.getChildIndex(ppls[_local3].mc))))) || ((((_arg2.y < ppls[_local3].mc.y)) && ((cont.getChildIndex(_arg2) > cont.getChildIndex(ppls[_local3].mc))))))))){
cont.swapChildren(_arg2, ppls[_local3].mc);
};
_local3++;
};
_local3 = 0;
while (_local3 < 9) {
if (((((shezOccupied[_local3]) && (!((null == sheslongs[_local3]))))) && ((((((_arg2.y > (shezPlaces[_local3].Y + 30))) && ((cont.getChildIndex(_arg2) < cont.getChildIndex(sheslongs[_local3]))))) || ((((_arg2.y < (shezPlaces[_local3].Y + 30))) && ((cont.getChildIndex(_arg2) > cont.getChildIndex(sheslongs[_local3]))))))))){
cont.swapChildren(_arg2, sheslongs[_local3]);
};
_local3++;
};
if (((!((_arg2 == masha))) && ((((((_arg2.y > masha.y)) && ((cont.getChildIndex(_arg2) < cont.getChildIndex(masha))))) || ((((_arg2.y < masha.y)) && ((cont.getChildIndex(_arg2) > cont.getChildIndex(masha))))))))){
cont.swapChildren(_arg2, masha);
};
_local3 = 0;
while (_local3 < 3) {
if (((((!((ummc[_local3] == null))) && (ummc[_local3].stands))) && (((((((_arg2.y + 40) < ummc[_local3].y)) && ((cont.getChildIndex(_arg2) > cont.getChildIndex(ummc[_local3]))))) || (((((_arg2.y + 40) > ummc[_local3].y)) && ((cont.getChildIndex(_arg2) < cont.getChildIndex(ummc[_local3]))))))))){
cont.swapChildren(_arg2, ummc[_local3]);
};
_local3++;
};
}
public function resetScore(){
var _local1:int;
_local1 = 0;
while (_local1 < 6) {
score[_local1] = 0;
_local1++;
};
}
public function unsetGrayRent(){
unsetGray(14);
}
public function testBneed(){
bNeed = false;
}
public function rideBanana(_arg1:int):Boolean{
if (ppls[_arg1] == null){
return;
};
switch (ppls[_arg1].State){
case 0:
ppls[_arg1].nextpos = banPos[ppls[_arg1].BichPlaceNom];
sendPeep(_arg1);
ppls[_arg1].State = -1;
ppls[_arg1].mc.onBanan(true);
break;
case -1:
ppls[_arg1].mc.onBanan(false);
ppls[_arg1].mc.th.ch.visible = false;
ppls[_arg1].mc.th.nums.visible = false;
ppls[_arg1].mc.th.sm.InitSmileys(3);
ppls[_arg1].mc.SetBananThought();
if (bananat.nums.visible){
ppls[_arg1].mc.th.sm.PauseSmileys();
ppls[_arg1].mc.th.setNum(mtasksShow);
} else {
if (brider.riding){
ppls[_arg1].mc.th.visible = false;
};
};
ppls[_arg1].State = 1;
bananat.sel = bananat.bananism.visible;
return (false);
case 2:
banPlaces[ppls[_arg1].BichPlaceNom] = false;
ppls[_arg1].State = 3;
ppls[_arg1].mc.cdrs.visible = true;
ppls[_arg1].StartTimer(rideBanana, 300);
return (false);
case 3:
ppls[_arg1].nextpos = shezPlaces[ppls[_arg1].KresloNom];
sendPeep(_arg1);
ppls[_arg1].State = 4;
ppls[_arg1].mc.onShez(true);
break;
case 4:
ppls[_arg1].mc.Lay();
ppls[_arg1].State = 0;
makeWish(_arg1, 3);
break;
};
return (true);
}
public function endDrinkWater(_arg1:int){
ppls[_arg1].mc.Lay();
makeWish(_arg1, 0);
}
public function orderSouv(_arg1:int){
var _local2:int;
switch (ppls[_arg1].State){
case 0:
ppls[_arg1].nextpos = souvPos[ppls[_arg1].BichPlaceNom];
sendPeep(_arg1);
ppls[_arg1].State = 1;
ppls[_arg1].mc.onSouv(true);
break;
case 1:
ppls[_arg1].mc.onSouv(false);
ppls[_arg1].mc.SetSouvThought();
return (false);
case 2:
ProcessAddMoney(_arg1, 7);
if (goalnum == 3){
goalBar.updateGoals();
} else {
goalstate.souv++;
};
_local2 = 0;
while (_local2 < ppls[_arg1].mc.th.sm.getNum()) {
sb.AddSmile();
_local2++;
};
satamat.sv.setNum((satamat.sv.getNum() - 1));
if (satamat.sv.getNum() == 0){
setGraySouv();
};
ppls[_arg1].mc.th.sm.StopSmileys();
ppls[_arg1].mc.th.clearObjs();
ppls[_arg1].mc.th.visible = false;
ppls[_arg1].StartTimer(orderSouv, 300);
ppls[_arg1].State = 3;
return (false);
case 3:
ppls[_arg1].State = 4;
ppls[_arg1].nextpos = shezPlaces[ppls[_arg1].KresloNom];
souvPlaces[ppls[_arg1].BichPlaceNom] = false;
ppls[_arg1].mc.onShez(false);
sendPeep(_arg1);
break;
case 4:
ppls[_arg1].mc.Lay();
ppls[_arg1].State = 0;
makeWish(_arg1, 7);
break;
};
return (true);
}
public function setGrayRent(_arg1:int=0){
setGray(_arg1, 14);
}
public function MouseDown(_arg1:MouseEvent):void{
var _local2:vec2i;
var _local3:vec2i;
xpos = Math.round(((_arg1.stageX - mapShiftX) / blockSizeX));
ypos = Math.round(((_arg1.stageY - mapShiftY) / blockSizeY));
if (!mouseDisable){
NextPointX = xpos;
NextPointY = ypos;
_local2 = new vec2i(mXpos, mYpos);
_local3 = new vec2i(NextPointX, NextPointY);
mashaPath = null;
mashaPath = new Array();
if (Field[xpos][ypos] == "0"){
FindPath(_local2, _local3, mashaPath);
};
mashaPathI = (mashaPath.length - 1);
mashaGotDir();
};
}
public function hintWater(){
globalResume();
GimmeWater(hintInd);
}
public function initVictory(){
var _local1:int;
_local1 = 0;
while (_local1 < 3) {
if (((!((null == ummc[_local1]))) && (!(ummc[_local1].stands)))){
ummc[_local1].Click();
};
_local1++;
};
Mouse.show();
winSecs = clock.seconds;
if (score[curlevel] < (1000000 / winSecs)){
score[curlevel] = int((1000000 / (winSecs + 1)));
sendScore();
};
if (null != minigame){
removeChild(minigame);
minigame = null;
};
if (hint.visible){
hint.onEnd(false);
};
minigame = new winAnim();
addChild(minigame);
}
public function updateWare(){
if (0 == wareSlots[0]){
waha.w1.visible = false;
} else {
waha.w1.visible = true;
waha.w1.gotoAndStop(wareSlots[0]);
};
if (0 == wareSlots[1]){
waha.w2.visible = false;
} else {
waha.w2.visible = true;
waha.w2.gotoAndStop(wareSlots[1]);
};
}
public function setMusic(_arg1:Boolean){
mFade.setMute(_arg1);
aFade.setMute(_arg1);
}
public function processButterDeed():Boolean{
switch (mashaFazaZakaza){
case 0:
mashaFazaZakaza = 1;
if (((!((mXpos == batamatX))) || (!((mYpos == batamatY))))){
NextPointX = batamatX;
NextPointY = batamatY;
SendMasha();
break;
};
case 1:
mashaFazaZakaza = 2;
batamat.sv.setNum((batamat.sv.getNum() - 1));
if (batamat.sv.getNum() == 0){
setGrayButter();
};
masha.Manim2.PlayAnim(5);
masha.RH = true;
masha.RHItem = 1;
StartMashaTimer(processMashaDeed, 3000);
butterbar.init(3000);
return (false);
case 2:
if (((((!((undefined == MashaTask[1]))) && ((MashaTask[1].deed == 9)))) && ((batamat.sv.getNum() > 0)))){
mashaFazaZakaza = 3;
batamat.sv.setNum((batamat.sv.getNum() - 1));
if (batamat.sv.getNum() == 0){
setGrayButter(1);
};
masha.LH = true;
masha.LHItem = 1;
masha.Manim2.PlayAnim(5);
StartMashaTimer(processMashaDeed, 3000);
butterbar.init(3000);
return (false);
};
case 3:
mashaWorked = false;
if (mashaFazaZakaza != 3){
mashaFazaZakaza = 4;
} else {
mashaFazaZakaza = 5;
};
NextPointX = ppls[MashaTask[0].pind].pos.X;
NextPointY = (ppls[MashaTask[0].pind].pos.Y + 1);
SendMasha();
break;
case 5:
case 4:
if (5 == mashaFazaZakaza){
if (mashaWorked){
mashaFazaZakaza = 4;
SendMasha();
} else {
mashaWorked = true;
if (masha.LHItem == 1){
masha.LH = false;
masha.LHItem = 0;
};
startEatButter(MashaTask[0].pind);
Sounds = Predmet_up.play(0, 0, root.svol);
if (((hints[29]) && ((batamat.sv.getNum() == 0)))){
hints[29] = false;
hint.SetupHint(190, 67, hdescs[29], waha.Click, 120, 78);
};
shiftNums();
shiftMashaDeed();
mashaFazaZakaza = 5;
NextPointX = ppls[MashaTask[0].pind].pos.X;
NextPointY = (ppls[MashaTask[0].pind].pos.Y + 1);
StartMashaTimer(processMashaDeed, 300);
return (false);
};
} else {
if (masha.RHItem == 1){
masha.RH = false;
masha.RHItem = 0;
};
startEatButter(MashaTask[0].pind);
Sounds = Predmet_up.play(0, 0, root.svol);
if (((hints[29]) && ((batamat.sv.getNum() == 0)))){
hints[29] = false;
hint.SetupHint(190, 67, hdescs[29], waha.Click, 120, 78);
};
shiftNums();
mashaFazaZakaza = 6;
StartMashaTimer(processMashaDeed, 300);
return (false);
};
break;
case 6:
shiftMashaDeed();
return (processMashaDeed());
};
return (true);
}
public function winWindow(){
removeChild(minigame);
minigame = null;
globalPause();
if (hint.visible){
hint.onEnd(false);
};
minigame = new menuWin();
addChild(minigame);
}
public function startLeaveBeach(_arg1:int){
ppls[_arg1].nextpos = new vec2i(int((34 + (6 * (VhodOchered % 2)))), 8);
ppls[_arg1].deed = 1;
sheslongs[ppls[_arg1].KresloNom].ico.visible = true;
sendPeep(_arg1);
}
public function GimmeSouv(_arg1:int){
if (ppls[_arg1].mc.th.ch.visible){
cancelDeed(ppls[_arg1].mc.th.mun);
return;
};
ppls[_arg1].mc.th.ch.visible = false;
ppls[_arg1].mc.th.sm.PauseSmileys();
minigame = addChild(new MGSouv());
minigame.ind = _arg1;
}
public function Bananieren(_arg1:int){
var _local2:int;
if (bananat.nums.visible){
return;
};
_local2 = 0;
while (_local2 < ppls.length) {
if (((((!((ppls[_local2] == null))) && ((ppls[_local2].deed == 16)))) && ((ppls[_local2].State == 1)))){
ppls[_local2].OrderNumber = (mtasksShow + 1);
ppls[_local2].mc.th.sm.PauseSmileys();
ppls[_local2].mc.th.setNum((mtasksShow + 1));
};
_local2++;
};
MashaTask[mtasksTotal] = new mtask(16, -1, _arg1);
mtasksTotal++;
mtasksShow++;
bananat.setNum(mtasksShow);
bananat.bananatNumDeed = mtasksTotal;
if (1 == mtasksTotal){
mashaFazaZakaza = 0;
processMashaDeed();
};
}
public function FillSatamat(){
if ((((wareSlots[0] == 4)) || ((wareSlots[1] == 4)))){
wish2xatamat[3] = 1;
MashaTask[mtasksTotal] = new mtask(13, 0, 0);
mtasksTotal++;
mtasksShow++;
satamat.setNum(mtasksShow);
satamat.satamatNumDeed = mtasksTotal;
if (1 == mtasksTotal){
processMashaDeed();
};
};
}
public function UpdateFPS(_arg1:TimerEvent):void{
fpsText.text = fpsCounter.toString();
fpsCounter = 0;
}
public function mashaTakeRent():Boolean{
switch (mashaFazaZakaza){
case 0:
if (((!((mXpos == ratamatX))) || (!((mYpos == ratamatY))))){
NextPointX = ratamatX;
NextPointY = ratamatY;
SendMasha();
mashaFazaZakaza = 1;
break;
};
case 1:
ppls[MashaTask[0].pind].State = 7;
orderRent(MashaTask[0].pind);
shiftNums();
shiftMashaDeed();
return (processMashaDeed());
};
return (true);
}
public function unsetGrayWater(){
unsetGray(3);
}
public function showGoalsIngame(){
globalPause();
if (hint.visible){
hint.onEnd(false);
};
goalsSym = addChild(new menuGoals());
goalsSym.ShowGoals(lgoals[curlevel], goalstate);
}
public function SavePath(_arg1:Array, _arg2:vec2i){
var _local3:int;
_arg1.push(_arg2);
_local3 = (closedList.length - 1);
while (_local3 >= 0) {
_arg1.push(closedList[_local3][0]);
_local3 = closedList[_local3][2];
};
}
public function parseNewline(_arg1:String){
var _local2:Array;
var _local3:String;
var _local4:int;
_local2 = _arg1.split("\\n");
_local3 = _local2[0];
_local4 = 1;
while (_local4 < _local2.length) {
if (_local3.charAt((_local3.length - 1)) != "\\"){
_local3 = (_local3 + ("\n" + _local2[_local4]));
} else {
_local3 = (_local3 + ("n" + _local2[_local4]));
};
_local4++;
};
return (_local3);
}
public function copyWishes(){
var _local1:int;
var _local2:int;
_local1 = 0;
while (_local1 < 4) {
if (0 < bChances[curlevel][_local1]){
_local2 = 0;
while (_local2 < levelChances[curlevel].length) {
buyerChances[_local1][_local2] = levelChances[curlevel][_local2];
_local2++;
};
};
_local1++;
};
}
public function finishWarehouse(_arg1:int, _arg2:int){
globalResume();
if (((!((0 == _arg1))) || (!((0 == _arg2))))){
wareSlots[0] = _arg1;
wareSlots[1] = _arg2;
updateWare();
if (((!(((_arg1 % 2) == 0))) || (!(((_arg2 % 2) == 0))))){
delivering = true;
moto.StartDelivery();
motobar.init(11000);
};
};
updateMoney();
removeChild(minigame);
minigame = null;
}
public function drawPath(_arg1:vec2i){
i = _arg1.X;
j = _arg1.Y;
OField[i][j] = root.addChild(new _tmpPathPiece());
OField[i][j].x = ((blockSizeX * (i - 0.5)) + mapShiftX);
OField[i][j].y = ((blockSizeY * (j - 0.5)) + mapShiftY);
OField[i][j].width = blockSizeX;
OField[i][j].height = blockSizeY;
}
public function hintSmileBar(){
if (hints[20]){
hints[20] = false;
hint.SetupHint(132, 13, hdescs[20], null, 120, 34, false, -2, -2, true);
};
}
public function orderRent(_arg1:int){
var _local2:int;
switch (ppls[_arg1].State){
case 0:
ppls[_arg1].nextpos = rentPos[ppls[_arg1].BichPlaceNom];
sendPeep(_arg1);
ppls[_arg1].State = 1;
ppls[_arg1].mc.onRent(true);
break;
case 1:
ppls[_arg1].mc.onRent(false);
ppls[_arg1].mc.th.ch.visible = false;
ppls[_arg1].mc.th.nums.visible = false;
ppls[_arg1].mc.SetRentThought1();
if (hints[19]){
hints[19] = false;
hintInd = _arg1;
hint.SetupHint((ppls[hintInd].mc.x + 25), (ppls[hintInd].mc.y - 65), hdescs[19], hintRent, 40, 40);
};
return (false);
case 2:
ProcessAddMoney(_arg1, 14);
if (goalnum == 14){
goalBar.updateGoals();
} else {
goalstate.swims++;
};
_local2 = 0;
while (_local2 < ppls[_arg1].mc.th.sm.getNum()) {
sb.AddSmile();
_local2++;
};
if (ratamat.matrases[1] == 1){
ratamat.matrases[1] = 0;
ratamat.m1.gotoAndStop(2);
ppls[_arg1].VhodPlaceNom = 1;
} else {
ppls[_arg1].VhodPlaceNom = 0;
ratamat.matrases[0] = 0;
ratamat.m0.gotoAndStop(2);
setGrayRent();
};
ppls[_arg1].mc.th.sm.StopSmileys();
ppls[_arg1].mc.th.clearObjs();
ppls[_arg1].mc.th.visible = false;
ppls[_arg1].StartTimer(orderRent, 300);
ppls[_arg1].State = 3;
ppls[_arg1].deed = 15;
Sounds = Predmet_up.play(0, 0, root.svol);
return (false);
case 3:
ppls[_arg1].State = 4;
rentPlaces[ppls[_arg1].BichPlaceNom] = false;
ppls[_arg1].nextpos = swimPlaces[ppls[_arg1].VhodPlaceNom];
sendPeep(_arg1);
break;
case 4:
ppls[_arg1].mc.Matrass(ppls[_arg1].VhodPlaceNom);
ppls[_arg1].StartTimer(orderRent, 10000);
ppls[_arg1].State = 5;
return (false);
case 5:
if (((((rentPlaces[0]) && (rentPlaces[1]))) && (rentPlaces[2]))){
ppls[_arg1].StartTimer(orderRent, 1000);
return (false);
};
ppls[_arg1].BichPlaceNom = Math.floor((Math.random() * 3));
while (rentPlaces[ppls[_arg1].BichPlaceNom]) {
ppls[_arg1].BichPlaceNom = ((ppls[_arg1].BichPlaceNom + 1) % 3);
};
rentPlaces[ppls[_arg1].BichPlaceNom] = true;
ppls[_arg1].nextpos = rentPos[ppls[_arg1].BichPlaceNom];
if (0 == ppls[_arg1].VhodPlaceNom){
swim1.Manim.Stop();
swim1.visible = false;
} else {
swim2.Manim.Stop();
swim2.visible = false;
};
sendPeep(_arg1);
ppls[_arg1].State = 6;
break;
case 6:
ppls[_arg1].mc.th.ch.visible = false;
ppls[_arg1].mc.th.nums.visible = false;
ppls[_arg1].mc.SetRentThought2();
return (false);
case 7:
Sounds = Predmet_down.play(0, 0, root.svol);
ProcessAddMoney(_arg1, 15);
_local2 = 0;
while (_local2 < ppls[_arg1].mc.th.sm.getNum()) {
sb.AddSmile();
_local2++;
};
if (0 == ppls[_arg1].VhodPlaceNom){
ratamat.matrases[0] = 1;
ratamat.m0.gotoAndStop(1);
} else {
ratamat.m1.gotoAndStop(1);
ratamat.matrases[1] = 1;
};
unsetGrayRent();
rentPlaces[ppls[_arg1].BichPlaceNom] = false;
ppls[_arg1].mc.th.sm.StopSmileys();
ppls[_arg1].mc.th.clearObjs();
ppls[_arg1].mc.th.visible = false;
ppls[_arg1].StartTimer(orderRent, 300);
ppls[_arg1].State = 8;
return (false);
case 8:
rentPlaces[ppls[_arg1].BichPlaceNom] = false;
ppls[_arg1].nextpos = shezPlaces[ppls[_arg1].KresloNom];
sendPeep(_arg1);
ppls[_arg1].mc.onShez(true);
ppls[_arg1].State = 9;
break;
case 9:
ppls[_arg1].mc.Lay();
ppls[_arg1].State = 0;
makeWish(_arg1, 3);
break;
};
return (true);
}
public function finishBanan(_arg1, _arg2, _arg3){
var _local4:int;
if (0 <= _arg1){
rideBanana(_arg1);
};
if (0 <= _arg2){
rideBanana(_arg2);
};
if (0 <= _arg3){
rideBanana(_arg3);
};
bananat.sel = false;
_local4 = 0;
while (_local4 < ppls.length) {
if (((((!((ppls[_local4] == null))) && ((ppls[_local4].deed == 16)))) && ((ppls[_local4].State == 1)))){
bananat.sel = true;
ppls[_local4].mc.th.visible = true;
};
_local4++;
};
}
public function LemmeEnter(_arg1:int){
if (ppls[_arg1].mc.th.ch.visible){
cancelDeed(ppls[_arg1].mc.th.mun);
return;
};
if (ppls[_arg1].VhodPlaceNom == 0){
MashaTask[mtasksTotal] = new mtask(4, 0, _arg1);
} else {
if (ppls[_arg1].VhodPlaceNom == 1){
MashaTask[mtasksTotal] = new mtask(4, 1, _arg1);
} else {
return;
};
};
mtasksTotal++;
mtasksShow++;
ppls[_arg1].mc.th.setNum(mtasksShow);
ppls[_arg1].OrderNumber = mtasksTotal;
ppls[_arg1].OrderNumber = mtasksTotal;
if (1 == mtasksTotal){
processMashaDeed();
};
}
public function add0(_arg1:int):String{
return (((_arg1 < 10)) ? ("0" + String(_arg1)) : String(_arg1));
}
public function makeWish(_arg1:int, _arg2:int=-1){
var _local3:Number;
var _local4:Number;
var _local5:int;
var _local6:int;
var _local7:int;
if (timestamp() >= ppls[_arg1].leaveTime){
ppls[_arg1].StartTimer(startLeaveBeach, 1000);
return;
};
_local3 = (Math.random() * 100);
_local4 = 0;
_local5 = -1;
_local6 = 0;
while (_local6 < buyerChances[ppls[_arg1].buyerType].length) {
if ((((_arg2 == 2)) && ((_local6 == 2)))){
} else {
if ((((((_arg2 == 0)) && ((_local6 == 0)))) && (!((curlevel == 0))))){
} else {
if ((((_arg2 == 1)) && ((_local6 == 1)))){
} else {
if ((((_arg2 == 3)) && ((_local6 == 3)))){
} else {
if ((((_arg2 == 6)) && ((_local6 == 6)))){
} else {
_local4 = (_local4 + (buyerChances[ppls[_arg1].buyerType][_local6] * wish2xatamat[_local6]));
if (_local3 <= _local4){
_local5 = _local6;
break;
};
};
};
};
};
};
_local6++;
};
if (_local5 == -1){
_local5 = 2;
};
ppls[_arg1].deed = 11;
ppls[_arg1].mc.th.unsetShade();
switch (_local5){
case 0:
ppls[_arg1].nextWish = 3;
makeThinkOfWishOnKreslo(_arg1);
break;
case 1:
ppls[_arg1].nextWish = 9;
makeThinkOfWishOnKreslo(_arg1);
break;
case 2:
ppls[_arg1].StartTimer(makeInitWish, 1000);
break;
case 3:
if ((((satamat.sv.getNum() == 0)) || (((((souvPlaces[0]) && (souvPlaces[1]))) && (souvPlaces[2]))))){
ppls[_arg1].StartTimer(makeInitWish, 2000);
break;
};
ppls[_arg1].BichPlaceNom = Math.floor((Math.random() * 3));
while (souvPlaces[ppls[_arg1].BichPlaceNom]) {
ppls[_arg1].BichPlaceNom = ((ppls[_arg1].BichPlaceNom + 1) % 3);
};
souvPlaces[ppls[_arg1].BichPlaceNom] = true;
ppls[_arg1].State = 0;
ppls[_arg1].deed = 7;
ppls[_arg1].mc.th.clearObjs();
ppls[_arg1].StartTimer(orderSouv, 2000);
break;
case 4:
_local7 = (((rentPlaces[0]) ? 0 : 1 + (rentPlaces[1]) ? 0 : 1) + (rentPlaces[2]) ? 0 : 1);
if (((((((!((ratamat.matrases[0] == 1))) && (!((ratamat.matrases[1] == 1))))) || ((_local7 <= 1)))) || ((((ratamat.matrases[1] == 0)) && ((ratamat.matrases[0] == 0)))))){
ppls[_arg1].StartTimer(makeInitWish, 2000);
break;
};
ppls[_arg1].State = 0;
ppls[_arg1].deed = 14;
ppls[_arg1].mc.th.clearObjs();
ppls[_arg1].BichPlaceNom = Math.floor((Math.random() * 3));
while (rentPlaces[ppls[_arg1].BichPlaceNom]) {
ppls[_arg1].BichPlaceNom = ((ppls[_arg1].BichPlaceNom + 1) % 3);
};
rentPlaces[ppls[_arg1].BichPlaceNom] = true;
ppls[_arg1].StartTimer(orderRent, 2000);
break;
case 5:
if (((!(bananat.free)) || (((((banPlaces[0]) && (banPlaces[1]))) && (banPlaces[2]))))){
ppls[_arg1].StartTimer(makeInitWish, 2000);
break;
};
ppls[_arg1].BichPlaceNom = Math.floor((Math.random() * 3));
while (banPlaces[ppls[_arg1].BichPlaceNom]) {
ppls[_arg1].BichPlaceNom = ((ppls[_arg1].BichPlaceNom + 1) % 3);
};
banPlaces[ppls[_arg1].BichPlaceNom] = true;
ppls[_arg1].State = 0;
ppls[_arg1].deed = 16;
ppls[_arg1].mc.th.clearObjs();
ppls[_arg1].StartTimer(rideBanana, 2000);
break;
case 6:
ppls[_arg1].State = 0;
ppls[_arg1].deed = 2;
ppls[_arg1].mc.th.clearObjs();
ppls[_arg1].StartTimer(doSwim, 2000);
break;
};
}
public function setOnTop(_arg1:MovieClip, _arg2:MovieClip){
if (cont.getChildIndex(_arg1) < cont.getChildIndex(_arg2)){
cont.swapChildren(_arg1, _arg2);
};
}
public function updateIfExists(_arg1:int, _arg2:int, _arg3:int):Boolean{
var _local4:int;
while (_local4 < openList.length) {
if ((((openList[_local4][0].X == _arg1)) && ((openList[_local4][0].Y == _arg2)))){
if ((openList[_local4][1].X + _arg3) < openList[_local4][1].Y){
openList[_local4][1].Y = (openList[_local4][1].X + _arg3);
return (true);
};
return (false);
};
_local4++;
};
return (false);
}
public function getBestOpen():int{
var _local1:int;
var _local2:int;
var _local3:int;
_local1 = 10000;
_local3 = (openList.length - 1);
while (_local3 >= 0) {
if (_local1 > openList[_local3][1].Y){
_local1 = openList[_local3][1].Y;
_local2 = _local3;
};
_local3--;
};
return (_local2);
}
public function setUmbrella(_arg1:int){
var _local2:int;
var _local3:int;
var _local4:int;
_local2 = 1000;
_local3 = -1;
_local4 = 0;
while (_local4 < 9) {
if (((!((_arg1 == 0))) && ((uposs[0] == _local4)))){
} else {
if (((!((_arg1 == 1))) && ((uposs[1] == _local4)))){
} else {
if (((!((_arg1 == 2))) && ((uposs[2] == _local4)))){
} else {
if (upos[_local4].distanceTo2(ummc[_arg1].x, ummc[_arg1].y) < _local2){
_local3 = _local4;
_local2 = upos[_local4].distanceTo2(ummc[_arg1].x, ummc[_arg1].y);
};
};
};
};
_local4++;
};
uposs[_arg1] = _local3;
if (((!((undefined == sheslongs[_local3]))) && (!((null == sheslongs[_local3]))))){
sheslongs[_local3].setUmbrella();
ummc[_arg1].visible = false;
} else {
ummc[_arg1].visible = true;
ummc[_arg1].x = upos[_local3].X;
ummc[_arg1].y = upos[_local3].Y;
};
}
public function ProcessDeed(_arg1:int):Boolean{
var _local2:int;
switch (ppls[_arg1].deed){
case 1:
ppls[_arg1].mc.th.sm.timerOfDeath.stop();
ppls[_arg1].mc.th.sm.timerOfDeath.removeEventListener(TimerEvent.TIMER, ppls[_arg1].mc.th.sm.Death);
ppls[_arg1].mc.th.sm.timerOfDeath = null;
cont.removeChild(ppls[_arg1].mc);
ppls[_arg1] = null;
pplsTotal--;
break;
case 0:
ppls[_arg1].ind = _arg1;
ppls[_arg1].mc.Lay();
if (!ppls[_arg1].WithShezlong){
sheslongs[ppls[_arg1].KresloNom] = cont.addChild(new sheslong());
sheslongs[ppls[_arg1].KresloNom].snum = ppls[_arg1].KresloNom;
sheslongs[ppls[_arg1].KresloNom].owner = _arg1;
sheslongs[ppls[_arg1].KresloNom].hasUmbrella = false;
_local2 = 0;
while (_local2 < 3) {
if (uposs[_local2] == ppls[_arg1].KresloNom){
ummc[_local2].x = upos[uposs[_local2]].X;
ummc[_local2].y = upos[uposs[_local2]].Y;
ummc[_local2].visible = false;
sheslongs[ppls[_arg1].KresloNom].setUmbrella();
};
_local2++;
};
LastUnusedInd++;
sheslongs[ppls[_arg1].KresloNom].x = (((19 + ((ppls[_arg1].KresloNom % 3) * 11)) * blockSizeX) + mapShiftX);
sheslongs[ppls[_arg1].KresloNom].y = (((22 + (Math.floor((ppls[_arg1].KresloNom / 3)) * 9)) * blockSizeY) + mapShiftY);
cont.swapChildren(ppls[_arg1].mc, sheslongs[ppls[_arg1].KresloNom]);
};
if (((hints[14]) && ((curlevel == 1)))){
hints[14] = false;
hintInd = _arg1;
globalPause();
hint.SetupHint((ummc[0].x + 33), (ummc[0].y + 26), hdescs[14], hintUmbrella, 72, 66);
};
ppls[_arg1].StartTimer(makeInitWish, (100 * (4 + Math.floor((Math.random() * 16)))));
break;
case 2:
return (doSwim(_arg1));
case 7:
return (orderSouv(_arg1));
case 4:
if (ppls[_arg1].VhodPlaceNom < 2){
ppls[_arg1].mc.SetEnterThought();
if (!haveFreeShes()){
ppls[_arg1].mc.th.setShade();
};
if (hints[4]){
hints[4] = false;
hint.SetupHint(374, 43, hdescs[4], send2more, 46, 45);
};
};
break;
case 14:
case 15:
return (orderRent(_arg1));
case 16:
rideBanana(_arg1);
break;
};
return (true);
}
public function SendMasha(){
var _local1:vec2i;
var _local2:vec2i;
_local1 = new vec2i(mXpos, mYpos);
_local2 = new vec2i(NextPointX, NextPointY);
mashaPath = null;
mashaPath = new Array();
if (((!((_local1.X == _local2.X))) || (!((_local1.Y == _local2.Y))))){
FindPath(_local1, _local2, mashaPath);
};
mashaPathI = (mashaPath.length - 1);
mashaGotDir();
}
public function FillBatamat(){
if ((((wareSlots[0] == 2)) || ((wareSlots[1] == 2)))){
wish2xatamat[1] = 1;
MashaTask[mtasksTotal] = new mtask(10, 0, 0);
mtasksTotal++;
mtasksShow++;
batamat.setNum(mtasksShow);
batamat.batamatNumDeed = mtasksTotal;
if (1 == mtasksTotal){
processMashaDeed();
};
};
}
public function haveFreeShes():Boolean{
var _local1:int;
_local1 = 0;
while (_local1 < 9) {
if (!shezOccupied[_local1]){
return (true);
};
_local1++;
};
return (false);
}
public function peopleGotDir(_arg1:int){
var _local2:*;
var _local3:*;
var _local4:vec2i;
_local2 = ppls[_arg1].dirX;
_local3 = ppls[_arg1].dirY;
_local4 = GetNextDir2(dirX, dirY, ppls[_arg1].pathI, ppls[_arg1].Way);
if (((!((_local4.X == ppls[_arg1].dirX))) || (!((_local4.Y == ppls[_arg1].dirY))))){
if (_local4.X > 0){
ppls[_arg1].mc.goRight();
} else {
if (_local4.X < 0){
ppls[_arg1].mc.goLeft();
} else {
if (_local4.Y < 0){
ppls[_arg1].mc.goUp();
} else {
if (_local4.Y > 0){
ppls[_arg1].mc.goDown();
} else {
ppls[_arg1].mc.stand();
if (!ProcessDeed(_arg1)){
ppls[_arg1].dirX = 0;
ppls[_arg1].dirY = 0;
return;
};
if (null == ppls[_arg1]){
return;
};
};
};
};
};
if (((!((_local2 == ppls[_arg1].dirX))) || (!((ppls[_arg1].dirY == _local3))))){
return;
};
ppls[_arg1].dirX = _local4.X;
ppls[_arg1].dirY = _local4.Y;
_local4 = null;
};
ppls[_arg1].pathI--;
}
public function AddUser(_arg1:int){
var _local2:int;
var _local3:Array;
var _local4:int;
var _local5:int;
_local2 = 0;
_local3 = new Array();
_local4 = 0;
_local5 = 0;
while (_local5 < ppls.length) {
if (((!((ppls[_local5] == null))) && ((ppls[_local5].deed == 4)))){
_local3[ppls[_local5].VhodPlaceNom] = 1;
_local4 = Math.max(ppls[_local5].VhodPlaceNom, _local4);
};
_local5++;
};
_local2 = (_local4 + 1);
_local5 = 0;
while (_local5 < _local4) {
if (_local3[_local5] == undefined){
_local2 = _local5;
break;
};
_local5++;
};
ppls[LastIndex] = new Buyer();
ppls[LastIndex].pos = new vec2i(int((34 + (6 * (_local2 % 2)))), 8);
ppls[LastIndex].nextpos = new vec2i((34 + (6 * (_local2 % 2))), ((_local2 < 2)) ? 18 : 8);
ppls[LastIndex].VhodPlaceNom = _local2;
VhodOchered++;
ppls[LastIndex].Way = new Array();
FindPath(ppls[LastIndex].pos, ppls[LastIndex].nextpos, ppls[LastIndex].Way);
ppls[LastIndex].deed = 4;
ppls[LastIndex].zind = LastUnusedInd;
ppls[LastIndex].pathI = (ppls[LastIndex].Way.length - 1);
ppls[LastIndex].shift = 0;
ppls[LastIndex].buyerType = _arg1;
switch (_arg1){
case 1:
ppls[LastIndex].mc = cont.addChild(new woman());
ppls[LastIndex].speed = (blockSizeX * 7);
ppls[LastIndex].mc.init();
break;
case 0:
ppls[LastIndex].mc = cont.addChild(new man());
ppls[LastIndex].speed = (blockSizeX * 8);
ppls[LastIndex].mc.init();
break;
};
ppls[LastIndex].mc.mouseEnabled = false;
ppls[LastIndex].mc.ind = (ppls[LastIndex].ind = LastIndex);
if (_local2 > 1){
ppls[LastIndex].mc.visible = false;
};
ppls[LastIndex].OrderNumber = -1;
peopleGotDir(LastIndex);
ppls[LastIndex].processingZadanie = false;
pplsTotal++;
LastIndex++;
LastUnusedInd++;
}
public function sendScore(){
if (gameStarted){
try {
mail_ru_connection.send(loaderInfo.parameters.lcom_name, "cacheResult", getScore());
} catch(err:Error) {
};
debug("cacheResult\n");
};
}
public function setGrayEnter(){
var _local1:int;
_local1 = 0;
while (_local1 < ppls.length) {
if (((((!((null == ppls[_local1]))) && ((4 == ppls[_local1].deed)))) && (!((MashaTask[0].pind == _local1))))){
ppls[_local1].OrderNumber = -1;
ppls[_local1].mc.th.setNum(ppls[_local1].OrderNumber);
ppls[_local1].mc.th.setShade();
};
_local1++;
};
_local1 = 1;
while (_local1 < MashaTask.length) {
if (MashaTask[_local1].deed == 4){
shiftNums(_local1);
shiftMashaDeed(_local1);
};
_local1++;
};
}
public function send2more(){
levels[0].popularity = 3;
LemmeEnter(0);
lastDeed = -2;
if (hints[5]){
hints[5] = false;
hint.SetupHint(347, 43, hdescs[5], whomSend, 127, 45);
};
}
}
}//package SummerCrazeeng_fla
Section 46
//man_cadres_12 (SummerCrazeeng_fla.man_cadres_12)
package SummerCrazeeng_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
public dynamic class man_cadres_12 extends MovieClip {
public function man_cadres_12(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package SummerCrazeeng_fla
Section 47
//matras_120 (SummerCrazeeng_fla.matras_120)
package SummerCrazeeng_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
public dynamic class matras_120 extends MovieClip {
public function matras_120(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package SummerCrazeeng_fla
Section 48
//matrassingGirl_149 (SummerCrazeeng_fla.matrassingGirl_149)
package SummerCrazeeng_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
public dynamic class matrassingGirl_149 extends MovieClip {
public var matrassNC:Array;
public var manrassNC:Array;
public var Manim:animat;
public var matrassCT:Array;
public function matrassingGirl_149(){
addFrameScript(0, frame1, 2, frame3);
}
public function init(){
matrassNC = new Array(1, 2, 3, 3, 2, 1);
manrassNC = new Array(4, 5, 6, 6, 5, 4);
matrassCT = new Array(110, 110, 110, 110, 110, 110);
Manim = new animat(this, matrassCT, matrassNC);
Manim.LoadAnim(matrassCT, manrassNC, 1);
}
function frame3(){
}
function frame1(){
}
}
}//package SummerCrazeeng_fla
Section 49
//menuButton_146 (SummerCrazeeng_fla.menuButton_146)
package SummerCrazeeng_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
public dynamic class menuButton_146 extends MovieClip {
public var clickFunc:Function;
public var capt:TextField;
public function menuButton_146(){
addFrameScript(0, frame1);
}
public function MouseUp(_arg1){
gotoAndStop(2);
}
public function MouseClick(_arg1){
if (null != clickFunc){
clickFunc();
};
}
function frame1(){
this.addEventListener(MouseEvent.MOUSE_OVER, MouseOver);
this.addEventListener(MouseEvent.MOUSE_OUT, MouseOut);
this.addEventListener(MouseEvent.CLICK, MouseClick);
this.addEventListener(MouseEvent.MOUSE_DOWN, MouseDown);
this.addEventListener(MouseEvent.MOUSE_UP, MouseUp);
stop();
}
public function MouseOut(_arg1){
gotoAndStop(1);
}
public function MouseDown(_arg1){
gotoAndStop(3);
}
public function MouseOver(_arg1){
gotoAndStop(2);
}
}
}//package SummerCrazeeng_fla
Section 50
//menuGoalsSymbol_49 (SummerCrazeeng_fla.menuGoalsSymbol_49)
package SummerCrazeeng_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
public dynamic class menuGoalsSymbol_49 extends MovieClip {
public function menuGoalsSymbol_49(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package SummerCrazeeng_fla
Section 51
//menuMap_150 (SummerCrazeeng_fla.menuMap_150)
package SummerCrazeeng_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
public dynamic class menuMap_150 extends MovieClip {
public const fdx:int = 4;
public const fdy:int = -21;
public var states:Array;
public var b0:MovieClip;
public var b1:MovieClip;
public var b2:MovieClip;
public var b3:MovieClip;
public var upgrNeeded:Array;
public var ico0:MovieClip;
public var ico1:MovieClip;
public var ico3:MovieClip;
public var ico2:MovieClip;
public var leveltxt:TextField;
public var hint:hintRotateOuter;
public var pimps:Array;
public var ftimer:Timer;
public var goalstxt:TextField;
public var menubut:MovieClip;
public var playbut:MovieClip;
public var dloadbut:MovieClip;
public var mShop:MovieClip;
public var mapnagVisible:Array;
public var flagAlpha:Number;
public var goaltxt0:TextField;
public var goaltxt1:TextField;
public var goaltxt2:TextField;
public var goaltxt3:TextField;
public var maphl:MovieClip;
public var flag:MovieClip;
public var cover:SimpleButton;
public var p0:MovieClip;
public var p1:MovieClip;
public var p2:MovieClip;
public var p3:MovieClip;
public var p5:MovieClip;
public var dloadVisible:Array;
public var p6:MovieClip;
public var buildingstxt:TextField;
public var shopbut:MovieClip;
public var p4:MovieClip;
public var mustbuy:MovieClip;
public function menuMap_150(){
addFrameScript(0, frame1);
}
public function pimpaClick(_arg1:int){
if (_arg1 < 6){
setLevel(_arg1);
} else {
parent.showNag(false);
};
}
public function hintShop(){
if (parent.hints[9]){
parent.hints[9] = false;
hint.SetupHint(184, 413, parent.hdescs[9], showShop, 138, 48);
};
}
public function setLevel(_arg1:int){
var num = _arg1;
parent.curlevel = num;
leveltxt.text = (root.lc.String.(@id == "SHOW_LEVELNUM") + (num + 1));
flag.x = (pimps[num].x + fdx);
flag.y = (pimps[num].y + fdy);
flagAlpha = 0;
ShowGoals(num);
}
public function flyflag(_arg1){
}
function frame1(){
mustbuy.visible = false;
b1.gotoAndStop(2);
b2.gotoAndStop(3);
b3.gotoAndStop(4);
states = parent.levelStates;
pimps = new Array(p0, p1, p2, p3, p4, p5, p6);
ftimer = new Timer(int((1000 / parent.fps)));
ftimer.addEventListener(TimerEvent.TIMER, flyflag);
flag.mouseEnabled = false;
dloadVisible = new Array(false, true, false, true, false, false, true);
mapnagVisible = new Array(false, false, true, false, true, true, false);
goalstxt.text = root.lc.String.(@id == "GOALS_SMALL");
buildingstxt.text = root.lc.String.(@id == "BUILDINGS_SMALL");
playbut.capt.text = root.lc.String.(@id == "PLAY");
playbut.clickFunc = Play;
menubut.capt.text = root.lc.String.(@id == "MENU");
menubut.clickFunc = parent.showMainMenu;
shopbut.capt.text = root.lc.String.(@id == "SHOP");
shopbut.clickFunc = showShop;
maphl.visible = (dloadbut.visible = (root.alawar_f as Boolean));
dloadbut.capt.text = root.parseNewline(root.lc.String.(@id == "DOWNLOAD"));
dloadbut.clickFunc = parent.Download;
upgrNeeded = new Array(-1, 2, 1, 3, -1, 4);
cover.useHandCursor = false;
}
public function ShowGoals(_arg1:int){
var _local2:Goals;
var _local3:Array;
var _local4:Array;
var _local5:int;
var _local6:int;
if (_arg1 >= parent.lgoals.length){
return;
};
_local2 = parent.lgoals[_arg1];
_local3 = new Array(ico0, ico1, ico2, ico3);
_local4 = new Array(goaltxt0, goaltxt1, goaltxt2, goaltxt3);
_local5 = 0;
_local6 = 0;
while (_local6 < 4) {
_local3[_local6].visible = false;
_local4[_local6].text = "";
_local6++;
};
if (_local2.water > 0){
_local4[_local5].text = _local2.water;
_local3[_local5].visible = true;
_local3[_local5].gotoAndStop(2);
_local5++;
};
if (_local2.butter > 0){
_local4[_local5].text = _local2.butter;
_local3[_local5].visible = true;
_local3[_local5].gotoAndStop(4);
_local5++;
};
if (_local2.souv > 0){
_local4[_local5].text = _local2.souv;
_local3[_local5].visible = true;
_local3[_local5].gotoAndStop(3);
_local5++;
};
if (_local2.bananas > 0){
_local4[_local5].text = _local2.bananas;
_local3[_local5].visible = true;
_local3[_local5].gotoAndStop(5);
_local5++;
};
if (_local2.swims > 0){
_local4[_local5].text = _local2.swims;
_local3[_local5].visible = true;
_local3[_local5].gotoAndStop(6);
_local5++;
};
if (_local2.peoples > 0){
_local4[_local5].text = _local2.peoples;
_local3[_local5].visible = true;
_local3[_local5].gotoAndStop(1);
_local5++;
};
if (_local2.money > 0){
_local4[_local5].text = _local2.money;
_local3[_local5].visible = true;
_local3[_local5].gotoAndStop(7);
_local5++;
};
b0.visible = (parent.lvlHasSS[_arg1] == 1);
b1.visible = (parent.lvlHasBatamat[_arg1] == 1);
b2.visible = (parent.lvlHasRent[_arg1] == 1);
b3.visible = (parent.lvlHasBanan[_arg1] == 1);
mShop.visible = false;
if (parent.hints[12]){
parent.hints[12] = false;
hint.SetupHint(28, 63, parent.hdescs[12], hintShop, 42, 40);
};
}
public function Init(){
var _local1:int;
_local1 = 0;
while (_local1 < 7) {
pimps[_local1].num = _local1;
switch (states[_local1]){
case -1:
setPimpa(pimps[_local1], true, true, 0);
break;
case 0:
setPimpa(pimps[_local1], false, true, 0);
break;
case 1:
setPimpa(pimps[_local1], true, false, 0);
break;
default:
setPimpa(pimps[_local1], true, false, (states[_local1] - 1));
break;
};
_local1++;
};
setLevel(parent.curlevel);
hint.visible = false;
if (parent.curlevel >= 6){
parent.showNag(true);
};
}
public function setPimpa(_arg1:MovieClip, _arg2:Boolean, _arg3:Boolean, _arg4:int){
_arg1.visible = _arg2;
switch (_arg4){
case 0:
_arg1.cup.visible = false;
break;
case 1:
_arg1.cup.visible = true;
_arg1.cup.gotoAndStop(2);
break;
case 2:
_arg1.cup.visible = true;
_arg1.cup.gotoAndStop(1);
break;
};
if (_arg3){
_arg1.gotoAndStop(2);
} else {
_arg1.gotoAndStop(1);
};
}
public function Play(){
if (parent.curlevel >= upgrNeeded.length){
parent.showNagScreen();
return;
};
parent.Sounds = parent.Click_Interface1.play(0, 0, root.svol);
if ((((upgrNeeded[parent.curlevel] >= 0)) && (!(parent.upgradesBought[upgrNeeded[parent.curlevel]])))){
mustbuy.setup(upgrNeeded[parent.curlevel]);
} else {
parent.startLevel(parent.curlevel);
};
}
public function showShop(){
parent.Sounds = parent.Click_Interface1.play(0, 0, root.svol);
mShop.visible = true;
mShop.initShop();
}
public function setLevelDesc(_arg1:int){
}
}
}//package SummerCrazeeng_fla
Section 52
//menuMustBuy_158 (SummerCrazeeng_fla.menuMustBuy_158)
package SummerCrazeeng_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
public dynamic class menuMustBuy_158 extends MovieClip {
public var descs:Array;
public var teh:SCWindow;
public var cont:MovieClip;
public var buybut:MovieClip;
public var desctxt:TextField;
public var ico:MovieClip;
public var s:Array;
public var cover:SimpleButton;
public var cancelbut:MovieClip;
public var capts:Array;
public var capt:TextField;
public var ind:int;
public function menuMustBuy_158(){
addFrameScript(0, frame1);
}
public function nobuy(){
this.visible = false;
}
function frame1(){
s = new Array(new Window_part_1(190, 217), new Window_part_2(54, 217), new Window_part_3(190, 217), new Window_part_4(190, 54), new Window_part_5(54, 54), new Window_part_6(190, 54), new Window_part_7(190, 70), new Window_part_8(54, 70), new Window_part_9(190, 70));
teh = new SCWindow(cont, s, 380, 287, ((570 - 380) / 2), ((430 - 287) / 2));
cancelbut.capt.text = root.lc.String.(@id == "CANCEL");
cancelbut.clickFunc = nobuy;
buybut.capt.text = root.lc.String.(@id == "SHOP");
buybut.clickFunc = buy;
capts = new Array(root.lc.String.(@id == "UMBRELLA_CAPT"), root.lc.String.(@id == "SANDWICHSHOP_CAPT"), root.lc.String.(@id == "RENT_CAPT"), root.lc.String.(@id == "SOUVENIRS_CAPT"), root.lc.String.(@id == "BANANA_CAPT"));
descs = new Array("", root.parseNewline(root.lc.String.(@id == "SANDWICHSHOP_NEED")), root.parseNewline(root.lc.String.(@id == "RENT_NEED")), root.parseNewline(root.lc.String.(@id == "SOUVENIRS_NEED")), root.parseNewline(root.lc.String.(@id == "BANANA_NEED")));
cover.useHandCursor = false;
}
public function setup(_arg1:int){
this.visible = true;
ind = _arg1;
capt.text = "";
desctxt.text = descs[_arg1];
ico.setUpgrade(_arg1, true);
}
public function buy(){
parent.mShop.visible = true;
parent.mShop.initShop();
this.visible = false;
}
}
}//package SummerCrazeeng_fla
Section 53
//menuShop_160 (SummerCrazeeng_fla.menuShop_160)
package SummerCrazeeng_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
public dynamic class menuShop_160 extends MovieClip {
public var up4:MovieClip;
public var up0:MovieClip;
public var arr4:MovieClip;
public var up3:MovieClip;
public var upgrNeeded:Array;
public var okbut:MovieClip;
public var upFunc:Array;
public var up2:MovieClip;
public var xtxt0:TextField;
public var xtxt3:TextField;
public var xtxt4:TextField;
public var xtxt1:TextField;
public var starstxt:TextField;
public var arrows:Array;
public var xtxt2:TextField;
public var upButs:Array;
public var ptxts:Array;
public var cover:SimpleButton;
public var ubut1:MovieClip;
public var upPrices:Array;
public var ubut2:MovieClip;
public var ubut3:MovieClip;
public var ubut4:MovieClip;
public var ubut0:MovieClip;
public var upSyms:Array;
public var yesno:MovieClip;
public var arr0:MovieClip;
public var arr2:MovieClip;
public var arr3:MovieClip;
public var up1:MovieClip;
public var arr1:MovieClip;
public function menuShop_160(){
addFrameScript(0, frame1);
}
public function uf1(){
showYesNoBuy(1);
}
public function initShop(){
var _local1:int;
starstxt.text = parent.parent.stars;
_local1 = 0;
while (_local1 < 5) {
upSyms[_local1].setUpgrade(_local1, parent.parent.upgradesBought[_local1]);
upButs[_local1].isactive = ((!(parent.parent.upgradesBought[_local1])) && ((upPrices[_local1] <= parent.parent.stars)));
upButs[_local1].clickFunc = upFunc[_local1];
if (!upButs[_local1].isactive){
upButs[_local1].alpha = 0.5;
} else {
upButs[_local1].alpha = 1;
};
ptxts[_local1].text = upPrices[_local1];
_local1++;
};
if ((((upgrNeeded[parent.parent.curlevel] >= 0)) && (!(parent.parent.upgradesBought[upgrNeeded[parent.parent.curlevel]])))){
arrows[upgrNeeded[parent.parent.curlevel]].ArrowOn();
};
if (parent.parent.hints[35]){
parent.parent.hints[35] = false;
parent.hint.SetupHint((127 + 138), 174, parent.parent.hdescs[35], uf2, 60, 48);
};
}
function frame1(){
upSyms = new Array(up0, up1, up2, up3, up4);
upButs = new Array(ubut0, ubut1, ubut2, ubut3, ubut4);
upFunc = new Array(uf0, uf1, uf2, uf3, uf4);
arrows = new Array(arr0, arr1, arr2, arr3, arr4);
upgrNeeded = new Array(-1, 2, 1, 3, -1, 4);
upPrices = new Array(75, 50, 50, 100, 100);
ptxts = new Array(xtxt0, xtxt1, xtxt2, xtxt3, xtxt4);
yesno.visible = false;
cover.useHandCursor = false;
okbut.capt.text = root.lc.String.(@id == "OK");
okbut.clickFunc = closeShop;
}
public function closeShop(){
parent.parent.Sounds = parent.parent.Click_Interface1.play(0, 0, root.svol);
visible = false;
}
public function showYesNoBuy(_arg1:int){
parent.parent.Sounds = parent.parent.Click_Interface1.play(0, 0, root.svol);
if (!parent.parent.upgradesBought[_arg1]){
yesno.setup(_arg1);
};
}
public function upgradeI(_arg1:int){
parent.parent.Sounds = parent.parent.Click_Interface1.play(0, 0, root.svol);
if (arrows[_arg1].visible){
arrows[_arg1].ArrowOff();
};
upSyms[_arg1].setUpgrade(_arg1, true);
parent.parent.upgradesBought[_arg1] = true;
parent.parent.stars = (parent.parent.stars - upPrices[_arg1]);
initShop();
}
public function uf2(){
showYesNoBuy(2);
}
public function uf3(){
showYesNoBuy(3);
}
public function uf4(){
showYesNoBuy(4);
}
public function uf0(){
showYesNoBuy(0);
}
}
}//package SummerCrazeeng_fla
Section 54
//menuYesNoBuy_163 (SummerCrazeeng_fla.menuYesNoBuy_163)
package SummerCrazeeng_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
public dynamic class menuYesNoBuy_163 extends MovieClip {
public var descs:Array;
public var teh:SCWindow;
public var cont:MovieClip;
public var buybut:MovieClip;
public var desctxt:TextField;
public var ico:MovieClip;
public var s:Array;
public var cover:SimpleButton;
public var cancelbut:MovieClip;
public var capts:Array;
public var capt:TextField;
public var ind:int;
public function menuYesNoBuy_163(){
addFrameScript(0, frame1);
}
public function nobuy(){
parent.parent.parent.Sounds = parent.parent.parent.Click_Interface1.play(0, 0, root.svol);
this.visible = false;
}
function frame1(){
s = new Array(new Window_part_1(190, 217), new Window_part_2(54, 217), new Window_part_3(190, 217), new Window_part_4(190, 54), new Window_part_5(54, 54), new Window_part_6(190, 54), new Window_part_7(190, 70), new Window_part_8(54, 70), new Window_part_9(190, 70));
teh = new SCWindow(cont, s, 480, 287, ((570 - 480) / 2), ((430 - 287) / 2));
cancelbut.capt.text = root.lc.String.(@id == "CANCEL");
cancelbut.clickFunc = nobuy;
buybut.capt.text = root.lc.String.(@id == "OK");
buybut.clickFunc = buy;
capts = new Array(root.lc.String.(@id == "UMBRELLA_CAPT"), root.lc.String.(@id == "SANDWICHSHOP_CAPT"), root.lc.String.(@id == "RENT_CAPT"), root.lc.String.(@id == "SOUVENIRS_CAPT"), root.lc.String.(@id == "BANANA_CAPT"));
descs = new Array(root.parseNewline(root.lc.String.(@id == "UMBRELLA_DESC")), root.parseNewline(root.lc.String.(@id == "SANDWICHSHOP_DESC")), root.parseNewline(root.lc.String.(@id == "RENT_DESC")), root.parseNewline(root.lc.String.(@id == "SOUVENIRS_DESC")), root.parseNewline(root.lc.String.(@id == "BANANA_DESC")));
cover.useHandCursor = false;
}
public function setup(_arg1:int){
this.visible = true;
ind = _arg1;
capt.text = capts[_arg1];
desctxt.text = descs[_arg1];
ico.setUpgrade(_arg1, true);
}
public function buy(){
parent.parent.parent.Sounds = parent.parent.parent.Click_Interface1.play(0, 0, root.svol);
parent.upgradeI(ind);
this.visible = false;
}
}
}//package SummerCrazeeng_fla
Section 55
//MGCoin_68 (SummerCrazeeng_fla.MGCoin_68)
package SummerCrazeeng_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
public dynamic class MGCoin_68 extends MovieClip {
public function MGCoin_68(){
addFrameScript(0, frame1);
}
public function setm(_arg1:int){
gotoAndStop((_arg1 + 1));
}
function frame1(){
stop();
}
}
}//package SummerCrazeeng_fla
Section 56
//MGHead_67 (SummerCrazeeng_fla.MGHead_67)
package SummerCrazeeng_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
public dynamic class MGHead_67 extends MovieClip {
public var headType:int;
public function MGHead_67(){
addFrameScript(0, frame1);
}
public function setHead(_arg1:int){
headType = _arg1;
switch (_arg1){
case 0:
gotoAndStop(1);
break;
case 1:
gotoAndStop(4);
break;
};
}
function frame1(){
stop();
}
public function setState(_arg1:int){
gotoAndStop((((headType * 3) + 1) + ((_arg1 < 0)) ? 0 : _arg1));
}
}
}//package SummerCrazeeng_fla
Section 57
//MGSouvContainer_80 (SummerCrazeeng_fla.MGSouvContainer_80)
package SummerCrazeeng_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
public dynamic class MGSouvContainer_80 extends MovieClip {
public function MGSouvContainer_80(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package SummerCrazeeng_fla
Section 58
//MGSouvCoverContainer_78 (SummerCrazeeng_fla.MGSouvCoverContainer_78)
package SummerCrazeeng_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
public dynamic class MGSouvCoverContainer_78 extends MovieClip {
public var s0:MovieClip;
public function MGSouvCoverContainer_78(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package SummerCrazeeng_fla
Section 59
//MGSouvCovers_79 (SummerCrazeeng_fla.MGSouvCovers_79)
package SummerCrazeeng_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
public dynamic class MGSouvCovers_79 extends MovieClip {
public function MGSouvCovers_79(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package SummerCrazeeng_fla
Section 60
//motomotion_104 (SummerCrazeeng_fla.motomotion_104)
package SummerCrazeeng_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
public dynamic class motomotion_104 extends MovieClip {
public function motomotion_104(){
addFrameScript(0, frame1, 59, frame60, 120, frame121);
}
function frame1(){
}
function frame121(){
stop();
}
function frame60(){
parent.Delivered();
stop();
}
}
}//package SummerCrazeeng_fla
Section 61
//ongoingDeed_26 (SummerCrazeeng_fla.ongoingDeed_26)
package SummerCrazeeng_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
public dynamic class ongoingDeed_26 extends MovieClip {
public function ongoingDeed_26(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package SummerCrazeeng_fla
Section 62
//pimpaGray_153 (SummerCrazeeng_fla.pimpaGray_153)
package SummerCrazeeng_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
public dynamic class pimpaGray_153 extends MovieClip {
public function pimpaGray_153(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package SummerCrazeeng_fla
Section 63
//pimpaGreen_152 (SummerCrazeeng_fla.pimpaGreen_152)
package SummerCrazeeng_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
public dynamic class pimpaGreen_152 extends MovieClip {
public function pimpaGreen_152(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package SummerCrazeeng_fla
Section 64
//pimpaMap_151 (SummerCrazeeng_fla.pimpaMap_151)
package SummerCrazeeng_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
public dynamic class pimpaMap_151 extends MovieClip {
public var cup:MovieClip;
public var clickFunc:Function;
public var num:int;
public var pimpa:MovieClip;
public function pimpaMap_151(){
addFrameScript(0, frame1, 1, frame2);
}
public function MouseClick(_arg1){
parent.pimpaClick(num);
}
function frame1(){
cup.mouseEnabled = false;
cup.mouseChildren = false;
this.addEventListener(MouseEvent.MOUSE_OVER, MouseOver);
this.addEventListener(MouseEvent.MOUSE_OUT, MouseOut);
this.addEventListener(MouseEvent.CLICK, MouseClick);
stop();
}
function frame2(){
}
public function MouseOut(_arg1){
pimpa.gotoAndStop(1);
}
public function MouseOver(_arg1){
pimpa.gotoAndStop(2);
}
}
}//package SummerCrazeeng_fla
Section 65
//pizir_110 (SummerCrazeeng_fla.pizir_110)
package SummerCrazeeng_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
public dynamic class pizir_110 extends MovieClip {
public const FillTime:int = 900;
public var curpos:Number;
public var pmask:MovieClip;
public var t:Timer;
public var pisirFull:Boolean;
public function pizir_110(){
addFrameScript(0, frame1);
}
public function Empty(){
if (t){
t.stop();
};
pisirFull = false;
setMask(1);
}
function frame1(){
pisirFull = false;
}
public function setMask(_arg1:Number){
pmask.y = (3 + (7 * _arg1));
}
public function pisiriz(_arg1){
curpos = (curpos - (root.msBetweenCadres / FillTime));
if (curpos <= 0){
Fill();
t.stop();
} else {
setMask(curpos);
};
}
public function Fill(){
if (t){
t.stop();
};
pisirFull = true;
setMask(0);
}
public function StartFill(_arg1:Number=1){
pisirFull = false;
curpos = _arg1;
Empty();
if (t){
t.removeEventListener(TimerEvent.TIMER, pisiriz);
};
t = null;
t = new Timer(root.msBetweenCadres);
t.addEventListener(TimerEvent.TIMER, pisiriz);
t.start();
}
}
}//package SummerCrazeeng_fla
Section 66
//piziri_109 (SummerCrazeeng_fla.piziri_109)
package SummerCrazeeng_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
public dynamic class piziri_109 extends MovieClip {
public const FillTime:int = 3300;
public var counter:int;
public var FillFunc:Function;
public var ps:Array;
public var t:Timer;
public var p1:MovieClip;
public var p2:MovieClip;
public var p0:MovieClip;
public var fillin:Boolean;
public function piziri_109(){
addFrameScript(0, frame1);
}
public function pisirec(_arg1){
switch (counter){
case 0:
p0.StartFill();
break;
case 1:
p0.Fill();
p1.StartFill();
break;
case 2:
p0.Fill();
p1.Fill();
p2.StartFill();
break;
default:
if (null != FillFunc){
FillFunc();
};
t.stop();
fillin = false;
break;
};
counter++;
}
public function getNum(){
return ((((p0.pisirFull) ? 1 : 0 + (p1.pisirFull) ? 1 : 0) + (p2.pisirFull) ? 1 : 0));
}
function frame1(){
ps = new Array(p0, p1, p2);
counter = 0;
}
public function setNum(_arg1:int){
var _local2:*;
if (((fillin) && ((counter <= 1)))){
return;
};
counter = (_arg1 + (fillin) ? 1 : 0);
if (fillin){
_local2 = ps[counter].curpos;
};
switch (_arg1){
case 0:
p0.Empty();
p1.Empty();
p2.Empty();
break;
case 1:
p0.Fill();
p1.Empty();
p2.Empty();
break;
case 2:
p0.Fill();
p1.Fill();
p2.Empty();
break;
case 3:
p0.Fill();
p1.Fill();
p2.Fill();
break;
};
if (fillin){
ps[counter].Empty();
ps[(counter - 1)].StartFill(_local2);
};
}
public function StartFill(){
fillin = true;
pisirec(null);
if (t){
t.removeEventListener(TimerEvent.TIMER, pisirec);
};
t = null;
t = new Timer((FillTime / 3));
t.addEventListener(TimerEvent.TIMER, pisirec);
t.start();
}
}
}//package SummerCrazeeng_fla
Section 67
//progressBar_134 (SummerCrazeeng_fla.progressBar_134)
package SummerCrazeeng_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
public dynamic class progressBar_134 extends MovieClip {
public var tmp:Number;
public var alph:Number;
public var m:MovieClip;
public var progressor:FBTimer;
public var time:Number;
public function progressBar_134(){
addFrameScript(0, frame1);
}
public function init(_arg1:int){
time = (1 / _arg1);
alph = 0;
tmp = root.timestamp();
progressor.start();
this.visible = true;
}
function frame1(){
progressor = new FBTimer(int((1000 / root.fps)), ex);
}
public function ex(_arg1:int){
alph = (alph + ((root.timestamp() - tmp) * time));
tmp = root.timestamp();
if (alph >= 1){
alph = 1;
progressor.stop();
this.visible = false;
};
m.x = ((-35 * (1 - alph)) + (-2 * alph));
}
}
}//package SummerCrazeeng_fla
Section 68
//Ratamat_118 (SummerCrazeeng_fla.Ratamat_118)
package SummerCrazeeng_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
public dynamic class Ratamat_118 extends MovieClip {
public var b0:MovieClip;
public var bTimer:FBTimer;
public var b1:MovieClip;
public var m0:MovieClip;
public var bs:MovieClip;
public var m1:MovieClip;
public var build:MovieClip;
public var matrases:Array;
public var canBuy:Boolean;
public var isOn:int;
public var buoys:Array;
public var batamatNumDeed:int;
public function Ratamat_118(){
addFrameScript(0, frame1);
}
public function grayBuy(){
canBuy = false;
build.buildSign.isGray = true;
build.buildSign.gotoAndStop(3);
}
public function unGrayBuy(){
canBuy = true;
build.buildSign.isGray = false;
build.buildSign.gotoAndStop(1);
}
public function fall(_arg1:int){
bs.y = (bs.y + 20);
m0.y = (m0.y + 20);
m1.y = (m1.y + 20);
if (bs.y >= 0){
bTimer.stop();
bs.y = 0;
m0.y = 27;
m1.y = 22;
};
}
function frame1(){
bTimer = new FBTimer(int((1000 / (root as MovieClip).fps)), fall);
build.buildSign.ico.gotoAndStop(4);
b0.visible = false;
b1.visible = false;
matrases = new Array(1, 1);
buoys = new Array(-1, -1);
batamatNumDeed = -1;
stop();
}
public function enable(){
this.visible = true;
build.visible = false;
bs.visible = true;
bs.y = 0;
m0.y = 27;
m1.y = 22;
m0.visible = true;
m1.visible = true;
}
public function buy(){
parent.Sounds = parent.Zdan_postr.play(0, 0, root.svol);
m1.y = (22 - 430);
m0.y = (27 - 430);
bs.y = -430;
m0.visible = true;
m1.visible = true;
bs.visible = true;
build.visible = false;
bTimer.start();
isOn = 1;
parent.money = (parent.money - 400);
parent.wish2xatamat[4] = 1;
parent.testBneed();
parent.updateMoney();
}
public function unbuy(){
this.visible = true;
m0.visible = false;
m1.visible = false;
bs.visible = false;
build.visible = true;
build.buildSign.price = 400;
build.buildSign.pricetxt.text = 400;
canBuy = (parent.money >= 400);
if (!canBuy){
grayBuy();
} else {
unGrayBuy();
};
}
public function disable(){
this.visible = false;
}
}
}//package SummerCrazeeng_fla
Section 69
//Ratamat_mainsym_119 (SummerCrazeeng_fla.Ratamat_mainsym_119)
package SummerCrazeeng_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
public dynamic class Ratamat_mainsym_119 extends MovieClip {
public function Ratamat_mainsym_119(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package SummerCrazeeng_fla
Section 70
//Satamat_106 (SummerCrazeeng_fla.Satamat_106)
package SummerCrazeeng_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
public dynamic class Satamat_106 extends MovieClip {
public var bTimer:FBTimer;
public var sv:MovieClip;
public var bs:MovieClip;
public var build:MovieClip;
public var ch:MovieClip;
public var satamatNumDeed:int;
public var canBuy:Boolean;
public var nums:MovieClip;
public var warrow:MovieClip;
public function Satamat_106(){
addFrameScript(0, frame1);
}
public function MouseOver(_arg1:MouseEvent):void{
bs.gotoAndStop(2);
}
public function onFillSatamat(){
parent.unsetGraySouv();
}
public function MouseUp(_arg1){
if (((!(nums.visible)) && ((sv.getNum() == 0)))){
parent.FillSatamat();
};
}
public function grayBuy(){
canBuy = false;
build.buildSign.isGray = true;
build.buildSign.gotoAndStop(3);
}
function frame1(){
bTimer = new FBTimer(int((1000 / (root as MovieClip).fps)), fall);
build.buildSign.ico.gotoAndStop(2);
warrow.mouseEnabled = false;
sv.mouseEnabled = false;
nums.mouseEnabled = false;
satamatNumDeed = -1;
bs.addEventListener(MouseEvent.MOUSE_OVER, MouseOver);
bs.addEventListener(MouseEvent.MOUSE_OUT, MouseOut);
sv.FillFunc = onFillSatamat;
bs.addEventListener(MouseEvent.CLICK, MouseUp);
ch.visible = false;
nums.visible = false;
stop();
}
public function unGrayBuy(){
canBuy = true;
build.buildSign.isGray = false;
build.buildSign.gotoAndStop(1);
}
public function fall(_arg1:int){
bs.y = (bs.y + 20);
if (bs.y >= 0){
bTimer.stop();
bs.y = 0;
sv.visible = true;
};
}
public function enable(){
this.visible = true;
build.visible = false;
bs.visible = true;
sv.visible = true;
bs.y = 0;
}
public function buy(){
parent.Sounds = parent.Zdan_postr.play(0, 0, root.svol);
bs.y = -430;
bs.visible = true;
build.visible = false;
bTimer.start();
isOn = 1;
parent.money = (parent.money - 200);
parent.wish2xatamat[3] = 1;
parent.testBneed();
parent.updateMoney();
}
public function MouseOut(_arg1:MouseEvent):void{
bs.gotoAndStop(1);
}
public function unbuy(){
this.visible = true;
bs.visible = false;
sv.visible = false;
build.visible = true;
build.buildSign.price = 200;
canBuy = (parent.money >= 200);
if (!canBuy){
grayBuy();
} else {
unGrayBuy();
};
}
public function setNum(_arg1:int){
if (0 >= _arg1){
ch.visible = false;
nums.visible = false;
} else {
ch.visible = true;
nums.visible = true;
nums.setNum(_arg1);
};
}
public function disable(){
this.visible = false;
}
}
}//package SummerCrazeeng_fla
Section 71
//Satamat_mainsym_107 (SummerCrazeeng_fla.Satamat_mainsym_107)
package SummerCrazeeng_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
public dynamic class Satamat_mainsym_107 extends MovieClip {
public function Satamat_mainsym_107(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package SummerCrazeeng_fla
Section 72
//sea_100 (SummerCrazeeng_fla.sea_100)
package SummerCrazeeng_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
public dynamic class sea_100 extends MovieClip {
public const cadrT:int = 120;
public var seaCT:Array;
public var Sanim:animat;
public var seaNC:Array;
public var m:MovieClip;
public var w:MovieClip;
public function sea_100(){
addFrameScript(0, frame1);
}
function frame1(){
w.mask = m;
seaCT = new Array(cadrT, cadrT, cadrT, cadrT, cadrT, cadrT, cadrT, cadrT, cadrT, cadrT, cadrT, cadrT, cadrT, cadrT, cadrT, cadrT);
seaNC = new Array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16);
Sanim = new animat(MovieClip(w), seaCT, seaNC);
Sanim.PlayAnim(0);
}
}
}//package SummerCrazeeng_fla
Section 73
//seaPart_101 (SummerCrazeeng_fla.seaPart_101)
package SummerCrazeeng_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
public dynamic class seaPart_101 extends MovieClip {
public function seaPart_101(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package SummerCrazeeng_fla
Section 74
//shes_clear_89 (SummerCrazeeng_fla.shes_clear_89)
package SummerCrazeeng_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
public dynamic class shes_clear_89 extends MovieClip {
public function shes_clear_89(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package SummerCrazeeng_fla
Section 75
//shes_states_88 (SummerCrazeeng_fla.shes_states_88)
package SummerCrazeeng_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
public dynamic class shes_states_88 extends MovieClip {
public function shes_states_88(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
function frame3(){
parent.hasUmbrella = true;
stop();
}
function frame1(){
stop();
}
function frame4(){
parent.hasUmbrella = true;
stop();
}
function frame2(){
parent.hasUmbrella = false;
stop();
}
}
}//package SummerCrazeeng_fla
Section 76
//showup_159 (SummerCrazeeng_fla.showup_159)
package SummerCrazeeng_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
public dynamic class showup_159 extends MovieClip {
public var xtxt:TextField;
public function showup_159(){
addFrameScript(0, frame1);
}
public function setUpgrade(_arg1:int, _arg2:Boolean){
gotoAndStop((_arg1 + 1));
switch (_arg1){
case 0:
if (_arg2){
xtxt.text = "x2";
} else {
xtxt.text = "x1";
};
break;
case 1:
xtxt.text = "x3";
break;
case 2:
xtxt.text = "x2";
break;
case 3:
xtxt.text = "x3";
break;
case 4:
xtxt.text = "x1";
break;
};
}
function frame1(){
stop();
}
}
}//package SummerCrazeeng_fla
Section 77
//smileBar_142 (SummerCrazeeng_fla.smileBar_142)
package SummerCrazeeng_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
public dynamic class smileBar_142 extends MovieClip {
public const swidth:Number = 92;
public var Smile1:Array;
public var pop:int;
public var SmileNotZakaz:Array;
public var smiles:Array;
public var Smile2:Array;
public var snum:int;
public var smilesTotal:int;
public function smileBar_142(){
addFrameScript(0, frame1);
}
public function AddSmile(){
var _local1:int;
var _local2:int;
smiles[snum].gotoAndStop(1);
_local1 = (snum - 1);
while (_local1 >= 0) {
swapChildren(smiles[_local1], smiles[(_local1 + 1)]);
_local1--;
};
_local2 = parent.levels[parent.curlevel].popularity;
snum++;
if (snum > (Smile2[_local2] - Smile1[_local2])){
snum = 0;
InitSmiles((Smile2[(_local2 + 1)] - Smile1[(_local2 + 1)]));
parent.levels[parent.curlevel].popularity++;
if (parent.goalnum == 1){
parent.goalBar.updateGoals();
} else {
parent.goalstate.peoples++;
};
parent.pTotalTxt.text = parent.levels[parent.curlevel].popularity;
};
}
function frame1(){
Smile1 = new Array();
Smile2 = new Array();
SmileNotZakaz = new Array();
Smile1[3] = 0;
Smile2[3] = 11;
Smile1[4] = 11;
Smile2[4] = 29;
Smile1[5] = 29;
Smile2[5] = 51;
Smile1[6] = 51;
Smile2[6] = 80;
Smile1[7] = 80;
Smile2[7] = 116;
Smile1[8] = 116;
Smile2[8] = 156;
Smile1[9] = 156;
Smile2[9] = 196;
Smile1[10] = 196;
Smile2[10] = 236;
SmileNotZakaz[3] = 7;
SmileNotZakaz[4] = 13;
SmileNotZakaz[5] = 20;
SmileNotZakaz[6] = 22;
SmileNotZakaz[7] = 22;
SmileNotZakaz[8] = 22;
SmileNotZakaz[9] = 22;
SmileNotZakaz[10] = 22;
smiles = new Array();
snum = 0;
smilesTotal = 11;
pop = parent.levels[parent.curlevel].popularity;
InitSmiles((Smile2[pop] - Smile1[pop]));
}
public function InitSmiles(_arg1:int, _arg2:int=0){
var _local3:int;
smilesTotal = _arg1;
_local3 = (smiles.length - 1);
while (_local3 >= 0) {
removeChild(smiles.pop());
_local3--;
};
_local3 = smilesTotal;
while (_local3 >= 0) {
smiles[_local3] = addChild(new smile_green());
smiles[_local3].x = ((_local3 * swidth) / smilesTotal);
smiles[_local3].gotoAndStop(2);
_local3--;
};
snum = 0;
_local3 = 0;
while (_local3 < _arg2) {
AddSmile();
_local3++;
};
}
public function RemoveSmile(){
var _local1:int;
var _local2:int;
snum--;
if (snum >= 0){
smiles[snum].gotoAndStop(2);
_local1 = 0;
while (_local1 <= (snum - 1)) {
swapChildren(smiles[_local1], smiles[(_local1 + 1)]);
_local1++;
};
} else {
_local2 = parent.levels[parent.curlevel].popularity;
if (_local2 == 3){
snum = 0;
} else {
_local2--;
InitSmiles((Smile2[_local2] - Smile1[_local2]), (Smile2[_local2] - Smile1[_local2]));
parent.levels[parent.curlevel].popularity--;
parent.pTotalTxt.text = parent.levels[parent.curlevel].popularity;
};
};
}
}
}//package SummerCrazeeng_fla
Section 78
//smileys_15 (SummerCrazeeng_fla.smileys_15)
package SummerCrazeeng_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
public dynamic class smileys_15 extends MovieClip {
public const smileShift:int = 6;
public const smileFade:int = 12333;
public var timerOfDeath:Timer;
public var DeathCounter:int;
public var smilesNum:int;
public var s1:smile_green;
public var s0:smile_green;
public var s2:smile_green;
public var s3:smile_green;
public var sposY:Array;
public var red:MovieClip;
public var smilesTotal:int;
public var timerOfSorrow:Timer;
public var smileSyms:Array;
public var timerOfDoom:Timer;
public var hasUm:Boolean;
public function smileys_15(){
addFrameScript(0, frame1);
}
public function resumeSmileys(){
timerOfDoom.start();
}
public function getNum(){
return (smilesNum);
}
public function Death(_arg1){
var _local2:int;
if (parent.parent.parent != null){
parent.parent.parent.parent.sb.RemoveSmile();
} else {
timerOfDeath.stop();
};
DeathCounter++;
_local2 = parent.parent.parent.parent.levels[parent.parent.parent.parent.curlevel].popularity;
if (DeathCounter == parent.parent.parent.parent.sb.SmileNotZakaz[_local2]){
DeathCounter = 0;
timerOfDeath.stop();
parent.parent.parent.parent.userDied(parent.parent.ind);
};
}
function frame1(){
timerOfDoom = new Timer(smileFade);
timerOfDoom.addEventListener(TimerEvent.TIMER, Sorrow);
timerOfSorrow = new Timer(50, 11);
timerOfSorrow.addEventListener(TimerEvent.TIMER, Anger);
smilesTotal = 3;
smilesNum = 3;
sposY = new Array();
red.visible = false;
smileSyms = new Array(s0, s1, s2, s3);
timerOfDeath = new Timer(50);
timerOfDeath.addEventListener(TimerEvent.TIMER, Death);
DeathCounter = 0;
}
public function PauseSmileys(){
timerOfDoom.stop();
timerOfSorrow.stop();
timerOfDeath.stop();
}
public function StopSmileys(){
timerOfDoom.reset();
timerOfSorrow.reset();
timerOfDeath.reset();
}
public function unsetUmbrella(){
if (!hasUm){
return;
};
if (red.visible){
return;
};
hasUm = false;
smilesNum--;
s0.y = -11;
s1.y = -22;
s2.y = -33;
s3.y = -44;
s3.visible = false;
if (0 > smilesNum){
Sorrow(null);
return;
};
smileSyms[smilesNum].gotoAndStop(2);
}
public function setUmbrella(){
if (hasUm){
return;
};
if (red.visible){
return;
};
hasUm = true;
smilesNum++;
s3.visible = true;
s0.y = (-11 + smileShift);
s1.y = (-22 + smileShift);
s2.y = (-33 + smileShift);
s3.y = (-44 + smileShift);
s3.gotoAndStop(2);
smileSyms[(smilesNum - 1)].gotoAndStop(1);
}
public function InitSmileys(_arg1:Boolean):void{
hasUm = _arg1;
if (_arg1){
s0.y = (-11 + smileShift);
s1.y = (-22 + smileShift);
s2.y = (-33 + smileShift);
s3.y = (-44 + smileShift);
} else {
s0.y = -11;
s1.y = -22;
s2.y = -33;
s3.y = -44;
};
s3.visible = _arg1;
smilesTotal = (_arg1) ? 4 : 3;
s0.gotoAndStop(1);
s1.gotoAndStop(1);
s2.gotoAndStop(1);
s3.gotoAndStop(1);
smilesNum = smilesTotal;
timerOfDoom.start();
}
public function Sorrow(_arg1){
var eventOfDoom = _arg1;
switch (smilesNum){
case 4:
s3.gotoAndStop(2);
break;
case 3:
s2.gotoAndStop(2);
break;
case 2:
s1.gotoAndStop(2);
break;
case 1:
s0.gotoAndStop(2);
break;
default:
if (red.visible){
return;
};
timerOfDoom.stop();
parent.ts.visible = false;
parent.ch.visible = false;
parent.nums.visible = false;
red.visible = true;
s0.visible = false;
s1.visible = false;
s2.visible = false;
s3.visible = false;
parent.but.visible = false;
try {
parent.parent.parent.parent.startLeaveBeach(parent.parent.ind);
parent.parent.parent.parent.userDied(parent.parent.ind);
} catch(e) {
};
timerOfSorrow.start();
if (null != timerOfDeath){
timerOfDeath.start();
};
break;
};
smilesNum--;
}
public function Anger(_arg1){
red.alpha = (red.alpha - 0.05);
if (red.alpha < 0.1){
red.visible = false;
timerOfSorrow.reset();
};
}
}
}//package SummerCrazeeng_fla
Section 79
//soundCheck_167 (SummerCrazeeng_fla.soundCheck_167)
package SummerCrazeeng_fla {
import flash.display.*;
import flash.text.*;
public dynamic class soundCheck_167 extends MovieClip {
public var stxt:TextField;
public var cb:MovieClip;
}
}//package SummerCrazeeng_fla
Section 80
//soundcont_97 (SummerCrazeeng_fla.soundcont_97)
package SummerCrazeeng_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
public dynamic class soundcont_97 extends MovieClip {
public function soundcont_97(){
addFrameScript(1, frame2);
}
function frame2(){
stop();
}
}
}//package SummerCrazeeng_fla
Section 81
//startScreen_164 (SummerCrazeeng_fla.startScreen_164)
package SummerCrazeeng_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
public dynamic class startScreen_164 extends MovieClip {
public var dloadbut:MovieClip;
public var snd:MovieClip;
public var cover:SimpleButton;
public var logo:Sprite;
public var playbut:MovieClip;
public var mus:MovieClip;
public var quitbut:MovieClip;
public var dloadHl:MovieClip;
public function startScreen_164(){
addFrameScript(0, frame1);
}
public function showMap(){
parent.sendStart();
parent.showMap();
}
function frame1(){
if ((((logo == null)) && (!((root.logoBMP == null))))){
logo = new Sprite();
logo.addChild(root.logoBMP);
this.addChild(logo);
logo.x = parent.logoX;
logo.y = parent.logoY;
};
dloadHl.visible = (dloadbut.visible = (root.alawar_f as Boolean));
quitbut.visible = !((parent.close_f == ""));
playbut.capt.height = 19;
playbut.capt.text = root.lc.String.(@id == "PLAY");
playbut.clickFunc = showMap;
quitbut.capt.text = root.lc.String.(@id == "EXIT");
quitbut.clickFunc = parent.globalClose;
dloadbut.capt.text = root.parseNewline(root.lc.String.(@id == "DOWNLOAD"));
dloadbut.clickFunc = parent.Download;
snd.stxt.text = root.lc.String.(@id == "SOUND");
snd.cb.clickFunc = parent.setSound;
snd.cb.checked = true;
snd.cb.V.visible = true;
mus.stxt.text = root.lc.String.(@id == "MUSIC");
mus.cb.clickFunc = parent.setMusic;
mus.cb.checked = true;
mus.cb.V.visible = true;
cover.useHandCursor = false;
}
}
}//package SummerCrazeeng_fla
Section 82
//thoughtBut_14 (SummerCrazeeng_fla.thoughtBut_14)
package SummerCrazeeng_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
public dynamic class thoughtBut_14 extends MovieClip {
public function thoughtBut_14(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package SummerCrazeeng_fla
Section 83
//thoughtButUp_24 (SummerCrazeeng_fla.thoughtButUp_24)
package SummerCrazeeng_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
public dynamic class thoughtButUp_24 extends MovieClip {
public function thoughtButUp_24(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package SummerCrazeeng_fla
Section 84
//thoughtSyms_18 (SummerCrazeeng_fla.thoughtSyms_18)
package SummerCrazeeng_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
public dynamic class thoughtSyms_18 extends MovieClip {
public var ent:MovieClip;
public var water:MovieClip;
public var butt:MovieClip;
public function thoughtSyms_18(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package SummerCrazeeng_fla
Section 85
//transport_103 (SummerCrazeeng_fla.transport_103)
package SummerCrazeeng_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
public dynamic class transport_103 extends MovieClip {
public var deliveryTimer:Timer;
public var motion:MovieClip;
public function transport_103(){
addFrameScript(0, frame1);
}
public function StartDelivery(){
parent.Sounds = parent.Moto_start.play(0, 0, root.svol);
deliveryTimer.start();
Move();
}
public function Delivered(){
deliveryTimer.stop();
parent.DoDelivery();
}
function frame1(){
deliveryTimer = new Timer(int(10000));
deliveryTimer.addEventListener(TimerEvent.TIMER, Move);
}
public function Move(_arg1=null){
parent.Sounds = parent.Moto_finish.play(0, 0, root.svol);
motion.play();
}
}
}//package SummerCrazeeng_fla
Section 86
//umbrella_48 (SummerCrazeeng_fla.umbrella_48)
package SummerCrazeeng_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
public dynamic class umbrella_48 extends MovieClip {
public var stands:Boolean;
public var ind:int;
public function umbrella_48(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
stands = true;
this.addEventListener(MouseEvent.MOUSE_OVER, MouseOver);
this.addEventListener(MouseEvent.MOUSE_OUT, MouseOut);
this.addEventListener(MouseEvent.CLICK, Click);
}
public function Click(_arg1:MouseEvent=null):void{
if (parent.parent.hints[14]){
return;
};
if (stands){
parent.parent.Sounds = parent.parent.Zont_take.play(0, 0, root.svol);
parent.parent.uposs[ind] = -1;
stands = false;
gotoAndStop(3);
startDrag();
x = (root.mouseX - 34);
y = (root.mouseY - (height * 0.5));
if (parent.getChildIndex(parent.parent.ummc[ind]) < parent.getChildIndex(parent.parent.ummc[(1 - ind)])){
parent.swapChildren(parent.parent.ummc[ind], parent.parent.ummc[(1 - ind)]);
};
parent.setChildIndex(this, (parent.numChildren - 1));
Mouse.hide();
} else {
if (!stands){
parent.parent.Sounds = parent.parent.Zont_put.play(0, 0, root.svol);
Mouse.show();
stands = true;
gotoAndStop(2);
stopDrag();
parent.parent.setUmbrella(ind);
};
};
}
public function MouseOut(_arg1:MouseEvent):void{
if (stands){
gotoAndStop(1);
};
}
public function MouseOver(_arg1:MouseEvent):void{
if (stands){
gotoAndStop(2);
};
}
}
}//package SummerCrazeeng_fla
Section 87
//Warehouse_128 (SummerCrazeeng_fla.Warehouse_128)
package SummerCrazeeng_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
public dynamic class Warehouse_128 extends MovieClip {
public var w1:MovieClip;
public var w2:MovieClip;
public function Warehouse_128(){
addFrameScript(0, frame1);
}
function frame1(){
this.addEventListener(MouseEvent.MOUSE_OVER, MouseOver);
this.addEventListener(MouseEvent.MOUSE_OUT, MouseOut);
this.addEventListener(MouseEvent.CLICK, Click);
stop();
}
public function Click(_arg1:MouseEvent=null):void{
if (!parent.delivering){
parent.Sounds = parent.Click_Interface1.play(0, 0, root.svol);
parent.minigame = parent.addChild(new Order());
parent.globalPause();
};
}
public function MouseOut(_arg1:MouseEvent):void{
gotoAndStop(1);
}
public function MouseOver(_arg1:MouseEvent):void{
gotoAndStop(2);
}
}
}//package SummerCrazeeng_fla
Section 88
//Watamat_122 (SummerCrazeeng_fla.Watamat_122)
package SummerCrazeeng_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
public dynamic class Watamat_122 extends MovieClip {
public var av:MovieClip;
public var sv:MovieClip;
public var ch:MovieClip;
public var dnum:int;
public var nums:MovieClip;
public var warrow:MovieClip;
public var watamatNumDeed:int;
public function Watamat_122(){
addFrameScript(0, frame1);
}
public function MouseOver(_arg1:MouseEvent):void{
av.gotoAndStop(2);
}
public function MouseUp(_arg1=null){
if (((!(nums.visible)) && ((sv.getNum() < 3)))){
parent.Sounds = parent.Click_Interface1.play(0, 0, root.svol);
parent.FillWatamat();
} else {
if (nums.visible){
parent.cancelDeed(dnum);
};
};
}
function frame1(){
av.addEventListener(MouseEvent.MOUSE_OVER, MouseOver);
warrow.mouseEnabled = false;
sv.mouseEnabled = false;
nums.mouseEnabled = false;
ch.mouseEnabled = false;
watamatNumDeed = -1;
sv.FillFunc = onFillWatamat;
av.addEventListener(MouseEvent.MOUSE_OUT, MouseOut);
av.addEventListener(MouseEvent.CLICK, MouseUp);
ch.visible = false;
nums.visible = false;
stop();
}
public function MouseOut(_arg1:MouseEvent):void{
av.gotoAndStop(1);
}
public function setNum(_arg1:int){
dnum = _arg1;
if (0 >= _arg1){
ch.visible = false;
nums.visible = false;
} else {
ch.visible = true;
nums.visible = true;
nums.setNum(_arg1);
};
}
public function onFillWatamat(){
parent.unsetGrayWater();
}
}
}//package SummerCrazeeng_fla
Section 89
//watamatArrow_112 (SummerCrazeeng_fla.watamatArrow_112)
package SummerCrazeeng_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
public dynamic class watamatArrow_112 extends MovieClip {
public const xDisp:Number = 7;
public const yDisp:Number = -10;
public var Wtimer:Timer;
public var wa:MovieClip;
public var waPhase:Number;
public function watamatArrow_112(){
addFrameScript(0, frame1);
}
public function Wpdate(_arg1){
waPhase = (waPhase + (4 * root.dt));
wa.x = ((1 - Math.cos(waPhase)) * xDisp);
wa.y = ((1 - Math.cos(waPhase)) * yDisp);
}
function frame1(){
wa.visible = false;
waPhase = 0;
}
public function ArrowOn(){
wa.visible = true;
if (Wtimer){
Wtimer.removeEventListener(TimerEvent.TIMER, Wpdate);
};
Wtimer = null;
Wtimer = new Timer(int((1000 / root.fps)));
Wtimer.addEventListener(TimerEvent.TIMER, Wpdate);
Wtimer.start();
}
public function ArrowOff(){
wa.visible = false;
if (Wtimer){
Wtimer.removeEventListener(TimerEvent.TIMER, Wpdate);
};
if (Wtimer){
Wtimer.stop();
};
}
}
}//package SummerCrazeeng_fla
Section 90
//wereItems_86 (SummerCrazeeng_fla.wereItems_86)
package SummerCrazeeng_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
public dynamic class wereItems_86 extends MovieClip {
public function wereItems_86(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package SummerCrazeeng_fla
Section 91
//winMasha_91 (SummerCrazeeng_fla.winMasha_91)
package SummerCrazeeng_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
public dynamic class winMasha_91 extends MovieClip {
public var mas:Bitmap;
public var done:Boolean;
public function winMasha_91(){
addFrameScript(0, frame1);
}
function frame1(){
if (!done){
done = true;
if (root.End_levelpng != null){
mas = this.addChild(new Bitmap(root.End_levelpng.bitmapData.clone()));
mas.x = int(((226 - mas.width) * 0.5));
} else {
mas = this.addChild(new Bitmap(new pngEnd_level(0, 0)));
};
};
}
}
}//package SummerCrazeeng_fla
Section 92
//woman_cadres_94 (SummerCrazeeng_fla.woman_cadres_94)
package SummerCrazeeng_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
public dynamic class woman_cadres_94 extends MovieClip {
public function woman_cadres_94(){
addFrameScript(0, frame1, 16, frame17, 17, frame18, 32, frame33, 33, frame34, 48, frame49, 64, frame65, 78, frame79, 88, frame89, 94, frame95, 100, frame101, 108, frame109, 116, frame117);
}
function frame65(){
}
function frame79(){
}
function frame89(){
}
function frame95(){
}
function frame18(){
}
function frame1(){
stop();
}
function frame109(){
}
function frame17(){
}
function frame101(){
}
function frame117(){
}
function frame34(){
}
function frame33(){
}
function frame49(){
}
}
}//package SummerCrazeeng_fla
Section 93
//animat (animat)
package {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
public class animat {
public var N:int;
private var S:uint;
private var T:Timer;
public var mc:MovieClip;
public var CN:Array;
private var p:Boolean;
public var CT:Array;
public var NA:int;
public function animat(_arg1:MovieClip, _arg2:Array, _arg3:Array){
var _local4:uint;
var _local5:int;
super();
S = _arg3.length;
NA = 0;
mc = _arg1;
p = false;
N = 0;
CT = new Array();
CN = new Array();
CT[NA] = new Array();
CN[NA] = new Array();
_local5 = 0;
while (_local5 < S) {
CT[NA][_local5] = _arg2[_local5];
CN[NA][_local5] = _arg3[_local5];
_local5++;
};
}
public function PlayAnim(_arg1:int){
NA = _arg1;
S = Math.min(CT[NA].length, CN[NA].length);
Play(0);
}
private function update(_arg1:TimerEvent=null){
if (p){
N = ((N + 1) % S);
mc.gotoAndStop(CN[NA][N]);
T.removeEventListener(TimerEvent.TIMER, update);
T = null;
T = new Timer(CT[NA][N], 1);
T.addEventListener(TimerEvent.TIMER, update);
T.start();
};
}
public function Resume(){
if (!p){
N = ((N + 1) % S);
p = true;
Play(N);
};
}
public function Play(_arg1:int){
p = true;
N = _arg1;
mc.gotoAndStop(CN[NA][N]);
if (T){
T.stop();
T.removeEventListener(TimerEvent.TIMER, update);
};
T = null;
T = new Timer(CT[NA][N], 1);
T.addEventListener(TimerEvent.TIMER, update);
T.start();
}
public function Pause(){
p = false;
if (T != null){
T.removeEventListener(TimerEvent.TIMER, update);
T.stop();
T = null;
};
}
public function Stop(){
p = false;
N = 0;
if (T){
T.stop();
T.removeEventListener(TimerEvent.TIMER, update);
};
T = null;
}
public function LoadAnim(_arg1:Array, _arg2:Array, _arg3:int){
var _local4:int;
CT[_arg3] = new Array();
CN[_arg3] = new Array();
_local4 = 0;
while (_local4 < _arg2.length) {
CT[_arg3][_local4] = _arg1[_local4];
CN[_arg3][_local4] = _arg2[_local4];
_local4++;
};
}
}
}//package
Section 94
//Avtomat_0 (Avtomat_0)
package {
import flash.media.*;
public dynamic class Avtomat_0 extends Sound {
}
}//package
Section 95
//Banan_0 (Banan_0)
package {
import flash.media.*;
public dynamic class Banan_0 extends Sound {
}
}//package
Section 96
//butterPiece0 (butterPiece0)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
public dynamic class butterPiece0 extends MovieClip {
public var hl:MovieClip;
public function butterPiece0(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8, 8, frame9, 9, frame10);
}
function frame10(){
hl.visible = false;
}
function frame3(){
hl.visible = false;
}
function frame6(){
hl.visible = false;
}
function frame7(){
hl.visible = false;
}
function frame1(){
hl.visible = false;
stop();
}
function frame4(){
hl.visible = false;
}
function frame5(){
hl.visible = false;
}
function frame9(){
hl.visible = false;
}
function frame8(){
hl.visible = false;
}
function frame2(){
hl.visible = false;
}
}
}//package
Section 97
//Buyer (Buyer)
package {
import flash.display.*;
public class Buyer {
public var swimsRight:Boolean;
public var nextpos:vec2i;
public var shift:Number;
public var swimAlph:Number;
public var VhodPlaceNom:int;
public var buyerType:int;
public var processingZadanie:Boolean;
public var LastMGResult:int;
public var mc:MovieClip;
public var TimeOnBeach:Number;
public var TimeWantWater:Number;
public var BonusMiniGame:int;
public var tu:Function;
public var zind:int;
public var OrderNumber:int;
public var ZakazTime:Number;
public var leaveTime:Number;
public var BonusZakaz:Number;
public var ZakazWorking:Boolean;
public var TimeDejstvie:Number;
public var InBanan:Boolean;
public var nextWish:int;
public var ZakazOnKreslo:Number;
public var Zakaz:int;
public var BananPlaceNom:int;
public var pathI:int;
public var speed:Number;
public var SuvenirShopPlaceNom:int;
public var WithShezlong:Boolean;
public var Way:Array;
public var SmilePos:Array;
public var pos:vec2i;
public var grayable:Boolean;
public var NSmile:int;
public var swimming:Boolean;
public var ind:int;
public var deed:int;
public var BichPlaceNom2:int;
public var dirX:int;
public var dirY:int;
public var utimer:FBTimer;// = null
public var State:int;
public var KresloNom:int;
public var BichPlaceNom:int;
public var MaxTimeDejstvie:Number;
public var MaxTimeOnBich:Number;
public function Buyer(){
utimer = null;
super();
deed = 4;
swimming = false;
swimAlph = 0;
}
public function Update(){
TimeOnBeach = (TimeOnBeach + root.dt);
switch (State){
case 0:
if ((((((Zakaz == 0)) || ((deed == 4)))) || ((((((deed == 0)) && ((TimeWantWater > 0)))) && ((TimeWantWater < 3)))))){
ZakazTime = (ZakazTime + root.dt);
} else {
ZakazTime = 0;
};
break;
case 1:
break;
case 2:
break;
};
}
public function resumeTimer(){
if (null != utimer){
utimer.resume();
};
}
public function StartTimer(_arg1:Function, _arg2:int){
tu = _arg1;
if (utimer){
utimer.del();
};
utimer = null;
utimer = new FBTimer(_arg2, ut, ind, 1);
utimer.start();
}
public function stopTimer(){
if (null != utimer){
utimer.stop();
utimer = null;
};
}
private function ut(_arg1){
utimer.del();
utimer = null;
tu(ind);
}
public function pauseTimer(){
if (null != utimer){
utimer.pause();
};
}
}
}//package
Section 98
//Click_Interface (Click_Interface)
package {
import flash.media.*;
public dynamic class Click_Interface extends Sound {
}
}//package
Section 99
//Comb (Comb)
package {
import flash.media.*;
public dynamic class Comb extends Sound {
}
}//package
Section 100
//comics (comics)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
public dynamic class comics extends MovieClip {
public var okbut:MovieClip;
public var yo;
public var done:Boolean;
public function comics(){
addFrameScript(0, frame1);
}
function frame1(){
if (((!(done)) && (!((root.Komiks_01jpg == null))))){
done = true;
yo = this.addChild(new Bitmap(root.Komiks_01jpg.bitmapData.clone()));
swapChildren(okbut, yo);
};
okbut.capt.text = root.lc.String.(@id == "NEXT");
okbut.clickFunc = parent.endComix;
}
}
}//package
Section 101
//digitFly (digitFly)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
public dynamic class digitFly extends MovieClip {
public var dg:MovieClip;
public function digitFly(){
addFrameScript(0, frame1, 19, frame20, 29, frame30);
}
function frame1(){
}
function frame30(){
stop();
}
function frame20(){
stop();
}
public function StartFade(){
play();
}
}
}//package
Section 102
//End_leve (End_leve)
package {
import flash.media.*;
public dynamic class End_leve extends Sound {
}
}//package
Section 103
//FadeIn (FadeIn)
package {
import flash.events.*;
import flash.media.*;
import flash.utils.*;
public class FadeIn {
private var A:Number;
private var delt:int;
public var vol:SoundTransform;
private var dt:Number;
private var S:SoundChannel;
private var T:Timer;
public var mv:Number;
private var Plus:int;
public function FadeIn(_arg1:SoundChannel, _arg2:int=1000, _arg3:int=20){
mv = 1;
S = _arg1;
A = 0;
T = new Timer((_arg2 / _arg3), _arg3);
dt = (1 / _arg3);
vol = new SoundTransform(0, 0);
T.addEventListener(TimerEvent.TIMER, fade);
}
public function Play(_arg1:int=-1, _arg2:int=20){
if (_arg1 == -1){
Plus = 1;
T.start();
S.soundTransform = vol;
};
}
public function setMute(_arg1:Boolean){
mv = (_arg1) ? 1 : 0;
vol.volume = (A * mv);
S.soundTransform = vol;
}
public function Stop(){
Plus = -1;
T.start();
S.soundTransform = vol;
}
private function fade(_arg1){
A = (A + (dt * Plus));
if ((((A * 2) - 1) * Plus) >= 1){
T.stop();
A = ((Plus * 0.5) + 0.5);
};
vol.volume = (A * mv);
S.soundTransform = vol;
}
}
}//package
Section 104
//FBTimer (FBTimer)
package {
import flash.events.*;
import flash.utils.*;
public class FBTimer {
private var interval:int;
public var F:Function;
public var dif:Number;
public var L:Number;
private var T:Timer;
public var ind:int;
public var mn:int;
public var ticking:Boolean;
public var n:int;
public function FBTimer(_arg1:int, _arg2:Function, _arg3:int=-1, _arg4:int=0){
ind = _arg3;
interval = _arg1;
T = new Timer(interval);
T.addEventListener(TimerEvent.TIMER, TF);
F = _arg2;
n = 0;
ticking = false;
mn = ((_arg4 == 0)) ? 10000000000 : _arg4;
}
public function stop():void{
ticking = false;
if (null != T){
T.stop();
};
}
public function del():void{
if (T != null){
T.removeEventListener(TimerEvent.TIMER, TF);
T.removeEventListener(TimerEvent.TIMER, RF);
T.stop();
T = null;
};
}
public function Delete(){
T.removeEventListener(TimerEvent.TIMER, TF);
T.removeEventListener(TimerEvent.TIMER, RF);
T.stop();
T = null;
}
public function reset():void{
T.stop();
n = 0;
}
private function timestamp():Number{
var _local1:Date;
_local1 = new Date();
return (_local1.getTime());
}
public function start():void{
ticking = true;
L = timestamp();
if (null != T){
T.start();
} else {
resume();
};
}
public function resume():void{
if (!ticking){
return;
};
if (dif > 0){
T.start();
} else {
RF(null);
};
}
private function TF(_arg1):void{
L = timestamp();
F(ind);
n++;
if ((((n >= mn)) && (!((T == null))))){
T.stop();
ticking = false;
};
}
private function RF(_arg1){
L = timestamp();
F(ind);
n++;
T = null;
T = new Timer(interval);
T.addEventListener(TimerEvent.TIMER, TF);
T.start();
if (n >= mn){
T.stop();
ticking = false;
};
}
public function pause():void{
if (!ticking){
return;
};
dif = (interval - (timestamp() - L));
if (null != T){
T.removeEventListener(TimerEvent.TIMER, TF);
T.stop();
T = null;
};
if (dif > 0){
T = new Timer(dif, 1);
T.addEventListener(TimerEvent.TIMER, RF);
};
}
}
}//package
Section 105
//Goa (Goa)
package {
import flash.media.*;
public dynamic class Goa extends Sound {
}
}//package
Section 106
//Goals (Goals)
package {
public class Goals {
public var butter:int;
public var peoples:int;
public var water:int;
public var money:int;
public var master:int;
public var expertTime:int;
public var masterTime:int;
public var expert:int;
public var swims:int;
public var bananas:int;
public var fields:Array;
public var comp:int;
public var souv:int;
public function Goals(){
water = 0;
butter = 0;
souv = 0;
bananas = 0;
swims = 0;
peoples = 0;
money = 0;
expert = 0;
master = 0;
comp = 0;
masterTime = 0;
expertTime = 0;
}
public function fieldByNum(_arg1:int):int{
switch (_arg1){
case 1:
return (peoples);
case 2:
return (water);
case 3:
return (souv);
case 4:
return (butter);
case 5:
return (bananas);
case 6:
return (swims);
case 7:
return (money);
};
}
public function setField(_arg1:int, _arg2:int){
switch (_arg1){
case 1:
peoples = _arg2;
break;
case 2:
water = _arg2;
break;
case 3:
souv = _arg2;
break;
case 4:
butter = _arg2;
break;
case 5:
bananas = _arg2;
break;
case 6:
swims = _arg2;
break;
case 7:
money = _arg2;
break;
};
}
}
}//package
Section 107
//Hint_part_1 (Hint_part_1)
package {
import flash.display.*;
public dynamic class Hint_part_1 extends BitmapData {
public function Hint_part_1(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 108
//Hint_part_2 (Hint_part_2)
package {
import flash.display.*;
public dynamic class Hint_part_2 extends BitmapData {
public function Hint_part_2(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 109
//Hint_part_3 (Hint_part_3)
package {
import flash.display.*;
public dynamic class Hint_part_3 extends BitmapData {
public function Hint_part_3(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 110
//Hint_part_4 (Hint_part_4)
package {
import flash.display.*;
public dynamic class Hint_part_4 extends BitmapData {
public function Hint_part_4(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 111
//Hint_part_5 (Hint_part_5)
package {
import flash.display.*;
public dynamic class Hint_part_5 extends BitmapData {
public function Hint_part_5(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 112
//Hint_part_6 (Hint_part_6)
package {
import flash.display.*;
public dynamic class Hint_part_6 extends BitmapData {
public function Hint_part_6(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 113
//Hint_part_7 (Hint_part_7)
package {
import flash.display.*;
public dynamic class Hint_part_7 extends BitmapData {
public function Hint_part_7(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 114
//Hint_part_8 (Hint_part_8)
package {
import flash.display.*;
public dynamic class Hint_part_8 extends BitmapData {
public function Hint_part_8(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 115
//Hint_part_9 (Hint_part_9)
package {
import flash.display.*;
public dynamic class Hint_part_9 extends BitmapData {
public function Hint_part_9(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 116
//hintRotateOuter (hintRotateOuter)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
public dynamic class hintRotateOuter extends MovieClip {
public var teh:SCWindow;
public var cont:MovieClip;
public var at:FBTimer;
public var hinttxt:TextField;
public var aPhaze:Number;
public var nohints:MovieClip;
public var boxProcessed:Boolean;
public var ff:Boolean;
public var box:MovieClip;
public var hintEnd:Function;
public var ha:MovieClip;
public function hintRotateOuter(){
addFrameScript(0, frame1);
}
public function hu(_arg1:int){
box.rotor.rotation = (box.rotor.rotation + 20);
}
public function onEnd(_arg1:Boolean):void{
root.Sounds = root.Click_Interface1.play(0, 0, root.svol);
at.stop();
ha.stopArrow();
this.visible = false;
if (((!((hintEnd == null))) && (((_arg1) || (ff))))){
hintEnd();
};
}
public function SetupHint(_arg1:int, _arg2:int, _arg3:String, _arg4:Function, _arg5:int=100, _arg6:int=50, _arg7:Boolean=false, _arg8:int=-2, _arg9:int=-2, _arg10:Boolean=false){
var _local11:Array;
var _local12:int;
var _local13:int;
var _local14:int;
var _local15:int;
var _local16:int;
var _local17:int;
hintEnd = _arg4;
ff = _arg10;
_local11 = new Array(new Hint_part_1(32, 32), new Hint_part_2(32, 32), new Hint_part_3(32, 32), new Hint_part_4(32, 32), new Hint_part_5(32, 32), new Hint_part_6(32, 32), new Hint_part_7(32, 32), new Hint_part_8(32, 32), new Hint_part_9(32, 32));
_local12 = 0;
_local13 = 0;
box.rotor.rotation = 0;
box.width = _arg5;
box.height = _arg6;
box.x = _arg1;
box.y = _arg2;
ha.visible = ((!((0 == _arg5))) || (!((0 == _arg6))));
if (_arg1 < 190){
_local12 = -1;
} else {
if (_arg1 > 380){
_local12 = 1;
};
};
if (_arg2 < 143){
_local13 = -1;
} else {
if (_arg2 > 287){
_local13 = 1;
};
};
if ((((_local12 == 0)) && ((_local13 == 0)))){
_local13 = 1;
};
if (_arg7){
_local13 = -1;
_local12 = 0;
};
if (_arg8 != -2){
_local13 = _arg9;
_local12 = _arg8;
};
hinttxt.text = _arg3;
ha.SetupArrow(_local12, _local13);
ha.x = ((_arg1 - ((_local12 * _arg5) * 0.5)) - (10 * _local12));
ha.y = ((_arg2 - ((_local13 * _arg6) * 0.5)) - (10 * _local13));
_local14 = 224;
_local15 = 128;
_local16 = (((_arg1 - ((_local12 * _arg5) * 0.5)) - ((20 + (_local14 * 0.5)) * _local12)) - (_local14 * 0.5));
_local17 = (((_arg2 - ((_local13 * _arg6) * 0.5)) - ((20 + (_local15 * 0.5)) * _local13)) - (_local15 * 0.5));
hinttxt.x = (_local16 + 19);
hinttxt.y = (_local17 + 24);
nohints.x = (_local16 + 28);
nohints.y = (_local17 + 90);
if (null != teh){
teh.clear();
teh = null;
};
teh = new SCWindow(cont, _local11, _local14, _local15, _local16, _local17, 32, 32, 32, 32);
if (null == at){
at = new FBTimer(60, hu);
};
at.start();
this.visible = true;
if (null != parent.setAllHints){
nohints.ch.clickFunc = parent.setAllHints;
} else {
nohints.ch.clickFunc = parent.parent.setAllHints;
};
boxProcessed = false;
}
function frame1(){
box.addEventListener(MouseEvent.CLICK, onEndBox);
addEventListener(MouseEvent.CLICK, onEndAll);
}
public function onEndAll(_arg1:MouseEvent){
if (!boxProcessed){
onEnd(false);
};
}
public function onEndBox(_arg1:MouseEvent){
boxProcessed = true;
onEnd(true);
}
}
}//package
Section 117
//level (level)
package {
public class level {
public var totalBuyers:int;
public var goals:Goals;
public var State:int;
public var popularity:int;
public function level(_arg1:int, _arg2:int){
if (_arg1){
popularity = _arg1;
} else {
popularity = 1;
};
if (_arg2){
State = _arg2;
} else {
State = -1;
};
totalBuyers = 0;
}
}
}//package
Section 118
//man (man)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
public dynamic class man extends MovieClip {
public const dx:int = 5;
public const dy:int = -8;
public var leftNC:Array;
public var standNC:Array;
public var matrassNC:Array;
public var layNC:Array;
public var cdrs:MovieClip;
public var drinkNC:Array;
public var CT:Array;
public var co:MovieClip;
public var th:thoughts;
public var standCT:Array;
public var rightNC:Array;
public var hasUm:Boolean;
public var matrassCT:Array;
public var swimCT:Array;
public var drinkCT:Array;
public var eatNC:Array;
public var layCT:Array;
public var ondeed:MovieClip;
public var swimLNC:Array;
public var upNC:Array;
public var downNC:Array;
public var Manim:animat;
public var ind:int;
public var swimRNC:Array;
public function man(){
addFrameScript(0, frame1);
}
public function Matrass(_arg1:int):void{
if (0 == _arg1){
parent.parent.swim1.visible = true;
parent.parent.swim1.Manim.PlayAnim(1);
} else {
parent.parent.swim2.visible = true;
parent.parent.swim2.Manim.PlayAnim(1);
};
Manim.PlayAnim(10);
}
public function goRight():void{
cdrs.x = 0;
cdrs.y = 0;
th.x = 4;
th.y = -90;
Manim.PlayAnim(3);
}
public function onShez(_arg1:Boolean){
ondeed.visible = _arg1;
ondeed.gotoAndStop(1);
}
public function HideThought(){
th.visible = false;
}
public function GimmeWater(){
parent.parent.GimmeWater(ind);
}
public function GimmeButter(){
parent.parent.GimmeButter(ind);
}
public function SetWaterThought(){
th.visible = true;
th.setWater();
th.clickevent = null;
th.clickevent = GimmeWater;
if (parent.parent.watamat.sv.getNum() == 0){
th.setShade();
};
}
public function swimRight():void{
Manim.PlayAnim(8);
}
public function onSouv(_arg1:Boolean){
ondeed.visible = _arg1;
ondeed.gotoAndStop(2);
}
public function GimmeRent(){
parent.parent.GimmeRent(ind);
}
public function Drink():void{
Manim.PlayAnim(5);
}
function frame1(){
co.mouseEnabled = false;
co.mouseChildren = false;
ondeed.alpha = 0.5;
ondeed.visible = false;
ondeed.mouseEnabled = false;
cdrs.mouseEnabled = false;
stop();
}
public function swimLeft():void{
Manim.PlayAnim(9);
}
public function foo(){
}
public function SetButterThought(){
th.visible = true;
th.setButter();
th.clickevent = null;
th.clickevent = GimmeButter;
if (parent.parent.batamat.sv.getNum() == 0){
th.setShade();
};
}
public function SetRentThought1(){
th.visible = true;
th.setRent1();
th.clickevent = null;
th.clickevent = GimmeRent;
if (((!((parent.parent.ratamat.matrases[0] == 1))) && (!((parent.parent.ratamat.matrases[1] == 1))))){
th.setShade();
};
}
public function SetRentThought2(){
th.visible = true;
th.setRent2();
th.clickevent = null;
th.clickevent = GettaRent;
}
public function onSwim(_arg1:Boolean){
ondeed.visible = _arg1;
ondeed.gotoAndStop(5);
}
public function init(){
CT = new Array(110, 110, 110, 110, 110, 110, 110, 110);
upNC = new Array(2, 4, 6, 8, 10, 12, 14, 16);
downNC = new Array(50, 52, 54, 56, 58, 60, 62, 64);
rightNC = new Array(34, 36, 38, 40, 42, 44, 46, 48);
leftNC = new Array(18, 20, 22, 24, 26, 28, 30, 32);
standNC = new Array(66, 67, 68, 70, 72, 74, 76, 78);
standCT = new Array(1500, 210, 210, 210, 210, 210, 210, 310);
drinkNC = new Array(90, 91, 92, 93, 94, 95, 90);
drinkCT = new Array(100, 100, 100, 600, 100, 100, 500);
eatNC = new Array(96, 97, 98, 99, 100, 101, 96);
layNC = new Array(80, 81, 82, 83, 84, 85, 84, 83, 82, 81, 80);
layCT = new Array(200, 200, 200, 200, 200, 3000, 200, 200, 200, 200, 4000);
swimRNC = new Array(102, 103, 104, 105, 106, 107, 108, 109);
swimLNC = new Array(110, 111, 112, 113, 114, 115, 116, 117);
swimCT = new Array(110, 110, 110, 110, 110, 110, 110, 110);
matrassNC = new Array(118, 119, 120, 120, 119, 118);
matrassCT = new Array(110, 110, 110, 110, 110, 110);
Manim = new animat(cdrs, CT, upNC);
Manim.LoadAnim(CT, downNC, 1);
Manim.LoadAnim(CT, leftNC, 2);
Manim.LoadAnim(CT, rightNC, 3);
Manim.LoadAnim(standCT, standNC, 4);
Manim.LoadAnim(drinkCT, drinkNC, 5);
Manim.LoadAnim(drinkCT, eatNC, 6);
Manim.LoadAnim(layCT, layNC, 7);
Manim.LoadAnim(swimCT, swimRNC, 8);
Manim.LoadAnim(swimCT, swimLNC, 9);
Manim.LoadAnim(matrassCT, matrassNC, 10);
th.init();
th.visible = false;
}
public function goLeft():void{
cdrs.x = 0;
cdrs.y = 0;
th.x = 4;
th.y = -90;
Manim.PlayAnim(2);
}
public function GimmeSouv(){
parent.parent.GimmeSouv(ind);
}
public function Bananieren(){
parent.parent.Bananieren(ind);
}
public function Eat():void{
Manim.PlayAnim(6);
}
public function EatButter(){
th.visible = false;
th.sm.unsetUmbrella();
Eat();
}
public function SetBananThought(){
th.visible = true;
th.setBanan();
th.clickevent = null;
th.clickevent = Bananieren;
}
public function DrinkWater(){
th.visible = false;
th.sm.unsetUmbrella();
Drink();
}
public function SetEnterThought(){
th.visible = true;
th.setEnter();
th.clickevent = LemmeEnter;
}
public function Lay():void{
cdrs.x = dx;
cdrs.y = dy;
th.x = dx;
th.y = (-90 + dy);
Manim.PlayAnim(7);
ondeed.visible = false;
}
public function Wait():void{
Manim.PlayAnim(4);
}
public function SetClockThought(){
th.nums.visible = (th.ch.visible = false);
th.visible = true;
th.StartClock();
th.clickevent = null;
th.clickevent = foo;
}
public function StopSmileys(){
th.sm.StopSmileys();
}
public function goDown():void{
cdrs.x = 0;
cdrs.y = 0;
th.x = 4;
th.y = -90;
Manim.PlayAnim(1);
}
public function LemmeEnter(){
parent.parent.LemmeEnter(ind);
}
public function goUp():void{
Manim.PlayAnim(0);
}
public function SetSouvThought(){
th.visible = true;
th.setSouv();
th.clickevent = null;
th.clickevent = GimmeSouv;
if (parent.parent.satamat.sv.getNum() == 0){
th.setShade();
};
}
public function onRent(_arg1:Boolean){
ondeed.visible = _arg1;
ondeed.gotoAndStop(3);
}
public function stand():void{
Manim.PlayAnim(4);
}
public function onBanan(_arg1:Boolean){
ondeed.visible = _arg1;
ondeed.gotoAndStop(4);
}
public function GettaRent(){
parent.parent.GettaRent(ind);
}
}
}//package
Section 119
//Mashk (Mashk)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
public dynamic class Mashk extends MovieClip {
public var Manim2:animat;
public var RH:Boolean;
public var LHDown:MovieClip;
public var RHItem:int;
public var CT:Array;
public var LHI:MovieClip;
public var LHItem:int;
public var rightNC:Array;
public var RHI:MovieClip;
public var CTIdle1:Array;
public var CTIdle2:Array;
public var CTIdle3:Array;
public var NCIdle:Array;
public var LHUp:MovieClip;
public var RHUp:MovieClip;
public var LH:Boolean;
public var upNC:Array;
public var downNC:Array;
public var leftNC:Array;
public var RHDown:MovieClip;
public function Mashk(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8, 8, frame9, 9, frame10, 10, frame11, 11, frame12, 12, frame13, 13, frame14, 14, frame15, 15, frame16, 16, frame17, 17, frame18, 18, frame19, 19, frame20, 20, frame21, 21, frame22, 22, frame23, 23, frame24, 24, frame25, 25, frame26, 26, frame27, 27, frame28, 28, frame29, 29, frame30, 30, frame31, 31, frame32, 32, frame33);
}
public function goRight():void{
Manim2.PlayAnim(3);
}
function frame10(){
RHUp.visible = RH;
RHDown.visible = !(RH);
LHUp.visible = LH;
LHDown.visible = !(LH);
RHI.visible = RH;
LHI.visible = LH;
RHI.setItem(RHItem);
LHI.setItem(LHItem);
}
function frame11(){
RHUp.visible = RH;
RHDown.visible = !(RH);
LHUp.visible = LH;
LHDown.visible = !(LH);
}
function frame14(){
RHUp.visible = RH;
RHDown.visible = !(RH);
LHUp.visible = LH;
LHDown.visible = !(LH);
}
function frame15(){
RHUp.visible = RH;
RHDown.visible = !(RH);
LHUp.visible = LH;
LHDown.visible = !(LH);
}
function frame16(){
RHUp.visible = RH;
RHDown.visible = !(RH);
LHUp.visible = LH;
LHDown.visible = !(LH);
}
function frame12(){
RHUp.visible = RH;
RHDown.visible = !(RH);
LHUp.visible = LH;
LHDown.visible = !(LH);
}
function frame17(){
RHUp.visible = RH;
RHDown.visible = !(RH);
LHUp.visible = LH;
LHDown.visible = !(LH);
}
function frame18(){
RHUp.visible = RH;
RHDown.visible = !(RH);
LHUp.visible = LH;
LHDown.visible = !(LH);
RHI.visible = RH;
LHI.visible = LH;
RHI.setItem(RHItem);
LHI.setItem(LHItem);
}
function frame2(){
RHUp.visible = RH;
RHDown.visible = !(RH);
LHUp.visible = LH;
LHDown.visible = !(LH);
RHI.visible = RH;
LHI.visible = LH;
RHI.setItem(RHItem);
LHI.setItem(LHItem);
}
function frame3(){
RHUp.visible = RH;
RHDown.visible = !(RH);
LHUp.visible = LH;
LHDown.visible = !(LH);
}
function frame4(){
RHUp.visible = RH;
RHDown.visible = !(RH);
LHUp.visible = LH;
LHDown.visible = !(LH);
}
function frame5(){
RHUp.visible = RH;
RHDown.visible = !(RH);
LHUp.visible = LH;
LHDown.visible = !(LH);
}
function frame7(){
RHUp.visible = RH;
RHDown.visible = !(RH);
LHUp.visible = LH;
LHDown.visible = !(LH);
}
function frame1(){
stop();
}
function frame22(){
RHUp.visible = RH;
RHDown.visible = !(RH);
LHUp.visible = LH;
LHDown.visible = !(LH);
}
function frame24(){
RHUp.visible = RH;
RHDown.visible = !(RH);
LHUp.visible = LH;
LHDown.visible = !(LH);
}
function frame6(){
RHUp.visible = RH;
RHDown.visible = !(RH);
LHUp.visible = LH;
LHDown.visible = !(LH);
}
function frame13(){
RHUp.visible = RH;
RHDown.visible = !(RH);
LHUp.visible = LH;
LHDown.visible = !(LH);
}
function frame29(){
RHUp.visible = RH;
RHDown.visible = !(RH);
LHUp.visible = LH;
LHDown.visible = !(LH);
}
function frame23(){
RHUp.visible = RH;
RHDown.visible = !(RH);
LHUp.visible = LH;
LHDown.visible = !(LH);
}
function frame25(){
RHUp.visible = RH;
RHDown.visible = !(RH);
LHUp.visible = LH;
LHDown.visible = !(LH);
}
function frame9(){
RHUp.visible = RH;
RHDown.visible = !(RH);
LHUp.visible = LH;
LHDown.visible = !(LH);
}
function frame8(){
RHUp.visible = RH;
RHDown.visible = !(RH);
LHUp.visible = LH;
LHDown.visible = !(LH);
}
function frame21(){
RHUp.visible = RH;
RHDown.visible = !(RH);
LHUp.visible = LH;
LHDown.visible = !(LH);
}
function frame27(){
RHUp.visible = RH;
RHDown.visible = !(RH);
LHUp.visible = LH;
LHDown.visible = !(LH);
}
function frame32(){
RHUp.visible = RH;
RHDown.visible = !(RH);
LHUp.visible = LH;
LHDown.visible = !(LH);
}
public function SetRightHand():void{
RH = true;
}
function frame30(){
RHUp.visible = RH;
RHDown.visible = !(RH);
LHUp.visible = LH;
LHDown.visible = !(LH);
}
function frame33(){
RHUp.visible = RH;
RHDown.visible = !(RH);
LHUp.visible = LH;
LHDown.visible = !(LH);
}
function frame28(){
RHUp.visible = RH;
RHDown.visible = !(RH);
LHUp.visible = LH;
LHDown.visible = !(LH);
}
function frame20(){
RHUp.visible = RH;
RHDown.visible = !(RH);
LHUp.visible = LH;
LHDown.visible = !(LH);
}
function frame19(){
RHUp.visible = RH;
RHDown.visible = !(RH);
LHUp.visible = LH;
LHDown.visible = !(LH);
}
public function Resume(){
if (currentFrame != 1){
Manim2.Resume();
};
}
function frame31(){
RHUp.visible = RH;
RHDown.visible = !(RH);
LHUp.visible = LH;
LHDown.visible = !(LH);
}
function frame26(){
RHUp.visible = RH;
RHDown.visible = !(RH);
LHUp.visible = LH;
LHDown.visible = !(LH);
RHI.visible = RH;
LHI.visible = LH;
RHI.setItem(RHItem);
LHI.setItem(LHItem);
}
public function init(){
RHItem = 0;
LHItem = 0;
CT = new Array(60, 60, 60, 60, 60, 60, 60, 60);
CTIdle1 = new Array(280, 20, 10000);
CTIdle2 = new Array(2900, 100, 10000);
CTIdle3 = new Array(980, 20, 10000);
upNC = new Array(26, 27, 28, 29, 30, 31, 32, 33);
downNC = new Array(2, 3, 4, 5, 6, 7, 8, 9);
rightNC = new Array(10, 11, 12, 13, 14, 15, 16, 17);
leftNC = new Array(18, 19, 20, 21, 22, 23, 24, 25);
NCIdle = new Array(34, 1, 1);
Manim2 = new animat(MovieClip(this), CT, upNC);
Manim2.LoadAnim(CT, downNC, 1);
Manim2.LoadAnim(CT, leftNC, 2);
Manim2.LoadAnim(CT, rightNC, 3);
Manim2.LoadAnim(CTIdle1, NCIdle, 4);
Manim2.LoadAnim(CTIdle2, NCIdle, 5);
Manim2.LoadAnim(CTIdle3, NCIdle, 6);
}
public function goLeft():void{
Manim2.PlayAnim(2);
}
public function SetLeftHand():void{
RH = true;
}
public function goDown():void{
Manim2.PlayAnim(1);
}
public function goUp():void{
Manim2.PlayAnim(0);
}
public function stand():void{
Manim2.Stop();
gotoAndStop(1);
}
public function Pause(){
if (currentFrame != 1){
Manim2.Pause();
};
}
}
}//package
Section 120
//menuGoals (menuGoals)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
public dynamic class menuGoals extends MovieClip {
public var experttxt:TextField;
public var todotxt2:TextField;
public var todotxt3:TextField;
public var todotxt0:TextField;
public var baseRewardtxt:TextField;
public var teh:SCWindow;
public var okbut:MovieClip;
public var todotxt1:TextField;
public var experttimetxt:TextField;
public var cont:MovieClip;
public var ico0:MovieClip;
public var ico1:MovieClip;
public var ico3:MovieClip;
public var ico2:MovieClip;
public var numtxt2:TextField;
public var numtxt3:TextField;
public var numtxt1:TextField;
public var hint:hintRotateOuter;
public var masterRewardtxt:TextField;
public var numtxt0:TextField;
public var s:Array;
public var cover:SimpleButton;
public var forcomplettxt:TextField;
public var mastertxt:TextField;
public var expertRewardtxt:TextField;
public var mastertimetxt:TextField;
public var capt:TextField;
public function menuGoals(){
addFrameScript(0, frame1);
}
function frame1(){
s = new Array(new Window_part_1(190, 217), new Window_part_2(54, 217), new Window_part_3(190, 217), new Window_part_4(190, 54), new Window_part_5(54, 54), new Window_part_6(190, 54), new Window_part_7(190, 70), new Window_part_8(54, 70), new Window_part_9(190, 70));
teh = new SCWindow(cont, s, 488, 341, ((570 - 488) / 2), ((430 - 341) / 2));
capt.text = root.lc.String.(@id == "MENUGOALS_CAPT");
forcomplettxt.text = root.lc.String.(@id == "MENUGOALS_COMPLETE");
mastertxt.text = root.lc.String.(@id == "MENUGOALS_MASTER");
experttxt.text = root.lc.String.(@id == "MENUGOALS_EXPERT");
cover.useHandCursor = false;
}
public function hc2(){
if (parent.hints[3]){
parent.hints[3] = false;
hint.SetupHint(280, 316, parent.hdescs[3], null, 146, 63);
parent.startAction();
};
}
public function hc1(){
if (parent.hints[2]){
parent.hints[2] = false;
hint.SetupHint(386, 238, parent.hdescs[2], hc2, 146, 101);
};
}
public function hc0(){
if (parent.hints[1]){
parent.hints[1] = false;
hint.SetupHint(415, 177, parent.hdescs[1], hc1, 71, 56);
};
}
public function ShowGoals(_arg1:Goals, _arg2:Goals=null){
var icons:Array;
var txtfields:Array;
var numtxts:Array;
var goalsTotal:int;
var goals = _arg1;
var goalsNeeded = _arg2;
icons = new Array(ico0, ico1, ico2, ico3);
txtfields = new Array(todotxt0, todotxt1, todotxt2, todotxt3);
numtxts = new Array(numtxt0, numtxt1, numtxt2, numtxt3);
goalsTotal = 0;
okbut.capt.text = root.lc.String.(@id == "OK");
if (goalsNeeded == null){
okbut.clickFunc = parent.startAction;
} else {
okbut.clickFunc = parent.closeGoals;
};
ico0.visible = false;
ico1.visible = false;
ico2.visible = false;
ico3.visible = false;
if (goals.water > 0){
txtfields[goalsTotal].text = root.lc.String.(@id == "TASK_SELLWATER");
if (null == goalsNeeded){
numtxts[goalsTotal].text = goals.water;
} else {
numtxts[goalsTotal].text = ((goalsNeeded.water + "/") + goals.water);
};
icons[goalsTotal].visible = true;
icons[goalsTotal].gotoAndStop(2);
goalsTotal = (goalsTotal + 1);
};
if (goals.butter > 0){
txtfields[goalsTotal].text = root.lc.String.(@id == "TASK_SELLSAND");
if (null == goalsNeeded){
numtxts[goalsTotal].text = goals.butter;
} else {
numtxts[goalsTotal].text = ((goalsNeeded.butter + "/") + goals.butter);
};
icons[goalsTotal].visible = true;
icons[goalsTotal].gotoAndStop(4);
goalsTotal = (goalsTotal + 1);
};
if (goals.souv > 0){
txtfields[goalsTotal].text = root.lc.String.(@id == "TASK_SELLSOUV");
if (null == goalsNeeded){
numtxts[goalsTotal].text = goals.souv;
} else {
numtxts[goalsTotal].text = ((goalsNeeded.souv + "/") + goals.souv);
};
icons[goalsTotal].visible = true;
icons[goalsTotal].gotoAndStop(3);
goalsTotal = (goalsTotal + 1);
};
if (goals.bananas > 0){
txtfields[goalsTotal].text = root.lc.String.(@id == "TASK_SELLBANANA");
if (null == goalsNeeded){
numtxts[goalsTotal].text = goals.bananas;
} else {
numtxts[goalsTotal].text = ((goalsNeeded.bananas + "/") + goals.bananas);
};
icons[goalsTotal].visible = true;
icons[goalsTotal].gotoAndStop(5);
goalsTotal = (goalsTotal + 1);
};
if (goals.swims > 0){
txtfields[goalsTotal].text = root.lc.String.(@id == "TASK_SELLRENT");
if (null == goalsNeeded){
numtxts[goalsTotal].text = goals.swims;
} else {
numtxts[goalsTotal].text = ((goalsNeeded.swims + "/") + goals.swims);
};
icons[goalsTotal].visible = true;
icons[goalsTotal].gotoAndStop(6);
goalsTotal = (goalsTotal + 1);
};
if (goals.peoples > 0){
txtfields[goalsTotal].text = root.lc.String.(@id == "TASK_POPULARITY");
if (null == goalsNeeded){
numtxts[goalsTotal].text = goals.peoples;
} else {
numtxts[goalsTotal].text = ((goalsNeeded.peoples + "/") + goals.peoples);
};
icons[goalsTotal].visible = true;
icons[goalsTotal].gotoAndStop(1);
goalsTotal = (goalsTotal + 1);
};
if (goals.money > 0){
txtfields[goalsTotal].text = root.lc.String.(@id == "TASK_MONEY");
numtxts[goalsTotal].text = goals.money;
if (null == goalsNeeded){
numtxts[goalsTotal].text = goals.money;
} else {
numtxts[goalsTotal].text = ((root.money + "/") + goals.money);
};
icons[goalsTotal].visible = true;
icons[goalsTotal].gotoAndStop(7);
goalsTotal = (goalsTotal + 1);
};
baseRewardtxt.text = goals.comp.toString();
mastertimetxt.text = ((Math.floor((goals.masterTime / 60)) + ":") + (goals.masterTime % 60));
masterRewardtxt.text = goals.master.toString();
experttimetxt.text = ((Math.floor((goals.expertTime / 60)) + ":") + (goals.expertTime % 60));
expertRewardtxt.text = goals.expert.toString();
hint.visible = false;
if (parent.hints[0]){
parent.hints[0] = false;
hint.SetupHint(214, 167, parent.hdescs[0], hc0, 193, 56);
};
}
}
}//package
Section 121
//menuMenu (menuMenu)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
public dynamic class menuMenu extends MovieClip {
public var dloadbut:MovieClip;
public var teh:SCWindow;
public var contbut:MovieClip;
public var cont:MovieClip;
public var s:Array;
public var cover:SimpleButton;
public var menubut:MovieClip;
public function menuMenu(){
addFrameScript(0, frame1);
}
public function menu(){
parent.sendEnd();
parent.ClearLevel();
parent.showMainMenu();
parent.removeChild(parent.goalsSym);
}
public function dload(){
parent.Download();
}
function frame1(){
s = new Array(new Window_part_1(190, 217), new Window_part_2(54, 217), new Window_part_3(190, 217), new Window_part_4(190, 54), new Window_part_5(54, 54), new Window_part_6(190, 54), new Window_part_7(190, 70), new Window_part_8(54, 70), new Window_part_9(190, 70));
teh = new SCWindow(cont, s, 380, 287, ((570 - 380) / 2), ((430 - 287) / 2));
contbut.clickFunc = contin;
menubut.clickFunc = menu;
dloadbut.visible = (root.alawar_f as Boolean);
dloadbut.clickFunc = dload;
contbut.capt.text = root.lc.String.(@id == "CONTINUE");
menubut.capt.text = root.lc.String.(@id == "MENU");
dloadbut.capt.text = root.lc.String.(@id == "DOWNLOAD_WORD");
cover.useHandCursor = false;
}
public function contin(){
parent.globalResume();
parent.removeChild(parent.goalsSym);
}
}
}//package
Section 122
//menuWin (menuWin)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
public dynamic class menuWin extends MovieClip {
public var teh:SCWindow;
public var okbut:MovieClip;
public var winstar:MovieClip;
public var cont:MovieClip;
public var exptxt:TextField;
public var timecapt:TextField;
public var cup:MovieClip;
public var starstxt:TextField;
public var timetxt:TextField;
public var s:Array;
public var cover:SimpleButton;
public var starscapt:TextField;
public var cupsym:MovieClip;
public var starsexptxt:TextField;
public function menuWin(){
addFrameScript(0, frame1);
}
function frame1(){
s = new Array(new Window_part_1(190, 217), new Window_part_2(54, 217), new Window_part_3(190, 217), new Window_part_4(190, 54), new Window_part_5(54, 54), new Window_part_6(190, 54), new Window_part_7(190, 70), new Window_part_8(54, 70), new Window_part_9(190, 70));
timetxt.text = ((Math.floor((parent.winSecs * 0.0166666666666667)).toString() + ":") + (parent.winSecs % 60).toString());
if (parent.winSecs > parent.lgoals[parent.curlevel].masterTime){
teh = new SCWindow(cont, s, 380, 287, ((570 - 380) / 2), ((430 - 287) / 2));
cupsym.visible = false;
cup.visible = false;
exptxt.visible = false;
okbut.y = 248;
winstar.visible = false;
if (parent.levelStates[parent.curlevel] < 1){
parent.levelStates[parent.curlevel] = 1;
};
} else {
okbut.y = 347;
winstar.visible = true;
teh = new SCWindow(cont, s, 380, 341, ((570 - 380) / 2), ((430 - 341) / 2));
if (parent.winSecs > parent.lgoals[parent.curlevel].expertTime){
cupsym.cup.gotoAndStop(2);
cup.gotoAndStop(2);
exptxt.text = root.lc.String.(@id == "MENUWIN_MASTER");
starsexptxt.text = ("+" + parent.lgoals[parent.curlevel].master);
if (parent.levelStates[parent.curlevel] < 2){
parent.levelStates[parent.curlevel] = 2;
};
} else {
exptxt.text = root.lc.String.(@id == "MENUWIN_EXPERT");
starsexptxt.text = ("+" + parent.lgoals[parent.curlevel].expert);
if (parent.levelStates[parent.curlevel] < 3){
parent.levelStates[parent.curlevel] = 3;
};
};
};
timecapt.text = root.lc.String.(@id == "MENUWIN_TIME");
starscapt.text = root.lc.String.(@id == "MENUWIN_STARS");
starstxt.text = parent.lgoals[parent.curlevel].comp;
parent.stars = (parent.stars + (parent.lgoals[parent.curlevel].master + parent.lgoals[parent.curlevel].comp));
okbut.capt.text = root.lc.String.(@id == "OK");
okbut.clickFunc = parent.winLevel;
cover.useHandCursor = false;
}
}
}//package
Section 123
//MGButter (MGButter)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
public dynamic class MGButter extends MovieClip {
public const topButShift2 = 200;
public const topButShift3 = 150;
public const bigButDist = 40;
public const smallButDist = 10;
public const gForce:Number = 500;
public const topButShift = 150;
public const leftButShift2 = 248;
public const leftButShift3 = 368;
public const leftButShift = 70;
public const flyTime:Number = 0.2;
public const totalSyms = 10;
public var butSample2:MovieClip;
public var butterbuts:Array;
public var teh:SCWindow;
public var wcont:MovieClip;
public var T:Array;
public var V:Array;
public var symsUsed:Array;
public var awaitingEnd:Boolean;
public var i:int;
public var bsample:MovieClip;
public var s:Array;
public var butSyms:Array;
public var satisfaction:int;
public var Assemb:Array;
public var MGendTimer:Timer;
public var butIngr:Array;
public var symMap:Array;
public var MGupdTimer:Timer;
public var curlevel;
public var m1:MovieClip;
public var m2:MovieClip;
public var m3:MovieClip;
public var sat2smile:Array;
public var butSample:MovieClip;
public var btop:MovieClip;
public var cover:SimpleButton;
public var num:int;
public var but0:SimpleButton;
public var but1:SimpleButton;
public var but2:SimpleButton;
public var but3:SimpleButton;
public var but4:SimpleButton;
public var head:MovieClip;
public var ind:int;
public function MGButter(){
addFrameScript(0, frame1);
}
public function but2over(_arg1){
butSyms[2].hl.visible = true;
}
public function setM(_arg1:int){
switch (_arg1){
case -3:
m1.setm(2);
m2.setm(2);
m3.setm(2);
break;
case -2:
m1.setm(2);
m2.setm(2);
m3.setm(1);
break;
case -1:
m1.setm(2);
m2.setm(1);
m3.setm(1);
break;
case 0:
m1.setm(1);
m2.setm(1);
m3.setm(1);
break;
case 1:
m1.setm(0);
m2.setm(1);
m3.setm(1);
break;
case 2:
m1.setm(0);
m2.setm(0);
m3.setm(1);
break;
case 3:
m1.setm(0);
m2.setm(0);
m3.setm(0);
break;
};
}
public function but3out(_arg1){
butSyms[3].hl.visible = false;
}
public function but2click(_arg1){
if (butSyms[2].x == butterbuts[2].x){
parent.Sounds = parent.Predmet_down.play(0, 0, root.svol);
if (((!((0 == curlevel))) && ((getChildIndex(Assemb[(curlevel - 1)]) > getChildIndex(butSyms[2]))))){
swapChildren(Assemb[(curlevel - 1)], butSyms[2]);
};
Assemb.push(butSyms[2]);
sortParts();
T[2] = 0;
V[2].X = ((leftButShift2 - butSyms[2].x) / flyTime);
V[2].Y = (((((topButShift2 - (smallButDist * curlevel)) - butSyms[2].y) - ((flyTime * flyTime) * gForce)) / flyTime) - (1000 * (root as MovieClip).dt));
curlevel++;
satisfaction = (satisfaction + (((!((symMap[2] == butIngr[0]))) && (!((symMap[2] == butIngr[1]))))) ? -1 : 1);
but2.visible = false;
updateSatisfaction();
};
}
function frame1(){
s = new Array(new Window_part_1(190, 217), new Window_part_2(54, 217), new Window_part_3(190, 217), new Window_part_4(190, 54), new Window_part_5(54, 54), new Window_part_6(190, 54), new Window_part_7(190, 70), new Window_part_8(54, 70), new Window_part_9(190, 70));
teh = new SCWindow(wcont, s, 488, 395, ((570 - 488) / 2), ((430 - 395) / 2));
MGupdTimer = new Timer(int((1000 / (root as MovieClip).fps)));
MGupdTimer.addEventListener(TimerEvent.TIMER, MGUpdate);
MGendTimer = new Timer(500, 1);
MGendTimer.addEventListener(TimerEvent.TIMER, MGEnd);
MGupdTimer.start();
V = new Array();
T = new Array();
V.push(new vec2D(0, 0));
T.push(-1);
V.push(new vec2D(0, 0));
T.push(-1);
V.push(new vec2D(0, 0));
T.push(-1);
V.push(new vec2D(0, 0));
T.push(-1);
V.push(new vec2D(0, 0));
T.push(-1);
V.push(new vec2D(0, 0));
T.push(-1);
but0.addEventListener(MouseEvent.CLICK, but0click);
but0.addEventListener(MouseEvent.MOUSE_OVER, but0over);
but0.addEventListener(MouseEvent.MOUSE_OUT, but0out);
but1.addEventListener(MouseEvent.CLICK, but1click);
but1.addEventListener(MouseEvent.MOUSE_OVER, but1over);
but1.addEventListener(MouseEvent.MOUSE_OUT, but1out);
but2.addEventListener(MouseEvent.CLICK, but2click);
but2.addEventListener(MouseEvent.MOUSE_OVER, but2over);
but2.addEventListener(MouseEvent.MOUSE_OUT, but2out);
but3.addEventListener(MouseEvent.CLICK, but3click);
but3.addEventListener(MouseEvent.MOUSE_OVER, but3over);
but3.addEventListener(MouseEvent.MOUSE_OUT, but3out);
but4.addEventListener(MouseEvent.CLICK, but4click);
but4.addEventListener(MouseEvent.MOUSE_OVER, but4over);
but4.addEventListener(MouseEvent.MOUSE_OUT, but4out);
btop.addEventListener(MouseEvent.CLICK, btopclick);
btop.addEventListener(MouseEvent.MOUSE_OVER, butopover);
btop.addEventListener(MouseEvent.MOUSE_OUT, butopout);
butterbuts = new Array(but0, but1, but2, but3, but4);
butSyms = new Array();
symsUsed = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
butIngr = new Array(-1, -1);
symMap = new Array();
Assemb = new Array();
awaitingEnd = false;
curlevel = 0;
satisfaction = 0;
sat2smile = new Array(0, 1, 1, 2);
i = 0;
while (i < 5) {
num = Math.floor((Math.random() * totalSyms));
while (symsUsed[num] != 0) {
num = Math.floor((Math.random() * totalSyms));
};
symsUsed[num] = (i + 1);
symMap[i] = num;
butSyms[i] = addChild(new butterPiece0());
if (getChildIndex(butterbuts[i]) < getChildIndex(butSyms[i])){
swapChildren(butterbuts[i], butSyms[i]);
};
butSyms[i].gotoAndStop((num + 1));
butterbuts[i].x = (butSyms[i].x = butterbuts[i].x);
butterbuts[i].y = (butSyms[i].y = butterbuts[i].y);
i++;
};
butSyms[5] = btop;
butIngr[0] = symMap[Math.floor((Math.random() * 5))];
num = Math.floor((Math.random() * 5));
if (butIngr[0] == symMap[num]){
num = ((num + 1) % 5);
};
butIngr[1] = symMap[num];
butSample = addChild(new butterPiece0());
butSample.gotoAndStop((butIngr[1] + 1));
butSample.x = leftButShift3;
butSample.y = (topButShift3 + (1 * smallButDist));
butSample2 = addChild(new butterPiece0());
butSample2.gotoAndStop((butIngr[0] + 1));
butSample2.x = leftButShift3;
butSample2.y = (topButShift3 + (0 * smallButDist));
btop.x = leftButShift2;
swapChildren(butSample2, bsample);
swapChildren(butSample, butSample2);
setM(0);
cover.useHandCursor = false;
}
public function but4out(_arg1){
butSyms[4].hl.visible = false;
}
public function but1over(_arg1){
butSyms[1].hl.visible = true;
}
public function MGEnd(_arg1){
MGendTimer.removeEventListener(TimerEvent.TIMER, MGEnd);
MGendTimer = null;
if (parent != null){
parent.CompleteMGButter(satisfaction, ind);
};
}
public function but3click(_arg1){
if (butSyms[3].x == butterbuts[3].x){
parent.Sounds = parent.Predmet_down.play(0, 0, root.svol);
if (((!((0 == curlevel))) && ((getChildIndex(Assemb[(curlevel - 1)]) > getChildIndex(butSyms[3]))))){
swapChildren(Assemb[(curlevel - 1)], butSyms[3]);
};
Assemb.push(butSyms[3]);
sortParts();
T[3] = 0;
V[3].X = ((leftButShift2 - butSyms[3].x) / flyTime);
V[3].Y = (((((topButShift2 - (smallButDist * curlevel)) - butSyms[3].y) - ((flyTime * flyTime) * gForce)) / flyTime) - (1000 * (root as MovieClip).dt));
curlevel++;
satisfaction = (satisfaction + (((!((symMap[3] == butIngr[0]))) && (!((symMap[3] == butIngr[1]))))) ? -1 : 1);
but3.visible = false;
updateSatisfaction();
};
}
public function MGUpdate(_arg1:TimerEvent){
var _local2:int;
_local2 = 0;
while (_local2 < 5) {
if ((((T[_local2] >= 0)) && ((T[_local2] <= flyTime)))){
V[_local2].Y = (V[_local2].Y + (((root as MovieClip).dt * gForce) * 2));
butSyms[_local2].x = (butSyms[_local2].x + ((root as MovieClip).dt * V[_local2].X));
butSyms[_local2].y = (butSyms[_local2].y + ((root as MovieClip).dt * V[_local2].Y));
T[_local2] = (T[_local2] + (root as MovieClip).dt);
if (flyTime <= T[_local2]){
butSyms[_local2].x = leftButShift2;
butSyms[_local2].y = (topButShift2 - (smallButDist * (curlevel - 1)));
};
};
_local2++;
};
_local2 = 5;
if ((((T[_local2] >= 0)) && ((T[_local2] <= flyTime)))){
V[_local2].Y = (V[_local2].Y + (((root as MovieClip).dt * gForce) * 4));
butSyms[_local2].x = (butSyms[_local2].x + ((root as MovieClip).dt * V[_local2].X));
butSyms[_local2].y = (butSyms[_local2].y + ((root as MovieClip).dt * V[_local2].Y));
T[_local2] = (T[_local2] + (root as MovieClip).dt);
if (flyTime <= T[_local2]){
butSyms[_local2].x = leftButShift2;
butSyms[_local2].y = (topButShift2 - (smallButDist * (curlevel - 1)));
};
MGupdTimer.removeEventListener(TimerEvent.TIMER, MGUpdate);
MGupdTimer = null;
MGendTimer.start();
};
}
public function but0click(_arg1){
if (butSyms[0].x == butterbuts[0].x){
parent.Sounds = parent.Predmet_down.play(0, 0, root.svol);
if (((!((0 == curlevel))) && ((getChildIndex(Assemb[(curlevel - 1)]) > getChildIndex(butSyms[0]))))){
swapChildren(Assemb[(curlevel - 1)], butSyms[0]);
};
Assemb.push(butSyms[0]);
sortParts();
T[0] = 0;
V[0].X = ((leftButShift2 - butSyms[0].x) / flyTime);
V[0].Y = (((((topButShift2 - (smallButDist * curlevel)) - butSyms[0].y) - ((flyTime * flyTime) * gForce)) / flyTime) - (1000 * (root as MovieClip).dt));
curlevel++;
satisfaction = (satisfaction + (((!((symMap[0] == butIngr[0]))) && (!((symMap[0] == butIngr[1]))))) ? -1 : 1);
but0.visible = false;
updateSatisfaction();
};
}
public function but0over(_arg1){
butSyms[0].hl.visible = true;
}
public function but0out(_arg1){
butSyms[0].hl.visible = false;
}
public function but4over(_arg1){
butSyms[4].hl.visible = true;
}
public function but1out(_arg1){
butSyms[1].hl.visible = false;
}
public function but4click(_arg1){
if (butSyms[4].x == butterbuts[4].x){
parent.Sounds = parent.Predmet_down.play(0, 0, root.svol);
if (((!((0 == curlevel))) && ((getChildIndex(Assemb[(curlevel - 1)]) > getChildIndex(butSyms[4]))))){
swapChildren(Assemb[(curlevel - 1)], butSyms[4]);
};
Assemb.push(butSyms[4]);
sortParts();
T[4] = 0;
V[4].X = ((leftButShift2 - butSyms[4].x) / flyTime);
V[4].Y = (((((topButShift2 - (smallButDist * curlevel)) - butSyms[4].y) - ((flyTime * flyTime) * gForce)) / flyTime) - (1000 * (root as MovieClip).dt));
curlevel++;
satisfaction = (satisfaction + (((!((symMap[4] == butIngr[0]))) && (!((symMap[4] == butIngr[1]))))) ? -1 : 1);
but4.visible = false;
updateSatisfaction();
};
}
public function but3over(_arg1){
butSyms[3].hl.visible = true;
}
public function btopclick(_arg1){
awaitingEnd = true;
parent.Sounds = parent.Predmet_up.play(0, 0, root.svol);
btop.y = (topButShift2 - (smallButDist * curlevel));
if (((!((0 == curlevel))) && ((getChildIndex(Assemb[(curlevel - 1)]) > getChildIndex(btop))))){
swapChildren(Assemb[(curlevel - 1)], btop);
};
T[5] = 0;
V[5].X = 0;
V[5].Y = (((((topButShift2 - (smallButDist * curlevel)) - btop.y) - ((flyTime * flyTime) * gForce)) / flyTime) - (1000 * (root as MovieClip).dt));
curlevel++;
satisfaction++;
updateSatisfaction();
}
public function but1click(_arg1){
if (butSyms[1].x == butterbuts[1].x){
parent.Sounds = parent.Predmet_down.play(0, 0, root.svol);
if (((!((0 == curlevel))) && ((getChildIndex(Assemb[(curlevel - 1)]) > getChildIndex(butSyms[1]))))){
swapChildren(Assemb[(curlevel - 1)], butSyms[1]);
};
Assemb.push(butSyms[1]);
sortParts();
T[1] = 0;
V[1].X = ((leftButShift2 - butSyms[1].x) / flyTime);
V[1].Y = (((((topButShift2 - (smallButDist * curlevel)) - butSyms[1].y) - ((flyTime * flyTime) * gForce)) / flyTime) - (1000 * (root as MovieClip).dt));
curlevel++;
satisfaction = (satisfaction + (((!((symMap[1] == butIngr[0]))) && (!((symMap[1] == butIngr[1]))))) ? -1 : 1);
but1.visible = false;
updateSatisfaction();
};
}
public function but2out(_arg1){
butSyms[2].hl.visible = false;
}
public function sortParts(){
i = (Assemb.length - 1);
while (i > 0) {
if (getChildIndex(Assemb[i]) < getChildIndex(Assemb[(i - 1)])){
swapChildren(Assemb[i], Assemb[(i - 1)]);
};
i--;
};
}
public function butopout(_arg1){
if (!awaitingEnd){
btop.hl.visible = false;
};
}
public function updateSatisfaction(){
setM(satisfaction);
if (satisfaction < 0){
head.setState(0);
} else {
if (satisfaction == 0){
head.setState(0);
} else {
if (satisfaction == 1){
head.setState(1);
} else {
if (satisfaction == 2){
head.setState(1);
} else {
if (satisfaction == 3){
head.setState(2);
};
};
};
};
};
}
public function butopover(_arg1){
if (!awaitingEnd){
btop.hl.visible = true;
};
}
}
}//package
Section 124
//MGGlass (MGGlass)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
public dynamic class MGGlass extends MovieClip {
public var fillglasstxt:TextField;
public var coins:Array;
public var teh:SCWindow;
public var wcont:MovieClip;
public var coinsNum:int;
public var ret2smile:Array;
public var goingUp:Boolean;
public var MGupdTimer:Timer;
public var completeP:Number;
public var m3:MovieClip;
public var m6:MovieClip;
public var m1:MovieClip;
public var m7:MovieClip;
public var m4:MovieClip;
public var m5:MovieClip;
public var glass:MovieClip;
public var k:int;
public var hint:hintRotateOuter;
public var s:Array;
public var ticks:int;
public var ret:int;
public var upTicks:int;
public var cover:SimpleButton;
public var m2:MovieClip;
public var head:MovieClip;
public var ind:int;
public var capt:TextField;
public function MGGlass(){
addFrameScript(0, frame1);
}
public function MGGlassMouseDown(_arg1){
MGupdTimer.stop();
ret = (coinsNum + (goingUp) ? 0 : 1);
head.setState(ret2smile[ret]);
glass.wm.visible = false;
glass.strm.visible = true;
MGupdTimer.removeEventListener(TimerEvent.TIMER, MGUpdate);
MGupdTimer.addEventListener(TimerEvent.TIMER, MGUpdateFin);
MGupdTimer.start();
parent.Sounds = parent.Voda_v_stakan.play(0, 0, root.svol);
parent.Sounds = parent.Click_Interface1.play(0, 0, root.svol);
}
public function MGUpdateFin(_arg1){
completeP = (completeP + 0.05);
if (1 >= completeP){
glass.setWaterEdge(completeP);
} else {
glass.strm.visible = false;
MGupdTimer.removeEventListener(TimerEvent.TIMER, MGUpdate);
MGupdTimer.addEventListener(TimerEvent.TIMER, MGFin);
};
}
public function MGUpdate(_arg1){
var _local2:Number;
if (goingUp){
_local2 = ((coinsNum + (ticks / upTicks)) / 7);
} else {
_local2 = (((coinsNum + 1) - (ticks / upTicks)) / 7);
};
glass.setWaterMark(_local2);
ticks = ((ticks + 1) % upTicks);
if (0 == ticks){
if (goingUp){
coins[coinsNum].setm(0);
} else {
coins[coinsNum].setm(1);
};
if (((goingUp) && ((6 == coinsNum)))){
goingUp = false;
} else {
if (((!(goingUp)) && ((0 == coinsNum)))){
goingUp = true;
} else {
coinsNum = (coinsNum + (goingUp) ? 1 : -1);
};
};
};
}
public function MGFin(_arg1){
MGupdTimer.stop();
MGupdTimer.removeEventListener(TimerEvent.TIMER, MGFin);
MGupdTimer = null;
if (parent != null){
parent.CompleteMGWater(ret, ind);
};
}
function frame1(){
addEventListener(MouseEvent.MOUSE_DOWN, MGGlassMouseDown);
completeP = 0;
ret2smile = new Array(0, 0, 0, 1, 1, 1, 2, 2, 2);
fillglasstxt.text = root.lc.String.(@id == "MGGLASS_FILLGLASS");
capt.text = root.lc.String.(@id == "MGGLASS_CAPTION");
MGupdTimer = new Timer(int((500 / (root as MovieClip).fps)));
MGupdTimer.addEventListener(TimerEvent.TIMER, MGUpdate);
MGupdTimer.start();
upTicks = Math.floor(((0.4 / 3.5) * (root as MovieClip).fps));
ticks = 0;
coinsNum = 0;
goingUp = true;
head.setHead(parent.ppls[ind].buyerType);
s = new Array(new Window_part_1(190, 217), new Window_part_2(54, 217), new Window_part_3(190, 217), new Window_part_4(190, 54), new Window_part_5(54, 54), new Window_part_6(190, 54), new Window_part_7(190, 70), new Window_part_8(54, 70), new Window_part_9(190, 70));
teh = new SCWindow(wcont, s, 488, 395, ((570 - 488) / 2), ((430 - 395) / 2));
coins = new Array(m1, m2, m3, m4, m5, m6, m7);
k = 0;
while (k < 7) {
coins[k].setm(1);
k++;
};
hint.visible = false;
if (parent.hints[8]){
parent.hints[8] = false;
hint.SetupHint(247, 10, parent.hdescs[8], null, 0, 0);
};
cover.useHandCursor = false;
}
}
}//package
Section 125
//MGSouv (MGSouv)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
public dynamic class MGSouv extends MovieClip {
public const fadeDif = 0.1;
public const totalSyms:int = 5;
public var teh:SCWindow;
public var s0:MovieClip;
public var s1:MovieClip;
public var s3:MovieClip;
public var s4:MovieClip;
public var s2:MovieClip;
public var wcont:MovieClip;
public var c0:MovieClip;
public var c1:MovieClip;
public var c3:MovieClip;
public var c4:MovieClip;
public var c2:MovieClip;
public var fading:Array;
public var i:int;
public var satisfaction:int;
public var b3Set:Boolean;
public var s:Array;
public var MGendTimer:Timer;
public var bnum1:int;
public var bnum2:int;
public var bnum3:int;
public var bnum4:int;
public var bgnum1:int;
public var bgnum2:int;
public var MGupdTimer:Timer;
public var goodShow:int;
public var m1:MovieClip;
public var m2:MovieClip;
public var m3:MovieClip;
public var CSyms:Array;
public var SSyms:Array;
public var goodnum:int;
public var cover:SimpleButton;
public var ind:int;
public var head:MovieClip;
public function MGSouv(){
addFrameScript(0, frame1);
}
public function c1Over(_arg1){
c1.gotoAndStop(2);
}
public function setM(_arg1:int){
switch (_arg1){
case -3:
m1.setm(2);
m2.setm(2);
m3.setm(2);
break;
case -2:
m1.setm(2);
m2.setm(2);
m3.setm(1);
break;
case -1:
m1.setm(2);
m2.setm(1);
m3.setm(1);
break;
case 0:
m1.setm(1);
m2.setm(1);
m3.setm(1);
break;
case 1:
m1.setm(0);
m2.setm(1);
m3.setm(1);
break;
case 2:
m1.setm(0);
m2.setm(0);
m3.setm(1);
break;
case 3:
m1.setm(0);
m2.setm(0);
m3.setm(0);
break;
};
}
public function SetAlpha(_arg1:int){
switch (_arg1){
case 0:
c0.alpha = (c0.alpha - fadeDif);
s0.alpha = (s0.alpha - fadeDif);
break;
case 1:
c1.alpha = (c1.alpha - fadeDif);
s1.alpha = (s1.alpha - fadeDif);
break;
case 2:
c2.alpha = (c2.alpha - fadeDif);
s2.alpha = (s2.alpha - fadeDif);
break;
case 3:
c3.alpha = (c3.alpha - fadeDif);
s3.alpha = (s3.alpha - fadeDif);
break;
case 4:
c4.alpha = (c4.alpha - fadeDif);
s4.alpha = (s4.alpha - fadeDif);
break;
};
}
function frame1(){
MGupdTimer = new Timer(int((1000 / root.fps)));
MGupdTimer.addEventListener(TimerEvent.TIMER, MGUpdate);
MGendTimer = new Timer(700);
MGendTimer.addEventListener(TimerEvent.TIMER, MGEnd);
head.setHead(parent.ppls[ind].buyerType);
s = new Array(new Window_part_1(190, 217), new Window_part_2(54, 217), new Window_part_3(190, 217), new Window_part_4(190, 54), new Window_part_5(54, 54), new Window_part_6(190, 54), new Window_part_7(190, 70), new Window_part_8(54, 70), new Window_part_9(190, 70));
teh = new SCWindow(wcont, s, 488, 395, ((570 - 488) / 2), ((430 - 395) / 2));
fading = new Array(false, false, false, false, false);
SSyms = new Array(c0, c1, c2, c3, c4);
CSyms = new Array(s0, s1, s2, s3, s4);
satisfaction = 3;
goodnum = Math.floor((Math.random() * 5));
goodShow = Math.floor((Math.random() * totalSyms));
SetSym(goodnum, goodShow);
bnum1 = Math.floor((Math.random() * 5));
bnum2 = Math.floor((Math.random() * 5));
bgnum1 = Math.floor((Math.random() * totalSyms));
bgnum2 = Math.floor((Math.random() * totalSyms));
if (bnum1 == goodnum){
bnum1 = ((bnum1 + 1) % 5);
};
if (bgnum1 == goodShow){
bgnum1 = ((bgnum1 + 1) % totalSyms);
};
while ((((bnum2 == goodnum)) || ((bnum2 == bnum1)))) {
bnum2 = ((bnum2 + 1) % 5);
};
SetSym(bnum1, bgnum1);
SetSym(bnum2, bgnum1);
while ((((bgnum2 == goodShow)) || ((bgnum2 == bgnum1)))) {
bgnum2 = ((bgnum2 + 1) % totalSyms);
};
b3Set = false;
i = 0;
while (i < 5) {
if (((((!((i == bnum1))) && (!((i == bnum2))))) && (!((i == goodnum))))){
SetSym(i, bgnum2);
if (!b3Set){
bnum3 = i;
b3Set = true;
} else {
bnum4 = i;
};
};
i++;
};
setM(0);
updateSatisfaction();
SetCover(0, Math.floor((Math.random() * 9)));
SetCover(1, Math.floor((Math.random() * 9)));
SetCover(2, Math.floor((Math.random() * 9)));
SetCover(3, Math.floor((Math.random() * 9)));
SetCover(4, Math.floor((Math.random() * 9)));
c0.addEventListener(MouseEvent.CLICK, c0Click);
s0.addEventListener(MouseEvent.CLICK, c0Click);
c1.addEventListener(MouseEvent.CLICK, c1Click);
s1.addEventListener(MouseEvent.CLICK, c1Click);
c2.addEventListener(MouseEvent.CLICK, c2Click);
s2.addEventListener(MouseEvent.CLICK, c2Click);
c3.addEventListener(MouseEvent.CLICK, c3Click);
s3.addEventListener(MouseEvent.CLICK, c3Click);
c4.addEventListener(MouseEvent.CLICK, c4Click);
s4.addEventListener(MouseEvent.CLICK, c4Click);
c0.addEventListener(MouseEvent.MOUSE_OVER, c0Over);
s0.addEventListener(MouseEvent.MOUSE_OVER, c0Over);
c0.addEventListener(MouseEvent.MOUSE_OUT, c0Out);
s0.addEventListener(MouseEvent.MOUSE_OUT, c0Out);
c1.addEventListener(MouseEvent.MOUSE_OVER, c1Over);
s1.addEventListener(MouseEvent.MOUSE_OVER, c1Over);
c1.addEventListener(MouseEvent.MOUSE_OUT, c1Out);
s1.addEventListener(MouseEvent.MOUSE_OUT, c1Out);
c2.addEventListener(MouseEvent.MOUSE_OVER, c2Over);
s2.addEventListener(MouseEvent.MOUSE_OVER, c2Over);
c2.addEventListener(MouseEvent.MOUSE_OUT, c2Out);
s2.addEventListener(MouseEvent.MOUSE_OUT, c2Out);
c3.addEventListener(MouseEvent.MOUSE_OVER, c3Over);
s3.addEventListener(MouseEvent.MOUSE_OVER, c3Over);
c3.addEventListener(MouseEvent.MOUSE_OUT, c3Out);
s3.addEventListener(MouseEvent.MOUSE_OUT, c3Out);
c4.addEventListener(MouseEvent.MOUSE_OVER, c4Over);
s4.addEventListener(MouseEvent.MOUSE_OVER, c4Over);
c4.addEventListener(MouseEvent.MOUSE_OUT, c4Out);
s4.addEventListener(MouseEvent.MOUSE_OUT, c4Out);
cover.useHandCursor = false;
}
public function c1Out(_arg1){
c1.gotoAndStop(1);
}
public function c2Out(_arg1){
c2.gotoAndStop(1);
}
public function c0Over(_arg1){
c0.gotoAndStop(2);
}
public function SetCover(_arg1:int, _arg2:int){
SSyms[_arg1].s0.gotoAndStop((_arg2 + 1));
}
public function c4Over(_arg1){
c4.gotoAndStop(2);
}
public function c2Click(_arg1){
if (goodnum == 2){
win();
} else {
if (!fading[2]){
satisfaction = (satisfaction - 1);
};
updateSatisfaction();
if ((((2 == bnum1)) || ((2 == bnum2)))){
fading[bnum1] = true;
fading[bnum2] = true;
} else {
fading[bnum3] = true;
fading[bnum4] = true;
};
MGupdTimer.start();
};
}
public function MGEnd(_arg1){
MGendTimer.removeEventListener(TimerEvent.TIMER, MGEnd);
MGendTimer.stop();
MGendTimer = null;
MGupdTimer.stop();
MGupdTimer.removeEventListener(TimerEvent.TIMER, MGUpdate);
MGendTimer = null;
if (parent != null){
parent.CompleteMGSouv(satisfaction, ind);
};
}
public function MGUpdate(_arg1){
var _local2:int;
_local2 = 0;
while (_local2 < 5) {
if (fading[_local2]){
SetAlpha(_local2);
};
_local2++;
};
}
public function c3Out(_arg1){
c3.gotoAndStop(1);
}
public function SetSym(_arg1:int, _arg2:int){
CSyms[_arg1].gotoAndStop((_arg2 + 1));
}
public function c3Over(_arg1){
c3.gotoAndStop(2);
}
public function c3Click(_arg1){
if (goodnum == 3){
win();
} else {
if (!fading[3]){
satisfaction = (satisfaction - 1);
};
updateSatisfaction();
if ((((3 == bnum1)) || ((3 == bnum2)))){
fading[bnum1] = true;
fading[bnum2] = true;
} else {
fading[bnum3] = true;
fading[bnum4] = true;
};
MGupdTimer.start();
};
}
public function c0Click(_arg1){
if (goodnum == 0){
win();
} else {
if (!fading[0]){
satisfaction = (satisfaction - 1);
};
updateSatisfaction();
if ((((0 == bnum1)) || ((0 == bnum2)))){
fading[bnum1] = true;
fading[bnum2] = true;
} else {
fading[bnum3] = true;
fading[bnum4] = true;
};
MGupdTimer.start();
};
}
public function c4Out(_arg1){
c4.gotoAndStop(1);
}
public function c2Over(_arg1){
c2.gotoAndStop(2);
}
public function c4Click(_arg1){
if (goodnum == 4){
win();
} else {
if (!fading[4]){
satisfaction = (satisfaction - 1);
};
updateSatisfaction();
if ((((4 == bnum1)) || ((4 == bnum2)))){
fading[bnum1] = true;
fading[bnum2] = true;
} else {
fading[bnum3] = true;
fading[bnum4] = true;
};
MGupdTimer.start();
};
}
public function c0Out(_arg1){
c0.gotoAndStop(1);
}
public function win(_arg1:int=-1){
var _local2:int;
MGendTimer.start();
_local2 = 0;
while (_local2 < 5) {
fading[_local2] = true;
_local2++;
};
MGupdTimer.start();
}
public function c1Click(_arg1){
if (goodnum == 1){
win();
} else {
if (!fading[1]){
satisfaction = (satisfaction - 1);
};
updateSatisfaction();
if ((((1 == bnum1)) || ((1 == bnum2)))){
fading[bnum1] = true;
fading[bnum2] = true;
} else {
fading[bnum3] = true;
fading[bnum4] = true;
};
MGupdTimer.start();
};
}
public function updateSatisfaction(){
setM(satisfaction);
if (satisfaction < 0){
head.setState(0);
} else {
if (satisfaction == 0){
head.setState(0);
} else {
if (satisfaction == 1){
head.setState(1);
} else {
if (satisfaction == 2){
head.setState(1);
} else {
if (satisfaction == 3){
head.setState(2);
};
};
};
};
};
}
}
}//package
Section 126
//Mone (Mone)
package {
import flash.media.*;
public dynamic class Mone extends Sound {
}
}//package
Section 127
//More_0 (More_0)
package {
import flash.media.*;
public dynamic class More_0 extends Sound {
}
}//package
Section 128
//Moto_finis (Moto_finis)
package {
import flash.media.*;
public dynamic class Moto_finis extends Sound {
}
}//package
Section 129
//Moto_star (Moto_star)
package {
import flash.media.*;
public dynamic class Moto_star extends Sound {
}
}//package
Section 130
//mtask (mtask)
package {
public class mtask {
public var deed:int;
public var pind:int;
public var param:int;
public function mtask(_arg1:int, _arg2:int, _arg3:int){
if (_arg1){
deed = _arg1;
} else {
deed = 0;
};
if (_arg2){
param = _arg2;
} else {
param = 0;
};
if (_arg3){
pind = _arg3;
} else {
pind = 0;
};
}
public function clone():mtask{
return (new mtask(deed, param, pind));
}
}
}//package
Section 131
//music_gam (music_gam)
package {
import flash.media.*;
public dynamic class music_gam extends Sound {
}
}//package
Section 132
//nagScreen (nagScreen)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
public dynamic class nagScreen extends MovieClip {
public var dloadbut:MovieClip;
public var smalltxt:TextField;
public var baseRewardtxt:TextField;
public var teh:SCWindow;
public var cont:MovieClip;
public var s:Array;
public var cover:SimpleButton;
public var cancelbut:MovieClip;
public var capt:TextField;
public function nagScreen(){
addFrameScript(0, frame1);
}
function frame1(){
s = new Array(new Window_part_1(190, 217), new Window_part_2(54, 217), new Window_part_3(190, 217), new Window_part_4(190, 54), new Window_part_5(54, 54), new Window_part_6(190, 54), new Window_part_7(190, 70), new Window_part_8(54, 70), new Window_part_9(190, 70));
teh = new SCWindow(cont, s, 434, 341, ((570 - 434) / 2), ((430 - 341) / 2));
if (!root.alawar_f){
dloadbut.visible = false;
cancelbut.x = 230;
baseRewardtxt.text = "";
} else {
baseRewardtxt.text = root.parseNewline(root.lc.String.(@id == "NAGSCREEN_TEXT1"));
};
dloadbut.capt.text = root.lc.String.(@id == "DOWNLOAD_WORD");
dloadbut.clickFunc = parent.Download;
cancelbut.capt.text = root.lc.String.(@id == "CANCEL");
cancelbut.clickFunc = can;
capt.text = root.lc.String.(@id == "NAGSCREEN_CAPTION");
smalltxt.text = root.parseNewline(root.lc.String.(@id == "NAGSCREEN_TEXT0"));
cover.useHandCursor = false;
}
public function can(){
parent.removeChild(this);
}
}
}//package
Section 133
//Order (Order)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
public dynamic class Order extends MovieClip {
public const butPrice = 75;
public const souvPrice = 100;
public var teh:SCWindow;
public var minusSand:MovieClip;
public var pTotalTxt:TextField;
public var item2price:Array;
public var plusSand:MovieClip;
public var beMoney:int;
public var order:MovieClip;
public var c:MovieClip;
public var souvtxt:TextField;
public var sandtxt:TextField;
public var s:Array;
public var w1:MovieClip;
public var pTotalTxt2:TextField;
public var minusSouv:MovieClip;
public var w2:MovieClip;
public var cover:SimpleButton;
public var plusSouv:MovieClip;
public var can:MovieClip;
public var capt:TextField;
public var beWarehouse:Array;
public function Order(){
addFrameScript(0, frame1);
}
public function souvPlusC(){
if (beWarehouse[0] == 0){
insertItem(0, 3);
setActive(minusSouv, true);
} else {
if (beWarehouse[1] == 0){
insertItem(1, 3);
setActive(minusSouv, true);
};
};
}
public function setActive(_arg1:MovieClip, _arg2:Boolean){
_arg1.isactive = _arg2;
if (_arg2){
_arg1.alpha = 1;
} else {
_arg1.alpha = 0.5;
};
}
public function MouseClick(_arg1){
}
public function activeByPlace(){
setActive(plusSouv, (root.lvlHasSS[root.curlevel] > 0));
setActive(plusSand, (root.lvlHasBatamat[root.curlevel] > 0));
}
public function souvMinusC(){
if (beWarehouse[0] == 3){
insertItem(0, 0);
} else {
if (beWarehouse[1] == 3){
insertItem(1, 0);
};
};
}
public function onCancel(){
parent.Sounds = parent.Click_Interface1.play(0, 0, root.svol);
parent.finishWarehouse(0, 0);
}
public function sandMinusC(){
if (beWarehouse[0] == 1){
insertItem(0, 0);
} else {
if (beWarehouse[1] == 1){
insertItem(1, 0);
};
};
}
public function insertItem(_arg1:int, _arg2:int){
if (0 == _arg2){
beMoney = (beMoney + item2price[beWarehouse[_arg1]]);
} else {
beMoney = (beMoney - item2price[_arg2]);
};
beWarehouse[_arg1] = _arg2;
if (0 == _arg1){
if (0 == _arg2){
w1.visible = false;
} else {
w1.visible = true;
w1.gotoAndStop(_arg2);
};
} else {
if (0 == _arg2){
w2.visible = false;
} else {
w2.visible = true;
w2.gotoAndStop(_arg2);
};
};
updateByMoney();
}
function frame1(){
capt.text = root.lc.String.(@id == "WHOUSE_CAPTION");
souvtxt.text = root.lc.String.(@id == "WHOUSE_SOUV");
sandtxt.text = root.lc.String.(@id == "WHOUSE_SAND");
beWarehouse = new Array(parent.wareSlots[0], parent.wareSlots[1]);
beMoney = parent.money;
item2price = new Array();
item2price[1] = butPrice;
item2price[3] = souvPrice;
setActive(minusSouv, false);
setActive(minusSand, false);
updateByMoney();
plusSand.clickFunc = sandPlusC;
plusSouv.clickFunc = souvPlusC;
minusSand.clickFunc = sandMinusC;
minusSouv.clickFunc = souvMinusC;
c = new MovieClip();
c.x = 0;
c.y = 0;
addChild(c);
setChildIndex(c, 1);
s = new Array(new Window_part_1(190, 217), new Window_part_2(54, 217), new Window_part_3(190, 217), new Window_part_4(190, 54), new Window_part_5(54, 54), new Window_part_6(190, 54), new Window_part_7(190, 70), new Window_part_8(54, 70), new Window_part_9(190, 70));
teh = new SCWindow(c, s, 431, 341, ((570 - 431) / 2), ((430 - 341) / 2));
can.capt.text = root.lc.String.(@id == "CANCEL");
order.capt.text = root.lc.String.(@id == "ORDER");
can.clickFunc = onCancel;
order.clickFunc = onOrder;
if (parent.wareSlots[0] == 0){
w1.visible = false;
} else {
w1.visible = true;
w1.gotoAndStop(parent.wareSlots[0]);
};
if (parent.wareSlots[1] == 0){
w2.visible = false;
} else {
w2.visible = true;
w2.gotoAndStop(parent.wareSlots[1]);
};
cover.addEventListener(MouseEvent.CLICK, MouseClick);
cover.useHandCursor = false;
}
public function updateByMoney(){
if (beMoney < butPrice){
setActive(plusSand, false);
} else {
setActive(plusSand, (root.lvlHasBatamat[root.curlevel] > 0));
};
if (beMoney < souvPrice){
setActive(plusSouv, false);
} else {
setActive(plusSouv, (root.lvlHasSS[root.curlevel] > 0));
};
if (((!((beWarehouse[0] == 0))) && (!((beWarehouse[1] == 0))))){
setActive(plusSouv, false);
setActive(plusSand, false);
};
if (((!((beWarehouse[0] == 1))) && (!((beWarehouse[1] == 1))))){
setActive(minusSand, false);
};
if (((!((beWarehouse[0] == 3))) && (!((beWarehouse[1] == 3))))){
setActive(minusSouv, false);
};
}
public function sandPlusC(){
if (beWarehouse[0] == 0){
insertItem(0, 1);
setActive(minusSand, true);
} else {
if (beWarehouse[1] == 0){
insertItem(1, 1);
setActive(minusSand, true);
};
};
}
public function onOrder(){
parent.Sounds = parent.Click_Interface1.play(0, 0, root.svol);
parent.money = beMoney;
parent.finishWarehouse(beWarehouse[0], beWarehouse[1]);
}
}
}//package
Section 134
//pngEnd_level (pngEnd_level)
package {
import flash.display.*;
public dynamic class pngEnd_level extends BitmapData {
public function pngEnd_level(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 135
//Predmet_dow (Predmet_dow)
package {
import flash.media.*;
public dynamic class Predmet_dow extends Sound {
}
}//package
Section 136
//Predmet_u (Predmet_u)
package {
import flash.media.*;
public dynamic class Predmet_u extends Sound {
}
}//package
Section 137
//SCWindow (SCWindow)
package {
import flash.display.*;
import flash.geom.*;
public class SCWindow extends Sprite {
private var rightWidth:int;// = 190
public var Height:int;// = 0
private var wbmpdata:Array;
private var downHeight:int;// = 70
private var wpieces:Array;
public var Width:int;// = 0
private var upHeight:int;// = 217
private var ourMC:MovieClip;
private var leftWidth:int;// = 190
public function SCWindow(_arg1:MovieClip, _arg2:Array, _arg3:int, _arg4:int, _arg5:int, _arg6:int, _arg7:int=190, _arg8:int=190, _arg9:int=217, _arg10:int=70){
var _local11:Matrix;
var _local12:Array;
var _local13:Array;
var _local14:Array;
var _local15:Array;
var _local16:int;
Width = 0;
Height = 0;
leftWidth = 190;
upHeight = 217;
rightWidth = 190;
downHeight = 70;
wpieces = new Array();
wbmpdata = new Array();
super();
leftWidth = _arg7;
upHeight = _arg9;
rightWidth = _arg8;
downHeight = _arg10;
ourMC = _arg1;
_local11 = new Matrix();
_local12 = new Array(_arg5, (_arg5 + leftWidth), ((_arg5 + _arg3) - rightWidth));
_local13 = new Array(_arg6, (_arg6 + upHeight), ((_arg6 + _arg4) - downHeight));
_local14 = new Array(leftWidth, ((_arg3 - leftWidth) - rightWidth), rightWidth);
_local15 = new Array(upHeight, ((_arg4 - upHeight) - downHeight), downHeight);
_local16 = 0;
while (_local16 < 9) {
wbmpdata[_local16] = _arg2[_local16];
wpieces[_local16] = new Sprite();
_local11.tx = (_local12[(_local16 % 3)] % wbmpdata[_local16].width);
_local11.ty = (_local13[Math.floor((_local16 / 3))] % wbmpdata[_local16].height);
wpieces[_local16].graphics.beginBitmapFill(wbmpdata[_local16], _local11);
wpieces[_local16].graphics.drawRect(_local12[(_local16 % 3)], _local13[Math.floor((_local16 / 3))], _local14[(_local16 % 3)], _local15[Math.floor((_local16 / 3))]);
wpieces[_local16].graphics.endFill();
_arg1.addChild(wpieces[_local16]);
_local16++;
};
}
public function clear(){
var _local1:int;
_local1 = 0;
while (_local1 < 9) {
ourMC.removeChild(wpieces[_local1]);
wpieces[_local1].graphics.clear();
wpieces[_local1] = null;
_local1++;
};
}
}
}//package
Section 138
//sheslong (sheslong)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
public dynamic class sheslong extends MovieClip {
public var hasUmbrella:Boolean;
public var NumSet:int;
public var snum:int;
public var ch:MovieClip;
public var ico:MovieClip;
public var ss:MovieClip;
public var nums:MovieClip;
public var owner:int;
public var mover:Boolean;
public function sheslong(){
addFrameScript(0, frame1);
}
public function out(_arg1){
if (!ch.visible){
ico.gotoAndStop(1);
};
}
function frame1(){
nums.visible = false;
ch.visible = false;
ico.visible = false;
NumSet = -1;
hasUmbrella = false;
ico.addEventListener(MouseEvent.MOUSE_UP, up);
ico.addEventListener(MouseEvent.MOUSE_OVER, over);
ico.addEventListener(MouseEvent.MOUSE_OUT, out);
hasUmbrella = false;
mover = false;
ss.addEventListener(MouseEvent.MOUSE_OVER, MouseOver);
ss.addEventListener(MouseEvent.MOUSE_OUT, MouseOut);
ss.addEventListener(MouseEvent.CLICK, Click);
}
public function Click(_arg1:MouseEvent):void{
var _local2:int;
if (hasUmbrella){
_local2 = 0;
while (_local2 < 3) {
if (parent.parent.uposs[_local2] == snum){
parent.parent.ummc[_local2].visible = true;
parent.parent.ummc[_local2].Click(null);
unsetUmbrella();
};
_local2++;
};
};
}
public function MouseOut(_arg1:MouseEvent):void{
mover = false;
if (hasUmbrella){
ss.gotoAndStop(3);
} else {
ss.gotoAndStop(1);
};
}
public function unsetUmbrella(){
hasUmbrella = false;
if (mover){
ss.gotoAndStop(2);
} else {
ss.gotoAndStop(1);
};
if (parent.parent.ppls[owner] != null){
parent.parent.ppls[owner].mc.hasUm = false;
if ((((((parent.parent.ppls[owner].deed == 3)) || ((parent.parent.ppls[owner].deed == 9)))) && (parent.parent.ppls[owner].mc.th.visible))){
parent.parent.ppls[owner].mc.th.sm.unsetUmbrella();
};
};
}
public function up(_arg1){
ico.gotoAndStop(1);
if (!ch.visible){
parent.parent.Sounds = parent.parent.Click_Interface1.play(0, 0, root.svol);
parent.parent.RemoveShezlong(snum);
} else {
parent.parent.Sounds = parent.parent.Click_Interface1.play();
parent.parent.cancelDeed(NumSet, snum);
};
}
public function setUmbrella(){
root.debug("umbr set!!");
hasUmbrella = true;
if (mover){
ss.gotoAndStop(4);
} else {
ss.gotoAndStop(3);
};
if (parent.parent.ppls[owner] != null){
parent.parent.ppls[owner].mc.hasUm = true;
if ((((((parent.parent.ppls[owner].deed == 3)) || ((parent.parent.ppls[owner].deed == 9)))) && (parent.parent.ppls[owner].mc.th.visible))){
parent.parent.ppls[owner].mc.th.sm.setUmbrella();
};
};
}
public function setNum(_arg1:int){
NumSet = _arg1;
if (_arg1 > 0){
ch.visible = true;
nums.visible = true;
nums.gotoAndStop(_arg1);
} else {
ch.visible = false;
nums.visible = false;
};
}
public function over(_arg1){
if (!ch.visible){
ico.gotoAndStop(2);
};
}
public function MouseOver(_arg1:MouseEvent):void{
mover = true;
if (hasUmbrella){
root.debug("yes, we have umbr!");
ss.gotoAndStop(4);
} else {
ss.gotoAndStop(2);
};
}
}
}//package
Section 139
//smile_green (smile_green)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
public dynamic class smile_green extends MovieClip {
public function smile_green(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 140
//Take_wate (Take_wate)
package {
import flash.media.*;
public dynamic class Take_wate extends Sound {
}
}//package
Section 141
//thoughts (thoughts)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
public dynamic class thoughts extends MovieClip {
public var clickevent:Function;
public var anim:animat;
public var butShade:MovieClip;
public var clockNC:Array;
public var checkNum:int;
public var sm:MovieClip;
public var ts:MovieClip;
public var ch:MovieClip;
public var but:MovieClip;
public var nums:MovieClip;
public var mun:int;
public var clockCT:Array;
public function thoughts(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
public function StartClock(){
ts.visible = true;
anim.PlayAnim(0);
}
public function init(){
clockNC = new Array(4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19);
clockCT = new Array(110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110);
anim = new animat(MovieClip(ts), clockCT, clockNC);
checkNum = -1;
but.buttonMode = true;
sm.visible = false;
sm.mouseEnabled = false;
ts.mouseChildren = false;
nums.visible = false;
ch.visible = false;
butShade.visible = false;
clickevent = null;
but.addEventListener(MouseEvent.MOUSE_UP, up);
but.addEventListener(MouseEvent.MOUSE_OVER, over);
but.addEventListener(MouseEvent.MOUSE_OUT, out);
}
public function setButter(){
InitSmileys();
ts.visible = true;
anim.Stop();
ts.gotoAndStop(3);
}
public function setShade(){
butShade.visible = true;
but.alpha = (1 - butShade.alpha);
}
public function clearObjs(){
sm.visible = false;
ts.visible = false;
nums.visible = false;
ch.visible = false;
}
public function out(_arg1:MouseEvent):void{
but.gotoAndStop(1);
useHandCursor = false;
}
function frame3(){
but.buttonMode = true;
sm.visible = false;
sm.mouseEnabled = false;
ts.mouseChildren = false;
nums.visible = false;
ch.visible = false;
butShade.visible = false;
but.removeEventListener(MouseEvent.MOUSE_UP, up);
but.removeEventListener(MouseEvent.MOUSE_OVER, over);
but.removeEventListener(MouseEvent.MOUSE_OUT, out);
but.addEventListener(MouseEvent.MOUSE_UP, up);
but.addEventListener(MouseEvent.MOUSE_OVER, over);
but.addEventListener(MouseEvent.MOUSE_OUT, out);
}
function frame1(){
but.buttonMode = true;
sm.visible = false;
sm.mouseEnabled = false;
nums.mouseEnabled = false;
ch.mouseEnabled = false;
ts.mouseChildren = false;
nums.visible = false;
ch.visible = false;
butShade.visible = false;
but.removeEventListener(MouseEvent.MOUSE_UP, up);
but.removeEventListener(MouseEvent.MOUSE_OVER, over);
but.removeEventListener(MouseEvent.MOUSE_OUT, out);
but.addEventListener(MouseEvent.MOUSE_UP, up);
but.addEventListener(MouseEvent.MOUSE_OVER, over);
but.addEventListener(MouseEvent.MOUSE_OUT, out);
stop();
}
public function unsetShade(){
butShade.visible = false;
but.alpha = 1;
}
public function setSouv(){
this.visible = true;
sm.visible = true;
sm.InitSmileys(false);
ts.visible = true;
nums.visible = false;
ch.visible = false;
anim.Stop();
ts.gotoAndStop(20);
}
public function setLeft(){
gotoAndStop(1);
}
public function setEnter(){
anim.Stop();
ts.gotoAndStop(1);
ts.mouseEnabled = false;
}
public function unsetNum(){
mun = -1;
ch.visible = false;
nums.visible = false;
}
public function up(_arg1:MouseEvent):void{
if (null != clickevent){
root.Sounds = parent.parent.parent.Click_Interface1.play(0, 0, root.svol);
clickevent();
//unresolved jump
};
}
public function setUp(){
gotoAndStop(2);
}
public function setBanan(){
sm.visible = true;
sm.InitSmileys(false);
ts.visible = true;
nums.visible = false;
ch.visible = false;
anim.Stop();
ts.gotoAndStop(23);
}
public function InitSmileys(){
sm.visible = true;
sm.InitSmileys(parent.hasUm);
}
public function setNum(_arg1:int){
mun = _arg1;
ch.visible = true;
if (0 < _arg1){
nums.visible = true;
nums.setNum(_arg1);
} else {
unsetNum();
};
}
public function over(_arg1:MouseEvent):void{
but.gotoAndStop(2);
useHandCursor = true;
}
public function setWater(){
InitSmileys();
ts.visible = true;
anim.Stop();
ts.gotoAndStop(2);
}
public function setRent1(){
sm.visible = true;
sm.InitSmileys(false);
ts.visible = true;
anim.Stop();
ts.gotoAndStop(21);
}
public function setRent2(){
sm.visible = true;
sm.InitSmileys(false);
ts.visible = true;
anim.Stop();
ts.gotoAndStop(22);
}
public function setRight(){
gotoAndStop(3);
}
function frame2(){
but.buttonMode = true;
sm.visible = false;
sm.mouseEnabled = false;
ts.mouseChildren = false;
nums.visible = false;
ch.visible = false;
butShade.visible = false;
but.removeEventListener(MouseEvent.MOUSE_UP, up);
but.removeEventListener(MouseEvent.MOUSE_OVER, over);
but.removeEventListener(MouseEvent.MOUSE_OUT, out);
but.addEventListener(MouseEvent.MOUSE_UP, up);
but.addEventListener(MouseEvent.MOUSE_OVER, over);
but.addEventListener(MouseEvent.MOUSE_OUT, out);
}
}
}//package
Section 142
//vec2D (vec2D)
package {
public class vec2D {
public var X:Number;
public var Y:Number;
public function vec2D(_arg1:Number, _arg2:Number){
if (_arg1){
X = _arg1;
} else {
X = 0;
};
if (_arg2){
Y = _arg2;
} else {
Y = 0;
};
}
public function addVector(_arg1:vec2D):void{
X = (X + _arg1.X);
Y = (Y + _arg1.Y);
}
public function get length():Number{
return (Math.sqrt(((X * X) + (Y * Y))));
}
public function dot(_arg1:vec2D):Number{
var _local2:vec2D;
var _local3:vec2D;
_local2 = this.clone();
_local3 = _arg1.clone();
_local2.normalise();
_local3.normalise();
return (((_local2.X * _local3.X) + (_local2.Y * _local3.Y)));
}
public function normalise():void{
var _local1:Number;
_local1 = length;
X = (X / _local1);
Y = (Y / _local1);
}
public function mult(_arg1:Number):void{
X = (X * _arg1);
Y = (Y * _arg1);
}
public function rotate(_arg1:Number):void{
var _local2:Number;
var _local3:Number;
_local2 = ((Math.cos(_arg1) * X) - (Math.sin(_arg1) * Y));
_local3 = ((Math.cos(_arg1) * Y) + (Math.sin(_arg1) * X));
X = _local2;
Y = _local3;
}
public function clone():vec2D{
return (new vec2D(X, Y));
}
public function rotateAboutPoint(_arg1:vec2D, _arg2:Number):void{
X = (X - _arg1.X);
Y = (Y - _arg1.Y);
rotate(_arg2);
X = (X + _arg1.X);
Y = (Y + _arg1.Y);
}
public function distanceTo(_arg1:vec2D):Number{
var _local2:Number;
var _local3:Number;
_local2 = (_arg1.X - X);
_local3 = (_arg1.Y - Y);
return (Math.sqrt(((_local2 * _local2) + (_local3 * _local3))));
}
}
}//package
Section 143
//vec2i (vec2i)
package {
public class vec2i {
public var X:int;
public var Y:int;
public function vec2i(_arg1:int, _arg2:int){
if (_arg1){
X = _arg1;
} else {
X = 0;
};
if (_arg2){
Y = _arg2;
} else {
Y = 0;
};
}
public function distanceTo2(_arg1:int, _arg2:int):int{
return ((Math.abs((_arg1 - X)) + Math.abs((_arg2 - Y))));
}
public function addVector(_arg1:vec2i):void{
X = (X + _arg1.X);
Y = (Y + _arg1.Y);
}
public function get length():int{
return ((Math.abs(X) + Math.abs(Y)));
}
public function mult(_arg1:int):void{
X = (X * _arg1);
Y = (Y * _arg1);
}
public function clone():vec2i{
return (new vec2i(X, Y));
}
public function distanceTo(_arg1:vec2i):int{
return ((Math.abs((_arg1.X - X)) + Math.abs((_arg1.Y - Y))));
}
}
}//package
Section 144
//winAnim (winAnim)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
public dynamic class winAnim extends MovieClip {
public function winAnim(){
addFrameScript(47, frame48, 99, frame100);
}
function frame100(){
parent.winWindow();
stop();
}
function frame48(){
try {
parent.goalBar.numtxt.visible = false;
} catch(err:Error) {
};
}
}
}//package
Section 145
//Window_part_1 (Window_part_1)
package {
import flash.display.*;
public dynamic class Window_part_1 extends BitmapData {
public function Window_part_1(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 146
//Window_part_2 (Window_part_2)
package {
import flash.display.*;
public dynamic class Window_part_2 extends BitmapData {
public function Window_part_2(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 147
//Window_part_3 (Window_part_3)
package {
import flash.display.*;
public dynamic class Window_part_3 extends BitmapData {
public function Window_part_3(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 148
//Window_part_4 (Window_part_4)
package {
import flash.display.*;
public dynamic class Window_part_4 extends BitmapData {
public function Window_part_4(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 149
//Window_part_5 (Window_part_5)
package {
import flash.display.*;
public dynamic class Window_part_5 extends BitmapData {
public function Window_part_5(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 150
//Window_part_6 (Window_part_6)
package {
import flash.display.*;
public dynamic class Window_part_6 extends BitmapData {
public function Window_part_6(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 151
//Window_part_7 (Window_part_7)
package {
import flash.display.*;
public dynamic class Window_part_7 extends BitmapData {
public function Window_part_7(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 152
//Window_part_8 (Window_part_8)
package {
import flash.display.*;
public dynamic class Window_part_8 extends BitmapData {
public function Window_part_8(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 153
//Window_part_9 (Window_part_9)
package {
import flash.display.*;
public dynamic class Window_part_9 extends BitmapData {
public function Window_part_9(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 154
//Voda_v_staka (Voda_v_staka)
package {
import flash.media.*;
public dynamic class Voda_v_staka extends Sound {
}
}//package
Section 155
//woman (woman)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.geom.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
public dynamic class woman extends MovieClip {
public const dx:int = 5;
public const dy:int = -8;
public var leftNC:Array;
public var standNC:Array;
public var matrassNC:Array;
public var layNC:Array;
public var cdrs:MovieClip;
public var drinkNC:Array;
public var CT:Array;
public var co:MovieClip;
public var th:thoughts;
public var standCT:Array;
public var rightNC:Array;
public var hasUm:Boolean;
public var matrassCT:Array;
public var swimCT:Array;
public var drinkCT:Array;
public var eatNC:Array;
public var layCT:Array;
public var ondeed:MovieClip;
public var swimLNC:Array;
public var upNC:Array;
public var downNC:Array;
public var Manim:animat;
public var ind:int;
public var swimRNC:Array;
public function woman(){
addFrameScript(0, frame1);
}
public function Matrass(_arg1:int):void{
if (0 == _arg1){
parent.parent.swim1.visible = true;
parent.parent.swim1.Manim.PlayAnim(0);
} else {
parent.parent.swim2.visible = true;
parent.parent.swim2.Manim.PlayAnim(0);
};
Manim.PlayAnim(10);
}
public function goRight():void{
cdrs.x = 0;
cdrs.y = 0;
th.x = 4;
th.y = -90;
Manim.PlayAnim(3);
}
public function onShez(_arg1:Boolean){
ondeed.visible = _arg1;
ondeed.gotoAndStop(1);
}
public function HideThought(){
th.visible = false;
}
public function GimmeWater(){
parent.parent.GimmeWater(ind);
}
public function GimmeButter(){
parent.parent.GimmeButter(ind);
}
public function SetWaterThought(){
th.visible = true;
th.setWater();
th.clickevent = null;
th.clickevent = GimmeWater;
if (parent.parent.watamat.sv.getNum() == 0){
th.setShade();
};
}
public function swimRight():void{
Manim.PlayAnim(8);
}
public function onSouv(_arg1:Boolean){
ondeed.visible = _arg1;
ondeed.gotoAndStop(2);
}
public function GimmeRent(){
parent.parent.GimmeRent(ind);
}
public function Drink():void{
Manim.PlayAnim(5);
}
function frame1(){
co.mouseEnabled = false;
co.mouseChildren = false;
ondeed.visible = false;
ondeed.alpha = 0.5;
ondeed.mouseEnabled = false;
cdrs.mouseEnabled = false;
stop();
}
public function swimLeft():void{
Manim.PlayAnim(9);
}
public function foo(){
}
public function SetButterThought(){
th.visible = true;
th.setButter();
th.clickevent = null;
th.clickevent = GimmeButter;
if (parent.parent.batamat.sv.getNum() == 0){
th.setShade();
};
}
public function SetRentThought1(){
th.visible = true;
th.setRent1();
th.clickevent = null;
th.clickevent = GimmeRent;
if (((!((parent.parent.ratamat.matrases[0] == 1))) && (!((parent.parent.ratamat.matrases[1] == 1))))){
th.setShade();
};
}
public function SetRentThought2(){
th.visible = true;
th.setRent2();
th.clickevent = null;
th.clickevent = GettaRent;
}
public function onSwim(_arg1:Boolean){
ondeed.visible = _arg1;
ondeed.gotoAndStop(5);
}
public function init(){
CT = new Array(110, 110, 110, 110, 110, 110, 110, 110);
upNC = new Array(2, 4, 6, 8, 10, 12, 14, 16);
downNC = new Array(50, 52, 54, 56, 58, 60, 62, 64);
rightNC = new Array(34, 36, 38, 40, 42, 44, 46, 48);
leftNC = new Array(18, 20, 22, 24, 26, 28, 30, 32);
standNC = new Array(66, 68, 70, 72, 74, 76, 78);
standCT = new Array(110, 110, 110, 110, 110, 110, 110);
drinkNC = new Array(90, 91, 92, 93, 94, 95, 90);
drinkCT = new Array(100, 100, 100, 600, 100, 100, 500);
eatNC = new Array(96, 97, 98, 99, 100, 101, 96);
layNC = new Array(80, 81, 82, 83, 84, 85, 84, 83, 82, 81, 80);
layCT = new Array(200, 200, 200, 200, 200, 3000, 200, 200, 200, 200, 4000);
swimRNC = new Array(102, 103, 104, 105, 106, 107, 108, 109);
swimLNC = new Array(110, 111, 112, 113, 114, 115, 116, 117);
swimCT = new Array(110, 110, 110, 110, 110, 110, 110, 110);
matrassNC = new Array(118, 119, 120, 120, 119, 118);
matrassCT = new Array(110, 110, 110, 110, 110, 110);
Manim = new animat(cdrs, CT, upNC);
Manim.LoadAnim(CT, downNC, 1);
Manim.LoadAnim(CT, leftNC, 2);
Manim.LoadAnim(CT, rightNC, 3);
Manim.LoadAnim(standCT, standNC, 4);
Manim.LoadAnim(drinkCT, drinkNC, 5);
Manim.LoadAnim(drinkCT, eatNC, 6);
Manim.LoadAnim(layCT, layNC, 7);
Manim.LoadAnim(swimCT, swimRNC, 8);
Manim.LoadAnim(swimCT, swimLNC, 9);
Manim.LoadAnim(matrassCT, matrassNC, 10);
th.init();
th.visible = false;
}
public function goLeft():void{
cdrs.x = 0;
cdrs.y = 0;
th.x = 4;
th.y = -90;
Manim.PlayAnim(2);
}
public function GimmeSouv(){
parent.parent.GimmeSouv(ind);
}
public function Bananieren(){
parent.parent.Bananieren(ind);
}
public function Eat():void{
Manim.PlayAnim(6);
}
public function EatButter(){
th.visible = false;
th.sm.unsetUmbrella();
Eat();
}
public function SetBananThought(){
th.visible = true;
th.setBanan();
th.clickevent = null;
th.clickevent = Bananieren;
}
public function DrinkWater(){
th.visible = false;
th.sm.unsetUmbrella();
Drink();
}
public function SetEnterThought(){
th.visible = true;
th.setEnter();
th.clickevent = LemmeEnter;
}
public function Lay():void{
cdrs.x = dx;
cdrs.y = dy;
th.x = dx;
th.y = (-90 + dy);
ondeed.visible = false;
Manim.PlayAnim(7);
}
public function Wait():void{
Manim.PlayAnim(4);
}
public function SetClockThought(){
th.nums.visible = (th.ch.visible = false);
th.visible = true;
th.StartClock();
th.clickevent = null;
th.clickevent = foo;
}
public function StopSmileys(){
th.sm.StopSmileys();
}
public function goDown():void{
cdrs.x = 0;
cdrs.y = 0;
th.x = 4;
th.y = -90;
Manim.PlayAnim(1);
}
public function LemmeEnter(){
parent.parent.LemmeEnter(ind);
}
public function goUp():void{
Manim.PlayAnim(0);
}
public function SetSouvThought(){
th.visible = true;
th.setSouv();
th.clickevent = null;
th.clickevent = GimmeSouv;
if (parent.parent.satamat.sv.getNum() == 0){
th.setShade();
};
}
public function onRent(_arg1:Boolean){
ondeed.visible = _arg1;
ondeed.gotoAndStop(3);
}
public function stand():void{
Manim.PlayAnim(4);
}
public function onBanan(_arg1:Boolean){
ondeed.visible = _arg1;
ondeed.gotoAndStop(4);
}
public function GettaRent(){
parent.parent.GettaRent(ind);
}
}
}//package
Section 156
//Wron (Wron)
package {
import flash.media.*;
public dynamic class Wron extends Sound {
}
}//package
Section 157
//YA_M_n (YA_M_n)
package {
import flash.media.*;
public dynamic class YA_M_n extends Sound {
}
}//package
Section 158
//YA_M_ye (YA_M_ye)
package {
import flash.media.*;
public dynamic class YA_M_ye extends Sound {
}
}//package
Section 159
//YA_W_n (YA_W_n)
package {
import flash.media.*;
public dynamic class YA_W_n extends Sound {
}
}//package
Section 160
//YA_W_ye (YA_W_ye)
package {
import flash.media.*;
public dynamic class YA_W_ye extends Sound {
}
}//package
Section 161
//Zdan_post (Zdan_post)
package {
import flash.media.*;
public dynamic class Zdan_post extends Sound {
}
}//package
Section 162
//Zont_pu (Zont_pu)
package {
import flash.media.*;
public dynamic class Zont_pu extends Sound {
}
}//package
Section 163
//Zont_tak (Zont_tak)
package {
import flash.media.*;
public dynamic class Zont_tak extends Sound {
}
}//package