Section 1
//None (fl.transitions.easing.None)
package fl.transitions.easing {
public class None {
public static function easeNone(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return ((((_arg3 * _arg1) / _arg4) + _arg2));
}
public static function easeIn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return ((((_arg3 * _arg1) / _arg4) + _arg2));
}
public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return ((((_arg3 * _arg1) / _arg4) + _arg2));
}
public static function easeInOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return ((((_arg3 * _arg1) / _arg4) + _arg2));
}
}
}//package fl.transitions.easing
Section 2
//Regular (fl.transitions.easing.Regular)
package fl.transitions.easing {
public class Regular {
public static function easeIn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / _arg4);
return ((((_arg3 * _arg1) * _arg1) + _arg2));
}
public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / _arg4);
return ((((-(_arg3) * _arg1) * (_arg1 - 2)) + _arg2));
}
public static function easeInOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
return (((((_arg3 / 2) * _arg1) * _arg1) + _arg2));
};
--_arg1;
return ((((-(_arg3) / 2) * ((_arg1 * (_arg1 - 2)) - 1)) + _arg2));
}
}
}//package fl.transitions.easing
Section 3
//Strong (fl.transitions.easing.Strong)
package fl.transitions.easing {
public class Strong {
public static function easeIn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / _arg4);
return (((((((_arg3 * _arg1) * _arg1) * _arg1) * _arg1) * _arg1) + _arg2));
}
public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = ((_arg1 / _arg4) - 1);
return (((_arg3 * (((((_arg1 * _arg1) * _arg1) * _arg1) * _arg1) + 1)) + _arg2));
}
public static function easeInOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
return ((((((((_arg3 / 2) * _arg1) * _arg1) * _arg1) * _arg1) * _arg1) + _arg2));
};
_arg1 = (_arg1 - 2);
return ((((_arg3 / 2) * (((((_arg1 * _arg1) * _arg1) * _arg1) * _arg1) + 2)) + _arg2));
}
}
}//package fl.transitions.easing
Section 4
//Tween (fl.transitions.Tween)
package fl.transitions {
import flash.events.*;
import flash.utils.*;
import flash.display.*;
public class Tween extends EventDispatcher {
public var isPlaying:Boolean;// = false
public var obj:Object;// = null
public var prop:String;// = ""
public var func:Function;
public var begin:Number;// = NAN
public var change:Number;// = NAN
public var useSeconds:Boolean;// = false
public var prevTime:Number;// = NAN
public var prevPos:Number;// = NAN
public var looping:Boolean;// = false
private var _duration:Number;// = NAN
private var _time:Number;// = NAN
private var _fps:Number;// = NAN
private var _position:Number;// = NAN
private var _startTime:Number;// = NAN
private var _intervalID:uint;// = 0
private var _finish:Number;// = NAN
private var _timer:Timer;// = null
protected static var _mc:MovieClip = new MovieClip();
public function Tween(_arg1:Object, _arg2:String, _arg3:Function, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Boolean=false){
this.func = function (_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return ((((_arg3 * _arg1) / _arg4) + _arg2));
};
super();
if (!arguments.length){
return;
};
this.obj = _arg1;
this.prop = _arg2;
this.begin = _arg4;
this.position = _arg4;
this.duration = _arg6;
this.useSeconds = _arg7;
if ((_arg3 is Function)){
this.func = _arg3;
};
this.finish = _arg5;
this._timer = new Timer(100);
this.start();
}
public function get time():Number{
return (this._time);
}
public function set time(_arg1:Number):void{
this.prevTime = this._time;
if (_arg1 > this.duration){
if (this.looping){
this.rewind((_arg1 - this._duration));
this.update();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_LOOP, this._time, this._position));
} else {
if (this.useSeconds){
this._time = this._duration;
this.update();
};
this.stop();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_FINISH, this._time, this._position));
};
} else {
if (_arg1 < 0){
this.rewind();
this.update();
} else {
this._time = _arg1;
this.update();
};
};
}
public function get duration():Number{
return (this._duration);
}
public function set duration(_arg1:Number):void{
this._duration = ((_arg1)<=0) ? Infinity : _arg1;
}
public function get FPS():Number{
return (this._fps);
}
public function set FPS(_arg1:Number):void{
var _local2:Boolean = this.isPlaying;
this.stopEnterFrame();
this._fps = _arg1;
if (_local2){
this.startEnterFrame();
};
}
public function get position():Number{
return (this.getPosition(this._time));
}
public function set position(_arg1:Number):void{
this.setPosition(_arg1);
}
public function getPosition(_arg1:Number=NaN):Number{
if (isNaN(_arg1)){
_arg1 = this._time;
};
return (this.func(_arg1, this.begin, this.change, this._duration));
}
public function setPosition(_arg1:Number):void{
this.prevPos = this._position;
if (this.prop.length){
this.obj[this.prop] = (this._position = _arg1);
};
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_CHANGE, this._time, this._position));
}
public function get finish():Number{
return ((this.begin + this.change));
}
public function set finish(_arg1:Number):void{
this.change = (_arg1 - this.begin);
}
public function continueTo(_arg1:Number, _arg2:Number):void{
this.begin = this.position;
this.finish = _arg1;
if (!isNaN(_arg2)){
this.duration = _arg2;
};
this.start();
}
public function yoyo():void{
this.continueTo(this.begin, this.time);
}
protected function startEnterFrame():void{
var _local1:Number;
if (isNaN(this._fps)){
_mc.addEventListener(Event.ENTER_FRAME, this.onEnterFrame, false, 0, true);
} else {
_local1 = (1000 / this._fps);
this._timer.delay = _local1;
this._timer.addEventListener(TimerEvent.TIMER, this.timerHandler, false, 0, true);
this._timer.start();
};
this.isPlaying = true;
}
protected function stopEnterFrame():void{
if (isNaN(this._fps)){
_mc.removeEventListener(Event.ENTER_FRAME, this.onEnterFrame);
} else {
this._timer.stop();
};
this.isPlaying = false;
}
public function start():void{
this.rewind();
this.startEnterFrame();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_START, this._time, this._position));
}
public function stop():void{
this.stopEnterFrame();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_STOP, this._time, this._position));
}
public function resume():void{
this.fixTime();
this.startEnterFrame();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_RESUME, this._time, this._position));
}
public function rewind(_arg1:Number=0):void{
this._time = _arg1;
this.fixTime();
this.update();
}
public function fforward():void{
this.time = this._duration;
this.fixTime();
}
public function nextFrame():void{
if (this.useSeconds){
this.time = ((getTimer() - this._startTime) / 1000);
} else {
this.time = (this._time + 1);
};
}
protected function onEnterFrame(_arg1:Event):void{
this.nextFrame();
}
protected function timerHandler(_arg1:TimerEvent):void{
this.nextFrame();
_arg1.updateAfterEvent();
}
public function prevFrame():void{
if (!this.useSeconds){
this.time = (this._time - 1);
};
}
private function fixTime():void{
if (this.useSeconds){
this._startTime = (getTimer() - (this._time * 1000));
};
}
private function update():void{
this.setPosition(this.getPosition(this._time));
}
}
}//package fl.transitions
Section 5
//TweenEvent (fl.transitions.TweenEvent)
package fl.transitions {
import flash.events.*;
public class TweenEvent extends Event {
public var time:Number;// = NAN
public var position:Number;// = NAN
public static const MOTION_START:String = "motionStart";
public static const MOTION_STOP:String = "motionStop";
public static const MOTION_FINISH:String = "motionFinish";
public static const MOTION_CHANGE:String = "motionChange";
public static const MOTION_RESUME:String = "motionResume";
public static const MOTION_LOOP:String = "motionLoop";
public function TweenEvent(_arg1:String, _arg2:Number, _arg3:Number, _arg4:Boolean=false, _arg5:Boolean=false){
super(_arg1, _arg4, _arg5);
this.time = _arg2;
this.position = _arg3;
}
override public function clone():Event{
return (new TweenEvent(this.type, this.time, this.position, this.bubbles, this.cancelable));
}
}
}//package fl.transitions
Section 6
//armyGirl_60 (Nagas2_fla.armyGirl_60)
package Nagas2_fla {
import flash.display.*;
public dynamic class armyGirl_60 extends MovieClip {
public function armyGirl_60(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Nagas2_fla
Section 7
//base_carrying_129 (Nagas2_fla.base_carrying_129)
package Nagas2_fla {
import flash.display.*;
public dynamic class base_carrying_129 extends MovieClip {
public function base_carrying_129(){
addFrameScript(0, frame1, 5, frame6);
}
function frame1(){
stop();
}
function frame6(){
stop();
}
}
}//package Nagas2_fla
Section 8
//base_emma_dressed_126 (Nagas2_fla.base_emma_dressed_126)
package Nagas2_fla {
import flash.display.*;
public dynamic class base_emma_dressed_126 extends MovieClip {
public function base_emma_dressed_126(){
addFrameScript(0, frame1, 5, frame6);
}
function frame1(){
stop();
}
function frame6(){
stop();
}
}
}//package Nagas2_fla
Section 9
//base_emmi_dressed_127 (Nagas2_fla.base_emmi_dressed_127)
package Nagas2_fla {
import flash.display.*;
public dynamic class base_emmi_dressed_127 extends MovieClip {
public function base_emmi_dressed_127(){
addFrameScript(0, frame1, 5, frame6);
}
function frame1(){
stop();
}
function frame6(){
stop();
}
}
}//package Nagas2_fla
Section 10
//base_Jen_police_123 (Nagas2_fla.base_Jen_police_123)
package Nagas2_fla {
import flash.display.*;
public dynamic class base_Jen_police_123 extends MovieClip {
public function base_Jen_police_123(){
addFrameScript(0, frame1, 5, frame6);
}
function frame1(){
stop();
}
function frame6(){
stop();
}
}
}//package Nagas2_fla
Section 11
//base_Jen_underwear_124 (Nagas2_fla.base_Jen_underwear_124)
package Nagas2_fla {
import flash.display.*;
public dynamic class base_Jen_underwear_124 extends MovieClip {
public function base_Jen_underwear_124(){
addFrameScript(0, frame1, 5, frame6);
}
function frame1(){
stop();
}
function frame6(){
stop();
}
}
}//package Nagas2_fla
Section 12
//base_kelsey_dressed_125 (Nagas2_fla.base_kelsey_dressed_125)
package Nagas2_fla {
import flash.display.*;
public dynamic class base_kelsey_dressed_125 extends MovieClip {
public function base_kelsey_dressed_125(){
addFrameScript(0, frame1, 5, frame6);
}
function frame1(){
stop();
}
function frame6(){
stop();
}
}
}//package Nagas2_fla
Section 13
//btnIntroStart_2 (Nagas2_fla.btnIntroStart_2)
package Nagas2_fla {
import flash.display.*;
public dynamic class btnIntroStart_2 extends MovieClip {
public function btnIntroStart_2(){
addFrameScript(19, frame20);
}
function frame20(){
gotoAndPlay(1);
}
}
}//package Nagas2_fla
Section 14
//button_141 (Nagas2_fla.button_141)
package Nagas2_fla {
import flash.display.*;
public dynamic class button_141 extends MovieClip {
public function button_141(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Nagas2_fla
Section 15
//cardReader_64 (Nagas2_fla.cardReader_64)
package Nagas2_fla {
import flash.display.*;
public dynamic class cardReader_64 extends MovieClip {
public function cardReader_64(){
addFrameScript(0, frame1, 18, frame19);
}
function frame1(){
stop();
}
function frame19(){
gotoAndStop(1);
}
}
}//package Nagas2_fla
Section 16
//chemistrySet_107 (Nagas2_fla.chemistrySet_107)
package Nagas2_fla {
import flash.display.*;
public dynamic class chemistrySet_107 extends MovieClip {
public function chemistrySet_107(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Nagas2_fla
Section 17
//curtain_21 (Nagas2_fla.curtain_21)
package Nagas2_fla {
import flash.display.*;
public dynamic class curtain_21 extends MovieClip {
public function curtain_21(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Nagas2_fla
Section 18
//decor_3 (Nagas2_fla.decor_3)
package Nagas2_fla {
import flash.display.*;
import flash.text.*;
public dynamic class decor_3 extends MovieClip {
public var decayedDummy:MovieClip;
public var emptyJar:MovieClip;
public var wasteBin:MovieClip;
public var rune3:MovieClip;
public var mysteryBox:MovieClip;
public var shrinkRay:MovieClip;
public var shed:MovieClip;
public var z10:MovieClip;
public var z2:MovieClip;
public var btnLift1:MovieClip;
public var fileCabinet2:MovieClip;
public var cellphone:MovieClip;
public var painting:MovieClip;
public var portalGap:MovieClip;
public var tinyChopper:MovieClip;
public var rune4:MovieClip;
public var runeSi:MovieClip;
public var doorEmergency:MovieClip;
public var smellingSalt:MovieClip;
public var phoneRing:MovieClip;
public var paperOrders:MovieClip;
public var shipSign:MovieClip;
public var liftCallG:MovieClip;
public var z11:MovieClip;
public var z3:MovieClip;
public var btnLiftG:MovieClip;
public var rune5:MovieClip;
public var paint:MovieClip;
public var ship:MovieClip;
public var z12:MovieClip;
public var z4:MovieClip;
public var dossier:MovieClip;
public var nagaTail:MovieClip;
public var ribbons:MovieClip;
public var rune6:MovieClip;
public var runeShi:MovieClip;
public var armyGirl:MovieClip;
public var z13:MovieClip;
public var z5:MovieClip;
public var housePainting:MovieClip;
public var torch1:MovieClip;
public var portalField2:MovieClip;
public var scalpel:MovieClip;
public var coffeePot:MovieClip;
public var cardReaderLab:MovieClip;
public var dummy:MovieClip;
public var z14:MovieClip;
public var z6:MovieClip;
public var crimemap:MovieClip;
public var hallway:MovieClip;
public var torch2:MovieClip;
public var doorHouse:MovieClip;
public var cardReaderOffice:MovieClip;
public var doorStorage:MovieClip;
public var doorExit:MovieClip;
public var z15:MovieClip;
public var z7:MovieClip;
public var txtLiftLevel:TextField;
public var fileCabinet:MovieClip;
public var curtain:MovieClip;
public var portal2:MovieClip;
public var doorOffice:MovieClip;
public var z16:MovieClip;
public var z8:MovieClip;
public var nametag:MovieClip;
public var kelseyWindow:MovieClip;
public var runeSunnah:MovieClip;
public var runeLab:MovieClip;
public var buckets:MovieClip;
public var tnt:MovieClip;
public var gameOver:MovieClip;
public var trolly:MovieClip;
public var z9:MovieClip;
public var liftDoor:MovieClip;
public var cabinet:MovieClip;
public var burntLines:MovieClip;
public var plant:MovieClip;
public var runeRo:MovieClip;
public var zapTech:MovieClip;
public var mouseHoleD:MovieClip;
public var liftCall2:MovieClip;
public var officeRules:MovieClip;
public var tnt2:MovieClip;
public var feather:MovieClip;
public var mouseHoleC:MovieClip;
public var soldierShoes:MovieClip;
public var chessHorse:MovieClip;
public var liftCall3:MovieClip;
public var mouseHoleB:MovieClip;
public var armySprite2:MovieClip;
public var boobies:MovieClip;
public var dirty:MovieClip;
public var doorLab:MovieClip;
public var paintedSign:MovieClip;
public var mouseHoleA:MovieClip;
public var liftCall1:MovieClip;
public var portal:MovieClip;
public var desk:MovieClip;
public var chemistrySet:MovieClip;
public var painting2:MovieClip;
public var coffeeMaker:MovieClip;
public var runeStart:MovieClip;
public var rubbish:MovieClip;
public var nametag2:MovieClip;
public var spideys:MovieClip;
public var spareCard:MovieClip;
public var painting3:MovieClip;
public var runeNol:MovieClip;
public var naga2:MovieClip;
public var liftDoor2:MovieClip;
public var doorEntrance:MovieClip;
public var armySprite1:MovieClip;
public var ellenDossier:MovieClip;
public var chair:MovieClip;
public var towel:MovieClip;
public var doorShed:MovieClip;
public var liftDoor3:MovieClip;
public var btnLift2:MovieClip;
public var doll:MovieClip;
public var rune1:MovieClip;
public var doorGuarded:MovieClip;
public var paperClips:MovieClip;
public var signGrass:MovieClip;
public var liftDoor0:MovieClip;
public var doorStairway2:MovieClip;
public var btnLift3:MovieClip;
public var floorSign:MovieClip;
public var telephone:MovieClip;
public var battery:MovieClip;
public var rune2:MovieClip;
public var mints:MovieClip;
public var jenShove:MovieClip;
public var liftDoor1:MovieClip;
public var doorCleaning:MovieClip;
public var z1:MovieClip;
public function decor_3(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Nagas2_fla
Section 19
//doorCleaning_45 (Nagas2_fla.doorCleaning_45)
package Nagas2_fla {
import flash.display.*;
public dynamic class doorCleaning_45 extends MovieClip {
public function doorCleaning_45(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Nagas2_fla
Section 20
//doorStairway2_44 (Nagas2_fla.doorStairway2_44)
package Nagas2_fla {
import flash.display.*;
public dynamic class doorStairway2_44 extends MovieClip {
public function doorStairway2_44(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Nagas2_fla
Section 21
//expression_137 (Nagas2_fla.expression_137)
package Nagas2_fla {
import flash.display.*;
public dynamic class expression_137 extends MovieClip {
public function expression_137(){
addFrameScript(0, frame1, 10, frame11, 20, frame21, 30, frame31);
}
function frame1(){
stop();
}
function frame11(){
stop();
}
function frame21(){
stop();
}
function frame31(){
stop();
}
}
}//package Nagas2_fla
Section 22
//floorSign_29 (Nagas2_fla.floorSign_29)
package Nagas2_fla {
import flash.display.*;
public dynamic class floorSign_29 extends MovieClip {
public function floorSign_29(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Nagas2_fla
Section 23
//gameOver_71 (Nagas2_fla.gameOver_71)
package Nagas2_fla {
import flash.display.*;
public dynamic class gameOver_71 extends MovieClip {
public function gameOver_71(){
addFrameScript(0, frame1, 118, frame119);
}
function frame1(){
stop();
}
function frame119(){
stop();
}
}
}//package Nagas2_fla
Section 24
//guardedDoor_59 (Nagas2_fla.guardedDoor_59)
package Nagas2_fla {
import flash.display.*;
public dynamic class guardedDoor_59 extends MovieClip {
public function guardedDoor_59(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Nagas2_fla
Section 25
//jenShove_68 (Nagas2_fla.jenShove_68)
package Nagas2_fla {
import flash.display.*;
public dynamic class jenShove_68 extends MovieClip {
public var nagaShove:MovieClip;
public function jenShove_68(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Nagas2_fla
Section 26
//liftDoor1_46 (Nagas2_fla.liftDoor1_46)
package Nagas2_fla {
import flash.display.*;
public dynamic class liftDoor1_46 extends MovieClip {
public function liftDoor1_46(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Nagas2_fla
Section 27
//MainTimeline (Nagas2_fla.MainTimeline)
package Nagas2_fla {
import flash.events.*;
import fl.transitions.*;
import fl.transitions.easing.*;
import flash.utils.*;
import flash.display.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public var emmaCarrySprite:MovieClip;
public var textCloud:MovieClip;
public var emmiHorse:MovieClip;
public var locInfoTxt:TextField;
public var txt:TextField;
public var emmiDressedSprite:MovieClip;
public var temptext:TextField;
public var rightArrow:MovieClip;
public var optionCloud:MovieClip;
public var btnIntroStart:MovieClip;
public var portraits:MovieClip;
public var jenUnderwearSprite:MovieClip;
public var loader_mc:MovieClip;
public var loaded_txt:TextField;
public var btn1:MovieClip;
public var emmaDressedSprite:MovieClip;
public var jenPoliceSprite:MovieClip;
public var leftArrow:MovieClip;
public var btn2:MovieClip;
public var decor:MovieClip;
public var btn3:MovieClip;
public var portraits2:MovieClip;
public var btn4:MovieClip;
public var mousePointer:MovieClip;
public var btn5:MovieClip;
public var btn6:MovieClip;
public var kelseyDressedSprite:MovieClip;
public var txtLichtKrant:TextField;
public var naga3:MovieClip;
public var glow:MovieClip;
public var textCloud2:MovieClip;
public var mapDetail:MovieClip;
public var bJenEatenLOCK;
public var iUseItem;
public var xApproach;
public var iPhase;
public var bLiftInMotion:Boolean;
public var xMin;
public var xMax;
public var sprite;
public var currentChar;
public var bJenHelmVisible;
public var itemsClickedInVain;
public var locX;
public var locY;
public var currentFloor;
public var itemArray:Array;
public var resolution1;
public var bSpideysSeen;
public var bZapEmpty;
public var bBatteryNeed;
public var mysteryItemJen;
public var mysteryItem2;
public var bDoorGuardedSeen;
public var bArmyGirlSeen;
public var tile;
public var strRuneWord;
public var messups;
public var walkFrame;
public var walkDir:int;
public var myWalkTimer:uint;
public var iLiftPos;
public var iLiftTarget;
public var iScale;
public var lichtTween:Tween;
public var trollyTween1:Tween;
public var trollyTween2:Tween;
public var chopperTweenX:Tween;
public var chopperTweenY:Tween;
public var choplocX;
public var choplocY;
public function MainTimeline(){
addFrameScript(0, frame1, 1, frame2);
}
public function onProgress(_arg1:ProgressEvent):void{
var _local2:Number = _arg1.target.bytesLoaded;
var _local3:Number = _arg1.target.bytesTotal;
var _local4:Number = (_local2 / _local3);
loader_mc.scaleX = _local4;
loaded_txt.text = (("Loading... " + Math.round((_local4 * 100))) + "%");
}
public function onComplete(_arg1:Event):void{
loaded_txt.text = "Finished loading.";
btnIntroStart.alpha = 1;
btnIntroStart.addEventListener(MouseEvent.CLICK, startGame);
}
public function startGame(_arg1:MouseEvent):void{
gotoAndStop(2);
}
public function setScene(_arg1, _arg2, _arg3):void{
clearUI();
decor.x = (-800 * _arg1);
decor.y = ((_arg2 * 550) - 550);
enableLeft(false);
enableRight(false);
locX = _arg1;
locY = _arg2;
walkDir = 0;
sprite.x = _arg3;
sprite.gotoAndStop(1);
if (_arg2 == 3){
if (_arg1 == 0){
} else {
if (_arg1 == 1){
xMin = 120;
xMax = 400;
} else {
if (_arg1 == 2){
xMin = 80;
xMax = 720;
if (currentChar == 3){
enableRight(true);
};
if ((((currentChar == 2)) && ((iPhase > 230)))){
jenUnderwearSprite.y = 510;
jenUnderwearSprite.x = 700;
jenUnderwearSprite.scaleX = -1;
enableRight(true);
};
} else {
if (_arg1 == 3){
xMin = 300;
xMax = 860;
enableRight(true);
if (decor.doorLab.alpha == 0){
enableLeft(true);
};
if ((((currentChar == 2)) && ((iPhase > 230)))){
jenUnderwearSprite.y = 3000;
};
} else {
if (_arg1 == 4){
if (iPhase < 7){
xMin = 600;
xMax = 860;
enableRight(true);
} else {
xMin = -60;
xMax = 860;
enableLeft(true);
enableRight(true);
};
if (decor.liftDoor3.currentFrame == 2){
enableRight(false);
};
};
};
};
};
};
} else {
if (_arg2 == 2){
if (_arg1 == 0){
xMin = 20;
xMax = 680;
} else {
if (_arg1 == 1){
} else {
if (_arg1 == 2){
xMin = 100;
xMax = 860;
enableRight(true);
} else {
if (_arg1 == 3){
xMin = -60;
xMax = 860;
enableLeft(true);
enableRight(true);
} else {
if (_arg1 == 4){
if (currentChar == 4){
xMin = -60;
xMax = 20;
enableLeft(true);
sprite.x = 20;
} else {
xMin = 100;
xMax = 680;
if (decor.liftDoor2.currentFrame == 1){
enableRight(true);
};
if (decor.doorOffice.alpha == 0){
enableLeft(true);
};
};
};
};
};
};
};
} else {
if (_arg2 == 1){
if (_arg1 == 0){
xMin = 20;
xMax = 600;
} else {
if (_arg1 == 1){
xMin = -60;
xMax = 600;
enableLeft(true);
} else {
if (_arg1 == 2){
} else {
if (_arg1 == 3){
xMin = 100;
xMax = 860;
enableRight(true);
} else {
if (_arg1 == 4){
xMin = -20;
xMax = 680;
enableLeft(true);
if (decor.liftDoor1.currentFrame == 1){
enableRight(true);
};
};
};
};
};
};
} else {
if (_arg2 == 0){
if (_arg1 == 0){
xMin = 20;
xMax = 820;
enableRight(true);
} else {
if (_arg1 == 1){
xMin = 20;
xMax = 540;
if (currentChar != 1){
enableLeft(true);
};
} else {
if (_arg1 == 2){
xMin = 20;
xMax = 860;
enableRight(true);
} else {
if (_arg1 == 3){
xMin = -60;
xMax = 300;
if (iPhase > 2){
xMax = 650;
};
if (decor.doorGuarded.currentFrame == 2){
xMax = 860;
enableRight(true);
};
enableLeft(true);
if ((((currentChar == 1)) && ((iPhase > 5)))){
showTextCloud(1, 1, "Don't ask...\nJust don't ask...");
};
} else {
if (_arg1 == 4){
xMin = -60;
xMax = 680;
enableLeft(true);
if (decor.liftDoor0.currentFrame == 1){
enableRight(true);
};
} else {
if (_arg1 == 5){
xMin = -60;
xMax = 350;
enableLeft(true);
decor.doorOffice.alpha = 1;
};
};
};
};
};
};
};
};
};
};
}
public function mouseClicked(_arg1:MouseEvent):void{
var _local4:*;
var _local5:*;
var _local2:String = _arg1.target.name;
xApproach = stage.mouseX;
var _local3:* = stage.mouseY;
if ((((iPhase > 11)) && ((iPhase < 20)))){
doHome(_local2);
} else {
if (_local2 == "tinyChopper"){
decor.tinyChopper.alpha = 0;
chopperTweenX.stop();
chopperTweenY.stop();
decor.tinyChopper.y = 5000;
takeItem(29);
} else {
if (_local2 == "curtain"){
if (decor.curtain.scaleX == 3){
decor.curtain.scaleX = 1;
decor.curtain.gotoAndStop(1);
showTextCloud(currentChar, 1, "Ah, the curtain is probably better open anyway... More light in the room.");
} else {
decor.curtain.scaleX = 3;
decor.curtain.gotoAndStop(2);
showTextCloud(currentChar, 2, "I'll close the curtain so nobody can look inside.");
};
} else {
if ((((_local2 == "leftArrow")) && ((leftArrow.alpha > 0)))){
xApproach = -60;
walkDir = -1;
clearUI();
} else {
if ((((_local2 == "rightArrow")) && ((rightArrow.alpha > 0)))){
xApproach = 860;
walkDir = 1;
clearUI();
} else {
if ((((_local2 == "btnCloseFile")) || ((_local2 == "btnContinue")))){
mapDetail.alpha = 0;
mapDetail.x = 0;
mapDetail.y = 2000;
} else {
if (iUseItem > 0){
if ((((iUseItem == 1)) && ((_local2 == "jenPoliceSprite")))){
mapDetail.x = 0;
mapDetail.y = 0;
mapDetail.alpha = 1;
if (iPhase == 0){
iPhase = 1;
showTextCloud(1, 1, "Woah! I can't believe how stupid they really are! Didn't they see how dangerous those Naga were last time? You'd think they'd be smarter!");
} else {
showTextCloud(1, 1, "How horrible! I still can't believe they were so stupid to rebuild one of the portals! Idiots!");
};
} else {
if ((((iUseItem == 2)) && ((((_local2 == "jenPoliceSprite")) || ((_local2 == "jenUnderwearSprite")))))){
showTextCloud(1, 1, "I don't need to call right now. I'm on a top secret police case and I have other stuff on my mind!");
} else {
if ((((iUseItem == 5)) && ((_local2 == "cardReaderLab")))){
if (iPhase == 229){
showTextCloud(2, 1, "Jen, look... my access card doens't work here...");
decor.cardReaderLab.gotoAndPlay(20);
iPhase = 230;
} else {
showTextCloud(2, 1, "This card doesn't work here. Apparently the lab is so secret that even the cleaning staff isn't allowed into it.");
decor.cardReaderLab.gotoAndPlay(20);
};
} else {
if ((((((iUseItem == 5)) && ((_local2 == "cardReaderOffice")))) && ((decor.doorOffice.alpha == 1)))){
decor.cardReaderOffice.gotoAndPlay(2);
decor.doorOffice.alpha = 0;
showTextCloud(2, 0, "There we go! The office is open!");
enableLeft(true);
} else {
if ((((((((iUseItem == 4)) && ((_local2 == "cardReaderLab")))) && (!((iPhase == 9))))) && ((bJenEatenLOCK == false)))){
showTextCloud(1, 1, "Yay... it wor--\nEEEEEEP!");
decor.cardReaderLab.gotoAndPlay(1);
iPhase = 8;
enableRight(false);
xMax = sprite.x;
xMin = sprite.x;
decor.doorLab.alpha = 0;
doNagaApproach();
} else {
if ((((iUseItem == 19)) && ((_local2 == "naga2")))){
showTextCloud(3, 1, "There we go! Oh, mom has gone unconscious. No matter, I'll rig the portal and we're out of here!");
iPhase = 30;
decor.naga2.y = 3000;
decor.naga2.alpha = 0;
decor.jenShove.y = -650;
decor.jenShove.gotoAndStop(2);
decor.jenShove.alpha = 1;
} else {
if ((((iUseItem == 15)) && ((_local2 == "plant")))){
showTextCloud(3, 0, "Hop, pouring the coffee to the plant. I don't want this old coffee and the plant won't mind... it is already gone to see its maker anyway.");
dropItem(15);
takeItem(16);
} else {
if ((((iUseItem == 16)) && ((_local2 == "chemistrySet")))){
showTextCloud(3, 0, "Finally I get to play with a chemistry set! Here, I'll pour this yellow into the coffee pot!");
dropItem(16);
takeItem(17);
decor.chemistrySet.gotoAndStop(2);
} else {
if ((((iUseItem == 17)) && ((_local2 == "chemistrySet")))){
showTextCloud(3, 0, "Finally I get to play with a chemistry set! Here, I'll pour this yellow into the coffee pot!");
dropItem(17);
takeItem(18);
decor.chemistrySet.gotoAndStop(3);
} else {
if ((((iUseItem == 18)) && ((_local2 == "chemistrySet")))){
showTextCloud(3, 0, "No need to overdo it now! Can't just throw all the chemicals together! I have just the concoction that I need right now! A strong acid!");
} else {
if ((((iUseItem == 18)) && ((_local2 == "naga2")))){
showTextCloud(3, 0, "HELL NO! If I pour this acid over the naga, it'll burn mom away, too! I can't do that!");
} else {
if ((((iUseItem == 18)) && ((_local2 == "doorLab")))){
showTextCloud(3, 0, "I think the door is far too thick for this little acid to burn through it. I have to do something else.");
} else {
if ((((iUseItem == 18)) && ((_local2 == "cardReaderOffice")))){
showTextCloud(3, 0, "While that would possibly give me access to the office space... I think I have a better use of it.");
} else {
if ((((iUseItem == 18)) && ((_local2 == "cardReaderLab")))){
showTextCloud(3, 0, "BURN BABY, BURN!\n\nLook! The acid burnt away the electronics and the door opens! Go go Emma! Lab here I come!");
dropItem(18);
takeItem(16);
decor.doorLab.alpha = 0;
decor.burntLines.y = -873;
enableLeft(true);
} else {
if ((((((iUseItem == 26)) && ((locX == 2)))) && ((locY == 3)))){
showOptionCloud(2, 2, "Erm, yeah, maybe not...", "Of-of course not!", 1, 3, "OH MY GOD! KELSEY! PUT THAT DOWN! YOU'RE NOT GOING TO SET OFF DYNAMITE IN HERE, ARE YOU? YOU'LL KILL US BOTH!");
} else {
if ((((iUseItem == 24)) && ((_local2 == "nagaTail")))){
if (iPhase == 227){
decor.decayedDummy.x = decor.nagaTail.x;
decor.decayedDummy.y = decor.nagaTail.y;
decor.nagaTail.y = 3000;
bZapEmpty = true;
showTextCloud(2, 1, "Woah... a dummy... and its clothes have already been partly decayed! At least I now know I should be able to safely zap Jen's naga, too! Better not delay! eeew...");
iPhase = 228;
};
} else {
if ((((iUseItem == 25)) && ((((((_local2 == "btn3")) || ((_local2 == "btn4")))) || ((_local2 == "btn5")))))){
if ((((((((_local2 == "btn3")) && ((btn3.currentFrame == 25)))) || ((((_local2 == "btn4")) && ((btn4.currentFrame == 25)))))) || ((((_local2 == "btn5")) && ((btn5.currentFrame == 25)))))){
dropItem(25);
bZapEmpty = false;
showTextCloud(2, 1, "Yay, it fits! Jen, here I come!\n\nWho you gonna call?... NAGA-BUSTERS!");
};
} else {
if ((((iUseItem == 24)) && ((_local2 == "naga2")))){
if ((((iPhase == 227)) && ((bZapEmpty == false)))){
showTextCloud(2, 2, "No no! I don't want to do that! Imagine it would zap BOTH the Naga AND Jen inside it! I don't want to take that risk! I don't want to kill Jen! This is a bad idea!");
} else {
if (bZapEmpty == true){
showTextCloud(2, 1, "Oh, this is bollocks! Now the damn thing is empty! I wasted my one shot at that naga with the faker in it! boohoo...");
bBatteryNeed = true;
} else {
showTextCloud(2, 1, "Woohoo! I did it!");
decor.naga2.y = 3000;
jenUnderwearSprite.x = 400;
jenUnderwearSprite.y = 510;
jenUnderwearSprite.alpha = 1;
iPhase = 229;
};
};
} else {
if ((((iUseItem == 4)) && ((_local2 == "cardReaderOffice")))){
showTextCloud(1, 1, "This keycard doesn't work on this door. It's the keycard for the lab.");
decor.cardReaderOffice.gotoAndPlay(20);
} else {
if ((((iUseItem == 3)) && ((((_local2 == "armySprite1")) || ((_local2 == "armySprite2")))))){
showTextCloud(1, 2, "I am Jennifer McCrow, Special Agent. I have been placed on this case to solve the situation inside. You should have been informed about this. Please step aside.");
iPhase = 2;
} else {
if ((((((iUseItem == 3)) && ((_local2 == "armyGirl")))) && ((iPhase == 2)))){
showTextCloud(6, 0, "Good! I see everything is in order, Special Agent Jennifer McCrow! Here is a keycard, you'll need that to access the secret lab. You will find the lab on the 3rd floor. Good luck!");
takeItem(4);
xMax = 650;
iPhase = 3;
} else {
if ((((iUseItem == 14)) && ((((_local2 == "painting2")) || ((_local2 == "ears")))))){
if (decor.painting2.ears.alpha == 1){
showTextCloud(3, 1, "Nah... it's perfect like this! I shouldn't touch it anymore!");
} else {
showTextCloud(3, 1, "Look... THIS is how you do it! ... lalalala... see? MUCH better this way!");
decor.painting2.ears.alpha = 1;
};
} else {
if ((((iUseItem == 20)) && ((_local2 == "jenShove")))){
showTextCloud(3, 0, "Come on, mom. Get up off the floor. I need to obliterate that portal so it won't be used again by anyone unable to control it.");
decor.jenShove.gotoAndStop(3);
emmaCarrySprite.x = sprite.x;
emmaCarrySprite.y = sprite.y;
sprite.y = 3000;
sprite.alpha = 0;
sprite = emmaCarrySprite;
decor.armyGirl.gotoAndStop(5);
dropItem(20);
iPhase = 32;
} else {
if ((((((iUseItem == 22)) && ((_local2 == "spideys")))) && ((decor.spideys.alpha == 1)))){
decor.spideys.alpha = 0;
dropItem(22);
takeItem(23);
showTextCloud(2, 0, "Mush-a-ring dum a do dum a da\nWhack for my daddy-o\nWhack for my daddy-o\nThere's SPIDEYS in the jar!");
} else {
if ((((iUseItem == 13)) && ((_local2 == "jenShove")))){
dropItem(13);
decor.jenShove.alpha = 0;
decor.jenShove.y = 2000;
jenUnderwearSprite.x = 400;
jenUnderwearSprite.y = 510;
jenUnderwearSprite.alpha = 1;
iPhase = 127;
showOptionCloud(4, 2, "It's not over yet, mom. The nagas...", "It's not over yet, mom. The nagas...", 1, 1, "Oh Emmi! You saved me! Thank you so much! You're the greatest!");
} else {
if (iUseItem == 6){
if (_local2 == "nagaTail"){
showTextCloud(1, 2, "What do you me expect to do with this? Just toss the dummy to the Naga...? I really don't want to try that!");
} else {
if (_local2 == "trolly"){
showTextCloud(1, 2, "Now the dummy has a ride! Yay! Good for the crash-test-dummy!");
decor.trolly.gotoAndStop(2);
dropItem(6);
};
};
} else {
if ((((iUseItem == 21)) && ((_local2 == "doorEntrance")))){
showTextCloud(2, 1, "The tiny key doesn't fit on this door. It's for somewhere else.");
} else {
if ((((iUseItem == 21)) && ((_local2 == "doorStairway2")))){
showTextCloud(2, 1, "This isn't going to work. There's not even a keyhole in this door!");
} else {
if ((((((iUseItem == 21)) && ((_local2 == "doorCleaning")))) && ((decor.doorCleaning.currentFrame == 1)))){
showTextCloud(2, 1, "Ah, this is where the key fits! The cleaning cabinet... eew... They call this a cleaning cabinet? It's bloody dirty. I'm not touching anything in there!");
decor.doorCleaning.gotoAndStop(2);
} else {
if ((((iUseItem == 9)) && ((_local2 == "armySprite1")))){
if (currentChar == 4){
showTextCloud(4, 1, "I don't want to shrink those nice soldiers! Poor guys! What if a rat begins to hunt them?");
} else {
if (decor.armySprite1.scaleY == 1){
reduceArmy(decor.armySprite1);
showTextCloud(3, 2, "Adios army-guy! Time to take a break!");
if (decor.armySprite2.scaleY != 1){
iPhase = 23;
};
};
};
} else {
if ((((iUseItem == 9)) && ((_local2 == "armySprite2")))){
if (currentChar == 4){
showTextCloud(4, 1, "I don't want to shrink those nice soldiers! Poor guys! What if a rat begins to hunt them?");
} else {
if (decor.armySprite2.scaleY == 1){
showTextCloud(3, 0, "It's a big big world and I'm a big big girl... to you at least! hahaha");
reduceArmy(decor.armySprite2);
if (decor.armySprite1.scaleY != 1){
iPhase = 23;
};
};
};
} else {
if ((((iUseItem == 14)) && ((((_local2 == "painting")) || ((_local2 == "boobies")))))){
if (iPhase == 24){
iPhase = 25;
decor.boobies.alpha = 1;
showTextCloud(3, 0, "This painting is called the 'Fallen madonna with the big boobies'... and now it really brings honour to its name! Hehehe... Much better this way!");
} else {
if (iPhase == 26){
iPhase = 27;
showTextCloud(3, 0, "Hahah! How about that!? I should have become an artist! This is hilarious! Emma - 'Improving Your Paintings, Inc.'");
decor.boobies.gotoAndStop(2);
};
};
} else {
if ((((iUseItem == 9)) && ((_local2 == "armyGirl")))){
showTextCloud(3, 2, "Damn! It's not working. The battery must be empty! Just my luck! If there only was a place to charge it... by the way, if there was, I don't have time. I need to get to mom!");
if (iPhase == 23){
iPhase = 24;
};
} else {
if ((((iUseItem == 11)) && ((_local2 == "jenShove")))){
showTextCloud(4, 1, "Tickle tickle tickle...\nhm... she's unconscious. This isn't waking her up! Was worth a try though...");
} else {
if ((((iUseItem == 9)) && ((_local2 == "emmaDressedSprite")))){
if (currentChar == 4){
if (emmaDressedSprite.scaleY == 1){
shrinkEmma();
} else {
showTextCloud(4, 0, "She's already small enough. She's harmless now! teehee!");
};
};
} else {
if ((((iUseItem == 9)) && ((_local2 == "emmiDressedSprite")))){
if (currentChar == 4){
if ((((locX == 1)) && ((locY == 0)))){
shrinkEmmi();
dropItem(9);
decor.shrinkRay.x = (820 + sprite.x);
decor.shrinkRay.alpha = 1;
} else {
showTextCloud(4, 0, "I don't want to shrink myself! That would be counter-productive!");
};
} else {
showTextCloud(3, 1, "There's no need to shrink Emmi. Time to leave!");
};
} else {
if (iUseItem == 29){
dropItem(29);
flyChopper();
} else {
if (iUseItem == 28){
_local4 = Math.floor((Math.random() * 4));
if (_local4 == 0){
showTextCloud(currentChar, 1, "And what does Mr. Sock-puppet think of this here...?\n\nAh! Heheh...");
};
if (_local4 == 1){
showTextCloud(currentChar, 1, "Mr. Sock-puppet: 'What's this then, eh? Is it something we can use?'");
};
if (_local4 == 2){
showTextCloud(currentChar, 1, "Mr. Sock-puppet: 'Hello! Can I eat you?'");
};
if (_local4 == 3){
showTextCloud(currentChar, 1, "Mr. Sock-puppet has nothing to say about this, has he?\n\nNo, he hasn't.");
};
} else {
if (iUseItem == 27){
if (Math.floor((Math.random() * 2)) == 0){
showTextCloud(currentChar, 1, "Quack quack!");
} else {
showTextCloud(currentChar, 1, "Quack! -- quack quack!");
};
} else {
if ((((iUseItem == 9)) && ((_local2 == "kelseyWindow")))){
showTextCloud(currentChar, 1, "Shrinking Kelsey could be useful... but I'll have to go outside to do that. Can't shrink her through the glass.");
} else {
if ((((iUseItem == 11)) && ((_local2 == "armyGirl")))){
if ((((sprite.y > 500)) && ((decor.armyGirl.currentFrame == 2)))){
showTextCloud(4, 1, "I want to tickle her feet... but I can't reach them from here!");
} else {
if (decor.armyGirl.currentFrame == 2){
emmiTickleFeet();
} else {
showTextCloud(4, 0, "She's K.O. Tickling makes little sense now.");
};
};
} else {
if ((((iUseItem == 10)) && ((_local2 == "emmiDressedSprite")))){
showTextCloud(4, 2, "Are you CRAZY!? These aren't for me! They're strong purgative tablets! I'd throw up everything I've eaten today!");
} else {
if ((((iUseItem == 10)) && ((_local2 == "naga2")))){
throwUpJen();
} else {
if ((((iUseItem == 7)) && ((_local2 == "nagaTail")))){
clearUI();
dropItem(7);
decor.trolly.x = 3740;
decor.trolly.y = -595;
decor.trolly.gotoAndStop(2);
decor.trolly.alpha = 1;
trollyTrack1Empty();
} else {
if ((((iUseItem == 26)) && ((((_local2 == "torch1")) || ((_local2 == "torch2")))))){
showTextCloud(2, 1, "Um, I don't know if that's a good idea. It might blow up in my hands!");
} else {
if ((((iUseItem == 26)) && ((_local2 == "portal2")))){
decor.tnt2.alpha = 1;
dropItem(26);
iPhase = 235;
showTextCloud(2, 0, "There! Now their portal is rigged. All I need to do is light it up and get the hell out of here!");
} else {
if ((((iUseItem == 23)) && ((_local2 == "armyGirl")))){
iPhase = 226;
dropItem(23);
takeItem(22);
decor.armyGirl.gotoAndStop(6);
showTextCloud(6, 0, "EEEEEEEEH! SPIDERS! HEEEELP! HEEEEEL-... GLPH BLLHGHGGHH!");
} else {
if ((((((iUseItem == 2)) && ((_local2 == "naga2")))) && ((iPhase == 11)))){
mapDetail.gotoAndStop(3);
mapDetail.x = 0;
mapDetail.y = 0;
decor.gameOver.alpha = 0;
decor.doorGuarded.gotoAndStop(1);
mapDetail.alpha = 1;
chopperTweenX.stop();
chopperTweenY.stop();
decor.tinyChopper.y = 5000;
showText("ACT 2: 'Rescue Mission' - My my... looks like you're in trouble again, Jen!");
setScene(0, 1, 80);
xMax = 380;
itemArray[0] = 0;
itemArray[1] = 0;
itemArray[2] = 0;
itemArray[3] = 0;
itemArray[4] = 0;
itemArray[5] = 0;
btn1.gotoAndStop(1);
btn2.gotoAndStop(1);
btn3.gotoAndStop(1);
btn4.gotoAndStop(1);
btn5.gotoAndStop(1);
btn6.gotoAndStop(1);
decor.phoneRing.gotoAndPlay(1);
iPhase = 12;
currentChar = 2;
emmiDressedSprite.gotoAndStop(6);
emmiDressedSprite.y = 530;
emmiDressedSprite.x = 104;
emmaDressedSprite.y = 530;
emmaDressedSprite.x = 530;
decor.liftDoor0.gotoAndStop(2);
decor.liftDoor1.gotoAndStop(2);
decor.liftDoor2.gotoAndStop(2);
} else {
if ((((iUseItem == 8)) && ((_local2 == "nagaTail")))){
clearUI();
dropItem(8);
decor.trolly.x = 3740;
decor.trolly.y = -595;
decor.trolly.gotoAndStop(3);
decor.trolly.alpha = 1;
trollyTrack1Dressed();
} else {
if ((((((iUseItem == 6)) || ((iUseItem == 7)))) && ((_local2 == "jenPoliceSprite")))){
if (iPhase == 5){
if ((((locX == 1)) && ((locY == 0)))){
showTextCloud(1, 2, "Not here. I don't want to do anything with that doll in front of those army guys!");
} else {
sprite = jenUnderwearSprite;
sprite.x = jenPoliceSprite.x;
sprite.y = jenPoliceSprite.y;
jenPoliceSprite.y = 2000;
jenPoliceSprite.alpha = 0;
sprite.alpha = 1;
dropItem(7);
takeItem(8);
iPhase = 6;
bJenHelmVisible = false;
showTextCloud(1, 2, "There! I had rather not do this, but maybe the smell and looks will make the Naga believe this is a real person rather than a doll.");
};
} else {
showTextCloud(1, 2, "What do you expect me to do with a crash-test-dummy? Caress and kiss it? It is not a sex doll! I'm not interested in doing stuff with it!");
};
} else {
_local5 = Math.floor((Math.random() * 10));
if (_local5 == 0){
showTextCloud(currentChar, 0, "That doesn't do anything.");
};
if (_local5 == 1){
showTextCloud(currentChar, 0, "I don't want to use those items together, it won't do any good.");
};
if (_local5 == 2){
showTextCloud(currentChar, 0, "I can't do that, it's not helping my cause.");
};
if (_local5 == 3){
showTextCloud(currentChar, 0, "Now why would I want to do that?");
};
if (_local5 == 4){
showTextCloud(currentChar, 0, "Don't be silly, it is not going to work that way.");
};
if (_local5 == 5){
showTextCloud(currentChar, 0, "Maybe I should try to come up with something else.");
};
if (_local5 == 6){
showTextCloud(currentChar, 0, "I don't think that will work.");
};
if (_local5 == 7){
showTextCloud(currentChar, 0, "No, that's not a good idea.");
};
if (_local5 == 8){
showTextCloud(currentChar, 0, "Maybe I should try to do something a little more productive.");
};
if (_local5 == 9){
showTextCloud(currentChar, 0, "Nope, it doesn't do anything.");
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
iUseItem = 0;
mousePointer.gotoAndStop(1);
} else {
if (_local2 == "btn1"){
if (btn1.currentFrame > 1){
clearUI();
iUseItem = (btn1.currentFrame - 1);
mousePointer.gotoAndStop(2);
};
} else {
if (_local2 == "btn2"){
if (btn2.currentFrame > 1){
clearUI();
iUseItem = (btn2.currentFrame - 1);
mousePointer.gotoAndStop(2);
};
} else {
if (_local2 == "btn3"){
if (btn3.currentFrame > 1){
clearUI();
iUseItem = (btn3.currentFrame - 1);
mousePointer.gotoAndStop(2);
};
} else {
if (_local2 == "btn4"){
if (btn4.currentFrame > 1){
clearUI();
iUseItem = (btn4.currentFrame - 1);
mousePointer.gotoAndStop(2);
};
} else {
if (_local2 == "btn5"){
if (btn5.currentFrame > 1){
clearUI();
iUseItem = (btn5.currentFrame - 1);
mousePointer.gotoAndStop(2);
};
} else {
if (_local2 == "btn6"){
if (btn6.currentFrame > 1){
clearUI();
iUseItem = (btn6.currentFrame - 1);
mousePointer.gotoAndStop(2);
};
} else {
if ((((_local2 == "btnLiftG")) && (!((currentChar == 4))))){
if (bLiftInMotion == false){
liftToFloor(0);
};
} else {
if ((((_local2 == "btnLift1")) && (!((currentChar == 4))))){
if (bLiftInMotion == false){
liftToFloor(1);
};
} else {
if ((((_local2 == "btnLift2")) && (!((currentChar == 4))))){
if (bLiftInMotion == false){
liftToFloor(2);
};
} else {
if ((((_local2 == "btnLift3")) && (!((currentChar == 4))))){
if (bLiftInMotion == false){
liftToFloor(3);
};
} else {
if (currentChar == 1){
if (iPhase == 9){
itemsClickedInVain++;
if (itemsClickedInVain > 3){
iPhase = 10;
doSwallowJen();
};
};
if (_local2 == "option1"){
if (optionCloud.option1.option1.text == "I do! I'm a police officer!"){
clearUI();
showTextCloud(5, 0, "With all due respect, we can see that, ma'am. But nonetheless, this goes beyond the regular police office. This is a state security matter.");
};
} else {
if (_local2 == "option2"){
if (optionCloud.option2.option2.text == "Err... no, actually, I need to be in there!"){
clearUI();
showTextCloud(5, 0, "I'm sorry, ma'am, but we have been told that NO ONE is to enter. Not even police officers who claim to have to!");
};
} else {
if (_local2 == "nametag"){
showTextCloud(1, 0, "It is a nametag. Special Agent McCrow. That's me. It is to tell others that this is my desk. MY desk! Mine! My own... my... never mind.");
} else {
if (_local2 == "nametag2"){
if (iPhase == 0){
showTextCloud(1, 0, "This is the desk of the Superior; Ellen Fletcher. She is not here right now, but she asked me to look into case 7823. I wonder what it is about.");
} else {
showTextCloud(1, 0, "This is the desk of the Superior; Ellen Fletcher. She is not here right now. Anyway, I better be off to solve this 'Naga' case...");
};
} else {
if (_local2 == "crimemap"){
showTextCloud(1, 0, "It is a make-shift crime-map. I use it in my investigations. It has push-pins indicating where murders were committed, related to case 7712.");
} else {
if ((((_local2 == "cellphone")) && ((decor.cellphone.alpha == 1)))){
if (iPhase == 0){
showTextCloud(1, 0, "That's my cellphone. I don't need it right now, so it can stay on my desk.");
} else {
decor.cellphone.alpha = 0;
takeItem(2);
showTextCloud(1, 1, "Well, there goes nothing then! Cellphone in my pocket and on to the harbour I go!");
enableLeft(true);
};
} else {
if (_local2 == "dossier"){
showTextCloud(1, 0, "It's the file from case 2083. I promised a colleague to have a look at it in the afternoon. It's not important right now.");
} else {
if ((((_local2 == "ellenDossier")) && ((decor.ellenDossier.alpha == 1)))){
showTextCloud(1, 0, "This is the file of case 7823 the Sup wanted me to look into. I better find out what this case is all about, because I don't want to go in unprepared.");
decor.ellenDossier.alpha = 0;
takeItem(1);
} else {
if (_local2 == "fileCabinet"){
showTextCloud(1, 0, "That's my file cabinet. It contains files on different police cases. I don't need anything from there right now.");
} else {
if (_local2 == "fileCabinet2"){
showTextCloud(1, 0, "Oh, no-no-no... I am not touching that cabinet. It belongs to my Superior. Ellen will show me all the corners of the office if I open those drawers!");
} else {
if (_local2 == "jenPoliceSprite"){
showTextCloud(1, 0, "I am Jennifer McCrow, Special Agent. I am currently on an investigation.");
} else {
if (_local2 == "jenUnderwearSprite"){
showTextCloud(1, 0, "It's a bit cold and uh, I hope I don't run into anyone like this!");
} else {
if ((((_local2 == "armySprite1")) || ((_local2 == "armySprite2")))){
if (iPhase < 2){
showOptionCloud(1, 0, "I do! I'm a police officer!", "Err... no, actually, I need to be in there!", 5, 0, "This building is off limits, ma'am. Please turn around and leave the area.");
} else {
showTextCloud(5, 0, "Sir, Jennifer McCrow, Sir! Please enter the premises, sir!");
};
} else {
if (_local2 == "shed"){
showTextCloud(1, 0, "I don't have a reason to go there. My business is inside this big building here, building number 21. Why 21, really?");
} else {
if (_local2 == "doorStorage"){
if (decor.doorStorage.currentFrame == 1){
decor.doorStorage.gotoAndStop(2);
showTextCloud(1, 0, "What do they have in Storage, hmm? I know, it's 'in store'... little word play!");
} else {
showTextCloud(1, 0, "The storage room. There's nothing in it anymore that I'm interested in. By the way, the cleaning lady apparently forgets to clean here...");
};
} else {
if (_local2 == "trolly"){
if (decor.trolly.currentFrame == 2){
if (currentFloor == 0){
decor.trolly.y = 2000;
decor.trolly.alpha = 0;
showTextCloud(1, 0, "A crash-test-dummy on a trolly. Let's go take the dummy for a ride, shall we?");
takeItem(7);
};
} else {
showTextCloud(1, 0, "Hm, some kind of trolly. Completely useless to me unless for some reason I would want to move something heavy around...");
};
} else {
if (_local2 == "chessHorse"){
showTextCloud(1, 0, "It's an oversized chess piece. God knows what it's doing there... maybe a forgotten promotional item...?");
} else {
if (_local2 == "paperClips"){
showTextCloud(1, 0, "It's a jar with paperclips in it. Nothing special about this.");
} else {
if (_local2 == "armyGirl"){
if (iPhase < 3){
showTextCloud(6, 0, "Are you the Special Agent they were going to send over, um... let's see... Someone Jennifer McCrow? Can I see your ID please?");
} else {
showTextCloud(6, 0, "I hope you are as good as they claim, ma'am. I really do hope you are! Beware, beyond these doors be Naga!");
};
} else {
if (_local2 == "paperOrders"){
showTextCloud(1, 0, "There's a paper in front of her on the desk. Her orders, probably. I guess she also doesn't want to let just anyone pass.");
} else {
if (_local2 == "nagaTail"){
if (iPhase == 3){
showTextCloud(1, 3, "EEP! There's a Naga hiding behind that wall, I can see the tail! I am sure it smells me and it'll jump me if I try to get closer! I don't want to approach it!");
iPhase = 4;
} else {
showTextCloud(1, 3, "Scary!");
};
} else {
if (_local2 == "paintedSign"){
showTextCloud(1, 0, "According to the cardboard sign the wall has just been painted. I don't know why anyone would place a sign against a just painted wall... Not very smart.");
} else {
if ((((((_local2 == "liftCallG")) || ((_local2 == "liftCall1")))) || ((_local2 == "liftCall2")))){
showTextCloud(1, 0, "I don't need to press the button to call the lift. It is already here.");
} else {
if (_local2 == "liftCall3"){
showTextCloud(1, 2, "Woah! Someone completely destroyed the lift call mechanism! Hopefully the lift won't go down, or I'll be stuck here!");
} else {
if (_local2 == "doorGuarded"){
if (iPhase < 3){
showTextCloud(6, 0, "HALT! May I first see your ID, please?");
} else {
if (decor.doorGuarded.currentFrame == 1){
decor.doorGuarded.gotoAndStop(2);
xMax = 860;
enableRight(true);
};
};
} else {
if (_local2 == "ship"){
showTextCloud(1, 0, "It's a pretty big ship. But I don't see why I'd have to go there, I need to be in this building overhere.");
} else {
if (_local2 == "shipSign"){
showTextCloud(1, 0, "A sign. It points to where the ships are. But I don't need to go to any ships.");
} else {
if (_local2 == "doorEntrance"){
if (iPhase < 2){
showTextCloud(5, 0, "Ma'am, you are not allowed to enter this building. It has been placed under strict supervision of the army! Nobody gets in - and especially not out!");
} else {
setScene(2, 0, 80);
clearUI();
};
} else {
if (_local2 == "signGrass"){
showTextCloud(1, 1, "Army-guy will kill you? What the hell... I doubt those two are posted there to kill people who walk on the grass!");
} else {
if (_local2 == "dummy"){
if (iPhase < 4){
showTextCloud(1, 1, "Hm, they have all kinds of garbage lying around here... even a crash-test-dummy! Makes you wonder what kind of tests they all do in this secret lab!");
} else {
showTextCloud(1, 1, "I think this could come of use, somehow. I rather have the Naga eat the dummy than me, if it comes to that.");
decor.dummy.alpha = 0;
decor.dummy.y = 2000;
takeItem(6);
};
} else {
if (_local2 == "painting2"){
showTextCloud(1, 0, "Oh! I love this painting. It is so colourful and... balanced! I should find out if I can purchase a copy of it to my home sometime!");
} else {
if ((((_local2 == "painting")) || ((_local2 == "boobies")))){
if (iPhase > 5){
showTextCloud(1, 2, "Brrr... Now I feel almost as naked as the lady in that painting!");
} else {
showTextCloud(1, 1, "Gosh! Isn't this the 'Fallen Madonna with the Big Boobies' by van Clomp? This obviously fake copy of it is huge, but the boobies on the other hand... why do they call them 'big'?");
};
} else {
if (_local2 == "doorStairway2"){
showTextCloud(1, 0, "No Entry. Hm. I don't see how you could enter anyway, it has no door knob or anything...");
} else {
if (_local2 == "doorCleaning"){
showTextCloud(1, 1, "Hey, come on! Do I look like the cleaning lady? Why would I go into the cleaning cabinet? To mob up the Naga or something? I doubt that'd work!");
} else {
if (_local2 == "doorExit"){
if (iPhase < 6){
setScene(1, 0, 540);
clearUI();
} else {
showTextCloud(1, 2, "I don't want to go outside like this! I'm in my underwear! Imagine!");
};
} else {
if (_local2 == "tinyChopper"){
flyChopper();
} else {
if (_local2 == "mysteryBox"){
if (mysteryItemJen > 0){
showTextCloud(1, 0, "Nah, I don't need anything else from the mystery box! I'm happy with what I got.");
} else {
showTextCloud(1, 0, "Look! A mystery box! Let's see what I get out of that!");
mysteryItemJen = Math.ceil((Math.random() * 3));
takeItem((26 + mysteryItemJen));
};
} else {
if (_local2 == "katteluikje"){
showTextCloud(1, 0, "Heheh... this building has a flap to let the cat in or out... Since when do they have a cat in a laboratory building?");
} else {
if (_local2 == "ribbons"){
showTextCloud(1, 0, "High quality flexy ribbons. People sometimes use those for workouts.");
} else {
if (_local2 == "buckets"){
showTextCloud(1, 0, "Paint buckets. I don't need those.");
} else {
if (_local2 == "plant"){
showTextCloud(1, 0, "Awww... poor plant! I wonder what happened to it. It has only one leaf left and even that is pointing down.");
} else {
if (_local2 == "towel"){
showTextCloud(1, 0, "If I ever need a towel in here, I know where to get it!");
} else {
if (_local2 == "coffeeMaker"){
showTextCloud(1, 0, "It's an oldfashioned coffee maker. Ours at home looks much nicer!");
} else {
if (_local2 == "coffeePot"){
showTextCloud(1, 0, "It's a coffee pot... there's some coffee still in it, but I don't think it's warm anymore.");
} else {
if (_local2 == "wasteBin"){
showTextCloud(1, 0, "A wastebin. I can throw away stuff here if I don't want it anymore.");
} else {
if (_local2 == "battery"){
showTextCloud(1, 0, "It's a battery. A really big battery, however! I wonder what they use it for.");
} else {
if (_local2 == "chemistrySet"){
showTextCloud(1, 0, "Hm, a set of test tubes with liquid in them. I really don't want to touch that stuff!");
} else {
if (_local2 == "smellingSalt"){
showTextCloud(1, 0, "Looks like someone spilled some salt here. Or sugar. I'm not interested in taking a closer look to find out what it is.");
} else {
if ((((_local2 == "mouseHoleB")) || ((_local2 == "mouseHoleD")))){
showTextCloud(1, 0, "Looks like they don't only have a Naga problem here, they have a mouse problem as well!");
} else {
if (_local2 == "cardReaderOffice"){
showTextCloud(1, 0, "It's a card reader. This one will open the door to the office, if it works...");
} else {
if (_local2 == "doorOffice"){
showTextCloud(1, 0, "This is obviously the office floor. The door is closed, however, and I need a key card to open it.");
} else {
if (_local2 == "cardReaderLab"){
showTextCloud(1, 0, "This is the card reader to open the lab door, I'm sure!");
} else {
clearUI();
if ((((xApproach > sprite.x)) && ((_local3 < 550)))){
walkDir = 1;
doWalkAnimation();
} else {
if ((((xApproach < sprite.x)) && ((_local3 < 550)))){
walkDir = -1;
doWalkAnimation();
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
} else {
if (currentChar == 2){
doKelsey(_local2, _local3);
} else {
if (currentChar == 3){
doEmma(_local2, _local3);
} else {
if (currentChar == 4){
doEmmi(_local2, _local3);
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
}
public function doKelsey(_arg1, _arg2):void{
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
if (_arg1 == "option1"){
if (optionCloud.option1.option1.text == "Boys, let me in!"){
clearUI();
showOptionCloud(2, 2, "GIRL!? I'm not a girl!", "Wha! I'm 122 years old, jackass!", 5, 0, "Girl, get lost! It is way too dangerous here for a child! Turn around and run... RUN!");
} else {
if (optionCloud.option1.option1.text == "GIRL!? I'm not a girl!"){
clearUI();
showOptionCloud(2, 0, "I don't have an ID.", "I'm old enough, idiot!", 5, 0, "Really? Can we see some ID then? I mean, you've got to have some proof of that, baby-face!");
} else {
if (optionCloud.option1.option1.text == "I don't have an ID."){
clearUI();
showTextCloud(5, 0, "Tough for you. So you're just a child after all. Either way, you're not getting in here. Bye!\n...\n... I said - BYE!");
} else {
if (optionCloud.option1.option1.text == "(tease them)"){
clearUI();
showTextCloud(2, 0, "I'm not wearing undies, either. And I bet you WISH you looked as young as I do, army-friend... and could get as old as I am! teehheehee...");
} else {
if (optionCloud.option1.option1.text == "(give her stuff)"){
clearUI();
doGlow(true);
iPhase = 223;
takeItem(21);
showTextCloud(5, 0, "Of course, my dear, pretty girl... here, have this tiny key! I found it in the hallway the other day... *swoon* - Want anything else?");
} else {
if (optionCloud.option1.option1.text == "Undress, jump in the water!"){
clearUI();
resolution1 = 1;
showTextCloud(5, 0, "See you, cute girl! Hahaha... I'm going to swim to Holland! ... wheeeeee! *splash* ... *splash*");
iPhase = 224;
decor.armySprite1.alpha = 0;
decor.armySprite1.y = 2000;
decor.armySprite2.alpha = 0;
decor.armySprite2.y = 2000;
doGlow(false);
} else {
if (optionCloud.option1.option1.text == "(tell her)"){
clearUI();
if (resolution1 == 1){
showTextCloud(2, 0, "I think they were a bit overheated... I saw them strip all their clothes and dive into the water. Mentioned something about swimming to France or something...");
} else {
showTextCloud(2, 2, "I don't know, ma'am, must have been something I said... They ran off to their mommy, crying their eyes out. *shrug*");
};
} else {
if (optionCloud.option1.option1.text == "(...)"){
clearUI();
doGlow(false);
_local3 = Math.floor((Math.random() * 8));
if (_local3 == 0){
showTextCloud(6, 0, "What are you talking about... are you delusional?");
};
if (_local3 == 1){
showTextCloud(6, 0, "Errr... whatever you're saying, it's not making sense to me.");
};
if (_local3 == 2){
showTextCloud(6, 0, "Are you trying to fool me, girl? Get lost.");
};
if (_local3 == 3){
showTextCloud(6, 0, "Whatever do you mean? I don't want that!");
};
if (_local3 == 4){
showTextCloud(6, 0, "Pfff... so many crazy people in this world... World of the insane...");
};
if (_local3 == 5){
showTextCloud(6, 0, "Heck no. Get out, girl! Get a life, do something useful!");
};
if (_local3 == 6){
showTextCloud(6, 0, "What do you mean by that? You can't make me do such stuff!");
};
if (_local3 == 7){
showTextCloud(6, 0, "Have you gone bonkers? I won't do no such thing!");
};
} else {
if (optionCloud.option1.option1.text == "Kelsey? Is that you? Help!"){
clearUI();
showTextCloud(2, 2, "It's me, Jen! I will free you from there, I promise!");
iPhase = 227;
} else {
if (optionCloud.option1.option1.text == "Erm, yeah, maybe not..."){
clearUI();
showTextCloud(1, 2, "I sure hope not! Kelsey, it would blow both of us sky-high! You can't use it, you hear!?");
iPhase = 234;
};
};
};
};
};
};
};
};
};
};
} else {
if (_arg1 == "option2"){
if (optionCloud.option2.option2.text == "I need to be in there!"){
clearUI();
showTextCloud(5, 0, "Too bad. You're not getting in. Besides, there's nothing for you in there.");
} else {
if (optionCloud.option2.option2.text == "Wha! I'm 122 years old, jackass!"){
clearUI();
showTextCloud(5, 0, "Puhlease! A hundred-and-twenty-two? Who do you take us for, girl? Now run to your mommy and don't come back here! Ever! This place is NO joke!");
} else {
if (optionCloud.option2.option2.text == "I'm old enough, idiot!"){
clearUI();
showTextCloud(5, 0, "(bad imitation:) 'Oh! Geez, look! I'm not wearing diapers anymore! whee I'm old enough, grandpa!' (both roll over the floor laughing)");
iPhase = 222;
} else {
if (optionCloud.option2.option2.text == "(use seductive powers)"){
clearUI();
doGlow(true);
showOptionCloud(5, 0, "(give her stuff)", "(attempt to resist)", 2, 0, "Pretty army boys! You want to give me your stuff! You know you do! You can't resist me... give me your stuff!");
} else {
if (optionCloud.option2.option2.text == "(attempt to resist)"){
_local4 = Math.floor((Math.random() * 2));
clearUI();
doGlow(true);
if (_local4 == 0){
showTextCloud(5, 0, "Oh... I feel funny... what... HEY, WHAT ARE YOU DOING? Are you trying to play with my mind? Get lost, girl! Go away!");
} else {
iPhase = 223;
takeItem(21);
showTextCloud(5, 0, "What are you trying to... o.O - - swoon... oh dear girl! Everything you want! I want to give you this tiny key! Here, take it please! Anything else you want?");
};
} else {
if (optionCloud.option2.option2.text == "Go home and cry a lot!"){
resolution1 = 2;
clearUI();
showTextCloud(5, 0, "Waaahahahaaaa... *sniff* This mean girl was mocking with us, the brave army guys! *sob* I'm going home and cry it out... waaahaaaa...");
iPhase = 224;
decor.armySprite1.alpha = 0;
decor.armySprite1.y = 2000;
decor.armySprite2.alpha = 0;
decor.armySprite2.y = 2000;
doGlow(false);
} else {
if (optionCloud.option2.option2.text == "(use powers)"){
iPhase = 225;
doGlow(true);
_local5 = Math.floor((Math.random() * 8));
if (_local5 == 0){
showOptionCloud(6, 0, "(...)", "(...)", 2, 0, "Miss! Listen carefully! You really want to go follow those two guys!");
};
if (_local5 == 1){
showOptionCloud(6, 0, "(...)", "(...)", 2, 0, "You feel sleepy... SLEEPY! sleepy-sleep-slee-sle-sl.... sssssh....");
};
if (_local5 == 2){
showOptionCloud(6, 0, "(...)", "(...)", 2, 0, "Miss, you want to take a break. You really REALLY want a break! Get some coffee!");
};
if (_local5 == 3){
showOptionCloud(6, 0, "(...)", "(...)", 2, 0, "Miss, you think you heard something outside, you really really want to go investigate!");
};
if (_local5 == 4){
showOptionCloud(6, 0, "(...)", "(...)", 2, 0, "Miss, you feel something is terribly, TERRIBLY wrong! You know it! You want to run like hell and not come back!");
};
if (_local5 == 5){
showOptionCloud(6, 0, "(...)", "(...)", 2, 0, "Miss, there's a Naga behind you... you know it! You see it and you want to flee!");
};
if (_local5 == 6){
showOptionCloud(6, 0, "(...)", "(...)", 2, 0, "Miss! You love me... you want to give me your energies! Come and caress my soft skin!");
};
if (_local5 == 7){
showOptionCloud(6, 0, "(...)", "(...)", 2, 0, "Army girl, it's time to go home. You've already been here for longer than they pay you for... goooo hooooome....");
};
} else {
if (optionCloud.option2.option2.text == "(...)"){
clearUI();
doGlow(false);
_local6 = Math.floor((Math.random() * 8));
if (_local6 == 0){
showTextCloud(6, 0, "Dream on! You can't tell me what to do! I work for the army, not for you!");
};
if (_local6 == 1){
showTextCloud(6, 0, "I eh... I will... -- huh? What just happened... did you say something?");
};
if (_local6 == 2){
showTextCloud(6, 0, "I... will... no... what? Are you messing with my mind or something? Stop that!");
};
if (_local6 == 3){
showTextCloud(6, 0, "Going to... going t... no wait. What am I thinking? Girl, you're not putting thoughts into my head, are you?");
};
if (_local6 == 4){
showTextCloud(6, 0, "If you think that works, you're dead wrong! I'm not open for insinuation!");
};
if (_local6 == 5){
showTextCloud(6, 0, "You're charming... but not THAT charming. You can't bewitch me, girl!");
};
if (_local6 == 6){
showTextCloud(6, 0, "I'm going to pretend you didn't say that. Now get lost before I call the police to drag you out of here!");
};
if (_local6 == 7){
showTextCloud(6, 0, "Come on now... don't play any cheap mind tricks on me! I can see right through those. Pah. Get lost before I kick you out of here myself!");
};
} else {
if (optionCloud.option2.option2.text == "Kelsey!? Save me! Please!"){
clearUI();
showTextCloud(2, 2, "I-I'll try, Jen! I'll find something to set you free!");
iPhase = 227;
} else {
if (optionCloud.option2.option2.text == "Of-of course not!"){
clearUI();
showTextCloud(1, 0, "Phew! I was afraid there for a moment! Imagine! ...");
iPhase = 234;
};
};
};
};
};
};
};
};
};
};
} else {
if ((((_arg1 == "painting")) || ((_arg1 == "boobies")))){
showTextCloud(2, 0, "Interesting painting... but there's something odd about it... Are those trees in the background, or are they green lollipops...!?");
} else {
if ((((_arg1 == "armySprite1")) || ((_arg1 == "armySprite2")))){
if (iPhase == 21){
showOptionCloud(2, 0, "Boys, let me in!", "I need to be in there!", 5, 0, "Sorry girl, but you're not allowed to enter here. This building is off-limits to civilians. And actually, off-limits to everyone else as well.");
} else {
if (iPhase == 222){
showOptionCloud(2, 0, "(tease them)", "(use seductive powers)", 5, 0, "What are you still doing here, little girl? Did you lose your momma? hahaha... get lost, brat!");
} else {
showOptionCloud(2, 0, "Undress, jump in the water!", "Go home and cry a lot!", 5, 0, "Oh darling! What else do you want from us? Anything else we can make you happy with?");
};
};
} else {
if (_arg1 == "doorEntrance"){
if (iPhase > 223){
setScene(2, 0, 100);
} else {
showTextCloud(2, 1, "There's two bald army-guys guarding the door. They won't let me pass. I need to distract them, somehow...");
};
} else {
if (_arg1 == "dirty"){
if (decor.spideys.alpha == 1){
showTextCloud(2, 1, "The so called 'cleaning cabinet'... It's bloody dirty. I'm not touching anything in there! Only those poor spidey's home... poor guys!");
} else {
showTextCloud(2, 0, "What a dirty place! I don't want to touch anything in it. Luckily I saved the spideys! They need a better home!");
};
} else {
if ((((_arg1 == "spideys")) && ((decor.spideys.alpha == 1)))){
bSpideysSeen = true;
showTextCloud(2, 1, "Poor spideys! Having to live in a dirty closet like that one! I would help them if I could!");
} else {
if (_arg1 == "doorCleaning"){
showTextCloud(2, 2, "The cleaning cabinet. Spidey's worst fear... because then the cleaning lady comes to remove their nice webs! BAD cleaning lady!");
} else {
if (_arg1 == "doorStairway2"){
showTextCloud(2, 0, "It reads 'no entry'. Not interesting. I doubt Jen went in there if nobody can enter.");
} else {
if ((((((_arg1 == "rubbish")) || ((_arg1 == "paint")))) || ((_arg1 == "feather")))){
showTextCloud(2, 0, "Lots of rubbish lying around. Nothing really useful, from the looks of it.");
} else {
if ((((_arg1 == "emptyJar")) && ((decor.emptyJar.alpha == 1)))){
if ((((iPhase < 225)) || ((bSpideysSeen == false)))){
showTextCloud(2, 0, "Lots of rubbish lying around. Nothing really useful, from the looks of it.");
} else {
showTextCloud(2, 0, "Hey, look at that, there's an empty jar in that bin. I think I may have a use for that, actually!");
decor.emptyJar.alpha = 0;
takeItem(22);
};
} else {
if (_arg1 == "shed"){
setScene(1, 1, 80);
} else {
if (_arg1 == "doorExit"){
setScene(1, 0, 720);
} else {
if ((((_arg1 == "armyGirl")) || ((_arg1 == "doorGuarded")))){
if (iPhase < 226){
showOptionCloud(2, 0, "(tell her)", "(use powers)", 6, 0, "How did you get in, child? Did you distract those two idiots at the front door?");
} else {
showTextCloud(2, 0, "No need to worry about that army girl guarding the door anymore! Heehee... Spideys rock!");
decor.doorGuarded.gotoAndStop(2);
enableRight(true);
};
} else {
if (_arg1 == "liftCallG"){
if (currentFloor != 0){
showTextCloud(2, 0, "Dum-di-dum... Waiting for the lift... waiting for the lift... waiting... lalala...");
liftToFloor(0);
} else {
showTextCloud(2, 0, "The lift is already here. No need to press the button again.");
};
} else {
if ((((_arg1 == "spareCard")) && ((decor.spareCard.alpha == 1)))){
decor.spareCard.alpha = 0;
takeItem(5);
showTextCloud(2, 0, "Hm, this must be the cleaning lady's access card. I'll take that, I have a feeling I'm going to need it in here.");
} else {
if ((((_arg1 == "zapTech")) && ((decor.zapTech.alpha == 1)))){
if (iPhase < 227){
showTextCloud(2, 0, "Interesting looking device. I don't know exactly what it does... except... probably 'zap' something...");
} else {
decor.zapTech.alpha = 0;
showTextCloud(2, 0, "Still don't know what Zap Tech is, but it seems like the most useful thing around. Have to just give it a shot!");
takeItem(24);
};
} else {
if (_arg1 == "naga2"){
if (iPhase == 226){
showOptionCloud(1, 3, "Kelsey? Is that you? Help!", "Kelsey!? Save me! Please!", 2, 2, "Jen! Jen! Are you in here, Jen?! Please say something if you are!");
} else {
showTextCloud(2, 2, "Jen is in there... I need to find a way to set her free!");
};
} else {
if (_arg1 == "nagaTail"){
showTextCloud(2, 2, "Jen! Jen! Are you in here, Jen?! Please say something if you are!\n\n(no answer...)");
} else {
if ((((_arg1 == "battery")) && ((decor.battery.alpha == 1)))){
if ((((bZapEmpty == true)) && ((bBatteryNeed == true)))){
decor.battery.alpha = 0;
showTextCloud(2, 0, "Well, let's hope this battery fits in the zap-tech, shall we? And that IT isn't empty as well...");
takeItem(25);
} else {
showTextCloud(2, 0, "It's a big-ass-battery. I am not sure what it would power, but I don't think I'll need it.");
};
} else {
if (_arg1 == "jenUnderwearSprite"){
if (iPhase == 229){
jenUnderwearSprite.gotoAndStop(1);
jenUnderwearSprite.scaleX = -1;
showTextCloud(1, 0, "Thanks for saving me, Kelsey! Now we need to switch off that damn portal, so we can be done with those stupid Nagas!");
enableRight(false);
} else {
if (iPhase == 230){
iPhase = 231;
showTextCloud(1, 0, "Ah, let me do it. I have lab access. There, see? After you...");
decor.doorLab.alpha = 0;
enableLeft(true);
decor.cardReaderLab.gotoAndPlay(2);
} else {
if (iPhase == 233){
showOptionCloud(2, 2, "Erm, yeah, maybe not...", "Of-of course not!", 3, 0, "Woah-woah! DYNAMITE!? KELSEY! Are you crazy!? You're not really going to light that in here, are you? You'll blow up the whole building!");
} else {
if (iPhase == 236){
showTextCloud(1, 3, "Kelsey! I am sure it will explode THROUGH the portal before destroying the opening! We have to get clear of the blast! Hurry up!");
enableRight(true);
} else {
showTextCloud(1, 0, "I don't know how to switch it off, Kelsey... I don't know the access codes. I hoped Emmi or Emma would have been able to help me with that... that's why I called them.");
};
};
};
};
} else {
if (_arg1 == "painting2"){
showTextCloud(2, 0, "OOH! Cool painting! It looks a little like a spider web! ^__^");
} else {
if (_arg1 == "runeStart"){
showTextCloud(2, 0, "Simple. There's only one button. That means 'on/off', right...?\nErrr... on the other hand! Anyone have a manual...?");
showRunes(true);
iPhase = 232;
} else {
if (_arg1.substring(0, 4) == "rune"){
showTextCloud(2, 0, "I don't want to touch any of those buttons! I have no idea what it will do! Maybe there's another way to shut down this portal for good... The Naga-Busters can do the job! Teehee.");
} else {
if ((((_arg1 == "tnt")) && ((decor.tnt.alpha == 1)))){
if (iPhase == 232){
iPhase = 233;
decor.tnt.alpha = 0;
takeItem(26);
showTextCloud(2, 0, "This should do the job! Go-go-gadg... I mean... go-go-naga-busters! Muahahaha... I'll blow their portal to smithereens! I am Kick-Ass-Kelsey and they'll know it!");
} else {
showTextCloud(2, 3, "WOAH! Is that TNT? What kind of place is this that they have high explosives standing on the shelves just like that? I don't want to touch this!");
};
} else {
if (_arg1 == "portalField2"){
if (iPhase < 236){
showTextCloud(2, 1, "Eep, I'd love to get out of here, this is scary... but I do need to set off those explosives first!");
} else {
setScene(2, 3, 300);
enableRight(false);
xMax = 720;
showTextCloud(1, 3, "Kelsey, did you set off the explosives on their side? Aren't you afraid the explosion will come THROUGH the portal as well?");
iScale = 1;
kelseyDressedSprite.y = 530;
kelseyDressedSprite.scaleX = 1;
kelseyDressedSprite.scaleY = 1;
};
} else {
if (_arg1 == "portalField"){
if (iPhase < 234){
showTextCloud(2, 0, "The portal is active... I hope nothing is coming through... even the 'Naga-Busters' may have some trouble with this... err...");
} else {
setScene(1, 3, 300);
kelseyDressedSprite.x = 300;
kelseyDressedSprite.y = 300;
kelseyDressedSprite.scaleX = 0.5;
kelseyDressedSprite.scaleY = 0.5;
jenUnderwearSprite.y = 3000;
iScale = 0.5;
if (iPhase < 236){
showTextCloud(2, 1, "Eeeh! So this is the naga-world... Some kind of pub, or party going on? - I better try to stay unnoticed or I'll be in a whole lot of trouble!");
} else {
showTextCloud(2, 2, "I was just on Earth, and now back here! Heehee... these portals are kind of fun! Oh... but why did I go back? This portal is going to blow! I need to get the hell out!");
};
};
} else {
if (_arg1 == "torch1"){
if (iPhase < 235){
showTextCloud(2, 0, "They are some kind of torches. I have never seen a light blue flame before, but I guess that's normal here? Maybe something special in the atmosphere...");
} else {
iPhase = 236;
decor.torch1.x = 1185;
showTextCloud(2, 0, "That should do it. Now it's time to get out, FAST!");
};
} else {
if (_arg1 == "torch2"){
if (iPhase < 235){
showTextCloud(2, 0, "They are some kind of torches. I have never seen a light blue flame before, but I guess that's normal here? Maybe something special in the atmosphere...");
} else {
showTextCloud(2, 1, "That torch-thing is too far away... I don't dare to get too far from the portal... If they notice me all hell will break loose!");
};
} else {
if (_arg1 == "mysteryBox"){
if (mysteryItem2 > 0){
showTextCloud(2, 0, "I already got a mystery item. You only get to go once! Otherwise the mystery may wear off!");
} else {
showTextCloud(2, 0, "The hand goes in...\n... but what comes out is a mystery!");
mysteryItem2 = Math.ceil((Math.random() * 3));
if (mysteryItem2 == mysteryItemJen){
mysteryItem2++;
if (mysteryItem2 > 3){
mysteryItem2 = 1;
};
};
takeItem((26 + mysteryItem2));
};
} else {
if (_arg1 == "tinyChopper"){
flyChopper();
} else {
if (_arg1 == "kelseyDressedSprite"){
if (iPhase > 228){
showTextCloud(2, 0, "It's me, Kelsey! I'm Naga-bane Kelsey! NAGA-BUSTER KELSEY! WOOHOO!");
} else {
showTextCloud(2, 0, "It's me, Kelsey! I'm Naga-bane Kelsey!");
};
} else {
if ((((_arg1 == "katteluikje")) || ((_arg1 == "katteluikje2")))){
showTextCloud(2, 0, "They have a cat here? Cool!");
} else {
if (_arg1 == "ribbons"){
showTextCloud(2, 0, "Oh, I think they would do well for rope jumping!");
} else {
if (_arg1 == "buckets"){
showTextCloud(2, 0, "They just painted those walls. I guess they're renovating the building...");
} else {
if (_arg1 == "plant"){
showTextCloud(2, 0, "It is a ... well, let's say it USED TO BE a plant...");
} else {
if (_arg1 == "towel"){
showTextCloud(2, 0, "Nice towel. No, just kidding, it's not my colour.");
} else {
if (_arg1 == "coffeeMaker"){
showTextCloud(2, 0, "That thing makes coffee, believe it or not! Not that I like coffee...");
} else {
if (_arg1 == "coffeePot"){
showTextCloud(2, 0, "I don't want coffee... I don't like it. Just give me RAW energies, much better!");
} else {
if (_arg1 == "wasteBin"){
showTextCloud(2, 0, "A waste bin... also useful as hiding place if the Nagas follow me later...");
} else {
if (_arg1 == "battery"){
showTextCloud(2, 0, "Some kind of battery. A really big one, too.");
} else {
if (_arg1 == "ChemistrySet"){
showTextCloud(2, 0, "Tubes with coloured liquid. No clue what's in it... probably better I don't touch.");
} else {
if (_arg1 == "smellingSalt"){
showTextCloud(2, 0, "Something someone spilled.");
} else {
if ((((((_arg1 == "mouseHoleB")) || ((_arg1 == "mouseHoleC")))) || ((_arg1 == "mouseHoleD")))){
showTextCloud(2, 0, "I haven't seen any mice yet... but also haven't seen their CAT... Maybe the Nagas ate them all...?");
} else {
if (_arg1 == "cardReaderOffice"){
showTextCloud(2, 0, "It's a card reader. For an electronic key-card.");
} else {
if (_arg1 == "cardReaderLab"){
showTextCloud(2, 0, "It's a card reader. For an electronic key-card.");
} else {
if (_arg1 == "doorHouse"){
showTextCloud(2, 0, "I don't want to go inside! I have to get busy and save Jen!");
} else {
if (_arg1 == "officeRules"){
showTextCloud(2, 0, "Jikes! I'm blind! I'm blind! eeeeeeeeh! Burn it! Destroy it!");
} else {
if (_arg1 == "desk"){
showTextCloud(2, 0, "pfff...");
} else {
if (_arg1 == "chair"){
showTextCloud(2, 0, "I don't need to sit now. I need to help Jen!");
} else {
if (_arg1 == "painting3"){
showTextCloud(2, 0, "Oh my...! What an ugly painting! No wonder they tucked it away - way in here!");
} else {
if (_arg1 == "doll"){
showTextCloud(2, 0, "Eep, that doll is just as scary as the image on the painting... in fact, it IS its spitting image! It would scare kids!");
} else {
if (_arg1 == "trolly"){
showTextCloud(2, 0, "Who left that overhere? Anyone moving or so?");
} else {
if (_arg1 == "scalpel"){
showTextCloud(2, 0, "It's very sharp. I better not touch it.");
} else {
if (_arg1 == "cabinet"){
showTextCloud(2, 0, "Nice cabinet!");
} else {
if (_arg1 == "portal"){
showTextCloud(2, 0, "This is the portal... It's the cause of all these troubles!");
} else {
if (_arg1 == "portalField"){
showTextCloud(2, 0, "Nagas come through this portal to here... I wonder if it also works in the opposite direction...");
} else {
if (_arg1 == "doorEmergency"){
showTextCloud(2, 0, "This is the emergency exit. This is an emergency... isn't it...?\n\n...Isn't it?");
} else {
if (_arg1 == "shipSign"){
showTextCloud(2, 0, "Ships are booooring. Looong trips oversea... uggggh, not going there!");
} else {
if (_arg1 == "ship"){
showTextCloud(2, 0, "I rather have a 'ship in a bottle'.");
} else {
if (_arg1 == "liftCall3"){
showTextCloud(2, 0, "Ouch, this button is done for! What the hell happened here?");
} else {
if (_arg1 == "chessHorse"){
showTextCloud(2, 0, "Teehee! A cute horsie!");
} else {
if (_arg1 == "paperClips"){
showTextCloud(2, 0, "A little jar with paperclips.");
} else {
if (_arg1 == "paperOrders"){
showTextCloud(2, 0, "Is that woman reading off the paper? huh...? O.o");
} else {
if (_arg1 == "paintedSign"){
showTextCloud(2, 0, "Yah, the wall has just been painted. Like I didn't already SMELL that!");
} else {
if (_arg1 == "mints"){
showTextCloud(2, 0, "What's this? peppermint? Oh, there's some words on it... no, not peppermints. Never mind, don't want them anyway!");
} else {
if (_arg1 == "decayedDummy"){
showTextCloud(2, 0, "That's just plain awful. That poor plastic police officer got half digested by that naga!");
} else {
clearUI();
if ((((xApproach > sprite.x)) && ((_arg2 < 550)))){
walkDir = 1;
doWalkAnimation();
} else {
if ((((xApproach < sprite.x)) && ((_arg2 < 550)))){
walkDir = -1;
doWalkAnimation();
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
}
public function doGlow(_arg1):void{
if (_arg1 == true){
glow.x = sprite.x;
glow.y = sprite.y;
glow.alpha = 1;
glow.gotoAndPlay(1);
glow.scaleX = sprite.scaleX;
} else {
glow.y = 3000;
glow.alpha = 0;
glow.gotoAndStop(1);
};
}
public function doEmma(_arg1, _arg2):void{
if (_arg1 == "option1"){
if (optionCloud.option1.option1.text == "My mom is in there!"){
clearUI();
showTextCloud(5, 0, "Well, if that is so she is probably gone. Either way, I can't let you through without direct army orders.");
} else {
if (optionCloud.option1.option1.text == "Someone painted huge boobs on the..."){
clearUI();
showTextCloud(6, 0, "Sure! Hahaha... very funny. If you knew how many jokes I have already heard about that painting... now get lost. You shouldn't be here!");
} else {
if (optionCloud.option1.option1.text == "Huge boobies AND a moustache!"){
clearUI();
iPhase = 28;
showTextCloud(6, 0, "What... that doesn't sound right...\n\nOH MY GOD!");
decor.armyGirl.gotoAndStop(4);
decor.paperOrders.y = 3000;
decor.soldierShoes.alpha = 0;
decor.soldierShoes.y = 3000;
} else {
if (optionCloud.option1.option1.text == "Emma! I'm in here! Help!"){
clearUI();
iPhase = 29;
showTextCloud(3, 1, "Stay put, mom! I will get you out soon! I just have to find a way how to do it... (stay put? heh, she doesn't have much of an alternative I'm afraid...)");
};
};
};
};
} else {
if (_arg1 == "option2"){
if (optionCloud.option2.option2.text == "I will kick the door in!"){
clearUI();
showTextCloud(5, 0, "No you won't. This is reinforced steel, 10 centimeters thick. You'll only hurt your foot. Now get lost. You have no business here.");
} else {
if (optionCloud.option2.option2.text == "There's huge boobs on the painting!"){
clearUI();
showTextCloud(6, 0, "Haha, very funny. They call it the 'Madonna with the Big Boobies', I know that. And they're not that big. Very very funny - not. Now go do something useful!");
} else {
if (optionCloud.option2.option2.text == "A moustache too! You must see it!"){
clearUI();
iPhase = 28;
showTextCloud(6, 0, "What... that doesn't sound right...\n\nOH MY GOD!");
decor.armyGirl.gotoAndStop(4);
decor.paperOrders.y = 3000;
decor.soldierShoes.alpha = 0;
decor.soldierShoes.y = 3000;
} else {
if (optionCloud.option2.option2.text == "Get me out, Emma! Quick!"){
clearUI();
iPhase = 29;
showTextCloud(3, 1, "Can't do quick, mom! I don't have anything on me that will get you out... But I'll find something, hang on in there!");
};
};
};
};
} else {
if ((((_arg1 == "painting")) || ((_arg1 == "boobies")))){
showTextCloud(3, 0, "A painting with a lady who doesn't get ashamed showing off her breasts. My kind of girl! Heehee...");
} else {
if (_arg1 == "emmiDressedSprite"){
if (iPhase == 21){
showTextCloud(3, 2, "Give here that shrink ray! As I said, you're not going anywhere. It's me who has to save mom! Now be the nice cute Lb'Fhibum that you are and stay put!");
iPhase = 22;
takeItem(9);
enableLeft(true);
} else {
showTextCloud(3, 1, "I don't have anything to say to her now. Better hurry and free mom from those Nagas!");
};
} else {
if (_arg1 == "shed"){
showTextCloud(3, 0, "Hm. Garbage dump... normally you can find very useful things here, that other people didn't find useful anymore...");
setScene(1, 1, 80);
} else {
if (_arg1 == "doorEntrance"){
if ((((decor.armySprite1.scaleY < 0.5)) && ((decor.armySprite2.scaleY < 0.5)))){
setScene(2, 0, 100);
} else {
showOptionCloud(3, 1, "My mom is in there!", "I will kick the door in!", 5, 0, "No entrance, miss! State orders! Please turn around and leave. You have no business here!");
};
} else {
if (_arg1 == "doorExit"){
if (iPhase < 34){
setScene(1, 0, 600);
} else {
mapDetail.gotoAndStop(6);
mapDetail.x = 0;
mapDetail.y = 0;
mapDetail.alpha = 1;
btn1.gotoAndStop(1);
btn2.gotoAndStop(1);
btn3.gotoAndStop(1);
btn4.gotoAndStop(1);
btn5.gotoAndStop(1);
btn6.gotoAndStop(1);
showText("- The End - CONGRATULATIONS! - You finished the game!");
};
} else {
if (_arg1 == "doorStairway2"){
showTextCloud(3, 1, "'No Entry'... geez, I'm not allowed to enter ANYWHERE! Stupid building! Stupid army!\n\n... Stupid world.");
} else {
if (_arg1 == "doorCleaning"){
showTextCloud(3, 1, "This is the cleaning cabinet. Probably I'm not allowed in here either, because the door is locked.");
} else {
if (_arg1 == "doorGuarded"){
if (iPhase > 27){
decor.doorGuarded.gotoAndStop(2);
enableRight(true);
} else {
showTextCloud(6, 0, "Miss, what are you doing here? You're not supposed to be here! Please leave, it's dangerous in this building!");
};
} else {
if (_arg1 == "armyGirl"){
if ((((iPhase == 25)) || ((iPhase == 26)))){
showOptionCloud(3, 2, "Someone painted huge boobs on the...", "There's huge boobs on the painting!", 6, 0, "What is it now, miss? You know you shouldn't be here!");
iPhase = 26;
} else {
if (iPhase == 27){
showOptionCloud(3, 2, "Huge boobies AND a moustache!", "A moustache too! You must see it!", 6, 0, "Come on, what is the matter now? I'm tired of hearing jokes about the 'big boobies' on the fallen madonna.");
} else {
if (iPhase > 27){
showTextCloud(3, 0, "Errr... I think I'll leave her be. She's not guarding the door anymore, which is what I needed. Better carry on!");
} else {
showTextCloud(6, 0, "Miss, what are you doing here? You're not supposed to be here! Please leave, it's dangerous in this building!");
};
};
};
} else {
if (_arg1 == "paperOrders"){
showTextCloud(3, 0, "There's some paper... but they belong to the army girl. It's probably not very smart to take them from her.");
} else {
if (_arg1 == "paperClips"){
showTextCloud(3, 0, "Paper clips. They're worthless to me if I don't have any papers.");
} else {
if (_arg1 == "chessHorse"){
showTextCloud(3, 1, "Pffft. I hate that thing! My sister is so good at games that I always lose. I bet she cheats, she hops around with the horse like... oddly. I don't believe it's according to the rules!");
} else {
if (_arg1 == "doorStorage"){
showTextCloud(3, 0, "An open door. AN OPEN DOOR! IT IS A MIRACLE! I thought I wasn't allowed to go ANYWHERE in this building!");
} else {
if ((((((_arg1 == "rubbish")) || ((_arg1 == "feather")))) || ((_arg1 == "emptyJar")))){
showTextCloud(3, 1, "There's all kinds of rubbish lying around here. With some of it I could do neat stuff, like those chains... but right now none of it seems useful for freeing mom...");
} else {
if ((((((_arg1 == "paint")) && ((decor.paint.alpha == 1)))) && ((iPhase == 24)))){
showTextCloud(3, 0, "Hm... paint, eh? Seen the circumstances, I think I might put this to good use after all... muahahahaha! - err. Yeah. Heheh...");
decor.paint.alpha = 0;
takeItem(14);
} else {
if (_arg1 == "paintedSign"){
showTextCloud(3, 0, "Hm, I wonder how they would react if I were to paint the wall over... with this red paint I have. Unfortunately I don't have time to do that right now! Mom needs freeing!");
} else {
if (_arg1 == "buckets"){
showTextCloud(3, 0, "More paint. I don't need more paint.");
} else {
if (_arg1 == "liftCallG"){
if (currentFloor != 0){
showTextCloud(3, 0, "DING! - well... I guess it takes a moment for it to come down...");
liftToFloor(0);
} else {
showTextCloud(3, 0, "The lift is already here. I don't need to call it.");
};
} else {
if (_arg1 == "nagaTail"){
showTextCloud(3, 2, "Oh crap! There's a naga sleeping on the ground with a full belly. Mom... Mom! Are you in there? ... no reaction...");
} else {
if (_arg1 == "naga2"){
if (iPhase == 28){
showOptionCloud(1, 3, "Emma! I'm in here! Help!", "Get me out, Emma! Quick!", 3, 2, "Another naga with a full belly! Mom! MOM! Are you in there? Say something if you are! ...");
} else {
showTextCloud(3, 2, "Hang on in there, mom! I'll get you out soon somehow!");
};
} else {
if ((((_arg1 == "painting2")) || ((_arg1 == "ears")))){
if (decor.painting2.ears.alpha == 1){
showTextCloud(3, 0, "I like it MUCH better this way! Teehee! NOW it is art!");
} else {
showTextCloud(3, 2, "Wha... they call this art!? It's a bunch of senseless lines and a circle! Really...!");
};
} else {
if (_arg1 == "chemistrySet"){
showTextCloud(3, 0, "OOH! How cool! A chemistry set! Heeheehee! I always wanted one!\n\n... Santa never brought me one...");
} else {
if (_arg1 == "battery"){
showTextCloud(3, 1, "That doesn't fit in the shrink ray. It is a different type of battery.");
} else {
if (_arg1 == "smellingSalt"){
showTextCloud(3, 0, "Someone spilled something here. I'm not going to touch that.");
} else {
if (_arg1 == "towel"){
showTextCloud(3, 0, "It's a towel. A GREEN towel. Who came up with that?");
} else {
if (_arg1 == "coffeeMaker"){
showTextCloud(3, 0, "A badly designed coffee maker. I guess the most important thing is that it can make coffee, eh?");
} else {
if ((((_arg1 == "coffeePot")) && ((decor.coffeePot.alpha == 1)))){
if (iPhase < 29){
showTextCloud(3, 0, "Hmm, some coffee would be nice... but I have to find mom first! I have to try to resist the urge to take a coffee break! Which isn't easy!");
} else {
showTextCloud(3, 0, "Ah, after seeing that scene upstairs some coffee will definitely tast--\nYuck, this is OLD coffee! I'm not going to drink that drab!");
decor.coffeePot.alpha = 0;
takeItem(15);
};
} else {
if (_arg1 == "wasteBin"){
showTextCloud(3, 0, "It's a waste bin. Nothing special about it. Nothing in it, either.");
} else {
if (_arg1 == "ribbons"){
if ((((iPhase == 31)) && ((decor.ribbons.alpha == 1)))){
decor.ribbons.alpha = 0;
showTextCloud(3, 0, "Red ribbons. These may turn out to be useful after all.");
takeItem(20);
} else {
showTextCloud(3, 0, "A bunch of flexible ribbons. I think this is the kind that people use when working out and such. Or maybe bungee jumping, heehee. Strong but flexible.");
};
} else {
if (_arg1 == "jenShove"){
if (iPhase == 30){
showTextCloud(3, 0, "I can't leave mom here like this... I have to think of some way to take her with me after I blow up the portal...");
iPhase = 31;
} else {
showTextCloud(3, 0, "Better leave that here. Let's go set off some explosion!");
};
} else {
if (_arg1 == "plant"){
showTextCloud(3, 0, "That is one DEAD plant if I ever saw one! It still has one leaf. Goodness.");
} else {
if (_arg1 == "cabinet"){
showTextCloud(3, 0, "It's a small cabinet.");
} else {
if ((((_arg1 == "scalpel")) && ((decor.scalpel.alpha == 1)))){
showTextCloud(3, 0, "Ah, this scalpel will come in handy! Let's cut open some half-snake-belly!");
decor.scalpel.alpha = 0;
takeItem(19);
} else {
if (_arg1 == "runeStart"){
if (iPhase < 32){
showTextCloud(3, 0, "I'm going to set this portal to self-destruct, but not before I've freed mom from that naga!");
} else {
if (iPhase == 32){
showRunes(true);
explodePortal();
} else {
showTextCloud(3, 2, "No, no! Got to get out of here! It's going to explode!");
};
};
} else {
if (_arg1 == "liftDoor3"){
if (iPhase == 33){
iPhase = 34;
showTextCloud(3, 3, "DAMN! That blasted naga took the lift! The lift call button is broken and the portal is about to blow! I need to get out of here, FAST! HELP!");
decor.liftDoor0.gotoAndStop(2);
};
} else {
if (_arg1 == "doorEmergency"){
if (iPhase == 34){
decor.doorStairway2.gotoAndStop(2);
setScene(2, 0, 200);
enableRight(false);
xMax = 700;
} else {
showTextCloud(3, 3, "Emergency exit. Who needs a staircase when you have a lift?");
};
} else {
if (_arg1 == "mysteryBox"){
if (mysteryItem2 > 0){
showTextCloud(3, 0, "I'm happy with the mystery item I got. I don't need another one.");
} else {
showTextCloud(3, 0, "Hey, a mystery box! I love those! You never know what comes out of them! Let's give it a try.... oooh!");
mysteryItem2 = Math.ceil((Math.random() * 3));
if (mysteryItem2 == mysteryItemJen){
mysteryItem2++;
if (mysteryItem2 > 3){
mysteryItem2 = 1;
};
};
takeItem((26 + mysteryItem2));
};
} else {
if (_arg1 == "tinyChopper"){
flyChopper();
} else {
if ((((_arg1 == "katteluikje")) || ((_arg1 == "katteluikje2")))){
showTextCloud(3, 0, "This is the cat's entrance and exit. In this case it would have been easier to be a cat...");
} else {
if ((((((_arg1 == "mouseHoleB")) || ((_arg1 == "mouseHoleC")))) || ((_arg1 == "mouseHoleD")))){
showTextCloud(3, 0, "Hm, there's mice here... maybe if I'm smart I can catch one. They're always fun!");
} else {
if (_arg1 == "cardReaderOffice"){
showTextCloud(3, 0, "It's a card reader, but I don't have an access card.");
} else {
if (_arg1 == "cardReaderLab"){
showTextCloud(3, 0, "It's a card reader, but I need an access card to use it.");
} else {
if (_arg1 == "doorHouse"){
showTextCloud(3, 0, "No, I don't want to go back inside. I still have to help mom solve these problems!");
} else {
if (_arg1 == "telephone"){
showTextCloud(3, 0, "There's no call ongoing and no-one I want to call right now. I have more important stuff to look after!");
} else {
if (_arg1 == "hallway"){
showTextCloud(3, 0, "No need to go there now.");
} else {
if (_arg1 == "housePainting"){
showTextCloud(3, 0, "It's a little house by night. Not my favourite painting but... never mind.");
} else {
if (_arg1 == "kelseyWindow"){
showTextCloud(3, 0, "What's Kelsey doing overthere? She's not spying on us, I hope? I bet she's after mom's energies again!");
} else {
if (_arg1 == "trolly"){
showTextCloud(3, 0, "It's a little cart with wheels. For moving around objects too heavy to carry.");
} else {
if (_arg1 == "portal"){
showTextCloud(3, 0, "That's the portal which is giving Nagas access to this building! I have to permanently disable it!");
} else {
if (_arg1 == "portalField"){
showTextCloud(3, 0, "The portal is active. This is not good. Mom was really angry when I last time opened a portal like this! I have to destroy it!");
} else {
if (_arg1 == "shipSign"){
showTextCloud(3, 0, "'That Way' to the ships. But I don't need to go to any ships...");
} else {
if (_arg1 == "signGrass"){
showTextCloud(3, 0, "Puh. Don't walk on the grass? That's like an invitation for me to go dancing and stampeding... but alas, I have no time to frolick, need to save mom!");
} else {
if ((((_arg1 == "armySprite1")) || ((_arg1 == "armySprite2")))){
showTextCloud(3, 0, "Two noobs. How did they get into the army? It's so easy to get past them!");
} else {
if (_arg1 == "liftCall3"){
showTextCloud(3, 0, "The button is broken beyond repair. I can't fix it - and it appears that escaped Naga took it down. Buggers!");
} else {
if (_arg1 == "emmaDressedSprite"){
showTextCloud(3, 0, "It's me, Emma!");
} else {
clearUI();
if ((((xApproach > sprite.x)) && ((_arg2 < 550)))){
walkDir = 1;
doWalkAnimation();
} else {
if ((((xApproach < sprite.x)) && ((_arg2 < 550)))){
walkDir = -1;
doWalkAnimation();
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
}
public function doEmmi(_arg1, _arg2):void{
if (_arg1 == "option1"){
if (optionCloud.option1.option1.text == "But my mom is inside! Let me in!"){
clearUI();
showTextCloud(5, 0, "I'm sorry. Even if that were the case, I can't let you in. Nobody gets in and nobody gets out! Army orders!");
} else {
if (optionCloud.option1.option1.text == "It's not over yet, mom. The nagas..."){
emmiAct3();
};
};
} else {
if (_arg1 == "option2"){
if (optionCloud.option2.option2.text == "Awww, pretty pretty PRETTY please?"){
clearUI();
showTextCloud(5, 0, "No, ma'am. I am sorry, your charmes won't get you inside. Besides, it's way too dangerous behind this door!");
} else {
if (optionCloud.option2.option2.text == "It's not over yet, mom. The nagas..."){
emmiAct3();
};
};
} else {
if (iPhase == 127){
emmiAct3();
} else {
if (_arg1 == "emmaDressedSprite"){
if (emmaDressedSprite.scaleY == 1){
showTextCloud(4, 1, "Emma is not going to let me go, she insists that she goes herself... I have to think of something to prevent her from stopping me.");
} else {
showTextCloud(4, 0, "Heheh... stop me now, Emma!");
};
} else {
if ((((_arg1 == "painting")) || ((_arg1 == "boobies")))){
showTextCloud(4, 3, "Woah! Those are HUGE breasts... but just because I am so small and it's an enormous painting... teehee...");
} else {
if (_arg1 == "doorHouse"){
showTextCloud(4, 1, "I don't want to go back inside, I have to save mom!");
} else {
if ((((_arg1 == "shrinkRay")) && ((decor.shrinkRay.alpha == 1)))){
showTextCloud(4, 0, "I only shrunk myself. The shrink ray is now too big and heavy for me to carry around. Besides, it only had two charges left, it won't do anything until it has been charging.");
} else {
if (_arg1 == "katteluikje"){
if (iPhase > 121){
setScene(2, 0, 60);
} else {
showTextCloud(4, 1, "Funny, the door has a flap to let the cat in and out. Strange that they would have a cat in a secret laboratory... or maybe it wasn't always a lab.");
};
} else {
if (_arg1 == "katteluikje2"){
setScene(1, 0, 540);
} else {
if (_arg1 == "doorExit"){
showTextCloud(4, 1, "I can't use the door! It's too big and heavy! I need to use the cat-flap...");
} else {
if (_arg1 == "doorEntrance"){
if (iPhase > 121){
showTextCloud(4, 1, "I can't use the door! It's too big and heavy! I'll never get it open! But I'll fit through the cat-flap now.");
} else {
showOptionCloud(4, 2, "But my mom is inside! Let me in!", "Awww, pretty pretty PRETTY please?", 5, 0, "Sorry miss, can't let you in! Army orders! Please turn around and leave.");
};
} else {
if ((((_arg1 == "armySprite1")) || ((_arg1 == "armySprite2")))){
if (iPhase > 121){
showTextCloud(4, 1, "I don't want to draw their attention now! That could get me into trouble.");
} else {
showOptionCloud(4, 2, "But my mom is inside! Let me in!", "Awww, pretty pretty PRETTY please?", 5, 0, "Sorry miss, can't let you in! Army orders! Please turn around and leave.");
};
} else {
if (_arg1 == "signGrass"){
showTextCloud(4, 0, "Don't walk on the grass. Maybe I can crawl on the grass? Would they mind?");
} else {
if (_arg1 == "shipSign"){
showTextCloud(4, 0, "To the ships. It doesn't seem like the logical thing to do right now. I have more pressing things on my mind than travel or sightseeing!");
} else {
if (_arg1 == "ship"){
showTextCloud(4, 0, "A big black boat. Maybe it's a ghost ship or a pirate ship. Why is it black, otherwise? Maybe the captain is some depressed fellow...");
} else {
if (_arg1 == "shed"){
setScene(1, 1, 80);
} else {
if ((((((_arg1 == "rubbish")) || ((_arg1 == "paint")))) || ((_arg1 == "emptyJar")))){
showTextCloud(4, 0, "Is this like the harbour's garbage dump? There's all kinds of useless rubbish lying around.");
} else {
if ((((_arg1 == "feather")) && ((decor.feather.alpha == 1)))){
if (iPhase < 123){
showTextCloud(4, 0, "Is this like the harbour's garbage dump? There's all kinds of useless rubbish lying around.");
} else {
showTextCloud(4, 0, "Getmefeather! This may get me some fun inside!");
decor.feather.alpha = 0;
takeItem(11);
};
} else {
if (_arg1 == "doorShed"){
showTextCloud(4, 0, "The door of this simple shed... It's locked, but if the rubbish lying outside is any indication... I don't think I'll want to look inside.");
} else {
if (_arg1 == "doorCleaning"){
showTextCloud(4, 0, "It's the cleaning cabinet. Not of interest to me. If I were to try clean this house at MY size... it would take AGES!");
} else {
if (_arg1 == "doorStairway2"){
showTextCloud(4, 0, "It says 'no entry', but that doesn't matter. It's not like I'd get a big heavy door like that open anyway!");
} else {
if (_arg1 == "armyGirl"){
if (iPhase < 124){
showTextCloud(4, 0, "Is she sleeping on the job...? No, her eyes are open. Probably just resting her legs comfortably at that desk.");
bArmyGirlSeen = true;
if (bDoorGuardedSeen == true){
iPhase = 123;
showTextCloud(4, 1, "Hm.... I wish I could convince her somehow to open that door for me... but how...?");
};
} else {
showTextCloud(4, 1, "She's K.O. I hope she didn't hit her head too hard... luckily she was wearing a helmet!");
};
} else {
if (_arg1 == "soldierShoes"){
showTextCloud(4, 2, "Yuck! What a smell! Obviously it was about time this army girl took her boots off to air her feet a bit!");
} else {
if (_arg1 == "doorGuarded"){
if (iPhase < 124){
bDoorGuardedSeen = true;
showTextCloud(4, 1, "Oh no... my way is again blocked by a big door I can't get open at my size! Maybe this shrinking myself was a bad idea after all!");
if (bArmyGirlSeen == true){
iPhase = 123;
showTextCloud(4, 1, "Hm.... Somehow I should get this army girl to push this door open for me... If only I could tip her chair over...");
};
} else {
showTextCloud(4, 1, "I rock! Opened the door without touching it! Heehee... It's a matter of leverage.");
};
} else {
if (_arg1 == "doorStorage"){
showTextCloud(4, 0, "This door is open. It helps tiny people like me! Heehee!");
} else {
if ((((_arg1 == "chessHorse")) && ((decor.chessHorse.alpha == 1)))){
showTextCloud(4, 0, "Ooh, look! a chess piece! Big for its size, even bigger to me! But I love games, I want to keep this!");
decor.chessHorse.alpha = 0;
takeItem(12);
} else {
if (_arg1 == "paperClips"){
if (decor.feather.alpha == 1){
showTextCloud(4, 0, "A jar with paperclips... it has tipped over.");
} else {
clearUI();
if (sprite.y > 500){
sprite.y = 400;
sprite.x = 353;
sprite.gotoAndStop(6);
xMin = 353;
xMax = 353;
} else {
sprite.y = 530;
sprite.x = 320;
xMin = -60;
if (iPhase > 123){
xMax = 860;
} else {
xMax = 600;
};
};
};
} else {
if ((((((((_arg1 == "liftCallG")) || ((_arg1 == "liftCall1")))) || ((_arg1 == "liftCall2")))) || ((_arg1 == "liftCall3")))){
showTextCloud(4, 1, "I can't reach it!");
} else {
if (_arg1 == "paintedSign"){
if (decor.paintedSign.x < 3640){
if (decor.chessHorse.alpha == 1){
showTextCloud(4, 0, "The wall has just been painted, or so it says. But I don't need to touch it!");
} else {
showTextCloud(4, 0, "Hey...! There's a mouse hole hidden behind the cardboard! Spooky at my size!");
decor.paintedSign.x = (decor.paintedSign.x + 50);
};
} else {
showTextCloud(4, 0, "The wall has just been painted, or so it says. But I don't need to touch it!");
};
} else {
if (_arg1 == "buckets"){
showTextCloud(4, 0, "I could paint myself blue... but why would I? I think I'll leave those paint buckets be...");
} else {
if (_arg1 == "mouseHoleA"){
tile = 1;
enterMouseHole(1);
} else {
if (_arg1 == "mouseHoleB"){
tile = 9;
enterMouseHole(9);
} else {
if (_arg1 == "mouseHoleC"){
tile = 15;
enterMouseHole(15);
} else {
if (_arg1 == "mouseHoleD"){
tile = 16;
enterMouseHole(16);
} else {
if ((((_arg1 == "mints")) && ((decor.mints.alpha == 1)))){
showTextCloud(4, 0, "Hm, it's a tube with tablets. On the label it reads: Warning! Strong purgative. For emergency use only! Take one at the time. I think this is just what I need!");
decor.mints.alpha = 0;
takeItem(10);
} else {
if (_arg1 == "zapTech"){
showTextCloud(4, 0, "Zap Tech? I'm not familiar with that. Anyway, it's no use of me, can't reach it anyway.");
} else {
if (_arg1 == "tnt"){
showTextCloud(4, 0, "Um, great if you like things to go BOOM! I'm not that kind of girl. And it's out of my reach as well.");
} else {
if (_arg1 == "jenShove"){
showTextCloud(4, 3, "Mom... JEN?... am I too late...? No... looks like she's just unconscious. But I do need her to wake up... somehow...");
} else {
if (_arg1 == "smellingSalt"){
if ((((iPhase > 125)) && ((decor.smellingSalt.alpha == 1)))){
showTextCloud(4, 0, "Smelling salt. That will bring mom to for sure!");
decor.smellingSalt.alpha = 0;
takeItem(13);
} else {
showTextCloud(4, 0, "hm... someone spilled salt here or something. Curious.");
};
} else {
if ((((((((_arg1 == "btnLiftG")) || ((_arg1 == "btnLift1")))) || ((_arg1 == "btnLift2")))) || ((_arg1 == "btnLift3")))){
showTextCloud(4, 1, "I can't reach the buttons! I can't go up this way... Have to think of something else.");
} else {
if ((((((_arg1 == "doorLab")) || ((_arg1 == "cardReaderLab")))) && ((iPhase > 127)))){
showTextCloud(1, 0, "Here, let me, Emmi... I have the access card for that.");
decor.doorLab.alpha = 0;
enableLeft(true);
decor.cardReaderLab.gotoAndPlay(2);
} else {
if ((((_arg1 == "jenUnderwearSprite")) && ((iPhase == 127)))){
showTextCloud(4, 0, "I'm happy that mom is out of that naga-worm, and doing fine! Now I have to help her to close this portal.");
} else {
if ((((_arg1 == "runeStart")) && ((decor.runeStart.alpha == 1)))){
clearUI();
if (iPhase == 128){
showTextCloud(4, 1, "I can't reach the buttons. I need mom to switch the portal off!");
iPhase = 129;
} else {
if (iPhase == 129){
showTextCloud(4, 1, "I still can't reach them. I need mom to do that for me!");
} else {
if (iPhase == 130){
showRunes(true);
strRuneWord = "";
} else {
showTextCloud(1, 1, "I don't want to touch those again!");
};
};
};
} else {
if ((((_arg1 == "jenUnderwearSprite")) && ((locX == 2)))){
if (iPhase == 128){
showTextCloud(4, 2, "Mom, that is the portal. It has to be shut down. ");
} else {
if (iPhase == 129){
showTextCloud(4, 1, "Mom, you have to shut it down! I only know the code to power it off, not to destroy. It is\n\nHurry up, mom!");
textCloud.runeWord.alpha = 1;
iPhase = 130;
sprite = jenUnderwearSprite;
iScale = 1;
} else {
showTextCloud(4, 0, "That's mom, in her undies. My heroine! She saves us from the Naga!");
};
};
} else {
if ((((_arg1 == "rune6")) && ((decor.runeStart.alpha == 0)))){
showRunes(false);
strRuneWord = "";
} else {
if ((((((((((((_arg1 == "rune1")) || ((_arg1 == "rune2")))) || ((_arg1 == "rune3")))) || ((_arg1 == "rune4")))) || ((_arg1 == "rune5")))) && ((decor.runeStart.alpha == 0)))){
strRuneWord = (strRuneWord + "X");
} else {
if ((((_arg1 == "runeSi")) && ((decor.runeStart.alpha == 0)))){
strRuneWord = (strRuneWord + "Si");
} else {
if ((((_arg1 == "runeShi")) && ((decor.runeStart.alpha == 0)))){
strRuneWord = (strRuneWord + "Shi");
} else {
if ((((_arg1 == "runeRo")) && ((decor.runeStart.alpha == 0)))){
strRuneWord = (strRuneWord + "Ro");
} else {
if ((((_arg1 == "runeLab")) && ((decor.runeStart.alpha == 0)))){
strRuneWord = (strRuneWord + "Lab");
} else {
if ((((_arg1 == "runeNol")) && ((decor.runeStart.alpha == 0)))){
strRuneWord = (strRuneWord + "Nol");
} else {
if ((((_arg1 == "runeSunnah")) && ((decor.runeStart.alpha == 0)))){
showRunes(false);
if (strRuneWord == "SiShiRoLabNolNol"){
decor.portal.electricity.alpha = 0;
decor.portal.electricity.gotoAndStop(1);
closePortalAni();
showTextCloud(1, 0, "Phew! That did it!");
} else {
if (strRuneWord.length > 0){
randomPortalAction();
};
};
strRuneWord = "";
} else {
if ((((_arg1 == "emmiDressedSprite")) && ((iPhase > 129)))){
if (messups == 2){
showTextCloud(4, 3, "Mom! You put in the wrong code! Shut it down before more Naga come through! It's\n\nQuick, before more Naga escape!");
textCloud.runeWord.alpha = 1;
} else {
if (messups == 1){
showTextCloud(4, 3, "Mom, don't enter the wrong codes! Who knows what can happen!? The code is\n\nQuick, put in the correct shut-down code!");
textCloud.runeWord.alpha = 1;
} else {
showTextCloud(4, 2, "Mom, switch off the portal! You know Fhiblok, right? Type in the code, it is\n\nHurry up, it needs to be closed asap!");
textCloud.runeWord.alpha = 1;
};
};
} else {
if ((((locX == 1)) && ((locY == 2)))){
clearUI();
if (_arg1 == "z1"){
if ((((tile == 3)) || ((tile == 5)))){
horseTo(decor.z1);
tile = 1;
exitHorse(1);
};
} else {
if (_arg1 == "z2"){
if ((((((tile == 3)) || ((tile == 4)))) || ((tile == 6)))){
horseTo(decor.z2);
tile = 2;
};
} else {
if (_arg1 == "z3"){
if ((((tile == 1)) || ((tile == 2)))){
horseTo(decor.z3);
tile = 3;
};
} else {
if (_arg1 == "z4"){
if (tile == 2){
horseTo(decor.z4);
tile = 4;
};
} else {
if (_arg1 == "z5"){
if ((((tile == 1)) || ((tile == 7)))){
horseTo(decor.z5);
tile = 5;
};
} else {
if (_arg1 == "z6"){
if ((((tile == 2)) || ((tile == 8)))){
horseTo(decor.z6);
tile = 6;
};
} else {
if (_arg1 == "z7"){
if ((((((tile == 5)) || ((tile == 10)))) || ((tile == 12)))){
horseTo(decor.z7);
tile = 7;
};
} else {
if (_arg1 == "z8"){
if ((((((tile == 6)) || ((tile == 10)))) || ((tile == 13)))){
horseTo(decor.z8);
tile = 8;
};
} else {
if (_arg1 == "z9"){
if (tile == 14){
horseTo(decor.z9);
tile = 9;
exitHorse(9);
};
} else {
if (_arg1 == "z10"){
if ((((((tile == 7)) || ((tile == 8)))) || ((tile == 14)))){
horseTo(decor.z10);
tile = 10;
};
} else {
if (_arg1 == "z11"){
if ((((((tile == 12)) || ((tile == 13)))) || ((tile == 15)))){
horseTo(decor.z11);
tile = 11;
};
} else {
if (_arg1 == "z12"){
if ((((tile == 7)) || ((tile == 11)))){
horseTo(decor.z12);
tile = 12;
};
} else {
if (_arg1 == "z13"){
if ((((((tile == 8)) || ((tile == 11)))) || ((tile == 16)))){
horseTo(decor.z13);
tile = 13;
};
} else {
if (_arg1 == "z14"){
if ((((tile == 9)) || ((tile == 10)))){
horseTo(decor.z14);
tile = 14;
};
} else {
if (_arg1 == "z15"){
if (tile == 11){
horseTo(decor.z15);
tile = 15;
exitHorse(15);
};
} else {
if (_arg1 == "z16"){
if (tile == 13){
horseTo(decor.z16);
tile = 16;
exitHorse(16);
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
} else {
if (_arg1 == "ribbons"){
showTextCloud(4, 0, "They're some kind of red ribbons. Maybe useful for me but I can't reach them...");
} else {
if (_arg1 == "plant"){
showTextCloud(4, 0, "Oh no! The plant has died... poor plant! Who did that?");
} else {
if (_arg1 == "towel"){
showTextCloud(4, 0, "I like towels... but I can't reach it.");
} else {
if (_arg1 == "coffeeMaker"){
showTextCloud(4, 0, "Another thing I just can't reach...");
} else {
if (_arg1 == "coffeePot"){
showTextCloud(4, 0, "There's still coffee... Can't reach it, but I rather drink carrot tea anyway.");
} else {
if (_arg1 == "wasteBin"){
showTextCloud(4, 0, "A huge wastebin. Well, huge to me, but of course that's because I'm small now!");
} else {
if (_arg1 == "battery"){
showTextCloud(4, 0, "Can't quite make out what that is from this angle.");
} else {
if (_arg1 == "chemistrySet"){
showTextCloud(4, 0, "Hey, that looks like a chemistry set. Emma would LOVE that. But... she's not here!");
} else {
if (_arg1 == "telephone"){
showTextCloud(4, 0, "It's our telephone, on hands-free. But I don't need to make any calls now.");
} else {
if (_arg1 == "hallway"){
showTextCloud(4, 0, "Our hallway.");
} else {
if (_arg1 == "housePainting"){
showTextCloud(4, 0, "It's a shady painting. But not of much interest to me now, I have other things on my head!");
} else {
if (_arg1 == "kelseyWindow"){
showTextCloud(4, 0, "Hey, Kelsey is looking through the window... I hope she's not up to anything right now...");
} else {
if (_arg1 == "liftDoor0"){
showTextCloud(4, 0, "The lift isn't here... I can't enter...");
} else {
if (_arg1 == "officeRules"){
showTextCloud(4, 0, "AAAAH! My eyes! Whoever thought it would be a good idea to hang that there? It only makes people go crazy!");
} else {
if (_arg1 == "desk"){
showTextCloud(4, 0, "Hm, several desks here, but nothing special about them.");
} else {
if (_arg1 == "chair"){
showTextCloud(4, 0, "Rather simple chair.");
} else {
if (_arg1 == "doorOffice"){
showTextCloud(4, 0, "Oh. This door is blocking me. No clue what's on the other side. There's a window in it but I'm too small to look through.");
} else {
if (_arg1 == "painting3"){
showTextCloud(4, 0, "Hmm...");
} else {
if (_arg1 == "doll"){
showTextCloud(4, 0, "There's something sitting up there, but I can't see it from here, the shelf is blocking most of it from view.");
} else {
if (_arg1 == "nagaTail"){
showTextCloud(4, 0, "There's a naga sleeping here. Hopefully it didn't eat anyone alive...");
} else {
if (_arg1 == "trolly"){
showTextCloud(4, 0, "Some kind of trolly. I could probably push it around but see no need to.");
} else {
if (_arg1 == "naga2"){
showTextCloud(4, 0, "This naga is sleeping, with her mouth open.");
} else {
if (_arg1 == "mysteryBox"){
showTextCloud(4, 0, "There's some kind of carton box on the top shelf. Not anything I can reach so let's forget about it.");
} else {
if (_arg1 == "painting2"){
showTextCloud(4, 0, "Pretty nice piece of art! I like it!");
} else {
if (_arg1 == "scalpel"){
showTextCloud(4, 0, "That's a very sharp scalpel. To me it is so big that it's almost like a halberd!");
} else {
if (_arg1 == "cabinet"){
showTextCloud(4, 0, "A small cabinet... but everything is BIG to me!");
} else {
if (_arg1 == "portal"){
showTextCloud(4, 0, "That's a huge portal!");
} else {
if (_arg1 == "portalField"){
showTextCloud(4, 0, "The portal is active... hopefully nothing is coming through!");
} else {
if (_arg1 == "doorEmergency"){
showTextCloud(4, 0, "It's the emergency exit... which I hope we'll take if things start to get out of hand here!");
} else {
if (_arg1 == "emmiDressedSprite"){
showTextCloud(4, 0, "Heehee... don't touch me like that! It tickles!");
} else {
clearUI();
if ((((xApproach > sprite.x)) && ((_arg2 < 550)))){
walkDir = 1;
doWalkAnimation();
} else {
if ((((xApproach < sprite.x)) && ((_arg2 < 550)))){
walkDir = -1;
doWalkAnimation();
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
}
public function enterMouseHole(_arg1):void{
clearUI();
setScene(1, 2, -100);
if (iPhase == 124){
iPhase = 125;
showTextCloud(4, 0, "How cool! A chess board! I get to play chess! Let's hoppedy-hop on my little horsie! whee!");
};
if (_arg1 == 1){
horseTo(decor.z1);
};
if (_arg1 == 9){
horseTo(decor.z9);
};
if (_arg1 == 15){
horseTo(decor.z15);
};
if (_arg1 == 16){
horseTo(decor.z16);
};
}
public function horseTo(_arg1):void{
emmiHorse.x = (_arg1.x - 800);
emmiHorse.y = (_arg1.y + 550);
}
public function exitHorse(_arg1):void{
emmiHorse.y = 2000;
if (_arg1 == 1){
setScene(4, 0, 500);
} else {
if (_arg1 == 9){
setScene(3, 1, 700);
} else {
if (_arg1 == 15){
setScene(3, 2, 150);
} else {
if (_arg1 == 16){
setScene(3, 3, 700);
};
};
};
};
}
public function emmiAct3():void{
iPhase = 128;
clearUI();
mapDetail.gotoAndStop(4);
mapDetail.x = 0;
mapDetail.y = 0;
mapDetail.alpha = 1;
}
public function customMouseCursor(_arg1:Event):void{
mousePointer.x = stage.mouseX;
mousePointer.y = stage.mouseY;
}
public function showOptionCloud(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7){
textCloud.alpha = 0;
textCloud.y = 1000;
if ((((_arg3 == "")) || ((_arg4 == "")))){
optionCloud.alpha = 0;
optionCloud.y = 1000;
textCloud2.alpha = 0;
textCloud2.y = 1000;
} else {
optionCloud.option1.option1.text = _arg3;
optionCloud.option2.option2.text = _arg4;
optionCloud.x = 120;
optionCloud.y = 444;
optionCloud.alpha = 1;
textCloud2.txt.text = _arg7;
textCloud2.x = 100;
textCloud2.y = 356;
textCloud2.alpha = 1;
};
if (_arg1 > 4){
portraits.expression.gotoAndStop(41);
} else {
portraits.expression.gotoAndStop((_arg1 + (10 * _arg2)));
};
if (_arg5 > 4){
portraits2.expression.gotoAndStop(41);
} else {
portraits2.expression.gotoAndStop((_arg5 + (10 * _arg6)));
};
showChar(_arg1);
showChar2(_arg5);
}
public function showTextCloud(_arg1, _arg2, _arg3){
textCloud.runeWord.alpha = 0;
if (_arg3 == ""){
textCloud.alpha = 0;
textCloud.y = 1000;
} else {
textCloud.txt.text = _arg3;
textCloud.x = 120;
textCloud.y = 444;
textCloud.alpha = 1;
};
if (_arg1 > 4){
portraits.expression.gotoAndStop(41);
} else {
portraits.expression.gotoAndStop((_arg1 + (10 * _arg2)));
};
showChar(_arg1);
}
public function showChar(_arg1){
if (_arg1 == 0){
portraits.alpha = 0;
portraits.x = 4;
portraits.y = 1000;
} else {
portraits.x = 30;
portraits.y = 440;
portraits.portrait.gotoAndStop(_arg1);
portraits.alpha = 1;
if ((((bJenHelmVisible == true)) && ((_arg1 == 1)))){
portraits.policeUniform.alpha = 1;
} else {
portraits.policeUniform.alpha = 0;
};
};
}
public function showChar2(_arg1){
if (_arg1 == 0){
portraits.alpha = 0;
portraits.x = 4;
portraits.y = 1000;
} else {
portraits2.x = 20;
portraits2.y = 352;
portraits2.portrait.gotoAndStop(_arg1);
portraits2.alpha = 1;
if ((((bJenHelmVisible == true)) && ((_arg1 == 1)))){
portraits2.policeUniform.alpha = 1;
} else {
portraits2.policeUniform.alpha = 0;
};
};
}
public function clearUI():void{
optionCloud.alpha = 0;
optionCloud.y = 1000;
textCloud.alpha = 0;
textCloud.y = 1000;
portraits.alpha = 0;
portraits.x = 4;
portraits.y = 1000;
textCloud2.alpha = 0;
textCloud2.y = 1000;
portraits2.alpha = 0;
portraits2.x = 4;
portraits2.y = 1000;
textCloud.runeWord.alpha = 0;
}
public function enableLeft(_arg1:Boolean):void{
if (_arg1 == true){
leftArrow.x = 5;
leftArrow.alpha = 0.7;
xMin = -60;
} else {
leftArrow.x = -30;
leftArrow.alpha = 0;
};
}
public function enableRight(_arg1:Boolean):void{
if (_arg1 == true){
rightArrow.x = 795;
rightArrow.alpha = 0.7;
xMax = 860;
} else {
rightArrow.x = 830;
rightArrow.alpha = 0;
};
}
public function takeItem(_arg1):void{
var _local2:* = false;
var _local3:* = 0;
while (_local3 < 6) {
if ((((_local2 == false)) && ((itemArray[_local3] == 0)))){
_local2 = true;
itemArray[_local3] = _arg1;
if (_local3 == 0){
btn1.gotoAndStop((_arg1 + 1));
};
if (_local3 == 1){
btn2.gotoAndStop((_arg1 + 1));
};
if (_local3 == 2){
btn3.gotoAndStop((_arg1 + 1));
};
if (_local3 == 3){
btn4.gotoAndStop((_arg1 + 1));
};
if (_local3 == 4){
btn5.gotoAndStop((_arg1 + 1));
};
if (_local3 == 5){
btn6.gotoAndStop((_arg1 + 1));
};
};
_local3++;
};
}
public function dropItem(_arg1):void{
var _local2:* = false;
var _local3:* = 0;
while (_local3 < 6) {
if ((((_local2 == false)) && ((itemArray[_local3] == _arg1)))){
_local2 = true;
itemArray[_local3] = 0;
if (_local3 == 0){
btn1.gotoAndStop(1);
};
if (_local3 == 1){
btn2.gotoAndStop(1);
};
if (_local3 == 2){
btn3.gotoAndStop(1);
};
if (_local3 == 3){
btn4.gotoAndStop(1);
};
if (_local3 == 4){
btn5.gotoAndStop(1);
};
if (_local3 == 5){
btn6.gotoAndStop(1);
};
};
_local3++;
};
}
public function showRunes(_arg1:Boolean):void{
var _local2:* = 0;
if (_arg1 == true){
_local2 = 1;
};
decor.rune1.alpha = _local2;
decor.rune2.alpha = _local2;
decor.rune3.alpha = _local2;
decor.rune4.alpha = _local2;
decor.rune5.alpha = _local2;
decor.rune6.alpha = _local2;
decor.runeSi.alpha = _local2;
decor.runeShi.alpha = _local2;
decor.runeRo.alpha = _local2;
decor.runeLab.alpha = _local2;
decor.runeNol.alpha = _local2;
decor.runeSunnah.alpha = _local2;
decor.runeStart.alpha = (1 - _local2);
if (_local2 == 0){
decor.runeStart.y = -762;
} else {
decor.runeStart.y = -3762;
};
}
public function doWalkAnimation():void{
if ((((walkDir == 1)) || ((walkDir == -1)))){
if (currentChar == 2){
doGlow(false);
};
walkFrame = (walkFrame + walkDir);
if (walkFrame > 5){
walkFrame = 2;
};
if (walkFrame < 2){
walkFrame = 5;
};
sprite.gotoAndStop(walkFrame);
sprite.x = (sprite.x + ((55 * iScale) * walkDir));
sprite.scaleX = (walkDir * iScale);
if (sprite.x < xMin){
sprite.x = xMin;
walkDir = 0;
if (sprite.x < -20){
moveRoom("left");
};
} else {
if (sprite.x > xMax){
sprite.x = xMax;
walkDir = 0;
if (sprite.x > 820){
moveRoom("right");
};
};
};
} else {
if ((((sprite.currentFrame > 1)) && ((sprite.currentFrame < 6)))){
sprite.gotoAndStop(6);
};
walkFrame = 3;
};
if ((((((xApproach > sprite.x)) && ((walkDir == -1)))) || ((((xApproach < sprite.x)) && ((walkDir == 1)))))){
walkDir = 0;
};
if (bLiftInMotion == true){
moveLift();
};
locInfoTxt.text = ((((iPhase + ", ") + xMin) + "/") + xMax);
}
public function liftToFloor(_arg1):void{
if (_arg1 != currentFloor){
enableLeft(false);
xMin = 100;
if (sprite.x < 100){
sprite.x = 100;
};
iLiftPos = (currentFloor * 10);
iLiftTarget = (_arg1 * 10);
bLiftInMotion = true;
decor.liftDoor.alpha = 1;
if (iLiftPos > iLiftTarget){
showText("'Elevator To Hell, going down!'");
} else {
showText("'Elevator To Heaven, going up!'");
};
};
}
public function moveLift(){
if (iLiftTarget < iLiftPos){
iLiftPos--;
} else {
if (iLiftTarget > iLiftPos){
iLiftPos++;
} else {
currentFloor = Math.floor((iLiftPos / 10));
decor.floorSign.gotoAndStop((currentFloor + 1));
enableLeft(true);
xMin = -60;
bLiftInMotion = false;
decor.liftDoor.alpha = 0;
if (locX == 4){
decor.liftDoor0.gotoAndStop(1);
decor.liftDoor1.gotoAndStop(1);
decor.liftDoor2.gotoAndStop(1);
decor.liftDoor3.gotoAndStop(1);
enableRight(true);
};
};
};
if ((iLiftPos % 2) == 0){
if (iLiftPos == 0){
decor.txtLiftLevel.text = "G";
} else {
if (iLiftPos == 10){
decor.txtLiftLevel.text = "1";
} else {
if (iLiftPos == 20){
decor.txtLiftLevel.text = "2";
} else {
if (iLiftPos == 30){
decor.txtLiftLevel.text = "3";
} else {
decor.txtLiftLevel.text = "-";
};
};
};
};
} else {
decor.txtLiftLevel.text = "";
};
}
public function moveRoom(_arg1):void{
clearUI();
if (_arg1 == "left"){
if ((((locX == 0)) && ((locY == 2)))){
mapDetail.gotoAndStop(2);
mapDetail.x = 0;
mapDetail.y = 0;
mapDetail.alpha = 1;
showText("ACT 1: 'Trouble in the Lab' - After a short drive Jen arrives in the harbour...");
setScene(1, 0, 80);
itemArray[0] = 3;
btn1.gotoAndStop(4);
} else {
if ((((locX == 3)) && ((locY == 0)))){
setScene(2, 0, 720);
} else {
if ((((locX == 4)) && ((locY == 0)))){
setScene(3, 0, 720);
} else {
if ((((locX == 5)) && ((locY == 0)))){
setScene(4, currentFloor, 600);
} else {
if ((((locX == 4)) && ((locY == 1)))){
setScene(3, 1, 720);
} else {
if ((((locX == 4)) && ((locY == 3)))){
setScene(3, 3, 720);
} else {
if ((((locX == 1)) && ((locY == 0)))){
setScene(0, 0, 720);
} else {
if ((((locX == 1)) && ((locY == 1)))){
setScene(1, 0, 340);
} else {
if ((((locX == 3)) && ((locY == 3)))){
setScene(2, 3, 720);
} else {
if ((((locX == 3)) && ((locY == 2)))){
setScene(2, 2, 720);
} else {
if ((((locX == 4)) && ((locY == 2)))){
setScene(3, 2, 720);
} else {
if ((((locX == 0)) && ((locY == 1)))){
setScene(0, 0, 560);
if (currentChar == 3){
emmiDressedSprite.y = 2000;
} else {
emmaDressedSprite.y = 2000;
};
};
};
};
};
};
};
};
};
};
};
};
};
} else {
if (_arg1 == "right"){
if ((((locX == 2)) && ((locY == 0)))){
setScene(3, 0, 80);
} else {
if ((((locX == 3)) && ((locY == 0)))){
setScene(4, 0, 80);
} else {
if ((((locX == 3)) && ((locY == 1)))){
setScene(4, 1, 80);
} else {
if ((((locX == 3)) && ((locY == 3)))){
setScene(4, 3, 80);
} else {
if ((((locX == 0)) && ((locY == 0)))){
setScene(1, 0, 80);
} else {
if ((((locX == 3)) && ((locY == 2)))){
setScene(4, 2, 80);
} else {
if ((((locX == 2)) && ((locY == 2)))){
setScene(3, 2, 80);
} else {
if ((((locX == 2)) && ((locY == 3)))){
if (iPhase == 236){
mapDetail.gotoAndStop(5);
mapDetail.x = 0;
mapDetail.y = 0;
mapDetail.alpha = 1;
btn1.gotoAndStop(1);
btn2.gotoAndStop(1);
btn3.gotoAndStop(1);
btn4.gotoAndStop(1);
btn5.gotoAndStop(1);
btn6.gotoAndStop(1);
showText("- The End - CONGRATULATIONS! - You finished the game!");
} else {
setScene(3, 3, 80);
};
} else {
if (locX == 4){
setScene(5, 0, 300);
};
};
};
};
};
};
};
};
};
};
};
}
public function showText(_arg1):void{
lichtTween.stop();
txtLichtKrant.x = 460;
txtLichtKrant.text = _arg1;
lichtTween = new Tween(txtLichtKrant, "x", None.easeNone, 460, -1740, 22, true);
lichtTween.FPS = 40;
}
public function trollyTrack1Empty():void{
trollyTween1 = new Tween(decor.trolly, "x", None.easeNone, 3740, 3302, 2, true);
trollyTween1.FPS = 40;
trollyTween1.addEventListener(TweenEvent.MOTION_FINISH, trollyTrack2Empty);
}
public function trollyTrack2Empty(_arg1:TweenEvent):void{
trollyTween2 = new Tween(decor.trolly, "x", None.easeNone, 3302, 3740, 2, true);
trollyTween2.FPS = 40;
trollyTween2.addEventListener(TweenEvent.MOTION_FINISH, trollyTrack3Empty);
showTextCloud(8, 0, "Rrrrrhpffh!");
}
public function trollyTrack3Empty(_arg1:TweenEvent):void{
decor.trolly.alpha = 0;
decor.trolly.y = 2000;
showTextCloud(1, 1, "Hm. Strange. I would have hoped that would have distracted the Naga... Somehow it must know that that's not me... I need to think of something else.");
takeItem(7);
if (iPhase < 5){
iPhase = 5;
};
}
public function trollyTrack1Dressed():void{
trollyTween1 = new Tween(decor.trolly, "x", None.easeNone, 3740, 3302, 3, true);
trollyTween1.FPS = 40;
trollyTween1.addEventListener(TweenEvent.MOTION_FINISH, trollyTrack2Dressed);
}
public function trollyTrack2Dressed(_arg1:TweenEvent):void{
decor.trolly.gotoAndStop(1);
decor.trolly.x = 3250;
decor.trolly.y = -634;
showTextCloud(1, 0, "Excellent! Now let's hope it doesn't notice that it can't digest that thing and that it will sleep long enough!");
iPhase = 7;
enableLeft(true);
decor.nagaTail.gotoAndStop(2);
}
public function doNagaApproach():void{
if (bJenEatenLOCK == false){
bJenEatenLOCK = true;
trollyTween1 = new Tween(decor.naga2, "x", None.easeNone, 2443, 2463, 3, true);
trollyTween1.FPS = 40;
trollyTween1.addEventListener(TweenEvent.MOTION_FINISH, nagaApproach2);
};
}
public function nagaApproach2(_arg1:TweenEvent):void{
trollyTween1 = new Tween(decor.naga2, "x", Strong.easeIn, 2463, ((2400 + sprite.x) - 40), 1, true);
trollyTween1.FPS = 40;
trollyTween1.addEventListener(TweenEvent.MOTION_FINISH, nagaApproach3);
clearUI();
}
public function nagaApproach3(_arg1:TweenEvent):void{
decor.naga2.x = 3100;
decor.naga2.gotoAndStop(3);
decor.doorLab.alpha = 1;
iPhase = 9;
sprite.alpha = 0;
sprite.y = 2000;
}
public function doSwallowJen():void{
decor.naga2.gotoAndStop(1);
trollyTween1 = new Tween(decor.naga2, "x", Regular.easeIn, decor.naga2.x, 3500, 3, true);
trollyTween1.FPS = 40;
trollyTween1.addEventListener(TweenEvent.MOTION_FINISH, doSwallow2);
decor.jenShove.nagaShove.x = 550;
decor.jenShove.alpha = 1;
}
public function doSwallow2(_arg1:TweenEvent):void{
trollyTween1 = new Tween(decor.jenShove.nagaShove, "x", Regular.easeOut, 550, 0, 10, true);
trollyTween1.FPS = 40;
trollyTween1.addEventListener(TweenEvent.MOTION_FINISH, doSwallow3);
}
public function doSwallow3(_arg1:TweenEvent):void{
decor.jenShove.alpha = 0;
decor.naga2.gotoAndStop(2);
decor.naga2.x = 2950;
decor.naga2.y = -789;
decor.naga2.alpha = 1;
iPhase = 11;
decor.gameOver.alpha = 1;
decor.gameOver.gotoAndPlay(2);
}
public function shrinkEmma():void{
trollyTween1 = new Tween(emmaDressedSprite, "scaleX", None.easeNone, 1, 0.25, 1, true);
trollyTween1.FPS = 40;
trollyTween2 = new Tween(emmaDressedSprite, "scaleY", None.easeNone, 1, 0.25, 1, true);
trollyTween2.FPS = 40;
trollyTween1.addEventListener(TweenEvent.MOTION_FINISH, shrinkEmma2);
}
public function shrinkEmma2(_arg1:TweenEvent):void{
enableLeft(true);
emmaDressedSprite.y = 510;
showTextCloud(4, 1, "Sorry, sister, but I said I am going. You stay here yourself!");
}
public function shrinkEmmi():void{
trollyTween1 = new Tween(emmiDressedSprite, "scaleX", None.easeNone, 1, 0.25, 1, true);
trollyTween1.FPS = 40;
trollyTween2 = new Tween(emmiDressedSprite, "scaleY", None.easeNone, 1, 0.25, 1, true);
trollyTween2.FPS = 40;
iScale = 0.25;
iPhase = 122;
}
public function reduceArmy(_arg1):void{
trollyTween1 = new Tween(_arg1, "scaleX", None.easeNone, 1, 0.25, 1, true);
trollyTween1.FPS = 40;
trollyTween2 = new Tween(_arg1, "scaleY", None.easeNone, 1, 0.25, 1, true);
trollyTween2.FPS = 40;
}
public function emmiTickleFeet():void{
trollyTween1 = new Tween(decor.armyGirl, "rotation", Regular.easeIn, 0, 30, 1, true);
trollyTween1.FPS = 40;
trollyTween1.addEventListener(TweenEvent.MOTION_FINISH, emmiTickleFeet2);
}
public function emmiTickleFeet2(_arg1:TweenEvent):void{
trollyTween1 = new Tween(decor.armyGirl, "rotation", None.easeNone, 30, 75, 0.7, true);
trollyTween1.FPS = 40;
trollyTween1.addEventListener(TweenEvent.MOTION_FINISH, emmiTickleFeet3);
decor.doorGuarded.gotoAndStop(2);
}
public function emmiTickleFeet3(_arg1:TweenEvent):void{
iPhase = 124;
enableRight(true);
if (sprite.x == 353){
xMax = 353;
};
decor.armyGirl.gotoAndStop(3);
decor.armyGirl.rotation = 10;
}
public function throwUpJen():void{
dropItem(10);
decor.naga2.y = 2000;
decor.jenShove.alpha = 1;
trollyTween1 = new Tween(decor.jenShove.nagaShove, "x", Regular.easeOut, 0, 500, 1, true);
trollyTween1.FPS = 40;
trollyTween1.addEventListener(TweenEvent.MOTION_FINISH, jenIsOut);
}
public function jenIsOut(_arg1:TweenEvent):void{
decor.jenShove.nagaShove.alpha = 0;
decor.liftDoor3.gotoAndStop(2);
iPhase = 126;
}
public function closePortalAni():void{
trollyTween1 = new Tween(decor.portal.portalField, "alpha", Strong.easeOut, 0.8, 0, 5, true);
trollyTween1.FPS = 40;
trollyTween1.addEventListener(TweenEvent.MOTION_FINISH, portalIsClosed);
}
public function portalIsClosed(_arg1:TweenEvent):void{
mapDetail.gotoAndStop(7);
mapDetail.x = 0;
mapDetail.y = 0;
mapDetail.alpha = 1;
btn1.gotoAndStop(1);
btn2.gotoAndStop(1);
btn3.gotoAndStop(1);
btn4.gotoAndStop(1);
btn5.gotoAndStop(1);
btn6.gotoAndStop(1);
showText("- The End - CONGRATULATIONS! - You finished the game!");
}
public function randomPortalAction():void{
var _local1:* = Math.floor((Math.random() * 5));
if (_local1 == 0){
if (messups == 0){
messups = 1;
};
trollyTween1 = new Tween(decor.portal.portalField, "alpha", Strong.easeOut, decor.portal.portalField.alpha, 0.9, 3, true);
trollyTween1.FPS = 40;
showTextCloud(1, 2, "Oh dang! That was not right... the portal just became brighter!");
} else {
if (_local1 == 1){
if (messups == 0){
messups = 1;
};
trollyTween1 = new Tween(decor.portal.portalField, "scaleY", Strong.easeOut, decor.portal.portalField.scaleY, 1.5, 3, true);
trollyTween1.FPS = 40;
trollyTween2 = new Tween(decor.portal.portalField, "scaleX", Strong.easeOut, decor.portal.portalField.scaleX, 1.5, 3, true);
trollyTween2.FPS = 40;
showTextCloud(1, 3, "Oh no! This wasn't the right code... I just made the portal bigger! Crap!");
} else {
if (_local1 == 2){
if (messups == 0){
messups = 1;
};
trollyTween1 = new Tween(decor.portal.portalField, "scaleY", Strong.easeOut, decor.portal.portalField.scaleY, 0.75, 3, true);
trollyTween1.FPS = 40;
trollyTween2 = new Tween(decor.portal.portalField, "scaleX", Strong.easeOut, decor.portal.portalField.scaleX, 0.75, 3, true);
trollyTween2.FPS = 40;
showTextCloud(1, 1, "Hm, it got a bit smaller, but not enough. I need to close it! This wasn't the right combination...");
} else {
if (_local1 == 3){
messups = 2;
naga3.y = 320;
trollyTween1 = new Tween(naga3, "x", Regular.easeOut, 460, 980, 3, true);
trollyTween1.FPS = 40;
showTextCloud(1, 3, "EEEP! That wasn't the right code... and a Naga just came through! I have to close this thing, quick!");
} else {
if (_local1 == 4){
if (messups == 0){
messups = 1;
};
trollyTween1 = new Tween(decor.portal.portalField, "scaleX", Strong.easeOut, decor.portal.portalField.scaleX, 2, 3, true);
trollyTween1.FPS = 40;
showTextCloud(1, 2, "Errr... that wasn't the right code! I must have made a typo...");
};
};
};
};
};
}
public function explodePortal():void{
iPhase = 33;
decor.liftDoor3.gotoAndStop(2);
naga3.y = 320;
trollyTween1 = new Tween(naga3, "x", Regular.easeOut, 460, 980, 3, true);
trollyTween1.FPS = 40;
trollyTween1.addEventListener(TweenEvent.MOTION_FINISH, portalCritical);
showTextCloud(3, 3, "Damn! A naga!");
}
public function portalCritical(_arg1:TweenEvent):void{
showTextCloud(3, 3, "There! The code has been laid in. The portal is going critical! Time to get the heck out of here!");
decor.portal.gotoAndPlay(1);
showRunes(false);
}
public function flyChopper():void{
var _local1:*;
var _local2:*;
var _local3:*;
var _local4:*;
if (locX != 5){
choplocX = locX;
choplocY = locY;
_local3 = (choplocX * 800);
_local4 = (550 - (choplocY * 550));
decor.tinyChopper.x = (_local3 + stage.mouseX);
decor.tinyChopper.y = (_local4 + stage.mouseY);
decor.tinyChopper.alpha = 1;
_local1 = ((Math.floor((Math.random() * 700)) + 50) + _local3);
_local2 = ((Math.floor((Math.random() * 450)) + 50) + _local4);
if ((_local1 + _local3) > decor.tinyChopper.x){
decor.tinyChopper.scaleX = -1;
} else {
decor.tinyChopper.scaleX = 1;
};
chopperTweenX = new Tween(decor.tinyChopper, "x", Regular.easeInOut, decor.tinyChopper.x, _local1, 3, true);
chopperTweenX.FPS = 40;
chopperTweenY = new Tween(decor.tinyChopper, "y", Regular.easeInOut, decor.tinyChopper.y, _local2, 3, true);
chopperTweenY.FPS = 40;
chopperTweenX.addEventListener(TweenEvent.MOTION_FINISH, flyChopperMore);
} else {
takeItem(29);
showTextCloud(currentChar, 1, "Not in the lift!");
};
}
public function flyChopperMore(_arg1:TweenEvent):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
_local4 = (choplocX * 800);
_local5 = (550 - (choplocY * 550));
_local2 = ((Math.floor((Math.random() * 700)) + 50) + _local4);
_local3 = ((Math.floor((Math.random() * 450)) + 50) + _local5);
if (_local2 > decor.tinyChopper.x){
decor.tinyChopper.scaleX = -1;
} else {
decor.tinyChopper.scaleX = 1;
};
chopperTweenX = new Tween(decor.tinyChopper, "x", Regular.easeInOut, decor.tinyChopper.x, _local2, 3, true);
chopperTweenX.FPS = 40;
chopperTweenY = new Tween(decor.tinyChopper, "y", Regular.easeInOut, decor.tinyChopper.y, _local3, 3, true);
chopperTweenY.FPS = 40;
chopperTweenX.addEventListener(TweenEvent.MOTION_FINISH, flyChopperMore);
}
public function doHome(_arg1):void{
if (_arg1 == "btnContinue"){
emmiDressedSprite.x = 104;
emmaDressedSprite.x = 268;
jenPoliceSprite.y = 2000;
jenUnderwearSprite.y = 2000;
kelseyDressedSprite.y = 2000;
mapDetail.alpha = 0;
mapDetail.x = 0;
mapDetail.y = 2000;
currentChar = 0;
} else {
if (_arg1 == "telephone"){
decor.phoneRing.gotoAndStop(20);
if (iPhase == 12){
iPhase = 13;
};
if (iPhase == 13){
showOptionCloud(4, 3, "OMG, Can you breathe?", "I'll come save you!", 1, 3, "Help, Emma, Emmi! I'm on a police case and was just swallowed by a Naga! I'm going to be digested if nothing happens!");
portraits2.phone.alpha = 1;
portraits.x = (portraits.x + 35);
optionCloud.x = (optionCloud.x + 35);
} else {
if (iPhase == 14){
showOptionCloud(3, 2, "I'm really a bit busy, mom!", "Don't worry, we'll get you out!", 1, 3, "Please, Emma! Emmi! It is really cramped in here and I don't know how long before it is dissolving my skin!");
portraits2.phone.alpha = 1;
portraits.x = (portraits.x + 35);
optionCloud.x = (optionCloud.x + 35);
} else {
if (iPhase == 15){
showOptionCloud(2, 3, "Oh crap! My favourite food is being eaten!", "Oh no! Jen! I must do something!", 1, 3, "Hurry up already! It's in the harbour, building 21!");
portraits2.phone.alpha = 1;
portraits.x = (portraits.x + 35);
optionCloud.x = (optionCloud.x + 35);
} else {
if (iPhase == 16){
showTextCloud(3, 1, "The conversation has ended already. We shouldn't call her back, we should go rescue her!");
};
};
};
};
} else {
if (_arg1 == "option1"){
if (optionCloud.option1.option1.text == "OMG, Can you breathe?"){
iPhase = 14;
showOptionCloud(3, 2, "I'm really a bit busy, mom!", "Don't worry, we'll get you out!", 1, 3, "Barely! Luckily she sleeps with her mouth open, so I can hijack some oxygen! Hurry up, girls! Emma, aren't you able to close this portal for good?");
portraits2.phone.alpha = 1;
portraits.x = (portraits.x + 35);
optionCloud.x = (optionCloud.x + 35);
} else {
if (optionCloud.option1.option1.text == "I'm really a bit busy, mom!"){
iPhase = 15;
emmaDressedSprite.scaleX = -1;
showOptionCloud(2, 3, "Oh crap! My favourite food is being eaten!", "Oh no! Jen! I must do something!", 1, 3, "EMMA! What the hell!? I'm being EATEN ALIVE HERE! Hurry up! It's in the harbour, building 21! Help me! Please!");
portraits2.phone.alpha = 1;
portraits.x = (portraits.x + 25);
optionCloud.x = (optionCloud.x + 25);
} else {
if (optionCloud.option1.option1.text == "Oh crap! My favourite food is being eaten!"){
iPhase = 16;
clearUI();
showTextCloud(2, 3, "Nobody eats my favourite food, but me! I have to do something...");
portraits2.phone.alpha = 0;
} else {
if (optionCloud.option1.option1.text == "Hm, perhaps... but I love her more!"){
clearUI();
showTextCloud(3, 2, "Oh yeah! Like THAT will save mom! (cheap Emmi imitation:) 'Oh hello dear Naga! Don't eat my mommy anymore, okay? Let's all love each other and be happy now!'");
} else {
if (optionCloud.option1.option1.text == "You'll never make it, sis! They'll eat you."){
clearUI();
showTextCloud(4, 2, "They will NOT! I am taking the shrink ray with me and I'll change each of them into tiny worms! And then I will step on them! Heh!");
} else {
if (optionCloud.option1.option1.text == "Can't they make their mind up?"){
clearUI();
showTextCloud(3, 2, "blah-blah-blah... and more blah blah blah...");
};
};
};
};
};
};
} else {
if (_arg1 == "option2"){
if (optionCloud.option2.option2.text == "I'll come save you!"){
iPhase = 14;
showOptionCloud(3, 2, "I'm really a bit busy, mom!", "Don't worry, we'll get you out!", 1, 3, "Thank you Emmi! But if Emma is there, she has opened Naga portals before, she may be able to close it for good? Emma?");
portraits2.phone.alpha = 1;
portraits.x = (portraits.x + 35);
optionCloud.x = (optionCloud.x + 35);
} else {
if (optionCloud.option2.option2.text == "Don't worry, we'll get you out!"){
iPhase = 15;
emmaDressedSprite.scaleX = -1;
showOptionCloud(2, 3, "Oh crap! My favourite food is being eaten!", "Oh no! Jen! I must do something!", 1, 3, "Good, but hurry up a little please! This is very uncomfortable and it stings! I don't know how much time I have! It's in the harbour, building 21! Help me! Please!");
portraits2.phone.alpha = 1;
portraits.x = (portraits.x + 25);
optionCloud.x = (optionCloud.x + 25);
} else {
if (optionCloud.option2.option2.text == "Oh no! Jen! I must do something!"){
iPhase = 16;
clearUI();
showTextCloud(2, 3, "If Jen dies, my favourite energy source is gone! I can't let that happen...");
portraits2.phone.alpha = 0;
} else {
if (optionCloud.option2.option2.text == "No way, Emma, I am going!"){
currentChar = 4;
sprite = emmiDressedSprite;
clearUI();
showTextCloud(3, 1, "Emmi! I warn you... I will NOT let you leave! I won't have it! I am going myself!");
iPhase = 21;
takeItem(9);
decor.paperClips.gotoAndStop(2);
decor.armyGirl.gotoAndStop(2);
} else {
if (optionCloud.option2.option2.text == "Forget it. You stay here, sis, I go!"){
currentChar = 3;
sprite = emmaDressedSprite;
clearUI();
iPhase = 21;
emmiDressedSprite.y = (emmiDressedSprite.y + 20);
} else {
if (optionCloud.option2.option2.text == "While they fight over it, I will go!"){
currentChar = 2;
sprite = kelseyDressedSprite;
clearUI();
iPhase = 21;
emmiDressedSprite.y = 2000;
emmaDressedSprite.y = 2000;
kelseyDressedSprite.x = 300;
kelseyDressedSprite.y = 530;
setScene(0, 0, 300);
};
};
};
};
};
};
} else {
if (iPhase == 16){
clearUI();
if (_arg1 == "emmiDressedSprite"){
showOptionCloud(4, 1, "Hm, perhaps... but I love her more!", "No way, Emma, I am going!", 3, 2, "I will go to save mom! It is only natural. After all, I am the one of us with most experience about Naga portals!");
portraits.x = (portraits.x + 35);
optionCloud.x = (optionCloud.x + 35);
} else {
if (_arg1 == "emmaDressedSprite"){
showOptionCloud(3, 1, "You'll never make it, sis! They'll eat you.", "Forget it. You stay here, sis, I go!", 4, 2, "Emma! I'm not letting you mess this up! Everywhere you go things go wrong! I love mom and don't want to lose her! I should rescue her!");
portraits.x = (portraits.x + 35);
optionCloud.x = (optionCloud.x + 35);
} else {
if (_arg1 == "kelseyWindow"){
showOptionCloud(2, 1, "Can't they make their mind up?", "While they fight over it, I will go!", 1, 0, "");
portraits2.y = 2000;
textCloud2.y = 2000;
};
};
};
} else {
if (iPhase == 17){
};
};
};
};
};
};
}
function frame1(){
stop();
this.loaderInfo.addEventListener(ProgressEvent.PROGRESS, onProgress);
this.loaderInfo.addEventListener(Event.COMPLETE, onComplete);
}
function frame2(){
stage.addEventListener(MouseEvent.CLICK, mouseClicked);
bJenEatenLOCK = false;
iUseItem = 0;
xApproach = 100;
iPhase = 0;
bLiftInMotion = false;
xMin = 50;
xMax = 450;
sprite = jenPoliceSprite;
currentChar = 1;
bJenHelmVisible = true;
itemsClickedInVain = 0;
currentFloor = 0;
itemArray = [0, 0, 0, 0, 0, 0];
sprite.y = 530;
decor.boobies.alpha = 0;
decor.phoneRing.gotoAndStop(1);
setScene(0, 2, 100);
portraits2.topBox.alpha = 1;
showRunes(false);
textCloud.runeWord.alpha = 0;
textCloud2.runeWord.alpha = 0;
decor.painting2.ears.alpha = 0;
decor.portal.gotoAndStop(1);
doGlow(false);
resolution1 = 0;
bSpideysSeen = false;
bZapEmpty = false;
bBatteryNeed = false;
mysteryItemJen = 0;
mysteryItem2 = 0;
bDoorGuardedSeen = false;
bArmyGirlSeen = false;
tile = 1;
strRuneWord = "";
messups = 0;
mousePointer.mouseEnabled = false;
mousePointer.addEventListener(Event.ENTER_FRAME, customMouseCursor);
Mouse.hide();
stop();
walkFrame = 1;
walkDir = 0;
myWalkTimer = setInterval(doWalkAnimation, 300);
iLiftPos = 0;
iLiftTarget = 0;
iScale = 1;
choplocX = 0;
choplocY = 0;
chopperTweenX = new Tween(decor.tinyChopper, "x", Regular.easeInOut, decor.tinyChopper.x, (decor.tinyChopper.x + 1), 3, true);
chopperTweenY = new Tween(decor.tinyChopper, "y", Regular.easeInOut, decor.tinyChopper.y, (decor.tinyChopper.y + 1), 3, true);
lichtTween = new Tween(txtLichtKrant, "x", None.easeNone, 460, -1700, 18, true);
lichtTween.FPS = 40;
}
}
}//package Nagas2_fla
Section 28
//map_148 (Nagas2_fla.map_148)
package Nagas2_fla {
import flash.display.*;
public dynamic class map_148 extends MovieClip {
public var btnContinue:MovieClip;
public var btnCloseFile:MovieClip;
public function map_148(){
addFrameScript(0, frame1, 4, frame5);
}
function frame1(){
stop();
}
function frame5(){
stop();
}
}
}//package Nagas2_fla
Section 29
//mousePointer_151 (Nagas2_fla.mousePointer_151)
package Nagas2_fla {
import flash.display.*;
public dynamic class mousePointer_151 extends MovieClip {
public function mousePointer_151(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Nagas2_fla
Section 30
//naga1_65 (Nagas2_fla.naga1_65)
package Nagas2_fla {
import flash.display.*;
public dynamic class naga1_65 extends MovieClip {
public function naga1_65(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Nagas2_fla
Section 31
//nagaShove_69 (Nagas2_fla.nagaShove_69)
package Nagas2_fla {
import flash.display.*;
public dynamic class nagaShove_69 extends MovieClip {
public function nagaShove_69(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Nagas2_fla
Section 32
//nagaTail_14 (Nagas2_fla.nagaTail_14)
package Nagas2_fla {
import flash.display.*;
public dynamic class nagaTail_14 extends MovieClip {
public function nagaTail_14(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Nagas2_fla
Section 33
//paintExtra_16 (Nagas2_fla.paintExtra_16)
package Nagas2_fla {
import flash.display.*;
public dynamic class paintExtra_16 extends MovieClip {
public function paintExtra_16(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Nagas2_fla
Section 34
//paperclips_57 (Nagas2_fla.paperclips_57)
package Nagas2_fla {
import flash.display.*;
public dynamic class paperclips_57 extends MovieClip {
public function paperclips_57(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Nagas2_fla
Section 35
//pillTube_74 (Nagas2_fla.pillTube_74)
package Nagas2_fla {
import flash.display.*;
public dynamic class pillTube_74 extends MovieClip {
public function pillTube_74(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Nagas2_fla
Section 36
//portraits_131 (Nagas2_fla.portraits_131)
package Nagas2_fla {
import flash.display.*;
public dynamic class portraits_131 extends MovieClip {
public var headJen:MovieClip;
public var headEmma:MovieClip;
public var headEmmi:MovieClip;
public var headKelsey:MovieClip;
public function portraits_131(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Nagas2_fla
Section 37
//storageRoom_55 (Nagas2_fla.storageRoom_55)
package Nagas2_fla {
import flash.display.*;
public dynamic class storageRoom_55 extends MovieClip {
public function storageRoom_55(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Nagas2_fla
Section 38
//trolly_53 (Nagas2_fla.trolly_53)
package Nagas2_fla {
import flash.display.*;
public dynamic class trolly_53 extends MovieClip {
public function trolly_53(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Nagas2_fla