Section 1
//TFDijkstra (classes.basic.Algorithm.TFDijkstra)
package classes.basic.Algorithm {
import classes.basic.Path.*;
public class TFDijkstra {
public static function calculate(_arg1:Array, _arg2:TFPathNode, _arg3:TFPathNode, _arg4:Array):Array{
var _local5:Number;
var _local6:Array;
var _local7:Number;
var _local8:Array;
var _local9:Array;
var _local10:Array;
var _local11:Array;
var _local12:Number;
var _local13:Number;
var _local14:Number;
var _local15:*;
var _local16:*;
_local5 = _arg1.length;
_local6 = new Array(_local5);
_local8 = new Array(_local5);
_local9 = new Array(_local5);
_local10 = new Array();
_local11 = new Array();
_local7 = 0;
while (_local7 < _local5) {
_local10[_arg1[_local7].getName()] = _local7;
_local6[_local7] = 99999999;
_local9[_local7] = -1;
_local8[_local7] = false;
_local7++;
};
_local6[_local10[_arg2.getName()]] = 0;
_local12 = 0;
while (_local12 < _local5) {
_local13 = 99999999;
_local14 = -1;
_local7 = 0;
while (_local7 < _local5) {
if (!_local8[_local7]){
if (_local6[_local7] <= _local13){
_local13 = _local6[_local7];
_local14 = _local7;
};
};
_local7++;
};
_local8[_local14] = true;
_local7 = 0;
while (_local7 < _local5) {
if (!_local8[_local7]){
_local15 = _arg4[_arg1[_local14].getName()][_arg1[_local7].getName()];
if ((_local6[_local14] + _local15) < _local6[_local7]){
_local6[_local7] = (_local6[_local14] + _local15);
_local9[_local7] = _local14;
};
};
_local7++;
};
_local12++;
};
_local7 = _local10[_arg3.getName()];
if (_local6[_local7] < 99999999){
_local16 = _arg1[_local7].getName();
_local11.push(_arg1[_local7]);
_local12 = _local7;
while (_local12 >= 0) {
_local12 = _local9[_local12];
if (_local12 >= 0){
_local16 = ((_arg1[_local12].getName() + "->") + _local16);
_local11.push(_arg1[_local12]);
};
};
_local11.reverse();
//unresolved jump
};
return (_local11);
}
}
}//package classes.basic.Algorithm
Section 2
//TFButton (classes.basic.Button.TFButton)
package classes.basic.Button {
import classes.basic.Sound.*;
import flash.display.*;
import flash.events.*;
import classes.basic.Events.*;
public class TFButton {
protected var hitArea:Object;
private var fxOver:TFSound;
private var fxClick:TFSound;
protected var movieClip:MovieClip;
private var fxOut:TFSound;
public var onEvent:Function;
public function TFButton(_arg1:MovieClip, _arg2:Function){
fxOver = null;
movieClip = _arg1;
updateFields();
onEvent = _arg2;
registerEvents();
if (onEvent != null){
onEvent(new TFEvent(TFEvent.EVENT_INIT, movieClip));
//unresolved jump
};
}
public function enable(){
hitArea.mouseEnabled = true;
if (movieClip.disabled != undefined){
movieClip.disabled.visible = false;
if (movieClip.out != undefined){
movieClip.out.visible = true;
};
if (movieClip.over != undefined){
movieClip.over.visible = false;
};
if (movieClip.down != undefined){
movieClip.down.visible = false;
};
};
if (onEvent != null){
onEvent(new TFEvent(TFEvent.EVENT_ENABLE, movieClip));
};
}
public function setFxOver(_arg1:TFSound){
this.fxOver = _arg1;
}
protected function onMCRollOver(_arg1:MouseEvent):void{
if ((((hitArea == null)) || ((hitArea.mouseEnabled == true)))){
if (movieClip.out != undefined){
movieClip.out.visible = false;
};
if (movieClip.over != undefined){
movieClip.over.visible = true;
};
if (movieClip.down != undefined){
movieClip.down.visible = false;
};
if (onEvent != null){
onEvent(new TFEvent(TFEvent.EVENT_MOUSEOVER, movieClip));
};
if (fxOver != null){
fxOver.play();
};
};
_arg1.updateAfterEvent();
}
protected function onMCClick(_arg1:MouseEvent):void{
if ((((hitArea == null)) || ((hitArea.mouseEnabled == true)))){
if (movieClip.out != undefined){
movieClip.out.visible = false;
};
if (movieClip.over != undefined){
movieClip.over.visible = true;
};
if (onEvent != null){
onEvent(new TFEvent(TFEvent.EVENT_MOUSECLICK, movieClip));
};
if (fxClick != null){
fxClick.play();
};
_arg1.updateAfterEvent();
};
}
public function setFxClick(_arg1:TFSound){
this.fxClick = _arg1;
}
public function setFxOut(_arg1:TFSound){
this.fxOut = _arg1;
}
protected function registerEvents(){
hitArea.addEventListener(MouseEvent.ROLL_OVER, onMCRollOver, false, 0, true);
hitArea.addEventListener(MouseEvent.ROLL_OUT, onMCRollOut, false, 0, true);
hitArea.addEventListener(MouseEvent.CLICK, onMCClick, false, 0, true);
hitArea.addEventListener(MouseEvent.MOUSE_DOWN, onMCDown, false, 0, true);
hitArea.addEventListener(MouseEvent.MOUSE_UP, onMCUp, false, 0, true);
}
protected function updateFields(){
if (movieClip.out != undefined){
movieClip.out.visible = true;
//unresolved jump
};
if (movieClip.over != undefined){
movieClip.over.visible = false;
//unresolved jump
};
if (movieClip.down != undefined){
movieClip.down.visible = false;
//unresolved jump
};
if (movieClip.disabled != undefined){
movieClip.disabled.visible = false;
//unresolved jump
};
if (movieClip.btnHitArea != null){
hitArea = movieClip.btnHitArea;
} else {
hitArea = movieClip;
};
}
protected function onMCRollOut(_arg1:MouseEvent):void{
if ((((hitArea == null)) || ((hitArea.mouseEnabled == true)))){
if (movieClip.out != undefined){
movieClip.out.visible = true;
};
if (movieClip.over != undefined){
movieClip.over.visible = false;
};
if (movieClip.down != undefined){
movieClip.down.visible = false;
};
if (onEvent != null){
onEvent(new TFEvent(TFEvent.EVENT_MOUSEOUT, movieClip));
};
if (fxOut != null){
fxOut.play();
};
};
_arg1.updateAfterEvent();
}
public function disable(){
hitArea.mouseEnabled = false;
if (movieClip.disabled != undefined){
movieClip.disabled.visible = true;
if (movieClip.out != undefined){
movieClip.out.visible = false;
};
} else {
if (movieClip.out != undefined){
movieClip.out.visible = true;
};
};
if (movieClip.over != undefined){
movieClip.over.visible = false;
};
if (movieClip.down != undefined){
movieClip.down.visible = false;
};
if (onEvent != null){
onEvent(new TFEvent(TFEvent.EVENT_DISABLE, movieClip));
};
}
protected function onMCUp(_arg1:MouseEvent):void{
if ((((hitArea == null)) || ((hitArea.mouseEnabled == true)))){
if (movieClip.down != undefined){
if (((((movieClip.down is MovieClip) == true)) && ((movieClip.down.currentFrame < 2)))){
movieClip.down.visible = false;
};
if (movieClip.out != undefined){
movieClip.out.visible = false;
};
if (movieClip.over != undefined){
movieClip.over.visible = true;
};
};
if (onEvent != null){
onEvent(new TFEvent(TFEvent.EVENT_MOUSEUP, movieClip));
};
};
_arg1.updateAfterEvent();
}
public function unregisterEvents(){
hitArea.removeEventListener(MouseEvent.ROLL_OVER, onMCRollOver, false);
hitArea.removeEventListener(MouseEvent.ROLL_OUT, onMCRollOut, false);
hitArea.removeEventListener(MouseEvent.CLICK, onMCClick, false);
hitArea.removeEventListener(MouseEvent.MOUSE_DOWN, onMCDown, false);
hitArea.removeEventListener(MouseEvent.MOUSE_UP, onMCUp, false);
}
protected function onMCDown(_arg1:MouseEvent):void{
if ((((hitArea == null)) || ((hitArea.mouseEnabled == true)))){
if (movieClip.down != undefined){
if (movieClip.out != undefined){
movieClip.out.visible = false;
};
if (movieClip.over != undefined){
movieClip.over.visible = false;
};
movieClip.down.visible = true;
if (((((movieClip.down is MovieClip) == true)) && ((movieClip.down.totalFrames > 1)))){
movieClip.down.gotoAndPlay(2);
};
};
if (onEvent != null){
onEvent(new TFEvent(TFEvent.EVENT_MOUSEDOWN, movieClip));
};
};
_arg1.updateAfterEvent();
}
}
}//package classes.basic.Button
Section 3
//TFSwitchButton (classes.basic.Button.TFSwitchButton)
package classes.basic.Button {
import flash.display.*;
import classes.basic.Events.*;
import classes.basic.MovieClip.*;
public class TFSwitchButton extends TFButton {
private var eventHandler:Function;
private var over:Boolean;
public function TFSwitchButton(_arg1:MovieClip, _arg2:Function){
this.over = false;
this.eventHandler = _arg2;
super(_arg1, onBtnEvent);
}
private function update(){
if (movieClip.out != undefined){
if (over){
movieClip.out.visible = false;
} else {
movieClip.out.visible = true;
};
//unresolved jump
};
if (movieClip.over != undefined){
if (over){
movieClip.over.visible = true;
} else {
movieClip.over.visible = false;
};
//unresolved jump
};
if (movieClip.down != undefined){
movieClip.down.visible = false;
//unresolved jump
};
if (movieClip.disabled != undefined){
movieClip.disabled.visible = false;
//unresolved jump
};
}
private function onLoadFrame(){
movieClip.stop();
update();
}
protected function onBtnEvent(_arg1:TFEvent){
switch (_arg1.event){
case TFEvent.EVENT_MOUSECLICK:
if (movieClip.currentFrame == 1){
off();
} else {
on();
};
break;
case TFEvent.EVENT_INIT:
break;
case TFEvent.EVENT_MOUSEOUT:
over = false;
break;
case TFEvent.EVENT_MOUSEOVER:
over = true;
break;
default:
if (eventHandler != null){
eventHandler(_arg1);
};
break;
};
}
public function on(){
movieClip.gotoAndStop("on");
TFMovieClip.addLabelScript(movieClip, "on", onLoadFrame);
if (eventHandler != null){
eventHandler(new TFEvent(TFEvent.EVENT_ON, movieClip));
};
}
public function off(){
movieClip.gotoAndStop("off");
TFMovieClip.addLabelScript(movieClip, "off", onLoadFrame);
if (eventHandler != null){
eventHandler(new TFEvent(TFEvent.EVENT_OFF, movieClip));
};
}
}
}//package classes.basic.Button
Section 4
//TFTextButton (classes.basic.Button.TFTextButton)
package classes.basic.Button {
import flash.display.*;
import classes.basic.Events.*;
import flash.text.*;
public class TFTextButton extends TFButton {
private var textValue:String;
private var eventHandler:Function;
private var vertAlignInitY:Number;
private var vertAlignFinishY:Number;
public function TFTextButton(_arg1:MovieClip, _arg2:String, _arg3:Function){
this.textValue = _arg2;
this.eventHandler = _arg3;
this.vertAlignInitY = -1;
this.vertAlignFinishY = -1;
super(_arg1, onBtnEvent);
}
private function updateVertAlign(){
if ((((this.vertAlignFinishY == -1)) || ((this.vertAlignInitY == -1)))){
return;
};
if (movieClip.out != undefined){
updateVertAlignMovieClip(movieClip.out);
};
if (movieClip.over != undefined){
updateVertAlignMovieClip(movieClip.over);
};
if (movieClip.down != undefined){
updateVertAlignMovieClip(movieClip.down);
};
if (movieClip.disable != undefined){
updateVertAlignMovieClip(movieClip.disable);
};
}
public function setVertAlign(_arg1:Number, _arg2:Number){
this.vertAlignInitY = _arg1;
this.vertAlignFinishY = _arg2;
if ((((this.vertAlignFinishY == -1)) || ((this.vertAlignInitY == -1)))){
return;
};
updateVertAlign();
}
protected function onBtnEvent(_arg1:TFEvent){
switch (_arg1.event){
case TFEvent.EVENT_MOUSECLICK:
break;
case TFEvent.EVENT_INIT:
onEventInit();
break;
case TFEvent.EVENT_MOUSEOUT:
break;
case TFEvent.EVENT_MOUSEOVER:
break;
};
if (eventHandler != null){
eventHandler(_arg1);
};
}
private function setTexts(){
if (movieClip.out != undefined){
movieClip.out.txtText.text = textValue;
//unresolved jump
};
if (movieClip.over != undefined){
movieClip.over.txtText.text = textValue;
//unresolved jump
};
if (movieClip.down != undefined){
movieClip.down.txtText.text = textValue;
//unresolved jump
};
if (movieClip.disable != undefined){
movieClip.disabled.txtText.text = textValue;
//unresolved jump
};
updateVertAlign();
}
private function updateVertAlignMovieClip(_arg1:MovieClip){
var _local2:Number;
var _local3:Number;
if ((this.vertAlignFinishY - this.vertAlignInitY) < _local2){
_arg1.txtText.y = this.vertAlignInitY;
} else {
_local2 = _arg1.txtText.textHeight;
_local3 = ((this.vertAlignFinishY - this.vertAlignInitY) - _local2);
_local3 = (_local3 / 2);
_local3 = Math.floor(_local3);
_arg1.txtText.y = (this.vertAlignInitY + _local3);
if (_arg1.txtText.y < this.vertAlignInitY){
_arg1.txtText.y = this.vertAlignInitY;
};
};
}
public function setText(_arg1:String){
this.textValue = _arg1;
setTexts();
}
protected function onEventInit(){
if (textValue != null){
setTexts();
};
}
}
}//package classes.basic.Button
Section 5
//TFEvent (classes.basic.Events.TFEvent)
package classes.basic.Events {
public class TFEvent {
public var transport:Object;
public var event:String;
public static const EVENT_PROFILE_LOAD:String = "EVENT_PROFILE_LOAD";
public static const EVENT_DISABLE:String = "EVENT_DISABLE";
public static const EVENT_OPTION_MUSICDECREASE:String = "EVENT_OPTION_MUSICDECREASE";
public static const EVENT_PROFILE_BACK:String = "EVENT_PROFILE_BACK";
public static const EVENT_OFF:String = "EVENT_OFF";
public static const EVENT_PROFILE_DELETE:String = "EVENT_PROFILE_DELETE";
public static const EVENT_OPTION_WINDOWMODE:String = "EVENT_OPTION_WINDOWMODE";
public static const EVENT_DIALOG_NO:String = "EVENT_DIALOG_NO";
public static const EVENT_MOUSEUP:String = "EVENT_MOUSEUP";
public static const EVENT_OPTION_SFXDECREASE:String = "EVENT_OPTION_SFXDECREASE";
public static const EVENT_OPTION_QUALITYDECREASE:String = "EVENT_OPTION_QUALITYDECREASE";
public static const EVENT_PROFILE_DUPLICATEOK:String = "EVENT_PROFILE_DUPLICATEOK";
public static const EVENT_STOP:String = "EVENT_STOP";
public static const EVENT_OPTION_MUSICINCREASE:String = "EVENT_OPTION_MUSICINCREASE";
public static const EVENT_MOUSEOUT:String = "EVENT_MOUSEOUT";
public static const EVENT_INIT:String = "EVENT_INIT";
public static const EVENT_LPAJSTART:String = "EVENT_LPAJSTART";
public static const EVENT_LPAJEND:String = "EVENT_LPAJEND";
public static const EVENT_MOUSEDOWN:String = "EVENT_MOUSEDOWN";
public static const EVENT_OPTION_QUALITYINCREASE:String = "EVENT_OPTION_QUALITYINCREASE";
public static const EVENT_FADEOUTEND:String = "EVENT_FADEOUTEND";
public static const EVENT_PROFILE_CONFIRMDELETEYES:String = "EVENT_PROFILE_CONFIRMDELETEYES";
public static const EVENT_OPTION_SFXINCREASE:String = "EVENT_OPTION_SFXINCREASE";
public static const EVENT_FADEINBEGIN:String = "EVENT_FADEINBEGIN";
public static const EVENT_PROFILE_DUPLICATE:String = "EVENT_PROFILE_DUPLICATE";
public static const EVENT_OPTION_SAVE:String = "EVENT_OPTION_SAVE";
public static const EVENT_DIALOG_YES:String = "EVENT_DIALOG_YES";
public static const EVENT_MOUSEMOVE:String = "EVENT_MOUSEMOVE";
public static const EVENT_ON:String = "EVENT_ON";
public static const EVENT_MOUSEOVER:String = "EVENT_MOUSEOVER";
public static const EVENT_PROFILE_CONFIRMDELETENO:String = "EVENT_PROFILE_CONFIRMDELETENO";
public static const EVENT_DIALOG_OK:String = "EVENT_DIALOG_OK";
public static const EVENT_PROFILE_CREATE:String = "EVENT_PROFILE_CREATE";
public static const EVENT_MOUSECLICK:String = "EVENT_MOUSECLICK";
public static const EVENT_FADEOUTBEGIN:String = "EVENT_FADEOUTBEGIN";
public static const EVENT_ENABLE:String = "EVENT_ENABLE";
public static const EVENT_LPAJAPEX:String = "EVENT_LPAJAPEX";
public static const EVENT_FADEINEND:String = "EVENT_FADEINEND";
public static const EVENT_PROFILE_INPUT:String = "EVENT_PROFILE_INPUT";
public static const EVENT_OPTION_CANCEL:String = "EVENT_OPTION_CANCEL";
public function TFEvent(_arg1:String, _arg2:Object){
this.event = _arg1;
this.transport = _arg2;
}
}
}//package classes.basic.Events
Section 6
//TFDragMouse (classes.basic.Mouse.TFDragMouse)
package classes.basic.Mouse {
import flash.display.*;
import classes.basic.MovieClip.*;
public class TFDragMouse extends TFMouseWeb {
protected var dragItens:Array;
public function TFDragMouse(_arg1:MovieClip){
super(_arg1);
dragItens = new Array();
}
public function getQtdDragItens():Number{
return (dragItens.length);
}
override public function register(){
super.register();
mcMouse.mcDrag.visible = false;
mcMouse.mcPointer.visible = true;
if ((((mcMouse.mcDummy == null)) || ((mcMouse.mcDummy == undefined)))){
};
}
public function addDragIten(_arg1:String, _arg2:MovieClip, _arg3:Object){
var _local4:Object;
_local4 = new Object();
_local4.mc = _arg2;
_local4.drag = _arg3;
mcMouse.mcDummy.addChild(_arg2);
dragItens[_arg1] = _local4;
dragItens.length++;
mcMouse.mcDrag.visible = true;
mcMouse.mcPointer.visible = false;
TFMovieClip.setMouseEnabled(mcMouse, false);
}
public function removeDragItem(_arg1:String):MovieClip{
var _local2:Object;
if (dragItens[_arg1] != null){
_local2 = dragItens[_arg1];
mcMouse.mcDummy.removeChild(_local2.mc);
dragItens[_arg1] = null;
dragItens.length--;
if (dragItens.length == 0){
mcMouse.mcDrag.visible = false;
mcMouse.mcPointer.visible = true;
};
TFMovieClip.setMouseEnabled(_local2.mc, true);
return (_local2.mc);
};
return (null);
}
}
}//package classes.basic.Mouse
Section 7
//TFMouseWeb (classes.basic.Mouse.TFMouseWeb)
package classes.basic.Mouse {
import classes.basic.Sound.*;
import flash.display.*;
import flash.events.*;
import classes.basic.Events.*;
import flash.geom.*;
import classes.basic.MovieClip.*;
import flash.ui.*;
import flash.utils.*;
public class TFMouseWeb {
private var bRegistered:Boolean;
private var scene:MovieClip;
private var pCoord:Point;
private var arEvents:Array;
protected var mcMouse:MovieClip;
private var fxMouseDown:TFSound;
public function TFMouseWeb(_arg1:MovieClip){
scene = _arg1;
bRegistered = false;
arEvents = new Array();
arEvents[TFEvent.EVENT_MOUSEMOVE] = new Array();
pCoord = new Point(0, 0);
scene.stage.addEventListener(MouseEvent.MOUSE_MOVE, onMouseMove, false, 0, true);
scene.stage.addEventListener(MouseEvent.CLICK, onMouseClick, false, 0, true);
scene.stage.addEventListener(MouseEvent.MOUSE_DOWN, onMouseDown, false, 0, true);
}
private function dispatchEvent(_arg1:TFEvent){
var _local2:Array;
var _local3:*;
_local2 = arEvents[_arg1.event];
for (_local3 in _local2) {
if (_local2[_local3](_arg1) == true){
break;
};
};
}
public function registerEvent(_arg1:String, _arg2:Function):Boolean{
arEvents[_arg1].push(_arg2);
return (true);
}
protected function onMouseDown(_arg1:MouseEvent):void{
if (bRegistered){
if (this.fxMouseDown != null){
this.fxMouseDown.play();
};
};
_arg1.updateAfterEvent();
}
public function removeImage(_arg1:String, _arg2:String){
var _local3:MovieClip;
if ((((_arg2 == null)) || ((_arg2 == "")))){
_local3 = mcMouse;
} else {
_local3 = MovieClip(mcMouse.getChildByName(_arg2));
};
_local3.removeChild(_local3.getChildByName(_arg1));
}
public function showIcon(_arg1:String){
this.mcMouse.gotoAndStop(_arg1);
}
protected function onMouseClick(_arg1:MouseEvent):void{
if (bRegistered){
if (mcMouse.splash != null){
mcMouse.splash.gotoAndPlay(2);
};
};
_arg1.updateAfterEvent();
}
public function register(){
var _local1:Class;
if (bRegistered){
return;
};
Mouse.hide();
_local1 = (getDefinitionByName("mouseCursor") as Class);
mcMouse = new (_local1);
scene.stage.addChild(mcMouse);
TFMovieClip.setMouseEnabled(mcMouse, false);
bRegistered = true;
}
public function attachImage(_arg1:String, _arg2:MovieClip, _arg3:String){
var mcTarget:MovieClip;
var p_frame = _arg1;
var p_mc = _arg2;
var p_target = _arg3;
mcMouse.gotoAndStop(p_frame);
TFMovieClip.addLabelScript(mcMouse, p_frame, function (){
TFMovieClip.addLabelScript(mcMouse, p_frame, null);
if ((((p_target == null)) || ((p_target == "")))){
mcTarget = mcMouse;
} else {
mcTarget = MovieClip(mcMouse.getChildByName(p_target));
};
mcTarget.addChild(p_mc);
TFMovieClip.setMouseEnabled(mcTarget, false);
});
}
protected function onMouseMove(_arg1:MouseEvent):void{
if (bRegistered){
mcMouse.x = (pCoord.x = scene.stage.mouseX);
mcMouse.y = (pCoord.y = scene.stage.mouseY);
dispatchEvent(new TFEvent(TFEvent.EVENT_MOUSEMOVE, (pCoord as Object)));
};
_arg1.updateAfterEvent();
}
public function setFxMouseDown(_arg1:TFSound){
this.fxMouseDown = _arg1;
}
public function unregister(){
if (!bRegistered){
return;
};
Mouse.show();
scene.mouseDummy.removeChild(DisplayObject(mcMouse));
bRegistered = false;
}
public function unregisterEvent(_arg1:String, _arg2:Function):Boolean{
var _local3:Array;
var _local4:Number;
_local3 = arEvents[_arg1];
_local4 = 0;
while (_local4 < _local3.length) {
if (_local3[_local4] == _arg2){
_local3.splice(_local4, 1);
return (true);
};
_local4++;
};
return (false);
}
}
}//package classes.basic.Mouse
Section 8
//TFMovieClip (classes.basic.MovieClip.TFMovieClip)
package classes.basic.MovieClip {
import flash.display.*;
public class TFMovieClip {
public static function setTextBalloon(_arg1:String, _arg2:MovieClip){
var _local3:Number;
var _local4:Number;
var _local5:Number;
_local3 = _arg2.txtDialog.width;
_local4 = _arg2.txtDialog.height;
_arg2.txtDialog.autoSize = "center";
_arg2.txtDialog.text = _arg1;
_local5 = (_local4 - _arg2.txtDialog.height);
_arg2.mcGlow.mcBody.height = (_arg2.mcGlow.mcBody.height - _local5);
_arg2.txtDialog.y = (_arg2.txtDialog.y + _local5);
}
public static function setMouseEnabled(_arg1:DisplayObjectContainer, _arg2:Boolean){
var _local3:uint;
var _local4:*;
_arg1.mouseEnabled = _arg2;
_local3 = 0;
while (_local3 < _arg1.numChildren) {
_local4 = _arg1.getChildAt(_local3);
if ((_local4 is MovieClip)){
setMouseEnabled(MovieClip(_local4), _arg2);
} else {
if ((_local4 is InteractiveObject)){
_arg1.mouseEnabled = _arg2;
};
};
_local3++;
};
}
public static function addLabelScript(_arg1:MovieClip, _arg2:String, _arg3:Function){
var _local4:Array;
var _local5:int;
_local4 = _arg1.currentLabels;
_local5 = 0;
while (_local5 < _local4.length) {
if (_local4[_local5].name == _arg2){
_arg1.addFrameScript((_local4[_local5].frame - 1), _arg3);
};
_local5++;
};
}
public static function getIndexLabel(_arg1:MovieClip, _arg2:String):int{
var _local3:*;
var _local4:Array;
var _local5:int;
_local3 = -1;
_local4 = _arg1.currentLabels;
_local5 = 0;
while (_local5 < _local4.length) {
if (_local4[_local5].name == _arg2){
_local3 = (_local5 + 1);
break;
};
_local5++;
};
return (_local3);
}
}
}//package classes.basic.MovieClip
Section 9
//TFPath (classes.basic.Path.TFPath)
package classes.basic.Path {
import flash.display.*;
import flash.geom.*;
import classes.basic.Algorithm.*;
public class TFPath {
private var arNodes:Array;
private var arCurrPath:Array;
private var iBaseSpeed:Number;
private var iCurrentSpeed:Number;
private var weightMatrix:Array;
private var iTimePos:Number;
private var bConstSpeed:Boolean;
private var bCalcSpeed:Boolean;
private var mcObject:MovieClip;
private var nodeEnd:TFPathNode;
public function TFPath(_arg1:Number, _arg2:Boolean, _arg3:MovieClip){
arNodes = new Array();
iBaseSpeed = _arg1;
iCurrentSpeed = _arg1;
bConstSpeed = _arg2;
bCalcSpeed = true;
mcObject = _arg3;
arCurrPath = null;
nodeEnd = null;
iTimePos = 0;
}
private function calcSpeed(_arg1:TFPathNode, _arg2:TFPathNode){
var _local3:Number;
_local3 = nodeDistance(_arg1, _arg2);
if (_local3 == 0){
iCurrentSpeed = iBaseSpeed;
} else {
iCurrentSpeed = (iBaseSpeed / _local3);
};
bCalcSpeed = false;
}
public function getWeightMatrix():Array{
var _local1:Number;
var _local2:Number;
var _local3:Number;
var _local4:Array;
var _local5:String;
var _local6:TFPathNode;
var _local7:Array;
var _local8:Number;
_local1 = arNodes.length;
_local4 = new Array(_local1);
_local2 = 0;
while (_local2 < _local1) {
_local5 = arNodes[_local2].getName();
_local4[_local5] = new Array(_local1);
_local3 = 0;
while (_local3 < _local1) {
_local4[_local5][arNodes[_local3].getName()] = 99999999;
_local3++;
};
_local4[_local5][_local5] = 0;
_local2++;
};
_local2 = 0;
while (_local2 < _local1) {
_local6 = arNodes[_local2];
_local7 = _local6.getNeighbors();
_local8 = _local7.length;
_local3 = 0;
while (_local3 < _local8) {
_local4[arNodes[_local2].getName()][_local7[_local3].getName()] = nodeDistance(arNodes[_local2], _local7[_local3]);
_local3++;
};
_local2++;
};
return (_local4);
}
public function createPathNode(_arg1:MovieClip){
arNodes.push(new TFPathNode(_arg1));
}
public function setPath(_arg1:TFPathNode, _arg2:TFPathNode):Boolean{
var _local3:Array;
_local3 = this.getWeightMatrix();
nodeEnd = _arg2;
arCurrPath = getPathUsingAlgorithm(arNodes, _arg1, _arg2, TFDijkstra.calculate, _local3);
nodeEnd.playAnimDest();
return ((arCurrPath.length > 0));
}
public function pushNeighbor(_arg1:Number, _arg2:Number){
arNodes[_arg1].pushNeighbor(arNodes[_arg2]);
}
public function process(_arg1:Function, _arg2:Object):Boolean{
var _local3:Boolean;
var _local4:Point;
_local3 = false;
if (arCurrPath == null){
return (true);
};
if (iTimePos == 1){
iTimePos = 0;
arCurrPath.splice(0, 1);
bCalcSpeed = true;
};
if ((((arCurrPath.length == 1)) || ((arCurrPath.length == 0)))){
arCurrPath = null;
nodeEnd.stopAnimDest();
nodeEnd = null;
_local3 = true;
} else {
if ((((bCalcSpeed == true)) && ((bConstSpeed == true)))){
calcSpeed(arCurrPath[0], arCurrPath[1]);
};
if (((((((((!((_arg1 == null))) && (!((_arg2 == null))))) && (!((arCurrPath[1] == null))))) && (!((arCurrPath[0] == null))))) && ((((iTimePos == 0)) || ((iTimePos == 1)))))){
_arg1.call(_arg2, mcObject, arCurrPath[0], arCurrPath[1]);
};
iTimePos = (iTimePos + iCurrentSpeed);
if (iTimePos > 1){
iTimePos = 1;
};
_local4 = getPosition(arCurrPath[1], arCurrPath[0], iTimePos);
mcObject.visible = false;
mcObject.x = _local4.x;
mcObject.y = _local4.y;
mcObject.visible = true;
};
return (_local3);
}
public function getNode(_arg1:Number):TFPathNode{
return (arNodes[_arg1]);
}
public function getNodes():Array{
return (arNodes);
}
public static function nodeDistance(_arg1:TFPathNode, _arg2:TFPathNode):Number{
return (distance(_arg1.getPoint(), _arg2.getPoint()));
}
private static function distance(_arg1:Point, _arg2:Point):Number{
var _local3:Point;
_local3 = new Point((_arg2.x - _arg1.x), (_arg2.y - _arg1.y));
return (Math.sqrt(((_local3.x * _local3.x) + (_local3.y * _local3.y))));
}
public static function getPathUsingAlgorithm(_arg1:Array, _arg2:TFPathNode, _arg3:TFPathNode, _arg4:Function, _arg5:Array):Array{
return (_arg4(_arg1, _arg2, _arg3, _arg5));
}
public static function getPosition(_arg1:TFPathNode, _arg2:TFPathNode, _arg3:Number):Point{
return (Point.interpolate(_arg1.getPoint(), _arg2.getPoint(), _arg3));
}
}
}//package classes.basic.Path
Section 10
//TFPathNode (classes.basic.Path.TFPathNode)
package classes.basic.Path {
import flash.display.*;
import flash.geom.*;
public class TFPathNode {
private var arNeighbors:Array;
private var pNode:MovieClip;
public function TFPathNode(_arg1:MovieClip){
this.pNode = _arg1;
this.arNeighbors = new Array();
this.pNode.userData = this;
}
public function getX():Number{
return (this.pNode.x);
}
public function getY():Number{
return (this.pNode.y);
}
public function playAnimDest(){
this.pNode.gotoAndPlay("loop");
}
public function getName():String{
return (this.pNode.name);
}
public function getPoint():Point{
return (new Point(this.pNode.x, this.pNode.y));
}
public function getNeighbors():Array{
return (this.arNeighbors);
}
public function pushNeighbor(_arg1:TFPathNode){
this.arNeighbors.push(_arg1);
}
public function stopAnimDest(){
this.pNode.gotoAndPlay("end");
}
public function reset(){
this.arNeighbors.splice(0);
}
public function getNode():MovieClip{
return (this.pNode);
}
}
}//package classes.basic.Path
Section 11
//TFSound (classes.basic.Sound.TFSound)
package classes.basic.Sound {
import flash.media.*;
public class TFSound {
private var iType:Number;
private var arSoundChannel:Array;
private var iVolume:Number;
private var bLoop:Boolean;
private var pClass:Sound;
private var pEventCallback:Function;
private var iFadeOutDuration:Number;
private var iFadeInDuration:Number;
public static var TYPE_MUSIC:Number = 0;
public static var TYPE_SFX:Number = 1;
public function TFSound(_arg1:Class, _arg2:Number, _arg3:Function=null, _arg4:Boolean=false, _arg5:Number=0, _arg6:Number=0){
this.iVolume = 0;
this.iType = _arg2;
this.bLoop = _arg4;
this.iFadeInDuration = _arg5;
this.iFadeOutDuration = _arg6;
this.pEventCallback = _arg3;
this.pClass = new (_arg1);
arSoundChannel = new Array();
}
public function stop():Boolean{
var _local1:Number;
_local1 = 0;
while (_local1 < arSoundChannel.length) {
arSoundChannel[_local1].stop();
_local1++;
};
return (true);
}
public function setVolume(_arg1:Number){
var _local2:Number;
iVolume = _arg1;
_local2 = 0;
while (_local2 < arSoundChannel.length) {
arSoundChannel[_local2].setVolume(_arg1);
_local2++;
};
}
public function execFadeOut(_arg1:Number){
var _local2:*;
for (_local2 in arSoundChannel) {
arSoundChannel[_local2].execFadeOut(_arg1);
};
}
public function setFadeOutDuration(_arg1:Number){
var _local2:*;
for (_local2 in arSoundChannel) {
arSoundChannel[_local2].setFadeOutDuration(_arg1);
};
}
public function process(_arg1:Object){
var _local2:*;
for (_local2 in arSoundChannel) {
arSoundChannel[_local2].process(_arg1);
if (arSoundChannel[_local2].getState() == TFSoundChannel.ST_STOPPED){
arSoundChannel.splice(_local2, 1);
};
};
}
public function getType():Number{
return (iType);
}
public function execFadeIn(_arg1:Number){
var _local2:*;
for (_local2 in arSoundChannel) {
arSoundChannel[_local2].execFadeIn(_arg1);
};
}
public function play():TFSoundChannel{
var _local1:Number;
var _local2:TFSoundChannel;
_local1 = arSoundChannel.length;
_local2 = new TFSoundChannel(pClass, iType, pEventCallback, bLoop, iFadeInDuration, iFadeOutDuration);
arSoundChannel.push(_local2);
_local2.setVolume(iVolume);
_local2.play();
return (_local2);
}
public function setFadeInDuration(_arg1:Number){
var _local2:*;
for (_local2 in arSoundChannel) {
arSoundChannel[_local2].setFadeInDuration(_arg1);
};
}
}
}//package classes.basic.Sound
Section 12
//TFSoundChannel (classes.basic.Sound.TFSoundChannel)
package classes.basic.Sound {
import flash.events.*;
import classes.basic.Events.*;
import flash.media.*;
import classes.basic.StateMachine.*;
public class TFSoundChannel {
private var iType:Number;
private var pSoundChannel:SoundChannel;
private var iFadeInDuration:Number;
private var iCurrentVolume:Number;
private var elapsedFadeTime:Number;
private var iVolume:Number;
private var bLoop:Boolean;
private var iFakeFadeOutDuration:Number;
private var pEventCallback:Function;
private var iFakeFadeInDuration:Number;
private var stMachine:TFStateMachine;
private var iFadeOutDuration:Number;
private var pSound:Sound;
private static var iNumChannels:Number = 0;
static var EVENT_STOP:String = "EVENT_STOP";
private static var MAX_CHANNELS:Number = 32;
public static var TYPE_MUSIC:Number = 0;
static var ST_STOPPED:String = "ST_STOPPED";
static var ST_PLAYING:String = "ST_PLAYING";
public static var TYPE_SFX:Number = 1;
static var ST_FADINGOUT:String = "ST_FADINGOUT";
static var EVENT_PLAY:String = "EVENT_PLAY";
static var ST_FADINGIN:String = "ST_FADINGIN";
public function TFSoundChannel(_arg1:Sound, _arg2:Number, _arg3:Function=null, _arg4:Boolean=false, _arg5:Number=0, _arg6:Number=0){
stMachine = new TFStateMachine(null);
stMachine.createEvent(EVENT_PLAY, null);
stMachine.createEvent(EVENT_STOP, null);
stMachine.createState(ST_FADINGIN, false, this, startFadeIn, processFadeIn, null);
stMachine.createState(ST_PLAYING, false, this, null, processPlay, null);
stMachine.createState(ST_FADINGOUT, false, this, startFadeOut, processFadeOut, null);
stMachine.createState(ST_STOPPED, false, this, startStopped, null, null);
stMachine.createTransition(ST_STOPPED, EVENT_PLAY, ST_FADINGIN);
stMachine.createTransition(ST_FADINGIN, EVENT_STOP, ST_STOPPED);
stMachine.createTransition(ST_FADINGIN, EVENT_PLAY, ST_PLAYING);
stMachine.createTransition(ST_PLAYING, EVENT_STOP, ST_FADINGOUT);
stMachine.createTransition(ST_FADINGOUT, EVENT_STOP, ST_STOPPED);
stMachine.createTransition(ST_PLAYING, EVENT_PLAY, ST_PLAYING);
stMachine.initialize(ST_STOPPED);
this.iType = _arg2;
this.bLoop = _arg4;
this.iFadeInDuration = _arg5;
this.iFadeOutDuration = _arg6;
this.pEventCallback = _arg3;
pSound = _arg1;
pSoundChannel = null;
iVolume = 0;
iCurrentVolume = 0;
elapsedFadeTime = 0;
}
private function applyVolumeToChannel(_arg1:Number){
var _local2:SoundTransform;
if (pSoundChannel == null){
return;
};
_local2 = pSoundChannel.soundTransform;
_local2.volume = _arg1;
pSoundChannel.soundTransform = _local2;
}
public function stop():Boolean{
if (pSoundChannel == null){
return (false);
};
return (stMachine.receiveEvent(EVENT_STOP));
}
private function startStopped(){
if (pSoundChannel){
pSoundChannel.stop();
pSoundChannel = null;
iNumChannels--;
};
if (pEventCallback != null){
pEventCallback(new TFEvent(TFEvent.EVENT_STOP, this));
};
}
private function startFadeIn(){
pSoundChannel = pSound.play(0, ((bLoop == true)) ? 9999999 : 1);
iNumChannels++;
if (pSoundChannel != null){
pSoundChannel.addEventListener(Event.SOUND_COMPLETE, soundCompleteHandler, false, 0, true);
} else {
soundCompleteHandler(null);
return;
};
if (iFadeInDuration == 0){
if (pEventCallback != null){
pEventCallback(new TFEvent(TFEvent.EVENT_FADEINBEGIN, this));
};
if (pEventCallback != null){
pEventCallback(new TFEvent(TFEvent.EVENT_FADEINEND, this));
};
applyVolumeToChannel((iVolume / 100));
stMachine.receiveEvent(EVENT_PLAY);
} else {
applyVolumeToChannel(0);
elapsedFadeTime = 0;
if (pEventCallback != null){
pEventCallback(new TFEvent(TFEvent.EVENT_FADEINBEGIN, this));
};
};
}
private function processFadeIn(_arg1:Object){
elapsedFadeTime = (elapsedFadeTime + _arg1.time);
if (elapsedFadeTime >= iFadeInDuration){
if (pEventCallback != null){
pEventCallback(new TFEvent(TFEvent.EVENT_FADEINEND, this));
};
applyVolumeToChannel((iVolume / 100));
stMachine.receiveEvent(EVENT_PLAY);
} else {
applyVolumeToChannel((((elapsedFadeTime * iVolume) / iFadeInDuration) / 100));
};
}
private function processFadeOut(_arg1:Object){
elapsedFadeTime = (elapsedFadeTime - _arg1.time);
if (elapsedFadeTime <= 0){
pSoundChannel.removeEventListener(Event.SOUND_COMPLETE, soundCompleteHandler);
pSoundChannel.stop();
pSoundChannel = null;
iNumChannels--;
if (pEventCallback != null){
pEventCallback(new TFEvent(TFEvent.EVENT_FADEOUTEND, this));
};
stMachine.receiveEvent(EVENT_STOP);
} else {
applyVolumeToChannel((((elapsedFadeTime * iVolume) / iFadeOutDuration) / 100));
};
}
private function soundCompleteHandler(_arg1:Event){
if (stMachine.getCurrentState().getName() == "ST_PLAYING"){
stMachine.receiveEvent(EVENT_STOP);
};
}
public function getState():String{
return (stMachine.getCurrentState().getName());
}
public function setVolume(_arg1:Number){
iVolume = _arg1;
if (((pSoundChannel) && ((stMachine.getCurrentState().getName() == ST_PLAYING)))){
applyVolumeToChannel((iVolume / 100));
};
}
public function execFadeOut(_arg1:Number){
elapsedFadeTime = _arg1;
this.iFakeFadeOutDuration = _arg1;
}
public function setFadeOutDuration(_arg1:Number){
this.iFadeOutDuration = _arg1;
}
private function processPlay(_arg1:Object){
if (iFakeFadeInDuration > 0){
elapsedFadeTime = (elapsedFadeTime + _arg1.time);
if (elapsedFadeTime >= iFakeFadeInDuration){
applyVolumeToChannel((iVolume / 100));
iFakeFadeInDuration = 0;
} else {
applyVolumeToChannel((((elapsedFadeTime * iVolume) / iFakeFadeInDuration) / 100));
};
} else {
if (iFakeFadeOutDuration > 0){
elapsedFadeTime = (elapsedFadeTime - _arg1.time);
if (elapsedFadeTime <= 0){
applyVolumeToChannel(0);
iFakeFadeOutDuration = 0;
} else {
applyVolumeToChannel((((elapsedFadeTime * iVolume) / iFakeFadeOutDuration) / 100));
};
};
};
if ((((iFadeOutDuration > 0)) && (!(bLoop)))){
if (pSoundChannel.position >= (pSound.length - iFadeOutDuration)){
stMachine.receiveEvent(EVENT_STOP);
};
};
}
private function startFadeOut(){
if (iFadeOutDuration == 0){
pSoundChannel.removeEventListener(Event.SOUND_COMPLETE, soundCompleteHandler);
pSoundChannel.stop();
pSoundChannel = null;
iNumChannels--;
if (pEventCallback != null){
pEventCallback(new TFEvent(TFEvent.EVENT_FADEOUTBEGIN, this));
};
if (pEventCallback != null){
pEventCallback(new TFEvent(TFEvent.EVENT_FADEOUTEND, this));
};
stMachine.receiveEvent(EVENT_STOP);
} else {
if (pEventCallback != null){
pEventCallback(new TFEvent(TFEvent.EVENT_FADEOUTBEGIN, this));
};
elapsedFadeTime = iFadeOutDuration;
};
}
public function getType():Number{
return (iType);
}
public function execFadeIn(_arg1:Number){
elapsedFadeTime = 0;
this.iFakeFadeInDuration = _arg1;
}
public function play():Boolean{
if (((!((pSoundChannel == null))) || ((iNumChannels >= MAX_CHANNELS)))){
return (false);
};
return (stMachine.receiveEvent(EVENT_PLAY));
}
public function process(_arg1:Object){
stMachine.process(_arg1);
}
public function setFadeInDuration(_arg1:Number){
this.iFadeInDuration = _arg1;
}
}
}//package classes.basic.Sound
Section 13
//TFSoundManager (classes.basic.Sound.TFSoundManager)
package classes.basic.Sound {
public class TFSoundManager {
private var arSound:Array;
private static var MUSIC_VOLUME:Number = 50;
public static var pInstance:TFSoundManager = new (TFSoundManager);
;
private static var SFX_VOLUME:Number = 100;
public function TFSoundManager(){
arSound = new Array();
}
public function setMusicVolume(_arg1:Number){
var _local2:TFSound;
var _local3:*;
if (_arg1 > 100){
_arg1 = 100;
} else {
if (_arg1 < 0){
_arg1 = 0;
};
};
MUSIC_VOLUME = _arg1;
for (_local3 in arSound) {
_local2 = (arSound[_local3] as TFSound);
if (_local2.getType() == TFSound.TYPE_MUSIC){
_local2.setVolume(MUSIC_VOLUME);
};
};
}
public function getMusicVolume():Number{
return (MUSIC_VOLUME);
}
public function removeSound(_arg1:TFSound):Boolean{
var _local2:Number;
_local2 = 0;
while (_local2 < arSound.length) {
if ((arSound[_local2] as TFSound) == _arg1){
_arg1.stop();
arSound.splice(_local2, 1);
return (true);
};
_local2++;
};
return (false);
}
public function addSound(_arg1:TFSound):Boolean{
var _local2:*;
for (_local2 in arSound) {
if ((arSound[_local2] as TFSound) == _arg1){
return (false);
};
};
arSound.push(_arg1);
switch (_arg1.getType()){
case TFSound.TYPE_MUSIC:
_arg1.setVolume(MUSIC_VOLUME);
break;
case TFSound.TYPE_SFX:
_arg1.setVolume(SFX_VOLUME);
break;
};
return (true);
}
public function process(_arg1:Object){
var _local2:*;
for (_local2 in arSound) {
(arSound[_local2] as TFSound).process(_arg1);
};
}
public function getSFXVolume():Number{
return (SFX_VOLUME);
}
public function setSFXVolume(_arg1:Number){
var _local2:TFSound;
var _local3:*;
if (_arg1 > 100){
_arg1 = 100;
} else {
if (_arg1 < 0){
_arg1 = 0;
};
};
SFX_VOLUME = _arg1;
for (_local3 in arSound) {
_local2 = (arSound[_local3] as TFSound);
if (_local2.getType() == TFSound.TYPE_SFX){
_local2.setVolume(SFX_VOLUME);
};
};
}
}
}//package classes.basic.Sound
Section 14
//TFStateMachine (classes.basic.StateMachine.TFStateMachine)
package classes.basic.StateMachine {
public class TFStateMachine {
private var listState:Array;
private var eventHandler:Function;
private var currentState:TFStateMachineState;
private var listTransition:Array;
private var listEvent:Array;
private var bReady:Boolean;
public static var SM_STATECHANGE:Number = 1;
public static var SM_EVENTARRIVE:Number = 5;
public static var SM_PROCESS:Number = 4;
public static var SM_EVENT:Number = 2;
public static var SM_ENDSTATE:Number = 3;
public static var SM_INITIALIZE:Number = 0;
public function TFStateMachine(_arg1:Function){
this.bReady = false;
this.listState = new Array();
this.listEvent = new Array();
this.listTransition = new Array();
this.eventHandler = _arg1;
this.currentState = null;
}
private function clearList(_arg1:Array){
var _local2:Object;
var _local3:*;
for (_local3 in _arg1) {
_local2 = _arg1.pop();
_local2.destroy();
};
}
public function getCurrentState():TFStateMachineState{
return (currentState);
}
private function init(_arg1:TFStateMachineState):Boolean{
if (this.currentState != null){
if (this.currentState.getCallBackStop() != null){
this.currentState.getCallBackStop().call(_arg1.getParam());
};
};
this.currentState = _arg1;
if (this.eventHandler != null){
this.eventHandler(SM_STATECHANGE, this.currentState);
if (this.currentState.isEndState()){
this.eventHandler(SM_ENDSTATE, this.currentState);
};
};
if (this.currentState.getCallBackStart() != null){
this.currentState.getCallBackStart().call(this.currentState.getParam());
};
return (true);
}
private function searchTransition(_arg1:String, _arg2:String):TFStateMachineTransition{
var _local3:Array;
var _local4:String;
var _local5:*;
_local3 = this.listTransition[((_arg1 + "-") + _arg2)];
if (_local3 == null){
throw (new Error((((("Transition state: " + _arg1) + " event: ") + _arg2) + " does not exist!")));
};
for (_local5 in _local3) {
_local4 = _local5;
break;
};
return (_local3[_local4]);
}
public function initialize(_arg1:String):Boolean{
var _local2:TFStateMachineState;
if (this.listTransition.length == 0){
throw (new Error("It does not have any transitions registered!"));
};
if (!this.existState(_arg1)){
throw (new Error((("State " + _arg1) + " does not exist!")));
};
_local2 = this.listState[_arg1];
if (this.eventHandler != null){
this.eventHandler(SM_INITIALIZE, _local2);
};
this.init(_local2);
this.bReady = true;
return (true);
}
private function existEvent(_arg1:String):Boolean{
return (!((listEvent[_arg1] == null)));
}
private function existState(_arg1:String):Boolean{
return (!((listState[_arg1] == null)));
}
private function existTransition(_arg1:String, _arg2:String, _arg3:String){
var _local4:Array;
_local4 = this.listTransition[((_arg1 + "-") + _arg2)];
if (_local4 == null){
return (false);
};
return (!((_local4[_arg3] == null)));
}
public function process(_arg1:Object){
if (!bReady){
throw (new Error("State Machine not initialized!"));
};
if (this.eventHandler != null){
this.eventHandler(SM_PROCESS, this.currentState);
};
if (this.currentState.getCallBackRun() != null){
(this.currentState.getCallBackRun() as Function).call(this.currentState.getParam(), _arg1);
};
}
public function createTransition(_arg1:String, _arg2:String, _arg3:String){
var _local4:TFStateMachineState;
var _local5:TFStateMachineEvent;
var _local6:TFStateMachineState;
var _local7:TFStateMachineTransition;
var _local8:Array;
var _local9:TFStateMachineTransition;
if (!this.existState(_arg1)){
throw (new Error((("State " + _arg1) + " does not exist!")));
};
if (!this.existState(_arg3)){
throw (new Error((("State " + _arg3) + " does not exist!")));
};
if (!existEvent(_arg2)){
throw (new Error((("Event " + _arg2) + " does not exist!")));
};
if (existTransition(_arg1, _arg2, _arg3)){
throw (new Error((((((("Transition " + _arg1) + "-") + _arg2) + "-") + _arg3) + " already exists!")));
};
_local4 = this.listState[_arg1];
_local5 = this.listEvent[_arg2];
_local6 = this.listState[_arg3];
_local9 = new TFStateMachineTransition(_local4, _local5, _local6);
_local8 = this.listTransition[((_arg1 + "-") + _arg2)];
if (_local8 == null){
_local8 = new Array();
this.listTransition[((_arg1 + "-") + _arg2)] = _local8;
this.listTransition.length++;
};
_local8[_arg3] = _local9;
_local8.length++;
}
public function createState(_arg1:String, _arg2:Boolean, _arg3:Object, _arg4:Function, _arg5:Function, _arg6:Function){
var _local7:TFStateMachineState;
if (this.existState(_arg1)){
throw (new Error((("State " + _arg1) + " already exists!")));
};
_local7 = new TFStateMachineState(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6);
this.listState[_arg1] = _local7;
this.listState.length++;
}
public function receiveEvent(_arg1:String):Boolean{
var _local2:TFStateMachineTransition;
if (!bReady){
throw (new Error("State Machine not initialized!"));
};
if (this.eventHandler != null){
this.eventHandler(SM_EVENT, this.listEvent[_arg1]);
};
if (this.currentState.isEndState()){
return (false);
};
if (!existEvent(_arg1)){
throw (new Error((("Event " + _arg1) + " does not exist!")));
};
if (this.eventHandler != null){
this.eventHandler(SM_EVENTARRIVE, this.listEvent[_arg1]);
};
_local2 = this.searchTransition(this.currentState.getName(), _arg1);
return (this.init(_local2.getNewState()));
}
public function destroy(){
this.clearList(this.listState);
this.clearList(this.listEvent);
this.clearList(this.listTransition);
delete ??getglobalscope
[this];
}
public function createEvent(_arg1:String, _arg2:Object){
var _local3:TFStateMachineEvent;
if (existEvent(_arg1)){
throw (new Error((("Event " + _arg1) + " already exists!")));
};
_local3 = new TFStateMachineEvent(_arg1, _arg2);
this.listEvent[_arg1] = _local3;
this.listEvent.length++;
}
}
}//package classes.basic.StateMachine
Section 15
//TFStateMachineEvent (classes.basic.StateMachine.TFStateMachineEvent)
package classes.basic.StateMachine {
public class TFStateMachineEvent {
private var objParam:Object;
private var strName:String;
public function TFStateMachineEvent(_arg1:String, _arg2:Object){
this.strName = _arg1;
this.objParam = _arg2;
}
function getName():String{
return (this.strName);
}
function destroy(){
delete ??getglobalscope
[this];
}
function getParam():Object{
return (this.objParam);
}
}
}//package classes.basic.StateMachine
Section 16
//TFStateMachineState (classes.basic.StateMachine.TFStateMachineState)
package classes.basic.StateMachine {
public class TFStateMachineState {
private var callBackRun:Function;
private var callBackStop:Function;
private var objParam:Object;
private var strName:String;
private var callBackStart:Function;
private var bEndState:Boolean;
public function TFStateMachineState(_arg1:String, _arg2:Boolean, _arg3:Object, _arg4:Function, _arg5:Function, _arg6:Function){
this.strName = _arg1;
this.bEndState = _arg2;
this.callBackStart = _arg4;
this.callBackRun = _arg5;
this.callBackStop = _arg6;
this.objParam = _arg3;
}
public function isEndState():Boolean{
return (this.bEndState);
}
public function getCallBackStop():Function{
return (this.callBackStop);
}
public function getName():String{
return (this.strName);
}
public function destroy(){
delete ??getglobalscope
[this];
}
public function getCallBackStart():Function{
return (this.callBackStart);
}
public function getCallBackRun():Function{
return (this.callBackRun);
}
public function getParam():Object{
return (this.objParam);
}
}
}//package classes.basic.StateMachine
Section 17
//TFStateMachineTransition (classes.basic.StateMachine.TFStateMachineTransition)
package classes.basic.StateMachine {
public class TFStateMachineTransition {
private var newState:TFStateMachineState;
private var currentState:TFStateMachineState;
private var event:TFStateMachineEvent;
public function TFStateMachineTransition(_arg1:TFStateMachineState, _arg2:TFStateMachineEvent, _arg3:TFStateMachineState){
this.currentState = _arg1;
this.newState = _arg3;
this.event = _arg2;
}
function getEvent():TFStateMachineEvent{
return (this.event);
}
function destroy(){
delete ??getglobalscope
[this];
}
function getCurrentState():TFStateMachineState{
return (this.currentState);
}
function getNewState():TFStateMachineState{
return (this.newState);
}
}
}//package classes.basic.StateMachine
Section 18
//TFURLNavigator (classes.basic.Utils.TFURLNavigator)
package classes.basic.Utils {
import flash.net.*;
import flash.external.*;
public class TFURLNavigator {
public static function changePage(_arg1, _arg2:String="_self"):void{
var _local3:URLRequest;
var _local4:String;
_local3 = ((_arg1 is String)) ? new URLRequest(_arg1) : _arg1;
if (!ExternalInterface.available){
navigateToURL(_local3, _arg2);
} else {
_local4 = String(ExternalInterface.call("function() {return navigator.userAgent;}")).toLowerCase();
if (((!((_local4.indexOf("firefox") == -1))) || (((!((_local4.indexOf("msie") == -1))) && ((uint(_local4.substr((_local4.indexOf("msie") + 5), 3)) >= 7)))))){
ExternalInterface.call("window.open", _local3.url, _arg2);
} else {
navigateToURL(_local3, _arg2);
};
};
}
}
}//package classes.basic.Utils
Section 19
//BathStation (classes.game.BathStation)
package classes.game {
import flash.display.*;
import flash.events.*;
import classes.global.*;
import classes.basic.MovieClip.*;
public class BathStation extends StationCustomerContainer {
private var uses:Number;
private var dirty:Boolean;
private var chanceDirty:Number;
public function BathStation(_arg1:MovieClip, _arg2:String){
super(_arg1, 5, _arg2);
addListener(EVENT_ADD, onAddCustomer);
addListener(EVENT_RETURN, onReturnCustomer);
addListener(EVENT_REMOVE, onRemoveCustomer);
chanceDirty = 0;
dirty = false;
uses = 0;
}
private function onFinishClean(){
TFMovieClip.addLabelScript(movieClip, "finishClean", null);
movieClip.gotoAndStop("empty");
dirty = false;
uses = 0;
chanceDirty = 0;
}
override protected function onMouseUp(){
if (Global.mouse.isEmpty()){
startEvent(EVENT_REQUEST_MAINCHAR);
} else {
if (!dirty){
super.onMouseUp();
} else {
if (Global.mouse.getLastLocal() != null){
Global.mouse.getLastLocal().addCustomer(Global.mouse.removeCustomer());
};
};
};
}
override protected function onMCRollOver(_arg1:MouseEvent):void{
if (((dirty) && (Global.mouse.isEmpty()))){
super.onMCRollOver(_arg1);
};
if (((!(dirty)) && (!(Global.mouse.isEmpty())))){
super.onMCRollOver(_arg1);
};
}
protected function onAddCustomer(_arg1:String, _arg2:CustomerContainer){
if (getTime() > 0){
start();
};
customer.getMovieClip().x = 50;
customer.getMovieClip().y = -20;
customer.getMovieClip().mcBody.gotoAndStop("bath");
}
public function clean(){
movieClip.gotoAndPlay("cleaning");
TFMovieClip.addLabelScript(movieClip, "finishClean", onFinishClean);
Global.soundsFX["cleaningStation"].play();
}
private function onRemoveCustomer(_arg1:String, _arg2:CustomerContainer){
if (dirty){
movieClip.gotoAndStop("dirty");
};
}
override public function onFinish(){
var _local1:Number;
super.onFinish();
Global.soundsFX["bubblingWater"].stop();
uses++;
if (uses == 3){
chanceDirty = 40;
};
if (uses > 3){
chanceDirty = (chanceDirty + 20);
};
if (chanceDirty > 0){
_local1 = (Math.random() * 100);
if (_local1 <= chanceDirty){
dirty = true;
};
};
}
public function isDirty(){
return (dirty);
}
override public function start(){
super.start();
Global.soundsFX["bubblingWater"].play();
}
private function onReturnCustomer(_arg1:String, _arg2:CustomerContainer){
customer.angry();
customer.getMovieClip().x = 50;
customer.getMovieClip().y = -20;
customer.getMovieClip().mcBody.gotoAndStop("bath");
}
}
}//package classes.game
Section 20
//CCGCustomer (classes.game.CCGCustomer)
package classes.game {
public class CCGCustomer extends Customer {
public function CCGCustomer(_arg1:String, _arg2:String, _arg3:Function, _arg4:Function, _arg5:Number, _arg6:Number, _arg7:Number, _arg8:Number){
super(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8);
}
override protected function neutral(){
super.neutral();
movieClip.mcFaceWait.gotoAndStop("neutral");
}
override protected function stressed(){
super.stressed();
movieClip.mcFaceWait.gotoAndPlay("stressed");
}
override protected function zen(){
super.zen();
movieClip.mcFaceWait.gotoAndStop("zen");
}
override protected function renewed(){
super.renewed();
movieClip.mcFaceWait.gotoAndStop("renewed");
}
override protected function nervous(){
super.nervous();
movieClip.mcFaceWait.gotoAndStop("nervous");
}
override public function setContainer(_arg1:CustomerContainer){
super.setContainer(_arg1);
if (_arg1 == null){
return;
};
if ((_arg1 is WaitingCustomerContainer)){
movieClip.mcFaceWait.visible = true;
movieClip.mcFace.visible = false;
movieClip.mcHeadWait.visible = true;
movieClip.mcHead.visible = false;
} else {
movieClip.mcFaceWait.visible = false;
movieClip.mcFace.visible = true;
movieClip.mcHeadWait.visible = false;
movieClip.mcHead.visible = true;
};
}
}
}//package classes.game
Section 21
//Customer (classes.game.Customer)
package classes.game {
import flash.display.*;
import flash.events.*;
import classes.global.*;
import classes.basic.MovieClip.*;
import flash.filters.*;
public class Customer {
private var delay:Number;
private var bmp:Bitmap;
private var container:CustomerContainer;
private var desire:String;
private var name:String;
private var isAngry:Number;
private var isZen:Boolean;
private var isGetCash:Boolean;
protected var movieClip:MovieClip;
private var numberDesires:Number;
private var stress:Number;
private var stressMeter:StressMeter;
private var usedStation:Array;
private var callbackIdle:Function;
private var increaseRate:Number;
private var callbackError:Function;
private var timeGlowZen:Number;
private var elapseTime:Number;
private var delayTime:Number;
private var disabled:Boolean;
public function Customer(_arg1:String, _arg2:String, _arg3:Function, _arg4:Function, _arg5:Number, _arg6:Number, _arg7:Number, _arg8:Number){
var _local9:Class;
var _local10:GlowFilter;
var _local11:Array;
super();
this.delay = _arg8;
this.disabled = false;
this.delayTime = 0;
this.timeGlowZen = 0;
this.name = _arg1;
this.elapseTime = 0;
this.desire = "";
this.isZen = false;
this.isGetCash = false;
this.increaseRate = _arg7;
this.numberDesires = _arg5;
this.usedStation = new Array();
this.callbackIdle = _arg3;
this.callbackError = _arg4;
_local9 = Global.main.getAsset(_arg2);
this.movieClip = new (_local9);
this.movieClip.mcBalloon.visible = false;
TFMovieClip.setMouseEnabled(this.movieClip, false);
_local10 = new GlowFilter(0, 1, 2, 2, 3, BitmapFilterQuality.HIGH, false, false);
_local11 = new Array();
_local11.push(_local10);
this.movieClip.filters = _local11;
this.stress = _arg6;
this.stressMeter = new StressMeter(movieClip.mcStressMeter);
this.stressMeter.update(this.stress);
if ((((this.stress >= 0)) && ((this.stress <= 15)))){
zen();
};
if ((((this.stress >= 16)) && ((this.stress <= 35)))){
renewed();
};
if ((((this.stress >= 36)) && ((this.stress <= 55)))){
neutral();
};
if ((((this.stress >= 56)) && ((this.stress <= 85)))){
nervous();
};
if ((((this.stress >= 86)) && ((this.stress <= 100)))){
stressed();
};
this.isAngry = 1;
}
public function getDesire():String{
return (this.desire);
}
public function setDesire(_arg1:String){
var symbol:String;
var pClass:Class;
var mc:MovieClip;
var bmpData:BitmapData;
var desire = _arg1;
switch (desire){
case Desires.ACUPUNCTURE:
symbol = "icon_acupuncture";
break;
case Desires.EXFOLIATING:
symbol = "icon_scrub";
break;
case Desires.HERB:
symbol = "icon_herb";
break;
case Desires.HYDRO:
symbol = "icon_hydro";
break;
case Desires.ICE:
symbol = "icon_ice";
break;
case Desires.MASSAGE:
symbol = "icon_massage";
break;
case Desires.OFURO:
symbol = "icon_ofuro";
break;
case Desires.SAUNA:
symbol = "icon_sauna";
break;
case Desires.SOLARIUM:
symbol = "icon_solarium";
break;
case Desires.SWIMMING:
symbol = "icon_swimming";
break;
case Desires.TOWEL:
symbol = "icon_towel";
break;
case Desires.YOGA:
symbol = "icon_yoga";
break;
case Desires.CASH:
symbol = "cash";
break;
};
pClass = Global.main.getAsset(symbol);
if (desire == Desires.CASH){
this.numberDesires = 0;
if (bmp != null){
try {
movieClip.mcBalloon.mcDummy.removeChild(bmp);
} catch(e:Error) {
};
};
mc = new (pClass);
movieClip.mcBalloon.mcDummy.addChild(mc);
} else {
bmpData = new pClass(26, 24);
if (bmp != null){
try {
movieClip.mcBalloon.mcDummy.removeChild(bmp);
} catch(e:Error) {
};
};
bmp = new Bitmap(bmpData);
movieClip.mcBalloon.mcDummy.addChild(bmp);
};
this.desire = desire;
Global.soundsFX["desire"].play();
showBallon();
}
public function getName():String{
return (this.name);
}
private function hideBallon(){
this.movieClip.mcBalloon.visible = false;
}
private function onExit(){
TFMovieClip.addLabelScript(movieClip, "exitLeaving", null);
TFMovieClip.addLabelScript(movieClip, "exitPaying", null);
this.disabled = true;
if (container != null){
container.removeCustomer();
};
}
public function exit(){
this.movieClip.filters = new Array();
movieClip.gotoAndPlay("leaving");
TFMovieClip.addLabelScript(movieClip, "exitLeaving", onExit);
}
public function angry(){
this.delayTime = 0;
this.isAngry = 1;
}
protected function zen(){
movieClip.mcFace.gotoAndStop("zen");
isZen = true;
timeGlowZen = 0;
}
public function getCash():Number{
var _local1:Number;
if (this.isGetCash){
return (0);
};
this.isGetCash = true;
_local1 = (10 * usedStation.length);
if ((((this.stress >= 0)) && ((this.stress <= 15)))){
_local1 = (_local1 + 5);
};
if ((((this.stress >= 16)) && ((this.stress <= 35)))){
_local1 = (_local1 + 3);
};
if ((((this.stress >= 36)) && ((this.stress <= 55)))){
_local1 = (_local1 + 0);
};
if ((((this.stress >= 56)) && ((this.stress <= 85)))){
_local1 = (_local1 - 2);
};
if ((((this.stress >= 86)) && ((this.stress <= 100)))){
_local1 = (_local1 - 4);
};
paying(_local1);
return (_local1);
}
public function setPosition(_arg1:Number, _arg2:Number){
movieClip.x = _arg1;
movieClip.y = _arg2;
}
public function isNextDesire():Boolean{
return ((this.numberDesires > 0));
}
private function paying(_arg1:Number){
this.movieClip.filters = new Array();
movieClip.gotoAndPlay("paying");
movieClip.mcNumber.mcText.text = String(_arg1);
TFMovieClip.addLabelScript(movieClip, "exitPaying", onExit);
}
public function addUseStation(_arg1:String){
if (_arg1 == desire){
this.isAngry = -1;
this.numberDesires--;
Global.soundsFX["correctStation"].play();
this.usedStation.push(_arg1);
} else {
angry();
this.desire = _arg1;
Global.soundsFX["wrongStation"].play();
callbackError(this);
};
hideBallon();
}
public function setContainer(_arg1:CustomerContainer){
this.container = _arg1;
}
protected function nervous(){
movieClip.mcFace.gotoAndStop("nervous");
isZen = false;
}
protected function neutral(){
movieClip.mcFace.gotoAndStop("neutral");
isZen = false;
}
public function checkUseDesire(_arg1:String):Boolean{
var _local2:Number;
if (this.desire == _arg1){
return (true);
};
_local2 = 0;
while (_local2 < this.usedStation.length) {
if (this.usedStation[_local2] == _arg1){
return (true);
};
_local2++;
};
return (false);
}
public function onIdle(){
angry();
callbackIdle(this);
}
protected function stressed(){
movieClip.mcFace.gotoAndPlay("stressed");
isZen = false;
}
public function isDisable():Boolean{
return (this.disabled);
}
public function getMovieClip():MovieClip{
return (movieClip);
}
protected function renewed(){
movieClip.mcFace.gotoAndStop("renewed");
isZen = false;
}
public function process(_arg1:Object){
var _local2:GlowFilter;
var _local3:String;
var _local4:Number;
var _local5:Number;
var _local6:Number;
var _local7:Array;
if (desire != Desires.CASH){
if (this.delayTime > this.delay){
this.elapseTime = (this.elapseTime + _arg1.time);
if (this.elapseTime > 1000){
switch (isAngry){
case 1:
this.stress = (this.stress + this.increaseRate);
if (this.stress > 100){
Global.soundsFX["exitCustomerAngry"].play();
exit();
};
break;
case 0:
break;
case -1:
this.stress = (this.stress - this.increaseRate);
if (this.stress < 0){
this.stress = 0;
};
break;
};
this.stressMeter.update(this.stress);
if ((((this.stress >= 0)) && ((this.stress <= 15)))){
zen();
};
if ((((this.stress >= 16)) && ((this.stress <= 35)))){
renewed();
};
if ((((this.stress >= 36)) && ((this.stress <= 55)))){
neutral();
};
if ((((this.stress >= 56)) && ((this.stress <= 85)))){
nervous();
};
if ((((this.stress >= 86)) && ((this.stress <= 100)))){
stressed();
};
elapseTime = (elapseTime - 1000);
};
} else {
this.delayTime = (this.delayTime + _arg1.time);
};
};
if (((isZen) && ((movieClip.currentFrame == 1)))){
this.timeGlowZen = (this.timeGlowZen + _arg1.time);
_local2 = GlowFilter(movieClip.filters[0]);
movieClip.filters.splice(0, movieClip.filters.length);
if (this.timeGlowZen < 500){
_local4 = ((0xFF / 500) * timeGlowZen);
_local5 = ((0xFF / 500) * timeGlowZen);
_local6 = ((125 / 500) * timeGlowZen);
if (_local4 > 0xFF){
_local4 = 0xFF;
};
if (_local5 > 0xFF){
_local5 = 0xFF;
};
if (_local6 > 0xFF){
_local6 = 0xFF;
};
} else {
_local4 = ((0xFF / 500) * Math.abs((timeGlowZen - 1000)));
_local5 = ((0xFF / 500) * Math.abs((timeGlowZen - 1000)));
_local6 = ((125 / 500) * Math.abs((timeGlowZen - 1000)));
if (this.timeGlowZen >= 1000){
this.timeGlowZen = 0;
};
};
_local3 = "0x";
if (_local4 <= 16){
_local3 = (_local3 + ("0" + _local4.toString(16)));
} else {
_local3 = (_local3 + _local4.toString(16));
};
if (_local5 <= 16){
_local3 = (_local3 + ("0" + _local5.toString(16)));
} else {
_local3 = (_local3 + _local5.toString(16));
};
if (_local6 <= 16){
_local3 = (_local3 + ("0" + _local6.toString(16)));
} else {
_local3 = (_local3 + _local6.toString(16));
};
_local2 = new GlowFilter(uint(_local3), 1, 2, 2, 3, BitmapFilterQuality.HIGH, false, false);
_local7 = new Array();
_local7.push(_local2);
this.movieClip.filters = _local7;
};
}
public function wait(){
this.isAngry = 0;
}
public function isExit():Boolean{
return ((movieClip.currentFrame > 1));
}
private function showBallon(){
this.movieClip.mcBalloon.visible = true;
}
}
}//package classes.game
Section 22
//CustomerContainer (classes.game.CustomerContainer)
package classes.game {
import flash.display.*;
import flash.events.*;
import classes.basic.Events.*;
import classes.global.*;
import flash.filters.*;
public class CustomerContainer {
protected var lastCustomer:Customer;
protected var customer:Customer;
protected var movieClip:MovieClip;
private var action:String;
private var listeners:Array;
public static var EVENT_RETURN:String = "EVENT_RETURN";
public static var EVENT_REMOVE:String = "EVENT_REMOVE";
public static var EVENT_ADD:String = "EVENT_ADD";
public function CustomerContainer(_arg1:MovieClip){
this.movieClip = _arg1;
this.listeners = new Array();
addEvent(EVENT_ADD);
addEvent(EVENT_REMOVE);
addEvent(EVENT_RETURN);
_arg1.addEventListener(MouseEvent.ROLL_OVER, onMCRollOver, false, 0, true);
_arg1.addEventListener(MouseEvent.ROLL_OUT, onMCRollOut, false, 0, true);
_arg1.addEventListener(MouseEvent.MOUSE_DOWN, onMCDown, false, 0, true);
_arg1.addEventListener(MouseEvent.MOUSE_UP, onMCUp, false, 0, true);
}
public function removeCustomer():Customer{
var _local1:Customer;
_local1 = this.customer;
customer.setContainer(null);
movieClip.mcDummy.removeChild(_local1.getMovieClip());
this.customer = null;
startEvent(EVENT_REMOVE);
return (_local1);
}
public function isEmpty():Boolean{
return ((customer == null));
}
protected function onMCRollOver(_arg1:MouseEvent):void{
var _local2:GlowFilter;
var _local3:Array;
_local2 = new GlowFilter(0xFFFF00, 1, 5, 5, 5, BitmapFilterQuality.HIGH, false, false);
_local3 = new Array();
_local3.push(_local2);
movieClip.filters = _local3;
}
protected function onMouseUp(){
if (((isEmpty()) && (!(Global.mouse.isEmpty())))){
addCustomer(Global.mouse.removeCustomer());
} else {
if (Global.mouse.getLastLocal() != null){
Global.mouse.getLastLocal().addCustomer(Global.mouse.removeCustomer());
};
};
}
protected function onMouseDown(){
if (((!(isEmpty())) && (!(customer.isExit())))){
Global.mouse.setLastLocal(this);
Global.mouse.addCustomer(removeCustomer());
};
}
protected function startEvent(_arg1:String){
var _local2:Number;
if (((!((this.listeners[_arg1] == undefined))) && (!((this.listeners[_arg1] == null))))){
_local2 = 0;
while (_local2 < this.listeners[_arg1].length) {
var _local3 = this.listeners[_arg1];
_local3[_local2](_arg1, this);
_local2++;
};
};
}
protected function onMCRollOut(_arg1:MouseEvent):void{
movieClip.filters = new Array();
}
public function addCustomer(_arg1:Customer){
if (_arg1 == null){
return;
};
this.customer = _arg1;
movieClip.mcDummy.addChild(_arg1.getMovieClip());
_arg1.setPosition(0, 0);
_arg1.setContainer(this);
if (this.lastCustomer != _arg1){
this.lastCustomer = _arg1;
startEvent(EVENT_ADD);
} else {
startEvent(EVENT_RETURN);
};
}
protected function onMCUp(_arg1:MouseEvent):void{
onMouseUp();
}
public function addListener(_arg1:String, _arg2:Function){
if (((!((this.listeners[_arg1] == undefined))) && (!((this.listeners[_arg1] == null))))){
this.listeners[_arg1].push(_arg2);
};
}
protected function onMCDown(_arg1:MouseEvent):void{
onMouseDown();
}
protected function addEvent(_arg1:String){
if ((((this.listeners[_arg1] == null)) || ((this.listeners[_arg1] == undefined)))){
this.listeners[_arg1] = new Array();
this.listeners.length++;
};
}
public function disableMouseEvent(){
movieClip.removeEventListener(MouseEvent.ROLL_OVER, onMCRollOver, false);
movieClip.removeEventListener(MouseEvent.ROLL_OUT, onMCRollOut, false);
movieClip.removeEventListener(MouseEvent.MOUSE_DOWN, onMCDown, false);
movieClip.removeEventListener(MouseEvent.MOUSE_UP, onMCUp, false);
}
}
}//package classes.game
Section 23
//Desires (classes.game.Desires)
package classes.game {
public class Desires {
public static var HYDRO:String = "HYDRO";
public static var EXFOLIATING:String = "EXFOLIATING";
public static var OFURO:String = "OFURO";
public static var SWIMMING:String = "SWIMMING";
public static var ACUPUNCTURE:String = "ACUPUNCTURE";
public static var TOWEL:String = "TOWEL";
public static var SOLARIUM:String = "SOLARIUM";
public static var CREAM:String = "CREAM";
public static var ICE:String = "ICE";
public static var HERB:String = "HERB";
public static var YOGA:String = "YOGA";
public static var MASSAGE:String = "MASSAGE";
public static var CASH:String = "CASH";
public static var CLEAN:String = "CLEAN";
public static var SAUNA:String = "SAUNA";
}
}//package classes.game
Section 24
//MainChar (classes.game.MainChar)
package classes.game {
import flash.display.*;
import flash.geom.*;
import classes.basic.Path.*;
import classes.global.*;
import classes.basic.MovieClip.*;
public class MainChar extends TFPath {
private var showGoalReached:Boolean;
private var isAction:Boolean;
private var currentNode:TFPathNode;
private var movieClip:MovieClip;
private var hand1:Bitmap;
private var hand2:Bitmap;
private var destNodes:Array;
private var onFinishWalking:Function;
private var isWalking:Boolean;
private var currentAnima:MovieClip;
private var baseNode:TFPathNode;
private static var ICE_PATHNODE:Number = 13;
private static var CLEAN_PATHNODE:Number = 18;
private static var ACUPUNCTURE_PATHNODE:Number = 6;
private static var SWIMMING_PATHNODE:Number = 12;
private static var OFURO_PATHNODE:Number = 16;
private static var SAUNA_PATHNODE:Number = 11;
private static var AUX5_PATHNODE:Number = 5;
private static var YOGA_PATHNODE:Number = 10;
private static var AUX3_PATHNODE:Number = 3;
private static var AUX1_PATHNODE:Number = 1;
private static var GARBAGECAM_PATHNODE:Number = 17;
private static var BASE_PATHNODE:Number = 0;
private static var HYDRO_PATHNODE:Number = 14;
private static var CREAM_PATHNODE:Number = 19;
private static var SOLARIUM_PATHNODE:Number = 8;
private static var AUX4_PATHNODE:Number = 4;
private static var EXFOLIATING_PATHNODE:Number = 7;
private static var AUX2_PATHNODE:Number = 2;
private static var HERB_PATHNODE:Number = 15;
private static var MASSAGE_PATHNODE:Number = 9;
public function MainChar(_arg1:Function){
showGoalReached = false;
movieClip = Global.main.mcMainChar;
movieClip.enabled = false;
movieClip.mouseEnabled = false;
this.onFinishWalking = _arg1;
super(8, true, movieClip);
destNodes = new Array();
this.isWalking = false;
this.isAction = false;
this.hand1 = null;
this.hand2 = null;
movieClip.mcNorth.visible = false;
movieClip.mcNorth.enabled = false;
movieClip.mcNorth.mouseEnabled = false;
movieClip.mcNorth.stop();
movieClip.mcNorth_hold1.visible = false;
movieClip.mcNorth_hold1.enabled = false;
movieClip.mcNorth_hold1.mouseEnabled = false;
movieClip.mcNorth_hold1.stop();
movieClip.mcNorth_hold2.visible = false;
movieClip.mcNorth_hold2.enabled = false;
movieClip.mcNorth_hold2.mouseEnabled = false;
movieClip.mcNorth_hold2.stop();
movieClip.mcNorthEast.visible = false;
movieClip.mcNorthEast.enabled = false;
movieClip.mcNorthEast.mouseEnabled = false;
movieClip.mcNorthEast.stop();
movieClip.mcNorthEast_hold1.visible = false;
movieClip.mcNorthEast_hold1.enabled = false;
movieClip.mcNorthEast_hold1.mouseEnabled = false;
movieClip.mcNorthEast_hold1.stop();
movieClip.mcNorthEast_hold2.visible = false;
movieClip.mcNorthEast_hold2.enabled = false;
movieClip.mcNorthEast_hold2.mouseEnabled = false;
movieClip.mcNorthEast_hold2.stop();
movieClip.mcNorthWest.visible = false;
movieClip.mcNorthWest.enabled = false;
movieClip.mcNorthWest.mouseEnabled = false;
movieClip.mcNorthWest.stop();
movieClip.mcNorthWest_hold1.visible = false;
movieClip.mcNorthWest_hold1.enabled = false;
movieClip.mcNorthWest_hold1.mouseEnabled = false;
movieClip.mcNorthWest_hold1.stop();
movieClip.mcNorthWest_hold2.visible = false;
movieClip.mcNorthWest_hold2.enabled = false;
movieClip.mcNorthWest_hold2.mouseEnabled = false;
movieClip.mcNorthWest_hold2.stop();
movieClip.mcSouth.visible = false;
movieClip.mcSouth.enabled = false;
movieClip.mcSouth.mouseEnabled = false;
movieClip.mcSouth.stop();
movieClip.mcSouth_hold1.visible = false;
movieClip.mcSouth_hold1.enabled = false;
movieClip.mcSouth_hold1.mouseEnabled = false;
movieClip.mcSouth_hold1.stop();
movieClip.mcSouth_hold2.visible = false;
movieClip.mcSouth_hold2.enabled = false;
movieClip.mcSouth_hold2.mouseEnabled = false;
movieClip.mcSouth_hold2.stop();
movieClip.mcSouthEast.visible = false;
movieClip.mcSouthEast.enabled = false;
movieClip.mcSouthEast.mouseEnabled = false;
movieClip.mcSouthEast.stop();
movieClip.mcSouthEast_hold1.visible = false;
movieClip.mcSouthEast_hold1.enabled = false;
movieClip.mcSouthEast_hold1.mouseEnabled = false;
movieClip.mcSouthEast_hold1.stop();
movieClip.mcSouthEast_hold2.visible = false;
movieClip.mcSouthEast_hold2.enabled = false;
movieClip.mcSouthEast_hold2.mouseEnabled = false;
movieClip.mcSouthEast_hold2.stop();
movieClip.mcSouthWest.visible = false;
movieClip.mcSouthWest.enabled = false;
movieClip.mcSouthWest.mouseEnabled = false;
movieClip.mcSouthWest.stop();
movieClip.mcSouthWest_hold1.visible = false;
movieClip.mcSouthWest_hold1.enabled = false;
movieClip.mcSouthWest_hold1.mouseEnabled = false;
movieClip.mcSouthWest_hold1.stop();
movieClip.mcSouthWest_hold2.visible = false;
movieClip.mcSouthWest_hold2.enabled = false;
movieClip.mcSouthWest_hold2.mouseEnabled = false;
movieClip.mcSouthWest_hold2.stop();
movieClip.mcEast.visible = false;
movieClip.mcEast.enabled = false;
movieClip.mcEast.mouseEnabled = false;
movieClip.mcEast.stop();
movieClip.mcEast_hold1.visible = false;
movieClip.mcEast_hold1.enabled = false;
movieClip.mcEast_hold1.mouseEnabled = false;
movieClip.mcEast_hold1.stop();
movieClip.mcEast_hold2.visible = false;
movieClip.mcEast_hold2.enabled = false;
movieClip.mcEast_hold2.mouseEnabled = false;
movieClip.mcEast_hold2.stop();
movieClip.mcWest.visible = false;
movieClip.mcWest.enabled = false;
movieClip.mcWest.mouseEnabled = false;
movieClip.mcWest.stop();
movieClip.mcWest_hold1.visible = false;
movieClip.mcWest_hold1.enabled = false;
movieClip.mcWest_hold1.mouseEnabled = false;
movieClip.mcWest_hold1.stop();
movieClip.mcWest_hold2.visible = false;
movieClip.mcWest_hold2.enabled = false;
movieClip.mcWest_hold2.mouseEnabled = false;
movieClip.mcWest_hold2.stop();
movieClip.mcActionEast.visible = false;
movieClip.mcActionEast.enabled = false;
movieClip.mcActionEast.mouseEnabled = false;
movieClip.mcActionEast.stop();
movieClip.mcActionWest.visible = false;
movieClip.mcActionWest.enabled = false;
movieClip.mcActionWest.mouseEnabled = false;
movieClip.mcActionWest.stop();
movieClip.mcActionPositive.visible = false;
movieClip.mcActionPositive.enabled = false;
movieClip.mcActionPositive.mouseEnabled = false;
movieClip.mcActionPositive.stop();
movieClip.mcActionNegative.visible = false;
movieClip.mcActionNegative.enabled = false;
movieClip.mcActionNegative.mouseEnabled = false;
movieClip.mcActionNegative.stop();
movieClip.mcWaiting_hold1.visible = false;
movieClip.mcWaiting_hold1.enabled = false;
movieClip.mcWaiting_hold1.mouseEnabled = false;
movieClip.mcWaiting_hold1.stop();
movieClip.mcWaiting_hold2.visible = false;
movieClip.mcWaiting_hold2.enabled = false;
movieClip.mcWaiting_hold2.mouseEnabled = false;
movieClip.mcWaiting_hold2.stop();
movieClip.mcWaiting.enabled = false;
movieClip.mcWaiting.mouseEnabled = false;
currentAnima = movieClip.mcWaiting;
createPathNode(Global.main.mcBasePathNode);
createPathNode(Global.main.mcAux1PathNode);
createPathNode(Global.main.mcAux2PathNode);
createPathNode(Global.main.mcAux3PathNode);
createPathNode(Global.main.mcAux4PathNode);
createPathNode(Global.main.mcAux5PathNode);
createPathNode(Global.main.mcAcupuncturePathNode);
createPathNode(Global.main.mcExfoliatingPathNode);
createPathNode(Global.main.mcSolariumPathNode);
createPathNode(Global.main.mcMassagePathNode);
createPathNode(Global.main.mcYogaPathNode);
createPathNode(Global.main.mcSaunaPathNode);
createPathNode(Global.main.mcSwimmingPathNode);
createPathNode(Global.main.mcIcePathNode);
createPathNode(Global.main.mcHydroPathNode);
createPathNode(Global.main.mcHerbPathNode);
createPathNode(Global.main.mcOfuroPathNode);
createPathNode(Global.main.mcGarbagecanPathNode);
createPathNode(Global.main.mcCleanPathNode);
createPathNode(Global.main.mcCreamPathNode);
if (Levels.indexStage == 0){
createNeighborStage1();
};
if (Levels.indexStage == 1){
createNeighborStage2();
};
if (Levels.indexStage == 2){
createNeighborStage3();
};
if (Levels.indexStage == 3){
createNeighborStage4();
};
currentNode = super.getNode(BASE_PATHNODE);
baseNode = super.getNode(BASE_PATHNODE);
movieClip.x = currentNode.getX();
movieClip.y = currentNode.getY();
}
private function north(){
currentAnima.visible = false;
currentAnima.stop();
if (((!((hand1 == null))) && (!((hand2 == null))))){
currentAnima = movieClip.mcNorth_hold2;
hand1.x = 54;
hand1.y = 24;
hand2.x = -3;
hand2.y = 41;
} else {
if (hand1 != null){
currentAnima = movieClip.mcNorth_hold1;
hand1.x = 54;
hand1.y = 24;
} else {
currentAnima = movieClip.mcNorth;
};
};
currentAnima.visible = true;
currentAnima.play();
}
public function processWalking(_arg1:Object){
var _local2:Object;
var _local3:Object;
if (isWalking){
if (super.process(onChangePathNode, this) == true){
currentNode = destNodes[0].node;
_local2 = destNodes[0];
destNodes.splice(0, 1);
this.onFinishWalking(_local2.name);
if (destNodes.length == 0){
if (currentNode != baseNode){
_local3 = new Object();
_local3.node = baseNode;
_local3.index = BASE_PATHNODE;
_local3.name = "BASE";
destNodes.push(_local3);
super.setPath(currentNode, baseNode);
} else {
if (isWalking){
isWalking = false;
waiting();
};
};
} else {
super.setPath(currentNode, destNodes[0].node);
};
};
};
}
public function addItem(_arg1:String){
var _local2:String;
var _local3:Class;
var _local4:BitmapData;
switch (_arg1){
case Desires.CREAM:
_local2 = "icon_cream";
break;
case Desires.CLEAN:
_local2 = "icon_cleaning";
break;
case Desires.TOWEL:
_local2 = "icon_towel";
break;
};
if (hand1 == null){
_local3 = Global.main.getAsset(_local2);
_local4 = new _local3(26, 24);
hand1 = new Bitmap(_local4);
hand1.name = _arg1;
movieClip.addChild(hand1);
waiting();
return;
};
if (hand2 == null){
_local3 = Global.main.getAsset(_local2);
_local4 = new _local3(26, 24);
hand2 = new Bitmap(_local4);
hand2.name = _arg1;
movieClip.addChild(hand2);
waiting();
return;
};
}
private function southWest(){
currentAnima.visible = false;
currentAnima.stop();
if (((!((hand1 == null))) && (!((hand2 == null))))){
currentAnima = movieClip.mcSouthWest_hold2;
hand1.x = 50;
hand1.y = 24;
hand2.x = -3;
hand2.y = 40;
} else {
if (hand1 != null){
currentAnima = movieClip.mcSouthWest_hold1;
hand1.x = 50;
hand1.y = 24;
} else {
currentAnima = movieClip.mcSouthWest;
};
};
currentAnima.visible = true;
currentAnima.play();
}
public function gotoAcupuncture(){
var _local1:Object;
_local1 = new Object();
_local1.node = super.getNode(SOLARIUM_PATHNODE);
_local1.index = SOLARIUM_PATHNODE;
_local1.name = Desires.ACUPUNCTURE;
destNodes.push(_local1);
if (!isWalking){
super.setPath(currentNode, destNodes[0].node);
if (!isAction){
isWalking = true;
};
};
}
public function gotoOfuro(){
var _local1:Object;
_local1 = new Object();
_local1.node = super.getNode(OFURO_PATHNODE);
_local1.index = OFURO_PATHNODE;
_local1.name = Desires.OFURO;
destNodes.push(_local1);
if (!isWalking){
super.setPath(currentNode, destNodes[0].node);
if (!isAction){
isWalking = true;
};
};
}
private function createNeighborStage1(){
pushNeighbor(BASE_PATHNODE, GARBAGECAM_PATHNODE);
pushNeighbor(BASE_PATHNODE, AUX3_PATHNODE);
pushNeighbor(BASE_PATHNODE, ICE_PATHNODE);
pushNeighbor(BASE_PATHNODE, EXFOLIATING_PATHNODE);
pushNeighbor(BASE_PATHNODE, SOLARIUM_PATHNODE);
pushNeighbor(GARBAGECAM_PATHNODE, BASE_PATHNODE);
pushNeighbor(GARBAGECAM_PATHNODE, MASSAGE_PATHNODE);
pushNeighbor(GARBAGECAM_PATHNODE, SOLARIUM_PATHNODE);
pushNeighbor(GARBAGECAM_PATHNODE, ICE_PATHNODE);
pushNeighbor(ICE_PATHNODE, GARBAGECAM_PATHNODE);
pushNeighbor(ICE_PATHNODE, BASE_PATHNODE);
pushNeighbor(ICE_PATHNODE, HYDRO_PATHNODE);
pushNeighbor(ICE_PATHNODE, AUX3_PATHNODE);
pushNeighbor(HYDRO_PATHNODE, ICE_PATHNODE);
pushNeighbor(HYDRO_PATHNODE, AUX3_PATHNODE);
pushNeighbor(HYDRO_PATHNODE, CLEAN_PATHNODE);
pushNeighbor(AUX3_PATHNODE, HYDRO_PATHNODE);
pushNeighbor(AUX3_PATHNODE, ICE_PATHNODE);
pushNeighbor(AUX3_PATHNODE, CLEAN_PATHNODE);
pushNeighbor(AUX3_PATHNODE, BASE_PATHNODE);
pushNeighbor(CLEAN_PATHNODE, HYDRO_PATHNODE);
pushNeighbor(CLEAN_PATHNODE, AUX3_PATHNODE);
pushNeighbor(CLEAN_PATHNODE, AUX4_PATHNODE);
pushNeighbor(AUX4_PATHNODE, CLEAN_PATHNODE);
pushNeighbor(AUX4_PATHNODE, SWIMMING_PATHNODE);
pushNeighbor(SWIMMING_PATHNODE, AUX4_PATHNODE);
pushNeighbor(SWIMMING_PATHNODE, SAUNA_PATHNODE);
pushNeighbor(SAUNA_PATHNODE, SWIMMING_PATHNODE);
pushNeighbor(SAUNA_PATHNODE, CREAM_PATHNODE);
pushNeighbor(SAUNA_PATHNODE, MASSAGE_PATHNODE);
pushNeighbor(CREAM_PATHNODE, SAUNA_PATHNODE);
pushNeighbor(CREAM_PATHNODE, MASSAGE_PATHNODE);
pushNeighbor(CREAM_PATHNODE, EXFOLIATING_PATHNODE);
pushNeighbor(MASSAGE_PATHNODE, EXFOLIATING_PATHNODE);
pushNeighbor(MASSAGE_PATHNODE, SAUNA_PATHNODE);
pushNeighbor(MASSAGE_PATHNODE, CREAM_PATHNODE);
pushNeighbor(MASSAGE_PATHNODE, GARBAGECAM_PATHNODE);
pushNeighbor(MASSAGE_PATHNODE, SOLARIUM_PATHNODE);
pushNeighbor(EXFOLIATING_PATHNODE, SOLARIUM_PATHNODE);
pushNeighbor(EXFOLIATING_PATHNODE, BASE_PATHNODE);
pushNeighbor(EXFOLIATING_PATHNODE, CREAM_PATHNODE);
pushNeighbor(EXFOLIATING_PATHNODE, MASSAGE_PATHNODE);
pushNeighbor(SOLARIUM_PATHNODE, MASSAGE_PATHNODE);
pushNeighbor(SOLARIUM_PATHNODE, EXFOLIATING_PATHNODE);
pushNeighbor(SOLARIUM_PATHNODE, BASE_PATHNODE);
pushNeighbor(SOLARIUM_PATHNODE, GARBAGECAM_PATHNODE);
}
private function createNeighborStage4(){
pushNeighbor(BASE_PATHNODE, EXFOLIATING_PATHNODE);
pushNeighbor(BASE_PATHNODE, OFURO_PATHNODE);
pushNeighbor(BASE_PATHNODE, GARBAGECAM_PATHNODE);
pushNeighbor(BASE_PATHNODE, SOLARIUM_PATHNODE);
pushNeighbor(BASE_PATHNODE, HERB_PATHNODE);
pushNeighbor(BASE_PATHNODE, AUX2_PATHNODE);
pushNeighbor(GARBAGECAM_PATHNODE, BASE_PATHNODE);
pushNeighbor(GARBAGECAM_PATHNODE, OFURO_PATHNODE);
pushNeighbor(GARBAGECAM_PATHNODE, HERB_PATHNODE);
pushNeighbor(GARBAGECAM_PATHNODE, ACUPUNCTURE_PATHNODE);
pushNeighbor(GARBAGECAM_PATHNODE, MASSAGE_PATHNODE);
pushNeighbor(HERB_PATHNODE, GARBAGECAM_PATHNODE);
pushNeighbor(HERB_PATHNODE, BASE_PATHNODE);
pushNeighbor(HERB_PATHNODE, OFURO_PATHNODE);
pushNeighbor(HERB_PATHNODE, AUX2_PATHNODE);
pushNeighbor(AUX2_PATHNODE, AUX1_PATHNODE);
pushNeighbor(AUX2_PATHNODE, HERB_PATHNODE);
pushNeighbor(AUX2_PATHNODE, GARBAGECAM_PATHNODE);
pushNeighbor(AUX2_PATHNODE, BASE_PATHNODE);
pushNeighbor(AUX1_PATHNODE, AUX2_PATHNODE);
pushNeighbor(AUX1_PATHNODE, ICE_PATHNODE);
pushNeighbor(AUX1_PATHNODE, HYDRO_PATHNODE);
pushNeighbor(ICE_PATHNODE, AUX1_PATHNODE);
pushNeighbor(HYDRO_PATHNODE, AUX1_PATHNODE);
pushNeighbor(HYDRO_PATHNODE, CLEAN_PATHNODE);
pushNeighbor(AUX3_PATHNODE, CLEAN_PATHNODE);
pushNeighbor(AUX3_PATHNODE, OFURO_PATHNODE);
pushNeighbor(OFURO_PATHNODE, BASE_PATHNODE);
pushNeighbor(OFURO_PATHNODE, AUX3_PATHNODE);
pushNeighbor(OFURO_PATHNODE, HERB_PATHNODE);
pushNeighbor(OFURO_PATHNODE, GARBAGECAM_PATHNODE);
pushNeighbor(CLEAN_PATHNODE, AUX3_PATHNODE);
pushNeighbor(CLEAN_PATHNODE, HYDRO_PATHNODE);
pushNeighbor(CLEAN_PATHNODE, AUX4_PATHNODE);
pushNeighbor(AUX4_PATHNODE, CLEAN_PATHNODE);
pushNeighbor(AUX4_PATHNODE, SWIMMING_PATHNODE);
pushNeighbor(SWIMMING_PATHNODE, AUX4_PATHNODE);
pushNeighbor(AUX4_PATHNODE, SAUNA_PATHNODE);
pushNeighbor(SAUNA_PATHNODE, SWIMMING_PATHNODE);
pushNeighbor(SAUNA_PATHNODE, MASSAGE_PATHNODE);
pushNeighbor(SAUNA_PATHNODE, CREAM_PATHNODE);
pushNeighbor(SAUNA_PATHNODE, YOGA_PATHNODE);
pushNeighbor(SAUNA_PATHNODE, AUX5_PATHNODE);
pushNeighbor(CREAM_PATHNODE, SAUNA_PATHNODE);
pushNeighbor(CREAM_PATHNODE, AUX5_PATHNODE);
pushNeighbor(CREAM_PATHNODE, EXFOLIATING_PATHNODE);
pushNeighbor(EXFOLIATING_PATHNODE, CREAM_PATHNODE);
pushNeighbor(EXFOLIATING_PATHNODE, BASE_PATHNODE);
pushNeighbor(EXFOLIATING_PATHNODE, SOLARIUM_PATHNODE);
pushNeighbor(EXFOLIATING_PATHNODE, ACUPUNCTURE_PATHNODE);
pushNeighbor(MASSAGE_PATHNODE, SOLARIUM_PATHNODE);
pushNeighbor(MASSAGE_PATHNODE, AUX5_PATHNODE);
pushNeighbor(MASSAGE_PATHNODE, GARBAGECAM_PATHNODE);
pushNeighbor(SOLARIUM_PATHNODE, MASSAGE_PATHNODE);
pushNeighbor(SOLARIUM_PATHNODE, EXFOLIATING_PATHNODE);
pushNeighbor(SOLARIUM_PATHNODE, BASE_PATHNODE);
pushNeighbor(SOLARIUM_PATHNODE, ACUPUNCTURE_PATHNODE);
pushNeighbor(ACUPUNCTURE_PATHNODE, SOLARIUM_PATHNODE);
pushNeighbor(ACUPUNCTURE_PATHNODE, GARBAGECAM_PATHNODE);
pushNeighbor(ACUPUNCTURE_PATHNODE, EXFOLIATING_PATHNODE);
}
public function gotoClean(){
var _local1:Object;
_local1 = new Object();
_local1.node = super.getNode(CLEAN_PATHNODE);
_local1.index = CLEAN_PATHNODE;
_local1.name = Desires.CLEAN;
destNodes.push(_local1);
if (!isWalking){
super.setPath(currentNode, destNodes[0].node);
if (!isAction){
isWalking = true;
};
};
}
public function gotoMassage(){
var _local1:Object;
_local1 = new Object();
_local1.node = super.getNode(MASSAGE_PATHNODE);
_local1.index = MASSAGE_PATHNODE;
_local1.name = Desires.MASSAGE;
destNodes.push(_local1);
if (!isWalking){
super.setPath(currentNode, destNodes[0].node);
if (!isAction){
isWalking = true;
};
};
}
private function createNeighborStage2(){
pushNeighbor(BASE_PATHNODE, EXFOLIATING_PATHNODE);
pushNeighbor(BASE_PATHNODE, AUX3_PATHNODE);
pushNeighbor(BASE_PATHNODE, GARBAGECAM_PATHNODE);
pushNeighbor(BASE_PATHNODE, SOLARIUM_PATHNODE);
pushNeighbor(BASE_PATHNODE, HERB_PATHNODE);
pushNeighbor(BASE_PATHNODE, AUX2_PATHNODE);
pushNeighbor(GARBAGECAM_PATHNODE, BASE_PATHNODE);
pushNeighbor(GARBAGECAM_PATHNODE, AUX2_PATHNODE);
pushNeighbor(GARBAGECAM_PATHNODE, HERB_PATHNODE);
pushNeighbor(GARBAGECAM_PATHNODE, SOLARIUM_PATHNODE);
pushNeighbor(GARBAGECAM_PATHNODE, MASSAGE_PATHNODE);
pushNeighbor(HERB_PATHNODE, GARBAGECAM_PATHNODE);
pushNeighbor(HERB_PATHNODE, BASE_PATHNODE);
pushNeighbor(HERB_PATHNODE, AUX2_PATHNODE);
pushNeighbor(AUX2_PATHNODE, AUX1_PATHNODE);
pushNeighbor(AUX2_PATHNODE, HERB_PATHNODE);
pushNeighbor(AUX2_PATHNODE, BASE_PATHNODE);
pushNeighbor(AUX2_PATHNODE, GARBAGECAM_PATHNODE);
pushNeighbor(AUX1_PATHNODE, AUX2_PATHNODE);
pushNeighbor(AUX1_PATHNODE, ICE_PATHNODE);
pushNeighbor(AUX1_PATHNODE, HYDRO_PATHNODE);
pushNeighbor(ICE_PATHNODE, AUX1_PATHNODE);
pushNeighbor(HYDRO_PATHNODE, AUX1_PATHNODE);
pushNeighbor(HYDRO_PATHNODE, CLEAN_PATHNODE);
pushNeighbor(AUX3_PATHNODE, CLEAN_PATHNODE);
pushNeighbor(AUX3_PATHNODE, BASE_PATHNODE);
pushNeighbor(CLEAN_PATHNODE, AUX3_PATHNODE);
pushNeighbor(CLEAN_PATHNODE, HYDRO_PATHNODE);
pushNeighbor(CLEAN_PATHNODE, AUX4_PATHNODE);
pushNeighbor(AUX4_PATHNODE, CLEAN_PATHNODE);
pushNeighbor(AUX4_PATHNODE, SWIMMING_PATHNODE);
pushNeighbor(SWIMMING_PATHNODE, AUX4_PATHNODE);
pushNeighbor(AUX4_PATHNODE, SAUNA_PATHNODE);
pushNeighbor(SAUNA_PATHNODE, SWIMMING_PATHNODE);
pushNeighbor(SAUNA_PATHNODE, MASSAGE_PATHNODE);
pushNeighbor(SAUNA_PATHNODE, CREAM_PATHNODE);
pushNeighbor(CREAM_PATHNODE, SAUNA_PATHNODE);
pushNeighbor(CREAM_PATHNODE, MASSAGE_PATHNODE);
pushNeighbor(CREAM_PATHNODE, EXFOLIATING_PATHNODE);
pushNeighbor(EXFOLIATING_PATHNODE, MASSAGE_PATHNODE);
pushNeighbor(EXFOLIATING_PATHNODE, CREAM_PATHNODE);
pushNeighbor(EXFOLIATING_PATHNODE, BASE_PATHNODE);
pushNeighbor(EXFOLIATING_PATHNODE, SOLARIUM_PATHNODE);
pushNeighbor(MASSAGE_PATHNODE, SOLARIUM_PATHNODE);
pushNeighbor(MASSAGE_PATHNODE, SAUNA_PATHNODE);
pushNeighbor(MASSAGE_PATHNODE, CREAM_PATHNODE);
pushNeighbor(MASSAGE_PATHNODE, EXFOLIATING_PATHNODE);
pushNeighbor(MASSAGE_PATHNODE, GARBAGECAM_PATHNODE);
pushNeighbor(SOLARIUM_PATHNODE, MASSAGE_PATHNODE);
pushNeighbor(SOLARIUM_PATHNODE, EXFOLIATING_PATHNODE);
pushNeighbor(SOLARIUM_PATHNODE, BASE_PATHNODE);
pushNeighbor(SOLARIUM_PATHNODE, GARBAGECAM_PATHNODE);
}
private function createNeighborStage3(){
pushNeighbor(BASE_PATHNODE, EXFOLIATING_PATHNODE);
pushNeighbor(BASE_PATHNODE, OFURO_PATHNODE);
pushNeighbor(BASE_PATHNODE, GARBAGECAM_PATHNODE);
pushNeighbor(BASE_PATHNODE, SOLARIUM_PATHNODE);
pushNeighbor(BASE_PATHNODE, HERB_PATHNODE);
pushNeighbor(BASE_PATHNODE, AUX2_PATHNODE);
pushNeighbor(GARBAGECAM_PATHNODE, BASE_PATHNODE);
pushNeighbor(GARBAGECAM_PATHNODE, OFURO_PATHNODE);
pushNeighbor(GARBAGECAM_PATHNODE, HERB_PATHNODE);
pushNeighbor(GARBAGECAM_PATHNODE, ACUPUNCTURE_PATHNODE);
pushNeighbor(GARBAGECAM_PATHNODE, MASSAGE_PATHNODE);
pushNeighbor(HERB_PATHNODE, GARBAGECAM_PATHNODE);
pushNeighbor(HERB_PATHNODE, BASE_PATHNODE);
pushNeighbor(HERB_PATHNODE, OFURO_PATHNODE);
pushNeighbor(HERB_PATHNODE, AUX2_PATHNODE);
pushNeighbor(AUX2_PATHNODE, AUX1_PATHNODE);
pushNeighbor(AUX2_PATHNODE, HERB_PATHNODE);
pushNeighbor(AUX2_PATHNODE, GARBAGECAM_PATHNODE);
pushNeighbor(AUX2_PATHNODE, BASE_PATHNODE);
pushNeighbor(AUX1_PATHNODE, AUX2_PATHNODE);
pushNeighbor(AUX1_PATHNODE, ICE_PATHNODE);
pushNeighbor(AUX1_PATHNODE, HYDRO_PATHNODE);
pushNeighbor(ICE_PATHNODE, AUX1_PATHNODE);
pushNeighbor(HYDRO_PATHNODE, AUX1_PATHNODE);
pushNeighbor(HYDRO_PATHNODE, CLEAN_PATHNODE);
pushNeighbor(AUX3_PATHNODE, CLEAN_PATHNODE);
pushNeighbor(AUX3_PATHNODE, OFURO_PATHNODE);
pushNeighbor(OFURO_PATHNODE, BASE_PATHNODE);
pushNeighbor(OFURO_PATHNODE, AUX3_PATHNODE);
pushNeighbor(OFURO_PATHNODE, HERB_PATHNODE);
pushNeighbor(OFURO_PATHNODE, GARBAGECAM_PATHNODE);
pushNeighbor(CLEAN_PATHNODE, AUX3_PATHNODE);
pushNeighbor(CLEAN_PATHNODE, HYDRO_PATHNODE);
pushNeighbor(CLEAN_PATHNODE, AUX4_PATHNODE);
pushNeighbor(AUX4_PATHNODE, CLEAN_PATHNODE);
pushNeighbor(AUX4_PATHNODE, SWIMMING_PATHNODE);
pushNeighbor(SWIMMING_PATHNODE, AUX4_PATHNODE);
pushNeighbor(AUX4_PATHNODE, SAUNA_PATHNODE);
pushNeighbor(SAUNA_PATHNODE, SWIMMING_PATHNODE);
pushNeighbor(SAUNA_PATHNODE, MASSAGE_PATHNODE);
pushNeighbor(SAUNA_PATHNODE, CREAM_PATHNODE);
pushNeighbor(CREAM_PATHNODE, SAUNA_PATHNODE);
pushNeighbor(CREAM_PATHNODE, MASSAGE_PATHNODE);
pushNeighbor(CREAM_PATHNODE, EXFOLIATING_PATHNODE);
pushNeighbor(EXFOLIATING_PATHNODE, MASSAGE_PATHNODE);
pushNeighbor(EXFOLIATING_PATHNODE, CREAM_PATHNODE);
pushNeighbor(EXFOLIATING_PATHNODE, BASE_PATHNODE);
pushNeighbor(EXFOLIATING_PATHNODE, SOLARIUM_PATHNODE);
pushNeighbor(EXFOLIATING_PATHNODE, ACUPUNCTURE_PATHNODE);
pushNeighbor(MASSAGE_PATHNODE, SOLARIUM_PATHNODE);
pushNeighbor(MASSAGE_PATHNODE, SAUNA_PATHNODE);
pushNeighbor(MASSAGE_PATHNODE, CREAM_PATHNODE);
pushNeighbor(MASSAGE_PATHNODE, EXFOLIATING_PATHNODE);
pushNeighbor(MASSAGE_PATHNODE, GARBAGECAM_PATHNODE);
pushNeighbor(SOLARIUM_PATHNODE, MASSAGE_PATHNODE);
pushNeighbor(SOLARIUM_PATHNODE, EXFOLIATING_PATHNODE);
pushNeighbor(SOLARIUM_PATHNODE, BASE_PATHNODE);
pushNeighbor(SOLARIUM_PATHNODE, ACUPUNCTURE_PATHNODE);
pushNeighbor(ACUPUNCTURE_PATHNODE, SOLARIUM_PATHNODE);
pushNeighbor(ACUPUNCTURE_PATHNODE, GARBAGECAM_PATHNODE);
pushNeighbor(ACUPUNCTURE_PATHNODE, EXFOLIATING_PATHNODE);
}
public function gotoGarbagecanClean(){
var _local1:Object;
_local1 = new Object();
_local1.node = super.getNode(GARBAGECAM_PATHNODE);
_local1.index = GARBAGECAM_PATHNODE;
_local1.name = "GARBAGECAN_CLEAN";
destNodes.push(_local1);
if (!isWalking){
super.setPath(currentNode, destNodes[0].node);
if (!isAction){
isWalking = true;
};
};
}
private function west(){
currentAnima.visible = false;
currentAnima.stop();
if (((!((hand1 == null))) && (!((hand2 == null))))){
currentAnima = movieClip.mcWest_hold2;
hand1.x = 50;
hand1.y = 24;
hand2.x = -3;
hand2.y = 40;
} else {
if (hand1 != null){
currentAnima = movieClip.mcWest_hold1;
hand1.x = 50;
hand1.y = 24;
} else {
currentAnima = movieClip.mcWest;
};
};
currentAnima.visible = true;
currentAnima.play();
}
public function removeAllItem(){
if (hand1 != null){
movieClip.removeChild(hand1);
hand1 = null;
};
if (hand2 != null){
movieClip.removeChild(hand2);
hand2 = null;
};
}
private function northEast(){
currentAnima.visible = false;
currentAnima.stop();
if (((!((hand1 == null))) && (!((hand2 == null))))){
currentAnima = movieClip.mcNorthEast_hold2;
hand1.x = 50;
hand1.y = 42;
hand2.x = -4;
hand2.y = 23;
} else {
if (hand1 != null){
currentAnima = movieClip.mcNorthEast_hold1;
hand1.x = 50;
hand1.y = 42;
} else {
currentAnima = movieClip.mcNorthEast;
};
};
currentAnima.visible = true;
currentAnima.play();
}
public function getQueueType(_arg1:Number):String{
return (destNodes[_arg1].name);
}
public function gotoSauna(){
var _local1:Object;
_local1 = new Object();
_local1.node = super.getNode(SAUNA_PATHNODE);
_local1.index = SAUNA_PATHNODE;
_local1.name = Desires.SAUNA;
destNodes.push(_local1);
if (!isWalking){
super.setPath(currentNode, destNodes[0].node);
if (!isAction){
isWalking = true;
};
};
}
public function removeItem(_arg1:String){
if (hand1.name == _arg1){
movieClip.removeChild(hand1);
hand1 = null;
if (hand2 != null){
hand1 = hand2;
hand1.x = -9;
hand1.y = 37;
hand2 = null;
};
waiting();
return;
};
if (hand2.name == _arg1){
movieClip.removeChild(hand2);
hand2 = null;
waiting();
return;
};
}
public function action(_arg1:String){
isWalking = false;
currentAnima.visible = false;
currentAnima.stop();
if (hand1 != null){
hand1.visible = false;
};
if (hand2 != null){
hand2.visible = false;
};
if (_arg1 == "west"){
currentAnima = movieClip.mcActionWest;
};
if (_arg1 == "east"){
currentAnima = movieClip.mcActionEast;
};
if (_arg1 == "cash"){
currentAnima = movieClip.mcActionPositive;
};
if (_arg1 == "error"){
currentAnima = movieClip.mcActionNegative;
};
currentAnima.gotoAndPlay(1);
currentAnima.visible = true;
this.isAction = true;
TFMovieClip.addLabelScript(currentAnima, "finish", onFinishAction);
}
public function gotoIce(){
var _local1:Object;
_local1 = new Object();
_local1.node = super.getNode(ICE_PATHNODE);
_local1.index = ICE_PATHNODE;
_local1.name = Desires.ICE;
destNodes.push(_local1);
if (!isWalking){
super.setPath(currentNode, destNodes[0].node);
if (!isAction){
isWalking = true;
};
};
}
private function south(){
currentAnima.visible = false;
currentAnima.stop();
if (((!((hand1 == null))) && (!((hand2 == null))))){
currentAnima = movieClip.mcSouth_hold2;
hand1.x = 50;
hand1.y = 24;
hand2.x = -3;
hand2.y = 41;
} else {
if (hand1 != null){
currentAnima = movieClip.mcSouth_hold1;
hand1.x = 50;
hand1.y = 24;
} else {
currentAnima = movieClip.mcSouth;
};
};
currentAnima.visible = true;
currentAnima.play();
}
public function gotoExfoliating(){
var _local1:Object;
_local1 = new Object();
_local1.node = super.getNode(MASSAGE_PATHNODE);
_local1.index = MASSAGE_PATHNODE;
_local1.name = Desires.EXFOLIATING;
destNodes.push(_local1);
if (!isWalking){
super.setPath(currentNode, destNodes[0].node);
if (!isAction){
isWalking = true;
};
};
}
private function waiting(){
currentAnima.visible = false;
currentAnima.stop();
if (((!((hand1 == null))) && (!((hand2 == null))))){
currentAnima = movieClip.mcWaiting_hold2;
hand1.x = 50;
hand1.y = 24;
hand2.x = -3;
hand2.y = 40;
} else {
if (hand1 != null){
currentAnima = movieClip.mcWaiting_hold1;
hand1.x = 50;
hand1.y = 24;
} else {
currentAnima = movieClip.mcWaiting;
};
};
currentAnima.visible = true;
}
private function onFinishAction(){
TFMovieClip.addLabelScript(currentAnima, "finish", null);
isWalking = true;
this.isAction = false;
if (hand1 != null){
hand1.visible = true;
};
if (hand2 != null){
hand2.visible = true;
};
if (destNodes.length == 0){
isWalking = false;
waiting();
};
}
private function onChangePathNode(_arg1:MovieClip, _arg2:TFPathNode, _arg3:TFPathNode){
var _local4:Point;
var _local5:Number;
var _local6:Number;
_local4 = new Point((_arg2.getX() - _arg3.getX()), (_arg2.getY() - _arg3.getY()));
_local5 = Math.atan2(_local4.y, _local4.x);
_local6 = ((180 * _local5) / Math.PI);
if ((((_local6 >= 67.5)) && ((_local6 <= 112.5)))){
north();
};
if ((((_local6 > 112.5)) && ((_local6 < 157.5)))){
northEast();
};
if ((((_local6 > 22.5)) && ((_local6 < 67.5)))){
northWest();
};
if ((((((_local6 <= -157.5)) && ((_local6 >= -180)))) || ((((_local6 >= 157.5)) && ((_local6 <= 180)))))){
east();
};
if ((((_local6 <= 22.5)) && ((_local6 >= -22.5)))){
west();
};
if ((((_local6 > -157.5)) && ((_local6 < -112.5)))){
southEast();
};
if ((((_local6 > -67.5)) && ((_local6 < -22.5)))){
southWest();
};
if ((((_local6 <= -67.5)) && ((_local6 >= -112.5)))){
south();
};
}
private function northWest(){
currentAnima.visible = false;
currentAnima.stop();
if (((!((hand1 == null))) && (!((hand2 == null))))){
currentAnima = movieClip.mcNorthWest_hold2;
hand1.x = 50;
hand1.y = 24;
hand2.x = -3;
hand2.y = 41;
} else {
if (hand1 != null){
currentAnima = movieClip.mcNorthWest_hold1;
hand1.x = 50;
hand1.y = 24;
} else {
currentAnima = movieClip.mcNorthWest;
};
};
currentAnima.visible = true;
currentAnima.play();
}
public function gotoHydro(){
var _local1:Object;
_local1 = new Object();
_local1.node = super.getNode(HYDRO_PATHNODE);
_local1.index = HYDRO_PATHNODE;
_local1.name = Desires.HYDRO;
destNodes.push(_local1);
if (!isWalking){
super.setPath(currentNode, destNodes[0].node);
if (!isAction){
isWalking = true;
};
};
}
public function isItem(_arg1:String){
if (((!((hand1 == null))) && ((hand1.name == _arg1)))){
return (true);
};
if (((!((hand2 == null))) && ((hand2.name == _arg1)))){
return (true);
};
return (false);
}
public function gotoCream(){
var _local1:Object;
_local1 = new Object();
_local1.node = super.getNode(CREAM_PATHNODE);
_local1.index = CREAM_PATHNODE;
_local1.name = Desires.CREAM;
destNodes.push(_local1);
if (!isWalking){
super.setPath(currentNode, destNodes[0].node);
if (!isAction){
isWalking = true;
};
};
}
public function gotoSwimming(){
var _local1:Object;
_local1 = new Object();
_local1.node = super.getNode(SWIMMING_PATHNODE);
_local1.index = SWIMMING_PATHNODE;
_local1.name = Desires.SWIMMING;
destNodes.push(_local1);
if (!isWalking){
super.setPath(currentNode, destNodes[0].node);
if (!isAction){
isWalking = true;
};
};
}
override public function createPathNode(_arg1:MovieClip){
_arg1.enabled = false;
_arg1.mouseEnabled = false;
super.createPathNode(_arg1);
}
public function gotoGarbagecanCream(){
var _local1:Object;
_local1 = new Object();
_local1.node = super.getNode(GARBAGECAM_PATHNODE);
_local1.index = GARBAGECAM_PATHNODE;
_local1.name = "GARBAGECAN_CREAN";
destNodes.push(_local1);
if (!isWalking){
super.setPath(currentNode, destNodes[0].node);
if (!isAction){
isWalking = true;
};
};
}
public function gotoTowel(){
var _local1:Object;
_local1 = new Object();
_local1.node = super.getNode(CLEAN_PATHNODE);
_local1.index = CLEAN_PATHNODE;
_local1.name = Desires.TOWEL;
destNodes.push(_local1);
if (!isWalking){
super.setPath(currentNode, destNodes[0].node);
if (!isAction){
isWalking = true;
};
};
}
public function checkQueue(_arg1:String):Number{
var _local2:Number;
var _local3:Number;
_local2 = 0;
_local3 = 0;
while (_local3 < this.destNodes.length) {
if (_arg1 == this.destNodes[_local3].name){
_local2++;
};
_local3++;
};
return (_local2);
}
private function southEast(){
currentAnima.visible = false;
currentAnima.stop();
if (((!((hand1 == null))) && (!((hand2 == null))))){
currentAnima = movieClip.mcSouthEast_hold2;
hand1.x = -4;
hand1.y = 25;
hand2.x = 49;
hand2.y = 40;
} else {
if (hand1 != null){
currentAnima = movieClip.mcSouthEast_hold1;
hand1.x = -4;
hand1.y = 25;
} else {
currentAnima = movieClip.mcSouthEast;
};
};
currentAnima.visible = true;
currentAnima.play();
}
public function gotoGarbagecanTowel(){
var _local1:Object;
_local1 = new Object();
_local1.node = super.getNode(GARBAGECAM_PATHNODE);
_local1.index = GARBAGECAM_PATHNODE;
_local1.name = "GARBAGECAN_TOWEL";
destNodes.push(_local1);
if (!isWalking){
super.setPath(currentNode, destNodes[0].node);
if (!isAction){
isWalking = true;
};
};
}
public function getIndexQueue():Number{
return (destNodes.length);
}
public function gotoHerb(){
var _local1:Object;
_local1 = new Object();
_local1.node = super.getNode(HERB_PATHNODE);
_local1.index = HERB_PATHNODE;
_local1.name = Desires.HERB;
destNodes.push(_local1);
if (!isWalking){
super.setPath(currentNode, destNodes[0].node);
if (!isAction){
isWalking = true;
};
};
}
public function gotoSolarium(){
var _local1:Object;
_local1 = new Object();
_local1.node = super.getNode(SOLARIUM_PATHNODE);
_local1.index = SOLARIUM_PATHNODE;
_local1.name = Desires.SOLARIUM;
destNodes.push(_local1);
if (!isWalking){
super.setPath(currentNode, destNodes[0].node);
if (!isAction){
isWalking = true;
};
};
}
public function gotoYoga(){
var _local1:Object;
_local1 = new Object();
_local1.node = super.getNode(YOGA_PATHNODE);
_local1.index = YOGA_PATHNODE;
_local1.name = Desires.YOGA;
destNodes.push(_local1);
if (!isWalking){
super.setPath(currentNode, destNodes[0].node);
if (!isAction){
isWalking = true;
};
};
}
public function addCash(_arg1:Number){
if (_arg1 > 0){
Global.cash = (Global.cash + _arg1);
Global.main.mcCash.text = (Global.xmlLocalization.symbol_cash + String(Global.cash));
if ((((Global.cash >= Number(Levels.stages.stage[Levels.indexStage].levels.level[Levels.indexLevel].goal))) && (!(showGoalReached)))){
Global.main.mcGoalReached.visible = true;
Global.main.mcGoalReached.gotoAndPlay("anima");
Global.main.mcGoalReached.mcGoal.mcText.text = Global.xmlLocalization.game.goalReached;
Global.main.mcGoalReached.mcGoalBlink.mcText.text = Global.xmlLocalization.game.goalReached;
showGoalReached = true;
};
Global.soundsFX["money"].play();
action("cash");
};
}
public function getQueueSize():Number{
return (destNodes.length);
}
private function east(){
currentAnima.visible = false;
currentAnima.stop();
if (((!((hand1 == null))) && (!((hand2 == null))))){
currentAnima = movieClip.mcEast_hold2;
hand1.x = -3;
hand1.y = 26;
hand2.x = 46;
hand2.y = 38;
} else {
if (hand1 != null){
currentAnima = movieClip.mcEast_hold1;
hand1.x = -3;
hand1.y = 26;
} else {
currentAnima = movieClip.mcEast;
};
};
currentAnima.visible = true;
currentAnima.play();
}
}
}//package classes.game
Section 25
//MainCharActionButton (classes.game.MainCharActionButton)
package classes.game {
import flash.display.*;
import classes.basic.Button.*;
public class MainCharActionButton extends TFButton {
public function MainCharActionButton(_arg1:MovieClip, _arg2:Function){
super(_arg1, _arg2);
_arg1.mcQueue.visible = false;
}
public function setQueue(_arg1:Number){
if (_arg1 > 0){
movieClip.mcQueue.visible = true;
movieClip.mcQueue.mcText.text = String(_arg1);
} else {
movieClip.mcQueue.visible = false;
};
}
}
}//package classes.game
Section 26
//ManagerGamePlay (classes.game.ManagerGamePlay)
package classes.game {
import classes.basic.Sound.*;
import flash.display.*;
import classes.basic.Events.*;
import classes.global.*;
import classes.basic.MovieClip.*;
import classes.basic.Button.*;
public class ManagerGamePlay {
private var chairsContainers:Array;
private var stationsContainer:Array;
private var lastTime:Number;
private var started:Boolean;
private var isShowScore:Boolean;
private var countCustomer:Number;
private var supplyClean:MainCharActionButton;
private var mainChar:MainChar;
private var garbagecanClean:MainCharActionButton;
private var numberCustomer:Number;
private var dialog:MovieClip;
private var timeCustomer:Number;
private var time:Number;
private var garbagecanCream:MainCharActionButton;
private var garbagecanTowel:MainCharActionButton;
private var maxCustomers:Number;
private var supplyCream:MainCharActionButton;
private var supplyTowel:MainCharActionButton;
private var customers:Array;
public function ManagerGamePlay(_arg1:Number, _arg2:Number, _arg3:Number){
var _local4:MovieClip;
var _local5:CustomerContainer;
var _local6:Number;
super();
this.numberCustomer = _arg3;
this.countCustomer = 0;
time = 0;
this.customers = new Array();
this.maxCustomers = _arg1;
this.timeCustomer = _arg2;
this.lastTime = (this.timeCustomer - 1000);
this.chairsContainers = new Array();
this.mainChar = new MainChar(onFinishWalking);
this.started = false;
isShowScore = false;
_local6 = 0;
while (_local6 < 6) {
switch (_local6){
case 0:
_local4 = Global.main.mcChair1;
break;
case 1:
_local4 = Global.main.mcChair2;
break;
case 2:
_local4 = Global.main.mcChair3;
break;
case 3:
_local4 = Global.main.mcChair4;
break;
case 4:
_local4 = Global.main.mcChair5;
break;
case 5:
_local4 = Global.main.mcChair6;
break;
};
_local5 = new WaitingCustomerContainer(_local4);
this.chairsContainers.push(_local5);
_local6++;
};
this.stationsContainer = new Array();
createStation();
supplyClean = new MainCharActionButton(Global.main.mcSupplyClean, onEventSupplyClean);
supplyTowel = new MainCharActionButton(Global.main.mcSupplyTowel, onEventSupplyTowel);
supplyCream = new MainCharActionButton(Global.main.mcSupplyCream, onEventSupplyCream);
garbagecanClean = new MainCharActionButton(Global.main.mcGarbagecanClean, onEventGarbagecanClean);
garbagecanTowel = new MainCharActionButton(Global.main.mcGarbagecanTowel, onEventGarbagecanTowel);
garbagecanCream = new MainCharActionButton(Global.main.mcGarbagecanCream, onEventGarbagecanCream);
Global.main.mcTextGoal.text = Global.xmlLocalization.game.goal;
Global.main.mcGoal.text = (Global.xmlLocalization.symbol_cash + String(Levels.stages.stage[Levels.indexStage].levels.level[Levels.indexLevel].goal));
Global.cash = 0;
Global.main.mcTextCash.text = Global.xmlLocalization.game.cash;
Global.main.mcCash.text = (Global.xmlLocalization.symbol_cash + String(Global.cash));
Global.main.mcLeft.text = String((this.numberCustomer - this.countCustomer));
switch (Levels.indexStage){
case 0:
Global.soundTrackStage1.play();
break;
case 1:
Global.soundTrackStage2.play();
break;
case 2:
Global.soundTrackStage3.play();
break;
case 3:
Global.soundTrackStage4.play();
break;
};
}
private function onEventGarbagecanClean(_arg1:TFEvent){
switch (_arg1.event){
case TFEvent.EVENT_MOUSEUP:
if (Global.mouse.getLastLocal() != null){
Global.mouse.getLastLocal().addCustomer(Global.mouse.removeCustomer());
};
break;
case TFEvent.EVENT_MOUSECLICK:
mainChar.gotoGarbagecanClean();
garbagecanClean.setQueue(mainChar.getIndexQueue());
Global.soundsFX["move_mainchar"].play();
break;
};
}
private function showScore(){
var _local1:Class;
mainChar.removeAllItem();
isShowScore = true;
Global.main.mcBathtub1.gotoAndStop("empty");
Global.main.mcBathtub2.gotoAndStop("empty");
Global.main.mcBathtub3.gotoAndStop("empty");
Global.main.mcBathtub4.gotoAndStop("empty");
Global.main.mcRoom1.gotoAndStop("empty");
Global.main.mcRoom2.gotoAndStop("empty");
Global.main.mcRoom3.gotoAndStop("empty");
_local1 = Global.main.getAsset("scoreScreen");
dialog = new (_local1);
TFMovieClip.addLabelScript(dialog, "loadScore", onLoadScore);
Global.main.mcDialogDummy.enabled = true;
Global.main.mcDialogDummy.mouseEnabled = true;
Global.main.mcDialogDummy.addChild(dialog);
dialog.x = 300;
dialog.y = 225;
if (Global.cash >= Levels.stages.stage[Levels.indexStage].levels.level[Levels.indexLevel].goal){
dialog.mcBgCompleted.visible = true;
dialog.mcBgFail.visible = false;
dialog.mcTitle.mcText.text = Global.xmlLocalization.scorescreen.title;
dialog.mcTitleBlink.mcText.text = Global.xmlLocalization.scorescreen.title;
} else {
dialog.mcBgCompleted.visible = false;
dialog.mcBgFail.visible = true;
dialog.mcTitle.mcText.text = Global.xmlLocalization.scorescreen.fail;
dialog.mcTitleBlink.mcText.text = Global.xmlLocalization.scorescreen.fail;
};
dialog.play();
TFMovieClip.addLabelScript(dialog, "levelText", onShowLevelText);
TFMovieClip.addLabelScript(dialog, "levelValue", onShowLevelValue);
TFMovieClip.addLabelScript(dialog, "totalText", onShowTotalText);
TFMovieClip.addLabelScript(dialog, "totalValue", onShowTotalValue);
if (Global.cash >= Levels.stages.stage[Levels.indexStage].levels.level[Levels.indexLevel].goal){
Global.soundLevelCompleted.play();
} else {
Global.soundLevelFail.play();
};
switch (Levels.indexStage){
case 0:
Global.soundTrackStage1.stop();
break;
case 1:
Global.soundTrackStage2.stop();
break;
case 2:
Global.soundTrackStage3.stop();
break;
case 3:
Global.soundTrackStage4.stop();
break;
};
}
private function createStation(){
var _local1:XMLList;
var _local2:StationCustomerContainer;
var _local3:*;
Global.main.mcTreatment1.visible = false;
Global.main.mcTreatment2.visible = false;
Global.main.mcTreatment3.visible = false;
Global.main.mcTreatment4.visible = false;
Global.main.mcBathtub1.visible = false;
Global.main.mcBathtub2.visible = false;
Global.main.mcBathtub3.visible = false;
Global.main.mcBathtub4.visible = false;
Global.main.mcRoom1.visible = false;
Global.main.mcRoom2.visible = false;
Global.main.mcRoom3.visible = false;
_local1 = Levels.stages.stage[Levels.indexStage].levels.level[Levels.indexLevel].stations.name;
for each (_local3 in _local1) {
switch (_local3.toString()){
case Desires.MASSAGE:
_local2 = new TreatmentStation(Global.main.mcTreatment1, Desires.MASSAGE);
break;
case Desires.SOLARIUM:
_local2 = new TreatmentStation(Global.main.mcTreatment2, Desires.SOLARIUM);
break;
case Desires.ACUPUNCTURE:
_local2 = new TreatmentStation(Global.main.mcTreatment3, Desires.ACUPUNCTURE);
break;
case Desires.EXFOLIATING:
_local2 = new TreatmentStation(Global.main.mcTreatment4, Desires.EXFOLIATING);
break;
case Desires.HYDRO:
_local2 = new BathStation(Global.main.mcBathtub1, Desires.HYDRO);
break;
case Desires.ICE:
_local2 = new BathStation(Global.main.mcBathtub2, Desires.ICE);
break;
case Desires.HERB:
_local2 = new BathStation(Global.main.mcBathtub3, Desires.HERB);
break;
case Desires.OFURO:
_local2 = new BathStation(Global.main.mcBathtub4, Desires.OFURO);
break;
case Desires.SAUNA:
_local2 = new RoomStation(Global.main.mcRoom1, Desires.SAUNA);
break;
case Desires.SWIMMING:
_local2 = new RoomStation(Global.main.mcRoom2, Desires.SWIMMING);
break;
case Desires.YOGA:
_local2 = new RoomStation(Global.main.mcRoom3, Desires.YOGA);
break;
};
if (_local2 != null){
_local2.addListener(StationCustomerContainer.EVENT_REQUEST_MAINCHAR, onRequestMainChar);
this.stationsContainer.push(_local2);
};
};
}
private function addCustomer(){
var _local1:Number;
var _local2:Number;
var _local3:Number;
var _local4:Number;
var _local5:Number;
var _local6:Customer;
if ((((this.customers.length >= this.maxCustomers)) || ((this.countCustomer >= this.numberCustomer)))){
return;
};
_local1 = 0;
while (_local1 < chairsContainers.length) {
if (((((chairsContainers[_local1].isEmpty()) && (!((chairsContainers[_local1] == Global.mouse.getLastLocal()))))) && ((this.countCustomer < this.numberCustomer)))){
_local2 = Math.random();
_local3 = Math.round(((Customers.xml.customer.length() - 1) * _local2));
_local4 = Math.round((Math.random() * (Levels.stages.stage[Levels.indexStage].levels.level[Levels.indexLevel].maxDesiresCustomer - Levels.stages.stage[Levels.indexStage].levels.level[Levels.indexLevel].minDesiresCustomer)));
_local4 = (_local4 + Number(Levels.stages.stage[Levels.indexStage].levels.level[Levels.indexLevel].minDesiresCustomer));
_local5 = (Number(Levels.stages.stage[Levels.indexStage].levels.level[Levels.indexLevel].stressMeterInitial) + Number(Customers.xml.customer[_local3].stress));
if (Customers.xml.customer[_local3].symbol.toString() != "customer8"){
_local6 = new Customer(Customers.xml.customer[_local3].name, Customers.xml.customer[_local3].symbol, onCustomerIdle, onCustomerError, _local4, _local5, Customers.xml.customer[_local3].increaseRate, Customers.xml.customer[_local3].delay);
} else {
_local6 = new CCGCustomer(Customers.xml.customer[_local3].name, Customers.xml.customer[_local3].symbol, onCustomerIdle, onCustomerError, _local4, _local5, Customers.xml.customer[_local3].increaseRate, Customers.xml.customer[_local3].delay);
};
_local6.onIdle();
customers.push(_local6);
this.countCustomer++;
chairsContainers[_local1].addCustomer(_local6);
break;
};
_local1++;
};
}
private function onCustomerError(_arg1:Customer){
mainChar.action("error");
}
private function onLoadScore(){
dialog.stop();
TFMovieClip.addLabelScript(dialog, "loadScore", null);
dialog.ok = new TFTextButton(dialog.btnOk, Global.xmlLocalization.scorescreen.ok, onEventScoreScreenOK);
dialog.ok.setFxOver(Global.soundsFX["mouse_over"]);
dialog.ok.setFxClick(Global.soundsFX["mouse_click"]);
}
private function onEventSupplyClean(_arg1:TFEvent){
switch (_arg1.event){
case TFEvent.EVENT_MOUSEUP:
if (Global.mouse.getLastLocal() != null){
Global.mouse.getLastLocal().addCustomer(Global.mouse.removeCustomer());
};
break;
case TFEvent.EVENT_MOUSECLICK:
if (mainChar.checkQueue(Desires.CLEAN) < 2){
mainChar.gotoClean();
supplyClean.setQueue(mainChar.getIndexQueue());
Global.soundsFX["move_mainchar"].play();
};
break;
};
}
private function onShowLevelText(){
TFMovieClip.addLabelScript(dialog, "levelText", null);
dialog.mcTextLevel.text = Global.xmlLocalization.scorescreen.levelscore;
}
private function onShowTotalValue(){
TFMovieClip.addLabelScript(dialog, "totalValue", null);
dialog.mcTotal.text = Global.score;
}
private function onEventScoreScreenOK(_arg1:TFEvent){
switch (_arg1.event){
case TFEvent.EVENT_MOUSECLICK:
Global.main.mcDialogDummy.enabled = false;
Global.main.mcDialogDummy.mouseEnabled = false;
Global.main.mcDialogDummy.removeChild(dialog);
dialog = null;
Global.manager.nextLevel();
break;
};
}
public function getTime():Number{
return (time);
}
private function onEventGarbagecanCream(_arg1:TFEvent){
switch (_arg1.event){
case TFEvent.EVENT_MOUSEUP:
if (Global.mouse.getLastLocal() != null){
Global.mouse.getLastLocal().addCustomer(Global.mouse.removeCustomer());
};
break;
case TFEvent.EVENT_MOUSECLICK:
mainChar.gotoGarbagecanCream();
garbagecanCream.setQueue(mainChar.getIndexQueue());
Global.soundsFX["move_mainchar"].play();
break;
};
}
private function onFinishWalking(_arg1:String){
var _local2:Number;
var _local3:Number;
var _local4:Number;
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local8:Number;
var _local9:Number;
var _local10:Number;
var _local11:Number;
switch (_arg1){
case Desires.CREAM:
mainChar.addItem(_arg1);
supplyCream.setQueue(0);
break;
case Desires.CLEAN:
mainChar.addItem(_arg1);
supplyClean.setQueue(0);
break;
case Desires.TOWEL:
mainChar.addItem(_arg1);
supplyTowel.setQueue(0);
break;
case Desires.EXFOLIATING:
case Desires.ACUPUNCTURE:
_local2 = 0;
while (_local2 < stationsContainer.length) {
if (stationsContainer[_local2].getType() == _arg1){
stationsContainer[_local2].setQueue(0);
if (stationsContainer[_local2].isCash()){
_local3 = stationsContainer[_local2].getCash();
mainChar.addCash(_local3);
return;
};
if (((((!(stationsContainer[_local2].isEmpty())) && (stationsContainer[_local2].isWaiting()))) && (mainChar.isItem(Desires.CREAM)))){
stationsContainer[_local2].start();
mainChar.removeItem(Desires.CREAM);
Global.soundsFX["treatment"].play();
mainChar.action("west");
};
break;
};
_local2++;
};
break;
case Desires.MASSAGE:
case Desires.SOLARIUM:
_local4 = 0;
while (_local4 < stationsContainer.length) {
if (stationsContainer[_local4].getType() == _arg1){
stationsContainer[_local4].setQueue(0);
if (stationsContainer[_local4].isCash()){
_local5 = stationsContainer[_local4].getCash();
mainChar.addCash(_local5);
return;
};
if (((((!(stationsContainer[_local4].isEmpty())) && (stationsContainer[_local4].isWaiting()))) && (mainChar.isItem(Desires.CREAM)))){
stationsContainer[_local4].start();
mainChar.removeItem(Desires.CREAM);
Global.soundsFX["treatment"].play();
mainChar.action("east");
};
break;
};
_local4++;
};
break;
case Desires.HERB:
case Desires.OFURO:
_local6 = 0;
while (_local6 < stationsContainer.length) {
if (stationsContainer[_local6].getType() == _arg1){
stationsContainer[_local6].setQueue(0);
if (stationsContainer[_local6].isCash()){
_local7 = stationsContainer[_local6].getCash();
mainChar.addCash(_local7);
return;
};
if (((stationsContainer[_local6].isDirty()) && (mainChar.isItem(Desires.CLEAN)))){
stationsContainer[_local6].clean();
mainChar.removeItem(Desires.CLEAN);
mainChar.action("east");
};
break;
};
_local6++;
};
break;
case Desires.HYDRO:
case Desires.ICE:
_local8 = 0;
while (_local8 < stationsContainer.length) {
if (stationsContainer[_local8].getType() == _arg1){
stationsContainer[_local8].setQueue(0);
if (stationsContainer[_local8].isCash()){
_local9 = stationsContainer[_local8].getCash();
mainChar.addCash(_local9);
return;
};
if (((stationsContainer[_local8].isDirty()) && (mainChar.isItem(Desires.CLEAN)))){
stationsContainer[_local8].clean();
mainChar.removeItem(Desires.CLEAN);
mainChar.action("west");
};
break;
};
_local8++;
};
break;
case Desires.YOGA:
case Desires.SWIMMING:
case Desires.SAUNA:
_local10 = 0;
while (_local10 < stationsContainer.length) {
if (stationsContainer[_local10].getType() == _arg1){
stationsContainer[_local10].setQueue(0);
if (stationsContainer[_local10].isCash()){
_local11 = stationsContainer[_local10].getCash();
mainChar.addCash(_local11);
return;
};
if (((stationsContainer[_local10].isDirty()) && (mainChar.isItem(Desires.TOWEL)))){
stationsContainer[_local10].clean();
mainChar.removeItem(Desires.TOWEL);
};
break;
};
_local10++;
};
break;
case "GARBAGECAN_TOWEL":
if (mainChar.isItem(Desires.TOWEL)){
mainChar.removeItem(Desires.TOWEL);
};
garbagecanTowel.setQueue(0);
break;
case "GARBAGECAN_CLEAN":
if (mainChar.isItem(Desires.CLEAN)){
mainChar.removeItem(Desires.CLEAN);
};
garbagecanClean.setQueue(0);
break;
case "GARBAGECAN_CREAN":
if (mainChar.isItem(Desires.CREAM)){
mainChar.removeItem(Desires.CREAM);
};
garbagecanCream.setQueue(0);
break;
};
updateQueue();
}
private function updateQueue(){
var _local1:Number;
var _local2:Number;
_local1 = 0;
while (_local1 < mainChar.getQueueSize()) {
switch (mainChar.getQueueType(_local1)){
case Desires.CREAM:
supplyCream.setQueue((_local1 + 1));
break;
case Desires.CLEAN:
supplyClean.setQueue((_local1 + 1));
break;
case Desires.TOWEL:
supplyTowel.setQueue((_local1 + 1));
break;
case Desires.EXFOLIATING:
case Desires.ACUPUNCTURE:
case Desires.MASSAGE:
case Desires.SOLARIUM:
case Desires.HERB:
case Desires.OFURO:
case Desires.HYDRO:
case Desires.ICE:
case Desires.YOGA:
case Desires.SWIMMING:
case Desires.SAUNA:
_local2 = 0;
while (_local2 < stationsContainer.length) {
if (stationsContainer[_local2].getType() == mainChar.getQueueType(_local1)){
stationsContainer[_local2].setQueue((_local1 + 1));
};
_local2++;
};
break;
case "GARBAGECAN_TOWEL":
garbagecanTowel.setQueue((_local1 + 1));
break;
case "GARBAGECAN_CLEAN":
garbagecanClean.setQueue((_local1 + 1));
break;
case "GARBAGECAN_CREAN":
garbagecanCream.setQueue((_local1 + 1));
break;
};
_local1++;
};
}
private function onCustomerIdle(_arg1:Customer){
var _local2:Number;
var _local3:Number;
var _local4:Boolean;
var _local5:Number;
var _local6:Number;
if (_arg1.isNextDesire()){
_local2 = int((stationsContainer.length * Math.random()));
_local3 = _local2;
_local4 = false;
while (_local4 == false) {
if (!_arg1.checkUseDesire(stationsContainer[_local3].getType())){
_local5 = 0;
_local6 = 0;
while (_local6 < customers.length) {
if (customers[_local6].getDesire() == this.stationsContainer[_local3].getType()){
_local5++;
};
_local6++;
};
if (_local5 < 2){
_arg1.setDesire(this.stationsContainer[_local3].getType());
return;
};
};
_local3++;
if (_local3 >= stationsContainer.length){
_local3 = 0;
};
if (_local3 == _local2){
_arg1.setDesire(Desires.CASH);
_local4 = true;
};
};
} else {
_arg1.setDesire(Desires.CASH);
};
}
private function onEventSupplyTowel(_arg1:TFEvent){
switch (_arg1.event){
case TFEvent.EVENT_MOUSEUP:
if (Global.mouse.getLastLocal() != null){
Global.mouse.getLastLocal().addCustomer(Global.mouse.removeCustomer());
};
break;
case TFEvent.EVENT_MOUSECLICK:
if (mainChar.checkQueue(Desires.TOWEL) < 2){
mainChar.gotoTowel();
supplyTowel.setQueue(mainChar.getIndexQueue());
Global.soundsFX["move_mainchar"].play();
};
break;
};
}
private function onEventGarbagecanTowel(_arg1:TFEvent){
switch (_arg1.event){
case TFEvent.EVENT_MOUSEUP:
if (Global.mouse.getLastLocal() != null){
Global.mouse.getLastLocal().addCustomer(Global.mouse.removeCustomer());
};
break;
case TFEvent.EVENT_MOUSECLICK:
mainChar.gotoGarbagecanTowel();
garbagecanTowel.setQueue(mainChar.getIndexQueue());
Global.soundsFX["move_mainchar"].play();
break;
};
}
private function onEventSupplyCream(_arg1:TFEvent){
switch (_arg1.event){
case TFEvent.EVENT_MOUSEUP:
if (Global.mouse.getLastLocal() != null){
Global.mouse.getLastLocal().addCustomer(Global.mouse.removeCustomer());
};
break;
case TFEvent.EVENT_MOUSECLICK:
if (mainChar.checkQueue(Desires.CREAM) < 2){
mainChar.gotoCream();
supplyCream.setQueue(mainChar.getIndexQueue());
Global.soundsFX["move_mainchar"].play();
};
break;
};
}
public function start(){
this.started = true;
}
private function onShowLevelValue(){
var _local1:Number;
var _local2:Number;
TFMovieClip.addLabelScript(dialog, "levelValue", null);
_local1 = (300 - int((time / 1000)));
if (_local1 < 0){
_local1 = 0;
};
if (Global.cash == 0){
_local1 = 0;
};
_local2 = 0;
if (Global.cash >= Levels.stages.stage[Levels.indexStage].levels.level[Levels.indexLevel].goal){
_local2 = ((Global.cash * 10) + (_local1 * 10));
};
Global.score = (Global.score + _local2);
dialog.mcLevel.text = _local2;
}
public function process(_arg1:Object){
var _local2:Array;
var _local3:Number;
var _local4:Number;
if (!this.started){
return;
};
_local2 = new Array();
_local3 = (this.customers.length - 1);
while (_local3 >= 0) {
if (this.customers[_local3].isDisable()){
this.customers.splice(_local3, 1);
} else {
this.customers[_local3].process(_arg1);
};
_local3--;
};
Global.main.mcLeft.text = String((this.numberCustomer - this.countCustomer));
if ((((((this.countCustomer >= this.numberCustomer)) && ((this.customers.length == 0)))) && (!(isShowScore)))){
showScore();
return;
};
time = (time + _arg1.time);
this.lastTime = (this.lastTime + _arg1.time);
if (lastTime > this.timeCustomer){
this.lastTime = 0;
addCustomer();
};
_local4 = 0;
while (_local4 < this.stationsContainer.length) {
this.stationsContainer[_local4].process(_arg1);
_local4++;
};
mainChar.processWalking(_arg1);
}
private function onShowTotalText(){
TFMovieClip.addLabelScript(dialog, "totalText", null);
dialog.mcTextTotal.text = Global.xmlLocalization.scorescreen.totalscore;
}
public function pause(){
var _local1:Number;
var _local2:TFSound;
var _local3:Number;
this.started = !(this.started);
if (this.started){
switch (Levels.indexStage){
case 0:
Global.soundTrackStage1.play();
break;
case 1:
Global.soundTrackStage2.play();
break;
case 2:
Global.soundTrackStage3.play();
break;
case 3:
Global.soundTrackStage4.play();
break;
};
_local1 = 0;
while (_local1 < stationsContainer.length) {
stationsContainer[_local1].playAnima();
_local1++;
};
} else {
Global.soundTrackStage1.stop();
Global.soundTrackStage2.stop();
Global.soundTrackStage3.stop();
Global.soundTrackStage4.stop();
for each (_local2 in Global.soundsFX) {
_local2.stop();
};
_local3 = 0;
while (_local3 < stationsContainer.length) {
stationsContainer[_local3].stopAnima();
_local3++;
};
};
}
private function onRequestMainChar(_arg1:String, _arg2:StationCustomerContainer){
if (mainChar.checkQueue(_arg2.getType()) == 0){
switch (_arg2.getType()){
case Desires.ACUPUNCTURE:
mainChar.gotoAcupuncture();
break;
case Desires.EXFOLIATING:
mainChar.gotoExfoliating();
break;
case Desires.MASSAGE:
mainChar.gotoMassage();
break;
case Desires.SOLARIUM:
mainChar.gotoSolarium();
break;
case Desires.YOGA:
mainChar.gotoYoga();
break;
case Desires.SAUNA:
mainChar.gotoSauna();
break;
case Desires.SWIMMING:
mainChar.gotoSwimming();
break;
case Desires.HYDRO:
mainChar.gotoHydro();
break;
case Desires.HERB:
mainChar.gotoHerb();
break;
case Desires.OFURO:
mainChar.gotoOfuro();
break;
case Desires.ICE:
mainChar.gotoIce();
break;
};
Global.soundsFX["move_mainchar"].play();
_arg2.setQueue(mainChar.getIndexQueue());
};
}
}
}//package classes.game
Section 27
//MouseCustomerContainer (classes.game.MouseCustomerContainer)
package classes.game {
import flash.display.*;
import classes.basic.Mouse.*;
public class MouseCustomerContainer extends TFDragMouse {
protected var customer:Customer;
private var lastLocal:CustomerContainer;
public function MouseCustomerContainer(_arg1:MovieClip){
super(_arg1);
register();
}
public function setLastLocal(_arg1:CustomerContainer){
this.lastLocal = _arg1;
}
public function removeCustomer():Customer{
var _local1:MovieClip;
var _local2:Customer;
_local1 = removeDragItem("customer");
this.lastLocal = null;
_local2 = this.customer;
this.customer = null;
return (_local2);
}
public function isEmpty():Boolean{
return ((getQtdDragItens() == 0));
}
public function addCustomer(_arg1:Customer){
addDragIten("customer", _arg1.getMovieClip(), _arg1);
this.customer = _arg1;
this.customer.wait();
this.customer.getMovieClip().x = 1;
this.customer.getMovieClip().y = -76;
if ((this.customer is CCGCustomer)){
this.customer.getMovieClip().mcBody.gotoAndStop("bath");
this.customer.getMovieClip().mcFaceWait.visible = false;
this.customer.getMovieClip().mcFace.visible = true;
this.customer.getMovieClip().mcHeadWait.visible = false;
this.customer.getMovieClip().mcHead.visible = true;
};
}
public function getLastLocal():CustomerContainer{
return (this.lastLocal);
}
}
}//package classes.game
Section 28
//ProgressMainChar (classes.game.ProgressMainChar)
package classes.game {
import flash.display.*;
import flash.geom.*;
import classes.basic.Path.*;
import classes.global.*;
import classes.basic.MovieClip.*;
public class ProgressMainChar extends TFPath {
private var currentNode:TFPathNode;
private var movieClip:MovieClip;
private var isWalking:Boolean;
private var currentAnima:MovieClip;
public static var STAGE4_PATHNODE:Number = 3;
public static var STAGE3_PATHNODE:Number = 2;
public static var STAGE2_PATHNODE:Number = 1;
public static var STAGE1_PATHNODE:Number = 0;
public function ProgressMainChar(){
movieClip = Global.main.mcMainChar;
movieClip.enabled = false;
movieClip.mouseEnabled = false;
super(8, true, movieClip);
this.isWalking = false;
movieClip.mcNorth.visible = false;
movieClip.mcNorth.enabled = false;
movieClip.mcNorth.mouseEnabled = false;
movieClip.mcNorth.stop();
movieClip.mcNorth_hold1.visible = false;
movieClip.mcNorth_hold1.enabled = false;
movieClip.mcNorth_hold1.mouseEnabled = false;
movieClip.mcNorth_hold1.stop();
movieClip.mcNorth_hold2.visible = false;
movieClip.mcNorth_hold2.enabled = false;
movieClip.mcNorth_hold2.mouseEnabled = false;
movieClip.mcNorth_hold2.stop();
movieClip.mcNorthEast.visible = false;
movieClip.mcNorthEast.enabled = false;
movieClip.mcNorthEast.mouseEnabled = false;
movieClip.mcNorthEast.stop();
movieClip.mcNorthEast_hold1.visible = false;
movieClip.mcNorthEast_hold1.enabled = false;
movieClip.mcNorthEast_hold1.mouseEnabled = false;
movieClip.mcNorthEast_hold1.stop();
movieClip.mcNorthEast_hold2.visible = false;
movieClip.mcNorthEast_hold2.enabled = false;
movieClip.mcNorthEast_hold2.mouseEnabled = false;
movieClip.mcNorthEast_hold2.stop();
movieClip.mcNorthWest.visible = false;
movieClip.mcNorthWest.enabled = false;
movieClip.mcNorthWest.mouseEnabled = false;
movieClip.mcNorthWest.stop();
movieClip.mcNorthWest_hold1.visible = false;
movieClip.mcNorthWest_hold1.enabled = false;
movieClip.mcNorthWest_hold1.mouseEnabled = false;
movieClip.mcNorthWest_hold1.stop();
movieClip.mcNorthWest_hold2.visible = false;
movieClip.mcNorthWest_hold2.enabled = false;
movieClip.mcNorthWest_hold2.mouseEnabled = false;
movieClip.mcNorthWest_hold2.stop();
movieClip.mcSouth.visible = false;
movieClip.mcSouth.enabled = false;
movieClip.mcSouth.mouseEnabled = false;
movieClip.mcSouth.stop();
movieClip.mcSouth_hold1.visible = false;
movieClip.mcSouth_hold1.enabled = false;
movieClip.mcSouth_hold1.mouseEnabled = false;
movieClip.mcSouth_hold1.stop();
movieClip.mcSouth_hold2.visible = false;
movieClip.mcSouth_hold2.enabled = false;
movieClip.mcSouth_hold2.mouseEnabled = false;
movieClip.mcSouth_hold2.stop();
movieClip.mcSouthEast.visible = false;
movieClip.mcSouthEast.enabled = false;
movieClip.mcSouthEast.mouseEnabled = false;
movieClip.mcSouthEast.stop();
movieClip.mcSouthEast_hold1.visible = false;
movieClip.mcSouthEast_hold1.enabled = false;
movieClip.mcSouthEast_hold1.mouseEnabled = false;
movieClip.mcSouthEast_hold1.stop();
movieClip.mcSouthEast_hold2.visible = false;
movieClip.mcSouthEast_hold2.enabled = false;
movieClip.mcSouthEast_hold2.mouseEnabled = false;
movieClip.mcSouthEast_hold2.stop();
movieClip.mcSouthWest.visible = false;
movieClip.mcSouthWest.enabled = false;
movieClip.mcSouthWest.mouseEnabled = false;
movieClip.mcSouthWest.stop();
movieClip.mcSouthWest_hold1.visible = false;
movieClip.mcSouthWest_hold1.enabled = false;
movieClip.mcSouthWest_hold1.mouseEnabled = false;
movieClip.mcSouthWest_hold1.stop();
movieClip.mcSouthWest_hold2.visible = false;
movieClip.mcSouthWest_hold2.enabled = false;
movieClip.mcSouthWest_hold2.mouseEnabled = false;
movieClip.mcSouthWest_hold2.stop();
movieClip.mcEast.visible = false;
movieClip.mcEast.enabled = false;
movieClip.mcEast.mouseEnabled = false;
movieClip.mcEast.stop();
movieClip.mcEast_hold1.visible = false;
movieClip.mcEast_hold1.enabled = false;
movieClip.mcEast_hold1.mouseEnabled = false;
movieClip.mcEast_hold1.stop();
movieClip.mcEast_hold2.visible = false;
movieClip.mcEast_hold2.enabled = false;
movieClip.mcEast_hold2.mouseEnabled = false;
movieClip.mcEast_hold2.stop();
movieClip.mcWest.visible = false;
movieClip.mcWest.enabled = false;
movieClip.mcWest.mouseEnabled = false;
movieClip.mcWest.stop();
movieClip.mcWest_hold1.visible = false;
movieClip.mcWest_hold1.enabled = false;
movieClip.mcWest_hold1.mouseEnabled = false;
movieClip.mcWest_hold1.stop();
movieClip.mcWest_hold2.visible = false;
movieClip.mcWest_hold2.enabled = false;
movieClip.mcWest_hold2.mouseEnabled = false;
movieClip.mcWest_hold2.stop();
movieClip.mcActionEast.visible = false;
movieClip.mcActionEast.enabled = false;
movieClip.mcActionEast.mouseEnabled = false;
movieClip.mcActionEast.stop();
movieClip.mcActionWest.visible = false;
movieClip.mcActionWest.enabled = false;
movieClip.mcActionWest.mouseEnabled = false;
movieClip.mcActionWest.stop();
movieClip.mcActionPositive.visible = false;
movieClip.mcActionPositive.enabled = false;
movieClip.mcActionPositive.mouseEnabled = false;
movieClip.mcActionPositive.stop();
movieClip.mcActionNegative.visible = false;
movieClip.mcActionNegative.enabled = false;
movieClip.mcActionNegative.mouseEnabled = false;
movieClip.mcActionNegative.stop();
movieClip.mcWaiting_hold1.visible = false;
movieClip.mcWaiting_hold1.enabled = false;
movieClip.mcWaiting_hold1.mouseEnabled = false;
movieClip.mcWaiting_hold1.stop();
movieClip.mcWaiting_hold2.visible = false;
movieClip.mcWaiting_hold2.enabled = false;
movieClip.mcWaiting_hold2.mouseEnabled = false;
movieClip.mcWaiting_hold2.stop();
movieClip.mcWaiting.enabled = false;
movieClip.mcWaiting.mouseEnabled = false;
currentAnima = movieClip.mcWaiting;
createPathNode(Global.main.mcStage1PathNode);
createPathNode(Global.main.mcStage2PathNode);
createPathNode(Global.main.mcStage3PathNode);
createPathNode(Global.main.mcStage4PathNode);
pushNeighbor(STAGE1_PATHNODE, STAGE2_PATHNODE);
pushNeighbor(STAGE2_PATHNODE, STAGE3_PATHNODE);
pushNeighbor(STAGE3_PATHNODE, STAGE4_PATHNODE);
}
private function east(){
currentAnima.visible = false;
currentAnima.stop();
currentAnima = movieClip.mcEast;
currentAnima.visible = true;
currentAnima.play();
}
private function north(){
currentAnima.visible = false;
currentAnima.stop();
currentAnima = movieClip.mcNorth;
currentAnima.visible = true;
currentAnima.play();
}
public function processWalking(_arg1:Object){
if (isWalking){
if (super.process(onChangePathNode, this) == true){
isWalking = false;
action();
};
};
}
private function south(){
currentAnima.visible = false;
currentAnima.stop();
currentAnima = movieClip.mcSouth;
currentAnima.visible = true;
currentAnima.play();
}
public function action(){
isWalking = false;
currentAnima.visible = false;
currentAnima.stop();
currentAnima = movieClip.mcActionPositive;
currentAnima.gotoAndPlay(1);
currentAnima.visible = true;
TFMovieClip.addLabelScript(currentAnima, "finish", onFinishAction);
}
private function northWest(){
currentAnima.visible = false;
currentAnima.stop();
currentAnima = movieClip.mcNorthWest;
currentAnima.visible = true;
currentAnima.play();
}
public function setCurrentNode(_arg1:Number){
currentNode = super.getNode(_arg1);
movieClip.x = currentNode.getX();
movieClip.y = currentNode.getY();
}
private function southWest(){
currentAnima.visible = false;
currentAnima.stop();
currentAnima = movieClip.mcSouthWest;
currentAnima.visible = true;
currentAnima.play();
}
private function onChangePathNode(_arg1:MovieClip, _arg2:TFPathNode, _arg3:TFPathNode){
var _local4:Point;
var _local5:Number;
var _local6:Number;
_local4 = new Point((_arg2.getX() - _arg3.getX()), (_arg2.getY() - _arg3.getY()));
_local5 = Math.atan2(_local4.y, _local4.x);
_local6 = ((180 * _local5) / Math.PI);
if ((((_local6 >= 67.5)) && ((_local6 <= 112.5)))){
north();
};
if ((((_local6 > 112.5)) && ((_local6 < 157.5)))){
northEast();
};
if ((((_local6 > 22.5)) && ((_local6 < 67.5)))){
northWest();
};
if ((((((_local6 <= -157.5)) && ((_local6 >= -180)))) || ((((_local6 >= 157.5)) && ((_local6 <= 180)))))){
east();
};
if ((((_local6 <= 22.5)) && ((_local6 >= -22.5)))){
west();
};
if ((((_local6 > -157.5)) && ((_local6 < -112.5)))){
southEast();
};
if ((((_local6 > -67.5)) && ((_local6 < -22.5)))){
southWest();
};
if ((((_local6 <= -67.5)) && ((_local6 >= -112.5)))){
south();
};
}
private function northEast(){
currentAnima.visible = false;
currentAnima.stop();
currentAnima = movieClip.mcNorthEast;
currentAnima.visible = true;
currentAnima.play();
}
private function onFinishAction(){
TFMovieClip.addLabelScript(currentAnima, "finish", null);
currentAnima.stop();
}
private function southEast(){
currentAnima.visible = false;
currentAnima.stop();
currentAnima = movieClip.mcSouthEast;
currentAnima.visible = true;
currentAnima.play();
}
public function goto(_arg1:Number){
var _local2:TFPathNode;
_local2 = super.getNode(_arg1);
super.setPath(currentNode, _local2);
isWalking = true;
}
private function west(){
currentAnima.visible = false;
currentAnima.stop();
currentAnima = movieClip.mcWest;
currentAnima.visible = true;
currentAnima.play();
}
}
}//package classes.game
Section 29
//RoomStation (classes.game.RoomStation)
package classes.game {
import flash.display.*;
import flash.events.*;
import classes.global.*;
import classes.basic.MovieClip.*;
public class RoomStation extends StationCustomerContainer {
private var uses:Number;
private var dirty:Boolean;
private var chanceDirty:Number;
public function RoomStation(_arg1:MovieClip, _arg2:String){
super(_arg1, 5, _arg2);
addListener(EVENT_RETURN, onReturnCustomer);
addListener(EVENT_ADD, onAddCustomer);
addListener(EVENT_REMOVE, onRemoveCustomer);
chanceDirty = 0;
dirty = false;
uses = 0;
}
override protected function onEmpty(){
super.onEmpty();
if (customer != null){
customer.getMovieClip().visible = true;
};
}
override protected function onMouseUp(){
if (Global.mouse.isEmpty()){
startEvent(EVENT_REQUEST_MAINCHAR);
} else {
if (!dirty){
super.onMouseUp();
} else {
if (Global.mouse.getLastLocal() != null){
Global.mouse.getLastLocal().addCustomer(Global.mouse.removeCustomer());
};
};
};
}
override protected function onMCRollOver(_arg1:MouseEvent):void{
if (((dirty) && (Global.mouse.isEmpty()))){
super.onMCRollOver(_arg1);
};
if (((!(dirty)) && (!(Global.mouse.isEmpty())))){
super.onMCRollOver(_arg1);
};
}
protected function onAddCustomer(_arg1:String, _arg2:CustomerContainer){
if (getTime() > 0){
start();
};
customer.getMovieClip().visible = false;
customer.getMovieClip().x = 28;
customer.getMovieClip().y = 15;
customer.getMovieClip().mcBody.gotoAndStop("room");
}
public function clean(){
movieClip.gotoAndPlay("towel");
dirty = false;
uses = 0;
chanceDirty = 0;
Global.soundsFX["cleaningStation"].play();
}
private function onRemoveCustomer(_arg1:String, _arg2:CustomerContainer){
if (dirty){
movieClip.gotoAndStop("dirty");
};
}
override public function onFinish(){
var _local1:Number;
this.lastTime = 0;
movieClip.gotoAndPlay("enter");
TFMovieClip.addLabelScript(movieClip, "finishEnter", onFinishBusy);
uses++;
if (this.getType() == Desires.SAUNA){
Global.soundsFX["sauna"].stop();
};
if (this.getType() == Desires.SWIMMING){
Global.soundsFX["swimming"].stop();
};
if (this.getType() == Desires.YOGA){
Global.soundsFX["yoga"].stop();
};
if (uses == 3){
chanceDirty = 40;
};
if (uses > 3){
chanceDirty = (chanceDirty + 20);
};
if (chanceDirty > 0){
_local1 = (Math.random() * 100);
if (_local1 <= chanceDirty){
dirty = true;
};
};
if (soundTimer != null){
soundTimer.stop();
soundTimer = null;
};
Global.soundsFX["endingTreatment"].play();
}
public function isDirty(){
return (dirty);
}
private function onStartBusy(){
TFMovieClip.addLabelScript(movieClip, "finishEnter", null);
showBusyAnimation();
}
override public function start(){
this.run = true;
this.lastTime = 0;
customer.addUseStation(getType());
movieClip.gotoAndPlay("enter");
TFMovieClip.addLabelScript(movieClip, "finishEnter", onStartBusy);
if (this.getType() == Desires.SAUNA){
Global.soundsFX["sauna"].play();
};
if (this.getType() == Desires.SWIMMING){
Global.soundsFX["swimming"].play();
};
if (this.getType() == Desires.YOGA){
Global.soundsFX["yoga"].play();
};
movieClip.mcClock.visible = true;
movieClip.mcClock.gotoAndStop(1);
soundTimer = Global.soundsFX["clockTicking"].play();
}
private function onFinishBusy(){
this.run = false;
TFMovieClip.addLabelScript(movieClip, "finishEnter", null);
super.onFinish();
}
private function onReturnCustomer(_arg1:String, _arg2:CustomerContainer){
customer.angry();
customer.getMovieClip().x = 28;
customer.getMovieClip().y = 15;
customer.getMovieClip().mcBody.gotoAndStop("room");
}
}
}//package classes.game
Section 30
//StationCustomerContainer (classes.game.StationCustomerContainer)
package classes.game {
import classes.basic.Sound.*;
import flash.display.*;
import flash.events.*;
import classes.global.*;
import classes.basic.MovieClip.*;
public class StationCustomerContainer extends CustomerContainer {
protected var lastTime:Number;
protected var run:Boolean;
private var time:Number;
protected var over:Boolean;
protected var soundTimer:TFSoundChannel;
private var type:String;
public static var EVENT_REQUEST_MAINCHAR:String = "EVENT_REQUEST_MAINCHAR";
public function StationCustomerContainer(_arg1:MovieClip, _arg2:Number, _arg3:String){
super(_arg1);
_arg1.visible = true;
_arg1.mcClock.visible = false;
_arg1.mcQueue.visible = false;
this.time = (_arg2 * 1000);
this.run = false;
this.type = _arg3;
lastTime = 0;
soundTimer = null;
over = false;
addEvent(EVENT_REQUEST_MAINCHAR);
}
override public function removeCustomer():Customer{
var _local1:Customer;
_local1 = super.removeCustomer();
if (over){
super.onMCRollOver(null);
} else {
super.onMCRollOut(null);
};
return (_local1);
}
public function isCash():Boolean{
return (((!((this.customer == null))) && ((this.customer.getDesire() == Desires.CASH))));
}
override protected function onMCRollOver(_arg1:MouseEvent):void{
over = true;
if (!this.run){
if (!Global.mouse.isEmpty()){
if (isEmpty()){
super.onMCRollOver(_arg1);
};
} else {
super.onMCRollOver(_arg1);
};
};
}
override protected function onMouseDown(){
if (((!(this.run)) && (!(isEmpty())))){
if (this.customer.getDesire() != Desires.CASH){
super.onMouseDown();
};
};
}
protected function showBusyAnimation(){
movieClip.gotoAndPlay("busy");
}
override protected function onMouseUp(){
if (!this.run){
if (Global.mouse.isEmpty()){
startEvent(EVENT_REQUEST_MAINCHAR);
} else {
super.onMouseUp();
};
} else {
super.onMouseUp();
};
}
public function getTime(){
return (this.time);
}
public function isRun():Boolean{
return (this.run);
}
override protected function onMCRollOut(_arg1:MouseEvent):void{
over = false;
super.onMCRollOut(_arg1);
}
public function stopAnima(){
if (run){
movieClip.stop();
soundTimer.stop();
};
}
public function onFinish(){
this.run = false;
this.lastTime = 0;
movieClip.gotoAndPlay("empty");
TFMovieClip.addLabelScript(movieClip, "empty", onEmpty);
movieClip.mcClock.visible = false;
if (soundTimer != null){
soundTimer.stop();
soundTimer = null;
};
Global.soundsFX["endingTreatment"].play();
if (over){
super.onMCRollOver(null);
};
}
public function start(){
this.run = true;
this.lastTime = 0;
customer.addUseStation(getType());
showBusyAnimation();
movieClip.mcClock.visible = true;
movieClip.mcClock.gotoAndStop(1);
soundTimer = Global.soundsFX["clockTicking"].play();
}
public function playAnima(){
if (run){
movieClip.play();
soundTimer.play();
};
}
public function setQueue(_arg1:Number){
if (_arg1 > 0){
movieClip.mcQueue.visible = true;
movieClip.mcQueue.mcText.text = String(_arg1);
} else {
movieClip.mcQueue.visible = false;
};
}
public function getCash():Number{
return (customer.getCash());
}
protected function onEmpty(){
if (customer != null){
customer.onIdle();
};
movieClip.stop();
TFMovieClip.addLabelScript(movieClip, "empty", null);
}
public function process(_arg1:Object){
var _local2:Number;
if ((((this.time > 0)) && (run))){
this.lastTime = (this.lastTime + _arg1.time);
_local2 = int((this.lastTime / (this.time / 8)));
if (movieClip.mcClock.currentFrame != _local2){
movieClip.mcClock.gotoAndStop(_local2);
};
if (lastTime > this.time){
onFinish();
};
};
}
public function getType():String{
return (type);
}
}
}//package classes.game
Section 31
//StressMeter (classes.game.StressMeter)
package classes.game {
import flash.display.*;
public class StressMeter {
private var movieClip:MovieClip;
private var stage:Number;
public function StressMeter(_arg1:MovieClip){
this.movieClip = _arg1;
stage = -1;
}
private function updateStage(_arg1:Number){
if (this.stage == _arg1){
return;
};
this.stage = _arg1;
switch (this.stage){
case 0:
case 1:
movieClip.mcHeart5.gotoAndStop("full");
movieClip.mcHeart1.gotoAndStop("full");
movieClip.mcHeart2.gotoAndStop("full");
movieClip.mcHeart3.gotoAndStop("full");
movieClip.mcHeart4.gotoAndStop("full");
break;
case 2:
case 3:
movieClip.mcHeart4.gotoAndStop("full");
movieClip.mcHeart1.gotoAndStop("full");
movieClip.mcHeart2.gotoAndStop("full");
movieClip.mcHeart3.gotoAndStop("full");
movieClip.mcHeart5.gotoAndStop("disable");
break;
case 4:
case 5:
movieClip.mcHeart3.gotoAndStop("full");
movieClip.mcHeart1.gotoAndStop("full");
movieClip.mcHeart2.gotoAndStop("full");
movieClip.mcHeart5.gotoAndStop("disable");
movieClip.mcHeart4.gotoAndStop("disable");
break;
case 6:
case 7:
movieClip.mcHeart2.gotoAndStop("full");
movieClip.mcHeart1.gotoAndStop("full");
movieClip.mcHeart5.gotoAndStop("disable");
movieClip.mcHeart3.gotoAndStop("disable");
movieClip.mcHeart4.gotoAndStop("disable");
break;
case 8:
case 9:
movieClip.mcHeart1.gotoAndStop("full");
movieClip.mcHeart5.gotoAndStop("disable");
movieClip.mcHeart2.gotoAndStop("disable");
movieClip.mcHeart3.gotoAndStop("disable");
movieClip.mcHeart4.gotoAndStop("disable");
break;
};
switch (this.stage){
case 1:
movieClip.mcHeart5.gotoAndPlay("fast");
break;
case 3:
movieClip.mcHeart4.gotoAndPlay("fast");
break;
case 5:
movieClip.mcHeart3.gotoAndPlay("fast");
break;
case 7:
movieClip.mcHeart2.gotoAndPlay("fast");
break;
case 9:
movieClip.mcHeart1.gotoAndPlay("fast");
break;
};
}
public function update(_arg1:Number){
var _local2:Number;
if ((((_arg1 >= 0)) && ((_arg1 <= 11)))){
_local2 = 0;
};
if ((((_arg1 >= 12)) && ((_arg1 <= 15)))){
_local2 = 1;
};
if ((((_arg1 >= 16)) && ((_arg1 <= 30)))){
_local2 = 2;
};
if ((((_arg1 >= 31)) && ((_arg1 <= 35)))){
_local2 = 3;
};
if ((((_arg1 >= 36)) && ((_arg1 <= 50)))){
_local2 = 4;
};
if ((((_arg1 >= 51)) && ((_arg1 <= 55)))){
_local2 = 5;
};
if ((((_arg1 >= 56)) && ((_arg1 <= 78)))){
_local2 = 6;
};
if ((((_arg1 >= 79)) && ((_arg1 <= 85)))){
_local2 = 7;
};
if ((((_arg1 >= 86)) && ((_arg1 <= 96)))){
_local2 = 8;
};
if ((((_arg1 >= 97)) && ((_arg1 <= 100)))){
_local2 = 9;
};
updateStage(_local2);
}
}
}//package classes.game
Section 32
//TreatmentStation (classes.game.TreatmentStation)
package classes.game {
import flash.display.*;
import classes.global.*;
import classes.basic.MovieClip.*;
public class TreatmentStation extends StationCustomerContainer {
var finish:Boolean;
public function TreatmentStation(_arg1:MovieClip, _arg2:String){
super(_arg1, 5, _arg2);
finish = false;
_arg1.mcBalloon.visible = false;
addListener(EVENT_ADD, onAddCustomer);
addListener(EVENT_RETURN, onReturnCustomer);
addListener(EVENT_REMOVE, onRemoveCustomer);
}
override protected function onMouseDown(){
if (finish){
super.onMouseDown();
};
}
override protected function onMouseUp(){
if (((((!(isEmpty())) && (isRun()))) && (!(finish)))){
startEvent(EVENT_REQUEST_MAINCHAR);
} else {
super.onMouseUp();
};
}
override public function onFinish(){
finish = true;
super.onFinish();
}
override public function start(){
movieClip.mcBalloon.visible = false;
this.run = true;
this.lastTime = 0;
showBusyAnimation();
movieClip.mcClock.visible = true;
movieClip.mcClock.gotoAndStop(1);
soundTimer = Global.soundsFX["clockTicking"].play();
}
public function isWaiting():Boolean{
return (((((!(isEmpty())) && (!(finish)))) && (!(this.run))));
}
protected function onAddCustomer(_arg1:String, _arg2:CustomerContainer){
finish = false;
movieClip.mcBalloon.visible = true;
customer.angry();
customer.getMovieClip().x = 35;
customer.getMovieClip().y = -26;
customer.getMovieClip().mcBody.gotoAndStop("treatment");
customer.addUseStation(getType());
}
override protected function onEmpty(){
movieClip.mcBalloon.visible = false;
super.onEmpty();
}
private function onReturnCustomer(_arg1:String, _arg2:CustomerContainer){
customer.angry();
customer.getMovieClip().x = 35;
customer.getMovieClip().y = -26;
customer.getMovieClip().mcBody.gotoAndStop("treatment");
}
protected function onRemoveCustomer(_arg1:String, _arg2:CustomerContainer){
movieClip.mcBalloon.visible = false;
}
}
}//package classes.game
Section 33
//WaitingCustomerContainer (classes.game.WaitingCustomerContainer)
package classes.game {
import flash.display.*;
import flash.events.*;
import classes.global.*;
import classes.basic.MovieClip.*;
public class WaitingCustomerContainer extends CustomerContainer {
public function WaitingCustomerContainer(_arg1:MovieClip){
super(_arg1);
addListener(EVENT_ADD, onAddCustomer);
addListener(EVENT_RETURN, onAddCustomer);
addListener(EVENT_REMOVE, onRemoveCustomer);
}
override protected function onMCRollOver(_arg1:MouseEvent):void{
if (((((!(Global.mouse.isEmpty())) && (isEmpty()))) || (((Global.mouse.isEmpty()) && (!(isEmpty())))))){
super.onMCRollOver(_arg1);
};
}
public function onAddCustomer(_arg1:String, _arg2:CustomerContainer){
customer.angry();
customer.getMovieClip().x = 25;
customer.getMovieClip().y = -46;
customer.getMovieClip().mcBody.gotoAndStop("chair");
Global.soundsFX["drag_customer"].play();
}
public function onRemoveCustomer(_arg1:String, _arg2:CustomerContainer){
Global.soundsFX["drag_customer"].play();
super.onMCRollOut(null);
}
override protected function onMouseUp(){
if (((isEmpty()) && (!(Global.mouse.isEmpty())))){
addCustomer(Global.mouse.removeCustomer());
} else {
if (Global.mouse.getLastLocal() != null){
Global.mouse.getLastLocal().addCustomer(Global.mouse.removeCustomer());
};
};
}
override protected function onMCRollOut(_arg1:MouseEvent):void{
super.onMCRollOut(_arg1);
}
}
}//package classes.game
Section 34
//Customers (classes.global.Customers)
package classes.global {
public class Customers {
public static var xml:XML;
public static function init(){
xml = getCustomers();
}
private static function getCustomers():XML{
var _local1:String;
_local1 = "<?xml version=\"1.0\" encoding=\"utf-8\" ?>\n";
_local1 = (_local1 + "<customers>\n");
_local1 = (_local1 + "<customer>\n");
_local1 = (_local1 + "<name>Miss</name>\n");
_local1 = (_local1 + "<increaseRate>2.5</increaseRate>\n");
_local1 = (_local1 + "<delay>1000</delay>\n");
_local1 = (_local1 + "<symbol>customer1</symbol>\n");
_local1 = (_local1 + "<stress>6</stress>\n");
_local1 = (_local1 + "</customer>\n");
_local1 = (_local1 + "<customer>\n");
_local1 = (_local1 + "<name>Bimbo</name>\n");
_local1 = (_local1 + "<increaseRate>1.5</increaseRate>\n");
_local1 = (_local1 + "<delay>1200</delay>\n");
_local1 = (_local1 + "<symbol>customer2</symbol>\n");
_local1 = (_local1 + "<stress>2</stress>\n");
_local1 = (_local1 + "</customer>\n");
_local1 = (_local1 + "<customer>\n");
_local1 = (_local1 + "<name>Hippie</name>\n");
_local1 = (_local1 + "<increaseRate>2</increaseRate>\n");
_local1 = (_local1 + "<delay>1500</delay>\n");
_local1 = (_local1 + "<symbol>customer3</symbol>\n");
_local1 = (_local1 + "<stress>1</stress>\n");
_local1 = (_local1 + "</customer>\n");
_local1 = (_local1 + "<customer>\n");
_local1 = (_local1 + "<name>Career</name>\n");
_local1 = (_local1 + "<increaseRate>3.5</increaseRate>\n");
_local1 = (_local1 + "<delay>1100</delay>\n");
_local1 = (_local1 + "<symbol>customer4</symbol>\n");
_local1 = (_local1 + "<stress>8</stress>\n");
_local1 = (_local1 + "</customer>\n");
_local1 = (_local1 + "<customer>\n");
_local1 = (_local1 + "<name>Bobo</name>\n");
_local1 = (_local1 + "<increaseRate>2</increaseRate>\n");
_local1 = (_local1 + "<delay>1300</delay>\n");
_local1 = (_local1 + "<symbol>customer5</symbol>\n");
_local1 = (_local1 + "<stress>4</stress>\n");
_local1 = (_local1 + "</customer>\n");
_local1 = (_local1 + "<customer>\n");
_local1 = (_local1 + "<name>Juca</name>\n");
_local1 = (_local1 + "<increaseRate>1.5</increaseRate>\n");
_local1 = (_local1 + "<delay>1000</delay>\n");
_local1 = (_local1 + "<symbol>customer6</symbol>\n");
_local1 = (_local1 + "<stress>5</stress>\n");
_local1 = (_local1 + "</customer>\n");
_local1 = (_local1 + "<customer>\n");
_local1 = (_local1 + "<name>Juca</name>\n");
_local1 = (_local1 + "<increaseRate>3</increaseRate>\n");
_local1 = (_local1 + "<delay>1200</delay>\n");
_local1 = (_local1 + "<symbol>customer7</symbol>\n");
_local1 = (_local1 + "<stress>7</stress>\n");
_local1 = (_local1 + "</customer>\n");
_local1 = (_local1 + "<customer>\n");
_local1 = (_local1 + "<name>Juca</name>\n");
_local1 = (_local1 + "<increaseRate>4</increaseRate>\n");
_local1 = (_local1 + "<delay>900</delay>\n");
_local1 = (_local1 + "<symbol>customer8</symbol>\n");
_local1 = (_local1 + "<stress>4</stress>\n");
_local1 = (_local1 + "</customer>\n");
_local1 = (_local1 + "</customers>\n");
return (new XML(_local1));
}
}
}//package classes.global
Section 35
//Global (classes.global.Global)
package classes.global {
import classes.basic.Sound.*;
import classes.game.*;
import classes.manager.*;
import flash.net.*;
public class Global {
public static var soundVictory:TFSound;
public static var localization_url1:String = "";
public static var localization_url2:String = "";
public static var soundTrackStage1:TFSound;
public static var soundTrackStage3:TFSound;
public static var soundLevelCompleted:TFSound;
public static var soundTrackStage2:TFSound;
public static var score:Number = 0;
public static var soundsFX:Array;
public static var soundManager:TFSoundManager = TFSoundManager.pInstance;
public static var soundTrackStage4:TFSound;
public static var mouse:MouseCustomerContainer = null;
public static var manager:ManagerGAME = null;
public static var main:Main = null;
public static var cash:Number = 0;
public static var xmlLocalization:XML = null;
public static var localization_branding_nr:Number = 0;
public static var cookie:SharedObject;
public static var localization_language_nr:Number = 0;
public static var soundLevelFail:TFSound;
public static var soundTrackMenu:TFSound;
public static var life:Number = 5;
public static function setXMLLocalization(){
switch (Global.localization_language_nr){
case 1:
xmlLocalization = getXMLLocalization1();
break;
case 2:
xmlLocalization = getXMLLocalization2();
break;
case 3:
xmlLocalization = getXMLLocalization3();
break;
case 4:
xmlLocalization = getXMLLocalization4();
break;
case 5:
xmlLocalization = getXMLLocalization5();
break;
case 6:
xmlLocalization = getXMLLocalization6();
break;
case 7:
xmlLocalization = getXMLLocalization7();
break;
case 8:
xmlLocalization = getXMLLocalization8();
break;
case 9:
xmlLocalization = getXMLLocalization9();
break;
case 10:
xmlLocalization = getXMLLocalization10();
break;
case 11:
xmlLocalization = getXMLLocalization11();
break;
case 12:
xmlLocalization = getXMLLocalization12();
break;
case 13:
xmlLocalization = getXMLLocalization13();
break;
case 14:
xmlLocalization = getXMLLocalization14();
break;
case 15:
xmlLocalization = getXMLLocalization15();
break;
case 16:
xmlLocalization = getXMLLocalization16();
break;
case 17:
xmlLocalization = getXMLLocalization17();
break;
};
}
private static function getXMLLocalization12():XML{
var _local1:String;
var _local2:XML;
_local1 = "<?xml version=\"1.0\" encoding=\"unicode\" ?>\n";
_local1 = (_local1 + "<localization>\n");
_local1 = (_local1 + "<symbol_cash>$</symbol_cash>\n");
_local1 = (_local1 + "<sarah>Катя</sarah>");
_local1 = (_local1 + "<loading>\n");
_local1 = (_local1 + "<title>Загрузка...</title>\n");
_local1 = (_local1 + "<msg>БОЛЬШЕ БЕСПЛАТНЫХ ИГР НА:</msg>\n");
_local1 = (_local1 + "</loading>\n");
_local1 = (_local1 + "<mainmenu>\n");
_local1 = (_local1 + "<startgame>СТАРТ</startgame>\n");
_local1 = (_local1 + "<howtoplay>КАК ИГРАТЬ</howtoplay>\n");
_local1 = (_local1 + "<highscore>РАНКИНГ</highscore>\n");
_local1 = (_local1 + "<moregames>БОЛЬШЕ ИГР</moregames>\n");
_local1 = (_local1 + "<quality>Качество:</quality>\n");
_local1 = (_local1 + "<high>ВЫСОКОЕ</high>");
_local1 = (_local1 + "<medium>СРЕДНЕЕ</medium>");
_local1 = (_local1 + "<low>НИЗКОЕ</low>");
_local1 = (_local1 + "</mainmenu>\n");
_local1 = (_local1 + "<howToPlay>\n");
_local1 = (_local1 + "<title>КАК ИГРАТЬ</title>\n");
_local1 = (_local1 + "<mainmenu>ГЛАВНОЕ МЕНЮ</mainmenu>\n");
_local1 = (_local1 + "<next>ДАЛЬШЕ</next>\n");
_local1 = (_local1 + "<back>ОБРАТНО</back>\n");
_local1 = (_local1 + "<text1>Щелкни по посетителю и удерживай кнопку, чтобы поднять его.</text1>\n");
_local1 = (_local1 + "<text2>Затем отпусти его на требуемое место.</text2>\n");
_local1 = (_local1 + "<text3>Не позволь, чтобы уровень стресса поднялся слишком высоко, а то посетители уйдут!</text3>\n");
_local1 = (_local1 + "<text4>Иногда требуется чистка или посетители просят о данном предмете.</text4>\n");
_local1 = (_local1 + "<text5>Учти, что ты можешь связывать друг с другом действия, производимые Катей.</text5>\n");
_local1 = (_local1 + "<text6>Достань соответствующий предмет из ящика.</text6>\n");
_local1 = (_local1 + "<text7>Если ты выбрала предмет неправильно, брось его в соответствующий ящик для мусора.</text7>\n");
_local1 = (_local1 + "</howToPlay>\n");
_local1 = (_local1 + "<game>\n");
_local1 = (_local1 + "<play>ИГРАТЬ</play>\n");
_local1 = (_local1 + "<goalReached>Цель достигнута</goalReached>\n");
_local1 = (_local1 + "<goal>Цель</goal>\n");
_local1 = (_local1 + "<cash>Деньги</cash>\n");
_local1 = (_local1 + "<left>Оставшиеся посетители</left>\n");
_local1 = (_local1 + "<msg1>Мне повезло! Мой первый СПА-салон готов к открытию для публики! Он, правда, маленьковат, но я думаю, что отделка в средиземном стиле притянет много посетителей!</msg1>");
_local1 = (_local1 + "<msg2>Я знала, что мой СПА-салон будет преуспевать! Я работала долго и тяжело, но мне удалось купить большее помещение. Отделка в тропикальном стиле, наверное, понравится посетителям!</msg2>");
_local1 = (_local1 + "<msg3>Мой бизнес по-настоящему процветает! Мне надо было переселиться в еще большее помещение, чтобы вместить больше клиентов. А этот ориентальный декор - просто класс!</msg3>");
_local1 = (_local1 + "<msg4>СПА-курорт в горах! Это всегда являлось моей мечтой и теперь мне удалось достичь цели! Впереди много работы, но я так довольна моим великолепным горным СПА-курортом!</msg4>");
_local1 = (_local1 + "</game>\n");
_local1 = (_local1 + "<progress>\n");
_local1 = (_local1 + "<play>ИГРАТЬ</play>\n");
_local1 = (_local1 + "<score>РЕЗУЛЬТАТ</score>\n");
_local1 = (_local1 + "</progress>\n");
_local1 = (_local1 + "<pause>\n");
_local1 = (_local1 + "<msg>ПАУЗА</msg>\n");
_local1 = (_local1 + "<msgContinue>Щелкните, чтобы пройти дальше</msgContinue>\n");
_local1 = (_local1 + "</pause>\n");
_local1 = (_local1 + "<update>\n");
_local1 = (_local1 + "<msg>Новая СПА-процедура!</msg>\n");
_local1 = (_local1 + "</update>\n");
_local1 = (_local1 + "<scorescreen>\n");
_local1 = (_local1 + "<title>УРОВЕНЬ ЗАВЕРШЕН!</title>\n");
_local1 = (_local1 + "<fail>Уровень незавершен</fail>\n");
_local1 = (_local1 + "<ok>OK</ok>\n");
_local1 = (_local1 + "<levelscore>Очки за уровень</levelscore>\n");
_local1 = (_local1 + "<totalscore>Всего</totalscore>\n");
_local1 = (_local1 + "</scorescreen>\n");
_local1 = (_local1 + "<gameOver>\n");
_local1 = (_local1 + "<submit>СОХРАНИТЬ РЕЗУЛЬТАТ</submit>\n");
_local1 = (_local1 + "<title>ИГРА КОНЧЕНА</title>\n");
_local1 = (_local1 + "<score>ВАШ РЕЗУЛЬТАТ</score>\n");
_local1 = (_local1 + "<name>ВАШЕ ИМЯ</name>\n");
_local1 = (_local1 + "</gameOver>\n");
_local1 = (_local1 + "<victory>\n");
_local1 = (_local1 + "<title>Победа!</title>\n");
_local1 = (_local1 + "<score>ВАШ РЕЗУЛЬТАТ</score>\n");
_local1 = (_local1 + "<name>ВАШЕ ИМЯ</name>\n");
_local1 = (_local1 + "</victory>\n");
_local1 = (_local1 + "<highscore>\n");
_local1 = (_local1 + "<title>РАНКИНГ</title>\n");
_local1 = (_local1 + "<name>ИМЯ</name>\n");
_local1 = (_local1 + "<score>РЕЗУЛЬТАТ</score>\n");
_local1 = (_local1 + "<rank>МЕСТО</rank>\n");
_local1 = (_local1 + "<menu>ГЛАВНОЕ МЕНЮ</menu>\n");
_local1 = (_local1 + "<moregames>3000+ ИГР</moregames>\n");
_local1 = (_local1 + "</highscore>\n");
_local1 = (_local1 + "</localization>\n");
_local2 = new XML(_local1);
return (_local2);
}
private static function getXMLLocalization14():XML{
var _local1:String;
var _local2:XML;
_local1 = "<?xml version=\"1.0\" encoding=\"utf-8\" ?>\n";
_local1 = (_local1 + "<localization>\n");
_local1 = (_local1 + "<symbol_cash>$</symbol_cash>\n");
_local1 = (_local1 + "<sarah>Heather</sarah>");
_local1 = (_local1 + "<loading>\n");
_local1 = (_local1 + "<title>Loading...</title>\n");
_local1 = (_local1 + "<msg>MORE FREE ONLINE GAMES AT:</msg>\n");
_local1 = (_local1 + "</loading>\n");
_local1 = (_local1 + "<mainmenu>\n");
_local1 = (_local1 + "<startgame>START GAME</startgame>\n");
_local1 = (_local1 + "<howtoplay>HOW TO PLAY</howtoplay>\n");
_local1 = (_local1 + "<highscore>HIGH SCORES</highscore>\n");
_local1 = (_local1 + "<moregames>MORE GAMES</moregames>\n");
_local1 = (_local1 + "<quality>Quality:</quality>\n");
_local1 = (_local1 + "<high>HIGH</high>");
_local1 = (_local1 + "<medium>MEDIUM</medium>");
_local1 = (_local1 + "<low>LOW</low>");
_local1 = (_local1 + "</mainmenu>\n");
_local1 = (_local1 + "<howToPlay>\n");
_local1 = (_local1 + "<title>HOW TO PLAY</title>\n");
_local1 = (_local1 + "<mainmenu>MAIN MENU</mainmenu>\n");
_local1 = (_local1 + "<next>NEXT</next>\n");
_local1 = (_local1 + "<back>BACK</back>\n");
_local1 = (_local1 + "<text1>Click on the clients and hold the button down to pick them up.</text1>\n");
_local1 = (_local1 + "<text2>Then drop them at the relevant station.</text2>\n");
_local1 = (_local1 + "<text3>Don't let their stress meters rise too high, or they will leave the salon!</text3>\n");
_local1 = (_local1 + "<text4>Certain stations may become dirty or clients may request certain items.</text4>\n");
_local1 = (_local1 + "<text5>Note that you can chain Heather's actions.</text5>\n");
_local1 = (_local1 + "<text6>Pick the item from the relevant supply station.</text6>\n");
_local1 = (_local1 + "<text7>If you pick the wrong item, throw it in the appropriate bin.</text7>\n");
_local1 = (_local1 + "</howToPlay>\n");
_local1 = (_local1 + "<game>\n");
_local1 = (_local1 + "<play>PLAY</play>\n");
_local1 = (_local1 + "<goalReached>Goal Achieved</goalReached>\n");
_local1 = (_local1 + "<goal>Goal</goal>\n");
_local1 = (_local1 + "<cash>Cash</cash>\n");
_local1 = (_local1 + "<left>Remaining Clients</left>\n");
_local1 = (_local1 + "<msg1>I've done it! My first spa is ready to open to the public! It is rather small, but the Mediterranean theme is bound to attract a large number of clients!</msg1>");
_local1 = (_local1 + "<msg2>I knew my spa would be a success! After a lot of hard work I have managed to buy a bigger place. This tropical theme will definitely attract more clients!</msg2>");
_local1 = (_local1 + "<msg3>My beauty business is really thriving! I had to move to even bigger premises to enable me to treat more clients, and this Oriental décor is amazing!</msg3>");
_local1 = (_local1 + "<msg4>A mountain beauty resort! This has always been my ambition and I have achieved at last! There is a huge amount of work ahead, but I love my beautiful spa in the mountains!</msg4>");
_local1 = (_local1 + "</game>\n");
_local1 = (_local1 + "<progress>\n");
_local1 = (_local1 + "<play>PLAY</play>\n");
_local1 = (_local1 + "<score>SCORE</score>\n");
_local1 = (_local1 + "</progress>\n");
_local1 = (_local1 + "<pause>\n");
_local1 = (_local1 + "<msg>PAUSED</msg>\n");
_local1 = (_local1 + "<msgContinue>Click to continue</msgContinue>\n");
_local1 = (_local1 + "</pause>\n");
_local1 = (_local1 + "<update>\n");
_local1 = (_local1 + "<msg>A new spa service!</msg>\n");
_local1 = (_local1 + "</update>\n");
_local1 = (_local1 + "<scorescreen>\n");
_local1 = (_local1 + "<title>LEVEL COMPLETED!</title>\n");
_local1 = (_local1 + "<fail>Level Failed!</fail>\n");
_local1 = (_local1 + "<ok>OK</ok>\n");
_local1 = (_local1 + "<levelscore>Level Score</levelscore>\n");
_local1 = (_local1 + "<totalscore>Total Score</totalscore>\n");
_local1 = (_local1 + "</scorescreen>\n");
_local1 = (_local1 + "<gameOver>\n");
_local1 = (_local1 + "<submit>SUBMIT SCORE</submit>\n");
_local1 = (_local1 + "<title>GAME OVER</title>\n");
_local1 = (_local1 + "<score>Your Score</score>\n");
_local1 = (_local1 + "<name>Your Name</name>\n");
_local1 = (_local1 + "</gameOver>\n");
_local1 = (_local1 + "<victory>\n");
_local1 = (_local1 + "<title>VICTORY!!</title>\n");
_local1 = (_local1 + "<score>Your Score</score>\n");
_local1 = (_local1 + "<name>Your Name</name>\n");
_local1 = (_local1 + "</victory>\n");
_local1 = (_local1 + "<highscore>\n");
_local1 = (_local1 + "<title>HIGH SCORE</title>\n");
_local1 = (_local1 + "<name>Name</name>\n");
_local1 = (_local1 + "<score>Score</score>\n");
_local1 = (_local1 + "<rank>Rank</rank>\n");
_local1 = (_local1 + "<menu>MAIN MENU</menu>\n");
_local1 = (_local1 + "<moregames>3000+ GAMES</moregames>\n");
_local1 = (_local1 + "</highscore>\n");
_local1 = (_local1 + "</localization>\n");
_local2 = new XML(_local1);
return (_local2);
}
private static function getXMLLocalization15():XML{
var _local1:String;
var _local2:XML;
_local1 = "<?xml version=\"1.0\" encoding=\"utf-8\" ?>\n";
_local1 = (_local1 + "<localization>\n");
_local1 = (_local1 + "<symbol_cash>$</symbol_cash>\n");
_local1 = (_local1 + "<sarah>Sofie</sarah>");
_local1 = (_local1 + "<loading>\n");
_local1 = (_local1 + "<title>Memuat...</title>\n");
_local1 = (_local1 + "<msg>LEBIH BANYAK PERMAINAN DALAM TALIAN PERCUMA DI:</msg>\n");
_local1 = (_local1 + "</loading>\n");
_local1 = (_local1 + "<mainmenu>\n");
_local1 = (_local1 + "<startgame>MULAKAN PERMAINAN</startgame>\n");
_local1 = (_local1 + "<howtoplay>BAGAIMANA UNTUK MAIN</howtoplay>\n");
_local1 = (_local1 + "<highscore>SKOR TERTINGGI</highscore>\n");
_local1 = (_local1 + "<moregames>LABIH BANYAK PERMAINAN</moregames>\n");
_local1 = (_local1 + "<quality>Kualiti:</quality>\n");
_local1 = (_local1 + "<high>TINGGI</high>");
_local1 = (_local1 + "<medium>MEDIUM</medium>");
_local1 = (_local1 + "<low>RENDAH</low>");
_local1 = (_local1 + "</mainmenu>\n");
_local1 = (_local1 + "<howToPlay>\n");
_local1 = (_local1 + "<title>BAGAIMANA UNTUK MAIN</title>\n");
_local1 = (_local1 + "<mainmenu>MENU UTAMA</mainmenu>\n");
_local1 = (_local1 + "<next>SETERUSNYA</next>\n");
_local1 = (_local1 + "<back>UNDUR</back>\n");
_local1 = (_local1 + "<text1>Klik pada klien dan tahan untuk memilih mereka.</text1>\n");
_local1 = (_local1 + "<text2>Kemudian letakkan mereka di stesen yang dikehendaki.</text2>\n");
_local1 = (_local1 + "<text3>Jangan biarkan meter stres mereka terlalu tinggi, jika tidak mereka akan meninggalkan salun!</text3>\n");
_local1 = (_local1 + "<text4>Kadang kala stesen menjadi kotor atau klien meminta item tertentu.</text4>\n");
_local1 = (_local1 + "<text5>Ambil perhatian bahawa anda boleh merantai tindakan Sofies.</text5>\n");
_local1 = (_local1 + "<text6>Jika anda telah memilih item yang slah, buangkannya ke tong sampah yang sesuai.</text6>\n");
_local1 = (_local1 + "<text7>Pilih item yang bersesuaian dari stesen bekalan.</text7>\n");
_local1 = (_local1 + "</howToPlay>\n");
_local1 = (_local1 + "<game>\n");
_local1 = (_local1 + "<play>MAIN</play>\n");
_local1 = (_local1 + "<goalReached>Matlamat Dicapai</goalReached>\n");
_local1 = (_local1 + "<goal>Matlamat</goal>\n");
_local1 = (_local1 + "<cash>Tunai</cash>\n");
_local1 = (_local1 + "<left>Baki Klien</left>\n");
_local1 = (_local1 + "<msg1>Saya telah berjaya! Spa saya yang pertama siap untuk dibuka kepada orang ramai! Ia agak kecil tetapi saya percaya tema Mediterranean akan menarik ramai pelanggan!</msg1>");
_local1 = (_local1 + "<msg2>Saya tahu spa saya akan berjaya! Selepas bekerja keras, saya telah berjaya membeli tempat yang lebih besar.Tema tropika ini sememangnya akan menarik lebih ramai pelanggan!</msg2>");
_local1 = (_local1 + "<msg3>Perniagaan kecantikan saya begitu berkembang maju! Saya perlu berpindah ke tempat yang lebih besar agar saya dapat memuatkan lebih ramai pelanggan. Dan dekor Timur ini menakjubkan!</msg3>");
_local1 = (_local1 + "<msg4>Resort kecantikan pergunungan! Ia sentiasa menjadi matlamat saya dan sekarang saya telah mencapainya! Banyak kerja yang perlu dilakukan tetapi saya sayangkan spa saya yang cantik di kawasan pergunungan!</msg4>");
_local1 = (_local1 + "</game>\n");
_local1 = (_local1 + "<progress>\n");
_local1 = (_local1 + "<play>MAIN</play>\n");
_local1 = (_local1 + "<score>SKOR</score>\n");
_local1 = (_local1 + "</progress>\n");
_local1 = (_local1 + "<pause>\n");
_local1 = (_local1 + "<msg>JEDA</msg>\n");
_local1 = (_local1 + "<msgContinue>Klik untuk teruskan</msgContinue>\n");
_local1 = (_local1 + "</pause>\n");
_local1 = (_local1 + "<update>\n");
_local1 = (_local1 + "<msg>Tawaran perkhidmatan spa baru!</msg>\n");
_local1 = (_local1 + "</update>\n");
_local1 = (_local1 + "<scorescreen>\n");
_local1 = (_local1 + "<title>TAHAP SELESAI!</title>\n");
_local1 = (_local1 + "<fail>Tahap Gagal</fail>\n");
_local1 = (_local1 + "<ok>OK</ok>\n");
_local1 = (_local1 + "<levelscore>Skor Tahap</levelscore>\n");
_local1 = (_local1 + "<totalscore>Jumlah Skor</totalscore>\n");
_local1 = (_local1 + "</scorescreen>\n");
_local1 = (_local1 + "<gameOver>\n");
_local1 = (_local1 + "<submit>SERAHKAN SKOR</submit>\n");
_local1 = (_local1 + "<title>PERMAINAN TAMAT</title>\n");
_local1 = (_local1 + "<score>Skor Anda</score>\n");
_local1 = (_local1 + "<name>Nama Anda</name>\n");
_local1 = (_local1 + "</gameOver>\n");
_local1 = (_local1 + "<victory>\n");
_local1 = (_local1 + "<title>Kejayaan!!</title>\n");
_local1 = (_local1 + "<score>Skor Anda</score>\n");
_local1 = (_local1 + "<name>Nama Anda</name>\n");
_local1 = (_local1 + "</victory>\n");
_local1 = (_local1 + "<highscore>\n");
_local1 = (_local1 + "<title>Skor Tertinggi</title>\n");
_local1 = (_local1 + "<name>Nama</name>\n");
_local1 = (_local1 + "<score>Skor</score>\n");
_local1 = (_local1 + "<rank>Kedudukan</rank>\n");
_local1 = (_local1 + "<menu>MENU UTAMA</menu>\n");
_local1 = (_local1 + "<moregames>3000+ PERMAINAN</moregames>\n");
_local1 = (_local1 + "</highscore>\n");
_local1 = (_local1 + "</localization>\n");
_local2 = new XML(_local1);
return (_local2);
}
private static function getXMLLocalization16():XML{
var _local1:String;
var _local2:XML;
_local1 = "<?xml version=\"1.0\" encoding=\"utf-8\" ?>\n";
_local1 = (_local1 + "<localization>\n");
_local1 = (_local1 + "<symbol_cash>$</symbol_cash>\n");
_local1 = (_local1 + "<sarah>Marisa</sarah>");
_local1 = (_local1 + "<loading>\n");
_local1 = (_local1 + "<title>A carregar...</title>\n");
_local1 = (_local1 + "<msg>MAIS JOGOS ONLINE GRATUITOS EM:</msg>\n");
_local1 = (_local1 + "</loading>\n");
_local1 = (_local1 + "<mainmenu>\n");
_local1 = (_local1 + "<startgame>INICIAR JOGO</startgame>\n");
_local1 = (_local1 + "<howtoplay>COMO JOGAR</howtoplay>\n");
_local1 = (_local1 + "<highscore>PONTUAÇÕES MAIS ALTAS</highscore>\n");
_local1 = (_local1 + "<moregames>MAIS JOGOS</moregames>\n");
_local1 = (_local1 + "<quality>Qualidade:</quality>\n");
_local1 = (_local1 + "<high>ALTA</high>");
_local1 = (_local1 + "<medium>MÉDIA</medium>");
_local1 = (_local1 + "<low>BAIXA</low>");
_local1 = (_local1 + "</mainmenu>\n");
_local1 = (_local1 + "<howToPlay>\n");
_local1 = (_local1 + "<title>COMO JOGAR</title>\n");
_local1 = (_local1 + "<mainmenu>MENU PRINCIPAL</mainmenu>\n");
_local1 = (_local1 + "<next>SEGUINTE</next>\n");
_local1 = (_local1 + "<back>RETROCEDER</back>\n");
_local1 = (_local1 + "<text1>Clique nos clientes e mantenha pressionado para os recolher.</text1>\n");
_local1 = (_local1 + "<text2>Depois deixe-os no local pretendido.</text2>\n");
_local1 = (_local1 + "<text3>Não deixe que os seus indicadores de stress fiquem muito elevados, senão eles abandonarão o recinto!</text3>\n");
_local1 = (_local1 + "<text4>Por vezes, os estabelecimentos ficam sujos ou os clientes pedem determinados serviços.</text4>\n");
_local1 = (_local1 + "<text5>Tenha em conta que pode atribuir várias funções à Marisa em simultâneo.</text5>\n");
_local1 = (_local1 + "<text6>Seleccione os objectos que vai necessitar de usar, retirando-os do local onde se encontram.</text6>\n");
_local1 = (_local1 + "<text7>Se seleccionou mal um objecto, coloque-o no respectivo contentor do lixo.</text7>\n");
_local1 = (_local1 + "</howToPlay>\n");
_local1 = (_local1 + "<game>\n");
_local1 = (_local1 + "<play>JOGAR</play>\n");
_local1 = (_local1 + "<goalReached>Objectivo atingido</goalReached>\n");
_local1 = (_local1 + "<goal>Objetivo</goal>\n");
_local1 = (_local1 + "<cash>Dinheiro</cash>\n");
_local1 = (_local1 + "<left>Clientes restantes</left>\n");
_local1 = (_local1 + "<msg1>Consegui! O meu primeiro spa está pronto para abrir ao público! É um pouco pequeno mas aposto que a temática mediterrânica vai atrair muitos clientes!</msg1>");
_local1 = (_local1 + "<msg2>Eu sabia que o meu spa iria ser um sucesso! Depois de tanto trabalho e esforço, consegui comprar um espaço maior. Esta temática tropical vai atrair ainda mais clientes. </msg2>");
_local1 = (_local1 + "<msg3>O meu centro de estética é um sucesso! Tive que mudar-me para um espaço ainda maior para conseguir receber ainda mais clientes. E esta decoração oriental é fabulosa! </msg3>");
_local1 = (_local1 + "<msg4>Um centro de beleza nas montanhas! Esse foi sempre o meu sonho e agora consegui concretizá-lo! Dá muito mais trabalho mas eu adoro este meu lindo spa na montanha!</msg4>");
_local1 = (_local1 + "</game>\n");
_local1 = (_local1 + "<progress>\n");
_local1 = (_local1 + "<play>JOGAR</play>\n");
_local1 = (_local1 + "<score>PONTUAÇÃO</score>\n");
_local1 = (_local1 + "</progress>\n");
_local1 = (_local1 + "<pause>\n");
_local1 = (_local1 + "<msg>EM PAUSA</msg>\n");
_local1 = (_local1 + "<msgContinue>Clique para continuar</msgContinue>\n");
_local1 = (_local1 + "</pause>\n");
_local1 = (_local1 + "<update>\n");
_local1 = (_local1 + "<msg>Novo serviço de spa disponível!</msg>\n");
_local1 = (_local1 + "</update>\n");
_local1 = (_local1 + "<scorescreen>\n");
_local1 = (_local1 + "<title>NÍVEL COMPLETO!</title>\n");
_local1 = (_local1 + "<fail>Nível falhado</fail>\n");
_local1 = (_local1 + "<ok>OK</ok>\n");
_local1 = (_local1 + "<levelscore>Pontuação deste nível</levelscore>\n");
_local1 = (_local1 + "<totalscore>Pontuação do jogo</totalscore>\n");
_local1 = (_local1 + "</scorescreen>\n");
_local1 = (_local1 + "<gameOver>\n");
_local1 = (_local1 + "<submit>ENVIAR PONTUAÇÃO</submit>\n");
_local1 = (_local1 + "<title>FIM DO JOGO</title>\n");
_local1 = (_local1 + "<score>A sua pontuaçâo</score>\n");
_local1 = (_local1 + "<name>O seu nome</name>\n");
_local1 = (_local1 + "</gameOver>\n");
_local1 = (_local1 + "<victory>\n");
_local1 = (_local1 + "<title>Vitória!!</title>\n");
_local1 = (_local1 + "<score>A sua pontuaçâo</score>\n");
_local1 = (_local1 + "<name>O seu nome</name>\n");
_local1 = (_local1 + "</victory>\n");
_local1 = (_local1 + "<highscore>\n");
_local1 = (_local1 + "<title>Pontuaçoes mais altas</title>\n");
_local1 = (_local1 + "<name>Nome</name>\n");
_local1 = (_local1 + "<score>Pontuaçâo</score>\n");
_local1 = (_local1 + "<rank>Lugar</rank>\n");
_local1 = (_local1 + "<menu>MENU PRINCIPAL</menu>\n");
_local1 = (_local1 + "<moregames>+ DE 3000 JOGOS</moregames>\n");
_local1 = (_local1 + "</highscore>\n");
_local1 = (_local1 + "</localization>\n");
_local2 = new XML(_local1);
return (_local2);
}
private static function getXMLLocalization10():XML{
var _local1:String;
var _local2:XML;
_local1 = "<?xml version=\"1.0\" encoding=\"utf-8\" ?>\n";
_local1 = (_local1 + "<localization>\n");
_local1 = (_local1 + "<symbol_cash>$</symbol_cash>\n");
_local1 = (_local1 + "<sarah>Helena</sarah>");
_local1 = (_local1 + "<loading>\n");
_local1 = (_local1 + "<title>Carregando...</title>\n");
_local1 = (_local1 + "<msg>MAIS JOGOS ONLINE GRÁTIS EM:</msg>\n");
_local1 = (_local1 + "</loading>\n");
_local1 = (_local1 + "<mainmenu>\n");
_local1 = (_local1 + "<startgame>COMEÇAR</startgame>\n");
_local1 = (_local1 + "<howtoplay>COMO JOGAR</howtoplay>\n");
_local1 = (_local1 + "<highscore>RECORDES</highscore>\n");
_local1 = (_local1 + "<moregames>MAIS JOGOS</moregames>\n");
_local1 = (_local1 + "<quality>Qualidade:</quality>\n");
_local1 = (_local1 + "<high>ALTA</high>");
_local1 = (_local1 + "<medium>MEDIA</medium>");
_local1 = (_local1 + "<low>BAIXA</low>");
_local1 = (_local1 + "</mainmenu>\n");
_local1 = (_local1 + "<howToPlay>\n");
_local1 = (_local1 + "<title>COMO JOGAR</title>\n");
_local1 = (_local1 + "<mainmenu>MENU PRINCIPAL</mainmenu>\n");
_local1 = (_local1 + "<next>SEGUINTE</next>\n");
_local1 = (_local1 + "<back>ANTERIOR</back>\n");
_local1 = (_local1 + "<text1>Clique no cliente e prenda o botão para pegá-lo.</text1>\n");
_local1 = (_local1 + "<text2>Depois solte-o no local desejado.</text2>\n");
_local1 = (_local1 + "<text3>Fique de olho no \"Estressômetro\" senão os clientes vão embora!</text3>\n");
_local1 = (_local1 + "<text4>Às vezes as estações ficam sujas, ou os clientes pedem certas coisas.</text4>\n");
_local1 = (_local1 + "<text5>É possível encadear as atividades de Helena.</text5>\n");
_local1 = (_local1 + "<text6>Clique no item correspondente do estoque.</text6>\n");
_local1 = (_local1 + "<text7>Se pegar o item errado, jogue-o na lixeira.</text7>\n");
_local1 = (_local1 + "</howToPlay>\n");
_local1 = (_local1 + "<game>\n");
_local1 = (_local1 + "<play>JOGAR</play>\n");
_local1 = (_local1 + "<goalReached>Meta atingida</goalReached>\n");
_local1 = (_local1 + "<goal>Objetivo</goal>\n");
_local1 = (_local1 + "<cash>Dinheiro</cash>\n");
_local1 = (_local1 + "<left>Clientes restantes</left>\n");
_local1 = (_local1 + "<msg1>Consegui! Meu primeiro spa está pronto para abrir! É meio pequeno, mas aposto que a decoração mediterrânea atrairá muitos clientes!</msg1>");
_local1 = (_local1 + "<msg2>Eu sabia que meu spa faria sucesso! Depois de muito esforço consegui um local maior. Esta decoração tropical vai trazer mais clientes!</msg2>");
_local1 = (_local1 + "<msg3>Estou prosperando no ramo da estética! Precisei de um espaço maior para receber mais clientes. Adorei essa decoração oriental!</msg3>");
_local1 = (_local1 + "<msg4>Um spa nas montanhas! É o que eu sempre quis, e agora consegui! Vai dar muito mais trabalho, mas adoro o meu lindo spa nas montanhas.</msg4>");
_local1 = (_local1 + "</game>\n");
_local1 = (_local1 + "<progress>\n");
_local1 = (_local1 + "<play>JOGAR</play>\n");
_local1 = (_local1 + "<score>PONTUAÇÃO</score>\n");
_local1 = (_local1 + "</progress>\n");
_local1 = (_local1 + "<pause>\n");
_local1 = (_local1 + "<msg>EM PAUSA</msg>\n");
_local1 = (_local1 + "<msgContinue>Clique para continuar</msgContinue>\n");
_local1 = (_local1 + "</pause>\n");
_local1 = (_local1 + "<update>\n");
_local1 = (_local1 + "<msg>Novo Spa Liberado!</msg>\n");
_local1 = (_local1 + "</update>\n");
_local1 = (_local1 + "<scorescreen>\n");
_local1 = (_local1 + "<title>NÍVEL CONCLUÍDO</title>\n");
_local1 = (_local1 + "<fail>Perdeu o nível.</fail>\n");
_local1 = (_local1 + "<ok>OK</ok>\n");
_local1 = (_local1 + "<levelscore>Pontuação do Nível</levelscore>\n");
_local1 = (_local1 + "<totalscore>Pontuação Total</totalscore>\n");
_local1 = (_local1 + "</scorescreen>\n");
_local1 = (_local1 + "<gameOver>\n");
_local1 = (_local1 + "<submit>ENVIAR PONTUAÇÃO</submit>\n");
_local1 = (_local1 + "<title>ACABOU</title>\n");
_local1 = (_local1 + "<score>Seu placar</score>\n");
_local1 = (_local1 + "<name>Seu nome</name>\n");
_local1 = (_local1 + "</gameOver>\n");
_local1 = (_local1 + "<victory>\n");
_local1 = (_local1 + "<title>Vitória</title>\n");
_local1 = (_local1 + "<score>Seu placar</score>\n");
_local1 = (_local1 + "<name>Seu nome</name>\n");
_local1 = (_local1 + "</victory>\n");
_local1 = (_local1 + "<highscore>\n");
_local1 = (_local1 + "<title>Recordes</title>\n");
_local1 = (_local1 + "<name>Nome</name>\n");
_local1 = (_local1 + "<score>Pontuaçâo</score>\n");
_local1 = (_local1 + "<rank>Classificaçâo</rank>\n");
_local1 = (_local1 + "<menu>MENU PRINCIPAL</menu>\n");
_local1 = (_local1 + "<moregames>MAIS DE 3.000 JOGOS</moregames>\n");
_local1 = (_local1 + "</highscore>\n");
_local1 = (_local1 + "</localization>\n");
_local2 = new XML(_local1);
return (_local2);
}
private static function getXMLLocalization11():XML{
var _local1:String;
var _local2:XML;
_local1 = "<?xml version=\"1.0\" encoding=\"utf-8\" ?>\n";
_local1 = (_local1 + "<localization>\n");
_local1 = (_local1 + "<symbol_cash>$</symbol_cash>\n");
_local1 = (_local1 + "<sarah>Eko</sarah>");
_local1 = (_local1 + "<loading>\n");
_local1 = (_local1 + "<title>Pengisian...</title>\n");
_local1 = (_local1 + "<msg>LEBIH BANYAK LAGI PERMAINAN ONLINE GRATIS DI:</msg>\n");
_local1 = (_local1 + "</loading>\n");
_local1 = (_local1 + "<mainmenu>\n");
_local1 = (_local1 + "<startgame>MEMULAI PERMAINAN</startgame>\n");
_local1 = (_local1 + "<howtoplay>CARA BERMAIN</howtoplay>\n");
_local1 = (_local1 + "<highscore>NILAI TERTINGGI</highscore>\n");
_local1 = (_local1 + "<moregames>PERMAINAN LAINNYA</moregames>\n");
_local1 = (_local1 + "<quality>Kualitas:</quality>\n");
_local1 = (_local1 + "<high>TINGGI</high>");
_local1 = (_local1 + "<medium>SEDANG</medium>");
_local1 = (_local1 + "<low>RENDAH</low>");
_local1 = (_local1 + "</mainmenu>\n");
_local1 = (_local1 + "<howToPlay>\n");
_local1 = (_local1 + "<title>CARA BERMAIN</title>\n");
_local1 = (_local1 + "<mainmenu>MENU UTAMA</mainmenu>\n");
_local1 = (_local1 + "<next>BERIKUT</next>\n");
_local1 = (_local1 + "<back>KEMBALI</back>\n");
_local1 = (_local1 + "<text1>Klik pada para klien dan tahan untuk menjemput mereka.</text1>\n");
_local1 = (_local1 + "<text2>Kemudian turunkan mereka pada stasiun yang diinginkan.</text2>\n");
_local1 = (_local1 + "<text3>Jangan biarkan meteran tekanan mereka terlalu tinggi atau mereka akan meninggalkan salon tersebut!</text3>\n");
_local1 = (_local1 + "<text4>Kadang-kadang stasiun akan kotor atau para klien akan meminta benda-benda tertentu.</text4>\n");
_local1 = (_local1 + "<text5>Perhatikan bahwa anda bisa merangkaikan aksi Eko.</text5>\n");
_local1 = (_local1 + "<text6>Ambillah benda yang bersangkutan dari bagian persediaan.</text6>\n");
_local1 = (_local1 + "<text7>Jika anda mengambil salah benda, lemparkanlah benda tersebut pada tong sampah yang bersangkutan.</text7>\n");
_local1 = (_local1 + "</howToPlay>\n");
_local1 = (_local1 + "<game>\n");
_local1 = (_local1 + "<play>MAIN</play>\n");
_local1 = (_local1 + "<goalReached>Gol tercapai</goalReached>\n");
_local1 = (_local1 + "<goal>Gol</goal>\n");
_local1 = (_local1 + "<cash>Uang</cash>\n");
_local1 = (_local1 + "<left>Sisa klien</left>\n");
_local1 = (_local1 + "<msg1>Saya telah menyelesaikannya! Spa saya yang pertama telah siap dibuka untuk umum! Meskipun spa nya sedikit kecil, tapi saya jamin dengan tema Mediterania akan menarik banyak pengunjung!</msg1>");
_local1 = (_local1 + "<msg2>Saya yakin kalau spa saya akan berhasil! Setelah bekerja keras, saya telah mengatur untuk membeli tempat yang lebih besar. Tema tropis ini tentu akan menarik lebih banyak pengunjung lagi!</msg2>");
_local1 = (_local1 + "<msg3>Usaha kecantikan saya berkembang pesat! Saya bahkan harus pindah ke tempat yang lebih besar agar bisa memuat pengunjung yang lebih banyak lagi. Dan dekorasi Oriental ini sangatlah menakjubkan!</msg3>");
_local1 = (_local1 + "<msg4>Sebuah tempat peristirahatan kecantikan di pegunungan! Ini selalu menjadi impian saya, dan sekarang saya telah mencapainya! Banyak lagi pekerjaan yang akan datang, tetapi saya menyukai spa saya yang cantik di daerah pegunungan!</msg4>");
_local1 = (_local1 + "</game>\n");
_local1 = (_local1 + "<progress>\n");
_local1 = (_local1 + "<play>MAIN</play>\n");
_local1 = (_local1 + "<score>SKOR</score>\n");
_local1 = (_local1 + "</progress>\n");
_local1 = (_local1 + "<pause>\n");
_local1 = (_local1 + "<msg>BERHENTI SEBENTAR</msg>\n");
_local1 = (_local1 + "<msgContinue>Klik untuk melanjutkan</msgContinue>\n");
_local1 = (_local1 + "</pause>\n");
_local1 = (_local1 + "<update>\n");
_local1 = (_local1 + "<msg>Penawaran layanan spa baru!</msg>\n");
_local1 = (_local1 + "</update>\n");
_local1 = (_local1 + "<scorescreen>\n");
_local1 = (_local1 + "<title>LEVEL SELESAI!</title>\n");
_local1 = (_local1 + "<fail>Level Gagal</fail>\n");
_local1 = (_local1 + "<ok>OK</ok>\n");
_local1 = (_local1 + "<levelscore>Skor Level</levelscore>\n");
_local1 = (_local1 + "<totalscore>Skor Total</totalscore>\n");
_local1 = (_local1 + "</scorescreen>\n");
_local1 = (_local1 + "<gameOver>\n");
_local1 = (_local1 + "<submit>KUMPULKAN SKOR</submit>\n");
_local1 = (_local1 + "<title>BERAKHIR</title>\n");
_local1 = (_local1 + "<score>Skor Anda</score>\n");
_local1 = (_local1 + "<name>Nama Anda</name>\n");
_local1 = (_local1 + "</gameOver>\n");
_local1 = (_local1 + "<victory>\n");
_local1 = (_local1 + "<title>Kemenangan!!</title>\n");
_local1 = (_local1 + "<score>Skor Anda</score>\n");
_local1 = (_local1 + "<name>Nama Anda</name>\n");
_local1 = (_local1 + "</victory>\n");
_local1 = (_local1 + "<highscore>\n");
_local1 = (_local1 + "<title>Nilai Tertinggi</title>\n");
_local1 = (_local1 + "<name>Nama</name>\n");
_local1 = (_local1 + "<score>Skor</score>\n");
_local1 = (_local1 + "<rank>Peringkat</rank>\n");
_local1 = (_local1 + "<menu>MENU UTAMA</menu>\n");
_local1 = (_local1 + "<moregames>3000+ PERMAINAN</moregames>\n");
_local1 = (_local1 + "</highscore>\n");
_local1 = (_local1 + "</localization>\n");
_local2 = new XML(_local1);
return (_local2);
}
private static function getXMLLocalization13():XML{
var _local1:String;
var _local2:XML;
_local1 = "<?xml version=\"1.0\" encoding=\"utf-8\" ?>\n";
_local1 = (_local1 + "<localization>\n");
_local1 = (_local1 + "<symbol_cash>$</symbol_cash>\n");
_local1 = (_local1 + "<sarah>Heather</sarah>");
_local1 = (_local1 + "<loading>\n");
_local1 = (_local1 + "<title>Loading...</title>\n");
_local1 = (_local1 + "<msg>MORE FREE ONLINE GAMES AT:</msg>\n");
_local1 = (_local1 + "</loading>\n");
_local1 = (_local1 + "<mainmenu>\n");
_local1 = (_local1 + "<startgame>START GAME</startgame>\n");
_local1 = (_local1 + "<howtoplay>HOW TO PLAY</howtoplay>\n");
_local1 = (_local1 + "<highscore>HIGH SCORES</highscore>\n");
_local1 = (_local1 + "<moregames>MORE GAMES</moregames>\n");
_local1 = (_local1 + "<quality>Quality:</quality>\n");
_local1 = (_local1 + "<high>HIGH</high>");
_local1 = (_local1 + "<medium>MEDIUM</medium>");
_local1 = (_local1 + "<low>LOW</low>");
_local1 = (_local1 + "</mainmenu>\n");
_local1 = (_local1 + "<howToPlay>\n");
_local1 = (_local1 + "<title>HOW TO PLAY</title>\n");
_local1 = (_local1 + "<mainmenu>MAIN MENU</mainmenu>\n");
_local1 = (_local1 + "<next>NEXT</next>\n");
_local1 = (_local1 + "<back>BACK</back>\n");
_local1 = (_local1 + "<text1>Click on the clients and hold the button down to pick them up.</text1>\n");
_local1 = (_local1 + "<text2>Then drop them at the relevant station.</text2>\n");
_local1 = (_local1 + "<text3>Don't let their stress meters rise too high, or they will leave the salon!</text3>\n");
_local1 = (_local1 + "<text4>Certain stations may become dirty or clients may request certain items.</text4>\n");
_local1 = (_local1 + "<text5>Note that you can chain Heather's actions.</text5>\n");
_local1 = (_local1 + "<text6>Pick the item from the relevant supply station.</text6>\n");
_local1 = (_local1 + "<text7>If you pick the wrong item, throw it in the appropriate bin.</text7>\n");
_local1 = (_local1 + "</howToPlay>\n");
_local1 = (_local1 + "<game>\n");
_local1 = (_local1 + "<play>PLAY</play>\n");
_local1 = (_local1 + "<goalReached>Goal Achieved</goalReached>\n");
_local1 = (_local1 + "<goal>Goal</goal>\n");
_local1 = (_local1 + "<cash>Cash</cash>\n");
_local1 = (_local1 + "<left>Remaining Clients</left>\n");
_local1 = (_local1 + "<msg1>I've done it! My first spa is ready to open to the public! It is rather small, but the Mediterranean theme is bound to attract a large number of clients!</msg1>");
_local1 = (_local1 + "<msg2>I knew my spa would be a success! After a lot of hard work I have managed to buy a bigger place. This tropical theme will definitely attract more clients!</msg2>");
_local1 = (_local1 + "<msg3>My beauty business is really thriving! I had to move to even bigger premises to enable me to treat more clients, and this Oriental décor is amazing!</msg3>");
_local1 = (_local1 + "<msg4>A mountain beauty resort! This has always been my ambition and I have achieved at last! There is a huge amount of work ahead, but I love my beautiful spa in the mountains!</msg4>");
_local1 = (_local1 + "</game>\n");
_local1 = (_local1 + "<progress>\n");
_local1 = (_local1 + "<play>PLAY</play>\n");
_local1 = (_local1 + "<score>SCORE</score>\n");
_local1 = (_local1 + "</progress>\n");
_local1 = (_local1 + "<pause>\n");
_local1 = (_local1 + "<msg>PAUSED</msg>\n");
_local1 = (_local1 + "<msgContinue>Click to continue</msgContinue>\n");
_local1 = (_local1 + "</pause>\n");
_local1 = (_local1 + "<update>\n");
_local1 = (_local1 + "<msg>A new spa service!</msg>\n");
_local1 = (_local1 + "</update>\n");
_local1 = (_local1 + "<scorescreen>\n");
_local1 = (_local1 + "<title>LEVEL COMPLETED!</title>\n");
_local1 = (_local1 + "<fail>Level Failed!</fail>\n");
_local1 = (_local1 + "<ok>OK</ok>\n");
_local1 = (_local1 + "<levelscore>Level Score</levelscore>\n");
_local1 = (_local1 + "<totalscore>Total Score</totalscore>\n");
_local1 = (_local1 + "</scorescreen>\n");
_local1 = (_local1 + "<gameOver>\n");
_local1 = (_local1 + "<submit>SUBMIT SCORE</submit>\n");
_local1 = (_local1 + "<title>GAME OVER</title>\n");
_local1 = (_local1 + "<score>Your Score</score>\n");
_local1 = (_local1 + "<name>Your Name</name>\n");
_local1 = (_local1 + "</gameOver>\n");
_local1 = (_local1 + "<victory>\n");
_local1 = (_local1 + "<title>VICTORY!!</title>\n");
_local1 = (_local1 + "<score>Your Score</score>\n");
_local1 = (_local1 + "<name>Your Name</name>\n");
_local1 = (_local1 + "</victory>\n");
_local1 = (_local1 + "<highscore>\n");
_local1 = (_local1 + "<title>HIGH SCORE</title>\n");
_local1 = (_local1 + "<name>Name</name>\n");
_local1 = (_local1 + "<score>Score</score>\n");
_local1 = (_local1 + "<rank>Rank</rank>\n");
_local1 = (_local1 + "<menu>MAIN MENU</menu>\n");
_local1 = (_local1 + "<moregames>3000+ GAMES</moregames>\n");
_local1 = (_local1 + "</highscore>\n");
_local1 = (_local1 + "</localization>\n");
_local2 = new XML(_local1);
return (_local2);
}
private static function getXMLLocalization17():XML{
var _local1:String;
var _local2:XML;
_local1 = "<?xml version=\"1.0\" encoding=\"utf-8\" ?>\n";
_local1 = (_local1 + "<localization>\n");
_local1 = (_local1 + "<symbol_cash>$</symbol_cash>\n");
_local1 = (_local1 + "<sarah>Funda</sarah>");
_local1 = (_local1 + "<loading>\n");
_local1 = (_local1 + "<title>Yükleniyor...</title>\n");
_local1 = (_local1 + "<msg>DAHA FAZLA ÜCRETSİZ ONLINE OYUN BURADA:</msg>\n");
_local1 = (_local1 + "</loading>\n");
_local1 = (_local1 + "<mainmenu>\n");
_local1 = (_local1 + "<startgame>OYUNA BAŞLA</startgame>\n");
_local1 = (_local1 + "<howtoplay>NASIL OYNANIR?</howtoplay>\n");
_local1 = (_local1 + "<highscore>EN YÜKSEK SKORLAR</highscore>\n");
_local1 = (_local1 + "<moregames>DAHA FAZLA OYUN</moregames>\n");
_local1 = (_local1 + "<quality>Kalite:</quality>\n");
_local1 = (_local1 + "<high>YÜKSEK</high>");
_local1 = (_local1 + "<medium>ORTA</medium>");
_local1 = (_local1 + "<low>DÜŞÜK</low>");
_local1 = (_local1 + "</mainmenu>\n");
_local1 = (_local1 + "<howToPlay>\n");
_local1 = (_local1 + "<title>NASIL OYNANIR?</title>\n");
_local1 = (_local1 + "<mainmenu>ANA MENÜ</mainmenu>\n");
_local1 = (_local1 + "<next>İLERİ</next>\n");
_local1 = (_local1 + "<back>GERİ</back>\n");
_local1 = (_local1 + "<text1>Müşterilerin üzerine tıklayın ve kaldırmak için basılı tutun.</text1>\n");
_local1 = (_local1 + "<text2>İstediği yere bırakın.</text2>\n");
_local1 = (_local1 + "<text3>Stres seviyelerinin yükselmemesine dikkat edin, aksi takdirde müşterileri kaçırırsınız!</text3>\n");
_local1 = (_local1 + "<text4>Bazen salonlar kirlenir ya da müşterilerin bazı ihtiyaçları olur.</text4>\n");
_local1 = (_local1 + "<text5>Funda'ya birden fazla eylem yükleyebilirsiniz.</text5>\n");
_local1 = (_local1 + "<text6>Malzeme odasında ilgili öğe üzerine tıklayın.</text6>\n");
_local1 = (_local1 + "<text7>Yanlış bir malzeme alırsanız, ilgili çöp kutusuna atın.</text7>\n");
_local1 = (_local1 + "</howToPlay>\n");
_local1 = (_local1 + "<game>\n");
_local1 = (_local1 + "<play>OYNAT</play>\n");
_local1 = (_local1 + "<goalReached>Hedefe Ulaşıldı</goalReached>\n");
_local1 = (_local1 + "<goal>Hedef</goal>\n");
_local1 = (_local1 + "<cash>Kasa</cash>\n");
_local1 = (_local1 + "<left>Kalan Müşteri</left>\n");
_local1 = (_local1 + "<msg1>Başardım! İlk spa salonum hizmete girmeye hazır! Biraz küçük ama iddia ediyorum Akdeniz temasıyla çok müşteri çekecek!</msg1>");
_local1 = (_local1 + "<msg2>Spa salonumun iyi iş çıkaracağını biliyordum! Sıkı çalışmalardan sonra daha büyük bir mekan almayı başardım. Tropik temalı salonun daha fazla müşteri çekeceğine eminim!</msg2>");
_local1 = (_local1 + "<msg3>Güzellik merkezimin müşterileri her geçen gün artıyor! Daha büyük bir yere taşınmalıyım, böylece daha çok müşteriye hizmet verebilirim. Uzak doğu dekoru harika!</msg3>");
_local1 = (_local1 + "<msg4>Doğanın kucağında bir güzellik merkezi! Hep bunu istemiştim ve sonunda başardım! Daha yapılacak çok iş var ama dağ manzaralı bu spa merkezimi çok seviyorum!</msg4>");
_local1 = (_local1 + "</game>\n");
_local1 = (_local1 + "<progress>\n");
_local1 = (_local1 + "<play>OYNAT</play>\n");
_local1 = (_local1 + "<score>SKOR</score>\n");
_local1 = (_local1 + "</progress>\n");
_local1 = (_local1 + "<pause>\n");
_local1 = (_local1 + "<msg>DURAKLATILDI</msg>\n");
_local1 = (_local1 + "<msgContinue>Devam etmek için tıklayın</msgContinue>\n");
_local1 = (_local1 + "</pause>\n");
_local1 = (_local1 + "<update>\n");
_local1 = (_local1 + "<msg>Yeni spa merkezi hizmete girdi!</msg>\n");
_local1 = (_local1 + "</update>\n");
_local1 = (_local1 + "<scorescreen>\n");
_local1 = (_local1 + "<title>SEVİYE TAMAMLANDI!</title>\n");
_local1 = (_local1 + "<fail>Seviye Tamamlanamadı</fail>\n");
_local1 = (_local1 + "<ok>Tamam</ok>\n");
_local1 = (_local1 + "<levelscore>Seviye Skoru</levelscore>\n");
_local1 = (_local1 + "<totalscore>Toplam Skor</totalscore>\n");
_local1 = (_local1 + "</scorescreen>\n");
_local1 = (_local1 + "<gameOver>\n");
_local1 = (_local1 + "<submit>SKORU KAYDET</submit>\n");
_local1 = (_local1 + "<title>OYUN BİTTİ</title>\n");
_local1 = (_local1 + "<score>Skorunuz</score>\n");
_local1 = (_local1 + "<name>Adınız</name>\n");
_local1 = (_local1 + "</gameOver>\n");
_local1 = (_local1 + "<victory>\n");
_local1 = (_local1 + "<title>Bravo!!</title>\n");
_local1 = (_local1 + "<score>Skorunuz</score>\n");
_local1 = (_local1 + "<name>Adınız</name>\n");
_local1 = (_local1 + "</victory>\n");
_local1 = (_local1 + "<highscore>\n");
_local1 = (_local1 + "<title>En Yüksek Skor</title>\n");
_local1 = (_local1 + "<name>İsim</name>\n");
_local1 = (_local1 + "<score>Skor</score>\n");
_local1 = (_local1 + "<rank>Sıra</rank>\n");
_local1 = (_local1 + "<menu>ANA MENÜ</menu>\n");
_local1 = (_local1 + "<moregames>3000+ OYUN</moregames>\n");
_local1 = (_local1 + "</highscore>\n");
_local1 = (_local1 + "</localization>\n");
_local2 = new XML(_local1);
return (_local2);
}
private static function getXMLLocalization1():XML{
var _local1:String;
var _local2:XML;
_local1 = "<?xml version=\"1.0\" encoding=\"utf-8\" ?>\n";
_local1 = (_local1 + "<localization>\n");
_local1 = (_local1 + "<symbol_cash>$</symbol_cash>\n");
_local1 = (_local1 + "<sarah>Heather</sarah>");
_local1 = (_local1 + "<loading>\n");
_local1 = (_local1 + "<title>Loading...</title>\n");
_local1 = (_local1 + "<msg>MORE FREE ONLINE GAMES AT:</msg>\n");
_local1 = (_local1 + "</loading>\n");
_local1 = (_local1 + "<mainmenu>\n");
_local1 = (_local1 + "<startgame>START GAME</startgame>\n");
_local1 = (_local1 + "<howtoplay>HOW TO PLAY</howtoplay>\n");
_local1 = (_local1 + "<highscore>HIGH SCORES</highscore>\n");
_local1 = (_local1 + "<moregames>MORE GAMES</moregames>\n");
_local1 = (_local1 + "<quality>Quality:</quality>\n");
_local1 = (_local1 + "<high>HIGH</high>");
_local1 = (_local1 + "<medium>MEDIUM</medium>");
_local1 = (_local1 + "<low>LOW</low>");
_local1 = (_local1 + "</mainmenu>\n");
_local1 = (_local1 + "<howToPlay>\n");
_local1 = (_local1 + "<title>HOW TO PLAY</title>\n");
_local1 = (_local1 + "<mainmenu>MAIN MENU</mainmenu>\n");
_local1 = (_local1 + "<next>NEXT</next>\n");
_local1 = (_local1 + "<back>BACK</back>\n");
_local1 = (_local1 + "<text1>Click on the clients and hold to pick them up.</text1>\n");
_local1 = (_local1 + "<text2>Then drop them at the desired station.</text2>\n");
_local1 = (_local1 + "<text3>Don't let their stress meters get too high or they'll leave the salon!</text3>\n");
_local1 = (_local1 + "<text4>Sometimes stations get dirty, or need to be resuplied.</text4>\n");
_local1 = (_local1 + "<text5>Notice you can create a chain of actions for Heather.</text5>\n");
_local1 = (_local1 + "<text6>Select the requested item from the supply station.</text6>\n");
_local1 = (_local1 + "<text7>If you click on the wrong item, throw it in the appropriate trash can.</text7>\n");
_local1 = (_local1 + "</howToPlay>\n");
_local1 = (_local1 + "<game>\n");
_local1 = (_local1 + "<play>PLAY</play>\n");
_local1 = (_local1 + "<goalReached>Goal Reached</goalReached>\n");
_local1 = (_local1 + "<goal>Goal</goal>\n");
_local1 = (_local1 + "<cash>Cash</cash>\n");
_local1 = (_local1 + "<left>Remaining Clients</left>\n");
_local1 = (_local1 + "<msg1>I've done it! My first spa is ready to open to the public! It´s a bit small, but I bet the Mediterranean theme will attract a lot of clients!</msg1>");
_local1 = (_local1 + "<msg2>I knew my spa would be a success! After a lot of hard work, I've managed to buy a bigger place. This tropical theme will definitely bring more people in!</msg2>");
_local1 = (_local1 + "<msg3>My beauty business is really thriving! I had to move to an even bigger place so I could fit more clients. And this Oriental décor is amazing!</msg3>");
_local1 = (_local1 + "<msg4>A mountain beauty resort! This has always been my goal, and now I've made it! There's a lot more work ahead, but I love my beautiful spa in the mountains!</msg4>");
_local1 = (_local1 + "</game>\n");
_local1 = (_local1 + "<progress>\n");
_local1 = (_local1 + "<play>PLAY</play>\n");
_local1 = (_local1 + "<score>SCORE</score>\n");
_local1 = (_local1 + "</progress>\n");
_local1 = (_local1 + "<pause>\n");
_local1 = (_local1 + "<msg>PAUSED</msg>\n");
_local1 = (_local1 + "<msgContinue>Click to continue</msgContinue>\n");
_local1 = (_local1 + "</pause>\n");
_local1 = (_local1 + "<update>\n");
_local1 = (_local1 + "<msg>New spa service offering!</msg>\n");
_local1 = (_local1 + "</update>\n");
_local1 = (_local1 + "<scorescreen>\n");
_local1 = (_local1 + "<title>LEVEL COMPLETED!</title>\n");
_local1 = (_local1 + "<fail>Level Failed!</fail>\n");
_local1 = (_local1 + "<ok>OK</ok>\n");
_local1 = (_local1 + "<levelscore>Level Score</levelscore>\n");
_local1 = (_local1 + "<totalscore>Total Score</totalscore>\n");
_local1 = (_local1 + "</scorescreen>\n");
_local1 = (_local1 + "<gameOver>\n");
_local1 = (_local1 + "<submit>SUBMIT SCORE</submit>\n");
_local1 = (_local1 + "<title>GAME OVER</title>\n");
_local1 = (_local1 + "<score>Your Score</score>\n");
_local1 = (_local1 + "<name>Your Name</name>\n");
_local1 = (_local1 + "</gameOver>\n");
_local1 = (_local1 + "<victory>\n");
_local1 = (_local1 + "<title>VICTORY!!</title>\n");
_local1 = (_local1 + "<score>Your Score</score>\n");
_local1 = (_local1 + "<name>Your Name</name>\n");
_local1 = (_local1 + "</victory>\n");
_local1 = (_local1 + "<highscore>\n");
_local1 = (_local1 + "<title>HIGH SCORE</title>\n");
_local1 = (_local1 + "<name>Name</name>\n");
_local1 = (_local1 + "<score>Score</score>\n");
_local1 = (_local1 + "<rank>Rank</rank>\n");
_local1 = (_local1 + "<menu>MAIN MENU</menu>\n");
_local1 = (_local1 + "<moregames>3000+ GAMES</moregames>\n");
_local1 = (_local1 + "</highscore>\n");
_local1 = (_local1 + "</localization>\n");
_local2 = new XML(_local1);
return (_local2);
}
private static function getXMLLocalization2():XML{
var _local1:String;
var _local2:XML;
_local1 = "<?xml version=\"1.0\" encoding=\"utf-8\" ?>\n";
_local1 = (_local1 + "<localization>\n");
_local1 = (_local1 + "<symbol_cash>$</symbol_cash>\n");
_local1 = (_local1 + "<sarah>希瑟</sarah>");
_local1 = (_local1 + "<loading>\n");
_local1 = (_local1 + "<title>载入中...</title>\n");
_local1 = (_local1 + "<msg>更多免费游戏尽在</msg>\n");
_local1 = (_local1 + "</loading>\n");
_local1 = (_local1 + "<mainmenu>\n");
_local1 = (_local1 + "<startgame>开始游戏</startgame>\n");
_local1 = (_local1 + "<howtoplay>游戏帮助</howtoplay>\n");
_local1 = (_local1 + "<highscore>排行榜</highscore>\n");
_local1 = (_local1 + "<moregames>更多游戏</moregames>\n");
_local1 = (_local1 + "<quality>画质:</quality>\n");
_local1 = (_local1 + "<high>高</high>");
_local1 = (_local1 + "<medium>中</medium>");
_local1 = (_local1 + "<low>低</low>");
_local1 = (_local1 + "</mainmenu>\n");
_local1 = (_local1 + "<howToPlay>\n");
_local1 = (_local1 + "<title>游戏帮助</title>\n");
_local1 = (_local1 + "<mainmenu>主菜单</mainmenu>\n");
_local1 = (_local1 + "<next>下一步</next>\n");
_local1 = (_local1 + "<back>返回</back>\n");
_local1 = (_local1 + "<text1>在顾客身上点击鼠标不放从而抓起顾客</text1>\n");
_local1 = (_local1 + "<text2>拖动他们到目标地点</text2>\n");
_local1 = (_local1 + "<text3>不要让他们的不满意度太高 否则他们就要离开沙龙</text3>\n");
_local1 = (_local1 + "<text4>有时候设施会变脏或者顾客会提出一些要求</text4>\n");
_local1 = (_local1 + "<text5>你可以指挥希瑟的动作</text5>\n");
_local1 = (_local1 + "<text6>从补给站中可以拾取相应的物品</text6>\n");
_local1 = (_local1 + "<text7>如果你拾取错误的物品,你必须把它放入相应的垃圾桶里</text7>\n");
_local1 = (_local1 + "</howToPlay>\n");
_local1 = (_local1 + "<game>\n");
_local1 = (_local1 + "<play>开始</play>\n");
_local1 = (_local1 + "<goalReached>达成目标</goalReached>\n");
_local1 = (_local1 + "<goal>目标</goal>\n");
_local1 = (_local1 + "<cash>现金</cash>\n");
_local1 = (_local1 + "<msg1>我已经完成了! 我的第一家水疗中心已经准备开业了!虽然它小了点,但我干打赌我们的地中海风情的主题会吸引很多顾客!</msg1>");
_local1 = (_local1 + "<msg2>我想我的水疗中心已经成功了!再努力工作一段时间后,我将设法再去买一个更大的地方.热带主题一定会带来更多的顾客!</msg2>");
_local1 = (_local1 + "<msg3>我美丽的事业是如此的成功! 我需要换一个更大的地方去容纳更多个顾客.而中国风将会让人震撼!</msg3>");
_local1 = (_local1 + "<msg4>多么美丽的山啊!它一直以来都是我们的目标,而现在我已经征服它了!虽然有更多的工作放在我面前.但在这个建我的水疗中心是我一直的梦想.</msg4>");
_local1 = (_local1 + "</game>\n");
_local1 = (_local1 + "<progress>\n");
_local1 = (_local1 + "<play>开始</play>\n");
_local1 = (_local1 + "<score>得分</score>\n");
_local1 = (_local1 + "</progress>\n");
_local1 = (_local1 + "<pause>\n");
_local1 = (_local1 + "<msg>暂停</msg>\n");
_local1 = (_local1 + "<msgContinue>点击继续</msgContinue>\n");
_local1 = (_local1 + "</pause>\n");
_local1 = (_local1 + "<update>\n");
_local1 = (_local1 + "<msg>有新的服务提供了!</msg>\n");
_local1 = (_local1 + "</update>\n");
_local1 = (_local1 + "<scorescreen>\n");
_local1 = (_local1 + "<title>任务完成</title>\n");
_local1 = (_local1 + "<fail>任务失败</fail>\n");
_local1 = (_local1 + "<ok>确认</ok>\n");
_local1 = (_local1 + "<levelscore>本关得分</levelscore>\n");
_local1 = (_local1 + "<totalscore>总得分</totalscore>\n");
_local1 = (_local1 + "</scorescreen>\n");
_local1 = (_local1 + "<gameOver>\n");
_local1 = (_local1 + "<submit>提交分数</submit>\n");
_local1 = (_local1 + "<title>游戏结束</title>\n");
_local1 = (_local1 + "<score>你的得分</score>\n");
_local1 = (_local1 + "<name>你的姓名</name>\n");
_local1 = (_local1 + "</gameOver>\n");
_local1 = (_local1 + "<victory>\n");
_local1 = (_local1 + "<title>胜利</title>\n");
_local1 = (_local1 + "<score>你的得分</score>\n");
_local1 = (_local1 + "<name>你的姓名</name>\n");
_local1 = (_local1 + "</victory>\n");
_local1 = (_local1 + "<highscore>\n");
_local1 = (_local1 + "<title>排行榜</title>\n");
_local1 = (_local1 + "<name>姓名</name>\n");
_local1 = (_local1 + "<score>得分</score>\n");
_local1 = (_local1 + "<rank>排名</rank>\n");
_local1 = (_local1 + "<menu>主菜单</menu>\n");
_local1 = (_local1 + "<moregames>3000+游戏</moregames>\n");
_local1 = (_local1 + "</highscore>\n");
_local1 = (_local1 + "</localization>\n");
_local2 = new XML(_local1);
return (_local2);
}
private static function getXMLLocalization3():XML{
var _local1:String;
var _local2:XML;
_local1 = "<?xml version=\"1.0\" encoding=\"utf-8\" ?>\n";
_local1 = (_local1 + "<localization>\n");
_local1 = (_local1 + "<symbol_cash>$</symbol_cash>\n");
_local1 = (_local1 + "<sarah>Marjolein</sarah>");
_local1 = (_local1 + "<loading>\n");
_local1 = (_local1 + "<title>Laden...</title>\n");
_local1 = (_local1 + "<msg>MEER GRATIS ONLINE SPELLEN OP:</msg>\n");
_local1 = (_local1 + "</loading>\n");
_local1 = (_local1 + "<mainmenu>\n");
_local1 = (_local1 + "<startgame>START SPEL</startgame>\n");
_local1 = (_local1 + "<howtoplay>SPELUITLEG</howtoplay>\n");
_local1 = (_local1 + "<highscore>HIGHSCORES</highscore>\n");
_local1 = (_local1 + "<moregames>MEER SPELLEN</moregames>\n");
_local1 = (_local1 + "<quality>Kwaliteit:</quality>\n");
_local1 = (_local1 + "<high>HOOG</high>");
_local1 = (_local1 + "<medium>NORMAAL</medium>");
_local1 = (_local1 + "<low>LAAG</low>");
_local1 = (_local1 + "</mainmenu>\n");
_local1 = (_local1 + "<howToPlay>\n");
_local1 = (_local1 + "<title>SPELUITLEG</title>\n");
_local1 = (_local1 + "<mainmenu>HOOFDMENU</mainmenu>\n");
_local1 = (_local1 + "<next>VOLGENDE</next>\n");
_local1 = (_local1 + "<back>BACK</back>\n");
_local1 = (_local1 + "<text1>Klik op de klanten en houd ze vast om ze op te pakken.</text1>\n");
_local1 = (_local1 + "<text2>Sleep ze zo naar het servicestation waar ze om vragen.</text2>\n");
_local1 = (_local1 + "<text3>Als je hun stressmeters te hoog laat oplopen, zullen ze de beautysalon verlaten!</text3>\n");
_local1 = (_local1 + "<text4>Sommige werkstations kunnen vies worden of soms vraagt de klant daar om een bepaald item.</text4>\n");
_local1 = (_local1 + "<text5>Je kunt Marjolein meerdere opdrachten achter elkaar geven.</text5>\n");
_local1 = (_local1 + "<text6>Neem het benodigde item van het servicestation.</text6>\n");
_local1 = (_local1 + "<text7>Als je per ongeluk iets verkeerds hebt gepakt, kun je het weggooien in de bijbehorende prullenbak.</text7>\n");
_local1 = (_local1 + "</howToPlay>\n");
_local1 = (_local1 + "<game>\n");
_local1 = (_local1 + "<play>SPELEN</play>\n");
_local1 = (_local1 + "<goalReached>Doel bereikt</goalReached>\n");
_local1 = (_local1 + "<goal>Doel</goal>\n");
_local1 = (_local1 + "<cash>Winst</cash>\n");
_local1 = (_local1 + "<left>Klanten te gaan</left>\n");
_local1 = (_local1 + "<msg1>Wow, het is me gelukt! Mijn eerste schoonheidssalon! Het is nog klein, maar ik denk dat de Mediterraanse sfeer veel klanten zal aantrekken!</msg1>");
_local1 = (_local1 + "<msg2>Ik wist dat mijn idee zou aanslaan! Ik heb er hard voor moeten werken, maar ik heb een grotere salon geopend. De klanten voelen zich vast op hun gemak in deze tropische omgeving.</msg2>");
_local1 = (_local1 + "<msg3>Mijn zaak loopt nu echt goed; ik ben verhuisd naar een nóg groter pand zodat ik alle klanten van dienst kan zijn. Dit Oriëntaalse thema werkt hier ook goed!</msg3>");
_local1 = (_local1 + "<msg4>Een wellnesscentrum in de bergen! Dat is altijd mijn droom geweest; en het is me eindelijk gelukt! Er is nog veel te doen, maar mijn klanten zullen genieten van de frisse berglucht!</msg4>");
_local1 = (_local1 + "</game>\n");
_local1 = (_local1 + "<progress>\n");
_local1 = (_local1 + "<play>SPEEL</play>\n");
_local1 = (_local1 + "<score>SCORE</score>\n");
_local1 = (_local1 + "</progress>\n");
_local1 = (_local1 + "<pause>\n");
_local1 = (_local1 + "<msg>PAUZE</msg>\n");
_local1 = (_local1 + "<msgContinue>Klik om verder te gaan</msgContinue>\n");
_local1 = (_local1 + "</pause>\n");
_local1 = (_local1 + "<update>\n");
_local1 = (_local1 + "<msg>Een nieuwe behandeling!</msg>\n");
_local1 = (_local1 + "</update>\n");
_local1 = (_local1 + "<scorescreen>\n");
_local1 = (_local1 + "<title>LEVEL VOLTOOID!</title>\n");
_local1 = (_local1 + "<fail>Level mislukt</fail>\n");
_local1 = (_local1 + "<ok>OK</ok>\n");
_local1 = (_local1 + "<levelscore>Level score</levelscore>\n");
_local1 = (_local1 + "<totalscore>Totale score</totalscore>\n");
_local1 = (_local1 + "</scorescreen>\n");
_local1 = (_local1 + "<gameOver>\n");
_local1 = (_local1 + "<submit>SCORE VERSTUREN</submit>\n");
_local1 = (_local1 + "<title>GAME OVER</title>\n");
_local1 = (_local1 + "<score>Je score</score>\n");
_local1 = (_local1 + "<name>Je naam</name>\n");
_local1 = (_local1 + "</gameOver>\n");
_local1 = (_local1 + "<victory>\n");
_local1 = (_local1 + "<title>GOED GEDAAN!</title>\n");
_local1 = (_local1 + "<score>Je score</score>\n");
_local1 = (_local1 + "<name>Je naam</name>\n");
_local1 = (_local1 + "</victory>\n");
_local1 = (_local1 + "<highscore>\n");
_local1 = (_local1 + "<title>HIGHSCORE</title>\n");
_local1 = (_local1 + "<name>Naam</name>\n");
_local1 = (_local1 + "<score>Score</score>\n");
_local1 = (_local1 + "<rank>Plaats</rank>\n");
_local1 = (_local1 + "<menu>HOOFDMENU</menu>\n");
_local1 = (_local1 + "<moregames>3000+ SPELLEN</moregames>\n");
_local1 = (_local1 + "</highscore>\n");
_local1 = (_local1 + "</localization>\n");
_local2 = new XML(_local1);
return (_local2);
}
private static function getXMLLocalization4():XML{
var _local1:String;
var _local2:XML;
_local1 = "<?xml version=\"1.0\" encoding=\"utf-8\" ?>\n";
_local1 = (_local1 + "<localization>\n");
_local1 = (_local1 + "<symbol_cash>$</symbol_cash>\n");
_local1 = (_local1 + "<sarah>Aimée</sarah>");
_local1 = (_local1 + "<loading>\n");
_local1 = (_local1 + "<title>Chargement...</title>\n");
_local1 = (_local1 + "<msg>PLUS DE JEUX GRATUITS EN LIGNE SUR :</msg>\n");
_local1 = (_local1 + "</loading>\n");
_local1 = (_local1 + "<mainmenu>\n");
_local1 = (_local1 + "<startgame>JOUER</startgame>\n");
_local1 = (_local1 + "<howtoplay>INSTRUCTIONS</howtoplay>\n");
_local1 = (_local1 + "<highscore>MEILLEURS SCORES</highscore>\n");
_local1 = (_local1 + "<moregames>PLUS DE JEUX</moregames>\n");
_local1 = (_local1 + "<quality>Qualité:</quality>\n");
_local1 = (_local1 + "<high>HAUTE</high>");
_local1 = (_local1 + "<medium>MOYENNE</medium>");
_local1 = (_local1 + "<low>FAIBLE</low>");
_local1 = (_local1 + "</mainmenu>\n");
_local1 = (_local1 + "<howToPlay>\n");
_local1 = (_local1 + "<title>INSTRUCTIONS</title>\n");
_local1 = (_local1 + "<mainmenu>MENU PRINCIPAL</mainmenu>\n");
_local1 = (_local1 + "<next>SUIVANT</next>\n");
_local1 = (_local1 + "<back>RETOUR</back>\n");
_local1 = (_local1 + "<text1>Clique sur les clients et continue à appuyer pour les déplacer.</text1>\n");
_local1 = (_local1 + "<text2>Puis dépose-les à la station de travail choisie</text2>\n");
_local1 = (_local1 + "<text3>Assure-toi que leur niveau de stress ne monte pas trop haut ; sinon, ils quitteront le salon !</text3>\n");
_local1 = (_local1 + "<text4>Il arrive qu'une station de travail devienne sale ou que les clients fassent certaines demandes</text4>\n");
_local1 = (_local1 + "<text5>Remarque que tu peux enchaîner plusieurs actions d'Aimée.</text5>\n");
_local1 = (_local1 + "<text6>Choisis l'objet correspondant dans la station d'approvisionnement.</text6>\n");
_local1 = (_local1 + "<text7>Si tu as choisi le mauvais objet, jette-le dans la poubelle correspondante.</text7>\n");
_local1 = (_local1 + "</howToPlay>\n");
_local1 = (_local1 + "<game>\n");
_local1 = (_local1 + "<play>JOUER</play>\n");
_local1 = (_local1 + "<goalReached>But atteint</goalReached>\n");
_local1 = (_local1 + "<goal>But</goal>\n");
_local1 = (_local1 + "<cash>Espèces</cash>\n");
_local1 = (_local1 + "<left>Clients à aider</left>\n");
_local1 = (_local1 + "<msg1>Ça y est ! Ma première station thermale est prête pour ouvrir ses portes ! Ce n'est pas très grand, mais je parie que le thème méditerranéen va attirer bien du monde !</msg1>");
_local1 = (_local1 + "<msg2>Je savais bien que ma station thermale aurait du succès ! J'ai travaillé dur et j'ai réussi à acheter un emplacement plus grand. Ce thème des tropiques va à tous les coups attirer encore plus de monde !</msg2>");
_local1 = (_local1 + "<msg3>Mon espace beauté marche à merveille ! Il m'a fallu emménager dans un endroit encore plus grand pour recevoir encore plus de clients. Et ce décor oriental est merveilleux !</msg3>");
_local1 = (_local1 + "<msg4>Une station de beauté en pleine montagne ! J'en avais toujours rêvé, et maintenant j'ai réussi ! C'est beaucoup plus de travail en perspective, mais j'adore ma station thermale montagnarde !</msg4>");
_local1 = (_local1 + "</game>\n");
_local1 = (_local1 + "<progress>\n");
_local1 = (_local1 + "<play>JOUER</play>\n");
_local1 = (_local1 + "<score>SCORE</score>\n");
_local1 = (_local1 + "</progress>\n");
_local1 = (_local1 + "<pause>\n");
_local1 = (_local1 + "<msg>PAUSE</msg>\n");
_local1 = (_local1 + "<msgContinue>Clique pour continuer</msgContinue>\n");
_local1 = (_local1 + "</pause>\n");
_local1 = (_local1 + "<update>\n");
_local1 = (_local1 + "<msg>Nouvelle traitement!</msg>\n");
_local1 = (_local1 + "</update>\n");
_local1 = (_local1 + "<scorescreen>\n");
_local1 = (_local1 + "<title>NIVEAU COMPLET!</title>\n");
_local1 = (_local1 + "<fail>Niveau non atteint</fail>\n");
_local1 = (_local1 + "<ok>OK</ok>\n");
_local1 = (_local1 + "<levelscore>Score du niveau</levelscore>\n");
_local1 = (_local1 + "<totalscore>Score général</totalscore>\n");
_local1 = (_local1 + "</scorescreen>\n");
_local1 = (_local1 + "<gameOver>\n");
_local1 = (_local1 + "<submit>ENREGISTRER LE SCORE</submit>\n");
_local1 = (_local1 + "<title>GAME OVER</title>\n");
_local1 = (_local1 + "<score>Ton score</score>\n");
_local1 = (_local1 + "<name>Ton nom</name>\n");
_local1 = (_local1 + "</gameOver>\n");
_local1 = (_local1 + "<victory>\n");
_local1 = (_local1 + "<title>VICTOIRE!!</title>\n");
_local1 = (_local1 + "<score>Ton score</score>\n");
_local1 = (_local1 + "<name>Ton nom</name>\n");
_local1 = (_local1 + "</victory>\n");
_local1 = (_local1 + "<highscore>\n");
_local1 = (_local1 + "<title>MEILLEURS SCORES</title>\n");
_local1 = (_local1 + "<name>Nom</name>\n");
_local1 = (_local1 + "<score>Score</score>\n");
_local1 = (_local1 + "<rank>Rang</rank>\n");
_local1 = (_local1 + "<menu>MENU PRINCIPAL</menu>\n");
_local1 = (_local1 + "<moregames>+ DE 3000 JEUX</moregames>\n");
_local1 = (_local1 + "</highscore>\n");
_local1 = (_local1 + "</localization>\n");
_local2 = new XML(_local1);
return (_local2);
}
private static function getXMLLocalization5():XML{
var _local1:String;
var _local2:XML;
_local1 = "<?xml version=\"1.0\" encoding=\"utf-8\" ?>\n";
_local1 = (_local1 + "<localization>\n");
_local1 = (_local1 + "<symbol_cash>$</symbol_cash>\n");
_local1 = (_local1 + "<sarah>Hanna</sarah>");
_local1 = (_local1 + "<loading>\n");
_local1 = (_local1 + "<title>Ładowanie...</title>\n");
_local1 = (_local1 + "<msg>MEHR KOSTENLOSE ONLINESPIELE AUF:</msg>\n");
_local1 = (_local1 + "</loading>\n");
_local1 = (_local1 + "<mainmenu>\n");
_local1 = (_local1 + "<startgame>SPIEL STARTEN</startgame>\n");
_local1 = (_local1 + "<howtoplay>ANLEITUNG</howtoplay>\n");
_local1 = (_local1 + "<highscore>HIGHSCORES</highscore>\n");
_local1 = (_local1 + "<moregames>MEHR SPIELE</moregames>\n");
_local1 = (_local1 + "<quality>Qualität:</quality>\n");
_local1 = (_local1 + "<high>HOCH</high>");
_local1 = (_local1 + "<medium>MITTEL</medium>");
_local1 = (_local1 + "<low>NIEDRIG</low>");
_local1 = (_local1 + "</mainmenu>\n");
_local1 = (_local1 + "<howToPlay>\n");
_local1 = (_local1 + "<title>ANLEITUNG</title>\n");
_local1 = (_local1 + "<mainmenu>HAUPTMENÜ</mainmenu>\n");
_local1 = (_local1 + "<next>WEITER</next>\n");
_local1 = (_local1 + "<back>ZURÜCK</back>\n");
_local1 = (_local1 + "<text1>Klicke auf die Kunden und halte die Maustaste gedrückt, um sie zu bewegen.</text1>\n");
_local1 = (_local1 + "<text2>Ziehe sie dann zur gewünschten Station.</text2>\n");
_local1 = (_local1 + "<text3>Pass auf, dass die Stressanzeige nicht zu hoch steigt, sonst verlassen sie deinen Salon!</text3>\n");
_local1 = (_local1 + "<text4>Manchmal werden die Stationen schmutzig oder die Kunden fragen nach bestimmten Gegenständen.</text4>\n");
_local1 = (_local1 + "<text5>Du kannst Hanna auch mehrere Aktionen unmittelbar hintereinander ausführen lassen.</text5>\n");
_local1 = (_local1 + "<text6>Nimm den betreffenden Gegenstand von der Station.</text6>\n");
_local1 = (_local1 + "<text7>Wenn du den falschen Gegenstand nimmst, wirf ihn einfach in die entsprechende Mülltonne.</text7>\n");
_local1 = (_local1 + "</howToPlay>\n");
_local1 = (_local1 + "<game>\n");
_local1 = (_local1 + "<play>SPIELEN</play>\n");
_local1 = (_local1 + "<goalReached>Ziel erreicht</goalReached>\n");
_local1 = (_local1 + "<goal>Ziel</goal>\n");
_local1 = (_local1 + "<cash>Bargeld</cash>\n");
_local1 = (_local1 + "<left>Verbleibende Kunden</left>\n");
_local1 = (_local1 + "<msg1>Ich hab's geschafft! Mein erster Schönheitssalon ist eröffnet! Er ist noch sehr klein, aber ich mir sicher, dass das mediterrane Ambiente viele Kunden anlocken wird!</msg1>");
_local1 = (_local1 + "<msg2>Ich wusste, dass mein Schönheitssalon ein Erfolg wird! Nach viel harter Arbeit konnte ich mir jetzt einen größeren Salon kaufen. Das tropische Ambiente lockt sicher noch mehr Kunden an!</msg2>");
_local1 = (_local1 + "<msg3>Mein Schönheitssalon floriert! Ich musste mir einen noch größeren kaufen, damit ich noch mehr Kunden bedienen kann. Und diese orientalische Dekoration ist wirklich toll!</msg3>");
_local1 = (_local1 + "<msg4>Ein Schönheitssalon in den Bergen! Das war schon immer mein Traum, und jetzt hab ich's tatsächlich geschafft! Es gibt noch viel zu tun, aber ich liebe meinen wunderschönen Salon in den Bergen!</msg4>");
_local1 = (_local1 + "</game>\n");
_local1 = (_local1 + "<progress>\n");
_local1 = (_local1 + "<play>SPIELEN</play>\n");
_local1 = (_local1 + "<score>PUNKTE</score>\n");
_local1 = (_local1 + "</progress>\n");
_local1 = (_local1 + "<pause>\n");
_local1 = (_local1 + "<msg>ANGEHALTEN</msg>\n");
_local1 = (_local1 + "<msgContinue>Zum Weitermachen klicken</msgContinue>\n");
_local1 = (_local1 + "</pause>\n");
_local1 = (_local1 + "<update>\n");
_local1 = (_local1 + "<msg>Neuer Schönheitssalon eröffnet!</msg>\n");
_local1 = (_local1 + "</update>\n");
_local1 = (_local1 + "<scorescreen>\n");
_local1 = (_local1 + "<title>LEVEL BEENDET!</title>\n");
_local1 = (_local1 + "<fail>Level nicht geschafft</fail>\n");
_local1 = (_local1 + "<ok>OK</ok>\n");
_local1 = (_local1 + "<levelscore>Levelpunkte</levelscore>\n");
_local1 = (_local1 + "<totalscore>Gesamtpunkte</totalscore>\n");
_local1 = (_local1 + "</scorescreen>\n");
_local1 = (_local1 + "<gameOver>\n");
_local1 = (_local1 + "<submit>PUNKTE EINTRAGEN</submit>\n");
_local1 = (_local1 + "<title>GAME OVER</title>\n");
_local1 = (_local1 + "<score>Deine Punkte</score>\n");
_local1 = (_local1 + "<name>Dein Name</name>\n");
_local1 = (_local1 + "</gameOver>\n");
_local1 = (_local1 + "<victory>\n");
_local1 = (_local1 + "<title>GESCHAFFT!!</title>\n");
_local1 = (_local1 + "<score>Deine Punkte</score>\n");
_local1 = (_local1 + "<name>Dein Name</name>\n");
_local1 = (_local1 + "</victory>\n");
_local1 = (_local1 + "<highscore>\n");
_local1 = (_local1 + "<title>HIGHSCORES</title>\n");
_local1 = (_local1 + "<name>Name</name>\n");
_local1 = (_local1 + "<score>Punkte</score>\n");
_local1 = (_local1 + "<rank>Platz</rank>\n");
_local1 = (_local1 + "<menu>HAUPTMENÜ</menu>\n");
_local1 = (_local1 + "<moregames>ÜBER 3000 SPIELE</moregames>\n");
_local1 = (_local1 + "</highscore>\n");
_local1 = (_local1 + "</localization>\n");
_local2 = new XML(_local1);
return (_local2);
}
private static function getXMLLocalization6():XML{
var _local1:String;
var _local2:XML;
_local1 = "<?xml version=\"1.0\" encoding=\"utf-8\" ?>\n";
_local1 = (_local1 + "<localization>\n");
_local1 = (_local1 + "<symbol_cash>$</symbol_cash>\n");
_local1 = (_local1 + "<sarah>Magda</sarah>");
_local1 = (_local1 + "<loading>\n");
_local1 = (_local1 + "<title>Wird geladen...</title>\n");
_local1 = (_local1 + "<msg>WIĘCEJ DARMOWYCH GIER NA:</msg>\n");
_local1 = (_local1 + "</loading>\n");
_local1 = (_local1 + "<mainmenu>\n");
_local1 = (_local1 + "<startgame>START</startgame>\n");
_local1 = (_local1 + "<howtoplay>JAK GRAĆ</howtoplay>\n");
_local1 = (_local1 + "<highscore>RANKING</highscore>\n");
_local1 = (_local1 + "<moregames>WIĘCEJ GIER</moregames>\n");
_local1 = (_local1 + "<quality>Jakość:</quality>\n");
_local1 = (_local1 + "<high>WYSOKA</high>");
_local1 = (_local1 + "<medium>ŚREDNIA</medium>");
_local1 = (_local1 + "<low>NISKA</low>");
_local1 = (_local1 + "</mainmenu>\n");
_local1 = (_local1 + "<howToPlay>\n");
_local1 = (_local1 + "<title>JAK GRAĆ</title>\n");
_local1 = (_local1 + "<mainmenu>MENU GŁÓWNE</mainmenu>\n");
_local1 = (_local1 + "<next>DALEJ</next>\n");
_local1 = (_local1 + "<back>POWRÓT</back>\n");
_local1 = (_local1 + "<text1>Kliknij na klienta i przytrzymaj, aby go podnieść.</text1>\n");
_local1 = (_local1 + "<text2>Następnie umieść go na pasującym stanowisku.</text2>\n");
_local1 = (_local1 + "<text3>Nie pozwól, aby poziom stresu wzrósł za bardzo, w przeciwnym razie klienci opuszczą twój salon!</text3>\n");
_local1 = (_local1 + "<text4>Czasem stanowiska mogą wymagać sprzątania, lub klienci proszą o pewne przedmioty.</text4>\n");
_local1 = (_local1 + "<text5>Zauważ, że możesz łączyć czynności wykonywane przez Magdę.</text5>\n");
_local1 = (_local1 + "<text6>Weź odpowiedni przedmiot z szufladki.</text6>\n");
_local1 = (_local1 + "<text7>Jeśli został wybrany nieprawidłowy przedmiot, wyrzuć go do odpowiedniego pojemnika na śmieci.</text7>\n");
_local1 = (_local1 + "</howToPlay>\n");
_local1 = (_local1 + "<game>\n");
_local1 = (_local1 + "<play>GRAJ</play>\n");
_local1 = (_local1 + "<goalReached>Cel osiągnięty</goalReached>\n");
_local1 = (_local1 + "<goal>Cel</goal>\n");
_local1 = (_local1 + "<cash>Gotówka </cash>\n");
_local1 = (_local1 + "<left>Pozostało klientów</left>\n");
_local1 = (_local1 + "<msg1>Udało mi się! Moje pierwsze spa jest gotowe do otwarcia! Jest trochę małe, ale założę się, że śródziemnomorski wystrój przyciągnie wielu klientów!</msg1>");
_local1 = (_local1 + "<msg2>Wiedziałam, że moje spa odniesie sukces! Po długiej i ciężkiej pracy udało mi się kupić większe pomieszczenie. Te tropikalne motywy na pewno przyciągną jeszcze więcej osób!</msg2>");
_local1 = (_local1 + "<msg3>Mój biznes naprawdę kwitnie! Musiałam przenieść się do jeszcze większego pomieszczenia, aby pomieścić więcej klientów. A te orientalne dekoracje są niesamowite!</msg3>");
_local1 = (_local1 + "<msg4>Kurort spa w górach! To zawsze było moim celem i wreszcie dopięłam swego! Przede mną jeszcze dużo pracy, ale już kocham moje piękne górskie spa!</msg4>");
_local1 = (_local1 + "</game>\n");
_local1 = (_local1 + "<progress>\n");
_local1 = (_local1 + "<play>GRAJ</play>\n");
_local1 = (_local1 + "<score>WYNIK</score>\n");
_local1 = (_local1 + "</progress>\n");
_local1 = (_local1 + "<pause>\n");
_local1 = (_local1 + "<msg>PAUZA</msg>\n");
_local1 = (_local1 + "<msgContinue>Kliknij, aby kontynuować</msgContinue>\n");
_local1 = (_local1 + "</pause>\n");
_local1 = (_local1 + "<update>\n");
_local1 = (_local1 + "<msg>Dostępna nowa usługa spa!</msg>\n");
_local1 = (_local1 + "</update>\n");
_local1 = (_local1 + "<scorescreen>\n");
_local1 = (_local1 + "<title>POZIOM UKOŃCZONY!</title>\n");
_local1 = (_local1 + "<fail>Poziom nie został ukończony</fail>\n");
_local1 = (_local1 + "<ok>OK</ok>\n");
_local1 = (_local1 + "<levelscore>Punkty za poziom</levelscore>\n");
_local1 = (_local1 + "<totalscore>W sumie</totalscore>\n");
_local1 = (_local1 + "</scorescreen>\n");
_local1 = (_local1 + "<gameOver>\n");
_local1 = (_local1 + "<submit>ZAPISZ WYNIK</submit>\n");
_local1 = (_local1 + "<title>KONIEC GRY</title>\n");
_local1 = (_local1 + "<score>TWÓJ WYNIK</score>\n");
_local1 = (_local1 + "<name>TWOJE IMIĘ</name>\n");
_local1 = (_local1 + "</gameOver>\n");
_local1 = (_local1 + "<victory>\n");
_local1 = (_local1 + "<title>ZWYCIESTWO!</title>\n");
_local1 = (_local1 + "<score>TWÓJ WYNIK</score>\n");
_local1 = (_local1 + "<name>TWOJE IMIĘ</name>\n");
_local1 = (_local1 + "</victory>\n");
_local1 = (_local1 + "<highscore>\n");
_local1 = (_local1 + "<title>RANKING</title>\n");
_local1 = (_local1 + "<name>IMIĘ</name>\n");
_local1 = (_local1 + "<score>WYNIK</score>\n");
_local1 = (_local1 + "<rank>POZYCJA</rank>\n");
_local1 = (_local1 + "<menu>MENU GŁÓWNE</menu>\n");
_local1 = (_local1 + "<moregames>3000+ GIER</moregames>\n");
_local1 = (_local1 + "</highscore>\n");
_local1 = (_local1 + "</localization>\n");
_local2 = new XML(_local1);
return (_local2);
}
private static function getXMLLocalization7():XML{
var _local1:String;
var _local2:XML;
_local1 = "<?xml version=\"1.0\" encoding=\"utf-8\" ?>\n";
_local1 = (_local1 + "<localization>\n");
_local1 = (_local1 + "<symbol_cash>$</symbol_cash>\n");
_local1 = (_local1 + "<sarah>Helen</sarah>");
_local1 = (_local1 + "<loading>\n");
_local1 = (_local1 + "<title>Laddar...</title>\n");
_local1 = (_local1 + "<msg>FLER GRATIS ONLINESPEL PÅ:</msg>\n");
_local1 = (_local1 + "</loading>\n");
_local1 = (_local1 + "<mainmenu>\n");
_local1 = (_local1 + "<startgame>STARTA SPEL</startgame>\n");
_local1 = (_local1 + "<howtoplay>SPELREGLER</howtoplay>\n");
_local1 = (_local1 + "<highscore>TOPPOÄNG</highscore>\n");
_local1 = (_local1 + "<moregames>FLER SPEL</moregames>\n");
_local1 = (_local1 + "<quality>Kvalitet:</quality>\n");
_local1 = (_local1 + "<high>HÖG</high>");
_local1 = (_local1 + "<medium>MEDIUM</medium>");
_local1 = (_local1 + "<low>LÅG</low>");
_local1 = (_local1 + "</mainmenu>\n");
_local1 = (_local1 + "<howToPlay>\n");
_local1 = (_local1 + "<title>SPELREGLER</title>\n");
_local1 = (_local1 + "<mainmenu>HUVUDMENY</mainmenu>\n");
_local1 = (_local1 + "<next>NÄSTA</next>\n");
_local1 = (_local1 + "<back>BAKÅT</back>\n");
_local1 = (_local1 + "<text1>Klicka på kunderna och håll ned för att välja dem.</text1>\n");
_local1 = (_local1 + "<text2>Släpp dem sedan på önskad station.</text2>\n");
_local1 = (_local1 + "<text3>Låt inte deras stressmätare stiga för högt, då går de sin väg!</text3>\n");
_local1 = (_local1 + "<text4>Ibland blir stationerna smutsiga eller så frågar kunder efter något.</text4>\n");
_local1 = (_local1 + "<text5>Observera att du kan göra saker i kedjor.</text5>\n");
_local1 = (_local1 + "<text6>Ta motsvarande föremål från lagerstationen.</text6>\n");
_local1 = (_local1 + "<text7>Om du väljer fel föremål, kasta det i motsvarande soptunna.</text7>\n");
_local1 = (_local1 + "</howToPlay>\n");
_local1 = (_local1 + "<game>\n");
_local1 = (_local1 + "<play>SPELA</play>\n");
_local1 = (_local1 + "<goalReached>Mål nått</goalReached>\n");
_local1 = (_local1 + "<goal>Mål</goal>\n");
_local1 = (_local1 + "<cash>Kassa</cash>\n");
_local1 = (_local1 + "<left>Kunder kvar</left>\n");
_local1 = (_local1 + "<msg1>Jag klarade det! Mitt första spa är redo att öppna! Det är litet, men medelhavstemat kommer säkert att locka många kunder! </msg1>");
_local1 = (_local1 + "<msg2>Jag visste att mitt spa skulle bli en succé! Efter hårt arbete har jag nu råd att köpa ett större ställe. Det tropiska temat kommer att locka folk!</msg2>");
_local1 = (_local1 + "<msg3>Mina affärer går strålande! Jag har flyttat till ett ännu större ställe för att få plats med kunderna. Den orientaliska inredningen är häftig!</msg3>");
_local1 = (_local1 + "<msg4>En kurort i bergen! Det har alltid varit mitt mål och nu har jag klarat det! Mycket jobb väntar, men jag älskar mitt underbara spa här i bergen!</msg4>");
_local1 = (_local1 + "</game>\n");
_local1 = (_local1 + "<progress>\n");
_local1 = (_local1 + "<play>SPELA</play>\n");
_local1 = (_local1 + "<score>POÄNG</score>\n");
_local1 = (_local1 + "</progress>\n");
_local1 = (_local1 + "<pause>\n");
_local1 = (_local1 + "<msg>PAUSAT</msg>\n");
_local1 = (_local1 + "<msgContinue>Klicka för att fortsätta</msgContinue>\n");
_local1 = (_local1 + "</pause>\n");
_local1 = (_local1 + "<update>\n");
_local1 = (_local1 + "<msg>Ny spa-tjänst!</msg>\n");
_local1 = (_local1 + "</update>\n");
_local1 = (_local1 + "<scorescreen>\n");
_local1 = (_local1 + "<title>NIVÅ KLARAD!</title>\n");
_local1 = (_local1 + "<fail>Nivå ej klarad</fail>\n");
_local1 = (_local1 + "<ok>OK</ok>\n");
_local1 = (_local1 + "<levelscore>Nivåpoäng</levelscore>\n");
_local1 = (_local1 + "<totalscore>Poäng totalt</totalscore>\n");
_local1 = (_local1 + "</scorescreen>\n");
_local1 = (_local1 + "<gameOver>\n");
_local1 = (_local1 + "<submit>SKICKA POÄNG</submit>\n");
_local1 = (_local1 + "<title>GAME OVER</title>\n");
_local1 = (_local1 + "<score>Din poäng</score>\n");
_local1 = (_local1 + "<name>Ditt namn</name>\n");
_local1 = (_local1 + "</gameOver>\n");
_local1 = (_local1 + "<victory>\n");
_local1 = (_local1 + "<title>VINST!</title>\n");
_local1 = (_local1 + "<score>Din poäng</score>\n");
_local1 = (_local1 + "<name>Ditt namn</name>\n");
_local1 = (_local1 + "</victory>\n");
_local1 = (_local1 + "<highscore>\n");
_local1 = (_local1 + "<title>TOPPOÄNG</title>\n");
_local1 = (_local1 + "<name>Namn</name>\n");
_local1 = (_local1 + "<score>Poäng</score>\n");
_local1 = (_local1 + "<rank>Plats</rank>\n");
_local1 = (_local1 + "<menu>HUVUDMENY</menu>\n");
_local1 = (_local1 + "<moregames>3 000+ SPEL</moregames>\n");
_local1 = (_local1 + "</highscore>\n");
_local1 = (_local1 + "</localization>\n");
_local2 = new XML(_local1);
return (_local2);
}
private static function getXMLLocalization8():XML{
var _local1:String;
var _local2:XML;
_local1 = "<?xml version=\"1.0\" encoding=\"utf-8\" ?>\n";
_local1 = (_local1 + "<localization>\n");
_local1 = (_local1 + "<symbol_cash>$</symbol_cash>\n");
_local1 = (_local1 + "<sarah>Sonia</sarah>");
_local1 = (_local1 + "<loading>\n");
_local1 = (_local1 + "<title>Caricamento...</title>\n");
_local1 = (_local1 + "<msg>ALTRI GIOCHI ONLINE GRATIS SU:</msg>\n");
_local1 = (_local1 + "</loading>\n");
_local1 = (_local1 + "<mainmenu>\n");
_local1 = (_local1 + "<startgame>AVVIA PARTITA</startgame>\n");
_local1 = (_local1 + "<howtoplay>REGOLE</howtoplay>\n");
_local1 = (_local1 + "<highscore>RECORD</highscore>\n");
_local1 = (_local1 + "<moregames>ALTRI GIOCHI</moregames>\n");
_local1 = (_local1 + "<quality>Qualità:</quality>\n");
_local1 = (_local1 + "<high>ALTA</high>");
_local1 = (_local1 + "<medium>MEDIA</medium>");
_local1 = (_local1 + "<low>BASSA</low>");
_local1 = (_local1 + "</mainmenu>\n");
_local1 = (_local1 + "<howToPlay>\n");
_local1 = (_local1 + "<title>REGOLE</title>\n");
_local1 = (_local1 + "<mainmenu>MENU PRINCIPALE</mainmenu>\n");
_local1 = (_local1 + "<next>AVANTI</next>\n");
_local1 = (_local1 + "<back>INDIETRO</back>\n");
_local1 = (_local1 + "<text1>Fai clic sui clienti e tieni premuto per selezionarli.</text1>\n");
_local1 = (_local1 + "<text2>Poi rilasciali sulla postazione desiderata.</text2>\n");
_local1 = (_local1 + "<text3>Non far aumentare lo stressometro altrimenti lasceranno il salone.</text3>\n");
_local1 = (_local1 + "<text4>Spesso le varie postazioni si sporcano oppure i clienti richiedono certi oggetti.</text4>\n");
_local1 = (_local1 + "<text5>Puoi concatenare le azioni di Sonia.</text5>\n");
_local1 = (_local1 + "<text6>Prendi l'oggetto corrispondente dalla postazione di rifornimento.</text6>\n");
_local1 = (_local1 + "<text7>Se prendi l'oggetto sbagliato, gettalo nella pattumiera corrispondente.</text7>\n");
_local1 = (_local1 + "</howToPlay>\n");
_local1 = (_local1 + "<game>\n");
_local1 = (_local1 + "<play>GIOCA</play>\n");
_local1 = (_local1 + "<goalReached>Obiettivo raggiunto</goalReached>\n");
_local1 = (_local1 + "<goal>Obiettivo</goal>\n");
_local1 = (_local1 + "<cash>Denaro</cash>\n");
_local1 = (_local1 + "<left>Clienti rimasti</left>\n");
_local1 = (_local1 + "<msg1>Ce l'ho fatta! Le mie prime terme sono pronte per l'apertura al pubblico! Sono un po' piccole ma scommetto che il tema mediterraneo attirerà moltissimi clienti!</msg1>");
_local1 = (_local1 + "<msg2>Sapevo che le terme avrebbero avuto un grande successo! Dopo tanta fatica, sono riuscita a comprare un salone più grande. Il tema tropicale affascinerà ancor più gente!</msg2>");
_local1 = (_local1 + "<msg3>L'attività della bellezza è proprio florida! Ho dovuto traslocare in un salone più grande per accogliere più clienti. E il tema orientale è veramente stupendo!</msg3>");
_local1 = (_local1 + "<msg4>Una località di bellezza fra le montagne! È sempre stato il mio sogno e ora ci sono riuscita. C'è molto più lavoro da fare, è vero, ma questo posto mi piace così tanto!</msg4>");
_local1 = (_local1 + "</game>\n");
_local1 = (_local1 + "<progress>\n");
_local1 = (_local1 + "<play>GIOCA</play>\n");
_local1 = (_local1 + "<score>PUNTEGGIO</score>\n");
_local1 = (_local1 + "</progress>\n");
_local1 = (_local1 + "<pause>\n");
_local1 = (_local1 + "<msg>IN PAUSA</msg>\n");
_local1 = (_local1 + "<msgContinue>Fai clic per continuare</msgContinue>\n");
_local1 = (_local1 + "</pause>\n");
_local1 = (_local1 + "<update>\n");
_local1 = (_local1 + "<msg>Nuovo servizio terme!</msg>\n");
_local1 = (_local1 + "</update>\n");
_local1 = (_local1 + "<scorescreen>\n");
_local1 = (_local1 + "<title>LIVELLO COMPLETATO!</title>\n");
_local1 = (_local1 + "<fail>Hai perso!</fail>\n");
_local1 = (_local1 + "<ok>OK</ok>\n");
_local1 = (_local1 + "<levelscore>Punti livello</levelscore>\n");
_local1 = (_local1 + "<totalscore>Punti totali</totalscore>\n");
_local1 = (_local1 + "</scorescreen>\n");
_local1 = (_local1 + "<gameOver>\n");
_local1 = (_local1 + "<submit>INVIA PUNTEGGIO</submit>\n");
_local1 = (_local1 + "<title>GAME OVER</title>\n");
_local1 = (_local1 + "<score>Tuo punteggio</score>\n");
_local1 = (_local1 + "<name>Tuo nome</name>\n");
_local1 = (_local1 + "</gameOver>\n");
_local1 = (_local1 + "<victory>\n");
_local1 = (_local1 + "<title>Vittoria!!</title>\n");
_local1 = (_local1 + "<score>Tuo punteggio</score>\n");
_local1 = (_local1 + "<name>Tuo nome</name>\n");
_local1 = (_local1 + "</victory>\n");
_local1 = (_local1 + "<highscore>\n");
_local1 = (_local1 + "<title>Record</title>\n");
_local1 = (_local1 + "<name>Nome</name>\n");
_local1 = (_local1 + "<score>Punteggio</score>\n");
_local1 = (_local1 + "<rank>Posiz.</rank>\n");
_local1 = (_local1 + "<menu>MENU PRINCIPALE</menu>\n");
_local1 = (_local1 + "<moregames>PIÙ DI 3000 GIOCHI</moregames>\n");
_local1 = (_local1 + "</highscore>\n");
_local1 = (_local1 + "</localization>\n");
_local2 = new XML(_local1);
return (_local2);
}
private static function getXMLLocalization9():XML{
var _local1:String;
var _local2:XML;
_local1 = "<?xml version=\"1.0\" encoding=\"utf-8\" ?>\n";
_local1 = (_local1 + "<localization>\n");
_local1 = (_local1 + "<symbol_cash>$</symbol_cash>\n");
_local1 = (_local1 + "<sarah>Consuela</sarah>");
_local1 = (_local1 + "<loading>\n");
_local1 = (_local1 + "<title>Cargando...</title>\n");
_local1 = (_local1 + "<msg>MÁS JUEGOS EN LÍNEA GRATIS EN:</msg>\n");
_local1 = (_local1 + "</loading>\n");
_local1 = (_local1 + "<mainmenu>\n");
_local1 = (_local1 + "<startgame>INICIAR PARTIDA</startgame>\n");
_local1 = (_local1 + "<howtoplay>CÓMO JUGAR</howtoplay>\n");
_local1 = (_local1 + "<highscore>PUNTUACIONES MÁXIMAS</highscore>\n");
_local1 = (_local1 + "<moregames>MÁS JUEGOS</moregames>\n");
_local1 = (_local1 + "<quality>Calidad:</quality>\n");
_local1 = (_local1 + "<high>ALTA</high>");
_local1 = (_local1 + "<medium>MEDIA</medium>");
_local1 = (_local1 + "<low>BAJA</low>");
_local1 = (_local1 + "</mainmenu>\n");
_local1 = (_local1 + "<howToPlay>\n");
_local1 = (_local1 + "<title>CÓMO JUGAR</title>\n");
_local1 = (_local1 + "<mainmenu>MENÚ PRINCIPAL</mainmenu>\n");
_local1 = (_local1 + "<next>SIGUIENTE</next>\n");
_local1 = (_local1 + "<back>ATRÁS</back>\n");
_local1 = (_local1 + "<text1>Haz clic en los clientes para cogerlos.</text1>\n");
_local1 = (_local1 + "<text2>Luego arrástralos hacia la estación deseada.</text2>\n");
_local1 = (_local1 + "<text3>¡No dejes que se llene mucho el medidor de estrés o se irán del salón!</text3>\n");
_local1 = (_local1 + "<text4>A veces las estaciones se ensucian o los clientes piden algunos objetos.</text4>\n");
_local1 = (_local1 + "<text5>Fíjate que puedes encadenar las tareas de Consuela.</text5>\n");
_local1 = (_local1 + "<text6>Coge el objeto correspondiente de la estación de suministro.</text6>\n");
_local1 = (_local1 + "<text7>Si coges el objeto equivocado, tíralo a la papelera correspondiente.</text7>\n");
_local1 = (_local1 + "</howToPlay>\n");
_local1 = (_local1 + "<game>\n");
_local1 = (_local1 + "<play>JUGAR</play>\n");
_local1 = (_local1 + "<goalReached>Objetivo alcanzado</goalReached>\n");
_local1 = (_local1 + "<goal>Objetivo</goal>\n");
_local1 = (_local1 + "<cash>Dinero</cash>\n");
_local1 = (_local1 + "<left>Clientes que faltan</left>\n");
_local1 = (_local1 + "<msg1>¡Lo he conseguido! ¡Mi primer spa está listo para abrirse al público! ¡Es un poco pequeño pero apuesto a que la temática mediterránea atraerá a muchos clientes!</msg1>");
_local1 = (_local1 + "<msg2>Sabía que mi spa sería todo un éxito. Después de mucho trabajar, he conseguido adquirir uno más grande. La temática tropical atraerá aun a más clientes.</msg2>");
_local1 = (_local1 + "<msg3>Mi maravilloso negocio es muy próspero. He tenido que buscar un lugar más grande para poder acoger a más clientes. ¡Esta decoración oriental es estupenda!</msg3>");
_local1 = (_local1 + "<msg4>¡Un precioso paraje de montaña! Éste siempre ha sido mi objetivo y ¡ya lo he conseguido! Aun queda mucho trabajo por delante, pero adoro mi maravilloso spa en la montaña.</msg4>");
_local1 = (_local1 + "</game>\n");
_local1 = (_local1 + "<progress>\n");
_local1 = (_local1 + "<play>JUGAR</play>\n");
_local1 = (_local1 + "<score>PUNTUACIÓN</score>\n");
_local1 = (_local1 + "</progress>\n");
_local1 = (_local1 + "<pause>\n");
_local1 = (_local1 + "<msg>EN PAUSA</msg>\n");
_local1 = (_local1 + "<msgContinue>Hacer clic para continuar</msgContinue>\n");
_local1 = (_local1 + "</pause>\n");
_local1 = (_local1 + "<update>\n");
_local1 = (_local1 + "<msg>¡Se ofrece nuevo servicio de spa!</msg>\n");
_local1 = (_local1 + "</update>\n");
_local1 = (_local1 + "<scorescreen>\n");
_local1 = (_local1 + "<title>¡NIVEL COMPLETADO!</title>\n");
_local1 = (_local1 + "<fail>Nivel no superado</fail>\n");
_local1 = (_local1 + "<ok>OK</ok>\n");
_local1 = (_local1 + "<levelscore>Puntuación del nivel</levelscore>\n");
_local1 = (_local1 + "<totalscore>Puntuación total</totalscore>\n");
_local1 = (_local1 + "</scorescreen>\n");
_local1 = (_local1 + "<gameOver>\n");
_local1 = (_local1 + "<submit>ENVIAR PUNTUACIÓN</submit>\n");
_local1 = (_local1 + "<title>FIN DE PARTIDA</title>\n");
_local1 = (_local1 + "<score>Tu puntuación</score>\n");
_local1 = (_local1 + "<name>Tu nombre</name>\n");
_local1 = (_local1 + "</gameOver>\n");
_local1 = (_local1 + "<victory>\n");
_local1 = (_local1 + "<title>¡¡Victoria!!</title>\n");
_local1 = (_local1 + "<score>Tu puntuación</score>\n");
_local1 = (_local1 + "<name>Tu nombre</name>\n");
_local1 = (_local1 + "</victory>\n");
_local1 = (_local1 + "<highscore>\n");
_local1 = (_local1 + "<title>Puntuaciones máximas</title>\n");
_local1 = (_local1 + "<name>Nombre</name>\n");
_local1 = (_local1 + "<score>Puntuación</score>\n");
_local1 = (_local1 + "<rank>Posición</rank>\n");
_local1 = (_local1 + "<menu>MENÚ PRINCIPAL</menu>\n");
_local1 = (_local1 + "<moregames>MÁS DE 3.000 JUEGOS</moregames>\n");
_local1 = (_local1 + "</highscore>\n");
_local1 = (_local1 + "</localization>\n");
_local2 = new XML(_local1);
return (_local2);
}
}
}//package classes.global
Section 36
//Levels (classes.global.Levels)
package classes.global {
public class Levels {
public static var indexStage:Number;
public static var indexLevel:Number;
public static var stages:XML;
private static function getStage1():String{
var _local1:String;
_local1 = "";
_local1 = (_local1 + "<stage>");
_local1 = (_local1 + "<scenary>background</scenary>");
_local1 = (_local1 + "<levels>");
_local1 = (_local1 + "<level>");
_local1 = (_local1 + "<minTimeCustomer>9</minTimeCustomer>");
_local1 = (_local1 + "<maxTimeCustomer>11</maxTimeCustomer>");
_local1 = (_local1 + "<minDesiresCustomer>1</minDesiresCustomer>");
_local1 = (_local1 + "<maxDesiresCustomer>1</maxDesiresCustomer>");
_local1 = (_local1 + "<stressMeterInitial>20</stressMeterInitial>");
_local1 = (_local1 + "<simultaneousClients>2</simultaneousClients>");
_local1 = (_local1 + "<numberCustomer>8</numberCustomer>");
_local1 = (_local1 + "<goal>65</goal>");
_local1 = (_local1 + "<stations>");
_local1 = (_local1 + "<name>HYDRO</name>");
_local1 = (_local1 + "<name>MASSAGE</name>");
_local1 = (_local1 + "</stations> ");
_local1 = (_local1 + "</level>");
_local1 = (_local1 + "<level>");
_local1 = (_local1 + "<minTimeCustomer>9</minTimeCustomer>");
_local1 = (_local1 + "<maxTimeCustomer>10.5</maxTimeCustomer>");
_local1 = (_local1 + "<minDesiresCustomer>1</minDesiresCustomer>");
_local1 = (_local1 + "<maxDesiresCustomer>2</maxDesiresCustomer>");
_local1 = (_local1 + "<stressMeterInitial>25</stressMeterInitial>");
_local1 = (_local1 + "<simultaneousClients>3</simultaneousClients>");
_local1 = (_local1 + "<numberCustomer>8</numberCustomer>");
_local1 = (_local1 + "<goal>75</goal>");
_local1 = (_local1 + "<stations>");
_local1 = (_local1 + "<name>HYDRO</name>");
_local1 = (_local1 + "<name>MASSAGE</name>");
_local1 = (_local1 + "<name>SAUNA</name>");
_local1 = (_local1 + "</stations > ");
_local1 = (_local1 + "</level>");
_local1 = (_local1 + "<level>");
_local1 = (_local1 + "<minTimeCustomer>8.5</minTimeCustomer>");
_local1 = (_local1 + "<maxTimeCustomer>10.5</maxTimeCustomer>");
_local1 = (_local1 + "<minDesiresCustomer>2</minDesiresCustomer>");
_local1 = (_local1 + "<maxDesiresCustomer>2</maxDesiresCustomer>");
_local1 = (_local1 + "<stressMeterInitial>25</stressMeterInitial>");
_local1 = (_local1 + "<simultaneousClients>3</simultaneousClients>");
_local1 = (_local1 + "<numberCustomer>9</numberCustomer>");
_local1 = (_local1 + "<goal>145</goal>");
_local1 = (_local1 + "<stations>");
_local1 = (_local1 + "<name>HYDRO</name>");
_local1 = (_local1 + "<name>MASSAGE</name>");
_local1 = (_local1 + "<name>SAUNA</name>");
_local1 = (_local1 + "</stations > ");
_local1 = (_local1 + "</level>");
_local1 = (_local1 + "<level>");
_local1 = (_local1 + "<minTimeCustomer>8.5</minTimeCustomer>");
_local1 = (_local1 + "<maxTimeCustomer>10</maxTimeCustomer>");
_local1 = (_local1 + "<minDesiresCustomer>1</minDesiresCustomer>");
_local1 = (_local1 + "<maxDesiresCustomer>3</maxDesiresCustomer>");
_local1 = (_local1 + "<stressMeterInitial>30</stressMeterInitial>");
_local1 = (_local1 + "<simultaneousClients>3</simultaneousClients>");
_local1 = (_local1 + "<numberCustomer>9</numberCustomer>");
_local1 = (_local1 + "<goal>125</goal>");
_local1 = (_local1 + "<stations>");
_local1 = (_local1 + "<name>HYDRO</name>");
_local1 = (_local1 + "<name>MASSAGE</name>");
_local1 = (_local1 + "<name>SAUNA</name>");
_local1 = (_local1 + "<name>ICE</name>");
_local1 = (_local1 + "</stations > ");
_local1 = (_local1 + "</level>");
_local1 = (_local1 + "<level>");
_local1 = (_local1 + "<minTimeCustomer>8</minTimeCustomer>");
_local1 = (_local1 + "<maxTimeCustomer>10</maxTimeCustomer>");
_local1 = (_local1 + "<minDesiresCustomer>2</minDesiresCustomer>");
_local1 = (_local1 + "<maxDesiresCustomer>3</maxDesiresCustomer>");
_local1 = (_local1 + "<stressMeterInitial>30</stressMeterInitial>");
_local1 = (_local1 + "<simultaneousClients>4</simultaneousClients>");
_local1 = (_local1 + "<numberCustomer>9</numberCustomer>");
_local1 = (_local1 + "<goal>155</goal>");
_local1 = (_local1 + "<stations>");
_local1 = (_local1 + "<name>HYDRO</name>");
_local1 = (_local1 + "<name>MASSAGE</name>");
_local1 = (_local1 + "<name>SAUNA</name>");
_local1 = (_local1 + "<name>ICE</name>");
_local1 = (_local1 + "</stations > ");
_local1 = (_local1 + "</level>");
_local1 = (_local1 + "<level>");
_local1 = (_local1 + "<minTimeCustomer>8</minTimeCustomer>");
_local1 = (_local1 + "<maxTimeCustomer>9.5</maxTimeCustomer>");
_local1 = (_local1 + "<minDesiresCustomer>2</minDesiresCustomer>");
_local1 = (_local1 + "<maxDesiresCustomer>3</maxDesiresCustomer>");
_local1 = (_local1 + "<stressMeterInitial>35</stressMeterInitial>");
_local1 = (_local1 + "<simultaneousClients>4</simultaneousClients>");
_local1 = (_local1 + "<numberCustomer>10</numberCustomer>");
_local1 = (_local1 + "<goal>150</goal>");
_local1 = (_local1 + "<stations>");
_local1 = (_local1 + "<name>HYDRO</name>");
_local1 = (_local1 + "<name>MASSAGE</name>");
_local1 = (_local1 + "<name>SAUNA</name>");
_local1 = (_local1 + "<name>ICE</name>");
_local1 = (_local1 + "<name>SOLARIUM</name>");
_local1 = (_local1 + "</stations> ");
_local1 = (_local1 + "</level>");
_local1 = (_local1 + "<level>");
_local1 = (_local1 + "<minTimeCustomer>7.5</minTimeCustomer>");
_local1 = (_local1 + "<maxTimeCustomer>9.5</maxTimeCustomer>");
_local1 = (_local1 + "<minDesiresCustomer>2</minDesiresCustomer>");
_local1 = (_local1 + "<maxDesiresCustomer>4</maxDesiresCustomer>");
_local1 = (_local1 + "<stressMeterInitial>35</stressMeterInitial>");
_local1 = (_local1 + "<simultaneousClients>4</simultaneousClients>");
_local1 = (_local1 + "<numberCustomer>10</numberCustomer>");
_local1 = (_local1 + "<goal>175</goal>");
_local1 = (_local1 + "<stations>");
_local1 = (_local1 + "<name>HYDRO</name>");
_local1 = (_local1 + "<name>MASSAGE</name>");
_local1 = (_local1 + "<name>SAUNA</name>");
_local1 = (_local1 + "<name>ICE</name>");
_local1 = (_local1 + "<name>SOLARIUM</name>");
_local1 = (_local1 + "</stations> ");
_local1 = (_local1 + "</level>");
_local1 = (_local1 + "</levels>");
_local1 = (_local1 + "</stage>");
return (_local1);
}
private static function getStage2():String{
var _local1:String;
_local1 = "";
_local1 = (_local1 + "<stage>");
_local1 = (_local1 + "<scenary>background1</scenary>");
_local1 = (_local1 + "<levels>");
_local1 = (_local1 + "<level>");
_local1 = (_local1 + "<minTimeCustomer>7.5</minTimeCustomer>");
_local1 = (_local1 + "<maxTimeCustomer>9</maxTimeCustomer>");
_local1 = (_local1 + "<minDesiresCustomer>3</minDesiresCustomer>");
_local1 = (_local1 + "<maxDesiresCustomer>4</maxDesiresCustomer>");
_local1 = (_local1 + "<stressMeterInitial>35</stressMeterInitial>");
_local1 = (_local1 + "<simultaneousClients>4</simultaneousClients>");
_local1 = (_local1 + "<numberCustomer>10</numberCustomer>");
_local1 = (_local1 + "<goal>220</goal>");
_local1 = (_local1 + "<stations>");
_local1 = (_local1 + "<name>HYDRO</name>");
_local1 = (_local1 + "<name>MASSAGE</name>");
_local1 = (_local1 + "<name>SAUNA</name>");
_local1 = (_local1 + "<name>ICE</name>");
_local1 = (_local1 + "<name>SOLARIUM</name>");
_local1 = (_local1 + "</stations > ");
_local1 = (_local1 + "</level>");
_local1 = (_local1 + "<level>");
_local1 = (_local1 + "<minTimeCustomer>7</minTimeCustomer>");
_local1 = (_local1 + "<maxTimeCustomer>9</maxTimeCustomer>");
_local1 = (_local1 + "<minDesiresCustomer>3</minDesiresCustomer>");
_local1 = (_local1 + "<maxDesiresCustomer>4</maxDesiresCustomer>");
_local1 = (_local1 + "<stressMeterInitial>40</stressMeterInitial>");
_local1 = (_local1 + "<simultaneousClients>4</simultaneousClients>");
_local1 = (_local1 + "<numberCustomer>11</numberCustomer>");
_local1 = (_local1 + "<goal>250</goal>");
_local1 = (_local1 + "<stations>");
_local1 = (_local1 + "<name>HYDRO</name>");
_local1 = (_local1 + "<name>MASSAGE</name>");
_local1 = (_local1 + "<name>SAUNA</name>");
_local1 = (_local1 + "<name>ICE</name>");
_local1 = (_local1 + "<name>SOLARIUM</name>");
_local1 = (_local1 + "</stations > ");
_local1 = (_local1 + "</level>");
_local1 = (_local1 + "<level>");
_local1 = (_local1 + "<minTimeCustomer>7</minTimeCustomer>");
_local1 = (_local1 + "<maxTimeCustomer>8.5</maxTimeCustomer>");
_local1 = (_local1 + "<minDesiresCustomer>3</minDesiresCustomer>");
_local1 = (_local1 + "<maxDesiresCustomer>4</maxDesiresCustomer>");
_local1 = (_local1 + "<stressMeterInitial>40</stressMeterInitial>");
_local1 = (_local1 + "<simultaneousClients>4</simultaneousClients>");
_local1 = (_local1 + "<numberCustomer>11</numberCustomer>");
_local1 = (_local1 + "<goal>275</goal>");
_local1 = (_local1 + "<stations>");
_local1 = (_local1 + "<name>HYDRO</name>");
_local1 = (_local1 + "<name>MASSAGE</name>");
_local1 = (_local1 + "<name>SAUNA</name>");
_local1 = (_local1 + "<name>ICE</name>");
_local1 = (_local1 + "<name>SOLARIUM</name>");
_local1 = (_local1 + "<name>SWIMMING</name>");
_local1 = (_local1 + "</stations > ");
_local1 = (_local1 + "</level>");
_local1 = (_local1 + "<level>");
_local1 = (_local1 + "<minTimeCustomer>6.5</minTimeCustomer>");
_local1 = (_local1 + "<maxTimeCustomer>8.5</maxTimeCustomer>");
_local1 = (_local1 + "<minDesiresCustomer>3</minDesiresCustomer>");
_local1 = (_local1 + "<maxDesiresCustomer>5</maxDesiresCustomer>");
_local1 = (_local1 + "<stressMeterInitial>40</stressMeterInitial>");
_local1 = (_local1 + "<simultaneousClients>4</simultaneousClients>");
_local1 = (_local1 + "<numberCustomer>11</numberCustomer>");
_local1 = (_local1 + "<goal>275</goal>");
_local1 = (_local1 + "<stations>");
_local1 = (_local1 + "<name>HYDRO</name>");
_local1 = (_local1 + "<name>MASSAGE</name>");
_local1 = (_local1 + "<name>SAUNA</name>");
_local1 = (_local1 + "<name>ICE</name>");
_local1 = (_local1 + "<name>SOLARIUM</name>");
_local1 = (_local1 + "<name>SWIMMING</name>");
_local1 = (_local1 + "</stations > ");
_local1 = (_local1 + "</level>");
_local1 = (_local1 + "<level>");
_local1 = (_local1 + "<minTimeCustomer>6.5</minTimeCustomer>");
_local1 = (_local1 + "<maxTimeCustomer>8</maxTimeCustomer>");
_local1 = (_local1 + "<minDesiresCustomer>3</minDesiresCustomer>");
_local1 = (_local1 + "<maxDesiresCustomer>5</maxDesiresCustomer>");
_local1 = (_local1 + "<stressMeterInitial>45</stressMeterInitial>");
_local1 = (_local1 + "<simultaneousClients>5</simultaneousClients>");
_local1 = (_local1 + "<numberCustomer>12</numberCustomer>");
_local1 = (_local1 + "<goal>285</goal>");
_local1 = (_local1 + "<stations>");
_local1 = (_local1 + "<name>HYDRO</name>");
_local1 = (_local1 + "<name>MASSAGE</name>");
_local1 = (_local1 + "<name>SAUNA</name>");
_local1 = (_local1 + "<name>ICE</name>");
_local1 = (_local1 + "<name>SOLARIUM</name>");
_local1 = (_local1 + "<name>SWIMMING</name>");
_local1 = (_local1 + "</stations > ");
_local1 = (_local1 + "</level>");
_local1 = (_local1 + "<level>");
_local1 = (_local1 + "<minTimeCustomer>6</minTimeCustomer>");
_local1 = (_local1 + "<maxTimeCustomer>8</maxTimeCustomer>");
_local1 = (_local1 + "<minDesiresCustomer>3</minDesiresCustomer>");
_local1 = (_local1 + "<maxDesiresCustomer>5</maxDesiresCustomer>");
_local1 = (_local1 + "<stressMeterInitial>45</stressMeterInitial>");
_local1 = (_local1 + "<simultaneousClients>5</simultaneousClients>");
_local1 = (_local1 + "<numberCustomer>12</numberCustomer>");
_local1 = (_local1 + "<goal>285</goal>");
_local1 = (_local1 + "<stations>");
_local1 = (_local1 + "<name>HYDRO</name>");
_local1 = (_local1 + "<name>MASSAGE</name>");
_local1 = (_local1 + "<name>SAUNA</name>");
_local1 = (_local1 + "<name>ICE</name>");
_local1 = (_local1 + "<name>SOLARIUM</name>");
_local1 = (_local1 + "<name>SWIMMING</name>");
_local1 = (_local1 + "<name>HERB</name>");
_local1 = (_local1 + "</stations > ");
_local1 = (_local1 + "</level>");
_local1 = (_local1 + "<level>");
_local1 = (_local1 + "<minTimeCustomer>6</minTimeCustomer>");
_local1 = (_local1 + "<maxTimeCustomer>7.5</maxTimeCustomer>");
_local1 = (_local1 + "<minDesiresCustomer>4</minDesiresCustomer>");
_local1 = (_local1 + "<maxDesiresCustomer>5</maxDesiresCustomer>");
_local1 = (_local1 + "<stressMeterInitial>45</stressMeterInitial>");
_local1 = (_local1 + "<simultaneousClients>5</simultaneousClients>");
_local1 = (_local1 + "<numberCustomer>12</numberCustomer>");
_local1 = (_local1 + "<goal>350</goal>");
_local1 = (_local1 + "<stations>");
_local1 = (_local1 + "<name>HYDRO</name>");
_local1 = (_local1 + "<name>MASSAGE</name>");
_local1 = (_local1 + "<name>SAUNA</name>");
_local1 = (_local1 + "<name>ICE</name>");
_local1 = (_local1 + "<name>SOLARIUM</name>");
_local1 = (_local1 + "<name>SWIMMING</name>");
_local1 = (_local1 + "<name>HERB</name>");
_local1 = (_local1 + "</stations > ");
_local1 = (_local1 + "</level>");
_local1 = (_local1 + "</levels>");
_local1 = (_local1 + "</stage>");
return (_local1);
}
private static function getStage3():String{
var _local1:String;
_local1 = "";
_local1 = (_local1 + "<stage>");
_local1 = (_local1 + "<scenary>background2</scenary>");
_local1 = (_local1 + "<levels>");
_local1 = (_local1 + "<level>");
_local1 = (_local1 + "<minTimeCustomer>5.5</minTimeCustomer>");
_local1 = (_local1 + "<maxTimeCustomer>7.5</maxTimeCustomer>");
_local1 = (_local1 + "<minDesiresCustomer>4</minDesiresCustomer>");
_local1 = (_local1 + "<maxDesiresCustomer>5</maxDesiresCustomer>");
_local1 = (_local1 + "<stressMeterInitial>45</stressMeterInitial>");
_local1 = (_local1 + "<simultaneousClients>5</simultaneousClients>");
_local1 = (_local1 + "<numberCustomer>13</numberCustomer>");
_local1 = (_local1 + "<goal>400</goal>");
_local1 = (_local1 + "<stations>");
_local1 = (_local1 + "<name>HYDRO</name>");
_local1 = (_local1 + "<name>MASSAGE</name>");
_local1 = (_local1 + "<name>SAUNA</name>");
_local1 = (_local1 + "<name>ICE</name>");
_local1 = (_local1 + "<name>SOLARIUM</name>");
_local1 = (_local1 + "<name>SWIMMING</name>");
_local1 = (_local1 + "<name>HERB</name>");
_local1 = (_local1 + "</stations > ");
_local1 = (_local1 + "</level>");
_local1 = (_local1 + "<level>");
_local1 = (_local1 + "<minTimeCustomer>5.5</minTimeCustomer>");
_local1 = (_local1 + "<maxTimeCustomer>7</maxTimeCustomer>");
_local1 = (_local1 + "<minDesiresCustomer>4</minDesiresCustomer>");
_local1 = (_local1 + "<maxDesiresCustomer>5</maxDesiresCustomer>");
_local1 = (_local1 + "<stressMeterInitial>50</stressMeterInitial>");
_local1 = (_local1 + "<simultaneousClients>5</simultaneousClients>");
_local1 = (_local1 + "<numberCustomer>13</numberCustomer>");
_local1 = (_local1 + "<goal>400</goal>");
_local1 = (_local1 + "<stations>");
_local1 = (_local1 + "<name>HYDRO</name>");
_local1 = (_local1 + "<name>MASSAGE</name>");
_local1 = (_local1 + "<name>SAUNA</name>");
_local1 = (_local1 + "<name>ICE</name>");
_local1 = (_local1 + "<name>SOLARIUM</name>");
_local1 = (_local1 + "<name>SWIMMING</name>");
_local1 = (_local1 + "<name>HERB</name>");
_local1 = (_local1 + "</stations > ");
_local1 = (_local1 + "</level>");
_local1 = (_local1 + "<level>");
_local1 = (_local1 + "<minTimeCustomer>5</minTimeCustomer>");
_local1 = (_local1 + "<maxTimeCustomer>7</maxTimeCustomer>");
_local1 = (_local1 + "<minDesiresCustomer>4</minDesiresCustomer>");
_local1 = (_local1 + "<maxDesiresCustomer>5</maxDesiresCustomer>");
_local1 = (_local1 + "<stressMeterInitial>50</stressMeterInitial>");
_local1 = (_local1 + "<simultaneousClients>5</simultaneousClients>");
_local1 = (_local1 + "<numberCustomer>13</numberCustomer>");
_local1 = (_local1 + "<goal>415</goal>");
_local1 = (_local1 + "<stations>");
_local1 = (_local1 + "<name>HYDRO</name>");
_local1 = (_local1 + "<name>MASSAGE</name>");
_local1 = (_local1 + "<name>SAUNA</name>");
_local1 = (_local1 + "<name>ICE</name>");
_local1 = (_local1 + "<name>SOLARIUM</name>");
_local1 = (_local1 + "<name>SWIMMING</name>");
_local1 = (_local1 + "<name>HERB</name>");
_local1 = (_local1 + "<name>ACUPUNCTURE</name>");
_local1 = (_local1 + "</stations > ");
_local1 = (_local1 + "</level>");
_local1 = (_local1 + "<level>");
_local1 = (_local1 + "<minTimeCustomer>5</minTimeCustomer>");
_local1 = (_local1 + "<maxTimeCustomer>6.5</maxTimeCustomer>");
_local1 = (_local1 + "<minDesiresCustomer>4</minDesiresCustomer>");
_local1 = (_local1 + "<maxDesiresCustomer>5</maxDesiresCustomer>");
_local1 = (_local1 + "<stressMeterInitial>50</stressMeterInitial>");
_local1 = (_local1 + "<simultaneousClients>6</simultaneousClients>");
_local1 = (_local1 + "<numberCustomer>15</numberCustomer>");
_local1 = (_local1 + "<goal>435</goal>");
_local1 = (_local1 + "<stations>");
_local1 = (_local1 + "<name>HYDRO</name>");
_local1 = (_local1 + "<name>MASSAGE</name>");
_local1 = (_local1 + "<name>SAUNA</name>");
_local1 = (_local1 + "<name>ICE</name>");
_local1 = (_local1 + "<name>SOLARIUM</name>");
_local1 = (_local1 + "<name>SWIMMING</name>");
_local1 = (_local1 + "<name>HERB</name>");
_local1 = (_local1 + "<name>ACUPUNCTURE</name>");
_local1 = (_local1 + "</stations > ");
_local1 = (_local1 + "</level>");
_local1 = (_local1 + "<level>");
_local1 = (_local1 + "<minTimeCustomer>4.5</minTimeCustomer>");
_local1 = (_local1 + "<maxTimeCustomer>6.5</maxTimeCustomer>");
_local1 = (_local1 + "<minDesiresCustomer>4</minDesiresCustomer>");
_local1 = (_local1 + "<maxDesiresCustomer>6</maxDesiresCustomer>");
_local1 = (_local1 + "<stressMeterInitial>50</stressMeterInitial>");
_local1 = (_local1 + "<simultaneousClients>6</simultaneousClients>");
_local1 = (_local1 + "<numberCustomer>15</numberCustomer>");
_local1 = (_local1 + "<goal>475</goal>");
_local1 = (_local1 + "<stations>");
_local1 = (_local1 + "<name>HYDRO</name>");
_local1 = (_local1 + "<name>MASSAGE</name>");
_local1 = (_local1 + "<name>SAUNA</name>");
_local1 = (_local1 + "<name>ICE</name>");
_local1 = (_local1 + "<name>SOLARIUM</name>");
_local1 = (_local1 + "<name>SWIMMING</name>");
_local1 = (_local1 + "<name>HERB</name>");
_local1 = (_local1 + "<name>ACUPUNCTURE</name>");
_local1 = (_local1 + "</stations > ");
_local1 = (_local1 + "</level>");
_local1 = (_local1 + "<level>");
_local1 = (_local1 + "<minTimeCustomer>4.5</minTimeCustomer>");
_local1 = (_local1 + "<maxTimeCustomer>6.5</maxTimeCustomer>");
_local1 = (_local1 + "<minDesiresCustomer>5</minDesiresCustomer>");
_local1 = (_local1 + "<maxDesiresCustomer>6</maxDesiresCustomer>");
_local1 = (_local1 + "<stressMeterInitial>55</stressMeterInitial>");
_local1 = (_local1 + "<simultaneousClients>6</simultaneousClients>");
_local1 = (_local1 + "<numberCustomer>15</numberCustomer>");
_local1 = (_local1 + "<goal>535</goal>");
_local1 = (_local1 + "<stations>");
_local1 = (_local1 + "<name>HYDRO</name>");
_local1 = (_local1 + "<name>MASSAGE</name>");
_local1 = (_local1 + "<name>SAUNA</name>");
_local1 = (_local1 + "<name>ICE</name>");
_local1 = (_local1 + "<name>SOLARIUM</name>");
_local1 = (_local1 + "<name>SWIMMING</name>");
_local1 = (_local1 + "<name>HERB</name>");
_local1 = (_local1 + "<name>ACUPUNCTURE</name>");
_local1 = (_local1 + "<name>OFURO</name>");
_local1 = (_local1 + "</stations > ");
_local1 = (_local1 + "</level>");
_local1 = (_local1 + "<level>");
_local1 = (_local1 + "<minTimeCustomer>4.5</minTimeCustomer>");
_local1 = (_local1 + "<maxTimeCustomer>6.5</maxTimeCustomer>");
_local1 = (_local1 + "<minDesiresCustomer>5</minDesiresCustomer>");
_local1 = (_local1 + "<maxDesiresCustomer>6</maxDesiresCustomer>");
_local1 = (_local1 + "<stressMeterInitial>55</stressMeterInitial>");
_local1 = (_local1 + "<simultaneousClients>6</simultaneousClients>");
_local1 = (_local1 + "<numberCustomer>15</numberCustomer>");
_local1 = (_local1 + "<goal>550</goal>");
_local1 = (_local1 + "<stations>");
_local1 = (_local1 + "<name>HYDRO</name>");
_local1 = (_local1 + "<name>MASSAGE</name>");
_local1 = (_local1 + "<name>SAUNA</name>");
_local1 = (_local1 + "<name>ICE</name>");
_local1 = (_local1 + "<name>SOLARIUM</name>");
_local1 = (_local1 + "<name>SWIMMING</name>");
_local1 = (_local1 + "<name>HERB</name>");
_local1 = (_local1 + "<name>ACUPUNCTURE</name>");
_local1 = (_local1 + "<name>OFURO</name>");
_local1 = (_local1 + "</stations > ");
_local1 = (_local1 + "</level>");
_local1 = (_local1 + "</levels>");
_local1 = (_local1 + "</stage>");
return (_local1);
}
public static function init(){
stages = getStages();
if (Global.cookie.data.currentLevel == undefined){
Global.cookie.data.currentLevel = 0;
Global.cookie.data.currentStage = 0;
Global.cookie.data.currentScore = 0;
Global.cookie.flush();
};
Levels.indexLevel = Global.cookie.data.currentLevel;
Levels.indexStage = Global.cookie.data.currentStage;
Global.score = Global.cookie.data.currentScore;
}
private static function getStage4():String{
var _local1:String;
_local1 = "";
_local1 = (_local1 + "<stage>");
_local1 = (_local1 + "<scenary>background3</scenary>");
_local1 = (_local1 + "<levels>");
_local1 = (_local1 + "<level>");
_local1 = (_local1 + "<minTimeCustomer>4.5</minTimeCustomer>");
_local1 = (_local1 + "<maxTimeCustomer>6</maxTimeCustomer>");
_local1 = (_local1 + "<minDesiresCustomer>5</minDesiresCustomer>");
_local1 = (_local1 + "<maxDesiresCustomer>6</maxDesiresCustomer>");
_local1 = (_local1 + "<stressMeterInitial>55</stressMeterInitial>");
_local1 = (_local1 + "<simultaneousClients>6</simultaneousClients>");
_local1 = (_local1 + "<numberCustomer>17</numberCustomer>");
_local1 = (_local1 + "<goal>575</goal>");
_local1 = (_local1 + "<stations>");
_local1 = (_local1 + "<name>HYDRO</name>");
_local1 = (_local1 + "<name>MASSAGE</name>");
_local1 = (_local1 + "<name>SAUNA</name>");
_local1 = (_local1 + "<name>ICE</name>");
_local1 = (_local1 + "<name>SOLARIUM</name>");
_local1 = (_local1 + "<name>SWIMMING</name>");
_local1 = (_local1 + "<name>HERB</name>");
_local1 = (_local1 + "<name>ACUPUNCTURE</name>");
_local1 = (_local1 + "<name>OFURO</name>");
_local1 = (_local1 + "</stations > ");
_local1 = (_local1 + "</level>");
_local1 = (_local1 + "<level>");
_local1 = (_local1 + "<minTimeCustomer>4.5</minTimeCustomer>");
_local1 = (_local1 + "<maxTimeCustomer>6</maxTimeCustomer>");
_local1 = (_local1 + "<minDesiresCustomer>5</minDesiresCustomer>");
_local1 = (_local1 + "<maxDesiresCustomer>6</maxDesiresCustomer>");
_local1 = (_local1 + "<stressMeterInitial>55</stressMeterInitial>");
_local1 = (_local1 + "<simultaneousClients>6</simultaneousClients>");
_local1 = (_local1 + "<numberCustomer>17</numberCustomer>");
_local1 = (_local1 + "<goal>600</goal>");
_local1 = (_local1 + "<stations>");
_local1 = (_local1 + "<name>HYDRO</name>");
_local1 = (_local1 + "<name>MASSAGE</name>");
_local1 = (_local1 + "<name>SAUNA</name>");
_local1 = (_local1 + "<name>ICE</name>");
_local1 = (_local1 + "<name>SOLARIUM</name>");
_local1 = (_local1 + "<name>SWIMMING</name>");
_local1 = (_local1 + "<name>HERB</name>");
_local1 = (_local1 + "<name>ACUPUNCTURE</name>");
_local1 = (_local1 + "<name>OFURO</name>");
_local1 = (_local1 + "</stations > ");
_local1 = (_local1 + "</level>");
_local1 = (_local1 + "<level>");
_local1 = (_local1 + "<minTimeCustomer>4</minTimeCustomer>");
_local1 = (_local1 + "<maxTimeCustomer>6</maxTimeCustomer>");
_local1 = (_local1 + "<minDesiresCustomer>5</minDesiresCustomer>");
_local1 = (_local1 + "<maxDesiresCustomer>6</maxDesiresCustomer>");
_local1 = (_local1 + "<stressMeterInitial>60</stressMeterInitial>");
_local1 = (_local1 + "<simultaneousClients>7</simultaneousClients>");
_local1 = (_local1 + "<numberCustomer>17</numberCustomer>");
_local1 = (_local1 + "<goal>615</goal>");
_local1 = (_local1 + "<stations>");
_local1 = (_local1 + "<name>HYDRO</name>");
_local1 = (_local1 + "<name>MASSAGE</name>");
_local1 = (_local1 + "<name>SAUNA</name>");
_local1 = (_local1 + "<name>ICE</name>");
_local1 = (_local1 + "<name>SOLARIUM</name>");
_local1 = (_local1 + "<name>SWIMMING</name>");
_local1 = (_local1 + "<name>HERB</name>");
_local1 = (_local1 + "<name>ACUPUNCTURE</name>");
_local1 = (_local1 + "<name>OFURO</name>");
_local1 = (_local1 + "<name>YOGA</name>");
_local1 = (_local1 + "</stations > ");
_local1 = (_local1 + "</level>");
_local1 = (_local1 + "<level>");
_local1 = (_local1 + "<minTimeCustomer>4</minTimeCustomer>");
_local1 = (_local1 + "<maxTimeCustomer>5.5</maxTimeCustomer>");
_local1 = (_local1 + "<minDesiresCustomer>5</minDesiresCustomer>");
_local1 = (_local1 + "<maxDesiresCustomer>7</maxDesiresCustomer>");
_local1 = (_local1 + "<stressMeterInitial>60</stressMeterInitial>");
_local1 = (_local1 + "<simultaneousClients>7</simultaneousClients>");
_local1 = (_local1 + "<numberCustomer>18</numberCustomer>");
_local1 = (_local1 + "<goal>625</goal>");
_local1 = (_local1 + "<stations>");
_local1 = (_local1 + "<name>HYDRO</name>");
_local1 = (_local1 + "<name>MASSAGE</name>");
_local1 = (_local1 + "<name>SAUNA</name>");
_local1 = (_local1 + "<name>ICE</name>");
_local1 = (_local1 + "<name>SOLARIUM</name>");
_local1 = (_local1 + "<name>SWIMMING</name>");
_local1 = (_local1 + "<name>HERB</name>");
_local1 = (_local1 + "<name>ACUPUNCTURE</name>");
_local1 = (_local1 + "<name>OFURO</name>");
_local1 = (_local1 + "<name>YOGA</name>");
_local1 = (_local1 + "</stations > ");
_local1 = (_local1 + "</level>");
_local1 = (_local1 + "<level>");
_local1 = (_local1 + "<minTimeCustomer>4</minTimeCustomer>");
_local1 = (_local1 + "<maxTimeCustomer>5.5</maxTimeCustomer>");
_local1 = (_local1 + "<minDesiresCustomer>5</minDesiresCustomer>");
_local1 = (_local1 + "<maxDesiresCustomer>7</maxDesiresCustomer>");
_local1 = (_local1 + "<stressMeterInitial>60</stressMeterInitial>");
_local1 = (_local1 + "<simultaneousClients>7</simultaneousClients>");
_local1 = (_local1 + "<numberCustomer>18</numberCustomer>");
_local1 = (_local1 + "<goal>650</goal>");
_local1 = (_local1 + "<stations>");
_local1 = (_local1 + "<name>HYDRO</name>");
_local1 = (_local1 + "<name>MASSAGE</name>");
_local1 = (_local1 + "<name>SAUNA</name>");
_local1 = (_local1 + "<name>ICE</name>");
_local1 = (_local1 + "<name>SOLARIUM</name>");
_local1 = (_local1 + "<name>SWIMMING</name>");
_local1 = (_local1 + "<name>HERB</name>");
_local1 = (_local1 + "<name>ACUPUNCTURE</name>");
_local1 = (_local1 + "<name>OFURO</name>");
_local1 = (_local1 + "<name>YOGA</name>");
_local1 = (_local1 + "</stations > ");
_local1 = (_local1 + "</level>");
_local1 = (_local1 + "<level>");
_local1 = (_local1 + "<minTimeCustomer>3.5</minTimeCustomer>");
_local1 = (_local1 + "<maxTimeCustomer>4.5</maxTimeCustomer>");
_local1 = (_local1 + "<minDesiresCustomer>5</minDesiresCustomer>");
_local1 = (_local1 + "<maxDesiresCustomer>7</maxDesiresCustomer>");
_local1 = (_local1 + "<stressMeterInitial>60</stressMeterInitial>");
_local1 = (_local1 + "<simultaneousClients>7</simultaneousClients>");
_local1 = (_local1 + "<numberCustomer>18</numberCustomer>");
_local1 = (_local1 + "<goal>650</goal>");
_local1 = (_local1 + "<stations>");
_local1 = (_local1 + "<name>HYDRO</name>");
_local1 = (_local1 + "<name>MASSAGE</name>");
_local1 = (_local1 + "<name>SAUNA</name>");
_local1 = (_local1 + "<name>ICE</name>");
_local1 = (_local1 + "<name>SOLARIUM</name>");
_local1 = (_local1 + "<name>SWIMMING</name>");
_local1 = (_local1 + "<name>HERB</name>");
_local1 = (_local1 + "<name>ACUPUNCTURE</name>");
_local1 = (_local1 + "<name>OFURO</name>");
_local1 = (_local1 + "<name>YOGA</name>");
_local1 = (_local1 + "<name>EXFOLIATING</name>");
_local1 = (_local1 + "</stations > ");
_local1 = (_local1 + "</level>");
_local1 = (_local1 + "<level>");
_local1 = (_local1 + "<minTimeCustomer>3.5</minTimeCustomer>");
_local1 = (_local1 + "<maxTimeCustomer>5</maxTimeCustomer>");
_local1 = (_local1 + "<minDesiresCustomer>5</minDesiresCustomer>");
_local1 = (_local1 + "<maxDesiresCustomer>7</maxDesiresCustomer>");
_local1 = (_local1 + "<stressMeterInitial>60</stressMeterInitial>");
_local1 = (_local1 + "<simultaneousClients>7</simultaneousClients>");
_local1 = (_local1 + "<numberCustomer>20</numberCustomer>");
_local1 = (_local1 + "<goal>675</goal>");
_local1 = (_local1 + "<stations>");
_local1 = (_local1 + "<name>HYDRO</name>");
_local1 = (_local1 + "<name>MASSAGE</name>");
_local1 = (_local1 + "<name>SAUNA</name>");
_local1 = (_local1 + "<name>ICE</name>");
_local1 = (_local1 + "<name>SOLARIUM</name>");
_local1 = (_local1 + "<name>SWIMMING</name>");
_local1 = (_local1 + "<name>HERB</name>");
_local1 = (_local1 + "<name>ACUPUNCTURE</name>");
_local1 = (_local1 + "<name>OFURO</name>");
_local1 = (_local1 + "<name>YOGA</name>");
_local1 = (_local1 + "<name>EXFOLIATING</name>");
_local1 = (_local1 + "</stations > ");
_local1 = (_local1 + "</level>");
_local1 = (_local1 + "</levels>");
_local1 = (_local1 + "</stage>");
return (_local1);
}
private static function getStages():XML{
var _local1:String;
var _local2:XML;
_local1 = "<?xml version=\"1.0\" encoding=\"utf-8\" ?>\n";
_local1 = (_local1 + "<stages>\n");
_local1 = (_local1 + getStage1());
_local1 = (_local1 + getStage2());
_local1 = (_local1 + getStage3());
_local1 = (_local1 + getStage4());
_local1 = (_local1 + "</stages>\n");
_local2 = new XML(_local1);
return (_local2);
}
}
}//package classes.global
Section 37
//Main (classes.manager.Main)
package classes.manager {
import classes.basic.Sound.*;
import flash.display.*;
import flash.events.*;
import classes.game.*;
import classes.global.*;
import classes.basic.MovieClip.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
public class Main extends MovieClip {
public var mcStage2PathNode:MovieClip;
public var mcMenu:MovieClip;
public var btnFX:MovieClip;
public var mcLogo:MovieClip;
public var mcMainChar:mainChar;
public var mcTextScore:TextField;
public var mcCreamPathNode:MovieClip;
public var btnStartGame:MovieClip;
public var mcTitleLoading:TextField;
public var mcAux2PathNode:MovieClip;
public var mcGarbagecanPathNode:MovieClip;
public var mcBtnSubmit:MovieClip;
public var mcText1:TextField;
public var mcText2:TextField;
public var mcText3:TextField;
public var mcText4:TextField;
public var mcText6:TextField;
public var mcText5:TextField;
public var mcText7:TextField;
public var mcDialogDummy:MovieClip;
public var mcHydroPathNode:MovieClip;
private var fps:Number;
public var mcTreatment1:MovieClip;
public var mcTreatment3:MovieClip;
public var mcTreatment4:MovieClip;
public var btnPause:MovieClip;
public var mcNewStage:MovieClip;
public var mcSolariumPathNode:MovieClip;
public var mcTreatment2:MovieClip;
public var mcAcupuncturePathNode:MovieClip;
public var mcTextName:TextField;
public var mcStage1PathNode:MovieClip;
private var nLastTime:Number;
public var mcScore1:TextField;
public var mcScore3:TextField;
public var mcScore4:TextField;
public var mcScore5:TextField;
public var mcScore6:TextField;
public var mcScore7:TextField;
public var mcScore8:TextField;
public var mcScore9:TextField;
public var mcScore2:TextField;
public var mcStatue:MovieClip;
public var btnMusic:MovieClip;
public var mcName:TextField;
public var mcGarbagecanCream:MovieClip;
public var mcBtnMore:MovieClip;
public var mcSupplyCream:MovieClip;
public var btnMoreGames:MovieClip;
public var mcValue:TextField;
private var elapsed:Number;
public var mcAux1PathNode:MovieClip;
public var mcAux5PathNode:MovieClip;
public var txtLife:TextField;
public var mcTextGoal:TextField;
public var mcNext:MovieClip;
public var mcTextCash:TextField;
public var btnHowToPlay:MovieClip;
public var mcSpa3:MovieClip;
public var mcGoal:TextField;
public var mcSpa2:MovieClip;
public var mcSpa4:MovieClip;
public var mcCash:TextField;
public var mcMassagePathNode:MovieClip;
public var mcMore:MovieClip;
public var mcMsg:TextField;
public var mcStage4PathNode:MovieClip;
public var mcDialogPause:MovieClip;
public var mcTitleBlink:MovieClip;
public var mcTitle:MovieClip;
public var mcMainMenu:MovieClip;
public var mcBasePathNode:MovieClip;
public var mcAux4PathNode:MovieClip;
public var mcScore:TextField;
public var mcLeft:TextField;
public var mcRoom2:MovieClip;
public var mcRoom3:MovieClip;
public var mcRoom1:MovieClip;
public var mcRank:TextField;
public var mcMark11:MovieClip;
public var mcMark12:MovieClip;
public var mcMark13:MovieClip;
public var mcMark14:MovieClip;
public var mcMark15:MovieClip;
public var mcMark16:MovieClip;
public var mcMark17:MovieClip;
public var mcMark21:MovieClip;
public var btnQuality:MovieClip;
public var mcMark23:MovieClip;
public var mcMark24:MovieClip;
public var mcMark25:MovieClip;
public var mcMark27:MovieClip;
public var btnProgressMusic:MovieClip;
public var mcYogaPathNode:MovieClip;
public var mcMark26:MovieClip;
public var mcName1:TextField;
public var mcName2:TextField;
public var mcName3:TextField;
public var mcName4:TextField;
public var mcName6:TextField;
public var mcName7:TextField;
public var mcName8:TextField;
public var mcGarbagecanClean:MovieClip;
public var mcStage3PathNode:MovieClip;
public var btnHighScore:MovieClip;
public var mcMark31:MovieClip;
public var mcMark32:MovieClip;
public var mcMark33:MovieClip;
public var mcSupplyClean:MovieClip;
public var mcMark35:MovieClip;
public var mcMark36:MovieClip;
public var mcMark34:MovieClip;
public var mcMark37:MovieClip;
public var mcMark22:MovieClip;
public var mcPainel:MovieClip;
public var mcName5:TextField;
public var mcCleanPathNode:MovieClip;
public var btnProgressFX:MovieClip;
public var mcMark41:MovieClip;
public var mcChair1:MovieClip;
public var mcMark44:MovieClip;
public var mcMark45:MovieClip;
public var mcMark46:MovieClip;
public var mcChair6:MovieClip;
public var mcMark42:MovieClip;
public var mcGoalReached:MovieClip;
public var mcChair3:MovieClip;
public var mcChair4:MovieClip;
public var mcMark47:MovieClip;
public var mcChair5:MovieClip;
public var mcOfuroPathNode:MovieClip;
public var mcChair2:MovieClip;
public var mcBackground:MovieClip;
public var mcUpgradeView:MovieClip;
public var mcLoadingBar:MovieClip;
public var mcMark43:MovieClip;
public var mcBathtub1:MovieClip;
public var mcBathtub2:MovieClip;
public var mcBathtub3:MovieClip;
public var mcBathtub4:MovieClip;
public var mcSwimmingPathNode:MovieClip;
public var mcHerbPathNode:MovieClip;
public var mcAux3PathNode:MovieClip;
public var mcName9:TextField;
public var mcExfoliatingPathNode:MovieClip;
public var btnPlay:MovieClip;
public var mcTropicalDeco:MovieClip;
public var mcSaunaPathNode:MovieClip;
public var mcGarbagecanTowel:MovieClip;
public var mcSupplyTowel:MovieClip;
private var objTransport:Object;
public var mcIcePathNode:MovieClip;
public function Main(){
addFrameScript(0, frame1, 10, frame11, 54, frame55, 55, frame56, 101, frame102, 231, frame232, 274, frame275);
initGlobal();
initSound();
stage.quality = StageQuality.HIGH;
stage.showDefaultContextMenu = false;
stage.scaleMode = StageScaleMode.NO_SCALE;
objTransport = new Object();
objTransport.time = 0;
objTransport.fps = 0;
nLastTime = getTimer();
elapsed = 0;
fps = 1;
stage.addEventListener(Event.ENTER_FRAME, onUpdateFrame);
this.stop();
System.useCodePage = true;
}
function frame11(){
stop();
}
function frame1(){
Global.localization_url1 = "http://www.gamesgames.com/moregames/?utm_source=brandedgames&utm_medium=beauty_resort";
Global.localization_language_nr = 1;
Global.localization_branding_nr = 1;
Global.main.onInit();
}
function frame55(){
stop();
}
function frame56(){
}
private function initGlobal(){
var _local1:Array;
var _local2:Object;
Global.main = this;
Global.soundManager = new TFSoundManager();
Global.mouse = new MouseCustomerContainer(this);
Global.cookie = SharedObject.getLocal("beautyresort");
if (Global.cookie.data.highScore == undefined){
_local1 = new Array();
_local2 = new Object();
_local2.name = "Pam";
_local2.score = 17630;
_local1.push(_local2);
_local2 = new Object();
_local2.name = "Jessica";
_local2.score = 141350;
_local1.push(_local2);
_local2 = new Object();
_local2.name = "Marcy";
_local2.score = 115150;
_local1.push(_local2);
_local2 = new Object();
_local2.name = "Anna";
_local2.score = 95240;
_local1.push(_local2);
_local2 = new Object();
_local2.name = "Hellen";
_local2.score = 80650;
_local1.push(_local2);
_local2 = new Object();
_local2.name = "Nick";
_local2.score = 69990;
_local1.push(_local2);
_local2 = new Object();
_local2.name = "Laura";
_local2.score = 61500;
_local1.push(_local2);
_local2 = new Object();
_local2.name = "Jack";
_local2.score = 43250;
_local1.push(_local2);
_local2 = new Object();
_local2.name = "Lucy";
_local2.score = 27650;
_local1.push(_local2);
_local1.sortOn("score", (Array.NUMERIC | Array.DESCENDING));
if (_local1.length > 9){
_local1.splice(9, (Global.cookie.data.highScore.length - 9));
};
Global.cookie.data.highScore = _local1;
Global.cookie.flush();
};
Levels.init();
Customers.init();
}
public function getAsset(_arg1:String):Class{
var pClass:Class;
var strName = _arg1;
try {
pClass = (getDefinitionByName(strName) as Class);
} catch(e:Error) {
return (null);
};
return (pClass);
}
function frame102(){
stop();
}
function frame232(){
stop();
}
private function initSound(){
Global.soundManager.setMusicVolume(50);
Global.soundManager.setSFXVolume(70);
Global.soundTrackMenu = new TFSound(this.getAsset("MAIN_SCREEN"), TFSound.TYPE_MUSIC, null, true, 500, 500);
Global.soundManager.addSound(Global.soundTrackMenu);
Global.soundTrackStage1 = new TFSound(this.getAsset("TRACK04_ROMAN"), TFSound.TYPE_MUSIC, null, true, 500, 500);
Global.soundManager.addSound(Global.soundTrackStage1);
Global.soundTrackStage2 = new TFSound(this.getAsset("TRACK01_TROPICAL"), TFSound.TYPE_MUSIC, null, true, 500, 500);
Global.soundManager.addSound(Global.soundTrackStage2);
Global.soundTrackStage3 = new TFSound(this.getAsset("TRACK03_ORIENTAL"), TFSound.TYPE_MUSIC, null, true, 500, 500);
Global.soundManager.addSound(Global.soundTrackStage3);
Global.soundTrackStage4 = new TFSound(this.getAsset("TRACK02_MOUNTAIN"), TFSound.TYPE_MUSIC, null, true, 500, 500);
Global.soundManager.addSound(Global.soundTrackStage4);
Global.soundLevelCompleted = new TFSound(this.getAsset("LEVEL_COMPLETE"), TFSound.TYPE_MUSIC, null, false, 500, 500);
Global.soundManager.addSound(Global.soundLevelCompleted);
Global.soundLevelFail = new TFSound(this.getAsset("LEVEL_FAILED"), TFSound.TYPE_MUSIC, null, false, 500, 500);
Global.soundManager.addSound(Global.soundLevelFail);
Global.soundVictory = new TFSound(this.getAsset("victory"), TFSound.TYPE_MUSIC, null, false, 500, 500);
Global.soundManager.addSound(Global.soundVictory);
Global.soundsFX = new Array();
Global.soundsFX["bubblingWater"] = new TFSound(this.getAsset("bubblingWater"), TFSound.TYPE_SFX, null, true, 0, 0);
Global.soundManager.addSound(Global.soundsFX["bubblingWater"]);
Global.soundsFX["cleaningStation"] = new TFSound(this.getAsset("cleaningStation"), TFSound.TYPE_SFX, null, false, 0, 0);
Global.soundManager.addSound(Global.soundsFX["cleaningStation"]);
Global.soundsFX["correctStation"] = new TFSound(this.getAsset("correctStation"), TFSound.TYPE_SFX, null, false, 0, 0);
Global.soundManager.addSound(Global.soundsFX["correctStation"]);
Global.soundsFX["desire"] = new TFSound(this.getAsset("desire"), TFSound.TYPE_SFX, null, false, 0, 0);
Global.soundManager.addSound(Global.soundsFX["desire"]);
Global.soundsFX["exitCustomerAngry"] = new TFSound(this.getAsset("exitCustomerAngry"), TFSound.TYPE_SFX, null, false, 0, 0);
Global.soundManager.addSound(Global.soundsFX["exitCustomerAngry"]);
Global.soundsFX["money"] = new TFSound(this.getAsset("money"), TFSound.TYPE_SFX, null, false, 0, 0);
Global.soundManager.addSound(Global.soundsFX["money"]);
Global.soundsFX["mouse_click"] = new TFSound(this.getAsset("mouse_click"), TFSound.TYPE_SFX, null, false, 0, 0);
Global.soundManager.addSound(Global.soundsFX["mouse_click"]);
Global.soundsFX["mouse_over"] = new TFSound(this.getAsset("mouse_over"), TFSound.TYPE_SFX, null, false, 0, 0);
Global.soundManager.addSound(Global.soundsFX["mouse_over"]);
Global.soundsFX["sauna"] = new TFSound(this.getAsset("sauna"), TFSound.TYPE_SFX, null, true, 0, 0);
Global.soundManager.addSound(Global.soundsFX["sauna"]);
Global.soundsFX["swimming"] = new TFSound(this.getAsset("swimming"), TFSound.TYPE_SFX, null, true, 0, 0);
Global.soundManager.addSound(Global.soundsFX["swimming"]);
Global.soundsFX["yoga"] = new TFSound(this.getAsset("yoga"), TFSound.TYPE_SFX, null, true, 0, 0);
Global.soundManager.addSound(Global.soundsFX["yoga"]);
Global.soundsFX["treatment"] = new TFSound(this.getAsset("treatment"), TFSound.TYPE_SFX, null, false, 0, 0);
Global.soundManager.addSound(Global.soundsFX["treatment"]);
Global.soundsFX["wrongStation"] = new TFSound(this.getAsset("wrongStation"), TFSound.TYPE_SFX, null, false, 0, 0);
Global.soundManager.addSound(Global.soundsFX["wrongStation"]);
Global.soundsFX["endingTreatment"] = new TFSound(this.getAsset("endingTreatment"), TFSound.TYPE_SFX, null, false, 0, 0);
Global.soundManager.addSound(Global.soundsFX["endingTreatment"]);
Global.soundsFX["clockTicking"] = new TFSound(this.getAsset("clockTicking"), TFSound.TYPE_SFX, null, true, 0, 0);
Global.soundManager.addSound(Global.soundsFX["clockTicking"]);
Global.soundsFX["drag_customer"] = new TFSound(this.getAsset("drag_customer"), TFSound.TYPE_SFX, null, false, 0, 0);
Global.soundManager.addSound(Global.soundsFX["drag_customer"]);
Global.soundsFX["move_mainchar"] = new TFSound(this.getAsset("move_mainchar"), TFSound.TYPE_SFX, null, false, 0, 0);
Global.soundManager.addSound(Global.soundsFX["move_mainchar"]);
}
function frame275(){
stop();
}
private function onUpdateFrame(_arg1:Event):void{
var t:Number;
var percent:Number;
var evt = _arg1;
try {
if (this.loaderInfo.bytesLoaded < this.loaderInfo.bytesTotal){
percent = (Math.floor((this.loaderInfo.bytesLoaded * 100)) / this.loaderInfo.bytesTotal);
this.mcValue.text = String(Math.round(percent));
this.mcLoadingBar.mcMask.width = ((percent / 100) * 225);
return;
} else {
if (Global.manager == null){
Global.main.stage.quality = StageQuality.HIGH;
Global.manager = new ManagerGAME(this);
};
};
t = getTimer();
objTransport.time = (t - nLastTime);
nLastTime = t;
elapsed = (elapsed + objTransport.time);
if (elapsed > 1000){
objTransport.fps = fps;
fps = 1;
elapsed = 0;
};
fps++;
Global.soundManager.process(objTransport);
if (Global.manager != null){
Global.manager.process(objTransport);
};
} catch(e:Error) {
};
}
public function onInit(){
Global.setXMLLocalization();
this.mcTitleLoading.text = Global.xmlLocalization.loading.title;
this.mcMsg.text = Global.xmlLocalization.loading.msg;
this.mcValue.text = "0";
this.mcLogo.gotoAndStop(Global.localization_branding_nr);
}
}
}//package classes.manager
Section 38
//ManagerGAME (classes.manager.ManagerGAME)
package classes.manager {
import flash.display.*;
import flash.events.*;
import classes.basic.Events.*;
import classes.basic.StateMachine.*;
import classes.game.*;
import classes.global.*;
import classes.basic.MovieClip.*;
import classes.basic.Utils.*;
import classes.basic.Button.*;
import classes.basic.SceneLoader.*;
public class ManagerGAME {
private var progressMainChar:ProgressMainChar;
private var buttons:Array;
private var stMachine:TFStateMachine;
private var stopSound:Boolean;
private var gamePlay:ManagerGamePlay;
private var scenary:Bitmap;
private var stage:MovieClip;
static var EVENT_GO_TO_GAME:String = "EVENT_GO_TO_GAME";
static var ST_MAIN_MENU:String = "ST_MAIN_MENU";
static var ST_HOW_TO_PLAY:String = "ST_HOW_TO_PLAY";
static var ST_GAME:String = "ST_GAME";
static var ST_VICTORY:String = "ST_VICTORY";
static var EVENT_GO_TO_HOW_TO_PLAY:String = "EVENT_GO_TO_HOW_TO_PLAY";
static var ST_PROGRESS_SCREEN:String = "ST_PROGRESS_SCREEN";
static var ST_GAME_OVER:String = "ST_GAME_OVER";
static var EVENT_GO_TO_PROGRESS_SCREEN:String = "EVENT_GO_TO_PROGRESS_SCREEN";
static var EVENT_GO_TO_GAME_OVER:String = "EVENT_GO_TO_GAME_OVER";
static var EVENT_GO_TO_MENU:String = "EVENT_GO_TO_MENU";
static var ST_HIGH_SCORE:String = "ST_HIGH_SCORE";
static var EVENT_GO_TO_HIGH_SCORE:String = "EVENT_GO_TO_HIGH_SCORE";
static var EVENT_GO_TO_VICTORY:String = "EVENT_GO_TO_VICTORY";
public function ManagerGAME(_arg1:MovieClip){
this.buttons = new Array();
this.stage = _arg1;
stMachine = new TFStateMachine(null);
stopSound = true;
stMachine.createEvent(EVENT_GO_TO_MENU, null);
stMachine.createEvent(EVENT_GO_TO_GAME, null);
stMachine.createEvent(EVENT_GO_TO_PROGRESS_SCREEN, null);
stMachine.createEvent(EVENT_GO_TO_GAME_OVER, null);
stMachine.createEvent(EVENT_GO_TO_HOW_TO_PLAY, null);
stMachine.createEvent(EVENT_GO_TO_VICTORY, null);
stMachine.createEvent(EVENT_GO_TO_HIGH_SCORE, null);
stMachine.createState(ST_MAIN_MENU, false, this, startMainMenu, null, stopMainMenu);
stMachine.createState(ST_GAME, false, this, startGame, processGame, stopGame);
stMachine.createState(ST_PROGRESS_SCREEN, false, this, startProgressScreen, processProgress, stopProgressScreen);
stMachine.createState(ST_GAME_OVER, false, this, startGameOver, null, stopGameOver);
stMachine.createState(ST_HOW_TO_PLAY, false, this, startHowToPlay, null, stopHowToPlay);
stMachine.createState(ST_VICTORY, false, this, startVictory, null, stopVictory);
stMachine.createState(ST_HIGH_SCORE, false, this, startHighScore, null, stopHighScore);
stMachine.createTransition(ST_MAIN_MENU, EVENT_GO_TO_PROGRESS_SCREEN, ST_PROGRESS_SCREEN);
stMachine.createTransition(ST_MAIN_MENU, EVENT_GO_TO_HOW_TO_PLAY, ST_HOW_TO_PLAY);
stMachine.createTransition(ST_HOW_TO_PLAY, EVENT_GO_TO_MENU, ST_MAIN_MENU);
stMachine.createTransition(ST_GAME, EVENT_GO_TO_MENU, ST_MAIN_MENU);
stMachine.createTransition(ST_GAME, EVENT_GO_TO_PROGRESS_SCREEN, ST_PROGRESS_SCREEN);
stMachine.createTransition(ST_PROGRESS_SCREEN, EVENT_GO_TO_GAME, ST_GAME);
stMachine.createTransition(ST_GAME, EVENT_GO_TO_GAME_OVER, ST_GAME_OVER);
stMachine.createTransition(ST_GAME, EVENT_GO_TO_VICTORY, ST_VICTORY);
stMachine.createTransition(ST_VICTORY, EVENT_GO_TO_HIGH_SCORE, ST_HIGH_SCORE);
stMachine.createTransition(ST_GAME_OVER, EVENT_GO_TO_HIGH_SCORE, ST_HIGH_SCORE);
stMachine.createTransition(ST_MAIN_MENU, EVENT_GO_TO_HIGH_SCORE, ST_HIGH_SCORE);
stMachine.createTransition(ST_HIGH_SCORE, EVENT_GO_TO_MENU, ST_MAIN_MENU);
stMachine.initialize(ST_MAIN_MENU);
}
public function dispatchGameOver(){
try {
return (stMachine.receiveEvent(EVENT_GO_TO_GAME_OVER));
} catch(e:Error) {
};
}
private function onEventHowToPlay(_arg1:TFEvent){
switch (_arg1.event){
case TFEvent.EVENT_MOUSECLICK:
dispatchHowToPlay();
break;
case TFEvent.EVENT_INIT:
break;
case TFEvent.EVENT_MOUSEOUT:
break;
case TFEvent.EVENT_MOUSEOVER:
break;
};
}
private function onHowToPlayPage1LoadFrame(){
TFMovieClip.addLabelScript(stage, "page1", null);
stage.stop();
if (buttons["button1"] == null){
buttons["button1"] = new TFTextButton(stage.mcMainMenu, Global.xmlLocalization.howToPlay.mainmenu, onEventButton1);
buttons["button1"].setFxOver(Global.soundsFX["mouse_over"]);
buttons["button1"].setFxClick(Global.soundsFX["mouse_click"]);
};
if (buttons["button2"] == null){
buttons["button2"] = new TFTextButton(stage.mcNext, Global.xmlLocalization.howToPlay.next, onEventButton2);
buttons["button2"].setFxOver(Global.soundsFX["mouse_over"]);
buttons["button2"].setFxClick(Global.soundsFX["mouse_click"]);
};
buttons["button1"].setText(Global.xmlLocalization.howToPlay.mainmenu);
buttons["button2"].setText(Global.xmlLocalization.howToPlay.next);
stage.mcText1.text = Global.xmlLocalization.howToPlay.text1;
stage.mcText2.text = Global.xmlLocalization.howToPlay.text2;
stage.mcLogo.gotoAndStop(Global.localization_branding_nr);
stage.mcLogo.mcHitArea.addEventListener(MouseEvent.CLICK, onMCClick, false, 0, true);
}
private function onEventBackground(_arg1:TFEvent){
switch (_arg1.event){
case TFEvent.EVENT_MOUSEUP:
if (Global.mouse.getLastLocal() != null){
Global.mouse.getLastLocal().addCustomer(Global.mouse.removeCustomer());
};
break;
};
}
private function onEventQuality(_arg1:TFEvent){
switch (_arg1.event){
case TFEvent.EVENT_MOUSECLICK:
switch (Global.main.stage.quality){
case "HIGH":
Global.main.stage.quality = StageQuality.LOW;
break;
case "MEDIUM":
Global.main.stage.quality = StageQuality.HIGH;
break;
case "LOW":
Global.main.stage.quality = StageQuality.MEDIUM;
break;
};
buttons["quality"].setText(((Global.xmlLocalization.mainmenu.quality + " ") + Global.xmlLocalization.mainmenu.child(Global.main.stage.quality.toLowerCase())[0].toString()));
break;
case TFEvent.EVENT_INIT:
break;
case TFEvent.EVENT_MOUSEOUT:
break;
case TFEvent.EVENT_MOUSEOVER:
break;
};
}
private function onEventFX(_arg1:TFEvent){
switch (_arg1.event){
case TFEvent.EVENT_ON:
Global.soundManager.setSFXVolume(100);
break;
case TFEvent.EVENT_OFF:
Global.soundManager.setSFXVolume(0);
break;
};
}
private function processGame(_arg1:Object){
if (gamePlay != null){
gamePlay.process(_arg1);
};
}
public function dispatchGame(){
try {
return (stMachine.receiveEvent(EVENT_GO_TO_GAME));
} catch(e:Error) {
};
}
private function stopGame(){
gamePlay = null;
}
public function onCheatNextLevel(){
var _local1:Number;
var _local2:Number;
Global.soundTrackStage1.stop();
Global.soundTrackStage2.stop();
Global.soundTrackStage3.stop();
Global.soundTrackStage4.stop();
Global.cash = Levels.stages.stage[Levels.indexStage].levels.level[Levels.indexLevel].goal;
_local1 = (300 - int((gamePlay.getTime() / 1000)));
if (_local1 < 0){
_local1 = 0;
};
if (Global.cash == 0){
_local1 = 0;
};
_local2 = ((Global.cash * 10) + (_local1 * 10));
Global.score = (Global.score + _local2);
nextLevel();
}
private function stopGameOver(){
delete buttons["moregames"];
buttons["moregames"] = undefined;
delete buttons["submit"];
buttons["submit"] = undefined;
}
public function dispatchProgressScreen(){
try {
return (stMachine.receiveEvent(EVENT_GO_TO_PROGRESS_SCREEN));
} catch(e:Error) {
};
}
private function stopProgressScreen(){
delete buttons["play"];
buttons["play"] = undefined;
delete buttons["fx"];
buttons["fx"] = undefined;
delete buttons["music"];
buttons["music"] = undefined;
Global.soundTrackMenu.stop();
this.progressMainChar = null;
}
private function onEventSubmitVictory(_arg1:TFEvent){
var _local2:Object;
switch (_arg1.event){
case TFEvent.EVENT_MOUSECLICK:
if (stage.mcPainel.mcName.length){
_local2 = new Object();
_local2.name = stage.mcPainel.mcName.text;
_local2.score = Global.score;
Global.cookie.data.highScore.push(_local2);
Global.cookie.data.highScore.sortOn("score", (Array.NUMERIC | Array.DESCENDING));
if (Global.cookie.data.highScore.length > 9){
Global.cookie.data.highScore.splice(9, (Global.cookie.data.highScore.length - 9));
};
Global.cookie.flush();
Global.cash = 0;
Global.score = 0;
dispatchHighScore();
};
break;
};
}
private function onFinishGameLoadFrame(){
TFMovieClip.addLabelScript(stage, "finishGame", null);
Global.main.mcUpgradeView.visible = false;
Global.main.mcNewStage.visible = false;
stage.stop();
buttons["start"] = new TFTextButton(Global.main.mcUpgradeView.mcStart, Global.xmlLocalization.game.play, onEventStart);
buttons["start"].setFxOver(Global.soundsFX["mouse_over"]);
buttons["start"].setFxClick(Global.soundsFX["mouse_click"]);
Global.main.mcUpgradeView.mcMsgBlink.mcText.text = Global.xmlLocalization.update.msg;
Global.main.mcUpgradeView.mcMsg.mcText.text = Global.xmlLocalization.update.msg;
if (Levels.indexStage == 0){
Global.main.mcStatue.visible = true;
} else {
Global.main.mcStatue.visible = false;
};
if (Levels.indexStage == 1){
Global.main.mcTropicalDeco.visible = true;
} else {
Global.main.mcTropicalDeco.visible = false;
};
if ((((Levels.indexStage == 0)) && ((Levels.indexLevel == 0)))){
buttons["startStage"] = new TFTextButton(Global.main.mcNewStage.btnPlay, Global.xmlLocalization.game.play, onEventStart);
buttons["startStage"].setFxOver(Global.soundsFX["mouse_over"]);
buttons["startStage"].setFxClick(Global.soundsFX["mouse_click"]);
Global.main.mcNewStage.visible = true;
TFMovieClip.setTextBalloon(Global.xmlLocalization.game.msg1, Global.main.mcNewStage);
return;
};
if ((((Levels.indexStage == 0)) && ((Levels.indexLevel == 1)))){
Global.main.mcUpgradeView.mcRoom2.visible = false;
Global.main.mcUpgradeView.mcRoom3.visible = false;
Global.main.mcUpgradeView.mcBath1.visible = false;
Global.main.mcUpgradeView.mcBath2.visible = false;
Global.main.mcUpgradeView.mcBath3.visible = false;
Global.main.mcUpgradeView.mcBath4.visible = false;
Global.main.mcUpgradeView.mcTreatment1.visible = false;
Global.main.mcUpgradeView.mcTreatment2.visible = false;
Global.main.mcUpgradeView.mcTreatment3.visible = false;
Global.main.mcUpgradeView.mcTreatment4.visible = false;
Global.main.mcUpgradeView.gotoAndPlay("anima");
Global.main.mcUpgradeView.visible = true;
return;
};
if ((((Levels.indexStage == 0)) && ((Levels.indexLevel == 3)))){
Global.main.mcUpgradeView.mcRoom1.visible = false;
Global.main.mcUpgradeView.mcRoom2.visible = false;
Global.main.mcUpgradeView.mcRoom3.visible = false;
Global.main.mcUpgradeView.mcBath1.visible = false;
Global.main.mcUpgradeView.mcBath3.visible = false;
Global.main.mcUpgradeView.mcBath4.visible = false;
Global.main.mcUpgradeView.mcTreatment1.visible = false;
Global.main.mcUpgradeView.mcTreatment2.visible = false;
Global.main.mcUpgradeView.mcTreatment3.visible = false;
Global.main.mcUpgradeView.mcTreatment4.visible = false;
Global.main.mcUpgradeView.gotoAndPlay("anima");
Global.main.mcUpgradeView.visible = true;
return;
};
if ((((Levels.indexStage == 0)) && ((Levels.indexLevel == 5)))){
Global.main.mcUpgradeView.mcRoom1.visible = false;
Global.main.mcUpgradeView.mcRoom2.visible = false;
Global.main.mcUpgradeView.mcRoom3.visible = false;
Global.main.mcUpgradeView.mcBath1.visible = false;
Global.main.mcUpgradeView.mcBath2.visible = false;
Global.main.mcUpgradeView.mcBath3.visible = false;
Global.main.mcUpgradeView.mcBath4.visible = false;
Global.main.mcUpgradeView.mcTreatment1.visible = false;
Global.main.mcUpgradeView.mcTreatment3.visible = false;
Global.main.mcUpgradeView.mcTreatment4.visible = false;
Global.main.mcUpgradeView.gotoAndPlay("anima");
Global.main.mcUpgradeView.visible = true;
return;
};
if ((((Levels.indexStage == 1)) && ((Levels.indexLevel == 0)))){
buttons["startStage"] = new TFTextButton(Global.main.mcNewStage.btnPlay, Global.xmlLocalization.game.play, onEventStart);
buttons["startStage"].setFxOver(Global.soundsFX["mouse_over"]);
buttons["startStage"].setFxClick(Global.soundsFX["mouse_click"]);
Global.main.mcNewStage.visible = true;
TFMovieClip.setTextBalloon(Global.xmlLocalization.game.msg2, Global.main.mcNewStage);
return;
};
if ((((Levels.indexStage == 1)) && ((Levels.indexLevel == 2)))){
Global.main.mcUpgradeView.mcRoom1.visible = false;
Global.main.mcUpgradeView.mcRoom3.visible = false;
Global.main.mcUpgradeView.mcBath1.visible = false;
Global.main.mcUpgradeView.mcBath2.visible = false;
Global.main.mcUpgradeView.mcBath3.visible = false;
Global.main.mcUpgradeView.mcBath4.visible = false;
Global.main.mcUpgradeView.mcTreatment1.visible = false;
Global.main.mcUpgradeView.mcTreatment2.visible = false;
Global.main.mcUpgradeView.mcTreatment3.visible = false;
Global.main.mcUpgradeView.mcTreatment4.visible = false;
Global.main.mcUpgradeView.gotoAndPlay("anima");
Global.main.mcUpgradeView.visible = true;
return;
};
if ((((Levels.indexStage == 1)) && ((Levels.indexLevel == 5)))){
Global.main.mcUpgradeView.mcRoom1.visible = false;
Global.main.mcUpgradeView.mcRoom2.visible = false;
Global.main.mcUpgradeView.mcRoom3.visible = false;
Global.main.mcUpgradeView.mcBath1.visible = false;
Global.main.mcUpgradeView.mcBath2.visible = false;
Global.main.mcUpgradeView.mcBath4.visible = false;
Global.main.mcUpgradeView.mcTreatment1.visible = false;
Global.main.mcUpgradeView.mcTreatment2.visible = false;
Global.main.mcUpgradeView.mcTreatment3.visible = false;
Global.main.mcUpgradeView.mcTreatment4.visible = false;
Global.main.mcUpgradeView.gotoAndPlay("anima");
Global.main.mcUpgradeView.visible = true;
return;
};
if ((((Levels.indexStage == 2)) && ((Levels.indexLevel == 0)))){
buttons["startStage"] = new TFTextButton(Global.main.mcNewStage.btnPlay, Global.xmlLocalization.game.play, onEventStart);
buttons["startStage"].setFxOver(Global.soundsFX["mouse_over"]);
buttons["startStage"].setFxClick(Global.soundsFX["mouse_click"]);
Global.main.mcNewStage.visible = true;
TFMovieClip.setTextBalloon(Global.xmlLocalization.game.msg3, Global.main.mcNewStage);
return;
};
if ((((Levels.indexStage == 2)) && ((Levels.indexLevel == 2)))){
Global.main.mcUpgradeView.mcRoom1.visible = false;
Global.main.mcUpgradeView.mcRoom2.visible = false;
Global.main.mcUpgradeView.mcRoom3.visible = false;
Global.main.mcUpgradeView.mcBath1.visible = false;
Global.main.mcUpgradeView.mcBath2.visible = false;
Global.main.mcUpgradeView.mcBath3.visible = false;
Global.main.mcUpgradeView.mcBath4.visible = false;
Global.main.mcUpgradeView.mcTreatment1.visible = false;
Global.main.mcUpgradeView.mcTreatment2.visible = false;
Global.main.mcUpgradeView.mcTreatment4.visible = false;
Global.main.mcUpgradeView.gotoAndPlay("anima");
Global.main.mcUpgradeView.visible = true;
return;
};
if ((((Levels.indexStage == 2)) && ((Levels.indexLevel == 5)))){
Global.main.mcUpgradeView.mcRoom1.visible = false;
Global.main.mcUpgradeView.mcRoom2.visible = false;
Global.main.mcUpgradeView.mcRoom3.visible = false;
Global.main.mcUpgradeView.mcBath1.visible = false;
Global.main.mcUpgradeView.mcBath2.visible = false;
Global.main.mcUpgradeView.mcBath3.visible = false;
Global.main.mcUpgradeView.mcTreatment1.visible = false;
Global.main.mcUpgradeView.mcTreatment2.visible = false;
Global.main.mcUpgradeView.mcTreatment3.visible = false;
Global.main.mcUpgradeView.mcTreatment4.visible = false;
Global.main.mcUpgradeView.gotoAndPlay("anima");
Global.main.mcUpgradeView.visible = true;
return;
};
if ((((Levels.indexStage == 3)) && ((Levels.indexLevel == 0)))){
buttons["startStage"] = new TFTextButton(Global.main.mcNewStage.btnPlay, Global.xmlLocalization.game.play, onEventStart);
buttons["startStage"].setFxOver(Global.soundsFX["mouse_over"]);
buttons["startStage"].setFxClick(Global.soundsFX["mouse_click"]);
Global.main.mcNewStage.visible = true;
TFMovieClip.setTextBalloon(Global.xmlLocalization.game.msg4, Global.main.mcNewStage);
return;
};
if ((((Levels.indexStage == 3)) && ((Levels.indexLevel == 2)))){
Global.main.mcUpgradeView.mcRoom1.visible = false;
Global.main.mcUpgradeView.mcRoom2.visible = false;
Global.main.mcUpgradeView.mcBath1.visible = false;
Global.main.mcUpgradeView.mcBath2.visible = false;
Global.main.mcUpgradeView.mcBath3.visible = false;
Global.main.mcUpgradeView.mcBath4.visible = false;
Global.main.mcUpgradeView.mcTreatment1.visible = false;
Global.main.mcUpgradeView.mcTreatment2.visible = false;
Global.main.mcUpgradeView.mcTreatment3.visible = false;
Global.main.mcUpgradeView.mcTreatment4.visible = false;
Global.main.mcUpgradeView.gotoAndPlay("anima");
Global.main.mcUpgradeView.visible = true;
return;
};
if ((((Levels.indexStage == 3)) && ((Levels.indexLevel == 5)))){
Global.main.mcUpgradeView.mcRoom1.visible = false;
Global.main.mcUpgradeView.mcRoom2.visible = false;
Global.main.mcUpgradeView.mcRoom3.visible = false;
Global.main.mcUpgradeView.mcBath1.visible = false;
Global.main.mcUpgradeView.mcBath2.visible = false;
Global.main.mcUpgradeView.mcBath3.visible = false;
Global.main.mcUpgradeView.mcBath4.visible = false;
Global.main.mcUpgradeView.mcTreatment1.visible = false;
Global.main.mcUpgradeView.mcTreatment2.visible = false;
Global.main.mcUpgradeView.mcTreatment3.visible = false;
Global.main.mcUpgradeView.gotoAndPlay("anima");
Global.main.mcUpgradeView.visible = true;
return;
};
gamePlay.start();
buttons["pause"].enable();
}
private function onHowToPlayPage2LoadFrame(){
TFMovieClip.addLabelScript(stage, "page2", null);
stage.stop();
stage.mcText3.text = Global.xmlLocalization.howToPlay.text3;
stage.mcText4.text = Global.xmlLocalization.howToPlay.text4;
stage.mcLogo.gotoAndStop(Global.localization_branding_nr);
stage.mcLogo.mcHitArea.addEventListener(MouseEvent.CLICK, onMCClick, false, 0, true);
buttons["button1"].setText(Global.xmlLocalization.howToPlay.back);
buttons["button2"].setText(Global.xmlLocalization.howToPlay.next);
}
private function onEventStart(_arg1:TFEvent){
switch (_arg1.event){
case TFEvent.EVENT_MOUSECLICK:
Global.main.mcUpgradeView.visible = false;
Global.main.mcNewStage.visible = false;
buttons["pause"].enable();
gamePlay.start();
break;
};
}
private function onEventMusicGame(_arg1:TFEvent){
switch (_arg1.event){
case TFEvent.EVENT_MOUSEUP:
if (Global.mouse.getLastLocal() != null){
Global.mouse.getLastLocal().addCustomer(Global.mouse.removeCustomer());
};
break;
case TFEvent.EVENT_ON:
Global.soundManager.setMusicVolume(50);
break;
case TFEvent.EVENT_OFF:
Global.soundManager.setMusicVolume(0);
break;
};
}
private function stopHighScore(){
delete buttons["moregames"];
buttons["moregames"] = undefined;
delete buttons["mainmenu"];
buttons["mainmenu"] = undefined;
}
private function onInitHowToPlayLoadFrame(){
TFMovieClip.addLabelScript(stage, "initNowToPlay", null);
stage.mcText1.text = Global.xmlLocalization.howToPlay.text1;
stage.mcText2.text = Global.xmlLocalization.howToPlay.text2;
stage.mcLogo.gotoAndStop(Global.localization_branding_nr);
stage.mcLogo.mcHitArea.addEventListener(MouseEvent.CLICK, onMCClick, false, 0, true);
}
private function stopVictory(){
delete buttons["moregames"];
buttons["moregames"] = undefined;
delete buttons["submit"];
buttons["submit"] = undefined;
Global.soundVictory.stop();
}
private function onEventMoreGames(_arg1:TFEvent){
switch (_arg1.event){
case TFEvent.EVENT_MOUSECLICK:
TFURLNavigator.changePage(Global.localization_url1, "_blank");
break;
case TFEvent.EVENT_INIT:
break;
case TFEvent.EVENT_MOUSEOUT:
break;
case TFEvent.EVENT_MOUSEOVER:
break;
};
}
private function onVictoryLoadFrame(){
TFMovieClip.addLabelScript(this.stage, "victory", null);
TFMovieClip.addLabelScript(this.stage, "buttons", onButtonsVictoryLoadFrame);
stage.mcTitle.mcText.text = Global.xmlLocalization.victory.title;
stage.mcTitleBlink.mcText.text = Global.xmlLocalization.victory.title;
Global.soundVictory.play();
}
private function onHighScoreLoadFrame(){
var _local1:Number;
TFMovieClip.addLabelScript(stage, "highscore", null);
stage.mcRank.text = Global.xmlLocalization.highscore.rank;
stage.mcName.text = Global.xmlLocalization.highscore.name;
stage.mcScore.text = Global.xmlLocalization.highscore.score;
stage.mcTitle.mcText.text = Global.xmlLocalization.highscore.title;
stage.mcTitleBlink.mcText.text = Global.xmlLocalization.highscore.title;
buttons["moregames"] = new TFTextButton(stage.mcMore, Global.xmlLocalization.highscore.moregames, onEventMoreGames);
buttons["moregames"].setFxOver(Global.soundsFX["mouse_over"]);
buttons["moregames"].setFxClick(Global.soundsFX["mouse_click"]);
buttons["mainmenu"] = new TFTextButton(stage.mcMenu, Global.xmlLocalization.highscore.menu, onEventMainMenu);
buttons["mainmenu"].setFxOver(Global.soundsFX["mouse_over"]);
buttons["mainmenu"].setFxClick(Global.soundsFX["mouse_click"]);
_local1 = 0;
while (_local1 < Global.cookie.data.highScore.length) {
if (_local1 > 9){
break;
};
switch (_local1){
case 0:
stage.mcName1.text = Global.cookie.data.highScore[_local1].name;
stage.mcScore1.text = Global.cookie.data.highScore[_local1].score;
break;
case 1:
stage.mcName2.text = Global.cookie.data.highScore[_local1].name;
stage.mcScore2.text = Global.cookie.data.highScore[_local1].score;
break;
case 2:
stage.mcName3.text = Global.cookie.data.highScore[_local1].name;
stage.mcScore3.text = Global.cookie.data.highScore[_local1].score;
break;
case 3:
stage.mcName4.text = Global.cookie.data.highScore[_local1].name;
stage.mcScore4.text = Global.cookie.data.highScore[_local1].score;
break;
case 4:
stage.mcName5.text = Global.cookie.data.highScore[_local1].name;
stage.mcScore5.text = Global.cookie.data.highScore[_local1].score;
break;
case 5:
stage.mcName6.text = Global.cookie.data.highScore[_local1].name;
stage.mcScore6.text = Global.cookie.data.highScore[_local1].score;
break;
case 6:
stage.mcName7.text = Global.cookie.data.highScore[_local1].name;
stage.mcScore7.text = Global.cookie.data.highScore[_local1].score;
break;
case 7:
stage.mcName8.text = Global.cookie.data.highScore[_local1].name;
stage.mcScore8.text = Global.cookie.data.highScore[_local1].score;
break;
case 8:
stage.mcName9.text = Global.cookie.data.highScore[_local1].name;
stage.mcScore9.text = Global.cookie.data.highScore[_local1].score;
break;
};
_local1++;
};
}
private function onMainMenuLoadFrame(){
TFMovieClip.addLabelScript(stage, "menu", null);
stage.stop();
stage.mcLogo.gotoAndStop(Global.localization_branding_nr);
stage.mcLogo.mcHitArea.addEventListener(MouseEvent.CLICK, onMCClick, false, 0, true);
buttons["startgame"] = new TFTextButton(stage.btnStartGame, Global.xmlLocalization.mainmenu.startgame, onEventStartGame);
buttons["startgame"].setFxOver(Global.soundsFX["mouse_over"]);
buttons["startgame"].setFxClick(Global.soundsFX["mouse_click"]);
buttons["howtoplay"] = new TFTextButton(stage.btnHowToPlay, Global.xmlLocalization.mainmenu.howtoplay, onEventHowToPlay);
buttons["howtoplay"].setFxOver(Global.soundsFX["mouse_over"]);
buttons["howtoplay"].setFxClick(Global.soundsFX["mouse_click"]);
buttons["highscore"] = new TFTextButton(stage.btnHighScore, Global.xmlLocalization.mainmenu.highscore, onEventHighScore);
buttons["highscore"].setFxOver(Global.soundsFX["mouse_over"]);
buttons["highscore"].setFxClick(Global.soundsFX["mouse_click"]);
buttons["moregames"] = new TFTextButton(stage.btnMoreGames, Global.xmlLocalization.mainmenu.moregames, onEventMoreGames);
buttons["moregames"].setFxOver(Global.soundsFX["mouse_over"]);
buttons["moregames"].setFxClick(Global.soundsFX["mouse_click"]);
buttons["quality"] = new TFTextButton(stage.btnQuality, ((Global.xmlLocalization.mainmenu.quality + " ") + Global.xmlLocalization.mainmenu.child(Global.main.stage.quality.toLowerCase())[0].toString()), onEventQuality);
buttons["quality"].setFxOver(Global.soundsFX["mouse_over"]);
buttons["quality"].setFxClick(Global.soundsFX["mouse_click"]);
buttons["fx"] = new TFSwitchButton(stage.btnFX, onEventFX);
buttons["fx"].setFxOver(Global.soundsFX["mouse_over"]);
buttons["fx"].setFxClick(Global.soundsFX["mouse_click"]);
buttons["music"] = new TFSwitchButton(stage.btnMusic, onEventMusic);
buttons["music"].setFxOver(Global.soundsFX["mouse_over"]);
buttons["music"].setFxClick(Global.soundsFX["mouse_click"]);
if (Global.soundManager.getSFXVolume() == 0){
buttons["fx"].off();
};
if (Global.soundManager.getMusicVolume() == 0){
buttons["music"].off();
};
buttons.length = 6;
if (stopSound){
Global.soundTrackMenu.play();
};
stopSound = true;
}
public function dispatchVictory(){
try {
return (stMachine.receiveEvent(EVENT_GO_TO_VICTORY));
} catch(e:Error) {
};
}
private function onEventStartGame(_arg1:TFEvent){
switch (_arg1.event){
case TFEvent.EVENT_MOUSECLICK:
dispatchProgressScreen();
break;
case TFEvent.EVENT_INIT:
break;
case TFEvent.EVENT_MOUSEOUT:
break;
case TFEvent.EVENT_MOUSEOVER:
break;
};
}
private function startMainMenu(){
stage.gotoAndPlay("menu");
TFMovieClip.addLabelScript(this.stage, "menu", onMainMenuLoadFrame);
}
private function onEventPause(_arg1:TFEvent){
switch (_arg1.event){
case TFEvent.EVENT_MOUSECLICK:
buttons["pause"].on();
break;
case TFEvent.EVENT_MOUSEUP:
if (Global.mouse.getLastLocal() != null){
Global.mouse.getLastLocal().addCustomer(Global.mouse.removeCustomer());
};
break;
case TFEvent.EVENT_ON:
case TFEvent.EVENT_OFF:
gamePlay.pause();
stage.mcDialogPause.visible = !(stage.mcDialogPause.visible);
break;
};
}
private function processProgress(_arg1:Object){
if (progressMainChar != null){
progressMainChar.processWalking(_arg1);
};
}
public function dispatchHighScore(){
stopSound = false;
try {
return (stMachine.receiveEvent(EVENT_GO_TO_HIGH_SCORE));
} catch(e:Error) {
};
}
private function onEventFXGame(_arg1:TFEvent){
switch (_arg1.event){
case TFEvent.EVENT_MOUSEUP:
if (Global.mouse.getLastLocal() != null){
Global.mouse.getLastLocal().addCustomer(Global.mouse.removeCustomer());
};
break;
case TFEvent.EVENT_ON:
Global.soundManager.setSFXVolume(100);
break;
case TFEvent.EVENT_OFF:
Global.soundManager.setSFXVolume(0);
break;
};
}
private function onGameOverLoadFrame(){
TFMovieClip.addLabelScript(stage, "gameOver", null);
stage.mcLogo.gotoAndStop(Global.localization_branding_nr);
stage.mcLogo.mcHitArea.addEventListener(MouseEvent.CLICK, onMCClick, false, 0, true);
stage.mcTitle.mcText.text = Global.xmlLocalization.gameOver.title;
stage.mcTitleBlink.mcText.text = Global.xmlLocalization.gameOver.title;
stage.mcTextScore.text = Global.xmlLocalization.gameOver.score;
stage.mcName.text = Global.xmlLocalization.sarah;
stage.mcTextName.text = Global.xmlLocalization.gameOver.name;
stage.mcScore.text = Global.score.toString();
buttons["moregames"] = new TFTextButton(stage.mcBtnMore, Global.xmlLocalization.mainmenu.moregames, onEventMoreGames);
buttons["moregames"].setFxOver(Global.soundsFX["mouse_over"]);
buttons["moregames"].setFxClick(Global.soundsFX["mouse_click"]);
buttons["submit"] = new TFTextButton(stage.mcBtnSubmit, Global.xmlLocalization.gameOver.submit, onEventSubmit);
buttons["submit"].setFxOver(Global.soundsFX["mouse_over"]);
buttons["submit"].setFxClick(Global.soundsFX["mouse_click"]);
}
private function onHowToPlayPage3LoadFrame(){
TFMovieClip.addLabelScript(stage, "page3", null);
stage.stop();
stage.mcText5.text = Global.xmlLocalization.howToPlay.text5;
stage.mcText6.text = Global.xmlLocalization.howToPlay.text6;
stage.mcText7.text = Global.xmlLocalization.howToPlay.text7;
stage.mcLogo.gotoAndStop(Global.localization_branding_nr);
stage.mcLogo.mcHitArea.addEventListener(MouseEvent.CLICK, onMCClick, false, 0, true);
buttons["button1"].setText(Global.xmlLocalization.howToPlay.back);
buttons["button2"].setText(Global.xmlLocalization.howToPlay.mainmenu);
}
private function onEventButton1(_arg1:TFEvent){
switch (_arg1.event){
case TFEvent.EVENT_MOUSECLICK:
switch (stage.currentFrame){
case 102:
dispatchMainMenu();
break;
case 103:
stage.gotoAndStop("page1");
TFMovieClip.addLabelScript(stage, "page1", onHowToPlayPage1LoadFrame);
break;
case 104:
stage.gotoAndStop("page2");
TFMovieClip.addLabelScript(stage, "page2", onHowToPlayPage2LoadFrame);
break;
};
break;
};
}
private function onEventButton2(_arg1:TFEvent){
switch (_arg1.event){
case TFEvent.EVENT_MOUSECLICK:
switch (stage.currentFrame){
case 102:
stage.gotoAndStop("page2");
TFMovieClip.addLabelScript(stage, "page2", onHowToPlayPage2LoadFrame);
break;
case 103:
stage.gotoAndStop("page3");
TFMovieClip.addLabelScript(stage, "page3", onHowToPlayPage3LoadFrame);
break;
case 104:
dispatchMainMenu();
break;
};
break;
};
}
private function startHighScore(){
stage.gotoAndPlay("highscore");
TFMovieClip.addLabelScript(stage, "highscore", onHighScoreLoadFrame);
}
private function startVictory(){
stage.gotoAndPlay("victory");
TFMovieClip.addLabelScript(this.stage, "victory", onVictoryLoadFrame);
}
public function nextLevel(){
var _local1:Class;
var _local2:BitmapData;
if (Global.cash >= Levels.stages.stage[Levels.indexStage].levels.level[Levels.indexLevel].goal){
Levels.indexLevel++;
Global.cookie.data.currentLevel = Levels.indexLevel;
Global.cookie.data.currentStage = Levels.indexStage;
Global.cookie.data.currentScore = Global.score;
Global.cookie.flush();
if (Levels.indexLevel >= Levels.stages.stage[Levels.indexStage].levels.level.length()){
Levels.indexLevel = 0;
Levels.indexStage++;
Global.cookie.data.currentLevel = 0;
Global.cookie.data.currentStage = 0;
Global.cookie.flush();
if (Levels.indexStage >= Levels.stages.stage.length()){
Global.cookie.data.currentLevel = 0;
Global.cookie.data.currentStage = 0;
Global.cookie.data.currentScore = 0;
Global.cookie.flush();
Levels.indexLevel = 0;
Levels.indexStage = 0;
scenary = null;
dispatchVictory();
return;
};
_local1 = Global.main.getAsset(Levels.stages.stage[Levels.indexStage].scenary);
_local2 = new _local1(600, 450);
scenary = new Bitmap(_local2);
Global.main.mcBackground.addChild(scenary);
};
} else {
Global.life--;
};
if (Global.life <= 0){
Global.cookie.data.currentLevel = 0;
Global.cookie.data.currentStage = 0;
Global.cookie.data.currentScore = 0;
Global.cookie.flush();
Levels.indexLevel = 0;
Levels.indexStage = 0;
dispatchGameOver();
} else {
dispatchProgressScreen();
};
}
public function dispatchMainMenu(){
try {
return (stMachine.receiveEvent(EVENT_GO_TO_MENU));
} catch(e:Error) {
};
}
private function onMCClick(_arg1:MouseEvent):void{
TFURLNavigator.changePage(Global.localization_url1, "_blank");
}
private function onEventHighScore(_arg1:TFEvent){
switch (_arg1.event){
case TFEvent.EVENT_MOUSECLICK:
dispatchHighScore();
break;
case TFEvent.EVENT_INIT:
break;
case TFEvent.EVENT_MOUSEOUT:
break;
case TFEvent.EVENT_MOUSEOVER:
break;
};
}
private function onEventPlay(_arg1:TFEvent){
switch (_arg1.event){
case TFEvent.EVENT_MOUSECLICK:
dispatchGame();
break;
};
}
private function onGameLoadFrame(){
var _local1:Class;
var _local2:BitmapData;
var _local3:Number;
stage.mcDialogDummy.enabled = false;
stage.mcDialogDummy.mouseEnabled = false;
stage.mcGoalReached.visible = false;
stage.mcGoalReached.enabled = false;
stage.mcGoalReached.mouseEnabled = false;
stage.mcGoalReached.mcGoal.enabled = false;
stage.mcGoalReached.mcGoal.mouseEnabled = false;
stage.mcGoalReached.mcGoalBlink.enabled = false;
stage.mcGoalReached.mcGoalBlink.mouseEnabled = false;
stage.mcDialogPause.enabled = false;
stage.mcDialogPause.mouseEnabled = false;
stage.mcDialogPause.visible = false;
stage.mcDialogPause.mcText.text = Global.xmlLocalization.pause.msg;
buttons["continue"] = new TFTextButton(stage.mcDialogPause.btnContinue, Global.xmlLocalization.pause.msgContinue, onEventPause);
buttons["continue"].setFxOver(Global.soundsFX["mouse_over"]);
buttons["continue"].setFxClick(Global.soundsFX["mouse_click"]);
buttons["continue"].setVertAlign(5, 57);
stage.mcLogo.gotoAndStop(Global.localization_branding_nr);
stage.mcLogo.mcHitArea.addEventListener(MouseEvent.CLICK, onMCClick, false, 0, true);
if (scenary == null){
_local1 = Global.main.getAsset(Levels.stages.stage[Levels.indexStage].scenary);
_local2 = new _local1(600, 450);
scenary = new Bitmap(_local2);
};
Global.main.mcBackground.addChild(scenary);
if (gamePlay == null){
_local3 = (Number(Levels.stages.stage[Levels.indexStage].levels.level[Levels.indexLevel].maxTimeCustomer) - Number(Levels.stages.stage[Levels.indexStage].levels.level[Levels.indexLevel].minTimeCustomer));
_local3 = (_local3 * 1000);
_local3 = (_local3 * Math.random());
_local3 = (_local3 + Number((Levels.stages.stage[Levels.indexStage].levels.level[Levels.indexLevel].minTimeCustomer * 1000)));
_local3 = Math.round(_local3);
gamePlay = new ManagerGamePlay(Levels.stages.stage[Levels.indexStage].levels.level[Levels.indexLevel].simultaneousClients, _local3, Levels.stages.stage[Levels.indexStage].levels.level[Levels.indexLevel].numberCustomer);
};
TFMovieClip.addLabelScript(stage, "game", null);
TFMovieClip.addLabelScript(stage, "finishGame", onFinishGameLoadFrame);
buttons["fx"] = new TFSwitchButton(stage.btnFX, onEventFXGame);
buttons["fx"].setFxOver(Global.soundsFX["mouse_over"]);
buttons["fx"].setFxClick(Global.soundsFX["mouse_click"]);
buttons["music"] = new TFSwitchButton(stage.btnMusic, onEventMusicGame);
buttons["music"].setFxOver(Global.soundsFX["mouse_over"]);
buttons["music"].setFxClick(Global.soundsFX["mouse_click"]);
if (Global.soundManager.getSFXVolume() == 0){
buttons["fx"].off();
};
if (Global.soundManager.getMusicVolume() == 0){
buttons["music"].off();
};
buttons["pause"] = new TFSwitchButton(stage.btnPause, onEventPause);
buttons["pause"].setFxOver(Global.soundsFX["mouse_over"]);
buttons["pause"].setFxClick(Global.soundsFX["mouse_click"]);
buttons["pause"].disable();
buttons["background"] = new TFButton(stage.mcBackground, onEventBackground);
}
private function onProgressLoadFrame(){
var _local1:Number;
TFMovieClip.addLabelScript(stage, "progress", null);
buttons["play"] = new TFTextButton(stage.btnPlay, Global.xmlLocalization.progress.play, onEventPlay);
buttons["play"].setFxOver(Global.soundsFX["mouse_over"]);
buttons["play"].setFxClick(Global.soundsFX["mouse_click"]);
buttons["fx"] = new TFSwitchButton(stage.btnProgressFX, onEventFX);
buttons["fx"].setFxOver(Global.soundsFX["mouse_over"]);
buttons["fx"].setFxClick(Global.soundsFX["mouse_click"]);
if (Global.soundManager.getSFXVolume() == 0){
buttons["fx"].off();
};
buttons["music"] = new TFSwitchButton(stage.btnProgressMusic, onEventMusic);
buttons["music"].setFxOver(Global.soundsFX["mouse_over"]);
buttons["music"].setFxClick(Global.soundsFX["mouse_click"]);
if (Global.soundManager.getMusicVolume() == 0){
buttons["music"].off();
};
Global.main.txtLife.text = ("x" + Global.life);
Global.main.mcTextCash.text = Global.xmlLocalization.progress.score;
Global.main.mcCash.text = String(Global.score);
Global.main.mcSpa2.visible = false;
Global.main.mcSpa3.visible = false;
Global.main.mcSpa4.visible = false;
Global.soundTrackMenu.play();
this.progressMainChar = new ProgressMainChar();
switch (Levels.indexStage){
case 3:
switch (Levels.indexLevel){
case 0:
this.progressMainChar.setCurrentNode(ProgressMainChar.STAGE3_PATHNODE);
this.progressMainChar.goto(ProgressMainChar.STAGE4_PATHNODE);
Global.main.mcMark41.gotoAndStop("current");
break;
case 1:
this.progressMainChar.setCurrentNode(ProgressMainChar.STAGE4_PATHNODE);
this.progressMainChar.action();
Global.main.mcMark42.gotoAndStop("current");
break;
case 2:
this.progressMainChar.setCurrentNode(ProgressMainChar.STAGE4_PATHNODE);
this.progressMainChar.action();
Global.main.mcMark43.gotoAndStop("current");
break;
case 3:
this.progressMainChar.setCurrentNode(ProgressMainChar.STAGE4_PATHNODE);
this.progressMainChar.action();
Global.main.mcMark44.gotoAndStop("current");
break;
case 4:
this.progressMainChar.setCurrentNode(ProgressMainChar.STAGE4_PATHNODE);
this.progressMainChar.action();
Global.main.mcMark45.gotoAndStop("current");
break;
case 5:
this.progressMainChar.setCurrentNode(ProgressMainChar.STAGE4_PATHNODE);
this.progressMainChar.action();
Global.main.mcMark46.gotoAndStop("current");
break;
case 6:
this.progressMainChar.setCurrentNode(ProgressMainChar.STAGE4_PATHNODE);
this.progressMainChar.action();
Global.main.mcMark47.gotoAndStop("current");
break;
};
break;
case 2:
switch (Levels.indexLevel){
case 0:
this.progressMainChar.setCurrentNode(ProgressMainChar.STAGE2_PATHNODE);
this.progressMainChar.goto(ProgressMainChar.STAGE3_PATHNODE);
Global.main.mcMark31.gotoAndStop("current");
break;
case 1:
this.progressMainChar.setCurrentNode(ProgressMainChar.STAGE3_PATHNODE);
this.progressMainChar.action();
Global.main.mcMark32.gotoAndStop("current");
break;
case 2:
this.progressMainChar.setCurrentNode(ProgressMainChar.STAGE3_PATHNODE);
this.progressMainChar.action();
Global.main.mcMark33.gotoAndStop("current");
break;
case 3:
this.progressMainChar.setCurrentNode(ProgressMainChar.STAGE3_PATHNODE);
this.progressMainChar.action();
Global.main.mcMark34.gotoAndStop("current");
break;
case 4:
this.progressMainChar.setCurrentNode(ProgressMainChar.STAGE3_PATHNODE);
this.progressMainChar.action();
Global.main.mcMark35.gotoAndStop("current");
break;
case 5:
this.progressMainChar.setCurrentNode(ProgressMainChar.STAGE3_PATHNODE);
this.progressMainChar.action();
Global.main.mcMark36.gotoAndStop("current");
break;
case 6:
this.progressMainChar.setCurrentNode(ProgressMainChar.STAGE3_PATHNODE);
this.progressMainChar.action();
Global.main.mcMark37.gotoAndStop("current");
break;
};
break;
case 1:
switch (Levels.indexLevel){
case 0:
this.progressMainChar.setCurrentNode(ProgressMainChar.STAGE1_PATHNODE);
this.progressMainChar.goto(ProgressMainChar.STAGE2_PATHNODE);
Global.main.mcMark21.gotoAndStop("current");
break;
case 1:
this.progressMainChar.setCurrentNode(ProgressMainChar.STAGE2_PATHNODE);
this.progressMainChar.action();
Global.main.mcMark22.gotoAndStop("current");
break;
case 2:
this.progressMainChar.setCurrentNode(ProgressMainChar.STAGE2_PATHNODE);
this.progressMainChar.action();
Global.main.mcMark23.gotoAndStop("current");
break;
case 3:
this.progressMainChar.setCurrentNode(ProgressMainChar.STAGE2_PATHNODE);
this.progressMainChar.action();
Global.main.mcMark24.gotoAndStop("current");
break;
case 4:
this.progressMainChar.setCurrentNode(ProgressMainChar.STAGE2_PATHNODE);
this.progressMainChar.action();
Global.main.mcMark25.gotoAndStop("current");
break;
case 5:
this.progressMainChar.setCurrentNode(ProgressMainChar.STAGE2_PATHNODE);
this.progressMainChar.action();
Global.main.mcMark26.gotoAndStop("current");
break;
case 6:
this.progressMainChar.setCurrentNode(ProgressMainChar.STAGE2_PATHNODE);
this.progressMainChar.action();
Global.main.mcMark27.gotoAndStop("current");
break;
};
break;
case 0:
this.progressMainChar.setCurrentNode(ProgressMainChar.STAGE1_PATHNODE);
this.progressMainChar.action();
switch (Levels.indexLevel){
case 0:
Global.main.mcMark11.gotoAndStop("current");
break;
case 1:
Global.main.mcMark12.gotoAndStop("current");
break;
case 2:
Global.main.mcMark13.gotoAndStop("current");
break;
case 3:
Global.main.mcMark14.gotoAndStop("current");
break;
case 4:
Global.main.mcMark15.gotoAndStop("current");
break;
case 5:
Global.main.mcMark16.gotoAndStop("current");
break;
case 6:
Global.main.mcMark17.gotoAndStop("current");
break;
};
break;
};
_local1 = Levels.indexLevel;
switch (Levels.indexStage){
case 3:
Global.main.mcSpa4.visible = true;
switch (_local1){
case 7:
Global.main.mcMark47.gotoAndStop("completed");
case 6:
Global.main.mcMark46.gotoAndStop("completed");
case 5:
Global.main.mcMark45.gotoAndStop("completed");
case 4:
Global.main.mcMark44.gotoAndStop("completed");
case 3:
Global.main.mcMark43.gotoAndStop("completed");
case 2:
Global.main.mcMark42.gotoAndStop("completed");
case 1:
Global.main.mcMark41.gotoAndStop("completed");
case 0:
_local1 = 7;
break;
};
case 2:
Global.main.mcSpa3.visible = true;
switch (_local1){
case 7:
Global.main.mcMark37.gotoAndStop("completed");
case 6:
Global.main.mcMark36.gotoAndStop("completed");
case 5:
Global.main.mcMark35.gotoAndStop("completed");
case 4:
Global.main.mcMark34.gotoAndStop("completed");
case 3:
Global.main.mcMark33.gotoAndStop("completed");
case 2:
Global.main.mcMark32.gotoAndStop("completed");
case 1:
Global.main.mcMark31.gotoAndStop("completed");
case 0:
_local1 = 7;
break;
};
case 1:
Global.main.mcSpa2.visible = true;
switch (_local1){
case 7:
Global.main.mcMark27.gotoAndStop("completed");
case 6:
Global.main.mcMark26.gotoAndStop("completed");
case 5:
Global.main.mcMark25.gotoAndStop("completed");
case 4:
Global.main.mcMark24.gotoAndStop("completed");
case 3:
Global.main.mcMark23.gotoAndStop("completed");
case 2:
Global.main.mcMark22.gotoAndStop("completed");
case 1:
Global.main.mcMark21.gotoAndStop("completed");
case 0:
_local1 = 7;
break;
};
case 0:
switch (_local1){
case 7:
Global.main.mcMark17.gotoAndStop("completed");
case 6:
Global.main.mcMark16.gotoAndStop("completed");
case 5:
Global.main.mcMark15.gotoAndStop("completed");
case 4:
Global.main.mcMark14.gotoAndStop("completed");
case 3:
Global.main.mcMark13.gotoAndStop("completed");
case 2:
Global.main.mcMark12.gotoAndStop("completed");
case 1:
Global.main.mcMark11.gotoAndStop("completed");
case 0:
break;
};
break;
};
}
private function stopHowToPlay(){
delete buttons["button1"];
buttons["button1"] = undefined;
delete buttons["button2"];
buttons["button2"] = undefined;
}
private function stopMainMenu(){
delete buttons["startgame"];
buttons["startgame"] = undefined;
delete buttons["howtoplay"];
buttons["howtoplay"] = undefined;
delete buttons["highscore"];
buttons["highscore"] = undefined;
delete buttons["freegames"];
buttons["freegames"] = undefined;
delete buttons["quality"];
buttons["quality"] = undefined;
delete buttons["fx"];
buttons["fx"] = undefined;
delete buttons["music"];
buttons["music"] = undefined;
if (stopSound){
Global.soundTrackMenu.stop();
};
}
private function onEventMainMenu(_arg1:TFEvent){
switch (_arg1.event){
case TFEvent.EVENT_MOUSECLICK:
dispatchMainMenu();
break;
};
}
public function dispatchHowToPlay(){
stopSound = false;
try {
return (stMachine.receiveEvent(EVENT_GO_TO_HOW_TO_PLAY));
} catch(e:Error) {
};
}
private function onHowToPlayLoadFrame(){
TFMovieClip.addLabelScript(stage, "howToPlay", null);
stage.mcTitle.mcText.text = Global.xmlLocalization.howToPlay.title;
stage.mcTitleBlink.mcText.text = Global.xmlLocalization.howToPlay.title;
}
private function startGameOver(){
stage.gotoAndPlay("gameOver");
TFMovieClip.addLabelScript(stage, "gameOver", onGameOverLoadFrame);
}
private function onEventMusic(_arg1:TFEvent){
switch (_arg1.event){
case TFEvent.EVENT_ON:
Global.soundManager.setMusicVolume(50);
break;
case TFEvent.EVENT_OFF:
Global.soundManager.setMusicVolume(0);
break;
};
}
public function process(_arg1:Object){
stMachine.process(_arg1);
}
private function onEventSubmit(_arg1:TFEvent){
var _local2:Object;
switch (_arg1.event){
case TFEvent.EVENT_MOUSECLICK:
if (stage.mcName.length){
_local2 = new Object();
_local2.name = stage.mcName.text;
_local2.score = Global.score;
Global.cookie.data.highScore.push(_local2);
Global.cookie.data.highScore.sortOn("score", (Array.NUMERIC | Array.DESCENDING));
if (Global.cookie.data.highScore.length > 9){
Global.cookie.data.highScore.splice(9, (Global.cookie.data.highScore.length - 8));
};
Global.cookie.flush();
Global.cash = 0;
Global.score = 0;
dispatchHighScore();
};
break;
};
}
private function startGame(){
stage.gotoAndPlay("game");
TFMovieClip.addLabelScript(stage, "game", onGameLoadFrame);
}
private function onButtonsVictoryLoadFrame(){
TFMovieClip.addLabelScript(this.stage, "buttons", null);
stage.mcPainel.mcLogo.gotoAndStop(Global.localization_branding_nr);
stage.mcPainel.mcLogo.mcHitArea.addEventListener(MouseEvent.CLICK, onMCClick, false, 0, true);
stage.mcPainel.mcTextScore.text = Global.xmlLocalization.victory.score;
stage.mcPainel.mcName.text = Global.xmlLocalization.sarah;
stage.mcPainel.mcTextName.text = Global.xmlLocalization.victory.name;
stage.mcPainel.mcScore.text = Global.score.toString();
buttons["moregames"] = new TFTextButton(stage.mcPainel.mcMore, Global.xmlLocalization.mainmenu.moregames, onEventMoreGames);
buttons["moregames"].setFxOver(Global.soundsFX["mouse_over"]);
buttons["moregames"].setFxClick(Global.soundsFX["mouse_click"]);
buttons["submit"] = new TFTextButton(stage.mcPainel.mcSubimit, Global.xmlLocalization.gameOver.submit, onEventSubmitVictory);
buttons["submit"].setFxOver(Global.soundsFX["mouse_over"]);
buttons["submit"].setFxClick(Global.soundsFX["mouse_click"]);
}
private function startProgressScreen(){
stage.gotoAndStop("progress");
TFMovieClip.addLabelScript(stage, "progress", onProgressLoadFrame);
}
private function startHowToPlay(){
stage.gotoAndPlay("howToPlay");
TFMovieClip.addLabelScript(stage, "howToPlay", onHowToPlayLoadFrame);
TFMovieClip.addLabelScript(stage, "initHowToPlay", onInitHowToPlayLoadFrame);
TFMovieClip.addLabelScript(stage, "page1", onHowToPlayPage1LoadFrame);
}
}
}//package classes.manager
Section 39
//balloon_201 (game_gamesgames_com_fla.balloon_201)
package game_gamesgames_com_fla {
import flash.display.*;
public dynamic class balloon_201 extends MovieClip {
public var mcDummy:MovieClip;
public function balloon_201(){
addFrameScript(8, frame9);
}
function frame9(){
stop();
}
}
}//package game_gamesgames_com_fla
Section 40
//bathtubHerb_68 (game_gamesgames_com_fla.bathtubHerb_68)
package game_gamesgames_com_fla {
import flash.display.*;
public dynamic class bathtubHerb_68 extends MovieClip {
public var mcQueue:MovieClip;
public var mcClock:MovieClip;
public var mcHitArea:MovieClip;
public var mcDummy:MovieClip;
public function bathtubHerb_68(){
addFrameScript(0, frame1, 8, frame9, 9, frame10, 47, frame48);
}
function frame10(){
stop();
}
function frame9(){
this.gotoAndPlay("busy");
}
function frame1(){
stop();
}
function frame48(){
stop();
}
}
}//package game_gamesgames_com_fla
Section 41
//bathtubHydro_63 (game_gamesgames_com_fla.bathtubHydro_63)
package game_gamesgames_com_fla {
import flash.display.*;
public dynamic class bathtubHydro_63 extends MovieClip {
public var mcQueue:MovieClip;
public var mcClock:MovieClip;
public var mcHitArea:MovieClip;
public var mcDummy:MovieClip;
public function bathtubHydro_63(){
addFrameScript(0, frame1, 10, frame11, 11, frame12, 49, frame50);
}
function frame12(){
stop();
}
function frame1(){
stop();
}
function frame11(){
this.gotoAndPlay("busy");
}
function frame50(){
stop();
}
}
}//package game_gamesgames_com_fla
Section 42
//bathtubIce_67 (game_gamesgames_com_fla.bathtubIce_67)
package game_gamesgames_com_fla {
import flash.display.*;
public dynamic class bathtubIce_67 extends MovieClip {
public var mcQueue:MovieClip;
public var mcClock:MovieClip;
public var mcHitArea:MovieClip;
public var mcDummy:MovieClip;
public function bathtubIce_67(){
addFrameScript(0, frame1, 16, frame17, 17, frame18, 55, frame56);
}
function frame18(){
stop();
}
function frame17(){
this.gotoAndPlay("busy");
}
function frame1(){
stop();
}
function frame56(){
stop();
}
}
}//package game_gamesgames_com_fla
Section 43
//bathtubOfuro_66 (game_gamesgames_com_fla.bathtubOfuro_66)
package game_gamesgames_com_fla {
import flash.display.*;
public dynamic class bathtubOfuro_66 extends MovieClip {
public var mcQueue:MovieClip;
public var mcClock:MovieClip;
public var mcHitArea:MovieClip;
public var mcDummy:MovieClip;
public function bathtubOfuro_66(){
addFrameScript(0, frame1, 15, frame16, 16, frame17, 54, frame55);
}
function frame16(){
this.gotoAndPlay("busy");
}
function frame17(){
stop();
}
function frame1(){
stop();
}
function frame55(){
stop();
}
}
}//package game_gamesgames_com_fla
Section 44
//branding_3 (game_gamesgames_com_fla.branding_3)
package game_gamesgames_com_fla {
import flash.display.*;
public dynamic class branding_3 extends MovieClip {
public var mcHitArea:MovieClip;
}
}//package game_gamesgames_com_fla
Section 45
//buttonFX_33 (game_gamesgames_com_fla.buttonFX_33)
package game_gamesgames_com_fla {
import flash.display.*;
public dynamic class buttonFX_33 extends MovieClip {
public var out:MovieClip;
public var down:MovieClip;
public var btnHitArea:SimpleButton;
public var over:MovieClip;
public function buttonFX_33(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package game_gamesgames_com_fla
Section 46
//buttonFX_ingame_115 (game_gamesgames_com_fla.buttonFX_ingame_115)
package game_gamesgames_com_fla {
import flash.display.*;
public dynamic class buttonFX_ingame_115 extends MovieClip {
public var out:MovieClip;
public var down:MovieClip;
public var btnHitArea:SimpleButton;
public var over:MovieClip;
public function buttonFX_ingame_115(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package game_gamesgames_com_fla
Section 47
//buttonMusic_40 (game_gamesgames_com_fla.buttonMusic_40)
package game_gamesgames_com_fla {
import flash.display.*;
public dynamic class buttonMusic_40 extends MovieClip {
public var out:MovieClip;
public var down:MovieClip;
public var btnHitArea:SimpleButton;
public var over:MovieClip;
public function buttonMusic_40(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package game_gamesgames_com_fla
Section 48
//buttonMusic_ingame_122 (game_gamesgames_com_fla.buttonMusic_ingame_122)
package game_gamesgames_com_fla {
import flash.display.*;
public dynamic class buttonMusic_ingame_122 extends MovieClip {
public var out:MovieClip;
public var down:MovieClip;
public var btnHitArea:SimpleButton;
public var over:MovieClip;
public function buttonMusic_ingame_122(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package game_gamesgames_com_fla
Section 49
//chairStation_60 (game_gamesgames_com_fla.chairStation_60)
package game_gamesgames_com_fla {
import flash.display.*;
public dynamic class chairStation_60 extends MovieClip {
public var mcHitArea:MovieClip;
public var mcDummy:MovieClip;
}
}//package game_gamesgames_com_fla
Section 50
//clock_57 (game_gamesgames_com_fla.clock_57)
package game_gamesgames_com_fla {
import flash.display.*;
public dynamic class clock_57 extends MovieClip {
public function clock_57(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8, 8, frame9);
}
function frame3(){
stop();
}
function frame6(){
stop();
}
function frame7(){
stop();
}
function frame1(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
function frame9(){
stop();
}
function frame8(){
stop();
}
function frame2(){
stop();
}
}
}//package game_gamesgames_com_fla
Section 51
//continuePause_138 (game_gamesgames_com_fla.continuePause_138)
package game_gamesgames_com_fla {
import flash.display.*;
public dynamic class continuePause_138 extends MovieClip {
public var out:MovieClip;
public var down:MovieClip;
public var btnHitArea:SimpleButton;
public var over:MovieClip;
}
}//package game_gamesgames_com_fla
Section 52
//continuePause_mouseon_140 (game_gamesgames_com_fla.continuePause_mouseon_140)
package game_gamesgames_com_fla {
import flash.display.*;
import flash.text.*;
public dynamic class continuePause_mouseon_140 extends MovieClip {
public var txtText:TextField;
}
}//package game_gamesgames_com_fla
Section 53
//continuePause_normal_139 (game_gamesgames_com_fla.continuePause_normal_139)
package game_gamesgames_com_fla {
import flash.display.*;
import flash.text.*;
public dynamic class continuePause_normal_139 extends MovieClip {
public var txtText:TextField;
}
}//package game_gamesgames_com_fla
Section 54
//customer1Body_232 (game_gamesgames_com_fla.customer1Body_232)
package game_gamesgames_com_fla {
import flash.display.*;
public dynamic class customer1Body_232 extends MovieClip {
public function customer1Body_232(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame4(){
stop();
}
function frame2(){
stop();
}
}
}//package game_gamesgames_com_fla
Section 55
//customer1Face_234 (game_gamesgames_com_fla.customer1Face_234)
package game_gamesgames_com_fla {
import flash.display.*;
public dynamic class customer1Face_234 extends MovieClip {
public function customer1Face_234(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 18, frame19);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame19(){
this.gotoAndPlay("stressed");
}
function frame4(){
stop();
}
function frame2(){
stop();
}
}
}//package game_gamesgames_com_fla
Section 56
//customer2Body_198 (game_gamesgames_com_fla.customer2Body_198)
package game_gamesgames_com_fla {
import flash.display.*;
public dynamic class customer2Body_198 extends MovieClip {
public function customer2Body_198(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame4(){
stop();
}
function frame2(){
stop();
}
}
}//package game_gamesgames_com_fla
Section 57
//customer2Face_200 (game_gamesgames_com_fla.customer2Face_200)
package game_gamesgames_com_fla {
import flash.display.*;
public dynamic class customer2Face_200 extends MovieClip {
public function customer2Face_200(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 18, frame19);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame19(){
this.gotoAndPlay("stressed");
}
function frame4(){
stop();
}
function frame2(){
stop();
}
}
}//package game_gamesgames_com_fla
Section 58
//customer3Body_206 (game_gamesgames_com_fla.customer3Body_206)
package game_gamesgames_com_fla {
import flash.display.*;
public dynamic class customer3Body_206 extends MovieClip {
public function customer3Body_206(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame4(){
stop();
}
function frame2(){
stop();
}
}
}//package game_gamesgames_com_fla
Section 59
//customer3Face_208 (game_gamesgames_com_fla.customer3Face_208)
package game_gamesgames_com_fla {
import flash.display.*;
public dynamic class customer3Face_208 extends MovieClip {
public function customer3Face_208(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 18, frame19);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame19(){
this.gotoAndPlay("stressed");
}
function frame4(){
stop();
}
function frame2(){
stop();
}
}
}//package game_gamesgames_com_fla
Section 60
//customer4Body_210 (game_gamesgames_com_fla.customer4Body_210)
package game_gamesgames_com_fla {
import flash.display.*;
public dynamic class customer4Body_210 extends MovieClip {
public function customer4Body_210(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame4(){
stop();
}
function frame2(){
stop();
}
}
}//package game_gamesgames_com_fla
Section 61
//customer4Face_212 (game_gamesgames_com_fla.customer4Face_212)
package game_gamesgames_com_fla {
import flash.display.*;
public dynamic class customer4Face_212 extends MovieClip {
public function customer4Face_212(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 18, frame19);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame19(){
this.gotoAndPlay("stressed");
}
function frame4(){
stop();
}
function frame2(){
stop();
}
}
}//package game_gamesgames_com_fla
Section 62
//customer5Body_214 (game_gamesgames_com_fla.customer5Body_214)
package game_gamesgames_com_fla {
import flash.display.*;
public dynamic class customer5Body_214 extends MovieClip {
public function customer5Body_214(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame4(){
stop();
}
function frame2(){
stop();
}
}
}//package game_gamesgames_com_fla
Section 63
//customer5Face_216 (game_gamesgames_com_fla.customer5Face_216)
package game_gamesgames_com_fla {
import flash.display.*;
public dynamic class customer5Face_216 extends MovieClip {
public function customer5Face_216(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 18, frame19);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame19(){
this.gotoAndPlay("stressed");
}
function frame4(){
stop();
}
function frame2(){
stop();
}
}
}//package game_gamesgames_com_fla
Section 64
//customer6Body_218 (game_gamesgames_com_fla.customer6Body_218)
package game_gamesgames_com_fla {
import flash.display.*;
public dynamic class customer6Body_218 extends MovieClip {
public function customer6Body_218(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame4(){
stop();
}
function frame2(){
stop();
}
}
}//package game_gamesgames_com_fla
Section 65
//customer6Face_220 (game_gamesgames_com_fla.customer6Face_220)
package game_gamesgames_com_fla {
import flash.display.*;
public dynamic class customer6Face_220 extends MovieClip {
public function customer6Face_220(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 18, frame19);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame19(){
this.gotoAndPlay("stressed");
}
function frame4(){
stop();
}
function frame2(){
stop();
}
}
}//package game_gamesgames_com_fla
Section 66
//customer7Body_222 (game_gamesgames_com_fla.customer7Body_222)
package game_gamesgames_com_fla {
import flash.display.*;
public dynamic class customer7Body_222 extends MovieClip {
public function customer7Body_222(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame4(){
stop();
}
function frame2(){
stop();
}
}
}//package game_gamesgames_com_fla
Section 67
//customer7Face_224 (game_gamesgames_com_fla.customer7Face_224)
package game_gamesgames_com_fla {
import flash.display.*;
public dynamic class customer7Face_224 extends MovieClip {
public function customer7Face_224(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 18, frame19);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame19(){
this.gotoAndPlay("stressed");
}
function frame4(){
stop();
}
function frame2(){
stop();
}
}
}//package game_gamesgames_com_fla
Section 68
//customer8Body_226 (game_gamesgames_com_fla.customer8Body_226)
package game_gamesgames_com_fla {
import flash.display.*;
public dynamic class customer8Body_226 extends MovieClip {
public function customer8Body_226(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame4(){
stop();
}
function frame2(){
stop();
}
}
}//package game_gamesgames_com_fla
Section 69
//customer8Face_229 (game_gamesgames_com_fla.customer8Face_229)
package game_gamesgames_com_fla {
import flash.display.*;
public dynamic class customer8Face_229 extends MovieClip {
public function customer8Face_229(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 18, frame19);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame19(){
this.gotoAndPlay("stressed");
}
function frame4(){
stop();
}
function frame2(){
stop();
}
}
}//package game_gamesgames_com_fla
Section 70
//customer8FaceWait_230 (game_gamesgames_com_fla.customer8FaceWait_230)
package game_gamesgames_com_fla {
import flash.display.*;
public dynamic class customer8FaceWait_230 extends MovieClip {
public function customer8FaceWait_230(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 18, frame19);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame19(){
this.gotoAndPlay("stressed");
}
function frame4(){
stop();
}
function frame2(){
stop();
}
}
}//package game_gamesgames_com_fla
Section 71
//gameover_161 (game_gamesgames_com_fla.gameover_161)
package game_gamesgames_com_fla {
import flash.display.*;
import flash.text.*;
public dynamic class gameover_161 extends MovieClip {
public var mcText:TextField;
}
}//package game_gamesgames_com_fla
Section 72
//gameoverBlink_162 (game_gamesgames_com_fla.gameoverBlink_162)
package game_gamesgames_com_fla {
import flash.display.*;
import flash.text.*;
public dynamic class gameoverBlink_162 extends MovieClip {
public var mcText:TextField;
}
}//package game_gamesgames_com_fla
Section 73
//garbagecanClean_110 (game_gamesgames_com_fla.garbagecanClean_110)
package game_gamesgames_com_fla {
import flash.display.*;
public dynamic class garbagecanClean_110 extends MovieClip {
public var mcQueue:MovieClip;
public var out:MovieClip;
public var over:MovieClip;
}
}//package game_gamesgames_com_fla
Section 74
//garbagecanCream_111 (game_gamesgames_com_fla.garbagecanCream_111)
package game_gamesgames_com_fla {
import flash.display.*;
public dynamic class garbagecanCream_111 extends MovieClip {
public var mcQueue:MovieClip;
public var out:MovieClip;
public var over:MovieClip;
}
}//package game_gamesgames_com_fla
Section 75
//garbagecanTowel_108 (game_gamesgames_com_fla.garbagecanTowel_108)
package game_gamesgames_com_fla {
import flash.display.*;
public dynamic class garbagecanTowel_108 extends MovieClip {
public var mcQueue:MovieClip;
public var out:MovieClip;
public var over:MovieClip;
}
}//package game_gamesgames_com_fla
Section 76
//goal_142 (game_gamesgames_com_fla.goal_142)
package game_gamesgames_com_fla {
import flash.display.*;
import flash.text.*;
public dynamic class goal_142 extends MovieClip {
public var mcText:TextField;
}
}//package game_gamesgames_com_fla
Section 77
//goalReached_141 (game_gamesgames_com_fla.goalReached_141)
package game_gamesgames_com_fla {
import flash.display.*;
public dynamic class goalReached_141 extends MovieClip {
public var mcGoalBlink:MovieClip;
public var mcGoal:MovieClip;
public function goalReached_141(){
addFrameScript(0, frame1, 74, frame75);
}
function frame75(){
this.gotoAndStop(1);
}
function frame1(){
stop();
this.visible = false;
}
}
}//package game_gamesgames_com_fla
Section 78
//goalreachedBlink_143 (game_gamesgames_com_fla.goalreachedBlink_143)
package game_gamesgames_com_fla {
import flash.display.*;
import flash.text.*;
public dynamic class goalreachedBlink_143 extends MovieClip {
public var mcText:TextField;
}
}//package game_gamesgames_com_fla
Section 79
//heart_169 (game_gamesgames_com_fla.heart_169)
package game_gamesgames_com_fla {
import flash.display.*;
public dynamic class heart_169 extends MovieClip {
public function heart_169(){
addFrameScript(0, frame1, 2, frame3, 15, frame16);
}
function frame3(){
this.gotoAndPlay("normal");
}
function frame16(){
this.gotoAndPlay("fast");
}
function frame1(){
stop();
}
}
}//package game_gamesgames_com_fla
Section 80
//highscore_189 (game_gamesgames_com_fla.highscore_189)
package game_gamesgames_com_fla {
import flash.display.*;
import flash.text.*;
public dynamic class highscore_189 extends MovieClip {
public var mcText:TextField;
}
}//package game_gamesgames_com_fla
Section 81
//highscoreBlink_190 (game_gamesgames_com_fla.highscoreBlink_190)
package game_gamesgames_com_fla {
import flash.display.*;
import flash.text.*;
public dynamic class highscoreBlink_190 extends MovieClip {
public var mcText:TextField;
}
}//package game_gamesgames_com_fla
Section 82
//Howtoplay_163 (game_gamesgames_com_fla.Howtoplay_163)
package game_gamesgames_com_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Howtoplay_163 extends MovieClip {
public var mcText:TextField;
}
}//package game_gamesgames_com_fla
Section 83
//Howtoplay_blink_164 (game_gamesgames_com_fla.Howtoplay_blink_164)
package game_gamesgames_com_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Howtoplay_blink_164 extends MovieClip {
public var mcText:TextField;
}
}//package game_gamesgames_com_fla
Section 84
//levelcomplete_194 (game_gamesgames_com_fla.levelcomplete_194)
package game_gamesgames_com_fla {
import flash.display.*;
import flash.text.*;
public dynamic class levelcomplete_194 extends MovieClip {
public var mcText:TextField;
}
}//package game_gamesgames_com_fla
Section 85
//levelcompleteBlink_195 (game_gamesgames_com_fla.levelcompleteBlink_195)
package game_gamesgames_com_fla {
import flash.display.*;
import flash.text.*;
public dynamic class levelcompleteBlink_195 extends MovieClip {
public var mcText:TextField;
}
}//package game_gamesgames_com_fla
Section 86
//m_button_mouseon_32 (game_gamesgames_com_fla.m_button_mouseon_32)
package game_gamesgames_com_fla {
import flash.display.*;
import flash.text.*;
public dynamic class m_button_mouseon_32 extends MovieClip {
public var txtText:TextField;
}
}//package game_gamesgames_com_fla
Section 87
//m_button_normal_31 (game_gamesgames_com_fla.m_button_normal_31)
package game_gamesgames_com_fla {
import flash.display.*;
import flash.text.*;
public dynamic class m_button_normal_31 extends MovieClip {
public var txtText:TextField;
}
}//package game_gamesgames_com_fla
Section 88
//markLevel_154 (game_gamesgames_com_fla.markLevel_154)
package game_gamesgames_com_fla {
import flash.display.*;
public dynamic class markLevel_154 extends MovieClip {
public function markLevel_154(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package game_gamesgames_com_fla
Section 89
//menuButton_30 (game_gamesgames_com_fla.menuButton_30)
package game_gamesgames_com_fla {
import flash.display.*;
public dynamic class menuButton_30 extends MovieClip {
public var out:MovieClip;
public var down:MovieClip;
public var btnHitArea:SimpleButton;
public var over:MovieClip;
}
}//package game_gamesgames_com_fla
Section 90
//newStage_144 (game_gamesgames_com_fla.newStage_144)
package game_gamesgames_com_fla {
import flash.display.*;
import flash.text.*;
public dynamic class newStage_144 extends MovieClip {
public var txtDialog:TextField;
public var mcGlow:MovieClip;
public var btnPlay:MovieClip;
}
}//package game_gamesgames_com_fla
Section 91
//newStation_152 (game_gamesgames_com_fla.newStation_152)
package game_gamesgames_com_fla {
import flash.display.*;
import flash.text.*;
public dynamic class newStation_152 extends MovieClip {
public var mcText:TextField;
}
}//package game_gamesgames_com_fla
Section 92
//newStationBlink_153 (game_gamesgames_com_fla.newStationBlink_153)
package game_gamesgames_com_fla {
import flash.display.*;
import flash.text.*;
public dynamic class newStationBlink_153 extends MovieClip {
public var mcText:TextField;
}
}//package game_gamesgames_com_fla
Section 93
//painelVictory_187 (game_gamesgames_com_fla.painelVictory_187)
package game_gamesgames_com_fla {
import flash.display.*;
import flash.text.*;
public dynamic class painelVictory_187 extends MovieClip {
public var mcMore:MovieClip;
public var mcTextName:TextField;
public var mcSubimit:MovieClip;
public var mcName:TextField;
public var mcLogo:MovieClip;
public var mcTextScore:TextField;
public var mcScore:TextField;
}
}//package game_gamesgames_com_fla
Section 94
//pauseButton_129 (game_gamesgames_com_fla.pauseButton_129)
package game_gamesgames_com_fla {
import flash.display.*;
public dynamic class pauseButton_129 extends MovieClip {
public var out:MovieClip;
public var down:MovieClip;
public var btnHitArea:SimpleButton;
public var over:MovieClip;
public function pauseButton_129(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package game_gamesgames_com_fla
Section 95
//pauseWindow_136 (game_gamesgames_com_fla.pauseWindow_136)
package game_gamesgames_com_fla {
import flash.display.*;
import flash.text.*;
public dynamic class pauseWindow_136 extends MovieClip {
public var mcText:TextField;
public var btnContinue:MovieClip;
}
}//package game_gamesgames_com_fla
Section 96
//play_button_mouseon_28 (game_gamesgames_com_fla.play_button_mouseon_28)
package game_gamesgames_com_fla {
import flash.display.*;
import flash.text.*;
public dynamic class play_button_mouseon_28 extends MovieClip {
public var txtText:TextField;
}
}//package game_gamesgames_com_fla
Section 97
//play_button_normal_27 (game_gamesgames_com_fla.play_button_normal_27)
package game_gamesgames_com_fla {
import flash.display.*;
import flash.text.*;
public dynamic class play_button_normal_27 extends MovieClip {
public var txtText:TextField;
}
}//package game_gamesgames_com_fla
Section 98
//playMenuButton_26 (game_gamesgames_com_fla.playMenuButton_26)
package game_gamesgames_com_fla {
import flash.display.*;
public dynamic class playMenuButton_26 extends MovieClip {
public var out:MovieClip;
public var down:MovieClip;
public var btnHitArea:SimpleButton;
public var over:MovieClip;
}
}//package game_gamesgames_com_fla
Section 99
//playProgressButton_156 (game_gamesgames_com_fla.playProgressButton_156)
package game_gamesgames_com_fla {
import flash.display.*;
public dynamic class playProgressButton_156 extends MovieClip {
public var out:MovieClip;
public var down:MovieClip;
public var btnHitArea:SimpleButton;
public var over:MovieClip;
}
}//package game_gamesgames_com_fla
Section 100
//playProgressButton_mouseon_158 (game_gamesgames_com_fla.playProgressButton_mouseon_158)
package game_gamesgames_com_fla {
import flash.display.*;
import flash.text.*;
public dynamic class playProgressButton_mouseon_158 extends MovieClip {
public var txtText:TextField;
}
}//package game_gamesgames_com_fla
Section 101
//playProgressButton_normal_157 (game_gamesgames_com_fla.playProgressButton_normal_157)
package game_gamesgames_com_fla {
import flash.display.*;
import flash.text.*;
public dynamic class playProgressButton_normal_157 extends MovieClip {
public var txtText:TextField;
}
}//package game_gamesgames_com_fla
Section 102
//queue_51 (game_gamesgames_com_fla.queue_51)
package game_gamesgames_com_fla {
import flash.display.*;
import flash.text.*;
public dynamic class queue_51 extends MovieClip {
public var mcText:TextField;
}
}//package game_gamesgames_com_fla
Section 103
//roomSauna_59 (game_gamesgames_com_fla.roomSauna_59)
package game_gamesgames_com_fla {
import flash.display.*;
public dynamic class roomSauna_59 extends MovieClip {
public var mcQueue:MovieClip;
public var mcClock:MovieClip;
public var mcHitArea:MovieClip;
public var mcDummy:MovieClip;
public function roomSauna_59(){
addFrameScript(0, frame1, 40, frame41, 65, frame66, 83, frame84);
}
function frame84(){
this.gotoAndStop("empty");
}
function frame1(){
stop();
}
function frame41(){
this.gotoAndPlay("busy");
}
function frame66(){
stop();
}
}
}//package game_gamesgames_com_fla
Section 104
//roomSwimming_54 (game_gamesgames_com_fla.roomSwimming_54)
package game_gamesgames_com_fla {
import flash.display.*;
public dynamic class roomSwimming_54 extends MovieClip {
public var mcQueue:MovieClip;
public var mcClock:MovieClip;
public var mcHitArea:MovieClip;
public var mcDummy:MovieClip;
public function roomSwimming_54(){
addFrameScript(0, frame1, 24, frame25, 49, frame50, 67, frame68);
}
function frame25(){
this.gotoAndPlay("busy");
}
function frame1(){
stop();
}
function frame50(){
stop();
}
function frame68(){
this.gotoAndStop("empty");
}
}
}//package game_gamesgames_com_fla
Section 105
//roomYoga_58 (game_gamesgames_com_fla.roomYoga_58)
package game_gamesgames_com_fla {
import flash.display.*;
public dynamic class roomYoga_58 extends MovieClip {
public var mcQueue:MovieClip;
public var mcClock:MovieClip;
public var mcHitArea:MovieClip;
public var mcDummy:MovieClip;
public function roomYoga_58(){
addFrameScript(0, frame1, 28, frame29, 53, frame54, 71, frame72);
}
function frame72(){
this.gotoAndStop("empty");
}
function frame29(){
this.gotoAndPlay("busy");
}
function frame1(){
stop();
}
function frame54(){
stop();
}
}
}//package game_gamesgames_com_fla
Section 106
//speechbubble_146 (game_gamesgames_com_fla.speechbubble_146)
package game_gamesgames_com_fla {
import flash.display.*;
public dynamic class speechbubble_146 extends MovieClip {
public var mcBody:MovieClip;
}
}//package game_gamesgames_com_fla
Section 107
//stationAcupunture_106 (game_gamesgames_com_fla.stationAcupunture_106)
package game_gamesgames_com_fla {
import flash.display.*;
public dynamic class stationAcupunture_106 extends MovieClip {
public var mcQueue:MovieClip;
public var mcClock:MovieClip;
public var mcHitArea:MovieClip;
public var mcBalloon:MovieClip;
public var mcDummy:MovieClip;
public function stationAcupunture_106(){
addFrameScript(0, frame1, 14, frame15);
}
function frame15(){
this.gotoAndPlay("busy");
}
function frame1(){
stop();
}
}
}//package game_gamesgames_com_fla
Section 108
//stationExfoliating_72 (game_gamesgames_com_fla.stationExfoliating_72)
package game_gamesgames_com_fla {
import flash.display.*;
public dynamic class stationExfoliating_72 extends MovieClip {
public var mcQueue:MovieClip;
public var mcClock:MovieClip;
public var mcHitArea:MovieClip;
public var mcBalloon:MovieClip;
public var mcDummy:MovieClip;
public function stationExfoliating_72(){
addFrameScript(0, frame1, 14, frame15);
}
function frame15(){
this.gotoAndPlay("busy");
}
function frame1(){
stop();
}
}
}//package game_gamesgames_com_fla
Section 109
//stationMassage_69 (game_gamesgames_com_fla.stationMassage_69)
package game_gamesgames_com_fla {
import flash.display.*;
public dynamic class stationMassage_69 extends MovieClip {
public var mcQueue:MovieClip;
public var mcClock:MovieClip;
public var mcHitArea:MovieClip;
public var mcBalloon:MovieClip;
public var mcDummy:MovieClip;
public function stationMassage_69(){
addFrameScript(0, frame1, 16, frame17);
}
function frame17(){
this.gotoAndPlay("busy");
}
function frame1(){
stop();
}
}
}//package game_gamesgames_com_fla
Section 110
//stationSolarium_107 (game_gamesgames_com_fla.stationSolarium_107)
package game_gamesgames_com_fla {
import flash.display.*;
public dynamic class stationSolarium_107 extends MovieClip {
public var mcQueue:MovieClip;
public var mcClock:MovieClip;
public var mcHitArea:MovieClip;
public var mcBalloon:MovieClip;
public var mcDummy:MovieClip;
public function stationSolarium_107(){
addFrameScript(0, frame1, 14, frame15);
}
function frame15(){
this.gotoAndPlay("busy");
}
function frame1(){
stop();
}
}
}//package game_gamesgames_com_fla
Section 111
//stationSolariumHowtoPlay_170 (game_gamesgames_com_fla.stationSolariumHowtoPlay_170)
package game_gamesgames_com_fla {
import flash.display.*;
public dynamic class stationSolariumHowtoPlay_170 extends MovieClip {
public var mcHitArea:MovieClip;
public var mcDummy:MovieClip;
public function stationSolariumHowtoPlay_170(){
addFrameScript(0, frame1, 14, frame15);
}
function frame15(){
this.gotoAndPlay("busy");
}
function frame1(){
stop();
}
}
}//package game_gamesgames_com_fla
Section 112
//stressMeter_168 (game_gamesgames_com_fla.stressMeter_168)
package game_gamesgames_com_fla {
import flash.display.*;
public dynamic class stressMeter_168 extends MovieClip {
public var mcHeart3:MovieClip;
public var mcHeart4:MovieClip;
public var mcHeart1:MovieClip;
public var mcHeart5:MovieClip;
public var mcHeart2:MovieClip;
}
}//package game_gamesgames_com_fla
Section 113
//suplyCream_53 (game_gamesgames_com_fla.suplyCream_53)
package game_gamesgames_com_fla {
import flash.display.*;
public dynamic class suplyCream_53 extends MovieClip {
public var mcQueue:MovieClip;
public var out:MovieClip;
public var over:MovieClip;
}
}//package game_gamesgames_com_fla
Section 114
//supplyClean_52 (game_gamesgames_com_fla.supplyClean_52)
package game_gamesgames_com_fla {
import flash.display.*;
public dynamic class supplyClean_52 extends MovieClip {
public var mcQueue:MovieClip;
public var out:MovieClip;
public var over:MovieClip;
}
}//package game_gamesgames_com_fla
Section 115
//supplyTowel_48 (game_gamesgames_com_fla.supplyTowel_48)
package game_gamesgames_com_fla {
import flash.display.*;
public dynamic class supplyTowel_48 extends MovieClip {
public var mcQueue:MovieClip;
public var out:MovieClip;
public var over:MovieClip;
}
}//package game_gamesgames_com_fla
Section 116
//Symbol1_1 (game_gamesgames_com_fla.Symbol1_1)
package game_gamesgames_com_fla {
import flash.display.*;
public dynamic class Symbol1_1 extends MovieClip {
public var mcMask:MovieClip;
}
}//package game_gamesgames_com_fla
Section 117
//txt_204 (game_gamesgames_com_fla.txt_204)
package game_gamesgames_com_fla {
import flash.display.*;
import flash.text.*;
public dynamic class txt_204 extends MovieClip {
public var mcText:TextField;
}
}//package game_gamesgames_com_fla
Section 118
//upgradeView_148 (game_gamesgames_com_fla.upgradeView_148)
package game_gamesgames_com_fla {
import flash.display.*;
public dynamic class upgradeView_148 extends MovieClip {
public var mcMsg:MovieClip;
public var mcMsgBlink:MovieClip;
public var mcStart:MovieClip;
public var mcBath1:MovieClip;
public var mcBath2:MovieClip;
public var mcBath3:MovieClip;
public var mcBath4:MovieClip;
public var mcRoom2:MovieClip;
public var mcRoom3:MovieClip;
public var mcRoom1:MovieClip;
public var mcTreatment1:MovieClip;
public var mcTreatment3:MovieClip;
public var mcTreatment4:MovieClip;
public var mcTreatment2:MovieClip;
public function upgradeView_148(){
addFrameScript(0, frame1, 69, frame70);
}
function frame70(){
stop();
}
function frame1(){
stop();
}
}
}//package game_gamesgames_com_fla
Section 119
//victory_185 (game_gamesgames_com_fla.victory_185)
package game_gamesgames_com_fla {
import flash.display.*;
import flash.text.*;
public dynamic class victory_185 extends MovieClip {
public var mcText:TextField;
}
}//package game_gamesgames_com_fla
Section 120
//victory_blink_186 (game_gamesgames_com_fla.victory_blink_186)
package game_gamesgames_com_fla {
import flash.display.*;
import flash.text.*;
public dynamic class victory_blink_186 extends MovieClip {
public var mcText:TextField;
}
}//package game_gamesgames_com_fla
Section 121
//background (background)
package {
import flash.display.*;
public dynamic class background extends BitmapData {
public function background(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 122
//background1 (background1)
package {
import flash.display.*;
public dynamic class background1 extends BitmapData {
public function background1(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 123
//background2 (background2)
package {
import flash.display.*;
public dynamic class background2 extends BitmapData {
public function background2(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 124
//background3 (background3)
package {
import flash.display.*;
public dynamic class background3 extends BitmapData {
public function background3(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 125
//bubblingWater (bubblingWater)
package {
import flash.media.*;
public dynamic class bubblingWater extends Sound {
}
}//package
Section 126
//cash (cash)
package {
import flash.display.*;
public dynamic class cash extends MovieClip {
}
}//package
Section 127
//cleaningStation (cleaningStation)
package {
import flash.media.*;
public dynamic class cleaningStation extends Sound {
}
}//package
Section 128
//clockTicking (clockTicking)
package {
import flash.media.*;
public dynamic class clockTicking extends Sound {
}
}//package
Section 129
//correctStation (correctStation)
package {
import flash.media.*;
public dynamic class correctStation extends Sound {
}
}//package
Section 130
//customer1 (customer1)
package {
import flash.display.*;
public dynamic class customer1 extends MovieClip {
public var mcFace:MovieClip;
public var mcBody:MovieClip;
public var mcNumber:MovieClip;
public var mcHead:MovieClip;
public var mcBalloon:MovieClip;
public var mcStressMeter:MovieClip;
public function customer1(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 131
//customer2 (customer2)
package {
import flash.display.*;
public dynamic class customer2 extends MovieClip {
public var mcFace:MovieClip;
public var mcBody:MovieClip;
public var mcNumber:MovieClip;
public var mcHead:MovieClip;
public var mcBalloon:MovieClip;
public var mcStressMeter:MovieClip;
public function customer2(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 132
//customer3 (customer3)
package {
import flash.display.*;
public dynamic class customer3 extends MovieClip {
public var mcFace:MovieClip;
public var mcBody:MovieClip;
public var mcNumber:MovieClip;
public var mcHead:MovieClip;
public var mcBalloon:MovieClip;
public var mcStressMeter:MovieClip;
public function customer3(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 133
//customer4 (customer4)
package {
import flash.display.*;
public dynamic class customer4 extends MovieClip {
public var mcFace:MovieClip;
public var mcBody:MovieClip;
public var mcNumber:MovieClip;
public var mcHead:MovieClip;
public var mcBalloon:MovieClip;
public var mcStressMeter:MovieClip;
public function customer4(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 134
//customer5 (customer5)
package {
import flash.display.*;
public dynamic class customer5 extends MovieClip {
public var mcFace:MovieClip;
public var mcBody:MovieClip;
public var mcNumber:MovieClip;
public var mcHead:MovieClip;
public var mcBalloon:MovieClip;
public var mcStressMeter:MovieClip;
public function customer5(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 135
//customer6 (customer6)
package {
import flash.display.*;
public dynamic class customer6 extends MovieClip {
public var mcFace:MovieClip;
public var mcBody:MovieClip;
public var mcNumber:MovieClip;
public var mcHead:MovieClip;
public var mcBalloon:MovieClip;
public var mcStressMeter:MovieClip;
public function customer6(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 136
//customer7 (customer7)
package {
import flash.display.*;
public dynamic class customer7 extends MovieClip {
public var mcFace:MovieClip;
public var mcBody:MovieClip;
public var mcNumber:MovieClip;
public var mcHead:MovieClip;
public var mcBalloon:MovieClip;
public var mcStressMeter:MovieClip;
public function customer7(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 137
//customer8 (customer8)
package {
import flash.display.*;
public dynamic class customer8 extends MovieClip {
public var mcFace:MovieClip;
public var mcHeadWait:MovieClip;
public var mcBody:MovieClip;
public var mcFaceWait:MovieClip;
public var mcNumber:MovieClip;
public var mcHead:MovieClip;
public var mcBalloon:MovieClip;
public var mcStressMeter:MovieClip;
public function customer8(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 138
//desire (desire)
package {
import flash.media.*;
public dynamic class desire extends Sound {
}
}//package
Section 139
//drag_customer (drag_customer)
package {
import flash.media.*;
public dynamic class drag_customer extends Sound {
}
}//package
Section 140
//endingTreatment (endingTreatment)
package {
import flash.media.*;
public dynamic class endingTreatment extends Sound {
}
}//package
Section 141
//exitCustomerAngry (exitCustomerAngry)
package {
import flash.media.*;
public dynamic class exitCustomerAngry extends Sound {
}
}//package
Section 142
//icon_acupuncture (icon_acupuncture)
package {
import flash.display.*;
public dynamic class icon_acupuncture extends BitmapData {
public function icon_acupuncture(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 143
//icon_cleaning (icon_cleaning)
package {
import flash.display.*;
public dynamic class icon_cleaning extends BitmapData {
public function icon_cleaning(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 144
//icon_cream (icon_cream)
package {
import flash.display.*;
public dynamic class icon_cream extends BitmapData {
public function icon_cream(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 145
//icon_herb (icon_herb)
package {
import flash.display.*;
public dynamic class icon_herb extends BitmapData {
public function icon_herb(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 146
//icon_hydro (icon_hydro)
package {
import flash.display.*;
public dynamic class icon_hydro extends BitmapData {
public function icon_hydro(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 147
//icon_ice (icon_ice)
package {
import flash.display.*;
public dynamic class icon_ice extends BitmapData {
public function icon_ice(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 148
//icon_massage (icon_massage)
package {
import flash.display.*;
public dynamic class icon_massage extends BitmapData {
public function icon_massage(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 149
//icon_ofuro (icon_ofuro)
package {
import flash.display.*;
public dynamic class icon_ofuro extends BitmapData {
public function icon_ofuro(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 150
//icon_sauna (icon_sauna)
package {
import flash.display.*;
public dynamic class icon_sauna extends BitmapData {
public function icon_sauna(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 151
//icon_scrub (icon_scrub)
package {
import flash.display.*;
public dynamic class icon_scrub extends BitmapData {
public function icon_scrub(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 152
//icon_solarium (icon_solarium)
package {
import flash.display.*;
public dynamic class icon_solarium extends BitmapData {
public function icon_solarium(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 153
//icon_swimming (icon_swimming)
package {
import flash.display.*;
public dynamic class icon_swimming extends BitmapData {
public function icon_swimming(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 154
//icon_towel (icon_towel)
package {
import flash.display.*;
public dynamic class icon_towel extends BitmapData {
public function icon_towel(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 155
//icon_yoga (icon_yoga)
package {
import flash.display.*;
public dynamic class icon_yoga extends BitmapData {
public function icon_yoga(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 156
//LEVEL_COMPLETE (LEVEL_COMPLETE)
package {
import flash.media.*;
public dynamic class LEVEL_COMPLETE extends Sound {
}
}//package
Section 157
//LEVEL_FAILED (LEVEL_FAILED)
package {
import flash.media.*;
public dynamic class LEVEL_FAILED extends Sound {
}
}//package
Section 158
//MAIN_SCREEN (MAIN_SCREEN)
package {
import flash.media.*;
public dynamic class MAIN_SCREEN extends Sound {
}
}//package
Section 159
//mainChar (mainChar)
package {
import flash.display.*;
public dynamic class mainChar extends MovieClip {
public var mcWest_hold2:MovieClip;
public var mcSouthWest_hold2:MovieClip;
public var mcNorthEast_hold1:MovieClip;
public var mcSouth_hold2:MovieClip;
public var mcSouth_hold1:MovieClip;
public var mcNorth:MovieClip;
public var mcNorth_hold1:MovieClip;
public var mcNorth_hold2:MovieClip;
public var mcNorthWest_hold1:MovieClip;
public var mcNorthWest_hold2:MovieClip;
public var mcSouthWest:MovieClip;
public var mcActionWest:MovieClip;
public var mcWaiting_hold2:MovieClip;
public var mcNorthEast_hold2:MovieClip;
public var mcNorthWest:MovieClip;
public var mcSouthEast:MovieClip;
public var mcWest:MovieClip;
public var mcActionEast:MovieClip;
public var mcActionPositive:MovieClip;
public var mcNorthEast:MovieClip;
public var mcEast:MovieClip;
public var mcActionNegative:MovieClip;
public var mcEast_hold1:MovieClip;
public var mcSouthEast_hold1:MovieClip;
public var mcSouthEast_hold2:MovieClip;
public var mcSouth:MovieClip;
public var mcWaiting:MovieClip;
public var mcEast_hold2:MovieClip;
public var mcWaiting_hold1:MovieClip;
public var mcSouthWest_hold1:MovieClip;
public var mcWest_hold1:MovieClip;
public function mainChar(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 160
//money (money)
package {
import flash.media.*;
public dynamic class money extends Sound {
}
}//package
Section 161
//mouse_click (mouse_click)
package {
import flash.media.*;
public dynamic class mouse_click extends Sound {
}
}//package
Section 162
//mouse_over (mouse_over)
package {
import flash.media.*;
public dynamic class mouse_over extends Sound {
}
}//package
Section 163
//mouseCursor (mouseCursor)
package {
import flash.display.*;
public dynamic class mouseCursor extends MovieClip {
public var mcDummy:MovieClip;
public var mcPointer:MovieClip;
public var mcDrag:MovieClip;
}
}//package
Section 164
//move_mainchar (move_mainchar)
package {
import flash.media.*;
public dynamic class move_mainchar extends Sound {
}
}//package
Section 165
//sauna (sauna)
package {
import flash.media.*;
public dynamic class sauna extends Sound {
}
}//package
Section 166
//scoreScreen (scoreScreen)
package {
import flash.display.*;
import flash.text.*;
public dynamic class scoreScreen extends MovieClip {
public var mcBgCompleted:MovieClip;
public var mcTitleBlink:MovieClip;
public var mcTextTotal:TextField;
public var mcBgFail:MovieClip;
public var mcTotal:TextField;
public var btnOk:MovieClip;
public var mcTitle:MovieClip;
public var mcTextLevel:TextField;
public var mcLevel:TextField;
}
}//package
Section 167
//swimming (swimming)
package {
import flash.media.*;
public dynamic class swimming extends Sound {
}
}//package
Section 168
//TRACK01_TROPICAL (TRACK01_TROPICAL)
package {
import flash.media.*;
public dynamic class TRACK01_TROPICAL extends Sound {
}
}//package
Section 169
//TRACK02_MOUNTAIN (TRACK02_MOUNTAIN)
package {
import flash.media.*;
public dynamic class TRACK02_MOUNTAIN extends Sound {
}
}//package
Section 170
//TRACK03_ORIENTAL (TRACK03_ORIENTAL)
package {
import flash.media.*;
public dynamic class TRACK03_ORIENTAL extends Sound {
}
}//package
Section 171
//TRACK04_ROMAN (TRACK04_ROMAN)
package {
import flash.media.*;
public dynamic class TRACK04_ROMAN extends Sound {
}
}//package
Section 172
//treatment (treatment)
package {
import flash.media.*;
public dynamic class treatment extends Sound {
}
}//package
Section 173
//victory (victory)
package {
import flash.media.*;
public dynamic class victory extends Sound {
}
}//package
Section 174
//wrongStation (wrongStation)
package {
import flash.media.*;
public dynamic class wrongStation extends Sound {
}
}//package
Section 175
//yoga (yoga)
package {
import flash.media.*;
public dynamic class yoga extends Sound {
}
}//package