Section 1
//Area (classes.game.Area)
package classes.game {
import flash.display.*;
import flash.events.*;
import classes.global.*;
import spil.Utils.*;
import spil.Mouse.*;
import flash.filters.*;
public class Area extends MovieClip {
protected var occuped:Boolean;
protected var lastStatePause:Array;
protected var tasksInCorrection:Task;
protected var maxMalfunction:int;
protected var paused:Boolean;
protected var working:Boolean;
protected var paramsArea:XML;
protected var ticksNotWork:int;
protected var visualIndications:Array;
protected var clientsFactor:int;
protected var paramsConfig:XML;
protected var tasks:Array;
protected var valueIncome:Number;
protected var paramsXML:ParamsXML;
protected var timerTime:Number;
protected var nameArea:String;
protected var malfuncs;
protected var charInCorrection:Members;
public function getName():String{
return (nameArea);
}
public function pauseAnimations(_arg1:Boolean):void{
}
public function getTimerTime():Number{
return (timerTime);
}
protected function initListeners():void{
this.hitArea.addEventListener(MouseEvent.MOUSE_OVER, onCharOver, false, 0, true);
this.hitArea.addEventListener(MouseEvent.MOUSE_OUT, onCharOut, false, 0, true);
this.hitArea.addEventListener(MouseEvent.MOUSE_UP, onCharUp, false, 0, true);
Global.main.addEventListener(MouseEvent.MOUSE_UP, onCharUpStage, false, 0, true);
}
public function atribMalFunction(_arg1:Number):void{
var _local2:int;
if (((working) && ((tasks.length > 0)))){
_local2 = int((Math.random() * tasks.length));
tasks[_local2].setMalFuncVal(_arg1);
working = !(tasks[_local2].isMalFunc());
};
}
public function executeCorrectionTask(_arg1:String, _arg2:String, _arg3:int):void{
var _local4:*;
var _local5:Number;
var _local6:Number;
var _local7:String;
var _local8:Number;
var _local9:Number;
var _local10:Sprite;
if (!working){
if (occuped){
_local4 = tasks.filter(isNotFunction);
_local5 = 0;
tasksInCorrection = _local4[0];
if (tasksInCorrection.getSkill() == "security"){
Global.soundsFX["Security"].play();
};
if (tasksInCorrection.getSkill() == "sound"){
Global.soundsFX["FixingSound"].play();
};
if (tasksInCorrection.getSkill() == "bartending"){
Global.soundsFX["Bartending"].play();
};
if (tasksInCorrection.getSkill() == "maintenance"){
Global.soundsFX["Maintenance"].play();
};
if ((((this.nameArea == "Bathroom")) && ((tasksInCorrection.getSkill() == "maintenance")))){
charInCorrection.flipHorizontal();
};
if ((((this.nameArea == "Bar")) && ((tasksInCorrection.getSkill() == "bartending")))){
charInCorrection.setPosition(0, 0);
charInCorrection.changeVisualState("inBar");
} else {
charInCorrection.changeVisualState(tasksInCorrection.getSkill());
};
setElementVisualState(tasksInCorrection.getSkill());
_local6 = tasksInCorrection.getExecTime();
_local7 = "";
if (_arg1.toLowerCase() == tasksInCorrection.getSkill()){
_local5 = (_local6 * Number(paramsConfig.performance_by_skill.skilled_factor.text()));
_local7 = "skilled";
} else {
if (_arg1 == "none"){
_local5 = (_local6 * Number(paramsConfig.performance_by_skill.none_factor.text()));
_local7 = "normal";
} else {
_local5 = (_local6 * Number(paramsConfig.performance_by_skill.unskilled_factor.text()));
_local7 = "unskilled";
};
};
_local8 = Global.energyMeter.returnEnergeticRate(_local7);
charInCorrection.setEnergeticStatus(Global.energyMeter.avalEnergeticStatus(charInCorrection.getEnergy(), charInCorrection.getEnergyMAX()));
if (charInCorrection.getEnergeticStatus() == "energetic"){
_local5 = (_local5 * Number(paramsConfig.performance_by_energy.energetic.text()));
};
if (charInCorrection.getEnergeticStatus() == "normal"){
_local5 = (_local5 * Number(paramsConfig.performance_by_energy.normal.text()));
};
if (charInCorrection.getEnergeticStatus() == "tired"){
_local5 = (_local5 * Number(paramsConfig.performance_by_energy.tired.text()));
};
_local9 = (charInCorrection.getEnergy() - (_local5 * _local8));
charInCorrection.setEnergy(_local9);
_local10 = malfuncs[tasksInCorrection.getSkill()];
this.removeChild(_local10);
tasksInCorrection.SetCorrecting(false);
_local10 = null;
timerTime = _local5;
};
} else {
charInCorrection.returnToStartLocation();
charInCorrection.changeVisualState("idle");
Global.main.addChild(charInCorrection.getVisualElement());
};
}
private function getTasksMalFunc():Array{
var _local1:Array;
var _local2:Task;
_local1 = new Array();
for each (_local2 in tasks) {
if (_local2.isMalFunc()){
_local1.push(_local2);
};
};
return (_local1);
}
public function removeListeners():void{
this.hitArea.removeEventListener(MouseEvent.MOUSE_OVER, onCharOver, false);
this.hitArea.removeEventListener(MouseEvent.MOUSE_OUT, onCharOut, false);
this.hitArea.removeEventListener(MouseEvent.MOUSE_UP, onCharUp, false);
Global.main.removeEventListener(MouseEvent.MOUSE_UP, onCharUpStage, false);
}
public function onCharOver(_arg1:MouseEvent):void{
var _local2:SpilDragMouse;
var _local3:GlowFilter;
var _local4:Array;
var _local5:ColorMatrixFilter;
_local2 = (Global.mouse as SpilDragMouse);
if (((!(_local2.isEmpty())) && (!(occuped)))){
_local3 = new GlowFilter(0xFFFF00, 1, 4, 4, 10, 3, false, false);
_local4 = [2.0646882, -0.3126222, -0.042066, 0, -45.085, -0.1583118, 1.9103778, -0.042066, 0, -45.085, -0.1583118, -0.3126222, 2.180934, 0, -45.085, 0, 0, 0, 1, 0];
_local5 = new ColorMatrixFilter(_local4);
if (_local2.containItem("SecurityGuard")){
this.filters = [_local3, _local5];
};
if (_local2.containItem("Soundman")){
this.filters = [_local3, _local5];
};
if (_local2.containItem("Barman")){
this.filters = [_local3, _local5];
};
if (_local2.containItem("Jackie")){
this.filters = [_local3, _local5];
};
if (_local2.containItem("MainChar")){
this.filters = [_local3, _local5];
};
} else {
this.filters = null;
};
}
public function onCharUp(_arg1:MouseEvent):void{
var _local2:int;
var _local3:int;
var _local4:SpilDragMouse;
var _local5:Members;
var _local6:SoundmanCrew;
var _local7:MovieClip;
var _local8:MovieClip;
var _local9:JackieCrew;
var _local10:MovieClip;
var _local11:MovieClip;
var _local12:BarmanCrew;
var _local13:MovieClip;
var _local14:MovieClip;
var _local15:SecurityCrew;
var _local16:MovieClip;
var _local17:MovieClip;
var _local18:MainCharacter;
var _local19:MovieClip;
var _local20:MovieClip;
var _local21:Boolean;
var _local22:MovieClip;
var _local23:MovieClip;
var _local24:MovieClip;
var _local25:MovieClip;
var _local26:MovieClip;
this.filters = null;
Global.soundsFX["DropCrewMember"].play();
_local2 = 0;
_local3 = 0;
if (nameArea.toLowerCase() == "bar"){
_local2 = 25;
_local3 = 106;
};
if (nameArea.toLowerCase() == "bathroom"){
_local2 = -4;
_local3 = 10;
};
if (nameArea.toLowerCase() == "sound table"){
_local2 = 85;
_local3 = 20;
};
if (nameArea.toLowerCase() == "stage"){
_local2 = 0;
_local3 = 15;
};
if (nameArea.toLowerCase() == "entrance & exit"){
_local2 = 140;
_local3 = -45;
};
if (nameArea.toLowerCase() == "crowd"){
_local2 = -20;
_local3 = 70;
};
_local4 = (Global.mouse as SpilDragMouse);
if (!occuped){
if (((((!(_local4.isEmpty())) && (!(working)))) && (!((nameArea == "Resting"))))){
if (_local4.containItem("Soundman")){
_local6 = SoundmanCrew(_local4.getDragItem("Soundman"));
charInCorrection = _local6;
if (!charInCorrection.isTired()){
occuped = true;
_local7 = _local4.removeDragItem("Soundman");
_local7 = null;
_local7 = _local6.getVisualElement();
_local7.x = _local2;
_local7.y = _local3;
this.addChild(_local7);
executeCorrectionTask(_local6.getSkill(), _local6.getUnSkill(), _local6.getEnergy());
} else {
_local8 = _local4.removeDragItem("Soundman");
_local8 = null;
occuped = false;
charInCorrection.returnToStartLocation();
charInCorrection.changeVisualState("idle");
Global.main.addChild(charInCorrection.getVisualElement());
};
};
if (_local4.containItem("Jackie")){
_local9 = JackieCrew(_local4.getDragItem("Jackie"));
charInCorrection = _local9;
if (!charInCorrection.isTired()){
occuped = true;
_local10 = _local4.removeDragItem("Jackie");
_local10 = null;
_local10 = _local9.getVisualElement();
_local10.x = _local2;
_local10.y = _local3;
this.addChild(_local10);
executeCorrectionTask(_local9.getSkill(), _local9.getUnSkill(), _local9.getEnergy());
} else {
_local11 = _local4.removeDragItem("Jackie");
_local11 = null;
occuped = false;
charInCorrection.returnToStartLocation();
charInCorrection.changeVisualState("idle");
Global.main.addChild(charInCorrection.getVisualElement());
};
};
if (_local4.containItem("Barman")){
_local12 = BarmanCrew(_local4.getDragItem("Barman"));
charInCorrection = _local12;
if (!charInCorrection.isTired()){
occuped = true;
_local13 = _local4.removeDragItem("Barman");
_local13 = null;
_local13 = _local12.getVisualElement();
_local13.x = _local2;
_local13.y = _local3;
this.addChild(_local13);
executeCorrectionTask(_local12.getSkill(), _local12.getUnSkill(), _local12.getEnergy());
} else {
_local14 = _local4.removeDragItem("Barman");
_local14 = null;
charInCorrection.returnToStartLocation();
charInCorrection.changeVisualState("idle");
Global.main.addChild(charInCorrection.getVisualElement());
};
};
if (_local4.containItem("SecurityGuard")){
_local15 = SecurityCrew(_local4.getDragItem("SecurityGuard"));
charInCorrection = _local15;
if (!charInCorrection.isTired()){
occuped = true;
_local16 = _local4.removeDragItem("SecurityGuard");
_local16 = null;
_local16 = _local15.getVisualElement();
_local16.x = _local2;
_local16.y = _local3;
this.addChild(_local16);
executeCorrectionTask(_local15.getSkill(), _local15.getUnSkill(), _local15.getEnergy());
} else {
_local17 = _local4.removeDragItem("SecurityGuard");
_local17 = null;
charInCorrection.returnToStartLocation();
charInCorrection.changeVisualState("idle");
Global.main.addChild(charInCorrection.getVisualElement());
};
};
if (_local4.containItem("MainChar")){
_local18 = MainCharacter(_local4.getDragItem("MainChar"));
charInCorrection = _local18;
if (!charInCorrection.isTired()){
occuped = true;
_local19 = _local4.removeDragItem("MainChar");
_local19 = null;
_local19 = _local18.getVisualElement();
_local19.x = _local2;
_local19.y = _local3;
this.addChild(_local19);
executeCorrectionTask(_local18.getSkill(), _local18.getUnSkill(), _local18.getEnergy());
} else {
_local20 = _local4.removeDragItem("MainChar");
_local20 = null;
charInCorrection.returnToStartLocation();
charInCorrection.changeVisualState("idle");
Global.main.addChild(charInCorrection.getVisualElement());
};
};
};
} else {
_local21 = false;
if (!_local4.isEmpty()){
if (_local4.containItem("MainChar")){
_local5 = MainCharacter(_local4.getDragItem("MainChar"));
_local22 = _local4.removeDragItem("MainChar");
_local22 = null;
_local21 = true;
};
if (_local4.containItem("SecurityGuard")){
_local5 = SecurityCrew(_local4.getDragItem("SecurityGuard"));
_local23 = _local4.removeDragItem("SecurityGuard");
_local23 = null;
_local21 = true;
};
if (_local4.containItem("Soundman")){
_local5 = SoundmanCrew(_local4.getDragItem("Soundman"));
_local24 = _local4.removeDragItem("Soundman");
_local24 = null;
_local21 = true;
};
if (_local4.containItem("Jackie")){
_local5 = JackieCrew(_local4.getDragItem("Jackie"));
_local25 = _local4.removeDragItem("Jackie");
_local25 = null;
_local21 = true;
};
if (_local4.containItem("Barman")){
_local5 = BarmanCrew(_local4.getDragItem("Barman"));
_local26 = _local4.removeDragItem("Barman");
_local26 = null;
_local21 = true;
};
if (_local21){
_local5.returnToStartLocation();
_local5.changeVisualState("idle");
Global.main.addChild(_local5.getVisualElement());
};
};
};
}
public function onCharOut(_arg1:MouseEvent):void{
this.filters = null;
}
override public function toString():String{
return (nameArea);
}
public function addTicksNotWork():void{
ticksNotWork++;
}
protected function checkIndicators(_arg1:int):void{
}
public function isOccuped():Boolean{
return (occuped);
}
public function checkTasksIndicators():void{
var _local1:Task;
for each (_local1 in tasks) {
checkIndicators(_local1.getMalFuncVal());
};
}
function isNotFunction(_arg1, _arg2:int, _arg3:Array):Boolean{
return ((_arg1.isMalFunc() == true));
}
public function setElementVisualState(_arg1:String):void{
return (this.gotoAndStop(_arg1));
}
public function getValueIncome():Number{
var _local1:Number;
_local1 = 0;
if (working){
_local1 = valueIncome;
ticksNotWork = 0;
} else {
_local1 = calculateNegVal();
};
return (_local1);
}
private function calculateNegVal():Number{
var _local1:Number;
_local1 = 0;
ticksNotWork++;
switch (ticksNotWork){
case 0:
_local1 = 0;
ticksNotWork = 0;
break;
case 1:
_local1 = valueIncome;
break;
case 2:
_local1 = (valueIncome - (valueIncome * Number(paramsConfig.amortizationFactor)));
break;
case 3:
case 4:
_local1 = (valueIncome - (2 * (valueIncome * Number(paramsConfig.amortizationFactor))));
break;
case 5:
case 6:
_local1 = (valueIncome - (3 * (valueIncome * Number(paramsConfig.amortizationFactor))));
break;
case 7:
case 8:
_local1 = (valueIncome - (4 * (valueIncome * Number(paramsConfig.amortizationFactor))));
break;
case 9:
case 10:
_local1 = 0;
break;
};
return (_local1);
}
public function onCharUpStage(_arg1:MouseEvent):void{
var _local2:SpilDragMouse;
var _local3:Boolean;
var _local4:Members;
var _local5:MovieClip;
var _local6:MovieClip;
var _local7:MovieClip;
var _local8:MovieClip;
var _local9:MovieClip;
_local2 = (Global.mouse as SpilDragMouse);
_local3 = false;
if (!_local2.isEmpty()){
if (_local2.containItem("MainChar")){
_local4 = MainCharacter(_local2.getDragItem("MainChar"));
_local5 = _local2.removeDragItem("MainChar");
_local5 = null;
_local3 = true;
};
if (_local2.containItem("SecurityGuard")){
_local4 = SecurityCrew(_local2.getDragItem("SecurityGuard"));
_local6 = _local2.removeDragItem("SecurityGuard");
_local6 = null;
_local3 = true;
};
if (_local2.containItem("Soundman")){
_local4 = SoundmanCrew(_local2.getDragItem("Soundman"));
_local7 = _local2.removeDragItem("Soundman");
_local7 = null;
_local3 = true;
};
if (_local2.containItem("Jackie")){
_local4 = JackieCrew(_local2.getDragItem("Jackie"));
_local8 = _local2.removeDragItem("Jackie");
_local8 = null;
_local3 = true;
};
if (_local2.containItem("Barman")){
_local4 = BarmanCrew(_local2.getDragItem("Barman"));
_local9 = _local2.removeDragItem("Barman");
_local9 = null;
_local3 = true;
};
if (_local3){
_local4.returnToStartLocation();
_local4.changeVisualState("idle");
Global.main.addChild(_local4.getVisualElement());
};
};
}
public function createTask(_arg1:String, _arg2:String, _arg3:int):void{
var _local4:Task;
_local4 = new Task(_arg1, _arg2, maxMalfunction, _arg3);
tasks.push(_local4);
}
public function getElementVisual(_arg1:int=0, _arg2:int=0):MovieClip{
this.x = _arg1;
this.y = _arg2;
return (this);
}
public function getClientFactor():int{
return (clientsFactor);
}
protected function checkExtraVisualMalfunc(_arg1:int, _arg2:String):void{
}
public function initArea():void{
maxMalfunction = 0;
working = true;
occuped = false;
valueIncome = 0;
timerTime = 0;
clientsFactor = 0;
ticksNotWork = 0;
paused = false;
paramsXML = new ParamsXML();
paramsConfig = paramsXML.getParamsGame();
paramsArea = paramsXML.getParamsCharsAreas();
this.hitArea = this;
}
public function stopMovieClip(_arg1:MovieClip):void{
var _local2:int;
var _local3:*;
_arg1.stop();
_local2 = 0;
while (_local2 < _arg1.numChildren) {
_local3 = _arg1.getChildAt(_local2);
if ((_local3 is MovieClip)){
stopMovieClip(_local3);
};
_local2++;
};
}
public function isWorking():Boolean{
return (working);
}
public function playMovieClip(_arg1:MovieClip):void{
var _local2:int;
var _local3:*;
_arg1.play();
_local2 = 0;
while (_local2 < _arg1.numChildren) {
_local3 = _arg1.getChildAt(_local2);
if ((_local3 is MovieClip)){
playMovieClip(_local3);
};
_local2++;
};
}
public function finishCorrection():void{
if (tasksInCorrection != null){
if (tasksInCorrection.getSkill() == "security"){
Global.soundsFX["Security"].stop();
};
if (tasksInCorrection.getSkill() == "sound"){
Global.soundsFX["FixingSound"].stop();
};
if (tasksInCorrection.getSkill() == "bartending"){
Global.soundsFX["Bartending"].stop();
};
if (tasksInCorrection.getSkill() == "maintenance"){
Global.soundsFX["Maintenance"].stop();
};
tasksInCorrection.resetMalFuncVal();
this.occuped = false;
working = true;
timerTime = 0;
charInCorrection.changeVisualState("idle");
charInCorrection.returnToStartLocation();
Global.main.addChild(charInCorrection.getVisualElement());
setElementVisualState("normal");
removeVisualMalFunc(tasksInCorrection.getSkill());
tasksInCorrection = null;
};
}
protected function removeVisualMalFunc(_arg1:String):void{
}
public function checkTasksMalFunc():void{
var _local1:Array;
var _local2:Sprite;
var _local3:Task;
_local1 = getTasksMalFunc();
if (((!((_local1 == []))) && (!(occuped)))){
for each (_local3 in _local1) {
if (!_local3.isCorrecting()){
_local2 = malfuncs[_local3.getSkill()];
SpilMovieClip.setMouseEnabled(_local2, false);
this.addChild(_local2);
checkExtraVisualMalfunc(_local3.getMalFuncVal(), _local3.getSkill());
_local3.SetCorrecting(true);
};
};
_local2 = null;
};
_local1 = null;
}
}
}//package classes.game
Section 2
//Bands (classes.game.Bands)
package classes.game {
import flash.display.*;
import classes.global.*;
public class Bands {
private var fans:int;
private var name:String;
private var bandVisual:Sprite;
private var costFactor:Number;
public function Bands(_arg1:String, _arg2:int, _arg3:Number){
var _local4:country_band;
var _local5:hiphop_band;
var _local6:rock_band;
super();
name = _arg1;
fans = _arg2;
costFactor = _arg3;
bandVisual = new Sprite();
if (_arg1.toLowerCase() == "country"){
_local4 = new country_band();
_local4.x = 0;
_local4.y = 0;
bandVisual.addChild(_local4);
};
if (_arg1.toLowerCase() == "hiphop"){
_local5 = new hiphop_band();
_local5.x = -40;
_local5.y = -5;
bandVisual.addChild(_local5);
};
if (_arg1.toLowerCase() == "rock"){
_local6 = new rock_band();
_local6.x = -70;
_local6.y = -15;
bandVisual.addChild(_local6);
};
}
public function setVisualBandPosition(_arg1:int, _arg2:int):void{
bandVisual.x = _arg1;
bandVisual.y = _arg2;
}
public function getNumsFans():int{
return (fans);
}
public function setcostFactor(_arg1:Number){
costFactor = _arg1;
}
public function getCost():Number{
return ((fans * costFactor));
}
public function setNumsFans(_arg1:int):void{
fans = _arg1;
}
public function getVisualBand():Sprite{
return (bandVisual);
}
public function updateFanBase():int{
fans = Global.clients;
return (fans);
}
public function getBandName():String{
return (name);
}
}
}//package classes.game
Section 3
//BarArea (classes.game.BarArea)
package classes.game {
import flash.display.*;
import spil.Utils.*;
public class BarArea extends Area {
private var states:Array;
private var decoBar:deco_bar;
private var mfi1:malfunc_bigline_bar;
private var light:lights_bar;
private var decoType:String;
private var barSP:MovieClip;
private var mf3:malfunc_sound;
private var mf2:malfunc_maintenance;
private var mf1:malfunc_bar;
private var ind:int;
private var st0:bar_0;
private var st1:bar_1;
private var st2:bar_2;
public function BarArea(_arg1:Number, _arg2:int, _arg3:int, _arg4:Array, _arg5:String){
super.initArea();
this.nameArea = "Bar";
this.maxMalfunction = _arg3;
this.valueIncome = _arg1;
this.clientsFactor = _arg2;
this.visualIndications = _arg4;
st0 = new bar_0();
st1 = new bar_1();
st2 = new bar_2();
mf1 = new malfunc_bar();
mf2 = new malfunc_maintenance();
mf3 = new malfunc_sound();
light = new lights_bar();
light.x = 0;
light.y = -40;
light.gotoAndStop(_arg5);
decoBar = new deco_bar();
decoBar.x = 0;
decoBar.y = 77;
decoBar.gotoAndStop(_arg5);
decoType = _arg5;
mfi1 = new malfunc_bigline_bar();
mfi1.x = 120;
mfi1.y = 87;
mf1.x = 40;
mf1.y = -10;
mf2.x = 45;
mf2.y = 55;
mf3.x = 25;
mf3.y = 130;
states = [st0, st1, st2];
malfuncs = {bartending:mf1, maintenance:mf2, sound:mf3};
this.tasks = new Array();
lastStatePause = new Array();
lastStatePause[0] = "normal";
lastStatePause[1] = "normal";
}
override public function pauseAnimations(_arg1:Boolean):void{
var _local2:MovieClip;
var _local3:MovieClip;
super.pauseAnimations(_arg1);
this.paused = _arg1;
if (_arg1){
this.stopMovieClip(mfi1);
mf1.stop();
mf2.stop();
mf3.stop();
_local2 = MovieClip(barSP.getChildAt(0));
this.stopMovieClip(_local2);
} else {
this.playMovieClip(mfi1);
mfi1.gotoAndStop(lastStatePause[1]);
mf1.play();
mf2.play();
mf3.play();
_local3 = MovieClip(barSP.getChildAt(0));
this.playMovieClip(_local3);
_local3.gotoAndStop(lastStatePause[0]);
};
}
override protected function removeVisualMalFunc(_arg1:String):void{
var _local2:MovieClip;
super.removeVisualMalFunc(_arg1);
_local2 = MovieClip(barSP.getChildAt(0));
_local2.gotoAndStop("normal");
lastStatePause[0] = "normal";
}
override protected function checkIndicators(_arg1:int):void{
super.checkIndicators(_arg1);
if (_arg1 < this.visualIndications[0]){
mfi1.gotoAndStop("normal");
lastStatePause[1] = "normal";
};
if ((((_arg1 >= this.visualIndications[0])) && ((_arg1 <= this.visualIndications[1])))){
mfi1.gotoAndStop("level1");
lastStatePause[1] = "level1";
};
if ((((_arg1 > this.visualIndications[1])) && ((_arg1 <= this.visualIndications[2])))){
mfi1.gotoAndStop("level2");
lastStatePause[1] = "level2";
};
if (_arg1 > this.visualIndications[2]){
mfi1.gotoAndStop("level3");
lastStatePause[1] = "level3";
};
}
public function initVisualBar(_arg1:int):void{
var _local2:MovieClip;
barSP = new MovieClip();
barSP.name = "barOBJVIS";
states[_arg1].name = "bar";
barSP.addChild(states[_arg1]);
barSP.addChild(decoBar);
initChairs(_arg1);
ind = _arg1;
barSP.addChild(light);
this.addChild(barSP);
this.addChild(mfi1);
SpilMovieClip.setMouseEnabled(this, false);
_local2 = new mcHitBar();
this.addChild(_local2);
this.hitArea = _local2;
this.initListeners();
}
private function initChairs(_arg1:int):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
if (_arg1 == 0){
_local2 = new bar_chairs_deco();
_local2.x = 62;
_local2.y = 130;
_local2.gotoAndStop(decoType);
barSP.addChild(_local2);
};
if (_arg1 == 1){
_local3 = new bar_chairs_deco();
_local4 = new bar_chairs_deco();
_local3.gotoAndStop(decoType);
_local4.gotoAndStop(decoType);
_local3.x = 81;
_local3.y = 100;
_local4.x = 62;
_local4.y = 130;
barSP.addChild(_local3);
barSP.addChild(_local4);
};
if (_arg1 == 2){
_local5 = new bar_chairs_deco();
_local6 = new bar_chairs_deco();
_local7 = new bar_chairs_deco();
_local5.gotoAndStop(decoType);
_local6.gotoAndStop(decoType);
_local7.gotoAndStop(decoType);
_local5.x = 62;
_local5.y = 130;
_local6.x = 81;
_local6.y = 100;
_local7.x = 93;
_local7.y = 64;
barSP.addChild(_local7);
barSP.addChild(_local6);
barSP.addChild(_local5);
};
}
override protected function checkExtraVisualMalfunc(_arg1:int, _arg2:String):void{
var _local3:MovieClip;
super.checkExtraVisualMalfunc(_arg1, _arg2);
if (_arg2 == "sound"){
_local3 = MovieClip(barSP.getChildAt(0));
_local3.gotoAndStop(_arg2);
lastStatePause[0] = "sound";
};
}
}
}//package classes.game
Section 4
//BarmanCrew (classes.game.BarmanCrew)
package classes.game {
import flash.events.*;
import flash.geom.*;
import classes.global.*;
import spil.Mouse.*;
public class BarmanCrew extends Members {
private var visualStates:BarmanMC;
public function BarmanCrew(_arg1:String, _arg2:String, _arg3:int, _arg4:int, _arg5:Boolean){
super.initMembers();
this.name = "Barman";
this.skilled = _arg1;
this.unskilled = _arg2;
this.energy = _arg3;
this.energyMax = _arg3;
this.price = _arg4;
this.hired = _arg5;
this.startingLocation = new Point();
visualStates = new BarmanMC();
}
public function initVisualBarMan(_arg1:String):void{
visualStates.gotoAndStop(_arg1);
super.initVisualElement(visualStates);
this.visualElement.addEventListener(MouseEvent.MOUSE_DOWN, onElementDown, false, 0, true);
}
public function onElementDown(_arg1:MouseEvent):void{
var _local2:SpilDragMouse;
_local2 = (Global.mouse as SpilDragMouse);
if (((((_local2.isEmpty()) && ((visualStatus == "idle")))) && (this.animation))){
this.visualElement.x = 0;
this.visualElement.y = 0;
this.changeVisualState("drag");
Global.soundsFX["PickCrewMember"].play();
_local2.addDragItem("Barman", this.getVisualElement(), this);
this.visualElement.removeEventListener(MouseEvent.MOUSE_DOWN, onElementDown);
};
}
override public function changeVisualState(_arg1:String):void{
super.changeVisualState(_arg1);
if (_arg1 == "idle"){
this.visualElement.addEventListener(MouseEvent.MOUSE_DOWN, onElementDown, false, 0, true);
};
}
}
}//package classes.game
Section 5
//BathroomArea (classes.game.BathroomArea)
package classes.game {
import flash.display.*;
public class BathroomArea extends Area {
private var states:Array;
private var mfi1:malfunc_bigline_bathroom;
private var bathSP:MovieClip;
private var mf1:malfunc_maintenance;
private var st0:bathroom_0;
private var st1:bathroom_1;
private var st2:bathroom_2;
public function BathroomArea(_arg1:Number, _arg2:int, _arg3:int, _arg4:Array, _arg5:String){
super.initArea();
this.nameArea = "Bathroom";
this.maxMalfunction = _arg3;
this.valueIncome = _arg1;
this.clientsFactor = _arg2;
this.visualIndications = _arg4;
st0 = new bathroom_0();
st1 = new bathroom_1();
st2 = new bathroom_2();
st0.gotoAndStop(_arg5);
st1.gotoAndStop(_arg5);
st2.gotoAndStop(_arg5);
mf1 = new malfunc_maintenance();
mf1.x = -55;
mf1.y = 5;
mfi1 = new malfunc_bigline_bathroom();
mfi1.x = 7;
mfi1.y = 129;
states = [st0, st1, st2];
malfuncs = {maintenance:mf1};
this.tasks = new Array();
lastStatePause = new Array();
}
override public function pauseAnimations(_arg1:Boolean):void{
super.pauseAnimations(_arg1);
this.paused = _arg1;
if (_arg1){
this.stopMovieClip(mfi1);
mf1.stop();
} else {
this.playMovieClip(mfi1);
mfi1.gotoAndStop(lastStatePause[0]);
mf1.play();
};
}
override protected function removeVisualMalFunc(_arg1:String):void{
super.removeVisualMalFunc(_arg1);
mfi1.gotoAndStop("level0");
}
public function initVisualBathroom(_arg1:int):void{
bathSP = new MovieClip();
bathSP.name = "bathroomOBJVIS";
bathSP.addChild(states[_arg1]);
this.initListeners();
this.addChild(bathSP);
this.addChild(mfi1);
}
override protected function checkIndicators(_arg1:int):void{
super.checkIndicators(_arg1);
if (_arg1 < this.visualIndications[0]){
mfi1.gotoAndStop("level0");
lastStatePause[0] = "level0";
};
if ((((_arg1 >= this.visualIndications[0])) && ((_arg1 <= this.visualIndications[1])))){
mfi1.gotoAndStop("level1");
lastStatePause[0] = "level1";
};
if ((((_arg1 > this.visualIndications[1])) && ((_arg1 <= this.visualIndications[2])))){
mfi1.gotoAndStop("level2");
lastStatePause[0] = "level2";
};
if (_arg1 > this.visualIndications[2]){
mfi1.gotoAndStop("level3");
lastStatePause[0] = "level3";
};
}
}
}//package classes.game
Section 6
//Character (classes.game.Character)
package classes.game {
import classes.global.*;
public class Character {
private var paramsxml:ParamsXML;
public function Character(){
paramsxml = new ParamsXML();
}
public function createBand(_arg1:String):Bands{
Global.bands[_arg1].setVisualBandPosition(235, 45);
return (Global.bands[_arg1]);
}
public function createMainChar():MainCharacter{
var _local1:XML;
var _local2:String;
var _local3:String;
var _local4:String;
var _local5:int;
var _local6:MainCharacter;
_local1 = paramsxml.getParamsChars();
_local2 = String(_local1.mainChar.name.text());
_local3 = String(_local1.mainChar.skilled.text());
_local4 = String(_local1.mainChar.unskilled.text());
_local5 = int(_local1.mainChar.energy.text());
_local6 = new MainCharacter(_local2, _local3, _local4, _local5);
_local6.initVisualMainChar("idle");
_local6.setStartLocation(366, 347);
_local6.setPosition(366, 347);
return (_local6);
}
public function createCrewMember(_arg1:int):Object{
var _name:String;
var charsParams:XML;
var skilled:String;
var unskilled:String;
var energy:int;
var cost:Number;
var member:Object;
var id = _arg1;
_name = "";
if (id == 0){
_name = "Security Guard";
};
if (id == 1){
_name = "Barman";
};
if (id == 2){
_name = "Soundman";
};
if (id == 3){
_name = "Jackie";
};
charsParams = paramsxml.getParamsChars();
skilled = charsParams..member.(name == _name)..skilled.text();
unskilled = charsParams..member.(name == _name)..unskilled.text();
energy = charsParams..member.(name == _name)..energy.text();
cost = charsParams..member.(name == _name)..cost.text();
if (_name.toLowerCase() == "security guard"){
member = new SecurityCrew(skilled, unskilled, energy, cost, true);
member.initVisualSec("idle");
member.setStartLocation(478, 348);
member.setPosition(478, 348);
};
if (_name.toLowerCase() == "jackie"){
member = new JackieCrew(skilled, unskilled, energy, cost, true);
member.initVisualJackie("idle");
member.setStartLocation(544, 352);
member.setPosition(544, 352);
};
if (_name.toLowerCase() == "barman"){
member = new BarmanCrew(skilled, unskilled, energy, cost, true);
member.initVisualBarMan("idle");
member.setStartLocation(306, 351);
member.setPosition(306, 351);
};
if (_name.toLowerCase() == "soundman"){
member = new SoundmanCrew(skilled, unskilled, energy, cost, true);
member.initVisualSoundMan("idle");
member.setStartLocation(421, 348);
member.setPosition(421, 348);
};
return (member);
}
}
}//package classes.game
Section 7
//CrowdArea (classes.game.CrowdArea)
package classes.game {
import flash.display.*;
import classes.global.*;
public class CrowdArea extends Area {
private var mfv:crowd_fight;
private var states:Array;
private var clientsadd:int;
private var numPeople:int;
private var mf2:malfunc_security;
private var crowdSP:MovieClip;
private var mf1:malfunc_bar;
private var st0:crowd;
public function CrowdArea(_arg1:Number, _arg2:int, _arg3:int, _arg4:Array){
super.initArea();
this.nameArea = "Crowd";
this.maxMalfunction = _arg3;
this.valueIncome = _arg1;
this.clientsFactor = _arg2;
this.visualIndications = _arg4;
numPeople = -1;
clientsadd = int(this.paramsConfig.crowdEncreaseFactor.text());
mf1 = new malfunc_bar();
mf2 = new malfunc_security();
mfv = new crowd_fight();
mf1.x = 60;
mf1.y = 15;
mf2.x = -30;
mf2.y = 10;
mfv.x = 15;
mfv.y = 0;
st0 = new crowd();
malfuncs = {bartending:mf1, security:mf2};
states = [st0];
this.tasks = new Array();
lastStatePause = new Array();
lastStatePause["crowd"] = "";
}
override public function pauseAnimations(_arg1:Boolean):void{
super.pauseAnimations(_arg1);
this.paused = _arg1;
if (_arg1){
mf1.stop();
mf2.stop();
mfv.stop();
this.stopMovieClip(states[0]);
} else {
mf1.play();
mf2.play();
mfv.play();
this.playMovieClip(states[0]);
states[0].gotoAndStop(lastStatePause["crowd"]);
};
}
public function initVisualCrowd(_arg1:int):void{
crowdSP = new MovieClip();
crowdSP.name = "crowdOBJVIS";
insertPeople(states[_arg1]);
crowdSP.addChild(states[_arg1]);
this.initListeners();
this.addChild(crowdSP);
}
private function insertPeople(_arg1:MovieClip):void{
var _local2:int;
_local2 = 0;
if (Global.clients > 0){
if (clientsadd > Global.clients){
_local2++;
} else {
_local2 = int((Global.clients / clientsadd));
};
numPeople = (numPeople + _local2);
if (16 >= numPeople){
_arg1.gotoAndStop(("people_" + numPeople));
};
lastStatePause["crowd"] = ("people_" + numPeople);
};
}
override protected function removeVisualMalFunc(_arg1:String):void{
if (_arg1 == "security"){
mfv.stop();
lastStatePause["malF"] = "";
Global.soundsFX["CrowdFighting"].stop();
if (this.getChildIndex(mfv) > 0){
this.removeChild(mfv);
};
};
super.removeVisualMalFunc(_arg1);
}
override protected function checkExtraVisualMalfunc(_arg1:int, _arg2:String):void{
if (_arg2 == "security"){
mfv.play();
Global.soundsFX["CrowdFighting"].play();
this.addChild(mfv);
lastStatePause["malFExt"] = "security";
};
super.checkExtraVisualMalfunc(_arg1, _arg2);
}
}
}//package classes.game
Section 8
//EnergyMeter (classes.game.EnergyMeter)
package classes.game {
import flash.display.*;
public class EnergyMeter {
private var facesNamesRanges:Array;
private var skillsRates:Array;
private var visualFace:Sprite;
public function EnergyMeter(){
facesNamesRanges = new Array();
skillsRates = new Array();
}
public function setFaceName_Range(_arg1:String, _arg2:int, _arg3:int){
var _local4:Object;
_local4 = new Object();
_local4.name = _arg1;
_local4.enMin = _arg2;
_local4.enMax = _arg3;
facesNamesRanges.push(_local4);
}
public function returnEnergeticRate(_arg1:String):Number{
var _local2:Number;
var _local3:Object;
_local2 = 0;
for each (_local3 in skillsRates) {
if (_local3.skill == _arg1){
_local2 = _local3.rate;
};
};
return (_local2);
}
public function avalEnergeticStatus(_arg1:Number, _arg2:Number):String{
var _local3:String;
var _local4:Number;
var _local5:Object;
_local3 = "";
_local4 = ((_arg1 / _arg2) * 100);
for each (_local5 in facesNamesRanges) {
if ((((_local4 >= _local5.enMin)) && ((_local4 <= _local5.enMax)))){
_local3 = _local5.name;
};
};
return (_local3);
}
public function setSkill_Rate(_arg1:String, _arg2:Number){
var _local3:Object;
_local3 = new Object();
_local3.skill = _arg1;
_local3.rate = _arg2;
skillsRates.push(_local3);
}
}
}//package classes.game
Section 9
//EntranceExitArea (classes.game.EntranceExitArea)
package classes.game {
import flash.display.*;
public class EntranceExitArea extends Area {
private var states:Array;
private var entryExitSP:MovieClip;
private var runawaysAR:Array;
private var runaways:int;
private var mf1:malfunc_security;
private var st0:entrance_exit;
public function EntranceExitArea(_arg1:Number, _arg2:int, _arg3:int, _arg4:Array, _arg5:String, _arg6:XMLList){
var _local7:XML;
super();
super.initArea();
this.nameArea = "Entrance & Exit";
this.working = true;
this.occuped = false;
this.valueIncome = _arg1;
runawaysAR = new Array();
this.maxMalfunction = _arg3;
this.clientsFactor = _arg2;
st0 = new entrance_exit();
st0.wall.gotoAndStop(_arg5);
mf1 = new malfunc_security();
mf1.x = 80;
mf1.y = -10;
states = [st0];
malfuncs = {security:mf1};
this.visualIndications = _arg4;
this.tasks = new Array();
for each (_local7 in _arg6.number) {
runawaysAR.push(int(_local7.text()));
};
}
public function initVisualEntryExit(_arg1:int):void{
entryExitSP = new MovieClip();
entryExitSP.name = "entryExitOBJVIS";
entryExitSP.addChild(states[_arg1]);
this.initListeners();
this.addChild(entryExitSP);
}
override protected function removeVisualMalFunc(_arg1:String):void{
var _local2:MovieClip;
super.removeVisualMalFunc(_arg1);
_local2 = MovieClip(entryExitSP.getChildAt(0));
_local2.gotoAndStop("normal");
}
public function getRunAways():int{
return (runaways);
}
override protected function checkIndicators(_arg1:int):void{
super.checkIndicators(_arg1);
if (_arg1 <= this.visualIndications[0]){
runaways = runawaysAR[0];
};
if ((((_arg1 > this.visualIndications[0])) && ((_arg1 <= this.visualIndications[1])))){
runaways = runawaysAR[1];
};
if (_arg1 > this.visualIndications[2]){
runaways = runawaysAR[2];
};
}
override protected function checkExtraVisualMalfunc(_arg1:int, _arg2:String):void{
var _local3:MovieClip;
super.checkExtraVisualMalfunc(_arg1, _arg2);
_local3 = MovieClip(entryExitSP.getChildAt(0));
_local3.gotoAndStop(_arg2);
}
}
}//package classes.game
Section 10
//JackieCrew (classes.game.JackieCrew)
package classes.game {
import flash.events.*;
import flash.geom.*;
import classes.global.*;
import spil.Mouse.*;
public class JackieCrew extends Members {
private var visualStates:JackieMC;
public function JackieCrew(_arg1:String, _arg2:String, _arg3:int, _arg4:int, _arg5:Boolean){
super.initMembers();
this.name = "Jackie";
this.skilled = _arg1;
this.unskilled = _arg2;
this.energy = _arg3;
this.energyMax = _arg3;
this.price = _arg4;
this.hired = _arg5;
this.startingLocation = new Point();
visualStates = new JackieMC();
}
public function initVisualJackie(_arg1:String):void{
visualStates.gotoAndStop(_arg1);
super.initVisualElement(visualStates);
this.visualElement.addEventListener(MouseEvent.MOUSE_DOWN, onElementDown, false, 0, true);
}
public function onElementDown(_arg1:MouseEvent):void{
var _local2:SpilDragMouse;
_local2 = (Global.mouse as SpilDragMouse);
if (((((_local2.isEmpty()) && ((visualStatus == "idle")))) && (this.animation))){
this.visualElement.x = 0;
this.visualElement.y = 0;
this.changeVisualState("drag");
Global.soundsFX["PickCrewMember"].play();
_local2.addDragItem("Jackie", this.getVisualElement(), this);
this.visualElement.removeEventListener(MouseEvent.MOUSE_DOWN, onElementDown);
};
}
override public function changeVisualState(_arg1:String):void{
if (_arg1 == "idle"){
this.visualElement.addEventListener(MouseEvent.MOUSE_DOWN, onElementDown, false, 0, true);
};
super.changeVisualState(_arg1);
}
}
}//package classes.game
Section 11
//MainCharacter (classes.game.MainCharacter)
package classes.game {
import flash.events.*;
import flash.geom.*;
import classes.global.*;
import spil.Mouse.*;
public class MainCharacter extends Members {
private var visualStates:MainMC;
public function MainCharacter(_arg1:String, _arg2:String, _arg3:String, _arg4:int){
super.initMembers();
this.name = _arg1;
this.skilled = _arg2;
this.unskilled = _arg3;
this.hired = true;
this.energy = _arg4;
this.energyMax = _arg4;
this.startingLocation = new Point();
visualStates = new MainMC();
}
public function initVisualMainChar(_arg1:String):void{
visualStates.gotoAndStop(_arg1);
super.initVisualElement(visualStates);
this.visualElement.addEventListener(MouseEvent.MOUSE_DOWN, onElementDown, false, 0, true);
}
public function onElementDown(_arg1:MouseEvent):void{
var _local2:SpilDragMouse;
_local2 = (Global.mouse as SpilDragMouse);
if (((((_local2.isEmpty()) && ((visualStatus == "idle")))) && (this.animation))){
this.visualElement.x = -15;
this.visualElement.y = 10;
this.changeVisualState("drag");
Global.soundsFX["PickCrewMember"].play();
_local2.addDragItem("MainChar", this.getVisualElement(), this);
this.visualElement.removeEventListener(MouseEvent.MOUSE_DOWN, onElementDown);
};
}
override public function changeVisualState(_arg1:String):void{
super.changeVisualState(_arg1);
if (_arg1 == "idle"){
this.visualElement.addEventListener(MouseEvent.MOUSE_DOWN, onElementDown, false, 0, true);
};
}
}
}//package classes.game
Section 12
//ManagerGamePlay (classes.game.ManagerGamePlay)
package classes.game {
import spil.Sound.*;
import flash.display.*;
import spil.Events.*;
import flash.text.*;
import classes.global.*;
import spil.Utils.*;
import spil.Mouse.*;
import spil.Button.*;
public class ManagerGamePlay {
private var showGoalReached:Boolean;
private var started:Boolean;
private var tickTime:int;
private var isShowScore:Boolean;
private var area:Array;
private var screens:MovieClip;
private var stillNeedWork:Boolean;
private var totalTicks:int;
private var fanBase:int;
var layer1:Sprite;
private var actualsProbs:int;
private var runaways:int;
var superiorHudButtons:Sprite;
private var areasIndexs:Array;
var layer2:Sprite;
var layer3:Sprite;
private var malfuncFacParam:Number;
private var malfuncInitFac:Number;
private var components:Character;
private var goalLevel:Number;
private var mainchair:MainCharacter;
private var band:Bands;
private var timeLevel:Number;
private var paramsXML:ParamsXML;
private var barArea:BarArea;
private var lastSecTime:int;
private var time:Number;
private var qntAreas:int;
private var restingArea:RestingArea;
private var simultProblems:int;
private var entryExitArea:EntranceExitArea;
private var scenary:Sprite;
private var clientsFac:int;
private var crowdArea:CrowdArea;
private var bathrooms:BathroomArea;
private var tempCountTick:int;
private var paramsConfig:XML;
private var valuesIncome:Number;
private var secondsTime:int;
private var Timers:Array;
private var areaStage:StageArea;
private var crewMembers:Array;
private var soundTable:SoundTableArea;
private static const POSITIONS:Object = {entryX:40, entryY:346, bathX:0x0202, bathY:54, zero:0, decoY:138, barY:170, restX:526, restY:0xFF, stageX:125, stageY:32, decoBarY:80};
public function ManagerGamePlay(_arg1:Array, _arg2:String, _arg3:Array, _arg4:Number, _arg5:int, _arg6:int, _arg7:int){
var buttons:Array;
var minutesi:int;
var secondsi:Number;
var timeStringi:String;
var format:TextFormat;
var superiorHudBackgr:Sprite;
var backgr:BackgroundScenary;
var hudMenu:MovieClip;
var id:int;
var item:Object;
var crewM:Members;
var valuesIncomeTemp:Number;
var areaInc:Area;
var baseincome:Number;
var iniarea:int;
var ax1:XML;
var indicators:Array;
var ax2:XML;
var indicators2:Array;
var ax4:XML;
var indicators3:Array;
var ax5:XML;
var indicators4:Array;
var ax6:XML;
var indicators1:Array;
var ax3:XML;
var charsIDs = _arg1;
var bandName = _arg2;
var areasNamesUps = _arg3;
var malfuncFac = _arg4;
var fans = _arg5;
var actTime = _arg6;
var _simultProblems = _arg7;
super();
time = 0;
secondsTime = 0;
Timers = new Array();
this.started = true;
isShowScore = false;
showGoalReached = false;
stillNeedWork = false;
fanBase = fans;
malfuncFacParam = malfuncFac;
paramsXML = new ParamsXML();
paramsConfig = paramsXML.getParamsGame();
timeLevel = int(Levels.stages.stage[Levels.indexStage].fases.fase[Levels.indexLevel].time);
totalTicks = Math.floor((int(timeLevel) / int(paramsConfig.tick_time.text())));
malfuncInitFac = Levels.stages.stage[Levels.indexStage].fases.fase[Levels.indexLevel].startProbFac;
valuesIncome = 0;
clientsFac = 0;
lastSecTime = 0;
actualsProbs = 0;
qntAreas = 0;
simultProblems = _simultProblems;
tickTime = 0;
tempCountTick = 0;
buttons = new Array();
areasIndexs = new Array();
minutesi = Math.floor((timeLevel / 60));
secondsi = timeLevel;
secondsi = (secondsi - (minutesi * 60));
timeStringi = ((minutesi + ":") + String((secondsi + 100)).substr(1, 2));
format = new TextFormat();
format.letterSpacing = 4;
Global.main.mcClock.mcTime.txtTime.setTextFormat(format);
Global.main.mcClock.mcTime.txtTime.text = timeStringi;
scenary = new Sprite();
layer1 = new Sprite();
layer2 = new Sprite();
layer3 = new Sprite();
superiorHudButtons = new Sprite();
SpilMovieClip.setMouseEnabled(layer1, false);
SpilMovieClip.setMouseEnabled(layer2, false);
SpilMovieClip.setMouseEnabled(layer3, false);
superiorHudBackgr = new Sprite();
backgr = new BackgroundScenary();
hudMenu = new hud();
backgr.x = POSITIONS.zero;
backgr.y = POSITIONS.zero;
hudMenu.x = POSITIONS.zero;
hudMenu.y = POSITIONS.zero;
backgr.gotoAndStop(bandName.toLowerCase());
hudMenu.gotoAndStop(bandName.toLowerCase());
superiorHudBackgr.addChild(hudMenu);
SpilMovieClip.setMouseEnabled(superiorHudBackgr, false);
superiorHudButtons.addChild(Global.main.btnPause);
superiorHudButtons.addChild(Global.main.mcGoal);
superiorHudButtons.addChild(Global.main.mcCashValue);
superiorHudButtons.addChild(Global.main.mcGoalValue);
superiorHudButtons.addChild(Global.main.mcClock);
superiorHudButtons.addChild(Global.main.txtLogo);
superiorHudButtons.addChild(Global.main.mcLogo);
scenary.addChild(superiorHudBackgr);
scenary.addChild(superiorHudButtons);
SpilMovieClip.setMouseEnabled(scenary, false);
SpilMovieClip.setMouseEnabled(backgr, false);
layer1.addChild(backgr);
area = new Array();
crewMembers = new Array();
components = new Character();
mainchair = components.createMainChar();
band = components.createBand(bandName);
for each (id in charsIDs) {
if (id > -1){
crewMembers.push(components.createCrewMember(id));
};
};
for each (item in areasNamesUps) {
if (item.name.toLowerCase() == "stage"){
areaStage = new StageArea(item.upgrade.value, item.upgrade.clients, item.upgrade.malfunction, bandName.toLowerCase());
areaStage.initVisualStage(item.upgrade.@type, band.getVisualBand());
for each (ax1 in item.tasks.task) {
areaStage.createTask(ax1.malfunction, ax1.skill, actTime);
};
area["stage"] = areaStage;
qntAreas++;
areasIndexs[0] = "stage";
Timers["stage"] = 0;
layer1.addChild(areaStage.getElementVisual(POSITIONS.stageX, POSITIONS.stageY));
};
if (item.name.toLowerCase() == "resting"){
restingArea = new RestingArea(item.upgrade.recoveryRate, bandName.toLowerCase());
restingArea.initVisualResting(item.upgrade.@type);
layer1.addChild(restingArea.getElementVisual(POSITIONS.restX, POSITIONS.restY));
Timers["resting"] = 0;
};
if (item.name.toLowerCase() == "bathroom"){
indicators = [int(item.upgrade.indicator.@level1), int(item.upgrade.indicator.@level2), int(item.upgrade.indicator.@level3)];
bathrooms = new BathroomArea(item.upgrade.value, item.upgrade.clients, item.upgrade.malfunction, indicators, bandName.toLowerCase());
bathrooms.initVisualBathroom(item.upgrade.@type);
for each (ax2 in item.tasks.task) {
bathrooms.createTask(ax2.malfunction, ax2.skill, actTime);
};
area["bathroom"] = bathrooms;
qntAreas++;
areasIndexs[1] = "bathroom";
Timers["bathroom"] = 0;
layer1.addChild(bathrooms.getElementVisual(POSITIONS.bathX, POSITIONS.bathY));
indicators = null;
};
if (item.name.toLowerCase() == "sound table"){
indicators2 = [int(item.upgrade.indicator.@level1), int(item.upgrade.indicator.@level2), int(item.upgrade.indicator.@level3)];
soundTable = new SoundTableArea(item.upgrade.value, item.upgrade.clients, item.upgrade.malfunction, indicators2, bandName.toLowerCase());
soundTable.initVisualSoundTable(item.upgrade.@type);
for each (ax4 in item.tasks.task) {
soundTable.createTask(ax4.malfunction, ax4.skill, actTime);
};
area["sound table"] = soundTable;
qntAreas++;
areasIndexs[5] = "sound table";
Timers["sound table"] = 0;
layer2.addChild(soundTable.getElementVisual(POSITIONS.zero, 100));
indicators2 = null;
ax4 = null;
};
if (item.name.toLowerCase() == "bar"){
indicators3 = [int(item.upgrade.indicator.@level1), int(item.upgrade.indicator.@level2), int(item.upgrade.indicator.@level3)];
barArea = new BarArea(item.upgrade.value, item.upgrade.clients, item.upgrade.malfunction, indicators3, bandName.toLowerCase());
barArea.initVisualBar(item.upgrade.@type);
for each (ax5 in item.tasks.task) {
barArea.createTask(ax5.malfunction, ax5.skill, actTime);
};
area["bar"] = barArea;
qntAreas++;
areasIndexs[2] = "bar";
Timers["bar"] = 0;
layer3.addChild(barArea.getElementVisual(POSITIONS.zero, POSITIONS.barY));
indicators3 = null;
ax5 = null;
};
if (item.name.toLowerCase() == "crowd"){
indicators4 = [int(item.upgrade.indicator.@level1), int(item.upgrade.indicator.@level2), int(item.upgrade.indicator.@level3)];
crowdArea = new CrowdArea(item.upgrade.value, item.upgrade.clients, item.upgrade.malfunction, indicators4);
crowdArea.initVisualCrowd(item.upgrade.@type);
for each (ax6 in item.tasks.task) {
crowdArea.createTask(ax6.malfunction, ax6.skill, actTime);
};
area["crowd"] = crowdArea;
qntAreas++;
areasIndexs[3] = "crowd";
Timers["crowd"] = 0;
layer1.addChild(crowdArea.getElementVisual(208, 152));
indicators4 = null;
};
if (item.name.toLowerCase() == "entrance & exit"){
indicators1 = [int(item.upgrade.indicator.@level1), int(item.upgrade.indicator.@level2), int(item.upgrade.indicator.@level3)];
entryExitArea = new EntranceExitArea(item.upgrade.value, item.upgrade.clients, item.upgrade.malfunction, indicators1, bandName.toLowerCase(), item.runaways);
entryExitArea.initVisualEntryExit(0);
for each (ax3 in item.tasks.task) {
entryExitArea.createTask(ax3.malfunction, ax3.skill, actTime);
};
area["entrance & exit"] = entryExitArea;
qntAreas++;
areasIndexs[4] = "entrance & exit";
Timers["entrance & exit"] = 0;
layer2.addChild(entryExitArea.getElementVisual(POSITIONS.entryX, POSITIONS.entryY));
indicators1 = null;
};
};
item = null;
layer1.x = 0;
layer1.y = 0;
layer2.x = 0;
layer2.y = 0;
layer3.x = 0;
layer3.y = 0;
Global.main.addChild(layer1);
Global.main.addChild(layer2);
Global.main.addChild(layer3);
for each (crewM in crewMembers) {
Global.main.addChild(crewM.getVisualElement());
};
Global.main.addChild(mainchair.getVisualElement());
Global.main.addChild(scenary);
Global.main.mcGoal.text = (Global.xmlLocalization.game.goal + " ");
Global.main.mcGoal.appendText(Global.xmlLocalization.symbol_cash);
setCashVisor("none");
switch (Global.bandOnStage){
case "rock":
Global.soundTrackRock.play();
break;
case "country":
Global.soundTrackCountry.play();
break;
case "hiphop":
Global.soundTrackHiphop.play();
break;
};
valuesIncomeTemp = 0;
for each (areaInc in area) {
clientsFac = (clientsFac + areaInc.getClientFactor());
valuesIncomeTemp = (valuesIncomeTemp + areaInc.getValueIncome());
};
Global.clients = (clientsFac + fanBase);
baseincome = (Global.clients * (1 + valuesIncomeTemp));
goalLevel = ((baseincome * timeLevel) * Levels.stages.stage[Levels.indexStage].fases.fase[Levels.indexLevel].goalPerc);
Global.main.mcGoalValue.text = String(int(goalLevel));
iniarea = 0;
while (iniarea < areasIndexs.length) {
areasIndexs.sort(function (_arg1, _arg2){
return (int((Math.random() * areasIndexs.length)));
});
area[areasIndexs[iniarea]].atribMalFunction(malfuncInitFac);
iniarea = (iniarea + 1);
};
}
private function stopMovieClip(_arg1:MovieClip):void{
var _local2:int;
var _local3:*;
_arg1.stop();
_local2 = 0;
while (_local2 < _arg1.numChildren) {
_local3 = _arg1.getChildAt(_local2);
if ((_local3 is MovieClip)){
stopMovieClip(_local3);
};
_local2++;
};
}
public function resume(_arg1:MovieClip):void{
var _local2:Area;
var _local3:int;
this.started = true;
for each (_local2 in area) {
_local2.pauseAnimations(false);
};
Global.main.mcCashValue.play();
Global.soundManager.pause();
Global.soundManager.resume();
_local3 = 0;
while (_local3 < crewMembers.length) {
crewMembers[_local3].setAnimation(true);
_local3++;
};
mainchair.setAnimation(true);
if (_arg1 != null){
Global.main.removeChild(_arg1);
};
}
private function onEventScoreScreenOK(_arg1:SpilEvent){
var _local2:MovieClip;
_local2 = MovieClip(_arg1.transport);
switch (_arg1.event){
case SpilEvent.EVENT_MOUSECLICK:
Global.main.removeChild(screens);
screens = null;
Global.manager.nextLevel();
break;
case SpilEvent.EVENT_MOUSEOUT:
_local2.over.gotoAndStop(2);
break;
case SpilEvent.EVENT_MOUSEOVER:
_local2.over.play();
break;
};
}
private function playMovieClip(_arg1:MovieClip):void{
var _local2:int;
var _local3:*;
_arg1.play();
_local2 = 0;
while (_local2 < _arg1.numChildren) {
_local3 = _arg1.getChildAt(_local2);
if ((_local3 is MovieClip)){
playMovieClip(_local3);
};
_local2++;
};
}
private function setCashVisor(_arg1:String):void{
if (_arg1 == "pos"){
Global.main.mcCashValue.mcCashPos.visible = true;
Global.main.mcCashValue.mcCashValuePos.visible = true;
Global.main.mcCashValue.mcCashNeg.visible = false;
Global.main.mcCashValue.mcCashValueNeg.visible = false;
Global.main.mcCashValue.mcCashNone.visible = false;
Global.main.mcCashValue.mcCashValueNone.visible = false;
Global.main.mcCashValue.mcCashPos.txtCash.text = (Global.xmlLocalization.game.cash + " ");
Global.main.mcCashValue.mcCashPos.txtCash.appendText(Global.xmlLocalization.symbol_cash);
Global.main.mcCashValue.mcCashValuePos.txtCashValue.text = String(Global.scoreLevel);
};
if (_arg1 == "neg"){
Global.main.mcCashValue.gotoAndPlay("prim");
SpilMovieClip.addLabelScript(Global.main.mcCashValue, "prim", loadNegVal);
};
if (_arg1 == "none"){
Global.main.mcCashValue.mcCashNone.visible = true;
Global.main.mcCashValue.mcCashValueNone.visible = true;
Global.main.mcCashValue.mcCashNeg.visible = false;
Global.main.mcCashValue.mcCashValueNeg.visible = false;
Global.main.mcCashValue.mcCashPos.visible = false;
Global.main.mcCashValue.mcCashValuePos.visible = false;
Global.main.mcCashValue.mcCashNone.txtCash.text = (Global.xmlLocalization.game.cash + " ");
Global.main.mcCashValue.mcCashNone.txtCash.appendText(Global.xmlLocalization.symbol_cash);
Global.main.mcCashValue.mcCashValueNone.txtCashValue.text = String(Global.scoreLevel);
};
}
public function getTime():Number{
return (time);
}
private function showScore():void{
var _local1:int;
var _local2:SpilDragMouse;
var _local3:int;
var _local4:SpilSound;
var _local5:int;
var _local6:MovieClip;
var _local7:MovieClip;
var _local8:MovieClip;
var _local9:MovieClip;
var _local10:MovieClip;
var _local11:MovieClip;
isShowScore = true;
_local1 = 0;
while (_local1 < crewMembers.length) {
crewMembers[_local1].setAnimation(false);
_local1++;
};
mainchair.setAnimation(false);
_local2 = (Global.mouse as SpilDragMouse);
if (!_local2.isEmpty()){
if (_local2.containItem("MainChar")){
_local6 = _local2.removeDragItem("MainChar");
_local6 = null;
};
if (_local2.containItem("SecurityGuard")){
_local7 = _local2.removeDragItem("SecurityGuard");
_local7 = null;
};
if (_local2.containItem("Soundman")){
_local8 = _local2.removeDragItem("Soundman");
_local8 = null;
};
if (_local2.containItem("Jackie")){
_local9 = _local2.removeDragItem("Jackie");
_local9 = null;
};
if (_local2.containItem("Barman")){
_local10 = _local2.removeDragItem("Barman");
_local10 = null;
};
if (_local2.containItem("can")){
_local11 = _local2.removeDragItem("can");
_local11 = null;
};
};
_local3 = int(Global.scoreLevel);
Global.score = (Global.score + _local3);
Global.cash = (Global.cash + Global.scoreLevel);
switch (Global.bandOnStage){
case "rock":
Global.soundTrackRock.stop();
break;
case "country":
Global.soundTrackCountry.stop();
break;
case "hiphop":
Global.soundTrackHiphop.stop();
break;
};
for each (_local4 in Global.soundsFX) {
_local4.stop();
};
if (Global.scoreLevel >= goalLevel){
screens = new levelCompletedScreen();
Global.soundLevelCompleted.play();
Global.failLevel = false;
screens.mcVictoryBallon.mcTitle.text = Global.xmlLocalization.scorescreen.levelcompleted;
screens.mcVictoryPanel.mcTextLevel.text = Global.xmlLocalization.scorescreen.levelscore;
screens.mcVictoryPanel.mcValueLevel.text = String(Global.scoreLevel);
screens.mcVictoryPanel.mcTextTotal.text = Global.xmlLocalization.scorescreen.totalscore;
screens.mcVictoryPanel.mcValueTotal.text = Global.score;
screens.ok = new SpilTextButton(screens.mcVictoryPanel.btnOk, Global.xmlLocalization.scorescreen.ok, onEventScoreScreenOK);
} else {
screens = new levelFailScreen();
Global.failLevel = true;
Global.soundLevelFail.play();
screens.mcFailBallon.mcTitle.text = Global.xmlLocalization.scorescreen.fail;
screens.ok = new SpilTextButton(screens.btnTryAgain, Global.xmlLocalization.scorescreen.tryagain, onEventScoreScreenOK);
};
Global.main.addChild(screens);
screens.ok.setFxOver(Global.soundsFX["mouse_over"]);
screens.ok.setFxClick(Global.soundsFX["mouse_click"]);
screens.play();
_local5 = 0;
while (_local5 < area.length) {
area[_local5].removeListeners();
_local5++;
};
restingArea.removeListeners();
}
public function process(_arg1:Object){
var malfuncFactor:Number;
var currentIncomeRate:Number;
var averageIncomeRate:Number;
var soundtW:Boolean;
var h:int;
var areaItem:Area;
var areaCalc:Area;
var timeavg:Number;
var max:int;
var ts:int;
var minutes:int;
var seconds:Number;
var timeString:String;
var p_transport = _arg1;
if (!this.started){
return;
};
malfuncFactor = 0;
currentIncomeRate = 0;
averageIncomeRate = 0;
time = (time + p_transport.time);
secondsTime = Math.floor((time * 0.001));
if ((((Global.scoreLevel >= goalLevel)) && (!(showGoalReached)))){
Global.main.addChild(Global.main.mcGoalReached);
SpilMovieClip.setMouseEnabled(Global.main.mcGoalReached, false);
Global.main.mcGoalReached.visible = true;
Global.main.mcGoalReached.gotoAndPlay("anima");
showGoalReached = true;
};
soundtW = true;
if (soundTable != null){
soundtW = soundTable.isWorking();
};
if (((((((((((areaStage.isWorking()) && (bathrooms.isWorking()))) && (entryExitArea.isWorking()))) && (soundtW))) && (crowdArea.isWorking()))) && (barArea.isWorking()))){
stillNeedWork = false;
} else {
stillNeedWork = true;
};
if (lastSecTime != secondsTime){
if ((timeLevel - 15) <= secondsTime){
Global.main.mcClock.gotoAndPlay("effect");
};
for each (areaItem in area) {
if (areaItem.isOccuped()){
Timers[areaItem.getName().toLowerCase()] = (Timers[areaItem.getName().toLowerCase()] + 1);
if ((((Timers[areaItem.getName().toLowerCase()] >= areaItem.getTimerTime())) && (this.started))){
Timers[areaItem.getName().toLowerCase()] = 0;
areaItem.finishCorrection();
};
};
};
if (restingArea.isOccuped()){
restingArea.updateCharge(Timers["resting"]);
if ((((((Timers["resting"] >= restingArea.getTimerTime())) && (!((restingArea.getTimerTime() == 0))))) && (this.started))){
Timers["resting"] = 0;
restingArea.updateCharge(-1);
restingArea.recharge();
};
Timers["resting"] = (Timers["resting"] + 1);
};
if (secondsTime < timeLevel){
if (tickTime == int(paramsConfig.tick_time.text())){
malfuncFactor = (Global.clients * malfuncFacParam);
actualsProbs = 0;
actualsProbs = (actualsProbs + (areaStage.isWorking()) ? 0 : 1);
actualsProbs = (actualsProbs + (bathrooms.isWorking()) ? 0 : 1);
actualsProbs = (actualsProbs + (entryExitArea.isWorking()) ? 0 : 1);
actualsProbs = (actualsProbs + (crowdArea.isWorking()) ? 0 : 1);
actualsProbs = (actualsProbs + (barArea.isWorking()) ? 0 : 1);
actualsProbs = (actualsProbs + (soundtW) ? 0 : 1);
if (simultProblems > actualsProbs){
max = ((simultProblems)<=qntAreas) ? (simultProblems - actualsProbs) : qntAreas;
areasIndexs.sort(function (_arg1, _arg2){
return (int((Math.random() * areasIndexs.length)));
});
ts = 0;
while (ts < max) {
area[areasIndexs[ts]].atribMalFunction(malfuncFactor);
ts = (ts + 1);
};
};
tickTime = 0;
tempCountTick++;
valuesIncome = 0;
for each (areaCalc in area) {
valuesIncome = (valuesIncome + areaCalc.getValueIncome());
areaCalc.checkTasksMalFunc();
areaCalc.checkTasksIndicators();
};
currentIncomeRate = ((int(paramsConfig.tick_time.text()) * Global.clients) * (1 + valuesIncome));
if (Global.scoreLevel >= 0){
Global.scoreLevel = (Global.scoreLevel + int(currentIncomeRate));
} else {
Global.scoreLevel = 0;
};
timeavg = (totalTicks - tempCountTick);
averageIncomeRate = ((goalLevel - Global.scoreLevel) / (timeavg - 1));
if (currentIncomeRate > averageIncomeRate){
setCashVisor("pos");
};
if (currentIncomeRate == averageIncomeRate){
setCashVisor("none");
};
if (currentIncomeRate < averageIncomeRate){
setCashVisor("neg");
};
};
};
tickTime++;
lastSecTime = secondsTime;
};
h = 0;
while (h < crewMembers.length) {
crewMembers[h].updateEnergyBar();
if (Global.callFrig){
restingArea.setRecharge();
restingArea.setRechargeTime();
Global.callFrig = false;
};
h = (h + 1);
};
mainchair.updateEnergyBar();
if (Global.callFrig){
restingArea.setRecharge();
restingArea.setRechargeTime();
Global.callFrig = false;
};
if (((((!(stillNeedWork)) && ((secondsTime > timeLevel)))) && (!(isShowScore)))){
showScore();
this.started = false;
return;
};
secondsTime = (timeLevel - secondsTime);
if (secondsTime >= 0){
minutes = Math.floor((secondsTime / 60));
seconds = secondsTime;
seconds = (seconds - (minutes * 60));
timeString = ((minutes + ":") + String((seconds + 100)).substr(1, 2));
Global.main.mcClock.mcTime.txtTime.text = timeString;
};
}
public function returnMouseElements():void{
var _local1:SpilDragMouse;
var _local2:Boolean;
var _local3:Members;
var _local4:MovieClip;
var _local5:MovieClip;
var _local6:MovieClip;
var _local7:MovieClip;
var _local8:MovieClip;
var _local9:MovieClip;
_local1 = (Global.mouse as SpilDragMouse);
_local2 = false;
if (!_local1.isEmpty()){
if (_local1.containItem("can")){
_local4 = _local1.removeDragItem("can");
_local4 = null;
restingArea.backState();
Global.callFrig = false;
};
if (_local1.containItem("MainChar")){
_local3 = MainCharacter(_local1.getDragItem("MainChar"));
_local5 = _local1.removeDragItem("MainChar");
_local5 = null;
_local2 = true;
};
if (_local1.containItem("SecurityGuard")){
_local3 = SecurityCrew(_local1.getDragItem("SecurityGuard"));
_local6 = _local1.removeDragItem("SecurityGuard");
_local6 = null;
_local2 = true;
};
if (_local1.containItem("Soundman")){
_local3 = SoundmanCrew(_local1.getDragItem("Soundman"));
_local7 = _local1.removeDragItem("Soundman");
_local7 = null;
_local2 = true;
};
if (_local1.containItem("Jackie")){
_local3 = JackieCrew(_local1.getDragItem("Jackie"));
_local8 = _local1.removeDragItem("Jackie");
_local8 = null;
_local2 = true;
};
if (_local1.containItem("Barman")){
_local3 = BarmanCrew(_local1.getDragItem("Barman"));
_local9 = _local1.removeDragItem("Barman");
_local9 = null;
_local2 = true;
};
if (_local2){
_local3.returnToStartLocation();
_local3.changeVisualState("idle");
Global.main.addChildAt(_local3.getVisualElement(), (Global.main.numChildren - 1));
};
};
}
private function loadNegVal():void{
SpilMovieClip.addLabelScript(Global.main.mcCashValue, "prim", null);
Global.main.mcCashValue.mcCashNeg.visible = true;
Global.main.mcCashValue.mcCashValueNeg.visible = true;
Global.main.mcCashValue.mcCashPos.visible = false;
Global.main.mcCashValue.mcCashValuePos.visible = false;
Global.main.mcCashValue.mcCashNone.visible = false;
Global.main.mcCashValue.mcCashValueNone.visible = false;
Global.main.mcCashValue.mcCashNeg.mcTxtBlack.txtCashBlack.text = (Global.xmlLocalization.game.cash + " ");
Global.main.mcCashValue.mcCashNeg.mcTxtBlack.txtCashBlack.appendText(Global.xmlLocalization.symbol_cash);
Global.main.mcCashValue.mcCashNeg.mcTxtRed.txtCashRed.text = (Global.xmlLocalization.game.cash + " ");
Global.main.mcCashValue.mcCashNeg.mcTxtRed.txtCashRed.appendText(Global.xmlLocalization.symbol_cash);
Global.main.mcCashValue.mcCashValueNeg.txtCashValue.text = String(Global.scoreLevel);
}
public function pause(_arg1:MovieClip):void{
var _local2:Area;
var _local3:int;
this.started = false;
for each (_local2 in area) {
_local2.pauseAnimations(true);
};
Global.main.mcCashValue.stop();
Global.soundManager.pause();
Global.soundsFX["mouse_click"].resume();
Global.soundsFX["mouse_over"].resume();
Global.soundsFX["mouse_over2"].resume();
Global.soundsFX["mouse_over3"].resume();
Global.soundsFX["mouse_over4"].resume();
_local3 = 0;
while (_local3 < crewMembers.length) {
crewMembers[_local3].setAnimation(false);
_local3++;
};
mainchair.setAnimation(false);
if (_arg1 != null){
Global.main.addChild(_arg1);
};
returnMouseElements();
}
}
}//package classes.game
Section 13
//Members (classes.game.Members)
package classes.game {
import flash.display.*;
import flash.events.*;
import fl.motion.*;
import flash.geom.*;
import classes.global.*;
import spil.Mouse.*;
import flash.filters.*;
public class Members {
protected var animation:Boolean;
protected var energy:int;
protected var name:String;
protected var rechargeable:Boolean;
protected var startingLocation:Point;
protected var visualElement:MovieClip;
protected var lastenergy:int;
protected var skilled:String;
protected var energeticStatus:String;
protected var completeTired:Boolean;
protected var price:int;
protected var energyMax:int;
protected var visualStatus:String;
private var tintEffect:Color;
protected var hired:Boolean;
protected var unskilled:String;
public function getUnSkill():String{
return (unskilled);
}
public function setEnergy(_arg1:Number):void{
var _local2:Number;
_local2 = _arg1;
if (_local2 > 0){
energy = _arg1;
} else {
energy = 0;
};
}
public function getEnergyMAX():Number{
return (energyMax);
}
public function onElementOver(_arg1:MouseEvent):void{
var _local2:SpilDragMouse;
var _local3:GlowFilter;
var _local4:GlowFilter;
var _local5:Array;
var _local6:ColorMatrixFilter;
_local2 = (Global.mouse as SpilDragMouse);
if (((_local2.isEmpty()) && ((visualStatus == "idle")))){
_local3 = new GlowFilter(0xFFFFFF, 1, 4, 4, 10, 3, false, false);
visualElement.filters = [_local3];
};
if (((!(_local2.isEmpty())) && (_local2.containItem("can")))){
_local4 = new GlowFilter(0xFFFF00, 1, 4, 4, 10, 3, false, false);
_local5 = [2.0646882, -0.3126222, -0.042066, 0, -45.085, -0.1583118, 1.9103778, -0.042066, 0, -45.085, -0.1583118, -0.3126222, 2.180934, 0, -45.085, 0, 0, 0, 1, 0];
_local6 = new ColorMatrixFilter(_local5);
visualElement.filters = [_local4, _local6];
};
}
public function getPrice():Number{
return (price);
}
public function onElementUp(_arg1:MouseEvent):void{
var _local2:SpilDragMouse;
var _local3:MovieClip;
_local2 = (Global.mouse as SpilDragMouse);
if (((!(_local2.isEmpty())) && (_local2.containItem("can")))){
_local3 = _local2.removeDragItem("can");
_local3 = null;
Global.callFrig = true;
if (energy != energyMax){
setEnergy(energyMax);
setEnergeticStatus("energetic");
setTired(false);
};
};
}
public function getSkill():String{
return (skilled);
}
public function updateEnergyBar():void{
var _local1:Number;
var _local2:int;
var _local3:String;
_local1 = (energyMax / 34);
_local2 = (int(((energyMax - energy) / _local1)) + 1);
visualElement.energyMeter.indicator.y = (_local2 + 6);
if (energy <= energyMax){
rechargeable = true;
_local3 = Global.energyMeter.avalEnergeticStatus(energy, energyMax);
if (_local3 == "energetic"){
tintEffect.setTint(0xFF00, 1);
};
if (_local3 == "normal"){
tintEffect.setTint(0xFFFF00, 1);
};
if (_local3 == "tired"){
tintEffect.setTint(0xFF0000, 1);
};
} else {
tintEffect.setTint(0xFF0000, 1);
rechargeable = false;
};
if (energy <= 0){
completeTired = true;
};
visualElement.energyMeter.indicator.transform.colorTransform = tintEffect;
}
public function setPosition(_arg1:int, _arg2:int):void{
visualElement.x = _arg1;
visualElement.y = _arg2;
}
public function returnToStartLocation():void{
visualElement.x = startingLocation.x;
visualElement.y = startingLocation.y;
}
public function setHired(_arg1:Boolean){
hired = _arg1;
}
public function setTired(_arg1:Boolean):void{
completeTired = _arg1;
}
public function getMemberName():String{
return (name);
}
public function setAnimation(_arg1:Boolean):void{
animation = _arg1;
if (!_arg1){
visualElement.gotoAndStop("paused");
} else {
visualElement.gotoAndStop(visualStatus);
};
}
public function setVisualStatus(_arg1:String):void{
visualStatus = _arg1;
}
public function isRechargeable():Boolean{
return (rechargeable);
}
public function changeVisualState(_arg1:String):void{
visualStatus = _arg1;
if (_arg1 == "idle"){
visualElement.scaleX = 1;
};
visualElement.gotoAndStop(_arg1);
}
public function getVisualElement():MovieClip{
return (visualElement);
}
protected function initMembers():void{
name = "";
skilled = "";
unskilled = "";
price = 0;
energy = 0;
lastenergy = 0;
energyMax = 0;
energeticStatus = "energetic";
hired = false;
rechargeable = false;
completeTired = false;
visualStatus = "idle";
animation = true;
tintEffect = new Color();
tintEffect.setTint(0, 0.65);
}
public function setEnergeticStatus(_arg1:String):void{
energeticStatus = _arg1;
}
public function isHired():Boolean{
return (hired);
}
public function flipHorizontal():void{
visualElement.scaleX = (visualElement.scaleX * -1);
}
public function isTired():Boolean{
return (completeTired);
}
protected function initVisualElement(_arg1:MovieClip):void{
visualElement = _arg1;
visualElement.addEventListener(MouseEvent.MOUSE_OVER, onElementOver, false, 0, true);
visualElement.addEventListener(MouseEvent.MOUSE_OUT, onElementOut, false, 0, true);
visualElement.addEventListener(MouseEvent.MOUSE_UP, onElementUp, false, 0, true);
}
public function isAnimated():Boolean{
return (animation);
}
public function setStartLocation(_arg1:int, _arg2:int):void{
startingLocation.x = _arg1;
startingLocation.y = _arg2;
}
public function getEnergeticStatus():String{
return (energeticStatus);
}
public function onElementOut(_arg1:MouseEvent):void{
visualElement.filters = null;
}
public function getEnergy():Number{
return (energy);
}
}
}//package classes.game
Section 14
//RestingArea (classes.game.RestingArea)
package classes.game {
import flash.display.*;
import flash.events.*;
import classes.global.*;
import spil.Mouse.*;
import flash.filters.*;
public class RestingArea extends Area {
private var states:Array;
private var recoverRate:Number;
private var charge:Boolean;
private var light:lights_resting;
private var lastState:int;
private var resting:Sprite;
private var can:drink;
private var st0:resting_0;
private var st1:resting_1;
private var st2:resting_2;
public function RestingArea(_arg1:Number, _arg2:String){
super.initArea();
charge = true;
this.nameArea = "Resting";
this.working = false;
recoverRate = _arg1;
st0 = new resting_0();
st1 = new resting_1();
st2 = new resting_2();
can = new drink();
light = new lights_resting();
light.x = 20;
light.y = -90;
st0.gotoAndStop(_arg2);
st1.gotoAndStop(_arg2);
st2.gotoAndStop(_arg2);
light.gotoAndStop(_arg2);
states = [st0, st1, st2];
this.addEventListener(MouseEvent.MOUSE_DOWN, onElementDown, false, 0, true);
lastState = 0;
}
override public function onCharOver(_arg1:MouseEvent):void{
var _local2:SpilDragMouse;
var _local3:GlowFilter;
_local2 = (Global.mouse as SpilDragMouse);
if (_local2.isEmpty()){
_local3 = new GlowFilter(0xFFFFFF, 1, 4, 4, 10, 3, false, false);
this.filters = [_local3];
};
}
public function onElementDown(_arg1:MouseEvent):void{
var _local2:SpilDragMouse;
var _local3:MovieClip;
_local2 = (Global.mouse as SpilDragMouse);
if (((_local2.isEmpty()) && (charge))){
_local3 = (resting.getChildAt(0) as MovieClip);
lastState = _local3.mcDrink.currentFrame;
if ((_local3.mcDrink.currentFrame + 1) <= _local3.mcDrink.totalFrames){
_local3.mcDrink.gotoAndStop((_local3.mcDrink.currentFrame + 1));
};
charge = true;
this.occuped = false;
_local2.addDragItem("can", can, this);
};
}
public function recharge():void{
var _local1:MovieClip;
_local1 = (resting.getChildAt(0) as MovieClip);
if ((_local1.mcDrink.currentFrame - 1) >= 1){
_local1.maskFrig.y = -102;
_local1.mcDrink.gotoAndStop(1);
this.timerTime = 0;
occuped = false;
charge = true;
};
if (_local1.mcDrink.currentFrame == 1){
this.timerTime = 0;
charge = true;
occuped = false;
};
}
public function updateCharge(_arg1:int):void{
var _local2:int;
var _local3:Number;
var _local4:MovieClip;
_local2 = 0;
if (_arg1 == -1){
_local2 = 12;
};
_local3 = (recoverRate / 90);
_local2 = (102 - int(((recoverRate - _arg1) / _local3)));
_local4 = (resting.getChildAt(0) as MovieClip);
_local4.maskFrig.y = (_local2 * -1);
if (_local4.maskFrig.y <= -102){
_local4.glass.visible = false;
} else {
_local4.glass.visible = true;
};
}
public function initVisualResting(_arg1:int):void{
resting = new Sprite();
resting.name = "restingOBJVIS";
resting.addChild(states[_arg1]);
resting.addChild(light);
this.initListeners();
this.addChild(resting);
}
public function setRecharge():void{
var _local1:MovieClip;
_local1 = (resting.getChildAt(0) as MovieClip);
if ((((_local1.mcDrink.currentFrame == _local1.mcDrink.totalFrames)) && (Global.callFrig))){
charge = false;
this.occuped = true;
};
}
override public function onCharUpStage(_arg1:MouseEvent):void{
var _local2:SpilDragMouse;
var _local3:MovieClip;
super.onCharUpStage(_arg1);
_local2 = (Global.mouse as SpilDragMouse);
if (!_local2.isEmpty()){
if (_local2.containItem("can")){
_local3 = _local2.removeDragItem("can");
_local3 = null;
this.backState();
};
};
}
public function setRechargeTime():void{
var _local1:Number;
_local1 = recoverRate;
this.timerTime = _local1;
}
public function backState():void{
var _local1:MovieClip;
_local1 = (resting.getChildAt(0) as MovieClip);
_local1.mcDrink.gotoAndStop(lastState);
charge = true;
this.occuped = false;
}
}
}//package classes.game
Section 15
//SecurityCrew (classes.game.SecurityCrew)
package classes.game {
import flash.events.*;
import flash.geom.*;
import classes.global.*;
import spil.Mouse.*;
public class SecurityCrew extends Members {
private var visualStates:SecurityMC;
public function SecurityCrew(_arg1:String, _arg2:String, _arg3:int, _arg4:int, _arg5:Boolean){
super.initMembers();
this.name = "Security Guard";
this.skilled = _arg1;
this.unskilled = _arg2;
this.energy = _arg3;
this.energyMax = _arg3;
this.price = _arg4;
this.hired = _arg5;
this.startingLocation = new Point();
visualStates = new SecurityMC();
}
public function initVisualSec(_arg1:String):void{
visualStates.gotoAndPlay(_arg1);
super.initVisualElement(visualStates);
this.visualElement.addEventListener(MouseEvent.MOUSE_DOWN, onElementDown, false, 0, true);
}
public function onElementDown(_arg1:MouseEvent):void{
var _local2:SpilDragMouse;
var _local3:SecurityCrew;
_local2 = (Global.mouse as SpilDragMouse);
if (((((_local2.isEmpty()) && ((visualStatus == "idle")))) && (this.animation))){
this.visualElement.x = 0;
this.visualElement.y = 0;
this.changeVisualState("drag");
Global.soundsFX["PickCrewMember"].play();
_local2.addDragItem("SecurityGuard", this.getVisualElement(), this);
_local3 = SecurityCrew(_local2.getDragItem("SecurityGuard"));
this.visualElement.removeEventListener(MouseEvent.MOUSE_DOWN, onElementDown);
};
}
override public function changeVisualState(_arg1:String):void{
super.changeVisualState(_arg1);
if (_arg1 == "idle"){
this.visualElement.addEventListener(MouseEvent.MOUSE_DOWN, onElementDown, false, 0, true);
};
}
}
}//package classes.game
Section 16
//SoundmanCrew (classes.game.SoundmanCrew)
package classes.game {
import flash.events.*;
import flash.geom.*;
import classes.global.*;
import spil.Mouse.*;
public class SoundmanCrew extends Members {
private var visualStates:SoundmanMC;
public function SoundmanCrew(_arg1:String, _arg2:String, _arg3:int, _arg4:int, _arg5:Boolean){
super.initMembers();
this.name = "Soundman";
this.skilled = _arg1;
this.unskilled = _arg2;
this.energy = _arg3;
this.energyMax = _arg3;
this.price = _arg4;
this.hired = _arg5;
this.startingLocation = new Point();
visualStates = new SoundmanMC();
}
public function initVisualSoundMan(_arg1:String):void{
visualStates.gotoAndPlay(_arg1);
super.initVisualElement(visualStates);
this.visualElement.addEventListener(MouseEvent.MOUSE_DOWN, onElementDown, false, 0, true);
}
public function onElementDown(_arg1:MouseEvent):void{
var _local2:SpilDragMouse;
_local2 = (Global.mouse as SpilDragMouse);
if (((((_local2.isEmpty()) && ((visualStatus == "idle")))) && (this.animation))){
this.visualElement.x = 0;
this.visualElement.y = 0;
this.changeVisualState("drag");
Global.soundsFX["PickCrewMember"].play();
_local2.addDragItem("Soundman", this.getVisualElement(), this);
this.visualElement.removeEventListener(MouseEvent.MOUSE_DOWN, onElementDown);
};
}
override public function changeVisualState(_arg1:String):void{
super.changeVisualState(_arg1);
if (_arg1 == "idle"){
this.visualElement.addEventListener(MouseEvent.MOUSE_DOWN, onElementDown, false, 0, true);
};
}
}
}//package classes.game
Section 17
//SoundTableArea (classes.game.SoundTableArea)
package classes.game {
import flash.display.*;
import spil.Utils.*;
public class SoundTableArea extends Area {
private var states:Array;
private var soundTSP:MovieClip;
private var light:lights_soundTable;
private var poster:posters;
private var mf2:malfunc_maintenance;
private var mf1:malfunc_sound;
private var st0:soundTable_0;
private var st1:soundTable_1;
private var st2:soundTable_2;
public function SoundTableArea(_arg1:Number, _arg2:int, _arg3:int, _arg4:Array, _arg5:String){
super.initArea();
this.nameArea = "Sound table";
this.maxMalfunction = _arg3;
this.valueIncome = _arg1;
this.clientsFactor = _arg2;
this.visualIndications = _arg4;
st0 = new soundTable_0();
st1 = new soundTable_1();
st2 = new soundTable_2();
mf1 = new malfunc_sound();
mf2 = new malfunc_maintenance();
light = new lights_soundTable();
light.x = 0;
light.y = -80;
light.gotoAndStop(_arg5);
poster = new posters();
poster.x = 0;
poster.y = 29;
poster.gotoAndPlay(_arg5);
mf1.x = 40;
mf1.y = -55;
mf2.x = 70;
mf2.y = 30;
states = [st0, st1, st2];
malfuncs = {sound:mf1, maintenance:mf2};
this.tasks = new Array();
lastStatePause = new Array();
lastStatePause[0] = "normal";
}
override public function pauseAnimations(_arg1:Boolean):void{
var _local2:MovieClip;
var _local3:MovieClip;
super.pauseAnimations(_arg1);
this.paused = _arg1;
if (_arg1){
mf1.stop();
mf2.stop();
_local2 = MovieClip(soundTSP.getChildAt(0));
this.stopMovieClip(_local2);
} else {
mf1.play();
mf2.play();
_local3 = MovieClip(soundTSP.getChildAt(0));
this.playMovieClip(_local3);
_local3.gotoAndStop(lastStatePause[0]);
};
}
public function initVisualSoundTable(_arg1:int):void{
var _local2:MovieClip;
soundTSP = new MovieClip();
soundTSP.name = "soundTableOBJVIS";
soundTSP.addChild(states[_arg1]);
soundTSP.addChild(poster);
soundTSP.addChild(light);
this.addChild(soundTSP);
SpilMovieClip.setMouseEnabled(this, false);
_local2 = new mcHitSoundTable();
this.addChild(_local2);
this.hitArea = _local2;
this.initListeners();
}
override protected function removeVisualMalFunc(_arg1:String):void{
var _local2:MovieClip;
super.removeVisualMalFunc(_arg1);
if (_arg1 == "sound"){
_local2 = MovieClip(soundTSP.getChildAt(0));
_local2.gotoAndStop("normal");
};
lastStatePause[0] = "normal";
}
override protected function checkExtraVisualMalfunc(_arg1:int, _arg2:String):void{
var _local3:MovieClip;
super.checkExtraVisualMalfunc(_arg1, _arg2);
_local3 = MovieClip(soundTSP.getChildAt(0));
_local3.gotoAndStop(_arg2);
lastStatePause[0] = _arg2;
}
}
}//package classes.game
Section 18
//StageArea (classes.game.StageArea)
package classes.game {
import flash.display.*;
import classes.global.*;
public class StageArea extends Area {
private var states:Array;
private var stageBand:MovieClip;
private var light:lights_stage;
private var mf3:malfunc_sound;
private var mf2:malfunc_security;
private var mf1:malfunc_bar;
public function StageArea(_arg1:Number, _arg2:int, _arg3:int, _arg4:String){
super.initArea();
this.nameArea = "Stage";
this.maxMalfunction = _arg3;
this.valueIncome = _arg1;
this.clientsFactor = _arg2;
mf1 = new malfunc_bar();
mf2 = new malfunc_security();
mf3 = new malfunc_sound();
light = new lights_stage();
light.gotoAndStop(_arg4);
light.x = 70;
light.y = -5;
mf1.x = 50;
mf1.y = 20;
mf2.x = 150;
mf2.y = 20;
mf3.x = 220;
mf3.y = 20;
this.malfuncs = {bartending:mf1, security:mf2, sound:mf3};
this.tasks = new Array();
lastStatePause = new Array();
lastStatePause[0] = "normal";
}
override public function pauseAnimations(_arg1:Boolean):void{
var _local2:MovieClip;
var _local3:Sprite;
var _local4:MovieClip;
var _local5:MovieClip;
var _local6:Sprite;
var _local7:MovieClip;
super.pauseAnimations(_arg1);
this.paused = _arg1;
if (_arg1){
mf1.stop();
mf2.stop();
mf3.stop();
_local2 = MovieClip(stageBand.getChildAt(0));
this.stopMovieClip(_local2);
_local3 = Sprite(stageBand.getChildAt(1));
_local4 = MovieClip(_local3.getChildAt(0));
_local4.stop();
} else {
mf1.play();
mf2.play();
mf3.play();
_local5 = MovieClip(stageBand.getChildAt(0));
this.playMovieClip(_local5);
_local6 = Sprite(stageBand.getChildAt(1));
_local7 = MovieClip(_local6.getChildAt(0));
_local7.play();
_local5.gotoAndStop(lastStatePause[0]);
};
}
public function initVisualStage(_arg1:int, _arg2:Sprite):void{
stageBand = new MovieClip();
stageBand.name = "stageBandOBJVIS";
if (_arg1 == 0){
stageBand.addChild(new stageBand_0());
};
if (_arg1 == 1){
stageBand.addChild(new stageBand_1());
};
if (_arg1 == 2){
stageBand.addChild(new stageBand_2());
};
_arg2.x = 135;
_arg2.y = 25;
stageBand.addChild(_arg2);
stageBand.addChild(light);
this.initListeners();
this.addChild(stageBand);
}
override protected function removeVisualMalFunc(_arg1:String):void{
var _local2:MovieClip;
super.removeVisualMalFunc(_arg1);
_local2 = MovieClip(stageBand.getChildAt(0));
_local2.gotoAndStop("normal");
lastStatePause[0] = "normal";
}
override protected function checkExtraVisualMalfunc(_arg1:int, _arg2:String):void{
var _local3:MovieClip;
super.checkExtraVisualMalfunc(_arg1, _arg2);
_local3 = MovieClip(stageBand.getChildAt(0));
_local3.gotoAndStop(_arg2);
lastStatePause[0] = _arg2;
if (_arg2 == "sound"){
Global.soundsFX["BadBand"].play();
};
}
}
}//package classes.game
Section 19
//Task (classes.game.Task)
package classes.game {
import classes.global.*;
public class Task {
private var executionTime:int;
private var name:String;
private var skill:String;
private var malfuncValLimit:int;
private var malfuncVal:Number;
private var paramsConfig:XML;
private var paramsXML:ParamsXML;
private var working:Boolean;
private var correcting:Boolean;
public function Task(_arg1:String, _arg2:String, _arg3:int, _arg4:int){
name = _arg1.toLowerCase();
skill = _arg2.toLowerCase();
malfuncValLimit = _arg3;
executionTime = _arg4;
malfuncVal = 0;
working = true;
correcting = false;
paramsXML = new ParamsXML();
paramsConfig = paramsXML.getParamsGame();
}
public function isCorrecting():Boolean{
return (correcting);
}
public function incMalFuncVal():void{
malfuncVal++;
if (malfuncVal >= malfuncValLimit){
working = false;
};
}
public function getName():String{
return (name);
}
public function setMalFuncVal(_arg1:Number):void{
if ((((malfuncVal <= malfuncValLimit)) && (working))){
malfuncVal = (malfuncVal + (_arg1 * int(paramsConfig.tick_time.text())));
} else {
working = false;
};
}
public function getMalFuncVal():Number{
return (malfuncVal);
}
public function SetCorrecting(_arg1:Boolean):void{
correcting = _arg1;
}
public function getSkill():String{
return (skill.toLowerCase());
}
public function isMalFunc():Boolean{
return (!(working));
}
public function resetMalFuncVal():void{
malfuncVal = 0;
working = true;
correcting = false;
}
public function getExecTime():int{
return (executionTime);
}
}
}//package classes.game
Section 20
//Upgrade (classes.game.Upgrade)
package classes.game {
import flash.display.*;
import flash.events.*;
import spil.Events.*;
import fl.motion.*;
import classes.global.*;
import spil.Utils.*;
import spil.Button.*;
import flash.filters.*;
public class Upgrade {
private var buttons:Array;
private var scene:MovieClip;
private var indEnt:int;
private var valsUpRest:Array;
private var valsUpBar:Array;
private var valsUpSoundT:Array;
private var indBar:int;
private var valsUpBath:Array;
private var soundTableUpAval:Boolean;
private var labelrest:String;
private var valsUpStage:Array;
private var indRest:int;
private var indStage:int;
private var indSoundT:int;
private var tintEffect:Color;
private var indBath:int;
private var valsCrew:Array;
private var valsUpEnt:Array;
public function Upgrade(_arg1:MovieClip, _arg2:Array, _arg3:Array, _arg4:Array, _arg5:String){
var paramsxml:ParamsXML;
var charsParams:XML;
var item:Object;
var _scene = _arg1;
var charsIDs = _arg2;
var charsIDAvals = _arg3;
var areasNamesUps = _arg4;
var bandName = _arg5;
super();
buttons = new Array();
valsCrew = new Array();
scene = _scene;
paramsxml = new ParamsXML();
charsParams = paramsxml.getParamsChars();
tintEffect = new Color();
tintEffect.setTint(0, 0.65);
soundTableUpAval = false;
labelrest = "";
SpilMovieClip.setMouseEnabled(scene.SoundmanPanel.panelAtribs, false);
SpilMovieClip.setMouseEnabled(scene.BarmanPanel.panelAtribs, false);
SpilMovieClip.setMouseEnabled(scene.JackiePanel.panelAtribs, false);
SpilMovieClip.setMouseEnabled(scene.MainPanel.panelAtribs, false);
SpilMovieClip.setMouseEnabled(scene.SecPanel.panelAtribs, false);
scene.txtTime.text = "0:00";
scene.StagePanel.visible = false;
scene.BarPanel.visible = false;
scene.BathPanel.visible = false;
scene.SoundTablePanel.visible = false;
scene.RestPanel.visible = false;
scene.EntPanel.visible = false;
scene.SoundmanPanel.visible = false;
scene.BarmanPanel.visible = false;
scene.JackiePanel.visible = false;
scene.MainPanel.visible = false;
scene.SecPanel.visible = false;
scene.mcmainchar.addEventListener(MouseEvent.MOUSE_OVER, onmainInfoOver, false, 0, true);
scene.mcmainchar.addEventListener(MouseEvent.MOUSE_OUT, onmainInfoOut, false, 0, true);
scene.MainPanel.panelAtribs.mcTitle.txtName.text = Global.xmlLocalization.upgrade.mainChar;
scene.MainPanel.panelAtribs.txtSkill.text = localizeSkills(charsParams.mainChar.skilled);
scene.MainPanel.panelAtribs.txtUnSkill.text = localizeSkills(charsParams.mainChar.unskilled);
scene.MainPanel.panelAtribs.txtEnergy.text = charsParams.mainChar.energy;
scene.MainPanel.panelAtribs.moneyS.visible = false;
scene.MainPanel.panelAtribs.txtPrice.visible = false;
scene.MainPanel.btnBuy.visible = false;
scene.MainPanel.btnCancel.visible = false;
scene.mcsecchar.addEventListener(MouseEvent.MOUSE_OVER, onsecInfoOver, false, 0, true);
scene.mcsecchar.addEventListener(MouseEvent.MOUSE_OUT, onsecInfoOut, false, 0, true);
scene.SecPanel.panelAtribs.mcTitle.txtName.text = Global.xmlLocalization.upgrade.securityChar;
scene.SecPanel.panelAtribs.txtSkill.text = localizeSkills(charsParams..member.(@id == "0").skilled);
scene.SecPanel.panelAtribs.txtUnSkill.text = localizeSkills(charsParams..member.(@id == "0").unskilled);
scene.SecPanel.panelAtribs.txtEnergy.text = charsParams..member.(@id == "0").energy;
scene.SecPanel.panelAtribs.moneyS.visible = false;
scene.SecPanel.panelAtribs.txtPrice.visible = false;
scene.SecPanel.btnBuy.visible = false;
scene.SecPanel.btnCancel.visible = false;
if (charsIDs.indexOf(1) > 0){
scene.barmanButton.visible = false;
scene.barmanChar.visible = true;
scene.BarmanPanel.panelAtribs.mcTitle.txtName.text = Global.xmlLocalization.upgrade.barmanChar;
scene.BarmanPanel.panelAtribs.txtSkill.text = localizeSkills(charsParams..member.(@id == "1").skilled);
scene.BarmanPanel.panelAtribs.txtUnSkill.text = localizeSkills(charsParams..member.(@id == "1").unskilled);
scene.BarmanPanel.panelAtribs.txtEnergy.text = charsParams..member.(@id == "1").energy;
scene.BarmanPanel.panelAtribs.moneyS.visible = false;
scene.BarmanPanel.panelAtribs.txtPrice.visible = false;
scene.BarmanPanel.btnBuy.visible = false;
scene.BarmanPanel.btnCancel.visible = false;
safedeleteSpilButton("barmanUP");
scene.barmanChar.addEventListener(MouseEvent.MOUSE_OVER, onbarmanInfoOver, false, 0, true);
scene.barmanChar.addEventListener(MouseEvent.MOUSE_OUT, onbarmanInfoOut, false, 0, true);
Global.crew[1] = 1;
} else {
Global.crew[1] = -1;
if (charsIDAvals.indexOf(1) > 0){
scene.barmanChar.transform.colorTransform = tintEffect;
scene.BarmanPanel.panelAtribs.mcTitle.txtName.text = Global.xmlLocalization.upgrade.barmanChar;
scene.BarmanPanel.panelAtribs.txtSkill.text = localizeSkills(charsParams..member.(@id == "1").skilled);
scene.BarmanPanel.panelAtribs.txtUnSkill.text = localizeSkills(charsParams..member.(@id == "1").unskilled);
scene.BarmanPanel.panelAtribs.txtEnergy.text = charsParams..member.(@id == "1").energy;
scene.BarmanPanel.panelAtribs.txtPrice.text = charsParams..member.(@id == "1").cost;
valsCrew[_local8] = charsParams..member.(@id == "1").cost;
if ((Global.cash - valsCrew[0]) <= 0){
scene.BarmanPanel.btnBuy.visible = false;
};
buttons["buyBarman"] = new SpilTextButton(scene.BarmanPanel.btnBuy, Global.xmlLocalization.upgrade.hire, onEventBuyBarman);
setFXclickover("buyBarman");
buttons["barmanUP"] = new SpilButton(scene.barmanButton, onEventBarman);
buttons["backBarman"] = new SpilTextButton(scene.BarmanPanel.btnCancel, Global.xmlLocalization.upgrade.back, onEventBarman);
setFXclickover("barmanUP");
setFXclickover("backBarman");
scene.barmanChar.addEventListener(MouseEvent.MOUSE_OVER, onAreaOver, false, 0, true);
scene.barmanChar.addEventListener(MouseEvent.MOUSE_OUT, onAreaOut, false, 0, true);
scene.barmanButton.visible = true;
scene.barmanChar.visible = true;
} else {
scene.barmanChar.visible = false;
scene.barmanButton.visible = false;
};
};
if (charsIDs.indexOf(2) > 0){
scene.soundmanButton.visible = false;
scene.SoundmanPanel.panelAtribs.mcTitle.txtName.text = Global.xmlLocalization.upgrade.soundmanChar;
scene.SoundmanPanel.panelAtribs.txtSkill.text = localizeSkills(charsParams..member.(@id == "2").skilled);
scene.SoundmanPanel.panelAtribs.txtUnSkill.text = localizeSkills(charsParams..member.(@id == "2").unskilled);
scene.SoundmanPanel.panelAtribs.txtEnergy.text = charsParams..member.(@id == "2").energy;
scene.SoundmanPanel.panelAtribs.moneyS.visible = false;
scene.SoundmanPanel.panelAtribs.txtPrice.visible = false;
scene.SoundmanPanel.btnBuy.visible = false;
scene.SoundmanPanel.btnCancel.visible = false;
scene.soundmanChar.addEventListener(MouseEvent.MOUSE_OVER, onsoundmanInfoOver, false, 0, true);
scene.soundmanChar.addEventListener(MouseEvent.MOUSE_OUT, onsoundmanInfoOut, false, 0, true);
Global.crew[2] = 2;
} else {
Global.crew[2] = -1;
if (charsIDAvals.indexOf(2) > 0){
scene.soundmanButton.visible = true;
scene.soundmanChar.transform.colorTransform = tintEffect;
scene.SoundmanPanel.panelAtribs.mcTitle.txtName.text = Global.xmlLocalization.upgrade.soundmanChar;
scene.SoundmanPanel.panelAtribs.txtSkill.text = localizeSkills(charsParams..member.(@id == "2").skilled);
scene.SoundmanPanel.panelAtribs.txtUnSkill.text = localizeSkills(charsParams..member.(@id == "2").unskilled);
scene.SoundmanPanel.panelAtribs.txtEnergy.text = charsParams..member.(@id == "2").energy;
scene.SoundmanPanel.panelAtribs.txtPrice.text = charsParams..member.(@id == "2").cost;
valsCrew[1] = charsParams..member.(@id == "2").cost;
if ((Global.cash - valsCrew[1]) <= 0){
scene.SoundmanPanel.btnBuy.visible = false;
};
buttons["buySoundman"] = new SpilTextButton(scene.SoundmanPanel.btnBuy, Global.xmlLocalization.upgrade.hire, onEventBuySoundman);
setFXclickover("buySoundman");
buttons["soundmanUP"] = new SpilButton(scene.soundmanButton, onEventSoundman);
buttons["backSoundman"] = new SpilTextButton(scene.SoundmanPanel.btnCancel, Global.xmlLocalization.upgrade.back, onEventSoundman);
setFXclickover("soundmanUP");
setFXclickover("backSoundman");
scene.soundmanChar.visible = true;
scene.soundmanChar.addEventListener(MouseEvent.MOUSE_OVER, onAreaOver, false, 0, true);
scene.soundmanChar.addEventListener(MouseEvent.MOUSE_OUT, onAreaOut, false, 0, true);
} else {
scene.soundmanChar.visible = false;
scene.soundmanButton.visible = false;
};
};
if (charsIDs.indexOf(3) > 0){
scene.jackieButton.visible = false;
scene.JackiePanel.panelAtribs.mcTitle.txtName.text = Global.xmlLocalization.upgrade.jackieChar;
scene.JackiePanel.panelAtribs.txtSkill.text = localizeSkills(charsParams..member.(@id == "3").skilled);
scene.JackiePanel.panelAtribs.txtUnSkill.text = localizeSkills(charsParams..member.(@id == "3").unskilled);
scene.JackiePanel.panelAtribs.txtEnergy.text = charsParams..member.(@id == "3").energy;
scene.JackiePanel.panelAtribs.moneyS.visible = false;
scene.JackiePanel.panelAtribs.txtPrice.visible = false;
scene.JackiePanel.btnBuy.visible = false;
scene.JackiePanel.btnCancel.visible = false;
scene.jackieChar.addEventListener(MouseEvent.MOUSE_OVER, onjackieInfoOver, false, 0, true);
scene.jackieChar.addEventListener(MouseEvent.MOUSE_OUT, onjackieInfoOut, false, 0, true);
Global.crew[3] = 3;
} else {
Global.crew[3] = -1;
if (charsIDAvals.indexOf(3) > 0){
scene.jackieButton.visible = true;
scene.jackieChar.transform.colorTransform = tintEffect;
scene.JackiePanel.panelAtribs.mcTitle.txtName.text = Global.xmlLocalization.upgrade.jackieChar;
scene.JackiePanel.panelAtribs.txtSkill.text = localizeSkills(charsParams..member.(@id == "3").skilled);
scene.JackiePanel.panelAtribs.txtUnSkill.text = localizeSkills(charsParams..member.(@id == "3").unskilled);
scene.JackiePanel.panelAtribs.txtEnergy.text = charsParams..member.(@id == "3").energy;
scene.JackiePanel.panelAtribs.txtPrice.text = charsParams..member.(@id == "3").cost;
valsCrew[2] = charsParams..member.(@id == "3").cost;
if ((Global.cash - valsCrew[2]) <= 0){
scene.JackiePanel.btnBuy.visible = false;
};
buttons["buyJackie"] = new SpilTextButton(scene.JackiePanel.btnBuy, Global.xmlLocalization.upgrade.hire, onEventBuyJackie);
setFXclickover("buyJackie");
buttons["jackieUP"] = new SpilButton(scene.jackieButton, onEventJackie);
buttons["backJackie"] = new SpilTextButton(scene.JackiePanel.btnCancel, Global.xmlLocalization.upgrade.back, onEventJackie);
setFXclickover("jackieUP");
setFXclickover("backJackie");
scene.jackieChar.visible = true;
scene.jackieChar.addEventListener(MouseEvent.MOUSE_OVER, onAreaOver, false, 0, true);
scene.jackieChar.addEventListener(MouseEvent.MOUSE_OUT, onAreaOut, false, 0, true);
} else {
scene.jackieChar.visible = false;
scene.jackieButton.visible = false;
};
};
Global.crew[0] = 0;
for each (item in areasNamesUps) {
if (item.name.toLowerCase() == "stage"){
scene.stageUp.gotoAndStop(("up_" + String(item.upType)));
valsUpStage = item.upValues;
indStage = (item.upType + 1);
if (item.upType < 2){
buttons["stageUP"] = new SpilButton(scene.stageUp, onEventStage);
setFXclickover("stageUP");
scene.StagePanel.mcTitle.txtTitleUpArea.text = Global.xmlLocalization.upgrade.stageUp.title.(@id == indStage).text();
scene.StagePanel.txtDesc.text = Global.xmlLocalization.upgrade.stageUpDesc.updesc.(@id == indStage).text();
scene.StagePanel.txtValUp.text = valsUpStage[indStage];
if ((Global.cash - valsUpStage[indStage]) <= 0){
scene.StagePanel.btnBuy.visible = false;
};
buttons["buyStage"] = new SpilTextButton(scene.StagePanel.btnBuy, Global.xmlLocalization.upgrade.buy, onEventBuyStage);
setFXclickover("buyStage");
buttons["backStage"] = new SpilTextButton(scene.StagePanel.btnCancel, Global.xmlLocalization.upgrade.back, onEventStage);
setFXclickover("backStage");
};
};
if (item.name.toLowerCase() == "resting"){
labelrest = ("up_" + String(item.upType));
scene.restUp.gotoAndStop(labelrest);
SpilMovieClip.addLabelScript(scene.restUp, labelrest, onLoadRestAreaUp);
valsUpRest = item.upValues;
indRest = (item.upType + 1);
if (item.upType < 2){
buttons["restUP"] = new SpilButton(scene.restUp, onEventRest);
setFXclickover("restUP");
scene.RestPanel.mcTitle.txtTitleUpArea.text = Global.xmlLocalization.upgrade.restUp.title.(@id == indRest).text();
scene.RestPanel.txtDesc.text = Global.xmlLocalization.upgrade.restUpDesc.updesc.(@id == indRest).text();
scene.RestPanel.txtValUp.text = valsUpRest[indRest];
if ((Global.cash - valsUpRest[indRest]) <= 0){
scene.RestPanel.btnBuy.visible = false;
};
buttons["buyRest"] = new SpilTextButton(scene.RestPanel.btnBuy, Global.xmlLocalization.upgrade.buy, onEventBuyRest);
setFXclickover("buyRest");
buttons["backRest"] = new SpilTextButton(scene.RestPanel.btnCancel, Global.xmlLocalization.upgrade.back, onEventRest);
setFXclickover("backRest");
};
};
if (item.name.toLowerCase() == "bathroom"){
scene.bathUp.gotoAndStop(((bandName.toLowerCase() + "_up_") + String(item.upType)));
valsUpBath = item.upValues;
indBath = (item.upType + 1);
if (item.upType < 2){
buttons["bathUP"] = new SpilButton(scene.bathUp, onEventBath);
setFXclickover("bathUP");
scene.BathPanel.mcTitle.txtTitleUpArea.text = Global.xmlLocalization.upgrade.bathUp.title.(@id == indBath).text();
scene.BathPanel.txtDesc.text = Global.xmlLocalization.upgrade.bathUpDesc.updesc.(@id == indBath).text();
scene.BathPanel.txtValUp.text = valsUpBath[indBath];
if ((Global.cash - valsUpBath[indBath]) <= 0){
scene.BathPanel.btnBuy.visible = false;
};
buttons["buyBath"] = new SpilTextButton(scene.BathPanel.btnBuy, Global.xmlLocalization.upgrade.buy, onEventBuyBath);
setFXclickover("buyBath");
buttons["backBath"] = new SpilTextButton(scene.BathPanel.btnCancel, Global.xmlLocalization.upgrade.back, onEventBath);
setFXclickover("backBath");
};
};
if (item.name.toLowerCase() == "sound table"){
soundTableUpAval = true;
scene.soundTableUp.gotoAndStop(("up_" + String(item.upType)));
valsUpSoundT = item.upValues;
indSoundT = (item.upType + 1);
if (item.upType < 2){
buttons["soundTableUP"] = new SpilButton(scene.soundTableUp, onEventSoundTable);
setFXclickover("soundTableUP");
scene.SoundTablePanel.mcTitle.txtTitleUpArea.text = Global.xmlLocalization.upgrade.soundTUp.title.(@id == (indSoundT + 1)).text();
scene.SoundTablePanel.txtDesc.text = Global.xmlLocalization.upgrade.soundTUpDesc.updesc.(@id == (indSoundT + 1)).text();
scene.SoundTablePanel.txtValUp.text = valsUpSoundT[indSoundT];
if ((Global.cash - valsUpSoundT[indSoundT]) <= 0){
scene.SoundTablePanel.btnBuy.visible = false;
};
buttons["buySoundTable"] = new SpilTextButton(scene.SoundTablePanel.btnBuy, Global.xmlLocalization.upgrade.buy, onEventBuySoundT);
setFXclickover("buySoundTable");
buttons["backSoundTable"] = new SpilTextButton(scene.SoundTablePanel.btnCancel, Global.xmlLocalization.upgrade.back, onEventSoundTable);
setFXclickover("backSoundTable");
};
};
if (item.name.toLowerCase() == "bar"){
valsUpBar = item.upValues;
indBar = (item.upType + 1);
scene.barUp.gotoAndStop(("up_" + String(item.upType)));
if (item.upType < 2){
buttons["barUP"] = new SpilButton(scene.barUp, onEventBar);
setFXclickover("barUP");
scene.BarPanel.mcTitle.txtTitleUpArea.text = Global.xmlLocalization.upgrade.barUp.title.(@id == indBar).text();
scene.BarPanel.txtDesc.text = Global.xmlLocalization.upgrade.barUpDesc.updesc.(@id == indBar).text();
scene.BarPanel.txtValUp.text = valsUpBar[indBar];
if ((Global.cash - valsUpBar[indBar]) <= 0){
scene.BarPanel.btnBuy.visible = false;
};
buttons["buyBar"] = new SpilTextButton(scene.BarPanel.btnBuy, Global.xmlLocalization.upgrade.buy, onEventBuyBar);
setFXclickover("buyBar");
buttons["backBar"] = new SpilTextButton(scene.BarPanel.btnCancel, Global.xmlLocalization.upgrade.back, onEventBar);
setFXclickover("backBar");
};
};
if (item.name.toLowerCase() == "entrance & exit"){
valsUpEnt = item.upValues;
indEnt = (item.upType + 1);
scene.entUp.over.mcEnt.wall.gotoAndStop(bandName);
scene.entUp.down.mcEnt.wall.gotoAndStop(bandName);
scene.entUp.out.mcEnt.wall.gotoAndStop(bandName);
if (item.upType < 2){
scene.entUp.gotoAndStop("up");
buttons["entUP"] = new SpilButton(scene.entUp, onEventEnt);
setFXclickover("entUP");
scene.EntPanel.mcTitle.txtTitleUpArea.text = Global.xmlLocalization.upgrade.entryUp.title.(@id == indEnt).text();
scene.EntPanel.txtDesc.text = Global.xmlLocalization.upgrade.entryUpDesc.updesc.(@id == indEnt).text();
scene.EntPanel.txtValUp.text = valsUpEnt[indEnt];
if ((Global.cash - valsUpEnt[indEnt]) <= 0){
scene.EntPanel.btnBuy.visible = false;
};
buttons["buyEnt"] = new SpilTextButton(scene.EntPanel.btnBuy, Global.xmlLocalization.upgrade.buy, onEventBuyEnt);
setFXclickover("buyEnt");
buttons["backEnt"] = new SpilTextButton(scene.EntPanel.btnCancel, Global.xmlLocalization.upgrade.back, onEventEnt);
setFXclickover("backEnt");
} else {
scene.entUp.gotoAndStop("max");
SpilMovieClip.addLabelScript(scene.entUp, "max", onLoadEntAreaUp);
};
};
};
item = null;
scene.soundTableUp.visible = soundTableUpAval;
SpilMovieClip.setMouseEnabled(scene.hudUp, false);
scene.hudUp.gotoAndStop(Global.bandOnStage);
scene.backUp.gotoAndStop(Global.bandOnStage);
scene.mcLogo.gotoAndStop(Global.localization_branding_nr);
scene.mcTextCash.text = Global.xmlLocalization.upgrade.cash.text();
scene.mcIncome.text = (Global.xmlLocalization.symbol_cash + " ");
scene.mcIncome.appendText(String(Global.cash));
}
private function onEventHideAll(_arg1:MouseEvent):void{
scene.EntPanel.visible = false;
scene.BathPanel.visible = false;
scene.StagePanel.visible = false;
scene.BarPanel.visible = false;
scene.SoundTablePanel.visible = false;
scene.RestPanel.visible = false;
scene.EntPanel.visible = false;
scene.BarmanPanel.visible = false;
scene.SoundmanPanel.visible = false;
scene.JackiePanel.visible = false;
scene.MainPanel.visible = false;
scene.SecPanel.visible = false;
}
private function onEventSoundman(_arg1:SpilEvent){
var _local2:MovieClip;
_local2 = MovieClip(_arg1.transport);
switch (_arg1.event){
case SpilEvent.EVENT_MOUSECLICK:
scene.SoundmanPanel.visible = !(scene.SoundmanPanel.visible);
scene.RestPanel.visible = false;
scene.StagePanel.visible = false;
scene.SoundTablePanel.visible = false;
scene.BathPanel.visible = false;
scene.BarPanel.visible = false;
scene.EntPanel.visible = false;
scene.BarmanPanel.visible = false;
scene.JackiePanel.visible = false;
scene.MainPanel.visible = false;
scene.SecPanel.visible = false;
break;
case SpilEvent.EVENT_MOUSEOUT:
_local2.over.gotoAndStop(1);
break;
case SpilEvent.EVENT_MOUSEOVER:
_local2.over.play();
break;
};
}
public function onjackieInfoOut(_arg1:MouseEvent):void{
_arg1.target.filters = null;
scene.JackiePanel.visible = false;
}
private function onEventBath(_arg1:SpilEvent){
switch (_arg1.event){
case SpilEvent.EVENT_MOUSECLICK:
scene.BathPanel.visible = !(scene.BathPanel.visible);
scene.StagePanel.visible = false;
scene.BarPanel.visible = false;
scene.SoundTablePanel.visible = false;
scene.RestPanel.visible = false;
scene.EntPanel.visible = false;
scene.BarmanPanel.visible = false;
scene.SoundmanPanel.visible = false;
scene.JackiePanel.visible = false;
scene.MainPanel.visible = false;
scene.SecPanel.visible = false;
break;
};
}
private function onEventBuySoundman(_arg1:SpilEvent){
var _local2:MovieClip;
_local2 = MovieClip(_arg1.transport);
switch (_arg1.event){
case SpilEvent.EVENT_MOUSECLICK:
if ((Global.cash - valsCrew[1]) >= 0){
Global.crew[2] = 2;
scene.SoundmanPanel.visible = false;
scene.soundmanButton.visible = false;
tintEffect.setTint(0, 0);
scene.soundmanChar.transform.colorTransform = tintEffect;
scene.SoundmanPanel.btnBuy.visible = false;
scene.SoundmanPanel.btnCancel.visible = false;
scene.SoundmanPanel.panelAtribs.moneyS.visible = false;
scene.SoundmanPanel.panelAtribs.txtPrice.visible = false;
safedeleteSpilButton("soundmanUP");
scene.soundmanChar.addEventListener(MouseEvent.MOUSE_OVER, onsoundmanInfoOver, false, 0, true);
scene.soundmanChar.addEventListener(MouseEvent.MOUSE_OUT, onsoundmanInfoOut, false, 0, true);
Global.cash = (Global.cash - valsCrew[1]);
scene.mcIncome.text = String(Global.cash);
updateBtnBuy();
};
break;
case SpilEvent.EVENT_MOUSEOUT:
_local2.over.gotoAndStop(1);
break;
case SpilEvent.EVENT_MOUSEOVER:
_local2.over.play();
break;
};
}
private function onEventBuyBar(_arg1:SpilEvent){
var mc:MovieClip;
var item:Object;
var spilEvent = _arg1;
mc = MovieClip(spilEvent.transport);
switch (spilEvent.event){
case SpilEvent.EVENT_MOUSECLICK:
if ((Global.cash - valsUpBar[indBar]) >= 0){
Global.cash = (Global.cash - valsUpBar[indBar]);
scene.mcIncome.text = Global.cash;
for each (item in Global.upgrades) {
if (item.name.toLowerCase() == "bar"){
item.upType++;
indBar++;
scene.barUp.gotoAndStop(("up_" + String(item.upType)));
scene.BarPanel.visible = false;
updateBtnBuy();
if (indBar <= 2){
scene.BarPanel.mcTitle.txtTitleUpArea.text = Global.xmlLocalization.upgrade.barUp.title.(@id == indBar).text();
scene.BarPanel.txtDesc.text = Global.xmlLocalization.upgrade.barUpDesc.updesc.(@id == indBar).text();
scene.BarPanel.txtValUp.text = valsUpBar[indBar];
} else {
buttons["barUP"].disable();
};
};
};
};
break;
case SpilEvent.EVENT_MOUSEOUT:
mc.over.gotoAndStop(1);
break;
case SpilEvent.EVENT_MOUSEOVER:
mc.over.play();
break;
};
}
public function onsoundmanInfoOver(_arg1:MouseEvent):void{
var _local2:GlowFilter;
_local2 = new GlowFilter(0xFFFFFF, 1, 4, 4, 10, 3, false, false);
_arg1.target.filters = [_local2];
scene.JackiePanel.visible = false;
scene.BarmanPanel.visible = false;
scene.MainPanel.visible = false;
scene.SecPanel.visible = false;
if (((((((((((!(scene.RestPanel.visible)) && (!(scene.StagePanel.visible)))) && (!(scene.SoundTablePanel.visible)))) && (!(scene.BathPanel.visible)))) && (!(scene.EntPanel.visible)))) && (!(scene.BarPanel.visible)))){
scene.SoundmanPanel.visible = true;
};
}
public function onjackieInfoOver(_arg1:MouseEvent):void{
var _local2:GlowFilter;
_local2 = new GlowFilter(0xFFFFFF, 1, 4, 4, 10, 3, false, false);
_arg1.target.filters = [_local2];
scene.BarmanPanel.visible = false;
scene.SoundmanPanel.visible = false;
scene.MainPanel.visible = false;
scene.SecPanel.visible = false;
if (((((((((((!(scene.RestPanel.visible)) && (!(scene.StagePanel.visible)))) && (!(scene.SoundTablePanel.visible)))) && (!(scene.BathPanel.visible)))) && (!(scene.EntPanel.visible)))) && (!(scene.BarPanel.visible)))){
scene.JackiePanel.visible = true;
};
}
private function onEventJackie(_arg1:SpilEvent){
var _local2:MovieClip;
_local2 = MovieClip(_arg1.transport);
switch (_arg1.event){
case SpilEvent.EVENT_MOUSECLICK:
scene.JackiePanel.visible = !(scene.JackiePanel.visible);
scene.RestPanel.visible = false;
scene.StagePanel.visible = false;
scene.SoundTablePanel.visible = false;
scene.BathPanel.visible = false;
scene.BarPanel.visible = false;
scene.EntPanel.visible = false;
scene.BarmanPanel.visible = false;
scene.SoundmanPanel.visible = false;
scene.MainPanel.visible = false;
scene.SecPanel.visible = false;
break;
case SpilEvent.EVENT_MOUSEOUT:
_local2.over.gotoAndStop(1);
break;
case SpilEvent.EVENT_MOUSEOVER:
_local2.over.play();
break;
};
}
private function onEventBuyBath(_arg1:SpilEvent){
var mc:MovieClip;
var item:Object;
var spilEvent = _arg1;
mc = MovieClip(spilEvent.transport);
switch (spilEvent.event){
case SpilEvent.EVENT_MOUSECLICK:
if ((Global.cash - valsUpBath[indBath]) >= 0){
Global.cash = (Global.cash - valsUpBath[indBath]);
scene.mcIncome.text = Global.cash;
for each (item in Global.upgrades) {
if (item.name.toLowerCase() == "bathroom"){
item.upType++;
indBath++;
scene.bathUp.gotoAndStop(((Global.bandOnStage + "_up_") + String(item.upType)));
scene.BathPanel.visible = false;
updateBtnBuy();
if (indBath <= 2){
scene.BathPanel.mcTitle.txtTitleUpArea.text = Global.xmlLocalization.upgrade.bathUp.title.(@id == indBath).text();
scene.BathPanel.txtDesc.text = Global.xmlLocalization.upgrade.bathUpDesc.updesc.(@id == indBath).text();
scene.BathPanel.txtValUp.text = valsUpBath[indBath];
} else {
buttons["bathUP"].disable();
};
};
};
};
break;
case SpilEvent.EVENT_MOUSEOUT:
mc.over.gotoAndStop(1);
break;
case SpilEvent.EVENT_MOUSEOVER:
mc.over.play();
break;
};
}
public function onmainInfoOut(_arg1:MouseEvent):void{
_arg1.target.filters = null;
scene.MainPanel.visible = false;
}
public function onsoundmanInfoOut(_arg1:MouseEvent):void{
_arg1.target.filters = null;
scene.SoundmanPanel.visible = false;
}
private function onEventBuyJackie(_arg1:SpilEvent){
var _local2:MovieClip;
_local2 = MovieClip(_arg1.transport);
switch (_arg1.event){
case SpilEvent.EVENT_MOUSECLICK:
if ((Global.cash - valsCrew[2]) >= 0){
Global.crew[3] = 3;
scene.JackiePanel.visible = false;
scene.JackiePanel.btnBuy.visible = false;
scene.JackiePanel.btnCancel.visible = false;
scene.JackiePanel.panelAtribs.moneyS.visible = false;
scene.JackiePanel.panelAtribs.txtPrice.visible = false;
scene.jackieButton.visible = false;
tintEffect.setTint(0xFFFFFF, 0);
scene.jackieChar.transform.colorTransform = tintEffect;
safedeleteSpilButton("jackieUP");
scene.jackieChar.addEventListener(MouseEvent.MOUSE_OVER, onjackieInfoOver, false, 0, true);
scene.jackieChar.addEventListener(MouseEvent.MOUSE_OUT, onjackieInfoOut, false, 0, true);
Global.cash = (Global.cash - valsCrew[2]);
scene.mcIncome.text = Global.cash;
updateBtnBuy();
};
break;
case SpilEvent.EVENT_MOUSEOUT:
_local2.over.gotoAndStop(1);
break;
case SpilEvent.EVENT_MOUSEOVER:
_local2.over.play();
break;
};
}
private function onEventBar(_arg1:SpilEvent){
switch (_arg1.event){
case SpilEvent.EVENT_MOUSECLICK:
scene.BarPanel.visible = !(scene.BarPanel.visible);
scene.RestPanel.visible = false;
scene.StagePanel.visible = false;
scene.SoundTablePanel.visible = false;
scene.BathPanel.visible = false;
scene.EntPanel.visible = false;
scene.BarmanPanel.visible = false;
scene.SoundmanPanel.visible = false;
scene.JackiePanel.visible = false;
scene.MainPanel.visible = false;
scene.SecPanel.visible = false;
break;
};
}
private function onEventBuySoundT(_arg1:SpilEvent){
var mc:MovieClip;
var item:Object;
var spilEvent = _arg1;
mc = MovieClip(spilEvent.transport);
switch (spilEvent.event){
case SpilEvent.EVENT_MOUSECLICK:
if ((Global.cash - valsUpSoundT[indSoundT]) >= 0){
Global.cash = (Global.cash - valsUpSoundT[indSoundT]);
scene.mcIncome.text = Global.cash;
for each (item in Global.upgrades) {
if (item.name.toLowerCase() == "sound table"){
item.upType++;
indSoundT++;
scene.soundTableUp.gotoAndStop(("up_" + String((indSoundT - 1))));
scene.SoundTablePanel.visible = false;
updateBtnBuy();
if (indSoundT <= 2){
scene.SoundTablePanel.mcTitle.txtTitleUpArea.text = Global.xmlLocalization.upgrade.soundTUp.title.(@id == (indSoundT + 1)).text();
scene.SoundTablePanel.txtDesc.text = Global.xmlLocalization.upgrade.soundTUpDesc.updesc.(@id == (indSoundT + 1)).text();
scene.SoundTablePanel.txtValUp.text = valsUpSoundT[indSoundT];
} else {
buttons["soundTableUP"].disable();
};
};
};
};
break;
case SpilEvent.EVENT_MOUSEOUT:
mc.over.gotoAndStop(1);
break;
case SpilEvent.EVENT_MOUSEOVER:
mc.over.play();
break;
};
}
public function onAreaOut(_arg1:MouseEvent):void{
_arg1.target.filters = null;
}
private function safedeleteSpilButton(_arg1:String):void{
if (buttons[_arg1] != null){
(buttons[_arg1] as SpilButton).unregisterEvents();
delete buttons[_arg1];
buttons[_arg1] = null;
};
}
private function localizeSkills(_arg1:String):String{
var _local2:String;
_local2 = "";
if (_arg1 == "security"){
_local2 = Global.xmlLocalization.upgrade.security;
};
if (_arg1 == "bartending"){
_local2 = Global.xmlLocalization.upgrade.bartending;
};
if (_arg1 == "sound"){
_local2 = Global.xmlLocalization.upgrade.sound;
};
if (_arg1 == "none"){
_local2 = Global.xmlLocalization.upgrade.none;
};
if (_arg1 == "maintenance"){
_local2 = Global.xmlLocalization.upgrade.maintenance;
};
return (_local2);
}
public function onbarmanInfoOut(_arg1:MouseEvent):void{
_arg1.target.filters = null;
scene.BarmanPanel.visible = false;
}
private function setFXclickover(_arg1:String):void{
buttons[_arg1].setFxClick(Global.soundsFX["mouse_click"]);
buttons[_arg1].setFxOver(Global.soundsFX["mouse_over"]);
}
public function onAreaOver(_arg1:MouseEvent):void{
var _local2:GlowFilter;
_local2 = new GlowFilter(0xFFFFFF, 1, 4, 4, 10, 3, false, false);
_arg1.target.filters = [_local2];
}
private function onEventBuyStage(_arg1:SpilEvent){
var mc:MovieClip;
var item:Object;
var spilEvent = _arg1;
mc = MovieClip(spilEvent.transport);
switch (spilEvent.event){
case SpilEvent.EVENT_MOUSECLICK:
if ((Global.cash - valsUpStage[indStage]) >= 0){
Global.cash = (Global.cash - valsUpStage[indStage]);
scene.mcIncome.text = Global.cash;
for each (item in Global.upgrades) {
if (item.name.toLowerCase() == "stage"){
item.upType++;
indStage++;
scene.stageUp.gotoAndStop(("up_" + String(item.upType)));
scene.StagePanel.visible = false;
updateBtnBuy();
if (indStage <= 2){
scene.StagePanel.mcTitle.txtTitleUpArea.text = Global.xmlLocalization.upgrade.stageUp.title.(@id == indStage).text();
scene.StagePanel.txtDesc.text = Global.xmlLocalization.upgrade.stageUpDesc.updesc.(@id == indStage).text();
scene.StagePanel.txtValUp.text = valsUpStage[indStage];
} else {
buttons["stageUP"].disable();
};
};
};
};
break;
case SpilEvent.EVENT_MOUSEOUT:
mc.over.gotoAndStop(1);
break;
case SpilEvent.EVENT_MOUSEOVER:
mc.over.play();
break;
};
}
private function onLoadRestAreaUp():void{
SpilMovieClip.addLabelScript(scene.restUp, labelrest, null);
scene.restUp.out.mcRest.gotoAndStop(Global.bandOnStage.toLowerCase());
scene.restUp.over.mcRest.gotoAndStop(Global.bandOnStage.toLowerCase());
scene.restUp.down.mcRest.gotoAndStop(Global.bandOnStage.toLowerCase());
}
private function onEventStage(_arg1:SpilEvent){
switch (_arg1.event){
case SpilEvent.EVENT_MOUSECLICK:
scene.StagePanel.visible = !(scene.StagePanel.visible);
scene.BarPanel.visible = false;
scene.BathPanel.visible = false;
scene.SoundTablePanel.visible = false;
scene.RestPanel.visible = false;
scene.EntPanel.visible = false;
scene.BarmanPanel.visible = false;
scene.SoundmanPanel.visible = false;
scene.JackiePanel.visible = false;
scene.MainPanel.visible = false;
scene.SecPanel.visible = false;
break;
};
}
private function updateBtnBuy():void{
if ((Global.cash - valsUpEnt[indEnt]) <= 0){
scene.EntPanel.btnBuy.visible = false;
};
if ((Global.cash - valsUpRest[indRest]) <= 0){
scene.RestPanel.btnBuy.visible = false;
};
if ((Global.cash - valsUpBath[indBath]) <= 0){
scene.BathPanel.btnBuy.visible = false;
};
if (soundTableUpAval){
if ((Global.cash - valsUpSoundT[indSoundT]) <= 0){
scene.SoundTablePanel.btnBuy.visible = false;
};
};
if ((Global.cash - valsUpStage[indStage]) <= 0){
scene.StagePanel.btnBuy.visible = false;
};
if ((Global.cash - valsUpBar[indBar]) <= 0){
scene.BarPanel.btnBuy.visible = false;
};
if (scene.barmanButton.visible){
if ((Global.cash - valsCrew[0]) <= 0){
scene.BarmanPanel.btnBuy.visible = false;
};
};
if (scene.soundmanButton.visible){
if ((Global.cash - valsCrew[1]) <= 0){
scene.SoundmanPanel.btnBuy.visible = false;
};
};
if (scene.jackieButton.visible){
if ((Global.cash - valsCrew[2]) <= 0){
scene.JackiePanel.btnBuy.visible = false;
};
};
}
public function onsecInfoOut(_arg1:MouseEvent):void{
_arg1.target.filters = null;
scene.SecPanel.visible = false;
}
private function onEventBuyBarman(_arg1:SpilEvent){
var _local2:MovieClip;
_local2 = MovieClip(_arg1.transport);
switch (_arg1.event){
case SpilEvent.EVENT_MOUSECLICK:
if ((Global.cash - valsCrew[0]) >= 0){
Global.crew[1] = 1;
scene.BarmanPanel.visible = false;
scene.barmanButton.visible = false;
tintEffect.setTint(0xFFFFFF, 0);
scene.barmanChar.transform.colorTransform = tintEffect;
scene.BarmanPanel.btnBuy.visible = false;
scene.BarmanPanel.btnCancel.visible = false;
scene.BarmanPanel.panelAtribs.moneyS.visible = false;
scene.BarmanPanel.panelAtribs.txtPrice.visible = false;
safedeleteSpilButton("barmanUP");
scene.barmanChar.addEventListener(MouseEvent.MOUSE_OVER, onbarmanInfoOver, false, 0, true);
scene.barmanChar.addEventListener(MouseEvent.MOUSE_OUT, onbarmanInfoOut, false, 0, true);
Global.cash = (Global.cash - valsCrew[0]);
scene.mcIncome.text = String(Global.cash);
updateBtnBuy();
};
break;
case SpilEvent.EVENT_MOUSEOUT:
_local2.over.gotoAndStop(1);
break;
case SpilEvent.EVENT_MOUSEOVER:
_local2.over.play();
break;
};
}
public function onsecInfoOver(_arg1:MouseEvent):void{
var _local2:GlowFilter;
_local2 = new GlowFilter(0xFFFFFF, 1, 4, 4, 10, 3, false, false);
_arg1.target.filters = [_local2];
scene.JackiePanel.visible = false;
scene.BarmanPanel.visible = false;
scene.SoundmanPanel.visible = false;
scene.MainPanel.visible = false;
if (((((((((((!(scene.RestPanel.visible)) && (!(scene.StagePanel.visible)))) && (!(scene.SoundTablePanel.visible)))) && (!(scene.BathPanel.visible)))) && (!(scene.EntPanel.visible)))) && (!(scene.BarPanel.visible)))){
scene.SecPanel.visible = true;
};
}
public function onbarmanInfoOver(_arg1:MouseEvent):void{
var _local2:GlowFilter;
_local2 = new GlowFilter(0xFFFFFF, 1, 4, 4, 10, 3, false, false);
_arg1.target.filters = [_local2];
scene.JackiePanel.visible = false;
scene.SoundmanPanel.visible = false;
scene.MainPanel.visible = false;
scene.SecPanel.visible = false;
if (((((((((((!(scene.RestPanel.visible)) && (!(scene.StagePanel.visible)))) && (!(scene.SoundTablePanel.visible)))) && (!(scene.BathPanel.visible)))) && (!(scene.EntPanel.visible)))) && (!(scene.BarPanel.visible)))){
scene.BarmanPanel.visible = true;
};
}
private function onEventBarman(_arg1:SpilEvent){
var _local2:MovieClip;
_local2 = MovieClip(_arg1.transport);
switch (_arg1.event){
case SpilEvent.EVENT_MOUSECLICK:
scene.BarmanPanel.visible = !(scene.BarmanPanel.visible);
scene.RestPanel.visible = false;
scene.StagePanel.visible = false;
scene.SoundTablePanel.visible = false;
scene.BathPanel.visible = false;
scene.BarPanel.visible = false;
scene.EntPanel.visible = false;
scene.SoundmanPanel.visible = false;
scene.JackiePanel.visible = false;
scene.MainPanel.visible = false;
scene.SecPanel.visible = false;
break;
case SpilEvent.EVENT_MOUSEOUT:
_local2.over.gotoAndStop(1);
break;
case SpilEvent.EVENT_MOUSEOVER:
_local2.over.play();
break;
};
}
private function onEventBuyEnt(_arg1:SpilEvent){
var mc:MovieClip;
var item:Object;
var spilEvent = _arg1;
mc = MovieClip(spilEvent.transport);
switch (spilEvent.event){
case SpilEvent.EVENT_MOUSECLICK:
if ((Global.cash - valsUpEnt[indEnt]) >= 0){
Global.cash = (Global.cash - valsUpEnt[indEnt]);
scene.mcIncome.text = Global.cash;
for each (item in Global.upgrades) {
if (item.name.toLowerCase() == "entrance & exit"){
item.upType++;
indEnt++;
updateBtnBuy();
scene.EntPanel.visible = false;
if (indEnt <= 2){
scene.entUp.gotoAndStop("up");
scene.EntPanel.mcTitle.txtTitleUpArea.text = Global.xmlLocalization.upgrade.entryUp.title.(@id == indEnt).text();
scene.EntPanel.txtDesc.text = Global.xmlLocalization.upgrade.entryUpDesc.updesc.(@id == indEnt).text();
scene.EntPanel.txtValUp.text = valsUpEnt[indEnt];
} else {
scene.entUp.gotoAndStop("max");
SpilMovieClip.addLabelScript(scene.entUp, "max", onLoadEntAreaUp);
};
};
};
};
break;
case SpilEvent.EVENT_MOUSEOUT:
mc.over.gotoAndStop(1);
break;
case SpilEvent.EVENT_MOUSEOVER:
mc.over.play();
break;
};
}
private function onEventSoundTable(_arg1:SpilEvent){
switch (_arg1.event){
case SpilEvent.EVENT_MOUSECLICK:
scene.SoundTablePanel.visible = !(scene.SoundTablePanel.visible);
scene.StagePanel.visible = false;
scene.BarPanel.visible = false;
scene.BathPanel.visible = false;
scene.RestPanel.visible = false;
scene.EntPanel.visible = false;
scene.BarmanPanel.visible = false;
scene.SoundmanPanel.visible = false;
scene.JackiePanel.visible = false;
scene.MainPanel.visible = false;
scene.SecPanel.visible = false;
break;
};
}
public function onmainInfoOver(_arg1:MouseEvent):void{
var _local2:GlowFilter;
_local2 = new GlowFilter(0xFFFFFF, 1, 4, 4, 10, 3, false, false);
_arg1.target.filters = [_local2];
scene.SecPanel.visible = false;
scene.JackiePanel.visible = false;
scene.BarmanPanel.visible = false;
scene.SoundmanPanel.visible = false;
if (((((((((((!(scene.RestPanel.visible)) && (!(scene.StagePanel.visible)))) && (!(scene.SoundTablePanel.visible)))) && (!(scene.BathPanel.visible)))) && (!(scene.EntPanel.visible)))) && (!(scene.BarPanel.visible)))){
scene.MainPanel.visible = true;
};
}
private function onLoadEntAreaUp():void{
SpilMovieClip.addLabelScript(scene.entUp, "max", null);
scene.entUp.over.mcEnt.wall.gotoAndStop(Global.bandOnStage);
scene.entUp.down.mcEnt.wall.gotoAndStop(Global.bandOnStage);
scene.entUp.out.mcEnt.wall.gotoAndStop(Global.bandOnStage);
}
private function onEventRest(_arg1:SpilEvent){
switch (_arg1.event){
case SpilEvent.EVENT_MOUSECLICK:
scene.RestPanel.visible = !(scene.RestPanel.visible);
scene.StagePanel.visible = false;
scene.BarPanel.visible = false;
scene.BathPanel.visible = false;
scene.SoundTablePanel.visible = false;
scene.EntPanel.visible = false;
scene.BarmanPanel.visible = false;
scene.SoundmanPanel.visible = false;
scene.JackiePanel.visible = false;
scene.MainPanel.visible = false;
scene.SecPanel.visible = false;
break;
};
}
private function onEventEnt(_arg1:SpilEvent){
switch (_arg1.event){
case SpilEvent.EVENT_MOUSECLICK:
scene.EntPanel.visible = !(scene.EntPanel.visible);
scene.BathPanel.visible = false;
scene.StagePanel.visible = false;
scene.BarPanel.visible = false;
scene.SoundTablePanel.visible = false;
scene.RestPanel.visible = false;
scene.BarmanPanel.visible = false;
scene.SoundmanPanel.visible = false;
scene.JackiePanel.visible = false;
scene.MainPanel.visible = false;
scene.SecPanel.visible = false;
break;
};
}
private function onEventBuyRest(_arg1:SpilEvent){
var mc:MovieClip;
var item:Object;
var spilEvent = _arg1;
mc = MovieClip(spilEvent.transport);
switch (spilEvent.event){
case SpilEvent.EVENT_MOUSECLICK:
if ((Global.cash - valsUpRest[indRest]) >= 0){
Global.cash = (Global.cash - valsUpRest[indRest]);
scene.mcIncome.text = Global.cash;
for each (item in Global.upgrades) {
if (item.name.toLowerCase() == "resting"){
item.upType++;
indRest++;
labelrest = ("up_" + String(item.upType));
scene.restUp.gotoAndStop(labelrest);
SpilMovieClip.addLabelScript(scene.restUp, labelrest, onLoadRestAreaUp);
updateBtnBuy();
scene.RestPanel.visible = false;
if (indRest < 3){
scene.RestPanel.mcTitle.txtTitleUpArea.text = Global.xmlLocalization.upgrade.restUp.title.(@id == indRest).text();
scene.RestPanel.txtDesc.text = Global.xmlLocalization.upgrade.restUpDesc.updesc.(@id == indRest).text();
scene.RestPanel.txtValUp.text = valsUpRest[indRest];
} else {
buttons["restUP"].disable();
};
};
};
};
break;
case SpilEvent.EVENT_MOUSEOUT:
mc.over.gotoAndStop(1);
break;
case SpilEvent.EVENT_MOUSEOVER:
mc.over.play();
break;
};
}
}
}//package classes.game
Section 21
//Global (classes.global.Global)
package classes.global {
import spil.Sound.*;
import classes.game.*;
import flash.net.*;
import classes.manager.*;
import spil.Mouse.*;
public class Global {
public static var soundTrackRock:SpilSound;
public static var life:int = 5;
public static var failLevel:Boolean = false;
public static var clients:int = 0;
public static var soundTrackCountry:SpilSound;
public static var soundLevelFail:SpilSound;
private static var hostingdomain:String = localConnection.domain;
private static var m_SpilGroupUrl:Array = new Array();
public static var scoreLevel:int = 0;
public static var soundLevelCompleted:SpilSound;
public static var score:int = 0;
public static var soundsFX:Array;
public static var soundManager:SpilSoundManager = SpilSoundManager.getInstance();
public static var mouse:SpilMouse = null;
private static var localConnection:LocalConnection = new LocalConnection();
public static var manager:ManagerGAME = null;
public static var cash:Number = 0;
public static var m_localization_url1:String = "";
public static var m_localization_url2:String = "";
public static var main:Main = null;
public static var xmlLocalization:XML = null;
public static var bands:Array;
public static var crew:Array;
public static var localization_branding_nr:int = 0;
public static var localization_language_nr:int = 0;
public static var callFrig:Boolean = false;
public static var bandOnStage:String = "";
public static var cookie:SharedObject;
public static var upgrades:Array;
public static var energyMeter:EnergyMeter = null;
public static var soundTrackHiphop:SpilSound;
public static var soundStartTrackHiphop:SpilSound;
public static var soundTrackMenu:SpilSound;
public static var soundStartTrackRock:SpilSound;
public static var soundStartTrackCountry:SpilSound;
private static function getXMLLocalization8():XML{
var _local1:XML;
_local1 = new XML();
_local1 = <localization>
<symbol_cash>$</symbol_cash>
<loading>
<title>Caricamento...</title>
<msg>ALTRI GESTIONALI A TEMPO SU: </msg>
<msg2>ALTRI GIOCHI GESTIONALI A TEMPO SU: </msg2>
</loading>
<mainmenu>
<startgame>GIOCA</startgame>
<howtoplay>REGOLE</howtoplay>
<highscore>RECORD</highscore>
<moregames>ALTRI GIOCHI</moregames>
<continuegame>CONTINUA</continuegame>
<newgame>NUOVA PARTITA</newgame>
<quality>QUALITÀ: </quality>
<high>ALTA</high>
<medium>NORMALE</medium>
<low>BASSA</low>
<question>Riprendi o avvia un'altra partita:</question>
<warning>(Avviando una nuova partita, i tuoi dati verranno cancellati)</warning>
</mainmenu>
<howToPlay>
<title>REGOLE</title>
<mainmenu>MENU PRINCIPALE</mainmenu>
<game>GIOCO</game>
<next>AVANTI</next>
<back>INDIETRO</back>
<cash>DENARO $</cash>
<goal>OBIETTIVO $</goal>
<text1>1 - Quando inizia lo spettacolo, assicurati che tutte le aree funzionino adeguatamente.</text1>
<text2>2 - Se si verifica un problema, seleziona uno dei tuoi dipendenti e trascinalo nell'area dove è necessario intervenire.</text2>
<text3>3 - Verifica che ciascun dipendente indossi abiti attinenti alla sua specialità.</text3>
<text4>4 - Se un dipendente è stanco, porterà a termine le mansioni più lentamente. Offrigli una bevanda energetica per ripristinare le energie.</text4>
<text5>5 - Fai attenzione alle tue entrate! Se calano troppo, non supererai il livello.</text5>
<text6>6 - Acquista le migliorie per la Hall!</text6>
</howToPlay>
<game>
<play>GIOCA</play>
<goalReached>OBIETTIVO RAGGIUNTO</goalReached>
<levelStart>AVVIO LIVELLO</levelStart>
<goal>OBIETTIVO</goal>
<cash>DENARO</cash>
<menu>MENU</menu>
<tutoMsg>Bene, eccoci pronti. Trascina me e Nick nelle aree che necessitano il nostro intervento. Ricorda che non tutti sono bravi a fare tutto. Nick per esempio è un pessimo barista. Si scola più di quello che serve al banco... Se qualcuno di noi è stanco, prendi una bevanda energetica dal frigorifero. Cominciamo.</tutoMsg>
<tutoBtn>OK</tutoBtn>
<logotext>ALTRI GESTIONALI A TEMPO SU:</logotext>
</game>
<upgrade>
<intromsg>SI PARTE!</intromsg>
<tutoMsg>Ecco qui le aree principali e i dipendenti della Hall. Per ora siamo solo io e Nick ma assumeremo un barista quando avremo abbastanza denaro. Fai clic per ulteriori informazioni o fai clic su GIOCA per iniziare a tempo di rock!</tutoMsg>
<tutoMsg2>Il primo spettacolo è stato un successo! Ora posso permettermi di apportare delle migliorie a un'area della Hall o assumere un barista!</tutoMsg2>
<tutoBtn>OK</tutoBtn>
<play>GIOCA</play>
<cash>DENARO</cash>
<hire>ASSUMI</hire>
<buy>COMPRA</buy>
<back>INDIETRO</back>
<stageUp>
<title id="1">PALCO PRINCIPALE</title>
<title id="2">PALCO-MATICO</title>
</stageUp>
<restUp>
<title id="1">TORO ROSSO</title>
<title id="2">FORZATOR</title>
</restUp>
<bathUp>
<title id="1">TOILETTE PLUS 1000</title>
<title id="2">TECHNOILETTE</title>
</bathUp>
<soundTUp>
<title id="1">EQUALIZZATORE</title>
<title id="2">SFX-100</title>
<title id="3">SOUNDTRON 2000</title>
</soundTUp>
<barUp>
<title id="1">BAR-10</title>
<title id="2">TENDER-X 9000</title>
</barUp>
<entryUp>
<title id="1">CORDONE PROFESSIONALE</title>
<title id="2">PORTA AUTOMATICA</title>
</entryUp>
<stageUpDesc>
<updesc id="1">Un nuovo palco per le band che farà tremare la Hall!</updesc>
<updesc id="2">Il palco dei palchi! Tutte le band faranno a gara per suonare nella Hall!</updesc>
</stageUpDesc>
<restUpDesc>
<updesc id="1">Aumenta la tua produttività con questa bevanda energetica potenziata.</updesc>
<updesc id="2">FORZATOR: Più forza, più carica, più energia.</updesc>
</restUpDesc>
<bathUpDesc>
<updesc id="1">Toilette migliori. Nessuno potrà lamentarsi del bagno!</updesc>
<updesc id="2">L'ultimo ritrovato della tecnica nel campo dei sanitari!</updesc>
</bathUpDesc>
<soundTUpDesc>
<updesc id="1">Quest'apparecchiatura ti aiuterà a equalizzare la musica.</updesc>
<updesc id="2">SFX-100. Ottimo suono. Ottimo prezzo. Ottimi controlli. Ottimo!</updesc>
<updesc id="3">SOUNDTRON 2000: Il miglior set per il suono disponibile sul mercato.</updesc>
</soundTUpDesc>
<barUpDesc>
<updesc id="1">Con questo nuovo bar, serviremo i drink migliori della città!</updesc>
<updesc id="2">Grandi drink comportano grandi responsabilità.</updesc>
</barUpDesc>
<entryUpDesc>
<updesc id="1">Gestisci al meglio l'entrata e l'uscita dalla Hall!</updesc>
<updesc id="2">Falli entrare e falli rimanere dentro!</updesc>
</entryUpDesc>
<mainChar>MARY</mainChar>
<securityChar>NICK</securityChar>
<jackieChar>JACKIE</jackieChar>
<barmanChar>JUAN</barmanChar>
<soundmanChar>BOB</soundmanChar>
<security>Sicurezza</security>
<bartending>Servizio bar</bartending>
<sound>Qualità suoni</sound>
<none>Nessuno</none>
<maintenance>Manutenzione</maintenance>
</upgrade>
<progress>
<tutoBtn>OK</tutoBtn>
<tutoMsg>Primo giorno alla Hall... Forza! Quale band aprirà lo spettacolo? Per ora possiamo farla suonare spendendo poco, ma man mano che si esibirà nella Hall, sarà sempre più cara!</tutoMsg>
<choicemsg>SCEGLI UNA BAND:</choicemsg>
<next>AVANTI</next>
<back>INDIETRO</back>
<cash>DENARO</cash>
<cost>COSTO</cost>
<friday>VEN</friday>
<saturday>SAB</saturday>
<sunday>DOM</sunday>
<fans>Fans:</fans>
<choiceRock>ROCKETTARI URBANI</choiceRock>
<choiceCountry>JANE TWAIN</choiceCountry>
<choiceHiphop>HIP HOP TOP</choiceHiphop>
</progress>
<pause>
<title>IN PAUSA</title>
<resume>RIPRENDI</resume>
<soundfx>EFFETTI SONORI</soundfx>
<music>MUSICA</music>
<on>ON</on>
<off>OFF</off>
</pause>
<scorescreen>
<levelcompleted>LIVELLO COMPLETATO!</levelcompleted>
<fail>LIVELLO NON COMPLETATO!</fail>
<ok>OK</ok>
<tryagain>VUOI RIPROVARE?</tryagain>
<levelscore>Punteggio livello</levelscore>
<totalscore>Punteggio totale</totalscore>
</scorescreen>
<gameOver>
<title>GAME OVER</title>
<score>Your Score</score>
<name>Your Name</name>
</gameOver>
<victory>
<title>VITTORIA!!</title>
<score>Tuo punteggio</score>
<name>Tuo nome</name>
<submit>INVIA PUNTEGGIO</submit>
</victory>
<highscore>
<title>RECORD</title>
<name>NOME</name>
<score>PUNTEGGIO</score>
<rank>POSIZ.</rank>
<menu>MENU PRINCIPALE</menu>
<moregames>ALTRI GIOCHI</moregames>
</highscore>
</localization>
;
return (_local1);
}
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 = getXMLLocalization13();
break;
case 15:
xmlLocalization = getXMLLocalization15();
break;
case 16:
xmlLocalization = getXMLLocalization16();
break;
case 17:
xmlLocalization = getXMLLocalization17();
break;
case 18:
xmlLocalization = getXMLLocalization13();
break;
case 19:
xmlLocalization = getXMLLocalization19();
break;
};
}
public static function isSpilGroup():Boolean{
var _local1:int;
_local1 = 0;
while (_local1 < m_SpilGroupUrl.length) {
if (localConnection.domain == m_SpilGroupUrl[_local1]){
return (true);
};
_local1++;
};
return (false);
}
public static function set localization_url1(_arg1:String):void{
m_localization_url1 = _arg1;
}
public static function set localization_url2(_arg1:String):void{
m_localization_url2 = _arg1;
}
private static function getXMLLocalization19():XML{
var _local1:XML;
_local1 = new XML();
_local1 = <localization>
<symbol_cash>$</symbol_cash>
<loading>
<title>読み込み中...</title>
<msg>処理中...</msg>
<msg2>ゲームで遊ぶ: </msg2>
</loading>
<mainmenu>
<startgame>スタート</startgame>
<howtoplay>遊び方</howtoplay>
<highscore>ハイスコア</highscore>
<moregames>他のゲームをもっと遊ぶ</moregames>
<continuegame>ゲームを再開する</continuegame>
<newgame>新しいゲーム</newgame>
<quality>クオリティ: </quality>
<high>高</high>
<medium>標準</medium>
<low>低</low>
<question>再開するまたは新しくゲームを始める:</question>
<warning>(新しくゲームを始めると、前回のデータは消えてしまいます)</warning>
</mainmenu>
<howToPlay>
<title>遊び方</title>
<mainmenu>メインメニュー</mainmenu>
<game>ゲーム</game>
<next>次へ</next>
<back>戻る</back>
<cash>資金 $</cash>
<goal>目標 $</goal>
<text1>1 - ショーの進行に応じて、全てのエリアがうまく運営されているかどうか確認します。</text1>
<text2>2 - もし問題が発生したら、スタッフの一人をそのエリアまでドラッグします。</text2>
<text3>3 - スタッフは、それぞれ自分の特性に応じた色の服を着ていることに注意してください。</text3>
<text4>4 - スタッフは、疲れると仕事するのに時間がかかってしまいます。疲れたスタッフにエネルギードリンクをあげて、疲れを回復させてあげましょう。</text4>
<text5>5 - 収入を確認しましょう!収入が大幅に下がってしまうと、レベルも下がってしまいます。</text5>
<text6>6 - アップグレードアイテムを購入して、ホールを盛り上げましょう!</text6>
</howToPlay>
<game>
<play>スタート</play>
<goalReached>達成したノルマ</goalReached>
<levelStart>レベルスタート</levelStart>
<goal>目標</goal>
<cash>資金</cash>
<menu>メニュー</menu>
<tutoMsg>じゃあ、始めるわよ。私とニックをドラッグして注意が必要な場所へ連れて行って。スタッフにはそれぞれ得意不得意があるってことを覚えておいてね。例えば、ニックはバーテンダーには向いてないの。彼、自分でついだ以上に飲んじゃうから…もし私たちが疲れた時は、冷蔵庫からエネルギードリンクを出すといいわ。じゃあやってみるわよ。</tutoMsg>
<tutoBtn>OK</tutoBtn>
<logotext>処理中...</logotext>
</game>
<upgrade>
<intromsg>ロック魂UP!</intromsg>
<tutoMsg>ホールのメインエリアとスタッフよ。今は私とニックだけだけど、資金が十分にあれば、バーテンダーを雇うことが出来るわ。クリックして説明を見るか、スタートボタンを押して、ゲームを始めましょう!</tutoMsg>
<tutoMsg2>初めてのショーは大成功だったわ!ホールをアップグレードするか、バーテンダーを雇うことが出来るわ。</tutoMsg2>
<tutoBtn>OK</tutoBtn>
<play>スタート</play>
<cash>資金</cash>
<hire>雇う</hire>
<buy>購入する</buy>
<back>戻る</back>
<stageUp>
<title id="1">MAIN STAGE</title>
<title id="2">STAGE-O-MATIC</title>
</stageUp>
<restUp>
<title id="1">BIRU MERAH</title>
<title id="2">PWRATOR</title>
</restUp>
<bathUp>
<title id="1">B-ROOM PLUS 1000</title>
<title id="2">TECHNITARY</title>
</bathUp>
<soundTUp>
<title id="1">THE EQUALIZER</title>
<title id="2">SFX-100</title>
<title id="3">SOUNDTRON 2000</title>
</soundTUp>
<barUp>
<title id="1">BAR-K</title>
<title id="2">TENDER-X 9000</title>
</barUp>
<entryUp>
<title id="1">PRO-ORGANIZER CORD</title>
<title id="2">DOOR-O-TRON</title>
</entryUp>
<stageUpDesc>
<updesc id="1">バンドがホールを盛り上げるための新しいステージよ!</updesc>
<updesc id="2">究極のステージ!どのバンドもホールで演奏したがるわ!</updesc>
</stageUpDesc>
<restUpDesc>
<updesc id="1">改良型エネルギードリンクでもっとエキサイト!</updesc>
<updesc id="2">パワーレイター:もっとパワーを、もっとチャージを、もっとエネルギーを!</updesc>
</restUpDesc>
<bathUpDesc>
<updesc id="1">綺麗な化粧室。これなら誰も文句は言わないわ!</updesc>
<updesc id="2">サニタリー技術は最新で最高!</updesc>
</bathUpDesc>
<soundTUpDesc>
<updesc id="1">サウンドテーブルで、音楽を調整できるわ!</updesc>
<updesc id="2">SFX-100: グッドサウンド、グッドプライス、グッドコントロール、すばらしい!</updesc>
<updesc id="3">SOUNDTRON 2000: お金で買える最高のサウンドテーブル</updesc>
</soundTUpDesc>
<barUpDesc>
<updesc id="1">このバーがあれば、町で一番のドリンクが出せるわ!</updesc>
<updesc id="2">最高のドリンクで責任感UP!</updesc>
</barUpDesc>
<entryUpDesc>
<updesc id="1">ホールからの出入り口の設置!</updesc>
<updesc id="2">お客を呼んだら惹きつけておく!</updesc>
</entryUpDesc>
<mainChar>MARY</mainChar>
<securityChar>NICK</securityChar>
<jackieChar>JACKIE</jackieChar>
<barmanChar>JUAN</barmanChar>
<soundmanChar>BOB</soundmanChar>
<security>セキュリティ</security>
<bartending>バーテンディング</bartending>
<sound>サウンド</sound>
<none>ゼロ!</none>
<maintenance>メインエントランス</maintenance>
</upgrade>
<progress>
<tutoBtn>OK</tutoBtn>
<tutoMsg>ホールでの最初の日。...ロックオン!オープニングバンドは誰になるかしら?まだ今は駆け出しだけど、ホールでの演奏を重ねるたびに一人前になっていくわ!</tutoMsg>
<choicemsg>バンドの選択:</choicemsg>
<next>次へ</next>
<back>戻る</back>
<cash>資金</cash>
<cost>コスト</cost>
<friday>金曜日</friday>
<saturday>土曜日</saturday>
<sunday>日曜日</sunday>
<fans>Fans:</fans>
<choiceRock>CITY ROCKERS</choiceRock>
<choiceCountry>DIXIE JANE</choiceCountry>
<choiceHiphop>HIPPIN' HOPPERS</choiceHiphop>
</progress>
<pause>
<title>中断中</title>
<resume>再開する</resume>
<soundfx>サウンド調整</soundfx>
<music>ミュージック</music>
<on>オン</on>
<off>オフ</off>
</pause>
<scorescreen>
<levelcompleted>レベルクリア!</levelcompleted>
<fail>レベルダウン!</fail>
<ok>OK</ok>
<tryagain>もう1度トライしますか</tryagain>
<levelscore>レベルスコア</levelscore>
<totalscore>トータルスコア</totalscore>
</scorescreen>
<gameOver>
<title>GAME OVER</title>
<score>Twój Wynik</score>
<name>Twoje Imię</name>
</gameOver>
<victory>
<title>勝利!</title>
<score>あなたのスコア</score>
<name>あなたの名前</name>
<submit>スコアを登録する</submit>
</victory>
<highscore>
<title>ハイスコア</title>
<name>名前</name>
<score>スコア</score>
<rank>ランク</rank>
<menu>メインメニュー</menu>
<moregames>他のゲームをもっと遊ぶ</moregames>
</highscore>
</localization>
;
return (_local1);
}
private static function getXMLLocalization1():XML{
var _local1:XML;
_local1 = new XML();
_local1 = <localization>
<symbol_cash>$</symbol_cash>
<loading>
<title>Loading...</title>
<msg>MORE TIME MANAGEMENT AT: </msg>
<msg2>PLAY MORE TIME MANAGEMENT GAMES AT: </msg2>
</loading>
<mainmenu>
<startgame>PLAY</startgame>
<howtoplay>HOW TO PLAY</howtoplay>
<highscore>HIGH SCORES</highscore>
<moregames>MORE GAMES</moregames>
<continuegame>CONTINUE</continuegame>
<newgame>NEW GAME</newgame>
<quality>QUALITY: </quality>
<high>BEST</high>
<medium>NORMAL</medium>
<low>LOW</low>
<question>Resume or start a new game:</question>
<warning>(Starting a new game will erase your data)</warning>
</mainmenu>
<howToPlay>
<title>HOW TO PLAY</title>
<mainmenu>MAIN MENU</mainmenu>
<game>GAME</game>
<next>NEXT</next>
<back>BACK</back>
<cash>CASH $</cash>
<goal>GOAL $</goal>
<text1>1 - As the show goes on, make sure all the areas are runing.</text1>
<text2>2 - If a problem occurs, pick up one of your workers and drag him to that area.</text2>
<text3>3 - Note that each worker wears clothes according to his/her specialty.</text3>
<text4>4 - If a worker gets tired, (s)he will take longer to perform tasks. Give tired workers energy drinks to restore them to full energy!</text4>
<text5>5 - Watch your income! If it drops too much, you will fail the level.</text5>
<text6>6 - Buy upgrades to get The Hall rockin'!</text6>
</howToPlay>
<game>
<play>PLAY</play>
<goalReached>GOAL REACHED</goalReached>
<levelStart>LEVEL START</levelStart>
<goal>GOAL</goal>
<cash>CASH</cash>
<menu>MENU</menu>
<tutoMsg>Alright, here we go. Just drag me and Nick to the areas that need attention. Remember, not everyone is good at everything. Nick here is bad at bartending, for example. He drinks more than he pours... If one of us gets tired, get us a power drink from the refrigerator. Let's do this.</tutoMsg>
<tutoBtn>OK</tutoBtn>
<logotext>MORE TIME MANAGEMENT AT:</logotext>
</game>
<upgrade>
<intromsg>ROCK IT UP!</intromsg>
<tutoMsg>These are the main areas and employees at The Hall. Its just me and Nick right now, but we will get a bartender when I have enough cash. Click around for info or just press PLAY to start rockin'!</tutoMsg>
<tutoMsg2>The first show was awesome! Now I can afford to upgrade an area of The Hall or hire a bartender!</tutoMsg2>
<tutoBtn>OK</tutoBtn>
<play>PLAY</play>
<cash>CASH</cash>
<hire>HIRE</hire>
<buy>BUY</buy>
<back>BACK</back>
<stageUp>
<title id="1">MAIN STAGE</title>
<title id="2">STAGE-O-MAGIC</title>
</stageUp>
<restUp>
<title id="1">RED BLUE</title>
<title id="2">POWRATOR</title>
</restUp>
<bathUp>
<title id="1">B-ROOM PLUS 1000</title>
<title id="2">TECHNITARY</title>
</bathUp>
<soundTUp>
<title id="1">THE EQUALIZER</title>
<title id="2">SFX-100</title>
<title id="3">SOUNDTRON 2000</title>
</soundTUp>
<barUp>
<title id="1">BAR-K</title>
<title id="2">TENDER-X 9000</title>
</barUp>
<entryUp>
<title id="1">PRO-ORGANIZER CORD</title>
<title id="2">DOOR-O-TRON</title>
</entryUp>
<stageUpDesc>
<updesc id="1">A new stage for the bands to rock The Hall!</updesc>
<updesc id="2">The ultimate stage! Every band will want to play in The Hall!</updesc>
</stageUpDesc>
<restUpDesc>
<updesc id="1">Get your kicks and get kicking with the improved energy drink.</updesc>
<updesc id="2">PWRATOR: More power, more charges, more energy.</updesc>
</restUpDesc>
<bathUpDesc>
<updesc id="1">Better bathrooms. Nobody complains about better bathrooms!</updesc>
<updesc id="2">The latest and greatest in sanitary technology!</updesc>
</bathUpDesc>
<soundTUpDesc>
<updesc id="1">This sound table will help equalize the music.</updesc>
<updesc id="2">SFX-100. Good sound. Good price. Good controls. Good.</updesc>
<updesc id="3">SOUNDTRON 2000: the best sound table money can buy.</updesc>
</soundTUpDesc>
<barUpDesc>
<updesc id="1">With this new bar, we will serve the best drinks in town!</updesc>
<updesc id="2">With great drinks come great responsabilities.</updesc>
</barUpDesc>
<entryUpDesc>
<updesc id="1">Organize entry and exit from The Hall!</updesc>
<updesc id="2">Get'em in and keep'em in!</updesc>
</entryUpDesc>
<mainChar>MARY</mainChar>
<securityChar>NICK</securityChar>
<jackieChar>JACKIE</jackieChar>
<barmanChar>JUAN</barmanChar>
<soundmanChar>BOB</soundmanChar>
<security>Security</security>
<bartending>Bartending</bartending>
<sound>Sound</sound>
<none>None</none>
<maintenance>Maintenance</maintenance>
</upgrade>
<progress>
<tutoBtn>OK</tutoBtn>
<tutoMsg>The first day at The Hall... Rock on! Who will be the opening band? We can get 'em for cheap now, but they will get more expensive every time they rock The Hall!</tutoMsg>
<choicemsg>CHOOSE A BAND:</choicemsg>
<next>NEXT</next>
<back>BACK</back>
<cash>CASH</cash>
<cost>COST</cost>
<friday>FRI</friday>
<saturday>SAT</saturday>
<sunday>SUN</sunday>
<fans>FANS:</fans>
<choiceRock>CITY ROCKERS</choiceRock>
<choiceCountry>DIXIE JANE</choiceCountry>
<choiceHiphop>HIPPIN' HOPPERS</choiceHiphop>
</progress>
<pause>
<title>PAUSED</title>
<resume>RESUME</resume>
<soundfx>SOUND FX</soundfx>
<music>MUSIC</music>
<on>ON</on>
<off>OFF</off>
</pause>
<scorescreen>
<levelcompleted>LEVEL COMPLETED!</levelcompleted>
<fail>WORST SHOW EVER...</fail>
<ok>OK</ok>
<tryagain>TRY AGAIN</tryagain>
<levelscore>Level Score</levelscore>
<totalscore>Total Score</totalscore>
</scorescreen>
<gameOver>
<title>GAME OVER</title>
<score>Your Score</score>
<name>Your Name</name>
</gameOver>
<victory>
<title>YOU ROCK HARD!!</title>
<score>Your Score</score>
<name>Your Name</name>
<submit>SUBMIT SCORE</submit>
</victory>
<highscore>
<title>HIGH SCORES</title>
<name>NAME</name>
<score>SCORE</score>
<rank>RANK</rank>
<menu>MAIN MENU</menu>
<moregames>MORE GAMES</moregames>
</highscore>
</localization>
;
return (_local1);
}
private static function getXMLLocalization15():XML{
var _local1:XML;
_local1 = new XML();
_local1 = <localization>
<symbol_cash>$</symbol_cash>
<loading>
<title>Yükleniyor...</title>
<msg>DİĞER ZAMAN YÖNETİMİ OYUNLARI: </msg>
<msg2>DİĞER ZAMAN YÖNETİMİ OYUNLARINA GÖZ ATIN: </msg2>
</loading>
<mainmenu>
<startgame>OYNA</startgame>
<howtoplay>NASIL OYNANIR?</howtoplay>
<highscore>EN YÜKSEK SKORLAR</highscore>
<moregames>DİĞER OYUNLAR</moregames>
<continuegame>DEVAM</continuegame>
<newgame>YENİ OYUN</newgame>
<quality>KALİTE: </quality>
<high>EN İYİ</high>
<medium>NORMAL</medium>
<low>DÜŞÜK</low>
<question>Devam et veya yeni oyuna başla:</question>
<warning>(Yeni oyuna başlarsanız verileriniz silinecek)</warning>
</mainmenu>
<howToPlay>
<title>NASIL OYNANIR?</title>
<mainmenu>ANA MENÜ</mainmenu>
<game>OYUN</game>
<next>İLERİ</next>
<back>GERİ</back>
<cash>NAKİT $</cash>
<goal>HEDEF $</goal>
<text1>1 - Kulübü canlı tutmak için bütün bölümlerin sorunsuz çalıştığından emin olun.</text1>
<text2>2 - Bir sorun olursa çalışanlarınızdan birini o bölüme yönlendirin.</text2>
<text3>3 - Her çalışan yaptığı işe uygun kıyafet giyer.</text3>
<text4>4 - Çalışanlar yorulursa görevini yapması uzun sürer. Yorulan çalışanların enerjilerini geri kazanmaları için onlara enerji içeceği verin!</text4>
<text5>5 - Gelirinize dikkat edin! Çok fazla düşerse seviye başarısız olur.</text5>
<text6>6 - Hall'ı canlı tutmak için yükseltme satın alın!</text6>
</howToPlay>
<game>
<play>OYNA</play>
<goalReached>HEDEFE ULAŞILDI</goalReached>
<levelStart>SEVİYE BAŞLANGICI</levelStart>
<goal>HEDEF</goal>
<cash>NAKİT</cash>
<menu>MENÜ</menu>
<tutoMsg>Pekala, işte başlıyoruz. Nick ve beni ilgilenilmesi gereken bölümlere sürükleyin. Sakın unutmayın, herkes her işte iyi değildir. Mesela Nick barmenlikte iyi değildir. Hazırladığından fazla içki içer... İçimizden bir yorulursa buzdolabından enerji içeceği getirin. Hadi işe koyulalım.</tutoMsg>
<tutoBtn>Tamam</tutoBtn>
<logotext>DİĞER ZAMAN YÖNETİMİ OYUNLARI:</logotext>
</game>
<upgrade>
<intromsg>ORTALIĞI SALLAYIN!</intromsg>
<tutoMsg>Bunlar Hall'daki başlıca bölümler ve çalışanlar. Şimdilik sadece Nick ve ben varım ama yeterli paramız olduğunda bir barmen alacağız. Bilgi almak için tıklayın veya hemen işe başlamak için sadece OYNA'e basın!</tutoMsg>
<tutoMsg2>İlk gösteri muhteşemdi! Şimdi Hall'daki bir bölümü yükseltebilecek ya da bir barmen çalıştıracak kadar param var!</tutoMsg2>
<tutoBtn>Tamam</tutoBtn>
<play>OYNA</play>
<cash>NAKİT</cash>
<hire>İŞE AL</hire>
<buy>SATIN AL</buy>
<back>GERİ</back>
<stageUp>
<title id="1">ANA SAHNE</title>
<title id="2">SAHNEMATİK</title>
</stageUp>
<restUp>
<title id="1">KIRMIZI MAVİ</title>
<title id="2">ENERJATÖR</title>
</restUp>
<bathUp>
<title id="1">WC+ 1000</title>
<title id="2">SAĞLIKOLOJİ</title>
</bathUp>
<soundTUp>
<title id="1">EQUALIZER</title>
<title id="2">SFX-100</title>
<title id="3">SESTRONİK 2000</title>
</soundTUp>
<barUp>
<title id="1">BAR-K</title>
<title id="2">HASSAS-X 9000</title>
</barUp>
<entryUp>
<title id="1">PRO-ORGANİZATÖR</title>
<title id="2">OTOMATİK KAPI</title>
</entryUp>
<stageUpDesc>
<updesc id="1">Hall'ı sallayacak gruplar için yeni bir sahne!</updesc>
<updesc id="2">Muhteşem sahne! Bütün gruplar Hall'da sahne almak isteyecek!</updesc>
</stageUpDesc>
<restUpDesc>
<updesc id="1">Geliştirilmiş enerji içeceğinin tadını çıkarın ve canlanın.</updesc>
<updesc id="2">ENERJATÖR: Daha fazla güç, daha fazla kuvvet, daha fazla enerji.</updesc>
</restUpDesc>
<bathUpDesc>
<updesc id="1">Daha lüks tuvaletler. Kimse lüks tuvaletten şikayet etmez!</updesc>
<updesc id="2">En yeni ve en güzel sağlık teknolojisi!</updesc>
</bathUpDesc>
<soundTUpDesc>
<updesc id="1">Bu mikser müziği dengelemeye yardımcı olacak.</updesc>
<updesc id="2">SFX-100. Ses iyi. Fiyat iyi. Kontrol iyi. Her şey iyi.</updesc>
<updesc id="3">SESTRONİK 2000: paranın satın alabileceği en iyi mikser.</updesc>
</soundTUpDesc>
<barUpDesc>
<updesc id="1">Bu yeni barla kasabalılara en iyi içkileri sunacaksınız!</updesc>
<updesc id="2">Olağanüstü içkiler olağanüstü sorumlulukları da beraberinde getirir.</updesc>
</barUpDesc>
<entryUpDesc>
<updesc id="1">Hall'a giriş çıkışları organize edin!</updesc>
<updesc id="2">İçeri alın ve içeridekileri kontrol edin!</updesc>
</entryUpDesc>
<mainChar>MARY</mainChar>
<securityChar>NICK</securityChar>
<jackieChar>JACKIE</jackieChar>
<barmanChar>JUAN</barmanChar>
<soundmanChar>BOB</soundmanChar>
<security>Güvenlik</security>
<bartending>Barmenlik</bartending>
<sound>Ses</sound>
<none>Hiçbiri</none>
<maintenance>Bakım</maintenance>
</upgrade>
<progress>
<tutoBtn>Tamam</tutoBtn>
<tutoMsg>Hall'da ilk gün... Müzik başlasın! Açılış grubu kim olacak? Şarkıcıları şimdi ucuza çalıştırabiliriz ama Hall'da iyi performans sergiledikçe fiyatları artacak!</tutoMsg>
<choicemsg>BİR GRUP SEÇİN:</choicemsg>
<next>İLERİ</next>
<back>GERİ</back>
<cash>NAKİT</cash>
<cost>FİYAT</cost>
<friday>CU</friday>
<saturday>СT</saturday>
<sunday>PZ</sunday>
<fans>Fans:</fans>
<choiceRock>CITY ROCKERS</choiceRock>
<choiceCountry>DIXIE JANE</choiceCountry>
<choiceHiphop>HIPPIN' HOPPERS</choiceHiphop>
</progress>
<pause>
<title>DURAKLATILDI</title>
<resume>DEVAM ET</resume>
<soundfx>SES EFEKTLERİ</soundfx>
<music>MÜZİK</music>
<on>AÇIK</on>
<off>KAPALI</off>
</pause>
<scorescreen>
<levelcompleted>SEVİYE TAMAMLANDI!</levelcompleted>
<fail>SEVİYE TAMAMLANAMADI!</fail>
<ok>Tamam</ok>
<tryagain>TEKRAR DENE</tryagain>
<levelscore>Seviye Skoru</levelscore>
<totalscore>Toplam Skor</totalscore>
</scorescreen>
<gameOver>
<title>GAME OVER</title>
<score>Twój Wynik</score>
<name>Twoje Imię</name>
</gameOver>
<victory>
<title>ZAFER!!</title>
<score>Skorunuz</score>
<name>Adınız</name>
<submit>SKORU KAYDET</submit>
</victory>
<highscore>
<title>EN YÜKSEK SKORLAR</title>
<name>İSİM</name>
<score>SKOR</score>
<rank>SIRA</rank>
<menu>ANA MENÜ</menu>
<moregames>DİĞER OYUNLAR</moregames>
</highscore>
</localization>
;
return (_local1);
}
private static function getXMLLocalization16():XML{
var _local1:XML;
_local1 = new XML();
_local1 = <localization>
<symbol_cash>$</symbol_cash>
<loading>
<title>Memuat...</title>
<msg>LEBIH BANYAK PENGURUSAN MASA DI:</msg>
<msg2>PERMAINAN DI: </msg2>
</loading>
<mainmenu>
<startgame>MAIN</startgame>
<howtoplay>BAGAIMANA UNTUK MAIN</howtoplay>
<highscore>SKOR TERTINGGI</highscore>
<moregames>LABIH BANYAK PERMAINAN</moregames>
<continuegame>TERUSKAN</continuegame>
<newgame>PERMAINAN BARU</newgame>
<quality>KUALITI: </quality>
<high>TINGGI</high>
<medium>MEDIUM</medium>
<low>RENDAH</low>
<question>Sambung atau mulakan permainan baru:</question>
<warning>(Memulakan permainan baru akan memadam data anda)</warning>
</mainmenu>
<howToPlay>
<title>BAGAIMANA UNTUK MAIN</title>
<mainmenu>MENU UTAMA</mainmenu>
<game>PERMAINAN</game>
<next>SETERUSNYA</next>
<back>UNDUR</back>
<cash>TUNAI $</cash>
<goal>MATLAMAT $</goal>
<text1>1 - Semasa pertunjukkan berlangsung, pastikan semua kawasan berjalan.</text1>
<text2>2 - Jika masalah berlaku, pilih salah seorang pekerja anda dan seret dia ke kawasan tersebut.</text2>
<text3>3 - Ambil perhatian bahawa semua pekerja memakai pakaian mengikut kepakaran mereka. </text3>
<text4>4 - Jika pekerja telah penat, dia akan melakukan kerja dengan lebih perlahan. Berikan minuman tenaga kepada pekerja yang keletihan untuk memulihkan tenaga yang penuh kepada mereka!</text4>
<text5>5 - Perhatikan pendapatan anda! Jika ia menurun dengan terlampau banyak, anda akan gagal tahap tersebut.</text5>
<text6>6 - Beli baik taraf untuk menikmati permainan The Hall ini sepenuhnya!</text6>
</howToPlay>
<game>
<play>MAIN</play>
<goalReached>MATLAMAT DICAPAI</goalReached>
<levelStart>TAHAP MULA</levelStart>
<goal>MATLAMAT</goal>
<cash>TUNAI</cash>
<menu>MENU</menu>
<tutoMsg>Baiklah, begini caranya. Hanya seret saya dan Nick ke kawasan yang memerlukan perhatian. Ingat, bukan semua orang bagus dalam semua bidang. Nick sangat teruk dalam melayan di bar, sebagai contoh. Dia minum lebih banyak daripada yang dituang... Jika salah seorang daripada kami keletihan, berikan kami minuman kuasa di dalam peti sejuk. Mari lakukannya.</tutoMsg>
<tutoBtn>OK</tutoBtn>
<logotext>LEBIH BANYAK PENGURUSAN MASA DI:</logotext>
</game>
<upgrade>
<intromsg>GEGARKANNYA!</intromsg>
<tutoMsg>Ini adalah kawasan utama dan para pekerja berada di Dewan. Hanya saya dan Nick di sini sekarang, tapi kami akan mendapatkan pelayan bar apabila saya mempunyai wang yang cukup. Klik di sekeliling untuk mendapatkan maklumat atau hanya tekan MAIN untuk mulakannya'!</tutoMsg>
<tutoMsg2>Persembahan pertama sangat mengagumkan! Kini saya boleh menaik taraf The Hall atau mengupah seorang pelayan bar!</tutoMsg2>
<tutoBtn>OK</tutoBtn>
<play>MAIN</play>
<cash>UANG</cash>
<hire>UPAH</hire>
<buy>BELI</buy>
<back>UNDUR</back>
<stageUp>
<title id="1">PENTAS UTAMA</title>
<title id="2">STAGE-O-MATIC</title>
</stageUp>
<restUp>
<title id="1">BIRU MERAH</title>
<title id="2">PWRATOR</title>
</restUp>
<bathUp>
<title id="1">B-ROOM PLUS 1000</title>
<title id="2">TECHNITARY</title>
</bathUp>
<soundTUp>
<title id="1">PENYAMA</title>
<title id="2">SFX-100</title>
<title id="3">SOUNDTRON 2000</title>
</soundTUp>
<barUp>
<title id="1">BAR-K</title>
<title id="2">TENDER-X-9000</title>
</barUp>
<entryUp>
<title id="1">KORD PRO-PENGATUR</title>
<title id="2">DOOR-O-TRON</title>
</entryUp>
<stageUpDesc>
<updesc id="1">Pentas baru bagi kumpulan muzik menggegarkan The Hall!</updesc>
<updesc id="2">Pentas terhebat! Setiap kumpulan muzik mahu membuat persembahan di The Hall!</updesc>
</stageUpDesc>
<restUpDesc>
<updesc id="1">Dapatkan tenaga anda dan terus bertenaga dengan minuman tenaga yang dipertingkatkan.</updesc>
<updesc id="2">PWRATOR: Lebih banyak kuasa, lebih banyak caj, lebih banyak tenaga.</updesc>
</restUpDesc>
<bathUpDesc>
<updesc id="1">Bilik air yang lebih baik. Tiada ada orang yang mengadu mengenai bilik air yang lebih baik!</updesc>
<updesc id="2">Teknologi kebersihan yang terkini dan terhebat! </updesc>
</bathUpDesc>
<soundTUpDesc>
<updesc id="1">Meja bunyi ini akan membantu menyama muzik.</updesc>
<updesc id="2">SFX-100. Bunyi yang bagus. Harga yang bagus. Kawalan yang bagus. Bagus.</updesc>
<updesc id="3">SOUNDTRON 2000: meja bunyi yang terbaik untuk dibeli.</updesc>
</soundTUpDesc>
<barUpDesc>
<updesc id="1">Dengan bar baru ini, kami akan memberikan minuman terbaik di bandar ini!</updesc>
<updesc id="2">Dengan adanya minuman yang bagus, akan memerlukan tanggungjawab yang besar.</updesc>
</barUpDesc>
<entryUpDesc>
<updesc id="1">Menguruskan masuk dan keluar daripada The Hall!</updesc>
<updesc id="2">Jemput mereka masuk dan kekalkan mereka di dalam!</updesc>
</entryUpDesc>
<mainChar>MARY</mainChar>
<securityChar>NICK</securityChar>
<jackieChar>JACKIE</jackieChar>
<barmanChar>JUAN</barmanChar>
<soundmanChar>BOB</soundmanChar>
<security>Keselamatan</security>
<bartending>Melayan di bar</bartending>
<sound>Bunyi</sound>
<none>Tiada</none>
<maintenance>Penyelenggaraan</maintenance>
</upgrade>
<progress>
<tutoBtn>OK</tutoBtn>
<tutoMsg>Hari pertama di The Hall... Mari Berhibur! Siapa yang akan membuat persembahan pembukaan? Kami boleh dapatkan kumpulan muzik dengan harga yang murah sekarang, tapi akan menjadi semakin mahal setiap kali mereka menggegarkan The Hall!</tutoMsg>
<choicemsg>PILIH KUMPULAN MUZIK:</choicemsg>
<next>SETERUSNYA</next>
<back>UNDUR</back>
<cash>TUNAI</cash>
<cost>KOS</cost>
<friday>JUM</friday>
<saturday>SAB</saturday>
<sunday>AHD</sunday>
<fans>Fans:</fans>
<choiceRock>CITY ROCKERS</choiceRock>
<choiceCountry>DIXIE JANE</choiceCountry>
<choiceHiphop>HIPPIN' HOPPERS</choiceHiphop>
</progress>
<pause>
<title>JEDA</title>
<resume>SAMBUNG SEMULA</resume>
<soundfx>KESAN BUNYI</soundfx>
<music>MUZIK</music>
<on>HIDUPKAN</on>
<off>MATIKAN</off>
</pause>
<scorescreen>
<levelcompleted>TAHAP SELESAI!</levelcompleted>
<fail>TAHAP TELAH GAGAL!</fail>
<ok>OK</ok>
<tryagain>MAIN SEMULA</tryagain>
<levelscore>Skor Tahap</levelscore>
<totalscore>Jumlah Skor</totalscore>
</scorescreen>
<gameOver>
<title>GAME OVER</title>
<score>Twój Wynik</score>
<name>Twoje Imię</name>
</gameOver>
<victory>
<title>KEJAYAAN!</title>
<score>Skor Anda</score>
<name>Nama Anda</name>
<submit>SERAHKAN SKOR</submit>
</victory>
<highscore>
<title>SKOR TERTINGGI</title>
<name>NAMA</name>
<score>SKOR</score>
<rank>KEDUDUKAN</rank>
<menu>MENU UTAMA</menu>
<moregames>LABIH BANYAK PERMAINAN</moregames>
</highscore>
</localization>
;
return (_local1);
}
private static function getXMLLocalization10():XML{
var _local1:XML;
_local1 = new XML();
_local1 = <localization>
<symbol_cash>$</symbol_cash>
<loading>
<title>Carregando...</title>
<msg2>JOGUE MAIS JOGOS DE ADMINISTRAÇÃO DO TEMPO EM: </msg2>
<msg>MAIS ADMINISTRAÇÃO DO TEMPO EM: </msg>
</loading>
<mainmenu>
<startgame>JOGAR</startgame>
<howtoplay>COMO JOGAR</howtoplay>
<highscore>RECORDES</highscore>
<moregames>MAIS JOGOS</moregames>
<continuegame>CONTINUAR</continuegame>
<newgame>NOVO JOGO</newgame>
<quality>QUALIDADE: </quality>
<high>ÓTIMA</high>
<medium>NORMAL</medium>
<low>BAIXA</low>
<question>Continuar ou começar novo jogo:</question>
<warning>(Começar um jogo novo apagará seus dados)</warning>
</mainmenu>
<howToPlay>
<title>COMO JOGAR</title>
<mainmenu>MENU PRINCIPAL</mainmenu>
<game>JOGO</game>
<next>SEGUINTE</next>
<back>ANTERIOR</back>
<cash>DINHEIRO $</cash>
<goal>META $</goal>
<text1>1 - Durante o show, mantenha todas as áreas em funcionamento.</text1>
<text2>2 - Se houver problema, pegue um dos funcionários e leve para o local atingido.</text2>
<text3>3 - Note que cada especialidade tem uniforme próprio.</text3>
<text4>4 - Quando o empregado se cansa, demora mais nas tarefas. Dê a ele um energético para restaurar as forças!</text4>
<text5>5 - Fique de olho na receita! Se cair demais, você não passará de fase.</text5>
<text6>6 - Compre melhoramentos para melhorar o Hall!</text6>
</howToPlay>
<game>
<play>JOGAR</play>
<goalReached>META ATINGIDA</goalReached>
<levelStart>INÍCIO DO NÍVEL</levelStart>
<goal>META</goal>
<cash>DINHEIRO</cash>
<menu>MENU</menu>
<tutoMsg>Pronto! Só leve a mim e ao Nick para os locais que precisem de atenção. Nem todos são bons em tudo. Nick não sabe servir bebidas, por exemplo. Ele bebe mais do que serve... Se um de nós se cansar, sirva um energético da geladeira. Vamos nessa!</tutoMsg>
<tutoBtn>OK</tutoBtn>
<logotext>MAIS ADMINISTRAÇÃO DO TEMPO EM:</logotext>
</game>
<upgrade>
<intromsg>VAMOS DAR UM GÁS!</intromsg>
<tutoMsg>Essas são as áreas principais e os empregados do Hall. Somos só eu e o Nick agora, mas vou contratar um barman quando tiver dinheiro. Clique por aí para receber informações ou clique em JOGAR para começar o show!</tutoMsg>
<tutoMsg2>O primeiro show foi um grande sucesso! Agora eu posso incrementar uma área do Hall ou contratar um barman!</tutoMsg2>
<tutoBtn>OK</tutoBtn>
<play>JOGAR</play>
<cash>DINHEIRO</cash>
<hire>CONTRATAR</hire>
<buy>COMPRAR</buy>
<back>ANTERIOR</back>
<stageUp>
<title id="1">PALCO PRINCIPAL</title>
<title id="2">PALCOMÁTICO</title>
</stageUp>
<restUp>
<title id="1">RED BLUE</title>
<title id="2">PWRATOR</title>
</restUp>
<bathUp>
<title id="1">LAVABO PLUS 1000</title>
<title id="2">TECNOBANHEIRO</title>
</bathUp>
<soundTUp>
<title id="1">EQUALIZADOR</title>
<title id="2">SFX 100</title>
<title id="3">SOUNDTRON 2000</title>
</soundTUp>
<barUp>
<title id="1">BAR-K</title>
<title id="2">BOTECOTRON</title>
</barUp>
<entryUp>
<title id="1">CORDÃO DE ISOLAMENTO PROFISSA</title>
<title id="2">PORTA AUTOMÁTICA</title>
</entryUp>
<stageUpDesc>
<updesc id="1">Um palco novo! As bandas vão botar pra quebrar!</updesc>
<updesc id="2">O melhor palco! Todas as bandas vão querer tocar aqui no The Hall.</updesc>
</stageUpDesc>
<restUpDesc>
<updesc id="1">Fique ligado e na pilha com esses energéticos.</updesc>
<updesc id="2">PWRATOR: mais eletricidade, mais carga, mais energia.</updesc>
</restUpDesc>
<bathUpDesc>
<updesc id="1">Melhores banheiros. Ninguém reclama de banheiros bons!</updesc>
<updesc id="2">A última e maior novidade em tecnologia sanitária!</updesc>
</bathUpDesc>
<soundTUpDesc>
<updesc id="1">Esta mesa de som vai ajudar a equalizar a música.</updesc>
<updesc id="2">SFX 100. Bom som. Bom preço. Bons controles. Bom!</updesc>
<updesc id="3">SOUNDTRON 2000: a melhor mesa de som que você consegue comprar.</updesc>
</soundTUpDesc>
<barUpDesc>
<updesc id="1">Com esse bar vamos servir os melhores drinques da cidade!</updesc>
<updesc id="2">Com grandes drinques vêm grandes responsabilidades.</updesc>
</barUpDesc>
<entryUpDesc>
<updesc id="1">Organize a entrada e a saída do Hall!</updesc>
<updesc id="2">Pegue-os e mantenha-os dentro!</updesc>
</entryUpDesc>
<mainChar>MARY</mainChar>
<securityChar>NICK</securityChar>
<jackieChar>JACKIE</jackieChar>
<barmanChar>JUAN</barmanChar>
<soundmanChar>BOB</soundmanChar>
<security>Segurança</security>
<bartending>Bar</bartending>
<sound>Som</sound>
<none>Nenhum</none>
<maintenance>Manutenção</maintenance>
</upgrade>
<progress>
<tutoBtn>OK</tutoBtn>
<tutoMsg>O primeiro dia no The Hall... Vamos nessa! Qual será a banda de abertura? Elas ainda são baratas, mas ficarão cada vez mais caras sempre que tocarem no The Hall!</tutoMsg>
<choicemsg>ESCOLHA UMA BANDA:</choicemsg>
<next>SEGUINTE</next>
<back>ANTERIOR</back>
<cash>DINHEIRO</cash>
<cost>CUSTO</cost>
<friday>SEX</friday>
<saturday>SAB</saturday>
<sunday>DOM</sunday>
<fans>Fãns:</fans>
<choiceRock>CITY ROCKERS</choiceRock>
<choiceCountry>DIXIE JANE</choiceCountry>
<choiceHiphop>HIPPIN' HOPPERS</choiceHiphop>
</progress>
<pause>
<title>EM PAUSA</title>
<resume>RETORNAR</resume>
<soundfx>EFEITOS SONOROS</soundfx>
<music>MÚSICA</music>
<on>LIGADOS</on>
<off>DESLIGADOS</off>
</pause>
<scorescreen>
<levelcompleted>NÍVEL CONCLUÍDO</levelcompleted>
<fail>ESSA NÃO DEU!</fail>
<ok>OK</ok>
<tryagain>TENTAR DE NOVO</tryagain>
<levelscore>Pontos do nível</levelscore>
<totalscore>Pontos totais</totalscore>
</scorescreen>
<gameOver>
<title>GAME OVER</title>
<score>Your Score</score>
<name>Your Name</name>
</gameOver>
<victory>
<title>VITÓRIA!</title>
<score>Seu Placar</score>
<name>Seu Nome</name>
<submit>ENVIAR PONTUAÇÃO</submit>
</victory>
<highscore>
<title>RECORDES</title>
<name>NOME</name>
<score>PONTUAÇÃO</score>
<rank>CLASSIFICAÇÃO</rank>
<menu>MENU PRINCIPAL</menu>
<moregames>MAIS JOGOS</moregames>
</highscore>
</localization>
;
return (_local1);
}
private static function getXMLLocalization11():XML{
var _local1:XML;
_local1 = new XML();
_local1 = <localization>
<symbol_cash>$</symbol_cash>
<loading>
<title>Pengisian...</title>
<msg>PERMAINAN PENGATURAN WAKTU LAINNYA DI: </msg>
<msg2>PERMAINAN DI: </msg2>
</loading>
<mainmenu>
<startgame>MAIN</startgame>
<howtoplay>CARA BERMAIN</howtoplay>
<highscore>NILAI TERTINGGI</highscore>
<moregames>PERMAINAN LAINNYA</moregames>
<continuegame>MELANJUTKAN</continuegame>
<newgame>PERMAINAN BARU</newgame>
<quality>KUALITAS: </quality>
<high>TERBAIK</high>
<medium>NORMAL</medium>
<low>BURUK</low>
<question>Melanjutkan atau memulai permainan baru:</question>
<warning>(Memulai permainan baru akan menghapus data anda)</warning>
</mainmenu>
<howToPlay>
<title>CARA BERMAIN</title>
<mainmenu>MENU UTAMA</mainmenu>
<game>PERMAINAN</game>
<next>BERIKUT</next>
<back>KEMBALI</back>
<cash>UANG $</cash>
<goal>GOL $</goal>
<text1>1 - Bersamaan dengan berjalannya pertunjukkan, pastikan semua areanya berfungsi.</text1>
<text2>2 - Jika terjadi masalah, pilihlah salah satu pekerja anda dan tariklah dia ke area tersebut.</text2>
<text3>3 - Perhatikan bahwa setiap pekerja memakai pakaian berdasarkan atas keahlian khususnya.</text3>
<text4>4 - Jika seorang pekerja merasa lelah, dia akan menghabiskan lebih banyak waktu untuk melakukan tugasnya. Berikan minuman berenergi kepada pekerja yang lelah untuk memulihkan energinya kembali!</text4>
<text5>5 - Perhatikan penghasilan anda! Jika penghasilan anda jatuhnya terlalu banyak, maka anda akan gagal pada level tersebut.</text5>
<text6>6 - Perbaharui alat-alat anda untuk mendapatkan The Hall rockin'!</text6>
</howToPlay>
<game>
<play>MAIN</play>
<goalReached>GOL TERCAPAI</goalReached>
<levelStart>LEVEL DIMULAI</levelStart>
<goal>GOL</goal>
<cash>UANG</cash>
<menu>MENU</menu>
<tutoMsg>Baiklah, mari kita mulai. Tarik saya dan Nick ke area yang membutuhkan perhatian. Ingatlah, tidak semua orang pandai dalam segala hal. Nick tidak pandai dalam hal menjual minuman keras di bar , contohnya. Dia minum lebih banyak daripada menuangkannya... Jika salah satu dari kami merasa lelah, ambillah minuman bertenaga dari kulkas untuk kami. Mari lakukan hal ini.</tutoMsg>
<tutoBtn>OK</tutoBtn>
<logotext>PERMAINAN PENGATURAN WAKTU LAINNYA DI:</logotext>
</game>
<upgrade>
<intromsg>MAJU TERUS!</intromsg>
<tutoMsg>Inilah area-area dan karyawan-karyawan utama di Hall. Saat ini hanya saya dan Nick saja, tapi kami akan menggunakan seorang pelayan bar saat Saya mempunyai cukup uang. Klik disekitar untuk mendapatkan info atau tekan MAIN untuk memulainya!</tutoMsg>
<tutoMsg2>Pertunjukkan pertama sangat mengagumkan! Sekarang Saya sanggup untuk mengaupgrade sebuah area di dalam Hall atau memperkerjakan seorang pelayan bar!</tutoMsg2>
<tutoBtn>OK</tutoBtn>
<play>MAIN</play>
<cash>UANG</cash>
<hire>MEMPERKERJAKAN</hire>
<buy>BELI</buy>
<back>KEMBALI</back>
<stageUp>
<title id="1">PENTAS UTAMA</title>
<title id="2">STAGE-O-MATIC</title>
</stageUp>
<restUp>
<title id="1">BIRU MERAH</title>
<title id="2">PWRATOR</title>
</restUp>
<bathUp>
<title id="1">B-RUANGAN PLUS 1000</title>
<title id="2">TEKKAKUS</title>
</bathUp>
<soundTUp>
<title id="1">PEMERATAAN</title>
<title id="2">SFX-100</title>
<title id="3">SOUNDTRON 2000</title>
</soundTUp>
<barUp>
<title id="1">BAR-K</title>
<title id="2">TENDER-X-9000</title>
</barUp>
<entryUp>
<title id="1">PRO-ORGANIZER CORD</title>
<title id="2">DOOR-O-TRON</title>
</entryUp>
<stageUpDesc>
<updesc id="1">Sebuah pentas baru untuk kelompok band tersebut ngerock di The Hall!</updesc>
<updesc id="2">Pentas termewah! Setiap kelompok band berkehendak untuk bermain di The Hall!</updesc>
</stageUpDesc>
<restUpDesc>
<updesc id="1">Dapatkanlah tenaga anda dengan minuman berenergi.</updesc>
<updesc id="2">PWRATOR : Tenaga tambahan, Pengisian tambahan, energi tambahan.</updesc>
</restUpDesc>
<bathUpDesc>
<updesc id="1">Kamar mandi yang lebih bagus. Tidak ada seorang pun yang berkomentar mengenai kamar mandi yang lebih baik!</updesc>
<updesc id="2">Teknologi terkini dan tercanggih dalam hal kebersihan!</updesc>
</bathUpDesc>
<soundTUpDesc>
<updesc id="1">Meja musik ini akan membantu meratakan musiknya.</updesc>
<updesc id="2">SFX-100 . Suara bagus. Harga bagus. Kontrol bagus. Bagus...</updesc>
<updesc id="3">SOUNDTRON 2000: meja musik terbaik bisa dibeli dengan uang.</updesc>
</soundTUpDesc>
<barUpDesc>
<updesc id="1">Dengan bar baru ini, kami akan melayani minuman terbaik di dalam kota!</updesc>
<updesc id="2">Dengan minuman hebat maka tanggung jawab akan menjadi lebih baik.</updesc>
</barUpDesc>
<entryUpDesc>
<updesc id="1">Aturlah keluar masuk dari The Hall!</updesc>
<updesc id="2">Bawalah mereka masuk dan jagalah agar mereka tetap di dalam!</updesc>
</entryUpDesc>
<mainChar>MARY</mainChar>
<securityChar>NICK</securityChar>
<jackieChar>JACKIE</jackieChar>
<barmanChar>JUAN</barmanChar>
<soundmanChar>BOB</soundmanChar>
<security>Keamanan</security>
<bartending>Menjual minuman</bartending>
<sound>Suara</sound>
<none>Tidak ada</none>
<maintenance>Pemeliharaan</maintenance>
</upgrade>
<progress>
<tutoBtn>OK</tutoBtn>
<tutoMsg>Hari pertama di The Hall... Rock! Siapa yang akan menjadi kelompok band pembuka? Kami bisa memberikan yang murah kepada mereka saat ini, tapi mereka akan memperoleh yang lebih mahal setiap saat mereka rock di The Hall!</tutoMsg>
<choicemsg>PILIHLAH SEBUAH KELOMPOK BAND:</choicemsg>
<next>BERIKUT</next>
<back>KEMBALI</back>
<cash>UANG</cash>
<cost>BIAYA</cost>
<friday>JUMAT</friday>
<saturday>SABTU</saturday>
<sunday>MINGGU</sunday>
<fans>Fans:</fans>
<choiceRock>PENYANYI ROCK KOTA</choiceRock>
<choiceCountry>DIXIE JANE</choiceCountry>
<choiceHiphop>HIPPIN'HOPPERS</choiceHiphop>
</progress>
<pause>
<title>BERHENTI SEBENTAR</title>
<resume>MULAI LAGI</resume>
<soundfx>EFEK SUARA</soundfx>
<music>MUSIK</music>
<on>HIDUPKAN</on>
<off>MATIKAN</off>
</pause>
<scorescreen>
<levelcompleted>LEVEL SELESAI!</levelcompleted>
<fail>LEVEL GAGAL!</fail>
<ok>OK</ok>
<tryagain>COBA LAGI</tryagain>
<levelscore>Skor Level</levelscore>
<totalscore>Total Skor</totalscore>
</scorescreen>
<gameOver>
<title>GAME OVER</title>
<score>Twój Wynik</score>
<name>Twoje Imię</name>
</gameOver>
<victory>
<title>KEMENANGAN!!</title>
<score>Skor Anda</score>
<name>Nama Anda</name>
<submit>KUMPULKAN SKOR</submit>
</victory>
<highscore>
<title>NILAI TERTINGGI</title>
<name>NAMA</name>
<score>SKOR</score>
<rank>PERINGKAT</rank>
<menu>MENU UTAMA</menu>
<moregames>PERMAINAN LAINNYA</moregames>
</highscore>
</localization>
;
return (_local1);
}
private static function getXMLLocalization17():XML{
var _local1:XML;
_local1 = new XML();
_local1 = <localization>
<symbol_cash>$</symbol_cash>
<loading>
<title>A carregar...</title>
<msg2>JOGUE MAIS JOGOS DE ADMINISTRAÇÃO TEMPORAL EM: </msg2>
<msg>MAIS JOGOS DE GESTÃO TEMPORAL EM: </msg>
</loading>
<mainmenu>
<startgame>JOGAR</startgame>
<howtoplay>COMO JOGAR</howtoplay>
<highscore>PONTUAÇÕES MAIS ALTAS</highscore>
<moregames>MAIS JOGOS</moregames>
<continuegame>CONTINUAR</continuegame>
<newgame>NOVO JOGO</newgame>
<quality>QUALIDADE: </quality>
<high>ÓPTIMA</high>
<medium>NORMAL</medium>
<low>BAIXA</low>
<question>Continue ou inicie um jogo novo:</question>
<warning>(Iniciar um jogo novo apagará a sua informação)</warning>
</mainmenu>
<howToPlay>
<title>COMO JOGAR</title>
<mainmenu>MENU PRINCIPAL</mainmenu>
<game>JOGO</game>
<next>SEGUINTE</next>
<back>RETROCEDER</back>
<cash>DINHEIRO $</cash>
<goal>OBJECTIVO $</goal>
<text1>1 - À medida que o espectáculo vai continuando, assegure-se de que todas as áreas do jogo estão a funcionar.</text1>
<text2>2 - Se ocorrer algum problema, pegue num dos seus trabalhadores e arraste-o para a área problemática.</text2>
<text3>3 - Cada trabalhador veste roupa que indica a sua especialidade.</text3>
<text4>4 - Se um trabalhador estiver cansado, demorará mais tempo a executar as tarefas. Dê bebidas energéticas aos trabalhadores cansados para os ajudar a recuperar a energia!</text4>
<text5>5 - Cuidado com o seu orçamento! Se ele descer demasiado, falhará o nível que estiver a jogar</text5>
<text6>6 - Compre instrumentos de modernização para continuar a funcionar!</text6>
</howToPlay>
<game>
<play>JOGAR</play>
<goalReached>OBJECTIVO ATINGIDO</goalReached>
<levelStart>INÍCIO DO NÍVEL</levelStart>
<goal>OBJECTIVO</goal>
<cash>DINHEIRO</cash>
<menu>MENU</menu>
<tutoMsg>Aqui vamos nós então. Arraste-me a mim e ao Nick para as áreas que exijam a nossa atenção. Lembre-se que nem toda a gente é boa em todas as tarefas. O Nick, por exemplo, é mau a atender no bar. Bebe mais do que serve... Se um de nós estiver cansado, sirva-nos uma bebida energética do frigorífico. Vamos lá.</tutoMsg>
<tutoBtn>OK</tutoBtn>
<logotext>MAIS JOGOS DE GESTÃO TEMPORAL EM:</logotext>
</game>
<upgrade>
<intromsg>ROCK IT UP!</intromsg>
<tutoMsg>Estas são as áreas e os empregados principais deste espaço. Somos só eu e o Nick neste momento mas teremos um empregado de bar quando tivermos muito dinheiro. Clique à volta para mais informações ou prima JOGAR para começar a jogar!</tutoMsg>
<tutoMsg2>O primeiro espectáculo foi fantástico! Agora já posso melhorar o espaço ou contratar um empregado de bar!</tutoMsg2>
<tutoBtn>OK</tutoBtn>
<play>JOGAR</play>
<cash>DINHEIRO</cash>
<hire>CONTRATAR</hire>
<buy>COMPRAR</buy>
<back>RETROCEDER</back>
<stageUp>
<title id="1">PALCO PRINCIPAL</title>
<title id="2">PALCO-MATICO</title>
</stageUp>
<restUp>
<title id="1">RED BLUE</title>
<title id="2">PWRATOR</title>
</restUp>
<bathUp>
<title id="1">B-ROOM PLUS 1000</title>
<title id="2">TECNITÁRIOS</title>
</bathUp>
<soundTUp>
<title id="1">EQUALIZADOR</title>
<title id="2">SFX-100</title>
<title id="3">SOUNDTRON 2000</title>
</soundTUp>
<barUp>
<title id="1">BAR-K</title>
<title id="2">BOTECOTRON</title>
</barUp>
<entryUp>
<title id="1">PRO-ORGANIZER CORD</title>
<title id="2">DOOR-O-TRON</title>
</entryUp>
<stageUpDesc>
<updesc id="1">Um novo palco para as bandas actuarem!</updesc>
<updesc id="2">O último grito em palcos! Todas as bandas vão querer tocar aqui!</updesc>
</stageUpDesc>
<restUpDesc>
<updesc id="1">Fique em forma e recupere a força com uma renovada bebida energética.</updesc>
<updesc id="2">PWRATOR: Mais poder, mais força, mais energia.</updesc>
</restUpDesc>
<bathUpDesc>
<updesc id="1">Melhores casas de banho. Para que ninguém se queixe!</updesc>
<updesc id="2">A última e mais fantástica tecnologia em sanitários!</updesc>
</bathUpDesc>
<soundTUpDesc>
<updesc id="1">Esta mesa de misturas vai ajudá-lo a fazer as melhores equalizações musicais.</updesc>
<updesc id="2">SFX-100. Bom som. Bom preço. Bons comandos.</updesc>
<updesc id="3">SOUNDTRON 2000: a melhor mesa de misturas que pode adquirir.</updesc>
</soundTUpDesc>
<barUpDesc>
<updesc id="1">Com este novo bar, serviremos as melhores bebidas da cidade!</updesc>
<updesc id="2">Melhores bebidas trazem grandes responsabilidades.</updesc>
</barUpDesc>
<entryUpDesc>
<updesc id="1">Organize as entradas e as saídas deste espaço!</updesc>
<updesc id="2">Consiga-as e mantenha-as!</updesc>
</entryUpDesc>
<mainChar>MARY</mainChar>
<securityChar>NICK</securityChar>
<jackieChar>JACKIE</jackieChar>
<barmanChar>JUAN</barmanChar>
<soundmanChar>BOB</soundmanChar>
<security>Segurança</security>
<bartending>Bar</bartending>
<sound>Som</sound>
<none>Nenhum</none>
<maintenance>Manutenção</maintenance>
</upgrade>
<progress>
<tutoBtn>OK</tutoBtn>
<tutoMsg>O primeiro dia neste espaço... foi o máximo! Qual será a banda de abertura? Por agora, tem de ser uma barata mas cada vez teremos bandas mais caras!</tutoMsg>
<choicemsg>ESCOLHA UMA BANDA:</choicemsg>
<next>SEGUINTE</next>
<back>RETROCEDER</back>
<cash>DINHEIRO</cash>
<cost>CUSTO</cost>
<friday>Sex</friday>
<saturday>Sab</saturday>
<sunday>Dom</sunday>
<fans>Fans:</fans>
<choiceRock>CITY ROCKERS</choiceRock>
<choiceCountry>DIXIE JANE</choiceCountry>
<choiceHiphop>HIPPIN' HOPPERS</choiceHiphop>
</progress>
<pause>
<title>EM PAUSA</title>
<resume>RETORNAR</resume>
<soundfx>EFEITOS SONOROS</soundfx>
<music>MÚSICA</music>
<on>LIGADOS</on>
<off>DESLIGADOS</off>
</pause>
<scorescreen>
<levelcompleted>NÍVEL CONCLUÍDO</levelcompleted>
<fail>NÍVEL FALHADO!</fail>
<ok>OK</ok>
<tryagain>TENTAR DE NOVO</tryagain>
<levelscore>Pontuação do nível</levelscore>
<totalscore>Pontuação totais</totalscore>
</scorescreen>
<gameOver>
<title>GAME OVER</title>
<score>Your Score</score>
<name>Your Name</name>
</gameOver>
<victory>
<title>VICTÓRIA!</title>
<score>A sua Pontuação</score>
<name>O seu nome</name>
<submit>ENVIAR PONTUAÇÃO</submit>
</victory>
<highscore>
<title>PONTUAÇÕES MAIS ALTAS</title>
<name>NOME</name>
<score>PONTUAÇÃO</score>
<rank>LUGAR</rank>
<menu>MENU PRINCIPAL</menu>
<moregames>MAIS JOGOS</moregames>
</highscore>
</localization>
;
return (_local1);
}
private static function getXMLLocalization13():XML{
var _local1:XML;
_local1 = new XML();
_local1 = <localization>
<symbol_cash>$</symbol_cash>
<loading>
<title>Loading...</title>
<msg>MORE TIME MANAGEMENT AT: </msg>
<msg2>PLAY MORE TIME MANAGEMENT GAMES AT: </msg2>
</loading>
<mainmenu>
<startgame>PLAY</startgame>
<howtoplay>HOW TO PLAY</howtoplay>
<highscore>HIGH SCORES</highscore>
<moregames>MORE GAMES</moregames>
<continuegame>CONTINUE</continuegame>
<newgame>NEW GAME</newgame>
<quality>QUALITY: </quality>
<high>BEST</high>
<medium>NORMAL</medium>
<low>LOW</low>
<question>Resume or start a new game:</question>
<warning>(Starting a new game will erase your data)</warning>
</mainmenu>
<howToPlay>
<title>HOW TO PLAY</title>
<mainmenu>MAIN MENU</mainmenu>
<game>GAME</game>
<next>NEXT</next>
<back>BACK</back>
<cash>CASH $</cash>
<goal>GOAL $</goal>
<text1>1 - As the show progresses, make sure all the areas are running smoothly.</text1>
<text2>2 - If a problem occurs at a particular site, pick one of your workers up and drag them to that area.</text2>
<text3>3 - Note that each worker wears clothing which corresponds to their special skill.</text3>
<text4>4 – Tired workers will take longer to perform tasks, so give your wilting employees an energy drink to restore them to their full energy levels!</text4>
<text5>5 - Monitor your income closely. You will fail the level if it drops too low.</text5>
<text6>6 - Buy upgrades to get The Hall rockin'!</text6>
</howToPlay>
<game>
<play>PLAY</play>
<goalReached>GOAL REACHED</goalReached>
<levelStart>LEVEL START</levelStart>
<goal>GOAL</goal>
<cash>CASH</cash>
<menu>MENU</menu>
<tutoMsg>OK, here we go. Just drag Nick and I to the areas that require attention. Remember, not everyone is good at everything. For example, Nick here is a terrible barman; he drinks more than his customers! If one of us starts flagging, bring us a power drink from the fridge. Go for it!</tutoMsg>
<tutoBtn>OK</tutoBtn>
<logotext>MORE TIME MANAGEMENT AT:</logotext>
</game>
<upgrade>
<intromsg>ROCK IT UP!</intromsg>
<tutoMsg>These are the main areas and employees at The Hall. Nick and I are the only ones here for the moment, but we'll hire a barman when I have enough cash. Click around for info or just press PLAY to start rockin'!</tutoMsg>
<tutoMsg2>The first show was awesome! Now I can afford to upgrade an area of The Hall or hire a barman!</tutoMsg2>
<tutoBtn>OK</tutoBtn>
<play>PLAY</play>
<cash>CASH</cash>
<hire>HIRE</hire>
<buy>BUY</buy>
<back>BACK</back>
<stageUp>
<title id="1">MAIN STAGE</title>
<title id="2">STAGE-O-MAGIC</title>
</stageUp>
<restUp>
<title id="1">RED BLUE</title>
<title id="2">POWRATOR</title>
</restUp>
<bathUp>
<title id="1">WC PLUS 1000</title>
<title id="2">TECHNITARY</title>
</bathUp>
<soundTUp>
<title id="1">THE EQUALISER</title>
<title id="2">SFX-100</title>
<title id="3">SOUNDTRON 2000</title>
</soundTUp>
<barUp>
<title id="1">BAR-K</title>
<title id="2">TENDER-X 9000</title>
</barUp>
<entryUp>
<title id="1">PRO-ORGANIZER CORD</title>
<title id="2">DOOR-O-TRON</title>
</entryUp>
<stageUpDesc>
<updesc id="1">A new stage for the bands to rock The Hall!</updesc>
<updesc id="2">The ultimate stage! Every band will want to play at The Hall!</updesc>
</stageUpDesc>
<restUpDesc>
<updesc id="1">Get your kicks and get kicking with the improved energy drink.</updesc>
<updesc id="2">PWRATOR: More power, more charges, more energy.</updesc>
</restUpDesc>
<bathUpDesc>
<updesc id="1">Improved toilet facilities. Nobody ever complains about nicer toilets!</updesc>
<updesc id="2">The latest and greatest in sanitary technology!</updesc>
</bathUpDesc>
<soundTUpDesc>
<updesc id="1">This sound desk will help equalise the music.</updesc>
<updesc id="2">SFX-100. Good sound. Good price. Good controls. Great!</updesc>
<updesc id="3">SOUNDTRON 2000: the best sound desk money can buy.</updesc>
</soundTUpDesc>
<barUpDesc>
<updesc id="1">With our new bar we'll be serving the best drinks in town!</updesc>
<updesc id="2">With great drinks come great responsabilities.</updesc>
</barUpDesc>
<entryUpDesc>
<updesc id="1">Organise and manage entry and exit from The Hall!</updesc>
<updesc id="2">Get'em in and keep'em in!</updesc>
</entryUpDesc>
<mainChar>MARY</mainChar>
<securityChar>NICK</securityChar>
<jackieChar>JACKIE</jackieChar>
<barmanChar>JUAN</barmanChar>
<soundmanChar>BOB</soundmanChar>
<security>Security</security>
<bartending>Bartending</bartending>
<sound>Sound</sound>
<none>None</none>
<maintenance>Maintenance</maintenance>
</upgrade>
<progress>
<tutoBtn>OK</tutoBtn>
<tutoMsg>The first day at The Hall... Rock on! Which band will open the venue? We can get them to do a cheap gig now, but they will get more expensive every time they rock The Hall!</tutoMsg>
<choicemsg>CHOOSE A BAND:</choicemsg>
<next>NEXT</next>
<back>BACK</back>
<cash>CASH</cash>
<cost>COST</cost>
<friday>FRI</friday>
<saturday>SAT</saturday>
<sunday>SUN</sunday>
<fans>Fans:</fans>
<choiceRock>BEETLE ROCKERS</choiceRock>
<choiceCountry>THAMES RIVER JANE</choiceCountry>
<choiceHiphop>HIPPIN' HOPPERS</choiceHiphop>
</progress>
<pause>
<title>PAUSED</title>
<resume>RESUME</resume>
<soundfx>SOUND EFFECTS</soundfx>
<music>MUSIC</music>
<on>ON</on>
<off>OFF</off>
</pause>
<scorescreen>
<levelcompleted>LEVEL COMPLETED!</levelcompleted>
<fail>LEVEL FAILED!</fail>
<ok>OK</ok>
<tryagain>TRY AGAIN</tryagain>
<levelscore>Level Score</levelscore>
<totalscore>Total Score</totalscore>
</scorescreen>
<gameOver>
<title>GAME OVER</title>
<score>Your Score</score>
<name>Your Name</name>
</gameOver>
<victory>
<title>VICTORY!!</title>
<score>Your Score</score>
<name>Your Name</name>
<submit>SUBMIT SCORE</submit>
</victory>
<highscore>
<title>HIGH SCORES</title>
<name>NAME</name>
<score>SCORE</score>
<rank>RANK</rank>
<menu>MAIN MENU</menu>
<moregames>MORE GAMES</moregames>
</highscore>
</localization>
;
return (_local1);
}
private static function getXMLLocalization12():XML{
var _local1:XML;
_local1 = new XML();
_local1 = <localization>
<symbol_cash>$</symbol_cash>
<loading>
<title>Загрузка...</title>
<msg>ДРУГИЕ ИГРЫ ПРО УПРАВЛЕНИЕ НА ВРЕМЯ: </msg>
<msg2>ИГРЫ НА: </msg2>
</loading>
<mainmenu>
<startgame>ИГРАТЬ</startgame>
<howtoplay>КАК ИГРАТЬ</howtoplay>
<highscore>РЕКОРДЫ</highscore>
<moregames>ДРУГИЕ ИГРЫ</moregames>
<continuegame>ПРОДОЛЖАТЬ</continuegame>
<newgame>НОВАЯ ИГРА</newgame>
<quality>КАЧЕСТВО: </quality>
<high>ВЫСОКОЕ</high>
<medium>СРЕДНЕЕ</medium>
<low>НИЗКОЕ</low>
<question>Продолжить или начать новую игру:</question>
<warning>(В случае, если будет начата новая игра, твои данные будут стерты!)</warning>
</mainmenu>
<howToPlay>
<title>КАК ИГРАТЬ</title>
<mainmenu>ГЛАВНОЕ МЕНЮ</mainmenu>
<game>ИГРА</game>
<next>ДАЛЬШЕ</next>
<back>ОБРАТНО</back>
<cash>ДЕНЬГИ $</cash>
<goal>ЦЕЛЬ $</goal>
<text1>1 - В ходе концерта следи за тем, чтобы все части клуба работали нормально.</text1>
<text2>2 - Если возникла какая-либо проблема, возьми одного из работников клуба и перетащи его на нужный участок.</text2>
<text3>3 - Обрати внимание: одежда каждого из работников соответствует его специальности.</text3>
<text4>4 - Если работник устанет, он не сможет выполнять свою работу. Напои уставших работников энергетическими напитками, чтобы полностью восстановить их силы!</text4>
<text5>5 - Следи за уровнем прибыли! Если доходы чересчур сильно сократятся, уровень тебе засчитан не будет.</text5>
<text6>6 - Приобретай модернизированное оборудование, чтобы твой клуб работал, как часы!</text6>
</howToPlay>
<game>
<play>ИГРАТЬ</play>
<goalReached>ЦЕЛЬ ДОСТИГНУТА</goalReached>
<levelStart>НАЧАТЬ УРОВЕНЬ</levelStart>
<goal>ЦЕЛЬ</goal>
<cash>ДЕНЬГИ</cash>
<menu>МЕНЮ</menu>
<tutoMsg>Ладно, начнем. Просто перетаскивай меня и Вована на участки, которые требуют внимания. Не забывай: далеко не каждый из нас – мастер на все руки. Например, из Вована никудышный бармен: он выпивает больше, чем наливает... Если один из нас устанет, принеси нам энергетический напиток из холодильника. Давай попробуем!</tutoMsg>
<tutoBtn>OK</tutoBtn>
<logotext>ДРУГИЕ ИГРЫ ПРО УПРАВЛЕНИЕ НА ВРЕМЯ:</logotext>
</game>
<upgrade>
<intromsg>ПОКАЖИ КЛАСС!</intromsg>
<tutoMsg>Это основные участки и работники клуба. Сейчас тут только я и Вован, но когда у нас будет достаточно денег, мы наймем бармена. Щелкай мышью, чтобы получить дополнительную информацию, или просто нажми "ИГРАТЬ", чтобы начать шоу!</tutoMsg>
<tutoMsg2>Первый концерт имел шумный успех! Теперь я могу позволить себе нанять бармена или модернизировать какую-нибудь часть клуба!</tutoMsg2>
<tutoBtn>OK</tutoBtn>
<play>ИГРАТЬ</play>
<cash>ДЕНЬГИ</cash>
<hire>НАНЯТЬ</hire>
<buy>КУПИТЬ</buy>
<back>ОБРАТНО</back>
<stageUp>
<title id="1">ГЛАВНАЯ СЦЕНА</title>
<title id="2">МЕХАНИЗИРОВАННАЯ СЦЕНА</title>
</stageUp>
<restUp>
<title id="1">РЕД БУЛЬ-БУЛЬ</title>
<title id="2">СОК ИЗ БАТАРЕЕК </title>
</restUp>
<bathUp>
<title id="1">ТУАЛЕТ "МЖ-1000"</title>
<title id="2">ТЕХНОТУАЛЕТ</title>
</bathUp>
<soundTUp>
<title id="1">ЭКВАЛАЙЗЕР</title>
<title id="2">СУПЕРЗВУК-100</title>
<title id="3">МЕГАЗВУКОТРОН 2000</title>
</soundTUp>
<barUp>
<title id="1">БАР "НАКАТИ-КА"</title>
<title id="2">СУПЕРБАР "ЕРШ-9000"</title>
</barUp>
<entryUp>
<title id="1">СПЕЦКАНАТ</title>
<title id="2">МЕГАДВЕРЬ</title>
</entryUp>
<stageUpDesc>
<updesc id="1">Новая сцена, на которой будут выступать группы, приглашенные в клуб!</updesc>
<updesc id="2">Лучшая из сцен! Теперь любая группа будет мечтать о выступлении в нашем клубе!</updesc>
</stageUpDesc>
<restUpDesc>
<updesc id="1">Взбодрись не по-детски, глотнув улучшенного энергетического напитка!</updesc>
<updesc id="2">Еще крепче, еще забористей, еще больше энергии!</updesc>
</restUpDesc>
<bathUpDesc>
<updesc id="1">Туалет получше. На хороший туалет еще никто не жаловался!</updesc>
<updesc id="2">Последнее слово сантехники - лучший из туалетов!</updesc>
</bathUpDesc>
<soundTUpDesc>
<updesc id="1">Этот пульт звукооператора поможет улучшить качество звука.</updesc>
<updesc id="2">СУПЕРЗВУК-100. Классный звук, классная цена, классное управление. Классная штука, короче говоря!</updesc>
<updesc id="3">МЕГАЗВУКОТРОН 2000: лучший пульт звукооператора, который можно купить за деньги.</updesc>
</soundTUpDesc>
<barUpDesc>
<updesc id="1">Этот новый бар позволит нам подавать лучшие напитки в городе!</updesc>
<updesc id="2">Большой ассортимент – большая ответственность!</updesc>
</barUpDesc>
<entryUpDesc>
<updesc id="1">Наведи порядок на входе и выходе клуба!</updesc>
<updesc id="2">Всех впускать и никого не выпускать!</updesc>
</entryUpDesc>
<mainChar>MARY</mainChar>
<securityChar>NICK</securityChar>
<jackieChar>JACKIE</jackieChar>
<barmanChar>JUAN</barmanChar>
<soundmanChar>BOB</soundmanChar>
<security>Охрана</security>
<bartending>Бар</bartending>
<sound>Звук</sound>
<none>Ничего</none>
<maintenance>Техобслуживание</maintenance>
</upgrade>
<progress>
<tutoBtn>OK</tutoBtn>
<tutoMsg>Первый день работы клуба... Покажи класс! Какую же группу пригласить на открытие клуба? Пока что приглашение обойдется нам недорого, но с каждым новым выступлением в клубе музыканты будут запрашивать все больше!</tutoMsg>
<choicemsg>ВЫБЕРИ ГРУППУ:</choicemsg>
<next>ДАЛЬШЕ</next>
<back>ОБРАТНО</back>
<cash>ДЕНЬГИ</cash>
<cost>СТОИМОСТЬ</cost>
<friday>ПТ</friday>
<saturday>СБ</saturday>
<sunday>ВС</sunday>
<fans>Fans:</fans>
<choiceRock>ГОРОДСКИЕ РОКЕРЫ</choiceRock>
<choiceCountry>МЕЧТА КОВБОЯ</choiceCountry>
<choiceHiphop>ОТВЯЗНЫЕ ХИПХОППЕРЫ</choiceHiphop>
</progress>
<pause>
<title>ПАУЗА</title>
<resume>ПРОДОЛЖАТЬ</resume>
<soundfx>ЗВУКОВЫЕ ЭФФЕКТЫ</soundfx>
<music>МУЗЫКА</music>
<on>ВКЛЮЧИТЬ</on>
<off>ВЫКЛЮЧИТЬ</off>
</pause>
<scorescreen>
<levelcompleted>УРОВЕНЬ ЗАВЕРШЕН!</levelcompleted>
<fail>УРОВЕНЬ НЕ ПРОЙДЕН!</fail>
<ok>OK</ok>
<tryagain>ЕЩЕ РАЗ</tryagain>
<levelscore>Счет уровня</levelscore>
<totalscore>Общий счет</totalscore>
</scorescreen>
<gameOver>
<title>GAME OVER</title>
<score>Twój Wynik</score>
<name>Twoje Imię</name>
</gameOver>
<victory>
<title>ПОБЕДА!</title>
<score>Ваш Результат</score>
<name>Ваше Имя</name>
<submit>СОХРАНИТЬ РЕЗУЛЬТАТ</submit>
</victory>
<highscore>
<title>РЕКОРДЫ</title>
<name>ИМЯ</name>
<score>СЧЕТ</score>
<rank>МЕСТО</rank>
<menu>ГЛАВНОЕ МЕНЮ</menu>
<moregames>ДРУГИЕ ИГРЫ</moregames>
</highscore>
</localization>
;
return (_local1);
}
public static function get localization_url():String{
var _local1:String;
_local1 = "";
if (isSpilGroup() == true){
return (m_localization_url2);
};
if (localization_language_nr != 2){
_local1 = (m_localization_url1 + hostingdomain);
} else {
_local1 = m_localization_url1;
};
return (_local1);
}
private static function getXMLLocalization3():XML{
var _local1:XML;
_local1 = new XML();
_local1 = <localization>
<symbol_cash>$</symbol_cash>
<loading>
<title>Laden...</title>
<msg2>SPEEL MEER TIJDSMANAGEMENTSPELLEN OP: </msg2>
<msg>MEER TIJDSMANAGEMENT OP: </msg>
</loading>
<mainmenu>
<startgame>SPELEN</startgame>
<howtoplay>SPELUITLEG</howtoplay>
<highscore>HIGHSCORES</highscore>
<moregames>MEER SPELLEN</moregames>
<continuegame>DOORGAAN</continuegame>
<newgame>NIEUW SPEL</newgame>
<quality>KWALITEIT: </quality>
<high>HOOG</high>
<medium>NORMAAL</medium>
<low>LAAG</low>
<question>Verdergaan of een nieuw spel beginnen:</question>
<warning>(Als je een nieuw spel begint, worden oude gegevens gewist)</warning>
</mainmenu>
<howToPlay>
<title>SPELUITLEG</title>
<mainmenu>HOOFDMENU</mainmenu>
<game>SPEL</game>
<next>VOLGENDE</next>
<back>TERUG</back>
<cash>GELD $</cash>
<goal>DOEL $</goal>
<text1>1 - Zorg ervoor dat alles tijdens de show gladjes verloopt.</text1>
<text2>2 - Als er zich een probleem voordoet, sleep dan met de muis een werknemer naar die plek.</text2>
<text3>3 - Iedere werknemer draagt kleding die past bij zijn/haar specialiteit.</text3>
<text4>4 - Als een werknemer moe wordt, doet hij/zij niets meer. Geef vermoeide werknemers daarom energiedrankjes om ze op te peppen!</text4>
<text5>5 - Let op je inkomsten! Als die te hard dalen haal je het level niet.</text5>
<text6>6 - Koop upgrades om The Hall aan het rocken te krijgen!</text6>
</howToPlay>
<game>
<play>SPELEN</play>
<goalReached>DOEL BEREIKT</goalReached>
<levelStart>START SHOW</levelStart>
<goal>DOEL</goal>
<cash>GELD</cash>
<menu>MENU</menu>
<tutoMsg>Ok, daar gaan we. Sleep mij en Nick naar zones die aandacht nodig hebben. Onthoud, niet iedereen is overal even goed in. Nick is bijvoorbeeld een hele slechte barkeeper: hij drinkt meer dan hij schenkt... Als één van ons moe wordt, geef ons dan een energiedrankje uit de koelkast. Aan de slag!</tutoMsg>
<tutoBtn>OK</tutoBtn>
<logotext>MEER TIJDSMANAGEMENT OP:</logotext>
</game>
<upgrade>
<intromsg>ROCK NOG HARDER!</intromsg>
<tutoMsg>Dit zijn de belangrijkste zones en werknemers hier in The Hall. Op dit moment moet je het alleen met Nick en mij doen, maar zodra ik geld heb komt er een barkeeper bij. Klik rond voor informatie of druk gewoon op SPELEN om het feest te laten beginnen!</tutoMsg>
<tutoMsg2>De eerste show was echt vet goed! Nu kan ik het me veroorloven om een zone van The Hall te verbeteren of een barkeeper aan te nemen!</tutoMsg2>
<tutoBtn>OK</tutoBtn>
<play>SPELEN</play>
<cash>GELD</cash>
<hire>INHUREN</hire>
<buy>KOPEN</buy>
<back>TERUG</back>
<stageUp>
<title id="1">HOOFDPODIUM</title>
<title id="2">STAGE-O-MAGIC</title>
</stageUp>
<restUp>
<title id="1">BLAUWE STIER</title>
<title id="2">SUPERM8TIG</title>
</restUp>
<bathUp>
<title id="1">WC PLUS 2000</title>
<title id="2">TECHNITAIR</title>
</bathUp>
<soundTUp>
<title id="1">DE EQUALIZER</title>
<title id="2">SFX-100</title>
<title id="3">KLANKKONING 2000</title>
</soundTUp>
<barUp>
<title id="1">BAR-ON</title>
<title id="2">KEEPER-X 9000</title>
</barUp>
<entryUp>
<title id="1">ORGANISATIEKOORD-PRO</title>
<title id="2">DEUR-O-MAAT</title>
</entryUp>
<stageUpDesc>
<updesc id="1">Een nieuw podium waarop de bands uit hun dak kunnen gaan!</updesc>
<updesc id="2">Het ultieme podium! Iedere band zal in The Hall willen spelen!</updesc>
</stageUpDesc>
<restUpDesc>
<updesc id="1">Krijg een kick van deze verbeterde energiedrank.</updesc>
<updesc id="2">SUPERM8TIG: Meer kracht, meer stroom, meer energie.</updesc>
</restUpDesc>
<bathUpDesc>
<updesc id="1">Betere toiletten. Niemand zal klagen als je betere toiletten hebt!</updesc>
<updesc id="2">Het nieuwste van het nieuwste in sanitair!</updesc>
</bathUpDesc>
<soundTUpDesc>
<updesc id="1">Deze kast vol knoppen verbetert de klank van de muziek!</updesc>
<updesc id="2">SFX-100. Prima geluid. Prima prijs. Prima bediening. Prima.</updesc>
<updesc id="3">KLANKKONING 2000: de beste apparatuur die je kunt hebben.</updesc>
</soundTUpDesc>
<barUpDesc>
<updesc id="1">Met deze nieuwe bar schenken we de beste drankjes van de stad!</updesc>
<updesc id="2">Heerlijke drankjes schenken is een zware verantwoordelijkheid.</updesc>
</barUpDesc>
<entryUpDesc>
<updesc id="1">Structureer de in- en uitgang van The Hall!</updesc>
<updesc id="2">Haal ze binnen en hou ze binnen!</updesc>
</entryUpDesc>
<mainChar>MARY</mainChar>
<securityChar>NICK</securityChar>
<jackieChar>JACKIE</jackieChar>
<barmanChar>JUAN</barmanChar>
<soundmanChar>BOB</soundmanChar>
<security>Beveiliging</security>
<bartending>Bar</bartending>
<sound>Geluid</sound>
<none>Geen</none>
<maintenance>Onderhoud</maintenance>
</upgrade>
<progress>
<tutoBtn>OK</tutoBtn>
<tutoMsg>Openingsavond bij The Hall... Maak er een mooi feest van! Wie wordt de eerste act? Nu zijn ze nog goedkoop, maar iedere keer dat ze spelen gaat hun prijs omhoog!</tutoMsg>
<choicemsg>KIES EEN BAND:</choicemsg>
<next>VOLGENDE</next>
<back>TERUG</back>
<cash>GELD</cash>
<cost>PRIJS</cost>
<friday>VRIJ</friday>
<saturday>ZAT</saturday>
<sunday>ZON</sunday>
<fans>Fans:</fans>
<choiceRock>DE RAGGENDE ROCKERS</choiceRock>
<choiceCountry>COUNTRY CLARA</choiceCountry>
<choiceHiphop>DE HIPPE HOPPERS</choiceHiphop>
</progress>
<pause>
<title>PAUZE</title>
<resume>DOORGAAN</resume>
<soundfx>GELUIDSEFFECTEN</soundfx>
<music>MUZIEK</music>
<on>AAN</on>
<off>UIT</off>
</pause>
<scorescreen>
<levelcompleted>LEVEL VOLTOOID!</levelcompleted>
<fail>GEFAALD: PUBLIEK EIST GELD TERUG</fail>
<ok>OK</ok>
<tryagain>NOGMAALS PROBEREN</tryagain>
<levelscore>Levelscore</levelscore>
<totalscore>Totale Score</totalscore>
</scorescreen>
<gameOver>
<title>GAME OVER</title>
<score>Your Score</score>
<name>Your Name</name>
</gameOver>
<victory>
<title>JOUW TENT ROCKT!!</title>
<score>Je score</score>
<name>Je naam</name>
<submit>SCORE VERSTUREN</submit>
</victory>
<highscore>
<title>HIGHSCORES</title>
<name>NAAM</name>
<score>SCORE</score>
<rank>PLAATS</rank>
<menu>HOOFDMENU</menu>
<moregames>MEER SPELLEN</moregames>
</highscore>
</localization>
;
return (_local1);
}
private static function getXMLLocalization5():XML{
var _local1:XML;
_local1 = new XML();
_local1 = <localization>
<symbol_cash>$</symbol_cash>
<loading>
<title>Wird geladen...</title>
<msg2>SPIELE MEHR MANAGEMENTSPIELE AUF: </msg2>
<msg>MEHR MANAGEMENTSPIELE AUF: </msg>
</loading>
<mainmenu>
<startgame>SPIELEN</startgame>
<howtoplay>ANLEITUNG</howtoplay>
<highscore>HIGHSCORES</highscore>
<moregames>MEHR SPIELE</moregames>
<continuegame>WEITER</continuegame>
<newgame>NEUES SPIEL</newgame>
<quality>QUALITÄT: </quality>
<high>HOCH</high>
<medium>NORMAL</medium>
<low>NIEDRIG</low>
<question>Spiel fortführen oder neues Spiel beginnen:</question>
<warning>(Wenn du ein neues Spiel beginnst, werden deine Daten gelöscht)</warning>
</mainmenu>
<howToPlay>
<title>ANLEITUNG</title>
<mainmenu>HAUPTMENÜ</mainmenu>
<game>SPIEL</game>
<next>WEITER</next>
<back>ZURÜCK</back>
<cash>BARGELD $</cash>
<goal>ZIEL $</goal>
<text1>1 - Achte darauf, dass alles funktioniert, wenn die Show beginnt.</text1>
<text2>2 - Wenn es irgendwo ein Problem gibt, bewege einen deiner Mitarbeiter dorthin.</text2>
<text3>3 - Jeder Mitarbeiter ist auf einen Bereich spezialisiert. Welcher das ist, erkennst du an seiner Kleidung.</text3>
<text4>4 - Wenn ein Mitarbeiter müde wird, wird er/sie nicht mehr arbeiten. Gib müden Mitarbeitern Energydrinks, damit sie wieder fit werden!</text4>
<text5>5 - Halte deinen Bargeldbestand im Auge! Wenn du zu wenig Geld hast, kannst du das Levelziel nicht erreichen.</text5>
<text6>6 - Kaufe Upgrades, damit du in "The Hall" so richtig abrocken kannst!!</text6>
</howToPlay>
<game>
<play>SPIELEN</play>
<goalReached>ZIEL ERREICHT</goalReached>
<levelStart>LEVELSTART</levelStart>
<goal>ZIEL</goal>
<cash>BARGELD</cash>
<menu>MENÜ</menu>
<tutoMsg>Ok, los geht's. Bewege mich und Nick einfach dorthin, wo noch etwas getan werden muss. Denk daran, dass nicht jeder alles gut machen kann. Nick ist z.B. ein ganz schlechter Barkeeper. Er trinkt viel mehr, als dass er Gäste bedient... Wenn einer von uns müde wird, gib uns einen Energydrink aus dem Kühlschrank. Na dann, auf geht's.</tutoMsg>
<tutoBtn>OK</tutoBtn>
<logotext>MEHR MANAGEMENTSPIELE AUF:</logotext>
</game>
<upgrade>
<intromsg>LASS ES ROCKEN!</intromsg>
<tutoMsg>Das sind die wichtigsten Bereiche und Angestellten von "The Hall". Momentan arbeiten nur Nick und ich hier, aber wenn ich genug Geld habe, stellen wir einen Barkeeper ein. Klicke dich durch die Infos oder klicke SPIELEN zum Abrocken!</tutoMsg>
<tutoMsg2>Die erste Show war der Hammer! Jetzt habe ich genug Geld, um einen Bereich von "The Hall" zu verbessern oder einen Barkeeper einzustellen.</tutoMsg2>
<tutoBtn>OK</tutoBtn>
<play>SPIELEN</play>
<cash>BARGELD</cash>
<hire>EINSTELLEN</hire>
<buy>KAUFEN</buy>
<back>ZURÜCK</back>
<stageUp>
<title id="1">HAUPTBÜHNE</title>
<title id="2">STAGE-O-MAGIC</title>
</stageUp>
<restUp>
<title id="1">RED BLUE</title>
<title id="2">PWRATOR</title>
</restUp>
<bathUp>
<title id="1">B-ROOM PLUS 1000</title>
<title id="2">TECHNITÄR-ANLAGEN</title>
</bathUp>
<soundTUp>
<title id="1">THE EQUALIZER</title>
<title id="2">SFX-100</title>
<title id="3">SOUNDTRON 2000</title>
</soundTUp>
<barUp>
<title id="1">BAR-K</title>
<title id="2">TENDER-X 9000</title>
</barUp>
<entryUp>
<title id="1">PRO-ORGANIZER CORD</title>
<title id="2">DOOR-O-TRON</title>
</entryUp>
<stageUpDesc>
<updesc id="1">Eine neue Bühne für die Bands, um in "The Hall" so richtig abzurocken!</updesc>
<updesc id="2">Die ultimative Bühne! Jede Band wird unbedingt in "The Hall" spielen wollen!</updesc>
</stageUpDesc>
<restUpDesc>
<updesc id="1">Bleibe wach und fit mit diesem verbesserten Energydrink.</updesc>
<updesc id="2">PWRATOR: Mehr Energie, mehr Ausdauer, mehr Leistung.</updesc>
</restUpDesc>
<bathUpDesc>
<updesc id="1">Bessere Toilettenanlagen. Über bessere Toilettenanlagen wird sich sicher niemand beschweren.</updesc>
<updesc id="2">Der letzte Schrei in Sachen Sanitäranlagen!</updesc>
</bathUpDesc>
<soundTUpDesc>
<updesc id="1">Mit diesem Mischpult sorgst du für den richtigen Sound.</updesc>
<updesc id="2">SFX-100: Klasse Sound. Super Preis. Einfache Bedienung. Einfach ein Spitzengerät.</updesc>
<updesc id="3">SOUNDTRON 2000: Das beste Mischpult, das man sich für Geld kaufen kann.</updesc>
</soundTUpDesc>
<barUpDesc>
<updesc id="1">Mit diesem neuen Barbereich kannst du die besten Drinks der Stadt servieren!</updesc>
<updesc id="2">Hervorragende Getränke, aber auch eine große Verantwortung.</updesc>
</barUpDesc>
<entryUpDesc>
<updesc id="1">Organisiere Ein- und Ausgang zu "The Hall"!</updesc>
<updesc id="2">Bringt die Leute in den Laden und hält sie auch drin!</updesc>
</entryUpDesc>
<mainChar>MARY</mainChar>
<securityChar>NICK</securityChar>
<jackieChar>JACKIE</jackieChar>
<barmanChar>JUAN</barmanChar>
<soundmanChar>BOB</soundmanChar>
<security>Security</security>
<bartending>Barbereich</bartending>
<sound>Sound</sound>
<none>Keine</none>
<maintenance>Wartung</maintenance>
</upgrade>
<progress>
<tutoBtn>OK</tutoBtn>
<tutoMsg>Dein erster Tag in "The Hall"... Los geht's! Welche Band wird als erste auftreten? Jetzt kriegen wir die Bands noch relativ günstig, aber mit der Zeit werden sie immer teurer!</tutoMsg>
<choicemsg>BAND AUSWÄHLEN:</choicemsg>
<next>WEITER</next>
<back>ZURÜCK</back>
<cash>BARGELD</cash>
<cost>KOSTEN</cost>
<friday>FR</friday>
<saturday>SA</saturday>
<sunday>SO</sunday>
<fans>Fans:</fans>
<choiceRock>CITY ROCKERS</choiceRock>
<choiceCountry>DIXIE JANE</choiceCountry>
<choiceHiphop>HIPPIN' HOPPERS</choiceHiphop>
</progress>
<pause>
<title>ANGEHALTEN</title>
<resume>WEITERMACHEN</resume>
<soundfx>SOUNDEFFEKTE</soundfx>
<music>MUSIK</music>
<on>AN</on>
<off>AUS</off>
</pause>
<scorescreen>
<levelcompleted>LEVEL BEENDET!</levelcompleted>
<fail>LEVEL NICHT GESCHAFFT!</fail>
<ok>OK</ok>
<tryagain>NOCHMAL PROBIEREN</tryagain>
<levelscore>Levelpunkte</levelscore>
<totalscore>Gesamtpunkte</totalscore>
</scorescreen>
<gameOver>
<title>GAME OVER</title>
<score>Your Score</score>
<name>Your Name</name>
</gameOver>
<victory>
<title>SIEG!!</title>
<score>Deine Punkte</score>
<name>Dein Name</name>
<submit>PUNKTE EINTRAGEN</submit>
</victory>
<highscore>
<title>HIGHSCORES</title>
<name>NAME</name>
<score>PUNKTE</score>
<rank>PLATZ</rank>
<menu>HAUPTMENÜ</menu>
<moregames>MEHR SPIELE</moregames>
</highscore>
</localization>
;
return (_local1);
}
private static function getXMLLocalization6():XML{
var _local1:XML;
_local1 = new XML();
_local1 = <localization>
<symbol_cash>$</symbol_cash>
<loading>
<title>Ładowanie...</title>
<msg>WIĘCEJ GIER O ZARZĄDZANIU FIRMĄ NA: </msg>
<msg2>ZAGRAJ W WIĘCEJ GIER O ZARZĄDZANIU FIRMĄ NA: </msg2>
</loading>
<mainmenu>
<startgame>GRAJ</startgame>
<howtoplay>JAK GRAĆ</howtoplay>
<highscore>RANKING</highscore>
<moregames>WIĘCEJ GIER</moregames>
<continuegame>KONTYNUUJ</continuegame>
<newgame>NOWA GRA</newgame>
<quality>JAKOŚĆ: </quality>
<high>DOBRA</high>
<medium>ŚREDNIA</medium>
<low>NISKA</low>
<question>Kontynuuj lub zacznij nową grę:</question>
<warning>(Rozpoczęcie nowej gry usunie zapisane dane)</warning>
</mainmenu>
<howToPlay>
<title>JAK GRAĆ</title>
<mainmenu>MENU GŁÓWNE</mainmenu>
<game>GRA</game>
<next>DALEJ</next>
<back>POWRÓT</back>
<cash>GOTÓWKA $</cash>
<goal>CEL $</goal>
<text1>1 - W trakcie występu zwracaj uwagę, czy wszystko działa prawidłowo.</text1>
<text2>2 - Jeśli pojawi się problem, wybierz jednego ze swoich pracowników i przeciągnij go do odpowiedniego obszaru.</text2>
<text3>3 - Zauważ, że każdy pracownik nosi ubranie odpowiednie dla swojej specjalności.</text3>
<text4>4 - Jeśli pracownik zmęczy się, będzie potrzebował więcej czasu na wykonanie zadania. Podaj zmęczonym pracownikom napoje energetyczne, aby przywrócić im pełną energię!</text4>
<text5>5 - Obserwuj swój dochód! Jeśli spadnie za bardzo, poziom nie zostanie zaliczony!</text5>
<text6>6 - Kupuj nowe przedmioty, aby ulepszyć The Hall!</text6>
</howToPlay>
<game>
<play>GRAJ</play>
<goalReached>CEL OSIĄGNIĘTY</goalReached>
<levelStart>POZIOM STARTOWY</levelStart>
<goal>CEL</goal>
<cash>GOTÓWKA</cash>
<menu>MENU</menu>
<tutoMsg>Dobra, zaczynamy. Przeciągnij mnie i Nicka do tych części klubu, które wymagają uwagi. Pamiętaj, że nie każdy jest dobry we wszystkim. Na przykład Nickowi kiepsko idzie mieszanie drinków. Pije więcej, niż nalewa... Jeśli któreś z nas się zmęczy, zaopatrz go w napój energetyczny z lodówki. Spróbujmy.</tutoMsg>
<tutoBtn>OK</tutoBtn>
<logotext>WIĘCEJ GIER O ZARZĄDZANIU FIRMĄ NA:</logotext>
</game>
<upgrade>
<intromsg>DAJ CZADU!</intromsg>
<tutoMsg>Oto główne części klubu i jego pracownicy. Na razie to tylko ja i Nick, ale kiedy zbierzemy wystarczającą ilość pieniędzy, przyjmiemy barmana. Poklikaj po ekranie, aby otrzymać więcej informacji, albo kliknij na START, aby zacząć ostrą jazdę!</tutoMsg>
<tutoMsg2>Pierwszy występ był niesamowity! Teraz mogę pozwolić sobie na ulepszenie któregoś z pomieszczeń The Hall lub przyjęcie barmana!</tutoMsg2>
<tutoBtn>OK</tutoBtn>
<play>GRAJ</play>
<cash>GOTÓWKA</cash>
<hire>PRZYJMIJ</hire>
<buy>KUP</buy>
<back>POWRÓT</back>
<stageUp>
<title id="1">SCENA GŁÓWNA</title>
<title id="2">SCENA LUX</title>
</stageUp>
<restUp>
<title id="1">RED BLUE</title>
<title id="2">ENERGETYZATOR</title>
</restUp>
<bathUp>
<title id="1">TOALETA PLUS 1000</title>
<title id="2">TECHNOSANITARIATY</title>
</bathUp>
<soundTUp>
<title id="1">EQUALIZER</title>
<title id="2">SFX-100</title>
<title id="3">DŹWIĘKOTRON 2000</title>
</soundTUp>
<barUp>
<title id="1">BAR-K</title>
<title id="2">DRINKOMIESZACZ-X 9000</title>
</barUp>
<entryUp>
<title id="1">DYSCYPLINUJĄCA LINA</title>
<title id="2">TECHNODRZWI</title>
</entryUp>
<stageUpDesc>
<updesc id="1">Nowa scena dla rozgrzewających publiczność zespołów!</updesc>
<updesc id="2">Najlepsza ze scen! Teraz każda kapela będzie chciała zagrać w The Hall!</updesc>
</stageUpDesc>
<restUpDesc>
<updesc id="1">Ten ulepszony napój energetyczny daje niezłego kopa!</updesc>
<updesc id="2">ENERGETYZATOR: Więcej mocy, więcej doładowania, więcej energii.</updesc>
</restUpDesc>
<bathUpDesc>
<updesc id="1">Lepsze toalety. Nikt nie będzie narzekał na lepsze toalety!</updesc>
<updesc id="2">Najnowsze i największe osiągnięcie w technice sanitarnej!</updesc>
</bathUpDesc>
<soundTUpDesc>
<updesc id="1">Ten stół mikserski wydobędzie z muzyki to, co najlepsze.</updesc>
<updesc id="2">SFX-100. Dobry dźwięk. Dobra cena. Dobre sterowanie. Po prostu dobre.</updesc>
<updesc id="3">DŹWIĘKOTRON 2000: najlepszy stół mikserski, jaki można kupić za pieniądze.</updesc>
</soundTUpDesc>
<barUpDesc>
<updesc id="1">Z tym nowym barem będziemy serwować najlepsze drinki w mieście!</updesc>
<updesc id="2">Robienie dobrych drinków to bardzo odpowiedzialne zadanie.</updesc>
</barUpDesc>
<entryUpDesc>
<updesc id="1">Oddziel wejście od wyjścia!</updesc>
<updesc id="2">Sprowadź ludzi i zatrzymaj ich w środku!</updesc>
</entryUpDesc>
<mainChar>MARY</mainChar>
<securityChar>NICK</securityChar>
<jackieChar>JACKIE</jackieChar>
<barmanChar>JUAN</barmanChar>
<soundmanChar>BOB</soundmanChar>
<security>Ochrona</security>
<bartending>Bar</bartending>
<sound>Dźwięk</sound>
<none>Nic</none>
<maintenance>Ekipa techniczna</maintenance>
</upgrade>
<progress>
<tutoBtn>OK</tutoBtn>
<tutoMsg>Pierwszy dzień w The Hall... Daj czadu! Jaka kapela zagra na otwarcie? Teraz nie będą nas drogo kosztować, ale ich wartość będzie wzrastać za każdym razem, kiedy uda im się podbić serca publiczności w The Hall!</tutoMsg>
<choicemsg>WYBIERZ ZESPÓŁ:</choicemsg>
<next>DALEJ</next>
<back>POWRÓT</back>
<cash>GOTÓWKA</cash>
<cost>KOSZT</cost>
<friday>PT</friday>
<saturday>SO</saturday>
<sunday>ND</sunday>
<fans>Fans:</fans>
<choiceRock>CITY ROCKERS</choiceRock>
<choiceCountry>DIXIE JANE</choiceCountry>
<choiceHiphop> HIPPIN' HOPPERS</choiceHiphop>
</progress>
<pause>
<title>PAUZA</title>
<resume>KONTYNUUJ</resume>
<soundfx>EFEKTY DŹWIĘKOWE</soundfx>
<music>MUZYKA</music>
<on>WŁĄCZ</on>
<off>WYŁĄCZ</off>
</pause>
<scorescreen>
<levelcompleted>POZIOM UKOŃCZONY!</levelcompleted>
<fail>POZIOM NIE ZOSTAŁ UKOŃCZONY!</fail>
<ok>OK</ok>
<tryagain>SPRÓBUJ PONOWNIE</tryagain>
<levelscore>Wynik za poziom</levelscore>
<totalscore>Wynik ogólny</totalscore>
</scorescreen>
<gameOver>
<title>GAME OVER</title>
<score>Twój Wynik</score>
<name>Twoje Imię</name>
</gameOver>
<victory>
<title>ZWYCIĘSTWO!!</title>
<score>Twój Wynik</score>
<name>Twoje Imię</name>
<submit>ZAPISZ WYNIK</submit>
</victory>
<highscore>
<title>RANKING</title>
<name>IMIĘ</name>
<score>WYNIK</score>
<rank>POZYCJA</rank>
<menu>MENU GŁÓWNE</menu>
<moregames>WIĘCEJ GIER</moregames>
</highscore>
</localization>
;
return (_local1);
}
private static function getXMLLocalization7():XML{
var _local1:XML;
_local1 = new XML();
_local1 = <localization>
<symbol_cash>$</symbol_cash>
<loading>
<title>Laddar...</title>
<msg>MER TIDSSTRATEGI PÅ: </msg>
<msg2>SPELA FLER TIDSSTRATEGISPEL PÅ: </msg2>
</loading>
<mainmenu>
<startgame>SPELA</startgame>
<howtoplay>SPELREGLER</howtoplay>
<highscore>TOPPOÄNG</highscore>
<moregames>FLER SPEL</moregames>
<continuegame>FORTSÄTT</continuegame>
<newgame>NYTT SPEL</newgame>
<quality>KVALITET: </quality>
<high>HÖG</high>
<medium>NORMAL</medium>
<low>LÅG</low>
<question>Fortsätt eller starta nytt spel:</question>
<warning>(Startar du ett nytt spel raderas dina data)</warning>
</mainmenu>
<howToPlay>
<title>SPELREGLER</title>
<mainmenu>HUVUDMENY</mainmenu>
<game>SPEL</game>
<next>NÄSTA</next>
<back>BAKÅT</back>
<cash>PENGAR $</cash>
<goal>MÅL $</goal>
<text1>1 - Se till att allt fungerar när showen börjar.</text1>
<text2>2 - Om ett problem dyker upp - plocka upp en arbetare och dra honom till platsen.</text2>
<text3>3 - Observera att alla arbetare har kläder i enlighet med sitt specialområde.</text3>
<text4>4 - Om en arbetare blir trött tar det längre tid att göra saker. Ge energidryck till trötta arbetare för att ge dem full energi!</text4>
<text5>5 - Håll koll på inkomsterna! Om de är för låga förlorar du nivån.</text5>
<text6>6 - Köp uppgraderingar för att rocka fett!</text6>
</howToPlay>
<game>
<play>SPELA</play>
<goalReached>MÅL UPPNÅTT</goalReached>
<levelStart>NIVÅSTART</levelStart>
<goal>MÅL</goal>
<cash>PENGAR</cash>
<menu>MENY</menu>
<tutoMsg>Okej. Dra mig och Nick till platser med problem. Alla är inte duktiga på allt. Nick är till exempel en värdelös bartender. Han dricker mer än han säljer. Bjud på en energidryck om någon av oss blir trött. Nu kör vi.</tutoMsg>
<tutoBtn>OK</tutoBtn>
<logotext>MER TIDSSTRATEGI PÅ:</logotext>
</game>
<upgrade>
<intromsg>ROCKA FETT!</intromsg>
<tutoMsg>De här är de viktigaste områdena och anställda. Just nu är det bara jag och Nick här, men vi skaffar en bartender när jag har tillräckligt med pengar. Klicka runt för info eller tryck på SPELA!</tutoMsg>
<tutoMsg2>Den första showen var grym! Nu har jag råd att uppgradera ett område eller anställa en bartender!</tutoMsg2>
<tutoBtn>OK</tutoBtn>
<play>SPELA</play>
<cash>DENARO</cash>
<hire>ANSTÄLL</hire>
<buy>KÖP</buy>
<back>BAKÅT</back>
<stageUp>
<title id="1">HUVUDSCEN</title>
<title id="2">SCEN-O-MATIK</title>
</stageUp>
<restUp>
<title id="1">RÖDBLÅ</title>
<title id="2">MAXKRAFT</title>
</restUp>
<bathUp>
<title id="1">B-RUM PLUS 1000</title>
<title id="2">HYG-TECH</title>
</bathUp>
<soundTUp>
<title id="1">EQUALIZERN</title>
<title id="2">SFX-100</title>
<title id="3">LJUDTRON 2000</title>
</soundTUp>
<barUp>
<title id="1">BAR-K</title>
<title id="2">DRINK-X 9000</title>
</barUp>
<entryUp>
<title id="1">PROFFSREP</title>
<title id="2">DÖRR-O-TRON</title>
</entryUp>
<stageUpDesc>
<updesc id="1">En ny scen för banden att rocka på!</updesc>
<updesc id="2">Den perfekta scenen! Alla band kommer att vilja spela här!</updesc>
</stageUpDesc>
<restUpDesc>
<updesc id="1">Få en kick med den här förbättrade energidrycken.</updesc>
<updesc id="2">MAXKRAFT: Mer kraft, mer laddning, mer energi.</updesc>
</restUpDesc>
<bathUpDesc>
<updesc id="1">Bättre badrum. Ingen klagar på bättre badrum!</updesc>
<updesc id="2">Den senaste och bästa hygienteknologin!</updesc>
</bathUpDesc>
<soundTUpDesc>
<updesc id="1">Det här ljudbordet förbättrar ljudet på musiken.</updesc>
<updesc id="2">SFX-100. Bra ljud. Bra pris. Bra kontroller. Bra.</updesc>
<updesc id="3">LJUDTRON 2000: Det bästa ljudbordet på marknaden.</updesc>
</soundTUpDesc>
<barUpDesc>
<updesc id="1">Med den här nya baren, serverar vi stans bästa drinkar!</updesc>
<updesc id="2">Med goda drinkar följer stort ansvar.</updesc>
</barUpDesc>
<entryUpDesc>
<updesc id="1">Hantera folk som går in och ut!</updesc>
<updesc id="2">Få in dem och behåll dem där!</updesc>
</entryUpDesc>
<mainChar>MARY</mainChar>
<securityChar>NICK</securityChar>
<jackieChar>JACKIE</jackieChar>
<barmanChar>JUAN</barmanChar>
<soundmanChar>BOB</soundmanChar>
<security>Vakt</security>
<bartending>Bar</bartending>
<sound>Ljud</sound>
<none>Ingen</none>
<maintenance>Underhåll</maintenance>
</upgrade>
<progress>
<tutoBtn>OK</tutoBtn>
<tutoMsg>Första dagen ... Rocka fett! Vilket blir det första bandet? Vi får dem billigt nu, men de blir dyrare för varje gång de spelar här!</tutoMsg>
<choicemsg>VÄLJ ETT BAND:</choicemsg>
<next>NÄSTA</next>
<back>BAKÅT</back>
<cash>PENGAR</cash>
<cost>PRIS</cost>
<friday>FRE</friday>
<saturday>LÖR</saturday>
<sunday>SÖN</sunday>
<fans>Fans:</fans>
<choiceRock>STADSROCK</choiceRock>
<choiceCountry>DIXIE-JANE</choiceCountry>
<choiceHiphop>HIPP-HOPPERS</choiceHiphop>
</progress>
<pause>
<title>PAUSAT</title>
<resume>ÅTERGÅ</resume>
<soundfx>LJUDEFFEKT</soundfx>
<music>MUSIK</music>
<on>PÅ</on>
<off>AV</off>
</pause>
<scorescreen>
<levelcompleted>NIVÅ KLARAD!</levelcompleted>
<fail>NIVÅ EJ KLARAD!</fail>
<ok>OK</ok>
<tryagain>FÖRSÖKA IGEN</tryagain>
<levelscore>Nivåpoäng</levelscore>
<totalscore>Poäng totalt</totalscore>
</scorescreen>
<gameOver>
<title>GAME OVER</title>
<score>Your Score</score>
<name>Your Name</name>
</gameOver>
<victory>
<title>SEGER!!</title>
<score>Din poäng</score>
<name>Ditt namn</name>
<submit>SKICKA POÄNG</submit>
</victory>
<highscore>
<title>TOPPOÄNG</title>
<name>NAMN</name>
<score>POÄNG</score>
<rank>PLATS</rank>
<menu>HUVUDMENY</menu>
<moregames>FLER SPEL</moregames>
</highscore>
</localization>
;
return (_local1);
}
public static function get spilGroupUrl():Array{
return (m_SpilGroupUrl);
}
private static function getXMLLocalization2():XML{
var _local1:XML;
_local1 = new XML();
_local1 = <localization>
<symbol_cash>$</symbol_cash>
<loading>
<title>加载中...</title>
<msg>更多时间管理类游戏尽在: </msg>
<msg2>更多时间管理类游戏尽在: </msg2>
</loading>
<mainmenu>
<startgame>开始</startgame>
<howtoplay>玩法</howtoplay>
<highscore>高分榜</highscore>
<moregames>更多游戏</moregames>
<continuegame>继续</continuegame>
<newgame>新游戏</newgame>
<quality>质量: </quality>
<high>最好</high>
<medium>正常</medium>
<low>低</low>
<question>重玩:</question>
<warning>(开始新游戏会履盖你的数据)</warning>
</mainmenu>
<howToPlay>
<title>玩法</title>
<mainmenu>主菜单</mainmenu>
<game>游戏</game>
<next>下一步</next>
<back>后退</back>
<cash>现金 $</cash>
<goal>目标 $</goal>
<text1>1.表演开始了,确保所有设备正常运转。</text1>
<text2>2.如果出现问题,就挑一个员工把他拖到现场。</text2>
<text3>3.注意每个员工根据工种穿不同的衣服。</text3>
<text4>4.如果一个员工累了,她(他)得用更多时间完成任务。给疲惫的员工喝点功能饮料恢复体力!</text4>
<text5>5.注意你的收入!如果降的太厉害,本关就会失败。</text5>
<text6>6.购买“升级物品”让音乐厅炫起来!</text6>
</howToPlay>
<game>
<play>开始</play>
<goalReached>目标达到</goalReached>
<levelStart>本关开始</levelStart>
<goal>目标</goal>
<cash>现金</cash>
<menu>菜单</menu>
<tutoMsg>好了,出发吧。把我和尼克拖到场地中。记住,每个人都不是全能的。比如说尼克就不擅长调酒。他倒的酒还没有自己喝的多。。。如果我们有人累了,给我们从冰箱里拿点能量饮料。好了,开始吧。</tutoMsg>
<tutoBtn>Ok</tutoBtn>
<logotext>更多时间管理类游戏尽在:</logotext>
</game>
<upgrade>
<intromsg>摇摆起来吧!</intromsg>
<tutoMsg>这些是音乐厅的主要场地和员工。现在只有我和尼克,但是等我们有足够的现金时会请一个酒吧招待。点击相应的按钮获得帮助信息或者点“开始”进行摇滚之旅。</tutoMsg>
<tutoMsg2>第一场演出太棒了!现在我可以把音乐厅翻新一下或者雇一个酒吧招待!</tutoMsg2>
<tutoBtn>ok</tutoBtn>
<play>开始</play>
<cash>现金</cash>
<hire>雇用</hire>
<buy>购买</buy>
<back>后退</back>
<stageUp>
<title id="1">主舞台</title>
<title id="2">MATIC舞台</title>
</stageUp>
<restUp>
<title id="1">红蓝</title>
<title id="2">POWRATOR</title>
</restUp>
<bathUp>
<title id="1">B房间加1000</title>
<title id="2">TECHNITARY</title>
</bathUp>
<soundTUp>
<title id="1">均衡器</title>
<title id="2">音效-100</title>
<title id="3">SOUNDTRON 2000</title>
</soundTUp>
<barUp>
<title id="1">酒吧-K</title>
<title id="2">TENDER-X 9000</title>
</barUp>
<entryUp>
<title id="1">PRO-ORGANIZER CORD</title>
<title id="2">DOOR-O-TRON</title>
</entryUp>
<stageUpDesc>
<updesc id="1">为乐队买个新的舞台!</updesc>
<updesc id="2">终极舞台!每个乐队都会想在这个音乐厅表演的!</updesc>
</stageUpDesc>
<restUpDesc>
<updesc id="1">喝点改进性能量饮料吧,它能让你更带劲儿。</updesc>
<updesc id="2">PWRATOR: 更多的,更多的费用,更能量</updesc>
</restUpDesc>
<bathUpDesc>
<updesc id="1">更好的卫生间。没有人会抱怨更好的卫生间的!</updesc>
<updesc id="2">最新最好的清洁技术!</updesc>
</bathUpDesc>
<soundTUpDesc>
<updesc id="1">这个音效台可以均衡音乐。</updesc>
<updesc id="2">音效-100。 出色的音效。价格不错。出色的操控。很好。</updesc>
<updesc id="3">SOUNDTRON 2000: 可以买到的最好的音效台。</updesc>
</soundTUpDesc>
<barUpDesc>
<updesc id="1">有了这个新酒吧,我们可以提供城里最棒的酒了!</updesc>
<updesc id="2">来杯好酒干活才起劲。</updesc>
</barUpDesc>
<entryUpDesc>
<updesc id="1">安排音乐厅的入口和出口!</updesc>
<updesc id="2">吸引客人进来并不愿离去!</updesc>
</entryUpDesc>
<mainChar>MARY</mainChar>
<securityChar>NICK</securityChar>
<jackieChar>JACKIE</jackieChar>
<barmanChar>JUAN</barmanChar>
<soundmanChar>BOB</soundmanChar>
<security>保安</security>
<bartending>调酒</bartending>
<sound>音乐</sound>
<none>None</none>
<maintenance>保养</maintenance>
</upgrade>
<progress>
<tutoBtn>OK</tutoBtn>
<tutoMsg>今天是音乐厅开业第一天!谁会成为开业乐队呢?现在我们只能付少钱给他们,不过以后音乐厅火起来他们就可以挣到更多啦!</tutoMsg>
<choicemsg>选择乐队:</choicemsg>
<next>下一个</next>
<back>后退</back>
<cash>现金</cash>
<cost>费用</cost>
<friday>周五</friday>
<saturday>周六</saturday>
<sunday>周日</sunday>
<fans>FANS:</fans>
<choiceRock>CITY ROCKERS</choiceRock>
<choiceCountry>DIXIE JANE</choiceCountry>
<choiceHiphop>HIPPIN' HOPPERS</choiceHiphop>
</progress>
<pause>
<title>暂停</title>
<resume>继续</resume>
<soundfx>音效</soundfx>
<music>音乐</music>
<on>开</on>
<off>关</off>
</pause>
<scorescreen>
<levelcompleted>本关结束</levelcompleted>
<fail>没有比这更烂的表演了</fail>
<ok>OK</ok>
<tryagain>再试一次</tryagain>
<levelscore>本关分数</levelscore>
<totalscore>总分数</totalscore>
</scorescreen>
<gameOver>
<title>GAME OVER</title>
<score>你的分数</score>
<name>你的名字</name>
</gameOver>
<victory>
<title>你太棒了!</title>
<score>你的分数</score>
<name>你的名字</name>
<submit>提交分数</submit>
</victory>
<highscore>
<title>高分榜</title>
<name>名字</name>
<score>分数</score>
<rank>排名</rank>
<menu>主菜单</menu>
<moregames>更多游戏</moregames>
</highscore>
</localization>
;
return (_local1);
}
private static function getXMLLocalization4():XML{
var _local1:XML;
_local1 = new XML();
_local1 = <localization>
<symbol_cash>$</symbol_cash>
<loading>
<title>Chargement...</title>
<msg2>JOUE À PLUS DE JEUX DE GESTION DE TEMPS SUR : </msg2>
<msg>PLUS DE GESTION DE TEMPS SUR : </msg>
</loading>
<mainmenu>
<startgame>JOUER</startgame>
<howtoplay>INSTRUCTIONS</howtoplay>
<highscore>MEILLEURS SCORES</highscore>
<moregames>PLUS DE JEUX</moregames>
<continuegame>CONTINUER</continuegame>
<newgame>NOUVEAU JEU</newgame>
<quality>QUALITÉ: </quality>
<high>HAUTE</high>
<medium>NORMALE</medium>
<low>BASSE</low>
<question>Continuer ou commencer un nouveau jeu :</question>
<warning>(Si tu commences un nouveau jeu, cela effacera tes données)</warning>
</mainmenu>
<howToPlay>
<title>INSTRUCTIONS</title>
<mainmenu>MENU PRINCIPAL</mainmenu>
<game>JEU</game>
<next>SUIVANT</next>
<back>RETOUR</back>
<cash>LIQUIDES $</cash>
<goal>BUT $</goal>
<text1>1 - Pendant le concert, assure-toi que toutes les zones fonctionnent correctement.</text1>
<text2>2 - Si un problème se produit, choisis un de tes ouvriers et déplace-le vers la zone en question.</text2>
<text3>3 - N'oublie pas que chaque ouvrier porte des vêtements qui correspondent à sa profession.</text3>
<text4>4 – Lorsqu'un ouvrier se fatigue, il mettra plus de temps à faire son travail. Donne-lui alors des boissons énergisantes pour lui redonner du tonus !</text4>
<text5>5 - Fais attention à tes recettes ! Si elles baissent trop, tu n'arriveras pas au bout du niveau !</text5>
<text6>6 - Achète des upgrades pour faire vibrer le Hall !</text6>
</howToPlay>
<game>
<play>JOUER</play>
<goalReached>BUT ATTEINT</goalReached>
<levelStart>NIVEAU DÉMARRÉ</levelStart>
<goal>BUT</goal>
<cash>LIQUIDES</cash>
<menu>MENU</menu>
<tutoMsg>OK, allons-y. Déplace-moi ainsi que Nick vers les endroits dont il faut s'occuper. N'oublie pas que personne n'est bon à tout. Nick, par exemple, est nul quand il s'agit de servir au bar : il boit plus qu'il ne verse... Lorsqu'un d'entre nous devient fatigué, cherche-nous une boisson énergisante du réfrigérateur. Au boulot !</tutoMsg>
<tutoBtn>OK</tutoBtn>
<logotext>PLUS DE GESTION DE TEMPS SUR :</logotext>
</game>
<upgrade>
<intromsg>CHAUFFE MARCEL !</intromsg>
<tutoMsg>Voici les zones principales et les employés du Hall. Pour l'instant, il n'y a que moi et Nick, mais nous allons engager un barman dès que nous aurons assez d'argent. Clique pour avoir des informations ou bien appuie sur JOER pour commencer le jeu !</tutoMsg>
<tutoMsg2>Le premier concert était un vrai succès ! Maintenant, je peux me permettre d'upgrader le Hall ou bien d'embaucher un barman !</tutoMsg2>
<tutoBtn>OK</tutoBtn>
<play>JOUER</play>
<cash>LIQUIDES</cash>
<hire>EMBAUCHER</hire>
<buy>ACHAT</buy>
<back>RETOUR</back>
<stageUp>
<title id="1">ESTRADE PRINCIPALE</title>
<title id="2">ESTRADE-O-MATIQUE</title>
</stageUp>
<restUp>
<title id="1">TAUREAU RAID</title>
<title id="2">BOOSTEUR</title>
</restUp>
<bathUp>
<title id="1">WC-PLUS 1000</title>
<title id="2">TECHNITAIRE</title>
</bathUp>
<soundTUp>
<title id="1">L'ÉGALISEUR</title>
<title id="2">SFX-100</title>
<title id="3">SONITRON 2000</title>
</soundTUp>
<barUp>
<title id="1">BAR-K</title>
<title id="2">TENDER-X 9000</title>
</barUp>
<entryUp>
<title id="1">CORDE PRO-ORGANISATEUR</title>
<title id="2">PORTE-O-TRON</title>
</entryUp>
<stageUpDesc>
<updesc id="1">Une nouvelle estrade pour que les groupes viennent faire vibrer le Hall !</updesc>
<updesc id="2">Le nec plus ultra parmi les estrades ! Tous les groupes voudront venir jouer au Hall !</updesc>
</stageUpDesc>
<restUpDesc>
<updesc id="1">Prends ton pied et booste-toi avec les boissons énergisantes améliorées.</updesc>
<updesc id="2">BOOSTEUR : Plus de force, plus de charges, plus d'énergie.</updesc>
</restUpDesc>
<bathUpDesc>
<updesc id="1">Des WC de meilleure qualité. Personne ne se plaindra si les WC sont meilleurs !</updesc>
<updesc id="2">Le nec plus ultra de la technologie sanitaire !</updesc>
</bathUpDesc>
<soundTUpDesc>
<updesc id="1">Cette table de mixage t'aidera à égaliser la musique.</updesc>
<updesc id="2">SFX-100. Bonne sonorité. Bon prix. Bonnes commandes. Rien à redire.</updesc>
<updesc id="3">SONITRON 2000 : la meilleure table de mixage qu'on puisse se procurer.</updesc>
</soundTUpDesc>
<barUpDesc>
<updesc id="1">Dans ce nouveau bar, nous servirons les meilleures boissons de toute la ville !</updesc>
<updesc id="2">Les meilleures boissons entraînent aussi une grande responsabilité.</updesc>
</barUpDesc>
<entryUpDesc>
<updesc id="1">Organise l'entrée et la sortie du Hall !</updesc>
<updesc id="2">Fais-les entrer et garde-les à l'intérieur !</updesc>
</entryUpDesc>
<mainChar>MARY</mainChar>
<securityChar>NICK</securityChar>
<jackieChar>JACKIE</jackieChar>
<barmanChar>JUAN</barmanChar>
<soundmanChar>BOB</soundmanChar>
<security>Sécurité</security>
<bartending>Service au bar</bartending>
<sound>Sonorité</sound>
<none>Aucun</none>
<maintenance>Maintenance</maintenance>
</upgrade>
<progress>
<tutoBtn>OK</tutoBtn>
<tutoMsg>C'est le grand jour pour le Hall... Et c'est parti ! Quel sera notre premier groupe ? Nous pouvons les avoir pour peu d'argent maintenant, mais leur prix augmentera au fur et à mesure qu'ils viendront au Hall !</tutoMsg>
<choicemsg>CHOISIR UN GROUPE :</choicemsg>
<next>SUIVANT</next>
<back>RETOUR</back>
<cash>LIQUIDES</cash>
<cost>COÛT</cost>
<friday>VE</friday>
<saturday>SA</saturday>
<sunday>DI</sunday>
<fans>Fans:</fans>
<choiceRock>CITY ROCKERS</choiceRock>
<choiceCountry>DIXIE JANE</choiceCountry>
<choiceHiphop>HIPPIN' HOPPERS</choiceHiphop>
</progress>
<pause>
<title>EN PAUSE</title>
<resume>REPRENDRE</resume>
<soundfx>EFFETS DE SON</soundfx>
<music>MUSIQUE</music>
<on>ACTIVÉ</on>
<off>DÉSACTIVÉ</off>
</pause>
<scorescreen>
<levelcompleted>NIVEAU COMPLET!</levelcompleted>
<fail>NIVEAU NON ATTEINT !</fail>
<ok>OK</ok>
<tryagain>ESSAYER DE NOUVEAU</tryagain>
<levelscore>Score de niveau</levelscore>
<totalscore>Score total</totalscore>
</scorescreen>
<gameOver>
<title>GAME OVER</title>
<score>Your Score</score>
<name>Your Name</name>
</gameOver>
<victory>
<title>VICTOIRE !!</title>
<score>Ton Score</score>
<name>Ton Nom</name>
<submit>ENREGISTRER LE SCORE</submit>
</victory>
<highscore>
<title>MEILLEURS SCORES</title>
<name>NOM</name>
<score>SCORE</score>
<rank>RANG</rank>
<menu>MENU PRINCIPAL</menu>
<moregames>PLUS DE JEUX</moregames>
</highscore>
</localization>
;
return (_local1);
}
private static function getXMLLocalization9():XML{
var _local1:XML;
_local1 = new XML();
_local1 = <localization>
<symbol_cash>$</symbol_cash>
<loading>
<title>Cargando...</title>
<msg2>JUEGA A MÁS JUEGOS DE GESTIÓN DE TIEMPO EN: </msg2>
<msg>MÁS GESTIÓN DE TIEMPO EN: </msg>
</loading>
<mainmenu>
<startgame>JUGAR</startgame>
<howtoplay>CÓMO JUGAR</howtoplay>
<highscore>PUNTUACIONES MÁXIMAS</highscore>
<moregames>MÁS JUEGOS</moregames>
<continuegame>CONTINUAR</continuegame>
<newgame>NUEVA PARTIDA</newgame>
<quality>CALIDAD: </quality>
<high>ALTA</high>
<medium>NORMAL</medium>
<low>BAJA</low>
<question>Continuar o iniciar una partida nueva:</question>
<warning>(Si empiezas una partida nueva, se borrarán tus datos)</warning>
</mainmenu>
<howToPlay>
<title>CÓMO JUGAR</title>
<mainmenu>MENÚ PRINCIPAL</mainmenu>
<game>JUEGO</game>
<next>SIGUIENTE</next>
<back>ATRÁS</back>
<cash>DINERO $</cash>
<goal>OBJETIVO $</goal>
<text1>1 - Mientras el show continúe, asegúrate de que se trabaja en todas las áreas.</text1>
<text2>2 - Si hay algún problema, coge a uno de tus empleados y llévalo a esa área.</text2>
<text3>3 - Fíjate que cada empleado lleva un uniforme distinto, dependiendo de su especialidad.</text3>
<text4>4 – Si un empleado se cansa, tardará más tiempo en realizar las tareas. Da bebidas energéticas a los empleados cansados para que se llenen de energía.</text4>
<text5>5 - ¡Controla tus ingresos! Si se reducen mucho, no superarás el nivel.</text5>
<text6>6 - ¡Compra mejoras para que vibre The Hall!</text6>
</howToPlay>
<game>
<play>JUGAR</play>
<goalReached>OBJETIVO CONSEGUIDO</goalReached>
<levelStart>INICIO DEL NIVEL</levelStart>
<goal>OBJETIVO</goal>
<cash>DINERO</cash>
<menu>MENÚ</menu>
<tutoMsg>Vale, vamos allá. Llévame a mí y a Nick a las áreas que necesitan ayuda. Recuerda, no todo el mundo es bueno en todo. Por ejemplo, Gori no es bueno para estar detrás de la barra, bebe como un cosaco... Si uno de nosotros está cansado, coge una bebida energética del frigorífico. Manos a la obra.</tutoMsg>
<tutoBtn>OK</tutoBtn>
<logotext>MÁS GESTIÓN DE TIEMPO EN:</logotext>
</game>
<upgrade>
<intromsg>¡A VIBRAR!</intromsg>
<tutoMsg>Estos son los empleados y áreas principales del The Hall. Ahora solo estamos Nick y yo, pero contrataremos a un camarero cuando tenga dinero suficiente. Haz clic para obtener más información o pulsa JUGAR para empezar a vibrar.</tutoMsg>
<tutoMsg2>¡El primer show ha sido increíble! ¡Ahora puedo permitirme mejorar un área del The Hall o contratar a un camarero!</tutoMsg2>
<tutoBtn>OK</tutoBtn>
<play>JUGAR</play>
<cash>DINERO</cash>
<hire>CONTRATAR</hire>
<buy>COMPRAR</buy>
<back>ATRÁS</back>
<stageUp>
<title id="1">ESCENARIO PRINCIPAL</title>
<title id="2">ESCENARIOLÓGICO</title>
</stageUp>
<restUp>
<title id="1">RED BLUE</title>
<title id="2">PODERATOR</title>
</restUp>
<bathUp>
<title id="1">BAÑOS PLUS 1000</title>
<title id="2">TECNOGIENE</title>
</bathUp>
<soundTUp>
<title id="1">ECUALIZADOR</title>
<title id="2">Efectos de sonido-100</title>
<title id="3">SONOTRON 2000</title>
</soundTUp>
<barUp>
<title id="1">BAR-K</title>
<title id="2">COCTELÓN- 9000</title>
</barUp>
<entryUp>
<title id="1">ORGANIZADOR</title>
<title id="2">PUERTAMÁTICA</title>
</entryUp>
<stageUpDesc>
<updesc id="1">¡Un escenario nuevo para que los grupos hagan vibrar The Hall!</updesc>
<updesc id="2">¡Escenario a la última! ¡Todos los grupos querrán tocar en The Hall!</updesc>
</stageUpDesc>
<restUpDesc>
<updesc id="1">Llénate de energía y no pares con la bebida energética mejorada.</updesc>
<updesc id="2">PODERATOR: más poder, más responsabilidad, más energía.</updesc>
</restUpDesc>
<bathUpDesc>
<updesc id="1">Baños mejores. ¡Nadie se queja de los baños!</updesc>
<updesc id="2">¡Lo mejor y lo último en tecnología de higiene!</updesc>
</bathUpDesc>
<soundTUpDesc>
<updesc id="1">Esta mesa de sonido te ayudará a ecualizar la música.</updesc>
<updesc id="2">Efectos de sonido-100. Buen sonido. Buen precio. Buen control. Bueno.</updesc>
<updesc id="3">SONOTRON 2000: la mejor mesa de sonido que te puedes permitir.</updesc>
</soundTUpDesc>
<barUpDesc>
<updesc id="1">¡Con este nuevo bar, serviremos las mejores bebidas de la ciudad!</updesc>
<updesc id="2">Las buenas bebidas conllevan grandes responsabilidades.</updesc>
</barUpDesc>
<entryUpDesc>
<updesc id="1">¡Organiza las entradas y salidas de The Hall!</updesc>
<updesc id="2">¡SI entras, te quedas!</updesc>
</entryUpDesc>
<mainChar>MARY</mainChar>
<securityChar>NICK</securityChar>
<jackieChar>JACKIE</jackieChar>
<barmanChar>JUAN</barmanChar>
<soundmanChar>BOB</soundmanChar>
<security>Seguridad</security>
<bartending>Bar</bartending>
<sound>Sonido</sound>
<none>Nada</none>
<maintenance>Mantenimiento</maintenance>
</upgrade>
<progress>
<tutoBtn>OK</tutoBtn>
<tutoMsg>Es el primer día en The Hall... ¡Vibremos! ¿Quién será el primer grupo? Ahora mismo no debe de ser muy caro, pero lo será conforme vaya tocando en The Hall.</tutoMsg>
<choicemsg>ELIGE UN GRUPO:</choicemsg>
<next>SIGUIENTE</next>
<back>ATRÁS</back>
<cash>DINERO</cash>
<cost>PRECIO</cost>
<friday>VIE</friday>
<saturday>SÁB</saturday>
<sunday>DOM</sunday>
<fans>Fans:</fans>
<choiceRock>CITY ROCKERS</choiceRock>
<choiceCountry>DIXIE JANE</choiceCountry>
<choiceHiphop>HIPPIN' HOPPERS</choiceHiphop>
</progress>
<pause>
<title>EN PAUSA</title>
<resume>REANUDAR</resume>
<soundfx>EFECTOS DE SONIDO</soundfx>
<music>MÚSICA</music>
<on>SÍ</on>
<off>NO</off>
</pause>
<scorescreen>
<levelcompleted>¡NIVEL COMPLETADO!</levelcompleted>
<fail>¡NIVEL NO SUPERADO!</fail>
<ok>OK</ok>
<tryagain>VOLVER A INTENTAR</tryagain>
<levelscore>Puntuación del nivel</levelscore>
<totalscore>Puntuación total</totalscore>
</scorescreen>
<gameOver>
<title>GAME OVER</title>
<score>Your Score</score>
<name>Your Name</name>
</gameOver>
<victory>
<title>¡VICTORIA!</title>
<score>Tu Puntuación</score>
<name>Tu Nombre</name>
<submit>ENVIAR PUNTUACIÓN</submit>
</victory>
<highscore>
<title>PUNTUACIONES MÁXIMAS</title>
<name>NOMBRE</name>
<score>PUNTUACIÓN</score>
<rank>POSICIÓN</rank>
<menu>MENÚ PRINCIPAL</menu>
<moregames>MÁS JUEGOS</moregames>
</highscore>
</localization>
;
return (_local1);
}
}
}//package classes.global
Section 22
//Levels (classes.global.Levels)
package classes.global {
public class Levels {
public static var stages:XML;
public static var indexLevel:int;
public static var indexStage:int;
public static function init():void{
stages = getStages();
}
private static function getStage1():XML{
var _local1:*;
_local1 = <stage>
<fases>
<fase number="1">
<goalPerc>0.9</goalPerc>
<maxProb>2</maxProb>
<startProbFac>30</startProbFac>
<time>120</time><!--seconds -->
<crewMembers><!--members avaiable in this level -->
<member id="0">Security Guard</member>
</crewMembers>
<areas>
<name>Stage</name>
<name>Bathroom</name>
<name>Bar</name>
<name>Entrance & Exit</name>
<name>Crowd</name>
<name>Resting</name>
</areas>
</fase>
<fase number="2">
<goalPerc>0.9</goalPerc>
<startProbFac>20</startProbFac>
<maxProb>2</maxProb>
<time>135</time><!--seconds -->
<crewMembers><!--members avaiable in this level -->
<member id="0">Security Guard</member>
<member id="1">Barman</member>
</crewMembers>
<areas>
<name>Stage</name>
<name>Bathroom</name>
<name>Bar</name>
<name>Entrance & Exit</name>
<name>Crowd</name>
<name>Resting</name>
</areas>
</fase>
<fase number="3">
<goalPerc>0.9</goalPerc>
<startProbFac>15</startProbFac>
<maxProb>2</maxProb>
<time>150</time><!--seconds -->
<crewMembers><!--members avaiable in this level -->
<member id="0">Security Guard</member>
<member id="1">Barman</member>
</crewMembers>
<areas>
<name>Stage</name>
<name>Bathroom</name>
<name>Bar</name>
<name>Entrance & Exit</name>
<name>Crowd</name>
<name>Resting</name>
</areas>
</fase>
<fase number="4">
<goalPerc>0.9</goalPerc>
<startProbFac>10</startProbFac>
<maxProb>2</maxProb>
<time>165</time><!--seconds -->
<crewMembers><!--members avaiable in this level -->
<member id="0">Security Guard</member>
<member id="1">Barman</member>
</crewMembers>
<areas>
<name>Stage</name>
<name>Bathroom</name>
<name>Bar</name>
<name>Entrance & Exit</name>
<name>Crowd</name>
<name>Resting</name>
</areas>
</fase>
<fase number="5">
<goalPerc>0.9</goalPerc>
<startProbFac>5</startProbFac>
<maxProb>2</maxProb>
<time>180</time><!--seconds -->
<crewMembers><!--members avaiable in this level -->
<member id="0">Security Guard</member>
<member id="1">Barman</member>
</crewMembers>
<areas>
<name>Stage</name>
<name>Bathroom</name>
<name>Bar</name>
<name>Entrance & Exit</name>
<name>Crowd</name>
<name>Resting</name>
</areas>
</fase>
<fase number="6">
<goalPerc>0.9</goalPerc>
<startProbFac>0</startProbFac>
<maxProb>3</maxProb>
<time>195</time><!--seconds -->
<crewMembers><!--members avaiable in this level -->
<member id="0">Security Guard</member>
<member id="1">Barman</member>
<member id="3">Jackie</member>
</crewMembers>
<areas>
<name>Stage</name>
<name>Bathroom</name>
<name>Bar</name>
<name>Entrance & Exit</name>
<name>Crowd</name>
<name>Resting</name>
</areas>
</fase>
<fase number="7">
<goalPerc>0.9</goalPerc>
<startProbFac>0</startProbFac>
<maxProb>3</maxProb>
<time>210</time><!--seconds -->
<crewMembers><!--members avaiable in this level -->
<member id="0">Security Guard</member>
<member id="1">Barman</member>
<member id="3">Jackie</member>
</crewMembers>
<areas>
<name>Stage</name>
<name>Bathroom</name>
<name>Sound table</name>
<name>Bar</name>
<name>Entrance & Exit</name>
<name>Crowd</name>
<name>Resting</name>
</areas>
</fase>
<fase number="8">
<goalPerc>0.9</goalPerc>
<startProbFac>0</startProbFac>
<maxProb>3</maxProb>
<time>225</time><!--seconds -->
<crewMembers><!--members avaiable in this level -->
<member id="0">Security Guard</member>
<member id="1">Barman</member>
<member id="3">Jackie</member>
</crewMembers>
<areas>
<name>Stage</name>
<name>Bathroom</name>
<name>Sound table</name>
<name>Bar</name>
<name>Entrance & Exit</name>
<name>Crowd</name>
<name>Resting</name>
</areas>
</fase>
<fase number="9">
<goalPerc>0.9</goalPerc>
<startProbFac>0</startProbFac>
<maxProb>3</maxProb>
<time>240</time><!--seconds -->
<crewMembers><!--members avaiable in this level -->
<member id="0">Security Guard</member>
<member id="1">Barman</member>
<member id="2">Soundman</member>
<member id="3">Jackie</member>
</crewMembers>
<areas>
<name>Stage</name>
<name>Bathroom</name>
<name>Sound table</name>
<name>Bar</name>
<name>Entrance & Exit</name>
<name>Crowd</name>
<name>Resting</name>
</areas>
</fase>
<fase number="10">
<goalPerc>0.9</goalPerc>
<startProbFac>0</startProbFac>
<maxProb>4</maxProb>
<time>255</time><!--seconds -->
<crewMembers><!--members avaiable in this level -->
<member id="0">Security Guard</member>
<member id="1">Barman</member>
<member id="2">Soundman</member>
<member id="3">Jackie</member>
</crewMembers>
<areas>
<name>Stage</name>
<name>Bathroom</name>
<name>Sound table</name>
<name>Bar</name>
<name>Entrance & Exit</name>
<name>Crowd</name>
<name>Resting</name>
</areas>
</fase>
<fase number="11">
<goalPerc>0.9</goalPerc>
<startProbFac>0</startProbFac>
<maxProb>4</maxProb>
<time>270</time><!--seconds -->
<crewMembers><!--members avaiable in this level -->
<member id="0">Security Guard</member>
<member id="1">Barman</member>
<member id="2">Soundman</member>
<member id="3">Jackie</member>
</crewMembers>
<areas>
<name>Stage</name>
<name>Bathroom</name>
<name>Sound table</name>
<name>Bar</name>
<name>Entrance & Exit</name>
<name>Crowd</name>
<name>Resting</name>
</areas>
</fase>
<fase number="12">
<goalPerc>0.9</goalPerc>
<startProbFac>0</startProbFac>
<maxProb>4</maxProb>
<time>285</time><!--seconds -->
<crewMembers><!--members avaiable in this level -->
<member id="0">Security Guard</member>
<member id="1">Barman</member>
<member id="2">Soundman</member>
<member id="3">Jackie</member>
</crewMembers>
<areas>
<name>Stage</name>
<name>Bathroom</name>
<name>Sound table</name>
<name>Bar</name>
<name>Entrance & Exit</name>
<name>Crowd</name>
<name>Resting</name>
</areas>
</fase>
<fase number="13">
<goalPerc>0.9</goalPerc>
<startProbFac>0</startProbFac>
<maxProb>4</maxProb>
<time>300</time><!--seconds -->
<crewMembers><!--members avaiable in this level -->
<member id="0">Security Guard</member>
<member id="1">Barman</member>
<member id="2">Soundman</member>
<member id="3">Jackie</member>
</crewMembers>
<areas>
<name>Stage</name>
<name>Bathroom</name>
<name>Sound table</name>
<name>Bar</name>
<name>Entrance & Exit</name>
<name>Crowd</name>
<name>Resting</name>
</areas>
</fase>
</fases>
</stage>
;
return (_local1);
}
private static function getStages():XML{
var _local1:XML;
_local1 = new XML();
_local1 = <stages></stages>
;
_local1.appendChild(getStage1());
return (_local1);
}
}
}//package classes.global
Section 23
//ParamsXML (classes.global.ParamsXML)
package classes.global {
public class ParamsXML {
private var xmlParamsChars:XML;
private var xmlParamsCharsAreas:XML;
private var xmlParamsAreas:XML;
private var xmlParamsGame:XML;
public function ParamsXML(){
xmlParamsGame = setParamsGame();
xmlParamsChars = setParamsChars();
xmlParamsAreas = setParamsAreas();
xmlParamsCharsAreas = setParamsCharsAreas();
}
public function getParamsCharsAreas():XML{
return (xmlParamsCharsAreas);
}
public function getParamsChars():XML{
return (xmlParamsChars);
}
public function getParamsAreas():XML{
return (xmlParamsAreas);
}
private function setParamsAreas():XML{
var _local1:XML;
_local1 = <params>
<area>
<name>Stage</name>
<upgrades>
<upgrade type="0">
<malfunction>25</malfunction>
<clients>10</clients>
<value>0.1</value>
<valueForUp>0</valueForUp>
</upgrade>
<upgrade type="1">
<malfunction>60</malfunction>
<clients>20</clients>
<value>0.15</value>
<valueForUp>21000</valueForUp>
</upgrade>
<upgrade type="2">
<malfunction>130</malfunction>
<clients>30</clients>
<value>0.2</value>
<valueForUp>47500</valueForUp>
</upgrade>
</upgrades>
<tasks>
<task>
<skill>Sound</skill>
<malfunction>band doing bad</malfunction>
</task>
<task>
<skill>Security</skill>
<malfunction>people climbing</malfunction>
</task>
<task>
<skill>Bartending</skill>
<malfunction>band stopping</malfunction>
</task>
</tasks>
</area>
<area>
<name>Sound table</name>
<upgrades>
<upgrade type="0">
<malfunction>45</malfunction>
<indicator level1="10" level2="25" level3="44"/>
<clients>10</clients>
<value>0.1</value>
<valueForUp>35000</valueForUp>
</upgrade>
<upgrade type="1">
<malfunction>85</malfunction>
<indicator level1="10" level2="35" level3="74"/>
<clients>20</clients>
<value>0.15</value>
<valueForUp>67500</valueForUp>
</upgrade>
<upgrade type="2">
<malfunction>155</malfunction>
<indicator level1="10" level2="60" level3="114"/>
<clients>30</clients>
<value>0.2</value>
<valueForUp>135000</valueForUp>
</upgrade>
</upgrades>
<tasks>
<task>
<skill>Sound</skill>
<malfunction>band sound</malfunction>
</task>
<task>
<skill>Maintenance</skill>
<malfunction>no sound</malfunction>
</task>
</tasks>
</area>
<area>
<name>Bathroom</name>
<upgrades>
<upgrade type="0">
<malfunction>35</malfunction>
<indicator level1="10" level2="20" level3="30"/>
<clients>10</clients>
<value>0.1</value>
<valueForUp>0</valueForUp>
</upgrade>
<upgrade type="1">
<malfunction>75</malfunction>
<indicator level1="10" level2="35" level3="55"/>
<clients>20</clients>
<value>0.15</value>
<valueForUp>15750</valueForUp>
</upgrade>
<upgrade type="2">
<malfunction>135</malfunction>
<indicator level1="10" level2="75" level3="120"/>
<clients>30</clients>
<value>0.2</value>
<valueForUp>45000</valueForUp>
</upgrade>
</upgrades>
<tasks>
<task>
<skill>Maintenance</skill>
<malfunction>big line</malfunction>
</task>
</tasks>
</area>
<area>
<name>Bar</name>
<upgrades>
<upgrade type="0">
<malfunction>35</malfunction>
<indicator level1="10" level2="20" level3="44"/>
<clients>10</clients>
<value>0.1</value>
<valueForUp>0</valueForUp>
</upgrade>
<upgrade type="1">
<malfunction>85</malfunction>
<indicator level1="10" level2="35" level3="84"/>
<clients>20</clients>
<value>0.15</value>
<valueForUp>20500</valueForUp>
</upgrade>
<upgrade type="2">
<malfunction>145</malfunction>
<indicator level1="15" level2="75" level3="124"/>
<clients>30</clients>
<value>0.2</value>
<valueForUp>51000</valueForUp>
</upgrade>
</upgrades>
<tasks>
<task>
<skill>maintenance</skill>
<malfunction>big line</malfunction>
</task>
<task>
<skill>sound</skill>
<malfunction>people leaving</malfunction>
</task>
<task>
<skill>bartending</skill>
<malfunction>lower income</malfunction>
</task>
</tasks>
</area>
<area>
<name>Crowd</name>
<upgrades>
<upgrade type="0">
<malfunction>55</malfunction>
<indicator level1="15" level2="25" level3="65"/>
<clients>10</clients>
<value>0.1</value>
</upgrade>
<upgrade type="1">
<malfunction>55</malfunction>
<indicator level1="15" level2="25" level3="65"/>
<clients>10</clients>
<value>0.1</value>
</upgrade>
<upgrade type="2">
<malfunction>55</malfunction>
<indicator level1="15" level2="25" level3="65"/>
<clients>10</clients>
<value>0.1</value>
</upgrade>
</upgrades>
<tasks>
<task>
<skill>Security</skill>
<malfunction>start a fight</malfunction>
</task>
<task>
<skill>Bartending</skill>
<malfunction>lower income</malfunction>
</task>
</tasks>
</area>
<area>
<name>Entrance & Exit</name>
<upgrades>
<upgrade type="0">
<malfunction>35</malfunction>
<indicator level1="12" level2="25" level3="35"/>
<value>0.1</value>
<clients>10</clients>
<valueForUp>0</valueForUp>
</upgrade>
<upgrade type="1">
<malfunction>95</malfunction>
<indicator level1="15" level2="30" level3="84"/>
<value>0.15</value>
<clients>20</clients>
<valueForUp>28750</valueForUp>
</upgrade>
<upgrade type="2">
<malfunction>145</malfunction>
<indicator level1="17" level2="35" level3="124"/>
<value>0.2</value>
<clients>30</clients>
<valueForUp>65750</valueForUp>
</upgrade>
</upgrades>
<runaways>
<number>4</number>
<number>3</number>
<number>2</number>
</runaways>
<tasks>
<task>
<skill>Security</skill>
<malfunction>not pay</malfunction>
</task>
</tasks>
</area>
<area>
<name>Resting</name>
<upgrades>
<upgrade type="0">
<recoveryRate>10</recoveryRate>
<valueForUp>0</valueForUp>
</upgrade>
<upgrade type="1">
<recoveryRate>10</recoveryRate>
<valueForUp>11500</valueForUp>
</upgrade>
<upgrade type="2">
<recoveryRate>10</recoveryRate>
<valueForUp>38750</valueForUp>
</upgrade>
</upgrades>
</area>
</params>
;
return (_local1);
}
private function setParamsCharsAreas():XML{
var _local1:XML;
_local1 = new XML();
_local1 = <params>
<actionTime>8</actionTime> <!-- seconds -->
<energiesRanges>
<energy min="0" max="25" face="tired"/>
<energy min="26" max="55" face="normal"/>
<energy min="56" max="100" face="energetic"/>
</energiesRanges>
<skillsEnergy>
<skill type="unskilled" rate="2.5"/>
<skill type="normal" rate="2"/>
<skill type="skilled" rate="1.5"/>
</skillsEnergy>
</params>
;
return (_local1);
}
public function getParamsGame():XML{
return (xmlParamsGame);
}
private function setParamsGame():XML{
var _local1:XML;
_local1 = new XML();
_local1 = <params>
<initial_cash>100</initial_cash>
<tick_time>3</tick_time>
<crowdEncreaseFactor>30</crowdEncreaseFactor><!-- visual crowd factor -->
<amortizationFactor>0.2</amortizationFactor>
<amortizationClientsFactor>0.5</amortizationClientsFactor>
<malfunc_encrease_factor>0.1</malfunc_encrease_factor><!-- 10% -->
<performance_by_skill>
<skilled_factor>0.65</skilled_factor>
<unskilled_factor>1.5</unskilled_factor>
<none_factor>1</none_factor>
</performance_by_skill>
<performance_by_energy>
<energetic>0.85</energetic>
<normal>1</normal>
<tired>1.4</tired>
</performance_by_energy>
</params>
;
return (_local1);
}
private function setParamsChars():XML{
var _local1:XML;
_local1 = <params>
<mainChar>
<name>Gary Nolen</name>
<skilled>maintenance</skilled>
<unskilled>security</unskilled>
<energy>90</energy>
</mainChar>
<crewMembers>
<member id="0">
<name>Security Guard</name>
<skilled>security</skilled>
<unskilled>bartending</unskilled>
<energy>95</energy>
<cost>0</cost>
</member>
<member id="1">
<name>Barman</name>
<skilled>bartending</skilled>
<unskilled>sound</unskilled>
<energy>90</energy>
<cost>7000</cost>
</member>
<member id="2">
<name>Soundman</name>
<skilled>sound</skilled>
<unskilled>maintenance</unskilled>
<energy>85</energy>
<cost>17650</cost>
</member>
<member id="3">
<name>Jackie</name>
<skilled>none</skilled>
<unskilled>none</unskilled>
<energy>90</energy>
<cost>13500</cost>
</member>
</crewMembers>
<bands>
<costFactor>7</costFactor>
<star0MaxClients>50</star0MaxClients> <!-- max without star -->
<star1MaxClients>200</star1MaxClients> <!-- give 1 star -->
<star2MaxClients>500</star2MaxClients>
<star3MaxClients>1000</star3MaxClients>
<star4MaxClients>1500</star4MaxClients> <!-- max with 4 stars, 5 stars max -->
<band>
<name>Rock</name>
<fans>9</fans>
</band>
<band>
<name>Hiphop</name>
<fans>10</fans>
</band>
<band>
<name>Country</name>
<fans>11</fans>
</band>
</bands>
</params>
;
return (_local1);
}
}
}//package classes.global
Section 24
//Main (classes.manager.Main)
package classes.manager {
import spil.Sound.*;
import flash.display.*;
import flash.events.*;
import flash.text.*;
import classes.game.*;
import flash.net.*;
import classes.global.*;
import spil.Utils.*;
import spil.Mouse.*;
import flash.utils.*;
import flash.ui.*;
public class Main extends MovieClip {
public var EntPanel:upgrade_panel_area;
private var objTransport:Object;
public var mcMore:MovieClip;
public var barUp:MovieClip;
public var mcMsg:TextField;
public var mcClock:MovieClip;
public var mcTitleBlink:MovieClip;
public var mcMenu:MovieClip;
public var mcmainchar:main_idle;
public var txtChoice:TextField;
public var txtLogo:MovieClip;
public var mcTextFans:TextField;
public var txtFansCost:TextField;
public var btnFX:MovieClip;
public var stageUp:MovieClip;
public var mcTitle:MovieClip;
public var jackieButton:upgradeCharsButton;
public var SecPanel:MovieClip;
public var txtquestion:TextField;
public var mcTextScore:TextField;
public var RestPanel:upgrade_panel_area;
public var barmanChar:barman_idle;
public var mcIntro:MovieClip;
public var btnStartGame:MovieClip;
public var barmanButton:upgradeCharsButton;
public var mcStars:MovieClip;
public var mcTutoGame:tutorial3Screen;
public var mcScore:TextField;
public var mcBtnSubmit:MovieClip;
public var BathPanel:upgrade_panel_area;
public var mcTitleLoading:TextField;
public var mcLogo:MovieClip;
public var SoundmanPanel:MovieClip;
public var mcDialogDummy:MovieClip;
public var mcsecchar:security_idle;
public var mcIncome:TextField;
public var entUp:MovieClip;
public var mcRank:TextField;
public var bathUp:MovieClip;
public var mcSpil:MovieClip;
public var soundTableUp:MovieClip;
public var btnPause:MovieClip;
public var btnQuality:MovieClip;
public var soundmanButton:upgradeCharsButton;
public var txtwarn:TextField;
private var fps:Number;
public var mcTextName:TextField;
public var mcName1:TextField;
public var mcName3:TextField;
public var mcName4:TextField;
public var btnHighScore:MovieClip;
public var mcScore1:TextField;
public var mcCashValue:MovieClip;
public var mcScore5:TextField;
public var mcScore6:TextField;
public var mcScore7:TextField;
public var mcName6:TextField;
public var mcName2:TextField;
public var mcName5:TextField;
public var mcScore2:TextField;
public var mcScore3:TextField;
public var btnMusic:MovieClip;
public var btnHiphopBand:MovieClip;
public var mcHand:handMoving;
public var mcName7:TextField;
public var mcName8:TextField;
public var mcScore4:TextField;
public var jackieChar:jackie_idle;
private var nLastTime:Number;
public var btnCountryBand:MovieClip;
public var txtFansCostValue:TextField;
public var SoundTablePanel:upgrade_panel_area;
public var mcScore8:TextField;
public var startMessage:levelStart;
public var mcName:TextField;
public var mcGoalReached:MovieClip;
public var mcBallon:MovieClip;
public var mcGoalValue:TextField;
public var txtSat:TextField;
public var mcBtnMore:MovieClip;
public var txtTime:TextField;
public var btnBack:MovieClip;
public var JackiePanel:MovieClip;
public var mcLoadingBar:MovieClip;
public var btnNext:MovieClip;
public var btnMoreGames:MovieClip;
public var mcValue:TextField;
private var elapsed:Number;
public var restUp:MovieClip;
public var mcTutoUp:tutorial2Screen;
public var btnPlay:MovieClip;
public var MainPanel:MovieClip;
public var btnRockBand:MovieClip;
public var txtSun:TextField;
public var BarmanPanel:MovieClip;
public var btnHowToPlay:MovieClip;
public var mcTextCash:TextField;
public var mcGoal:TextField;
public var StagePanel:upgrade_panel_area;
public var BarPanel:upgrade_panel_area;
public var soundmanChar:soundman_idle;
public var backUp:BackgroundScenary;
public var mcCash:TextField;
public var txtFriday:TextField;
public var mcTutoProg:MovieClip;
public var hudUp:hud;
public function Main(){
addFrameScript(0, frame1, 10, frame11, 42, frame43, 74, frame75);
initGlobal();
initSound();
stage.quality = StageQuality.HIGH;
stage.showDefaultContextMenu = false;
objTransport = new Object();
objTransport.time = 0;
objTransport.fps = 0;
nLastTime = getTimer();
elapsed = 0;
fps = 1;
stage.addEventListener(Event.ENTER_FRAME, onUpdateFrame);
stage.addEventListener(MouseEvent.CLICK, onContextMenu);
this.stop();
}
function onContextMenu(_arg1:MouseEvent):void{
Mouse.hide();
}
function frame1(){
Global.spilGroupUrl.push("localhost");
Global.spilGroupUrl.push("www8.agame.com");
Global.localization_url1 = "http://www.gamesgames.com/moregames/?utm_medium=brandedgames_external&utm_campaign=rock_the_hall&utm_source=";
Global.localization_url2 = "http://www.gamesgames.com/moregames/?utm_medium=brandedgames_internal&utm_campaign=rock_the_hall&utm_source=";
Global.localization_language_nr = 1;
Global.localization_branding_nr = 1;
Global.main.onInit();
}
public function TFonKeyDown(_arg1:KeyboardEvent){
if (_arg1.keyCode == 49){
Global.manager.onCheatNextLevel();
};
if (_arg1.keyCode == 50){
Global.cookie.clear();
Global.cookie.flush();
};
}
private function onClickLogo(_arg1:MouseEvent):void{
var _local2:String;
_local2 = "&utm_content=preloader";
if (Global.localization_language_nr != 2){
SpilURLNavigator.changePage((Global.localization_url + _local2), "_blank");
} else {
SpilURLNavigator.changePage(Global.localization_url, "_blank");
};
}
function frame11(){
stop();
}
private function onUpdateFrame(_arg1:Event){
var _local2:Number;
var _local3:Number;
if (this.loaderInfo.bytesLoaded < this.loaderInfo.bytesTotal){
_local3 = (Math.floor((this.loaderInfo.bytesLoaded * 100)) / this.loaderInfo.bytesTotal);
this.mcValue.text = String(Math.round(_local3));
this.mcLoadingBar.mcMask.width = ((_local3 / 100) * 225);
return;
};
if (Global.manager == null){
this.mcLogo.removeEventListener(MouseEvent.CLICK, onClickLogo);
stage.quality = StageQuality.HIGH;
Global.manager = new ManagerGAME(this);
};
_local2 = getTimer();
objTransport.time = (_local2 - nLastTime);
nLastTime = _local2;
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);
};
}
function frame43(){
stop();
}
private function initGlobal(){
Global.main = this;
Global.soundManager = new SpilSoundManager();
Global.mouse = new SpilDragMouse(this);
Global.mouse.register();
Global.cookie = SharedObject.getLocal("rockthehall");
Levels.init();
initCookie(Levels.stages.stage[0].fases.fase[0].crewMembers.member.@id);
}
public function startVariables():void{
var _local1:ParamsXML;
var _local2:XML;
var _local3:Object;
var _local4:int;
var _local5:Number;
var _local6:Object;
_local1 = new ParamsXML();
_local2 = _local1.getParamsChars();
Levels.indexLevel = Global.cookie.data.currentLevel;
Levels.indexStage = Global.cookie.data.currentStage;
Global.score = Global.cookie.data.currentScore;
Global.cash = Global.cookie.data.currentCash;
Global.crew = Global.cookie.data.team.slice(0);
Global.upgrades = null;
Global.upgrades = new Array();
for each (_local3 in Global.cookie.data.upgrades) {
_local6 = new Object();
_local6.name = _local3.name;
_local6.upType = _local3.upType;
_local6.upValue = _local3.upValue;
Global.upgrades.push(_local6);
};
Global.bands = new Array();
_local4 = 0;
_local5 = _local2..costFactor.text();
_local4 = Global.cookie.data.fansbandRock;
Global.bands["rock"] = new Bands("rock", _local4, _local5);
_local4 = Global.cookie.data.fansbandCountry;
Global.bands["country"] = new Bands("country", _local4, _local5);
_local4 = Global.cookie.data.fansbandHiphop;
Global.bands["hiphop"] = new Bands("hiphop", _local4, _local5);
}
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 frame75(){
stop();
}
public function onInit(){
Global.setXMLLocalization();
this.mcTitleLoading.text = Global.xmlLocalization.loading.title;
this.mcMsg.text = Global.xmlLocalization.loading.msg2;
this.mcValue.text = "0.0";
this.mcLogo.gotoAndStop(Global.localization_branding_nr);
this.mcLogo.addEventListener(MouseEvent.CLICK, onClickLogo);
}
public function initCookie(_arg1:XMLList):void{
var paramsxml:ParamsXML;
var charsParams:XML;
var namesAreas:XMLList;
var ar:Array;
var obj:Object;
var lastShows:Array;
var i:int;
var ups:Array;
var objNA:Object;
var item:String;
var members:Array;
var item2:int;
var fans0:int;
var costfac0:Number;
var fans:int;
var costfac:Number;
var idMembers = _arg1;
paramsxml = new ParamsXML();
charsParams = paramsxml.getParamsChars();
namesAreas = paramsxml.getParamsAreas().area;
if (Global.cookie == null){
Global.cookie = SharedObject.getLocal("rockthehall");
Levels.init();
};
if ((((Global.cookie.data.hasperfil == undefined)) || ((Global.cookie.data.hasperfil == null)))){
Global.cookie.data.hasperfil = true;
} else {
Global.cookie.data.hasperfil = false;
};
Global.cookie.flush();
if ((((((Global.cookie.data.currentLevel == undefined)) || ((Global.cookie.data.currentLevel == null)))) || ((Global.cookie.data.currentLevel == 0)))){
Global.cookie.data.currentLevel = 0;
Global.cookie.data.currentStage = 0;
Global.cookie.data.currentScore = 0;
Global.cookie.data.currentCash = int(paramsxml.getParamsGame().initial_cash.text());
Global.cookie.flush();
};
Levels.indexLevel = Global.cookie.data.currentLevel;
Levels.indexStage = Global.cookie.data.currentStage;
Global.score = Global.cookie.data.currentScore;
Global.cash = Global.cookie.data.currentCash;
if ((((Global.cookie.data.highScore == undefined)) || ((Global.cookie.data.highScore == null)))){
ar = new Array();
obj = new Object();
obj.name = "Pam";
obj.score = 17630;
ar.push(obj);
obj = new Object();
obj.name = "Jessica";
obj.score = 141350;
ar.push(obj);
obj = new Object();
obj.name = "Marcy";
obj.score = 115150;
ar.push(obj);
obj = new Object();
obj.name = "Anna";
obj.score = 95240;
ar.push(obj);
obj = new Object();
obj.name = "Hellen";
obj.score = 80650;
ar.push(obj);
obj = new Object();
obj.name = "Nick";
obj.score = 69990;
ar.push(obj);
obj = new Object();
obj.name = "Laura";
obj.score = 61500;
ar.push(obj);
obj = new Object();
obj.name = "Jack";
obj.score = 43250;
ar.push(obj);
ar.sortOn("score", (Array.NUMERIC | Array.DESCENDING));
if (ar.length > 8){
ar.splice(8, (Global.cookie.data.highScore.length - 8));
};
Global.cookie.data.highScore = ar;
Global.cookie.flush();
};
if ((((Global.cookie.data.lastshows == undefined)) || ((Global.cookie.data.lastshows == null)))){
lastShows = new Array();
i = 0;
while (i < 13) {
lastShows.push("");
i = (i + 1);
};
Global.cookie.data.lastshows = lastShows;
Global.cookie.flush();
};
if ((((Global.cookie.data.upgrades == undefined)) || ((Global.cookie.data.upgrades == null)))){
ups = new Array();
for each (item in namesAreas..name) {
if (item.toLowerCase() != "sound table"){
objNA = new Object();
objNA.name = item;
objNA.upType = 0;
objNA.upValue = namesAreas.(name == item)..upgrade.(@type == 0).valueForUp;
ups.push(objNA);
} else {
objNA = new Object();
objNA.name = item;
objNA.upType = -1;
objNA.upValue = namesAreas.(name == item)..upgrade.(@type == 0).valueForUp;
ups.push(objNA);
};
};
objNA = null;
Global.cookie.data.upgrades = ups.slice(0);
Global.upgrades = ups.slice(0);
Global.cookie.flush();
} else {
Global.upgrades = Global.cookie.data.upgrades.slice(0);
};
if ((((Global.cookie.data.team == undefined)) || ((Global.cookie.data.team == null)))){
members = new Array();
for each (item2 in idMembers.text) {
members.push(item2);
};
Global.cookie.data.team = members.slice(0);
Global.crew = members.slice(0);
Global.cookie.flush();
} else {
Global.crew = Global.cookie.data.team.slice(0);
};
if ((((Global.cookie.data.fansbandRock == undefined)) || ((Global.cookie.data.fansbandRock == null)))){
Global.bands = new Array();
fans0 = 0;
costfac0 = charsParams..costFactor.text();
fans0 = charsParams..band.(name == "Rock")..fans.text();
Global.cookie.data.fansbandRock = fans0;
Global.bands["rock"] = new Bands("rock", fans0, costfac0);
fans0 = charsParams..band.(name == "Country")..fans.text();
Global.cookie.data.fansbandCountry = fans0;
Global.bands["country"] = new Bands("country", fans0, costfac0);
fans0 = charsParams..band.(name == "Hiphop")..fans.text();
Global.cookie.data.fansbandHiphop = fans0;
Global.bands["hiphop"] = new Bands("hiphop", fans0, costfac0);
Global.cookie.flush();
} else {
Global.bands = new Array();
fans = 0;
costfac = charsParams..costFactor.text();
fans = Global.cookie.data.fansbandRock;
if (fans == 0){
fans = charsParams..band.(name == "Rock")..fans.text();
Global.cookie.data.fansbandRock = fans;
};
Global.bands["rock"] = new Bands("rock", fans, costfac);
fans = Global.cookie.data.fansbandCountry;
if (fans == 0){
fans = charsParams..band.(name == "Country")..fans.text();
Global.cookie.data.fansbandCountry = fans;
};
Global.bands["country"] = new Bands("country", fans, costfac);
fans = Global.cookie.data.fansbandHiphop;
if (fans == 0){
fans = charsParams..band.(name == "Hiphop")..fans.text();
Global.cookie.data.fansbandHiphop = fans;
};
Global.bands["hiphop"] = new Bands("hiphop", fans, costfac);
Global.cookie.flush();
};
}
private function initSound(){
Global.soundManager.setMusicVolume(50);
Global.soundManager.setSFXVolume(60);
Global.soundTrackMenu = new SpilSound(this.getAsset("MainScreen_SOUNDTRACK"), SpilSound.TYPE_MUSIC, null, true, 500, 500);
Global.soundManager.addSound(Global.soundTrackMenu);
Global.soundTrackRock = new SpilSound(this.getAsset("ROCK_SOUNDTRACK"), SpilSound.TYPE_MUSIC, null, true, 500, 500);
Global.soundManager.addSound(Global.soundTrackRock);
Global.soundStartTrackRock = new SpilSound(this.getAsset("STARTING_SHOW_ROCK"), SpilSound.TYPE_MUSIC, null, true, 500, 500);
Global.soundManager.addSound(Global.soundStartTrackRock);
Global.soundTrackCountry = new SpilSound(this.getAsset("COUNTRY_SOUNDTRACK"), SpilSound.TYPE_MUSIC, null, true, 500, 500);
Global.soundManager.addSound(Global.soundTrackCountry);
Global.soundStartTrackCountry = new SpilSound(this.getAsset("STARTING_SHOW_COUNTRY"), SpilSound.TYPE_MUSIC, null, true, 500, 500);
Global.soundManager.addSound(Global.soundStartTrackCountry);
Global.soundTrackHiphop = new SpilSound(this.getAsset("HIPHOP_SOUNDTRACK"), SpilSound.TYPE_MUSIC, null, true, 500, 500);
Global.soundManager.addSound(Global.soundTrackHiphop);
Global.soundStartTrackHiphop = new SpilSound(this.getAsset("STARTING_SHOW_HIPHOP"), SpilSound.TYPE_MUSIC, null, true, 500, 500);
Global.soundManager.addSound(Global.soundStartTrackHiphop);
Global.soundLevelCompleted = new SpilSound(this.getAsset("LevelComplete_SOUNDTRACK"), SpilSound.TYPE_MUSIC, null, false, 0, 0);
Global.soundManager.addSound(Global.soundLevelCompleted);
Global.soundLevelFail = new SpilSound(this.getAsset("LevelFailed_SOUNDTRACK"), SpilSound.TYPE_MUSIC, null, false, 0, 0);
Global.soundManager.addSound(Global.soundLevelFail);
Global.soundsFX = new Array();
Global.soundsFX["mouse_click"] = new SpilSound(this.getAsset("MOUSECLICK"), SpilSound.TYPE_SFX, null, false, 0, 0);
Global.soundManager.addSound(Global.soundsFX["mouse_click"]);
Global.soundsFX["mouse_over"] = new SpilSound(this.getAsset("MouseOver01"), SpilSound.TYPE_SFX, null, false, 0, 0);
Global.soundManager.addSound(Global.soundsFX["mouse_over"]);
Global.soundsFX["mouse_over2"] = new SpilSound(this.getAsset("MouseOver02"), SpilSound.TYPE_SFX, null, false, 0, 0);
Global.soundManager.addSound(Global.soundsFX["mouse_over2"]);
Global.soundsFX["mouse_over3"] = new SpilSound(this.getAsset("MouseOver03"), SpilSound.TYPE_SFX, null, false, 0, 0);
Global.soundManager.addSound(Global.soundsFX["mouse_over3"]);
Global.soundsFX["mouse_over4"] = new SpilSound(this.getAsset("MouseOver04"), SpilSound.TYPE_SFX, null, false, 0, 0);
Global.soundManager.addSound(Global.soundsFX["mouse_over4"]);
Global.soundsFX["CrowdFighting"] = new SpilSound(this.getAsset("CrowdFighting"), SpilSound.TYPE_SFX, null, true, 0, 0);
Global.soundManager.addSound(Global.soundsFX["CrowdFighting"]);
Global.soundsFX["PickCrewMember"] = new SpilSound(this.getAsset("PickCrewMember"), SpilSound.TYPE_SFX, null, false, 0, 0);
Global.soundManager.addSound(Global.soundsFX["PickCrewMember"]);
Global.soundsFX["DropCrewMember"] = new SpilSound(this.getAsset("DropCrewMember"), SpilSound.TYPE_SFX, null, false, 0, 0);
Global.soundManager.addSound(Global.soundsFX["DropCrewMember"]);
Global.soundsFX["Security"] = new SpilSound(this.getAsset("Security"), SpilSound.TYPE_SFX, null, false, 0, 0);
Global.soundManager.addSound(Global.soundsFX["Security"]);
Global.soundsFX["FixingSound"] = new SpilSound(this.getAsset("FixingSound"), SpilSound.TYPE_SFX, null, true, 0, 0);
Global.soundManager.addSound(Global.soundsFX["FixingSound"]);
Global.soundsFX["Bartending"] = new SpilSound(this.getAsset("Bartending"), SpilSound.TYPE_SFX, null, true, 0, 0);
Global.soundManager.addSound(Global.soundsFX["Bartending"]);
Global.soundsFX["Maintenance"] = new SpilSound(this.getAsset("Maintenance"), SpilSound.TYPE_SFX, null, true, 0, 0);
Global.soundManager.addSound(Global.soundsFX["Maintenance"]);
Global.soundsFX["LoosingMoney"] = new SpilSound(this.getAsset("LoosingMoney"), SpilSound.TYPE_SFX, null, false, 0, 0);
Global.soundManager.addSound(Global.soundsFX["LoosingMoney"]);
Global.soundsFX["BadBand"] = new SpilSound(this.getAsset("BadBand"), SpilSound.TYPE_SFX, null, false, 0, 0);
Global.soundManager.addSound(Global.soundsFX["BadBand"]);
}
}
}//package classes.manager
Section 25
//ManagerGAME (classes.manager.ManagerGAME)
package classes.manager {
import spil.Sound.*;
import flash.display.*;
import flash.events.*;
import spil.Events.*;
import spil.StateMachine.*;
import classes.game.*;
import com.google.analytics.*;
import flash.geom.*;
import classes.global.*;
import spil.Utils.*;
import spil.Button.*;
import flash.filters.*;
public class ManagerGAME {
private var stage:MovieClip;
private var markCalendar:calendar_mark_today;
private var stopSound:Boolean;
private var tracker:AnalyticsTracker;
private var gamePlay:ManagerGamePlay;
private var calendarSymbolMark:calendar_symbols;
private var upScreenMng:Upgrade;
private var buttons:Array;
private var victoryScreenPlayOneTime:Boolean;
private var lastState:String;
private var stMachine:SpilStateMachine;
private var screenHowToPlay:MovieClip;
private var mainScreenPlayOneTime:Boolean;
private var pointDayBeforeXY:Point;
private var markHand:MovieClip;
private var middleGamePlayOneTime:Boolean;
private var pointDay:int;
private var pointDayXY:Point;
private var screenPause: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 EVENT_GO_TO_UPGRADE_SCREEN:String = "EVENT_GO_TO_UPGRADE_SCREEN";
static var ST_GAME_OVER:String = "ST_GAME_OVER";
static var ST_PROGRESS_SCREEN:String = "ST_PROGRESS_SCREEN";
static var EVENT_GO_TO_PROGRESS_SCREEN:String = "EVENT_GO_TO_PROGRESS_SCREEN";
static var ST_UPGRADE_SCREEN:String = "ST_UPGRADE_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;
calendarSymbolMark = new calendar_symbols();
pointDayXY = new Point();
pointDayBeforeXY = new Point();
stMachine = new SpilStateMachine(null);
stopSound = true;
screenPause = new pauseScreen();
screenHowToPlay = new howToPlayScreen();
lastState = "";
tracker = new GATracker(_arg1, "UA-6695967-1", "AS3", false);
middleGamePlayOneTime = false;
victoryScreenPlayOneTime = false;
mainScreenPlayOneTime = false;
stMachine.createEvent(EVENT_GO_TO_MENU, null);
stMachine.createEvent(EVENT_GO_TO_GAME, null);
stMachine.createEvent(EVENT_GO_TO_UPGRADE_SCREEN, 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_UPGRADE_SCREEN, false, this, startUpgradeScreen, processUpgradeScreen, stopUpgradeScreen);
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_HOW_TO_PLAY, EVENT_GO_TO_GAME, ST_GAME);
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_UPGRADE_SCREEN, ST_UPGRADE_SCREEN);
stMachine.createTransition(ST_PROGRESS_SCREEN, EVENT_GO_TO_MENU, ST_MAIN_MENU);
stMachine.createTransition(ST_UPGRADE_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_GAME, EVENT_GO_TO_HOW_TO_PLAY, ST_HOW_TO_PLAY);
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);
_arg1.addEventListener(Event.DEACTIVATE, onEventDeActive);
}
private function processGame(_arg1:Object){
if (gamePlay != null){
gamePlay.process(_arg1);
};
}
private function onEventMusicGame(_arg1:SpilEvent){
var _local2:MovieClip;
_local2 = MovieClip(_arg1.transport);
switch (_arg1.event){
case SpilEvent.EVENT_MOUSECLICK:
if (Global.soundManager.getMusicVolume() == 0){
buttons["music"].setText(((Global.xmlLocalization.pause.music + ": ") + Global.xmlLocalization.pause.on));
Global.soundManager.setMusicVolume(50);
} else {
buttons["music"].setText(((Global.xmlLocalization.pause.music + ": ") + Global.xmlLocalization.pause.off));
Global.soundManager.setMusicVolume(0);
};
break;
case SpilEvent.EVENT_MOUSEOUT:
_local2.over.gotoAndStop(2);
break;
case SpilEvent.EVENT_MOUSEOVER:
_local2.over.play();
break;
};
}
private function onEventHowToPlay(_arg1:SpilEvent){
var _local2:MovieClip;
_local2 = MovieClip(_arg1.transport);
switch (_arg1.event){
case SpilEvent.EVENT_MOUSECLICK:
lastState = stMachine.getCurrentState().getName();
dispatchHowToPlay();
break;
case SpilEvent.EVENT_INIT:
break;
case SpilEvent.EVENT_MOUSEOUT:
_local2.over.gotoAndStop(2);
break;
case SpilEvent.EVENT_MOUSEOVER:
_local2.over.play();
break;
};
}
private function stopGameOver(){
safedeleteSpilButton("moregames");
safedeleteSpilButton("submit");
}
private function onEventHiphopBand(_arg1:SpilEvent){
var _local2:MovieClip;
_local2 = MovieClip(_arg1.transport);
switch (_arg1.event){
case SpilEvent.EVENT_ON:
_local2.down.txtText.text = Global.xmlLocalization.progress.choiceHiphop;
_local2.over.txtText.text = Global.xmlLocalization.progress.choiceHiphop;
_local2.out.txtText.text = Global.xmlLocalization.progress.choiceHiphop;
Global.bandOnStage = "hiphop";
Global.soundTrackHiphop.stop();
Global.soundTrackHiphop.play();
Global.soundTrackCountry.stop();
Global.soundTrackRock.stop();
stage.txtFansCostValue.text = (Global.xmlLocalization.symbol_cash + " ");
stage.txtFansCostValue.appendText(Number(Global.bands["hiphop"].getCost()));
updateFansStars("hiphop");
calendarSymbolMark.gotoAndStop("hiphop");
buttons["rockband"].off();
buttons["countryband"].off();
buttons["next"].enable();
break;
case SpilEvent.EVENT_OFF:
_local2.down.txtText.text = Global.xmlLocalization.progress.choiceHiphop;
_local2.over.txtText.text = Global.xmlLocalization.progress.choiceHiphop;
_local2.out.txtText.text = Global.xmlLocalization.progress.choiceHiphop;
break;
case SpilEvent.EVENT_INIT:
_local2.down.txtText.text = Global.xmlLocalization.progress.choiceHiphop;
_local2.over.txtText.text = Global.xmlLocalization.progress.choiceHiphop;
_local2.out.txtText.text = Global.xmlLocalization.progress.choiceHiphop;
break;
case SpilEvent.EVENT_MOUSEOUT:
_local2.over.gotoAndStop(2);
if (Global.bandOnStage != ""){
calendarSymbolMark.gotoAndStop(Global.bandOnStage);
stage.txtFansCostValue.text = (Global.xmlLocalization.symbol_cash + " ");
stage.txtFansCostValue.appendText(Number(Global.bands[Global.bandOnStage].getCost()));
updateFansStars(Global.bandOnStage);
} else {
calendarSymbolMark.gotoAndStop("none");
stage.txtFansCostValue.text = "";
updateFansStars("");
};
break;
case SpilEvent.EVENT_MOUSEOVER:
_local2.over.play();
calendarSymbolMark.gotoAndStop("hiphop");
stage.txtFansCostValue.text = (Global.xmlLocalization.symbol_cash + " ");
stage.txtFansCostValue.appendText(Number(Global.bands["hiphop"].getCost()));
updateFansStars("hiphop");
break;
};
}
private function onEventFX(_arg1:SpilEvent){
var _local2:MovieClip;
_local2 = MovieClip(_arg1.transport);
switch (_arg1.event){
case SpilEvent.EVENT_ON:
Global.soundManager.setSFXVolume(60);
break;
case SpilEvent.EVENT_OFF:
Global.soundManager.setSFXVolume(0);
break;
case SpilEvent.EVENT_MOUSEOUT:
_local2.over.gotoAndStop(2);
break;
case SpilEvent.EVENT_MOUSEOVER:
_local2.over.play();
break;
};
}
private function createSymbolBand(_arg1:Number, _arg2:Number, _arg3:int):void{
var _local4:calendar_symbols;
_local4 = new calendar_symbols();
_local4.x = _arg1;
_local4.y = _arg2;
_local4.gotoAndStop(Global.cookie.data.lastshows[_arg3]);
Global.main.addChildAt(_local4, 1);
}
public function onEventDeActive(_arg1:Event):void{
if (gamePlay != null){
gamePlay.pause(screenPause);
};
}
private function textQuality():String{
var _local1:String;
_local1 = "";
switch (stage.stage.quality){
case "HIGH":
_local1 = Global.xmlLocalization.mainmenu.high;
break;
case "MEDIUM":
_local1 = Global.xmlLocalization.mainmenu.medium;
break;
case "LOW":
_local1 = Global.xmlLocalization.mainmenu.low;
break;
};
return (_local1);
}
public function dispatchProgressScreen(){
if (Levels.indexLevel == 0){
Global.main.initCookie(Levels.stages.stage[0].fases.fase[0].crewMembers.member.@id);
} else {
Global.main.startVariables();
};
try {
return (stMachine.receiveEvent(EVENT_GO_TO_PROGRESS_SCREEN));
} catch(e:Error) {
trace(e.getStackTrace());
};
}
private function stopGame(){
var _local1:SpilSound;
gamePlay = null;
Global.soundTrackRock.stop();
Global.soundTrackCountry.stop();
Global.soundTrackHiphop.stop();
for each (_local1 in Global.soundsFX) {
_local1.stop();
};
while (Global.main.numChildren) {
Global.main.removeChild(Global.main.getChildAt(0));
};
}
private function onEventSkipTutoGame(_arg1:SpilEvent){
var _local2:MovieClip;
_local2 = MovieClip(_arg1.transport);
switch (_arg1.event){
case SpilEvent.EVENT_MOUSECLICK:
stage.mcTutoGame.enabled = false;
stage.mcTutoGame.mouseEnabled = false;
stage.mcTutoGame.visible = false;
stage.startMessage.visible = true;
stage.startMessage.gotoAndPlay(2);
gamePlay.resume(null);
break;
case SpilEvent.EVENT_MOUSEOUT:
_local2.over.gotoAndStop(2);
break;
case SpilEvent.EVENT_MOUSEOVER:
_local2.over.play();
break;
};
}
private function onQuestMainMenu(){
stage.stop();
safedeleteSpilButton("startgame");
safedeleteSpilButton("quality");
safedeleteSpilButton("fx");
safedeleteSpilButton("music");
safedeleteSpilButton("howtoplay");
safedeleteSpilButton("moregames");
safedeleteSpilButton("highscore");
stage.btnStartGame.visible = false;
stage.btnMoreGames.visible = false;
stage.txtquestion.visible = true;
stage.txtwarn.visible = true;
stage.txtquestion.text = Global.xmlLocalization.mainmenu.question;
stage.txtwarn.text = Global.xmlLocalization.mainmenu.warning;
buttons["continuegame"] = new SpilTextButton(stage.btnHowToPlay, Global.xmlLocalization.mainmenu.continuegame, onEventContinueGame);
buttons["newgame"] = new SpilTextButton(stage.btnHighScore, Global.xmlLocalization.mainmenu.newgame, onEventNewGame);
buttons["quality"] = new SpilTextButton(stage.btnQuality, ((Global.xmlLocalization.mainmenu.quality + " ") + textQuality()), onEventQuality);
buttons["fx"] = new SpilSwitchButton(stage.btnFX, onEventFX);
buttons["music"] = new SpilSwitchButton(stage.btnMusic, onEventMusic);
setFXclickover("continuegame");
buttons["quality"].setFxClick(Global.soundsFX["mouse_click"]);
buttons["quality"].setFxOver(Global.soundsFX["mouse_over3"]);
buttons["quality"].enable();
setFXclickover("fx");
buttons["music"].setFxClick(Global.soundsFX["mouse_click"]);
buttons["music"].setFxOver(Global.soundsFX["mouse_over2"]);
buttons["music"].enable();
buttons["newgame"].setFxClick(Global.soundsFX["mouse_click"]);
buttons["newgame"].setFxOver(Global.soundsFX["mouse_over2"]);
buttons["newgame"].enable();
if (Global.soundManager.getSFXVolume() == 0){
buttons["fx"].off();
};
if (Global.soundManager.getMusicVolume() == 0){
buttons["music"].off();
};
stopSound = true;
}
private function createCompletedMark(_arg1:Number, _arg2:Number):void{
var _local3:calendar_mark_completed;
_local3 = new calendar_mark_completed();
_local3.x = _arg1;
_local3.y = _arg2;
Global.main.addChild(_local3);
}
private function onEventResume(_arg1:SpilEvent){
var _local2:MovieClip;
_local2 = MovieClip(_arg1.transport);
switch (_arg1.event){
case SpilEvent.EVENT_MOUSECLICK:
if (stage.mcTutoGame.visible){
if (screenPause != null){
Global.main.removeChild(screenPause);
};
} else {
gamePlay.resume(screenPause);
};
break;
case SpilEvent.EVENT_MOUSEOUT:
_local2.over.gotoAndStop(2);
break;
case SpilEvent.EVENT_MOUSEOVER:
_local2.over.play();
break;
};
}
private function onFinishGameLoadFrame(){
SpilMovieClip.addLabelScript(stage, "finishGame", null);
stage.stop();
buttons["pause"].enable();
}
private function endCross():void{
SpilMovieClip.addLabelScript(markHand.mcHandPoint, "end_cross", null);
SpilMovieClip.addLabelScript(markHand, (("day" + (pointDay - 1)) + "_back_end"), handBackCross);
createCompletedMark(pointDayBeforeXY.x, pointDayBeforeXY.y);
markHand.mcHandPoint.stop();
markHand.mcHandPoint.gotoAndStop("idle");
markHand.gotoAndPlay((("day" + (pointDay - 1)) + "_back"));
}
private function setFXclickover(_arg1:String):void{
buttons[_arg1].setFxClick(Global.soundsFX["mouse_click"]);
buttons[_arg1].setFxOver(Global.soundsFX["mouse_over"]);
buttons[_arg1].enable();
}
private function safedeleteSpilButton(_arg1:String):void{
if (buttons[_arg1] != null){
(buttons[_arg1] as SpilButton).unregisterEvents();
delete buttons[_arg1];
buttons[_arg1] = null;
};
}
private function stopHighScore(){
Global.soundTrackMenu.stop();
delete buttons["moregames"];
buttons["moregames"] = null;
delete buttons["mainmenu"];
buttons["mainmenu"] = null;
}
private function onMainMenuLoadFrame(){
SpilMovieClip.addLabelScript(stage, "menu", null);
stage.stop();
stage.btnMoreGames.mcLogo.gotoAndStop(Global.localization_branding_nr);
stage.mcSpil.hitArea = stage.mcSpil.mcHitArea;
stage.mcSpil.addEventListener(MouseEvent.CLICK, onClickSpil);
stage.mcSpil.addEventListener(MouseEvent.ROLL_OVER, onLinkSpilOver);
stage.mcSpil.addEventListener(MouseEvent.ROLL_OUT, onLinkSpilOut);
stage.txtquestion.visible = false;
stage.txtwarn.visible = false;
buttons["startgame"] = new SpilTextButton(stage.btnStartGame, Global.xmlLocalization.mainmenu.startgame, onEventStartGame);
buttons["howtoplay"] = new SpilTextButton(stage.btnHowToPlay, Global.xmlLocalization.mainmenu.howtoplay, onEventHowToPlayinGame);
buttons["highscore"] = new SpilTextButton(stage.btnHighScore, Global.xmlLocalization.mainmenu.highscore, onEventHighScore);
buttons["moregames"] = new SpilTextButton(stage.btnMoreGames, Global.xmlLocalization.mainmenu.moregames, onEventMoreGames);
buttons["quality"] = new SpilTextButton(stage.btnQuality, ((Global.xmlLocalization.mainmenu.quality + " ") + textQuality()), onEventQuality);
buttons["fx"] = new SpilSwitchButton(stage.btnFX, onEventFX);
buttons["music"] = new SpilSwitchButton(stage.btnMusic, onEventMusic);
setFXclickover("startgame");
buttons["howtoplay"].setFxClick(Global.soundsFX["mouse_click"]);
buttons["howtoplay"].setFxOver(Global.soundsFX["mouse_over2"]);
buttons["howtoplay"].enable();
buttons["highscore"].setFxClick(Global.soundsFX["mouse_click"]);
buttons["highscore"].setFxOver(Global.soundsFX["mouse_over3"]);
buttons["highscore"].enable();
buttons["moregames"].setFxClick(Global.soundsFX["mouse_click"]);
buttons["moregames"].setFxOver(Global.soundsFX["mouse_over4"]);
buttons["moregames"].enable();
buttons["quality"].setFxClick(Global.soundsFX["mouse_click"]);
buttons["quality"].setFxOver(Global.soundsFX["mouse_over3"]);
buttons["quality"].enable();
setFXclickover("fx");
buttons["music"].setFxClick(Global.soundsFX["mouse_click"]);
buttons["music"].setFxOver(Global.soundsFX["mouse_over2"]);
buttons["music"].enable();
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;
}
private function onEventSkipTutoUp(_arg1:SpilEvent){
var _local2:MovieClip;
_local2 = MovieClip(_arg1.transport);
switch (_arg1.event){
case SpilEvent.EVENT_MOUSECLICK:
stage.mcTutoUp.visible = false;
stage.mcIntro.visible = true;
stage.mcIntro.play();
break;
case SpilEvent.EVENT_MOUSEOUT:
_local2.over.gotoAndStop(2);
break;
case SpilEvent.EVENT_MOUSEOVER:
_local2.over.play();
break;
};
}
private function onVictoryLoadFrame(){
SpilMovieClip.addLabelScript(this.stage, "victory", null);
stage.mcBtnMore.mcLogo.gotoAndStop(Global.localization_branding_nr);
stage.mcBallon.mcTitle.txtTitle.text = Global.xmlLocalization.victory.title;
stage.mcTitleBlink.txtTitle.text = Global.xmlLocalization.victory.title;
stage.mcTextScore.text = Global.xmlLocalization.victory.score;
stage.mcTextName.text = Global.xmlLocalization.victory.name;
stage.mcScore.text = String(int(Global.score));
stage.mcName.text = "";
buttons["moregames"] = new SpilTextButton(stage.mcBtnMore, Global.xmlLocalization.mainmenu.moregames, onEventMoreGames);
buttons["submit"] = new SpilTextButton(stage.mcBtnSubmit, Global.xmlLocalization.victory.submit, onEventSubmitVictory);
setFXclickover("moregames");
buttons["submit"].setFxClick(Global.soundsFX["mouse_click"]);
buttons["submit"].setFxOver(Global.soundsFX["mouse_over2"]);
buttons["submit"].enable();
}
private function onLinkSpilOut(_arg1:MouseEvent):void{
MovieClip(_arg1.currentTarget).filters = null;
}
private function onEventNewGame(_arg1:SpilEvent){
var _local2:MovieClip;
_local2 = MovieClip(_arg1.transport);
switch (_arg1.event){
case SpilEvent.EVENT_MOUSECLICK:
Global.cookie.clear();
Global.cookie.flush();
Levels.indexLevel = 0;
Global.scoreLevel = 0;
Global.score = 0;
Global.cash = 0;
Global.bands = null;
Global.crew = null;
Global.upgrades = null;
Global.cookie = null;
dispatchProgressScreen();
break;
case SpilEvent.EVENT_INIT:
break;
case SpilEvent.EVENT_MOUSEOUT:
_local2.over.gotoAndStop(2);
break;
case SpilEvent.EVENT_MOUSEOVER:
_local2.over.play();
break;
};
}
public function endMovingCircle():void{
SpilMovieClip.addLabelScript(markHand, (("day" + pointDay) + "_go_end"), null);
SpilMovieClip.addLabelScript(markHand.mcHandPoint, "end_circle", endCircle);
markHand.stop();
markHand.mcHandPoint.gotoAndPlay("circle");
}
private function startMainMenu(){
if (!mainScreenPlayOneTime){
tracker.trackEvent("rock_the_hall", "mainscreen viewed", "per session", 0);
mainScreenPlayOneTime = true;
};
stage.gotoAndPlay("menu");
SpilMovieClip.addLabelScript(this.stage, "menu", onMainMenuLoadFrame);
}
private function onClickLogo(_arg1:MouseEvent):void{
var _local2:String;
_local2 = "";
switch (stMachine.getCurrentState().getName()){
case ST_GAME:
_local2 = "&utm_term=logo_game";
break;
case ST_UPGRADE_SCREEN:
_local2 = "&utm_term=logo_update";
break;
};
SpilURLNavigator.changePage((Global.localization_url + _local2), "_blank");
}
private function onHighScoreLoadFrame(){
var _local1:Number;
SpilMovieClip.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.mcMore.mcLogo.gotoAndStop(Global.localization_branding_nr);
buttons["moregames"] = new SpilTextButton(stage.mcMore, Global.xmlLocalization.mainmenu.moregames, onEventMoreGames);
buttons["mainmenu"] = new SpilTextButton(stage.mcMenu, Global.xmlLocalization.highscore.menu, onEventMainMenu);
setFXclickover("moregames");
buttons["mainmenu"].setFxClick(Global.soundsFX["mouse_click"]);
buttons["mainmenu"].setFxOver(Global.soundsFX["mouse_over2"]);
buttons["mainmenu"].enable();
_local1 = 0;
while (_local1 < Global.cookie.data.highScore.length) {
if (_local1 > 8){
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;
};
_local1++;
};
}
public function dispatchVictory(){
try {
return (stMachine.receiveEvent(EVENT_GO_TO_VICTORY));
} catch(e:Error) {
trace(e.getStackTrace());
};
}
private function onEventProgress(_arg1:SpilEvent){
switch (_arg1.event){
case SpilEvent.EVENT_MOUSECLICK:
dispatchProgressScreen();
break;
};
}
public function dispatchUpgradeScreen(){
Global.cash = (Global.cash - Number(Global.bands[Global.bandOnStage].getCost()));
Global.scoreLevel = 0;
Global.soundTrackHiphop.stop();
Global.soundTrackCountry.stop();
Global.soundTrackRock.stop();
Global.soundTrackMenu.stop();
try {
return (stMachine.receiveEvent(EVENT_GO_TO_UPGRADE_SCREEN));
} catch(e:Error) {
trace(e.getStackTrace());
};
}
private function startVictory(){
stage.gotoAndPlay("victory");
SpilMovieClip.addLabelScript(this.stage, "victory", onVictoryLoadFrame);
}
public function nextLevel(){
var _local1:String;
var _local2:int;
var _local3:Object;
var _local4:Object;
if (!Global.failLevel){
_local1 = Global.bandOnStage;
_local2 = Global.bands[_local1].updateFanBase();
if (_local1 == "rock"){
Global.cookie.data.fansbandRock = _local2;
};
if (_local1 == "country"){
Global.cookie.data.fansbandCountry = _local2;
};
if (_local1 == "hiphop"){
Global.cookie.data.fansbandHiphop = _local2;
};
Global.cookie.data.lastshows[Levels.indexLevel] = _local1;
Levels.indexLevel++;
Global.failLevel = false;
Global.cookie.data.currentLevel = Levels.indexLevel;
Global.cookie.data.currentStage = Levels.indexStage;
Global.cookie.data.currentScore = int(Global.score);
Global.cookie.data.currentCash = Global.cash;
Global.cookie.data.team = Global.crew.slice(0);
Global.cookie.data.upgrades = new Array();
for each (_local3 in Global.upgrades) {
_local4 = new Object();
_local4.name = _local3.name;
_local4.upType = _local3.upType;
_local4.upValue = _local3.upValue;
Global.cookie.data.upgrades.push(_local4);
};
Global.cookie.data.hasperfil = true;
Global.cookie.flush();
if (Levels.indexLevel >= Levels.stages.stage[Levels.indexStage].fases.fase.length()){
Levels.indexLevel = 0;
if (!victoryScreenPlayOneTime){
tracker.trackEvent("rock_the_hall", "game completed", "per session", 0);
victoryScreenPlayOneTime = true;
};
dispatchVictory();
return;
};
};
if (Levels.indexLevel == 6){
if (!middleGamePlayOneTime){
tracker.trackEvent("rock_the_hall", "50% completed", "per session", 0);
middleGamePlayOneTime = true;
};
};
dispatchProgressScreen();
}
public function dispatchMainMenu(){
try {
return (stMachine.receiveEvent(EVENT_GO_TO_MENU));
} catch(e:Error) {
trace(e.getStackTrace());
};
}
private function onEventRockBand(_arg1:SpilEvent){
var _local2:MovieClip;
_local2 = MovieClip(_arg1.transport);
switch (_arg1.event){
case SpilEvent.EVENT_ON:
_local2.down.txtText.text = Global.xmlLocalization.progress.choiceRock;
_local2.over.txtText.text = Global.xmlLocalization.progress.choiceRock;
_local2.out.txtText.text = Global.xmlLocalization.progress.choiceRock;
Global.bandOnStage = "rock";
Global.soundTrackRock.stop();
Global.soundTrackRock.play();
Global.soundTrackCountry.stop();
Global.soundTrackHiphop.stop();
stage.txtFansCostValue.text = (Global.xmlLocalization.symbol_cash + " ");
stage.txtFansCostValue.appendText(Number(Global.bands["rock"].getCost()));
updateFansStars("rock");
calendarSymbolMark.gotoAndStop("rock");
buttons["countryband"].off();
buttons["hiphopband"].off();
buttons["next"].enable();
break;
case SpilEvent.EVENT_OFF:
_local2.down.txtText.text = Global.xmlLocalization.progress.choiceRock;
_local2.over.txtText.text = Global.xmlLocalization.progress.choiceRock;
_local2.out.txtText.text = Global.xmlLocalization.progress.choiceRock;
break;
case SpilEvent.EVENT_INIT:
_local2.down.txtText.text = Global.xmlLocalization.progress.choiceRock;
_local2.over.txtText.text = Global.xmlLocalization.progress.choiceRock;
_local2.out.txtText.text = Global.xmlLocalization.progress.choiceRock;
break;
case SpilEvent.EVENT_MOUSECLICK:
break;
case SpilEvent.EVENT_MOUSEOUT:
_local2.over.gotoAndStop(2);
if (Global.bandOnStage != ""){
calendarSymbolMark.gotoAndStop(Global.bandOnStage);
stage.txtFansCostValue.text = (Global.xmlLocalization.symbol_cash + " ");
stage.txtFansCostValue.appendText(Number(Global.bands[Global.bandOnStage].getCost()));
updateFansStars(Global.bandOnStage);
} else {
calendarSymbolMark.gotoAndStop("none");
stage.txtFansCostValue.text = "";
updateFansStars("");
};
break;
case SpilEvent.EVENT_MOUSEOVER:
_local2.over.play();
calendarSymbolMark.gotoAndStop("rock");
stage.txtFansCostValue.text = (Global.xmlLocalization.symbol_cash + " ");
stage.txtFansCostValue.appendText(Number(Global.bands["rock"].getCost()));
updateFansStars("rock");
break;
};
}
private function onProgressLoadFrame(){
SpilMovieClip.addLabelScript(stage, "progress", null);
stage.mcStars.gotoAndStop(1);
stage.mcTutoProg.enabled = true;
stage.mcTutoProg.mouseEnabled = true;
SpilMovieClip.setTextBalloon(Global.xmlLocalization.progress.tutoMsg, stage.mcTutoProg.txtDialog, stage.mcTutoProg.mcBody, "RESIZE_UP", 15, 15);
safedeleteSpilButton("okprog");
buttons["okprog"] = new SpilTextButton(stage.mcTutoProg.bntExitTuto, Global.xmlLocalization.progress.tutoBtn, onEventSkipTutoProg);
setFXclickover("okprog");
if (Levels.indexLevel > 0){
stage.mcTutoProg.visible = false;
} else {
stage.mcTutoProg.visible = true;
};
buttons["backmenu"] = new SpilTextButton(stage.btnBack, Global.xmlLocalization.progress.back, onEventMainMenu);
buttons["next"] = new SpilTextButton(stage.btnPlay, Global.xmlLocalization.progress.next, onEventUpgrade);
buttons["rockband"] = new SpilSwitchButton(stage.btnRockBand, onEventRockBand);
buttons["countryband"] = new SpilSwitchButton(stage.btnCountryBand, onEventCountryBand);
buttons["hiphopband"] = new SpilSwitchButton(stage.btnHiphopBand, onEventHiphopBand);
setFXclickover("backmenu");
buttons["next"].setFxClick(Global.soundsFX["mouse_click"]);
buttons["next"].setFxOver(Global.soundsFX["mouse_over4"]);
buttons["next"].disable();
setFXclickover("rockband");
buttons["rockband"].off();
setFXclickover("countryband");
buttons["countryband"].setFxClick(Global.soundsFX["mouse_click"]);
buttons["countryband"].setFxOver(Global.soundsFX["mouse_over2"]);
buttons["countryband"].enable();
buttons["countryband"].off();
setFXclickover("hiphopband");
buttons["hiphopband"].setFxClick(Global.soundsFX["mouse_click"]);
buttons["hiphopband"].setFxOver(Global.soundsFX["mouse_over3"]);
buttons["hiphopband"].enable();
buttons["hiphopband"].off();
stage.txtChoice.text = Global.xmlLocalization.progress.choicemsg;
stage.mcTextCash.text = Global.xmlLocalization.progress.cash.text();
stage.mcTextFans.text = Global.xmlLocalization.progress.fans;
stage.txtFriday.text = Global.xmlLocalization.progress.friday;
stage.txtSun.text = Global.xmlLocalization.progress.sunday;
stage.txtSat.text = Global.xmlLocalization.progress.saturday;
stage.mcCash.text = (Global.xmlLocalization.symbol_cash + " ");
stage.mcCash.appendText(String(int(Global.cash)));
stage.txtFansCost.text = Global.xmlLocalization.progress.cost;
stage.txtFansCostValue.text = "";
Global.soundTrackMenu.stop();
markHand = stage.mcHand;
markHand.stop();
switch (Levels.indexStage){
case 0:
switch (Levels.indexLevel){
case 0:
calendarSymbolMark.x = 66;
calendarSymbolMark.y = 70;
pointDay = 1;
pointDayXY.x = 56;
pointDayXY.y = 60;
break;
case 1:
pointDayBeforeXY.x = 56;
pointDayBeforeXY.y = 60;
createSymbolBand(66, 70, 0);
pointDay = 2;
calendarSymbolMark.x = 156;
calendarSymbolMark.y = 84;
pointDayXY.x = 146;
pointDayXY.y = 77;
if (!Global.failLevel){
markHand.gotoAndPlay("day1_go");
SpilMovieClip.addLabelScript(markHand, "day1_go_end", endMovingCross);
} else {
createCompletedMark(pointDayBeforeXY.x, pointDayBeforeXY.y);
};
break;
case 2:
pointDayBeforeXY.x = 146;
pointDayBeforeXY.y = 77;
createSymbolBand(66, 70, 0);
createSymbolBand(156, 84, 1);
createCompletedMark(56, 60);
calendarSymbolMark.x = 242;
calendarSymbolMark.y = 94;
pointDay = 3;
pointDayXY.x = 234;
pointDayXY.y = 89;
if (!Global.failLevel){
markHand.gotoAndPlay("day2_go");
SpilMovieClip.addLabelScript(markHand, "day2_go_end", endMovingCross);
} else {
createCompletedMark(pointDayBeforeXY.x, pointDayBeforeXY.y);
};
break;
case 3:
pointDayBeforeXY.x = 234;
pointDayBeforeXY.y = 89;
createSymbolBand(66, 70, 0);
createSymbolBand(156, 84, 1);
createSymbolBand(242, 94, 2);
createCompletedMark(56, 60);
createCompletedMark(146, 77);
calendarSymbolMark.x = 65;
calendarSymbolMark.y = 138;
pointDay = 4;
pointDayXY.x = 66;
pointDayXY.y = 130;
if (!Global.failLevel){
markHand.gotoAndPlay("day3_go");
SpilMovieClip.addLabelScript(markHand, "day3_go_end", endMovingCross);
} else {
createCompletedMark(pointDayBeforeXY.x, pointDayBeforeXY.y);
};
break;
case 4:
pointDayBeforeXY.x = 66;
pointDayBeforeXY.y = 130;
createSymbolBand(66, 70, 0);
createSymbolBand(156, 84, 1);
createSymbolBand(242, 94, 2);
createSymbolBand(66, 138, 3);
createCompletedMark(56, 60);
createCompletedMark(146, 77);
createCompletedMark(234, 89);
calendarSymbolMark.x = 156;
calendarSymbolMark.y = 150;
pointDay = 5;
pointDayXY.x = 146;
pointDayXY.y = 144;
if (!Global.failLevel){
markHand.gotoAndPlay("day4_go");
SpilMovieClip.addLabelScript(markHand, "day4_go_end", endMovingCross);
} else {
createCompletedMark(pointDayBeforeXY.x, pointDayBeforeXY.y);
};
break;
case 5:
pointDayBeforeXY.x = 146;
pointDayBeforeXY.y = 144;
createSymbolBand(66, 70, 0);
createSymbolBand(156, 84, 1);
createSymbolBand(242, 94, 2);
createSymbolBand(66, 138, 3);
createSymbolBand(156, 150, 4);
createCompletedMark(56, 60);
createCompletedMark(146, 77);
createCompletedMark(234, 89);
createCompletedMark(56, 130);
calendarSymbolMark.x = 242;
calendarSymbolMark.y = 159;
pointDay = 6;
pointDayXY.x = 234;
pointDayXY.y = 154;
if (!Global.failLevel){
markHand.gotoAndPlay("day5_go");
SpilMovieClip.addLabelScript(markHand, "day5_go_end", endMovingCross);
} else {
createCompletedMark(pointDayBeforeXY.x, pointDayBeforeXY.y);
};
break;
case 6:
pointDayBeforeXY.x = 234;
pointDayBeforeXY.y = 154;
createSymbolBand(66, 70, 0);
createSymbolBand(156, 84, 1);
createSymbolBand(242, 94, 2);
createSymbolBand(66, 138, 3);
createSymbolBand(156, 150, 4);
createSymbolBand(242, 159, 5);
createCompletedMark(56, 60);
createCompletedMark(146, 77);
createCompletedMark(234, 89);
createCompletedMark(56, 130);
createCompletedMark(146, 144);
calendarSymbolMark.x = 66;
calendarSymbolMark.y = 205;
pointDay = 7;
pointDayXY.x = 56;
pointDayXY.y = 199;
if (!Global.failLevel){
markHand.gotoAndPlay("day6_go");
SpilMovieClip.addLabelScript(markHand, "day6_go_end", endMovingCross);
} else {
createCompletedMark(pointDayBeforeXY.x, pointDayBeforeXY.y);
};
break;
case 7:
pointDayBeforeXY.x = 56;
pointDayBeforeXY.y = 199;
createSymbolBand(66, 70, 0);
createSymbolBand(156, 84, 1);
createSymbolBand(242, 94, 2);
createSymbolBand(66, 138, 3);
createSymbolBand(156, 150, 4);
createSymbolBand(242, 159, 5);
createSymbolBand(66, 205, 6);
createCompletedMark(56, 60);
createCompletedMark(146, 77);
createCompletedMark(234, 89);
createCompletedMark(56, 130);
createCompletedMark(146, 144);
createCompletedMark(234, 154);
calendarSymbolMark.x = 156;
calendarSymbolMark.y = 215;
pointDay = 8;
pointDayXY.x = 146;
pointDayXY.y = 210;
if (!Global.failLevel){
markHand.gotoAndPlay("day7_go");
SpilMovieClip.addLabelScript(markHand, "day7_go_end", endMovingCross);
} else {
createCompletedMark(pointDayBeforeXY.x, pointDayBeforeXY.y);
};
break;
case 8:
pointDayBeforeXY.x = 146;
pointDayBeforeXY.y = 210;
createSymbolBand(66, 70, 0);
createSymbolBand(156, 84, 1);
createSymbolBand(242, 94, 2);
createSymbolBand(66, 138, 3);
createSymbolBand(156, 150, 4);
createSymbolBand(242, 159, 5);
createSymbolBand(66, 205, 6);
createSymbolBand(156, 215, 7);
createCompletedMark(56, 60);
createCompletedMark(146, 77);
createCompletedMark(234, 89);
createCompletedMark(56, 130);
createCompletedMark(146, 144);
createCompletedMark(234, 154);
createCompletedMark(56, 199);
calendarSymbolMark.x = 242;
calendarSymbolMark.y = 223;
pointDay = 9;
pointDayXY.x = 234;
pointDayXY.y = 218;
if (!Global.failLevel){
markHand.gotoAndPlay("day8_go");
SpilMovieClip.addLabelScript(markHand, "day8_go_end", endMovingCross);
} else {
createCompletedMark(pointDayBeforeXY.x, pointDayBeforeXY.y);
};
break;
case 9:
pointDayBeforeXY.x = 234;
pointDayBeforeXY.y = 218;
createSymbolBand(66, 70, 0);
createSymbolBand(156, 84, 1);
createSymbolBand(242, 94, 2);
createSymbolBand(66, 138, 3);
createSymbolBand(156, 150, 4);
createSymbolBand(242, 159, 5);
createSymbolBand(66, 205, 6);
createSymbolBand(156, 215, 7);
createSymbolBand(242, 223, 8);
createCompletedMark(56, 60);
createCompletedMark(146, 77);
createCompletedMark(234, 89);
createCompletedMark(56, 130);
createCompletedMark(146, 144);
createCompletedMark(234, 154);
createCompletedMark(56, 199);
createCompletedMark(146, 210);
calendarSymbolMark.x = 66;
calendarSymbolMark.y = 272;
pointDay = 10;
pointDayXY.x = 56;
pointDayXY.y = 266;
if (!Global.failLevel){
markHand.gotoAndPlay("day9_go");
SpilMovieClip.addLabelScript(markHand, "day9_go_end", endMovingCross);
} else {
createCompletedMark(pointDayBeforeXY.x, pointDayBeforeXY.y);
};
break;
case 10:
pointDayBeforeXY.x = 56;
pointDayBeforeXY.y = 266;
createSymbolBand(66, 70, 0);
createSymbolBand(156, 84, 1);
createSymbolBand(242, 94, 2);
createSymbolBand(66, 138, 3);
createSymbolBand(156, 150, 4);
createSymbolBand(242, 159, 5);
createSymbolBand(66, 205, 6);
createSymbolBand(156, 215, 7);
createSymbolBand(242, 223, 8);
createSymbolBand(66, 272, 9);
createCompletedMark(56, 60);
createCompletedMark(146, 77);
createCompletedMark(234, 89);
createCompletedMark(56, 130);
createCompletedMark(146, 144);
createCompletedMark(234, 154);
createCompletedMark(56, 199);
createCompletedMark(146, 210);
createCompletedMark(234, 218);
calendarSymbolMark.x = 156;
calendarSymbolMark.y = 281;
pointDay = 11;
pointDayXY.x = 146;
pointDayXY.y = 276;
if (!Global.failLevel){
markHand.gotoAndPlay("day10_go");
SpilMovieClip.addLabelScript(markHand, "day10_go_end", endMovingCross);
} else {
createCompletedMark(pointDayBeforeXY.x, pointDayBeforeXY.y);
};
break;
case 11:
pointDayBeforeXY.x = 146;
pointDayBeforeXY.y = 276;
createSymbolBand(66, 70, 0);
createSymbolBand(156, 84, 1);
createSymbolBand(242, 94, 2);
createSymbolBand(66, 138, 3);
createSymbolBand(156, 150, 4);
createSymbolBand(242, 159, 5);
createSymbolBand(66, 205, 6);
createSymbolBand(156, 215, 7);
createSymbolBand(242, 223, 8);
createSymbolBand(66, 272, 9);
createSymbolBand(156, 281, 10);
createCompletedMark(56, 60);
createCompletedMark(146, 77);
createCompletedMark(234, 89);
createCompletedMark(56, 130);
createCompletedMark(146, 144);
createCompletedMark(234, 154);
createCompletedMark(56, 199);
createCompletedMark(146, 210);
createCompletedMark(234, 218);
createCompletedMark(56, 266);
calendarSymbolMark.x = 242;
calendarSymbolMark.y = 287;
pointDay = 12;
pointDayXY.x = 234;
pointDayXY.y = 283;
if (!Global.failLevel){
markHand.gotoAndPlay("day11_go");
SpilMovieClip.addLabelScript(markHand, "day11_go_end", endMovingCross);
} else {
createCompletedMark(pointDayBeforeXY.x, pointDayBeforeXY.y);
};
break;
case 12:
pointDayBeforeXY.x = 234;
pointDayBeforeXY.y = 283;
createSymbolBand(66, 70, 0);
createSymbolBand(156, 84, 1);
createSymbolBand(242, 94, 2);
createSymbolBand(66, 138, 3);
createSymbolBand(156, 150, 4);
createSymbolBand(242, 159, 5);
createSymbolBand(66, 205, 6);
createSymbolBand(156, 215, 7);
createSymbolBand(242, 223, 8);
createSymbolBand(66, 272, 9);
createSymbolBand(156, 281, 10);
createSymbolBand(242, 287, 11);
createCompletedMark(56, 60);
createCompletedMark(146, 77);
createCompletedMark(234, 89);
createCompletedMark(56, 130);
createCompletedMark(146, 144);
createCompletedMark(234, 154);
createCompletedMark(56, 199);
createCompletedMark(146, 210);
createCompletedMark(234, 218);
createCompletedMark(56, 266);
createCompletedMark(146, 276);
calendarSymbolMark.x = 66;
calendarSymbolMark.y = 339;
pointDay = 13;
pointDayXY.x = 56;
pointDayXY.y = 334;
if (!Global.failLevel){
markHand.gotoAndPlay("day12_go");
SpilMovieClip.addLabelScript(markHand, "day12_go_end", endMovingCross);
} else {
createCompletedMark(pointDayBeforeXY.x, pointDayBeforeXY.y);
};
break;
};
break;
};
calendarSymbolMark.gotoAndStop("none");
Global.main.addChildAt(calendarSymbolMark, 1);
}
private function onEventHighScore(_arg1:SpilEvent){
var _local2:MovieClip;
_local2 = MovieClip(_arg1.transport);
switch (_arg1.event){
case SpilEvent.EVENT_MOUSECLICK:
dispatchHighScore();
break;
case SpilEvent.EVENT_INIT:
break;
case SpilEvent.EVENT_MOUSEOUT:
_local2.over.gotoAndStop(2);
break;
case SpilEvent.EVENT_MOUSEOVER:
_local2.over.play();
break;
};
}
public function dispatchHowToPlay(){
stopSound = false;
try {
return (stMachine.receiveEvent(EVENT_GO_TO_HOW_TO_PLAY));
} catch(e:Error) {
trace(e.getStackTrace());
};
}
private function onHowToPlayLoadFrame(){
var _local1:String;
_local1 = "";
if (lastState == ST_MAIN_MENU){
_local1 = Global.xmlLocalization.howToPlay.mainmenu;
} else {
_local1 = Global.xmlLocalization.howToPlay.game;
};
SpilMovieClip.addLabelScript(screenHowToPlay, "howToPlay", null);
screenHowToPlay.mcTitle.mcText.text = Global.xmlLocalization.howToPlay.title;
buttons["howtoleft"] = new SpilTextButton(screenHowToPlay.mcBtnLeft, _local1, onEventMainMenu2);
buttons["howtoright"] = new SpilTextButton(screenHowToPlay.mcBtnRight, Global.xmlLocalization.howToPlay.next, onEventHowToPlay2);
setFXclickover("howtoleft");
buttons["howtoright"].setFxClick(Global.soundsFX["mouse_click"]);
buttons["howtoright"].setFxOver(Global.soundsFX["mouse_over2"]);
buttons["howtoright"].enable();
screenHowToPlay.mcText1.text = Global.xmlLocalization.howToPlay.text1;
screenHowToPlay.mcText2.text = Global.xmlLocalization.howToPlay.text2;
}
private function startGameOver(){
stage.gotoAndPlay("gameOver");
SpilMovieClip.addLabelScript(stage, "gameOver", onGameOverLoadFrame);
}
private function onUpgradeLoadFrame(){
var paramsFases:XML;
var paramsXML:ParamsXML;
var paramsAreas:XMLList;
var areasUpg:Array;
var teamMembers:Array;
var charactersAvailable:Array;
var item:int;
var upsAvailables:Array;
var objNA:Object;
var areaN:Object;
var areaAval:String;
SpilMovieClip.addLabelScript(stage, "upgrade", null);
stage.txtLogo.txtText.text = Global.xmlLocalization.game.logotext;
stage.mcLogo.gotoAndStop(Global.localization_branding_nr);
stage.mcLogo.addEventListener(MouseEvent.CLICK, onClickLogo);
stage.mcTutoUp.enabled = true;
stage.mcTutoUp.mouseEnabled = true;
safedeleteSpilButton("okupgrade");
buttons["okupgrade"] = new SpilTextButton(stage.mcTutoUp.bntExitTuto, Global.xmlLocalization.upgrade.tutoBtn, onEventSkipTutoUp);
setFXclickover("okupgrade");
SpilMovieClip.setMouseEnabled(stage.mcIntro, false);
stage.mcIntro.mcTitleRed.txtTitleRed.text = Global.xmlLocalization.upgrade.intromsg;
stage.mcIntro.mcTitleBlack.txtTitleBlack.text = Global.xmlLocalization.upgrade.intromsg;
stage.mcIntro.mcTitleBlack2.txtTitleBlack.text = Global.xmlLocalization.upgrade.intromsg;
stage.mcIntro.mcTitleWhite.txtTitleWhite.text = Global.xmlLocalization.upgrade.intromsg;
if (Levels.indexLevel > 0){
stage.mcTutoUp.visible = false;
stage.mcIntro.visible = true;
stage.mcIntro.play();
if (Levels.indexLevel == 1){
SpilMovieClip.setTextBalloon(Global.xmlLocalization.upgrade.tutoMsg2, stage.mcTutoUp.txtDialog, stage.mcTutoUp.mcBody, "RESIZE_UP", 15, 15);
stage.mcTutoUp.visible = true;
stage.mcIntro.visible = false;
SpilMovieClip.addLabelScript(stage.mcIntro, "reinject", reloadmcIntro);
};
} else {
SpilMovieClip.setTextBalloon(Global.xmlLocalization.upgrade.tutoMsg, stage.mcTutoUp.txtDialog, stage.mcTutoUp.mcBody, "RESIZE_UP", 15, 15);
stage.mcTutoUp.visible = true;
stage.mcIntro.visible = false;
SpilMovieClip.addLabelScript(stage.mcIntro, "reinject", reloadmcIntro);
};
paramsFases = Levels.stages.stage[Levels.indexStage].fases.fase[Levels.indexLevel];
paramsXML = new ParamsXML();
paramsAreas = paramsXML.getParamsAreas().area;
areasUpg = Global.upgrades.slice(0);
teamMembers = Global.crew;
charactersAvailable = new Array();
for each (item in paramsFases.crewMembers.member.@id) {
charactersAvailable.push(item);
};
upsAvailables = new Array();
areaN = new Object();
for each (areaN in areasUpg) {
for each (areaAval in paramsFases..name) {
if (areaN.name.toLowerCase() == areaAval.toLowerCase()){
objNA = new Object();
objNA.name = areaAval;
objNA.upType = areaN.upType;
objNA.upValues = [paramsAreas.(name == areaN.name)..upgrade.(@type == 0).valueForUp, paramsAreas.(name == areaN.name)..upgrade.(@type == 1).valueForUp, paramsAreas.(name == areaN.name)..upgrade.(@type == 2).valueForUp];
upsAvailables.push(objNA);
};
};
};
areaN = null;
objNA = null;
upScreenMng = new Upgrade(stage, teamMembers, charactersAvailable, upsAvailables, Global.bandOnStage);
switch (Global.bandOnStage){
case "rock":
Global.soundStartTrackRock.play();
break;
case "country":
Global.soundStartTrackCountry.play();
break;
case "hiphop":
Global.soundStartTrackHiphop.play();
break;
};
buttons["play"] = new SpilTextButton(stage.btnNext, Global.xmlLocalization.upgrade.play, onEventPlay);
setFXclickover("play");
}
public function callUpScreen():void{
SpilMovieClip.addLabelScript(markHand.mcHandPoint, (("day" + pointDay) + "_back_end"), null);
markHand.mcHandPoint.stop();
dispatchUpgradeScreen();
}
private function startUpgradeScreen(){
stage.gotoAndStop("upgrade");
SpilMovieClip.addLabelScript(stage, "upgrade", onUpgradeLoadFrame);
}
public function process(_arg1:Object){
stMachine.process(_arg1);
}
private function onEventSkipTutoProg(_arg1:SpilEvent){
var _local2:MovieClip;
_local2 = MovieClip(_arg1.transport);
switch (_arg1.event){
case SpilEvent.EVENT_MOUSECLICK:
stage.mcTutoProg.visible = false;
break;
case SpilEvent.EVENT_MOUSEOUT:
_local2.over.gotoAndStop(2);
break;
case SpilEvent.EVENT_MOUSEOVER:
_local2.over.play();
break;
};
}
private function processUpgradeScreen(_arg1:Object){
}
private function startGame(){
stage.gotoAndPlay("game");
SpilMovieClip.addLabelScript(stage, "game", onGameLoadFrame);
}
private function startHowToPlay(){
stage.gotoAndPlay("howToPlay");
SpilMovieClip.addLabelScript(stage, "howToPlay", onHowToPlayLoadFrame);
SpilMovieClip.addLabelScript(stage, "page1", onHowToPlayPage1LoadFrame);
SpilMovieClip.addLabelScript(stage, "page2", onHowToPlayPage2LoadFrame);
SpilMovieClip.addLabelScript(stage, "page3", onHowToPlayPage3LoadFrame);
}
public function dispatchGameOver(){
try {
return (stMachine.receiveEvent(EVENT_GO_TO_GAME_OVER));
} catch(e:Error) {
trace(e.getStackTrace());
};
}
private function onEventQuality(_arg1:SpilEvent){
var _local2:MovieClip;
_local2 = MovieClip(_arg1.transport);
switch (_arg1.event){
case SpilEvent.EVENT_MOUSECLICK:
switch (stage.stage.quality){
case "HIGH":
stage.stage.quality = StageQuality.MEDIUM;
break;
case "MEDIUM":
stage.stage.quality = StageQuality.LOW;
break;
case "LOW":
stage.stage.quality = StageQuality.HIGH;
break;
};
buttons["quality"].setText(((Global.xmlLocalization.mainmenu.quality + " ") + textQuality()));
setFXclickover("quality");
break;
case SpilEvent.EVENT_INIT:
break;
case SpilEvent.EVENT_MOUSEOUT:
_local2.over.gotoAndStop(2);
break;
case SpilEvent.EVENT_MOUSEOVER:
_local2.over.play();
break;
};
}
private function onHowToPlayPage1LoadFrame(){
var _local1:String;
SpilMovieClip.addLabelScript(screenHowToPlay, "page1", null);
screenHowToPlay.stop();
_local1 = "";
safedeleteSpilButton("howtoleft");
safedeleteSpilButton("howtoright");
if (lastState == ST_MAIN_MENU){
_local1 = Global.xmlLocalization.howToPlay.mainmenu;
} else {
_local1 = Global.xmlLocalization.howToPlay.game;
};
buttons["howtoleft"] = new SpilTextButton(screenHowToPlay.mcBtnLeft, _local1, onEventMainMenu2);
buttons["howtoright"] = new SpilTextButton(screenHowToPlay.mcBtnRight, Global.xmlLocalization.howToPlay.next, onEventHowToPlay2);
setFXclickover("howtoleft");
buttons["howtoright"].setFxClick(Global.soundsFX["mouse_click"]);
buttons["howtoright"].setFxOver(Global.soundsFX["mouse_over2"]);
buttons["howtoright"].enable();
screenHowToPlay.mcText1.text = Global.xmlLocalization.howToPlay.text1;
screenHowToPlay.mcText2.text = Global.xmlLocalization.howToPlay.text2;
}
private function endCircle():void{
SpilMovieClip.addLabelScript(markHand.mcHandPoint, "end_circle", null);
SpilMovieClip.addLabelScript(markHand, (("day" + pointDay) + "_back_end"), callUpScreen);
createCircleMark();
markHand.mcHandPoint.stop();
markHand.mcHandPoint.gotoAndStop("idle");
markHand.gotoAndPlay((("day" + pointDay) + "_back"));
}
public function dispatchGame(){
try {
return (stMachine.receiveEvent(EVENT_GO_TO_GAME));
} catch(e:Error) {
trace(e.getStackTrace());
};
}
public function onCheatNextLevel(){
var _local1:Number;
var _local2:int;
var _local3:int;
_local1 = Levels.stages.stage[Levels.indexStage].fases.fase[Levels.indexLevel].goalPerc;
_local2 = Levels.stages.stage[Levels.indexStage].fases.fase[Levels.indexLevel].time;
Global.scoreLevel = ((_local2 * _local1) * Global.clients);
_local3 = int(Global.scoreLevel);
Global.cash = (Global.cash + Global.scoreLevel);
Global.cookie.flush();
Global.score = (Global.score + _local3);
if (Global.bandOnStage == ""){
Global.bandOnStage = "rock";
};
nextLevel();
}
private function onEventSubmitVictory(_arg1:SpilEvent){
var _local2:MovieClip;
var _local3:Object;
_local2 = MovieClip(_arg1.transport);
switch (_arg1.event){
case SpilEvent.EVENT_MOUSECLICK:
if (stage.mcName.length){
_local3 = new Object();
_local3.name = stage.mcName.text;
_local3.score = int(Global.score);
Global.cookie.data.highScore.push(_local3);
Global.cookie.data.highScore.sortOn("score", (Array.NUMERIC | Array.DESCENDING));
if (Global.cookie.data.highScore.length > 7){
Global.cookie.data.highScore.splice(8, (Global.cookie.data.highScore.length - 7));
};
Global.cookie.flush();
Global.cookie.data.currentLevel = 0;
Global.cookie.data.currentStage = 0;
Global.cookie.data.currentScore = 0;
Global.cookie.data.currentCash = 0;
Global.cookie.data.team = null;
Global.cookie.data.lastshows = null;
Global.cookie.data.upgrades = null;
Global.cookie.data.fansbandRock = 0;
Global.cookie.data.fansbandCountry = 0;
Global.cookie.data.fansbandHiphop = 0;
Global.cookie.flush();
Levels.indexLevel = 0;
Levels.indexStage = 0;
Global.scoreLevel = 0;
Global.score = 0;
Global.cash = 0;
Global.bands = null;
Global.crew = null;
Global.upgrades = null;
dispatchHighScore();
};
break;
case SpilEvent.EVENT_MOUSEOUT:
_local2.over.gotoAndStop(2);
break;
case SpilEvent.EVENT_MOUSEOVER:
_local2.over.play();
break;
};
}
private function onEventUpgrade(_arg1:SpilEvent){
var _local2:MovieClip;
_local2 = MovieClip(_arg1.transport);
switch (_arg1.event){
case SpilEvent.EVENT_MOUSECLICK:
if (Global.bandOnStage != ""){
if ((Global.cash - Global.bands[Global.bandOnStage].getCost()) >= 0){
Global.soundTrackCountry.stop();
Global.soundTrackHiphop.stop();
Global.soundTrackRock.stop();
buttons["rockband"].disable();
buttons["countryband"].disable();
buttons["hiphopband"].disable();
startCircle();
};
};
break;
case SpilEvent.EVENT_MOUSEOUT:
_local2.over.gotoAndStop(2);
break;
case SpilEvent.EVENT_MOUSEOVER:
_local2.over.play();
break;
};
}
private function stopProgressScreen(){
safedeleteSpilButton("next");
safedeleteSpilButton("rockband");
safedeleteSpilButton("countryband");
safedeleteSpilButton("hiphopband");
safedeleteSpilButton("play");
Global.soundTrackRock.stop();
Global.soundTrackCountry.stop();
Global.soundTrackHiphop.stop();
while (Global.main.numChildren) {
Global.main.removeChild(Global.main.getChildAt(0));
};
}
private function onHowToPlayPage2LoadFrame(){
SpilMovieClip.addLabelScript(screenHowToPlay, "page2", null);
screenHowToPlay.stop();
safedeleteSpilButton("howtoleft");
safedeleteSpilButton("howtoright");
buttons["howtoleft"] = new SpilTextButton(screenHowToPlay.mcBtnLeft, Global.xmlLocalization.howToPlay.back, onEventHowToPlay1);
buttons["howtoright"] = new SpilTextButton(screenHowToPlay.mcBtnRight, Global.xmlLocalization.howToPlay.next, onEventHowToPlay3);
setFXclickover("howtoleft");
buttons["howtoright"].setFxClick(Global.soundsFX["mouse_click"]);
buttons["howtoright"].setFxOver(Global.soundsFX["mouse_over2"]);
buttons["howtoright"].enable();
screenHowToPlay.mcText3.text = Global.xmlLocalization.howToPlay.text3;
screenHowToPlay.mcText4.text = Global.xmlLocalization.howToPlay.text4;
}
private function onEventHowToPlay1(_arg1:SpilEvent){
var _local2:MovieClip;
_local2 = MovieClip(_arg1.transport);
switch (_arg1.event){
case SpilEvent.EVENT_MOUSECLICK:
safedeleteSpilButton("howtoleft");
safedeleteSpilButton("howtoright");
screenHowToPlay.gotoAndStop("page1");
SpilMovieClip.addLabelScript(screenHowToPlay, "page1", onHowToPlayPage1LoadFrame);
break;
case SpilEvent.EVENT_MOUSEOUT:
_local2.over.gotoAndStop(2);
break;
case SpilEvent.EVENT_MOUSEOVER:
_local2.over.play();
break;
};
}
private function onEventHowToPlay2(_arg1:SpilEvent){
var _local2:MovieClip;
_local2 = MovieClip(_arg1.transport);
switch (_arg1.event){
case SpilEvent.EVENT_MOUSECLICK:
safedeleteSpilButton("howtoleft");
safedeleteSpilButton("howtoright");
screenHowToPlay.gotoAndStop("page2");
SpilMovieClip.addLabelScript(screenHowToPlay, "page2", onHowToPlayPage2LoadFrame);
break;
case SpilEvent.EVENT_MOUSEOUT:
_local2.over.gotoAndStop(2);
break;
case SpilEvent.EVENT_MOUSEOVER:
_local2.over.play();
break;
};
}
private function onEventHowToPlay3(_arg1:SpilEvent){
var _local2:MovieClip;
_local2 = MovieClip(_arg1.transport);
switch (_arg1.event){
case SpilEvent.EVENT_MOUSECLICK:
safedeleteSpilButton("howtoleft");
safedeleteSpilButton("howtoright");
screenHowToPlay.gotoAndStop("page3");
SpilMovieClip.addLabelScript(screenHowToPlay, "page3", onHowToPlayPage3LoadFrame);
break;
case SpilEvent.EVENT_MOUSEOUT:
_local2.over.gotoAndStop(2);
break;
case SpilEvent.EVENT_MOUSEOVER:
_local2.over.play();
break;
};
}
private function onEventMoreGames(_arg1:SpilEvent){
var _local2:MovieClip;
var _local3:String;
_local2 = MovieClip(_arg1.transport);
switch (_arg1.event){
case SpilEvent.EVENT_MOUSECLICK:
_local3 = "";
switch (stMachine.getCurrentState().getName()){
case ST_MAIN_MENU:
_local3 = "&utm_term=button_main_menu";
break;
case ST_VICTORY:
_local3 = "&utm_term=button_victory";
break;
case ST_HIGH_SCORE:
_local3 = "&utm_term=button_high_score";
break;
case ST_GAME_OVER:
_local3 = "&utm_term=button_game_over";
break;
};
SpilURLNavigator.changePage((Global.localization_url + _local3), "_blank");
break;
case SpilEvent.EVENT_INIT:
break;
case SpilEvent.EVENT_MOUSEOUT:
_local2.over.gotoAndStop(2);
break;
case SpilEvent.EVENT_MOUSEOVER:
_local2.over.play();
break;
};
}
public function dispatchHighScore(){
try {
return (stMachine.receiveEvent(EVENT_GO_TO_HIGH_SCORE));
} catch(e:Error) {
trace(e.getStackTrace());
};
}
private function stopVictory(){
delete buttons["submit"];
buttons["submit"] = undefined;
}
private function updateFansStars(_arg1:String):void{
var _local2:ParamsXML;
var _local3:XML;
var _local4:int;
if (_arg1 != ""){
_local2 = new ParamsXML();
_local3 = _local2.getParamsChars();
_local4 = Global.bands[_arg1].getNumsFans();
if (_local4 <= int(_local3..star0MaxClients)){
stage.mcStars.gotoAndStop(1);
};
if ((((_local4 > int(_local3..star0MaxClients))) && ((_local4 <= int(_local3..star1MaxClients))))){
stage.mcStars.gotoAndStop(3);
};
if ((((_local4 > int(_local3..star1MaxClients))) && ((_local4 <= int(_local3..star2MaxClients))))){
stage.mcStars.gotoAndStop(5);
};
if ((((_local4 > int(_local3..star2MaxClients))) && ((_local4 <= int(_local3..star3MaxClients))))){
stage.mcStars.gotoAndStop(6);
};
if ((((_local4 > int(_local3..star3MaxClients))) && ((_local4 <= int(_local3..star4MaxClients))))){
stage.mcStars.gotoAndStop(8);
};
if (_local4 > int(_local3..star4MaxClients)){
stage.mcStars.gotoAndStop(10);
};
} else {
stage.mcStars.gotoAndStop(1);
};
}
private function onEventStartGame(_arg1:SpilEvent){
var _local2:MovieClip;
_local2 = MovieClip(_arg1.transport);
switch (_arg1.event){
case SpilEvent.EVENT_MOUSECLICK:
if (Levels.indexLevel > 0){
onQuestMainMenu();
} else {
dispatchProgressScreen();
};
break;
case SpilEvent.EVENT_INIT:
break;
case SpilEvent.EVENT_MOUSEOUT:
_local2.over.gotoAndStop(2);
break;
case SpilEvent.EVENT_MOUSEOVER:
_local2.over.play();
break;
};
}
private function onEventHowToPlayinGame(_arg1:SpilEvent){
var _local2:MovieClip;
_local2 = MovieClip(_arg1.transport);
switch (_arg1.event){
case SpilEvent.EVENT_MOUSECLICK:
lastState = stMachine.getCurrentState().getName();
stage.addChild(screenHowToPlay);
screenHowToPlay.gotoAndPlay("howToPlay");
SpilMovieClip.addLabelScript(screenHowToPlay, "howToPlay", onHowToPlayLoadFrame);
SpilMovieClip.addLabelScript(screenHowToPlay, "page1", onHowToPlayPage1LoadFrame);
SpilMovieClip.addLabelScript(screenHowToPlay, "page2", onHowToPlayPage2LoadFrame);
SpilMovieClip.addLabelScript(screenHowToPlay, "page3", onHowToPlayPage3LoadFrame);
break;
case SpilEvent.EVENT_INIT:
break;
case SpilEvent.EVENT_MOUSEOUT:
_local2.over.gotoAndStop(2);
break;
case SpilEvent.EVENT_MOUSEOVER:
_local2.over.play();
break;
};
}
private function processProgress(_arg1:Object){
}
private function reloadmcIntro():void{
SpilMovieClip.addLabelScript(stage.mcIntro, "reinject", null);
stage.mcIntro.mcTitleRed.txtTitleRed.text = Global.xmlLocalization.upgrade.intromsg;
stage.mcIntro.mcTitleBlack.txtTitleBlack.text = Global.xmlLocalization.upgrade.intromsg;
stage.mcIntro.mcTitleBlack2.txtTitleBlack.text = Global.xmlLocalization.upgrade.intromsg;
stage.mcIntro.mcTitleWhite.txtTitleWhite.text = Global.xmlLocalization.upgrade.intromsg;
}
public function endMovingCross():void{
SpilMovieClip.addLabelScript(markHand, (("day" + (pointDay - 1)) + "_go_end"), null);
SpilMovieClip.addLabelScript(markHand.mcHandPoint, "end_cross", endCross);
markHand.stop();
markHand.mcHandPoint.gotoAndPlay("cross");
}
private function initEnergyMeter(_arg1:XMLList, _arg2:XMLList){
var _local3:XML;
var _local4:XML;
Global.energyMeter = new EnergyMeter();
for each (_local3 in _arg1) {
Global.energyMeter.setFaceName_Range(String(_local3.@face).toLowerCase(), int(_local3.@min), int(_local3.@max));
};
for each (_local4 in _arg2) {
Global.energyMeter.setSkill_Rate(String(_local4.@type).toLowerCase(), Number(_local4.@rate));
};
_local3 = null;
_local4 = null;
}
private function onEventFXGame(_arg1:SpilEvent){
var _local2:MovieClip;
_local2 = MovieClip(_arg1.transport);
switch (_arg1.event){
case SpilEvent.EVENT_MOUSECLICK:
if (Global.soundManager.getSFXVolume() == 0){
buttons["fx"].setText(((Global.xmlLocalization.pause.soundfx + ": ") + Global.xmlLocalization.pause.on));
Global.soundManager.setSFXVolume(60);
} else {
buttons["fx"].setText(((Global.xmlLocalization.pause.soundfx + ": ") + Global.xmlLocalization.pause.off));
Global.soundManager.setSFXVolume(0);
};
break;
case SpilEvent.EVENT_MOUSEOUT:
_local2.over.gotoAndStop(2);
break;
case SpilEvent.EVENT_MOUSEOVER:
_local2.over.play();
break;
};
}
private function onGameOverLoadFrame(){
SpilMovieClip.addLabelScript(stage, "gameOver", null);
stage.mcBtnMore.mcLogo.gotoAndStop(Global.localization_branding_nr);
stage.mcBallon.mcTitle.txtTitle.text = Global.xmlLocalization.gameOver.title;
stage.mcTitleBlink.mcTitle.text = Global.xmlLocalization.gameOver.title;
stage.mcTextScore.text = Global.xmlLocalization.gameOver.score;
stage.mcTextName.text = Global.xmlLocalization.gameOver.name;
stage.mcScore.text = String(int(Global.score));
stage.mcName.text = "";
buttons["moregames"] = new SpilTextButton(stage.mcBtnMore, Global.xmlLocalization.mainmenu.moregames, onEventMoreGames);
buttons["submit"] = new SpilTextButton(stage.mcBtnSubmit, Global.xmlLocalization.gameOver.submit, onEventSubmit);
}
private function onHowToPlayPage3LoadFrame(){
var _local1:String;
SpilMovieClip.addLabelScript(screenHowToPlay, "page3", null);
screenHowToPlay.stop();
_local1 = "";
safedeleteSpilButton("howtoleft");
safedeleteSpilButton("howtoright");
if (lastState == ST_MAIN_MENU){
_local1 = Global.xmlLocalization.howToPlay.mainmenu;
} else {
_local1 = Global.xmlLocalization.howToPlay.game;
};
buttons["howtoleft"] = new SpilTextButton(screenHowToPlay.mcBtnLeft, Global.xmlLocalization.howToPlay.back, onEventHowToPlay2);
buttons["howtoright"] = new SpilTextButton(screenHowToPlay.mcBtnRight, _local1, onEventMainMenu2);
setFXclickover("howtoleft");
buttons["howtoright"].setFxClick(Global.soundsFX["mouse_click"]);
buttons["howtoright"].setFxOver(Global.soundsFX["mouse_over2"]);
buttons["howtoright"].enable();
screenHowToPlay.mcText5.text = Global.xmlLocalization.howToPlay.text5;
screenHowToPlay.mcText6.text = Global.xmlLocalization.howToPlay.text6;
screenHowToPlay.mcCash.mctxtCashIn.mctxtCash.txtCash.text = Global.xmlLocalization.howToPlay.cash;
screenHowToPlay.mcCash.mctxtCashIn.mctxtCash2.txtCash.text = Global.xmlLocalization.howToPlay.cash;
screenHowToPlay.mctxtGoal.mcGoal.text = Global.xmlLocalization.howToPlay.goal;
}
private function onGameLoadFrame(){
var paramsFases:XML;
var paramsXML:ParamsXML;
var paramsConfig:XML;
var paramsAreas:XMLList;
var paramActionTime:int;
var paramsEnergyFaces:XMLList;
var paramsSkillsRates:XMLList;
var areasUpg:Array;
var teamMembers:Array;
var upsAvailables:Array;
var objNA:Object;
var areaN:Object;
var simProbls:int;
var malfuncFac:Number;
var fans:int;
var areaAval:String;
SpilMovieClip.addLabelScript(stage, "game", null);
stage.mcGoalReached.visible = false;
SpilMovieClip.setMouseEnabled(stage.mcGoalReached, false);
SpilMovieClip.setMouseEnabled(stage.startMessage, false);
stage.txtLogo.txtText.text = Global.xmlLocalization.game.logotext;
stage.mcLogo.gotoAndStop(Global.localization_branding_nr);
stage.mcLogo.addEventListener(MouseEvent.CLICK, onClickLogo);
stage.startMessage.mcTitleRed.txtTitleRed.text = Global.xmlLocalization.game.levelStart;
stage.startMessage.mcTitleBlack.txtTitleBlack.text = Global.xmlLocalization.game.levelStart;
stage.startMessage.mcTitleBlack2.txtTitleBlack2.text = Global.xmlLocalization.game.levelStart;
stage.startMessage.mcTitleWhite.txtTitleWhite.text = Global.xmlLocalization.game.levelStart;
screenPause.txtPause.text = Global.xmlLocalization.pause.title;
buttons["howtoplay"] = new SpilTextButton(screenPause.btnHowToPlay, Global.xmlLocalization.mainmenu.howtoplay, onEventHowToPlayinGame);
buttons["mainmenu"] = new SpilTextButton(screenPause.btnMainMenu, Global.xmlLocalization.highscore.menu, onEventMainMenu);
buttons["quality"] = new SpilTextButton(screenPause.btnQuality, ((Global.xmlLocalization.mainmenu.quality + " ") + textQuality()), onEventQuality);
buttons["fx"] = new SpilTextButton(screenPause.btnFX, ((Global.xmlLocalization.pause.soundfx + ": ") + Global.xmlLocalization.pause.on), onEventFXGame);
buttons["music"] = new SpilTextButton(screenPause.btnMusic, ((Global.xmlLocalization.pause.music + ": ") + Global.xmlLocalization.pause.on), onEventMusicGame);
setFXclickover("howtoplay");
setFXclickover("mainmenu");
setFXclickover("quality");
setFXclickover("fx");
setFXclickover("music");
if (Global.soundManager.getSFXVolume() == 0){
buttons["fx"].setText(((Global.xmlLocalization.pause.soundfx + ": ") + Global.xmlLocalization.pause.off));
};
if (Global.soundManager.getMusicVolume() == 0){
buttons["music"].setText(((Global.xmlLocalization.pause.music + ": ") + Global.xmlLocalization.pause.off));
};
stage.btnPause.out.gotoAndStop(Global.bandOnStage);
buttons["pause"] = new SpilTextButton(stage.btnPause, Global.xmlLocalization.game.menu, onEventPause);
buttons["continue"] = new SpilTextButton(screenPause.btnResumeGame, Global.xmlLocalization.pause.resume, onEventResume);
setFXclickover("pause");
setFXclickover("continue");
paramsFases = Levels.stages.stage[Levels.indexStage].fases.fase[Levels.indexLevel];
paramsXML = new ParamsXML();
paramsConfig = paramsXML.getParamsGame();
paramsAreas = paramsXML.getParamsAreas().area;
paramActionTime = int(paramsXML.getParamsCharsAreas().actionTime.text());
paramsEnergyFaces = paramsXML.getParamsCharsAreas().energiesRanges.energy;
paramsSkillsRates = paramsXML.getParamsCharsAreas().skillsEnergy.skill;
areasUpg = Global.upgrades.slice(0);
teamMembers = Global.crew;
upsAvailables = new Array();
areaN = new Object();
for each (areaN in areasUpg) {
for each (areaAval in paramsFases..name) {
if ((((((areaN.name.toLowerCase() == areaAval.toLowerCase())) && ((areaAval.toLowerCase() == "sound table")))) && ((areaN.upType >= 0)))){
objNA = new Object();
objNA.name = areaAval;
objNA.upgrade = paramsAreas.(name == areaN.name)..upgrade.(@type == areaN.upType);
objNA.tasks = paramsAreas.(name == areaN.name).tasks;
upsAvailables.push(objNA);
};
if ((((areaN.name.toLowerCase() == areaAval.toLowerCase())) && (!((areaAval.toLowerCase() == "sound table"))))){
objNA = new Object();
objNA.name = areaAval;
objNA.upgrade = paramsAreas.(name == areaN.name)..upgrade.(@type == areaN.upType);
objNA.tasks = paramsAreas.(name == areaN.name).tasks;
if (areaAval.toLowerCase() == "entrance & exit"){
objNA.runaways = paramsAreas.(name == areaN.name)..runaways;
};
upsAvailables.push(objNA);
};
};
};
areaN = null;
objNA = null;
simProbls = paramsFases.maxProb;
malfuncFac = Number(paramsConfig.malfunc_encrease_factor.text());
initEnergyMeter(paramsEnergyFaces, paramsSkillsRates);
fans = Global.bands[Global.bandOnStage].getNumsFans();
gamePlay = new ManagerGamePlay(teamMembers, Global.bandOnStage, upsAvailables, malfuncFac, fans, paramActionTime, simProbls);
if (Levels.indexLevel > 0){
stage.mcTutoGame.visible = false;
SpilMovieClip.setMouseEnabled(stage.mcTutoGame, false);
stage.startMessage.visible = true;
stage.setChildIndex(stage.startMessage, (stage.numChildren - 1));
stage.startMessage.gotoAndPlay(2);
};
if (Levels.indexLevel == 0){
stage.setChildIndex(stage.mcTutoGame, (stage.numChildren - 1));
stage.mcTutoGame.enabled = true;
SpilMovieClip.setTextBalloon(Global.xmlLocalization.game.tutoMsg.text(), stage.mcTutoGame.txtDialog, stage.mcTutoGame.mcBody, "RESIZE_UP", 15, 15);
safedeleteSpilButton("okgame");
buttons["okgame"] = new SpilTextButton(stage.mcTutoGame.bntExitTuto, Global.xmlLocalization.game.tutoBtn, onEventSkipTutoGame);
setFXclickover("okgame");
stage.setChildIndex(stage.startMessage, (stage.numChildren - 1));
stage.mcTutoGame.visible = true;
stage.mcTutoGame.play();
stage.startMessage.visible = false;
gamePlay.pause(null);
};
stage.mcGoalReached.mcTitleRed.txtTitleRed.text = Global.xmlLocalization.game.goalReached;
stage.mcGoalReached.mcTitleBlack.txtTitleBlack.text = Global.xmlLocalization.game.goalReached;
stage.mcGoalReached.mcTitleBlack2.txtTitleBlack2.text = Global.xmlLocalization.game.goalReached;
stage.mcGoalReached.mcTitleWhite.txtTitleWhite.text = Global.xmlLocalization.game.goalReached;
SpilMovieClip.addLabelScript(stage, "finishGame", onFinishGameLoadFrame);
}
private function onClickSpil(_arg1:MouseEvent):void{
SpilURLNavigator.changePage("http://www.gameportal.net/", "_blank");
}
private function onEventPause(_arg1:SpilEvent){
var _local2:MovieClip;
_local2 = MovieClip(_arg1.transport);
switch (_arg1.event){
case SpilEvent.EVENT_MOUSECLICK:
gamePlay.pause(screenPause);
break;
case SpilEvent.EVENT_MOUSEOUT:
_local2.over.gotoAndStop(2);
break;
case SpilEvent.EVENT_MOUSEOVER:
_local2.over.play();
break;
};
}
private function stopUpgradeScreen(){
safedeleteSpilButton("play");
Global.soundStartTrackRock.stop();
Global.soundStartTrackCountry.stop();
Global.soundStartTrackHiphop.stop();
while (Global.main.numChildren) {
Global.main.removeChild(Global.main.getChildAt(0));
};
}
private function startHighScore(){
stage.gotoAndPlay("highscore");
Global.soundTrackMenu.play();
SpilMovieClip.addLabelScript(stage, "highscore", onHighScoreLoadFrame);
}
private function onEventPlay(_arg1:SpilEvent){
var _local2:MovieClip;
_local2 = MovieClip(_arg1.transport);
switch (_arg1.event){
case SpilEvent.EVENT_MOUSECLICK:
dispatchGame();
break;
case SpilEvent.EVENT_MOUSEOUT:
_local2.over.gotoAndStop(2);
break;
case SpilEvent.EVENT_MOUSEOVER:
_local2.over.play();
break;
};
}
public function startCircle():void{
SpilMovieClip.addLabelScript(markHand, (("day" + pointDay) + "_go_end"), endMovingCircle);
markHand.mcHandPoint.gotoAndPlay("idle");
markHand.gotoAndPlay((("day" + pointDay) + "_go"));
}
private function onEventMainMenu(_arg1:SpilEvent){
var _local2:MovieClip;
_local2 = MovieClip(_arg1.transport);
switch (_arg1.event){
case SpilEvent.EVENT_MOUSECLICK:
Global.soundManager.resume();
dispatchMainMenu();
break;
case SpilEvent.EVENT_MOUSEOUT:
_local2.over.gotoAndStop(2);
break;
case SpilEvent.EVENT_MOUSEOVER:
_local2.over.play();
break;
};
}
private function onEventMainMenu2(_arg1:SpilEvent){
var _local2:MovieClip;
_local2 = MovieClip(_arg1.transport);
switch (_arg1.event){
case SpilEvent.EVENT_MOUSECLICK:
safedeleteSpilButton("howtoleft");
safedeleteSpilButton("howtoright");
stage.removeChild(screenHowToPlay);
break;
case SpilEvent.EVENT_MOUSEOUT:
_local2.over.gotoAndStop(2);
break;
case SpilEvent.EVENT_MOUSEOVER:
_local2.over.play();
break;
};
}
private function createCircleMark():void{
var _local1:calendar_mark_today;
_local1 = new calendar_mark_today();
_local1.x = pointDayXY.x;
_local1.y = pointDayXY.y;
Global.main.addChild(_local1);
}
private function onEventContinueGame(_arg1:SpilEvent){
var _local2:MovieClip;
_local2 = MovieClip(_arg1.transport);
switch (_arg1.event){
case SpilEvent.EVENT_MOUSECLICK:
dispatchProgressScreen();
break;
case SpilEvent.EVENT_INIT:
break;
case SpilEvent.EVENT_MOUSEOUT:
_local2.over.gotoAndStop(2);
break;
case SpilEvent.EVENT_MOUSEOVER:
_local2.over.play();
break;
};
}
private function stopHowToPlay(){
delete buttons["howtoright"];
buttons["howtoright"] = null;
delete buttons["howtoleft"];
buttons["howtoleft"] = null;
}
private function stopMainMenu(){
safedeleteSpilButton("continue");
safedeleteSpilButton("newgame");
safedeleteSpilButton("quality");
safedeleteSpilButton("fx");
safedeleteSpilButton("music");
if (stopSound){
Global.soundTrackMenu.stop();
};
}
private function onLinkSpilOver(_arg1:MouseEvent):void{
var _local2:GlowFilter;
_local2 = new GlowFilter(0xFF0000, 1, 5, 5, 5, BitmapFilterQuality.HIGH);
MovieClip(_arg1.currentTarget).filters = [_local2];
}
public function handBackCross():void{
SpilMovieClip.addLabelScript(markHand, (("day" + (pointDay - 1)) + "_back_end"), null);
markHand.stop();
}
private function onEventCountryBand(_arg1:SpilEvent){
var _local2:MovieClip;
_local2 = MovieClip(_arg1.transport);
switch (_arg1.event){
case SpilEvent.EVENT_ON:
_local2.down.txtText.text = Global.xmlLocalization.progress.choiceCountry;
_local2.over.txtText.text = Global.xmlLocalization.progress.choiceCountry;
_local2.out.txtText.text = Global.xmlLocalization.progress.choiceCountry;
Global.bandOnStage = "country";
Global.soundTrackCountry.stop();
Global.soundTrackCountry.play();
Global.soundTrackHiphop.stop();
Global.soundTrackRock.stop();
stage.txtFansCostValue.text = (Global.xmlLocalization.symbol_cash + " ");
stage.txtFansCostValue.appendText(Number(Global.bands["country"].getCost()));
updateFansStars("country");
calendarSymbolMark.gotoAndStop("country");
buttons["rockband"].off();
buttons["hiphopband"].off();
buttons["next"].enable();
break;
case SpilEvent.EVENT_OFF:
_local2.down.txtText.text = Global.xmlLocalization.progress.choiceCountry;
_local2.over.txtText.text = Global.xmlLocalization.progress.choiceCountry;
_local2.out.txtText.text = Global.xmlLocalization.progress.choiceCountry;
break;
case SpilEvent.EVENT_INIT:
_local2.down.txtText.text = Global.xmlLocalization.progress.choiceCountry;
_local2.over.txtText.text = Global.xmlLocalization.progress.choiceCountry;
_local2.out.txtText.text = Global.xmlLocalization.progress.choiceCountry;
break;
case SpilEvent.EVENT_MOUSEOUT:
_local2.over.gotoAndStop(2);
if (Global.bandOnStage != ""){
calendarSymbolMark.gotoAndStop(Global.bandOnStage);
stage.txtFansCostValue.text = (Global.xmlLocalization.symbol_cash + " ");
stage.txtFansCostValue.appendText(Number(Global.bands[Global.bandOnStage].getCost()));
updateFansStars(Global.bandOnStage);
} else {
calendarSymbolMark.gotoAndStop("none");
stage.txtFansCostValue.text = "";
updateFansStars("");
};
break;
case SpilEvent.EVENT_MOUSEOVER:
_local2.over.play();
calendarSymbolMark.gotoAndStop("country");
stage.txtFansCostValue.text = (Global.xmlLocalization.symbol_cash + " ");
stage.txtFansCostValue.appendText(Number(Global.bands["country"].getCost()));
updateFansStars("country");
break;
};
}
private function onEventSubmit(_arg1:SpilEvent){
var _local2:Object;
switch (_arg1.event){
case SpilEvent.EVENT_MOUSECLICK:
if (stage.mcName.length){
_local2 = new Object();
_local2.name = stage.mcName.text;
_local2.score = int(Global.score);
Global.cookie.data.highScore.push(_local2);
Global.cookie.data.highScore.sortOn("score", (Array.NUMERIC | Array.DESCENDING));
if (Global.cookie.data.highScore.length > 7){
Global.cookie.data.highScore.splice(8, (Global.cookie.data.highScore.length - 7));
};
Global.cookie.flush();
dispatchHighScore();
};
break;
};
}
private function onEventMusic(_arg1:SpilEvent){
var _local2:MovieClip;
_local2 = MovieClip(_arg1.transport);
switch (_arg1.event){
case SpilEvent.EVENT_ON:
Global.soundManager.setMusicVolume(50);
break;
case SpilEvent.EVENT_OFF:
Global.soundManager.setMusicVolume(0);
break;
case SpilEvent.EVENT_MOUSEOUT:
_local2.over.gotoAndStop(2);
break;
case SpilEvent.EVENT_MOUSEOVER:
_local2.over.play();
break;
};
}
private function startProgressScreen(){
stage.gotoAndStop("progress");
SpilMovieClip.addLabelScript(stage, "progress", onProgressLoadFrame);
Global.bandOnStage = "";
}
}
}//package classes.manager
Section 26
//CampaignInfo (com.google.analytics.campaign.CampaignInfo)
package com.google.analytics.campaign {
import com.google.analytics.utils.*;
public class CampaignInfo {
private var _new:Boolean;
private var _empty:Boolean;
public function CampaignInfo(_arg1:Boolean=true, _arg2:Boolean=false){
_empty = _arg1;
_new = _arg2;
}
public function toURLString():String{
var _local1:Variables = toVariables();
return (_local1.toString());
}
public function isNew():Boolean{
return (_new);
}
public function get utmcn():String{
return ("1");
}
public function isEmpty():Boolean{
return (_empty);
}
public function toVariables():Variables{
var _local1:Variables = new Variables();
_local1.URIencode = true;
if (((!(isEmpty())) && (isNew()))){
_local1.utmcn = utmcn;
};
if (((!(isEmpty())) && (!(isNew())))){
_local1.utmcr = utmcr;
};
return (_local1);
}
public function get utmcr():String{
return ("1");
}
}
}//package com.google.analytics.campaign
Section 27
//CampaignKey (com.google.analytics.campaign.CampaignKey)
package com.google.analytics.campaign {
public class CampaignKey {
public var UCMD:String;// = "utm_medium"
public var UCID:String;// = "utm_id"
public var UCTR:String;// = "utm_term"
public var UCSR:String;// = "utm_source"
public var UCNO:String;// = "utm_nooverride"
public var UCCN:String;// = "utm_campaign"
public var UGCLID:String;// = "gclid"
public var UCCT:String;// = "utm_content"
}
}//package com.google.analytics.campaign
Section 28
//CampaignManager (com.google.analytics.campaign.CampaignManager)
package com.google.analytics.campaign {
import com.google.analytics.core.*;
import com.google.analytics.v4.*;
import com.google.analytics.debug.*;
import com.google.analytics.utils.*;
public class CampaignManager {
private var _config:Configuration;
private var _domainHash:Number;
private var _debug:DebugConfiguration;
private var _timeStamp:Number;
private var _referrer:String;
private var _buffer:Buffer;
public static const trackingDelimiter:String = "|";
public function CampaignManager(_arg1:Configuration, _arg2:DebugConfiguration, _arg3:Buffer, _arg4:Number, _arg5:String, _arg6:Number){
_config = _arg1;
_debug = _arg2;
_buffer = _arg3;
_domainHash = _arg4;
_referrer = _arg5;
_timeStamp = _arg6;
}
public function getCampaignInformation(_arg1:String, _arg2:Boolean):CampaignInfo{
var _local4:CampaignTracker;
var _local8:CampaignTracker;
var _local9:int;
var _local3:CampaignInfo = new CampaignInfo();
var _local5:Boolean;
var _local6:Boolean;
var _local7:int;
if (((_config.allowLinker) && (_buffer.isGenuine()))){
if (!_buffer.hasUTMZ()){
return (_local3);
};
};
_local4 = getTrackerFromSearchString(_arg1);
if (isValid(_local4)){
_local6 = hasNoOverride(_arg1);
if (((_local6) && (!(_buffer.hasUTMZ())))){
return (_local3);
};
};
if (!isValid(_local4)){
_local4 = getOrganicCampaign();
if (((!(_buffer.hasUTMZ())) && (isIgnoredKeyword(_local4)))){
return (_local3);
};
};
if (((!(isValid(_local4))) && (_arg2))){
_local4 = getReferrerCampaign();
if (((!(_buffer.hasUTMZ())) && (isIgnoredReferral(_local4)))){
return (_local3);
};
};
if (!isValid(_local4)){
if (((!(_buffer.hasUTMZ())) && (_arg2))){
_local4 = getDirectCampaign();
};
};
if (!isValid(_local4)){
return (_local3);
};
if (((_buffer.hasUTMZ()) && (!(_buffer.utmz.isEmpty())))){
_local8 = new CampaignTracker();
_local8.fromTrackerString(_buffer.utmz.campaignTracking);
_local5 = (_local8.toTrackerString() == _local4.toTrackerString());
_local7 = _buffer.utmz.responseCount;
};
if (((!(_local5)) || (_arg2))){
_local9 = _buffer.utma.sessionCount;
_local7++;
if (_local9 == 0){
_local9 = 1;
};
_buffer.utmz.domainHash = _domainHash;
_buffer.utmz.campaignCreation = _timeStamp;
_buffer.utmz.campaignSessions = _local9;
_buffer.utmz.responseCount = _local7;
_buffer.utmz.campaignTracking = _local4.toTrackerString();
_debug.info(_buffer.utmz.toString(), VisualDebugMode.geek);
_local3 = new CampaignInfo(false, true);
} else {
_local3 = new CampaignInfo(false, false);
};
return (_local3);
}
public function hasNoOverride(_arg1:String):Boolean{
var _local2:CampaignKey = _config.campaignKey;
if (_arg1 == ""){
return (false);
};
var _local3:Variables = new Variables(_arg1);
var _local4 = "";
if (_local3.hasOwnProperty(_local2.UCNO)){
_local4 = _local3[_local2.UCNO];
switch (_local4){
case "1":
return (true);
case "":
case "0":
default:
return (false);
};
};
return (false);
}
public function getTrackerFromSearchString(_arg1:String):CampaignTracker{
var _local2:CampaignTracker = getOrganicCampaign();
var _local3:CampaignTracker = new CampaignTracker();
var _local4:CampaignKey = _config.campaignKey;
if (_arg1 == ""){
return (_local3);
};
var _local5:Variables = new Variables(_arg1);
if (_local5.hasOwnProperty(_local4.UCID)){
_local3.id = _local5[_local4.UCID];
};
if (_local5.hasOwnProperty(_local4.UCSR)){
_local3.source = _local5[_local4.UCSR];
};
if (_local5.hasOwnProperty(_local4.UGCLID)){
_local3.clickId = _local5[_local4.UGCLID];
};
if (_local5.hasOwnProperty(_local4.UCCN)){
_local3.name = _local5[_local4.UCCN];
} else {
_local3.name = "(not set)";
};
if (_local5.hasOwnProperty(_local4.UCMD)){
_local3.medium = _local5[_local4.UCMD];
} else {
_local3.medium = "(not set)";
};
if (_local5.hasOwnProperty(_local4.UCTR)){
_local3.term = _local5[_local4.UCTR];
} else {
if (((_local2) && (!((_local2.term == ""))))){
_local3.term = _local2.term;
};
};
if (_local5.hasOwnProperty(_local4.UCCT)){
_local3.content = _local5[_local4.UCCT];
};
return (_local3);
}
public function getOrganicCampaign():CampaignTracker{
var _local1:CampaignTracker;
var _local4:Array;
var _local5:OrganicReferrer;
var _local6:String;
if (((isInvalidReferrer(_referrer)) || (isFromGoogleCSE(_referrer, _config)))){
return (_local1);
};
var _local2:URL = new URL(_referrer);
var _local3 = "";
if (_local2.hostName != ""){
if (_local2.hostName.indexOf(".") > -1){
_local4 = _local2.hostName.split(".");
switch (_local4.length){
case 2:
_local3 = _local4[0];
break;
case 3:
_local3 = _local4[1];
break;
};
};
};
if (_config.organic.match(_local3)){
_local5 = _config.organic.getReferrerByName(_local3);
_local6 = _config.organic.getKeywordValue(_local5, _local2.search);
_local1 = new CampaignTracker();
_local1.source = _local5.engine;
_local1.name = "(organic)";
_local1.medium = "organic";
_local1.term = _local6;
};
return (_local1);
}
public function getDirectCampaign():CampaignTracker{
var _local1:CampaignTracker = new CampaignTracker();
_local1.source = "(direct)";
_local1.name = "(direct)";
_local1.medium = "(none)";
return (_local1);
}
public function isIgnoredKeyword(_arg1:CampaignTracker):Boolean{
if (((_arg1) && ((_arg1.medium == "organic")))){
return (_config.organic.isIgnoredKeyword(_arg1.term));
};
return (false);
}
public function isIgnoredReferral(_arg1:CampaignTracker):Boolean{
if (((_arg1) && ((_arg1.medium == "referral")))){
return (_config.organic.isIgnoredReferral(_arg1.source));
};
return (false);
}
public function isValid(_arg1:CampaignTracker):Boolean{
if (((_arg1) && (_arg1.isValid()))){
return (true);
};
return (false);
}
public function getReferrerCampaign():CampaignTracker{
var _local1:CampaignTracker;
if (((isInvalidReferrer(_referrer)) || (isFromGoogleCSE(_referrer, _config)))){
return (_local1);
};
var _local2:URL = new URL(_referrer);
var _local3:String = _local2.hostName;
var _local4:String = _local2.path;
if (_local3.indexOf("www.") == 0){
_local3 = _local3.substr(4);
};
_local1 = new CampaignTracker();
_local1.source = _local3;
_local1.name = "(referral)";
_local1.medium = "referral";
_local1.content = _local4;
return (_local1);
}
public static function isInvalidReferrer(_arg1:String):Boolean{
var _local2:URL;
if ((((((_arg1 == "")) || ((_arg1 == "-")))) || ((_arg1 == "0")))){
return (true);
};
if (_arg1.indexOf("://") > -1){
_local2 = new URL(_arg1);
if ((((_local2.protocol == Protocols.file)) || ((_local2.protocol == Protocols.none)))){
return (true);
};
};
return (false);
}
public static function isFromGoogleCSE(_arg1:String, _arg2:Configuration):Boolean{
var _local3:URL = new URL(_arg1);
if (_local3.hostName.indexOf(_arg2.google) > -1){
if (_local3.search.indexOf((_arg2.googleSearchParam + "=")) > -1){
if (_local3.path == ("/" + _arg2.googleCsePath)){
return (true);
};
};
};
return (false);
}
}
}//package com.google.analytics.campaign
Section 29
//CampaignTracker (com.google.analytics.campaign.CampaignTracker)
package com.google.analytics.campaign {
import com.google.analytics.utils.*;
public class CampaignTracker {
public var content:String;
public var source:String;
public var clickId:String;
public var name:String;
public var term:String;
public var medium:String;
public var id:String;
public function CampaignTracker(_arg1:String="", _arg2:String="", _arg3:String="", _arg4:String="", _arg5:String="", _arg6:String="", _arg7:String=""){
this.id = _arg1;
this.source = _arg2;
this.clickId = _arg3;
this.name = _arg4;
this.medium = _arg5;
this.term = _arg6;
this.content = _arg7;
}
public function isValid():Boolean{
if (((((!((id == ""))) || (!((source == ""))))) || (!((clickId == ""))))){
return (true);
};
return (false);
}
public function toTrackerString():String{
var _local1:Array = [];
_addIfNotEmpty(_local1, "utmcsr=", source);
_addIfNotEmpty(_local1, "utmccn=", name);
_addIfNotEmpty(_local1, "utmcmd=", medium);
_addIfNotEmpty(_local1, "utmctr=", term);
_addIfNotEmpty(_local1, "utmcct=", content);
_addIfNotEmpty(_local1, "utmcid=", id);
_addIfNotEmpty(_local1, "utmgclid=", clickId);
return (_local1.join(CampaignManager.trackingDelimiter));
}
private function _addIfNotEmpty(_arg1:Array, _arg2:String, _arg3:String):void{
if (_arg3 != ""){
_arg3 = _arg3.split("+").join("%20");
_arg3 = _arg3.split(" ").join("%20");
_arg1.push((_arg2 + _arg3));
};
}
public function fromTrackerString(_arg1:String):void{
var _local2:String = _arg1.split(CampaignManager.trackingDelimiter).join("&");
var _local3:Variables = new Variables(_local2);
if (_local3.hasOwnProperty("utmcid")){
this.id = _local3["utmcid"];
};
if (_local3.hasOwnProperty("utmcsr")){
this.source = _local3["utmcsr"];
};
if (_local3.hasOwnProperty("utmccn")){
this.name = _local3["utmccn"];
};
if (_local3.hasOwnProperty("utmcmd")){
this.medium = _local3["utmcmd"];
};
if (_local3.hasOwnProperty("utmctr")){
this.term = _local3["utmctr"];
};
if (_local3.hasOwnProperty("utmcct")){
this.content = _local3["utmcct"];
};
if (_local3.hasOwnProperty("utmgclid")){
this.clickId = _local3["utmgclid"];
};
}
}
}//package com.google.analytics.campaign
Section 30
//BrowserInfo (com.google.analytics.core.BrowserInfo)
package com.google.analytics.core {
import com.google.analytics.v4.*;
import com.google.analytics.utils.*;
public class BrowserInfo {
private var _config:Configuration;
private var _info:Environment;
public function BrowserInfo(_arg1:Configuration, _arg2:Environment){
_config = _arg1;
_info = _arg2;
}
public function get utmul():String{
return (_info.language.toLowerCase());
}
public function get utmje():String{
return ("0");
}
public function toURLString():String{
var _local1:Variables = toVariables();
return (_local1.toString());
}
public function get utmsr():String{
return (((_info.screenWidth + "x") + _info.screenHeight));
}
public function get utmfl():String{
var _local1:Version;
if (_config.detectFlash){
_local1 = _info.flashVersion;
return (((((_local1.major + ".") + _local1.minor) + " r") + _local1.build));
};
return ("-");
}
public function get utmcs():String{
return (_info.languageEncoding);
}
public function toVariables():Variables{
var _local1:Variables = new Variables();
_local1.URIencode = true;
_local1.utmcs = utmcs;
_local1.utmsr = utmsr;
_local1.utmsc = utmsc;
_local1.utmul = utmul;
_local1.utmje = utmje;
_local1.utmfl = utmfl;
return (_local1);
}
public function get utmsc():String{
return ((_info.screenColorDepth + "-bit"));
}
}
}//package com.google.analytics.core
Section 31
//Buffer (com.google.analytics.core.Buffer)
package com.google.analytics.core {
import flash.events.*;
import com.google.analytics.v4.*;
import com.google.analytics.debug.*;
import flash.net.*;
import com.google.analytics.data.*;
public dynamic class Buffer {
private var _SO:SharedObject;
private var _OBJ:Object;
private var _utma:UTMA;
private var _utmb:UTMB;
private var _utmc:UTMC;
private var _debug:DebugConfiguration;
private var _utmk:UTMK;
private var _config:Configuration;
private var _utmv:UTMV;
private var _utmz:UTMZ;
private var _volatile:Boolean;
public function Buffer(_arg1:Configuration, _arg2:DebugConfiguration, _arg3:Boolean=false, _arg4:Object=null){
var _local5:Boolean;
var _local6:String;
super();
_config = _arg1;
_debug = _arg2;
UTMB.defaultTimespan = _config.sessionTimeout;
UTMZ.defaultTimespan = _config.conversionTimeout;
if (!_arg3){
_SO = SharedObject.getLocal(_config.cookieName, _config.cookiePath);
_local5 = false;
if (_SO.data.utma){
if (!hasUTMA()){
_createUMTA();
};
_utma.fromSharedObject(_SO.data.utma);
if (_debug.verbose){
_debug.info(("found: " + _utma.toString(true)), VisualDebugMode.geek);
};
if (_utma.isExpired()){
if (_debug.verbose){
_debug.warning("UTMA has expired", VisualDebugMode.advanced);
};
_clearUTMA();
_local5 = true;
};
};
if (_SO.data.utmb){
if (!hasUTMB()){
_createUMTB();
};
_utmb.fromSharedObject(_SO.data.utmb);
if (_debug.verbose){
_debug.info(("found: " + _utmb.toString(true)), VisualDebugMode.geek);
};
if (_utmb.isExpired()){
if (_debug.verbose){
_debug.warning("UTMB has expired", VisualDebugMode.advanced);
};
_clearUTMB();
_local5 = true;
};
};
if (_SO.data.utmc){
delete _SO.data.utmc;
_local5 = true;
};
if (_SO.data.utmk){
if (!hasUTMK()){
_createUMTK();
};
_utmk.fromSharedObject(_SO.data.utmk);
if (_debug.verbose){
_debug.info(("found: " + _utmk.toString()), VisualDebugMode.geek);
};
};
if (_SO.data.utmv){
if (!hasUTMV()){
_createUMTV();
};
_utmv.fromSharedObject(_SO.data.utmv);
if (_debug.verbose){
_debug.info(("found: " + _utmv.toString(true)), VisualDebugMode.geek);
};
if (_utmv.isExpired()){
if (_debug.verbose){
_debug.warning("UTMV has expired", VisualDebugMode.advanced);
};
_clearUTMV();
_local5 = true;
};
};
if (_SO.data.utmz){
if (!hasUTMZ()){
_createUMTZ();
};
_utmz.fromSharedObject(_SO.data.utmz);
if (_debug.verbose){
_debug.info(("found: " + _utmz.toString(true)), VisualDebugMode.geek);
};
if (_utmz.isExpired()){
if (_debug.verbose){
_debug.warning("UTMZ has expired", VisualDebugMode.advanced);
};
_clearUTMZ();
_local5 = true;
};
};
if (_local5){
save();
};
} else {
_OBJ = new Object();
if (_arg4){
for (_local6 in _arg4) {
_OBJ[_local6] = _arg4[_local6];
};
};
};
_volatile = _arg3;
}
public function clearCookies():void{
utma.reset();
utmb.reset();
utmc.reset();
utmz.reset();
utmv.reset();
utmk.reset();
}
public function save():void{
var flushStatus:String;
if (!isVolatile()){
flushStatus = null;
try {
flushStatus = _SO.flush();
} catch(e:Error) {
_debug.warning("Error...Could not write SharedObject to disk");
};
switch (flushStatus){
case SharedObjectFlushStatus.PENDING:
_debug.info("Requesting permission to save object...");
_SO.addEventListener(NetStatusEvent.NET_STATUS, _onFlushStatus);
break;
case SharedObjectFlushStatus.FLUSHED:
_debug.info("Value flushed to disk.");
break;
};
};
}
public function get utmv():UTMV{
if (!hasUTMV()){
_createUMTV();
};
return (_utmv);
}
public function get utmz():UTMZ{
if (!hasUTMZ()){
_createUMTZ();
};
return (_utmz);
}
public function hasUTMA():Boolean{
if (_utma){
return (true);
};
return (false);
}
public function hasUTMB():Boolean{
if (_utmb){
return (true);
};
return (false);
}
public function hasUTMC():Boolean{
if (_utmc){
return (true);
};
return (false);
}
public function isGenuine():Boolean{
if (!hasUTMK()){
return (true);
};
return ((utmk.hash == generateCookiesHash()));
}
public function resetCurrentSession():void{
_clearUTMB();
_clearUTMC();
save();
}
public function hasUTMK():Boolean{
if (_utmk){
return (true);
};
return (false);
}
public function generateCookiesHash():Number{
var _local1 = "";
_local1 = (_local1 + utma.valueOf());
_local1 = (_local1 + utmb.valueOf());
_local1 = (_local1 + utmc.valueOf());
_local1 = (_local1 + utmz.valueOf());
_local1 = (_local1 + utmv.valueOf());
return (Utils.generateHash(_local1));
}
private function _createUMTB():void{
_utmb = new UTMB();
_utmb.proxy = this;
}
private function _createUMTC():void{
_utmc = new UTMC();
}
private function _createUMTA():void{
_utma = new UTMA();
_utma.proxy = this;
}
public function hasUTMV():Boolean{
if (_utmv){
return (true);
};
return (false);
}
private function _createUMTK():void{
_utmk = new UTMK();
_utmk.proxy = this;
}
public function hasUTMZ():Boolean{
if (_utmz){
return (true);
};
return (false);
}
private function _createUMTV():void{
_utmv = new UTMV();
_utmv.proxy = this;
}
private function _onFlushStatus(_arg1:NetStatusEvent):void{
_debug.info("User closed permission dialog...");
switch (_arg1.info.code){
case "SharedObject.Flush.Success":
_debug.info("User granted permission -- value saved.");
break;
case "SharedObject.Flush.Failed":
_debug.info("User denied permission -- value not saved.");
break;
};
_SO.removeEventListener(NetStatusEvent.NET_STATUS, _onFlushStatus);
}
private function _createUMTZ():void{
_utmz = new UTMZ();
_utmz.proxy = this;
}
public function updateUTMA(_arg1:Number):void{
if (_debug.verbose){
_debug.info((("updateUTMA( " + _arg1) + " )"), VisualDebugMode.advanced);
};
if (!utma.isEmpty()){
if (isNaN(utma.sessionCount)){
utma.sessionCount = 1;
} else {
utma.sessionCount = (utma.sessionCount + 1);
};
utma.lastTime = utma.currentTime;
utma.currentTime = _arg1;
};
}
private function _clearUTMA():void{
_utma = null;
if (!isVolatile()){
_SO.data.utma = null;
delete _SO.data.utma;
};
}
private function _clearUTMC():void{
_utmc = null;
}
private function _clearUTMB():void{
_utmb = null;
if (!isVolatile()){
_SO.data.utmb = null;
delete _SO.data.utmb;
};
}
public function update(_arg1:String, _arg2):void{
if (isVolatile()){
_OBJ[_arg1] = _arg2;
} else {
_SO.data[_arg1] = _arg2;
};
}
private function _clearUTMZ():void{
_utmz = null;
if (!isVolatile()){
_SO.data.utmz = null;
delete _SO.data.utmz;
};
}
private function _clearUTMV():void{
_utmv = null;
if (!isVolatile()){
_SO.data.utmv = null;
delete _SO.data.utmv;
};
}
public function isVolatile():Boolean{
return (_volatile);
}
public function get utma():UTMA{
if (!hasUTMA()){
_createUMTA();
};
return (_utma);
}
public function get utmb():UTMB{
if (!hasUTMB()){
_createUMTB();
};
return (_utmb);
}
public function get utmc():UTMC{
if (!hasUTMC()){
_createUMTC();
};
return (_utmc);
}
public function get utmk():UTMK{
if (!hasUTMK()){
_createUMTK();
};
return (_utmk);
}
}
}//package com.google.analytics.core
Section 32
//DocumentInfo (com.google.analytics.core.DocumentInfo)
package com.google.analytics.core {
import com.google.analytics.v4.*;
import com.google.analytics.utils.*;
import com.google.analytics.external.*;
public class DocumentInfo {
private var _pageURL:String;
private var _utmr:String;
private var _config:Configuration;
private var _adSense:AdSenseGlobals;
private var _info:Environment;
public function DocumentInfo(_arg1:Configuration, _arg2:Environment, _arg3:String, _arg4:String=null, _arg5:AdSenseGlobals=null){
_config = _arg1;
_info = _arg2;
_utmr = _arg3;
_pageURL = _arg4;
_adSense = _arg5;
}
public function get utmr():String{
if (!_utmr){
return ("-");
};
return (_utmr);
}
public function toURLString():String{
var _local1:Variables = toVariables();
return (_local1.toString());
}
private function _renderPageURL(_arg1:String=""):String{
var _local2:String = _info.locationPath;
var _local3:String = _info.locationSearch;
if (((!(_arg1)) || ((_arg1 == "")))){
_arg1 = (_local2 + unescape(_local3));
};
return (_arg1);
}
public function get utmp():String{
return (_renderPageURL(_pageURL));
}
public function get utmhid():String{
return (String(_generateHitId()));
}
private function _generateHitId():Number{
var _local1:Number;
if (((_adSense.hid) && (!((_adSense.hid == ""))))){
_local1 = Number(_adSense.hid);
} else {
_local1 = Math.round((Math.random() * 2147483647));
_adSense.hid = String(_local1);
};
return (_local1);
}
public function toVariables():Variables{
var _local1:Variables = new Variables();
_local1.URIencode = true;
if (((_config.detectTitle) && (!((utmdt == ""))))){
_local1.utmdt = utmdt;
};
_local1.utmhid = utmhid;
_local1.utmr = utmr;
_local1.utmp = utmp;
return (_local1);
}
public function get utmdt():String{
return (_info.documentTitle);
}
}
}//package com.google.analytics.core
Section 33
//Domain (com.google.analytics.core.Domain)
package com.google.analytics.core {
import com.google.analytics.debug.*;
public class Domain {
private var _mode:DomainNameMode;
private var _debug:DebugConfiguration;
private var _name:String;
public function Domain(_arg1:DomainNameMode=null, _arg2:String="", _arg3:DebugConfiguration=null){
_debug = _arg3;
if (_arg1 == null){
_arg1 = DomainNameMode.auto;
};
_mode = _arg1;
if (_arg1 == DomainNameMode.custom){
this.name = _arg2;
} else {
_name = _arg2;
};
}
public function get mode():DomainNameMode{
return (_mode);
}
public function set mode(_arg1:DomainNameMode):void{
_mode = _arg1;
if (_mode == DomainNameMode.none){
_name = "";
};
}
public function get name():String{
return (_name);
}
public function set name(_arg1:String):void{
if (((!((_arg1.charAt(0) == "."))) && (_debug))){
_debug.warning(("missing leading period \".\", cookie will only be accessible on " + _arg1), VisualDebugMode.geek);
};
_name = _arg1;
}
}
}//package com.google.analytics.core
Section 34
//DomainNameMode (com.google.analytics.core.DomainNameMode)
package com.google.analytics.core {
public class DomainNameMode {
private var _value:int;
private var _name:String;
public static const custom:DomainNameMode = new DomainNameMode(2, "custom");
;
public static const none:DomainNameMode = new DomainNameMode(0, "none");
;
public static const auto:DomainNameMode = new DomainNameMode(1, "auto");
;
public function DomainNameMode(_arg1:int=0, _arg2:String=""){
_value = _arg1;
_name = _arg2;
}
public function valueOf():int{
return (_value);
}
public function toString():String{
return (_name);
}
}
}//package com.google.analytics.core
Section 35
//EventInfo (com.google.analytics.core.EventInfo)
package com.google.analytics.core {
import com.google.analytics.data.*;
import com.google.analytics.utils.*;
public class EventInfo {
private var _ext10:X10;
private var _isEventHit:Boolean;
private var _x10:X10;
public function EventInfo(_arg1:Boolean, _arg2:X10, _arg3:X10=null){
_isEventHit = _arg1;
_x10 = _arg2;
_ext10 = _arg3;
}
public function toURLString():String{
var _local1:Variables = toVariables();
return (_local1.toString());
}
public function get utmt():String{
return ("event");
}
public function get utme():String{
return (_x10.renderMergedUrlString(_ext10));
}
public function toVariables():Variables{
var _local1:Variables = new Variables();
_local1.URIencode = true;
if (_isEventHit){
_local1.utmt = utmt;
};
_local1.utme = utme;
return (_local1);
}
}
}//package com.google.analytics.core
Section 36
//EventTracker (com.google.analytics.core.EventTracker)
package com.google.analytics.core {
import com.google.analytics.v4.*;
public class EventTracker {
private var _parent:GoogleAnalyticsAPI;
public var name:String;
public function EventTracker(_arg1:String, _arg2:GoogleAnalyticsAPI){
this.name = _arg1;
_parent = _arg2;
}
public function trackEvent(_arg1:String, _arg2:String=null, _arg3:Number=NaN):Boolean{
return (_parent.trackEvent(name, _arg1, _arg2, _arg3));
}
}
}//package com.google.analytics.core
Section 37
//ga_internal (com.google.analytics.core.ga_internal)
package com.google.analytics.core {
public namespace ga_internal;
}//package com.google.analytics.core
Section 38
//GIFRequest (com.google.analytics.core.GIFRequest)
package com.google.analytics.core {
import flash.display.*;
import flash.events.*;
import com.google.analytics.v4.*;
import com.google.analytics.debug.*;
import flash.net.*;
import com.google.analytics.utils.*;
import flash.system.*;
public class GIFRequest {
private var _info:Environment;
private var _count:int;
private var _utmac:String;
private var _alertcount:int;
private var _debug:DebugConfiguration;
private var _lastRequest:URLRequest;
private var _buffer:Buffer;
private var _config:Configuration;
private var _requests:Array;
public function GIFRequest(_arg1:Configuration, _arg2:DebugConfiguration, _arg3:Buffer, _arg4:Environment){
_config = _arg1;
_debug = _arg2;
_buffer = _arg3;
_info = _arg4;
_count = 0;
_alertcount = 0;
_requests = [];
}
public function get utmn():String{
return ((Utils.generate32bitRandom() as String));
}
public function onIOError(_arg1:IOErrorEvent):void{
var _local2:String = _lastRequest.url;
var _local3:String = String((_requests.length - 1));
var _local4 = (("Gif Request #" + _local3) + " failed");
if (_debug.GIFRequests){
if (!_debug.verbose){
if (_local2.indexOf("?") > -1){
_local2 = _local2.split("?")[0];
};
_local2 = _shortenURL(_local2);
};
if (int(_debug.mode) > int(VisualDebugMode.basic)){
_local4 = (_local4 + ((" \"" + _local2) + "\" does not exists or is unreachable"));
};
_debug.failure(_local4);
} else {
_debug.warning(_local4);
};
_removeListeners(_arg1.target);
}
public function send(_arg1:String, _arg2:Variables=null, _arg3:Boolean=false, _arg4:Boolean=false):void{
var _local5:String;
var _local6:URLRequest;
var _local7:URLRequest;
_utmac = _arg1;
if (!_arg2){
_arg2 = new Variables();
};
_arg2.URIencode = false;
_arg2.pre = ["utmwv", "utmn", "utmhn", "utmt", "utme", "utmcs", "utmsr", "utmsc", "utmul", "utmje", "utmfl", "utmdt", "utmhid", "utmr", "utmp"];
_arg2.post = ["utmcc"];
if (_debug.verbose){
_debug.info(((("tracking: " + _buffer.utmb.trackCount) + "/") + _config.trackingLimitPerSession), VisualDebugMode.geek);
};
if ((((_buffer.utmb.trackCount < _config.trackingLimitPerSession)) || (_arg3))){
if (_arg4){
updateToken();
};
if (((((_arg3) || (!(_arg4)))) || ((_buffer.utmb.token >= 1)))){
if (((!(_arg3)) && (_arg4))){
_buffer.utmb.token = (_buffer.utmb.token - 1);
};
_buffer.utmb.trackCount = (_buffer.utmb.trackCount + 1);
if (_debug.verbose){
_debug.info(_buffer.utmb.toString(), VisualDebugMode.geek);
};
_arg2.utmwv = utmwv;
_arg2.utmn = Utils.generate32bitRandom();
if (_info.domainName != ""){
_arg2.utmhn = _info.domainName;
};
if (_config.sampleRate < 1){
_arg2.utmsp = (_config.sampleRate * 100);
};
if ((((_config.serverMode == ServerOperationMode.local)) || ((_config.serverMode == ServerOperationMode.both)))){
_local5 = _info.locationSWFPath;
if (_local5.lastIndexOf("/") > 0){
_local5 = _local5.substring(0, _local5.lastIndexOf("/"));
};
_local6 = new URLRequest();
if (_config.localGIFpath.indexOf("http") == 0){
_local6.url = _config.localGIFpath;
} else {
_local6.url = (_local5 + _config.localGIFpath);
};
_local6.url = (_local6.url + ("?" + _arg2.toString()));
if (((_debug.active) && (_debug.GIFRequests))){
_debugSend(_local6);
} else {
sendRequest(_local6);
};
};
if ((((_config.serverMode == ServerOperationMode.remote)) || ((_config.serverMode == ServerOperationMode.both)))){
_local7 = new URLRequest();
if (_info.protocol == Protocols.HTTPS){
_local7.url = _config.secureRemoteGIFpath;
} else {
if (_info.protocol == Protocols.HTTP){
_local7.url = _config.remoteGIFpath;
} else {
_local7.url = _config.remoteGIFpath;
};
};
_arg2.utmac = utmac;
_arg2.utmcc = encodeURIComponent(utmcc);
_local7.url = (_local7.url + ("?" + _arg2.toString()));
if (((_debug.active) && (_debug.GIFRequests))){
_debugSend(_local7);
} else {
sendRequest(_local7);
};
};
};
};
}
public function onSecurityError(_arg1:SecurityErrorEvent):void{
if (_debug.GIFRequests){
_debug.failure(_arg1.text);
};
}
public function get utmsp():String{
return (((_config.sampleRate * 100) as String));
}
public function get utmcc():String{
var _local1:Array = [];
if (_buffer.hasUTMA()){
_local1.push((_buffer.utma.toURLString() + ";"));
};
if (_buffer.hasUTMZ()){
_local1.push((_buffer.utmz.toURLString() + ";"));
};
if (_buffer.hasUTMV()){
_local1.push((_buffer.utmv.toURLString() + ";"));
};
return (_local1.join("+"));
}
public function get utmac():String{
return (_utmac);
}
public function get utmwv():String{
return (_config.version);
}
public function sendRequest(_arg1:URLRequest):void{
var request = _arg1;
var loader:Loader = new Loader();
loader.name = String(_count++);
var context:LoaderContext = new LoaderContext(false);
loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, onIOError);
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, onComplete);
_lastRequest = request;
_requests[loader.name] = new RequestObject(request);
try {
loader.load(request, context);
} catch(e:Error) {
_debug.failure("\"Loader.load()\" could not instanciate Gif Request");
};
}
private function _removeListeners(_arg1:Object):void{
_arg1.removeEventListener(IOErrorEvent.IO_ERROR, onIOError);
_arg1.removeEventListener(Event.COMPLETE, onComplete);
}
public function updateToken():void{
var _local2:Number;
var _local1:Number = new Date().getTime();
_local2 = ((_local1 - _buffer.utmb.lastTime) * (_config.tokenRate / 1000));
if (_debug.verbose){
_debug.info(("tokenDelta: " + _local2), VisualDebugMode.geek);
};
if (_local2 >= 1){
_buffer.utmb.token = Math.min(Math.floor((_buffer.utmb.token + _local2)), _config.bucketCapacity);
_buffer.utmb.lastTime = _local1;
if (_debug.verbose){
_debug.info(_buffer.utmb.toString(), VisualDebugMode.geek);
};
};
}
public function get utmhn():String{
return (_info.domainName);
}
private function _shortenURL(_arg1:String):String{
var _local2:Array;
if (_arg1.length > 60){
_local2 = _arg1.split("/");
while (_arg1.length > 60) {
_local2.shift();
_arg1 = ("../" + _local2.join("/"));
};
};
return (_arg1);
}
private function _debugSend(_arg1:URLRequest):void{
var _local3:String;
var _local2 = "";
switch (_debug.mode){
case VisualDebugMode.geek:
_local2 = ((("Gif Request #" + _alertcount) + ":\n") + _arg1.url);
break;
case VisualDebugMode.advanced:
_local3 = _arg1.url;
if (_local3.indexOf("?") > -1){
_local3 = _local3.split("?")[0];
};
_local3 = _shortenURL(_local3);
_local2 = (((("Send Gif Request #" + _alertcount) + ":\n") + _local3) + " ?");
break;
case VisualDebugMode.basic:
default:
_local2 = (((("Send " + _config.serverMode.toString()) + " Gif Request #") + _alertcount) + " ?");
};
_debug.alertGifRequest(_local2, _arg1, this);
_alertcount++;
}
public function onComplete(_arg1:Event):void{
var _local2:String = _arg1.target.loader.name;
_requests[_local2].complete();
var _local3 = (("Gif Request #" + _local2) + " sent");
var _local4:String = _requests[_local2].request.url;
if (_debug.GIFRequests){
if (!_debug.verbose){
if (_local4.indexOf("?") > -1){
_local4 = _local4.split("?")[0];
};
_local4 = _shortenURL(_local4);
};
if (int(_debug.mode) > int(VisualDebugMode.basic)){
_local3 = (_local3 + ((" to \"" + _local4) + "\""));
};
_debug.success(_local3);
} else {
_debug.info(_local3);
};
_removeListeners(_arg1.target);
}
}
}//package com.google.analytics.core
Section 39
//IdleTimer (com.google.analytics.core.IdleTimer)
package com.google.analytics.core {
import flash.display.*;
import flash.events.*;
import com.google.analytics.v4.*;
import com.google.analytics.debug.*;
import flash.utils.*;
public class IdleTimer {
private var _stage:Stage;
private var _loop:Timer;
private var _lastMove:int;
private var _inactivity:Number;
private var _debug:DebugConfiguration;
private var _session:Timer;
private var _buffer:Buffer;
public function IdleTimer(_arg1:Configuration, _arg2:DebugConfiguration, _arg3:DisplayObject, _arg4:Buffer){
var _local5:Number = _arg1.idleLoop;
var _local6:Number = _arg1.idleTimeout;
var _local7:Number = _arg1.sessionTimeout;
_loop = new Timer((_local5 * 1000));
_session = new Timer((_local7 * 1000), 1);
_debug = _arg2;
_stage = _arg3.stage;
_buffer = _arg4;
_lastMove = getTimer();
_inactivity = (_local6 * 1000);
_loop.addEventListener(TimerEvent.TIMER, checkForIdle);
_session.addEventListener(TimerEvent.TIMER_COMPLETE, endSession);
_stage.addEventListener(MouseEvent.MOUSE_MOVE, onMouseMove);
_debug.info(((((("delay: " + _local5) + "sec , inactivity: ") + _local6) + "sec, sessionTimeout: ") + _local7), VisualDebugMode.geek);
_loop.start();
}
private function onMouseMove(_arg1:MouseEvent):void{
_lastMove = getTimer();
if (_session.running){
_debug.info("session timer reset", VisualDebugMode.geek);
_session.reset();
};
}
public function endSession(_arg1:TimerEvent):void{
_session.removeEventListener(TimerEvent.TIMER_COMPLETE, endSession);
_debug.info("session timer end session", VisualDebugMode.geek);
_session.reset();
_buffer.resetCurrentSession();
_debug.info(_buffer.utmb.toString(), VisualDebugMode.geek);
_debug.info(_buffer.utmc.toString(), VisualDebugMode.geek);
_session.addEventListener(TimerEvent.TIMER_COMPLETE, endSession);
}
public function checkForIdle(_arg1:TimerEvent):void{
var _local2:int = getTimer();
if ((_local2 - _lastMove) >= _inactivity){
if (!_session.running){
_debug.info("session timer start", VisualDebugMode.geek);
_session.start();
};
};
}
}
}//package com.google.analytics.core
Section 40
//Organic (com.google.analytics.core.Organic)
package com.google.analytics.core {
import com.google.analytics.utils.*;
public class Organic {
private var _sourcesCache:Array;
private var _sourcesEngine:Array;
private var _ignoredKeywords:Array;
private var _ignoredReferralsCache:Object;
private var _ignoredReferrals:Array;
private var _ignoredKeywordsCache:Object;
private var _sources:Array;
public static var throwErrors:Boolean = false;
public function Organic(){
_sources = [];
_sourcesCache = [];
_sourcesEngine = [];
_ignoredReferrals = [];
_ignoredReferralsCache = {};
_ignoredKeywords = [];
_ignoredKeywordsCache = {};
}
public function isIgnoredKeyword(_arg1:String):Boolean{
if (_ignoredKeywordsCache.hasOwnProperty(_arg1)){
return (true);
};
return (false);
}
public function getKeywordValue(_arg1:OrganicReferrer, _arg2:String):String{
var _local3:String = _arg1.keyword;
return (getKeywordValueFromPath(_local3, _arg2));
}
public function isIgnoredReferral(_arg1:String):Boolean{
if (_ignoredReferralsCache.hasOwnProperty(_arg1)){
return (true);
};
return (false);
}
public function clear():void{
clearEngines();
clearIgnoredReferrals();
clearIgnoredKeywords();
}
public function get count():int{
return (_sources.length);
}
public function get ignoredKeywordsCount():int{
return (_ignoredKeywords.length);
}
public function match(_arg1:String):Boolean{
if (_arg1 == ""){
return (false);
};
_arg1 = _arg1.toLowerCase();
if (_sourcesEngine[_arg1] != undefined){
return (true);
};
return (false);
}
public function clearIgnoredKeywords():void{
_ignoredKeywords = [];
_ignoredKeywordsCache = {};
}
public function addSource(_arg1:String, _arg2:String):void{
var _local3:OrganicReferrer = new OrganicReferrer(_arg1, _arg2);
if (_sourcesCache[_local3.toString()] == undefined){
_sources.push(_local3);
_sourcesCache[_local3.toString()] = (_sources.length - 1);
if (_sourcesEngine[_local3.engine] == undefined){
_sourcesEngine[_local3.engine] = [(_sources.length - 1)];
} else {
_sourcesEngine[_local3.engine].push((_sources.length - 1));
};
} else {
if (throwErrors){
throw (new Error((_local3.toString() + " already exists, we don't add it.")));
};
};
}
public function clearEngines():void{
_sources = [];
_sourcesCache = [];
_sourcesEngine = [];
}
public function get ignoredReferralsCount():int{
return (_ignoredReferrals.length);
}
public function addIgnoredReferral(_arg1:String):void{
if (_ignoredReferralsCache[_arg1] == undefined){
_ignoredReferrals.push(_arg1);
_ignoredReferralsCache[_arg1] = (_ignoredReferrals.length - 1);
} else {
if (throwErrors){
throw (new Error((("\"" + _arg1) + "\" already exists, we don't add it.")));
};
};
}
public function clearIgnoredReferrals():void{
_ignoredReferrals = [];
_ignoredReferralsCache = {};
}
public function getReferrerByName(_arg1:String):OrganicReferrer{
var _local2:int;
if (match(_arg1)){
_local2 = _sourcesEngine[_arg1][0];
return (_sources[_local2]);
};
return (null);
}
public function addIgnoredKeyword(_arg1:String):void{
if (_ignoredKeywordsCache[_arg1] == undefined){
_ignoredKeywords.push(_arg1);
_ignoredKeywordsCache[_arg1] = (_ignoredKeywords.length - 1);
} else {
if (throwErrors){
throw (new Error((("\"" + _arg1) + "\" already exists, we don't add it.")));
};
};
}
public function get sources():Array{
return (_sources);
}
public static function getKeywordValueFromPath(_arg1:String, _arg2:String):String{
var _local3:String;
var _local4:Variables;
if (_arg2.indexOf((_arg1 + "=")) > -1){
if (_arg2.charAt(0) == "?"){
_arg2 = _arg2.substr(1);
};
_arg2 = _arg2.split("+").join("%20");
_local4 = new Variables(_arg2);
_local3 = _local4[_arg1];
};
return (_local3);
}
}
}//package com.google.analytics.core
Section 41
//OrganicReferrer (com.google.analytics.core.OrganicReferrer)
package com.google.analytics.core {
public class OrganicReferrer {
private var _engine:String;
private var _keyword:String;
public function OrganicReferrer(_arg1:String, _arg2:String){
this.engine = _arg1;
this.keyword = _arg2;
}
public function get keyword():String{
return (_keyword);
}
public function get engine():String{
return (_engine);
}
public function set engine(_arg1:String):void{
_engine = _arg1.toLowerCase();
}
public function toString():String{
return (((engine + "?") + keyword));
}
public function set keyword(_arg1:String):void{
_keyword = _arg1.toLowerCase();
}
}
}//package com.google.analytics.core
Section 42
//RequestObject (com.google.analytics.core.RequestObject)
package com.google.analytics.core {
import flash.net.*;
import flash.utils.*;
public class RequestObject {
public var start:int;
public var end:int;
public var request:URLRequest;
public function RequestObject(_arg1:URLRequest){
start = getTimer();
this.request = _arg1;
}
public function hasCompleted():Boolean{
return ((end > 0));
}
public function toString():String{
var _local1:Array = [];
_local1.push((("duration: " + duration) + "ms"));
_local1.push(("url: " + request.url));
return ((("{ " + _local1.join(", ")) + " }"));
}
public function complete():void{
end = getTimer();
}
public function get duration():int{
if (!hasCompleted()){
return (0);
};
return ((end - start));
}
}
}//package com.google.analytics.core
Section 43
//ServerOperationMode (com.google.analytics.core.ServerOperationMode)
package com.google.analytics.core {
public class ServerOperationMode {
private var _value:int;
private var _name:String;
public static const both:ServerOperationMode = new ServerOperationMode(2, "both");
;
public static const remote:ServerOperationMode = new ServerOperationMode(1, "remote");
;
public static const local:ServerOperationMode = new ServerOperationMode(0, "local");
;
public function ServerOperationMode(_arg1:int=0, _arg2:String=""){
_value = _arg1;
_name = _arg2;
}
public function valueOf():int{
return (_value);
}
public function toString():String{
return (_name);
}
}
}//package com.google.analytics.core
Section 44
//TrackerCache (com.google.analytics.core.TrackerCache)
package com.google.analytics.core {
import com.google.analytics.v4.*;
import flash.errors.*;
public class TrackerCache implements GoogleAnalyticsAPI {
public var tracker:GoogleAnalyticsAPI;
private var _ar:Array;
public static var CACHE_THROW_ERROR:Boolean;
public function TrackerCache(_arg1:GoogleAnalyticsAPI=null){
this.tracker = _arg1;
_ar = [];
}
public function size():uint{
return (_ar.length);
}
public function flush():void{
var _local1:Object;
var _local2:String;
var _local3:Array;
var _local4:int;
var _local5:int;
if (tracker == null){
return;
};
if (size() > 0){
_local4 = _ar.length;
while (_local5 < _local4) {
_local1 = _ar.shift();
_local2 = (_local1.name as String);
_local3 = (_local1.args as Array);
if (((!((_local2 == null))) && ((_local2 in tracker)))){
(tracker[_local2] as Function).apply(tracker, _local3);
};
_local5++;
};
};
}
public function enqueue(_arg1:String, ... _args):Boolean{
if (_arg1 == null){
return (false);
};
_ar.push({name:_arg1, args:_args});
return (true);
}
public function link(_arg1:String, _arg2:Boolean=false):void{
enqueue("link", _arg1, _arg2);
}
public function addOrganic(_arg1:String, _arg2:String):void{
enqueue("addOrganic", _arg1, _arg2);
}
public function setAllowLinker(_arg1:Boolean):void{
enqueue("setAllowLinker", _arg1);
}
public function trackEvent(_arg1:String, _arg2:String, _arg3:String=null, _arg4:Number=NaN):Boolean{
enqueue("trackEvent", _arg1, _arg2, _arg3, _arg4);
return (true);
}
public function getClientInfo():Boolean{
if (CACHE_THROW_ERROR){
throw (new IllegalOperationError("The tracker is not ready and you can use the 'getClientInfo' method for the moment."));
};
return (false);
}
public function trackTrans():void{
enqueue("trackTrans");
}
public function trackPageview(_arg1:String=""):void{
enqueue("trackPageview", _arg1);
}
public function setClientInfo(_arg1:Boolean):void{
enqueue("setClientInfo", _arg1);
}
public function linkByPost(_arg1:Object, _arg2:Boolean=false):void{
enqueue("linkByPost", _arg1, _arg2);
}
public function setCookieTimeout(_arg1:int):void{
enqueue("setCookieTimeout", _arg1);
}
public function isEmpty():Boolean{
return ((_ar.length == 0));
}
public function getDetectTitle():Boolean{
if (CACHE_THROW_ERROR){
throw (new IllegalOperationError("The tracker is not ready and you can use the 'getDetectTitle' method for the moment."));
};
return (false);
}
public function resetSession():void{
enqueue("resetSession");
}
public function setDetectFlash(_arg1:Boolean):void{
enqueue("setDetectFlash", _arg1);
}
public function clear():void{
_ar = [];
}
public function setCampNameKey(_arg1:String):void{
enqueue("setCampNameKey", _arg1);
}
public function addItem(_arg1:String, _arg2:String, _arg3:String, _arg4:String, _arg5:Number, _arg6:int):void{
enqueue("addItem", _arg1, _arg2, _arg3, _arg4, _arg5, _arg6);
}
public function createEventTracker(_arg1:String):EventTracker{
if (CACHE_THROW_ERROR){
throw (new IllegalOperationError("The tracker is not ready and you can use the 'createEventTracker' method for the moment."));
};
return (null);
}
public function setVar(_arg1:String):void{
enqueue("setVar", _arg1);
}
public function clearIgnoredOrganic():void{
enqueue("clearIgnoredOrganic");
}
public function setDomainName(_arg1:String):void{
enqueue("setDomainName", _arg1);
}
public function setCampSourceKey(_arg1:String):void{
enqueue("setCampSourceKey", _arg1);
}
public function addTrans(_arg1:String, _arg2:String, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:String, _arg7:String, _arg8:String):Object{
if (CACHE_THROW_ERROR){
throw (new IllegalOperationError("The tracker is not ready and you can use the 'addTrans' method for the moment."));
};
return (null);
}
public function setCampContentKey(_arg1:String):void{
enqueue("setCampContentKey", _arg1);
}
public function setLocalServerMode():void{
enqueue("setLocalServerMode");
}
public function getLocalGifPath():String{
if (CACHE_THROW_ERROR){
throw (new IllegalOperationError("The tracker is not ready and you can use the 'getLocalGifPath' method for the moment."));
};
return ("");
}
public function setAllowAnchor(_arg1:Boolean):void{
enqueue("setAllowAnchor", _arg1);
}
public function clearIgnoredRef():void{
enqueue("clearIgnoredRef");
}
public function setLocalGifPath(_arg1:String):void{
enqueue("setLocalGifPath", _arg1);
}
public function getVersion():String{
if (CACHE_THROW_ERROR){
throw (new IllegalOperationError("The tracker is not ready and you can use the 'getVersion' method for the moment."));
};
return ("");
}
public function setCookiePath(_arg1:String):void{
enqueue("setCookiePath", _arg1);
}
public function setSampleRate(_arg1:Number):void{
enqueue("setSampleRate", _arg1);
}
public function setDetectTitle(_arg1:Boolean):void{
enqueue("setDetectTitle", _arg1);
}
public function setAllowHash(_arg1:Boolean):void{
enqueue("setAllowHash", _arg1);
}
public function addIgnoredOrganic(_arg1:String):void{
enqueue("addIgnoredOrganic", _arg1);
}
public function setCampNOKey(_arg1:String):void{
enqueue("setCampNOKey", _arg1);
}
public function getServiceMode():ServerOperationMode{
if (CACHE_THROW_ERROR){
throw (new IllegalOperationError("The tracker is not ready and you can use the 'getServiceMode' method for the moment."));
};
return (null);
}
public function setLocalRemoteServerMode():void{
enqueue("setLocalRemoteServerMode");
}
public function cookiePathCopy(_arg1:String):void{
enqueue("cookiePathCopy", _arg1);
}
public function getDetectFlash():Boolean{
if (CACHE_THROW_ERROR){
throw (new IllegalOperationError("The tracker is not ready and you can use the 'getDetectFlash' method for the moment."));
};
return (false);
}
public function setCampaignTrack(_arg1:Boolean):void{
enqueue("setCampaignTrack", _arg1);
}
public function clearOrganic():void{
enqueue("clearOrganic");
}
public function setCampTermKey(_arg1:String):void{
enqueue("setCampTermKey", _arg1);
}
public function addIgnoredRef(_arg1:String):void{
enqueue("addIgnoredRef", _arg1);
}
public function setCampMediumKey(_arg1:String):void{
enqueue("setCampMediumKey", _arg1);
}
public function setSessionTimeout(_arg1:int):void{
enqueue("setSessionTimeout", _arg1);
}
public function setRemoteServerMode():void{
enqueue("setRemoteServerMode");
}
public function element(){
return (_ar[0]);
}
public function getAccount():String{
if (CACHE_THROW_ERROR){
throw (new IllegalOperationError("The tracker is not ready and you can use the 'getAccount' method for the moment."));
};
return ("");
}
}
}//package com.google.analytics.core
Section 45
//TrackerMode (com.google.analytics.core.TrackerMode)
package com.google.analytics.core {
public class TrackerMode {
public static const BRIDGE:String = "Bridge";
public static const AS3:String = "AS3";
}
}//package com.google.analytics.core
Section 46
//Utils (com.google.analytics.core.Utils)
package com.google.analytics.core {
public class Utils {
public static function trim(_arg1:String, _arg2:Boolean=false):String{
var _local5:int;
var _local6:int;
var _local7:int;
if (_arg1 == ""){
return ("");
};
var _local3:Array = [" ", "\n", "\r", "\t"];
var _local4:String = _arg1;
if (_arg2){
_local5 = 0;
while ((((_local5 < _local3.length)) && ((_local4.indexOf(_local3[_local5]) > -1)))) {
_local4 = _local4.split(_local3[_local5]).join("");
_local5++;
};
} else {
_local6 = 0;
while ((((_local6 < _local4.length)) && ((_local3.indexOf(_local4.charAt(_local6)) > -1)))) {
_local6++;
};
_local4 = _local4.substr(_local6);
_local7 = (_local4.length - 1);
while ((((_local7 >= 0)) && ((_local3.indexOf(_local4.charAt(_local7)) > -1)))) {
_local7--;
};
_local4 = _local4.substring(0, (_local7 + 1));
};
return (_local4);
}
public static function generateHash(_arg1:String):int{
var _local4:int;
var _local5:int;
var _local2 = 1;
var _local3:int;
if (((!((_arg1 == null))) && (!((_arg1 == ""))))){
_local2 = 0;
_local4 = (_arg1.length - 1);
while (_local4 >= 0) {
_local5 = _arg1.charCodeAt(_local4);
_local2 = ((((_local2 << 6) & 268435455) + _local5) + (_local5 << 14));
_local3 = (_local2 & 266338304);
if (_local3 != 0){
_local2 = (_local2 ^ (_local3 >> 21));
};
_local4--;
};
};
return (_local2);
}
public static function generate32bitRandom():int{
return (Math.round((Math.random() * 2147483647)));
}
public static function validateAccount(_arg1:String):Boolean{
var _local2:RegExp = /^UA-[0-9]*-[0-9]*$/;
return (_local2.test(_arg1));
}
}
}//package com.google.analytics.core
Section 47
//Cookie (com.google.analytics.data.Cookie)
package com.google.analytics.data {
public interface Cookie {
function fromSharedObject(_arg1:Object):void;
function toURLString():String;
function get creation():Date;
function toSharedObject():Object;
function isExpired():Boolean;
function set creation(_arg1:Date):void;
function set expiration(_arg1:Date):void;
function get expiration():Date;
}
}//package com.google.analytics.data
Section 48
//UTMA (com.google.analytics.data.UTMA)
package com.google.analytics.data {
import com.google.analytics.utils.*;
public class UTMA extends UTMCookie {
private var _sessionId:Number;
private var _domainHash:Number;
private var _firstTime:Number;
private var _currentTime:Number;
private var _lastTime:Number;
private var _sessionCount:Number;
public function UTMA(_arg1:Number=NaN, _arg2:Number=NaN, _arg3:Number=NaN, _arg4:Number=NaN, _arg5:Number=NaN, _arg6:Number=NaN){
super("utma", "__utma", ["domainHash", "sessionId", "firstTime", "lastTime", "currentTime", "sessionCount"], (Timespan.twoyears * 1000));
this.domainHash = _arg1;
this.sessionId = _arg2;
this.firstTime = _arg3;
this.lastTime = _arg4;
this.currentTime = _arg5;
this.sessionCount = _arg6;
}
public function get lastTime():Number{
return (_lastTime);
}
public function set lastTime(_arg1:Number):void{
_lastTime = _arg1;
update();
}
public function set currentTime(_arg1:Number):void{
_currentTime = _arg1;
update();
}
public function get sessionId():Number{
return (_sessionId);
}
public function get sessionCount():Number{
return (_sessionCount);
}
public function get firstTime():Number{
return (_firstTime);
}
public function get currentTime():Number{
return (_currentTime);
}
public function set domainHash(_arg1:Number):void{
_domainHash = _arg1;
update();
}
public function set sessionId(_arg1:Number):void{
_sessionId = _arg1;
update();
}
public function set sessionCount(_arg1:Number):void{
_sessionCount = _arg1;
update();
}
public function get domainHash():Number{
return (_domainHash);
}
public function set firstTime(_arg1:Number):void{
_firstTime = _arg1;
update();
}
}
}//package com.google.analytics.data
Section 49
//UTMB (com.google.analytics.data.UTMB)
package com.google.analytics.data {
import com.google.analytics.utils.*;
public class UTMB extends UTMCookie {
private var _trackCount:Number;
private var _lastTime:Number;
private var _domainHash:Number;
private var _token:Number;
public static var defaultTimespan:Number = Timespan.thirtyminutes;
public function UTMB(_arg1:Number=NaN, _arg2:Number=NaN, _arg3:Number=NaN, _arg4:Number=NaN){
super("utmb", "__utmb", ["domainHash", "trackCount", "token", "lastTime"], (defaultTimespan * 1000));
this.domainHash = _arg1;
this.trackCount = _arg2;
this.token = _arg3;
this.lastTime = _arg4;
}
public function set token(_arg1:Number):void{
_token = _arg1;
update();
}
public function set trackCount(_arg1:Number):void{
_trackCount = _arg1;
update();
}
public function get lastTime():Number{
return (_lastTime);
}
public function set domainHash(_arg1:Number):void{
_domainHash = _arg1;
update();
}
public function set lastTime(_arg1:Number):void{
_lastTime = _arg1;
update();
}
public function get domainHash():Number{
return (_domainHash);
}
public function get token():Number{
return (_token);
}
public function get trackCount():Number{
return (_trackCount);
}
}
}//package com.google.analytics.data
Section 50
//UTMC (com.google.analytics.data.UTMC)
package com.google.analytics.data {
public class UTMC extends UTMCookie {
private var _domainHash:Number;
public function UTMC(_arg1:Number=NaN){
super("utmc", "__utmc", ["domainHash"]);
this.domainHash = _arg1;
}
public function get domainHash():Number{
return (_domainHash);
}
public function set domainHash(_arg1:Number):void{
_domainHash = _arg1;
update();
}
}
}//package com.google.analytics.data
Section 51
//UTMCookie (com.google.analytics.data.UTMCookie)
package com.google.analytics.data {
import com.google.analytics.core.*;
public class UTMCookie implements Cookie {
protected var inURL:String;
protected var name:String;
private var _creation:Date;
private var _expiration:Date;
public var proxy:Buffer;
protected var fields:Array;
private var _timespan:Number;
public function UTMCookie(_arg1:String, _arg2:String, _arg3:Array, _arg4:Number=0){
this.name = _arg1;
this.inURL = _arg2;
this.fields = _arg3;
_timestamp(_arg4);
}
public function isEmpty():Boolean{
var _local2:String;
var _local1:int;
var _local3:int;
while (_local3 < fields.length) {
_local2 = fields[_local3];
if ((((this[_local2] is Number)) && (isNaN(this[_local2])))){
_local1++;
} else {
if ((((this[_local2] is String)) && ((this[_local2] == "")))){
_local1++;
};
};
_local3++;
};
if (_local1 == fields.length){
return (true);
};
return (false);
}
public function resetTimestamp(_arg1:Number=NaN):void{
if (!isNaN(_arg1)){
_timespan = _arg1;
};
_creation = null;
_expiration = null;
_timestamp(_timespan);
}
protected function update():void{
resetTimestamp();
if (proxy){
proxy.update(name, toSharedObject());
};
}
public function reset():void{
var _local1:String;
var _local2:int;
while (_local2 < fields.length) {
_local1 = fields[_local2];
if ((this[_local1] is Number)){
this[_local1] = NaN;
} else {
if ((this[_local1] is String)){
this[_local1] = "";
};
};
_local2++;
};
resetTimestamp();
update();
}
public function fromSharedObject(_arg1:Object):void{
var _local2:String;
var _local3:int = fields.length;
var _local4:int;
while (_local4 < _local3) {
_local2 = fields[_local4];
if (_arg1[_local2]){
this[_local2] = _arg1[_local2];
};
_local4++;
};
if (_arg1.creation){
this.creation = _arg1.creation;
};
if (_arg1.expiration){
this.expiration = _arg1.expiration;
};
}
private function _timestamp(_arg1:Number):void{
creation = new Date();
_timespan = _arg1;
if (_arg1 > 0){
expiration = new Date((creation.valueOf() + _arg1));
};
}
public function isExpired():Boolean{
var _local1:Date = new Date();
var _local2:Number = (expiration.valueOf() - _local1.valueOf());
if (_local2 <= 0){
return (true);
};
return (false);
}
public function set expiration(_arg1:Date):void{
_expiration = _arg1;
}
public function get creation():Date{
return (_creation);
}
public function valueOf():String{
var _local2:String;
var _local3:*;
var _local1:Array = [];
var _local4:int;
while (_local4 < fields.length) {
_local2 = fields[_local4];
_local3 = this[_local2];
if ((_local3 is String)){
if (_local3 == ""){
_local3 = "-";
_local1.push(_local3);
} else {
_local1.push(_local3);
};
} else {
if ((_local3 is Number)){
if (_local3 == 0){
_local1.push(_local3);
} else {
if (isNaN(_local3)){
_local3 = "-";
_local1.push(_local3);
} else {
_local1.push(_local3);
};
};
};
};
_local4++;
};
return (("" + _local1.join(".")));
}
public function toURLString():String{
return (((inURL + "=") + valueOf()));
}
public function get expiration():Date{
if (_expiration){
return (_expiration);
};
return (new Date((new Date().valueOf() + 1000)));
}
public function toSharedObject():Object{
var _local2:String;
var _local3:*;
var _local1:Object = {};
var _local4:int;
for (;_local4 < fields.length;_local4++) {
_local2 = fields[_local4];
_local3 = this[_local2];
if ((_local3 is String)){
_local1[_local2] = _local3;
} else {
if (_local3 == 0){
_local1[_local2] = _local3;
} else {
if (isNaN(_local3)){
continue;
} else {
_local1[_local2] = _local3;
};
};
};
};
_local1.creation = creation;
_local1.expiration = expiration;
return (_local1);
}
public function toString(_arg1:Boolean=false):String{
var _local3:String;
var _local4:*;
var _local2:Array = [];
var _local5:int = fields.length;
var _local6:int;
for (;_local6 < _local5;_local6++) {
_local3 = fields[_local6];
_local4 = this[_local3];
if ((_local4 is String)){
_local2.push((((_local3 + ": \"") + _local4) + "\""));
} else {
if (_local4 == 0){
_local2.push(((_local3 + ": ") + _local4));
} else {
if (isNaN(_local4)){
continue;
} else {
_local2.push(((_local3 + ": ") + _local4));
};
};
};
};
var _local7 = (((name.toUpperCase() + " {") + _local2.join(", ")) + "}");
if (_arg1){
_local7 = (_local7 + (((" creation:" + creation) + ", expiration:") + expiration));
};
return (_local7);
}
public function set creation(_arg1:Date):void{
_creation = _arg1;
}
}
}//package com.google.analytics.data
Section 52
//UTMK (com.google.analytics.data.UTMK)
package com.google.analytics.data {
public class UTMK extends UTMCookie {
private var _hash:Number;
public function UTMK(_arg1:Number=NaN){
super("utmk", "__utmk", ["hash"]);
this.hash = _arg1;
}
public function set hash(_arg1:Number):void{
_hash = _arg1;
update();
}
public function get hash():Number{
return (_hash);
}
}
}//package com.google.analytics.data
Section 53
//UTMV (com.google.analytics.data.UTMV)
package com.google.analytics.data {
import com.google.analytics.utils.*;
public class UTMV extends UTMCookie {
private var _domainHash:Number;
private var _value:String;
public function UTMV(_arg1:Number=NaN, _arg2:String=""){
super("utmv", "__utmv", ["domainHash", "value"], (Timespan.twoyears * 1000));
this.domainHash = _arg1;
this.value = _arg2;
}
override public function toURLString():String{
return (((inURL + "=") + encodeURI(valueOf())));
}
public function get value():String{
return (_value);
}
public function get domainHash():Number{
return (_domainHash);
}
public function set domainHash(_arg1:Number):void{
_domainHash = _arg1;
update();
}
public function set value(_arg1:String):void{
_value = _arg1;
update();
}
}
}//package com.google.analytics.data
Section 54
//UTMZ (com.google.analytics.data.UTMZ)
package com.google.analytics.data {
import com.google.analytics.utils.*;
public class UTMZ extends UTMCookie {
private var _campaignTracking:String;
private var _campaignCreation:Number;
private var _responseCount:Number;
private var _domainHash:Number;
private var _campaignSessions:Number;
public static var defaultTimespan:Number = Timespan.sixmonths;
public function UTMZ(_arg1:Number=NaN, _arg2:Number=NaN, _arg3:Number=NaN, _arg4:Number=NaN, _arg5:String=""){
super("utmz", "__utmz", ["domainHash", "campaignCreation", "campaignSessions", "responseCount", "campaignTracking"], (defaultTimespan * 1000));
this.domainHash = _arg1;
this.campaignCreation = _arg2;
this.campaignSessions = _arg3;
this.responseCount = _arg4;
this.campaignTracking = _arg5;
}
public function set responseCount(_arg1:Number):void{
_responseCount = _arg1;
update();
}
public function set domainHash(_arg1:Number):void{
_domainHash = _arg1;
update();
}
public function set campaignCreation(_arg1:Number):void{
_campaignCreation = _arg1;
update();
}
public function get campaignTracking():String{
return (_campaignTracking);
}
public function get campaignSessions():Number{
return (_campaignSessions);
}
public function get domainHash():Number{
return (_domainHash);
}
public function get responseCount():Number{
return (_responseCount);
}
public function get campaignCreation():Number{
return (_campaignCreation);
}
public function set campaignSessions(_arg1:Number):void{
_campaignSessions = _arg1;
update();
}
public function set campaignTracking(_arg1:String):void{
_campaignTracking = _arg1;
update();
}
}
}//package com.google.analytics.data
Section 55
//X10 (com.google.analytics.data.X10)
package com.google.analytics.data {
public class X10 {
private var _delimEnd:String;// = ")"
private var _minimum:int;
private var _delimSet:String;// = "*"
private var _escapeChar:String;// = "'"
private var _delimBegin:String;// = "("
private var _delimNumValue:String;// = "!"
private var _key:String;// = "k"
private var _set:Array;
private var _hasData:int;
private var _escapeCharMap:Object;
private var _projectData:Object;
private var _value:String;// = "v"
public function X10(){
_set = [_key, _value];
super();
_projectData = {};
_escapeCharMap = {};
_escapeCharMap[_escapeChar] = "'0";
_escapeCharMap[_delimEnd] = "'1";
_escapeCharMap[_delimSet] = "'2";
_escapeCharMap[_delimNumValue] = "'3";
_minimum = 1;
}
private function _setInternal(_arg1:Number, _arg2:String, _arg3:Number, _arg4:String):void{
if (!hasProject(_arg1)){
_projectData[_arg1] = {};
};
if (_projectData[_arg1][_arg2] == undefined){
_projectData[_arg1][_arg2] = [];
};
_projectData[_arg1][_arg2][_arg3] = _arg4;
_hasData = (_hasData + 1);
}
private function _renderProject(_arg1:Object):String{
var _local4:int;
var _local5:Array;
var _local2 = "";
var _local3:Boolean;
var _local6:int = _set.length;
_local4 = 0;
while (_local4 < _local6) {
_local5 = _arg1[_set[_local4]];
if (_local5){
if (_local3){
_local2 = (_local2 + _set[_local4]);
};
_local2 = (_local2 + _renderDataType(_local5));
_local3 = false;
} else {
_local3 = true;
};
_local4++;
};
return (_local2);
}
public function hasProject(_arg1:Number):Boolean{
return (_projectData[_arg1]);
}
public function clearKey(_arg1:Number):void{
_clearInternal(_arg1, _key);
}
private function _renderDataType(_arg1:Array):String{
var _local3:String;
var _local4:int;
var _local2:Array = [];
_local4 = 0;
while (_local4 < _arg1.length) {
if (_arg1[_local4] != undefined){
_local3 = "";
if (((!((_local4 == _minimum))) && ((_arg1[(_local4 - 1)] == undefined)))){
_local3 = (_local3 + _local4.toString());
_local3 = (_local3 + _delimNumValue);
};
_local3 = (_local3 + _escapeExtensibleValue(_arg1[_local4]));
_local2.push(_local3);
};
_local4++;
};
return (((_delimBegin + _local2.join(_delimSet)) + _delimEnd));
}
public function getKey(_arg1:Number, _arg2:Number):String{
return ((_getInternal(_arg1, _key, _arg2) as String));
}
public function hasData():Boolean{
return ((_hasData > 0));
}
public function renderMergedUrlString(_arg1:X10=null):String{
var _local3:String;
if (!_arg1){
return (renderUrlString());
};
var _local2:Array = [_arg1.renderUrlString()];
for (_local3 in _projectData) {
if (((hasProject(Number(_local3))) && (!(_arg1.hasProject(Number(_local3)))))){
_local2.push((_local3 + _renderProject(_projectData[_local3])));
};
};
return (_local2.join(""));
}
public function setValue(_arg1:Number, _arg2:Number, _arg3:Number):Boolean{
if (((((!((Math.round(_arg3) == _arg3))) || (isNaN(_arg3)))) || ((_arg3 == Infinity)))){
return (false);
};
_setInternal(_arg1, _value, _arg2, _arg3.toString());
return (true);
}
public function renderUrlString():String{
var _local2:String;
var _local1:Array = [];
for (_local2 in _projectData) {
if (hasProject(Number(_local2))){
_local1.push((_local2 + _renderProject(_projectData[_local2])));
};
};
return (_local1.join(""));
}
private function _getInternal(_arg1:Number, _arg2:String, _arg3:Number):Object{
if (((hasProject(_arg1)) && (!((_projectData[_arg1][_arg2] == undefined))))){
return (_projectData[_arg1][_arg2][_arg3]);
};
return (undefined);
}
public function setKey(_arg1:Number, _arg2:Number, _arg3:String):Boolean{
_setInternal(_arg1, _key, _arg2, _arg3);
return (true);
}
public function clearValue(_arg1:Number):void{
_clearInternal(_arg1, _value);
}
private function _clearInternal(_arg1:Number, _arg2:String):void{
var _local3:Boolean;
var _local4:int;
var _local5:int;
if (((hasProject(_arg1)) && (!((_projectData[_arg1][_arg2] == undefined))))){
_projectData[_arg1][_arg2] = undefined;
_local3 = true;
_local5 = _set.length;
_local4 = 0;
while (_local4 < _local5) {
if (_projectData[_arg1][_set[_local4]] != undefined){
_local3 = false;
break;
};
_local4++;
};
if (_local3){
_projectData[_arg1] = undefined;
_hasData = (_hasData - 1);
};
};
}
public function getValue(_arg1:Number, _arg2:Number){
var _local3:* = _getInternal(_arg1, _value, _arg2);
if (_local3 == null){
return (null);
};
return (Number(_local3));
}
private function _escapeExtensibleValue(_arg1:String):String{
var _local3:int;
var _local4:String;
var _local5:String;
var _local2 = "";
_local3 = 0;
while (_local3 < _arg1.length) {
_local4 = _arg1.charAt(_local3);
_local5 = _escapeCharMap[_local4];
if (_local5){
_local2 = (_local2 + _local5);
} else {
_local2 = (_local2 + _local4);
};
_local3++;
};
return (_local2);
}
}
}//package com.google.analytics.data
Section 56
//_Style (com.google.analytics.debug._Style)
package com.google.analytics.debug {
import flash.text.*;
import flash.net.*;
public class _Style {
public var failureColor:uint;
public var borderColor:uint;
public var backgroundColor:uint;
private var _sheet:StyleSheet;
public var roundedCorner:uint;
public var warningColor:uint;
public var infoColor:uint;
public var alertColor:uint;
public var successColor:uint;
private var _loader:URLLoader;
private var _defaultSheet:String;
public function _Style(){
_sheet = new StyleSheet();
_loader = new URLLoader();
_init();
}
private function _parseSheet(_arg1:String):void{
_sheet.parseCSS(_arg1);
}
public function get sheet():StyleSheet{
return (_sheet);
}
private function _init():void{
_defaultSheet = "";
_defaultSheet = (_defaultSheet + "a{text-decoration: underline;}\n");
_defaultSheet = (_defaultSheet + ".uiLabel{color: #000000;font-family: Arial;font-size: 12;margin-left: 2;margin-right: 2;}\n");
_defaultSheet = (_defaultSheet + ".uiWarning{color: #ffffff;font-family: Arial;font-size: 14;font-weight: bold;margin-left: 6;margin-right: 6;}\n");
_defaultSheet = (_defaultSheet + ".uiAlert{color: #ffffff;font-family: Arial;font-size: 14;font-weight: bold;margin-left: 6;margin-right: 6;}\n");
_defaultSheet = (_defaultSheet + ".uiInfo{color: #000000;font-family: Arial;font-size: 14;font-weight: bold;margin-left: 6;margin-right: 6;}\n");
_defaultSheet = (_defaultSheet + ".uiSuccess{color: #ffffff;font-family: Arial;font-size: 12;font-weight: bold;margin-left: 6;margin-right: 6;}\n");
_defaultSheet = (_defaultSheet + ".uiFailure{color: #ffffff;font-family: Arial;font-size: 12;font-weight: bold;margin-left: 6;margin-right: 6;}\n");
_defaultSheet = (_defaultSheet + ".uiAlertAction{color: #ffffff;text-align: center;font-family: Arial;font-size: 12;font-weight: bold;margin-left: 6;margin-right: 6;}\n");
_defaultSheet = (_defaultSheet + ".uiAlertTitle{color: #ffffff;font-family: Arial;font-size: 16;font-weight: bold;margin-left: 6;margin-right: 6;}\n");
_defaultSheet = (_defaultSheet + "\n");
roundedCorner = 6;
backgroundColor = 0xCCCCCC;
borderColor = 0x555555;
infoColor = 16777113;
alertColor = 0xFFCC00;
warningColor = 0xCC0000;
successColor = 0xFF00;
failureColor = 0xFF0000;
_parseSheet(_defaultSheet);
}
}
}//package com.google.analytics.debug
Section 57
//Alert (com.google.analytics.debug.Alert)
package com.google.analytics.debug {
import flash.events.*;
public class Alert extends Label {
public var autoClose:Boolean;// = true
public var actionOnNextLine:Boolean;// = true
private var _actions:Array;
public function Alert(_arg1:String, _arg2:Array, _arg3:String="uiAlert", _arg4:uint=0, _arg5:Align=null, _arg6:Boolean=false, _arg7:Boolean=true){
if (_arg4 == 0){
_arg4 = Style.alertColor;
};
if (_arg5 == null){
_arg5 = Align.center;
};
super(_arg1, _arg3, _arg4, _arg5, _arg6);
this.selectable = true;
super.mouseChildren = true;
this.buttonMode = true;
this.mouseEnabled = true;
this.useHandCursor = true;
this.actionOnNextLine = _arg7;
_actions = [];
var _local8:int;
while (_local8 < _arg2.length) {
_arg2[_local8].container = this;
_actions.push(_arg2[_local8]);
_local8++;
};
}
private function _defineActions():void{
var _local3:AlertAction;
var _local1 = "";
if (actionOnNextLine){
_local1 = (_local1 + "\n");
} else {
_local1 = (_local1 + " |");
};
_local1 = (_local1 + " ");
var _local2:Array = [];
var _local4:int;
while (_local4 < _actions.length) {
_local3 = _actions[_local4];
_local2.push((((("<a href=\"event:" + _local3.activator) + "\">") + _local3.name) + "</a>"));
_local4++;
};
_local1 = (_local1 + _local2.join(" | "));
appendText(_local1, "uiAlertAction");
}
protected function isValidAction(_arg1:String):Boolean{
var _local2:int;
while (_local2 < _actions.length) {
if (_arg1 == _actions[_local2].activator){
return (true);
};
_local2++;
};
return (false);
}
override protected function layout():void{
super.layout();
_defineActions();
}
protected function getAction(_arg1:String):AlertAction{
var _local2:int;
while (_local2 < _actions.length) {
if (_arg1 == _actions[_local2].activator){
return (_actions[_local2]);
};
_local2++;
};
return (null);
}
protected function spaces(_arg1:int):String{
var _local2 = "";
var _local3 = " ";
var _local4:int;
while (_local4 < (_arg1 + 1)) {
_local2 = (_local2 + _local3);
_local4++;
};
return (_local2);
}
override public function onLink(_arg1:TextEvent):void{
var _local2:AlertAction;
if (isValidAction(_arg1.text)){
_local2 = getAction(_arg1.text);
if (_local2){
_local2.execute();
};
};
if (autoClose){
close();
};
}
public function close():void{
if (parent != null){
parent.removeChild(this);
};
}
}
}//package com.google.analytics.debug
Section 58
//AlertAction (com.google.analytics.debug.AlertAction)
package com.google.analytics.debug {
public class AlertAction {
public var container:Alert;
private var _callback;
public var activator:String;
public var name:String;
public function AlertAction(_arg1:String, _arg2:String, _arg3){
this.name = _arg1;
this.activator = _arg2;
_callback = _arg3;
}
public function execute():void{
if (_callback){
if ((_callback is Function)){
(_callback as Function)();
} else {
if ((_callback is String)){
var _local1 = container;
_local1[_callback]();
};
};
};
}
}
}//package com.google.analytics.debug
Section 59
//Align (com.google.analytics.debug.Align)
package com.google.analytics.debug {
public class Align {
private var _value:int;
private var _name:String;
public static const bottomRight:Align = new Align(18, "bottomRight");
;
public static const right:Align = new Align(16, "right");
;
public static const left:Align = new Align(32, "left");
;
public static const topRight:Align = new Align(17, "topRight");
;
public static const bottom:Align = new Align(2, "bottom");
;
public static const bottomLeft:Align = new Align(34, "bottomLeft");
;
public static const topLeft:Align = new Align(33, "topLeft");
;
public static const center:Align = new Align(0x0100, "center");
;
public static const none:Align = new Align(0, "none");
;
public static const top:Align = new Align(1, "top");
;
public function Align(_arg1:int=0, _arg2:String=""){
_value = _arg1;
_name = _arg2;
}
public function valueOf():int{
return (_value);
}
public function toString():String{
return (_name);
}
}
}//package com.google.analytics.debug
Section 60
//Background (com.google.analytics.debug.Background)
package com.google.analytics.debug {
import flash.display.*;
public class Background {
public static function drawRounded(_arg1, _arg2:Graphics, _arg3:uint=0, _arg4:uint=0):void{
var _local5:uint;
var _local6:uint;
var _local7:uint = Style.roundedCorner;
if ((((_arg3 > 0)) && ((_arg4 > 0)))){
_local5 = _arg3;
_local6 = _arg4;
} else {
_local5 = _arg1.width;
_local6 = _arg1.height;
};
if (((_arg1.stickToEdge) && (!((_arg1.alignement == Align.none))))){
switch (_arg1.alignement){
case Align.top:
_arg2.drawRoundRectComplex(0, 0, _local5, _local6, 0, 0, _local7, _local7);
break;
case Align.topLeft:
_arg2.drawRoundRectComplex(0, 0, _local5, _local6, 0, 0, 0, _local7);
break;
case Align.topRight:
_arg2.drawRoundRectComplex(0, 0, _local5, _local6, 0, 0, _local7, 0);
break;
case Align.bottom:
_arg2.drawRoundRectComplex(0, 0, _local5, _local6, _local7, _local7, 0, 0);
break;
case Align.bottomLeft:
_arg2.drawRoundRectComplex(0, 0, _local5, _local6, 0, _local7, 0, 0);
break;
case Align.bottomRight:
_arg2.drawRoundRectComplex(0, 0, _local5, _local6, _local7, 0, 0, 0);
break;
case Align.left:
_arg2.drawRoundRectComplex(0, 0, _local5, _local6, 0, _local7, 0, _local7);
break;
case Align.right:
_arg2.drawRoundRectComplex(0, 0, _local5, _local6, _local7, 0, _local7, 0);
break;
case Align.center:
_arg2.drawRoundRect(0, 0, _local5, _local6, _local7, _local7);
break;
};
} else {
_arg2.drawRoundRect(0, 0, _local5, _local6, _local7, _local7);
};
}
}
}//package com.google.analytics.debug
Section 61
//Debug (com.google.analytics.debug.Debug)
package com.google.analytics.debug {
import flash.events.*;
import flash.ui.*;
public class Debug extends Label {
private var _lines:Array;
private var _preferredForcedWidth:uint;// = 540
private var _linediff:int;// = 0
public var maxLines:uint;// = 16
public static var count:uint = 0;
public function Debug(_arg1:uint=0, _arg2:Align=null, _arg3:Boolean=false){
if (_arg2 == null){
_arg2 = Align.bottom;
};
super("", "uiLabel", _arg1, _arg2, _arg3);
this.name = ("Debug" + count++);
_lines = [];
selectable = true;
addEventListener(KeyboardEvent.KEY_DOWN, onKey);
}
public function writeBold(_arg1:String):void{
write(_arg1, true);
}
private function _getLinesToDisplay(_arg1:int=0):Array{
var _local2:Array;
var _local3:uint;
var _local4:uint;
if ((_lines.length - 1) > maxLines){
if ((_linediff <= 0)){
_linediff = (_linediff + _arg1);
} else {
if ((((_linediff > 0)) && ((_arg1 < 0)))){
_linediff = (_linediff + _arg1);
};
};
_local3 = ((_lines.length - maxLines) + _linediff);
_local4 = (_local3 + maxLines);
_local2 = _lines.slice(_local3, _local4);
} else {
_local2 = _lines;
};
return (_local2);
}
private function onKey(_arg1:KeyboardEvent=null):void{
var _local2:Array;
switch (_arg1.keyCode){
case Keyboard.DOWN:
_local2 = _getLinesToDisplay(1);
break;
case Keyboard.UP:
_local2 = _getLinesToDisplay(-1);
break;
default:
_local2 = null;
};
if (_local2 == null){
return;
};
text = _local2.join("\n");
}
override public function get forcedWidth():uint{
if (this.parent){
if (UISprite(this.parent).forcedWidth > _preferredForcedWidth){
return (_preferredForcedWidth);
};
return (UISprite(this.parent).forcedWidth);
//unresolved jump
};
return (super.forcedWidth);
}
public function write(_arg1:String, _arg2:Boolean=false):void{
var _local3:Array;
if (_arg1.indexOf("") > -1){
_local3 = _arg1.split("\n");
} else {
_local3 = [_arg1];
};
var _local4 = "";
var _local5 = "";
if (_arg2){
_local4 = "<b>";
_local5 = "</b>";
};
var _local6:int;
while (_local6 < _local3.length) {
_lines.push(((_local4 + _local3[_local6]) + _local5));
_local6++;
};
var _local7:Array = _getLinesToDisplay();
text = _local7.join("\n");
}
public function close():void{
dispose();
}
override protected function dispose():void{
removeEventListener(KeyboardEvent.KEY_DOWN, onKey);
super.dispose();
}
}
}//package com.google.analytics.debug
Section 62
//DebugConfiguration (com.google.analytics.debug.DebugConfiguration)
package com.google.analytics.debug {
import com.google.analytics.core.*;
import flash.net.*;
import flash.utils.*;
import flash.ui.*;
public class DebugConfiguration {
public var showHideKey:Number;
private var _mode:VisualDebugMode;
private var _verbose:Boolean;// = false
public var destroyKey:Number;
public var GIFRequests:Boolean;// = false
public var showInfos:Boolean;// = true
public var infoTimeout:Number;// = 1000
public var minimizedOnStart:Boolean;// = false
private var _active:Boolean;// = false
public var traceOutput:Boolean;// = false
public var layout:ILayout;
public var warningTimeout:Number;// = 1500
public var javascript:Boolean;// = false
public var showWarnings:Boolean;// = true
private var _visualInitialized:Boolean;// = false
public function DebugConfiguration(){
_mode = VisualDebugMode.basic;
showHideKey = Keyboard.SPACE;
destroyKey = Keyboard.BACKSPACE;
super();
}
public function get verbose():Boolean{
return (_verbose);
}
public function set verbose(_arg1:Boolean):void{
_verbose = _arg1;
}
public function set mode(_arg1):void{
if ((_arg1 is String)){
switch (_arg1){
case "geek":
_arg1 = VisualDebugMode.geek;
break;
case "advanced":
_arg1 = VisualDebugMode.advanced;
break;
case "basic":
default:
_arg1 = VisualDebugMode.basic;
};
};
_mode = _arg1;
}
public function success(_arg1:String):void{
if (layout){
layout.createSuccessAlert(_arg1);
};
if (traceOutput){
trace((("[+] " + _arg1) + " !!"));
};
}
public function get active():Boolean{
return (_active);
}
private function _initializeVisual():void{
if (layout){
layout.init();
_visualInitialized = true;
};
}
private function _destroyVisual():void{
if (((layout) && (_visualInitialized))){
layout.destroy();
};
}
public function warning(_arg1:String, _arg2:VisualDebugMode=null):void{
if (_filter(_arg2)){
return;
};
if (((layout) && (showWarnings))){
layout.createWarning(_arg1);
};
if (traceOutput){
trace((("## " + _arg1) + " ##"));
};
}
private function _filter(_arg1:VisualDebugMode=null):Boolean{
return (((_arg1) && ((int(_arg1) >= int(this.mode)))));
}
public function failure(_arg1:String):void{
if (layout){
layout.createFailureAlert(_arg1);
};
if (traceOutput){
trace((("[-] " + _arg1) + " !!"));
};
}
public function get mode(){
return (_mode);
}
public function set active(_arg1:Boolean):void{
_active = _arg1;
if (_active){
_initializeVisual();
} else {
_destroyVisual();
};
}
protected function trace(_arg1:String):void{
var _local7:Array;
var _local8:int;
var _local2:Array = [];
var _local3 = "";
var _local4 = "";
if (this.mode == VisualDebugMode.geek){
_local3 = (getTimer() + " - ");
_local4 = (new Array(_local3.length).join(" ") + " ");
};
if (_arg1.indexOf("\n") > -1){
_local7 = _arg1.split("\n");
_local8 = 0;
while (_local8 < _local7.length) {
if (_local7[_local8] == ""){
} else {
if (_local8 == 0){
_local2.push((_local3 + _local7[_local8]));
} else {
_local2.push((_local4 + _local7[_local8]));
};
};
_local8++;
};
} else {
_local2.push((_local3 + _arg1));
};
var _local5:int = _local2.length;
var _local6:int;
while (_local6 < _local5) {
trace(_local2[_local6]);
_local6++;
};
}
public function alert(_arg1:String):void{
if (layout){
layout.createAlert(_arg1);
};
if (traceOutput){
trace((("!! " + _arg1) + " !!"));
};
}
public function info(_arg1:String, _arg2:VisualDebugMode=null):void{
if (_filter(_arg2)){
return;
};
if (((layout) && (showInfos))){
layout.createInfo(_arg1);
};
if (traceOutput){
trace(_arg1);
};
}
public function alertGifRequest(_arg1:String, _arg2:URLRequest, _arg3:GIFRequest):void{
if (layout){
layout.createGIFRequestAlert(_arg1, _arg2, _arg3);
};
if (traceOutput){
trace(((">> " + _arg1) + " <<"));
};
}
}
}//package com.google.analytics.debug
Section 63
//FailureAlert (com.google.analytics.debug.FailureAlert)
package com.google.analytics.debug {
public class FailureAlert extends Alert {
public function FailureAlert(_arg1:DebugConfiguration, _arg2:String, _arg3:Array){
var _local4:Align = Align.bottomLeft;
var _local5:Boolean;
var _local6:Boolean;
if (_arg1.verbose){
_arg2 = ((("<u><span class=\"uiAlertTitle\">Failure</span>" + spaces(18)) + "</u>\n\n") + _arg2);
_local4 = Align.center;
_local5 = false;
_local6 = true;
};
super(_arg2, _arg3, "uiFailure", Style.failureColor, _local4, _local5, _local6);
}
}
}//package com.google.analytics.debug
Section 64
//GIFRequestAlert (com.google.analytics.debug.GIFRequestAlert)
package com.google.analytics.debug {
public class GIFRequestAlert extends Alert {
public function GIFRequestAlert(_arg1:String, _arg2:Array){
super(_arg1, _arg2);
}
}
}//package com.google.analytics.debug
Section 65
//ILayout (com.google.analytics.debug.ILayout)
package com.google.analytics.debug {
import flash.display.*;
import com.google.analytics.core.*;
import flash.net.*;
public interface ILayout {
function createAlert(_arg1:String):void;
function addToStage(_arg1:DisplayObject):void;
function createGIFRequestAlert(_arg1:String, _arg2:URLRequest, _arg3:GIFRequest):void;
function createWarning(_arg1:String):void;
function createPanel(_arg1:String, _arg2:uint, _arg3:uint):void;
function createInfo(_arg1:String):void;
function createFailureAlert(_arg1:String):void;
function addToPanel(_arg1:String, _arg2:DisplayObject):void;
function init():void;
function createSuccessAlert(_arg1:String):void;
function createVisualDebug():void;
function destroy():void;
function bringToFront(_arg1:DisplayObject):void;
function isAvailable():Boolean;
}
}//package com.google.analytics.debug
Section 66
//Info (com.google.analytics.debug.Info)
package com.google.analytics.debug {
import flash.events.*;
import flash.utils.*;
public class Info extends Label {
private var _timer:Timer;
public function Info(_arg1:String="", _arg2:uint=3000){
super(_arg1, "uiInfo", Style.infoColor, Align.top, true);
if (_arg2 > 0){
_timer = new Timer(_arg2, 1);
_timer.start();
_timer.addEventListener(TimerEvent.TIMER_COMPLETE, onComplete, false, 0, true);
};
}
public function close():void{
if (parent != null){
parent.removeChild(this);
};
}
override public function onLink(_arg1:TextEvent):void{
switch (_arg1.text){
case "hide":
close();
break;
};
}
public function onComplete(_arg1:TimerEvent):void{
close();
}
}
}//package com.google.analytics.debug
Section 67
//Label (com.google.analytics.debug.Label)
package com.google.analytics.debug {
import flash.display.*;
import flash.events.*;
import flash.text.*;
public class Label extends UISprite {
private var _color:uint;
private var _background:Shape;
private var _textField:TextField;
public var stickToEdge:Boolean;
private var _text:String;
protected var selectable:Boolean;
private var _tag:String;
public static var count:uint = 0;
public function Label(_arg1:String="", _arg2:String="uiLabel", _arg3:uint=0, _arg4:Align=null, _arg5:Boolean=false){
this.name = ("Label" + count++);
selectable = false;
_background = new Shape();
_textField = new TextField();
_text = _arg1;
_tag = _arg2;
if (_arg4 == null){
_arg4 = Align.none;
};
this.alignement = _arg4;
this.stickToEdge = _arg5;
if (_arg3 == 0){
_arg3 = Style.backgroundColor;
};
_color = _arg3;
_textField.addEventListener(TextEvent.LINK, onLink);
}
public function get tag():String{
return (_tag);
}
private function _draw():void{
var _local1:Graphics = _background.graphics;
_local1.clear();
_local1.beginFill(_color);
var _local2:uint = _textField.width;
var _local3:uint = _textField.height;
if (forcedWidth > 0){
_local2 = forcedWidth;
};
Background.drawRounded(this, _local1, _local2, _local3);
_local1.endFill();
}
public function get text():String{
return (_textField.text);
}
public function appendText(_arg1:String, _arg2:String=""):void{
if (_arg1 == ""){
return;
};
if (_arg2 == ""){
_arg2 = tag;
};
_textField.htmlText = (_textField.htmlText + (((("<span class=\"" + _arg2) + "\">") + _arg1) + "</span>"));
_text = (_text + _arg1);
_draw();
resize();
}
public function set text(_arg1:String):void{
if (_arg1 == ""){
_arg1 = _text;
};
_textField.htmlText = (((("<span class=\"" + tag) + "\">") + _arg1) + "</span>");
_text = _arg1;
_draw();
resize();
}
override protected function layout():void{
_textField.type = TextFieldType.DYNAMIC;
_textField.autoSize = TextFieldAutoSize.LEFT;
_textField.background = false;
_textField.selectable = selectable;
_textField.multiline = true;
_textField.styleSheet = Style.sheet;
this.text = _text;
addChild(_background);
addChild(_textField);
}
public function set tag(_arg1:String):void{
_tag = _arg1;
text = "";
}
public function onLink(_arg1:TextEvent):void{
}
override protected function dispose():void{
_textField.removeEventListener(TextEvent.LINK, onLink);
super.dispose();
}
}
}//package com.google.analytics.debug
Section 68
//Layout (com.google.analytics.debug.Layout)
package com.google.analytics.debug {
import flash.display.*;
import flash.events.*;
import com.google.analytics.core.*;
import flash.net.*;
import com.google.analytics.*;
public class Layout implements ILayout {
private var _display:DisplayObject;
private var _infoQueue:Array;
private var _maxCharPerLine:int;// = 85
private var _hasInfo:Boolean;
private var _warningQueue:Array;
private var _hasDebug:Boolean;
private var _hasWarning:Boolean;
private var _mainPanel:Panel;
private var _GRAlertQueue:Array;
private var _debug:DebugConfiguration;
public var visualDebug:Debug;
private var _hasGRAlert:Boolean;
public function Layout(_arg1:DebugConfiguration, _arg2:DisplayObject){
_display = _arg2;
_debug = _arg1;
_hasWarning = false;
_hasInfo = false;
_hasDebug = false;
_hasGRAlert = false;
_warningQueue = [];
_infoQueue = [];
_GRAlertQueue = [];
}
private function onKey(_arg1:KeyboardEvent=null):void{
switch (_arg1.keyCode){
case _debug.showHideKey:
_mainPanel.visible = !(_mainPanel.visible);
break;
case _debug.destroyKey:
destroy();
break;
};
}
public function createWarning(_arg1:String):void{
if (((_hasWarning) || (!(isAvailable())))){
_warningQueue.push(_arg1);
return;
};
_arg1 = _filterMaxChars(_arg1);
_hasWarning = true;
var _local2:Warning = new Warning(_arg1, _debug.warningTimeout);
addToPanel("analytics", _local2);
_local2.addEventListener(Event.REMOVED_FROM_STAGE, _clearWarning, false, 0, true);
if (_hasDebug){
visualDebug.writeBold(_arg1);
};
}
public function bringToFront(_arg1:DisplayObject):void{
_display.stage.setChildIndex(_arg1, (_display.stage.numChildren - 1));
}
public function createFailureAlert(_arg1:String):void{
var _local2:AlertAction;
if (_debug.verbose){
_arg1 = _filterMaxChars(_arg1);
_local2 = new AlertAction("Close", "close", "close");
} else {
_local2 = new AlertAction("X", "close", "close");
};
var _local3:Alert = new FailureAlert(_debug, _arg1, [_local2]);
addToPanel("analytics", _local3);
if (_hasDebug){
if (_debug.verbose){
_arg1 = _arg1.split("\n").join("");
_arg1 = _filterMaxChars(_arg1, 66);
};
visualDebug.writeBold(_arg1);
};
}
public function init():void{
var _local1 = 10;
var _local2:uint = (_display.stage.stageWidth - (_local1 * 2));
var _local3:uint = (_display.stage.stageHeight - (_local1 * 2));
var _local4:Panel = new Panel("analytics", _local2, _local3);
_local4.alignement = Align.top;
_local4.stickToEdge = false;
_local4.title = ("Google Analytics v" + GATracker.version);
_mainPanel = _local4;
addToStage(_local4);
bringToFront(_local4);
if (_debug.minimizedOnStart){
_mainPanel.onToggle();
};
createVisualDebug();
_display.stage.addEventListener(KeyboardEvent.KEY_DOWN, onKey, false, 0, true);
}
public function addToPanel(_arg1:String, _arg2:DisplayObject):void{
var _local4:Panel;
var _local3:DisplayObject = _display.stage.getChildByName(_arg1);
if (_local3){
_local4 = (_local3 as Panel);
_local4.addData(_arg2);
} else {
trace((("panel \"" + _arg1) + "\" not found"));
};
}
private function _clearInfo(_arg1:Event):void{
_hasInfo = false;
if (_infoQueue.length > 0){
createInfo(_infoQueue.shift());
};
}
private function _filterMaxChars(_arg1:String, _arg2:int=0):String{
var _local6:String;
var _local3 = "\n";
var _local4:Array = [];
var _local5:Array = _arg1.split(_local3);
if (_arg2 == 0){
_arg2 = _maxCharPerLine;
};
var _local7:int;
while (_local7 < _local5.length) {
_local6 = _local5[_local7];
while (_local6.length > _arg2) {
_local4.push(_local6.substr(0, _arg2));
_local6 = _local6.substring(_arg2);
};
_local4.push(_local6);
_local7++;
};
return (_local4.join(_local3));
}
private function _clearGRAlert(_arg1:Event):void{
_hasGRAlert = false;
if (_GRAlertQueue.length > 0){
createGIFRequestAlert.apply(this, _GRAlertQueue.shift());
};
}
public function createSuccessAlert(_arg1:String):void{
var _local2:AlertAction;
if (_debug.verbose){
_arg1 = _filterMaxChars(_arg1);
_local2 = new AlertAction("Close", "close", "close");
} else {
_local2 = new AlertAction("X", "close", "close");
};
var _local3:Alert = new SuccessAlert(_debug, _arg1, [_local2]);
addToPanel("analytics", _local3);
if (_hasDebug){
if (_debug.verbose){
_arg1 = _arg1.split("\n").join("");
_arg1 = _filterMaxChars(_arg1, 66);
};
visualDebug.writeBold(_arg1);
};
}
public function isAvailable():Boolean{
return (!((_display.stage == null)));
}
public function createAlert(_arg1:String):void{
_arg1 = _filterMaxChars(_arg1);
var _local2:Alert = new Alert(_arg1, [new AlertAction("Close", "close", "close")]);
addToPanel("analytics", _local2);
if (_hasDebug){
visualDebug.writeBold(_arg1);
};
}
public function createInfo(_arg1:String):void{
if (((_hasInfo) || (!(isAvailable())))){
_infoQueue.push(_arg1);
return;
};
_arg1 = _filterMaxChars(_arg1);
_hasInfo = true;
var _local2:Info = new Info(_arg1, _debug.infoTimeout);
addToPanel("analytics", _local2);
_local2.addEventListener(Event.REMOVED_FROM_STAGE, _clearInfo, false, 0, true);
if (_hasDebug){
visualDebug.write(_arg1);
};
}
public function createGIFRequestAlert(_arg1:String, _arg2:URLRequest, _arg3:GIFRequest):void{
var message = _arg1;
var request = _arg2;
var ref = _arg3;
if (_hasGRAlert){
_GRAlertQueue.push([message, request, ref]);
return;
};
_hasGRAlert = true;
var f:Function = function ():void{
ref.sendRequest(request);
};
message = _filterMaxChars(message);
var gra:GIFRequestAlert = new GIFRequestAlert(message, [new AlertAction("OK", "ok", f), new AlertAction("Cancel", "cancel", "close")]);
addToPanel("analytics", gra);
gra.addEventListener(Event.REMOVED_FROM_STAGE, _clearGRAlert, false, 0, true);
if (_hasDebug){
if (_debug.verbose){
message = message.split("\n").join("");
message = _filterMaxChars(message, 66);
};
visualDebug.write(message);
};
}
public function createVisualDebug():void{
if (!visualDebug){
visualDebug = new Debug();
visualDebug.alignement = Align.bottom;
visualDebug.stickToEdge = true;
addToPanel("analytics", visualDebug);
_hasDebug = true;
};
}
public function addToStage(_arg1:DisplayObject):void{
_display.stage.addChild(_arg1);
}
private function _clearWarning(_arg1:Event):void{
_hasWarning = false;
if (_warningQueue.length > 0){
createWarning(_warningQueue.shift());
};
}
public function createPanel(_arg1:String, _arg2:uint, _arg3:uint):void{
var _local4:Panel = new Panel(_arg1, _arg2, _arg3);
_local4.alignement = Align.center;
_local4.stickToEdge = false;
addToStage(_local4);
bringToFront(_local4);
}
public function destroy():void{
_mainPanel.close();
_debug.layout = null;
}
}
}//package com.google.analytics.debug
Section 69
//Margin (com.google.analytics.debug.Margin)
package com.google.analytics.debug {
public class Margin {
public var top:int;
public var left:int;
public var bottom:int;
public var right:int;
public function Margin(_arg1:int=0, _arg2:int=0, _arg3:int=0, _arg4:int=0){
this.top = _arg1;
this.bottom = _arg2;
this.left = _arg3;
this.right = _arg4;
}
}
}//package com.google.analytics.debug
Section 70
//Panel (com.google.analytics.debug.Panel)
package com.google.analytics.debug {
import flash.display.*;
import flash.events.*;
public class Panel extends UISprite {
private var _savedH:uint;
private var _data:UISprite;
private var _mask:Sprite;
private var _background:Shape;
private var _savedW:uint;
private var _stickToEdge:Boolean;
private var _border:Shape;
private var _borderColor:uint;
protected var baseAlpha:Number;
private var _backgroundColor:uint;
private var _title:Label;
private var _colapsed:Boolean;
private var _name:String;
public function Panel(_arg1:String, _arg2:uint, _arg3:uint, _arg4:uint=0, _arg5:uint=0, _arg6:Number=0.3, _arg7:Align=null, _arg8:Boolean=false){
_name = _arg1;
this.name = _arg1;
this.mouseEnabled = false;
_colapsed = false;
forcedWidth = _arg2;
forcedHeight = _arg3;
this.baseAlpha = _arg6;
_background = new Shape();
_data = new UISprite();
_data.forcedWidth = _arg2;
_data.forcedHeight = _arg3;
_data.mouseEnabled = false;
_title = new Label(_arg1, "uiLabel", 0xFFFFFF, Align.topLeft, _arg8);
_title.buttonMode = true;
_title.margin.top = 0.6;
_title.margin.left = 0.6;
_title.addEventListener(MouseEvent.CLICK, onToggle);
_title.mouseChildren = false;
_border = new Shape();
_mask = new Sprite();
_mask.useHandCursor = false;
_mask.mouseEnabled = false;
_mask.mouseChildren = false;
if (_arg7 == null){
_arg7 = Align.none;
};
this.alignement = _arg7;
this.stickToEdge = _arg8;
if (_arg4 == 0){
_arg4 = Style.backgroundColor;
};
_backgroundColor = _arg4;
if (_arg5 == 0){
_arg5 = Style.borderColor;
};
_borderColor = _arg5;
}
public function get stickToEdge():Boolean{
return (_stickToEdge);
}
public function onToggle(_arg1:MouseEvent=null):void{
if (_colapsed){
_data.visible = true;
} else {
_data.visible = false;
};
_colapsed = !(_colapsed);
_update();
resize();
}
public function set stickToEdge(_arg1:Boolean):void{
_stickToEdge = _arg1;
_title.stickToEdge = _arg1;
}
override protected function dispose():void{
_title.removeEventListener(MouseEvent.CLICK, onToggle);
super.dispose();
}
private function _draw():void{
var _local1:uint;
var _local2:uint;
if (((_savedW) && (_savedH))){
forcedWidth = _savedW;
forcedHeight = _savedH;
};
if (!_colapsed){
_local1 = forcedWidth;
_local2 = forcedHeight;
} else {
_local1 = _title.width;
_local2 = _title.height;
_savedW = forcedWidth;
_savedH = forcedHeight;
forcedWidth = _local1;
forcedHeight = _local2;
};
var _local3:Graphics = _background.graphics;
_local3.clear();
_local3.beginFill(_backgroundColor);
Background.drawRounded(this, _local3, _local1, _local2);
_local3.endFill();
var _local4:Graphics = _data.graphics;
_local4.clear();
_local4.beginFill(_backgroundColor, 0);
Background.drawRounded(this, _local4, _local1, _local2);
_local4.endFill();
var _local5:Graphics = _border.graphics;
_local5.clear();
_local5.lineStyle(0.1, _borderColor);
Background.drawRounded(this, _local5, _local1, _local2);
_local5.endFill();
var _local6:Graphics = _mask.graphics;
_local6.clear();
_local6.beginFill(_backgroundColor);
Background.drawRounded(this, _local6, (_local1 + 1), (_local2 + 1));
_local6.endFill();
}
public function get title():String{
return (_title.text);
}
private function _update():void{
_draw();
if (baseAlpha < 1){
_background.alpha = baseAlpha;
_border.alpha = baseAlpha;
};
}
public function addData(_arg1:DisplayObject):void{
_data.addChild(_arg1);
}
override protected function layout():void{
_update();
addChild(_background);
addChild(_data);
addChild(_title);
addChild(_border);
addChild(_mask);
mask = _mask;
}
public function set title(_arg1:String):void{
_title.text = _arg1;
}
public function close():void{
dispose();
if (parent != null){
parent.removeChild(this);
};
}
}
}//package com.google.analytics.debug
Section 71
//Style (com.google.analytics.debug.Style)
package com.google.analytics.debug {
public const Style:_Style = new _Style();
}//package com.google.analytics.debug
Section 72
//SuccessAlert (com.google.analytics.debug.SuccessAlert)
package com.google.analytics.debug {
public class SuccessAlert extends Alert {
public function SuccessAlert(_arg1:DebugConfiguration, _arg2:String, _arg3:Array){
var _local4:Align = Align.bottomLeft;
var _local5:Boolean;
var _local6:Boolean;
if (_arg1.verbose){
_arg2 = ((("<u><span class=\"uiAlertTitle\">Success</span>" + spaces(18)) + "</u>\n\n") + _arg2);
_local4 = Align.center;
_local5 = false;
_local6 = true;
};
super(_arg2, _arg3, "uiSuccess", Style.successColor, _local4, _local5, _local6);
}
}
}//package com.google.analytics.debug
Section 73
//UISprite (com.google.analytics.debug.UISprite)
package com.google.analytics.debug {
import flash.display.*;
import flash.events.*;
public class UISprite extends Sprite {
private var _forcedWidth:uint;
public var margin:Margin;
protected var alignTarget:DisplayObject;
protected var listenResize:Boolean;
public var alignement:Align;
private var _forcedHeight:uint;
public function UISprite(_arg1:DisplayObject=null){
listenResize = false;
alignement = Align.none;
this.alignTarget = _arg1;
margin = new Margin();
addEventListener(Event.ADDED_TO_STAGE, _onAddedToStage);
addEventListener(Event.REMOVED_FROM_STAGE, _onRemovedFromStage);
}
public function get forcedHeight():uint{
if (_forcedHeight){
return (_forcedHeight);
};
return (height);
}
private function _onAddedToStage(_arg1:Event):void{
layout();
resize();
}
protected function dispose():void{
var _local1:DisplayObject;
var _local2:int;
while (_local2 < numChildren) {
_local1 = getChildAt(_local2);
if (_local1){
removeChild(_local1);
};
_local2++;
};
}
public function set forcedHeight(_arg1:uint):void{
_forcedHeight = _arg1;
}
public function set forcedWidth(_arg1:uint):void{
_forcedWidth = _arg1;
}
protected function layout():void{
}
public function get forcedWidth():uint{
if (_forcedWidth){
return (_forcedWidth);
};
return (width);
}
public function alignTo(_arg1:Align, _arg2:DisplayObject=null):void{
var _local3:uint;
var _local4:uint;
var _local5:uint;
var _local6:uint;
var _local7:UISprite;
if (_arg2 == null){
if ((parent is Stage)){
_arg2 = this.stage;
} else {
_arg2 = parent;
};
};
if (_arg2 == this.stage){
if (this.stage == null){
return;
};
_local3 = this.stage.stageHeight;
_local4 = this.stage.stageWidth;
_local5 = 0;
_local6 = 0;
} else {
_local7 = (_arg2 as UISprite);
if (_local7.forcedHeight){
_local3 = _local7.forcedHeight;
} else {
_local3 = _local7.height;
};
if (_local7.forcedWidth){
_local4 = _local7.forcedWidth;
} else {
_local4 = _local7.width;
};
_local5 = 0;
_local6 = 0;
};
switch (_arg1){
case Align.top:
x = ((_local4 / 2) - (forcedWidth / 2));
y = (_local6 + margin.top);
break;
case Align.bottom:
x = ((_local4 / 2) - (forcedWidth / 2));
y = (((_local6 + _local3) - forcedHeight) - margin.bottom);
break;
case Align.left:
x = (_local5 + margin.left);
y = ((_local3 / 2) - (forcedHeight / 2));
break;
case Align.right:
x = (((_local5 + _local4) - forcedWidth) - margin.right);
y = ((_local3 / 2) - (forcedHeight / 2));
break;
case Align.center:
x = ((_local4 / 2) - (forcedWidth / 2));
y = ((_local3 / 2) - (forcedHeight / 2));
break;
case Align.topLeft:
x = (_local5 + margin.left);
y = (_local6 + margin.top);
break;
case Align.topRight:
x = (((_local5 + _local4) - forcedWidth) - margin.right);
y = (_local6 + margin.top);
break;
case Align.bottomLeft:
x = (_local5 + margin.left);
y = (((_local6 + _local3) - forcedHeight) - margin.bottom);
break;
case Align.bottomRight:
x = (((_local5 + _local4) - forcedWidth) - margin.right);
y = (((_local6 + _local3) - forcedHeight) - margin.bottom);
break;
};
if (((!(listenResize)) && (!((_arg1 == Align.none))))){
_arg2.addEventListener(Event.RESIZE, onResize, false, 0, true);
listenResize = true;
};
this.alignement = _arg1;
this.alignTarget = _arg2;
}
private function _onRemovedFromStage(_arg1:Event):void{
removeEventListener(Event.ADDED_TO_STAGE, _onAddedToStage);
removeEventListener(Event.REMOVED_FROM_STAGE, _onRemovedFromStage);
dispose();
}
public function resize():void{
if (alignement != Align.none){
alignTo(alignement, alignTarget);
};
}
protected function onResize(_arg1:Event):void{
resize();
}
}
}//package com.google.analytics.debug
Section 74
//Warning (com.google.analytics.debug.Warning)
package com.google.analytics.debug {
import flash.events.*;
import flash.utils.*;
public class Warning extends Label {
private var _timer:Timer;
public function Warning(_arg1:String="", _arg2:uint=3000){
super(_arg1, "uiWarning", Style.warningColor, Align.top, false);
margin.top = 32;
if (_arg2 > 0){
_timer = new Timer(_arg2, 1);
_timer.start();
_timer.addEventListener(TimerEvent.TIMER_COMPLETE, onComplete, false, 0, true);
};
}
public function close():void{
if (parent != null){
parent.removeChild(this);
};
}
override public function onLink(_arg1:TextEvent):void{
switch (_arg1.text){
case "hide":
close();
break;
};
}
public function onComplete(_arg1:TimerEvent):void{
close();
}
}
}//package com.google.analytics.debug
Section 75
//VisualDebugMode (com.google.analytics.debug.VisualDebugMode)
package com.google.analytics.debug {
public class VisualDebugMode {
private var _value:int;
private var _name:String;
public static const advanced:VisualDebugMode = new VisualDebugMode(1, "advanced");
;
public static const geek:VisualDebugMode = new VisualDebugMode(2, "geek");
;
public static const basic:VisualDebugMode = new VisualDebugMode(0, "basic");
;
public function VisualDebugMode(_arg1:int=0, _arg2:String=""){
_value = _arg1;
_name = _arg2;
}
public function valueOf():int{
return (_value);
}
public function toString():String{
return (_name);
}
}
}//package com.google.analytics.debug
Section 76
//AnalyticsEvent (com.google.analytics.events.AnalyticsEvent)
package com.google.analytics.events {
import flash.events.*;
import com.google.analytics.*;
public class AnalyticsEvent extends Event {
public var tracker:AnalyticsTracker;
public static const READY:String = "ready";
public function AnalyticsEvent(_arg1:String, _arg2:AnalyticsTracker, _arg3:Boolean=false, _arg4:Boolean=false){
super(_arg1, _arg3, _arg4);
this.tracker = _arg2;
}
override public function clone():Event{
return (new AnalyticsEvent(type, tracker, bubbles, cancelable));
}
}
}//package com.google.analytics.events
Section 77
//AdSenseGlobals (com.google.analytics.external.AdSenseGlobals)
package com.google.analytics.external {
import com.google.analytics.debug.*;
public class AdSenseGlobals extends JavascriptProxy {
private var _gaGlobalVerified:Boolean;// = false
public static var gaGlobal_js:XML = <script>
<![CDATA[
function()
{
try
{
gaGlobal
}
catch(e)
{
gaGlobal = {} ;
}
}
]]>
</script>
;
public function AdSenseGlobals(_arg1:DebugConfiguration){
super(_arg1);
}
public function set vid(_arg1:String):void{
if (!isAvailable()){
return;
};
_verify();
setProperty("gaGlobal.vid", _arg1);
}
public function get hid():String{
if (!isAvailable()){
return (null);
};
_verify();
return (getProperty("gaGlobal.hid"));
}
public function set hid(_arg1:String):void{
if (!isAvailable()){
return;
};
_verify();
setProperty("gaGlobal.hid", _arg1);
}
public function get dh():String{
if (!isAvailable()){
return (null);
};
_verify();
return (getProperty("gaGlobal.dh"));
}
public function get sid():String{
if (!isAvailable()){
return (null);
};
_verify();
return (getProperty("gaGlobal.sid"));
}
public function get vid():String{
if (!isAvailable()){
return (null);
};
_verify();
return (getProperty("gaGlobal.vid"));
}
private function _verify():void{
if (!_gaGlobalVerified){
executeBlock(gaGlobal_js);
_gaGlobalVerified = true;
};
}
public function set sid(_arg1:String):void{
if (!isAvailable()){
return;
};
_verify();
setProperty("gaGlobal.sid", _arg1);
}
public function get gaGlobal():Object{
if (!isAvailable()){
return (null);
};
_verify();
return (getProperty("gaGlobal"));
}
}
}//package com.google.analytics.external
Section 78
//HTMLDOM (com.google.analytics.external.HTMLDOM)
package com.google.analytics.external {
import com.google.analytics.debug.*;
public class HTMLDOM extends JavascriptProxy {
private var _referrer:String;
private var _language:String;
private var _host:String;
private var _pathname:String;
private var _location:String;
private var _search:String;
private var _characterSet:String;
private var _title:String;
private var _protocol:String;
private var _colorDepth:String;
public static var cache_properties_js:XML = <script>
<![CDATA[
function()
{
var obj = {};
obj.host = document.location.host;
obj.language = navigator.language ? navigator.language : navigator.browserLanguage;
obj.characterSet = document.characterSet ? document.characterSet : document.charset;
obj.colorDepth = window.screen.colorDepth;
obj.location = document.location.toString();
obj.pathname = document.location.pathname;
obj.protocol = document.location.protocol;
obj.search = document.location.search;
obj.referrer = document.referrer;
obj.title = document.title;
return obj;
}
]]>
</script>
;
public function HTMLDOM(_arg1:DebugConfiguration){
super(_arg1);
}
public function get search():String{
if (_search){
return (_search);
};
if (!isAvailable()){
return (null);
};
_search = getProperty("document.location.search");
return (_search);
}
public function get location():String{
if (_location){
return (_location);
};
if (!isAvailable()){
return (null);
};
_location = getPropertyString("document.location");
return (_location);
}
public function get pathname():String{
if (_pathname){
return (_pathname);
};
if (!isAvailable()){
return (null);
};
_pathname = getProperty("document.location.pathname");
return (_pathname);
}
public function cacheProperties():void{
if (!isAvailable()){
return;
};
var _local1:Object = call(cache_properties_js);
if (_local1){
_host = _local1.host;
_language = _local1.language;
_characterSet = _local1.characterSet;
_colorDepth = _local1.colorDepth;
_location = _local1.location;
_pathname = _local1.pathname;
_protocol = _local1.protocol;
_search = _local1.search;
_referrer = _local1.referrer;
_title = _local1.title;
};
}
public function get language():String{
if (_language){
return (_language);
};
if (!isAvailable()){
return (null);
};
var _local1:String = getProperty("navigator.language");
if (_local1 == null){
_local1 = getProperty("navigator.browserLanguage");
};
_language = _local1;
return (_language);
}
public function get colorDepth():String{
if (_colorDepth){
return (_colorDepth);
};
if (!isAvailable()){
return (null);
};
_colorDepth = getProperty("window.screen.colorDepth");
return (_colorDepth);
}
public function get referrer():String{
if (_referrer){
return (_referrer);
};
if (!isAvailable()){
return (null);
};
_referrer = getProperty("document.referrer");
return (_referrer);
}
public function get protocol():String{
if (_protocol){
return (_protocol);
};
if (!isAvailable()){
return (null);
};
_protocol = getProperty("document.location.protocol");
return (_protocol);
}
public function get host():String{
if (_host){
return (_host);
};
if (!isAvailable()){
return (null);
};
_host = getProperty("document.location.host");
return (_host);
}
public function get characterSet():String{
if (_characterSet){
return (_characterSet);
};
if (!isAvailable()){
return (null);
};
var _local1:String = getProperty("document.characterSet");
if (_local1 == null){
_local1 = getProperty("document.charset");
};
_characterSet = _local1;
return (_characterSet);
}
public function get title():String{
if (_title){
return (_title);
};
if (!isAvailable()){
return (null);
};
_title = getProperty("document.title");
return (_title);
}
}
}//package com.google.analytics.external
Section 79
//JavascriptProxy (com.google.analytics.external.JavascriptProxy)
package com.google.analytics.external {
import com.google.analytics.debug.*;
import flash.external.*;
import flash.system.*;
public class JavascriptProxy {
private var _notAvailableWarning:Boolean;// = true
private var _debug:DebugConfiguration;
public static var setProperty_js:XML = <script>
<![CDATA[
function( path , value )
{
var paths;
var prop;
if( path.indexOf(".") > 0 )
{
paths = path.split(".");
prop = paths.pop() ;
}
else
{
paths = [];
prop = path;
}
var target = window ;
var len = paths.length ;
for( var i = 0 ; i < len ; i++ )
{
target = target[ paths[i] ] ;
}
target[ prop ] = value ;
}
]]>
</script>
;
public static var hasProperty_js:XML = <script>
<![CDATA[
function( path )
{
var paths;
if( path.indexOf(".") > 0 )
{
paths = path.split(".");
}
else
{
paths = [path];
}
var target = window ;
var len = paths.length ;
for( var i = 0 ; i < len ; i++ )
{
target = target[ paths[i] ] ;
}
if( target )
{
return true;
}
else
{
return false;
}
}
]]>
</script>
;
public static var setPropertyRef_js:XML = <script>
<![CDATA[
function( path , target )
{
var paths;
var prop;
if( path.indexOf(".") > 0 )
{
paths = path.split(".");
prop = paths.pop() ;
}
else
{
paths = [];
prop = path;
}
alert( "paths:"+paths.length+", prop:"+prop );
var targets;
var name;
if( target.indexOf(".") > 0 )
{
targets = target.split(".");
name = targets.pop();
}
else
{
targets = [];
name = target;
}
alert( "targets:"+targets.length+", name:"+name );
var root = window;
var len = paths.length;
for( var i = 0 ; i < len ; i++ )
{
root = root[ paths[i] ] ;
}
var ref = window;
var depth = targets.length;
for( var j = 0 ; j < depth ; j++ )
{
ref = ref[ targets[j] ] ;
}
root[ prop ] = ref[name] ;
}
]]>
</script>
;
public function JavascriptProxy(_arg1:DebugConfiguration){
_debug = _arg1;
}
public function getProperty(_arg1:String){
return (call((_arg1 + ".valueOf")));
}
public function hasProperty(_arg1:String):Boolean{
return (call(hasProperty_js, _arg1));
}
public function setProperty(_arg1:String, _arg2):void{
call(setProperty_js, _arg1, _arg2);
}
public function executeBlock(_arg1:String):void{
var data = _arg1;
if (isAvailable()){
try {
ExternalInterface.call(data);
} catch(e:SecurityError) {
if (_debug.javascript){
_debug.warning("ExternalInterface is not allowed.\nEnsure that allowScriptAccess is set to \"always\" in the Flash embed HTML.");
};
} catch(e:Error) {
if (_debug.javascript){
_debug.warning(("ExternalInterface failed to make the call\nreason: " + e.message));
};
};
};
}
public function getPropertyString(_arg1:String):String{
return (call((_arg1 + ".toString")));
}
public function setPropertyByReference(_arg1:String, _arg2:String):void{
call(setPropertyRef_js, _arg1, _arg2);
}
public function call(_arg1:String, ... _args){
var output:String;
var functionName = _arg1;
var args = _args;
if (isAvailable()){
try {
if (((_debug.javascript) && (_debug.verbose))){
output = "";
output = ("Flash->JS: " + functionName);
output = (output + "( ");
if (args.length > 0){
output = (output + args.join(","));
};
output = (output + " )");
_debug.info(output);
};
args.unshift(functionName);
return (ExternalInterface.call.apply(ExternalInterface, args));
} catch(e:SecurityError) {
if (_debug.javascript){
_debug.warning("ExternalInterface is not allowed.\nEnsure that allowScriptAccess is set to \"always\" in the Flash embed HTML.");
};
} catch(e:Error) {
if (_debug.javascript){
_debug.warning(("ExternalInterface failed to make the call\nreason: " + e.message));
};
};
};
return (null);
}
public function isAvailable():Boolean{
var _local1:Boolean = ExternalInterface.available;
if (((_local1) && ((Capabilities.playerType == "External")))){
_local1 = false;
};
if (((((!(_local1)) && (_debug.javascript))) && (_notAvailableWarning))){
_debug.warning("ExternalInterface is not available.");
_notAvailableWarning = false;
};
return (_local1);
}
}
}//package com.google.analytics.external
Section 80
//Environment (com.google.analytics.utils.Environment)
package com.google.analytics.utils {
import com.google.analytics.debug.*;
import com.google.analytics.external.*;
import flash.system.*;
public class Environment {
private var _dom:HTMLDOM;
private var _appName:String;
private var _debug:DebugConfiguration;
private var _appVersion:Version;
private var _url:String;
private var _protocol:Protocols;
private var _userAgent:UserAgent;
public function Environment(_arg1:String="", _arg2:String="", _arg3:String="", _arg4:DebugConfiguration=null, _arg5:HTMLDOM=null){
var _local6:Version;
super();
if (_arg2 == ""){
if (isAIR()){
_arg2 = "AIR";
} else {
_arg2 = "Flash";
};
};
if (_arg3 == ""){
_local6 = flashVersion;
} else {
_local6 = Version.fromString(_arg3);
};
_url = _arg1;
_appName = _arg2;
_appVersion = _local6;
_debug = _arg4;
_dom = _arg5;
}
public function isAIR():Boolean{
return ((((playerType == "Desktop")) && ((Security.sandboxType.toString() == "application"))));
}
public function get screenWidth():Number{
return (Capabilities.screenResolutionX);
}
public function get playerType():String{
return (Capabilities.playerType);
}
public function get locationSearch():String{
var _local1:String = _dom.search;
if (_local1){
return (_local1);
};
return ("");
}
public function get protocol():Protocols{
if (!_protocol){
_findProtocol();
};
return (_protocol);
}
public function get flashVersion():Version{
var _local1:Version = Version.fromString(Capabilities.version.split(" ")[1], ",");
return (_local1);
}
public function get userAgent():UserAgent{
if (!_userAgent){
_userAgent = new UserAgent(this, appName, appVersion.toString(4));
};
return (_userAgent);
}
public function get languageEncoding():String{
var _local1:String;
if (System.useCodePage){
_local1 = _dom.characterSet;
if (_local1){
return (_local1);
};
return ("-");
};
return ("UTF-8");
}
public function get appName():String{
return (_appName);
}
public function get screenColorDepth():String{
var _local1:String;
switch (Capabilities.screenColor){
case "bw":
_local1 = "1";
break;
case "gray":
_local1 = "2";
break;
case "color":
default:
_local1 = "24";
};
var _local2:String = _dom.colorDepth;
if (_local2){
_local1 = _local2;
};
return (_local1);
}
private function _findProtocol():void{
var _local4:String;
var _local5:String;
var _local1:Protocols = Protocols.none;
if (_url != ""){
_local4 = _url.toLowerCase();
_local5 = _local4.substr(0, 5);
switch (_local5){
case "file:":
_local1 = Protocols.file;
break;
case "http:":
_local1 = Protocols.HTTP;
break;
case "https":
if (_local4.charAt(5) == ":"){
_local1 = Protocols.HTTPS;
};
break;
default:
_protocol = Protocols.none;
};
};
var _local2:String = _dom.protocol;
var _local3:String = (_local1.toString() + ":").toLowerCase();
if (((((_local2) && (!((_local2 == _local3))))) && (_debug))){
_debug.warning(((("Protocol mismatch: SWF=" + _local3) + ", DOM=") + _local2));
};
_protocol = _local1;
}
public function get locationSWFPath():String{
return (_url);
}
public function get platform():String{
var _local1:String = Capabilities.manufacturer;
return (_local1.split("Adobe ")[1]);
}
public function get operatingSystem():String{
return (Capabilities.os);
}
public function set appName(_arg1:String):void{
_appName = _arg1;
userAgent.applicationProduct = _arg1;
}
function set url(_arg1:String):void{
_url = _arg1;
}
public function get referrer():String{
var _local1:String = _dom.referrer;
if (_local1){
return (_local1);
};
if (protocol == Protocols.file){
return ("localhost");
};
return ("");
}
public function isInHTML():Boolean{
return ((Capabilities.playerType == "PlugIn"));
}
public function get language():String{
var _local1:String = _dom.language;
var _local2:String = Capabilities.language;
if (_local1){
if ((((_local1.length > _local2.length)) && ((_local1.substr(0, _local2.length) == _local2)))){
_local2 = _local1;
};
};
return (_local2);
}
public function get domainName():String{
var _local1:String;
var _local2:String;
var _local3:int;
if ((((protocol == Protocols.HTTP)) || ((protocol == Protocols.HTTPS)))){
_local1 = _url.toLowerCase();
if (protocol == Protocols.HTTP){
_local2 = _local1.split("http://").join("");
} else {
if (protocol == Protocols.HTTPS){
_local2 = _local1.split("https://").join("");
};
};
_local3 = _local2.indexOf("/");
if (_local3 > -1){
_local2 = _local2.substring(0, _local3);
};
return (_local2);
};
if (protocol == Protocols.file){
return ("localhost");
};
return ("");
}
public function set userAgent(_arg1:UserAgent):void{
_userAgent = _arg1;
}
public function set appVersion(_arg1:Version):void{
_appVersion = _arg1;
userAgent.applicationVersion = _arg1.toString(4);
}
public function get screenHeight():Number{
return (Capabilities.screenResolutionY);
}
public function get locationPath():String{
var _local1:String = _dom.pathname;
if (_local1){
return (_local1);
};
return ("");
}
public function get documentTitle():String{
var _local1:String = _dom.title;
if (_local1){
return (_local1);
};
return ("");
}
public function get appVersion():Version{
return (_appVersion);
}
}
}//package com.google.analytics.utils
Section 81
//Protocols (com.google.analytics.utils.Protocols)
package com.google.analytics.utils {
public class Protocols {
private var _value:int;
private var _name:String;
public static const none:Protocols = new Protocols(0, "none");
;
public static const HTTPS:Protocols = new Protocols(3, "HTTPS");
;
public static const file:Protocols = new Protocols(1, "file");
;
public static const HTTP:Protocols = new Protocols(2, "HTTP");
;
public function Protocols(_arg1:int=0, _arg2:String=""){
_value = _arg1;
_name = _arg2;
}
public function valueOf():int{
return (_value);
}
public function toString():String{
return (_name);
}
}
}//package com.google.analytics.utils
Section 82
//Timespan (com.google.analytics.utils.Timespan)
package com.google.analytics.utils {
public class Timespan {
public static var sixmonths:Number = 15768000;
public static var twoyears:Number = 63072000;
public static var thirtyminutes:Number = 1800;
}
}//package com.google.analytics.utils
Section 83
//URL (com.google.analytics.utils.URL)
package com.google.analytics.utils {
public class URL {
private var _url:String;
public function URL(_arg1:String=""){
_url = _arg1.toLowerCase();
}
public function get domain():String{
var _local1:Array;
if (((!((hostName == ""))) && ((hostName.indexOf(".") > -1)))){
_local1 = hostName.split(".");
switch (_local1.length){
case 2:
return (hostName);
case 3:
if (_local1[1] == "co"){
return (hostName);
};
_local1.shift();
return (_local1.join("."));
case 4:
_local1.shift();
return (_local1.join("."));
};
};
return ("");
}
public function get path():String{
var _local1:String = _url;
if (_local1.indexOf("://") > -1){
_local1 = _local1.split("://")[1];
};
if (_local1.indexOf(hostName) == 0){
_local1 = _local1.substr(hostName.length);
};
if (_local1.indexOf("?") > -1){
_local1 = _local1.split("?")[0];
};
if (_local1.charAt(0) != "/"){
_local1 = ("/" + _local1);
};
return (_local1);
}
public function get protocol():Protocols{
var _local1:String = _url.split("://")[0];
switch (_local1){
case "file":
return (Protocols.file);
case "http":
return (Protocols.HTTP);
case "https":
return (Protocols.HTTPS);
default:
return (Protocols.none);
};
}
public function get hostName():String{
var _local1:String = _url;
if (_local1.indexOf("://") > -1){
_local1 = _local1.split("://")[1];
};
if (_local1.indexOf("/") > -1){
_local1 = _local1.split("/")[0];
};
if (_local1.indexOf("?") > -1){
_local1 = _local1.split("?")[0];
};
if ((((protocol == Protocols.file)) || ((protocol == Protocols.none)))){
return ("");
};
return (_local1);
}
public function get subDomain():String{
if (((!((domain == ""))) && (!((domain == hostName))))){
return (hostName.split(("." + domain)).join(""));
};
return ("");
}
public function get search():String{
var _local1:String = _url;
if (_local1.indexOf("://") > -1){
_local1 = _local1.split("://")[1];
};
if (_local1.indexOf(hostName) == 0){
_local1 = _local1.substr(hostName.length);
};
if (_local1.indexOf("?") > -1){
_local1 = _local1.split("?")[1];
} else {
_local1 = "";
};
return (_local1);
}
}
}//package com.google.analytics.utils
Section 84
//UserAgent (com.google.analytics.utils.UserAgent)
package com.google.analytics.utils {
import com.google.analytics.core.*;
import flash.system.*;
public class UserAgent {
private var _localInfo:Environment;
private var _applicationProduct:String;
private var _version:Version;
public static var minimal:Boolean = false;
public function UserAgent(_arg1:Environment, _arg2:String="", _arg3:String=""){
_localInfo = _arg1;
applicationProduct = _arg2;
_version = Version.fromString(_arg3);
}
public function get tamarinProductToken():String{
if (UserAgent.minimal){
return ("");
};
if (System.vmVersion){
return (("Tamarin/" + Utils.trim(System.vmVersion, true)));
};
return ("");
}
public function get applicationVersion():String{
return (_version.toString(2));
}
public function get vendorProductToken():String{
var _local1 = "";
if (_localInfo.isAIR()){
_local1 = (_local1 + "AIR");
} else {
_local1 = (_local1 + "FlashPlayer");
};
_local1 = (_local1 + "/");
_local1 = (_local1 + _version.toString(3));
return (_local1);
}
public function toString():String{
var _local1 = "";
_local1 = (_local1 + applicationProductToken);
if (applicationComment != ""){
_local1 = (_local1 + (" " + applicationComment));
};
if (tamarinProductToken != ""){
_local1 = (_local1 + (" " + tamarinProductToken));
};
if (vendorProductToken != ""){
_local1 = (_local1 + (" " + vendorProductToken));
};
return (_local1);
}
public function get applicationComment():String{
var _local1:Array = [];
_local1.push(_localInfo.platform);
_local1.push(_localInfo.playerType);
if (!UserAgent.minimal){
_local1.push(_localInfo.operatingSystem);
_local1.push(_localInfo.language);
};
if (Capabilities.isDebugger){
_local1.push("DEBUG");
};
if (_local1.length > 0){
return ((("(" + _local1.join("; ")) + ")"));
};
return ("");
}
public function set applicationVersion(_arg1:String):void{
_version = Version.fromString(_arg1);
}
public function get applicationProductToken():String{
var _local1:String = applicationProduct;
if (applicationVersion != ""){
_local1 = (_local1 + ("/" + applicationVersion));
};
return (_local1);
}
public function set applicationProduct(_arg1:String):void{
_applicationProduct = _arg1;
}
public function get applicationProduct():String{
return (_applicationProduct);
}
}
}//package com.google.analytics.utils
Section 85
//Variables (com.google.analytics.utils.Variables)
package com.google.analytics.utils {
import flash.net.*;
public dynamic class Variables {
public var post:Array;
public var URIencode:Boolean;
public var pre:Array;
public var sort:Boolean;// = true
public function Variables(_arg1:String=null, _arg2:Array=null, _arg3:Array=null){
pre = [];
post = [];
super();
if (_arg1){
decode(_arg1);
};
if (_arg2){
this.pre = _arg2;
};
if (_arg3){
this.post = _arg3;
};
}
private function _join(_arg1:Variables):void{
var _local2:String;
if (!_arg1){
return;
};
for (_local2 in _arg1) {
this[_local2] = _arg1[_local2];
};
}
public function join(... _args):void{
var _local2:int = _args.length;
var _local3:int;
while (_local3 < _local2) {
if (!(_args[_local3] is Variables)){
} else {
_join(_args[_local3]);
};
_local3++;
};
}
public function toString():String{
var _local2:String;
var _local3:String;
var _local4:String;
var _local5:int;
var _local6:int;
var _local7:String;
var _local8:String;
var _local1:Array = [];
for (_local3 in this) {
_local2 = this[_local3];
if (URIencode){
_local2 = encodeURI(_local2);
};
_local1.push(((_local3 + "=") + _local2));
};
if (sort){
_local1.sort();
};
if (pre.length > 0){
pre.reverse();
_local5 = 0;
while (_local5 < pre.length) {
_local7 = pre[_local5];
_local6 = 0;
while (_local6 < _local1.length) {
_local4 = _local1[_local6];
if (_local4.indexOf(_local7) == 0){
_local1.unshift(_local1.splice(_local6, 1)[0]);
};
_local6++;
};
_local5++;
};
pre.reverse();
};
if (post.length > 0){
_local5 = 0;
while (_local5 < post.length) {
_local8 = post[_local5];
_local6 = 0;
while (_local6 < _local1.length) {
_local4 = _local1[_local6];
if (_local4.indexOf(_local8) == 0){
_local1.push(_local1.splice(_local6, 1)[0]);
};
_local6++;
};
_local5++;
};
};
return (_local1.join("&"));
}
public function decode(_arg1:String):void{
var _local2:Array;
var _local3:String;
var _local4:String;
var _local5:String;
var _local6:Array;
if (_arg1 == ""){
return;
};
if (_arg1.indexOf("&") > -1){
_local2 = _arg1.split("&");
} else {
_local2 = [_arg1];
};
var _local7:int;
while (_local7 < _local2.length) {
_local3 = _local2[_local7];
if (_local3.indexOf("=") > -1){
_local6 = _local3.split("=");
_local4 = _local6[0];
_local5 = decodeURI(_local6[1]);
this[_local4] = _local5;
};
_local7++;
};
}
public function toURLVariables():URLVariables{
var _local2:String;
var _local1:URLVariables = new URLVariables();
for (_local2 in this) {
_local1[_local2] = this[_local2];
};
return (_local1);
}
}
}//package com.google.analytics.utils
Section 86
//Version (com.google.analytics.utils.Version)
package com.google.analytics.utils {
public class Version {
private var _revision:uint;
private var _maxBuild:uint;// = 0xFF
private var _maxMinor:uint;// = 15
private var _maxMajor:uint;// = 15
private var _separator:String;// = "."
private var _maxRevision:uint;// = 0xFFFF
private var _build:uint;
private var _major:uint;
private var _minor:uint;
public function Version(_arg1:uint=0, _arg2:uint=0, _arg3:uint=0, _arg4:uint=0){
var _local5:Version;
super();
if ((((((((_arg1 > _maxMajor)) && ((_arg2 == 0)))) && ((_arg3 == 0)))) && ((_arg4 == 0)))){
_local5 = Version.fromNumber(_arg1);
_arg1 = _local5.major;
_arg2 = _local5.minor;
_arg3 = _local5.build;
_arg4 = _local5.revision;
};
this.major = _arg1;
this.minor = _arg2;
this.build = _arg3;
this.revision = _arg4;
}
public function toString(_arg1:int=0):String{
var _local2:Array;
if ((((_arg1 <= 0)) || ((_arg1 > 4)))){
_arg1 = getFields();
};
switch (_arg1){
case 1:
_local2 = [major];
break;
case 2:
_local2 = [major, minor];
break;
case 3:
_local2 = [major, minor, build];
break;
case 4:
default:
_local2 = [major, minor, build, revision];
};
return (_local2.join(_separator));
}
public function set revision(_arg1:uint):void{
_revision = Math.min(_arg1, _maxRevision);
}
public function get revision():uint{
return (_revision);
}
public function set build(_arg1:uint):void{
_build = Math.min(_arg1, _maxBuild);
}
public function set minor(_arg1:uint):void{
_minor = Math.min(_arg1, _maxMinor);
}
public function get build():uint{
return (_build);
}
public function set major(_arg1:uint):void{
_major = Math.min(_arg1, _maxMajor);
}
public function get minor():uint{
return (_minor);
}
private function getFields():int{
var _local1 = 4;
if (revision == 0){
_local1--;
};
if ((((_local1 == 3)) && ((build == 0)))){
_local1--;
};
if ((((_local1 == 2)) && ((minor == 0)))){
_local1--;
};
return (_local1);
}
public function valueOf():uint{
return (((((major << 28) | (minor << 24)) | (build << 16)) | revision));
}
public function get major():uint{
return (_major);
}
public function equals(_arg1):Boolean{
if (!(_arg1 is Version)){
return (false);
};
if ((((((((_arg1.major == major)) && ((_arg1.minor == minor)))) && ((_arg1.build == build)))) && ((_arg1.revision == revision)))){
return (true);
};
return (false);
}
public static function fromString(_arg1:String="", _arg2:String="."):Version{
var _local4:Array;
var _local3:Version = new (Version);
if ((((_arg1 == "")) || ((_arg1 == null)))){
return (_local3);
};
if (_arg1.indexOf(_arg2) > -1){
_local4 = _arg1.split(_arg2);
_local3.major = parseInt(_local4[0]);
_local3.minor = parseInt(_local4[1]);
_local3.build = parseInt(_local4[2]);
_local3.revision = parseInt(_local4[3]);
} else {
_local3.major = parseInt(_arg1);
};
return (_local3);
}
public static function fromNumber(_arg1:Number=0):Version{
var _local2:Version = new (Version);
if (((((((((((isNaN(_arg1)) || ((_arg1 == 0)))) || ((_arg1 < 0)))) || ((_arg1 == Number.MAX_VALUE)))) || ((_arg1 == Number.POSITIVE_INFINITY)))) || ((_arg1 == Number.NEGATIVE_INFINITY)))){
return (_local2);
};
_local2.major = (_arg1 >>> 28);
_local2.minor = ((_arg1 & 251658240) >>> 24);
_local2.build = ((_arg1 & 0xFF0000) >>> 16);
_local2.revision = (_arg1 & 0xFFFF);
return (_local2);
}
}
}//package com.google.analytics.utils
Section 87
//Bridge (com.google.analytics.v4.Bridge)
package com.google.analytics.v4 {
import com.google.analytics.core.*;
import com.google.analytics.debug.*;
import com.google.analytics.external.*;
public class Bridge implements GoogleAnalyticsAPI {
private var _debug:DebugConfiguration;
private var _proxy:JavascriptProxy;
private var _jsContainer:String;// = "_GATracker"
private var _hasGATracker:Boolean;// = false
private var _account:String;
private static var _linkTrackingObject_js:XML = <script>
<![CDATA[
function( container , target )
{
var targets ;
var name ;
if( target.indexOf(".") > 0 )
{
targets = target.split(".");
name = targets.pop();
}
else
{
targets = [];
name = target;
}
var ref = window;
var depth = targets.length;
for( var j = 0 ; j < depth ; j++ )
{
ref = ref[ targets[j] ] ;
}
window[container][target] = ref[name] ;
}
]]>
</script>
;
private static var _createTrackingObject_js:XML = <script>
<![CDATA[
function( acct )
{
_GATracker[acct] = _gat._getTracker(acct);
}
]]>
</script>
;
private static var _injectTrackingObject_js:XML = <script>
<![CDATA[
function()
{
try
{
_GATracker
}
catch(e)
{
_GATracker = {};
}
}
]]>
</script>
;
private static var _checkGAJS_js:XML = <script>
<![CDATA[
function()
{
if( _gat && _gat._getTracker )
{
return true;
}
return false;
}
]]>
</script>
;
private static var _checkValidTrackingObject_js:XML = <script>
<![CDATA[
function(acct)
{
if( _GATracker[acct] && (_GATracker[acct]._getAccount) )
{
return true ;
}
else
{
return false;
}
}
]]>
</script>
;
public function Bridge(_arg1:String, _arg2:DebugConfiguration, _arg3:JavascriptProxy){
var _local4:String;
var _local5:String;
var _local6:String;
super();
_account = _arg1;
_debug = _arg2;
_proxy = _arg3;
if (!_checkGAJS()){
_local4 = "";
_local4 = (_local4 + "ga.js not found, be sure to check if\n");
_local4 = (_local4 + "<script src=\"http://www.google-analytics.com/ga.js\"></script>\n");
_local4 = (_local4 + "is included in the HTML.");
_debug.warning(_local4);
throw (new Error(_local4));
};
if (!_hasGATracker){
if (((_debug.javascript) && (_debug.verbose))){
_local5 = "";
_local5 = (_local5 + "The Google Analytics tracking code was not found on the container page\n");
_local5 = (_local5 + "we create it");
_debug.info(_local5, VisualDebugMode.advanced);
};
_injectTrackingObject();
};
if (Utils.validateAccount(_arg1)){
_createTrackingObject(_arg1);
} else {
if (_checkTrackingObject(_arg1)){
_linkTrackingObject(_arg1);
} else {
_local6 = "";
_local6 = (_local6 + (("JS Object \"" + _arg1) + "\" doesn't exist in DOM\n"));
_local6 = (_local6 + "Bridge object not created.");
_debug.warning(_local6);
throw (new Error(_local6));
};
};
}
public function link(_arg1:String, _arg2:Boolean=false):void{
_debug.info((((("link( " + _arg1) + ", ") + _arg2) + " )"));
_call("_link", _arg1, _arg2);
}
public function addOrganic(_arg1:String, _arg2:String):void{
_debug.info((("addOrganic( " + [_arg1, _arg2].join(", ")) + " )"));
_call("_addOrganic", _arg1);
}
public function setAllowLinker(_arg1:Boolean):void{
_debug.info((("setAllowLinker( " + _arg1) + " )"));
_call("_setAllowLinker", _arg1);
}
private function _linkTrackingObject(_arg1:String):void{
_proxy.call(_linkTrackingObject_js, _jsContainer, _arg1);
}
public function trackEvent(_arg1:String, _arg2:String, _arg3:String=null, _arg4:Number=NaN):Boolean{
var _local5 = 2;
if (((_arg3) && (!((_arg3 == ""))))){
_local5 = 3;
};
if ((((_local5 == 3)) && (!(isNaN(_arg4))))){
_local5 = 4;
};
switch (_local5){
case 4:
_debug.info((("trackEvent( " + [_arg1, _arg2, _arg3, _arg4].join(", ")) + " )"));
return (_call("_trackEvent", _arg1, _arg2, _arg3, _arg4));
case 3:
_debug.info((("trackEvent( " + [_arg1, _arg2, _arg3].join(", ")) + " )"));
return (_call("_trackEvent", _arg1, _arg2, _arg3));
case 2:
default:
_debug.info((("trackEvent( " + [_arg1, _arg2].join(", ")) + " )"));
return (_call("_trackEvent", _arg1, _arg2));
};
}
public function setClientInfo(_arg1:Boolean):void{
_debug.info((("setClientInfo( " + _arg1) + " )"));
_call("_setClientInfo", _arg1);
}
public function trackTrans():void{
_debug.info("trackTrans()");
_call("_trackTrans");
}
public function setCookieTimeout(_arg1:int):void{
_debug.info((("setCookieTimeout( " + _arg1) + " )"));
_call("_setCookieTimeout", _arg1);
}
public function trackPageview(_arg1:String=""):void{
_debug.info((("trackPageview( " + _arg1) + " )"));
_call("_trackPageview", _arg1);
}
public function getClientInfo():Boolean{
_debug.info("getClientInfo()");
return (_call("_getClientInfo"));
}
private function _checkValidTrackingObject(_arg1:String):Boolean{
return (_proxy.call(_checkValidTrackingObject_js, _arg1));
}
private function _checkGAJS():Boolean{
return (_proxy.call(_checkGAJS_js));
}
public function linkByPost(_arg1:Object, _arg2:Boolean=false):void{
_debug.warning((((("linkByPost( " + _arg1) + ", ") + _arg2) + " ) not implemented"));
}
private function _call(_arg1:String, ... _args){
_args.unshift(((((("window." + _jsContainer) + "[\"") + _account) + "\"].") + _arg1));
return (_proxy.call.apply(_proxy, _args));
}
public function hasGAJS():Boolean{
return (_checkGAJS());
}
private function _checkTrackingObject(_arg1:String):Boolean{
var _local2:Boolean = _proxy.hasProperty(_arg1);
var _local3:Boolean = _proxy.hasProperty((_arg1 + "._getAccount"));
return (((_local2) && (_local3)));
}
public function resetSession():void{
_debug.warning("resetSession() not implemented");
}
public function getDetectTitle():Boolean{
_debug.info("getDetectTitle()");
return (_call("_getDetectTitle"));
}
public function setCampNameKey(_arg1:String):void{
_debug.info((("setCampNameKey( " + _arg1) + " )"));
_call("_setCampNameKey", _arg1);
}
public function setDetectFlash(_arg1:Boolean):void{
_debug.info((("setDetectFlash( " + _arg1) + " )"));
_call("_setDetectFlash", _arg1);
}
public function createEventTracker(_arg1:String):EventTracker{
_debug.info((("createEventTracker( " + _arg1) + " )"));
return (new EventTracker(_arg1, this));
}
public function addItem(_arg1:String, _arg2:String, _arg3:String, _arg4:String, _arg5:Number, _arg6:int):void{
_debug.info((("addItem( " + [_arg1, _arg2, _arg3, _arg4, _arg5, _arg6].join(", ")) + " )"));
_call("_addItem", _arg1, _arg2, _arg3, _arg4, _arg5, _arg6);
}
public function clearIgnoredOrganic():void{
_debug.info("clearIgnoredOrganic()");
_call("_clearIgnoreOrganic");
}
public function setVar(_arg1:String):void{
_debug.info((("setVar( " + _arg1) + " )"));
_call("_setVar", _arg1);
}
public function setDomainName(_arg1:String):void{
_debug.info((("setDomainName( " + _arg1) + " )"));
_call("_setDomainName", _arg1);
}
public function hasTrackingAccount(_arg1:String):Boolean{
if (Utils.validateAccount(_arg1)){
return (_checkValidTrackingObject(_arg1));
};
return (_checkTrackingObject(_arg1));
}
public function setCampSourceKey(_arg1:String):void{
_debug.info((("setCampSourceKey( " + _arg1) + " )"));
_call("_setCampSourceKey", _arg1);
}
public function addTrans(_arg1:String, _arg2:String, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:String, _arg7:String, _arg8:String):Object{
_debug.info((("addTrans( " + [_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8].join(", ")) + " )"));
_call("_addTrans", _arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8);
return (null);
}
public function setCampContentKey(_arg1:String):void{
_debug.info((("setCampContentKey( " + _arg1) + " )"));
_call("_setCampContentKey", _arg1);
}
public function setLocalServerMode():void{
_debug.info("setLocalServerMode()");
_call("_setLocalServerMode");
}
public function getLocalGifPath():String{
_debug.info("getLocalGifPath()");
return (_call("_getLocalGifPath"));
}
public function clearIgnoredRef():void{
_debug.info("clearIgnoredRef()");
_call("_clearIgnoreRef");
}
public function setAllowAnchor(_arg1:Boolean):void{
_debug.info((("setAllowAnchor( " + _arg1) + " )"));
_call("_setAllowAnchor", _arg1);
}
public function setLocalGifPath(_arg1:String):void{
_debug.info((("setLocalGifPath( " + _arg1) + " )"));
_call("_setLocalGifPath", _arg1);
}
public function getVersion():String{
_debug.info("getVersion()");
return (_call("_getVersion"));
}
private function _injectTrackingObject():void{
_proxy.executeBlock(_injectTrackingObject_js);
_hasGATracker = true;
}
public function setCookiePath(_arg1:String):void{
_debug.info((("setCookiePath( " + _arg1) + " )"));
_call("_setCookiePath", _arg1);
}
public function setSampleRate(_arg1:Number):void{
_debug.info((("setSampleRate( " + _arg1) + " )"));
_call("_setSampleRate", _arg1);
}
public function setAllowHash(_arg1:Boolean):void{
_debug.info((("setAllowHash( " + _arg1) + " )"));
_call("_setAllowHash", _arg1);
}
public function addIgnoredOrganic(_arg1:String):void{
_debug.info((("addIgnoredOrganic( " + _arg1) + " )"));
_call("_addIgnoredOrganic", _arg1);
}
public function setCampNOKey(_arg1:String):void{
_debug.info((("setCampNOKey( " + _arg1) + " )"));
_call("_setCampNOKey", _arg1);
}
public function cookiePathCopy(_arg1:String):void{
_debug.info((("cookiePathCopy( " + _arg1) + " )"));
_call("_cookiePathCopy", _arg1);
}
public function setLocalRemoteServerMode():void{
_debug.info("setLocalRemoteServerMode()");
_call("_setLocalRemoteServerMode");
}
public function getServiceMode():ServerOperationMode{
_debug.info("getServiceMode()");
return (_call("_getServiceMode"));
}
public function setDetectTitle(_arg1:Boolean):void{
_debug.info((("setDetectTitle( " + _arg1) + " )"));
_call("_setDetectTitle", _arg1);
}
private function _createTrackingObject(_arg1:String):void{
_proxy.call(_createTrackingObject_js, _arg1);
}
public function setCampaignTrack(_arg1:Boolean):void{
_debug.info((("setCampaignTrack( " + _arg1) + " )"));
_call("_setCampaignTrack", _arg1);
}
public function clearOrganic():void{
_debug.info("clearOrganic()");
_call("_clearOrganic");
}
public function setCampTermKey(_arg1:String):void{
_debug.info((("setCampTermKey( " + _arg1) + " )"));
_call("_setCampTermKey", _arg1);
}
public function getDetectFlash():Boolean{
_debug.info("getDetectFlash()");
return (_call("_getDetectFlash"));
}
public function setCampMediumKey(_arg1:String):void{
_debug.info((("setCampMediumKey( " + _arg1) + " )"));
_call("_setCampMediumKey", _arg1);
}
public function addIgnoredRef(_arg1:String):void{
_debug.info((("addIgnoredRef( " + _arg1) + " )"));
_call("_addIgnoredRef", _arg1);
}
public function setSessionTimeout(_arg1:int):void{
_debug.info((("setSessionTimeout( " + _arg1) + " )"));
_call("_setSessionTimeout", _arg1);
}
public function setRemoteServerMode():void{
_debug.info("setRemoteServerMode()");
_call("_setRemoteServerMode");
}
public function getAccount():String{
_debug.info("getAccount()");
return (_call("_getAccount"));
}
}
}//package com.google.analytics.v4
Section 88
//Configuration (com.google.analytics.v4.Configuration)
package com.google.analytics.v4 {
import com.google.analytics.core.*;
import com.google.analytics.debug.*;
import com.google.analytics.utils.*;
import com.google.analytics.campaign.*;
public class Configuration {
public var serverMode:ServerOperationMode;
public var detectFlash:Boolean;// = true
public var hasSiteOverlay:Boolean;// = false
public var allowLocalTracking:Boolean;// = true
public var secureRemoteGIFpath:String;// = "https://ssl.google-analytics.com/__utm.gif"
private var _version:String;// = "4.3as"
public var allowDomainHash:Boolean;// = true
public var detectClientInfo:Boolean;// = true
public var idleLoop:Number;// = 30
public var isTrackOutboundSubdomains:Boolean;// = false
public var cookiePath:String;// = "/"
public var transactionFieldDelim:String;// = "|"
private var _organic:Organic;
private var _cookieName:String;// = "analytics"
public var campaignKey:CampaignKey;
public var google:String;// = "google"
public var googleCsePath:String;// = "cse"
public var bucketCapacity:Number;// = 10
private var _sampleRate:Number;// = 1
public var remoteGIFpath:String;// = "http://www.google-analytics.com/__utm.gif"
public var googleSearchParam:String;// = "q"
public var allowLinker:Boolean;// = false
public var maxOutboundLinkExamined:Number;// = 1000
private var _debug:DebugConfiguration;
public var allowAnchor:Boolean;// = false
private var _domain:Domain;
private var _trackingLimitPerSession:int;// = 500
public var tokenCliff:int;// = 10
public var sessionTimeout:Number;
public var idleTimeout:Number;// = 60
public var campaignTracking:Boolean;// = true
public var domainName:String;// = ""
public var detectTitle:Boolean;// = true
public var tokenRate:Number;// = 0.2
public var conversionTimeout:Number;
public var localGIFpath:String;// = "/__utm.gif"
public function Configuration(_arg1:DebugConfiguration=null){
_organic = new Organic();
conversionTimeout = Timespan.sixmonths;
sessionTimeout = Timespan.thirtyminutes;
campaignKey = new CampaignKey();
serverMode = ServerOperationMode.remote;
super();
_debug = _arg1;
_domain = new Domain(DomainNameMode.auto, "", _debug);
serverMode = ServerOperationMode.remote;
_initOrganicSources();
}
public function get organic():Organic{
return (_organic);
}
public function get cookieName():String{
return (_cookieName);
}
public function get trackingLimitPerSession():int{
return (_trackingLimitPerSession);
}
private function _initOrganicSources():void{
addOrganicSource(google, googleSearchParam);
addOrganicSource("yahoo", "p");
addOrganicSource("msn", "q");
addOrganicSource("aol", "query");
addOrganicSource("aol", "encquery");
addOrganicSource("lycos", "query");
addOrganicSource("ask", "q");
addOrganicSource("altavista", "q");
addOrganicSource("netscape", "query");
addOrganicSource("cnn", "query");
addOrganicSource("looksmart", "qt");
addOrganicSource("about", "terms");
addOrganicSource("mamma", "query");
addOrganicSource("alltheweb", "q");
addOrganicSource("gigablast", "q");
addOrganicSource("voila", "rdata");
addOrganicSource("virgilio", "qs");
addOrganicSource("live", "q");
addOrganicSource("baidu", "wd");
addOrganicSource("alice", "qs");
addOrganicSource("yandex", "text");
addOrganicSource("najdi", "q");
addOrganicSource("aol", "q");
addOrganicSource("club-internet", "q");
addOrganicSource("mama", "query");
addOrganicSource("seznam", "q");
addOrganicSource("search", "q");
addOrganicSource("wp", "szukaj");
addOrganicSource("onet", "qt");
addOrganicSource("netsprint", "q");
addOrganicSource("google.interia", "q");
addOrganicSource("szukacz", "q");
addOrganicSource("yam", "k");
addOrganicSource("pchome", "q");
addOrganicSource("kvasir", "searchExpr");
addOrganicSource("sesam", "q");
addOrganicSource("ozu", "q");
addOrganicSource("terra", "query");
addOrganicSource("nostrum", "query");
addOrganicSource("mynet", "q");
addOrganicSource("ekolay", "q");
addOrganicSource("search.ilse", "search_for");
}
public function get sampleRate():Number{
return (_sampleRate);
}
public function addOrganicSource(_arg1:String, _arg2:String):void{
var engine = _arg1;
var keyword = _arg2;
try {
_organic.addSource(engine, keyword);
} catch(e:Error) {
if (((_debug) && (_debug.active))){
_debug.warning(e.message);
};
};
}
public function get domain():Domain{
return (_domain);
}
public function set sampleRate(_arg1:Number):void{
if (_arg1 <= 0){
_arg1 = 0.1;
};
if (_arg1 > 1){
_arg1 = 1;
};
_arg1 = Number(_arg1.toFixed(2));
_sampleRate = _arg1;
}
public function get version():String{
return (_version);
}
}
}//package com.google.analytics.v4
Section 89
//GoogleAnalyticsAPI (com.google.analytics.v4.GoogleAnalyticsAPI)
package com.google.analytics.v4 {
import com.google.analytics.core.*;
public interface GoogleAnalyticsAPI {
function setCampSourceKey(_arg1:String):void;
function getServiceMode():ServerOperationMode;
function resetSession():void;
function setLocalServerMode():void;
function setCampContentKey(_arg1:String):void;
function addOrganic(_arg1:String, _arg2:String):void;
function setDetectFlash(_arg1:Boolean):void;
function addTrans(_arg1:String, _arg2:String, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:String, _arg7:String, _arg8:String):Object;
function trackEvent(_arg1:String, _arg2:String, _arg3:String=null, _arg4:Number=NaN):Boolean;
function setCampTermKey(_arg1:String):void;
function setCampNameKey(_arg1:String):void;
function addIgnoredOrganic(_arg1:String):void;
function addItem(_arg1:String, _arg2:String, _arg3:String, _arg4:String, _arg5:Number, _arg6:int):void;
function setAllowLinker(_arg1:Boolean):void;
function getClientInfo():Boolean;
function getDetectFlash():Boolean;
function setCampaignTrack(_arg1:Boolean):void;
function createEventTracker(_arg1:String):EventTracker;
function setCookieTimeout(_arg1:int):void;
function setAllowAnchor(_arg1:Boolean):void;
function trackTrans():void;
function clearOrganic():void;
function trackPageview(_arg1:String=""):void;
function setLocalGifPath(_arg1:String):void;
function getVersion():String;
function getLocalGifPath():String;
function setVar(_arg1:String):void;
function clearIgnoredOrganic():void;
function setCampMediumKey(_arg1:String):void;
function addIgnoredRef(_arg1:String):void;
function setClientInfo(_arg1:Boolean):void;
function setCookiePath(_arg1:String):void;
function setSampleRate(_arg1:Number):void;
function setSessionTimeout(_arg1:int):void;
function setRemoteServerMode():void;
function clearIgnoredRef():void;
function setDomainName(_arg1:String):void;
function setDetectTitle(_arg1:Boolean):void;
function setAllowHash(_arg1:Boolean):void;
function getAccount():String;
function linkByPost(_arg1:Object, _arg2:Boolean=false):void;
function link(_arg1:String, _arg2:Boolean=false):void;
function setCampNOKey(_arg1:String):void;
function setLocalRemoteServerMode():void;
function cookiePathCopy(_arg1:String):void;
function getDetectTitle():Boolean;
}
}//package com.google.analytics.v4
Section 90
//Tracker (com.google.analytics.v4.Tracker)
package com.google.analytics.v4 {
import com.google.analytics.core.*;
import com.google.analytics.debug.*;
import com.google.analytics.data.*;
import com.google.analytics.utils.*;
import com.google.analytics.external.*;
import com.google.analytics.campaign.*;
public class Tracker implements GoogleAnalyticsAPI {
private const EVENT_TRACKER_LABEL_KEY_NUM:int = 3;
private const EVENT_TRACKER_VALUE_VALUE_NUM:int = 1;
private const EVENT_TRACKER_PROJECT_ID:int = 5;
private const EVENT_TRACKER_OBJECT_NAME_KEY_NUM:int = 1;
private const EVENT_TRACKER_TYPE_KEY_NUM:int = 2;
private var _adSense:AdSenseGlobals;
private var _eventTracker:X10;
private var _noSessionInformation:Boolean;// = false
private var _browserInfo:BrowserInfo;
private var _debug:DebugConfiguration;
private var _isNewVisitor:Boolean;// = false
private var _buffer:Buffer;
private var _config:Configuration;
private var _x10Module:X10;
private var _campaign:CampaignManager;
private var _formatedReferrer:String;
private var _timeStamp:Number;
private var _info:Environment;
private var _domainHash:Number;
private var _campaignInfo:CampaignInfo;
private var _gifRequest:GIFRequest;
private var _hasInitData:Boolean;// = false
private var _account:String;
public function Tracker(_arg1:String, _arg2:Configuration, _arg3:DebugConfiguration, _arg4:Environment, _arg5:Buffer, _arg6:GIFRequest, _arg7:AdSenseGlobals){
var _local8:String;
super();
_account = _arg1;
_config = _arg2;
_debug = _arg3;
_info = _arg4;
_buffer = _arg5;
_gifRequest = _arg6;
_adSense = _arg7;
if (!Utils.validateAccount(_arg1)){
_local8 = (("Account \"" + _arg1) + "\" is not valid.");
_debug.warning(_local8);
throw (new Error(_local8));
};
_initData();
}
private function _doTracking():Boolean{
if (((((!((_info.protocol == Protocols.file))) && (!((_info.protocol == Protocols.none))))) && (_isNotGoogleSearch()))){
return (true);
};
if (_config.allowLocalTracking){
return (true);
};
return (false);
}
public function addOrganic(_arg1:String, _arg2:String):void{
_debug.info((("addOrganic( " + [_arg1, _arg2].join(", ")) + " )"));
_config.organic.addSource(_arg1, _arg2);
}
public function setAllowLinker(_arg1:Boolean):void{
_config.allowLinker = _arg1;
_debug.info((("setAllowLinker( " + _config.allowLinker) + " )"));
}
public function trackEvent(_arg1:String, _arg2:String, _arg3:String=null, _arg4:Number=NaN):Boolean{
var _local5:Boolean;
var _local6 = 2;
if (((!((_arg1 == ""))) && (!((_arg2 == ""))))){
_eventTracker.clearKey(EVENT_TRACKER_PROJECT_ID);
_eventTracker.clearValue(EVENT_TRACKER_PROJECT_ID);
_local5 = _eventTracker.setKey(EVENT_TRACKER_PROJECT_ID, EVENT_TRACKER_OBJECT_NAME_KEY_NUM, _arg1);
_local5 = _eventTracker.setKey(EVENT_TRACKER_PROJECT_ID, EVENT_TRACKER_TYPE_KEY_NUM, _arg2);
if (((_arg3) && (!((_arg3 == ""))))){
_local5 = _eventTracker.setKey(EVENT_TRACKER_PROJECT_ID, EVENT_TRACKER_LABEL_KEY_NUM, _arg3);
_local6 = 3;
if (!isNaN(_arg4)){
_local5 = _eventTracker.setValue(EVENT_TRACKER_PROJECT_ID, EVENT_TRACKER_VALUE_VALUE_NUM, _arg4);
_local6 = 4;
};
};
if (_local5){
_debug.info(((("valid event tracking call\ncategory: " + _arg1) + "\naction: ") + _arg2), VisualDebugMode.geek);
_sendXEvent(_eventTracker);
};
} else {
_debug.warning(((("event tracking call is not valid, failed!\ncategory: " + _arg1) + "\naction: ") + _arg2), VisualDebugMode.geek);
_local5 = false;
};
switch (_local6){
case 4:
_debug.info((("trackEvent( " + [_arg1, _arg2, _arg3, _arg4].join(", ")) + " )"));
break;
case 3:
_debug.info((("trackEvent( " + [_arg1, _arg2, _arg3].join(", ")) + " )"));
break;
case 2:
default:
_debug.info((("trackEvent( " + [_arg1, _arg2].join(", ")) + " )"));
};
return (_local5);
}
public function trackPageview(_arg1:String=""):void{
_debug.info((("trackPageview( " + _arg1) + " )"));
if (_doTracking()){
_initData();
_trackMetrics(_arg1);
_noSessionInformation = false;
} else {
_debug.warning((("trackPageview( " + _arg1) + " ) failed"));
};
}
public function setCookieTimeout(_arg1:int):void{
_config.conversionTimeout = _arg1;
_debug.info((("setCookieTimeout( " + _config.conversionTimeout) + " )"));
}
public function trackTrans():void{
_debug.warning("trackTrans() not implemented");
}
public function setClientInfo(_arg1:Boolean):void{
_config.detectClientInfo = _arg1;
_debug.info((("setClientInfo( " + _config.detectClientInfo) + " )"));
}
public function linkByPost(_arg1:Object, _arg2:Boolean=false):void{
_debug.warning((("linkByPost( " + [_arg1, _arg2].join(", ")) + " ) not implemented"));
}
private function _initData():void{
var _local1:String;
var _local2:String;
if (!_hasInitData){
_updateDomainName();
_domainHash = _getDomainHash();
_timeStamp = Math.round((new Date().getTime() / 1000));
if (_debug.verbose){
_local1 = "";
_local1 = (_local1 + "_initData 0");
_local1 = (_local1 + ("\ndomain name: " + _config.domainName));
_local1 = (_local1 + ("\ndomain hash: " + _domainHash));
_local1 = (_local1 + (((("\ntimestamp: " + _timeStamp) + " (") + new Date((_timeStamp * 1000))) + ")"));
_debug.info(_local1, VisualDebugMode.geek);
};
};
if (_doTracking()){
_handleCookie();
};
if (!_hasInitData){
if (_doTracking()){
_formatedReferrer = _formatReferrer();
_browserInfo = new BrowserInfo(_config, _info);
_debug.info(("browserInfo: " + _browserInfo.toURLString()), VisualDebugMode.advanced);
if (_config.campaignTracking){
_campaign = new CampaignManager(_config, _debug, _buffer, _domainHash, _formatedReferrer, _timeStamp);
_campaignInfo = _campaign.getCampaignInformation(_info.locationSearch, _noSessionInformation);
_debug.info(("campaignInfo: " + _campaignInfo.toURLString()), VisualDebugMode.advanced);
};
};
_x10Module = new X10();
_eventTracker = new X10();
_hasInitData = true;
};
if (_config.hasSiteOverlay){
_debug.warning("Site Overlay is not supported");
};
if (_debug.verbose){
_local2 = "";
_local2 = (_local2 + "_initData (misc)");
_local2 = (_local2 + ("\nflash version: " + _info.flashVersion.toString(4)));
_local2 = (_local2 + ("\nprotocol: " + _info.protocol));
_local2 = (_local2 + (("\ndefault domain name (auto): \"" + _info.domainName) + "\""));
_local2 = (_local2 + ("\nlanguage: " + _info.language));
_local2 = (_local2 + ("\ndomain hash: " + _getDomainHash()));
_local2 = (_local2 + ("\nuser-agent: " + _info.userAgent));
_debug.info(_local2, VisualDebugMode.geek);
};
}
public function getDetectTitle():Boolean{
_debug.info("getDetectTitle()");
return (_config.detectTitle);
}
public function resetSession():void{
_debug.info("resetSession()");
_buffer.resetCurrentSession();
}
public function getClientInfo():Boolean{
_debug.info("getClientInfo()");
return (_config.detectClientInfo);
}
private function _sendXEvent(_arg1:X10=null):void{
var _local2:Variables;
var _local3:EventInfo;
var _local4:Variables;
var _local5:Variables;
_initData();
if (_takeSample()){
_local2 = new Variables();
_local2.URIencode = true;
_local3 = new EventInfo(true, _x10Module, _arg1);
_local4 = _local3.toVariables();
_local5 = _renderMetricsSearchVariables();
_local2.join(_local4, _local5);
_gifRequest.send(_account, _local2, false, true);
};
}
public function setDetectFlash(_arg1:Boolean):void{
_config.detectFlash = _arg1;
_debug.info((("setDetectFlash( " + _config.detectFlash) + " )"));
}
public function setCampNameKey(_arg1:String):void{
_config.campaignKey.UCCN = _arg1;
var _local2 = (("setCampNameKey( " + _config.campaignKey.UCCN) + " )");
if (_debug.mode == VisualDebugMode.geek){
_debug.info((_local2 + " [UCCN]"));
} else {
_debug.info(_local2);
};
}
private function _formatReferrer():String{
var _local2:String;
var _local3:URL;
var _local4:URL;
var _local1:String = _info.referrer;
if ((((_local1 == "")) || ((_local1 == "localhost")))){
_local1 = "-";
} else {
_local2 = _info.domainName;
_local3 = new URL(_local1);
_local4 = new URL(("http://" + _local2));
if (_local3.hostName == _local2){
return ("-");
};
if (_local4.domain == _local3.domain){
if (_local4.subDomain != _local3.subDomain){
_local1 = "0";
};
};
if ((((_local1.charAt(0) == "[")) && (_local1.charAt((_local1.length - 1))))){
_local1 = "-";
};
};
_debug.info(("formated referrer: " + _local1), VisualDebugMode.advanced);
return (_local1);
}
private function _visitCode():Number{
if (_debug.verbose){
_debug.info(("visitCode: " + _buffer.utma.sessionId), VisualDebugMode.geek);
};
return (_buffer.utma.sessionId);
}
public function createEventTracker(_arg1:String):EventTracker{
_debug.info((("createEventTracker( " + _arg1) + " )"));
return (new EventTracker(_arg1, this));
}
public function addItem(_arg1:String, _arg2:String, _arg3:String, _arg4:String, _arg5:Number, _arg6:int):void{
_debug.warning((("addItem( " + [_arg1, _arg2, _arg3, _arg4, _arg5, _arg6].join(", ")) + " ) not implemented"));
}
public function clearIgnoredOrganic():void{
_debug.info("clearIgnoredOrganic()");
_config.organic.clearIgnoredKeywords();
}
public function setVar(_arg1:String):void{
var _local2:Variables;
if (((!((_arg1 == ""))) && (_isNotGoogleSearch()))){
_initData();
_buffer.utmv.domainHash = _domainHash;
_buffer.utmv.value = _arg1;
if (_debug.verbose){
_debug.info(_buffer.utmv.toString(), VisualDebugMode.geek);
};
_debug.info((("setVar( " + _arg1) + " )"));
if (_takeSample()){
_local2 = new Variables();
_local2.utmt = "var";
_gifRequest.send(_account, _local2);
};
} else {
_debug.warning((("setVar \"" + _arg1) + "\" is ignored"));
};
}
public function setDomainName(_arg1:String):void{
if (_arg1 == "auto"){
_config.domain.mode = DomainNameMode.auto;
} else {
if (_arg1 == "none"){
_config.domain.mode = DomainNameMode.none;
} else {
_config.domain.mode = DomainNameMode.custom;
_config.domain.name = _arg1;
};
};
_updateDomainName();
_debug.info((("setDomainName( " + _config.domainName) + " )"));
}
private function _updateDomainName():void{
var _local1:String;
if (_config.domain.mode == DomainNameMode.auto){
_local1 = _info.domainName;
if (_local1.substring(0, 4) == "www."){
_local1 = _local1.substring(4);
};
_config.domain.name = _local1;
};
_config.domainName = _config.domain.name.toLowerCase();
_debug.info(("domain name: " + _config.domainName), VisualDebugMode.advanced);
}
public function addTrans(_arg1:String, _arg2:String, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:String, _arg7:String, _arg8:String):Object{
_debug.warning((("addTrans( " + [_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8].join(", ")) + " ) not implemented"));
return (null);
}
private function _renderMetricsSearchVariables(_arg1:String=""):Variables{
var _local4:Variables;
var _local2:Variables = new Variables();
_local2.URIencode = true;
var _local3:DocumentInfo = new DocumentInfo(_config, _info, _formatedReferrer, _arg1, _adSense);
_debug.info(("docInfo: " + _local3.toURLString()), VisualDebugMode.geek);
if (_config.campaignTracking){
_local4 = _campaignInfo.toVariables();
};
var _local5:Variables = _browserInfo.toVariables();
_local2.join(_local3.toVariables(), _local5, _local4);
return (_local2);
}
public function setCampContentKey(_arg1:String):void{
_config.campaignKey.UCCT = _arg1;
var _local2 = (("setCampContentKey( " + _config.campaignKey.UCCT) + " )");
if (_debug.mode == VisualDebugMode.geek){
_debug.info((_local2 + " [UCCT]"));
} else {
_debug.info(_local2);
};
}
private function _handleCookie():void{
var _local1:String;
var _local2:String;
var _local3:Array;
var _local4:String;
if (_config.allowLinker){
};
if (((_buffer.hasUTMA()) && (!(_buffer.utma.isEmpty())))){
if (((!(_buffer.hasUTMB())) || (!(_buffer.hasUTMC())))){
_buffer.updateUTMA(_timeStamp);
_noSessionInformation = true;
};
if (_debug.verbose){
_debug.info(("from cookie " + _buffer.utma.toString()), VisualDebugMode.geek);
};
} else {
_debug.info("create a new utma", VisualDebugMode.advanced);
_buffer.utma.domainHash = _domainHash;
_buffer.utma.sessionId = _getUniqueSessionId();
_buffer.utma.firstTime = _timeStamp;
_buffer.utma.lastTime = _timeStamp;
_buffer.utma.currentTime = _timeStamp;
_buffer.utma.sessionCount = 1;
if (_debug.verbose){
_debug.info(_buffer.utma.toString(), VisualDebugMode.geek);
};
_noSessionInformation = true;
_isNewVisitor = true;
};
if (((_adSense.gaGlobal) && ((_adSense.dh == String(_domainHash))))){
if (_adSense.sid){
_buffer.utma.currentTime = Number(_adSense.sid);
if (_debug.verbose){
_local1 = "";
_local1 = (_local1 + "AdSense sid found\n");
_local1 = (_local1 + (((("Override currentTime(" + _buffer.utma.currentTime) + ") from AdSense sid(") + Number(_adSense.sid)) + ")"));
_debug.info(_local1, VisualDebugMode.geek);
};
};
if (_isNewVisitor){
if (_adSense.sid){
_buffer.utma.lastTime = Number(_adSense.sid);
if (_debug.verbose){
_local2 = "";
_local2 = (_local2 + "AdSense sid found (new visitor)\n");
_local2 = (_local2 + (((("Override lastTime(" + _buffer.utma.lastTime) + ") from AdSense sid(") + Number(_adSense.sid)) + ")"));
_debug.info(_local2, VisualDebugMode.geek);
};
};
if (_adSense.vid){
_local3 = _adSense.vid.split(".");
_buffer.utma.sessionId = Number(_local3[0]);
_buffer.utma.firstTime = Number(_local3[1]);
if (_debug.verbose){
_local4 = "";
_local4 = (_local4 + "AdSense vid found (new visitor)\n");
_local4 = (_local4 + (((("Override sessionId(" + _buffer.utma.sessionId) + ") from AdSense vid(") + Number(_local3[0])) + ")\n"));
_local4 = (_local4 + (((("Override firstTime(" + _buffer.utma.firstTime) + ") from AdSense vid(") + Number(_local3[1])) + ")"));
_debug.info(_local4, VisualDebugMode.geek);
};
};
if (_debug.verbose){
_debug.info(("AdSense modified : " + _buffer.utma.toString()), VisualDebugMode.geek);
};
};
};
_buffer.utmb.domainHash = _domainHash;
if (isNaN(_buffer.utmb.trackCount)){
_buffer.utmb.trackCount = 0;
};
if (isNaN(_buffer.utmb.token)){
_buffer.utmb.token = _config.tokenCliff;
};
if (isNaN(_buffer.utmb.lastTime)){
_buffer.utmb.lastTime = _buffer.utma.currentTime;
};
_buffer.utmc.domainHash = _domainHash;
if (_debug.verbose){
_debug.info(_buffer.utmb.toString(), VisualDebugMode.advanced);
_debug.info(_buffer.utmc.toString(), VisualDebugMode.advanced);
};
}
public function setLocalServerMode():void{
_config.serverMode = ServerOperationMode.local;
_debug.info("setLocalServerMode()");
}
public function clearIgnoredRef():void{
_debug.info("clearIgnoredRef()");
_config.organic.clearIgnoredReferrals();
}
public function setCampSourceKey(_arg1:String):void{
_config.campaignKey.UCSR = _arg1;
var _local2 = (("setCampSourceKey( " + _config.campaignKey.UCSR) + " )");
if (_debug.mode == VisualDebugMode.geek){
_debug.info((_local2 + " [UCSR]"));
} else {
_debug.info(_local2);
};
}
public function getLocalGifPath():String{
_debug.info("getLocalGifPath()");
return (_config.localGIFpath);
}
public function setLocalGifPath(_arg1:String):void{
_config.localGIFpath = _arg1;
_debug.info((("setLocalGifPath( " + _config.localGIFpath) + " )"));
}
public function getVersion():String{
_debug.info("getVersion()");
return (_config.version);
}
public function setAllowAnchor(_arg1:Boolean):void{
_config.allowAnchor = _arg1;
_debug.info((("setAllowAnchor( " + _config.allowAnchor) + " )"));
}
private function _isNotGoogleSearch():Boolean{
var _local1:String = _config.domainName;
var _local2 = (_local1.indexOf("www.google.") < 0);
var _local3 = (_local1.indexOf(".google.") < 0);
var _local4 = (_local1.indexOf("google.") < 0);
var _local5 = (_local1.indexOf("google.org") > -1);
return (((((((((_local2) || (_local3))) || (_local4))) || (!((_config.cookiePath == "/"))))) || (_local5)));
}
public function setSampleRate(_arg1:Number):void{
if (_arg1 < 0){
_debug.warning("sample rate can not be negative, ignoring value.");
} else {
_config.sampleRate = _arg1;
};
_debug.info((("setSampleRate( " + _config.sampleRate) + " )"));
}
private function _takeSample():Boolean{
if (_debug.verbose){
_debug.info((((("takeSample: (" + (_visitCode() % 10000)) + ") < (") + (_config.sampleRate * 10000)) + ")"), VisualDebugMode.geek);
};
return (((_visitCode() % 10000) < (_config.sampleRate * 10000)));
}
public function setCookiePath(_arg1:String):void{
_config.cookiePath = _arg1;
_debug.info((("setCookiePath( " + _config.cookiePath) + " )"));
}
public function setAllowHash(_arg1:Boolean):void{
_config.allowDomainHash = _arg1;
_debug.info((("setAllowHash( " + _config.allowDomainHash) + " )"));
}
private function _generateUserDataHash():Number{
var _local1 = "";
_local1 = (_local1 + _info.appName);
_local1 = (_local1 + _info.appVersion);
_local1 = (_local1 + _info.language);
_local1 = (_local1 + _info.platform);
_local1 = (_local1 + _info.userAgent.toString());
_local1 = (_local1 + (((_info.screenWidth + "x") + _info.screenHeight) + _info.screenColorDepth));
_local1 = (_local1 + _info.referrer);
return (Utils.generateHash(_local1));
}
public function setCampNOKey(_arg1:String):void{
_config.campaignKey.UCNO = _arg1;
var _local2 = (("setCampNOKey( " + _config.campaignKey.UCNO) + " )");
if (_debug.mode == VisualDebugMode.geek){
_debug.info((_local2 + " [UCNO]"));
} else {
_debug.info(_local2);
};
}
public function addIgnoredOrganic(_arg1:String):void{
_debug.info((("addIgnoredOrganic( " + _arg1) + " )"));
_config.organic.addIgnoredKeyword(_arg1);
}
public function setLocalRemoteServerMode():void{
_config.serverMode = ServerOperationMode.both;
_debug.info("setLocalRemoteServerMode()");
}
public function cookiePathCopy(_arg1:String):void{
_debug.warning((("cookiePathCopy( " + _arg1) + " ) not implemented"));
}
public function setDetectTitle(_arg1:Boolean):void{
_config.detectTitle = _arg1;
_debug.info((("setDetectTitle( " + _config.detectTitle) + " )"));
}
public function setCampTermKey(_arg1:String):void{
_config.campaignKey.UCTR = _arg1;
var _local2 = (("setCampTermKey( " + _config.campaignKey.UCTR) + " )");
if (_debug.mode == VisualDebugMode.geek){
_debug.info((_local2 + " [UCTR]"));
} else {
_debug.info(_local2);
};
}
public function getServiceMode():ServerOperationMode{
_debug.info("getServiceMode()");
return (_config.serverMode);
}
private function _trackMetrics(_arg1:String=""):void{
var _local2:Variables;
var _local3:Variables;
var _local4:Variables;
var _local5:EventInfo;
if (_takeSample()){
_local2 = new Variables();
_local2.URIencode = true;
if (((_x10Module) && (_x10Module.hasData()))){
_local5 = new EventInfo(false, _x10Module);
_local3 = _local5.toVariables();
};
_local4 = _renderMetricsSearchVariables(_arg1);
_local2.join(_local3, _local4);
_gifRequest.send(_account, _local2);
};
}
public function setCampaignTrack(_arg1:Boolean):void{
_config.campaignTracking = _arg1;
_debug.info((("setCampaignTrack( " + _config.campaignTracking) + " )"));
}
public function addIgnoredRef(_arg1:String):void{
_debug.info((("addIgnoredRef( " + _arg1) + " )"));
_config.organic.addIgnoredReferral(_arg1);
}
public function clearOrganic():void{
_debug.info("clearOrganic()");
_config.organic.clearEngines();
}
public function getDetectFlash():Boolean{
_debug.info("getDetectFlash()");
return (_config.detectFlash);
}
public function setCampMediumKey(_arg1:String):void{
_config.campaignKey.UCMD = _arg1;
var _local2 = (("setCampMediumKey( " + _config.campaignKey.UCMD) + " )");
if (_debug.mode == VisualDebugMode.geek){
_debug.info((_local2 + " [UCMD]"));
} else {
_debug.info(_local2);
};
}
private function _getUniqueSessionId():Number{
var _local1:Number = ((Utils.generate32bitRandom() ^ _generateUserDataHash()) * 2147483647);
_debug.info(("Session ID: " + _local1), VisualDebugMode.geek);
return (_local1);
}
private function _getDomainHash():Number{
if (((((!(_config.domainName)) || ((_config.domainName == "")))) || ((_config.domain.mode == DomainNameMode.none)))){
_config.domainName = "";
return (1);
};
_updateDomainName();
if (_config.allowDomainHash){
return (Utils.generateHash(_config.domainName));
};
return (1);
}
public function setSessionTimeout(_arg1:int):void{
_config.sessionTimeout = _arg1;
_debug.info((("setSessionTimeout( " + _config.sessionTimeout) + " )"));
}
public function getAccount():String{
_debug.info("getAccount()");
return (_account);
}
public function link(_arg1:String, _arg2:Boolean=false):void{
_debug.warning((("link( " + [_arg1, _arg2].join(", ")) + " ) not implemented"));
}
public function setRemoteServerMode():void{
_config.serverMode = ServerOperationMode.remote;
_debug.info("setRemoteServerMode()");
}
}
}//package com.google.analytics.v4
Section 91
//AnalyticsTracker (com.google.analytics.AnalyticsTracker)
package com.google.analytics {
import flash.events.*;
import com.google.analytics.v4.*;
import com.google.analytics.debug.*;
public interface AnalyticsTracker extends GoogleAnalyticsAPI, IEventDispatcher {
function set account(_arg1:String):void;
function get config():Configuration;
function get mode():String;
function set config(_arg1:Configuration):void;
function set mode(_arg1:String):void;
function set debug(_arg1:DebugConfiguration):void;
function get visualDebug():Boolean;
function get account():String;
function set visualDebug(_arg1:Boolean):void;
function isReady():Boolean;
function get debug():DebugConfiguration;
}
}//package com.google.analytics
Section 92
//API (com.google.analytics.API)
package com.google.analytics {
import com.google.analytics.utils.*;
public class API {
public static var version:Version = new Version();
version.major = 1;
version.minor = 0;
version.build = 1;
version.revision = "$Rev: 319 $ ".split(" ")[1];
}
}//package com.google.analytics
Section 93
//GATracker (com.google.analytics.GATracker)
package com.google.analytics {
import flash.display.*;
import flash.events.*;
import com.google.analytics.core.*;
import com.google.analytics.v4.*;
import com.google.analytics.debug.*;
import com.google.analytics.utils.*;
import com.google.analytics.external.*;
import com.google.analytics.events.*;
public class GATracker implements AnalyticsTracker {
private var _adSense:AdSenseGlobals;
private var _env:Environment;
private var _visualDebug:Boolean;
private var _idleTimer:IdleTimer;
private var _debug:DebugConfiguration;
private var _buffer:Buffer;
private var _config:Configuration;
private var _mode:String;
private var _display:DisplayObject;
private var _jsproxy:JavascriptProxy;
private var _dom:HTMLDOM;
private var _eventDispatcher:EventDispatcher;
private var _ready:Boolean;// = false
private var _gifRequest:GIFRequest;
private var _account:String;
private var _tracker:GoogleAnalyticsAPI;
public static var version:Version = API.version;
public static var autobuild:Boolean = true;
public function GATracker(_arg1:DisplayObject, _arg2:String, _arg3:String="AS3", _arg4:Boolean=false, _arg5:Configuration=null, _arg6:DebugConfiguration=null){
_display = _arg1;
_eventDispatcher = new EventDispatcher(this);
_tracker = new TrackerCache();
this.account = _arg2;
this.mode = _arg3;
this.visualDebug = _arg4;
if (!_arg6){
this.debug = new DebugConfiguration();
};
if (!_arg5){
this.config = new Configuration(_arg6);
};
if (autobuild){
_factory();
};
}
public function link(_arg1:String, _arg2:Boolean=false):void{
_tracker.link(_arg1, _arg2);
}
public function addOrganic(_arg1:String, _arg2:String):void{
_tracker.addOrganic(_arg1, _arg2);
}
public function setAllowLinker(_arg1:Boolean):void{
_tracker.setAllowLinker(_arg1);
}
public function trackEvent(_arg1:String, _arg2:String, _arg3:String=null, _arg4:Number=NaN):Boolean{
return (_tracker.trackEvent(_arg1, _arg2, _arg3, _arg4));
}
public function setCookieTimeout(_arg1:int):void{
_tracker.setCookieTimeout(_arg1);
}
public function trackTrans():void{
_tracker.trackTrans();
}
public function getClientInfo():Boolean{
return (_tracker.getClientInfo());
}
public function trackPageview(_arg1:String=""):void{
_tracker.trackPageview(_arg1);
}
public function setClientInfo(_arg1:Boolean):void{
_tracker.setClientInfo(_arg1);
}
public function get account():String{
return (_account);
}
public function linkByPost(_arg1:Object, _arg2:Boolean=false):void{
_tracker.linkByPost(_arg1, _arg2);
}
public function getDetectTitle():Boolean{
return (_tracker.getDetectTitle());
}
public function dispatchEvent(_arg1:Event):Boolean{
return (_eventDispatcher.dispatchEvent(_arg1));
}
public function get config():Configuration{
return (_config);
}
public function set mode(_arg1:String):void{
_mode = _arg1;
}
public function removeEventListener(_arg1:String, _arg2:Function, _arg3:Boolean=false):void{
_eventDispatcher.removeEventListener(_arg1, _arg2, _arg3);
}
public function setDetectFlash(_arg1:Boolean):void{
_tracker.setDetectFlash(_arg1);
}
public function resetSession():void{
_tracker.resetSession();
}
public function setCampNameKey(_arg1:String):void{
_tracker.setCampNameKey(_arg1);
}
public function get debug():DebugConfiguration{
return (_debug);
}
public function addItem(_arg1:String, _arg2:String, _arg3:String, _arg4:String, _arg5:Number, _arg6:int):void{
_tracker.addItem(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6);
}
private function _bridgeFactory():GoogleAnalyticsAPI{
debug.info(((("GATracker (Bridge) v" + version) + "\naccount: ") + account));
return (new Bridge(account, _debug, _jsproxy));
}
public function clearIgnoredOrganic():void{
_tracker.clearIgnoredOrganic();
}
public function set account(_arg1:String):void{
_account = _arg1;
}
public function setVar(_arg1:String):void{
_tracker.setVar(_arg1);
}
public function build():void{
if (!isReady()){
_factory();
};
}
public function addEventListener(_arg1:String, _arg2:Function, _arg3:Boolean=false, _arg4:int=0, _arg5:Boolean=false):void{
_eventDispatcher.addEventListener(_arg1, _arg2, _arg3, _arg4, _arg5);
}
public function setDomainName(_arg1:String):void{
_tracker.setDomainName(_arg1);
}
public function createEventTracker(_arg1:String):EventTracker{
return (_tracker.createEventTracker(_arg1));
}
public function setCampSourceKey(_arg1:String):void{
_tracker.setCampSourceKey(_arg1);
}
public function set config(_arg1:Configuration):void{
_config = _arg1;
}
public function addTrans(_arg1:String, _arg2:String, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:String, _arg7:String, _arg8:String):Object{
return (_tracker.addTrans(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8));
}
public function setCampContentKey(_arg1:String):void{
_tracker.setCampContentKey(_arg1);
}
public function willTrigger(_arg1:String):Boolean{
return (_eventDispatcher.willTrigger(_arg1));
}
public function setLocalServerMode():void{
_tracker.setLocalServerMode();
}
public function getLocalGifPath():String{
return (_tracker.getLocalGifPath());
}
public function setAllowAnchor(_arg1:Boolean):void{
_tracker.setAllowAnchor(_arg1);
}
public function clearIgnoredRef():void{
_tracker.clearIgnoredRef();
}
public function isReady():Boolean{
return (_ready);
}
public function get mode():String{
return (_mode);
}
public function set debug(_arg1:DebugConfiguration):void{
_debug = _arg1;
}
public function setLocalGifPath(_arg1:String):void{
_tracker.setLocalGifPath(_arg1);
}
public function getVersion():String{
return (_tracker.getVersion());
}
public function setSampleRate(_arg1:Number):void{
_tracker.setSampleRate(_arg1);
}
public function setCookiePath(_arg1:String):void{
_tracker.setCookiePath(_arg1);
}
public function setAllowHash(_arg1:Boolean):void{
_tracker.setAllowHash(_arg1);
}
public function addIgnoredOrganic(_arg1:String):void{
_tracker.addIgnoredOrganic(_arg1);
}
public function setLocalRemoteServerMode():void{
_tracker.setLocalRemoteServerMode();
}
public function cookiePathCopy(_arg1:String):void{
_tracker.cookiePathCopy(_arg1);
}
private function _factory():void{
var _local1:GoogleAnalyticsAPI;
_jsproxy = new JavascriptProxy(debug);
if (visualDebug){
debug.layout = new Layout(debug, _display);
debug.active = visualDebug;
};
var _local2:TrackerCache = (_tracker as TrackerCache);
switch (mode){
case TrackerMode.BRIDGE:
_local1 = _bridgeFactory();
break;
case TrackerMode.AS3:
default:
_local1 = _trackerFactory();
};
if (!_local2.isEmpty()){
_local2.tracker = _local1;
_local2.flush();
};
_tracker = _local1;
_ready = true;
dispatchEvent(new AnalyticsEvent(AnalyticsEvent.READY, this));
}
public function setCampTermKey(_arg1:String):void{
_tracker.setCampTermKey(_arg1);
}
private function _trackerFactory():GoogleAnalyticsAPI{
debug.info(((("GATracker (AS3) v" + version) + "\naccount: ") + account));
_adSense = new AdSenseGlobals(debug);
_dom = new HTMLDOM(debug);
_dom.cacheProperties();
_env = new Environment("", "", "", debug, _dom);
_buffer = new Buffer(config, debug, false);
_gifRequest = new GIFRequest(config, debug, _buffer, _env);
_idleTimer = new IdleTimer(config, debug, _display, _buffer);
_env.url = _display.stage.loaderInfo.url;
return (new Tracker(account, config, debug, _env, _buffer, _gifRequest, _adSense));
}
public function setCampNOKey(_arg1:String):void{
_tracker.setCampNOKey(_arg1);
}
public function setDetectTitle(_arg1:Boolean):void{
_tracker.setDetectTitle(_arg1);
}
public function getServiceMode():ServerOperationMode{
return (_tracker.getServiceMode());
}
public function clearOrganic():void{
_tracker.clearOrganic();
}
public function setCampaignTrack(_arg1:Boolean):void{
_tracker.setCampaignTrack(_arg1);
}
public function addIgnoredRef(_arg1:String):void{
_tracker.addIgnoredRef(_arg1);
}
public function set visualDebug(_arg1:Boolean):void{
_visualDebug = _arg1;
}
public function setCampMediumKey(_arg1:String):void{
_tracker.setCampMediumKey(_arg1);
}
public function getDetectFlash():Boolean{
return (_tracker.getDetectFlash());
}
public function get visualDebug():Boolean{
return (_visualDebug);
}
public function hasEventListener(_arg1:String):Boolean{
return (_eventDispatcher.hasEventListener(_arg1));
}
public function getAccount():String{
return (_tracker.getAccount());
}
public function setSessionTimeout(_arg1:int):void{
_tracker.setSessionTimeout(_arg1);
}
public function setRemoteServerMode():void{
_tracker.setRemoteServerMode();
}
}
var _local1:* = ServerOperationMode;
return (_local1);
}//package com.google.analytics
Section 94
//Color (fl.motion.Color)
package fl.motion {
import flash.display.*;
import flash.geom.*;
public class Color extends ColorTransform {
private var _tintMultiplier:Number;// = 0
private var _tintColor:Number;// = 0
public function Color(_arg1:Number=1, _arg2:Number=1, _arg3:Number=1, _arg4:Number=1, _arg5:Number=0, _arg6:Number=0, _arg7:Number=0, _arg8:Number=0){
_tintColor = 0;
_tintMultiplier = 0;
super(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8);
}
public function setTint(_arg1:uint, _arg2:Number):void{
var _local3:uint;
var _local4:uint;
var _local5:uint;
this._tintColor = _arg1;
this._tintMultiplier = _arg2;
this.redMultiplier = (this.greenMultiplier = (this.blueMultiplier = (1 - _arg2)));
_local3 = ((_arg1 >> 16) & 0xFF);
_local4 = ((_arg1 >> 8) & 0xFF);
_local5 = (_arg1 & 0xFF);
this.redOffset = Math.round((_local3 * _arg2));
this.greenOffset = Math.round((_local4 * _arg2));
this.blueOffset = Math.round((_local5 * _arg2));
}
public function set tintColor(_arg1:uint):void{
this.setTint(_arg1, this.tintMultiplier);
}
public function get brightness():Number{
return ((this.redOffset) ? (1 - this.redMultiplier) : (this.redMultiplier - 1));
}
private function deriveTintColor():uint{
var _local1:Number;
var _local2:uint;
var _local3:uint;
var _local4:uint;
var _local5:uint;
_local1 = (1 / this.tintMultiplier);
_local2 = Math.round((this.redOffset * _local1));
_local3 = Math.round((this.greenOffset * _local1));
_local4 = Math.round((this.blueOffset * _local1));
_local5 = (((_local2 << 16) | (_local3 << 8)) | _local4);
return (_local5);
}
public function get tintMultiplier():Number{
return (this._tintMultiplier);
}
public function get tintColor():uint{
return (this._tintColor);
}
public function set brightness(_arg1:Number):void{
var _local2:Number;
var _local3:Number;
if (_arg1 > 1){
_arg1 = 1;
} else {
if (_arg1 < -1){
_arg1 = -1;
};
};
_local2 = (1 - Math.abs(_arg1));
_local3 = 0;
if (_arg1 > 0){
_local3 = (_arg1 * 0xFF);
};
this.redMultiplier = (this.greenMultiplier = (this.blueMultiplier = _local2));
this.redOffset = (this.greenOffset = (this.blueOffset = _local3));
}
public function set tintMultiplier(_arg1:Number):void{
this.setTint(this.tintColor, _arg1);
}
private function parseXML(_arg1:XML=null):Color{
var _local2:XML;
var _local3:XML;
var _local4:String;
var _local5:uint;
if (!_arg1){
return (this);
};
_local2 = _arg1.elements()[0];
if (!_local2){
return (this);
};
for each (_local3 in _local2.attributes()) {
_local4 = _local3.localName();
if (_local4 == "tintColor"){
_local5 = (Number(_local3.toString()) as uint);
this.tintColor = _local5;
} else {
this[_local4] = Number(_local3.toString());
};
};
return (this);
}
public static function interpolateColor(_arg1:uint, _arg2:uint, _arg3:Number):uint{
var _local4:Number;
var _local5:uint;
var _local6:uint;
var _local7:uint;
var _local8:uint;
var _local9:uint;
var _local10:uint;
var _local11:uint;
var _local12:uint;
var _local13:uint;
var _local14:uint;
var _local15:uint;
var _local16:uint;
var _local17:uint;
_local4 = (1 - _arg3);
_local5 = ((_arg1 >> 24) & 0xFF);
_local6 = ((_arg1 >> 16) & 0xFF);
_local7 = ((_arg1 >> 8) & 0xFF);
_local8 = (_arg1 & 0xFF);
_local9 = ((_arg2 >> 24) & 0xFF);
_local10 = ((_arg2 >> 16) & 0xFF);
_local11 = ((_arg2 >> 8) & 0xFF);
_local12 = (_arg2 & 0xFF);
_local13 = ((_local5 * _local4) + (_local9 * _arg3));
_local14 = ((_local6 * _local4) + (_local10 * _arg3));
_local15 = ((_local7 * _local4) + (_local11 * _arg3));
_local16 = ((_local8 * _local4) + (_local12 * _arg3));
_local17 = ((((_local13 << 24) | (_local14 << 16)) | (_local15 << 8)) | _local16);
return (_local17);
}
public static function interpolateTransform(_arg1:ColorTransform, _arg2:ColorTransform, _arg3:Number):ColorTransform{
var _local4:Number;
var _local5:ColorTransform;
_local4 = (1 - _arg3);
_local5 = new ColorTransform(((_arg1.redMultiplier * _local4) + (_arg2.redMultiplier * _arg3)), ((_arg1.greenMultiplier * _local4) + (_arg2.greenMultiplier * _arg3)), ((_arg1.blueMultiplier * _local4) + (_arg2.blueMultiplier * _arg3)), ((_arg1.alphaMultiplier * _local4) + (_arg2.alphaMultiplier * _arg3)), ((_arg1.redOffset * _local4) + (_arg2.redOffset * _arg3)), ((_arg1.greenOffset * _local4) + (_arg2.greenOffset * _arg3)), ((_arg1.blueOffset * _local4) + (_arg2.blueOffset * _arg3)), ((_arg1.alphaOffset * _local4) + (_arg2.alphaOffset * _arg3)));
return (_local5);
}
public static function fromXML(_arg1:XML):Color{
return (Color(new (Color).parseXML(_arg1)));
}
}
}//package fl.motion
Section 95
//00howtoplay_206 (rock_the_hall_gamesgames_com_fla.00howtoplay_206)
package rock_the_hall_gamesgames_com_fla {
import flash.display.*;
public dynamic class 00howtoplay_206 extends MovieClip {
public var mctxtCash:MovieClip;
public var mctxtCash2:MovieClip;
}
}//package rock_the_hall_gamesgames_com_fla
Section 96
//ballon_move_186 (rock_the_hall_gamesgames_com_fla.ballon_move_186)
package rock_the_hall_gamesgames_com_fla {
import flash.display.*;
public dynamic class ballon_move_186 extends MovieClip {
public var mcTitle:MovieClip;
public function ballon_move_186(){
addFrameScript(32, frame33);
}
function frame33(){
stop();
}
}
}//package rock_the_hall_gamesgames_com_fla
Section 97
//band_hiphop_main_menu_27 (rock_the_hall_gamesgames_com_fla.band_hiphop_main_menu_27)
package rock_the_hall_gamesgames_com_fla {
import flash.display.*;
public dynamic class band_hiphop_main_menu_27 extends MovieClip {
public function band_hiphop_main_menu_27(){
addFrameScript(100, frame101);
}
function frame101(){
stop();
}
}
}//package rock_the_hall_gamesgames_com_fla
Section 98
//band_rock_main_menu_26 (rock_the_hall_gamesgames_com_fla.band_rock_main_menu_26)
package rock_the_hall_gamesgames_com_fla {
import flash.display.*;
public dynamic class band_rock_main_menu_26 extends MovieClip {
public function band_rock_main_menu_26(){
addFrameScript(100, frame101);
}
function frame101(){
stop();
}
}
}//package rock_the_hall_gamesgames_com_fla
Section 99
//barUp_state0_130 (rock_the_hall_gamesgames_com_fla.barUp_state0_130)
package rock_the_hall_gamesgames_com_fla {
import flash.display.*;
public dynamic class barUp_state0_130 extends MovieClip {
public var mcBar:bar_0;
}
}//package rock_the_hall_gamesgames_com_fla
Section 100
//barUp_state1_133 (rock_the_hall_gamesgames_com_fla.barUp_state1_133)
package rock_the_hall_gamesgames_com_fla {
import flash.display.*;
public dynamic class barUp_state1_133 extends MovieClip {
public var mcBar:bar_1;
}
}//package rock_the_hall_gamesgames_com_fla
Section 101
//branding_3 (rock_the_hall_gamesgames_com_fla.branding_3)
package rock_the_hall_gamesgames_com_fla {
import flash.display.*;
public dynamic class branding_3 extends MovieClip {
public var mcHitArea:MovieClip;
}
}//package rock_the_hall_gamesgames_com_fla
Section 102
//buttonBand_98 (rock_the_hall_gamesgames_com_fla.buttonBand_98)
package rock_the_hall_gamesgames_com_fla {
import flash.display.*;
public dynamic class buttonBand_98 extends MovieClip {
public var out:MovieClip;
public var down:MovieClip;
public var btnHitArea:SimpleButton;
public var over:MovieClip;
public var disable:MovieClip;
public function buttonBand_98(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package rock_the_hall_gamesgames_com_fla
Section 103
//buttonFX_41 (rock_the_hall_gamesgames_com_fla.buttonFX_41)
package rock_the_hall_gamesgames_com_fla {
import flash.display.*;
public dynamic class buttonFX_41 extends MovieClip {
public var out:MovieClip;
public var down:MovieClip;
public var btnHitArea:SimpleButton;
public var over:MovieClip;
public function buttonFX_41(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package rock_the_hall_gamesgames_com_fla
Section 104
//buttonFX_off_over_48 (rock_the_hall_gamesgames_com_fla.buttonFX_off_over_48)
package rock_the_hall_gamesgames_com_fla {
import flash.display.*;
public dynamic class buttonFX_off_over_48 extends MovieClip {
public function buttonFX_off_over_48(){
addFrameScript(0, frame1, 29, frame30);
}
function frame1(){
stop();
}
function frame30(){
stop();
}
}
}//package rock_the_hall_gamesgames_com_fla
Section 105
//buttonFX_on_over_44 (rock_the_hall_gamesgames_com_fla.buttonFX_on_over_44)
package rock_the_hall_gamesgames_com_fla {
import flash.display.*;
public dynamic class buttonFX_on_over_44 extends MovieClip {
public function buttonFX_on_over_44(){
addFrameScript(0, frame1, 29, frame30);
}
function frame1(){
stop();
}
function frame30(){
stop();
}
}
}//package rock_the_hall_gamesgames_com_fla
Section 106
//buttonMusic_49 (rock_the_hall_gamesgames_com_fla.buttonMusic_49)
package rock_the_hall_gamesgames_com_fla {
import flash.display.*;
public dynamic class buttonMusic_49 extends MovieClip {
public var out:MovieClip;
public var down:MovieClip;
public var btnHitArea:SimpleButton;
public var over:MovieClip;
public function buttonMusic_49(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package rock_the_hall_gamesgames_com_fla
Section 107
//buttonMusic_off_over_55 (rock_the_hall_gamesgames_com_fla.buttonMusic_off_over_55)
package rock_the_hall_gamesgames_com_fla {
import flash.display.*;
public dynamic class buttonMusic_off_over_55 extends MovieClip {
public function buttonMusic_off_over_55(){
addFrameScript(0, frame1, 29, frame30);
}
function frame1(){
stop();
}
function frame30(){
stop();
}
}
}//package rock_the_hall_gamesgames_com_fla
Section 108
//buttonMusic_on_over_52 (rock_the_hall_gamesgames_com_fla.buttonMusic_on_over_52)
package rock_the_hall_gamesgames_com_fla {
import flash.display.*;
public dynamic class buttonMusic_on_over_52 extends MovieClip {
public function buttonMusic_on_over_52(){
addFrameScript(0, frame1, 29, frame30);
}
function frame1(){
stop();
}
function frame30(){
stop();
}
}
}//package rock_the_hall_gamesgames_com_fla
Section 109
//cash_negativHowtoplay_204 (rock_the_hall_gamesgames_com_fla.cash_negativHowtoplay_204)
package rock_the_hall_gamesgames_com_fla {
import flash.display.*;
public dynamic class cash_negativHowtoplay_204 extends MovieClip {
public var mctxtCashIn:MovieClip;
}
}//package rock_the_hall_gamesgames_com_fla
Section 110
//cash2_72 (rock_the_hall_gamesgames_com_fla.cash2_72)
package rock_the_hall_gamesgames_com_fla {
import flash.display.*;
import flash.text.*;
public dynamic class cash2_72 extends MovieClip {
public var txtCash:TextField;
}
}//package rock_the_hall_gamesgames_com_fla
Section 111
//cashhowtoplay_207 (rock_the_hall_gamesgames_com_fla.cashhowtoplay_207)
package rock_the_hall_gamesgames_com_fla {
import flash.display.*;
import flash.text.*;
public dynamic class cashhowtoplay_207 extends MovieClip {
public var txtCash:TextField;
}
}//package rock_the_hall_gamesgames_com_fla
Section 112
//cashhowtoplay2_208 (rock_the_hall_gamesgames_com_fla.cashhowtoplay2_208)
package rock_the_hall_gamesgames_com_fla {
import flash.display.*;
import flash.text.*;
public dynamic class cashhowtoplay2_208 extends MovieClip {
public var txtCash:TextField;
}
}//package rock_the_hall_gamesgames_com_fla
Section 113
//cashnumbers_67 (rock_the_hall_gamesgames_com_fla.cashnumbers_67)
package rock_the_hall_gamesgames_com_fla {
import flash.display.*;
import flash.text.*;
public dynamic class cashnumbers_67 extends MovieClip {
public var txtCashValue:TextField;
}
}//package rock_the_hall_gamesgames_com_fla
Section 114
//cashnumbers2_71 (rock_the_hall_gamesgames_com_fla.cashnumbers2_71)
package rock_the_hall_gamesgames_com_fla {
import flash.display.*;
import flash.text.*;
public dynamic class cashnumbers2_71 extends MovieClip {
public var txtCashValue:TextField;
}
}//package rock_the_hall_gamesgames_com_fla
Section 115
//cashValue_66 (rock_the_hall_gamesgames_com_fla.cashValue_66)
package rock_the_hall_gamesgames_com_fla {
import flash.display.*;
public dynamic class cashValue_66 extends MovieClip {
public var mcCashValuePos:MovieClip;
public var mcCashValueNeg:MovieClip;
public var mcCashValueNone:MovieClip;
public var mcCashPos:MovieClip;
public var mcCashNone:MovieClip;
public var mcCashNeg:MovieClip;
}
}//package rock_the_hall_gamesgames_com_fla
Section 116
//clock_64 (rock_the_hall_gamesgames_com_fla.clock_64)
package rock_the_hall_gamesgames_com_fla {
import flash.display.*;
public dynamic class clock_64 extends MovieClip {
public var mcTime:MovieClip;
public function clock_64(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package rock_the_hall_gamesgames_com_fla
Section 117
//country_menu_60 (rock_the_hall_gamesgames_com_fla.country_menu_60)
package rock_the_hall_gamesgames_com_fla {
import flash.display.*;
public dynamic class country_menu_60 extends MovieClip {
public function country_menu_60(){
addFrameScript(100, frame101);
}
function frame101(){
stop();
}
}
}//package rock_the_hall_gamesgames_com_fla
Section 118
//disableButtonMC_32 (rock_the_hall_gamesgames_com_fla.disableButtonMC_32)
package rock_the_hall_gamesgames_com_fla {
import flash.display.*;
import flash.text.*;
public dynamic class disableButtonMC_32 extends MovieClip {
public var txtText:TextField;
}
}//package rock_the_hall_gamesgames_com_fla
Section 119
//energyPower2_157 (rock_the_hall_gamesgames_com_fla.energyPower2_157)
package rock_the_hall_gamesgames_com_fla {
import flash.display.*;
public dynamic class energyPower2_157 extends MovieClip {
public function energyPower2_157(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package rock_the_hall_gamesgames_com_fla
Section 120
//energyPower3_160 (rock_the_hall_gamesgames_com_fla.energyPower3_160)
package rock_the_hall_gamesgames_com_fla {
import flash.display.*;
public dynamic class energyPower3_160 extends MovieClip {
public function energyPower3_160(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package rock_the_hall_gamesgames_com_fla
Section 121
//entryUP_state0_162 (rock_the_hall_gamesgames_com_fla.entryUP_state0_162)
package rock_the_hall_gamesgames_com_fla {
import flash.display.*;
public dynamic class entryUP_state0_162 extends MovieClip {
public var mcEnt:MovieClip;
}
}//package rock_the_hall_gamesgames_com_fla
Section 122
//front_wall_164 (rock_the_hall_gamesgames_com_fla.front_wall_164)
package rock_the_hall_gamesgames_com_fla {
import flash.display.*;
public dynamic class front_wall_164 extends MovieClip {
public function front_wall_164(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package rock_the_hall_gamesgames_com_fla
Section 123
//front_wall_298 (rock_the_hall_gamesgames_com_fla.front_wall_298)
package rock_the_hall_gamesgames_com_fla {
import flash.display.*;
public dynamic class front_wall_298 extends MovieClip {
public function front_wall_298(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package rock_the_hall_gamesgames_com_fla
Section 124
//gameoverTitle_187 (rock_the_hall_gamesgames_com_fla.gameoverTitle_187)
package rock_the_hall_gamesgames_com_fla {
import flash.display.*;
import flash.text.*;
public dynamic class gameoverTitle_187 extends MovieClip {
public var txtTitle:TextField;
}
}//package rock_the_hall_gamesgames_com_fla
Section 125
//goal_203 (rock_the_hall_gamesgames_com_fla.goal_203)
package rock_the_hall_gamesgames_com_fla {
import flash.display.*;
import flash.text.*;
public dynamic class goal_203 extends MovieClip {
public var mcGoal:TextField;
}
}//package rock_the_hall_gamesgames_com_fla
Section 126
//Goal_Reached_82 (rock_the_hall_gamesgames_com_fla.Goal_Reached_82)
package rock_the_hall_gamesgames_com_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Goal_Reached_82 extends MovieClip {
public var txtTitleBlack2:TextField;
}
}//package rock_the_hall_gamesgames_com_fla
Section 127
//goal_reached2_84 (rock_the_hall_gamesgames_com_fla.goal_reached2_84)
package rock_the_hall_gamesgames_com_fla {
import flash.display.*;
import flash.text.*;
public dynamic class goal_reached2_84 extends MovieClip {
public var txtTitleBlack:TextField;
}
}//package rock_the_hall_gamesgames_com_fla
Section 128
//goal_reached3_81 (rock_the_hall_gamesgames_com_fla.goal_reached3_81)
package rock_the_hall_gamesgames_com_fla {
import flash.display.*;
import flash.text.*;
public dynamic class goal_reached3_81 extends MovieClip {
public var txtTitleWhite:TextField;
}
}//package rock_the_hall_gamesgames_com_fla
Section 129
//goal_reached5_83 (rock_the_hall_gamesgames_com_fla.goal_reached5_83)
package rock_the_hall_gamesgames_com_fla {
import flash.display.*;
import flash.text.*;
public dynamic class goal_reached5_83 extends MovieClip {
public var txtTitleRed:TextField;
}
}//package rock_the_hall_gamesgames_com_fla
Section 130
//goalReached_80 (rock_the_hall_gamesgames_com_fla.goalReached_80)
package rock_the_hall_gamesgames_com_fla {
import flash.display.*;
public dynamic class goalReached_80 extends MovieClip {
public var mcTitleBlack2:MovieClip;
public var mcTitleBlack:MovieClip;
public var mcTitleRed:MovieClip;
public var mcTitleWhite:MovieClip;
public function goalReached_80(){
addFrameScript(0, frame1, 74, frame75);
}
function frame75(){
this.gotoAndStop(1);
}
function frame1(){
stop();
this.visible = false;
}
}
}//package rock_the_hall_gamesgames_com_fla
Section 131
//highscore_189 (rock_the_hall_gamesgames_com_fla.highscore_189)
package rock_the_hall_gamesgames_com_fla {
import flash.display.*;
import flash.text.*;
public dynamic class highscore_189 extends MovieClip {
public var mcText:TextField;
}
}//package rock_the_hall_gamesgames_com_fla
Section 132
//howtoplay_200 (rock_the_hall_gamesgames_com_fla.howtoplay_200)
package rock_the_hall_gamesgames_com_fla {
import flash.display.*;
import flash.text.*;
public dynamic class howtoplay_200 extends MovieClip {
public var mcText:TextField;
}
}//package rock_the_hall_gamesgames_com_fla
Section 133
//hudtext_78 (rock_the_hall_gamesgames_com_fla.hudtext_78)
package rock_the_hall_gamesgames_com_fla {
import flash.display.*;
import flash.text.*;
public dynamic class hudtext_78 extends MovieClip {
public var txtText:TextField;
}
}//package rock_the_hall_gamesgames_com_fla
Section 134
//intro_upgrade_181 (rock_the_hall_gamesgames_com_fla.intro_upgrade_181)
package rock_the_hall_gamesgames_com_fla {
import flash.display.*;
public dynamic class intro_upgrade_181 extends MovieClip {
public var mcTitleBlack2:MovieClip;
public var mcTitleBlack:MovieClip;
public var mcTitleRed:MovieClip;
public var mcTitleWhite:MovieClip;
public function intro_upgrade_181(){
addFrameScript(0, frame1, 84, frame85);
}
function frame85(){
stop();
}
function frame1(){
stop();
}
}
}//package rock_the_hall_gamesgames_com_fla
Section 135
//m_button_mouseon_40 (rock_the_hall_gamesgames_com_fla.m_button_mouseon_40)
package rock_the_hall_gamesgames_com_fla {
import flash.display.*;
import flash.text.*;
public dynamic class m_button_mouseon_40 extends MovieClip {
public var txtText:TextField;
}
}//package rock_the_hall_gamesgames_com_fla
Section 136
//m_button_mouseon_76 (rock_the_hall_gamesgames_com_fla.m_button_mouseon_76)
package rock_the_hall_gamesgames_com_fla {
import flash.display.*;
import flash.text.*;
public dynamic class m_button_mouseon_76 extends MovieClip {
public var txtText:TextField;
}
}//package rock_the_hall_gamesgames_com_fla
Section 137
//m_button_mouseon_fontsmall_217 (rock_the_hall_gamesgames_com_fla.m_button_mouseon_fontsmall_217)
package rock_the_hall_gamesgames_com_fla {
import flash.display.*;
import flash.text.*;
public dynamic class m_button_mouseon_fontsmall_217 extends MovieClip {
public var txtText:TextField;
}
}//package rock_the_hall_gamesgames_com_fla
Section 138
//m_button_mouseon_moregame_59 (rock_the_hall_gamesgames_com_fla.m_button_mouseon_moregame_59)
package rock_the_hall_gamesgames_com_fla {
import flash.display.*;
import flash.text.*;
public dynamic class m_button_mouseon_moregame_59 extends MovieClip {
public var txtText:TextField;
}
}//package rock_the_hall_gamesgames_com_fla
Section 139
//m_button_normal_38 (rock_the_hall_gamesgames_com_fla.m_button_normal_38)
package rock_the_hall_gamesgames_com_fla {
import flash.display.*;
import flash.text.*;
public dynamic class m_button_normal_38 extends MovieClip {
public var txtText:TextField;
}
}//package rock_the_hall_gamesgames_com_fla
Section 140
//m_button_normal_74 (rock_the_hall_gamesgames_com_fla.m_button_normal_74)
package rock_the_hall_gamesgames_com_fla {
import flash.display.*;
import flash.text.*;
public dynamic class m_button_normal_74 extends MovieClip {
public var txtText:TextField;
public function m_button_normal_74(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package rock_the_hall_gamesgames_com_fla
Section 141
//m_button_normal_fontsmall_215 (rock_the_hall_gamesgames_com_fla.m_button_normal_fontsmall_215)
package rock_the_hall_gamesgames_com_fla {
import flash.display.*;
import flash.text.*;
public dynamic class m_button_normal_fontsmall_215 extends MovieClip {
public var txtText:TextField;
}
}//package rock_the_hall_gamesgames_com_fla
Section 142
//m_button_normal_moregame_57 (rock_the_hall_gamesgames_com_fla.m_button_normal_moregame_57)
package rock_the_hall_gamesgames_com_fla {
import flash.display.*;
import flash.text.*;
public dynamic class m_button_normal_moregame_57 extends MovieClip {
public var txtText:TextField;
}
}//package rock_the_hall_gamesgames_com_fla
Section 143
//m_button_over_39 (rock_the_hall_gamesgames_com_fla.m_button_over_39)
package rock_the_hall_gamesgames_com_fla {
import flash.display.*;
import flash.text.*;
public dynamic class m_button_over_39 extends MovieClip {
public var txtText:TextField;
}
}//package rock_the_hall_gamesgames_com_fla
Section 144
//m_button_over_75 (rock_the_hall_gamesgames_com_fla.m_button_over_75)
package rock_the_hall_gamesgames_com_fla {
import flash.display.*;
import flash.text.*;
public dynamic class m_button_over_75 extends MovieClip {
public var txtText:TextField;
}
}//package rock_the_hall_gamesgames_com_fla
Section 145
//m_button_over_fontsmall_216 (rock_the_hall_gamesgames_com_fla.m_button_over_fontsmall_216)
package rock_the_hall_gamesgames_com_fla {
import flash.display.*;
import flash.text.*;
public dynamic class m_button_over_fontsmall_216 extends MovieClip {
public var txtText:TextField;
}
}//package rock_the_hall_gamesgames_com_fla
Section 146
//m_button_over_moregame_58 (rock_the_hall_gamesgames_com_fla.m_button_over_moregame_58)
package rock_the_hall_gamesgames_com_fla {
import flash.display.*;
import flash.text.*;
public dynamic class m_button_over_moregame_58 extends MovieClip {
public var txtText:TextField;
}
}//package rock_the_hall_gamesgames_com_fla
Section 147
//main_char_main_menu_29 (rock_the_hall_gamesgames_com_fla.main_char_main_menu_29)
package rock_the_hall_gamesgames_com_fla {
import flash.display.*;
public dynamic class main_char_main_menu_29 extends MovieClip {
public function main_char_main_menu_29(){
addFrameScript(100, frame101);
}
function frame101(){
stop();
}
}
}//package rock_the_hall_gamesgames_com_fla
Section 148
//malbal_195 (rock_the_hall_gamesgames_com_fla.malbal_195)
package rock_the_hall_gamesgames_com_fla {
import flash.display.*;
public dynamic class malbal_195 extends MovieClip {
public function malbal_195(){
addFrameScript(46, frame47);
}
function frame47(){
gotoAndPlay(8);
}
}
}//package rock_the_hall_gamesgames_com_fla
Section 149
//mccashnegblack_70 (rock_the_hall_gamesgames_com_fla.mccashnegblack_70)
package rock_the_hall_gamesgames_com_fla {
import flash.display.*;
import flash.text.*;
public dynamic class mccashnegblack_70 extends MovieClip {
public var txtCashBlack:TextField;
}
}//package rock_the_hall_gamesgames_com_fla
Section 150
//mccashred_69 (rock_the_hall_gamesgames_com_fla.mccashred_69)
package rock_the_hall_gamesgames_com_fla {
import flash.display.*;
import flash.text.*;
public dynamic class mccashred_69 extends MovieClip {
public var txtCashRed:TextField;
}
}//package rock_the_hall_gamesgames_com_fla
Section 151
//menuButton_37 (rock_the_hall_gamesgames_com_fla.menuButton_37)
package rock_the_hall_gamesgames_com_fla {
import flash.display.*;
public dynamic class menuButton_37 extends MovieClip {
public var out:MovieClip;
public var disabled:MovieClip;
public var down:MovieClip;
public var btnHitArea:SimpleButton;
public var over:MovieClip;
}
}//package rock_the_hall_gamesgames_com_fla
Section 152
//menuButtonMoreGames_56 (rock_the_hall_gamesgames_com_fla.menuButtonMoreGames_56)
package rock_the_hall_gamesgames_com_fla {
import flash.display.*;
public dynamic class menuButtonMoreGames_56 extends MovieClip {
public var out:MovieClip;
public var mcLogo:MovieClip;
public var disabled:MovieClip;
public var down:MovieClip;
public var btnHitArea:SimpleButton;
public var over:MovieClip;
}
}//package rock_the_hall_gamesgames_com_fla
Section 153
//menuHUDButton_73 (rock_the_hall_gamesgames_com_fla.menuHUDButton_73)
package rock_the_hall_gamesgames_com_fla {
import flash.display.*;
public dynamic class menuHUDButton_73 extends MovieClip {
public var out:MovieClip;
public var disabled:MovieClip;
public var down:MovieClip;
public var btnHitArea:SimpleButton;
public var over:MovieClip;
}
}//package rock_the_hall_gamesgames_com_fla
Section 154
//mouseDrag_305 (rock_the_hall_gamesgames_com_fla.mouseDrag_305)
package rock_the_hall_gamesgames_com_fla {
import flash.display.*;
public dynamic class mouseDrag_305 extends MovieClip {
public function mouseDrag_305(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package rock_the_hall_gamesgames_com_fla
Section 155
//nextBandButton_92 (rock_the_hall_gamesgames_com_fla.nextBandButton_92)
package rock_the_hall_gamesgames_com_fla {
import flash.display.*;
public dynamic class nextBandButton_92 extends MovieClip {
public var out:MovieClip;
public var disabled:MovieClip;
public var down:MovieClip;
public var btnHitArea:SimpleButton;
public var over:MovieClip;
}
}//package rock_the_hall_gamesgames_com_fla
Section 156
//panelchar_177 (rock_the_hall_gamesgames_com_fla.panelchar_177)
package rock_the_hall_gamesgames_com_fla {
import flash.display.*;
import flash.text.*;
public dynamic class panelchar_177 extends MovieClip {
public var txtEnergy:TextField;
public var mcTitle:MovieClip;
public var moneyS:moneySymbol;
public var txtUnSkill:TextField;
public var txtPrice:TextField;
public var txtSkill:TextField;
}
}//package rock_the_hall_gamesgames_com_fla
Section 157
//pauseMenuButton_213 (rock_the_hall_gamesgames_com_fla.pauseMenuButton_213)
package rock_the_hall_gamesgames_com_fla {
import flash.display.*;
public dynamic class pauseMenuButton_213 extends MovieClip {
public var out:MovieClip;
public var disabled:MovieClip;
public var down:MovieClip;
public var btnHitArea:SimpleButton;
public var over:MovieClip;
}
}//package rock_the_hall_gamesgames_com_fla
Section 158
//pauseMenuButton2_214 (rock_the_hall_gamesgames_com_fla.pauseMenuButton2_214)
package rock_the_hall_gamesgames_com_fla {
import flash.display.*;
public dynamic class pauseMenuButton2_214 extends MovieClip {
public var out:MovieClip;
public var disabled:MovieClip;
public var down:MovieClip;
public var btnHitArea:SimpleButton;
public var over:MovieClip;
}
}//package rock_the_hall_gamesgames_com_fla
Section 159
//play_button_mouseon_35 (rock_the_hall_gamesgames_com_fla.play_button_mouseon_35)
package rock_the_hall_gamesgames_com_fla {
import flash.display.*;
import flash.text.*;
public dynamic class play_button_mouseon_35 extends MovieClip {
public var txtText:TextField;
}
}//package rock_the_hall_gamesgames_com_fla
Section 160
//play_button_normal_33 (rock_the_hall_gamesgames_com_fla.play_button_normal_33)
package rock_the_hall_gamesgames_com_fla {
import flash.display.*;
import flash.text.*;
public dynamic class play_button_normal_33 extends MovieClip {
public var txtText:TextField;
}
}//package rock_the_hall_gamesgames_com_fla
Section 161
//play_button_over_34 (rock_the_hall_gamesgames_com_fla.play_button_over_34)
package rock_the_hall_gamesgames_com_fla {
import flash.display.*;
import flash.text.*;
public dynamic class play_button_over_34 extends MovieClip {
public var txtText:TextField;
}
}//package rock_the_hall_gamesgames_com_fla
Section 162
//playMenuButton_31 (rock_the_hall_gamesgames_com_fla.playMenuButton_31)
package rock_the_hall_gamesgames_com_fla {
import flash.display.*;
public dynamic class playMenuButton_31 extends MovieClip {
public var out:MovieClip;
public var disabled:MovieClip;
public var down:MovieClip;
public var btnHitArea:SimpleButton;
public var over:MovieClip;
}
}//package rock_the_hall_gamesgames_com_fla
Section 163
//playProgressButton_97 (rock_the_hall_gamesgames_com_fla.playProgressButton_97)
package rock_the_hall_gamesgames_com_fla {
import flash.display.*;
public dynamic class playProgressButton_97 extends MovieClip {
public var out:MovieClip;
public var disabled:MovieClip;
public var down:MovieClip;
public var btnHitArea:SimpleButton;
public var over:MovieClip;
}
}//package rock_the_hall_gamesgames_com_fla
Section 164
//playProgressButton_mouseon_95 (rock_the_hall_gamesgames_com_fla.playProgressButton_mouseon_95)
package rock_the_hall_gamesgames_com_fla {
import flash.display.*;
import flash.text.*;
public dynamic class playProgressButton_mouseon_95 extends MovieClip {
public var txtText:TextField;
}
}//package rock_the_hall_gamesgames_com_fla
Section 165
//playProgressButton_normal_93 (rock_the_hall_gamesgames_com_fla.playProgressButton_normal_93)
package rock_the_hall_gamesgames_com_fla {
import flash.display.*;
import flash.text.*;
public dynamic class playProgressButton_normal_93 extends MovieClip {
public var txtText:TextField;
}
}//package rock_the_hall_gamesgames_com_fla
Section 166
//playProgressButton_over_94 (rock_the_hall_gamesgames_com_fla.playProgressButton_over_94)
package rock_the_hall_gamesgames_com_fla {
import flash.display.*;
import flash.text.*;
public dynamic class playProgressButton_over_94 extends MovieClip {
public var txtText:TextField;
}
}//package rock_the_hall_gamesgames_com_fla
Section 167
//rest1copy_147 (rock_the_hall_gamesgames_com_fla.rest1copy_147)
package rock_the_hall_gamesgames_com_fla {
import flash.display.*;
public dynamic class rest1copy_147 extends MovieClip {
public var mcRest:resting_0;
}
}//package rock_the_hall_gamesgames_com_fla
Section 168
//rest2copy_155 (rock_the_hall_gamesgames_com_fla.rest2copy_155)
package rock_the_hall_gamesgames_com_fla {
import flash.display.*;
public dynamic class rest2copy_155 extends MovieClip {
public var mcRest:resting_1;
}
}//package rock_the_hall_gamesgames_com_fla
Section 169
//rockitup1_183 (rock_the_hall_gamesgames_com_fla.rockitup1_183)
package rock_the_hall_gamesgames_com_fla {
import flash.display.*;
import flash.text.*;
public dynamic class rockitup1_183 extends MovieClip {
public var txtTitleBlack:TextField;
}
}//package rock_the_hall_gamesgames_com_fla
Section 170
//rockitup2_182 (rock_the_hall_gamesgames_com_fla.rockitup2_182)
package rock_the_hall_gamesgames_com_fla {
import flash.display.*;
import flash.text.*;
public dynamic class rockitup2_182 extends MovieClip {
public var txtTitleWhite:TextField;
}
}//package rock_the_hall_gamesgames_com_fla
Section 171
//rockitup3_184 (rock_the_hall_gamesgames_com_fla.rockitup3_184)
package rock_the_hall_gamesgames_com_fla {
import flash.display.*;
import flash.text.*;
public dynamic class rockitup3_184 extends MovieClip {
public var txtTitleRed:TextField;
}
}//package rock_the_hall_gamesgames_com_fla
Section 172
//soundTUp_state0_108 (rock_the_hall_gamesgames_com_fla.soundTUp_state0_108)
package rock_the_hall_gamesgames_com_fla {
import flash.display.*;
public dynamic class soundTUp_state0_108 extends MovieClip {
public var mcSoundT:MovieClip;
}
}//package rock_the_hall_gamesgames_com_fla
Section 173
//soundTUp_state1_115 (rock_the_hall_gamesgames_com_fla.soundTUp_state1_115)
package rock_the_hall_gamesgames_com_fla {
import flash.display.*;
public dynamic class soundTUp_state1_115 extends MovieClip {
public var mcSoundT:MovieClip;
}
}//package rock_the_hall_gamesgames_com_fla
Section 174
//spilgames_62 (rock_the_hall_gamesgames_com_fla.spilgames_62)
package rock_the_hall_gamesgames_com_fla {
import flash.display.*;
public dynamic class spilgames_62 extends MovieClip {
public var mcHitArea:MovieClip;
}
}//package rock_the_hall_gamesgames_com_fla
Section 175
//stageUp_state0_119 (rock_the_hall_gamesgames_com_fla.stageUp_state0_119)
package rock_the_hall_gamesgames_com_fla {
import flash.display.*;
public dynamic class stageUp_state0_119 extends MovieClip {
public var mcStage:stageBand_0;
}
}//package rock_the_hall_gamesgames_com_fla
Section 176
//stageUp_state1_124 (rock_the_hall_gamesgames_com_fla.stageUp_state1_124)
package rock_the_hall_gamesgames_com_fla {
import flash.display.*;
public dynamic class stageUp_state1_124 extends MovieClip {
public var mcStage:stageBand_1;
}
}//package rock_the_hall_gamesgames_com_fla
Section 177
//stars_99 (rock_the_hall_gamesgames_com_fla.stars_99)
package rock_the_hall_gamesgames_com_fla {
import flash.display.*;
public dynamic class stars_99 extends MovieClip {
public function stars_99(){
addFrameScript(9, frame10);
}
function frame10(){
stop();
}
}
}//package rock_the_hall_gamesgames_com_fla
Section 178
//stationup_175 (rock_the_hall_gamesgames_com_fla.stationup_175)
package rock_the_hall_gamesgames_com_fla {
import flash.display.*;
import flash.text.*;
public dynamic class stationup_175 extends MovieClip {
public var txtTitleUpArea:TextField;
}
}//package rock_the_hall_gamesgames_com_fla
Section 179
//stressbar_233 (rock_the_hall_gamesgames_com_fla.stressbar_233)
package rock_the_hall_gamesgames_com_fla {
import flash.display.*;
public dynamic class stressbar_233 extends MovieClip {
public var indicator:MovieClip;
}
}//package rock_the_hall_gamesgames_com_fla
Section 180
//Symbol1_1 (rock_the_hall_gamesgames_com_fla.Symbol1_1)
package rock_the_hall_gamesgames_com_fla {
import flash.display.*;
public dynamic class Symbol1_1 extends MovieClip {
public var mcMask:MovieClip;
}
}//package rock_the_hall_gamesgames_com_fla
Section 181
//Symbol1copy_68 (rock_the_hall_gamesgames_com_fla.Symbol1copy_68)
package rock_the_hall_gamesgames_com_fla {
import flash.display.*;
public dynamic class Symbol1copy_68 extends MovieClip {
public var mcTxtBlack:MovieClip;
public var mcTxtRed:MovieClip;
public function Symbol1copy_68(){
addFrameScript(18, frame19);
}
function frame19(){
stop();
}
}
}//package rock_the_hall_gamesgames_com_fla
Section 182
//time_65 (rock_the_hall_gamesgames_com_fla.time_65)
package rock_the_hall_gamesgames_com_fla {
import flash.display.*;
import flash.text.*;
public dynamic class time_65 extends MovieClip {
public var txtTime:TextField;
}
}//package rock_the_hall_gamesgames_com_fla
Section 183
//title_upgrade_char_178 (rock_the_hall_gamesgames_com_fla.title_upgrade_char_178)
package rock_the_hall_gamesgames_com_fla {
import flash.display.*;
import flash.text.*;
public dynamic class title_upgrade_char_178 extends MovieClip {
public var txtName:TextField;
}
}//package rock_the_hall_gamesgames_com_fla
Section 184
//tutorial2Screen1_102 (rock_the_hall_gamesgames_com_fla.tutorial2Screen1_102)
package rock_the_hall_gamesgames_com_fla {
import flash.display.*;
import flash.text.*;
public dynamic class tutorial2Screen1_102 extends MovieClip {
public var txtDialog:TextField;
public var mcBody:MovieClip;
public var bntExitTuto:MovieClip;
}
}//package rock_the_hall_gamesgames_com_fla
Section 185
//Tween1_90 (rock_the_hall_gamesgames_com_fla.Tween1_90)
package rock_the_hall_gamesgames_com_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Tween1_90 extends MovieClip {
public var txtTitleBlack:TextField;
}
}//package rock_the_hall_gamesgames_com_fla
Section 186
//Tween2_89 (rock_the_hall_gamesgames_com_fla.Tween2_89)
package rock_the_hall_gamesgames_com_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Tween2_89 extends MovieClip {
public var txtTitleRed:TextField;
}
}//package rock_the_hall_gamesgames_com_fla
Section 187
//Tween3_88 (rock_the_hall_gamesgames_com_fla.Tween3_88)
package rock_the_hall_gamesgames_com_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Tween3_88 extends MovieClip {
public var txtTitleBlack2:TextField;
}
}//package rock_the_hall_gamesgames_com_fla
Section 188
//Tween4_87 (rock_the_hall_gamesgames_com_fla.Tween4_87)
package rock_the_hall_gamesgames_com_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Tween4_87 extends MovieClip {
public var txtTitleWhite:TextField;
}
}//package rock_the_hall_gamesgames_com_fla
Section 189
//upentry_163 (rock_the_hall_gamesgames_com_fla.upentry_163)
package rock_the_hall_gamesgames_com_fla {
import flash.display.*;
public dynamic class upentry_163 extends MovieClip {
public var wall:MovieClip;
}
}//package rock_the_hall_gamesgames_com_fla
Section 190
//upgrade_bathroom_209 (rock_the_hall_gamesgames_com_fla.upgrade_bathroom_209)
package rock_the_hall_gamesgames_com_fla {
import flash.display.*;
public dynamic class upgrade_bathroom_209 extends MovieClip {
public var mcBath:MovieClip;
public function upgrade_bathroom_209(){
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 frame1(){
stop();
}
function frame7(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
function frame9(){
stop();
}
function frame8(){
stop();
}
function frame2(){
stop();
}
}
}//package rock_the_hall_gamesgames_com_fla
Section 191
//upgrade_entry_exit_165 (rock_the_hall_gamesgames_com_fla.upgrade_entry_exit_165)
package rock_the_hall_gamesgames_com_fla {
import flash.display.*;
public dynamic class upgrade_entry_exit_165 extends MovieClip {
public var mcEnt:MovieClip;
}
}//package rock_the_hall_gamesgames_com_fla
Section 192
//upgrade_panel_char_176 (rock_the_hall_gamesgames_com_fla.upgrade_panel_char_176)
package rock_the_hall_gamesgames_com_fla {
import flash.display.*;
public dynamic class upgrade_panel_char_176 extends MovieClip {
public var btnBuy:MovieClip;
public var panelAtribs:MovieClip;
public var btnCancel:MovieClip;
}
}//package rock_the_hall_gamesgames_com_fla
Section 193
//upgrade_rest_158 (rock_the_hall_gamesgames_com_fla.upgrade_rest_158)
package rock_the_hall_gamesgames_com_fla {
import flash.display.*;
public dynamic class upgrade_rest_158 extends MovieClip {
public var mcRest:resting_2;
public function upgrade_rest_158(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package rock_the_hall_gamesgames_com_fla
Section 194
//upgradeBarButton_129 (rock_the_hall_gamesgames_com_fla.upgradeBarButton_129)
package rock_the_hall_gamesgames_com_fla {
import flash.display.*;
public dynamic class upgradeBarButton_129 extends MovieClip {
public var out:MovieClip;
public var down:MovieClip;
public var btnHitArea:SimpleButton;
public var over:MovieClip;
}
}//package rock_the_hall_gamesgames_com_fla
Section 195
//upgradeBathButton_136 (rock_the_hall_gamesgames_com_fla.upgradeBathButton_136)
package rock_the_hall_gamesgames_com_fla {
import flash.display.*;
public dynamic class upgradeBathButton_136 extends MovieClip {
public var out:MovieClip;
public var down:MovieClip;
public var btnHitArea:SimpleButton;
public var over:MovieClip;
}
}//package rock_the_hall_gamesgames_com_fla
Section 196
//upgradeEntButton_161 (rock_the_hall_gamesgames_com_fla.upgradeEntButton_161)
package rock_the_hall_gamesgames_com_fla {
import flash.display.*;
public dynamic class upgradeEntButton_161 extends MovieClip {
public var out:MovieClip;
public var down:MovieClip;
public var btnHitArea:SimpleButton;
public var over:MovieClip;
public function upgradeEntButton_161(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package rock_the_hall_gamesgames_com_fla
Section 197
//upgradeRestButton_146 (rock_the_hall_gamesgames_com_fla.upgradeRestButton_146)
package rock_the_hall_gamesgames_com_fla {
import flash.display.*;
public dynamic class upgradeRestButton_146 extends MovieClip {
public var out:MovieClip;
public var down:MovieClip;
public var btnHitArea:SimpleButton;
public var over:MovieClip;
}
}//package rock_the_hall_gamesgames_com_fla
Section 198
//upgradeSoundTButton_107 (rock_the_hall_gamesgames_com_fla.upgradeSoundTButton_107)
package rock_the_hall_gamesgames_com_fla {
import flash.display.*;
public dynamic class upgradeSoundTButton_107 extends MovieClip {
public var out:MovieClip;
public var down:MovieClip;
public var btnHitArea:SimpleButton;
public var over:MovieClip;
}
}//package rock_the_hall_gamesgames_com_fla
Section 199
//upgradeStageButton_118 (rock_the_hall_gamesgames_com_fla.upgradeStageButton_118)
package rock_the_hall_gamesgames_com_fla {
import flash.display.*;
public dynamic class upgradeStageButton_118 extends MovieClip {
public var out:MovieClip;
public var down:MovieClip;
public var btnHitArea:SimpleButton;
public var over:MovieClip;
}
}//package rock_the_hall_gamesgames_com_fla
Section 200
//victory_bubble_222 (rock_the_hall_gamesgames_com_fla.victory_bubble_222)
package rock_the_hall_gamesgames_com_fla {
import flash.display.*;
import flash.text.*;
public dynamic class victory_bubble_222 extends MovieClip {
public var mcTitle:TextField;
}
}//package rock_the_hall_gamesgames_com_fla
Section 201
//victory_interface_225 (rock_the_hall_gamesgames_com_fla.victory_interface_225)
package rock_the_hall_gamesgames_com_fla {
import flash.display.*;
import flash.text.*;
public dynamic class victory_interface_225 extends MovieClip {
public var mcTextTotal:TextField;
public var btnOk:MovieClip;
public var mcTextLevel:TextField;
public var mcValueTotal:TextField;
public var mcValueLevel:TextField;
}
}//package rock_the_hall_gamesgames_com_fla
Section 202
//SpilButton (spil.Button.SpilButton)
package spil.Button {
import spil.Sound.*;
import flash.display.*;
import flash.events.*;
import spil.Events.*;
public class SpilButton {
protected var hitArea:Object;
private var fxOver:SpilSound;
private var fxClick:SpilSound;
protected var movieClip:MovieClip;
private var fxOut:SpilSound;
public var onEvent:Function;
public function SpilButton(_arg1:MovieClip, _arg2:Function){
fxOver = null;
movieClip = _arg1;
updateFields();
onEvent = _arg2;
registerEvents();
if (onEvent != null){
onEvent(new SpilEvent(SpilEvent.EVENT_INIT, movieClip));
} else {
trace((("SpilButton::SpilButton WARNING: " + movieClip.name) + " without 'eventHandler'."));
};
}
public function hide(){
this.movieClip.visible = false;
}
public function enable():void{
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 SpilEvent(SpilEvent.EVENT_ENABLE, movieClip));
};
}
public function setFxOver(_arg1:SpilSound):void{
this.fxOver = _arg1;
}
protected function onMCRollOver(_arg1:MouseEvent):void{
if ((((hitArea == null)) || ((hitArea.mouseEnabled == true)))){
if (fxOver != null){
fxOver.play();
};
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 SpilEvent(SpilEvent.EVENT_MOUSEOVER, movieClip));
};
};
_arg1.updateAfterEvent();
}
protected function onMCClick(_arg1:MouseEvent):void{
if ((((hitArea == null)) || ((hitArea.mouseEnabled == true)))){
if (fxClick != null){
fxClick.play();
};
if (movieClip.out != undefined){
movieClip.out.visible = false;
};
if (movieClip.over != undefined){
movieClip.over.visible = true;
};
if (onEvent != null){
onEvent(new SpilEvent(SpilEvent.EVENT_MOUSECLICK, movieClip));
};
_arg1.updateAfterEvent();
};
}
public function setFxClick(_arg1:SpilSound):void{
this.fxClick = _arg1;
}
public function setFxOut(_arg1:SpilSound):void{
this.fxOut = _arg1;
}
protected function registerEvents():void{
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():void{
if (movieClip.out != undefined){
movieClip.out.visible = true;
} else {
trace((("SpilButton::SpilButton WARNING: " + movieClip.name) + " without 'out'."));
};
if (movieClip.over != undefined){
movieClip.over.visible = false;
} else {
trace((("SpilButton::updateFields WARNING: " + movieClip.name) + " without 'over'."));
};
if (movieClip.down != undefined){
movieClip.down.visible = false;
} else {
trace((("SpilButton::updateFields WARNING: " + movieClip.name) + " without 'down'."));
};
if (movieClip.disabled != undefined){
movieClip.disabled.visible = false;
} else {
trace((("SpilButton::updateFields WARNING: " + movieClip.name) + " without 'disabled'."));
};
if (movieClip.btnHitArea != null){
hitArea = movieClip.btnHitArea;
} else {
hitArea = movieClip;
};
}
protected function onMCRollOut(_arg1:MouseEvent):void{
if ((((hitArea == null)) || ((hitArea.mouseEnabled == true)))){
if (fxOut != null){
fxOut.play();
};
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 SpilEvent(SpilEvent.EVENT_MOUSEOUT, movieClip));
};
};
_arg1.updateAfterEvent();
}
public function disable():void{
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 SpilEvent(SpilEvent.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 SpilEvent(SpilEvent.EVENT_MOUSEUP, movieClip));
};
};
_arg1.updateAfterEvent();
}
public function unregisterEvents():void{
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 SpilEvent(SpilEvent.EVENT_MOUSEDOWN, movieClip));
};
};
_arg1.updateAfterEvent();
}
public function show(){
this.movieClip.visible = true;
}
}
}//package spil.Button
Section 203
//SpilSwitchButton (spil.Button.SpilSwitchButton)
package spil.Button {
import flash.display.*;
import spil.Events.*;
import spil.Utils.*;
public class SpilSwitchButton extends SpilButton {
private var eventHandler:Function;
private var over:Boolean;
public function SpilSwitchButton(_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;
};
} else {
trace((("SpilSwitchButton::update WARNING: " + movieClip.name) + " without 'out'."));
};
if (movieClip.over != undefined){
if (over){
movieClip.over.visible = true;
} else {
movieClip.over.visible = false;
};
} else {
trace((("SpilSwitchButton::update WARNING: " + movieClip.name) + " without 'over'."));
};
if (movieClip.down != undefined){
movieClip.down.visible = false;
} else {
trace((("SpilSwitchButton::update WARNING: " + movieClip.name) + " without 'down'."));
};
if (movieClip.disabled != undefined){
movieClip.disabled.visible = false;
} else {
trace((("SpilSwitchButton::update WARNING: " + movieClip.name) + " without 'disabled'."));
};
}
private function onLoadFrame(){
var _local1:int;
movieClip.stop();
update();
SpilMovieClip.addLabelScript(movieClip, "off", null);
SpilMovieClip.addLabelScript(movieClip, "on", null);
_local1 = SpilMovieClip.getIndexLabel(movieClip, "on");
if (_local1 == movieClip.currentFrame){
if (eventHandler != null){
eventHandler(new SpilEvent(SpilEvent.EVENT_ON, movieClip));
};
} else {
if (eventHandler != null){
eventHandler(new SpilEvent(SpilEvent.EVENT_OFF, movieClip));
};
};
}
protected function onBtnEvent(_arg1:SpilEvent){
switch (_arg1.event){
case SpilEvent.EVENT_MOUSECLICK:
if (movieClip.currentFrame == 1){
off();
} else {
on();
};
break;
case SpilEvent.EVENT_MOUSEOUT:
over = false;
if (eventHandler != null){
eventHandler(new SpilEvent(SpilEvent.EVENT_MOUSEOUT, movieClip));
};
break;
case SpilEvent.EVENT_MOUSEOVER:
over = true;
if (eventHandler != null){
eventHandler(new SpilEvent(SpilEvent.EVENT_MOUSEOVER, movieClip));
};
break;
default:
if (eventHandler != null){
eventHandler(_arg1);
};
break;
};
}
public function on(){
movieClip.gotoAndStop("on");
SpilMovieClip.addLabelScript(movieClip, "on", onLoadFrame);
}
public function off(){
movieClip.gotoAndStop("off");
SpilMovieClip.addLabelScript(movieClip, "off", onLoadFrame);
}
}
}//package spil.Button
Section 204
//SpilTextButton (spil.Button.SpilTextButton)
package spil.Button {
import flash.display.*;
import spil.Events.*;
import flash.text.*;
public class SpilTextButton extends SpilButton {
private var textValue:String;
private var eventHandler:Function;
private var vertAlignInitY:Number;
private var vertAlignFinishY:Number;
public function SpilTextButton(_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:SpilEvent){
switch (_arg1.event){
case SpilEvent.EVENT_MOUSECLICK:
break;
case SpilEvent.EVENT_INIT:
onEventInit();
break;
case SpilEvent.EVENT_MOUSEOUT:
break;
case SpilEvent.EVENT_MOUSEOVER:
break;
};
if (eventHandler != null){
eventHandler(_arg1);
};
}
private function setTexts(){
if (movieClip.out != undefined){
movieClip.out.txtText.text = textValue;
};
if (movieClip.over != undefined){
movieClip.over.txtText.text = textValue;
};
if (movieClip.down != undefined){
movieClip.down.txtText.text = textValue;
};
if (movieClip.disabled != undefined){
movieClip.disabled.txtText.text = textValue;
};
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 spil.Button
Section 205
//SpilEvent (spil.Events.SpilEvent)
package spil.Events {
public class SpilEvent {
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 SpilEvent(_arg1:String, _arg2:Object){
this.event = _arg1;
this.transport = _arg2;
}
}
}//package spil.Events
Section 206
//SpilStateMachineEvent (spil.Events.SpilStateMachineEvent)
package spil.Events {
public class SpilStateMachineEvent {
private var objParam:Object;
private var strName:String;
public function SpilStateMachineEvent(_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 spil.Events
Section 207
//SpilDragMouse (spil.Mouse.SpilDragMouse)
package spil.Mouse {
import flash.display.*;
import spil.Utils.*;
public class SpilDragMouse extends SpilMouse {
protected var dragItens:Array;
public function SpilDragMouse(_arg1:MovieClip){
super(_arg1);
dragItens = new Array();
}
public function isEmpty():Boolean{
return ((dragItens.length == 0));
}
public function containItem(_arg1:String):Boolean{
var _local2:String;
if (dragItens.length > 0){
for (_local2 in dragItens) {
if ((((_local2 == _arg1)) && (!((dragItens[_local2] == null))))){
return (true);
};
};
};
return (false);
}
public function getQtdDragItems():Number{
return (dragItens.length);
}
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;
};
SpilMovieClip.setMouseEnabled(_local2.mc, true);
return (_local2.mc);
};
return (null);
}
override public function register(){
super.register();
mcMouse.mcDrag.visible = false;
mcMouse.mcPointer.visible = true;
if ((((mcMouse.mcDummy == null)) || ((mcMouse.mcDummy == undefined)))){
trace((("SpilDragMouse::register WARNING: " + mcMouse.name) + " without 'mcDummy'."));
};
}
public function getDragItem(_arg1:String):Object{
if ((((dragItens.length == 0)) || ((dragItens[_arg1] == null)))){
trace(("ERROR: NAME NOT EXISTS IN ARRAY! - name: " + _arg1));
return (null);
};
return (dragItens[_arg1].drag);
}
public function addDragItem(_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;
SpilMovieClip.setMouseEnabled(mcMouse, false);
}
}
}//package spil.Mouse
Section 208
//SpilMouse (spil.Mouse.SpilMouse)
package spil.Mouse {
import spil.Sound.*;
import flash.display.*;
import flash.events.*;
import spil.Events.*;
import flash.geom.*;
import spil.Utils.*;
import flash.utils.*;
import flash.ui.*;
public class SpilMouse {
private var bRegistered:Boolean;
private var scene:MovieClip;
private var pCoord:Point;
private var arEvents:Array;
protected var mcMouse:MovieClip;
private var fxMouseDown:SpilSound;
public function SpilMouse(_arg1:MovieClip){
scene = _arg1;
bRegistered = false;
arEvents = new Array();
arEvents[SpilEvent.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:SpilEvent){
var _local2:Array;
var _local3:*;
_local2 = arEvents[_arg1.event];
for (_local3 in _local2) {
if (_local2[_local3](_arg1) == true){
break;
};
};
}
public function hide(){
this.mcMouse.visible = false;
}
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){
trace("SpilMouse::register(), WARNING: mouse alredy registered, unregister first.");
return;
};
Mouse.hide();
_local1 = (getDefinitionByName("mouseCursor") as Class);
mcMouse = new (_local1);
scene.stage.addChild(mcMouse);
SpilMovieClip.setMouseEnabled(mcMouse, false);
bRegistered = true;
}
public function getImage(_arg1:String, _arg2:String){
var _local3:MovieClip;
if ((((_arg2 == null)) || ((_arg2 == "")))){
_local3 = mcMouse;
} else {
_local3 = MovieClip(mcMouse.getChildByName(_arg2));
};
return (_local3);
}
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);
SpilMovieClip.addLabelScript(mcMouse, p_frame, function (){
SpilMovieClip.addLabelScript(mcMouse, p_frame, null);
if ((((p_target == null)) || ((p_target == "")))){
mcTarget = mcMouse;
} else {
mcTarget = MovieClip(mcMouse.getChildByName(p_target));
};
mcTarget.addChild(p_mc);
SpilMovieClip.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 SpilEvent(SpilEvent.EVENT_MOUSEMOVE, (pCoord as Object)));
};
_arg1.updateAfterEvent();
}
public function setFxMouseDown(_arg1:SpilSound){
this.fxMouseDown = _arg1;
}
public function unregister(){
if (!bRegistered){
trace("SpilMouse::unregister(), WARNING: mouse alredy unregistered, register first.");
return;
};
Mouse.show();
scene.mouseDummy.removeChild(DisplayObject(mcMouse));
bRegistered = false;
}
public function show(){
this.mcMouse.visible = true;
}
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 spil.Mouse
Section 209
//SpilSound (spil.Sound.SpilSound)
package spil.Sound {
import flash.media.*;
public class SpilSound {
private var iType:Number;
private var arSoundChannel:Array;
private var iTimesToPlay:Number;
private var iVolume:Number;
private var bLoop:Boolean;
private var pClass:Sound;
private var bPaused:Boolean;
private var pEventCallback:Function;
private var iFadeOutDuration:Number;
private var iFadeInDuration:Number;
public static const TYPE_MUSIC:Number = 0;
public static const TYPE_SFX:Number = 1;
public function SpilSound(_arg1:Class, _arg2:Number, _arg3:Function=null, _arg4:Boolean=false, _arg5:Number=0, _arg6:Number=0, _arg7:Number=1){
this.iVolume = 0;
this.iType = _arg2;
this.bLoop = _arg4;
this.iFadeInDuration = _arg5;
this.iFadeOutDuration = _arg6;
this.iTimesToPlay = _arg7;
this.pEventCallback = _arg3;
this.pClass = new (_arg1);
this.bPaused = SpilSoundManager.getInstance().isPaused();
arSoundChannel = new Array();
}
public function stop():Boolean{
var _local1:int;
_local1 = 0;
while (_local1 < arSoundChannel.length) {
arSoundChannel[_local1].stop();
_local1++;
};
return (true);
}
public function pause():Boolean{
var _local1:int;
bPaused = true;
_local1 = 0;
while (_local1 < arSoundChannel.length) {
arSoundChannel[_local1].pause();
_local1++;
};
return (true);
}
public function setVolume(_arg1:Number){
var _local2:int;
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 resume():Boolean{
var _local1:int;
bPaused = false;
_local1 = 0;
while (_local1 < arSoundChannel.length) {
arSoundChannel[_local1].resume();
_local1++;
};
return (true);
}
public function process(_arg1:Object){
var _local2:*;
for (_local2 in arSoundChannel) {
arSoundChannel[_local2].process(_arg1);
if (arSoundChannel[_local2].getState() == SpilSoundChannel.ST_STOPPED){
arSoundChannel.splice(_local2, 1);
};
};
}
public function execFadeIn(_arg1:Number){
var _local2:*;
for (_local2 in arSoundChannel) {
arSoundChannel[_local2].execFadeIn(_arg1);
};
}
public function play():SpilSoundChannel{
var _local1:Number;
var _local2:SpilSoundChannel;
_local1 = arSoundChannel.length;
_local2 = new SpilSoundChannel(pClass, iType, pEventCallback, bLoop, iFadeInDuration, iFadeOutDuration, iTimesToPlay);
arSoundChannel.push(_local2);
if (bPaused == true){
_local2.pause();
};
_local2.setVolume(iVolume);
_local2.play();
return (_local2);
}
public function setFadeInDuration(_arg1:Number){
var _local2:*;
for (_local2 in arSoundChannel) {
arSoundChannel[_local2].setFadeInDuration(_arg1);
};
}
public function getType():Number{
return (iType);
}
}
}//package spil.Sound
Section 210
//SpilSoundChannel (spil.Sound.SpilSoundChannel)
package spil.Sound {
import flash.events.*;
import spil.Events.*;
import flash.media.*;
import spil.StateMachine.*;
public class SpilSoundChannel {
private var pSoundChannel:SoundChannel;
private var elapsedFadeTime:Number;
private var iCurrentVolume:Number;
private var iTimesToPlay:Number;
private var bLoop:Boolean;
private var iFakeFadeOutDuration:Number;
private var iPosition:Number;
private var stMachine:SpilStateMachine;
private var bPaused:Boolean;
private var iFadeOutDuration:Number;
private var iFadeInDuration:Number;
private var iType:Number;
private var bExecPlayInResume:Boolean;
private var iVolume:Number;
private var iFakeFadeInDuration:Number;
private var pEventCallback:Function;
private var pSound:Sound;
public static const EVENT_STOP:String = "EVENT_STOP";
public static const TYPE_MUSIC:Number = 0;
public static const ST_STOPPED:String = "ST_STOPPED";
public static const ST_PLAYING:String = "ST_PLAYING";
public static const TYPE_SFX:Number = 1;
public static const ST_FADINGOUT:String = "ST_FADINGOUT";
public static const EVENT_PLAY:String = "EVENT_PLAY";
public static const ST_FADINGIN:String = "ST_FADINGIN";
private static var iNumChannels:Number = 0;
private static var MAX_CHANNELS:Number = 32;
public function SpilSoundChannel(_arg1:Sound, _arg2:Number, _arg3:Function=null, _arg4:Boolean=false, _arg5:Number=0, _arg6:Number=0, _arg7:Number=1){
stMachine = new SpilStateMachine(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.iTimesToPlay = _arg7;
this.pEventCallback = _arg3;
pSound = _arg1;
pSoundChannel = null;
iVolume = 0;
iCurrentVolume = 0;
elapsedFadeTime = 0;
bExecPlayInResume = false;
bPaused = false;
iPosition = 0;
}
public function stop():Boolean{
if (pSoundChannel == null){
return (false);
};
bExecPlayInResume = false;
return (stMachine.receiveEvent(EVENT_STOP));
}
private function startStopped():void{
if (pSoundChannel){
pSoundChannel.stop();
pSoundChannel = null;
iNumChannels--;
bPaused = false;
iPosition = 0;
};
if (pEventCallback != null){
pEventCallback(new SpilEvent(SpilEvent.EVENT_STOP, this));
};
}
private function processFadeIn(_arg1:Object):void{
elapsedFadeTime = (elapsedFadeTime + _arg1.time);
if (elapsedFadeTime >= iFadeInDuration){
if (pEventCallback != null){
pEventCallback(new SpilEvent(SpilEvent.EVENT_FADEINEND, this));
};
applyVolumeToChannel((iVolume / 100));
stMachine.receiveEvent(EVENT_PLAY);
} else {
applyVolumeToChannel((((elapsedFadeTime * iVolume) / iFadeInDuration) / 100));
};
}
public function setVolume(_arg1:Number):void{
iVolume = _arg1;
if (((pSoundChannel) && ((stMachine.getCurrentState().getName() == ST_PLAYING)))){
applyVolumeToChannel((iVolume / 100));
};
}
public function setFadeOutDuration(_arg1:Number):void{
this.iFadeOutDuration = _arg1;
}
public function resume():Boolean{
var _local1:Boolean;
var _local2:int;
_local1 = true;
if (bPaused == false){
return (false);
};
iPosition = 0;
bPaused = false;
if (pSoundChannel != null){
pSoundChannel.stop();
pSoundChannel = null;
};
if (bExecPlayInResume == true){
bExecPlayInResume = false;
iPosition = 0;
_local1 = play();
} else {
if (stMachine.getCurrentState().getName() != ST_STOPPED){
_local2 = ((bLoop)==true) ? 9999999 : this.iTimesToPlay;
pSoundChannel = pSound.play(iPosition, _local2);
setVolume(iVolume);
if (pSoundChannel != null){
pSoundChannel.addEventListener(Event.SOUND_COMPLETE, soundCompleteHandler, false, 0, true);
} else {
return (false);
};
};
};
return (_local1);
}
public function getType():Number{
return (iType);
}
public function play():Boolean{
if ((((iNumChannels >= MAX_CHANNELS)) || (!((pSoundChannel == null))))){
return (false);
};
if (this.bPaused == true){
if (stMachine.getCurrentState().getName() == ST_STOPPED){
bExecPlayInResume = true;
};
return (false);
};
return (stMachine.receiveEvent(EVENT_PLAY));
}
public function execFadeIn(_arg1:Number):void{
elapsedFadeTime = 0;
this.iFakeFadeInDuration = _arg1;
}
private function applyVolumeToChannel(_arg1:Number):void{
var _local2:SoundTransform;
if (pSoundChannel == null){
return;
};
_local2 = pSoundChannel.soundTransform;
_local2.volume = _arg1;
pSoundChannel.soundTransform = _local2;
}
private function soundCompleteHandler(_arg1:Event):void{
if (stMachine.getCurrentState().getName() == "ST_PLAYING"){
stMachine.receiveEvent(EVENT_STOP);
};
}
private function startFadeIn():void{
pSoundChannel = pSound.play(0, ((bLoop == true)) ? 9999999 : this.iTimesToPlay);
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 SpilEvent(SpilEvent.EVENT_FADEINBEGIN, this));
};
if (pEventCallback != null){
pEventCallback(new SpilEvent(SpilEvent.EVENT_FADEINEND, this));
};
applyVolumeToChannel((iVolume / 100));
stMachine.receiveEvent(EVENT_PLAY);
} else {
applyVolumeToChannel(0);
elapsedFadeTime = 0;
if (pEventCallback != null){
pEventCallback(new SpilEvent(SpilEvent.EVENT_FADEINBEGIN, this));
};
};
}
private function processPlay(_arg1:Object):void{
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);
};
};
}
public function getState():String{
return (stMachine.getCurrentState().getName());
}
public function execFadeOut(_arg1:Number):void{
elapsedFadeTime = _arg1;
this.iFakeFadeOutDuration = _arg1;
}
private function processFadeOut(_arg1:Object):void{
elapsedFadeTime = (elapsedFadeTime - _arg1.time);
if (elapsedFadeTime <= 0){
if (pSoundChannel != null){
pSoundChannel.removeEventListener(Event.SOUND_COMPLETE, soundCompleteHandler);
pSoundChannel.stop();
pSoundChannel = null;
};
iNumChannels--;
if (pEventCallback != null){
pEventCallback(new SpilEvent(SpilEvent.EVENT_FADEOUTEND, this));
};
stMachine.receiveEvent(EVENT_STOP);
} else {
applyVolumeToChannel((((elapsedFadeTime * iVolume) / iFadeOutDuration) / 100));
};
}
public function process(_arg1:Object):void{
if (bPaused == true){
return;
};
stMachine.process(_arg1);
}
private function startFadeOut():void{
if (iFadeOutDuration == 0){
pSoundChannel.removeEventListener(Event.SOUND_COMPLETE, soundCompleteHandler);
pSoundChannel.stop();
pSoundChannel = null;
iNumChannels--;
if (pEventCallback != null){
pEventCallback(new SpilEvent(SpilEvent.EVENT_FADEOUTBEGIN, this));
};
if (pEventCallback != null){
pEventCallback(new SpilEvent(SpilEvent.EVENT_FADEOUTEND, this));
};
stMachine.receiveEvent(EVENT_STOP);
} else {
if (pEventCallback != null){
pEventCallback(new SpilEvent(SpilEvent.EVENT_FADEOUTBEGIN, this));
};
elapsedFadeTime = iFadeOutDuration;
};
}
public function setFadeInDuration(_arg1:Number):void{
this.iFadeInDuration = _arg1;
}
public function pause():Boolean{
if (bPaused == true){
return (false);
};
bPaused = true;
if (pSoundChannel == null){
return (true);
};
iPosition = pSoundChannel.position;
pSoundChannel.removeEventListener(Event.SOUND_COMPLETE, soundCompleteHandler);
pSoundChannel.stop();
return (true);
}
}
}//package spil.Sound
Section 211
//SpilSoundManager (spil.Sound.SpilSoundManager)
package spil.Sound {
public class SpilSoundManager {
private var bPaused:Boolean;
private var arSound:Array;
private static var MUSIC_VOLUME:Number = 50;
protected static var pInstance:SpilSoundManager = null;
private static var SFX_VOLUME:Number = 100;
public function SpilSoundManager():void{
bPaused = false;
arSound = new Array();
}
public function getSFXVolume():Number{
return (SFX_VOLUME);
}
public function setSFXVolume(_arg1:Number):void{
var _local2:SpilSound;
var _local3:*;
if (_arg1 > 100){
_arg1 = 100;
} else {
if (_arg1 < 0){
_arg1 = 0;
};
};
SFX_VOLUME = _arg1;
for (_local3 in arSound) {
_local2 = (arSound[_local3] as SpilSound);
if (_local2.getType() == SpilSound.TYPE_SFX){
_local2.setVolume(SFX_VOLUME);
};
};
}
public function getMusicVolume():Number{
return (MUSIC_VOLUME);
}
public function removeSound(_arg1:SpilSound):Boolean{
var _local2:Number;
_local2 = 0;
while (_local2 < arSound.length) {
if ((arSound[_local2] as SpilSound) == _arg1){
_arg1.stop();
arSound.splice(_local2, 1);
return (true);
};
_local2++;
};
return (false);
}
public function resume():void{
var _local1:*;
bPaused = false;
for (_local1 in arSound) {
(arSound[_local1] as SpilSound).resume();
};
}
public function addSound(_arg1:SpilSound):Boolean{
var _local2:*;
for (_local2 in arSound) {
if ((arSound[_local2] as SpilSound) == _arg1){
if (bPaused == true){
_arg1.pause();
};
return (false);
};
};
arSound.push(_arg1);
if (bPaused == true){
_arg1.pause();
};
switch (_arg1.getType()){
case SpilSound.TYPE_MUSIC:
_arg1.setVolume(MUSIC_VOLUME);
break;
case SpilSound.TYPE_SFX:
_arg1.setVolume(SFX_VOLUME);
break;
};
return (true);
}
public function process(_arg1:Object):void{
var _local2:*;
for (_local2 in arSound) {
(arSound[_local2] as SpilSound).process(_arg1);
};
}
public function pause():void{
var _local1:*;
bPaused = true;
for (_local1 in arSound) {
(arSound[_local1] as SpilSound).pause();
};
}
public function isPaused():Boolean{
return (bPaused);
}
public function setMusicVolume(_arg1:Number):void{
var _local2:SpilSound;
var _local3:*;
if (_arg1 > 100){
_arg1 = 100;
} else {
if (_arg1 < 0){
_arg1 = 0;
};
};
MUSIC_VOLUME = _arg1;
for (_local3 in arSound) {
_local2 = (arSound[_local3] as SpilSound);
if (_local2.getType() == SpilSound.TYPE_MUSIC){
_local2.setVolume(MUSIC_VOLUME);
};
};
}
public static function getInstance():SpilSoundManager{
if (pInstance == null){
pInstance = new (SpilSoundManager);
};
return (pInstance);
}
}
}//package spil.Sound
Section 212
//SpilStateMachine (spil.StateMachine.SpilStateMachine)
package spil.StateMachine {
import spil.Events.*;
public class SpilStateMachine {
private var listState:Array;
private var eventHandler:Function;
private var currentState:SpilStateMachineState;
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 SpilStateMachine(_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():SpilStateMachineState{
return (currentState);
}
private function init(_arg1:SpilStateMachineState):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):SpilStateMachineTransition{
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:SpilStateMachineState;
if (this.listTransition.length == 0){
trace("It does not have any transitions registered!");
throw (new Error("It does not have any transitions registered!"));
};
if (!this.existState(_arg1)){
trace((("State " + _arg1) + " does not exist!"));
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){
trace("State Machine not initialized!");
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:SpilStateMachineState;
var _local5:SpilStateMachineEvent;
var _local6:SpilStateMachineState;
var _local7:SpilStateMachineTransition;
var _local8:Array;
var _local9:SpilStateMachineTransition;
if (!this.existState(_arg1)){
trace((("State " + _arg1) + " does not exist!"));
throw (new Error((("State " + _arg1) + " does not exist!")));
};
if (!this.existState(_arg3)){
trace((("State " + _arg3) + " does not exist!"));
throw (new Error((("State " + _arg3) + " does not exist!")));
};
if (!existEvent(_arg2)){
trace((("Event " + _arg2) + " does not exist!"));
throw (new Error((("Event " + _arg2) + " does not exist!")));
};
if (existTransition(_arg1, _arg2, _arg3)){
trace((((((("Transition " + _arg1) + "-") + _arg2) + "-") + _arg3) + " already exists!"));
throw (new Error((((((("Transition " + _arg1) + "-") + _arg2) + "-") + _arg3) + " already exists!")));
};
_local4 = this.listState[_arg1];
_local5 = this.listEvent[_arg2];
_local6 = this.listState[_arg3];
_local9 = new SpilStateMachineTransition(_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:SpilStateMachineState;
if (this.existState(_arg1)){
trace((("State " + _arg1) + " already exists!"));
throw (new Error((("State " + _arg1) + " already exists!")));
};
_local7 = new SpilStateMachineState(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6);
this.listState[_arg1] = _local7;
this.listState.length++;
}
public function receiveEvent(_arg1:String):Boolean{
var _local2:SpilStateMachineTransition;
if (!bReady){
trace("State Machine not initialized!");
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)){
trace((("Event " + _arg1) + " does not exist!"));
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:SpilStateMachineEvent;
if (existEvent(_arg1)){
trace((("Event " + _arg1) + " already exists!"));
throw (new Error((("Event " + _arg1) + " already exists!")));
};
_local3 = new SpilStateMachineEvent(_arg1, _arg2);
this.listEvent[_arg1] = _local3;
this.listEvent.length++;
}
}
}//package spil.StateMachine
Section 213
//SpilStateMachineState (spil.StateMachine.SpilStateMachineState)
package spil.StateMachine {
public class SpilStateMachineState {
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 SpilStateMachineState(_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():void{
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 spil.StateMachine
Section 214
//SpilStateMachineTransition (spil.StateMachine.SpilStateMachineTransition)
package spil.StateMachine {
import spil.Events.*;
public class SpilStateMachineTransition {
private var newState:SpilStateMachineState;
private var currentState:SpilStateMachineState;
private var event:SpilStateMachineEvent;
public function SpilStateMachineTransition(_arg1:SpilStateMachineState, _arg2:SpilStateMachineEvent, _arg3:SpilStateMachineState){
this.currentState = _arg1;
this.newState = _arg3;
this.event = _arg2;
}
function getEvent():SpilStateMachineEvent{
return (this.event);
}
function destroy(){
delete ??getglobalscope
[this];
}
function getCurrentState():SpilStateMachineState{
return (this.currentState);
}
function getNewState():SpilStateMachineState{
return (this.newState);
}
}
}//package spil.StateMachine
Section 215
//SpilMovieClip (spil.Utils.SpilMovieClip)
package spil.Utils {
import flash.display.*;
import flash.text.*;
import flash.geom.*;
public class SpilMovieClip {
public static const RESIZE_UP:String = "RESIZE_UP";
public static const RESIZE_DOWN:String = "RESIZE_DOWN";
public static function setTextBalloon(_arg1:String, _arg2:TextField, _arg3:MovieClip, _arg4:String, _arg5:uint=0, _arg6:uint=0, _arg7:MovieClip=null, _arg8:MovieClip=null){
var _local9:Number;
_arg2.autoSize = "center";
_arg2.text = _arg1;
if (_arg4 == RESIZE_UP){
_local9 = (_arg3.y + _arg3.height);
_arg3.height = ((_arg2.height + _arg6) + _arg5);
_arg3.y = (_local9 - _arg3.height);
} else {
_local9 = _arg3.y;
_arg3.height = ((_arg2.height + _arg6) + _arg5);
_arg3.y = _local9;
};
_arg2.y = (_arg3.y + _arg5);
if (_arg7 != null){
_arg7.y = ((_arg3.y + _arg3.height) - (_arg7.height / 2));
};
if (_arg8 != null){
_arg8.y = ((_arg3.y + _arg3.height) - (_arg8.height / 2));
};
}
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 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);
}
public static function colorTransform(_arg1:MovieClip, _arg2:int=0xFF, _arg3:int=0xFF, _arg4:int=0xFF, _arg5:Number=1){
_arg1.transform.colorTransform = new ColorTransform((_arg2 / 0xFF), (_arg3 / 0xFF), (_arg4 / 0xFF), _arg5);
}
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++;
};
}
}
}//package spil.Utils
Section 216
//SpilURLNavigator (spil.Utils.SpilURLNavigator)
package spil.Utils {
import flash.net.*;
import flash.external.*;
public class SpilURLNavigator {
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 spil.Utils
Section 217
//background_country (background_country)
package {
import flash.display.*;
public dynamic class background_country extends MovieClip {
}
}//package
Section 218
//background_hiphop (background_hiphop)
package {
import flash.display.*;
public dynamic class background_hiphop extends MovieClip {
}
}//package
Section 219
//background_rock (background_rock)
package {
import flash.display.*;
public dynamic class background_rock extends MovieClip {
}
}//package
Section 220
//BackgroundScenary (BackgroundScenary)
package {
import flash.display.*;
public dynamic class BackgroundScenary extends MovieClip {
public function BackgroundScenary(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package
Section 221
//BadBand (BadBand)
package {
import flash.media.*;
public dynamic class BadBand extends Sound {
}
}//package
Section 222
//bar_0 (bar_0)
package {
import flash.display.*;
public dynamic class bar_0 extends MovieClip {
public var btnHitArea:SimpleButton;
public function bar_0(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package
Section 223
//bar_1 (bar_1)
package {
import flash.display.*;
public dynamic class bar_1 extends MovieClip {
public var btnHitArea:SimpleButton;
public function bar_1(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package
Section 224
//bar_2 (bar_2)
package {
import flash.display.*;
public dynamic class bar_2 extends MovieClip {
public var btnHitArea:SimpleButton;
public function bar_2(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package
Section 225
//bar_chairs_deco (bar_chairs_deco)
package {
import flash.display.*;
public dynamic class bar_chairs_deco extends MovieClip {
public function bar_chairs_deco(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package
Section 226
//bar_sound (bar_sound)
package {
import flash.display.*;
public dynamic class bar_sound extends MovieClip {
}
}//package
Section 227
//barman_bar (barman_bar)
package {
import flash.display.*;
public dynamic class barman_bar extends MovieClip {
}
}//package
Section 228
//barman_idle (barman_idle)
package {
import flash.display.*;
public dynamic class barman_idle extends MovieClip {
}
}//package
Section 229
//barman_mnt (barman_mnt)
package {
import flash.display.*;
public dynamic class barman_mnt extends MovieClip {
}
}//package
Section 230
//barman_sec (barman_sec)
package {
import flash.display.*;
public dynamic class barman_sec extends MovieClip {
}
}//package
Section 231
//barman_sound (barman_sound)
package {
import flash.display.*;
public dynamic class barman_sound extends MovieClip {
}
}//package
Section 232
//BarmanMC (BarmanMC)
package {
import flash.display.*;
public dynamic class BarmanMC extends MovieClip {
public var energyMeter:MovieClip;
public function BarmanMC(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8);
}
function frame3(){
stop();
}
function frame6(){
stop();
}
function frame7(){
stop();
}
function frame1(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
function frame8(){
stop();
}
function frame2(){
stop();
}
}
}//package
Section 233
//Bartending (Bartending)
package {
import flash.media.*;
public dynamic class Bartending extends Sound {
}
}//package
Section 234
//barUpgradeButton (barUpgradeButton)
package {
import flash.display.*;
public dynamic class barUpgradeButton extends MovieClip {
public var out:upgrade_area;
public var down:upgrade_area;
public var btnHitArea:SimpleButton;
public var over:upgrade_area;
}
}//package
Section 235
//bathroom_0 (bathroom_0)
package {
import flash.display.*;
public dynamic class bathroom_0 extends MovieClip {
public function bathroom_0(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package
Section 236
//bathroom_1 (bathroom_1)
package {
import flash.display.*;
public dynamic class bathroom_1 extends MovieClip {
public function bathroom_1(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package
Section 237
//bathroom_2 (bathroom_2)
package {
import flash.display.*;
public dynamic class bathroom_2 extends MovieClip {
public function bathroom_2(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package
Section 238
//calendar_mark_completed (calendar_mark_completed)
package {
import flash.display.*;
public dynamic class calendar_mark_completed extends Sprite {
}
}//package
Section 239
//calendar_mark_today (calendar_mark_today)
package {
import flash.display.*;
public dynamic class calendar_mark_today extends Sprite {
}
}//package
Section 240
//calendar_symbols (calendar_symbols)
package {
import flash.display.*;
public dynamic class calendar_symbols extends MovieClip {
public function calendar_symbols(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame4(){
stop();
}
function frame2(){
stop();
}
}
}//package
Section 241
//country_band (country_band)
package {
import flash.display.*;
public dynamic class country_band extends MovieClip {
}
}//package
Section 242
//COUNTRY_SOUNDTRACK (COUNTRY_SOUNDTRACK)
package {
import flash.media.*;
public dynamic class COUNTRY_SOUNDTRACK extends Sound {
}
}//package
Section 243
//crowd (crowd)
package {
import flash.display.*;
public dynamic class crowd extends MovieClip {
public function crowd(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8, 8, frame9, 9, frame10, 10, frame11, 11, frame12, 12, frame13, 13, frame14, 14, frame15, 15, frame16, 16, frame17);
}
function frame10(){
stop();
}
function frame14(){
stop();
}
function frame12(){
stop();
}
function frame3(){
stop();
}
function frame6(){
stop();
}
function frame7(){
stop();
}
function frame1(){
stop();
}
function frame13(){
stop();
}
function frame17(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
function frame9(){
stop();
}
function frame16(){
stop();
}
function frame8(){
stop();
}
function frame2(){
stop();
}
function frame15(){
stop();
}
function frame11(){
stop();
}
}
}//package
Section 244
//crowd_escape (crowd_escape)
package {
import flash.display.*;
public dynamic class crowd_escape extends MovieClip {
}
}//package
Section 245
//crowd_fight (crowd_fight)
package {
import flash.display.*;
public dynamic class crowd_fight extends MovieClip {
}
}//package
Section 246
//CrowdBooming (CrowdBooming)
package {
import flash.media.*;
public dynamic class CrowdBooming extends Sound {
}
}//package
Section 247
//CrowdFighting (CrowdFighting)
package {
import flash.media.*;
public dynamic class CrowdFighting extends Sound {
}
}//package
Section 248
//deco_bar (deco_bar)
package {
import flash.display.*;
public dynamic class deco_bar extends MovieClip {
public function deco_bar(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package
Section 249
//drink (drink)
package {
import flash.display.*;
public dynamic class drink extends MovieClip {
}
}//package
Section 250
//DropCrewMember (DropCrewMember)
package {
import flash.media.*;
public dynamic class DropCrewMember extends Sound {
}
}//package
Section 251
//energyPower (energyPower)
package {
import flash.display.*;
public dynamic class energyPower extends MovieClip {
public function energyPower(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package
Section 252
//entrance_exit (entrance_exit)
package {
import flash.display.*;
public dynamic class entrance_exit extends MovieClip {
public var wall:MovieClip;
public function entrance_exit(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package
Section 253
//FixingSound (FixingSound)
package {
import flash.media.*;
public dynamic class FixingSound extends Sound {
}
}//package
Section 254
//hand (hand)
package {
import flash.display.*;
public dynamic class hand extends MovieClip {
public function hand(){
addFrameScript(1, frame2, 20, frame21, 39, frame40);
}
function frame21(){
stop();
}
function frame2(){
stop();
}
function frame40(){
stop();
}
}
}//package
Section 255
//handMoving (handMoving)
package {
import flash.display.*;
public dynamic class handMoving extends MovieClip {
public var mcHandPoint:hand;
public function handMoving(){
addFrameScript(7, frame8, 15, frame16, 23, frame24, 31, frame32, 39, frame40, 47, frame48, 55, frame56, 63, frame64, 71, frame72, 79, frame80, 87, frame88, 95, frame96, 103, frame104, 111, frame112, 119, frame120, 127, frame128, 135, frame136, 143, frame144, 151, frame152, 159, frame160, 167, frame168, 175, frame176, 183, frame184, 191, frame192, 199, frame200, 207, frame208);
}
function frame152(){
stop();
}
function frame144(){
stop();
}
function frame72(){
stop();
}
function frame64(){
stop();
}
function frame160(){
stop();
}
function frame80(){
stop();
}
function frame200(){
stop();
}
function frame88(){
stop();
}
function frame168(){
stop();
}
function frame208(){
stop();
}
function frame176(){
stop();
}
function frame16(){
stop();
}
function frame24(){
stop();
}
function frame96(){
stop();
}
function frame8(){
stop();
}
function frame192(){
stop();
}
function frame104(){
stop();
}
function frame184(){
stop();
}
function frame112(){
stop();
}
function frame40(){
stop();
}
function frame48(){
stop();
}
function frame32(){
stop();
}
function frame120(){
stop();
}
function frame128(){
stop();
}
function frame56(){
stop();
}
function frame136(){
stop();
}
}
}//package
Section 256
//hiphop_band (hiphop_band)
package {
import flash.display.*;
public dynamic class hiphop_band extends MovieClip {
}
}//package
Section 257
//HIPHOP_SOUNDTRACK (HIPHOP_SOUNDTRACK)
package {
import flash.media.*;
public dynamic class HIPHOP_SOUNDTRACK extends Sound {
}
}//package
Section 258
//howToPlayScreen (howToPlayScreen)
package {
import flash.display.*;
import flash.text.*;
public dynamic class howToPlayScreen extends MovieClip {
public var mcBtnLeft:MovieClip;
public var mcTitle:MovieClip;
public var mctxtGoal:MovieClip;
public var mcText2:TextField;
public var mcText3:TextField;
public var mcText4:TextField;
public var mcText6:TextField;
public var mcText1:TextField;
public var mcText5:TextField;
public var mcBtnRight:MovieClip;
public var mcCash:MovieClip;
public function howToPlayScreen(){
addFrameScript(22, frame23, 23, frame24, 24, frame25);
}
function frame25(){
stop();
}
function frame23(){
stop();
}
function frame24(){
stop();
}
}
}//package
Section 259
//hud (hud)
package {
import flash.display.*;
public dynamic class hud extends MovieClip {
public function hud(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package
Section 260
//jackie_bar (jackie_bar)
package {
import flash.display.*;
public dynamic class jackie_bar extends MovieClip {
}
}//package
Section 261
//jackie_idle (jackie_idle)
package {
import flash.display.*;
public dynamic class jackie_idle extends MovieClip {
}
}//package
Section 262
//jackie_mnt (jackie_mnt)
package {
import flash.display.*;
public dynamic class jackie_mnt extends MovieClip {
}
}//package
Section 263
//jackie_sec (jackie_sec)
package {
import flash.display.*;
public dynamic class jackie_sec extends MovieClip {
}
}//package
Section 264
//jackie_sound (jackie_sound)
package {
import flash.display.*;
public dynamic class jackie_sound extends MovieClip {
}
}//package
Section 265
//JackieMC (JackieMC)
package {
import flash.display.*;
public dynamic class JackieMC extends MovieClip {
public var energyMeter:MovieClip;
public function JackieMC(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8);
}
function frame3(){
stop();
}
function frame6(){
stop();
}
function frame7(){
stop();
}
function frame1(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
function frame8(){
stop();
}
function frame2(){
stop();
}
}
}//package
Section 266
//LevelComplete_SOUNDTRACK (LevelComplete_SOUNDTRACK)
package {
import flash.media.*;
public dynamic class LevelComplete_SOUNDTRACK extends Sound {
}
}//package
Section 267
//levelCompletedScreen (levelCompletedScreen)
package {
import flash.display.*;
public dynamic class levelCompletedScreen extends MovieClip {
public var mcVictoryPanel:MovieClip;
public var mcVictoryBallon:MovieClip;
public function levelCompletedScreen(){
addFrameScript(65, frame66);
}
function frame66(){
stop();
}
}
}//package
Section 268
//LevelFailed_SOUNDTRACK (LevelFailed_SOUNDTRACK)
package {
import flash.media.*;
public dynamic class LevelFailed_SOUNDTRACK extends Sound {
}
}//package
Section 269
//levelFailScreen (levelFailScreen)
package {
import flash.display.*;
public dynamic class levelFailScreen extends MovieClip {
public var mcFailBallon:MovieClip;
public var btnTryAgain:MovieClip;
public function levelFailScreen(){
addFrameScript(39, frame40);
}
function frame40(){
stop();
}
}
}//package
Section 270
//levelStart (levelStart)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.geom.*;
import flash.utils.*;
import flash.filters.*;
import flash.external.*;
import flash.ui.*;
import flash.system.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class levelStart extends MovieClip {
public var mcTitleBlack2:MovieClip;
public var mcTitleBlack:MovieClip;
public var mcTitleRed:MovieClip;
public var mcTitleWhite:MovieClip;
public function levelStart(){
addFrameScript(0, frame1, 34, frame35, 84, frame85);
}
function frame85(){
stop();
}
function frame1(){
stop();
}
function frame35(){
trace("dentro do mcstartlevel ", mcTitleRed.txtTitleRed.text);
}
}
}//package
Section 271
//LightBarHitArea (LightBarHitArea)
package {
import flash.display.*;
public dynamic class LightBarHitArea extends MovieClip {
}
}//package
Section 272
//lights (lights)
package {
import flash.display.*;
public dynamic class lights extends MovieClip {
public function lights(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package
Section 273
//lights_bar (lights_bar)
package {
import flash.display.*;
public dynamic class lights_bar extends MovieClip {
public var mcHitArea:LightBarHitArea;
public function lights_bar(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package
Section 274
//lights_level1 (lights_level1)
package {
import flash.display.*;
public dynamic class lights_level1 extends MovieClip {
}
}//package
Section 275
//lights_resting (lights_resting)
package {
import flash.display.*;
public dynamic class lights_resting extends MovieClip {
public function lights_resting(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package
Section 276
//lights_soundTable (lights_soundTable)
package {
import flash.display.*;
public dynamic class lights_soundTable extends MovieClip {
public function lights_soundTable(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package
Section 277
//lights_stage (lights_stage)
package {
import flash.display.*;
public dynamic class lights_stage extends MovieClip {
public function lights_stage(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package
Section 278
//LoosingMoney (LoosingMoney)
package {
import flash.media.*;
public dynamic class LoosingMoney extends Sound {
}
}//package
Section 279
//main_bar (main_bar)
package {
import flash.display.*;
public dynamic class main_bar extends MovieClip {
}
}//package
Section 280
//main_idle (main_idle)
package {
import flash.display.*;
public dynamic class main_idle extends MovieClip {
}
}//package
Section 281
//main_mnt (main_mnt)
package {
import flash.display.*;
public dynamic class main_mnt extends MovieClip {
}
}//package
Section 282
//main_sec (main_sec)
package {
import flash.display.*;
public dynamic class main_sec extends MovieClip {
}
}//package
Section 283
//main_sound (main_sound)
package {
import flash.display.*;
public dynamic class main_sound extends MovieClip {
}
}//package
Section 284
//MainMC (MainMC)
package {
import flash.display.*;
public dynamic class MainMC extends MovieClip {
public var energyMeter:MovieClip;
public function MainMC(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8);
}
function frame3(){
stop();
}
function frame6(){
stop();
}
function frame7(){
stop();
}
function frame1(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
function frame8(){
stop();
}
function frame2(){
stop();
}
}
}//package
Section 285
//MainScreen_SOUNDTRACK (MainScreen_SOUNDTRACK)
package {
import flash.media.*;
public dynamic class MainScreen_SOUNDTRACK extends Sound {
}
}//package
Section 286
//Maintenance (Maintenance)
package {
import flash.media.*;
public dynamic class Maintenance extends Sound {
}
}//package
Section 287
//malfunc_bar (malfunc_bar)
package {
import flash.display.*;
public dynamic class malfunc_bar extends MovieClip {
}
}//package
Section 288
//malfunc_bigline_bar (malfunc_bigline_bar)
package {
import flash.display.*;
public dynamic class malfunc_bigline_bar extends MovieClip {
public function malfunc_bigline_bar(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame4(){
stop();
}
function frame2(){
stop();
}
}
}//package
Section 289
//malfunc_bigline_bathroom (malfunc_bigline_bathroom)
package {
import flash.display.*;
public dynamic class malfunc_bigline_bathroom extends MovieClip {
public function malfunc_bigline_bathroom(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame4(){
stop();
}
function frame2(){
stop();
}
}
}//package
Section 290
//malfunc_maintenance (malfunc_maintenance)
package {
import flash.display.*;
public dynamic class malfunc_maintenance extends MovieClip {
}
}//package
Section 291
//malfunc_security (malfunc_security)
package {
import flash.display.*;
public dynamic class malfunc_security extends MovieClip {
}
}//package
Section 292
//malfunc_sound (malfunc_sound)
package {
import flash.display.*;
public dynamic class malfunc_sound extends MovieClip {
}
}//package
Section 293
//mcHitBar (mcHitBar)
package {
import flash.display.*;
public dynamic class mcHitBar extends MovieClip {
}
}//package
Section 294
//mcHitSoundTable (mcHitSoundTable)
package {
import flash.display.*;
public dynamic class mcHitSoundTable extends MovieClip {
}
}//package
Section 295
//moneySymbol (moneySymbol)
package {
import flash.display.*;
public dynamic class moneySymbol extends MovieClip {
}
}//package
Section 296
//MOUSECLICK (MOUSECLICK)
package {
import flash.media.*;
public dynamic class MOUSECLICK extends Sound {
}
}//package
Section 297
//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 298
//MouseOver01 (MouseOver01)
package {
import flash.media.*;
public dynamic class MouseOver01 extends Sound {
}
}//package
Section 299
//MouseOver02 (MouseOver02)
package {
import flash.media.*;
public dynamic class MouseOver02 extends Sound {
}
}//package
Section 300
//MouseOver03 (MouseOver03)
package {
import flash.media.*;
public dynamic class MouseOver03 extends Sound {
}
}//package
Section 301
//MouseOver04 (MouseOver04)
package {
import flash.media.*;
public dynamic class MouseOver04 extends Sound {
}
}//package
Section 302
//pauseScreen (pauseScreen)
package {
import flash.display.*;
import flash.text.*;
public dynamic class pauseScreen extends MovieClip {
public var btnQuality:MovieClip;
public var btnMusic:MovieClip;
public var btnFX:MovieClip;
public var btnMainMenu:MovieClip;
public var btnResumeGame:MovieClip;
public var txtPause:TextField;
public var btnHowToPlay:MovieClip;
}
}//package
Section 303
//PickCrewMember (PickCrewMember)
package {
import flash.media.*;
public dynamic class PickCrewMember extends Sound {
}
}//package
Section 304
//posters (posters)
package {
import flash.display.*;
public dynamic class posters extends MovieClip {
public function posters(){
addFrameScript(22, frame23, 45, frame46, 68, frame69);
}
function frame23(){
gotoAndPlay(1);
}
function frame46(){
gotoAndPlay(24);
}
function frame69(){
gotoAndPlay(47);
}
}
}//package
Section 305
//resting_0 (resting_0)
package {
import flash.display.*;
public dynamic class resting_0 extends MovieClip {
public var glass:MovieClip;
public var mcDrink:energyPower;
public var maskFrig:MovieClip;
public function resting_0(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package
Section 306
//resting_1 (resting_1)
package {
import flash.display.*;
public dynamic class resting_1 extends MovieClip {
public var glass:MovieClip;
public var mcDrink:MovieClip;
public var maskFrig:MovieClip;
public function resting_1(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package
Section 307
//resting_2 (resting_2)
package {
import flash.display.*;
public dynamic class resting_2 extends MovieClip {
public var glass:MovieClip;
public var mcDrink:MovieClip;
public var maskFrig:MovieClip;
public function resting_2(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package
Section 308
//rock_band (rock_band)
package {
import flash.display.*;
public dynamic class rock_band extends MovieClip {
}
}//package
Section 309
//ROCK_SOUNDTRACK (ROCK_SOUNDTRACK)
package {
import flash.media.*;
public dynamic class ROCK_SOUNDTRACK extends Sound {
}
}//package
Section 310
//Security (Security)
package {
import flash.media.*;
public dynamic class Security extends Sound {
}
}//package
Section 311
//security_bar (security_bar)
package {
import flash.display.*;
public dynamic class security_bar extends MovieClip {
}
}//package
Section 312
//security_idle (security_idle)
package {
import flash.display.*;
public dynamic class security_idle extends MovieClip {
}
}//package
Section 313
//security_mnt (security_mnt)
package {
import flash.display.*;
public dynamic class security_mnt extends MovieClip {
}
}//package
Section 314
//security_sec (security_sec)
package {
import flash.display.*;
public dynamic class security_sec extends MovieClip {
}
}//package
Section 315
//security_sound (security_sound)
package {
import flash.display.*;
public dynamic class security_sound extends MovieClip {
}
}//package
Section 316
//SecurityMC (SecurityMC)
package {
import flash.display.*;
public dynamic class SecurityMC extends MovieClip {
public var energyMeter:MovieClip;
public function SecurityMC(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8);
}
function frame3(){
stop();
}
function frame6(){
stop();
}
function frame7(){
stop();
}
function frame1(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
function frame8(){
stop();
}
function frame2(){
stop();
}
}
}//package
Section 317
//soundman_bar (soundman_bar)
package {
import flash.display.*;
public dynamic class soundman_bar extends MovieClip {
}
}//package
Section 318
//soundman_idle (soundman_idle)
package {
import flash.display.*;
public dynamic class soundman_idle extends MovieClip {
}
}//package
Section 319
//soundman_mnt (soundman_mnt)
package {
import flash.display.*;
public dynamic class soundman_mnt extends MovieClip {
}
}//package
Section 320
//soundman_sec (soundman_sec)
package {
import flash.display.*;
public dynamic class soundman_sec extends MovieClip {
}
}//package
Section 321
//soundman_sound (soundman_sound)
package {
import flash.display.*;
public dynamic class soundman_sound extends MovieClip {
}
}//package
Section 322
//SoundmanMC (SoundmanMC)
package {
import flash.display.*;
public dynamic class SoundmanMC extends MovieClip {
public var energyMeter:MovieClip;
public function SoundmanMC(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8);
}
function frame3(){
stop();
}
function frame6(){
stop();
}
function frame7(){
stop();
}
function frame1(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
function frame8(){
stop();
}
function frame2(){
stop();
}
}
}//package
Section 323
//soundTable_0 (soundTable_0)
package {
import flash.display.*;
public dynamic class soundTable_0 extends MovieClip {
public var btnHitArea:SimpleButton;
public function soundTable_0(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package
Section 324
//soundTable_1 (soundTable_1)
package {
import flash.display.*;
public dynamic class soundTable_1 extends MovieClip {
public var btnHitArea:SimpleButton;
public function soundTable_1(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package
Section 325
//soundTable_2 (soundTable_2)
package {
import flash.display.*;
public dynamic class soundTable_2 extends MovieClip {
public var btnHitArea:SimpleButton;
public function soundTable_2(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package
Section 326
//stage_0_sound (stage_0_sound)
package {
import flash.display.*;
public dynamic class stage_0_sound extends MovieClip {
}
}//package
Section 327
//stage_1_sound (stage_1_sound)
package {
import flash.display.*;
public dynamic class stage_1_sound extends MovieClip {
}
}//package
Section 328
//stage_2_sound (stage_2_sound)
package {
import flash.display.*;
public dynamic class stage_2_sound extends MovieClip {
}
}//package
Section 329
//stageBand_0 (stageBand_0)
package {
import flash.display.*;
public dynamic class stageBand_0 extends MovieClip {
public function stageBand_0(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package
Section 330
//stageBand_1 (stageBand_1)
package {
import flash.display.*;
public dynamic class stageBand_1 extends MovieClip {
public function stageBand_1(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package
Section 331
//stageBand_2 (stageBand_2)
package {
import flash.display.*;
public dynamic class stageBand_2 extends MovieClip {
public function stageBand_2(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package
Section 332
//STARTING_SHOW_COUNTRY (STARTING_SHOW_COUNTRY)
package {
import flash.media.*;
public dynamic class STARTING_SHOW_COUNTRY extends Sound {
}
}//package
Section 333
//STARTING_SHOW_HIPHOP (STARTING_SHOW_HIPHOP)
package {
import flash.media.*;
public dynamic class STARTING_SHOW_HIPHOP extends Sound {
}
}//package
Section 334
//STARTING_SHOW_ROCK (STARTING_SHOW_ROCK)
package {
import flash.media.*;
public dynamic class STARTING_SHOW_ROCK extends Sound {
}
}//package
Section 335
//tutorial1Screen (tutorial1Screen)
package {
import flash.display.*;
import flash.text.*;
public dynamic class tutorial1Screen extends MovieClip {
public var txtDialog:TextField;
public var mcBody:MovieClip;
public var bntExitTuto:MovieClip;
}
}//package
Section 336
//tutorial2Screen (tutorial2Screen)
package {
import flash.display.*;
import flash.text.*;
public dynamic class tutorial2Screen extends MovieClip {
public var txtDialog:TextField;
public var mcBody:MovieClip;
public var bntExitTuto:MovieClip;
}
}//package
Section 337
//tutorial3Screen (tutorial3Screen)
package {
import flash.display.*;
import flash.text.*;
public dynamic class tutorial3Screen extends MovieClip {
public var txtDialog:TextField;
public var mcBody:MovieClip;
public var bntExitTuto:MovieClip;
}
}//package
Section 338
//upgrade_area (upgrade_area)
package {
import flash.display.*;
public dynamic class upgrade_area extends MovieClip {
}
}//package
Section 339
//upgrade_char (upgrade_char)
package {
import flash.display.*;
public dynamic class upgrade_char extends MovieClip {
public function upgrade_char(){
addFrameScript(18, frame19);
}
function frame19(){
stop();
}
}
}//package
Section 340
//upgrade_panel_area (upgrade_panel_area)
package {
import flash.display.*;
import flash.text.*;
public dynamic class upgrade_panel_area extends MovieClip {
public var txtValUp:TextField;
public var txtDesc:TextField;
public var mcTitle:MovieClip;
public var btnBuy:MovieClip;
public var btnCancel:MovieClip;
}
}//package
Section 341
//upgrade_stage (upgrade_stage)
package {
import flash.display.*;
public dynamic class upgrade_stage extends MovieClip {
public function upgrade_stage(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package
Section 342
//upgradeCharsButton (upgradeCharsButton)
package {
import flash.display.*;
public dynamic class upgradeCharsButton extends MovieClip {
public var out:upgrade_char;
public var down:upgrade_char;
public var btnHitArea:SimpleButton;
public var over:upgrade_char;
}
}//package
Section 343
//weeks (weeks)
package {
import flash.display.*;
import flash.text.*;
public dynamic class weeks extends MovieClip {
public var txtFriday:TextField;
}
}//package