Section 1
//mp3 (arms_move_1.mp3)
package arms_move_1 {
import flash.media.*;
public dynamic class mp3 extends Sound {
}
}//package arms_move_1
Section 2
//mp3 (arms_move_2.mp3)
package arms_move_2 {
import flash.media.*;
public dynamic class mp3 extends Sound {
}
}//package arms_move_2
Section 3
//anim_btn_arrowhead1_325 (build_fla.anim_btn_arrowhead1_325)
package build_fla {
import flash.display.*;
public dynamic class anim_btn_arrowhead1_325 extends MovieClip {
public function anim_btn_arrowhead1_325(){
addFrameScript(0, frame1, 16, frame17);
}
function frame1(){
}
function frame17(){
gotoAndPlay(1);
}
}
}//package build_fla
Section 4
//anim_btn_arrowhead1_326 (build_fla.anim_btn_arrowhead1_326)
package build_fla {
import flash.display.*;
public dynamic class anim_btn_arrowhead1_326 extends MovieClip {
public function anim_btn_arrowhead1_326(){
addFrameScript(0, frame1, 16, frame17);
}
function frame1(){
}
function frame17(){
gotoAndPlay(1);
}
}
}//package build_fla
Section 5
//anim_indicatorRoompanel_295 (build_fla.anim_indicatorRoompanel_295)
package build_fla {
import flash.display.*;
public dynamic class anim_indicatorRoompanel_295 extends MovieClip {
public var panel:MovieClip;
public function anim_indicatorRoompanel_295(){
addFrameScript(0, frame1, 17, frame18);
}
function frame18(){
stop();
}
function frame1(){
stop();
}
}
}//package build_fla
Section 6
//anim_speaker_177 (build_fla.anim_speaker_177)
package build_fla {
import flash.display.*;
public dynamic class anim_speaker_177 extends MovieClip {
public function anim_speaker_177(){
addFrameScript(0, frame1, 74, frame75);
}
function frame75(){
gotoAndPlay("cycle");
}
function frame1(){
stop();
}
}
}//package build_fla
Section 7
//arm_body_left_102 (build_fla.arm_body_left_102)
package build_fla {
import flash.events.*;
import flash.utils.*;
import flash.media.*;
import flash.display.*;
import flash.geom.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class arm_body_left_102 extends MovieClip {
public var wing_sh:MovieClip;
public var mom;
public var bumper_bot:MovieClip;
public var arm_s1e1:MovieClip;
public var vacuum_sh:MovieClip;
public var claw_sh:MovieClip;
public var vacuum_bot:MovieClip;
public var bounce_sh:MovieClip;
public var arm_s3e2:MovieClip;
public var bounce_bot:MovieClip;
public var wing_bot:MovieClip;
public var arm_s3e1:MovieClip;
public var bumper_sh:MovieClip;
public var roller_sh:MovieClip;
public var arm_s2e1:MovieClip;
public var claw_bot:MovieClip;
public var roller_bot:MovieClip;
public function arm_body_left_102(){
addFrameScript(0, frame1, 19, frame20, 55, frame56, 104, frame105, 149, frame150, 152, frame153);
}
function frame153(){
stop();
mom.armStatus = "ready";
}
function frame1(){
mom = (this.parent as MovieClip);
}
function frame105(){
stop();
mom.armStatus = "ready";
mom.parent.parent.botMenu.nextBtnListeners(true);
}
function frame20(){
stop();
mom.armStatus = "ready";
}
function frame56(){
mom.rightarm.gotoAndPlay("action");
}
function frame150(){
mom.convTrigger();
}
}
}//package build_fla
Section 8
//arm_body_left_103 (build_fla.arm_body_left_103)
package build_fla {
import flash.display.*;
public dynamic class arm_body_left_103 extends MovieClip {
public var mom;
public function arm_body_left_103(){
addFrameScript(0, frame1, 19, frame20, 104, frame105, 152, frame153);
}
function frame153(){
stop();
}
function frame105(){
stop();
}
function frame1(){
mom = (this.parent as MovieClip);
}
function frame20(){
stop();
}
}
}//package build_fla
Section 9
//arm_body_right_104 (build_fla.arm_body_right_104)
package build_fla {
import flash.events.*;
import flash.utils.*;
import flash.media.*;
import flash.display.*;
import flash.geom.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class arm_body_right_104 extends MovieClip {
public var hotspot:MovieClip;
public function arm_body_right_104(){
addFrameScript(19, frame20, 34, frame35, 84, frame85);
}
function frame85(){
gotoAndStop("rest");
}
function frame20(){
stop();
}
function frame35(){
hotspot.largespark.rotation = Math.floor((Math.random() * 360));
hotspot.smallspark.rotation = Math.floor((Math.random() * 360));
}
}
}//package build_fla
Section 10
//arms_paint_60 (build_fla.arms_paint_60)
package build_fla {
import flash.events.*;
import flash.utils.*;
import flash.media.*;
import flash.display.*;
import flash.geom.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class arms_paint_60 extends MovieClip {
public var leftarm:MovieClip;
public var myColor;
public var rayCT:ColorTransform;
public var cb_placeHolder:MovieClip;
public var rightarm:MovieClip;
public function arms_paint_60(){
addFrameScript(0, frame1);
}
public function activateArms2(_arg1):void{
rayCT.color = _arg1;
leftarm.ray.transform.colorTransform = rayCT;
rightarm.ray.transform.colorTransform = rayCT;
if ((((leftarm.currentFrame == 22)) && ((rightarm.currentFrame == 21)))){
leftarm.gotoAndPlay("action");
leftarm.ray.gotoAndPlay("action");
rightarm.gotoAndPlay("action");
rightarm.ray.gotoAndPlay("action");
};
}
function frame1(){
cb_placeHolder.visible = false;
rayCT = (leftarm.ray.transform.colorTransform = rightarm.ray.transform.colorTransform);
}
}
}//package build_fla
Section 11
//arms_paint_left_65 (build_fla.arms_paint_left_65)
package build_fla {
import flash.events.*;
import flash.utils.*;
import flash.media.*;
import flash.display.*;
import flash.geom.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class arms_paint_left_65 extends MovieClip {
public var ray:MovieClip;
public var me;
public function arms_paint_left_65(){
addFrameScript(21, frame22, 102, frame103);
}
function frame22(){
stop();
}
function frame103(){
me = (this as MovieClip);
me.parent.parent.parent.parent.botMenu.nextBtnListeners(true);
gotoAndStop("rest");
}
}
}//package build_fla
Section 12
//arms_paint_left_66 (build_fla.arms_paint_left_66)
package build_fla {
import flash.events.*;
import flash.utils.*;
import flash.media.*;
import flash.display.*;
import flash.geom.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class arms_paint_left_66 extends MovieClip {
public var ray:MovieClip;
public var me;
public function arms_paint_left_66(){
addFrameScript(21, frame22, 48, frame49, 102, frame103);
}
function frame22(){
stop();
}
function frame103(){
stop();
}
function frame49(){
me = (this as MovieClip);
me.parent.parent.parent.Body.colorBot(me.parent.parent.parent.myColor, true);
me.parent.parent.parent.Mobility.colorBot(me.parent.parent.parent.myColor, true);
}
}
}//package build_fla
Section 13
//arms_paint_right_61 (build_fla.arms_paint_right_61)
package build_fla {
import flash.display.*;
public dynamic class arms_paint_right_61 extends MovieClip {
public var ray:MovieClip;
public function arms_paint_right_61(){
addFrameScript(20, frame21, 98, frame99);
}
function frame21(){
stop();
}
function frame99(){
gotoAndStop("rest");
}
}
}//package build_fla
Section 14
//arms_paint_right_62 (build_fla.arms_paint_right_62)
package build_fla {
import flash.display.*;
public dynamic class arms_paint_right_62 extends MovieClip {
public var ray:MovieClip;
public function arms_paint_right_62(){
addFrameScript(20, frame21, 98, frame99);
}
function frame21(){
stop();
}
function frame99(){
gotoAndStop("rest");
}
}
}//package build_fla
Section 15
//arrows_144 (build_fla.arrows_144)
package build_fla {
import flash.display.*;
public dynamic class arrows_144 extends MovieClip {
public var arrowsOn:Boolean;
public function arrows_144(){
addFrameScript(0, frame1, 1, frame2, 10, frame11);
}
function frame1(){
stop();
arrowsOn = false;
}
function frame2(){
play();
}
function frame11(){
if (arrowsOn == true){
gotoAndPlay(2);
} else {
gotoAndStop(1);
};
}
}
}//package build_fla
Section 16
//bars_3 (build_fla.bars_3)
package build_fla {
import flash.display.*;
public dynamic class bars_3 extends MovieClip {
public function bars_3(){
addFrameScript(99, frame100);
}
function frame100(){
stop();
}
}
}//package build_fla
Section 17
//BG_223 (build_fla.BG_223)
package build_fla {
import flash.events.*;
import flash.utils.*;
import flash.media.*;
import flash.display.*;
import flash.geom.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class BG_223 extends MovieClip {
public var floorLines:MovieClip;
public var me;
public var BG_intro:MovieClip;
public function BG_223(){
addFrameScript(0, frame1, 11, frame12);
}
function frame12(){
stop();
me = (this as MovieClip);
me.parent.botMenu.Room.bringInBots();
}
function frame1(){
stop();
}
}
}//package build_fla
Section 18
//body_weld_105 (build_fla.body_weld_105)
package build_fla {
import flash.display.*;
public dynamic class body_weld_105 extends MovieClip {
public var smallspark:MovieClip;
public var largespark:MovieClip;
}
}//package build_fla
Section 19
//btn_BACK_141 (build_fla.btn_BACK_141)
package build_fla {
import flash.display.*;
public dynamic class btn_BACK_141 extends MovieClip {
public var arrows:MovieClip;
public var Base:MovieClip;
public var myText:MovieClip;
}
}//package build_fla
Section 20
//btn_CLOSE_317 (build_fla.btn_CLOSE_317)
package build_fla {
import flash.display.*;
public dynamic class btn_CLOSE_317 extends MovieClip {
public function btn_CLOSE_317(){
addFrameScript(0, frame1, 13, frame14);
}
function frame14(){
stop();
}
function frame1(){
}
}
}//package build_fla
Section 21
//btn_CREATEYOURBOT_237 (build_fla.btn_CREATEYOURBOT_237)
package build_fla {
import flash.display.*;
public dynamic class btn_CREATEYOURBOT_237 extends MovieClip {
public function btn_CREATEYOURBOT_237(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package build_fla
Section 22
//btn_cycle_97 (build_fla.btn_cycle_97)
package build_fla {
import flash.display.*;
public dynamic class btn_cycle_97 extends MovieClip {
public function btn_cycle_97(){
addFrameScript(0, frame1, 22, frame23);
}
function frame1(){
stop();
}
function frame23(){
gotoAndPlay(2);
}
}
}//package build_fla
Section 23
//btn_NEXT_146 (build_fla.btn_NEXT_146)
package build_fla {
import flash.display.*;
public dynamic class btn_NEXT_146 extends MovieClip {
public var arrows:MovieClip;
public var Base:MovieClip;
public var myText:MovieClip;
}
}//package build_fla
Section 24
//btn_PLAYGAMES_242 (build_fla.btn_PLAYGAMES_242)
package build_fla {
import flash.display.*;
public dynamic class btn_PLAYGAMES_242 extends MovieClip {
public function btn_PLAYGAMES_242(){
addFrameScript(0, frame1, 16, frame17);
}
function frame1(){
stop();
}
function frame17(){
}
}
}//package build_fla
Section 25
//btn_PLAYTHEGAME_14 (build_fla.btn_PLAYTHEGAME_14)
package build_fla {
import flash.display.*;
public dynamic class btn_PLAYTHEGAME_14 extends MovieClip {
public function btn_PLAYTHEGAME_14(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package build_fla
Section 26
//btn_RESTART_322 (build_fla.btn_RESTART_322)
package build_fla {
import flash.display.*;
public dynamic class btn_RESTART_322 extends MovieClip {
public function btn_RESTART_322(){
addFrameScript(0, frame1, 13, frame14);
}
function frame14(){
stop();
}
function frame1(){
}
}
}//package build_fla
Section 27
//caption_basePlate1_70 (build_fla.caption_basePlate1_70)
package build_fla {
import flash.display.*;
public dynamic class caption_basePlate1_70 extends MovieClip {
public var base:MovieClip;
}
}//package build_fla
Section 28
//colorPicker_plate2_52 (build_fla.colorPicker_plate2_52)
package build_fla {
import flash.display.*;
public dynamic class colorPicker_plate2_52 extends MovieClip {
public var CB:MovieClip;
public var tab:MovieClip;
}
}//package build_fla
Section 29
//complete_plate1_9 (build_fla.complete_plate1_9)
package build_fla {
import flash.display.*;
public dynamic class complete_plate1_9 extends MovieClip {
public var playNow:MovieClip;
public var congrats:MovieClip;
}
}//package build_fla
Section 30
//consoleTab_motion_190 (build_fla.consoleTab_motion_190)
package build_fla {
import flash.display.*;
public dynamic class consoleTab_motion_190 extends MovieClip {
public var dn;
public var up;
public function consoleTab_motion_190(){
addFrameScript(0, frame1);
}
function frame1(){
up = 3;
dn = 23;
}
}
}//package build_fla
Section 31
//consoleTab_stationary_187 (build_fla.consoleTab_stationary_187)
package build_fla {
import flash.display.*;
public dynamic class consoleTab_stationary_187 extends MovieClip {
public var dn;
public var up;
public function consoleTab_stationary_187(){
addFrameScript(0, frame1);
}
function frame1(){
up = 28;
dn = 48;
}
}
}//package build_fla
Section 32
//consoleTab_voice_192 (build_fla.consoleTab_voice_192)
package build_fla {
import flash.display.*;
public dynamic class consoleTab_voice_192 extends MovieClip {
public var dn;
public var up;
public function consoleTab_voice_192(){
addFrameScript(0, frame1);
}
function frame1(){
up = 28;
dn = 48;
}
}
}//package build_fla
Section 33
//curtain_228 (build_fla.curtain_228)
package build_fla {
import flash.events.*;
import flash.utils.*;
import flash.media.*;
import flash.display.*;
import flash.geom.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class curtain_228 extends MovieClip {
public var me;
public function curtain_228(){
addFrameScript(0, frame1, 9, frame10);
}
function frame10(){
stop();
me = (this as MovieClip);
me.parent.BG.floorLines.play();
}
function frame1(){
stop();
}
}
}//package build_fla
Section 34
//DefaultText_116 (build_fla.DefaultText_116)
package build_fla {
import flash.display.*;
public dynamic class DefaultText_116 extends MovieClip {
public var myText:defaultAllText;
}
}//package build_fla
Section 35
//dialogBox_232 (build_fla.dialogBox_232)
package build_fla {
import flash.events.*;
import flash.utils.*;
import flash.media.*;
import flash.display.*;
import flash.geom.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class dialogBox_232 extends MovieClip {
public var create:MovieClip;
public var me;
public var who;
public var games:MovieClip;
public function dialogBox_232(){
addFrameScript(0, frame1);
}
public function out(_arg1){
if (_arg1.target.filters){
_arg1.target.filters = undefined;
};
}
function frame1(){
stop();
me = (this as MovieClip);
create.addEventListener(MouseEvent.ROLL_OVER, over);
create.addEventListener(MouseEvent.ROLL_OUT, out);
create.addEventListener(MouseEvent.CLICK, down);
create.buttonMode = true;
create.mouseChildren = false;
games.addEventListener(MouseEvent.ROLL_OVER, over);
games.addEventListener(MouseEvent.ROLL_OUT, out);
games.addEventListener(MouseEvent.CLICK, down);
games.buttonMode = true;
games.mouseChildren = false;
}
public function reverseBot(_arg1){
if (_arg1.target.currentFrame > 1){
_arg1.target.gotoAndStop((_arg1.target.currentFrame - 2));
} else {
me.parent.parent.parent.botMenu.init(who);
me.parent.parent.removeEventListener(Event.ENTER_FRAME, reverseBot);
};
}
public function down(_arg1){
me.parent.parent.parent.wingBotAudio.gotoAndPlay(10);
if (_arg1.target.filters){
_arg1.target.filters = undefined;
};
me.parent.parent.addEventListener(Event.ENTER_FRAME, reverseBot);
if (_arg1.target.name == "create"){
who = 1;
} else {
who = 0;
};
}
public function over(_arg1){
var _local2:GlowFilter;
var _local3:Array;
_arg1.target.play();
_local2 = new GlowFilter();
_local2.color = 0xFFFFFF;
_local2.alpha = 0.5;
_local2.blurX = 7;
_local2.blurY = 7;
_local3 = new Array(_local2);
_arg1.target.filters = _local3;
}
}
}//package build_fla
Section 36
//dialogBoxAnime_230 (build_fla.dialogBoxAnime_230)
package build_fla {
import flash.events.*;
import flash.utils.*;
import flash.media.*;
import flash.display.*;
import flash.geom.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class dialogBoxAnime_230 extends MovieClip {
public var bot:MovieClip;
public function dialogBoxAnime_230(){
addFrameScript(0, frame1, 20, frame21, 24, frame25, 40, frame41);
}
function frame1(){
stop();
}
function frame25(){
bot.dBox.games.play();
}
function frame21(){
bot.dBox.create.play();
}
function frame41(){
stop();
}
}
}//package build_fla
Section 37
//dialogBoxBot_231 (build_fla.dialogBoxBot_231)
package build_fla {
import flash.display.*;
public dynamic class dialogBoxBot_231 extends MovieClip {
public var dBox:MovieClip;
}
}//package build_fla
Section 38
//doors_250 (build_fla.doors_250)
package build_fla {
import flash.events.*;
import flash.utils.*;
import flash.media.*;
import flash.display.*;
import flash.geom.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class doors_250 extends MovieClip {
public var myBG;
public var loadingObj;
public var panelAnim:MovieClip;
public var leftDoor:MovieClip;
public var LG:Boolean;
public var Room;
public var Rev:Boolean;
public var me;
public var doorTrans:MovieClip;
public var gameLoader:Loader;
public var topBar:MovieClip;
public var fromGame:Boolean;
public var bottomBar:MovieClip;
public var rightDoor:MovieClip;
public var gameLoading:Boolean;
public function doors_250(){
addFrameScript(0, frame1, 1, frame2, 14, frame15, 27, frame28);
}
public function progressHandler(_arg1){
var _local2:uint;
var _local3:uint;
var _local4:*;
var _local5:Sound;
var _local6:*;
var _local7:*;
_local2 = loadingObj.bytesLoaded;
_local3 = loadingObj.bytesTotal;
_local4 = Math.round(((_local2 / _local3) * 100));
if (_local4 < 10){
panelAnim.panel.loadingText.text = ("0" + String(_local4));
} else {
panelAnim.panel.loadingText.text = _local4;
};
if (_local4 == 100){
gameLoading = false;
if ((((me.currentFrame == 15)) && ((doorTrans.currentFrame == 1)))){
_local5 = new Alarm();
_local6 = _local5.play(0, 1);
_local7 = _local6.soundTransform;
_local7.volume = 0.2;
_local6.soundTransform = _local7;
me.play();
topBar.addEventListener(Event.ENTER_FRAME, reverseBars);
};
this.removeEventListener(Event.ENTER_FRAME, progressHandler);
};
}
function frame15(){
stop();
me.parent.botMenu.nextBtnListeners(false);
me.parent.botMenu.nextBtn.x = 381;
if (me.parent.botMenu.resetPressed == true){
me.parent.botMenu.resetPressed = false;
me.parent.botMenu.Room.cleanGameAssets();
};
}
function frame1(){
me = (this as MovieClip);
LG = false;
gameLoading = false;
stop();
topBar.visible = false;
bottomBar.visible = false;
doorTrans.visible = false;
panelAnim.visible = false;
}
public function nextRoom(){
var _local1:Object;
var _local2:Object;
Room = me.parent.botMenu.Room;
if (Room.parent == gameLoader){
gameLoader.unload();
gameLoader = undefined;
me.parent.BG.visible = true;
me.parent.botMenu.gotoAndStop(26);
me.parent.BG.gotoAndStop(1);
} else {
me.parent.botMenu.removeChild(Room);
};
if (me.parent.botMenu.roomArray[me.parent.botMenu.RoomNumber]){
_local1 = getDefinitionByName(me.parent.botMenu.roomArray[me.parent.botMenu.RoomNumber]);
Room = new (_local1);
Room.ID = me.parent.botMenu.roomArray[me.parent.botMenu.RoomNumber];
me.parent.botMenu.addChild(Room);
me.parent.botMenu.Room = Room;
};
if (myBG){
me.parent.BG.removeChild(myBG);
myBG = undefined;
};
if ((((me.parent.botMenu.RoomNumber > 1)) && ((me.parent.botMenu.RoomNumber < 10)))){
_local2 = getDefinitionByName((me.parent.botMenu.roomArray[me.parent.botMenu.RoomNumber] + "_BG"));
myBG = new (_local2);
me.parent.BG.addChild(myBG);
} else {
if (me.parent.botMenu.RoomNumber == 10){
me.parent.botMenu.gotoAndStop(1);
me.parent.dialogBoxAnime.gotoAndPlay(2);
};
};
me.parent.botMenu.changeColor(me.parent.botMenu.RoomNumber);
me.play();
}
public function addVars(_arg1){
Room = gameLoader.getChildAt(0);
Room.defaultBot = me.parent.botMenu.defaultBot;
Room.botBody = me.parent.botMenu.bodyCount;
Room.botColor = me.parent.botMenu.botColor;
Room.AssignedSounds = me.parent.botMenu.AssignedSounds;
me.parent.botMenu.Room = Room;
}
function frame28(){
stop();
if (LG == true){
Room.play();
};
}
function frame2(){
topBar.visible = true;
topBar.play();
bottomBar.play();
bottomBar.visible = true;
panelAnim.visible = true;
panelAnim.play();
if (LG != true){
if (Rev == false){
panelAnim.panel.gotoAndStop(1);
panelAnim.panel.rightArrow.gotoAndStop("lit");
} else {
panelAnim.panel.leftArrow.gotoAndStop("lit");
};
} else {
panelAnim.panel.gotoAndStop(2);
};
}
public function reverseBars(_arg1){
var _local2:*;
if (topBar.currentFrame > 1){
topBar.gotoAndStop((topBar.currentFrame - 1));
bottomBar.gotoAndStop((bottomBar.currentFrame - 1));
if (topBar.currentFrame <= panelAnim.totalFrames){
panelAnim.gotoAndStop((panelAnim.currentFrame - 1));
};
} else {
topBar.removeEventListener(Event.ENTER_FRAME, reverseBars);
topBar.visible = false;
bottomBar.visible = false;
panelAnim.visible = false;
panelAnim.panel.gotoAndStop(1);
if (LG != true){
panelAnim.panel.leftArrow.gotoAndStop(1);
panelAnim.panel.rightArrow.gotoAndStop(1);
_local2 = 1;
while (_local2 <= 5) {
panelAnim.panel[("light_" + _local2)].gotoAndStop(1);
_local2++;
};
nextRoom();
} else {
if (gameLoading != true){
me.play();
};
};
};
}
public function addProgress(_arg1){
loadingObj = _arg1;
this.addEventListener(Event.ENTER_FRAME, progressHandler);
}
public function loadGame(){
var _local1:*;
var _local2:String;
var _local3:*;
var _local4:URLRequest;
me.parent.BG.visible = false;
gameLoading = true;
me.parent.botMenu.removeChild(me.parent.botMenu.Room);
me.parent.botMenu.gotoAndStop(1);
gameLoader = new Loader();
gameLoader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, addProgress);
gameLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, addVars);
_local1 = me.parent.parent.buildArray;
_local3 = 0;
while (_local3 < _local1.length) {
if (_local1[_local3][0] == me.parent.botMenu.GAME){
_local2 = _local1[_local3][1];
};
_local3++;
};
_local4 = new URLRequest(_local2);
gameLoader.load(_local4);
me.parent.botMenu.addChild(gameLoader);
gameLoader.x = -480;
}
}
}//package build_fla
Section 39
//DoorTransition_287 (build_fla.DoorTransition_287)
package build_fla {
import flash.events.*;
import flash.utils.*;
import flash.media.*;
import flash.display.*;
import flash.geom.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class DoorTransition_287 extends MovieClip {
public var i;
public var leftDoor:MovieClip;
public var me;
public var rightDoor:MovieClip;
public function DoorTransition_287(){
addFrameScript(0, frame1, 3, frame4, 35, frame36, 40, frame41, 43, frame44);
}
function frame1(){
me = (this as MovieClip);
stop();
}
function frame4(){
if (me.parent.LG != true){
me.parent.panelAnim.panel.rightArrow.gotoAndStop(1);
if (me.parent.Rev == false){
if ((((me.parent.parent.botMenu.RoomNumber == 0)) || ((me.parent.parent.botMenu.RoomNumber == 10)))){
i = 1;
while (i <= 5) {
me.parent.panelAnim.panel[("light_" + i)].gotoAndStop("blue");
i++;
};
} else {
me.parent.panelAnim.panel[("light_" + me.parent.parent.botMenu.RoomNumber)].gotoAndStop("blue");
};
} else {
if ((((me.parent.parent.botMenu.RoomNumber == 0)) || ((me.parent.parent.botMenu.RoomNumber == 10)))){
i = 1;
while (i <= 5) {
me.parent.panelAnim.panel[("light_" + i)].gotoAndStop("red");
i++;
};
} else {
me.parent.panelAnim.panel[("light_" + me.parent.parent.botMenu.RoomNumber)].gotoAndStop("red");
};
};
};
}
function frame36(){
if (me.parent.parent.botMenu.RoomNumber == 0){
leftDoor.doorNumber.gotoAndStop(10);
rightDoor.doorNumber.gotoAndStop(10);
} else {
leftDoor.doorNumber.gotoAndStop(me.parent.parent.botMenu.RoomNumber);
rightDoor.doorNumber.gotoAndStop(me.parent.parent.botMenu.RoomNumber);
};
}
function frame44(){
if (me.parent.Rev == true){
me.parent.topBar.addEventListener(Event.ENTER_FRAME, me.parent.reverseBars);
me.visible = false;
};
if (me.parent.parent.botMenu.RoomNumber == 0){
me.parent.leftDoor.doorNumber.gotoAndStop(10);
me.parent.rightDoor.doorNumber.gotoAndStop(10);
} else {
me.parent.leftDoor.doorNumber.gotoAndStop(me.parent.parent.botMenu.RoomNumber);
me.parent.rightDoor.doorNumber.gotoAndStop(me.parent.parent.botMenu.RoomNumber);
};
}
function frame41(){
if (me.parent.LG != true){
me.parent.panelAnim.panel.leftArrow.gotoAndStop(1);
if (me.parent.Rev == false){
if ((((me.parent.parent.botMenu.RoomNumber == 0)) || ((me.parent.parent.botMenu.RoomNumber == 10)))){
i = 1;
while (i <= 5) {
me.parent.panelAnim.panel[("light_" + i)].gotoAndStop("blue");
i++;
};
} else {
me.parent.panelAnim.panel[("light_" + me.parent.parent.botMenu.RoomNumber)].gotoAndStop("red");
};
} else {
if ((((me.parent.parent.botMenu.RoomNumber == 0)) || ((me.parent.parent.botMenu.RoomNumber == 10)))){
i = 1;
while (i <= 5) {
me.parent.panelAnim.panel[("light_" + i)].gotoAndStop("red");
i++;
};
} else {
me.parent.panelAnim.panel[("light_" + me.parent.parent.botMenu.RoomNumber)].gotoAndStop("red");
};
};
};
}
}
}//package build_fla
Section 40
//dropDown_222 (build_fla.dropDown_222)
package build_fla {
import flash.events.*;
import flash.utils.*;
import flash.media.*;
import flash.display.*;
import flash.geom.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class dropDown_222 extends MovieClip {
public var myFrame:MovieClip;
public var BG:MovieClip;
public var curtain:MovieClip;
public var doors:MovieClip;
public var wingBotAudio:MovieClip;
public var botMenu:BotMenu;
public var dialogBoxAnime:MovieClip;
public var tramLoop:MovieClip;
public function dropDown_222(){
addFrameScript(0, frame1);
}
function frame1(){
botMenu.defaultBot = true;
botMenu.bodyCount = 9;
botMenu.mobilityCount;
botMenu.botColor = false;
}
}
}//package build_fla
Section 41
//drum_panel_198 (build_fla.drum_panel_198)
package build_fla {
import flash.display.*;
public dynamic class drum_panel_198 extends MovieClip {
public function drum_panel_198(){
addFrameScript(0, frame1, 27, frame28, 39, frame40);
}
function frame1(){
stop();
}
function frame28(){
gotoAndPlay("onStates");
}
function frame40(){
stop();
}
}
}//package build_fla
Section 42
//elevatorArrows_303 (build_fla.elevatorArrows_303)
package build_fla {
import flash.display.*;
public dynamic class elevatorArrows_303 extends MovieClip {
public function elevatorArrows_303(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package build_fla
Section 43
//floorLines_225 (build_fla.floorLines_225)
package build_fla {
import flash.events.*;
import flash.utils.*;
import flash.media.*;
import flash.display.*;
import flash.geom.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class floorLines_225 extends MovieClip {
public var me;
public function floorLines_225(){
addFrameScript(0, frame1, 22, frame23, 38, frame39);
}
function frame1(){
stop();
}
function frame23(){
me = (this as MovieClip);
me.parent.parent.dialogBoxAnime.play();
me.parent.parent.wingBotAudio.play();
}
function frame39(){
stop();
}
}
}//package build_fla
Section 44
//frame_306 (build_fla.frame_306)
package build_fla {
import flash.events.*;
import flash.utils.*;
import flash.media.*;
import flash.display.*;
import flash.geom.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class frame_306 extends MovieClip {
public var restart:MovieClip;
public var closeBtn:MovieClip;
public var me;
public var frameGraphic:MovieClip;
public function frame_306(){
addFrameScript(0, frame1, 4, frame5);
}
public function closeOver(_arg1){
closeBtn.gotoAndPlay(2);
}
public function closeOut(_arg1){
closeBtn.gotoAndStop(1);
}
function frame1(){
stop();
}
public function closeClick(_arg1){
closeBtn.removeEventListener(MouseEvent.CLICK, closeClick);
closeBtn.removeEventListener(MouseEvent.MOUSE_OVER, closeOver);
closeBtn.removeEventListener(MouseEvent.MOUSE_OUT, closeOut);
if (ExternalInterface.available){
ExternalInterface.call("jsClose");
};
}
function frame5(){
stop();
me = (this as MovieClip);
me.parent.curtain.play();
me.mouseEnabled = false;
closeBtn.addEventListener(MouseEvent.CLICK, closeClick);
closeBtn.addEventListener(MouseEvent.MOUSE_OVER, closeOver);
closeBtn.addEventListener(MouseEvent.MOUSE_OUT, closeOut);
closeBtn.buttonMode = true;
frameGraphic.mouseEnabled = false;
frameGraphic.mouseChildren = false;
}
}
}//package build_fla
Section 45
//frame1_316 (build_fla.frame1_316)
package build_fla {
import flash.events.*;
import flash.utils.*;
import flash.media.*;
import flash.display.*;
import flash.geom.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class frame1_316 extends MovieClip {
public var me;
public function frame1_316(){
addFrameScript(0, frame1);
}
function frame1(){
me = (this as MovieClip);
me.mouseEnabled = false;
}
}
}//package build_fla
Section 46
//frameGraphic_307 (build_fla.frameGraphic_307)
package build_fla {
import flash.events.*;
import flash.utils.*;
import flash.media.*;
import flash.display.*;
import flash.geom.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class frameGraphic_307 extends MovieClip {
public var me;
public function frameGraphic_307(){
addFrameScript(45, frame46);
}
function frame46(){
stop();
me = (this as MovieClip);
me.parent.play();
}
}
}//package build_fla
Section 47
//indicatorRoom_panel_297 (build_fla.indicatorRoom_panel_297)
package build_fla {
import flash.display.*;
import flash.text.*;
public dynamic class indicatorRoom_panel_297 extends MovieClip {
public var light_1:MovieClip;
public var light_5:MovieClip;
public var light_2:MovieClip;
public var light_4:MovieClip;
public var light_3:MovieClip;
public var leftArrow:MovieClip;
public var loadingText:TextField;
public var rightArrow:MovieClip;
public function indicatorRoom_panel_297(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
loadingText.text = "00";
}
}
}//package build_fla
Section 48
//leftDoor_285 (build_fla.leftDoor_285)
package build_fla {
import flash.display.*;
public dynamic class leftDoor_285 extends MovieClip {
public var doorNumber:MovieClip;
}
}//package build_fla
Section 49
//light_300 (build_fla.light_300)
package build_fla {
import flash.display.*;
public dynamic class light_300 extends MovieClip {
public function light_300(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package build_fla
Section 50
//lightBar1_305 (build_fla.lightBar1_305)
package build_fla {
import flash.display.*;
public dynamic class lightBar1_305 extends MovieClip {
public function lightBar1_305(){
addFrameScript(7, frame8);
}
function frame8(){
stop();
}
}
}//package build_fla
Section 51
//lightBar2_294 (build_fla.lightBar2_294)
package build_fla {
import flash.display.*;
public dynamic class lightBar2_294 extends MovieClip {
public function lightBar2_294(){
addFrameScript(7, frame8, 14, frame15);
}
function frame15(){
stop();
}
function frame8(){
stop();
}
}
}//package build_fla
Section 52
//lightFixture1_304 (build_fla.lightFixture1_304)
package build_fla {
import flash.events.*;
import flash.utils.*;
import flash.media.*;
import flash.display.*;
import flash.geom.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class lightFixture1_304 extends MovieClip {
public var rb:Sound;
public var me;
public function lightFixture1_304(){
addFrameScript(0, frame1, 22, frame23, 27, frame28);
}
public function reverseDoorTrans(_arg1){
if (me.parent.doorTrans.currentFrame > 1){
me.parent.doorTrans.gotoAndStop((me.parent.doorTrans.currentFrame - 1));
} else {
me.parent.gotoAndStop(15);
me.parent.doorTrans.removeEventListener(Event.ENTER_FRAME, reverseDoorTrans);
me.parent.doorTrans.visible = false;
if (me.parent.gameLoading != true){
me.addEventListener(Event.ENTER_FRAME, me.parent.reverseBars);
};
};
}
function frame1(){
stop();
me = (this as MovieClip);
}
function frame23(){
rb = new RayBars();
rb.play(0, 1);
}
function frame28(){
stop();
me.parent.doorTrans.visible = true;
me.parent.parent.tramLoop.gotoAndPlay(2);
me.parent.doorTrans.play();
if (me.parent.LG == true){
me.parent.loadGame();
};
if (me.parent.Rev == true){
} else {
me.parent.doorTrans.gotoAndStop(me.parent.doorTrans.totalFrames);
me.parent.doorTrans.addEventListener(Event.ENTER_FRAME, reverseDoorTrans);
};
}
}
}//package build_fla
Section 53
//lightFixture2_291 (build_fla.lightFixture2_291)
package build_fla {
import flash.display.*;
public dynamic class lightFixture2_291 extends MovieClip {
public function lightFixture2_291(){
addFrameScript(0, frame1, 27, frame28);
}
function frame1(){
stop();
}
function frame28(){
stop();
}
}
}//package build_fla
Section 54
//loaderWorkAround_6 (build_fla.loaderWorkAround_6)
package build_fla {
import flash.display.*;
public dynamic class loaderWorkAround_6 extends MovieClip {
public function loaderWorkAround_6(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package build_fla
Section 55
//loadingPanel_1 (build_fla.loadingPanel_1)
package build_fla {
import flash.display.*;
public dynamic class loadingPanel_1 extends MovieClip {
public var percentage:MovieClip;
public var bars:MovieClip;
}
}//package build_fla
Section 56
//loadingText_5 (build_fla.loadingText_5)
package build_fla {
import flash.display.*;
public dynamic class loadingText_5 extends MovieClip {
public function loadingText_5(){
addFrameScript(39, frame40);
}
function frame40(){
gotoAndPlay(1);
}
}
}//package build_fla
Section 57
//mainBody_25 (build_fla.mainBody_25)
package build_fla {
import flash.events.*;
import flash.utils.*;
import flash.media.*;
import flash.display.*;
import flash.geom.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class mainBody_25 extends MovieClip {
public var myLast;
public var tintMask:BodyMainTintMask;
public function mainBody_25(){
addFrameScript(0, frame1);
}
public function colorBot(_arg1, _arg2):void{
var _local3:Array;
var _local4:BlurFilter;
var _local5:BodyMainTintMask;
var _local6:ColorTransform;
tintMask.visible = false;
_local3 = new Array();
_local4 = new BlurFilter(1, 1, 1);
_local3.push(_local4);
_local5 = new BodyMainTintMask();
_local5.x = tintMask.x;
_local5.y = tintMask.y;
_local5.gotoAndStop(currentFrame);
_local5.filters = _local3;
_local5.cacheAsBitmap = true;
_local5.blendMode = "overlay";
addChild(_local5);
_local6 = _local5.transform.colorTransform;
_local6.color = _arg1;
_local5.transform.colorTransform = _local6;
if (_arg2 == true){
_local5.alpha = 0;
_local5.addEventListener(Event.ENTER_FRAME, boostAlpha);
};
}
public function boostAlpha(_arg1){
if (_arg1.target.alpha < 1){
_arg1.target.alpha = (_arg1.target.alpha + 0.05);
if (myLast){
myLast.alpha = (myLast.alpha - 0.05);
};
} else {
if (myLast){
removeChild(myLast);
};
_arg1.target.removeEventListener(Event.ENTER_FRAME, boostAlpha);
_arg1.target.alpha = 1;
myLast = _arg1.target;
};
}
function frame1(){
stop();
}
}
}//package build_fla
Section 58
//mainMobility_17 (build_fla.mainMobility_17)
package build_fla {
import flash.events.*;
import flash.utils.*;
import flash.media.*;
import flash.display.*;
import flash.geom.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class mainMobility_17 extends MovieClip {
public var myLast;
public var tintMask:MobilityMainTintMask;
public function mainMobility_17(){
addFrameScript(0, frame1);
}
public function colorBot(_arg1, _arg2):void{
var _local3:Array;
var _local4:BlurFilter;
var _local5:MobilityMainTintMask;
var _local6:ColorTransform;
tintMask.visible = false;
_local3 = new Array();
_local4 = new BlurFilter(1, 1, 1);
_local3.push(_local4);
_local5 = new MobilityMainTintMask();
_local5.x = tintMask.x;
_local5.y = tintMask.y;
_local5.gotoAndStop(currentFrame);
_local5.filters = _local3;
_local5.cacheAsBitmap = true;
_local5.blendMode = "overlay";
addChild(_local5);
_local6 = _local5.transform.colorTransform;
_local6.color = _arg1;
_local5.transform.colorTransform = _local6;
if (_arg2 == true){
_local5.alpha = 0;
_local5.addEventListener(Event.ENTER_FRAME, boostAlpha);
};
}
public function boostAlpha(_arg1){
if (_arg1.target.alpha < 1){
_arg1.target.alpha = (_arg1.target.alpha + 0.05);
if (myLast){
myLast.alpha = (myLast.alpha - 0.05);
};
} else {
if (myLast){
removeChild(myLast);
};
_arg1.target.removeEventListener(Event.ENTER_FRAME, boostAlpha);
_arg1.target.alpha = 1;
myLast = _arg1.target;
};
}
function frame1(){
stop();
}
}
}//package build_fla
Section 59
//MainTimeline (build_fla.MainTimeline)
package build_fla {
import flash.events.*;
import flash.utils.*;
import flash.media.*;
import flash.display.*;
import flash.geom.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public var xmlURL:String;
public var loadingObj;
public var loaderWA:MovieClip;
public var dropDown:MovieClip;
public var fadeOut:String;
public var per:Number;
public var percent:Number;
public var loadingPanel:MovieClip;
public var buildArray:Array;
public function MainTimeline(){
addFrameScript(0, frame1);
}
public function progressHandler(_arg1:Event):void{
var _local2:uint;
var _local3:uint;
_local2 = loadingObj.bytesLoaded;
_local3 = loadingObj.bytesTotal;
percent = (percent - ((percent - ((_local2 / _local3) * 100)) * 0.25));
per = int(percent);
loadingPanel.bars.gotoAndStop(per);
if (Math.round(((_local2 / _local3) * 100)) < 10){
loadingPanel.percentage.myText.text = ("0" + String(Math.round(((_local2 / _local3) * 100))));
} else {
loadingPanel.percentage.myText.text = String(Math.round(((_local2 / _local3) * 100)));
};
if ((((_local2 == _local3)) && ((loadingPanel.bars.currentFrame >= 99)))){
percent = 0;
per = 0;
this.removeEventListener(Event.ENTER_FRAME, progressHandler);
this.addEventListener(Event.ENTER_FRAME, fadeOutLoadingPanel);
};
}
public function loadXML(){
var _local1:URLLoader;
_local1 = new URLLoader();
_local1.addEventListener(Event.COMPLETE, readXML);
_local1.load(new URLRequest(xmlURL));
}
public function readXML(_arg1:Event):void{
var _local2:*;
var _local3:Object;
var _local4:Number;
var _local5:Array;
XML.ignoreWhitespace = true;
_local2 = new XML(_arg1.target.data);
_local3 = _local2.wData.wBuild.wGame;
_local4 = 0;
while (_local4 < _local3.length()) {
_local5 = new Array();
_local5.push(_local3[_local4].wName.text());
_local5.push(_local3[_local4].wURL.text());
buildArray.push(_local5);
_local4++;
};
}
public function fadeOutLoadingPanel(_arg1:Event):void{
if (loadingPanel.alpha > 0){
loadingPanel.alpha = (loadingPanel.alpha - 0.1);
} else {
this.removeEventListener(Event.ENTER_FRAME, fadeOutLoadingPanel);
gotoAndStop(10);
};
}
public function loaderAnim(){
this.addEventListener(Event.ENTER_FRAME, progressHandler);
}
function frame1(){
xmlURL = "http://disney.go.com/disneypictures/wall-e/xml/build.xml";
buildArray = new Array();
loadXML();
stop();
loadingObj = this.loaderInfo;
percent = 0;
loaderAnim();
}
}
}//package build_fla
Section 60
//motionSet_208 (build_fla.motionSet_208)
package build_fla {
import flash.display.*;
public dynamic class motionSet_208 extends MovieClip {
public var D_2:MovieClip;
public var D_4:MovieClip;
public var D_1:MovieClip;
public var D_3:MovieClip;
}
}//package build_fla
Section 61
//nav_plate1_96 (build_fla.nav_plate1_96)
package build_fla {
import flash.display.*;
public dynamic class nav_plate1_96 extends MovieClip {
public var conv_back:MovieClip;
public var attach:btn_choosemobility;
public var conv_forward:MovieClip;
}
}//package build_fla
Section 62
//nav_plate2_139 (build_fla.nav_plate2_139)
package build_fla {
import flash.display.*;
public dynamic class nav_plate2_139 extends MovieClip {
public var Base:MovieClip;
}
}//package build_fla
Section 63
//paint_ray_63 (build_fla.paint_ray_63)
package build_fla {
import flash.display.*;
public dynamic class paint_ray_63 extends MovieClip {
public var largespark:MovieClip;
}
}//package build_fla
Section 64
//panel_number_255 (build_fla.panel_number_255)
package build_fla {
import flash.display.*;
public dynamic class panel_number_255 extends MovieClip {
public function panel_number_255(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package build_fla
Section 65
//percentage_4 (build_fla.percentage_4)
package build_fla {
import flash.display.*;
import flash.text.*;
public dynamic class percentage_4 extends MovieClip {
public var myText:TextField;
}
}//package build_fla
Section 66
//restartHolder_321 (build_fla.restartHolder_321)
package build_fla {
import flash.display.*;
public dynamic class restartHolder_321 extends MovieClip {
public var restart:MovieClip;
public function restartHolder_321(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package build_fla
Section 67
//rightDoor_251 (build_fla.rightDoor_251)
package build_fla {
import flash.display.*;
public dynamic class rightDoor_251 extends MovieClip {
public var doorNumber:MovieClip;
}
}//package build_fla
Section 68
//scroll_plate2_159 (build_fla.scroll_plate2_159)
package build_fla {
import flash.display.*;
public dynamic class scroll_plate2_159 extends MovieClip {
public var chooseBody:btn_choosebody;
public var tab:MovieClip;
}
}//package build_fla
Section 69
//soundConsole_186 (build_fla.soundConsole_186)
package build_fla {
import flash.display.*;
public dynamic class soundConsole_186 extends MovieClip {
public var voiceSetIndicator:MovieClip;
public var stationSetIndicator:MovieClip;
public var audioLevel_1:MovieClip;
public var audioLevel_2:MovieClip;
public var stationSet:MovieClip;
public var motionSetIndicator:MovieClip;
public var motionSet:MovieClip;
public var voiceSet:MovieClip;
}
}//package build_fla
Section 70
//soundLevels2_194 (build_fla.soundLevels2_194)
package build_fla {
import flash.display.*;
public dynamic class soundLevels2_194 extends MovieClip {
public function soundLevels2_194(){
addFrameScript(0, frame1, 19, frame20);
}
function frame1(){
stop();
}
function frame20(){
}
}
}//package build_fla
Section 71
//speaker_center_172 (build_fla.speaker_center_172)
package build_fla {
import flash.display.*;
public dynamic class speaker_center_172 extends MovieClip {
public function speaker_center_172(){
addFrameScript(0, frame1, 84, frame85);
}
function frame85(){
gotoAndPlay("cycle");
}
function frame1(){
stop();
}
}
}//package build_fla
Section 72
//speakerCluster1_176 (build_fla.speakerCluster1_176)
package build_fla {
import flash.events.*;
import flash.utils.*;
import flash.media.*;
import flash.display.*;
import flash.geom.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class speakerCluster1_176 extends MovieClip {
public var mid_7:MovieClip;
public var mid_5:MovieClip;
public var mid_8:MovieClip;
public var mid_1:MovieClip;
public var mid_3:MovieClip;
public var i;
public var mid_2:MovieClip;
public var me;
public var mid_4:MovieClip;
public var mid_6:MovieClip;
public function speakerCluster1_176(){
addFrameScript(0, frame1);
}
function frame1(){
me = (this as MovieClip);
i = 1;
while (i <= 8) {
me.parent.speakerArray.push(me[("mid_" + i)]);
i++;
};
}
}
}//package build_fla
Section 73
//speakerCluster2_185 (build_fla.speakerCluster2_185)
package build_fla {
import flash.events.*;
import flash.utils.*;
import flash.media.*;
import flash.display.*;
import flash.geom.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class speakerCluster2_185 extends MovieClip {
public var mid_7:MovieClip;
public var mid_5:MovieClip;
public var mid_1:MovieClip;
public var mid_3:MovieClip;
public var i;
public var mid_2:MovieClip;
public var me;
public var mid_4:MovieClip;
public var mid_6:MovieClip;
public function speakerCluster2_185(){
addFrameScript(0, frame1);
}
function frame1(){
me = (this as MovieClip);
i = 1;
while (i <= 7) {
me.parent.speakerArray.push(me[("mid_" + i)]);
i++;
};
}
}
}//package build_fla
Section 74
//stationSet_197 (build_fla.stationSet_197)
package build_fla {
import flash.display.*;
public dynamic class stationSet_197 extends MovieClip {
public var D_2:MovieClip;
public var D_4:MovieClip;
public var D_1:MovieClip;
public var D_3:MovieClip;
}
}//package build_fla
Section 75
//tramLoop_audio_327 (build_fla.tramLoop_audio_327)
package build_fla {
import flash.events.*;
import flash.utils.*;
import flash.media.*;
import flash.display.*;
import flash.geom.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class tramLoop_audio_327 extends MovieClip {
public var TB:Sound;
public var me;
public function tramLoop_audio_327(){
addFrameScript(0, frame1, 39, frame40);
}
function frame1(){
me = (this as MovieClip);
stop();
}
function frame40(){
if (me.parent.doors.gameLoading != true){
TB = new TramBuzzer();
TB.play(0, 1);
};
}
}
}//package build_fla
Section 76
//wingbotAudio_328 (build_fla.wingbotAudio_328)
package build_fla {
import flash.display.*;
public dynamic class wingbotAudio_328 extends MovieClip {
public function wingbotAudio_328(){
addFrameScript(0, frame1, 4, frame5, 9, frame10);
}
function frame10(){
stop();
}
function frame1(){
stop();
}
function frame5(){
gotoAndStop(10);
}
}
}//package build_fla
Section 77
//voiceSet_209 (build_fla.voiceSet_209)
package build_fla {
import flash.display.*;
public dynamic class voiceSet_209 extends MovieClip {
public var D_2:MovieClip;
public var D_4:MovieClip;
public var D_1:MovieClip;
public var D_3:MovieClip;
}
}//package build_fla
Section 78
//mc (CONVEYOR_main.mc)
package CONVEYOR_main {
import flash.display.*;
public dynamic class mc extends MovieClip {
public var wing_sh:MovieClip;
public var bumper_bot:MovieClip;
public var vacuum_sh:MovieClip;
public var claw_sh:MovieClip;
public var vacuum_bot:MovieClip;
public var bounce_sh:MovieClip;
public var bounce_bot:MovieClip;
public var wing_bot:MovieClip;
public var bumper_sh:MovieClip;
public var roller_sh:MovieClip;
public var claw_bot:MovieClip;
public var roller_bot:MovieClip;
public function mc(){
addFrameScript(0, frame1);
}
function frame1(){
gotoAndStop("begin");
}
}
}//package CONVEYOR_main
Section 79
//Back (fl.transitions.easing.Back)
package fl.transitions.easing {
public class Back {
public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number=0):Number{
if (!_arg5){
_arg5 = 1.70158;
};
_arg1 = ((_arg1 / _arg4) - 1);
return (((_arg3 * (((_arg1 * _arg1) * (((_arg5 + 1) * _arg1) + _arg5)) + 1)) + _arg2));
}
public static function easeIn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number=0):Number{
if (!_arg5){
_arg5 = 1.70158;
};
_arg1 = (_arg1 / _arg4);
return (((((_arg3 * _arg1) * _arg1) * (((_arg5 + 1) * _arg1) - _arg5)) + _arg2));
}
public static function easeInOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number=0):Number{
if (!_arg5){
_arg5 = 1.70158;
};
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
_arg5 = (_arg5 * 1.525);
return ((((_arg3 / 2) * ((_arg1 * _arg1) * (((_arg5 + 1) * _arg1) - _arg5))) + _arg2));
};
_arg1 = (_arg1 - 2);
_arg5 = (_arg5 * 1.525);
return ((((_arg3 / 2) * (((_arg1 * _arg1) * (((_arg5 + 1) * _arg1) + _arg5)) + 2)) + _arg2));
}
}
}//package fl.transitions.easing
Section 80
//Regular (fl.transitions.easing.Regular)
package fl.transitions.easing {
public class Regular {
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 easeIn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / _arg4);
return ((((_arg3 * _arg1) * _arg1) + _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 81
//Tween (fl.transitions.Tween)
package fl.transitions {
import flash.events.*;
import flash.utils.*;
import flash.display.*;
public class Tween extends EventDispatcher {
private var _position:Number;// = NAN
public var prevTime:Number;// = NAN
public var prevPos:Number;// = NAN
public var isPlaying:Boolean;// = false
public var begin:Number;// = NAN
private var _fps:Number;// = NAN
private var _time:Number;// = NAN
public var change:Number;// = NAN
private var _finish:Number;// = NAN
public var looping:Boolean;// = false
private var _intervalID:uint;// = 0
public var func:Function;
private var _timer:Timer;// = null
private var _startTime:Number;// = NAN
public var prop:String;// = ""
private var _duration:Number;// = NAN
public var obj:Object;// = null
public var useSeconds:Boolean;// = false
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){
isPlaying = false;
obj = null;
prop = "";
func = function (_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return ((((_arg3 * _arg1) / _arg4) + _arg2));
};
begin = NaN;
change = NaN;
useSeconds = false;
prevTime = NaN;
prevPos = NaN;
looping = false;
_duration = NaN;
_time = NaN;
_fps = NaN;
_position = NaN;
_startTime = NaN;
_intervalID = 0;
_finish = NaN;
_timer = null;
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 continueTo(_arg1:Number, _arg2:Number):void{
this.begin = this.position;
this.finish = _arg1;
if (!isNaN(_arg2)){
this.duration = _arg2;
};
this.start();
}
public function stop():void{
this.stopEnterFrame();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_STOP, this._time, this._position));
}
private function fixTime():void{
if (this.useSeconds){
this._startTime = (getTimer() - (this._time * 1000));
};
}
public function set FPS(_arg1:Number):void{
var _local2:Boolean;
_local2 = this.isPlaying;
this.stopEnterFrame();
this._fps = _arg1;
if (_local2){
this.startEnterFrame();
};
}
public function get finish():Number{
return ((this.begin + this.change));
}
public function get duration():Number{
return (this._duration);
}
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;
}
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();
};
};
}
protected function stopEnterFrame():void{
if (isNaN(this._fps)){
_mc.removeEventListener(Event.ENTER_FRAME, this.onEnterFrame);
} else {
this._timer.stop();
};
this.isPlaying = false;
}
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 set finish(_arg1:Number):void{
this.change = (_arg1 - this.begin);
}
public function set duration(_arg1:Number):void{
this._duration = ((_arg1)<=0) ? Infinity : _arg1;
}
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 resume():void{
this.fixTime();
this.startEnterFrame();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_RESUME, this._time, this._position));
}
public function fforward():void{
this.time = this._duration;
this.fixTime();
}
protected function onEnterFrame(_arg1:Event):void{
this.nextFrame();
}
public function get position():Number{
return (this.getPosition(this._time));
}
public function yoyo():void{
this.continueTo(this.begin, this.time);
}
public function nextFrame():void{
if (this.useSeconds){
this.time = ((getTimer() - this._startTime) / 1000);
} else {
this.time = (this._time + 1);
};
}
protected function timerHandler(_arg1:TimerEvent):void{
this.nextFrame();
_arg1.updateAfterEvent();
}
public function get FPS():Number{
return (this._fps);
}
public function rewind(_arg1:Number=0):void{
this._time = _arg1;
this.fixTime();
this.update();
}
public function set position(_arg1:Number):void{
this.setPosition(_arg1);
}
public function get time():Number{
return (this._time);
}
private function update():void{
this.setPosition(this.getPosition(this._time));
}
public function start():void{
this.rewind();
this.startEnterFrame();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_START, this._time, this._position));
}
public function prevFrame():void{
if (!this.useSeconds){
this.time = (this._time - 1);
};
}
}
}//package fl.transitions
Section 82
//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_LOOP:String = "motionLoop";
public static const MOTION_CHANGE:String = "motionChange";
public static const MOTION_FINISH:String = "motionFinish";
public static const MOTION_RESUME:String = "motionResume";
public function TweenEvent(_arg1:String, _arg2:Number, _arg3:Number, _arg4:Boolean=false, _arg5:Boolean=false){
time = NaN;
position = NaN;
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 83
//aif (organic_whoosh_25.aif)
package organic_whoosh_25 {
import flash.media.*;
public dynamic class aif extends Sound {
}
}//package organic_whoosh_25
Section 84
//aif (organic_whoosh_31.aif)
package organic_whoosh_31 {
import flash.media.*;
public dynamic class aif extends Sound {
}
}//package organic_whoosh_31
Section 85
//mp3 (signBot_in.mp3)
package signBot_in {
import flash.media.*;
public dynamic class mp3 extends Sound {
}
}//package signBot_in
Section 86
//mp3 (signBot_out.mp3)
package signBot_out {
import flash.media.*;
public dynamic class mp3 extends Sound {
}
}//package signBot_out
Section 87
//mp3 (tramIn.mp3)
package tramIn {
import flash.media.*;
public dynamic class mp3 extends Sound {
}
}//package tramIn
Section 88
//mp3 (weld.mp3)
package weld {
import flash.media.*;
public dynamic class mp3 extends Sound {
}
}//package weld
Section 89
//Alarm (Alarm)
package {
import flash.media.*;
public dynamic class Alarm extends Sound {
}
}//package
Section 90
//Audio (Audio)
package {
import flash.events.*;
import fl.transitions.*;
import fl.transitions.easing.*;
import flash.utils.*;
import flash.media.*;
import flash.display.*;
import flash.geom.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class Audio extends MovieClip {
public var soundString:String;
public var audioBarTween:Tween;
public var nextActivated:Boolean;
public var dfi;
public var SoundPlaying:Array;
public var audioBar:MovieClip;
public var ss:Array;
public var si;
public var Sets:Array;
public var asi;
public var ts:Array;
public var Rev:Boolean;
public var df:Number;
public var SoundDef:Object;
public var trans:Boolean;
public var SoundArray:Array;
public var controls:MovieClip;
public var mySound;
public var DefaultSounds;
public var AssignedSounds:Array;
public var sii;
public var tempArray:Array;
public var xi;
public var SoundSet:Array;
public var botName:Array;
public var rightMids:MovieClip;
public var levelsOff:Boolean;
public var botSound:Array;
public var me;
public var speakerArray:Array;
public var woofer:MovieClip;
public var xii;
public var Body:MovieClip;
public var Mobility:MovieClip;
public var leftMids:MovieClip;
public var caption:AudioCaption;
public function Audio(){
addFrameScript(0, frame1);
}
public function tabListeners(_arg1){
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
if (_arg1 == true){
controls.addEventListener(MouseEvent.MOUSE_OVER, MouseOver);
audioBar.addEventListener(MouseEvent.MOUSE_OVER, MouseOver);
_local2 = 0;
while (_local2 < Sets.length) {
_local5 = Sets[_local2];
_local5.addEventListener(MouseEvent.ROLL_OVER, indicatorUP);
_local5.addEventListener(MouseEvent.ROLL_OUT, indicatorDN);
_local3 = 1;
while (_local3 <= 4) {
_local4 = _local5[("D_" + _local3)];
_local4.soundType = _local2;
_local4.botType = _local3;
_local4.mouseChildren = false;
_local4.buttonMode = true;
_local4.addEventListener(MouseEvent.ROLL_OVER, drumOver);
_local4.addEventListener(MouseEvent.ROLL_OUT, drumOut);
_local4.addEventListener(MouseEvent.CLICK, drumClick);
_local3++;
};
_local2++;
};
} else {
controls.removeEventListener(MouseEvent.MOUSE_OVER, MouseOver);
audioBar.removeEventListener(MouseEvent.MOUSE_OVER, MouseOver);
_local2 = 0;
while (_local2 < Sets.length) {
_local5 = Sets[_local2];
_local5.removeEventListener(MouseEvent.ROLL_OVER, indicatorUP);
_local5.removeEventListener(MouseEvent.ROLL_OUT, indicatorDN);
_local3 = 1;
while (_local3 <= 4) {
_local4 = _local5[("D_" + _local3)];
_local4.soundType = _local2;
_local4.botType = _local3;
_local4.buttonMode = false;
_local4.removeEventListener(MouseEvent.ROLL_OVER, drumOver);
_local4.removeEventListener(MouseEvent.ROLL_OUT, drumOut);
_local4.removeEventListener(MouseEvent.CLICK, drumClick);
_local3++;
};
_local2++;
};
};
}
function frame1(){
me = (this as MovieClip);
Rev = false;
Body.gotoAndStop(me.parent.parent.botMenu.bodyCount);
Mobility.gotoAndStop(me.parent.parent.botMenu.mobilityCount);
Body.tintMask.visible = false;
Mobility.tintMask.visible = false;
if (me.parent.parent.botMenu.botColor != false){
Body.colorBot(me.parent.parent.botMenu.botColor, false);
Mobility.colorBot(me.parent.parent.botMenu.botColor, false);
};
transition(true);
botName = new Array();
botName[0] = "Claw";
botName[1] = "Bumper";
botName[2] = "Bounce";
botName[3] = "Roller";
botName[4] = "Wing";
botName[5] = "Vacuum";
botSound = new Array();
botSound[0] = "Action";
botSound[1] = "Station";
botSound[2] = "Motion";
botSound[3] = "Voice";
SoundSet = new Array();
si = 0;
while (si < botName.length) {
ss = new Array();
sii = 1;
while (sii < botSound.length) {
soundString = (((botName[si] + "_") + botSound[sii]) + "_Sound");
SoundDef = getDefinitionByName(soundString);
mySound = new SoundDef();
mySound.myID = botName[si];
ss.push(mySound);
sii++;
};
SoundSet.push(ss);
si++;
};
df = (Mobility.currentFrame - 1);
DefaultSounds = SoundSet[df];
tempArray = new Array();
dfi = 0;
while (dfi < SoundSet.length) {
if (dfi != df){
tempArray.push(SoundSet[dfi]);
};
dfi++;
};
SoundArray = new Array();
xi = 0;
while (xi < 3) {
ts = new Array();
xii = 0;
while (xii < tempArray.length) {
ts.push(tempArray[xii][xi]);
xii++;
};
ts = ts.sort(shuffle);
ts.unshift(DefaultSounds[xi]);
SoundArray.push(ts);
xi++;
};
speakerArray = new Array();
speakerArray.push(woofer);
AssignedSounds = new Array();
asi = 0;
while (asi < 3) {
AssignedSounds.push(SoundArray[asi][0].myID);
asi++;
};
SoundPlaying = new Array();
levelsOff = true;
controls.addEventListener(Event.ENTER_FRAME, soundMonitor);
nextActivated = false;
Sets = new Array();
Sets[0] = controls.stationSet;
Sets[1] = controls.motionSet;
Sets[2] = controls.voiceSet;
}
public function reverseCaption(_arg1){
if (caption.currentFrame > 1){
caption.gotoAndStop((caption.currentFrame - 1));
} else {
caption.removeEventListener(Event.ENTER_FRAME, reverseCaption);
me.parent.removeChild(caption);
caption = undefined;
};
}
public function MouseDown(_arg1:MouseEvent):void{
if (caption){
caption.addEventListener(Event.ENTER_FRAME, reverseCaption);
};
}
public function indicatorDN(_arg1){
var _local2:*;
_local2 = controls[(_arg1.target.name + "Indicator")];
_local2.myTween = new Tween(_local2, "y", Regular.easeInOut, _local2.y, _local2.dn, 4, false);
}
public function indicatorUP(_arg1){
var _local2:*;
_local2 = controls[(_arg1.target.name + "Indicator")];
_local2.myTween = new Tween(_local2, "y", Regular.easeInOut, _local2.y, _local2.up, 4, false);
}
public function shuffle(_arg1, _arg2):Number{
var _local3:Number;
_local3 = (Math.round((Math.random() * 2)) - 1);
return (_local3);
}
public function MouseOver(_arg1){
if (caption){
caption.addEventListener(Event.ENTER_FRAME, reverseCaption);
};
}
public function fadeDnLevels(_arg1){
if (controls.audioLevel_1.currentFrame > 1){
controls.audioLevel_1.gotoAndStop((controls.audioLevel_1.currentFrame - 1));
controls.audioLevel_2.gotoAndStop((controls.audioLevel_2.currentFrame - 1));
} else {
controls.audioLevel_1.removeEventListener(Event.ENTER_FRAME, fadeDnLevels);
};
}
public function finishHandler(_arg1:TweenEvent){
audioBarTween.removeEventListener(TweenEvent.MOTION_FINISH, finishHandler);
if (Rev != true){
trans = false;
caption = new AudioCaption();
caption.x = 80;
caption.y = 250;
me.parent.addChild(caption);
trans = false;
tabListeners(true);
} else {
me.parent.parent.doors.gotoAndPlay(2);
};
}
public function soundMonitor(_arg1){
var _local2:Number;
var _local3:*;
var _local4:*;
if (SoundPlaying.length > 0){
controls.audioLevel_1.removeEventListener(Event.ENTER_FRAME, fadeDnLevels);
_local2 = (Math.round(((Math.random() * controls.audioLevel_1.totalFrames) - 1)) + 1);
controls.audioLevel_1.gotoAndStop(_local2);
controls.audioLevel_2.gotoAndStop(_local2);
} else {
if (levelsOff == false){
levelsOff = true;
controls.audioLevel_1.addEventListener(Event.ENTER_FRAME, fadeDnLevels);
_local3 = 0;
while (_local3 < speakerArray.length) {
_local4 = speakerArray[_local3];
_local4.gotoAndStop(1);
_local3++;
};
};
};
}
public function transition(_arg1){
var _local2:*;
trans = true;
if (_arg1 == true){
Rev = false;
audioBarTween = new Tween(audioBar, "y", Regular.easeOut, 600, 408, 20, false);
} else {
AssignedSounds[0] = (AssignedSounds[0] + "_Station_Sound");
AssignedSounds[1] = (AssignedSounds[1] + "_Motion_Sound");
AssignedSounds[2] = (AssignedSounds[2] + "_Voice_Sound");
me.parent.parent.botMenu.AssignedSounds = AssignedSounds;
trace(AssignedSounds);
if (SoundPlaying.length > 0){
_local2 = 0;
while (_local2 < SoundPlaying.length) {
SoundPlaying[_local2].stop();
_local2++;
};
};
tabListeners(false);
Rev = true;
audioBarTween = new Tween(audioBar, "y", Regular.easeOut, 408, 600, 20, false);
if (caption){
caption.removeEventListener(Event.ENTER_FRAME, reverseCaption);
caption.addEventListener(Event.ENTER_FRAME, reverseCaption);
};
};
audioBarTween.addEventListener(TweenEvent.MOTION_FINISH, finishHandler);
}
public function drumClick(_arg1){
var _local2:*;
var _local3:*;
var _local4:*;
if (nextActivated == false){
nextActivated = true;
me.parent.parent.botMenu.nextBtnListeners(true);
};
_local3 = 1;
while (_local3 <= 4) {
_local2 = _arg1.target.parent[("D_" + _local3)];
_local2.gotoAndStop(1);
_local3++;
};
_local2 = _arg1.target;
_local2.gotoAndPlay(29);
_local4 = SoundArray[_local2.soundType][(_local2.botType - 1)].myID;
AssignedSounds[_local2.soundType] = _local4;
}
public function drumOver(_arg1){
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
_local2 = _arg1.target;
if (_local2.currentFrame < 29){
_local2.gotoAndPlay(2);
};
_local3 = 0;
while (_local3 < speakerArray.length) {
_local5 = speakerArray[_local3];
_local5.gotoAndPlay(2);
_local3++;
};
_local4 = SoundArray[_local2.soundType][(_local2.botType - 1)];
_local2.sc = _local4.play();
_local2.sc.addEventListener(Event.SOUND_COMPLETE, popMe);
SoundPlaying.push(_local2.sc);
levelsOff = false;
}
public function drumOut(_arg1){
var _local2:*;
var _local3:*;
_local2 = _arg1.target;
if (_local2.sc){
_local2.sc.stop();
_local3 = SoundPlaying.pop();
};
if (_local2.currentFrame < 29){
_local2.gotoAndStop(1);
};
}
public function popMe(_arg1){
var _local2:*;
_local2 = SoundPlaying.pop();
}
}
}//package
Section 91
//Audio_BG (Audio_BG)
package {
import flash.display.*;
public dynamic class Audio_BG extends MovieClip {
}
}//package
Section 92
//AudioCaption (AudioCaption)
package {
import flash.display.*;
public dynamic class AudioCaption extends MovieClip {
public function AudioCaption(){
addFrameScript(0, frame1, 19, frame20);
}
function frame1(){
}
function frame20(){
stop();
}
}
}//package
Section 93
//Belt (Belt)
package {
import flash.media.*;
public dynamic class Belt extends Sound {
}
}//package
Section 94
//BG_s (BG_s)
package {
import flash.media.*;
public dynamic class BG_s extends Sound {
}
}//package
Section 95
//Body (Body)
package {
import flash.events.*;
import fl.transitions.*;
import fl.transitions.easing.*;
import flash.utils.*;
import flash.media.*;
import flash.display.*;
import flash.geom.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class Body extends MovieClip {
public var rotDist:Number;
public var snapping:Boolean;
public var sc;
public var speed:Number;
public var st;
public var clothesLine:MovieClip;
public var i:Number;
public var nextRoom;
public var picked;
public var Rev:Boolean;
public var howMuch;
public var transTween:Tween;
public var trans:Boolean;
public var myFilters:Array;
public var mySound;
public var bgs;
public var snapped:Boolean;
public var space;
public var myArm:MovieClip;
public var throttle:MovieClip;
public var clw:Number;
public var spotLight:spotLightAnim;
public var released:Boolean;
public var loud;
public var armArray:Array;
public var classDefintion:Object;
public var throttleTween:Tween;
public var arms:Number;
public var me;
public var dist:Number;
public var myRect:Rectangle;
public var caption:BodyCaption;
public var window:Number;
public function Body(){
addFrameScript(0, frame1);
}
public function setRotation(_arg1:Event){
var _local2:*;
var _local3:*;
_local2 = armArray[0];
if (trans == true){
rotDist = (clothesLine.x - rotDist);
} else {
rotDist = (_local2.x - rotDist);
};
i = 0;
while (i < armArray.length) {
_local3 = armArray[i];
_local3.rotation = rotDist;
i++;
};
if (trans == true){
rotDist = clothesLine.x;
} else {
rotDist = _local2.x;
};
}
public function MouseUp(_arg1:MouseEvent):void{
var _local2:Tween;
throttle.tab.stopDrag();
released = true;
_local2 = new Tween(throttle.tab, "x", Back.easeOut, throttle.tab.x, 0, 0.5, true);
selectBot();
}
public function tabListeners(_arg1){
if (_arg1 == true){
throttle.tab.addEventListener(MouseEvent.MOUSE_DOWN, MouseDown);
throttle.tab.addEventListener(MouseEvent.MOUSE_OUT, MouseUp);
addEventListener(MouseEvent.MOUSE_UP, MouseUp);
throttle.chooseBody.addEventListener(MouseEvent.CLICK, c_Click);
throttle.chooseBody.mouseChildren = false;
throttle.chooseBody.buttonMode = true;
} else {
throttle.tab.removeEventListener(MouseEvent.MOUSE_DOWN, MouseDown);
throttle.tab.removeEventListener(MouseEvent.MOUSE_OUT, MouseUp);
removeEventListener(MouseEvent.MOUSE_UP, MouseUp);
throttle.chooseBody.removeEventListener(MouseEvent.CLICK, c_Click);
};
}
function frame1(){
bgs = fadeInSound("BG_s", 0.1, true);
armArray = new Array();
trans = true;
myFilters = new Array();
arms = 9;
space = 400;
window = 1000;
speed = 5;
rotDist = 0;
me = (this as MovieClip);
clothesLine = new MovieClip();
i = 1;
while (i <= arms) {
classDefintion = getDefinitionByName(("Body_" + i));
myArm = new classDefintion();
clothesLine.addChild(myArm);
myArm.name = ("arm_" + (i + 1));
myArm.ID = i;
myArm.x = ((i * space) - (arms * space));
armArray.push(myArm);
i++;
};
clw = clothesLine.width;
clothesLine.x = -((clw + 700));
addChild(clothesLine);
speed = throttle.tab.x;
throttle.addEventListener(Event.ENTER_FRAME, setSpeed);
throttle.addEventListener(Event.ENTER_FRAME, setRotation);
myRect = new Rectangle(-95, 0, 190, 0);
Rev = false;
me.parent.parent.botMenu.nextBtnListeners(false);
transition(true);
}
public function c_Click(_arg1){
throttle.chooseBody.gotoAndStop(17);
throttle.chooseBody.removeEventListener(MouseEvent.CLICK, c_Click);
throttle.chooseBody.buttonMode = false;
me.parent.parent.botMenu.nextBtnListeners(true);
spotLight.gotoAndPlay(2);
if (caption){
caption.removeEventListener(Event.ENTER_FRAME, reverseCaption);
caption.addEventListener(Event.ENTER_FRAME, reverseCaption);
};
}
public function fadeIN(_arg1){
if (st.volume < loud){
st.volume = (st.volume + 0.005);
sc.soundTransform = st;
} else {
this.removeEventListener(Event.ENTER_FRAME, fadeIN);
};
}
public function reverseCaption(_arg1){
if (caption.currentFrame > 1){
caption.gotoAndStop((caption.currentFrame - 1));
} else {
removeChild(caption);
caption.removeEventListener(Event.ENTER_FRAME, reverseCaption);
caption = undefined;
};
}
public function MouseDown(_arg1:MouseEvent):void{
var _local2:*;
var _local3:*;
if (caption){
caption.addEventListener(Event.ENTER_FRAME, reverseCaption);
};
released = false;
picked = undefined;
snapping = false;
snapped = false;
dist = undefined;
throttle.tab.startDrag(true, myRect);
_local2 = 0;
while (_local2 < armArray.length) {
_local3 = armArray[_local2];
if (_local3.myTween){
_local3.myTween.stop();
};
_local2++;
};
me.parent.parent.botMenu.nextBtnListeners(false);
spotLight.removeEventListener(Event.ENTER_FRAME, reverseSpot);
spotLight.addEventListener(Event.ENTER_FRAME, reverseSpot);
throttle.chooseBody.addEventListener(MouseEvent.CLICK, c_Click);
throttle.chooseBody.buttonMode = true;
throttle.chooseBody.gotoAndPlay(1);
}
public function fadeInSound(_arg1, _arg2, _arg3){
var _local4:Object;
loud = _arg3;
_local4 = getDefinitionByName(_arg1);
mySound = (new (_local4) as Sound);
sc = mySound.play(0, 1000);
st = sc.soundTransform;
st.volume = 0;
sc.soundTransform = st;
this.addEventListener(Event.ENTER_FRAME, fadeIN);
return (mySound);
}
public function reverseSpot(_arg1){
if (spotLight.currentFrame > 1){
spotLight.gotoAndStop((spotLight.currentFrame - 1));
} else {
spotLight.removeEventListener(Event.ENTER_FRAME, reverseSpot);
};
}
public function setSpeed(_arg1){
var _local2:*;
var _local3:Number;
var _local4:BlurFilter;
dist = (speed - ((speed - (throttle.tab.x / 2)) * 5));
speed = (speed - ((speed - (throttle.tab.x / 2)) * 0.5));
if (released == true){
if (Math.abs(speed) < 10){
snapped = true;
};
};
i = 0;
while (i < armArray.length) {
_local2 = armArray[i];
if (snapped != true){
_local2.x = (_local2.x + speed);
} else {
if (snapping != true){
snapping = true;
snap();
};
};
_local3 = Math.floor(Math.abs((speed / 10)));
_local4 = new BlurFilter((_local3 * 5), 0, 1);
myFilters[0] = _local4;
if ((((_local2.x > (-(window) / 2))) && ((_local2.x < (window / 2))))){
_local2.filters = myFilters;
} else {
_local2.filters = undefined;
};
if (_local2.x > (clw - window)){
_local2.x = (_local2.x - (space * arms));
};
if (_local2.x < -((clw - window))){
_local2.x = (_local2.x + (space * arms));
};
i++;
};
}
public function selectBot(){
var _local1:Number;
_local1 = 1000;
i = 0;
while (i < armArray.length) {
myArm = armArray[i];
myArm.filters = undefined;
myArm.dist = Math.abs(myArm.x);
if (myArm.dist < _local1){
picked = myArm;
_local1 = myArm.dist;
};
i++;
};
}
public function fadeOUT(_arg1){
if (st.volume > 0){
st.volume = (st.volume - 0.05);
sc.soundTransform = st;
} else {
sc.stop();
this.removeEventListener(Event.ENTER_FRAME, fadeOUT);
};
}
public function finishHandler(_arg1:TweenEvent){
transTween.removeEventListener(TweenEvent.MOTION_FINISH, finishHandler);
if (Rev != true){
caption = new BodyCaption();
caption.x = 20;
caption.y = 395;
addChild(caption);
trans = false;
rotDist = armArray[0].x;
tabListeners(true);
} else {
this.addEventListener(Event.ENTER_FRAME, fadeOUT);
if (nextRoom == true){
me.parent.parent.doors.gotoAndPlay(2);
} else {
me.parent.parent.dialogBoxAnime.play();
me.parent.parent.wingBotAudio.gotoAndPlay(2);
};
};
}
public function transition(_arg1){
trans = true;
if (_arg1 == true){
Rev = false;
transTween = new Tween(clothesLine, "x", Regular.easeOut, clothesLine.x, 0, 75, false);
throttleTween = new Tween(throttle, "y", Regular.easeOut, 600, 400, 20, false);
} else {
me.parent.parent.botMenu.nextBtnListeners(false);
if (caption){
caption.removeEventListener(Event.ENTER_FRAME, reverseCaption);
caption.addEventListener(Event.ENTER_FRAME, reverseCaption);
};
tabListeners(false);
Rev = true;
rotDist = 0;
if (nextRoom != true){
throttleTween = new Tween(throttle, "y", Regular.easeOut, 400, 600, 20, false);
me.parent.parent.botMenu.addEventListener(Event.ENTER_FRAME, reverseMenu);
transTween = new Tween(clothesLine, "x", Regular.easeIn, clothesLine.x, -(clw), 75, false);
} else {
transTween = new Tween(throttle, "y", Regular.easeOut, 400, 600, 20, false);
};
};
transTween.addEventListener(TweenEvent.MOTION_FINISH, finishHandler);
}
public function reverseMenu(_arg1){
if (_arg1.target.currentFrame > 1){
_arg1.target.gotoAndStop((_arg1.target.currentFrame - 1));
} else {
me.parent.parent.botMenu.removeEventListener(Event.ENTER_FRAME, reverseMenu);
};
}
public function snap(){
var _local1:Number;
var _local2:*;
var _local3:*;
var _local4:*;
me.parent.parent.botMenu.bodyCount = picked.ID;
_local1 = 6;
_local2 = -(picked.x);
_local3 = Math.round((Math.abs(_local2) / _local1));
i = 0;
while (i < armArray.length) {
_local4 = armArray[i];
_local4.myTween = new Tween(_local4, "x", Regular.easeInOut, _local4.x, (_local4.x + _local2), _local3, false);
i++;
};
}
}
}//package
Section 96
//Body_1 (Body_1)
package {
import flash.display.*;
public dynamic class Body_1 extends MovieClip {
}
}//package
Section 97
//Body_2 (Body_2)
package {
import flash.display.*;
public dynamic class Body_2 extends MovieClip {
}
}//package
Section 98
//Body_3 (Body_3)
package {
import flash.display.*;
public dynamic class Body_3 extends MovieClip {
}
}//package
Section 99
//Body_4 (Body_4)
package {
import flash.display.*;
public dynamic class Body_4 extends MovieClip {
}
}//package
Section 100
//Body_5 (Body_5)
package {
import flash.display.*;
public dynamic class Body_5 extends MovieClip {
}
}//package
Section 101
//Body_6 (Body_6)
package {
import flash.display.*;
public dynamic class Body_6 extends MovieClip {
}
}//package
Section 102
//Body_7 (Body_7)
package {
import flash.display.*;
public dynamic class Body_7 extends MovieClip {
}
}//package
Section 103
//Body_8 (Body_8)
package {
import flash.display.*;
public dynamic class Body_8 extends MovieClip {
}
}//package
Section 104
//Body_9 (Body_9)
package {
import flash.display.*;
public dynamic class Body_9 extends MovieClip {
}
}//package
Section 105
//BodyCaption (BodyCaption)
package {
import flash.display.*;
public dynamic class BodyCaption extends MovieClip {
public function BodyCaption(){
addFrameScript(19, frame20);
}
function frame20(){
stop();
}
}
}//package
Section 106
//BodyMainTintMask (BodyMainTintMask)
package {
import flash.display.*;
public dynamic class BodyMainTintMask extends MovieClip {
public var tintMask:MovieClip;
public function BodyMainTintMask(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 107
//BotMenu (BotMenu)
package {
import flash.events.*;
import fl.transitions.*;
import fl.transitions.easing.*;
import flash.utils.*;
import flash.media.*;
import flash.display.*;
import flash.geom.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class BotMenu extends MovieClip {
public var backBtn:MovieClip;
public var restart;
public var RoomNumber:Number;
public var currentRoom:Number;
public var roomArray:Array;
public var nextBtn:MovieClip;
public var Arch:MovieClip;
public var Room:MovieClip;
public var ping:Sound;
public var me;
public var colorArray:Array;
public var menuParts:Array;
public var glowArray:Array;
public var psc;
public var resetPressed:Boolean;
public var AssignedSounds:Array;
public var GAME:String;
public function BotMenu(){
addFrameScript(0, frame1, 25, frame26);
}
public function glowMe(_arg1, _arg2){
var _local3:Array;
var _local4:GlowFilter;
_local3 = new Array();
_local4 = new GlowFilter(_arg2, 1, 5, 5, 2, 3, false, false);
_local3.push(_local4);
_arg1.filters = _local3;
}
public function init(_arg1){
var _local2:Object;
RoomNumber = _arg1;
me.visible = true;
me.play();
if (_arg1 == 0){
nextBtn.visible = false;
} else {
nextBtn.visible = true;
};
changeColor(_arg1);
_local2 = getDefinitionByName(roomArray[_arg1]);
Room = new (_local2);
me.addChild(Room);
Room.ID = roomArray[_arg1];
}
public function nextFunction(_arg1){
shutterMe();
if (Room.trans == false){
currentRoom = RoomNumber;
RoomNumber++;
Room.nextRoom = true;
Room.transition(false);
me.parent.doors.Rev = false;
backBtn.arrows.filters = undefined;
backBtn.myText.filters = undefined;
backBtn.arrows.arrowsOn = false;
nextBtn.arrows.filters = undefined;
nextBtn.myText.filters = undefined;
nextBtn.arrows.arrowsOn = false;
};
}
public function resetFromGame(_arg1){
me.parent.doors.gameLoading = false;
me.parent.doors.LG = false;
me.parent.doors.leftDoor.doorNumber.gotoAndStop(RoomNumber);
me.parent.doors.doorTrans.rightDoor.doorNumber.gotoAndStop(RoomNumber);
me.parent.doors.doorTrans.leftDoor.doorNumber.gotoAndStop(RoomNumber);
me.parent.doors.rightDoor.doorNumber.gotoAndStop(RoomNumber);
if (_arg1 > 100){
RoomNumber = 10;
} else {
RoomNumber = _arg1;
me.parent.doors.Rev = true;
};
resetPressed = true;
me.parent.doors.gotoAndPlay(2);
}
public function addRestartFunction(_arg1){
if (_arg1 == true){
restart.gotoAndStop(2);
restart.addEventListener(MouseEvent.MOUSE_OVER, r_Over);
restart.addEventListener(MouseEvent.MOUSE_OUT, r_Out);
restart.addEventListener(MouseEvent.CLICK, r_Click);
restart.buttonMode = true;
} else {
restart.gotoAndStop(1);
restart.removeEventListener(MouseEvent.MOUSE_OVER, r_Over);
restart.removeEventListener(MouseEvent.MOUSE_OUT, r_Out);
restart.removeEventListener(MouseEvent.CLICK, r_Click);
restart.buttonMode = false;
};
}
public function r_Click(_arg1){
resetPressed = true;
trace(RoomNumber);
if (RoomNumber > 1){
if (RoomNumber > 10){
if (Room.gameMode == "playing"){
Room.gameMode = "quitting";
Room.setVolume();
Room.gameControl();
};
} else {
if (Room.trans == false){
shutterMe();
me.parent.doors.leftDoor.doorNumber.gotoAndStop(RoomNumber);
me.parent.doors.doorTrans.rightDoor.doorNumber.gotoAndStop(RoomNumber);
me.parent.doors.doorTrans.leftDoor.doorNumber.gotoAndStop(RoomNumber);
me.parent.doors.rightDoor.doorNumber.gotoAndStop(RoomNumber);
RoomNumber = 10;
Room.nextRoom = true;
Room.transition(false);
me.parent.doors.Rev = true;
};
};
} else {
if (me.parent.dialogBoxAnime.currentFrame == 1){
if (Room.trans == false){
Room.nextRoom = false;
Room.transition(false);
currentRoom = RoomNumber;
RoomNumber--;
me.parent.doors.Rev = true;
};
};
};
}
public function backRO(_arg1){
trace(RoomNumber);
pingMe();
glowMe(backBtn.arrows, glowArray[RoomNumber]);
glowMe(backBtn.myText, glowArray[RoomNumber]);
backBtn.arrows.arrowsOn = true;
if (backBtn.arrows.currentFrame == 1){
backBtn.arrows.gotoAndPlay(2);
};
}
public function backRT(_arg1){
psc.stop();
backBtn.arrows.filters = undefined;
backBtn.myText.filters = undefined;
backBtn.arrows.arrowsOn = false;
nextBtn.arrows.filters = undefined;
nextBtn.myText.filters = undefined;
nextBtn.arrows.arrowsOn = false;
}
function frame26(){
stop();
}
public function nextRT(_arg1){
psc.stop();
nextBtn.arrows.filters = undefined;
nextBtn.myText.filters = undefined;
nextBtn.arrows.arrowsOn = false;
}
public function nextRO(_arg1){
pingMe();
glowMe(nextBtn.arrows, glowArray[RoomNumber]);
glowMe(nextBtn.myText, glowArray[RoomNumber]);
nextBtn.arrows.arrowsOn = true;
if (nextBtn.arrows.currentFrame == 1){
nextBtn.arrows.gotoAndPlay(2);
};
}
public function changeColor(_arg1){
var _local2:ColorTransform;
var _local3:*;
var _local4:*;
_local2 = new ColorTransform();
_local2.color = colorArray[_arg1];
_local3 = 0;
while (_local3 < menuParts.length) {
_local4 = menuParts[_local3];
if (_local4){
_local4.transform.colorTransform = _local2;
};
_local3++;
};
}
function frame1(){
me = (this as MovieClip);
stop();
currentRoom = 1;
resetPressed = false;
menuParts = new Array();
menuParts[0] = Arch.Base;
menuParts[1] = backBtn.Base;
menuParts[2] = nextBtn.Base;
colorArray = new Array();
colorArray[0] = 1416230;
colorArray[1] = 4505283;
colorArray[2] = 13269250;
colorArray[3] = 9025776;
colorArray[4] = 8398751;
colorArray[5] = 0x900000;
glowArray = new Array();
glowArray[0] = 1821484;
glowArray[1] = 7392202;
glowArray[2] = 13794818;
glowArray[3] = 10795210;
glowArray[4] = 10500558;
glowArray[5] = 12648962;
roomArray = new Array();
roomArray[0] = "Default";
roomArray[1] = "Body";
roomArray[2] = "Mobility";
roomArray[3] = "Paint";
roomArray[4] = "Audio";
roomArray[5] = "Preview";
backBtn.addEventListener(MouseEvent.CLICK, backFunction);
backBtn.addEventListener(MouseEvent.ROLL_OVER, backRO);
backBtn.addEventListener(MouseEvent.ROLL_OUT, backRT);
backBtn.buttonMode = true;
restart = me.parent.myFrame.restart;
restart.mouseChildren = false;
addRestartFunction(true);
}
public function r_Over(_arg1){
restart.restart.gotoAndPlay(2);
}
public function pingMe(){
ping = new Ping();
psc = ping.play(0, 100);
}
public function shutterMe(){
var _local1:Sound;
if (psc){
psc.stop();
};
_local1 = new Shutter();
_local1.play(0, 1);
}
public function nextBtnListeners(_arg1){
if (_arg1 == true){
nextBtn.visible = true;
nextBtn.Tween = new Tween(nextBtn, "x", Back.easeOut, nextBtn.x, 281, 10, false);
nextBtn.addEventListener(MouseEvent.CLICK, nextFunction);
nextBtn.addEventListener(MouseEvent.ROLL_OVER, nextRO);
nextBtn.addEventListener(MouseEvent.ROLL_OUT, nextRT);
nextBtn.buttonMode = true;
} else {
nextBtn.Tween = new Tween(nextBtn, "x", Back.easeIn, nextBtn.x, 381, 10, false);
nextBtn.removeEventListener(MouseEvent.CLICK, nextFunction);
nextBtn.removeEventListener(MouseEvent.ROLL_OVER, nextRO);
nextBtn.removeEventListener(MouseEvent.ROLL_OUT, nextRT);
nextBtn.buttonMode = false;
};
}
public function r_Out(_arg1){
restart.restart.gotoAndStop(1);
}
public function backFunction(_arg1){
shutterMe();
if (Room.trans == false){
Room.nextRoom = false;
Room.transition(false);
currentRoom = RoomNumber;
RoomNumber--;
me.parent.doors.Rev = true;
backBtn.arrows.filters = undefined;
backBtn.myText.filters = undefined;
backBtn.arrows.arrowsOn = false;
nextBtn.arrows.filters = undefined;
nextBtn.myText.filters = undefined;
nextBtn.arrows.arrowsOn = false;
};
}
public function loadGame(_arg1){
shutterMe();
if (Room.trans == false){
currentRoom = 10;
me.parent.doors.LG = true;
me.parent.doors.leftDoor.doorNumber.gotoAndStop(currentRoom);
me.parent.doors.doorTrans.rightDoor.doorNumber.gotoAndStop(currentRoom);
me.parent.doors.doorTrans.leftDoor.doorNumber.gotoAndStop(currentRoom);
me.parent.doors.rightDoor.doorNumber.gotoAndStop(currentRoom);
RoomNumber = (_arg1.target.gameFrame + 10);
Room.transition(false);
me.parent.doors.Rev = false;
};
}
}
}//package
Section 108
//Bounce_Action_Sound (Bounce_Action_Sound)
package {
import flash.media.*;
public dynamic class Bounce_Action_Sound extends Sound {
}
}//package
Section 109
//Bounce_Motion_Sound (Bounce_Motion_Sound)
package {
import flash.media.*;
public dynamic class Bounce_Motion_Sound extends Sound {
}
}//package
Section 110
//Bounce_Station_Sound (Bounce_Station_Sound)
package {
import flash.media.*;
public dynamic class Bounce_Station_Sound extends Sound {
}
}//package
Section 111
//Bounce_Voice_Sound (Bounce_Voice_Sound)
package {
import flash.media.*;
public dynamic class Bounce_Voice_Sound extends Sound {
}
}//package
Section 112
//btn_choosebody (btn_choosebody)
package {
import flash.display.*;
public dynamic class btn_choosebody extends MovieClip {
public function btn_choosebody(){
addFrameScript(0, frame1, 15, frame16, 16, frame17);
}
function frame16(){
gotoAndPlay("onState");
}
function frame1(){
}
function frame17(){
stop();
}
}
}//package
Section 113
//btn_choosemobility (btn_choosemobility)
package {
import flash.display.*;
public dynamic class btn_choosemobility extends MovieClip {
public function btn_choosemobility(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 114
//Bumper_Action_Sound (Bumper_Action_Sound)
package {
import flash.media.*;
public dynamic class Bumper_Action_Sound extends Sound {
}
}//package
Section 115
//Bumper_Motion_Sound (Bumper_Motion_Sound)
package {
import flash.media.*;
public dynamic class Bumper_Motion_Sound extends Sound {
}
}//package
Section 116
//Bumper_Station_Sound (Bumper_Station_Sound)
package {
import flash.media.*;
public dynamic class Bumper_Station_Sound extends Sound {
}
}//package
Section 117
//Bumper_Voice_Sound (Bumper_Voice_Sound)
package {
import flash.media.*;
public dynamic class Bumper_Voice_Sound extends Sound {
}
}//package
Section 118
//Claw_Action_Sound (Claw_Action_Sound)
package {
import flash.media.*;
public dynamic class Claw_Action_Sound extends Sound {
}
}//package
Section 119
//Claw_Motion_Sound (Claw_Motion_Sound)
package {
import flash.media.*;
public dynamic class Claw_Motion_Sound extends Sound {
}
}//package
Section 120
//Claw_Station_Sound (Claw_Station_Sound)
package {
import flash.media.*;
public dynamic class Claw_Station_Sound extends Sound {
}
}//package
Section 121
//Claw_Voice_Sound (Claw_Voice_Sound)
package {
import flash.media.*;
public dynamic class Claw_Voice_Sound extends Sound {
}
}//package
Section 122
//Default (Default)
package {
import flash.events.*;
import fl.transitions.*;
import fl.transitions.easing.*;
import flash.utils.*;
import flash.media.*;
import flash.display.*;
import flash.geom.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class Default extends MovieClip {
public var defaultText:MovieClip;
public var textTween:Tween;
public var classDefintion:Object;
public var i;
public var Rev:Boolean;
public var myBot:MovieClip;
public var botCount;
public var me;
public var yArray:Array;
public var LG;
public var botType:Array;
public var trans:Boolean;
public var gameFrame:Array;
public var xArray:Array;
public var pickTween:Tween;
public var allBots:MovieClip;
public var mySpot:SpotLight;
public var botArray:Array;
public var pickTimer;
public var myShade:MovieClip;
public function Default(){
addFrameScript(0, frame1);
}
public function botClick(_arg1){
var _local2:*;
var _local3:*;
var _local4:*;
LG = true;
_local2 = _arg1.target;
_local3 = 0;
while (_local3 < botArray.length) {
_local4 = botArray[_local3];
_local4.myBot.removeEventListener(MouseEvent.MOUSE_OVER, botOver);
_local4.myBot.removeEventListener(MouseEvent.CLICK, botClick);
_local4.myBot.removeEventListener(MouseEvent.MOUSE_OUT, botOut);
_local4.myBot.mouseEnabled = false;
_local3++;
};
_local2.gameFrame = _local2.parent.gameFrame;
me.parent.parent.botMenu.loadGame(_arg1);
me.parent.parent.botMenu.GAME = _local2.parent.myType;
me.parent.parent.doors.gotoAndPlay(2);
}
public function botOut(_arg1){
var _local2:*;
_local2 = _arg1.target;
_local2.XUTween.stop();
_local2.YUTween.stop();
_local2.SPUTween.stop();
_local2.dfUTween.stop();
_local2.XDTween = new Tween(_local2.parent, "scaleX", Regular.easeOut, _local2.parent.scaleX, 0.7, 0.2, true);
_local2.XDTween = new Tween(_local2.parent, "scaleY", Regular.easeOut, _local2.parent.scaleY, 0.7, 0.2, true);
_local2.SPDTween = new Tween(mySpot, "alpha", Regular.easeOut, mySpot.alpha, 0, 0.3, true);
_local2.SHDTween = new Tween(myShade, "alpha", Regular.easeOut, myShade.alpha, 0, 0.3, true);
defaultText.myText.alpha = 0;
defaultText.myText.gotoAndStop(1);
pickTimer.reset();
pickTimer.start();
}
public function pickTextTween(_arg1){
pickTween = new Tween(defaultText.myText, "alpha", Regular.easeOut, 0, 1, 0.3, true);
}
public function botOver(_arg1){
var _local2:*;
var _local3:*;
if (pickTween){
pickTween.stop();
};
pickTimer.stop();
_local2 = _arg1.target;
mySpot.mouseEnabled = false;
mySpot.x = _local2.parent.x;
mySpot.alpha = 0;
defaultText.myText.alpha = 0;
defaultText.myText.gotoAndStop(_local2.parent.myType);
_local2.XUTween = new Tween(_local2.parent, "scaleX", Regular.easeOut, _local2.parent.scaleX, 1, 0.3, true);
_local2.YUTween = new Tween(_local2.parent, "scaleY", Regular.easeOut, _local2.parent.scaleY, 1, 0.3, true);
_local2.SPUTween = new Tween(mySpot, "alpha", Regular.easeOut, mySpot.alpha, 0.6, 0.3, true);
_local2.SHUTween = new Tween(myShade, "alpha", Regular.easeOut, myShade.alpha, 0.3, 0.3, true);
_local2.dfUTween = new Tween(defaultText.myText, "alpha", Regular.easeOut, 0, 1, 0.3, true);
_local3 = 0;
while (_local3 < botArray.length) {
botArray[_local3].pos = 20;
_local3++;
};
_local2.parent.pos = 0;
botArray.sortOn("pos", Array.NUMERIC);
botArray.reverse();
_local3 = _local2.length;
_local3 = 0;
while (_local3 < botArray.length) {
allBots.setChildIndex(botArray[_local3], _local3);
_local3++;
};
allBots.addChild(mySpot);
allBots.setChildIndex(_local2.parent, _local3);
allBots.setChildIndex(myShade, (_local3 - 1));
allBots.setChildIndex(mySpot, _local3);
}
public function botsON(_arg1){
var _local2:*;
var _local3:*;
trans = false;
_local2 = 0;
while (_local2 < botArray.length) {
_local3 = botArray[_local2];
_local3.reflection.buttonMode = false;
_local3.myBot.i = (_local2 + 1);
_local3.myBot.buttonMode = true;
_local3.myBot.addEventListener(MouseEvent.MOUSE_OVER, botOver);
_local3.myBot.addEventListener(MouseEvent.CLICK, botClick);
_local3.myBot.addEventListener(MouseEvent.MOUSE_OUT, botOut);
_local2++;
};
}
public function transition(_arg1){
trans = true;
if (_arg1 == true){
me.parent.parent.BG.play();
textTween = new Tween(defaultText, "y", Regular.easeOut, 600, 400, 20, false);
} else {
if (LG == false){
allBots.myTween = new Tween(allBots, "x", Regular.easeOut, allBots.x, (allBots.x - 800), 1.2, true);
me.parent.parent.botMenu.addEventListener(Event.ENTER_FRAME, reverseMenu);
};
textTween = new Tween(defaultText, "y", Regular.easeOut, 400, 600, 20, false);
};
}
public function reverseMenu(_arg1){
if (_arg1.target.currentFrame > 1){
_arg1.target.gotoAndStop((_arg1.target.currentFrame - 1));
_arg1.target.parent.BG.gotoAndStop((_arg1.target.parent.BG.currentFrame - 1));
} else {
me.parent.parent.botMenu.removeEventListener(Event.ENTER_FRAME, reverseMenu);
me.parent.parent.dialogBoxAnime.play();
me.parent.parent.wingBotAudio.gotoAndPlay(2);
me.parent.removeChild(this);
};
}
public function addTween(_arg1){
var _local2:*;
_local2 = botArray[(botCount - 1)];
_local2.myTween = new Tween(_local2, "x", Regular.easeOut, _local2.x, (_local2.x + 800), 1.5, true);
if (botCount == 1){
_local2.myTween.addEventListener(TweenEvent.MOTION_FINISH, botsON);
};
botCount--;
}
public function startExit(_arg1){
}
public function bringInBots(){
var _local1:Timer;
_local1 = new Timer(100, xArray.length);
_local1.addEventListener("timer", addTween);
_local1.start();
}
function frame1(){
allBots = new MovieClip();
addChild(allBots);
myShade = new Shade();
myShade.alpha = 0;
myShade.mouseEnabled = false;
myShade.pos = 10;
xArray = new Array();
xArray[0] = -1099;
xArray[1] = -993;
xArray[2] = -884;
xArray[3] = -757;
xArray[4] = -617;
xArray[5] = -511;
yArray = new Array();
yArray[0] = 247;
yArray[1] = 236;
yArray[2] = 235;
yArray[3] = 240;
yArray[4] = 262;
yArray[5] = 248;
botType = new Array();
botType[0] = "claw";
botType[1] = "bumper";
botType[2] = "bounce";
botType[3] = "wing";
botType[4] = "roller";
botType[5] = "vacuum";
gameFrame = new Array();
gameFrame[0] = 1;
gameFrame[1] = 2;
gameFrame[2] = 3;
gameFrame[3] = 5;
gameFrame[4] = 4;
gameFrame[5] = 6;
botArray = new Array();
me = (this as MovieClip);
trans = true;
Rev = false;
botCount = xArray.length;
me.parent.parent.botMenu.defaultBot = true;
i = 1;
while (i <= xArray.length) {
classDefintion = getDefinitionByName(("Default_" + i));
myBot = new classDefintion();
myBot.id = i;
myBot.pos = i;
myBot.gameFrame = gameFrame[(i - 1)];
myBot.myType = botType[(i - 1)];
allBots.addChild(myBot);
myBot.x = xArray[(i - 1)];
myBot.y = yArray[(i - 1)];
myBot.scaleX = 0.7;
myBot.scaleY = 0.7;
botArray.push(myBot);
i++;
};
allBots.addChild(myShade);
transition(true);
LG = false;
mySpot = new SpotLight();
mySpot.alpha = 0;
mySpot.x = 2000;
allBots.addChild(mySpot);
pickTimer = new Timer(1000, 1);
pickTimer.addEventListener("timer", pickTextTween);
}
}
}//package
Section 123
//Default_1 (Default_1)
package {
import flash.display.*;
public dynamic class Default_1 extends MovieClip {
public var reflection:MovieClip;
public var myBot:MovieClip;
}
}//package
Section 124
//Default_2 (Default_2)
package {
import flash.display.*;
public dynamic class Default_2 extends MovieClip {
public var reflection:MovieClip;
public var myBot:MovieClip;
}
}//package
Section 125
//Default_3 (Default_3)
package {
import flash.display.*;
public dynamic class Default_3 extends MovieClip {
public var reflection:MovieClip;
public var myBot:MovieClip;
}
}//package
Section 126
//Default_4 (Default_4)
package {
import flash.display.*;
public dynamic class Default_4 extends MovieClip {
public var reflection:MovieClip;
public var myBot:MovieClip;
}
}//package
Section 127
//Default_5 (Default_5)
package {
import flash.display.*;
public dynamic class Default_5 extends MovieClip {
public var reflection:MovieClip;
public var myBot:MovieClip;
}
}//package
Section 128
//Default_6 (Default_6)
package {
import flash.display.*;
public dynamic class Default_6 extends MovieClip {
public var reflection:MovieClip;
public var myBot:MovieClip;
}
}//package
Section 129
//defaultAllText (defaultAllText)
package {
import flash.display.*;
public dynamic class defaultAllText extends MovieClip {
public var myName:MovieClip;
public function defaultAllText(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 130
//Mobility (Mobility)
package {
import flash.events.*;
import fl.transitions.*;
import fl.transitions.easing.*;
import flash.utils.*;
import flash.media.*;
import flash.display.*;
import flash.geom.*;
import CONVEYOR_main.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class Mobility extends MovieClip {
public var partArray:Array;
public var sc;
public var st;
public var i;
public var Rev:Boolean;
public var convSegFrames;
public var trans:Boolean;
public var convMoving;
public var conveyor_main:mc;
public var partAttached;
public var controls:MovieClip;
public var mySound;
public var rightarm:MovieClip;
public var currArm;
public var bgs;
public var leftarm:MovieClip;
public var belt:Sound;
public var prevArm;
public var convSegFramesLeft;
public var currPart;
public var armsInit;
public var convEnd;
public var loud;
public var controlsTween:Tween;
public var armArray:Array;
public var armStatus;
public var delayConveyor;
public var convStart;
public var me;
public var prevPartSel;
public var Body:MovieClip;
public var caption:MobilityCaption;
public var convFrameCount;
public function Mobility(){
addFrameScript(0, frame1);
}
public function conveyorBackLoop(_arg1:Event):void{
captionListener(false);
me.parent.parent.botMenu.nextBtnListeners(false);
if (partAttached == false){
convBack();
} else {
delayConveyor = "back";
discardPart();
};
}
public function tabListeners(_arg1){
if (_arg1 == true){
controls.attach.buttonMode = true;
controls.conv_back.mouseChildren = false;
controls.conv_forward.mouseChildren = false;
controls.attach.mouseChildren = false;
controls.conv_back.buttonMode = true;
controls.conv_forward.buttonMode = true;
controls.addEventListener(MouseEvent.ROLL_OVER, captionListener);
controls.attach.addEventListener(MouseEvent.CLICK, attachPart);
controls.conv_back.addEventListener(MouseEvent.CLICK, conveyorBackLoop);
controls.conv_forward.addEventListener(MouseEvent.CLICK, conveyorForwardLoop);
controls.attach.addEventListener(MouseEvent.ROLL_OVER, c_rollOVER);
controls.conv_back.addEventListener(MouseEvent.ROLL_OVER, c_rollOVER);
controls.conv_back.addEventListener(MouseEvent.ROLL_OUT, c_rollOUT);
controls.conv_forward.addEventListener(MouseEvent.ROLL_OVER, c_rollOVER);
controls.conv_forward.addEventListener(MouseEvent.ROLL_OUT, c_rollOUT);
} else {
controls.attach.removeEventListener(MouseEvent.CLICK, attachPart);
controls.conv_back.removeEventListener(MouseEvent.CLICK, conveyorBackLoop);
controls.conv_forward.removeEventListener(MouseEvent.CLICK, conveyorForwardLoop);
controls.attach.removeEventListener(MouseEvent.ROLL_OVER, c_rollOVER);
controls.conv_back.removeEventListener(MouseEvent.ROLL_OVER, c_rollOVER);
controls.conv_back.removeEventListener(MouseEvent.ROLL_OUT, c_rollOUT);
controls.conv_forward.removeEventListener(MouseEvent.ROLL_OVER, c_rollOVER);
controls.conv_forward.removeEventListener(MouseEvent.ROLL_OUT, c_rollOUT);
controls.attach.buttonMode = false;
controls.conv_back.buttonMode = false;
controls.conv_forward.buttonMode = false;
};
}
public function convBack():void{
if (((!((convMoving == "back"))) && ((delayConveyor == false)))){
clearBot();
if (convFrameCount != 0){
removeEventListener(Event.ENTER_FRAME, conveyorForward);
convSegFramesLeft = convFrameCount;
convFrameCount = 0;
};
belt = new Belt();
belt.play(0, 1);
addEventListener(Event.ENTER_FRAME, conveyorBack);
convMoving = "back";
currPart++;
if (currPart > (partArray.length - 1)){
currPart = 0;
};
};
}
public function clearBot():void{
conveyor_main[(partArray[currPart] + "_bot")].visible = true;
conveyor_main[(partArray[currPart] + "_sh")].visible = true;
leftarm[(partArray[currPart] + "_bot")].visible = false;
leftarm[(partArray[currPart] + "_sh")].visible = false;
}
public function conveyorBack(_arg1:Event):void{
if (convFrameCount < convSegFramesLeft){
if (conveyor_main.currentFrame == convStart){
conveyor_main.gotoAndStop(convEnd);
};
conveyor_main.gotoAndStop((conveyor_main.currentFrame - 1));
convFrameCount++;
} else {
removeEventListener(Event.ENTER_FRAME, conveyorBack);
convFrameCount = 0;
convSegFramesLeft = convSegFrames;
convMoving = "";
swapBot();
};
}
function frame1(){
bgs = fadeInSound("BG_s", 0.1, true);
me = (this as MovieClip);
partArray = new Array("claw", "bumper", "bounce", "roller", "wing", "vacuum");
armArray = new Array("s1e1", "s1e1", "s2e1", "s2e1", "s3e1", "s3e2");
i = 0;
while (i < partArray.length) {
leftarm[(partArray[i] + "_bot")].visible = false;
leftarm[(partArray[i] + "_sh")].visible = false;
leftarm[(partArray[i] + "_bot")].ID = (i + 1);
i++;
};
leftarm.arm_s1e1.visible = false;
leftarm.arm_s2e1.visible = false;
leftarm.arm_s3e1.visible = false;
leftarm.arm_s3e2.visible = false;
partAttached = false;
currPart = 0;
prevPartSel = "none";
currArm = "none";
prevArm = "none";
armsInit = true;
armStatus = "notready";
swapBot();
convMoving = "";
delayConveyor = false;
convSegFrames = 19;
convSegFramesLeft = convSegFrames;
convFrameCount = 0;
convStart = 52;
convEnd = 166;
Rev = false;
Body.gotoAndStop(me.parent.parent.botMenu.bodyCount);
Body.tintMask.visible = false;
transition(true);
}
public function fadeIN(_arg1){
if (st.volume < loud){
st.volume = (st.volume + 0.005);
sc.soundTransform = st;
} else {
this.removeEventListener(Event.ENTER_FRAME, fadeIN);
};
}
public function reverseCaption(_arg1){
if (caption.currentFrame > 1){
caption.gotoAndStop((caption.currentFrame - 1));
} else {
caption.removeEventListener(Event.ENTER_FRAME, reverseCaption);
removeChild(caption);
caption = undefined;
};
}
public function captionListener(_arg1){
if (caption){
controls.removeEventListener(MouseEvent.ROLL_OVER, captionListener);
caption.addEventListener(Event.ENTER_FRAME, reverseCaption);
controls.buttonMode = false;
};
}
public function fadeInSound(_arg1, _arg2, _arg3){
var _local4:Object;
loud = _arg3;
_local4 = getDefinitionByName(_arg1);
mySound = (new (_local4) as Sound);
sc = mySound.play(0, 1000);
st = sc.soundTransform;
st.volume = 0;
sc.soundTransform = st;
this.addEventListener(Event.ENTER_FRAME, fadeIN);
return (mySound);
}
public function convForward():void{
if (((!((convMoving == "forward"))) && ((delayConveyor == false)))){
clearBot();
if (convFrameCount != 0){
removeEventListener(Event.ENTER_FRAME, conveyorBack);
convSegFramesLeft = convFrameCount;
convFrameCount = 0;
};
belt = new Belt();
belt.play(0, 1);
addEventListener(Event.ENTER_FRAME, conveyorForward);
convMoving = "forward";
currPart--;
if (currPart < 0){
currPart = (partArray.length - 1);
};
};
}
public function c_rollOVER(_arg1){
_arg1.target.gotoAndPlay(2);
}
public function fadeOUT(_arg1){
if (st.volume > 0){
st.volume = (st.volume - 0.05);
sc.soundTransform = st;
} else {
sc.stop();
this.removeEventListener(Event.ENTER_FRAME, fadeOUT);
};
}
public function swapBot():void{
var _local1:*;
_local1 = conveyor_main[(partArray[currPart] + "_bot")];
_local1.visible = false;
conveyor_main[(partArray[currPart] + "_sh")].visible = false;
leftarm[(partArray[currPart] + "_bot")].visible = true;
leftarm[(partArray[currPart] + "_sh")].visible = true;
me.parent.parent.botMenu.mobilityCount = leftarm[(partArray[currPart] + "_bot")].ID;
}
public function conveyorForwardLoop(_arg1:Event):void{
captionListener(false);
me.parent.parent.botMenu.nextBtnListeners(false);
if (partAttached == false){
convForward();
} else {
delayConveyor = "forward";
discardPart();
};
}
public function finishHandler(_arg1:TweenEvent){
controlsTween.removeEventListener(TweenEvent.MOTION_FINISH, finishHandler);
if (Rev != true){
caption = new MobilityCaption();
caption.x = 20;
caption.y = 395;
addChild(caption);
trans = false;
tabListeners(true);
} else {
me.parent.parent.doors.gotoAndPlay(2);
};
}
public function transition(_arg1){
var _local2:Sound;
var _local3:*;
var _local4:*;
trans = true;
if (_arg1 == true){
_local2 = new Alarm();
_local3 = _local2.play(0, 1);
_local4 = _local3.soundTransform;
_local4.volume = 0.2;
_local3.soundTransform = _local4;
Rev = false;
controlsTween = new Tween(controls, "y", Regular.easeOut, 600, 400, 20, false);
} else {
this.addEventListener(Event.ENTER_FRAME, fadeOUT);
Rev = true;
controlsTween = new Tween(controls, "y", Regular.easeOut, 400, 600, 20, false);
if (caption){
caption.removeEventListener(Event.ENTER_FRAME, reverseCaption);
caption.addEventListener(Event.ENTER_FRAME, reverseCaption);
};
};
controlsTween.addEventListener(TweenEvent.MOTION_FINISH, finishHandler);
}
public function conveyorForward(_arg1:Event):void{
if (convFrameCount < convSegFramesLeft){
if (conveyor_main.currentFrame == convEnd){
conveyor_main.gotoAndStop(convStart);
};
conveyor_main.gotoAndStop((conveyor_main.currentFrame + 1));
convFrameCount++;
} else {
removeEventListener(Event.ENTER_FRAME, conveyorForward);
convFrameCount = 0;
convSegFramesLeft = convSegFrames;
convMoving = "";
swapBot();
};
}
public function discardPart():void{
if (armStatus == "ready"){
armStatus = "notready";
partAttached = false;
leftarm.gotoAndPlay("discard");
leftarm[("arm_" + armArray[currPart])].gotoAndPlay("discard");
};
}
public function c_rollOUT(_arg1){
_arg1.target.gotoAndStop(1);
}
public function attachPart(_arg1:Event):void{
var _local2:*;
captionListener(false);
if ((((armStatus == "ready")) && ((partAttached == false)))){
armStatus = "notready";
partAttached = true;
currArm = armArray[currPart];
if (prevArm != currArm){
if (prevArm != "none"){
_local2 = leftarm[("arm_" + armArray[prevPartSel])];
_local2.visible = false;
};
leftarm[("arm_" + armArray[currPart])].visible = true;
};
if (armsInit == true){
leftarm.gotoAndPlay("action");
leftarm[("arm_" + armArray[currPart])].gotoAndPlay("action");
armsInit = false;
} else {
leftarm.gotoAndPlay("newpart");
leftarm[("arm_" + armArray[currPart])].gotoAndPlay("newpart");
};
prevPartSel = currPart;
prevArm = currArm;
};
}
public function convTrigger():void{
if (delayConveyor == "forward"){
delayConveyor = false;
convForward();
};
if (delayConveyor == "back"){
delayConveyor = false;
convBack();
};
}
}
}//package
Section 131
//Mobility_BG (Mobility_BG)
package {
import flash.display.*;
public dynamic class Mobility_BG extends MovieClip {
}
}//package
Section 132
//MobilityCaption (MobilityCaption)
package {
import flash.events.*;
import flash.utils.*;
import flash.media.*;
import flash.display.*;
import flash.geom.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class MobilityCaption extends MovieClip {
public var bb:MovieClip;
public var me;
public function MobilityCaption(){
addFrameScript(20, frame21);
}
function frame21(){
stop();
me = (this as MovieClip);
me.parent.controls.attach.play();
}
}
}//package
Section 133
//MobilityMainTintMask (MobilityMainTintMask)
package {
import flash.display.*;
public dynamic class MobilityMainTintMask extends MovieClip {
public var tintMask:MovieClip;
public function MobilityMainTintMask(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 134
//Paint (Paint)
package {
import flash.events.*;
import fl.transitions.*;
import fl.transitions.easing.*;
import flash.utils.*;
import flash.media.*;
import flash.display.*;
import flash.geom.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class Paint extends MovieClip {
public var myColor;
public var sc;
public var loud;
public var st;
public var Rev:Boolean;
public var arms:MovieClip;
public var me;
public var CBBMD:BitmapData;
public var trans:Boolean;
public var colorBar:MovieClip;
public var myRect:Rectangle;
public var colorBarTween:Tween;
public var Body:MovieClip;
public var mySound;
public var Mobility:MovieClip;
public var bgs;
public var caption:PaintCaption;
public var CBBM:Bitmap;
public function Paint(){
addFrameScript(0, frame1);
}
public function MouseUp(_arg1:MouseEvent):void{
colorBar.tab.stopDrag();
me.parent.parent.botMenu.nextBtnListeners(false);
myColor = CBBMD.getPixel((colorBar.tab.x + (colorBar.CB.width / 2)), 10).toString(16);
while (myColor.length < 6) {
myColor = ("0" + myColor);
};
myColor = ("0x" + myColor);
arms.activateArms2(myColor);
me.parent.parent.botMenu.botColor = myColor;
}
public function tabListeners(_arg1){
if (_arg1 == true){
colorBar.tab.addEventListener(MouseEvent.MOUSE_DOWN, MouseDown);
colorBar.tab.addEventListener(MouseEvent.MOUSE_UP, MouseUp);
} else {
colorBar.tab.removeEventListener(MouseEvent.MOUSE_DOWN, MouseDown);
colorBar.tab.removeEventListener(MouseEvent.MOUSE_UP, MouseUp);
};
}
public function fadeOUT(_arg1){
if (st.volume > 0){
st.volume = (st.volume - 0.05);
sc.soundTransform = st;
} else {
sc.stop();
this.removeEventListener(Event.ENTER_FRAME, fadeOUT);
};
}
public function finishHandler(_arg1:TweenEvent){
colorBarTween.removeEventListener(TweenEvent.MOTION_FINISH, finishHandler);
if (Rev != true){
caption = new PaintCaption();
caption.x = 20;
caption.y = 395;
me.parent.addChild(caption);
trans = false;
tabListeners(true);
} else {
me.parent.parent.doors.gotoAndPlay(2);
};
}
function frame1(){
bgs = fadeInSound("BG_s", 0.1, true);
me = (this as MovieClip);
Rev = false;
Body.gotoAndStop(me.parent.parent.botMenu.bodyCount);
Mobility.gotoAndStop(me.parent.parent.botMenu.mobilityCount);
me.parent.parent.botMenu.botColor = false;
if (me.parent.parent.botMenu.botColor != false){
Body.colorBot(me.parent.parent.botMenu.botColor, false);
Mobility.colorBot(me.parent.parent.botMenu.botColor, false);
me.parent.parent.botMenu.nextBtnListeners(true);
} else {
Body.tintMask.visible = false;
Mobility.tintMask.visible = false;
};
transition(true);
CBBMD = new BitmapData(colorBar.CB.width, colorBar.CB.height);
CBBM = new Bitmap(CBBMD);
CBBMD.draw(colorBar.CB);
colorBar.CB.addChild(CBBM);
myRect = new Rectangle(-220, 0, 440, 0);
}
public function transition(_arg1){
trans = true;
if (_arg1 == true){
Rev = false;
colorBarTween = new Tween(colorBar, "y", Regular.easeOut, 600, 400, 20, false);
} else {
this.addEventListener(Event.ENTER_FRAME, fadeOUT);
Rev = true;
colorBarTween = new Tween(colorBar, "y", Regular.easeOut, 400, 600, 20, false);
if (caption){
caption.removeEventListener(Event.ENTER_FRAME, reverseCaption);
caption.addEventListener(Event.ENTER_FRAME, reverseCaption);
};
};
colorBarTween.addEventListener(TweenEvent.MOTION_FINISH, finishHandler);
}
public function fadeIN(_arg1){
if (st.volume < loud){
st.volume = (st.volume + 0.005);
sc.soundTransform = st;
} else {
this.removeEventListener(Event.ENTER_FRAME, fadeIN);
};
}
public function fadeInSound(_arg1, _arg2, _arg3){
var _local4:Object;
loud = _arg3;
_local4 = getDefinitionByName(_arg1);
mySound = (new (_local4) as Sound);
sc = mySound.play(0, 1000);
st = sc.soundTransform;
st.volume = 0;
sc.soundTransform = st;
this.addEventListener(Event.ENTER_FRAME, fadeIN);
return (mySound);
}
public function reverseCaption(_arg1){
if (caption.currentFrame > 1){
caption.gotoAndStop((caption.currentFrame - 1));
} else {
caption.removeEventListener(Event.ENTER_FRAME, reverseCaption);
me.parent.removeChild(caption);
caption = undefined;
};
}
public function MouseDown(_arg1:MouseEvent):void{
if (caption){
caption.addEventListener(Event.ENTER_FRAME, reverseCaption);
};
if (arms.leftarm.currentFrame == 22){
colorBar.tab.startDrag(true, myRect);
};
}
}
}//package
Section 135
//Paint_BG (Paint_BG)
package {
import flash.display.*;
public dynamic class Paint_BG extends MovieClip {
}
}//package
Section 136
//PaintCaption (PaintCaption)
package {
import flash.display.*;
public dynamic class PaintCaption extends MovieClip {
public function PaintCaption(){
addFrameScript(19, frame20);
}
function frame20(){
stop();
}
}
}//package
Section 137
//Ping (Ping)
package {
import flash.media.*;
public dynamic class Ping extends Sound {
}
}//package
Section 138
//Preview (Preview)
package {
import flash.events.*;
import fl.transitions.*;
import fl.transitions.easing.*;
import flash.utils.*;
import flash.media.*;
import flash.display.*;
import flash.geom.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class Preview extends MovieClip {
public var spotLight:spotLightAnim;
public var controlsTween:Tween;
public var Rev:Boolean;
public var gameArray:Array;
public var me;
public var trans:Boolean;
public var controls:MovieClip;
public var Body:MovieClip;
public var Mobility:MovieClip;
public function Preview(){
addFrameScript(0, frame1);
}
public function tabListeners(_arg1){
if (_arg1 == true){
controls.playNow.addEventListener(MouseEvent.CLICK, me.parent.parent.botMenu.loadGame);
controls.playNow.buttonMode = true;
controls.playNow.mouseChildren = false;
controls.playNow.gameFrame = Mobility.currentFrame;
controls.newBot.addEventListener(MouseEvent.CLICK, me.parent.parent.botMenu.r_Click);
controls.newBot.buttonMode = true;
controls.newBot.mouseChildren = false;
controls.newBot.gameFrame = Mobility.currentFrame;
} else {
controls.playNow.removeEventListener(MouseEvent.CLICK, me.parent.parent.botMenu.loadGame);
controls.playNow.buttonMode = false;
controls.playNow.removeEventListener(MouseEvent.CLICK, me.parent.parent.botMenu.r_Click);
controls.playNow.buttonMode = false;
};
}
public function finishHandler(_arg1:TweenEvent){
controlsTween.removeEventListener(TweenEvent.MOTION_FINISH, finishHandler);
spotLight.gotoAndPlay(2);
if (Rev != true){
trans = false;
spotLight.play();
tabListeners(true);
} else {
me.parent.parent.doors.gotoAndPlay(2);
};
}
function frame1(){
gameArray = new Array();
gameArray[0] = "claw";
gameArray[1] = "bumper";
gameArray[2] = "bounce";
gameArray[3] = "roller";
gameArray[4] = "wing";
gameArray[5] = "vacuum";
me = (this as MovieClip);
me.parent.parent.botMenu.defaultBot = false;
Rev = false;
Body.gotoAndStop(me.parent.parent.botMenu.bodyCount);
Mobility.gotoAndStop(me.parent.parent.botMenu.mobilityCount);
me.parent.parent.botMenu.GAME = gameArray[(Mobility.currentFrame - 1)];
Body.tintMask.visible = false;
Mobility.tintMask.visible = false;
if (me.parent.parent.botMenu.botColor != false){
Body.colorBot(me.parent.parent.botMenu.botColor, false);
Mobility.colorBot(me.parent.parent.botMenu.botColor, false);
};
me.parent.parent.botMenu.nextBtn.visible = false;
transition(true);
}
public function transition(_arg1){
trans = true;
if (_arg1 == true){
Rev = false;
controlsTween = new Tween(controls, "y", Regular.easeOut, 580, 370, 20, false);
} else {
tabListeners(false);
Rev = true;
controlsTween = new Tween(controls, "y", Regular.easeOut, 370, 580, 20, false);
};
controlsTween.addEventListener(TweenEvent.MOTION_FINISH, finishHandler);
}
}
}//package
Section 139
//Preview_BG (Preview_BG)
package {
import flash.display.*;
public dynamic class Preview_BG extends MovieClip {
}
}//package
Section 140
//RayBars (RayBars)
package {
import flash.media.*;
public dynamic class RayBars extends Sound {
}
}//package
Section 141
//Roller_Action_Sound (Roller_Action_Sound)
package {
import flash.media.*;
public dynamic class Roller_Action_Sound extends Sound {
}
}//package
Section 142
//Roller_Motion_Sound (Roller_Motion_Sound)
package {
import flash.media.*;
public dynamic class Roller_Motion_Sound extends Sound {
}
}//package
Section 143
//Roller_Station_Sound (Roller_Station_Sound)
package {
import flash.media.*;
public dynamic class Roller_Station_Sound extends Sound {
}
}//package
Section 144
//Roller_Voice_Sound (Roller_Voice_Sound)
package {
import flash.media.*;
public dynamic class Roller_Voice_Sound extends Sound {
}
}//package
Section 145
//Shade (Shade)
package {
import flash.display.*;
public dynamic class Shade extends MovieClip {
}
}//package
Section 146
//Shutter (Shutter)
package {
import flash.media.*;
public dynamic class Shutter extends Sound {
}
}//package
Section 147
//SpotLight (SpotLight)
package {
import flash.display.*;
public dynamic class SpotLight extends MovieClip {
}
}//package
Section 148
//spotLightAnim (spotLightAnim)
package {
import flash.display.*;
public dynamic class spotLightAnim extends MovieClip {
public function spotLightAnim(){
addFrameScript(0, frame1, 23, frame24);
}
function frame1(){
stop();
}
function frame24(){
stop();
}
}
}//package
Section 149
//theBot (theBot)
package {
import flash.display.*;
public dynamic class theBot extends MovieClip {
public var Body:MovieClip;
public var Mobility:MovieClip;
}
}//package
Section 150
//TramBuzzer (TramBuzzer)
package {
import flash.media.*;
public dynamic class TramBuzzer extends Sound {
}
}//package
Section 151
//Vacuum_Action_Sound (Vacuum_Action_Sound)
package {
import flash.media.*;
public dynamic class Vacuum_Action_Sound extends Sound {
}
}//package
Section 152
//Vacuum_Motion_Sound (Vacuum_Motion_Sound)
package {
import flash.media.*;
public dynamic class Vacuum_Motion_Sound extends Sound {
}
}//package
Section 153
//Vacuum_Station_Sound (Vacuum_Station_Sound)
package {
import flash.media.*;
public dynamic class Vacuum_Station_Sound extends Sound {
}
}//package
Section 154
//Vacuum_Voice_Sound (Vacuum_Voice_Sound)
package {
import flash.media.*;
public dynamic class Vacuum_Voice_Sound extends Sound {
}
}//package
Section 155
//Wing_Action_Sound (Wing_Action_Sound)
package {
import flash.media.*;
public dynamic class Wing_Action_Sound extends Sound {
}
}//package
Section 156
//Wing_Motion_Sound (Wing_Motion_Sound)
package {
import flash.media.*;
public dynamic class Wing_Motion_Sound extends Sound {
}
}//package
Section 157
//Wing_Station_Sound (Wing_Station_Sound)
package {
import flash.media.*;
public dynamic class Wing_Station_Sound extends Sound {
}
}//package
Section 158
//Wing_Voice_Sound (Wing_Voice_Sound)
package {
import flash.media.*;
public dynamic class Wing_Voice_Sound extends Sound {
}
}//package