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
//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 3
//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 4
//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 5
//equipment1_fire_10 (FoF_fla.equipment1_fire_10)
package FoF_fla {
import flash.display.*;
public dynamic class equipment1_fire_10 extends MovieClip {
public function equipment1_fire_10(){
addFrameScript(0, frame1, 1, frame2, 5, frame6);
}
function frame1(){
stop();
}
function frame2(){
}
function frame6(){
gotoAndPlay(2);
}
}
}//package FoF_fla
Section 6
//equipment2_guilot_11 (FoF_fla.equipment2_guilot_11)
package FoF_fla {
import flash.display.*;
public dynamic class equipment2_guilot_11 extends MovieClip {
public function equipment2_guilot_11(){
addFrameScript(0, frame1, 6, frame7);
}
function frame1(){
stop();
}
function frame7(){
gotoAndPlay(2);
}
}
}//package FoF_fla
Section 7
//equipment3_press_12 (FoF_fla.equipment3_press_12)
package FoF_fla {
import flash.display.*;
public dynamic class equipment3_press_12 extends MovieClip {
public function equipment3_press_12(){
addFrameScript(0, frame1, 50, frame51);
}
function frame1(){
stop();
}
function frame51(){
stop();
}
}
}//package FoF_fla
Section 8
//equipment6_flies_15 (FoF_fla.equipment6_flies_15)
package FoF_fla {
import flash.display.*;
public dynamic class equipment6_flies_15 extends MovieClip {
public function equipment6_flies_15(){
addFrameScript(0, frame1, 9, frame10);
}
function frame1(){
stop();
}
function frame10(){
gotoAndPlay(2);
}
}
}//package FoF_fla
Section 9
//equipment7_frost_16 (FoF_fla.equipment7_frost_16)
package FoF_fla {
import flash.display.*;
public dynamic class equipment7_frost_16 extends MovieClip {
public function equipment7_frost_16(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package FoF_fla
Section 10
//equipment8_knives_17 (FoF_fla.equipment8_knives_17)
package FoF_fla {
import flash.display.*;
public dynamic class equipment8_knives_17 extends MovieClip {
public function equipment8_knives_17(){
addFrameScript(0, frame1, 13, frame14);
}
function frame1(){
stop();
}
function frame14(){
gotoAndPlay(2);
}
}
}//package FoF_fla
Section 11
//expression_40 (FoF_fla.expression_40)
package FoF_fla {
import flash.display.*;
public dynamic class expression_40 extends MovieClip {
public function expression_40(){
addFrameScript(0, frame1, 5, frame6, 8, frame9);
}
function frame1(){
stop();
}
function frame6(){
if (Math.floor((Math.random() * 10)) >= 8){
gotoAndPlay(7);
} else {
gotoAndPlay(4);
};
}
function frame9(){
gotoAndPlay(7);
}
}
}//package FoF_fla
Section 12
//girl_base_34 (FoF_fla.girl_base_34)
package FoF_fla {
import flash.display.*;
public dynamic class girl_base_34 extends MovieClip {
public function girl_base_34(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package FoF_fla
Section 13
//legLeft_35 (FoF_fla.legLeft_35)
package FoF_fla {
import flash.display.*;
public dynamic class legLeft_35 extends MovieClip {
public function legLeft_35(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package FoF_fla
Section 14
//legRight_36 (FoF_fla.legRight_36)
package FoF_fla {
import flash.display.*;
public dynamic class legRight_36 extends MovieClip {
public function legRight_36(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package FoF_fla
Section 15
//MainTimeline (FoF_fla.MainTimeline)
package FoF_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 legLeft:MovieClip;
public var girlBase:MovieClip;
public var box1:MovieClip;
public var fishEquip2:MovieClip;
public var fakebox:MovieClip;
public var textCloud1:MovieClip;
public var acidLayer1:MovieClip;
public var legRight:MovieClip;
public var introLogoSprite:introLogo;
public var winDialog:MovieClip;
public var pipe1:MovieClip;
public var miniBox4:MovieClip;
public var fishEquip1:MovieClip;
public var armR1:MovieClip;
public var btnIntroStart:introStartButton;
public var acidLayer2:MovieClip;
public var miniBox5:MovieClip;
public var pressEquip2:MovieClip;
public var fishLayer2:MovieClip;
public var miniBox2:MovieClip;
public var fluid1:MovieClip;
public var miniBox3:MovieClip;
public var armL:MovieClip;
public var loader_mc:movie_mc;
public var loaded_txt:TextField;
public var frostEquip1:MovieClip;
public var fliesEquip1:MovieClip;
public var pressEquip1:MovieClip;
public var armL1:MovieClip;
public var knivesEquip2:MovieClip;
public var fishLayer1:MovieClip;
public var miniBox1:MovieClip;
public var knivesEquip1:MovieClip;
public var guilotEquip1:MovieClip;
public var frostEquip2:MovieClip;
public var fliesEquip2:MovieClip;
public var table1top:MovieClip;
public var expression:MovieClip;
public var acidEquip1:MovieClip;
public var fireEquip2:MovieClip;
public var handle1:MovieClip;
public var guilotEquip2:MovieClip;
public var rollerband:MovieClip;
public var table1:MovieClip;
public var fireEquip1:MovieClip;
public var acidEquip2:MovieClip;
public var chair:MovieClip;
public var armR:MovieClip;
public var box:MovieClip;
public var myInterval:uint;
public var action:String;
public var myTween1:Tween;
public var myTween2:Tween;
public var myTween3:Tween;
public var myTween4:Tween;
public var myTween5:Tween;
public var door;
public var bLegLeftOk:Boolean;
public var bLegRightOk:Boolean;
public var choosingPhase:uint;
public var boxChoiceLeft:uint;
public var boxChoiceRight:uint;
public var footAniLeft;
public var footAniRight;
public var footAniLeftType;
public var footAniRightType;
public var bFootFallOff;
public var bFootPain;
public var bFootUncomfort;
public var bFootTickled;
public var boxTypeArray:Array;
public var boxColorArray:Array;
public var boxPatternArray:Array;
public var miniTypeArray:Array;
public var miniColorArray:Array;
public var miniPatternArray:Array;
public var boxAmount:uint;
public var amountOfEmpties:uint;
public var roundNumber:uint;
public var cashAmount;
public var roundWins;
public var equipmentVariations;
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 hideAllCovers():void{
miniBox1.b1_0.alpha = 0;
miniBox1.b1_1.alpha = 0;
miniBox1.b1_2.alpha = 0;
miniBox1.b1_3.alpha = 0;
miniBox1.b1_4.alpha = 0;
miniBox1.b1_5.alpha = 0;
miniBox1.b1_6.alpha = 0;
miniBox1.b1_7.alpha = 0;
miniBox1.b1_8.alpha = 0;
miniBox1.b1_9.alpha = 0;
miniBox2.b1_0.alpha = 0;
miniBox2.b1_1.alpha = 0;
miniBox2.b1_2.alpha = 0;
miniBox2.b1_3.alpha = 0;
miniBox2.b1_4.alpha = 0;
miniBox2.b1_5.alpha = 0;
miniBox2.b1_6.alpha = 0;
miniBox2.b1_7.alpha = 0;
miniBox2.b1_8.alpha = 0;
miniBox2.b1_9.alpha = 0;
miniBox3.b1_0.alpha = 0;
miniBox3.b1_1.alpha = 0;
miniBox3.b1_2.alpha = 0;
miniBox3.b1_3.alpha = 0;
miniBox3.b1_4.alpha = 0;
miniBox3.b1_5.alpha = 0;
miniBox3.b1_6.alpha = 0;
miniBox3.b1_7.alpha = 0;
miniBox3.b1_8.alpha = 0;
miniBox3.b1_9.alpha = 0;
miniBox4.b1_0.alpha = 0;
miniBox4.b1_1.alpha = 0;
miniBox4.b1_2.alpha = 0;
miniBox4.b1_3.alpha = 0;
miniBox4.b1_4.alpha = 0;
miniBox4.b1_5.alpha = 0;
miniBox4.b1_6.alpha = 0;
miniBox4.b1_7.alpha = 0;
miniBox4.b1_8.alpha = 0;
miniBox4.b1_9.alpha = 0;
miniBox5.b1_0.alpha = 0;
miniBox5.b1_1.alpha = 0;
miniBox5.b1_2.alpha = 0;
miniBox5.b1_3.alpha = 0;
miniBox5.b1_4.alpha = 0;
miniBox5.b1_5.alpha = 0;
miniBox5.b1_6.alpha = 0;
miniBox5.b1_7.alpha = 0;
miniBox5.b1_8.alpha = 0;
miniBox5.b1_9.alpha = 0;
miniBox1.alpha = 0;
miniBox5.alpha = 0;
miniBox4.alpha = 0;
miniBox3.alpha = 0;
miniBox2.alpha = 0;
miniBox1.gotoAndStop(1);
miniBox5.gotoAndStop(1);
miniBox4.gotoAndStop(1);
miniBox3.gotoAndStop(1);
miniBox2.gotoAndStop(1);
}
public function presentBox1():void{
var _local1:* = 0;
expression.gotoAndStop(2);
miniBox1.y = -84;
miniBox1.alpha = 1;
if (miniColorArray[_local1] == 1){
miniBox1.b1_1.alpha = 1;
miniBox1.b1_1.gotoAndStop(miniPatternArray[_local1]);
} else {
if (miniColorArray[_local1] == 2){
miniBox1.b1_2.alpha = 1;
miniBox1.b1_2.gotoAndStop(miniPatternArray[_local1]);
} else {
if (miniColorArray[_local1] == 3){
miniBox1.b1_3.alpha = 1;
miniBox1.b1_3.gotoAndStop(miniPatternArray[_local1]);
} else {
if (miniColorArray[_local1] == 4){
miniBox1.b1_4.alpha = 1;
miniBox1.b1_4.gotoAndStop(miniPatternArray[_local1]);
} else {
if (miniColorArray[_local1] == 5){
miniBox1.b1_5.alpha = 1;
miniBox1.b1_5.gotoAndStop(miniPatternArray[_local1]);
} else {
if (miniColorArray[_local1] == 6){
miniBox1.b1_6.alpha = 1;
miniBox1.b1_6.gotoAndStop(miniPatternArray[_local1]);
} else {
if (miniColorArray[_local1] == 7){
miniBox1.b1_7.alpha = 1;
miniBox1.b1_7.gotoAndStop(miniPatternArray[_local1]);
} else {
if (miniColorArray[_local1] == 8){
miniBox1.b1_8.alpha = 1;
miniBox1.b1_8.gotoAndStop(miniPatternArray[_local1]);
} else {
if (miniColorArray[_local1] == 9){
miniBox1.b1_9.alpha = 1;
miniBox1.b1_9.gotoAndStop(miniPatternArray[_local1]);
} else {
miniBox1.b1_0.alpha = 1;
miniBox1.b1_0.gotoAndStop(miniPatternArray[_local1]);
};
};
};
};
};
};
};
};
};
myTween1 = new Tween(miniBox1, "y", Strong.easeIn, -84, 282.1, 2, true);
myTween1.FPS = 40;
myTween1.addEventListener(TweenEvent.MOTION_FINISH, presentBox2);
}
public function presentBox2(_arg1:TweenEvent):void{
var _local2:* = 1;
miniBox2.y = -84;
miniBox2.alpha = 1;
if (miniColorArray[_local2] == 1){
miniBox2.b1_1.alpha = 1;
miniBox2.b1_1.gotoAndStop(miniPatternArray[_local2]);
} else {
if (miniColorArray[_local2] == 2){
miniBox2.b1_2.alpha = 1;
miniBox2.b1_2.gotoAndStop(miniPatternArray[_local2]);
} else {
if (miniColorArray[_local2] == 3){
miniBox2.b1_3.alpha = 1;
miniBox2.b1_3.gotoAndStop(miniPatternArray[_local2]);
} else {
if (miniColorArray[_local2] == 4){
miniBox2.b1_4.alpha = 1;
miniBox2.b1_4.gotoAndStop(miniPatternArray[_local2]);
} else {
if (miniColorArray[_local2] == 5){
miniBox2.b1_5.alpha = 1;
miniBox2.b1_5.gotoAndStop(miniPatternArray[_local2]);
} else {
if (miniColorArray[_local2] == 6){
miniBox2.b1_6.alpha = 1;
miniBox2.b1_6.gotoAndStop(miniPatternArray[_local2]);
} else {
if (miniColorArray[_local2] == 7){
miniBox2.b1_7.alpha = 1;
miniBox2.b1_7.gotoAndStop(miniPatternArray[_local2]);
} else {
if (miniColorArray[_local2] == 8){
miniBox2.b1_8.alpha = 1;
miniBox2.b1_8.gotoAndStop(miniPatternArray[_local2]);
} else {
if (miniColorArray[_local2] == 9){
miniBox2.b1_9.alpha = 1;
miniBox2.b1_9.gotoAndStop(miniPatternArray[_local2]);
} else {
miniBox2.b1_0.alpha = 1;
miniBox2.b1_0.gotoAndStop(miniPatternArray[_local2]);
};
};
};
};
};
};
};
};
};
myTween1 = new Tween(miniBox2, "y", Strong.easeIn, -84, 321.05, 2, true);
myTween1.FPS = 40;
myTween1.addEventListener(TweenEvent.MOTION_FINISH, presentBox3);
}
public function presentBox3(_arg1:TweenEvent):void{
var _local2:* = 2;
miniBox3.y = -84;
miniBox3.alpha = 1;
if (miniColorArray[_local2] == 1){
miniBox3.b1_1.alpha = 1;
miniBox3.b1_1.gotoAndStop(miniPatternArray[_local2]);
} else {
if (miniColorArray[_local2] == 2){
miniBox3.b1_2.alpha = 1;
miniBox3.b1_2.gotoAndStop(miniPatternArray[_local2]);
} else {
if (miniColorArray[_local2] == 3){
miniBox3.b1_3.alpha = 1;
miniBox3.b1_3.gotoAndStop(miniPatternArray[_local2]);
} else {
if (miniColorArray[_local2] == 4){
miniBox3.b1_4.alpha = 1;
miniBox3.b1_4.gotoAndStop(miniPatternArray[_local2]);
} else {
if (miniColorArray[_local2] == 5){
miniBox3.b1_5.alpha = 1;
miniBox3.b1_5.gotoAndStop(miniPatternArray[_local2]);
} else {
if (miniColorArray[_local2] == 6){
miniBox3.b1_6.alpha = 1;
miniBox3.b1_6.gotoAndStop(miniPatternArray[_local2]);
} else {
if (miniColorArray[_local2] == 7){
miniBox3.b1_7.alpha = 1;
miniBox3.b1_7.gotoAndStop(miniPatternArray[_local2]);
} else {
if (miniColorArray[_local2] == 8){
miniBox3.b1_8.alpha = 1;
miniBox3.b1_8.gotoAndStop(miniPatternArray[_local2]);
} else {
if (miniColorArray[_local2] == 9){
miniBox3.b1_9.alpha = 1;
miniBox3.b1_9.gotoAndStop(miniPatternArray[_local2]);
} else {
miniBox3.b1_0.alpha = 1;
miniBox3.b1_0.gotoAndStop(miniPatternArray[_local2]);
};
};
};
};
};
};
};
};
};
myTween1 = new Tween(miniBox3, "y", Strong.easeIn, -84, 358.55, 2, true);
myTween1.FPS = 40;
myTween1.addEventListener(TweenEvent.MOTION_FINISH, presentBox4);
}
public function presentBox4(_arg1:TweenEvent):void{
var _local2:* = 3;
miniBox4.y = -84;
miniBox4.alpha = 1;
if (miniColorArray[_local2] == 1){
miniBox4.b1_1.alpha = 1;
miniBox4.b1_1.gotoAndStop(miniPatternArray[_local2]);
} else {
if (miniColorArray[_local2] == 2){
miniBox4.b1_2.alpha = 1;
miniBox4.b1_2.gotoAndStop(miniPatternArray[_local2]);
} else {
if (miniColorArray[_local2] == 3){
miniBox4.b1_3.alpha = 1;
miniBox4.b1_3.gotoAndStop(miniPatternArray[_local2]);
} else {
if (miniColorArray[_local2] == 4){
miniBox4.b1_4.alpha = 1;
miniBox4.b1_4.gotoAndStop(miniPatternArray[_local2]);
} else {
if (miniColorArray[_local2] == 5){
miniBox4.b1_5.alpha = 1;
miniBox4.b1_5.gotoAndStop(miniPatternArray[_local2]);
} else {
if (miniColorArray[_local2] == 6){
miniBox4.b1_6.alpha = 1;
miniBox4.b1_6.gotoAndStop(miniPatternArray[_local2]);
} else {
if (miniColorArray[_local2] == 7){
miniBox4.b1_7.alpha = 1;
miniBox4.b1_7.gotoAndStop(miniPatternArray[_local2]);
} else {
if (miniColorArray[_local2] == 8){
miniBox4.b1_8.alpha = 1;
miniBox4.b1_8.gotoAndStop(miniPatternArray[_local2]);
} else {
if (miniColorArray[_local2] == 9){
miniBox4.b1_9.alpha = 1;
miniBox4.b1_9.gotoAndStop(miniPatternArray[_local2]);
} else {
miniBox4.b1_0.alpha = 1;
miniBox4.b1_0.gotoAndStop(miniPatternArray[_local2]);
};
};
};
};
};
};
};
};
};
myTween1 = new Tween(miniBox4, "y", Strong.easeIn, -84, 396, 2, true);
myTween1.FPS = 40;
myTween1.addEventListener(TweenEvent.MOTION_FINISH, presentBox5);
}
public function presentBox5(_arg1:TweenEvent):void{
var _local2:* = 4;
miniBox5.y = -84;
miniBox5.alpha = 1;
if (miniColorArray[_local2] == 1){
miniBox5.b1_1.alpha = 1;
miniBox5.b1_1.gotoAndStop(miniPatternArray[_local2]);
} else {
if (miniColorArray[_local2] == 2){
miniBox5.b1_2.alpha = 1;
miniBox5.b1_2.gotoAndStop(miniPatternArray[_local2]);
} else {
if (miniColorArray[_local2] == 3){
miniBox5.b1_3.alpha = 1;
miniBox5.b1_3.gotoAndStop(miniPatternArray[_local2]);
} else {
if (miniColorArray[_local2] == 4){
miniBox5.b1_4.alpha = 1;
miniBox5.b1_4.gotoAndStop(miniPatternArray[_local2]);
} else {
if (miniColorArray[_local2] == 5){
miniBox5.b1_5.alpha = 1;
miniBox5.b1_5.gotoAndStop(miniPatternArray[_local2]);
} else {
if (miniColorArray[_local2] == 6){
miniBox5.b1_6.alpha = 1;
miniBox5.b1_6.gotoAndStop(miniPatternArray[_local2]);
} else {
if (miniColorArray[_local2] == 7){
miniBox5.b1_7.alpha = 1;
miniBox5.b1_7.gotoAndStop(miniPatternArray[_local2]);
} else {
if (miniColorArray[_local2] == 8){
miniBox5.b1_8.alpha = 1;
miniBox5.b1_8.gotoAndStop(miniPatternArray[_local2]);
} else {
if (miniColorArray[_local2] == 9){
miniBox5.b1_9.alpha = 1;
miniBox5.b1_9.gotoAndStop(miniPatternArray[_local2]);
} else {
miniBox5.b1_0.alpha = 1;
miniBox5.b1_0.gotoAndStop(miniPatternArray[_local2]);
};
};
};
};
};
};
};
};
};
myTween1 = new Tween(miniBox5, "y", Strong.easeIn, -84, 433.35, 2, true);
myTween1.FPS = 40;
myTween1.addEventListener(TweenEvent.MOTION_FINISH, raiseLift);
}
public function raiseLift(_arg1:TweenEvent){
myTween5 = new Tween(expression, "y", None.easeNone, 128.6, 70.8, 2, true);
myTween5.FPS = 40;
myTween1 = new Tween(girlBase, "y", None.easeNone, 209.8, 151.8, 2, true);
myTween1.FPS = 40;
myTween2 = new Tween(legLeft, "y", None.easeNone, 413.7, 355.7, 2, true);
myTween2.FPS = 40;
myTween3 = new Tween(legRight, "y", None.easeNone, 426.35, 368.35, 2, true);
myTween3.FPS = 40;
myTween4 = new Tween(chair, "y", None.easeNone, 430.3, 372.3, 2, true);
myTween4.FPS = 40;
myTween4.addEventListener(TweenEvent.MOTION_FINISH, readyToSelect);
}
public function readyToSelect(_arg1:TweenEvent){
textCloud1.alpha = 1;
textCloud1.myText = "Ladies and Gentlemen!\nThe boxes are in place! Let's start...\nFEET ON FIRE!";
if (bLegRightOk == true){
miniBox1.gotoAndStop(15);
miniBox2.gotoAndPlay(2);
miniBox3.gotoAndPlay(2);
miniBox4.gotoAndPlay(2);
miniBox5.gotoAndPlay(2);
choosingPhase = 1;
} else {
miniBox1.gotoAndPlay(2);
miniBox2.gotoAndPlay(2);
miniBox3.gotoAndPlay(2);
miniBox4.gotoAndPlay(2);
miniBox5.gotoAndStop(15);
choosingPhase = 2;
};
}
public function activateBoxes():void{
textCloud1.alpha = 0;
choosingPhase = 0;
if (miniBox1.currentFrame != 16){
miniBox1.gotoAndStop(1);
};
if (miniBox2.currentFrame != 16){
miniBox2.gotoAndStop(1);
};
if (miniBox3.currentFrame != 16){
miniBox3.gotoAndStop(1);
};
if (miniBox4.currentFrame != 16){
miniBox4.gotoAndStop(1);
};
if (miniBox5.currentFrame != 16){
miniBox5.gotoAndStop(1);
};
activateHandle();
}
public function activateHandle():void{
expression.gotoAndStop(3);
myTween1 = new Tween(handle1, "rotation", None.easeNone, 0, 90, 1, true);
myTween1.FPS = 40;
myTween1.addEventListener(TweenEvent.MOTION_FINISH, releaseFluids);
}
public function releaseFluids(_arg1:TweenEvent):void{
pipe1.gotoAndStop(2);
myTween1 = new Tween(fluid1, "scaleY", None.easeNone, 0.257, 1, 2, true);
myTween1.FPS = 40;
myTween1.addEventListener(TweenEvent.MOTION_FINISH, doResults);
}
public function resetHandle():void{
handle1.rotation = 0;
fluid1.scaleY = 0.275;
pipe1.gotoAndStop(1);
}
public function doResults(_arg1:TweenEvent):void{
var _local2:* = 0;
var _local3:* = 0;
if (bLegLeftOk == true){
box1.alpha = 1;
armL1.alpha = 1;
armR1.alpha = 1;
_local2 = miniTypeArray[(boxChoiceLeft - 1)];
if (_local2 == 0){
footAniLeft = new foot();
footAniLeft.x = 235;
footAniLeft.y = 711;
addChild(footAniLeft);
footAniLeftType = 1;
roundWins = (roundWins + (10 * roundNumber));
} else {
if (_local2 == 1){
bLegLeftOk = false;
footAniLeft = new foot_1();
footAniLeft.x = 235;
footAniLeft.y = 711;
addChild(footAniLeft);
fireEquip1.alpha = 1;
fireEquip1.gotoAndPlay(2);
setChildIndex(fireEquip1, (numChildren - 1));
footAniLeftType = 2;
} else {
if (_local2 == 2){
bLegLeftOk = false;
footAniLeft = new foot_2();
footAniLeft.x = 235;
footAniLeft.y = 711;
addChild(footAniLeft);
guilotEquip1.alpha = 1;
guilotEquip1.gotoAndPlay(2);
setChildIndex(footAniLeft, (numChildren - 1));
footAniLeft.gotoAndPlay(2);
footAniLeftType = 0;
} else {
if (_local2 == 3){
bLegLeftOk = false;
footAniLeft = new foot_3();
footAniLeft.x = 235;
footAniLeft.y = 711;
addChild(footAniLeft);
pressEquip1.alpha = 1;
pressEquip1.gotoAndPlay(2);
setChildIndex(pressEquip1, (numChildren - 1));
footAniLeft.gotoAndPlay(2);
footAniLeftType = 0;
} else {
if (_local2 == 4){
bLegLeftOk = false;
footAniLeft = new foot_4();
footAniLeft.x = 235;
footAniLeft.y = 711;
addChild(footAniLeft);
acidEquip1.alpha = 1;
acidEquip1.gotoAndPlay(2);
setChildIndex(acidEquip1, (numChildren - 1));
setChildIndex(acidLayer1, (numChildren - 1));
acidLayer1.alpha = 0.45;
footAniLeftType = 2;
} else {
if (_local2 == 5){
bLegLeftOk = false;
footAniLeft = new foot_5();
footAniLeft.x = 235;
footAniLeft.y = 711;
addChild(footAniLeft);
fishEquip1.alpha = 1;
fishEquip1.gotoAndPlay(2);
setChildIndex(fishEquip1, (numChildren - 1));
setChildIndex(fishLayer1, (numChildren - 1));
fishLayer1.alpha = 0.45;
footAniLeftType = 2;
} else {
if (_local2 == 6){
bLegLeftOk = false;
footAniLeft = new foot_6();
footAniLeft.x = 235;
footAniLeft.y = 711;
addChild(footAniLeft);
fliesEquip1.alpha = 1;
fliesEquip1.gotoAndPlay(2);
setChildIndex(fliesEquip1, (numChildren - 1));
footAniLeftType = 2;
} else {
if (_local2 == 7){
bLegLeftOk = false;
footAniLeft = new foot_7();
footAniLeft.x = 235;
footAniLeft.y = 711;
addChild(footAniLeft);
frostEquip1.alpha = 1;
frostEquip1.gotoAndStop(2);
setChildIndex(footAniLeft, (numChildren - 1));
footAniLeft.gotoAndPlay(2);
footAniLeftType = 0;
} else {
bLegLeftOk = false;
footAniLeft = new foot_8();
footAniLeft.x = 235;
footAniLeft.y = 711;
addChild(footAniLeft);
knivesEquip1.alpha = 1;
knivesEquip1.gotoAndPlay(2);
setChildIndex(knivesEquip1, (numChildren - 1));
footAniLeftType = 2;
};
};
};
};
};
};
};
};
} else {
footAniLeft = new foot();
footAniLeft.alpha = 0;
addChild(footAniLeft);
footAniLeftType = 0;
};
if (bLegRightOk == true){
box.alpha = 1;
armL.alpha = 1;
armR.alpha = 1;
armL.scaleX = 1;
armR.scaleX = 1;
_local3 = miniTypeArray[(boxChoiceRight - 1)];
if (_local3 == 0){
footAniRight = new foot();
footAniRight.x = 590;
footAniRight.y = 711;
footAniRight.scaleX = -1;
addChild(footAniRight);
footAniRightType = 1;
roundWins = (roundWins + (10 * roundNumber));
} else {
if (_local3 == 1){
bLegRightOk = false;
footAniRight = new foot_1();
footAniRight.x = 590;
footAniRight.y = 711;
footAniRight.scaleX = -1;
addChild(footAniRight);
fireEquip2.alpha = 1;
fireEquip2.gotoAndPlay(2);
setChildIndex(fireEquip2, (numChildren - 1));
footAniRightType = 2;
} else {
if (_local3 == 2){
bLegRightOk = false;
footAniRight = new foot_2();
footAniRight.x = 590;
footAniRight.y = 711;
footAniRight.scaleX = -1;
addChild(footAniRight);
guilotEquip2.alpha = 1;
guilotEquip2.gotoAndPlay(2);
setChildIndex(footAniRight, (numChildren - 1));
footAniRight.gotoAndPlay(2);
footAniRightType = 0;
} else {
if (_local3 == 3){
bLegRightOk = false;
footAniRight = new foot_3();
footAniRight.x = 590;
footAniRight.y = 711;
footAniRight.scaleX = -1;
addChild(footAniRight);
pressEquip2.alpha = 1;
pressEquip2.gotoAndPlay(2);
setChildIndex(pressEquip2, (numChildren - 1));
footAniRight.gotoAndPlay(2);
footAniRightType = 0;
} else {
if (_local3 == 4){
bLegRightOk = false;
footAniRight = new foot_4();
footAniRight.x = 590;
footAniRight.y = 711;
footAniRight.scaleX = -1;
addChild(footAniRight);
acidEquip2.alpha = 1;
acidEquip2.gotoAndPlay(2);
setChildIndex(acidEquip2, (numChildren - 1));
setChildIndex(acidLayer2, (numChildren - 1));
acidLayer2.alpha = 0.45;
footAniRightType = 2;
} else {
if (_local3 == 5){
bLegRightOk = false;
footAniRight = new foot_5();
footAniRight.x = 590;
footAniRight.y = 711;
footAniRight.scaleX = -1;
addChild(footAniRight);
fishEquip2.alpha = 1;
fishEquip2.gotoAndPlay(2);
setChildIndex(fishEquip2, (numChildren - 1));
setChildIndex(fishLayer2, (numChildren - 1));
fishLayer2.alpha = 0.45;
footAniRightType = 2;
} else {
if (_local3 == 6){
bLegRightOk = false;
footAniRight = new foot_6();
footAniRight.x = 590;
footAniRight.y = 711;
footAniRight.scaleX = -1;
addChild(footAniRight);
fliesEquip2.alpha = 1;
fliesEquip2.gotoAndPlay(2);
setChildIndex(fliesEquip2, (numChildren - 1));
footAniRightType = 2;
} else {
if (_local3 == 7){
bLegRightOk = false;
footAniRight = new foot_7();
footAniRight.x = 590;
footAniRight.y = 711;
footAniRight.scaleX = -1;
addChild(footAniRight);
frostEquip2.alpha = 1;
frostEquip2.gotoAndStop(2);
setChildIndex(footAniRight, (numChildren - 1));
footAniRight.gotoAndPlay(2);
footAniRightType = 0;
} else {
bLegRightOk = false;
footAniRight = new foot_8();
footAniRight.x = 590;
footAniRight.y = 711;
footAniRight.scaleX = -1;
addChild(footAniRight);
knivesEquip2.alpha = 1;
knivesEquip2.gotoAndPlay(2);
setChildIndex(knivesEquip2, (numChildren - 1));
footAniRightType = 2;
};
};
};
};
};
};
};
};
} else {
footAniRight = new foot();
footAniRight.alpha = 0;
addChild(footAniRight);
footAniRightType = 0;
};
cashAmount = (cashAmount + roundWins);
if (roundWins > 0){
winDialog.alpha = 1;
winDialog.winText.text = (("$ " + roundWins) + "!");
table1.txtCash.text = ("$ " + cashAmount);
} else {
winDialog.gotoAndStop(2);
winDialog.alpha = 1;
table1.txtCash.text = ("$ " + cashAmount);
expression.gotoAndStop(12);
action = "GameOver";
};
if (miniTypeArray[0] == 0){
miniBox1.gotoAndStop(2);
};
if (miniTypeArray[0] == 1){
miniBox1.gotoAndStop(18);
};
if ((((miniTypeArray[0] == 2)) && ((((boxChoiceLeft == 1)) || ((boxChoiceRight == 1)))))){
miniBox1.gotoAndStop(19);
};
if ((((miniTypeArray[0] == 3)) && ((((boxChoiceLeft == 1)) || ((boxChoiceRight == 1)))))){
miniBox1.gotoAndStop(19);
};
if (miniTypeArray[0] == 4){
miniBox1.gotoAndStop(20);
};
if (miniTypeArray[0] == 5){
miniBox1.gotoAndStop(21);
};
if (miniTypeArray[0] == 7){
miniBox1.gotoAndStop(22);
};
if ((((miniTypeArray[0] == 8)) && ((((boxChoiceLeft == 1)) || ((boxChoiceRight == 1)))))){
miniBox1.gotoAndStop(19);
};
if (miniTypeArray[1] == 0){
miniBox2.gotoAndStop(2);
};
if (miniTypeArray[1] == 1){
miniBox2.gotoAndStop(18);
};
if ((((miniTypeArray[1] == 2)) && ((((boxChoiceLeft == 2)) || ((boxChoiceRight == 2)))))){
miniBox2.gotoAndStop(19);
};
if ((((miniTypeArray[1] == 3)) && ((((boxChoiceLeft == 2)) || ((boxChoiceRight == 2)))))){
miniBox2.gotoAndStop(19);
};
if (miniTypeArray[1] == 4){
miniBox2.gotoAndStop(20);
};
if (miniTypeArray[1] == 5){
miniBox2.gotoAndStop(21);
};
if (miniTypeArray[1] == 7){
miniBox2.gotoAndStop(22);
};
if ((((miniTypeArray[1] == 8)) && ((((boxChoiceLeft == 2)) || ((boxChoiceRight == 2)))))){
miniBox2.gotoAndStop(19);
};
if (miniTypeArray[2] == 0){
miniBox3.gotoAndStop(2);
};
if (miniTypeArray[2] == 1){
miniBox3.gotoAndStop(18);
};
if ((((miniTypeArray[2] == 2)) && ((((boxChoiceLeft == 3)) || ((boxChoiceRight == 3)))))){
miniBox3.gotoAndStop(19);
};
if ((((miniTypeArray[2] == 3)) && ((((boxChoiceLeft == 3)) || ((boxChoiceRight == 3)))))){
miniBox3.gotoAndStop(19);
};
if (miniTypeArray[2] == 4){
miniBox3.gotoAndStop(20);
};
if (miniTypeArray[2] == 5){
miniBox3.gotoAndStop(21);
};
if (miniTypeArray[2] == 7){
miniBox3.gotoAndStop(22);
};
if ((((miniTypeArray[2] == 8)) && ((((boxChoiceLeft == 3)) || ((boxChoiceRight == 3)))))){
miniBox3.gotoAndStop(19);
};
if (miniTypeArray[3] == 0){
miniBox4.gotoAndStop(2);
};
if (miniTypeArray[3] == 1){
miniBox4.gotoAndStop(18);
};
if ((((miniTypeArray[3] == 2)) && ((((boxChoiceLeft == 4)) || ((boxChoiceRight == 4)))))){
miniBox4.gotoAndStop(19);
};
if ((((miniTypeArray[3] == 3)) && ((((boxChoiceLeft == 4)) || ((boxChoiceRight == 4)))))){
miniBox4.gotoAndStop(19);
};
if (miniTypeArray[3] == 4){
miniBox4.gotoAndStop(20);
};
if (miniTypeArray[3] == 5){
miniBox4.gotoAndStop(21);
};
if (miniTypeArray[3] == 7){
miniBox4.gotoAndStop(22);
};
if ((((miniTypeArray[3] == 8)) && ((((boxChoiceLeft == 4)) || ((boxChoiceRight == 4)))))){
miniBox4.gotoAndStop(19);
};
if (miniTypeArray[4] == 0){
miniBox5.gotoAndStop(2);
};
if (miniTypeArray[4] == 1){
miniBox5.gotoAndStop(18);
};
if ((((miniTypeArray[4] == 2)) && ((((boxChoiceLeft == 5)) || ((boxChoiceRight == 5)))))){
miniBox5.gotoAndStop(19);
};
if ((((miniTypeArray[4] == 3)) && ((((boxChoiceLeft == 5)) || ((boxChoiceRight == 5)))))){
miniBox5.gotoAndStop(19);
};
if (miniTypeArray[4] == 4){
miniBox5.gotoAndStop(20);
};
if (miniTypeArray[4] == 5){
miniBox5.gotoAndStop(21);
};
if (miniTypeArray[4] == 7){
miniBox5.gotoAndStop(22);
};
if ((((miniTypeArray[4] == 8)) && ((((boxChoiceLeft == 5)) || ((boxChoiceRight == 5)))))){
miniBox5.gotoAndStop(19);
};
if ((((_local2 == 0)) && ((_local3 == 0)))){
expression.gotoAndStop(1);
} else {
if (Math.floor((Math.random() * 10)) < 4){
expression.gotoAndPlay(4);
} else {
expression.gotoAndPlay(7);
};
};
action = "Final";
}
public function startRound():void{
if (roundWins > 0){
expression.gotoAndStop(1);
} else {
expression.gotoAndStop(10);
};
choosingPhase = 0;
boxChoiceLeft = 9;
boxChoiceRight = 9;
amountOfEmpties = 0;
roundWins = 0;
resetHandle();
bFootFallOff = false;
bFootPain = false;
bFootUncomfort = false;
bFootTickled = false;
boxTypeArray = [];
boxColorArray = [];
boxPatternArray = [];
miniTypeArray = [99, 99, 99, 99, 99];
miniColorArray = [99, 99, 99, 99, 99];
miniPatternArray = [99, 99, 99, 99, 99];
roundNumber++;
boxAmount = (boxAmount + 2);
hideAllCovers();
table1.txtRound.text = roundNumber;
table1.txtBoxes.text = boxAmount;
table1.txtCash.text = ("$ " + cashAmount);
if (bLegRightOk == true){
legRight.gotoAndStop(1);
} else {
legRight.gotoAndStop(2);
};
if (bLegLeftOk == true){
legLeft.gotoAndStop(1);
} else {
legLeft.gotoAndStop(2);
};
rollerband.alpha = 1;
rollerband.stop();
door.x = 293.5;
door.y = 698;
addChild(door);
action = "showBox";
}
public function overBox(_arg1:MouseEvent):void{
if ((((((action == "showingBoxInProgress")) || ((action == "gameOver")))) && ((((_arg1.target.name == "girlBase")) || ((_arg1.target.name == "legRight")))))){
expression.gotoAndStop(11);
if (bLegLeftOk == true){
legLeft.gotoAndStop(3);
} else {
legLeft.gotoAndStop(12);
};
if (bLegRightOk == true){
legRight.gotoAndStop(6);
} else {
legRight.gotoAndStop(12);
};
};
if (choosingPhase == 1){
if (_arg1.target.name == "miniBox2"){
legRight.gotoAndStop(3);
};
if (_arg1.target.name == "miniBox3"){
legRight.gotoAndStop(4);
};
if (_arg1.target.name == "miniBox4"){
legRight.gotoAndStop(5);
};
if (_arg1.target.name == "miniBox5"){
legRight.gotoAndStop(6);
};
};
if (choosingPhase == 2){
if (_arg1.target.name == "miniBox1"){
legLeft.gotoAndStop(3);
};
if (_arg1.target.name == "miniBox2"){
if (boxChoiceRight > 2){
legLeft.gotoAndStop(4);
};
};
if (_arg1.target.name == "miniBox3"){
if (boxChoiceRight > 3){
legLeft.gotoAndStop(5);
};
};
if (_arg1.target.name == "miniBox4"){
if (boxChoiceRight > 4){
legLeft.gotoAndStop(6);
};
};
};
}
public function mouseClicked(_arg1:MouseEvent):void{
if (choosingPhase == 2){
if ((((_arg1.target.name == "miniBox2")) && ((boxChoiceRight > 2)))){
boxChoiceLeft = 2;
miniBox2.gotoAndStop(16);
legLeft.gotoAndStop(8);
choosingPhase = 9;
activateBoxes();
} else {
if ((((_arg1.target.name == "miniBox3")) && ((boxChoiceRight > 3)))){
boxChoiceLeft = 3;
miniBox3.gotoAndStop(16);
legLeft.gotoAndStop(9);
choosingPhase = 9;
activateBoxes();
} else {
if ((((_arg1.target.name == "miniBox4")) && ((boxChoiceRight > 4)))){
boxChoiceLeft = 4;
miniBox4.gotoAndStop(16);
legLeft.gotoAndStop(10);
choosingPhase = 9;
activateBoxes();
} else {
if (_arg1.target.name == "miniBox1"){
boxChoiceLeft = 1;
miniBox1.gotoAndStop(16);
legLeft.gotoAndStop(7);
choosingPhase = 9;
activateBoxes();
};
};
};
};
};
if (choosingPhase == 1){
if (_arg1.target.name == "miniBox2"){
boxChoiceRight = 2;
legRight.gotoAndStop(7);
miniBox2.gotoAndStop(16);
if (bLegLeftOk == true){
choosingPhase++;
} else {
activateBoxes();
};
} else {
if (_arg1.target.name == "miniBox3"){
boxChoiceRight = 3;
legRight.gotoAndStop(8);
miniBox3.gotoAndStop(16);
if (bLegLeftOk == true){
choosingPhase++;
} else {
activateBoxes();
};
} else {
if (_arg1.target.name == "miniBox4"){
boxChoiceRight = 4;
legRight.gotoAndStop(9);
miniBox4.gotoAndStop(16);
if (bLegLeftOk == true){
choosingPhase++;
} else {
activateBoxes();
};
} else {
if (_arg1.target.name == "miniBox5"){
boxChoiceRight = 5;
legRight.gotoAndStop(10);
miniBox5.gotoAndStop(16);
if (bLegLeftOk == true){
choosingPhase++;
} else {
activateBoxes();
};
};
};
};
};
if (choosingPhase == 2){
miniBox1.gotoAndPlay(2);
if (boxChoiceRight > 2){
miniBox2.gotoAndPlay(2);
} else {
if (miniBox2.currentFrame != 16){
miniBox2.gotoAndStop(15);
};
};
if (boxChoiceRight > 3){
miniBox2.gotoAndPlay(2);
} else {
if (miniBox3.currentFrame != 16){
miniBox3.gotoAndStop(15);
};
};
if (boxChoiceRight > 4){
miniBox2.gotoAndPlay(2);
} else {
if (miniBox4.currentFrame != 16){
miniBox4.gotoAndStop(15);
};
};
if (miniBox5.currentFrame != 16){
miniBox5.gotoAndStop(15);
};
};
};
if ((((action == "Final")) && ((_arg1.target.name == "winDialog")))){
action = "none";
footAniLeftType = 0;
footAniRightType = 0;
door.gotoAndStop(1);
removeChild(footAniLeft);
removeChild(footAniRight);
box.alpha = 0;
box1.alpha = 0;
armL1.alpha = 0;
armR1.alpha = 0;
hideAllCovers();
removeAllEquipments();
resetHandle();
if (bLegLeftOk == true){
legLeft.gotoAndStop(1);
} else {
legLeft.gotoAndStop(2);
};
if (bLegRightOk == true){
legRight.gotoAndStop(1);
} else {
legRight.gotoAndStop(2);
};
winDialog.alpha = 0;
returnLift();
};
}
public function returnLift():void{
expression.gotoAndStop(2);
myTween5 = new Tween(expression, "y", None.easeNone, 70.8, 128.6, 2, true);
myTween5.FPS = 40;
myTween1 = new Tween(girlBase, "y", None.easeNone, 151.8, 209.8, 2, true);
myTween1.FPS = 40;
myTween2 = new Tween(legLeft, "y", None.easeNone, 355.7, 413.7, 2, true);
myTween2.FPS = 40;
myTween3 = new Tween(legRight, "y", None.easeNone, 368.35, 426.35, 2, true);
myTween3.FPS = 40;
myTween4 = new Tween(chair, "y", None.easeNone, 372.3, 430.3, 2, true);
myTween4.FPS = 40;
myTween4.addEventListener(TweenEvent.MOTION_FINISH, liftBackAndReady);
}
public function liftBackAndReady(_arg1:TweenEvent):void{
if ((((bLegLeftOk == false)) && ((bLegRightOk == false)))){
legLeft.gotoAndStop(2);
legRight.gotoAndStop(2);
action = "gameOver";
} else {
startRound();
};
}
public function offBox(_arg1:MouseEvent):void{
if ((((((action == "showingBoxInProgress")) || ((action == "gameOver")))) && ((_arg1.target.name == "girlBase")))){
if (action == "gameOver"){
expression.gotoAndStop(12);
} else {
expression.gotoAndStop(2);
};
if (bLegLeftOk == true){
legLeft.gotoAndStop(1);
} else {
legLeft.gotoAndStop(2);
};
if (bLegRightOk == true){
legRight.gotoAndStop(1);
} else {
legRight.gotoAndStop(2);
};
};
if (choosingPhase == 1){
if (bLegRightOk == true){
legRight.gotoAndStop(1);
} else {
legRight.gotoAndStop(2);
};
};
if (choosingPhase == 2){
if (bLegLeftOk == true){
legLeft.gotoAndStop(1);
} else {
legLeft.gotoAndStop(2);
};
};
}
public function showBox():void{
doorOpen();
closeDoor();
}
public function doorOpen():void{
var _local1:uint;
removeChild(door);
rollerband.stop();
_local1 = Math.floor((Math.random() * 10));
if (_local1 == 1){
door = new c_wb();
} else {
if (_local1 == 2){
door = new c_wr();
} else {
if (_local1 == 3){
door = new c_wy();
} else {
if (_local1 == 4){
door = new c_by();
} else {
if (_local1 == 5){
door = new c_rb();
} else {
if (_local1 == 6){
door = new c_yr();
} else {
if (_local1 == 7){
door = new c_ob();
} else {
if (_local1 == 8){
door = new c_or();
} else {
if (_local1 == 9){
door = new c_oy();
} else {
door = new c_ow();
};
};
};
};
};
};
};
};
};
boxColorArray.push(_local1);
armL.scaleX = 1;
armR.scaleX = 1;
armL.alpha = 1;
armR.alpha = 1;
door.gotoAndStop(1);
door.x = 293.5;
door.y = 698;
door.scaleX = 1;
fakebox.alpha = 0;
box.alpha = 1;
addChild(door);
pickEquipment();
}
public function closeDoor():void{
myTween1 = new Tween(armL, "scaleX", None.easeNone, 1, 0.7, 2, true);
myTween1.FPS = 40;
myTween2 = new Tween(armR, "scaleX", None.easeNone, 1, 0.7, 2, true);
myTween2.FPS = 40;
myTween1.addEventListener(TweenEvent.MOTION_FINISH, startClosingDoor);
}
public function startClosingDoor(_arg1:TweenEvent):void{
myTween1 = new Tween(door, "scaleX", None.easeNone, 1, 0, 0.75, true);
myTween1.FPS = 40;
myTween2 = new Tween(door, "x", None.easeNone, 293.5, 441.5, 0.75, true);
myTween2.FPS = 40;
myTween1.addEventListener(TweenEvent.MOTION_FINISH, doorHalfWay);
}
public function doorHalfWay(_arg1:TweenEvent):void{
myTween1 = new Tween(door, "scaleX", None.easeNone, 0, 1, 0.75, true);
myTween1.FPS = 40;
var _local2:uint = Math.ceil(((Math.random() * 15) + 1));
door.gotoAndStop(_local2);
boxPatternArray.push(_local2);
myTween2 = new Tween(door, "x", None.easeNone, 441.5, 589.45, 0.75, true);
myTween2.FPS = 40;
myTween1.addEventListener(TweenEvent.MOTION_FINISH, doorIsClosed);
}
public function doorIsClosed(_arg1:TweenEvent):void{
if (Math.floor((Math.random() * 2)) == 0){
expression.gotoAndStop(10);
} else {
expression.gotoAndStop(2);
};
if (bLegLeftOk == true){
legLeft.gotoAndStop(1);
} else {
legLeft.gotoAndStop(2);
};
if (bLegRightOk == true){
legRight.gotoAndStop(1);
} else {
legRight.gotoAndStop(2);
};
fakebox.alpha = 1;
removeAllEquipments();
box.alpha = 0;
rollerband.play();
myTween1 = new Tween(fakebox, "x", Strong.easeIn, 433, -318, 1, true);
myTween1.FPS = 40;
myTween2 = new Tween(door, "x", Strong.easeIn, 591, -170, 1, true);
myTween2.FPS = 40;
myTween1.addEventListener(TweenEvent.MOTION_FINISH, boxMoved);
}
public function boxMoved(_arg1:TweenEvent):void{
if (boxTypeArray.length < boxAmount){
action = "showBox";
} else {
pickFiveBoxes();
action = "presentBoxes";
rollerband.alpha = 0;
};
}
public function pickFiveBoxes():void{
var _local1:uint;
var _local2:uint = 99;
var _local3:uint = 3;
if (roundNumber > 2){
_local3 = 2;
};
if (_local3 > amountOfEmpties){
_local3 = amountOfEmpties;
};
var _local4:uint;
while (_local4 < 5) {
_local2 = 99;
while (_local2 == 99) {
_local1 = Math.floor((Math.random() * 5));
if (miniTypeArray[_local1] == 99){
_local2 = _local1;
};
};
if (_local3 > 0){
_local3--;
pickEmptyCell(_local1);
} else {
pickFullCell(_local1);
};
_local4++;
};
presentBox1();
}
public function pickEmptyCell(_arg1:uint):void{
var _local2:uint;
var _local3:Boolean;
while (_local3 == false) {
_local2 = Math.floor((Math.random() * boxTypeArray.length));
if (boxTypeArray[_local2] == 0){
_local3 = true;
miniTypeArray[_arg1] = boxTypeArray[_local2];
miniColorArray[_arg1] = boxColorArray[_local2];
miniPatternArray[_arg1] = boxPatternArray[_local2];
boxTypeArray.splice(_local2, 1);
boxColorArray.splice(_local2, 1);
boxPatternArray.splice(_local2, 1);
};
};
}
public function pickFullCell(_arg1:uint):void{
var _local2:uint;
var _local3:Boolean;
while (_local3 == false) {
_local2 = Math.floor((Math.random() * boxTypeArray.length));
if (boxTypeArray[_local2] != 0){
_local3 = true;
miniTypeArray[_arg1] = boxTypeArray[_local2];
miniColorArray[_arg1] = boxColorArray[_local2];
miniPatternArray[_arg1] = boxPatternArray[_local2];
boxTypeArray.splice(_local2, 1);
boxColorArray.splice(_local2, 1);
boxPatternArray.splice(_local2, 1);
};
};
}
public function removeAllEquipments():void{
armL.alpha = 0;
armR.alpha = 0;
fireEquip2.alpha = 0;
fireEquip2.gotoAndStop(1);
guilotEquip2.alpha = 0;
guilotEquip2.gotoAndStop(1);
pressEquip2.alpha = 0;
pressEquip2.gotoAndStop(1);
acidEquip2.alpha = 0;
acidEquip2.gotoAndStop(1);
fishEquip2.alpha = 0;
fishEquip2.gotoAndStop(1);
fliesEquip2.alpha = 0;
fliesEquip2.gotoAndStop(1);
frostEquip2.alpha = 0;
frostEquip2.gotoAndStop(1);
knivesEquip2.alpha = 0;
knivesEquip2.gotoAndStop(1);
armL1.alpha = 0;
armR1.alpha = 0;
fireEquip1.alpha = 0;
fireEquip1.gotoAndStop(1);
guilotEquip1.alpha = 0;
guilotEquip1.gotoAndStop(1);
pressEquip1.alpha = 0;
pressEquip1.gotoAndStop(1);
acidEquip1.alpha = 0;
acidEquip1.gotoAndStop(1);
fishEquip1.alpha = 0;
fishEquip1.gotoAndStop(1);
fliesEquip1.alpha = 0;
fliesEquip1.gotoAndStop(1);
frostEquip1.alpha = 0;
frostEquip1.gotoAndStop(1);
knivesEquip1.alpha = 0;
knivesEquip1.gotoAndStop(1);
acidLayer1.alpha = 0;
fishLayer1.alpha = 0;
acidLayer2.alpha = 0;
fishLayer2.alpha = 0;
}
public function pickEquipment():void{
var _local1:uint;
if (amountOfEmpties > (4 + Math.floor((roundNumber / 3)))){
_local1 = Math.ceil((Math.random() * equipmentVariations));
} else {
if ((((boxTypeArray.length == 4)) && ((amountOfEmpties == 0)))){
_local1 = 0;
} else {
if ((((boxTypeArray.length == 8)) && ((amountOfEmpties < 2)))){
_local1 = 0;
} else {
if ((((boxTypeArray.length == 12)) && ((amountOfEmpties < 3)))){
_local1 = 0;
} else {
_local1 = Math.floor((Math.random() * (equipmentVariations + 1)));
};
};
};
};
boxTypeArray.push(_local1);
if (_local1 == 0){
amountOfEmpties++;
};
if (_local1 == 1){
fireEquip2.alpha = 1;
};
if (_local1 == 2){
guilotEquip2.alpha = 1;
};
if (_local1 == 3){
pressEquip2.alpha = 1;
};
if (_local1 == 4){
acidEquip2.alpha = 1;
};
if (_local1 == 5){
fishEquip2.alpha = 1;
};
if (_local1 == 6){
fliesEquip2.alpha = 1;
};
if (_local1 == 7){
frostEquip2.alpha = 1;
};
if (_local1 == 8){
knivesEquip2.alpha = 1;
};
}
public function timer1():void{
if (action == "showBox"){
action = "showingBoxInProgress";
showBox();
};
if (footAniLeftType == 1){
if (Math.floor((Math.random() * 4)) == 1){
footAniLeft.gotoAndStop(Math.ceil((Math.random() * 8)));
};
} else {
if (footAniLeftType == 2){
footAniLeft.gotoAndStop(Math.ceil((Math.random() * 8)));
};
};
if (footAniRightType == 1){
if (Math.floor((Math.random() * 4)) == 1){
footAniRight.gotoAndStop(Math.ceil((Math.random() * 8)));
};
} else {
if (footAniRightType == 2){
footAniRight.gotoAndStop(Math.ceil((Math.random() * 8)));
};
};
}
function frame1(){
stop();
this.loaderInfo.addEventListener(ProgressEvent.PROGRESS, onProgress);
this.loaderInfo.addEventListener(Event.COMPLETE, onComplete);
}
function frame2(){
myInterval = setInterval(timer1, 300);
action = "";
door = new c_ow();
bLegLeftOk = true;
bLegRightOk = true;
choosingPhase = 0;
boxChoiceLeft = 9;
boxChoiceRight = 9;
footAniLeft = new foot();
footAniRight = new foot();
footAniLeftType = 0;
footAniRightType = 0;
girlBase.gotoAndStop(Math.ceil((Math.random() * 14)));
setChildIndex(table1top, 0);
setChildIndex(table1, 0);
setChildIndex(legRight, 0);
setChildIndex(legLeft, 0);
setChildIndex(expression, 0);
setChildIndex(girlBase, 0);
setChildIndex(chair, 0);
bFootFallOff = false;
bFootPain = false;
bFootUncomfort = false;
bFootTickled = false;
boxTypeArray = [];
boxColorArray = [];
boxPatternArray = [];
miniTypeArray = [99, 99, 99, 99, 99];
miniColorArray = [99, 99, 99, 99, 99];
miniPatternArray = [99, 99, 99, 99, 99];
boxAmount = 8;
amountOfEmpties = 0;
roundNumber = 0;
cashAmount = 0;
roundWins = 0;
equipmentVariations = 8;
addEventListener(MouseEvent.MOUSE_OVER, overBox);
addEventListener(MouseEvent.MOUSE_OUT, offBox);
addEventListener(MouseEvent.CLICK, mouseClicked);
startRound();
}
}
}//package FoF_fla
Section 16
//miniBox_23 (FoF_fla.miniBox_23)
package FoF_fla {
import flash.display.*;
public dynamic class miniBox_23 extends MovieClip {
public var b1_3:c_wy;
public var b1_4:c_by;
public var b1_5:c_rb;
public var b1_6:c_yr;
public var b1_7:c_ob;
public var b1_8:c_or;
public var b1_9:c_oy;
public var b1_0:c_ow;
public var b1_1:c_wb;
public var b1_2:c_wr;
public function miniBox_23(){
addFrameScript(0, frame1, 13, frame14, 14, frame15, 15, frame16, 17, frame18);
}
function frame1(){
stop();
}
function frame14(){
gotoAndPlay(2);
}
function frame15(){
stop();
}
function frame16(){
stop();
}
function frame18(){
}
}
}//package FoF_fla
Section 17
//pipe1_22 (FoF_fla.pipe1_22)
package FoF_fla {
import flash.display.*;
public dynamic class pipe1_22 extends MovieClip {
public function pipe1_22(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package FoF_fla
Section 18
//winDialog_39 (FoF_fla.winDialog_39)
package FoF_fla {
import flash.display.*;
import flash.text.*;
public dynamic class winDialog_39 extends MovieClip {
public var winText:TextField;
public function winDialog_39(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package FoF_fla
Section 19
//c_by (c_by)
package {
import flash.display.*;
public dynamic class c_by extends MovieClip {
public function c_by(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 20
//c_ob (c_ob)
package {
import flash.display.*;
public dynamic class c_ob extends MovieClip {
public function c_ob(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 21
//c_or (c_or)
package {
import flash.display.*;
public dynamic class c_or extends MovieClip {
public function c_or(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 22
//c_ow (c_ow)
package {
import flash.display.*;
public dynamic class c_ow extends MovieClip {
public function c_ow(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 23
//c_oy (c_oy)
package {
import flash.display.*;
public dynamic class c_oy extends MovieClip {
public function c_oy(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 24
//c_rb (c_rb)
package {
import flash.display.*;
public dynamic class c_rb extends MovieClip {
public function c_rb(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 25
//c_wb (c_wb)
package {
import flash.display.*;
public dynamic class c_wb extends MovieClip {
public function c_wb(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 26
//c_wr (c_wr)
package {
import flash.display.*;
public dynamic class c_wr extends MovieClip {
public function c_wr(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 27
//c_wy (c_wy)
package {
import flash.display.*;
public dynamic class c_wy extends MovieClip {
public function c_wy(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 28
//c_yr (c_yr)
package {
import flash.display.*;
public dynamic class c_yr extends MovieClip {
public function c_yr(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 29
//foot (foot)
package {
import flash.display.*;
public dynamic class foot extends MovieClip {
public function foot(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 30
//foot_1 (foot_1)
package {
import flash.display.*;
public dynamic class foot_1 extends MovieClip {
public function foot_1(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 31
//foot_2 (foot_2)
package {
import flash.display.*;
public dynamic class foot_2 extends MovieClip {
}
}//package
Section 32
//foot_3 (foot_3)
package {
import flash.display.*;
public dynamic class foot_3 extends MovieClip {
public function foot_3(){
addFrameScript(0, frame1, 51, frame52);
}
function frame1(){
stop();
}
function frame52(){
stop();
}
}
}//package
Section 33
//foot_4 (foot_4)
package {
import flash.display.*;
public dynamic class foot_4 extends MovieClip {
public function foot_4(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 34
//foot_5 (foot_5)
package {
import flash.display.*;
public dynamic class foot_5 extends MovieClip {
public function foot_5(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 35
//foot_6 (foot_6)
package {
import flash.display.*;
public dynamic class foot_6 extends MovieClip {
public function foot_6(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 36
//foot_7 (foot_7)
package {
import flash.display.*;
public dynamic class foot_7 extends MovieClip {
public function foot_7(){
addFrameScript(0, frame1, 44, frame45);
}
function frame1(){
stop();
}
function frame45(){
stop();
}
}
}//package
Section 37
//foot_8 (foot_8)
package {
import flash.display.*;
public dynamic class foot_8 extends MovieClip {
public function foot_8(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 38
//introLogo (introLogo)
package {
import flash.display.*;
public dynamic class introLogo extends MovieClip {
}
}//package
Section 39
//introStartButton (introStartButton)
package {
import flash.display.*;
public dynamic class introStartButton extends MovieClip {
}
}//package
Section 40
//movie_mc (movie_mc)
package {
import flash.display.*;
public dynamic class movie_mc extends MovieClip {
}
}//package