Section 1
//cscore_114 (004_fla.cscore_114)
package 004_fla {
import flash.display.*;
import flash.text.*;
public dynamic class cscore_114 extends MovieClip {
public var _t_cScore:TextField;
}
}//package 004_fla
Section 2
//dTxt_108 (004_fla.dTxt_108)
package 004_fla {
import flash.display.*;
import flash.text.*;
public dynamic class dTxt_108 extends MovieClip {
public var _t_dTxt:TextField;
}
}//package 004_fla
Section 3
//hiscore_111 (004_fla.hiscore_111)
package 004_fla {
import flash.display.*;
import flash.text.*;
public dynamic class hiscore_111 extends MovieClip {
public var _t_record:TextField;
}
}//package 004_fla
Section 4
//input_19 (004_fla.input_19)
package 004_fla {
import flash.display.*;
import flash.text.*;
public dynamic class input_19 extends MovieClip {
public var _t_name:TextField;
}
}//package 004_fla
Section 5
//spri_113 (004_fla.spri_113)
package 004_fla {
import flash.display.*;
public dynamic class spri_113 extends MovieClip {
public function spri_113(){
addFrameScript(10, frame11);
}
function frame11(){
stop();
}
}
}//package 004_fla
Section 6
//Timeline_101 (004_fla.Timeline_101)
package 004_fla {
import flash.display.*;
public dynamic class Timeline_101 extends MovieClip {
public var _m_qBar:MovieClip;
public var _m_qBg:MovieClip;
public function Timeline_101(){
addFrameScript(15, frame16);
}
function frame16(){
gotoAndPlay("2");
}
}
}//package 004_fla
Section 7
//Timeline_104 (004_fla.Timeline_104)
package 004_fla {
import flash.display.*;
public dynamic class Timeline_104 extends MovieClip {
public var _m_hou:MovieClip;
public var _m_min:MovieClip;
}
}//package 004_fla
Section 8
//Timeline_112 (004_fla.Timeline_112)
package 004_fla {
import flash.display.*;
public dynamic class Timeline_112 extends MovieClip {
public var _m_explode:MovieClip;
}
}//package 004_fla
Section 9
//Timeline_154 (004_fla.Timeline_154)
package 004_fla {
import flash.events.*;
import flash.display.*;
public dynamic class Timeline_154 extends MovieClip {
public function Timeline_154(){
addFrameScript(37, frame38, 90, frame91, 253, frame254, 296, frame297, 313, frame314, 357, frame358, 372, frame373, 391, frame392, 426, frame427, 507, frame508);
}
function frame427(){
stop();
}
function frame314(){
this.dispatchEvent(new Event("getCopy"));
}
function frame297(){
gotoAndPlay("laugh");
}
function frame91(){
this.dispatchEvent(new Event("onTurn"));
}
function frame508(){
stop();
}
function frame358(){
SoundManager.getInstance().playSound("sd_get");
}
function frame38(){
gotoAndPlay("shine");
}
function frame373(){
this.dispatchEvent(new Event("copyGetted"));
}
function frame254(){
gotoAndPlay("talk");
}
function frame392(){
this.dispatchEvent(new Event("getCopyDone"));
}
}
}//package 004_fla
Section 10
//Timeline_156 (004_fla.Timeline_156)
package 004_fla {
import flash.events.*;
import flash.display.*;
public dynamic class Timeline_156 extends MovieClip {
public var _m_logo:MovieClip;
public var _m_cup:MovieClip;
public var _m_item:Item;
public function Timeline_156(){
addFrameScript(116, frame117, 185, frame186, 203, frame204, 228, frame229, 271, frame272, 276, frame277, 281, frame282, 285, frame286, 315, frame316, 356, frame357, 424, frame425);
}
function frame272(){
this.dispatchEvent(new Event("onGetUp"));
}
function frame277(){
SoundManager.getInstance().playSound("sd_put", SoundManager.TYPE_BTN);
}
function frame316(){
this.dispatchEvent(new Event("onFallDone"));
}
function frame286(){
gotoAndPlay("shake");
}
function frame204(){
this.dispatchEvent(new Event("finding"));
}
function frame282(){
this.dispatchEvent(new Event("onShake"));
}
function frame186(){
gotoAndPlay("stupid");
}
function frame229(){
gotoAndPlay("find");
}
function frame117(){
gotoAndPlay("normal");
}
function frame357(){
gotoAndPlay("wave");
}
function frame425(){
this.dispatchEvent(new Event("onUglyDone"));
}
}
}//package 004_fla
Section 11
//Timeline_171 (004_fla.Timeline_171)
package 004_fla {
import flash.events.*;
import flash.display.*;
public dynamic class Timeline_171 extends MovieClip {
public function Timeline_171(){
addFrameScript(66, frame67, 80, frame81, 129, frame130, 170, frame171, 316, frame317, 394, frame395, 443, frame444, 504, frame505, 525, frame526, 571, frame572, 608, frame609, 669, frame670, 690, frame691, 713, frame714, 747, frame748, 804, frame805, 863, frame864, 891, frame892);
}
function frame395(){
gotoAndPlay("crazyz");
}
function frame714(){
this.dispatchEvent(new Event("onDrinkD"));
}
function frame670(){
SoundManager.getInstance().playSound("sd_drink", SoundManager.TYPE_BTN);
this.dispatchEvent(new Event("onDrink"));
}
function frame317(){
gotoAndPlay("talkToLady");
}
function frame81(){
SoundManager.getInstance().playSound("sd_smokeIn", SoundManager.TYPE_BTN);
}
function frame444(){
gotoAndPlay("dance");
}
function frame609(){
gotoAndPlay("shout");
}
function frame171(){
this.dispatchEvent(new Event("onSmokeDone"));
}
function frame572(){
this.dispatchEvent(new Event("onDrinkDone"));
}
function frame691(){
SoundManager.getInstance().playSound("sd_turn", SoundManager.TYPE_BTN);
}
function frame864(){
this.dispatchEvent(new Event("onAmazingDone"));
}
function frame505(){
SoundManager.getInstance().playSound("sd_drink", SoundManager.TYPE_BTN);
this.dispatchEvent(new Event("onDrink"));
}
function frame748(){
gotoAndPlay("ugly");
}
function frame526(){
SoundManager.getInstance().playSound("sd_ha", SoundManager.TYPE_BTN);
}
function frame805(){
gotoAndPlay("wz");
}
function frame130(){
SoundManager.getInstance().playSound("sd_smokeOut", SoundManager.TYPE_BTN);
}
function frame892(){
gotoAndPlay("middState");
}
function frame67(){
gotoAndPlay("talk2");
}
}
}//package 004_fla
Section 12
//Timeline_177 (004_fla.Timeline_177)
package 004_fla {
import flash.events.*;
import flash.display.*;
public dynamic class Timeline_177 extends MovieClip {
public function Timeline_177(){
addFrameScript(1, frame2, 115, frame116, 222, frame223);
}
function frame223(){
gotoAndPlay(1);
}
function frame2(){
SoundManager.getInstance().playSound("sd_copyCat");
}
function frame116(){
this.dispatchEvent(new Event("copyDone"));
}
}
}//package 004_fla
Section 13
//Timeline_97 (004_fla.Timeline_97)
package 004_fla {
import flash.display.*;
public dynamic class Timeline_97 extends MovieClip {
public var vbContainer:MovieClip;
public var _m_bloodBar:VirtualBlood;
}
}//package 004_fla
Section 14
//tscore_110 (004_fla.tscore_110)
package 004_fla {
import flash.display.*;
import flash.text.*;
public dynamic class tscore_110 extends MovieClip {
public var _t_totalScore:TextField;
}
}//package 004_fla
Section 15
//b_back (b_back)
package {
public dynamic class b_back extends Button {
}
}//package
Section 16
//b_back2 (b_back2)
package {
public dynamic class b_back2 extends Button {
}
}//package
Section 17
//b_highScore (b_highScore)
package {
public dynamic class b_highScore extends Button {
}
}//package
Section 18
//b_more2 (b_more2)
package {
public dynamic class b_more2 extends Button {
}
}//package
Section 19
//b_start (b_start)
package {
public dynamic class b_start extends Button {
}
}//package
Section 20
//b_sub (b_sub)
package {
public dynamic class b_sub extends Button {
}
}//package
Section 21
//BACK (BACK)
package {
public dynamic class BACK extends MyText {
}
}//package
Section 22
//Boss (Boss)
package {
import flash.events.*;
public class Boss extends Character {
private const S_UGLY:int = 9;
private const D_MIDD:int = 0;
private const S_DRINKD:int = 8;
private const D_RIGHT:int = 1;
private const S_DIED:int = 12;
private const S_WZ:int = 10;
private const S_SMOKE:int = 2;
private const S_DANCE:int = 4;
private const S_TALKTOLADY:int = 3;
private const S_LOOK:int = 13;
private const D_LEFT:int = -1;
private const S_TALK:int = 1;
private const S_PULLBACK:int = 14;
private const S_TURNBACK:int = 15;
private const S_CRAZY:int = 11;
private const S_DRINK:int = 6;
private const S_SHOUT:int = 7;
private const S_MIDDSTATE:int = 5;
public var ployer:Boy;
private var nFunc:Function;
private var leftFuncs:Array;
private var dir:int;// = -1
private var nDir:int;
public var ladyLove:Girl;
private var rightFuncs:Array;
private var cFunc:Function;
public function Boss():void{
dir = -1;
super();
leftFuncs = [talk, turnBack];
rightFuncs = [talkToLady, talkToLady, talkToLady, talkToLady, talkToLady, talkToLady, talkToLady, talkToLady, lookAtLady, lookAtLady, lookAtLady, lookAtLady, lookAtLady, smoke, smoke, smoke, dance];
instance.addEventListener("onDrinkDone", onDrinkDone, false, 0, true);
instance.addEventListener("onSmokeDone", onSmokeDone, false, 0, true);
instance.addEventListener("onDrinkD", onDrinkD, false, 0, true);
instance.addEventListener("onAmazingDone", onAmazingDone, false, 0, true);
instance.addEventListener("onDrink", onDrink, false, 0, true);
}
private function onDanceOver():void{
SoundManager.getInstance().stopBossSound();
getRandomAction();
}
private function onAmazingDone(_arg1:Event):void{
instance.gotoAndPlay("shout");
}
override public function onDied():void{
if (state == S_DIED){
return;
};
clearTimer();
super.onDied();
setDelay(amaze, 0.5, 0.4);
}
public function checkDir():Boolean{
return ((dir == D_LEFT));
}
public function checkState():Boolean{
return ((((((((((state == S_DRINK)) || ((state == S_DRINKD)))) || ((state == S_PULLBACK)))) || ((state == S_WZ)))) || ((state == S_UGLY))));
}
private function getSpecial(_arg1:Array):void{
while (nFunc == cFunc) {
nFunc = getRandomSpecial(_arg1);
};
cFunc = nFunc;
}
private function onSmokeDone(_arg1:Event):void{
getRandomAction();
}
private function crazy():void{
state = S_CRAZY;
instance.gotoAndPlay("crazy");
}
private function drink():void{
this.ployer.hideCup();
state = S_DRINK;
instance.gotoAndPlay("drink");
}
private function talk():void{
state = S_TALK;
instance.gotoAndPlay("talk");
setDelay(getRandomAction, 4, 2);
}
private function drinkD():void{
this.ployer.hideCup();
state = S_DRINKD;
instance.gotoAndPlay("drinkD");
}
private function getRandomSpecial(_arg1:Array):Function{
return (_arg1[Math.floor((Math.random() * _arg1.length))]);
}
public function update():void{
if ((((((((state == S_TALKTOLADY)) || ((state == S_LOOK)))) && (ladyLove.checkPP()))) && (!((state == S_CRAZY))))){
clearTimer();
crazy();
} else {
if ((((state == S_CRAZY)) && (!(ladyLove.checkPP())))){
clearTimer();
getRandomAction();
};
};
}
private function pullBack():void{
state = S_PULLBACK;
instance.gotoAndPlay("pullBack");
}
private function shout():void{
state = S_SHOUT;
instance.gotoAndPlay("shout");
setDelay(getRandomAction, 4, 2);
}
private function wz():void{
SoundManager.getInstance().playSound("sd_ugly");
state = S_WZ;
instance.gotoAndPlay("wz");
setDelay(pullBack, 3, 1);
}
private function turnBack():void{
instance.gotoAndStop("turnBack");
state = S_TURNBACK;
if (ToolBar.cTotalScore){
setDelay(drinkD, 2, 1);
} else {
setDelay(drink, 2, 1);
};
}
private function onDrinkDone(_arg1:Event):void{
ployer.showCup();
getRandomAction();
}
private function lookAtLady():void{
state = S_LOOK;
instance.gotoAndStop("lookAtLady");
setDelay(getRandomAction, 4, 2);
}
public function Active():void{
dir = D_RIGHT;
var _local1 = rightFuncs;
_local1[Math.floor((Math.random() * rightFuncs.length))]();
}
private function getRandomAction():void{
switch (dir){
case D_MIDD:
if (nDir == D_LEFT){
getSpecial(leftFuncs);
dir = D_LEFT;
} else {
getSpecial(rightFuncs);
dir = D_RIGHT;
};
break;
case D_LEFT:
if (Math.random() > 0.38){
getSpecial(rightFuncs);
dir = D_RIGHT;
} else {
dir = D_LEFT;
getSpecial(leftFuncs);
};
break;
case D_RIGHT:
if (Math.random() > 0.4){
nDir = ((Math.random() > 0.38)) ? D_LEFT : D_RIGHT;
nFunc = (cFunc = middState1);
dir = D_MIDD;
} else {
getSpecial(rightFuncs);
dir = D_RIGHT;
};
break;
};
cFunc();
}
public function onDrinkD(_arg1:Event):void{
if (Math.random() > 0.5){
wz();
} else {
ugly();
};
}
private function smoke():void{
state = S_SMOKE;
instance.gotoAndPlay("smoke");
}
private function ugly():void{
state = S_UGLY;
instance.gotoAndPlay("ugly");
setDelay(pullBack, 3, 1);
}
private function amaze():void{
instance.gotoAndPlay("amaze");
state = S_DIED;
}
private function talkToLady():void{
state = S_TALKTOLADY;
instance.gotoAndPlay("talkToLady");
setDelay(getRandomAction, 4, 2);
}
private function dance():void{
SoundManager.getInstance().playSound("sd_dance", SoundManager.TYPE_BOSS);
state = S_DANCE;
instance.gotoAndPlay("dance");
setDelay(onDanceOver, 4, 2);
}
public function checkLady():Boolean{
return ((state == S_TALKTOLADY));
}
private function onDrink(_arg1:Event):void{
this.dispatchEvent(new Event("onDrinkDone"));
}
private function middState1():void{
SoundManager.getInstance().playSound("sd_sb");
state = S_MIDDSTATE;
instance.gotoAndPlay("middState");
setDelay(getRandomAction, 2, 0.5);
}
private function middState2():void{
state = S_MIDDSTATE;
instance.gotoAndStop("middState2");
setDelay(getRandomAction, 2, 0.5);
}
}
}//package
Section 23
//Boy (Boy)
package {
import flash.events.*;
import flash.display.*;
import flash.net.*;
public class Boy extends Character {
private const S_SHAKE:int = 3;
private const S_UGLY:int = 6;
private const S_STUPID:int = 1;
private const S_NORMAL:int = 0;
private const S_GET:int = 2;
private const S_GETUP:int = 3;
private const S_FAIL:int = 4;
private const S_FIND:int = 3;
private const S_WIN:int = 5;
public var boss:Boss;
private var acts:Array;
private var smoke:MovieClip;
private var m_cup:MovieClip;
private var isUgly:Boolean;// = false
public static var died:Boolean = false;
public static var shaked:int = 0;
public function Boy():void{
isUgly = false;
super();
shaked = 0;
acts = [stupid, normal];
instance.addEventListener("finding", onFinding, false, 0, true);
instance.addEventListener("onShake", onShake, false, 0, true);
instance.addEventListener("onGetUp", onGetUp, false, 0, true);
instance.addEventListener("onFallDone", onFallDone, false, 0, true);
instance.addEventListener("onUglyDone", onUglyDone, false, 0, true);
instance._m_logo.addEventListener(MouseEvent.CLICK, getMoreGames, false, 0, true);
instance._m_logo.gotoAndStop(language.branding_nr);
instance._m_logo.buttonMode = true;
m_cup = (instance.getChildByName("_m_cup") as MovieClip);
}
private function shake():void{
state = S_SHAKE;
instance.gotoAndPlay("shake");
}
public function showCup():void{
m_cup.visible = true;
}
public function win():void{
clearTimer();
instance.gotoAndPlay("win");
state = S_WIN;
}
private function fail():void{
instance.gotoAndPlay("fail");
state = S_FAIL;
}
public function Active():void{
normal();
}
private function onGetUp(_arg1:Event):void{
shake();
}
public function cancelAction():void{
if (smoke != null){
smoke.alpha = (smoke.alpha - 0.05);
if (smoke.alpha <= 0){
smoke.alpha = 0;
removeChild(smoke);
smoke = null;
};
};
if ((((((((state == S_GETUP)) || ((state == S_SHAKE)))) || ((state == S_GET)))) || ((state == S_FIND)))){
shaked = 0;
SoundManager.getInstance().stopItemSound();
this.dispatchEvent(new Event("onGetScore"));
clearTimer();
getRandomAction();
} else {
if (isUgly){
isUgly = false;
};
};
}
private function onNormalDone():void{
SoundManager.getInstance().stopManSound();
getRandomAction();
}
override public function onDied():void{
super.onDied();
SoundManager.getInstance().stopItemSound();
died = true;
fail();
}
public function getRandomAction():void{
clearTimer();
var _local1 = acts;
_local1[Math.floor((Math.random() * acts.length))]();
}
private function onShake(_arg1:Event):void{
if (smoke == null){
smoke = new Smoke();
addChild(smoke);
smoke.alpha = 0;
};
shaked++;
SoundManager.getInstance().playSound("sd_fear", SoundManager.TYPE_ITEM);
this.dispatchEvent(new Event("onGetScore"));
if ((shaked % 10) == 0){
SoundManager.getInstance().stopItemSound();
getSock();
};
}
private function getSock():void{
instance.gotoAndPlay("getSock");
state = S_GET;
}
private function ugly():void{
isUgly = true;
state = S_UGLY;
instance.gotoAndPlay("ugly");
}
private function getUp():void{
instance.gotoAndPlay("getUp");
state = S_GETUP;
}
public function doThings():void{
if (((!((smoke == null))) && ((state == S_SHAKE)))){
smoke.alpha = (smoke.alpha + 0.03);
if (smoke.alpha >= 1){
smoke.alpha = 1;
};
};
if (state == S_FAIL){
return;
};
if (((((boss.checkState()) && (!((state == S_UGLY))))) && (!(isUgly)))){
SoundManager.getInstance().stopManSound();
clearTimer();
ugly();
} else {
if (((((((((((!((state == S_GETUP))) && (!((state == S_SHAKE))))) && (!((state == S_FAIL))))) && (!((state == S_GET))))) && (!((state == S_FIND))))) && ((m_cup.visible == true)))){
SoundManager.getInstance().stopManSound();
isUgly = false;
clearTimer();
shake();
} else {
if (((boss.checkDir()) && ((m_cup.visible == true)))){
SoundManager.getInstance().stopManSound();
this.dispatchEvent(new Event("died"));
};
};
};
}
private function onFinding(_arg1:Event):void{
getUp();
}
private function find():void{
instance.gotoAndPlay("finding");
state = S_FIND;
setDelay(getUp, 3, 2);
}
private function getMoreGames(_arg1:MouseEvent):void{
navigateToURL(new URLRequest((language.url1 + "&utm_term=logo_level")), "_blank");
}
public function hideCup():void{
m_cup.visible = false;
}
private function onFallDone(_arg1:Event):void{
instance.stop();
}
public function onUglyDone(_arg1:Event):void{
getRandomAction();
}
private function stupid():void{
instance.gotoAndPlay("stupid");
state = S_STUPID;
setDelay(getRandomAction, 8, 3);
}
private function normal():void{
SoundManager.getInstance().playSound("sd_keyBoard", SoundManager.TYPE_MAN, true);
instance.gotoAndPlay("normal");
state = S_NORMAL;
setDelay(onNormalDone, 8, 3);
}
}
}//package
Section 24
//Button (Button)
package {
import flash.events.*;
import flash.display.*;
import flash.text.*;
public class Button extends MovieClip {
private var T_txt:TextField;
private var toogle:Boolean;// = false
public var _m_logo:MovieClip;
public function Button(){
toogle = false;
super();
this.stop();
T_txt = (getChildByName("_txt") as TextField);
this.mouseChildren = false;
this.buttonMode = true;
this.addEventListener(MouseEvent.MOUSE_OVER, onOver);
this.addEventListener(MouseEvent.MOUSE_UP, onUp);
this.addEventListener(MouseEvent.MOUSE_DOWN, onDown);
this.addEventListener(MouseEvent.MOUSE_OUT, onOut);
}
private function onDown(_arg1:MouseEvent):void{
if (!toogle){
SoundManager.getInstance().playSound("sd_down", SoundManager.TYPE_BTN);
this.gotoAndStop(3);
};
}
public function setToogle(_arg1:Boolean):void{
if (_arg1){
this.gotoAndStop(3);
} else {
this.gotoAndStop(1);
};
toogle = _arg1;
}
private function onOver(_arg1:MouseEvent):void{
if (!toogle){
this.gotoAndStop(2);
SoundManager.getInstance().playSound("sd_on", SoundManager.TYPE_BTN);
};
}
private function onUp(_arg1:MouseEvent):void{
if (!toogle){
this.gotoAndStop(1);
};
}
public function setBtnText(_arg1:String):void{
if (T_txt != null){
T_txt.text = _arg1;
};
}
private function onOut(_arg1:MouseEvent):void{
if (!toogle){
this.gotoAndStop(1);
};
}
}
}//package
Section 25
//Character (Character)
package {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
public class Character extends MovieClip {
public var tm:int;
public var instance:MovieClip;
public var state:int;// = 0
public function Character():void{
state = 0;
super();
instance = (getChildAt(0) as MovieClip);
instance.stop();
instance.addEventListener("reset", reset, false, 0, true);
}
public function setDelay(_arg1:Function, _arg2:Number, _arg3:Number=1):void{
var _local4:Number;
_local4 = (Math.random() * _arg2);
if (_local4 <= _arg3){
_local4 = _arg3;
};
tm = setTimeout(_arg1, (_local4 * 1000));
}
public function onDied():void{
clearTimer();
}
public function reset(_arg1:Event):void{
instance.stop();
}
public function stick():void{
instance.stop();
clearTimer();
}
public function clearTimer():void{
try {
clearTimeout(tm);
} catch(e:Error) {
};
}
}
}//package
Section 26
//CopyCat (CopyCat)
package {
import flash.events.*;
public class CopyCat extends Character {
private var copies:int;// = 0
public function CopyCat():void{
copies = 0;
super();
instance.addEventListener("copyDone", copyDone, false, 0, true);
}
public function Active():void{
instance.play();
}
override public function onDied():void{
instance.stop();
}
public function clearCopy():void{
copies = 0;
}
public function copyDone(_arg1:Event):void{
copies++;
}
public function checkCopy():Boolean{
return (!((copies == 0)));
}
}
}//package
Section 27
//GAME3000 (GAME3000)
package {
public dynamic class GAME3000 extends MyText {
}
}//package
Section 28
//GameOver (GameOver)
package {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
public class GameOver extends MovieClip {
public var _m_score:MovieClip;
var _b:MovieClip;
public var _b_re:MovieClip;
public var _m_name:MovieClip;
private var m_re:MovieClip;
public var _boss:MovieClip;
public var _m_logo:MovieClip;
private var sharedObj:SharedObject;
private var boss:MovieClip;
private var t_name:MovieClip;
public var _m_txt:MovieClip;
private var m_txt:MovieClip;
public var _b_back:MovieClip;
public var staFF:MovieClip;
private var nameTxt:TextField;
public function GameOver():void{
addFrameScript(23, frame24, 43, frame44, 379, frame380);
_m_logo.addEventListener(MouseEvent.CLICK, getMoreGames, false, 0, true);
_m_logo.buttonMode = true;
_m_logo.gotoAndStop(language.branding_nr);
m_re = (getChildByName("_b_re") as MovieClip);
m_re.addEventListener(MouseEvent.CLICK, reStartGame, false, 0, true);
_b_back.addEventListener(MouseEvent.CLICK, resetGame, false, 0, true);
boss = (getChildByName("_boss") as MovieClip);
m_txt = (getChildByName("_m_txt") as MovieClip);
if (Boy.died){
boss.gotoAndStop(1);
m_txt.gotoAndStop(1);
} else {
if ((((ToolBar.totalScore > 0)) && (!(Boy.died)))){
boss.gotoAndStop(2);
m_txt.gotoAndStop(2);
} else {
boss.gotoAndStop(3);
m_txt.gotoAndStop(3);
};
};
staFF.visible = false;
boss.addEventListener(MouseEvent.CLICK, showStaff, false, 0, true);
staFF.addEventListener(MouseEvent.CLICK, showStaff, false, 0, true);
t_name = (getChildByName("_m_name") as MovieClip);
nameTxt = (t_name.getChildByName("_t_name") as TextField);
nameTxt.text = "Player";
nameTxt.addEventListener(FocusEvent.FOCUS_IN, onFocusIn, false, 0, true);
nameTxt.addEventListener(FocusEvent.FOCUS_OUT, onFocusOut, false, 0, true);
}
private function showStaff(_arg1:MouseEvent):void{
staFF.visible = !(staFF.visible);
}
public function init():void{
}
public function setScore():void{
}
private function onFocusIn(_arg1:FocusEvent):void{
if (nameTxt.text == "Player"){
nameTxt.text = "";
};
}
private function onFocusOut(_arg1:FocusEvent):void{
if (nameTxt.text == ""){
nameTxt.text = "Player";
};
}
function frame24(){
setScore();
}
public function reStartGame(_arg1:MouseEvent):void{
ToolBar.palyerName = nameTxt.text;
this.dispatchEvent(new Event("onSubmitScore"));
}
private function getMoreGames(_arg1:MouseEvent):void{
navigateToURL(new URLRequest((language.url1 + "&utm_term=logo_gameover")), "_blank");
}
function frame44(){
init();
}
function frame380(){
stop();
}
public function resetGame(_arg1:MouseEvent):void{
this.dispatchEvent(new Event("onShowMainMenu"));
}
}
}//package
Section 29
//GameStage (GameStage)
package {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
public class GameStage extends MovieClip {
private var paused:Boolean;// = true
private var boss:Boss;
private var splash;
private var toolbar:ToolBar;
private var disabled:Boolean;// = false
private var girl:Girl;
private var boy:Boy;
private var cat:CopyCat;
public static var firstPlay:Boolean = true;
public function GameStage():void{
disabled = false;
paused = true;
super();
init();
}
private function init():void{
var _local1:HowToPlay;
toolbar = new ToolBar();
boss = new Boss();
boy = new Boy();
girl = new Girl();
cat = new CopyCat();
addChild(cat);
addChild(boy);
addChild(boss);
addChild(girl);
addChild(toolbar);
girl.copyCat = cat;
boss.ployer = boy;
boss.ladyLove = girl;
boy.boss = boss;
girl.boss = boss;
boy.addEventListener("onGetScore", onGetScore, false, 0, true);
boy.addEventListener("died", onDied, false, 0, true);
boss.addEventListener("onDrinkDone", onDrink, false, 0, true);
toolbar.addEventListener("onTimeOut", onGameOver, false, 0, true);
if (firstPlay){
firstPlay = false;
_local1 = new HowToPlay();
_local1.addEventListener("onRemoveHelp", onRemoveHelp, false, 0, true);
addChild(_local1);
} else {
initGame();
};
}
public function releaseHandle():void{
boy.cancelAction();
}
private function initGame():void{
paused = false;
boss.Active();
boy.Active();
girl.Active();
cat.Active();
SoundManager.getInstance().playSound("mainBg", SoundManager.TYPE_BG);
}
private function onRemoveHelp(_arg1:Event):void{
_arg1.currentTarget.removeEventListener("onRemoveHelp", onRemoveHelp);
initGame();
}
public function mouseHandle():void{
if (((!(disabled)) && (!(paused)))){
boy.doThings();
};
}
private function onDied(_arg1:Event):void{
if (disabled){
return;
};
SoundManager.getInstance().playSound("sd_catch");
SoundManager.getInstance().stopBgSound();
cat.onDied();
boss.onDied();
boy.onDied();
girl.onDied();
onGameOver();
}
public function update():void{
if (paused){
return;
};
boss.update();
toolbar.update();
girl.update();
}
private function onSplashDone(_arg1:Event):void{
disabled = false;
cat.stick();
boss.stick();
boy.stick();
girl.stick();
splash.removeEventListener("onSplashDone", onSplashDone);
removeChild(splash);
splash = null;
this.dispatchEvent(new Event("onGameOver"));
}
private function onGetScore(_arg1:Event):void{
toolbar.setScore(Boy.shaked);
}
private function onGameOver(_arg1:Event=null):void{
var _local2:Object;
if (disabled){
return;
};
if (((!((ToolBar.totalScore == 0))) && (!(Boy.died)))){
boy.win();
};
if (!Boy.died){
boss.stick();
};
disabled = true;
_local2 = getDefinitionByName("Splash");
splash = new (_local2);
splash.addEventListener("onSplashDone", onSplashDone, false, 0, true);
addChild(splash);
}
private function onDrink(_arg1:Event):void{
toolbar.sendScore();
}
}
}//package
Section 30
//Girl (Girl)
package {
import flash.events.*;
public class Girl extends Character {
private const S_NULL:int = -1;
private const S_LOOK:int = 8;
private const S_TALK:int = 2;
private const S_SHINE:int = 0;
private const S_LAUGH:int = 3;
private const S_GET:int = 4;
private const S_GET_E:int = 6;
private const S_GET_S:int = 5;
private const S_AFRAID:int = 9;
private const S_STAND:int = 7;
private const S_TURN:int = 1;
private var died:Boolean;// = false
private var funcs:Array;
public var copyCat:CopyCat;
public var boss:Boss;
private var bitched:Boolean;
private var actionToBoss:Array;
public function Girl():void{
died = false;
super();
funcs = [shine, shine, shine, shine, turnAround, checkCopy, stand, laugh, checkCopy, checkCopy];
actionToBoss = [laugh, talk, lookAtBoss, talk, talk, lookAtBoss, lookAtBoss];
instance.addEventListener("onTurn", onTurn, false, 0, true);
instance.addEventListener("getCopyDone", getCopyDone, false, 0, true);
instance.addEventListener("copyGetted", copyGetted, false, 0, true);
instance.addEventListener("getCopy", getCopy, false, 0, true);
}
private function getRandomActions():void{
var _local1 = funcs;
_local1[Math.floor((Math.random() * funcs.length))]();
}
public function checkPP():Boolean{
return ((((state == S_GET_S)) && (bitched)));
}
private function getCopyDone(_arg1:Event):void{
resetState();
}
private function onTurn(_arg1:Event):void{
resetState();
}
private function getCopy(_arg1:Event):void{
state = S_GET_S;
if (Math.random() > 0.6){
bitched = true;
} else {
bitched = false;
};
}
public function Active():void{
getRandomActions();
}
override public function onDied():void{
super.onDied();
died = true;
if (!checkGetCopy()){
afraid();
};
}
public function checkState():Boolean{
return ((((((state == S_LAUGH)) || ((state == S_TALK)))) || ((state == S_LOOK))));
}
private function shine():void{
instance.gotoAndPlay("shine");
state = S_SHINE;
setDelay(resetState, 5, 2);
}
private function afraid():void{
instance.gotoAndPlay("afraid");
state = S_AFRAID;
}
private function laugh():void{
instance.gotoAndPlay("laugh");
state = S_LAUGH;
setDelay(resetState, 5, 2);
}
private function resetState():void{
state = S_NULL;
}
private function checkCopy():void{
if (copyCat.checkCopy()){
copyCat.clearCopy();
instance.gotoAndPlay("checkCopy");
state = S_GET;
} else {
resetState();
};
}
private function turnAround():void{
instance.gotoAndPlay("turnAround");
state = S_TURN;
}
private function talk():void{
instance.gotoAndPlay("talk");
state = S_TALK;
setDelay(resetState, 5, 3);
}
public function update():void{
if (!checkGetCopy()){
if (((boss.checkLady()) && (!(checkState())))){
clearTimer();
var _local1 = actionToBoss;
_local1[Math.floor((Math.random() * actionToBoss.length))]();
} else {
if (((died) && (!((state == S_AFRAID))))){
afraid();
} else {
if (state == S_NULL){
getRandomActions();
};
};
};
};
}
private function lookAtBoss():void{
instance.gotoAndStop("lookAtBoss");
state = S_LOOK;
setDelay(resetState, 3, 1);
}
private function stand():void{
instance.gotoAndPlay("stand");
state = S_STAND;
setDelay(resetState, 4, 2);
}
private function copyGetted(_arg1:Event):void{
state = S_GET_E;
}
private function checkGetCopy():Boolean{
return ((((((state == S_GET)) || ((state == S_GET_S)))) || ((state == S_GET_E))));
}
}
}//package
Section 31
//HighScore (HighScore)
package {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
public class HighScore extends MovieClip {
public var score_10:TextField;
public var moreGames_btn:b_more2;
private var tempScores:Array;
private var scores:Array;
public var _m_logo:MovieClip;
private var sharedObj:SharedObject;
public var name_10:TextField;
public var name_3:TextField;
public var name_7:TextField;
public var name_1:TextField;
public var name_4:TextField;
public var name_5:TextField;
public var name_6:TextField;
public var name_9:TextField;
public var name_8:TextField;
private var b_back:MovieClip;
public var name_2:TextField;
public var score_2:TextField;
public var score_6:TextField;
public var score_7:TextField;
public var score_9:TextField;
public var score_3:TextField;
public var score_4:TextField;
public var score_5:TextField;
public var score_8:TextField;
public var score_1:TextField;
private var tt:TextField;
public var _b_back:b_back2;
public function HighScore():void{
tempScores = [{n:"Receptionist 10", s:-1}, {n:"Receptionist 9", s:100}, {n:"Receptionist 8", s:300}, {n:"Receptionist 7", s:600}, {n:"Receptionist 6", s:1000}, {n:"Receptionist 5", s:2000}, {n:"Receptionist 4", s:3500}, {n:"Receptionist 3", s:5000}, {n:"Receptionist 2", s:7500}, {n:"Receptionist 1", s:9000}];
super();
_m_logo.addEventListener(MouseEvent.CLICK, getMoreGames, false, 0, true);
moreGames_btn.addEventListener(MouseEvent.CLICK, getHGame, false, 0, true);
_m_logo.buttonMode = true;
_m_logo.gotoAndStop(language.branding_nr);
b_back = (this.getChildByName("_b_back") as MovieClip);
b_back.addEventListener(MouseEvent.CLICK, restartGame, false, 0, true);
this.x = 296;
this.y = 240.1;
sharedObj = SharedObject.getLocal("_nnnnn____rexczx", "/");
if ((((sharedObj.data == null)) || ((sharedObj.data.scores == null)))){
scores = tempScores;
} else {
scores = sharedObj.data.scores;
};
}
public function addNewScore(_arg1:String, _arg2:Number):void{
var _local3:Object;
_local3 = {n:_arg1, s:_arg2};
scores.push(_local3);
scores.sortOn("s", Array.NUMERIC);
if (scores.shift() != _local3){
sharedObj.data.scores = scores;
};
showScores();
}
private function restartGame(_arg1:MouseEvent):void{
this.dispatchEvent(new Event("onReStartGame"));
}
private function getMoreGames(_arg1:MouseEvent):void{
navigateToURL(new URLRequest((language.url1 + "&utm_term=logo_highscore")), "_blank");
}
public function showScores():void{
var _local1:int;
scores.sortOn("s", Array.NUMERIC);
_local1 = 1;
while (_local1 <= 10) {
tt = (getChildByName(("score_" + _local1)) as TextField);
if (scores[(scores.length - _local1)].s < 0){
tt.text = "0";
} else {
tt.text = String(scores[(scores.length - _local1)].s);
};
tt = (getChildByName(("name_" + _local1)) as TextField);
tt.text = scores[(scores.length - _local1)].n;
_local1++;
};
}
private function getHGame(_arg1:MouseEvent):void{
navigateToURL(new URLRequest((language.url1 + "&utm_term=button_highscore_3000games")), "_blank");
}
private function setHighScores(_arg1:Array, _arg2:Array):void{
var _local3:int;
_local3 = 1;
while (_local3 <= 10) {
_local3++;
};
}
}
}//package
Section 32
//HowToPlay (HowToPlay)
package {
import flash.events.*;
import flash.display.*;
public class HowToPlay extends MovieClip {
public var _b_start:START;
private var b_play:Button;
public function HowToPlay():void{
b_play = (this.getChildByName("_b_start") as Button);
b_play.addEventListener(MouseEvent.CLICK, continueGame, false, 0, true);
}
private function continueGame(_arg1:MouseEvent):void{
this.dispatchEvent(new Event("onRemoveHelp"));
parent.removeChild(this);
}
}
}//package
Section 33
//HOWTOPLAYga (HOWTOPLAYga)
package {
public dynamic class HOWTOPLAYga extends MyText {
}
}//package
Section 34
//HOWToplaygame (HOWToplaygame)
package {
public dynamic class HOWToplaygame extends MyText {
}
}//package
Section 35
//Item (Item)
package {
import flash.events.*;
import flash.display.*;
public class Item extends MovieClip {
public function Item():void{
this.addEventListener(Event.ADDED_TO_STAGE, changeLogo, false, 0, true);
}
private function changeLogo(_arg1:Event):void{
var _local2:int;
_local2 = (Boy.shaked / 10);
if (_local2 <= 4){
gotoAndStop((_local2 + 3));
} else {
gotoAndStop(7);
};
}
}
}//package
Section 36
//language (language)
package {
import flash.net.*;
public class language {
public static var SpillGroupUrl:Array = new Array();
public static var localConnection = new LocalConnection();
public static var _languageNum:uint = 0;
public static var _languageBox:Array = new Array();
public static var hostingdomain:String;
public static function get url2():String{
var _local1:int;
_local1 = 0;
while (_local1 < SpillGroupUrl.length) {
if (localConnection.domain == SpillGroupUrl[_local1]){
return (_languageBox[_languageNum].url2);
};
_local1++;
};
return (_languageBox[_languageNum].url2);
}
public static function get language_nr():String{
return (_languageBox[_languageNum].language_nr);
}
public static function get languageV():int{
return ((_languageNum + 1));
}
public static function set Language(_arg1:Object):void{
var returnDomain:Function;
var language1:*;
var language2:*;
var language3:*;
var language4:*;
var language5:*;
var language6:*;
var language7:*;
var language8:*;
var language9:*;
var language10:*;
var language11:*;
var language12:*;
var language13:*;
var language14:*;
var language15:*;
var language16:*;
var language17:*;
var language18:*;
var language19:*;
var myArray:Array;
var domainextention:int;
var domainname:int;
var languageVersion = _arg1;
returnDomain = function (_arg1:String):String{
var _local2:String;
var _local3:uint;
_local2 = new String();
_local3 = 7;
while (_local3 < _arg1.length) {
if (_arg1.charAt(_local3) == "/"){
break;
};
_local2 = (_local2 + _arg1.charAt(_local3));
_local3++;
};
return (_local2);
};
if (localConnection.domain != "localhost"){
myArray = localConnection.domain.split(".");
domainextention = (myArray.length - 1);
domainname = (myArray.length - 2);
hostingdomain = ((myArray[domainname] + ".") + myArray[domainextention]);
} else {
hostingdomain = "localhost";
};
language1 = new languageItem();
language1.url1 = ("http://www.gamesgames.com/moregames/?utm_source=brandedgames_external&utm_medium=Receptionists_Revenge&utm_campaign=" + hostingdomain);
language1.url2 = "http://www.gamesgames.com/moregames/?utm_source=brandedgames_internal&utm_medium=Receptionists_Revenge";
language1.language_nr = 1;
language1.branding_nr = 17;
_languageBox.push(language1);
language2 = new languageItem();
language2.url1 = "http://www.game.com.cn/moregames/";
language2.url2 = "http://www.game.com.cn/moregames/";
language2.language_nr = 2;
language2.branding_nr = 2;
_languageBox.push(language2);
language3 = new languageItem();
language3.url1 = ("http://www.spelletjes.nl/moregames/?utm_source=brandedgames_external&utm_medium=Receptionists_Revenge&utm_campaign=" + hostingdomain);
language3.url2 = "http://www.spelletjes.nl/moregames/?utm_source=brandedgames_internal&utm_medium=Receptionists_Revenge";
language3.language_nr = 3;
language3.branding_nr = 18;
_languageBox.push(language3);
language4 = new languageItem();
language4.url1 = ("http://www.jeux.fr/moregames/?utm_source=brandedgames_external&utm_medium=Receptionists_Revenge&utm_campaign=" + hostingdomain);
language4.url2 = "http://www.jeux.fr/moregames/?utm_source=brandedgames_internal&utm_medium=Receptionists_Revenge";
language4.language_nr = 4;
language4.branding_nr = 19;
_languageBox.push(language4);
language5 = new languageItem();
language5.url1 = ("http://www.jetztspielen.de/moregames/?utm_source=brandedgames_external&utm_medium=Receptionists_Revenge&utm_campaign=" + hostingdomain);
language5.url2 = "http://www.jetztspielen.de/moregames/?utm_source=brandedgames_internal&utm_medium=Receptionists_Revenge";
language5.language_nr = 5;
language5.branding_nr = 20;
_languageBox.push(language5);
language6 = new languageItem();
language6.url1 = ("http://www.gry.pl/moregames/?utm_source=brandedgames_external&utm_medium=Receptionists_Revenge&utm_campaign=" + hostingdomain);
language6.url2 = "http://www.gry.pl/moregames/?utm_source=brandedgames_internal&utm_medium=Receptionists_Revenge";
language6.language_nr = 6;
language6.branding_nr = 21;
_languageBox.push(language6);
language7 = new languageItem();
language7.url1 = ("http://www.spela.se/moregames/?utm_source=brandedgames_external&utm_medium=Receptionists_Revenge&utm_campaign=" + hostingdomain);
language7.url2 = "http://www.spela.se/moregames/?utm_source=brandedgames_internal&utm_medium=Receptionists_Revenge";
language7.language_nr = 7;
language7.branding_nr = 22;
_languageBox.push(language7);
language8 = new languageItem();
language8.url1 = ("http://www.gioco.it/moregames/?utm_source=brandedgames_external&utm_medium=Receptionists_Revenge&utm_campaign=" + hostingdomain);
language8.url2 = "http://www.gioco.it/moregames/?utm_source=brandedgames_internal&utm_medium=Receptionists_Revenge";
language8.language_nr = 8;
language8.branding_nr = 23;
_languageBox.push(language8);
language9 = new languageItem();
language9.url1 = ("http://www.juegos.com/moregames/?utm_source=brandedgames_external&utm_medium=Receptionists_Revenge&utm_campaign=" + hostingdomain);
language9.url2 = "http://www.juegos.com/moregames/?utm_source=brandedgames_internal&utm_medium=Receptionists_Revenge";
language9.language_nr = 9;
language9.branding_nr = 24;
_languageBox.push(language9);
language10 = new languageItem();
language10.url1 = ("http://www.ojogos.com.br/moregames/?utm_source=brandedgames_external&utm_medium=Receptionists_Revenge&utm_campaign=" + hostingdomain);
language10.url2 = "http://www.ojogos.com.br/moregames/?utm_source=brandedgames_internal&utm_medium=Receptionists_Revenge";
language10.language_nr = 11;
language10.branding_nr = 25;
_languageBox.push(language10);
language11 = new languageItem();
language11.url1 = ("http://www.games.co.id/moregames/?utm_source=brandedgames_external&utm_medium=Receptionists_Revenge&utm_campaign=" + hostingdomain);
language11.url2 = "http://www.games.co.id/moregames/?utm_source=brandedgames_internal&utm_medium=Receptionists_Revenge";
language11.language_nr = 13;
language11.branding_nr = 13;
_languageBox.push(language11);
language12 = new languageItem();
language12.url1 = ("http://www.ourgames.ru/moregames/?utm_source=brandedgames_external&utm_medium=Receptionists_Revenge&utm_campaign=" + hostingdomain);
language12.url2 = "http://www.ourgames.ru/moregames/?utm_source=brandedgames_internal&utm_medium=Receptionists_Revenge";
language12.language_nr = 12;
language12.branding_nr = 26;
_languageBox.push(language12);
language13 = new languageItem();
language13.url1 = ("http://www.games.co.uk/moregames/?utm_source=brandedgames_external&utm_medium=Receptionists_Revenge&utm_campaign=" + hostingdomain);
language13.url2 = "http://www.games.co.uk/moregames/?utm_source=brandedgames_internal&utm_medium=Receptionists_Revenge";
language13.language_nr = 16;
language13.branding_nr = 27;
_languageBox.push(language13);
language14 = new languageItem();
language14.url1 = ("http://www.game.co.in/moregames/?utm_source=brandedgames_external&utm_medium=Receptionists_Revenge&utm_campaign=" + hostingdomain);
language14.url2 = "http://www.game.co.in/moregames/?utm_source=brandedgames_internal&utm_medium=Receptionists_Revenge";
language14.language_nr = 16;
language14.branding_nr = 12;
_languageBox.push(language14);
language15 = new languageItem();
language15.url1 = ("http://www.oyunlar123.com/moregames/?utm_source=brandedgames_external&utm_medium=Receptionists_Revenge&utm_campaign=" + hostingdomain);
language15.url2 = "http://www.oyunlar123.com/moregames/?utm_source=brandedgames_internal&utm_medium=Receptionists_Revenge";
language15.language_nr = 14;
language15.branding_nr = 28;
_languageBox.push(language15);
language16 = new languageItem();
language16.url1 = ("http://www.game.com.my/moregames/?utm_source=brandedgames_external&utm_medium=Receptionists_Revenge&utm_campaign=" + hostingdomain);
language16.url2 = "http://www.game.com.my/moregames/?utm_source=brandedgames_internal&utm_medium=Receptionists_Revenge";
language16.language_nr = 15;
language16.branding_nr = 16;
_languageBox.push(language16);
language17 = new languageItem();
language17.url1 = ("http://www.ojogos.pt/moregames/?utm_source=brandedgames_external&utm_medium=Receptionists_Revenge&utm_campaign=" + hostingdomain);
language17.url2 = "http://www.ojogos.pt/moregames/?utm_source=brandedgames_internal&utm_medium=Receptionists_Revenge";
language17.language_nr = 10;
language17.branding_nr = 42;
_languageBox.push(language17);
language18 = new languageItem();
language18.url1 = ("http://www.laro.com.ph/moregames/?utm_source=brandedgames_external&utm_medium=Receptionists_Revenge&utm_campaign=" + hostingdomain);
language18.url2 = "http://www.laro.com.ph/moregames/?utm_source=brandedgames_internal&utm_medium=Receptionists_Revenge";
language18.language_nr = 16;
language18.branding_nr = 43;
_languageBox.push(language18);
language19 = new languageItem();
language19.url1 = ("http://www.egames.jp/moregames/?utm_source=brandedgames_external&utm_medium=Receptionists_Revenge&utm_campaign=" + hostingdomain);
language19.url2 = "http://www.egames.jp/moregames/?utm_source=brandedgames_internal&utm_medium=Receptionists_Revenge";
language19.language_nr = 17;
language19.branding_nr = 44;
_languageBox.push(language19);
SpillGroupUrl.push("localhost");
SpillGroupUrl.push("www8.agame.com");
if ((((((languageVersion is Number)) || ((languageVersion is uint)))) || ((languageVersion is int)))){
_languageNum = (Number(languageVersion) - 1);
};
}
public static function get url1():String{
var _local1:int;
_local1 = 0;
while (_local1 < SpillGroupUrl.length) {
if (localConnection.domain == SpillGroupUrl[_local1]){
return (_languageBox[_languageNum].url2);
};
_local1++;
};
return (_languageBox[_languageNum].url1);
}
public static function get branding_nr():String{
return (_languageBox[_languageNum].branding_nr);
}
}
}//package
class languageItem {
public var url1:String;
public var url2:String;
public var branding_nr:int;
public var language_nr:int;
private function languageItem(){
}
}
Section 37
//Loading (Loading)
package {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
public class Loading extends MovieClip {
public var _loadingTxt:TextField;
public var vbContainer:MovieClip;
private var loadingBar:MovieClip;
private var b_logo:MovieClip;
public var _b_logo:MovieClip;
private var loadingTxt:TextField;
public var _loadingBar:VirtualBlood;
public function Loading():void{
loadingTxt = (this.getChildByName("_loadingTxt") as TextField);
loadingBar = (this.getChildByName("_loadingBar") as MovieClip);
b_logo = (getChildByName("_b_logo") as MovieClip);
b_logo.buttonMode = true;
b_logo.addEventListener(MouseEvent.CLICK, getMoreGames, false, 0, true);
b_logo.gotoAndStop(language.branding_nr);
this.addEventListener(Event.ENTER_FRAME, checkLoading, false, 0, true);
}
private function checkLoading(_arg1:Event):void{
var _local2:Number;
_local2 = Math.floor(((loaderInfo.bytesLoaded / loaderInfo.bytesTotal) * 100));
this.loadingBar.scaleX = (_local2 / 100);
this.loadingTxt.text = (_local2 + " %");
if (loaderInfo.bytesLoaded >= loaderInfo.bytesTotal){
this.removeEventListener(Event.ENTER_FRAME, checkLoading);
this.dispatchEvent(new Event("onLoadDone"));
};
}
private function getMoreGames(_arg1:MouseEvent):void{
navigateToURL(new URLRequest((language.url1 + "&utm_term=logo_perloader")), "_blank");
}
}
}//package
Section 38
//loading1 (loading1)
package {
public dynamic class loading1 extends MyText {
}
}//package
Section 39
//Main (Main)
package {
import flash.events.*;
import flash.display.*;
import flash.net.*;
public class Main extends MovieClip {
private var gameOverMc:GameOver;
private var gameStage:GameStage;
private var listenSpr:Sprite;
private var highScoreMc:HighScore;
private var mainMenu:MainMenu;
private var mouseDown:Boolean;// = false
private var loadingMc:Loading;
public function Main():void{
mouseDown = false;
super();
language.Language = 1;
listenSpr = new Sprite();
addChild(listenSpr);
stage.scaleMode = StageScaleMode.NO_SCALE;
stage.showDefaultContextMenu = false;
this.addEventListener(Event.ENTER_FRAME, update);
listenSpr.stage.addEventListener(MouseEvent.MOUSE_DOWN, _onMouseDown);
listenSpr.stage.addEventListener(MouseEvent.MOUSE_UP, _onMouseUp);
this.stop();
loadingMc = new Loading();
loadingMc.addEventListener("onLoadDone", onLoadDone);
addChild(loadingMc);
}
private function init(_arg1=null):void{
var _local2:SharedObject;
if (mainMenu){
return;
};
mainMenu = new MainMenu();
mainMenu.addEventListener("onStartGame", onStartGame);
mainMenu.addEventListener("onShowHighScore", onShowHighScore);
addChild(mainMenu);
_local2 = SharedObject.getLocal("_nnnnn____rexczx", "/");
if ((((_local2.data.score == null)) || ((Number(_local2.data.score) < ToolBar.totalScore)))){
_local2.data.score = ToolBar.totalScore;
_local2.flush();
};
}
private function onReStartGame(_arg1:Event):void{
highScoreMc.removeEventListener("onReStartGame", onReStartGame);
removeChild(highScoreMc);
highScoreMc = null;
init();
}
private function _onMouseDown(_arg1:MouseEvent):void{
mouseDown = true;
}
private function onShowHighScore(_arg1:Event):void{
if (!highScoreMc){
highScoreMc = new HighScore();
highScoreMc.showScores();
highScoreMc.addEventListener("onReStartGame", onReStartGame);
addChild(highScoreMc);
};
}
private function onShowMainMenu(_arg1:Event):void{
gameOverMc.removeEventListener("onSubmitScore", onSubmitScore);
gameOverMc.removeEventListener("onShowMainMenu", onShowMainMenu);
removeChild(gameOverMc);
gameOverMc = null;
init();
}
private function onStartGame(_arg1:Event):void{
removeChild(mainMenu);
mainMenu.removeEventListener("onStartGame", onStartGame);
ToolBar.cTotalScore = 0;
ToolBar.totalScore = 0;
Boy.died = false;
Boy.shaked = 0;
mainMenu = null;
gameStage = new GameStage();
gameStage.addEventListener("onGameOver", onGameOver);
addChild(gameStage);
}
private function onSubmitScore(_arg1:Event):void{
gameOverMc.removeEventListener("onSubmitScore", onSubmitScore);
gameOverMc.removeEventListener("onShowMainMenu", onShowMainMenu);
removeChild(gameOverMc);
gameOverMc = null;
highScoreMc = new HighScore();
addChild(highScoreMc);
highScoreMc.addNewScore(ToolBar.palyerName, ToolBar.totalScore);
highScoreMc.addEventListener("onReStartGame", onReStartGame);
}
private function onLoadDone(_arg1:Event):void{
loadingMc.removeEventListener("onLoadDone", onLoadDone);
removeChild(loadingMc);
loadingMc = null;
this.gotoAndStop(3);
this.gotoAndStop(1);
SoundManager.getInstance().loadSounds();
init();
}
private function _onMouseUp(_arg1:MouseEvent):void{
mouseDown = false;
}
private function update(_arg1:Event):void{
if (gameStage){
if (mouseDown){
gameStage.mouseHandle();
} else {
gameStage.releaseHandle();
};
gameStage.update();
};
}
private function onGameOver(_arg1:Event):void{
gameStage.removeEventListener("onGameOver", onGameOver);
SoundManager.getInstance().clearAllSounds();
removeChild(gameStage);
gameStage = null;
gameOverMc = new GameOver();
gameOverMc.x = 307.4;
gameOverMc.y = 238.8;
gameOverMc.addEventListener("onSubmitScore", onSubmitScore);
gameOverMc.addEventListener("onShowMainMenu", onShowMainMenu);
addChild(gameOverMc);
}
}
}//package
Section 40
//MainMenu (MainMenu)
package {
import flash.events.*;
import flash.display.*;
import flash.net.*;
public class MainMenu extends MovieClip {
public var moreGames_btn:more;
public var startGame_btn:b_start;
private var soundOn:Boolean;// = true
public var _m_logo:MovieClip;
private var sharedObj:SharedObject;
public var highScores_btn:b_highScore;
public var m_sound:MovieClip;
public function MainMenu():void{
soundOn = true;
super();
sharedObj = SharedObject.getLocal("_nnnnn____rexczx", "/");
if (sharedObj.data.soundOn == null){
soundOn = true;
} else {
soundOn = sharedObj.data.soundOn;
};
turnSound();
startGame_btn.addEventListener(MouseEvent.CLICK, onStartGame, false, 0, true);
highScores_btn.addEventListener(MouseEvent.CLICK, onShowHighScore, false, 0, true);
_m_logo.addEventListener(MouseEvent.CLICK, getMoreGames, false, 0, true);
moreGames_btn.addEventListener(MouseEvent.CLICK, getHGame, false, 0, true);
moreGames_btn._m_logo.gotoAndStop(language.branding_nr);
_m_logo.buttonMode = true;
m_sound.addEventListener(MouseEvent.CLICK, setSound, false, 0, true);
m_sound.buttonMode = true;
}
private function onShowHighScore(_arg1:MouseEvent):void{
this.dispatchEvent(new Event("onShowHighScore"));
}
private function onStartGame(_arg1:MouseEvent):void{
this.dispatchEvent(new Event("onStartGame"));
}
private function turnSound():void{
m_sound.gotoAndStop((soundOn) ? 1 : 2);
SoundManager.getInstance().turnSound(soundOn);
sharedObj.data.soundOn = soundOn;
sharedObj.flush();
}
private function getMoreGames(_arg1:MouseEvent):void{
navigateToURL(new URLRequest("http://www.gameportal.net"), "_blank");
}
private function setSound(_arg1:MouseEvent):void{
soundOn = !(soundOn);
turnSound();
}
private function getHGame(_arg1:MouseEvent):void{
navigateToURL(new URLRequest((language.url1 + "&utm_term=button_mainscreen_moregames")), "_blank");
}
}
}//package
Section 41
//menu元件22_txt1 (menu元件22_txt1)
package {
public dynamic class menu元件22_txt1 extends MyText {
}
}//package
Section 42
//menu元件24_txt1 (menu元件24_txt1)
package {
public dynamic class menu元件24_txt1 extends MyText {
}
}//package
Section 43
//menu元件25_txt1 (menu元件25_txt1)
package {
public dynamic class menu元件25_txt1 extends MyText {
}
}//package
Section 44
//menu元件25645 (menu元件25645)
package {
public dynamic class menu元件25645 extends MyText {
}
}//package
Section 45
//more (more)
package {
public dynamic class more extends Button {
}
}//package
Section 46
//MyNumber (MyNumber)
package {
import flash.events.*;
import flash.display.*;
import flash.text.*;
public class MyNumber extends MovieClip {
var t_num2:TextField;
var t_num1:TextField;
private var t_num3:TextField;
public var _t_num1:TextField;
public var _t_num2:TextField;
private var tNum:Number;
public function MyNumber():void{
t_num1 = (getChildByName("_t_num1") as TextField);
t_num2 = (getChildByName("_t_num2") as TextField);
}
private function moveDown(_arg1:Event):void{
t_num1.y = (t_num1.y + 10);
t_num2.y = (t_num2.y + 10);
if (t_num1.y >= 0){
if (Number(t_num2.text) == tNum){
this.removeEventListener(Event.ENTER_FRAME, moveDown);
t_num2.y = -45;
t_num1.y = -90;
} else {
t_num1.y = (t_num1.y - 90);
};
t_num1.text = String(((Number(t_num2.text) + 1) % 10));
t_num3 = t_num1;
t_num1 = t_num2;
t_num2 = t_num3;
};
}
public function jumpTo(_arg1:Number):void{
if (isNaN(_arg1)){
tNum = 0;
if (loaderInfo){
};
parent.removeChild(this);
} else {
tNum = _arg1;
};
if (Number(t_num1.text) != tNum){
this.addEventListener(Event.ENTER_FRAME, moveDown, false, 0, true);
};
}
public function skipTo(_arg1:Number):void{
var num = _arg1;
try {
this.removeEventListener(Event.ENTER_FRAME, moveDown);
} catch(e:Error) {
};
if (isNaN(num)){
tNum = 0;
} else {
tNum = num;
};
t_num1.text = String(tNum);
t_num2.text = String(((tNum + 1) % 10));
t_num2.y = (t_num2.y - 90);
t_num1.y = -45;
}
}
}//package
Section 47
//MyText (MyText)
package {
import flash.events.*;
import flash.display.*;
public class MyText extends MovieClip {
public function MyText():void{
this.addEventListener(Event.ADDED_TO_STAGE, jumpToFrame, false, 0, true);
}
private function jumpToFrame(_arg1:Event):void{
this.gotoAndStop(language.languageV);
}
}
}//package
Section 48
//NAME (NAME)
package {
public dynamic class NAME extends MyText {
}
}//package
Section 49
//RANK (RANK)
package {
public dynamic class RANK extends MyText {
}
}//package
Section 50
//receptionistsrevenge (receptionistsrevenge)
package {
public dynamic class receptionistsrevenge extends MyText {
}
}//package
Section 51
//retry (retry)
package {
public dynamic class retry extends MyText {
}
}//package
Section 52
//SCORE (SCORE)
package {
public dynamic class SCORE extends MyText {
}
}//package
Section 53
//Scores (Scores)
package {
import flash.events.*;
import flash.display.*;
public class Scores extends MovieClip {
public var numHeight:Number;
private var maskMc:Sprite;
private var nums:Array;
private var currentNum:Number;// = 0
public var numAmount:Number;
public var numWidth:Number;
public function Scores(_arg1:Number=8, _arg2:Number=24, _arg3:Number=45):void{
var _local4:int;
var _local5:MyNumber;
currentNum = 0;
super();
nums = new Array();
numAmount = _arg1;
numWidth = _arg2;
numHeight = _arg3;
maskMc = new Sprite();
_local4 = 0;
while (_local4 < numAmount) {
_local5 = new MyNumber();
addChild(_local5);
nums.push(_local5);
_local5.x = (-(_local4) * numWidth);
_local4++;
};
maskMc.graphics.beginFill(3368601);
maskMc.graphics.moveTo(0, -3);
maskMc.graphics.lineTo(0, -(numHeight));
maskMc.graphics.lineTo((-(numAmount) * numWidth), (-(numHeight) + 3));
maskMc.graphics.lineTo((-(numAmount) * numWidth), -3);
maskMc.graphics.lineTo(0, -3);
addChild(maskMc);
this.mask = maskMc;
this.addEventListener(Event.ADDED_TO_STAGE, setScore, false, 0, true);
}
private function setScore(_arg1:Event):void{
this.text = String(ToolBar.totalScore);
}
public function set text(_arg1:String):void{
var _local2:*;
var _local3:Array;
var _local4:int;
_local2 = String(_arg1);
_local3 = _local2.split("");
_local4 = 0;
while (_local4 < numAmount) {
nums[_local4].jumpTo(Number(_local3[((_local3.length - _local4) - 1)]));
_local4++;
};
}
public function setText(_arg1:int):void{
var _local2:*;
var _local3:Array;
var _local4:int;
_local2 = String(_arg1);
_local3 = _local2.split("");
_local4 = 0;
while (_local4 < numAmount) {
nums[_local4].skipTo(Number(_local3[((_local3.length - _local4) - 1)]));
_local4++;
};
}
}
}//package
Section 54
//sd_bg (sd_bg)
package {
import flash.media.*;
public dynamic class sd_bg extends Sound {
}
}//package
Section 55
//sd_catch (sd_catch)
package {
import flash.media.*;
public dynamic class sd_catch extends Sound {
}
}//package
Section 56
//sd_copyCat (sd_copyCat)
package {
import flash.media.*;
public dynamic class sd_copyCat extends Sound {
}
}//package
Section 57
//sd_dance (sd_dance)
package {
import flash.media.*;
public dynamic class sd_dance extends Sound {
}
}//package
Section 58
//sd_double (sd_double)
package {
import flash.media.*;
public dynamic class sd_double extends Sound {
}
}//package
Section 59
//sd_down (sd_down)
package {
import flash.media.*;
public dynamic class sd_down extends Sound {
}
}//package
Section 60
//sd_drink (sd_drink)
package {
import flash.media.*;
public dynamic class sd_drink extends Sound {
}
}//package
Section 61
//sd_fear (sd_fear)
package {
import flash.media.*;
public dynamic class sd_fear extends Sound {
}
}//package
Section 62
//sd_get (sd_get)
package {
import flash.media.*;
public dynamic class sd_get extends Sound {
}
}//package
Section 63
//sd_ha (sd_ha)
package {
import flash.media.*;
public dynamic class sd_ha extends Sound {
}
}//package
Section 64
//sd_keyBoard (sd_keyBoard)
package {
import flash.media.*;
public dynamic class sd_keyBoard extends Sound {
}
}//package
Section 65
//sd_on (sd_on)
package {
import flash.media.*;
public dynamic class sd_on extends Sound {
}
}//package
Section 66
//sd_put (sd_put)
package {
import flash.media.*;
public dynamic class sd_put extends Sound {
}
}//package
Section 67
//sd_sb (sd_sb)
package {
import flash.media.*;
public dynamic class sd_sb extends Sound {
}
}//package
Section 68
//sd_Score (sd_Score)
package {
import flash.media.*;
public dynamic class sd_Score extends Sound {
}
}//package
Section 69
//sd_smokeIn (sd_smokeIn)
package {
import flash.media.*;
public dynamic class sd_smokeIn extends Sound {
}
}//package
Section 70
//sd_smokeOut (sd_smokeOut)
package {
import flash.media.*;
public dynamic class sd_smokeOut extends Sound {
}
}//package
Section 71
//sd_turn (sd_turn)
package {
import flash.media.*;
public dynamic class sd_turn extends Sound {
}
}//package
Section 72
//sd_ugly (sd_ugly)
package {
import flash.media.*;
public dynamic class sd_ugly extends Sound {
}
}//package
Section 73
//Smoke (Smoke)
package {
import flash.display.*;
public dynamic class Smoke extends MovieClip {
}
}//package
Section 74
//SoundManager (SoundManager)
package {
import flash.events.*;
import flash.media.*;
import flash.utils.*;
public class SoundManager {
private const MAX_VOLUME:Number = 1;
private var voiceTimer:int;
private var maxSound:Number;// = 1
private var nBgVolume:Number;
public var soundOn:Boolean;
private var currentSign:String;
private var nextBg:SoundChannel;
private var pBgVolume:Number;
private var currentBgVolume:Number;// = -1
private var nextPlay:Boolean;// = false
public var playTable:Object;
public var soundTable:Object;
public static const TYPE_BG:String = "c";
public static const TYPE_BOSS:String = "e";
public static const TYPE_MAN:String = "a";
public static const TYPE_BTN:String = "b";
public static const TYPE_ITEM:String = "d";
public static var _instance:SoundManager;
public function SoundManager():void{
maxSound = 1;
currentBgVolume = -1;
nextPlay = false;
super();
soundTable = new Object();
playTable = new Object();
soundOn = true;
}
public function stopBossSound():void{
if (playTable[TYPE_BOSS]){
playTable[TYPE_BOSS].stop();
try {
playTable[TYPE_BOSS].removeEventListener(Event.SOUND_COMPLETE, onBossSdComplete);
} catch(e:Error) {
};
playTable[TYPE_BOSS] = null;
};
}
private function voiceDown():void{
pBgVolume = (pBgVolume - 0.025);
nBgVolume = (nBgVolume + 0.025);
if (pBgVolume <= 0){
nextBg.soundTransform = new SoundTransform(maxSound);
playTable[TYPE_BG].soundTransform = new SoundTransform(0);
playTable[TYPE_BG].removeEventListener(Event.SOUND_COMPLETE, onBgComplete);
playTable[TYPE_BG] = nextBg;
playTable[TYPE_BG].addEventListener(Event.SOUND_COMPLETE, onBgComplete, false, 0, true);
nextBg = null;
if (currentSign == "geomBg"){
voiceTimer = setTimeout(bgVoiceDown, 70000, "mainBg");
};
return;
};
nextBg.soundTransform = new SoundTransform(nBgVolume);
playTable[TYPE_BG].soundTransform = new SoundTransform(pBgVolume);
voiceTimer = setTimeout(voiceDown, 100);
}
private function onManSdComplete(_arg1:Event):void{
playSound("manRun", TYPE_MAN, true);
}
public function stopManSound():void{
if (playTable[TYPE_MAN]){
playTable[TYPE_MAN].stop();
try {
playTable[TYPE_MAN].removeEventListener(Event.SOUND_COMPLETE, onManSdComplete);
} catch(e:Error) {
};
playTable[TYPE_MAN] = null;
};
}
private function bgVolumeDown():void{
try {
pBgVolume = (pBgVolume - 0.025);
if (pBgVolume <= 0){
clearAllSounds();
return;
};
currentBgVolume = pBgVolume;
playTable[TYPE_BG].soundTransform = new SoundTransform(pBgVolume);
voiceTimer = setTimeout(bgVolumeDown, 100);
} catch(e:Error) {
clearAllSounds();
};
}
public function loadSound(_arg1:String, _arg2):void{
var _local3:Sound;
_local3 = new (_arg2);
soundTable[_arg1] = _local3;
}
public function loadSounds():void{
loadSound("sd_copyCat", sd_copyCat);
loadSound("sd_keyBoard", sd_keyBoard);
loadSound("sd_smokeOut", sd_smokeOut);
loadSound("sd_smokeIn", sd_smokeIn);
loadSound("sd_drink", sd_drink);
loadSound("sd_ha", sd_ha);
loadSound("sd_turn", sd_turn);
loadSound("sd_dance", sd_dance);
loadSound("sd_get", sd_get);
loadSound("sd_ugly", sd_ugly);
loadSound("sd_put", sd_put);
loadSound("mainBg", sd_bg);
loadSound("sd_catch", sd_catch);
loadSound("sd_Score", sd_Score);
loadSound("sd_double", sd_double);
loadSound("sd_on", sd_on);
loadSound("sd_down", sd_down);
loadSound("sd_sb", sd_sb);
loadSound("sd_fear", sd_fear);
}
public function turnSound(_arg1:Boolean):void{
soundOn = _arg1;
if (_arg1){
maxSound = MAX_VOLUME;
} else {
maxSound = 0;
};
if (playTable[TYPE_MAN]){
playTable[TYPE_MAN].soundTransform = new SoundTransform(maxSound);
};
if (playTable[TYPE_BTN]){
playTable[TYPE_BTN].soundTransform = new SoundTransform(maxSound);
};
if (playTable[TYPE_BG]){
playTable[TYPE_BG].soundTransform = new SoundTransform(maxSound);
};
if (playTable[TYPE_ITEM]){
playTable[TYPE_ITEM].soundTransform = new SoundTransform(maxSound);
};
}
public function turnOffBg():void{
try {
clearTimeout(voiceTimer);
} catch(e:Error) {
};
pBgVolume = ((currentBgVolume < 0)) ? maxSound : currentBgVolume;
voiceTimer = setTimeout(bgVolumeDown, 100);
}
public function stopItemSound():void{
if (playTable[TYPE_ITEM]){
playTable[TYPE_ITEM].stop();
playTable[TYPE_ITEM] = null;
};
}
private function onBgComplete(_arg1:Event):void{
_arg1.currentTarget.removeEventListener(Event.SOUND_COMPLETE, onBgComplete);
playTable[TYPE_BG] = null;
playSound("mainBg", TYPE_BG);
}
public function stopBgSound():void{
if (nextBg){
nextBg.stop();
nextBg = null;
};
if (playTable[TYPE_BG]){
playTable[TYPE_BG].stop();
playTable[TYPE_BG].removeEventListener(Event.SOUND_COMPLETE, onBgComplete);
};
playTable[TYPE_BG] = null;
}
private function bgVoiceDown(_arg1:String):void{
nextPlay = false;
currentSign = _arg1;
pBgVolume = maxSound;
nBgVolume = 0;
nextBg = soundTable[_arg1].play();
nextBg.soundTransform = new SoundTransform(maxSound);
voiceTimer = setTimeout(voiceDown, 100);
}
private function onBossSdComplete(_arg1:Event):void{
playSound("sd_dance", TYPE_BOSS, true);
}
public function clearAllSounds():void{
currentBgVolume = -1;
if (playTable[TYPE_MAN]){
playTable[TYPE_MAN].stop();
try {
playTable[TYPE_MAN].removeEventListener(Event.SOUND_COMPLETE, onManSdComplete);
} catch(e:Error) {
};
};
if (playTable[TYPE_BOSS]){
playTable[TYPE_BOSS].stop();
try {
playTable[TYPE_BOSS].removeEventListener(Event.SOUND_COMPLETE, onBossSdComplete);
} catch(e:Error) {
};
};
try {
clearTimeout(voiceTimer);
} catch(e:Error) {
};
if (nextBg){
nextBg.stop();
nextBg = null;
};
if (playTable[TYPE_BTN]){
playTable[TYPE_BTN].stop();
};
if (playTable[TYPE_BG]){
playTable[TYPE_BG].stop();
playTable[TYPE_BG].removeEventListener(Event.SOUND_COMPLETE, onBgComplete);
};
if (playTable[TYPE_ITEM]){
playTable[TYPE_ITEM].stop();
};
playTable = new Object();
}
public function playSound(_arg1:String, _arg2:String="b", _arg3:Boolean=false):void{
var sign = _arg1;
var type = _arg2;
var _repeat = _arg3;
if (soundTable[sign] == null){
return;
};
switch (type){
case TYPE_MAN:
if (playTable[TYPE_MAN]){
playTable[TYPE_MAN].stop();
try {
playTable[TYPE_MAN].removeEventListener(Event.SOUND_COMPLETE, onManSdComplete);
} catch(e:Error) {
};
};
playTable[TYPE_MAN] = soundTable[sign].play();
playTable[TYPE_MAN].soundTransform = new SoundTransform(maxSound);
if (_repeat){
playTable[TYPE_MAN].addEventListener(Event.SOUND_COMPLETE, onManSdComplete, false, 0, true);
};
break;
case TYPE_BOSS:
if (playTable[TYPE_BOSS]){
playTable[TYPE_BOSS].stop();
try {
playTable[TYPE_BOSS].removeEventListener(Event.SOUND_COMPLETE, onBossSdComplete);
} catch(e:Error) {
};
};
playTable[TYPE_BOSS] = soundTable[sign].play();
playTable[TYPE_BOSS].soundTransform = new SoundTransform(maxSound);
if (_repeat){
playTable[TYPE_BOSS].addEventListener(Event.SOUND_COMPLETE, onBossSdComplete, false, 0, true);
};
break;
case TYPE_BTN:
playTable[TYPE_BTN] = soundTable[sign].play();
playTable[TYPE_BTN].soundTransform = new SoundTransform(maxSound);
break;
case TYPE_BG:
if (playTable[TYPE_BG]){
playTable[TYPE_BG].stop();
playTable[TYPE_BG].removeEventListener(Event.SOUND_COMPLETE, onBgComplete);
};
playTable[TYPE_BG] = soundTable[sign].play();
playTable[TYPE_BG].soundTransform = new SoundTransform(maxSound);
if (nextPlay){
bgVoiceDown("geomBg");
};
playTable[TYPE_BG].addEventListener(Event.SOUND_COMPLETE, onBgComplete, false, 0, true);
break;
case TYPE_ITEM:
if (playTable[TYPE_ITEM] == null){
playTable[TYPE_ITEM] = soundTable[sign].play();
playTable[TYPE_ITEM].soundTransform = new SoundTransform(maxSound);
};
break;
};
}
public static function getInstance():SoundManager{
if (_instance == null){
_instance = new (SoundManager);
};
return (_instance);
}
}
}//package
Section 75
//Splash (Splash)
package {
import flash.events.*;
import flash.display.*;
public dynamic class Splash extends MovieClip {
public function Splash(){
addFrameScript(59, frame60);
}
function frame60(){
this.dispatchEvent(new Event("onSplashDone"));
}
}
}//package
Section 76
//START (START)
package {
public dynamic class START extends Button {
}
}//package
Section 77
//STARTgame (STARTgame)
package {
public dynamic class STARTgame extends MyText {
}
}//package
Section 78
//submitscore (submitscore)
package {
public dynamic class submitscore extends MyText {
}
}//package
Section 79
//ToolBar (ToolBar)
package {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
public class ToolBar extends MovieClip {
private const L_BLOOD:Number = 389.9;
private const L_ENGERY:Number = 210;
private var t_cScore:TextField;
private var alphaArr:Array;
private var m_c_qBar:MovieClip;
private var actionArr:Array;
private var t_dTxt:TextField;
private var t_totalScore:TextField;
private var m_record:MovieClip;
private var m_qBar:MovieClip;
private var t_record:TextField;
public var _m_clock:MovieClip;
private var cRecord:int;// = 0
private var finalPosition:Number;// = 0
private var cScale:Number;// = 1
private var targetBlood:Number;// = 389.9
public var _m_bloodBar:MovieClip;
private var dCount:int;// = 0
private var dMc:MovieClip;
private var count:int;// = 0
public var _m_dTxt:MovieClip;
private var m_c_bloodBar:MovieClip;
private var m_bloodBar:MovieClip;
private var cBlood:Number;// = 389.9
private var rotate:Number;// = 0
public var _m_cScore:MovieClip;
private var m_hou:MovieClip;
private var m_min:MovieClip;
public var _m_explode:MovieClip;
public var _m_qBar:MovieClip;
public var _m_total:MovieClip;
private var m_clock:MovieClip;
public var _m_record:MovieClip;
private var currentPosition:Number;// = 0
private var targetPosition:Number;// = 0
private var hour:Number;// = 9
private var cScoreMc:MovieClip;
private var totalMc:MovieClip;
public static var cTotalScore:int = 0;
public static var palyerName:String;
public static var totalScore:Number = 0;
public function ToolBar():void{
finalPosition = 0;
targetPosition = 0;
currentPosition = 0;
rotate = 0;
hour = 9;
cRecord = 0;
count = 0;
cScale = 1;
cBlood = L_BLOOD;
targetBlood = L_BLOOD;
dCount = 0;
super();
cTotalScore = 0;
actionArr = new Array();
alphaArr = new Array();
m_c_bloodBar = (getChildByName("_m_bloodBar") as MovieClip);
m_bloodBar = (m_c_bloodBar.getChildByName("_m_bloodBar") as MovieClip);
m_c_qBar = (getChildByName("_m_qBar") as MovieClip);
m_qBar = (m_c_qBar.getChildByName("_m_qBar") as MovieClip);
m_qBar.x = -(L_ENGERY);
m_c_qBar.stop();
m_record = (getChildByName("_m_record") as MovieClip);
t_record = (m_record.getChildByName("_t_record") as TextField);
totalMc = (getChildByName("_m_total") as MovieClip);
t_totalScore = (totalMc.getChildByName("_t_totalScore") as TextField);
cScoreMc = (getChildByName("_m_cScore") as MovieClip);
t_cScore = (cScoreMc.getChildByName("_t_cScore") as TextField);
dMc = (getChildByName("_m_dTxt") as MovieClip);
t_dTxt = (dMc.getChildByName("_t_dTxt") as TextField);
m_clock = (getChildByName("_m_clock") as MovieClip);
m_hou = (m_clock.getChildByName("_m_hou") as MovieClip);
m_min = (m_clock.getChildByName("_m_min") as MovieClip);
m_hou.rotation = -90;
_m_explode.visible = false;
getSavedScore();
}
private function getSavedScore():void{
var _local1:SharedObject;
_local1 = SharedObject.getLocal("_nnnnn____rexczx", "/");
if (_local1.data.score == null){
cRecord = 0;
} else {
cRecord = Number(_local1.data.score);
};
t_record.text = String(cRecord);
}
private function resetScore():void{
targetPosition = 0;
finalPosition = 0;
currentPosition = 0;
m_c_qBar.gotoAndStop(1);
}
public function update():void{
var _local1:ActionDef;
var _local2:MovieClip;
targetBlood = (targetBlood + 0.01);
if (targetBlood >= L_BLOOD){
targetBlood = L_BLOOD;
};
for each (_local1 in actionArr) {
if (_local1.scaleArr.length){
_local1.obj.scaleX = (_local1.obj.scaleY = _local1.scaleArr[0]);
_local1.scaleArr.shift();
if (_local1.yOff != null){
_local1.yOffn = (_local1.yOffn + _local1.yOff[0]);
_local1.obj.y = (_local1.obj.y + _local1.yOff[0]);
_local1.yOff.shift();
};
if (_local1.xOff != null){
_local1.xOffn = (_local1.xOffn + _local1.xOff[0]);
_local1.obj.x = (_local1.obj.x + _local1.xOff[0]);
_local1.xOff.shift();
};
} else {
_local1.obj.y = (_local1.obj.y - _local1.yOffn);
_local1.obj.x = (_local1.obj.x - _local1.xOffn);
_local1.callBack();
actionArr.splice(actionArr.indexOf(_local1), 1);
};
};
for each (_local2 in alphaArr) {
_local2.alpha = (_local2.alpha - 0.01);
if (_local2.alpha <= 0){
_local2.parent.removeChild(_local2);
alphaArr.splice(alphaArr.indexOf(_local2), 1);
};
};
rotate = (rotate + 0.5);
m_min.rotation = rotate;
m_hou.rotation = (((hour + Math.floor((rotate / 360))) * 30) + ((rotate % 360) / 12));
if (rotate == (9 * 360)){
this.dispatchEvent(new Event("onTimeOut"));
};
m_qBar.x = (currentPosition - L_ENGERY);
m_bloodBar.x = (cBlood - L_BLOOD);
cBlood = (cBlood + ((targetBlood - cBlood) / 5));
currentPosition = (currentPosition + ((targetPosition - currentPosition) / 2));
targetPosition = (targetPosition + ((finalPosition - targetPosition) / 15));
}
private function resetCScale():void{
cScale = 1;
}
private function shake(_arg1:MovieClip, _arg2:TextField, _arg3:Array=null, _arg4:Array=null, _arg5:Function=null, _arg6:Array=null):void{
var _local7:Array;
if (_arg6 == null){
_local7 = [1, 1.1, 1.5, 2, 1.2, 1];
} else {
_local7 = _arg6;
};
actionArr.push(new ActionDef(_arg1, _local7, _arg2, _arg3, _arg4, _arg5));
}
private function addScale():void{
cScale = (cScale + 0.2);
}
public function setScore(_arg1:int):void{
count = _arg1;
if (_arg1 > 0){
if ((_arg1 % 10) == 0){
finalPosition = L_ENGERY;
targetPosition = L_ENGERY;
m_c_qBar.play();
} else {
if ((_arg1 % 10) == 1){
dCount++;
if (dCount > 1){
SoundManager.getInstance().playSound("sd_double");
t_dTxt.text = ("x " + dCount);
shake(dMc, t_dTxt);
addScale();
shake(cScoreMc, t_cScore, null, null, null, [(cScale + 1), (cScale + 1.1), (cScale + 1.5), (cScale + 2), (cScale + 1.2), (cScale + 1)]);
};
};
finalPosition = (((_arg1 % 10) / 10) * L_ENGERY);
targetPosition = ((((_arg1 % 10) / 10) + 0.05) * L_ENGERY);
};
cTotalScore = (cTotalScore + (_arg1 * dCount));
t_cScore.text = String(cTotalScore);
shake(cScoreMc, t_cScore, null, null, null, [cScale, (cScale + (0.1 / cScale)), (cScale + (0.5 / cScale)), (cScale + (0.2 / cScale)), (cScale + (0.2 / cScale)), cScale]);
} else {
resetScore();
fixScore();
};
}
private function fixScore():void{
if (cTotalScore > 0){
shake(cScoreMc, t_cScore);
resetCScale();
dCount = 0;
t_dTxt.text = "";
};
}
private function checkBlood():void{
var _local1:VirtualBlood;
_local1 = new VirtualBlood();
m_c_bloodBar.vbContainer.addChild(_local1);
alphaArr.push(_local1);
_local1.alpha = 0.5;
_local1.y = 7.6;
_local1.x = (targetBlood - L_BLOOD);
targetBlood = (targetBlood - ((1 - Math.pow(0.95, Math.ceil((cTotalScore / 200)))) * cBlood));
}
public function sendScore():void{
if (cTotalScore > 0){
SoundManager.getInstance().playSound("sd_Score");
shake(cScoreMc, t_cScore, [10, 20, 25, 30, 20, 15, 10], null, setAllScore);
resetScore();
dCount = 0;
t_dTxt.text = "";
checkBlood();
} else {
targetBlood = (targetBlood + 10);
if (targetBlood >= L_BLOOD){
targetBlood = L_BLOOD;
};
};
}
private function setAllScore():void{
if ((((((totalScore <= cRecord)) && (((totalScore + cTotalScore) > cRecord)))) && (m_record.visible))){
m_record.visible = false;
totalMc.y = (totalMc.y + 15);
_m_explode.visible = true;
_m_explode._m_explode.gotoAndPlay(1);
};
totalScore = (totalScore + cTotalScore);
t_totalScore.text = String(totalScore);
shake(totalMc, t_totalScore);
cTotalScore = 0;
t_cScore.text = "0";
cTotalScore = 0;
if (cRecord < totalScore){
cRecord = totalScore;
t_record.text = String(cRecord);
};
}
}
}//package
import flash.display.*;
import flash.text.*;
class ActionDef {
public var callBack:Function;
public var obj:MovieClip;
public var yOff:Array;
public var xOff:Array;
public var yOffn:Number;// = 0
public var scaleArr:Array;
public var xOffn:Number;// = 0
public var txt:TextField;
private function ActionDef(_arg1:MovieClip, _arg2:Array, _arg3:TextField, _arg4:Array=null, _arg5:Array=null, _arg6:Function=null):void{
yOffn = 0;
xOffn = 0;
super();
obj = _arg1;
scaleArr = _arg2;
txt = _arg3;
xOff = _arg4;
yOff = _arg5;
callBack = _arg6;
if (callBack == null){
callBack = new Function();
};
}
}
Section 80
//typeyourname (typeyourname)
package {
public dynamic class typeyourname extends MyText {
}
}//package
Section 81
//whatareyoudoing (whatareyoudoing)
package {
public dynamic class whatareyoudoing extends MyText {
}
}//package
Section 82
//VirtualBlood (VirtualBlood)
package {
import flash.display.*;
public dynamic class VirtualBlood extends MovieClip {
}
}//package
Section 83
//youarefired (youarefired)
package {
public dynamic class youarefired extends MyText {
}
}//package
Section 84
//youwin (youwin)
package {
public dynamic class youwin extends MyText {
}
}//package