Frame 56
stop();
Frame 57
function myColorizing(myred, myRedOffset, mygreen, myGreenOffset, myblue, myBlueOffset, myAlpha, myAlphaOffset) {
myObjColor = new color(_root.screen.screenback);
myObjTransform = new object();
myObjTransform.Ra = myred;
myObjTransform.Rb = myredOffset;
myObjTransform.Ga = mygreen;
myObjTransform.gb = mygreenOffset;
myObjTransform.ba = myblue;
myObjTransform.bb = myblueOffset;
myObjTransform.ab = myAlpha;
myObjTransform.ab = myAlphaOffset;
myObjColor.setTransform(myObjTransform);
}
_root.bluecolorsliderwire = true;
mainLights = [0, 0, 0, 0, 0];
_root.end = false;
_root.getSerial = false;
_root.gotBrownSwab = false;
_root.gotPurpleSwab = false;
_root.gotGreenSwab = false;
stop();
Instance of Symbol 34 MovieClip in Frame 57
on (rollOver) {
}
Frame 235
stop();
Symbol 31 Button
on (release) {
stopAllSounds();
play();
}
Symbol 34 MovieClip Frame 1
stop();
Symbol 36 Button
on (release) {
with (_root.redlight) {
gotoAndStop(2);
}
with (_root.orangeLight) {
gotoAndStop(2);
}
with (_root.yellowLight) {
gotoAndStop(2);
}
with (_root.greenLight) {
gotoAndStop(2);
}
with (_root.blueLight) {
gotoAndStop(2);
}
}
Symbol 41 Button
on (release) {
if (!_root.end) {
gotoAndStop (3);
}
}
Symbol 44 Button
on (release) {
if (!_root.end) {
gotoAndStop (2);
}
}
Symbol 46 MovieClip Frame 1
gotoAndStop(Math.round(Math.random() + 2));
Symbol 46 MovieClip Frame 2
myStatus = 1;
rightSwitches = true;
i = 1;
while (i <= 24) {
if (_root.switches.mySwitches[i - 1].myStatus != _root.switches.theCombo[i - 1]) {
rightSwitches = false;
}
i++;
}
if (!rightSwitches) {
with (_root.yellowLight) {
gotoAndStop(1);
}
with (_root.switches.switchbuttonmovie) {
gotoAndStop(1);
}
}
stop();
Symbol 46 MovieClip Frame 3
myStatus = 0;
rightSwitches = true;
i = 1;
while (i <= 24) {
if (_root.switches.mySwitches[i - 1].myStatus != _root.switches.theCombo[i - 1]) {
rightSwitches = false;
}
i++;
}
if (!rightSwitches) {
with (_root.yellowLight) {
gotoAndStop(1);
}
with (_root.switches.switchbuttonmovie) {
gotoAndStop(1);
}
}
stop();
Symbol 49 Button
on (release) {
if (!_root.end) {
stopAllSounds();
with (_root.screen) {
gotoAndPlay("switches");
}
}
}
Symbol 53 MovieClip Frame 1
stop();
Symbol 53 MovieClip Frame 53
gotoAndPlay (2);
Symbol 54 MovieClip Frame 1
mySwitches = new Array(s1, s2, s3, s4, s5, s6, s7, s8, s9, s10, s11, s12, s13, s14, s15, s16, s17, s18, s19, s20, s21, s22, s23, s24);
theCombo = new Array(0, 1, 1, 1, 0, 0, 0, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0, 0, 0, 1, 1, 0, 1, 0);
stop();
Symbol 304 MovieClip Frame 1
circuitID = ">> ";
stop();
Symbol 321 Button
on (release) {
stopAllSounds();
with (_root) {
gotoAndPlay("endscene");
}
}
Symbol 341 Button
on (release) {
if ((_root.hingeIn[0] == false) && (_root.hingeIn[1] == false)) {
gotoAndStop (2);
}
}
Symbol 344 MovieClip Frame 1
stop();
Symbol 344 MovieClip Frame 2
stop();
Symbol 349 Button
on (release) {
play();
}
Symbol 352 MovieClip Frame 1
_root.hingeIn[parseInt(getProperty(this, _name).substr(5, 1)) - 1] = true;
hi = _root.hingeIn[parseInt(getProperty(this, _name).substr(5, 1)) - 1];
stop();
Symbol 352 MovieClip Frame 19
_root.hingeIn[parseInt(getProperty(this, _name).substr(5, 1)) - 1] = false;
hi = _root.hingeIn[parseInt(getProperty(this, _name).substr(5, 1)) - 1];
stop();
Symbol 353 MovieClip Frame 1
_root.hingeIn = new Array(true, true);
stop();
Symbol 359 MovieClip Frame 1
_root.onScreen = false;
_root.contrastOnScreen = false;
_root.circuitOnScreen = false;
_root.getSerial = false;
Symbol 359 MovieClip Frame 49
stop();
Symbol 359 MovieClip Frame 50
_root.onScreen = false;
stop();
Symbol 359 MovieClip Frame 51
_root.onScreen = false;
stop();
Symbol 359 MovieClip Frame 52
_root.onScreen = false;
stop();
Symbol 359 MovieClip Frame 53
_root.onScreen = false;
stop();
Symbol 359 MovieClip Frame 54
_root.onScreen = false;
stop();
Symbol 359 MovieClip Frame 55
_root.onScreen = false;
stop();
Symbol 359 MovieClip Frame 56
_root.onScreen = false;
stop();
Symbol 359 MovieClip Frame 57
_root.onScreen = false;
stop();
Symbol 359 MovieClip Frame 58
_root.onScreen = false;
stop();
Symbol 359 MovieClip Frame 59
_root.onScreen = false;
stop();
Symbol 359 MovieClip Frame 60
_root.onScreen = false;
stop();
Symbol 359 MovieClip Frame 61
_root.onScreen = false;
stop();
Symbol 359 MovieClip Frame 62
_root.onScreen = false;
stop();
Symbol 359 MovieClip Frame 63
_root.onScreen = false;
stop();
Symbol 359 MovieClip Frame 64
_root.onScreen = false;
stop();
Symbol 359 MovieClip Frame 65
_root.onScreen = false;
stop();
Symbol 359 MovieClip Frame 66
_root.onScreen = false;
stop();
Symbol 359 MovieClip Frame 67
_root.onScreen = false;
stop();
Symbol 359 MovieClip Frame 68
_root.onScreen = false;
stop();
Symbol 359 MovieClip Frame 69
_root.onScreen = false;
stop();
Symbol 359 MovieClip Frame 70
_root.onScreen = false;
stop();
Symbol 359 MovieClip Frame 71
_root.onScreen = false;
stop();
Symbol 359 MovieClip Frame 72
_root.onScreen = false;
stop();
Symbol 359 MovieClip Frame 73
_root.onScreen = false;
stop();
Symbol 359 MovieClip Frame 74
_root.onScreen = false;
stop();
Symbol 359 MovieClip Frame 75
_root.onScreen = false;
stop();
Symbol 359 MovieClip Frame 76
_root.onScreen = false;
stop();
Symbol 359 MovieClip Frame 77
_root.onScreen = false;
stop();
Symbol 359 MovieClip Frame 78
_root.onScreen = false;
stop();
Symbol 359 MovieClip Frame 79
_root.onScreen = false;
stop();
Symbol 359 MovieClip Frame 80
_root.onScreen = false;
stop();
Symbol 359 MovieClip Frame 81
_root.onScreen = false;
stop();
Symbol 359 MovieClip Frame 82
_root.onScreen = false;
stop();
Symbol 359 MovieClip Frame 83
_root.onScreen = false;
stop();
Symbol 359 MovieClip Frame 84
_root.onScreen = false;
stop();
Symbol 359 MovieClip Frame 85
_root.onScreen = false;
stop();
Symbol 359 MovieClip Frame 86
_root.onScreen = false;
stop();
Symbol 359 MovieClip Frame 87
_root.onScreen = false;
_root.contrastOnScreen = false;
_root.circuitOnScreen = false;
_root.getSerial = false;
Symbol 359 MovieClip Frame 120
function rightSwitches() {
rightSwitches = true;
i = 1;
while (i <= 24) {
if (_root.switches.mySwitches[i - 1].myStatus != _root.switches.theCombo[i - 1]) {
rightSwitches = false;
}
i++;
}
if (rightSwitches) {
with (_root.yellowLight) {
gotoAndStop(2);
}
with (_root.switches.switchbuttonmovie) {
gotoAndPlay(2);
}
with (_root.speaker) {
gotoAndStop("yellowglare");
}
}
}
switchMatrix = "";
switchMatrix1 = "";
switchMatrix2 = "";
switchMatrix3 = "";
myEndSpacing = "";
myMidSpacing = " ";
hasPaused = false;
baseFrame = _currentframe + 1;
Symbol 359 MovieClip Frame 121
if ((!hasPaused) && (_root.switches.theCombo[_currentframe - baseFrame] != _root.switches.mySwitches[_currentframe - baseFrame].myStatus)) {
thisFrame = _currentframe;
gotoAndPlay (145);
}
hasPaused = false;
if (_root.switches.mySwitches[_currentframe - baseFrame].myStatus == 0) {
switchMatrix = switchMatrix + "0";
} else if (_root.switches.mySwitches[_currentframe - baseFrame].myStatus == 1) {
switchMatrix = switchMatrix + "1";
}
if ((((_currentframe - baseFrame) == 5) || ((_currentframe - baseFrame) == 11)) || ((_currentframe - baseFrame) == 17)) {
switchMatrix = switchMatrix + myEndSpacing;
} else {
switchMatrix = switchMatrix + myMidSpacing;
}
Symbol 359 MovieClip Frame 122
if ((!hasPaused) && (_root.switches.theCombo[_currentframe - baseFrame] != _root.switches.mySwitches[_currentframe - baseFrame].myStatus)) {
thisFrame = _currentframe;
gotoAndPlay (145);
}
hasPaused = false;
if (_root.switches.mySwitches[_currentframe - baseFrame].myStatus == 0) {
switchMatrix = switchMatrix + "0";
} else if (_root.switches.mySwitches[_currentframe - baseFrame].myStatus == 1) {
switchMatrix = switchMatrix + "1";
}
if ((((_currentframe - baseFrame) == 5) || ((_currentframe - baseFrame) == 11)) || ((_currentframe - baseFrame) == 17)) {
switchMatrix = switchMatrix + myEndSpacing;
} else {
switchMatrix = switchMatrix + myMidSpacing;
}
Symbol 359 MovieClip Frame 123
if ((!hasPaused) && (_root.switches.theCombo[_currentframe - baseFrame] != _root.switches.mySwitches[_currentframe - baseFrame].myStatus)) {
thisFrame = _currentframe;
gotoAndPlay (145);
}
hasPaused = false;
if (_root.switches.mySwitches[_currentframe - baseFrame].myStatus == 0) {
switchMatrix = switchMatrix + "0";
} else if (_root.switches.mySwitches[_currentframe - baseFrame].myStatus == 1) {
switchMatrix = switchMatrix + "1";
}
if ((((_currentframe - baseFrame) == 5) || ((_currentframe - baseFrame) == 11)) || ((_currentframe - baseFrame) == 17)) {
switchMatrix = switchMatrix + myEndSpacing;
} else {
switchMatrix = switchMatrix + myMidSpacing;
}
Symbol 359 MovieClip Frame 124
if ((!hasPaused) && (_root.switches.theCombo[_currentframe - baseFrame] != _root.switches.mySwitches[_currentframe - baseFrame].myStatus)) {
thisFrame = _currentframe;
gotoAndPlay (145);
}
hasPaused = false;
if (_root.switches.mySwitches[_currentframe - baseFrame].myStatus == 0) {
switchMatrix = switchMatrix + "0";
} else if (_root.switches.mySwitches[_currentframe - baseFrame].myStatus == 1) {
switchMatrix = switchMatrix + "1";
}
if ((((_currentframe - baseFrame) == 5) || ((_currentframe - baseFrame) == 11)) || ((_currentframe - baseFrame) == 17)) {
switchMatrix = switchMatrix + myEndSpacing;
} else {
switchMatrix = switchMatrix + myMidSpacing;
}
Symbol 359 MovieClip Frame 125
if ((!hasPaused) && (_root.switches.theCombo[_currentframe - baseFrame] != _root.switches.mySwitches[_currentframe - baseFrame].myStatus)) {
thisFrame = _currentframe;
gotoAndPlay (145);
}
hasPaused = false;
if (_root.switches.mySwitches[_currentframe - baseFrame].myStatus == 0) {
switchMatrix = switchMatrix + "0";
} else if (_root.switches.mySwitches[_currentframe - baseFrame].myStatus == 1) {
switchMatrix = switchMatrix + "1";
}
if ((((_currentframe - baseFrame) == 5) || ((_currentframe - baseFrame) == 11)) || ((_currentframe - baseFrame) == 17)) {
switchMatrix = switchMatrix + myEndSpacing;
} else {
switchMatrix = switchMatrix + myMidSpacing;
}
Symbol 359 MovieClip Frame 126
if ((!hasPaused) && (_root.switches.theCombo[_currentframe - baseFrame] != _root.switches.mySwitches[_currentframe - baseFrame].myStatus)) {
thisFrame = _currentframe;
gotoAndPlay (145);
}
hasPaused = false;
if (_root.switches.mySwitches[_currentframe - baseFrame].myStatus == 0) {
switchMatrix = switchMatrix + "0";
} else if (_root.switches.mySwitches[_currentframe - baseFrame].myStatus == 1) {
switchMatrix = switchMatrix + "1";
}
if ((((_currentframe - baseFrame) == 5) || ((_currentframe - baseFrame) == 11)) || ((_currentframe - baseFrame) == 17)) {
switchMatrix = switchMatrix + myEndSpacing;
} else {
switchMatrix = switchMatrix + myMidSpacing;
}
Symbol 359 MovieClip Frame 127
if ((!hasPaused) && (_root.switches.theCombo[_currentframe - baseFrame] != _root.switches.mySwitches[_currentframe - baseFrame].myStatus)) {
thisFrame = _currentframe;
gotoAndPlay (145);
}
hasPaused = false;
if (_root.switches.mySwitches[_currentframe - baseFrame].myStatus == 0) {
switchMatrix1 = switchMatrix1 + "0";
} else if (_root.switches.mySwitches[_currentframe - baseFrame].myStatus == 1) {
switchMatrix1 = switchMatrix1 + "1";
}
if ((((_currentframe - baseFrame) == 5) || ((_currentframe - baseFrame) == 11)) || ((_currentframe - baseFrame) == 17)) {
switchMatrix1 = switchMatrix1 + myEndSpacing;
} else {
switchMatrix1 = switchMatrix1 + myMidSpacing;
}
Symbol 359 MovieClip Frame 128
if ((!hasPaused) && (_root.switches.theCombo[_currentframe - baseFrame] != _root.switches.mySwitches[_currentframe - baseFrame].myStatus)) {
thisFrame = _currentframe;
gotoAndPlay (145);
}
hasPaused = false;
if (_root.switches.mySwitches[_currentframe - baseFrame].myStatus == 0) {
switchMatrix1 = switchMatrix1 + "0";
} else if (_root.switches.mySwitches[_currentframe - baseFrame].myStatus == 1) {
switchMatrix1 = switchMatrix1 + "1";
}
if ((((_currentframe - baseFrame) == 5) || ((_currentframe - baseFrame) == 11)) || ((_currentframe - baseFrame) == 17)) {
switchMatrix1 = switchMatrix1 + myEndSpacing;
} else {
switchMatrix1 = switchMatrix1 + myMidSpacing;
}
Symbol 359 MovieClip Frame 129
if ((!hasPaused) && (_root.switches.theCombo[_currentframe - baseFrame] != _root.switches.mySwitches[_currentframe - baseFrame].myStatus)) {
thisFrame = _currentframe;
gotoAndPlay (145);
}
hasPaused = false;
if (_root.switches.mySwitches[_currentframe - baseFrame].myStatus == 0) {
switchMatrix1 = switchMatrix1 + "0";
} else if (_root.switches.mySwitches[_currentframe - baseFrame].myStatus == 1) {
switchMatrix1 = switchMatrix1 + "1";
}
if ((((_currentframe - baseFrame) == 5) || ((_currentframe - baseFrame) == 11)) || ((_currentframe - baseFrame) == 17)) {
switchMatrix1 = switchMatrix1 + myEndSpacing;
} else {
switchMatrix1 = switchMatrix1 + myMidSpacing;
}
Symbol 359 MovieClip Frame 130
if ((!hasPaused) && (_root.switches.theCombo[_currentframe - baseFrame] != _root.switches.mySwitches[_currentframe - baseFrame].myStatus)) {
thisFrame = _currentframe;
gotoAndPlay (145);
}
hasPaused = false;
if (_root.switches.mySwitches[_currentframe - baseFrame].myStatus == 0) {
switchMatrix1 = switchMatrix1 + "0";
} else if (_root.switches.mySwitches[_currentframe - baseFrame].myStatus == 1) {
switchMatrix1 = switchMatrix1 + "1";
}
if ((((_currentframe - baseFrame) == 5) || ((_currentframe - baseFrame) == 11)) || ((_currentframe - baseFrame) == 17)) {
switchMatrix1 = switchMatrix1 + myEndSpacing;
} else {
switchMatrix1 = switchMatrix1 + myMidSpacing;
}
Symbol 359 MovieClip Frame 131
if ((!hasPaused) && (_root.switches.theCombo[_currentframe - baseFrame] != _root.switches.mySwitches[_currentframe - baseFrame].myStatus)) {
thisFrame = _currentframe;
gotoAndPlay (145);
}
hasPaused = false;
if (_root.switches.mySwitches[_currentframe - baseFrame].myStatus == 0) {
switchMatrix1 = switchMatrix1 + "0";
} else if (_root.switches.mySwitches[_currentframe - baseFrame].myStatus == 1) {
switchMatrix1 = switchMatrix1 + "1";
}
if ((((_currentframe - baseFrame) == 5) || ((_currentframe - baseFrame) == 11)) || ((_currentframe - baseFrame) == 17)) {
switchMatrix1 = switchMatrix1 + myEndSpacing;
} else {
switchMatrix1 = switchMatrix1 + myMidSpacing;
}
Symbol 359 MovieClip Frame 132
if ((!hasPaused) && (_root.switches.theCombo[_currentframe - baseFrame] != _root.switches.mySwitches[_currentframe - baseFrame].myStatus)) {
thisFrame = _currentframe;
gotoAndPlay (145);
}
hasPaused = false;
if (_root.switches.mySwitches[_currentframe - baseFrame].myStatus == 0) {
switchMatrix1 = switchMatrix1 + "0";
} else if (_root.switches.mySwitches[_currentframe - baseFrame].myStatus == 1) {
switchMatrix1 = switchMatrix1 + "1";
}
if ((((_currentframe - baseFrame) == 5) || ((_currentframe - baseFrame) == 11)) || ((_currentframe - baseFrame) == 17)) {
switchMatrix1 = switchMatrix1 + myEndSpacing;
} else {
switchMatrix1 = switchMatrix1 + myMidSpacing;
}
Symbol 359 MovieClip Frame 133
if ((!hasPaused) && (_root.switches.theCombo[_currentframe - baseFrame] != _root.switches.mySwitches[_currentframe - baseFrame].myStatus)) {
thisFrame = _currentframe;
gotoAndPlay (145);
}
hasPaused = false;
if (_root.switches.mySwitches[_currentframe - baseFrame].myStatus == 0) {
switchMatrix2 = switchMatrix2 + "0";
} else if (_root.switches.mySwitches[_currentframe - baseFrame].myStatus == 1) {
switchMatrix2 = switchMatrix2 + "1";
}
if ((((_currentframe - baseFrame) == 5) || ((_currentframe - baseFrame) == 11)) || ((_currentframe - baseFrame) == 17)) {
switchMatrix2 = switchMatrix2 + myEndSpacing;
} else {
switchMatrix2 = switchMatrix2 + myMidSpacing;
}
Symbol 359 MovieClip Frame 134
if ((!hasPaused) && (_root.switches.theCombo[_currentframe - baseFrame] != _root.switches.mySwitches[_currentframe - baseFrame].myStatus)) {
thisFrame = _currentframe;
gotoAndPlay (145);
}
hasPaused = false;
if (_root.switches.mySwitches[_currentframe - baseFrame].myStatus == 0) {
switchMatrix2 = switchMatrix2 + "0";
} else if (_root.switches.mySwitches[_currentframe - baseFrame].myStatus == 1) {
switchMatrix2 = switchMatrix2 + "1";
}
if ((((_currentframe - baseFrame) == 5) || ((_currentframe - baseFrame) == 11)) || ((_currentframe - baseFrame) == 17)) {
switchMatrix2 = switchMatrix2 + myEndSpacing;
} else {
switchMatrix2 = switchMatrix2 + myMidSpacing;
}
Symbol 359 MovieClip Frame 135
if ((!hasPaused) && (_root.switches.theCombo[_currentframe - baseFrame] != _root.switches.mySwitches[_currentframe - baseFrame].myStatus)) {
thisFrame = _currentframe;
gotoAndPlay (145);
}
hasPaused = false;
if (_root.switches.mySwitches[_currentframe - baseFrame].myStatus == 0) {
switchMatrix2 = switchMatrix2 + "0";
} else if (_root.switches.mySwitches[_currentframe - baseFrame].myStatus == 1) {
switchMatrix2 = switchMatrix2 + "1";
}
if ((((_currentframe - baseFrame) == 5) || ((_currentframe - baseFrame) == 11)) || ((_currentframe - baseFrame) == 17)) {
switchMatrix2 = switchMatrix2 + myEndSpacing;
} else {
switchMatrix2 = switchMatrix2 + myMidSpacing;
}
Symbol 359 MovieClip Frame 136
if ((!hasPaused) && (_root.switches.theCombo[_currentframe - baseFrame] != _root.switches.mySwitches[_currentframe - baseFrame].myStatus)) {
thisFrame = _currentframe;
gotoAndPlay (145);
}
hasPaused = false;
if (_root.switches.mySwitches[_currentframe - baseFrame].myStatus == 0) {
switchMatrix2 = switchMatrix2 + "0";
} else if (_root.switches.mySwitches[_currentframe - baseFrame].myStatus == 1) {
switchMatrix2 = switchMatrix2 + "1";
}
if ((((_currentframe - baseFrame) == 5) || ((_currentframe - baseFrame) == 11)) || ((_currentframe - baseFrame) == 17)) {
switchMatrix2 = switchMatrix2 + myEndSpacing;
} else {
switchMatrix2 = switchMatrix2 + myMidSpacing;
}
Symbol 359 MovieClip Frame 137
if ((!hasPaused) && (_root.switches.theCombo[_currentframe - baseFrame] != _root.switches.mySwitches[_currentframe - baseFrame].myStatus)) {
thisFrame = _currentframe;
gotoAndPlay (145);
}
hasPaused = false;
if (_root.switches.mySwitches[_currentframe - baseFrame].myStatus == 0) {
switchMatrix2 = switchMatrix2 + "0";
} else if (_root.switches.mySwitches[_currentframe - baseFrame].myStatus == 1) {
switchMatrix2 = switchMatrix2 + "1";
}
if ((((_currentframe - baseFrame) == 5) || ((_currentframe - baseFrame) == 11)) || ((_currentframe - baseFrame) == 17)) {
switchMatrix2 = switchMatrix2 + myEndSpacing;
} else {
switchMatrix2 = switchMatrix2 + myMidSpacing;
}
Symbol 359 MovieClip Frame 138
if ((!hasPaused) && (_root.switches.theCombo[_currentframe - baseFrame] != _root.switches.mySwitches[_currentframe - baseFrame].myStatus)) {
thisFrame = _currentframe;
gotoAndPlay (145);
}
hasPaused = false;
if (_root.switches.mySwitches[_currentframe - baseFrame].myStatus == 0) {
switchMatrix2 = switchMatrix2 + "0";
} else if (_root.switches.mySwitches[_currentframe - baseFrame].myStatus == 1) {
switchMatrix2 = switchMatrix2 + "1";
}
if ((((_currentframe - baseFrame) == 5) || ((_currentframe - baseFrame) == 11)) || ((_currentframe - baseFrame) == 17)) {
switchMatrix2 = switchMatrix2 + myEndSpacing;
} else {
switchMatrix2 = switchMatrix2 + myMidSpacing;
}
Symbol 359 MovieClip Frame 139
if ((!hasPaused) && (_root.switches.theCombo[_currentframe - baseFrame] != _root.switches.mySwitches[_currentframe - baseFrame].myStatus)) {
thisFrame = _currentframe;
gotoAndPlay (145);
}
hasPaused = false;
if (_root.switches.mySwitches[_currentframe - baseFrame].myStatus == 0) {
switchMatrix3 = switchMatrix3 + "0";
} else if (_root.switches.mySwitches[_currentframe - baseFrame].myStatus == 1) {
switchMatrix3 = switchMatrix3 + "1";
}
if ((((_currentframe - baseFrame) == 5) || ((_currentframe - baseFrame) == 11)) || ((_currentframe - baseFrame) == 17)) {
switchMatrix3 = switchMatrix3 + myEndSpacing;
} else {
switchMatrix3 = switchMatrix3 + myMidSpacing;
}
Symbol 359 MovieClip Frame 140
if ((!hasPaused) && (_root.switches.theCombo[_currentframe - baseFrame] != _root.switches.mySwitches[_currentframe - baseFrame].myStatus)) {
thisFrame = _currentframe;
gotoAndPlay (145);
}
hasPaused = false;
if (_root.switches.mySwitches[_currentframe - baseFrame].myStatus == 0) {
switchMatrix3 = switchMatrix3 + "0";
} else if (_root.switches.mySwitches[_currentframe - baseFrame].myStatus == 1) {
switchMatrix3 = switchMatrix3 + "1";
}
if ((((_currentframe - baseFrame) == 5) || ((_currentframe - baseFrame) == 11)) || ((_currentframe - baseFrame) == 17)) {
switchMatrix3 = switchMatrix3 + myEndSpacing;
} else {
switchMatrix3 = switchMatrix3 + myMidSpacing;
}
Symbol 359 MovieClip Frame 141
if ((!hasPaused) && (_root.switches.theCombo[_currentframe - baseFrame] != _root.switches.mySwitches[_currentframe - baseFrame].myStatus)) {
thisFrame = _currentframe;
gotoAndPlay (145);
}
hasPaused = false;
if (_root.switches.mySwitches[_currentframe - baseFrame].myStatus == 0) {
switchMatrix3 = switchMatrix3 + "0";
} else if (_root.switches.mySwitches[_currentframe - baseFrame].myStatus == 1) {
switchMatrix3 = switchMatrix3 + "1";
}
if ((((_currentframe - baseFrame) == 5) || ((_currentframe - baseFrame) == 11)) || ((_currentframe - baseFrame) == 17)) {
switchMatrix3 = switchMatrix3 + myEndSpacing;
} else {
switchMatrix3 = switchMatrix3 + myMidSpacing;
}
Symbol 359 MovieClip Frame 142
if ((!hasPaused) && (_root.switches.theCombo[_currentframe - baseFrame] != _root.switches.mySwitches[_currentframe - baseFrame].myStatus)) {
thisFrame = _currentframe;
gotoAndPlay (145);
}
hasPaused = false;
if (_root.switches.mySwitches[_currentframe - baseFrame].myStatus == 0) {
switchMatrix3 = switchMatrix3 + "0";
} else if (_root.switches.mySwitches[_currentframe - baseFrame].myStatus == 1) {
switchMatrix3 = switchMatrix3 + "1";
}
if ((((_currentframe - baseFrame) == 5) || ((_currentframe - baseFrame) == 11)) || ((_currentframe - baseFrame) == 17)) {
switchMatrix3 = switchMatrix3 + myEndSpacing;
} else {
switchMatrix3 = switchMatrix3 + myMidSpacing;
}
Symbol 359 MovieClip Frame 143
if ((!hasPaused) && (_root.switches.theCombo[_currentframe - baseFrame] != _root.switches.mySwitches[_currentframe - baseFrame].myStatus)) {
thisFrame = _currentframe;
gotoAndPlay (145);
}
hasPaused = false;
if (_root.switches.mySwitches[_currentframe - baseFrame].myStatus == 0) {
switchMatrix3 = switchMatrix3 + "0";
} else if (_root.switches.mySwitches[_currentframe - baseFrame].myStatus == 1) {
switchMatrix3 = switchMatrix3 + "1";
}
if ((((_currentframe - baseFrame) == 5) || ((_currentframe - baseFrame) == 11)) || ((_currentframe - baseFrame) == 17)) {
switchMatrix3 = switchMatrix3 + myEndSpacing;
} else {
switchMatrix3 = switchMatrix3 + myMidSpacing;
}
Symbol 359 MovieClip Frame 144
stop();
if ((!hasPaused) && (_root.switches.theCombo[_currentframe - baseFrame] != _root.switches.mySwitches[_currentframe - baseFrame].myStatus)) {
thisFrame = _currentframe;
gotoAndPlay (145);
}
hasPaused = false;
rightSwitches();
if (_root.switches.mySwitches[_currentframe - baseFrame].myStatus == 0) {
switchMatrix3 = switchMatrix3 + "0";
if (!rightSwitches) {
with (_root.speaker) {
gotoAndStop("wrong");
}
}
} else if (_root.switches.mySwitches[_currentframe - baseFrame].myStatus == 1) {
switchMatrix3 = switchMatrix3 + "1";
with (_root.speaker) {
gotoAndStop("wrong");
}
}
if ((((_currentframe - baseFrame) == 5) || ((_currentframe - baseFrame) == 11)) || ((_currentframe - baseFrame) == 17)) {
switchMatrix3 = switchMatrix3 + myEndSpacing;
} else {
switchMatrix3 = switchMatrix3 + myMidSpacing;
}
Symbol 359 MovieClip Frame 153
hasPaused = true;
if ((thisFrame >= baseFrame) && (thisFrame <= (baseFrame + 5))) {
switchMatrix = switchMatrix.substr(0, switchMatrix.length - 4);
} else if ((thisFrame >= (baseFrame + 6)) && (thisFrame <= (baseFrame + 11))) {
switchMatrix1 = switchMatrix1.substr(0, switchMatrix1.length - 4);
} else if ((thisFrame >= (baseFrame + 12)) && (thisFrame <= (baseFrame + 17))) {
switchMatrix2 = switchMatrix2.substr(0, switchMatrix2.length - 4);
} else if ((thisFrame >= (baseFrame + 18)) && (thisFrame <= (baseFrame + 23))) {
switchMatrix3 = switchMatrix3.substr(0, switchMatrix3.length - 4);
}
gotoAndPlay(thisFrame);
Symbol 359 MovieClip Frame 154
_root.numInput = ">> ";
_root.numNums = 0;
_root.numLength = 0;
_root.onScreen = true;
_root.correctPath = false;
_root.numpad.myInputs = [0, 0, 0, 0, 0, 0];
_root.numpad.compResponses = [0, 0, 0];
_root.contrastOnScreen = false;
_root.circuitOnScreen = false;
Symbol 359 MovieClip Frame 176
_root.numInput = ">> ";
_root.numNums = 0;
_root.numLength = 0;
_root.onScreen = true;
_root.correctPath = false;
_root.numpad.myInputs = [0, 0, 0, 0, 0, 0];
_root.numpad.compResponses = [0, 0, 0];
stop();
Symbol 359 MovieClip Frame 177
_root.numInput1 = ">> " + _root.numpad.myInputs[0].toString();
stop();
Symbol 359 MovieClip Frame 178
_root.numInput2 = ">> " + _root.numpad.myInputs[1].toString();
stop();
Symbol 359 MovieClip Frame 179
_root.numInput3 = ">> " + _root.numpad.myInputs[2].toString();
stop();
Symbol 359 MovieClip Frame 180
_root.numInput4 = ">> " + _root.numpad.myInputs[3].toString();
stop();
Symbol 359 MovieClip Frame 181
_root.numInput5 = ">> " + _root.numpad.myInputs[4].toString();
stop();
Symbol 359 MovieClip Frame 182
_root.numInput1 = ">> " + _root.numpad.myInputs[0].toString();
_root.compResp1 = "<< " + _root.numpad.compResponses[0].toString();
stop();
Symbol 359 MovieClip Frame 183
_root.numInput2 = ">> " + _root.numpad.myInputs[1].toString();
_root.compResp2 = "<< " + _root.numpad.compResponses[1].toString();
stop();
Symbol 359 MovieClip Frame 184
_root.numInput3 = ">> " + _root.numpad.myInputs[2].toString();
_root.compResp3 = "<< " + _root.numpad.compResponses[2].toString();
Symbol 359 MovieClip Frame 195
with (_root.speaker) {
gotoAndStop("wrong");
}
gotoAndStop (176);
Symbol 359 MovieClip Frame 196
redComp = Math.round(((72 - getProperty(_root.colorsliders.redslider, _y)) / 72) * 255) + 50;
greenComp = Math.round(((72 - getProperty(_root.colorsliders.greenslider, _y)) / 72) * 255) + 50;
if (_root.bluecolorsliderwire) {
blueComp = Math.round(((72 - getProperty(_root.colorsliders.blueslider, _y)) / 72) * 255) + 50;
}
_root.myColorizing(redComp, 0, greenComp, 0, blueComp, 0, 100, 0);
_root.circuitOnScreen = false;
_root.OnScreen = false;
_root.getSerial = false;
Symbol 359 MovieClip Frame 197
redComp = Math.round(((72 - getProperty(_root.colorsliders.redslider, _y)) / 72) * 255) + 50;
greenComp = Math.round(((72 - getProperty(_root.colorsliders.greenslider, _y)) / 72) * 255) + 50;
if (_root.bluecolorsliderwire) {
blueComp = Math.round(((72 - getProperty(_root.colorsliders.blueslider, _y)) / 72) * 255) + 50;
}
_root.myColorizing(redComp, 0, greenComp, 0, blueComp, 0, 100, 0);
Symbol 359 MovieClip Frame 198
redComp = Math.round(((72 - getProperty(_root.colorsliders.redslider, _y)) / 72) * 255) + 50;
greenComp = Math.round(((72 - getProperty(_root.colorsliders.greenslider, _y)) / 72) * 255) + 50;
if (_root.bluecolorsliderwire) {
blueComp = Math.round(((72 - getProperty(_root.colorsliders.blueslider, _y)) / 72) * 255) + 50;
}
_root.myColorizing(redComp, 0, greenComp, 0, blueComp, 0, 100, 0);
Symbol 359 MovieClip Frame 199
redComp = Math.round(((72 - getProperty(_root.colorsliders.redslider, _y)) / 72) * 255) + 50;
greenComp = Math.round(((72 - getProperty(_root.colorsliders.greenslider, _y)) / 72) * 255) + 50;
if (_root.bluecolorsliderwire) {
blueComp = Math.round(((72 - getProperty(_root.colorsliders.blueslider, _y)) / 72) * 255) + 50;
}
_root.myColorizing(redComp, 0, greenComp, 0, blueComp, 0, 100, 0);
Symbol 359 MovieClip Frame 200
redComp = Math.round(((72 - getProperty(_root.colorsliders.redslider, _y)) / 72) * 255) + 50;
greenComp = Math.round(((72 - getProperty(_root.colorsliders.greenslider, _y)) / 72) * 255) + 50;
if (_root.bluecolorsliderwire) {
blueComp = Math.round(((72 - getProperty(_root.colorsliders.blueslider, _y)) / 72) * 255) + 50;
}
_root.myColorizing(redComp, 0, greenComp, 0, blueComp, 0, 100, 0);
Symbol 359 MovieClip Frame 201
redComp = Math.round(((72 - getProperty(_root.colorsliders.redslider, _y)) / 72) * 255) + 50;
greenComp = Math.round(((72 - getProperty(_root.colorsliders.greenslider, _y)) / 72) * 255) + 50;
if (_root.bluecolorsliderwire) {
blueComp = Math.round(((72 - getProperty(_root.colorsliders.blueslider, _y)) / 72) * 255) + 50;
}
_root.myColorizing(redComp, 0, greenComp, 0, blueComp, 0, 100, 0);
Symbol 359 MovieClip Frame 202
redComp = Math.round(((72 - getProperty(_root.colorsliders.redslider, _y)) / 72) * 255) + 50;
greenComp = Math.round(((72 - getProperty(_root.colorsliders.greenslider, _y)) / 72) * 255) + 50;
if (_root.bluecolorsliderwire) {
blueComp = Math.round(((72 - getProperty(_root.colorsliders.blueslider, _y)) / 72) * 255) + 50;
}
_root.myColorizing(redComp, 0, greenComp, 0, blueComp, 0, 100, 0);
Symbol 359 MovieClip Frame 203
redComp = Math.round(((72 - getProperty(_root.colorsliders.redslider, _y)) / 72) * 255) + 50;
greenComp = Math.round(((72 - getProperty(_root.colorsliders.greenslider, _y)) / 72) * 255) + 50;
if (_root.bluecolorsliderwire) {
blueComp = Math.round(((72 - getProperty(_root.colorsliders.blueslider, _y)) / 72) * 255) + 50;
}
_root.myColorizing(redComp, 0, greenComp, 0, blueComp, 0, 100, 0);
Symbol 359 MovieClip Frame 204
redComp = Math.round(((72 - getProperty(_root.colorsliders.redslider, _y)) / 72) * 255) + 50;
greenComp = Math.round(((72 - getProperty(_root.colorsliders.greenslider, _y)) / 72) * 255) + 50;
if (_root.bluecolorsliderwire) {
blueComp = Math.round(((72 - getProperty(_root.colorsliders.blueslider, _y)) / 72) * 255) + 50;
}
_root.myColorizing(redComp, 0, greenComp, 0, blueComp, 0, 100, 0);
Symbol 359 MovieClip Frame 205
redComp = Math.round(((72 - getProperty(_root.colorsliders.redslider, _y)) / 72) * 255) + 50;
greenComp = Math.round(((72 - getProperty(_root.colorsliders.greenslider, _y)) / 72) * 255) + 50;
if (_root.bluecolorsliderwire) {
blueComp = Math.round(((72 - getProperty(_root.colorsliders.blueslider, _y)) / 72) * 255) + 50;
}
_root.myColorizing(redComp, 0, greenComp, 0, blueComp, 0, 100, 0);
Symbol 359 MovieClip Frame 206
redComp = Math.round(((72 - getProperty(_root.colorsliders.redslider, _y)) / 72) * 255) + 50;
greenComp = Math.round(((72 - getProperty(_root.colorsliders.greenslider, _y)) / 72) * 255) + 50;
if (_root.bluecolorsliderwire) {
blueComp = Math.round(((72 - getProperty(_root.colorsliders.blueslider, _y)) / 72) * 255) + 50;
}
_root.myColorizing(redComp, 0, greenComp, 0, blueComp, 0, 100, 0);
Symbol 359 MovieClip Frame 207
redComp = Math.round(((72 - getProperty(_root.colorsliders.redslider, _y)) / 72) * 255) + 50;
greenComp = Math.round(((72 - getProperty(_root.colorsliders.greenslider, _y)) / 72) * 255) + 50;
if (_root.bluecolorsliderwire) {
blueComp = Math.round(((72 - getProperty(_root.colorsliders.blueslider, _y)) / 72) * 255) + 50;
}
_root.myColorizing(redComp, 0, greenComp, 0, blueComp, 0, 100, 0);
Symbol 359 MovieClip Frame 208
redComp = Math.round(((72 - getProperty(_root.colorsliders.redslider, _y)) / 72) * 255) + 50;
greenComp = Math.round(((72 - getProperty(_root.colorsliders.greenslider, _y)) / 72) * 255) + 50;
if (_root.bluecolorsliderwire) {
blueComp = Math.round(((72 - getProperty(_root.colorsliders.blueslider, _y)) / 72) * 255) + 50;
}
_root.myColorizing(redComp, 0, greenComp, 0, blueComp, 0, 100, 0);
Symbol 359 MovieClip Frame 209
redComp = Math.round(((72 - getProperty(_root.colorsliders.redslider, _y)) / 72) * 255) + 50;
greenComp = Math.round(((72 - getProperty(_root.colorsliders.greenslider, _y)) / 72) * 255) + 50;
if (_root.bluecolorsliderwire) {
blueComp = Math.round(((72 - getProperty(_root.colorsliders.blueslider, _y)) / 72) * 255) + 50;
}
_root.myColorizing(redComp, 0, greenComp, 0, blueComp, 0, 100, 0);
Symbol 359 MovieClip Frame 210
redComp = Math.round(((72 - getProperty(_root.colorsliders.redslider, _y)) / 72) * 255) + 50;
greenComp = Math.round(((72 - getProperty(_root.colorsliders.greenslider, _y)) / 72) * 255) + 50;
if (_root.bluecolorsliderwire) {
blueComp = Math.round(((72 - getProperty(_root.colorsliders.blueslider, _y)) / 72) * 255) + 50;
}
_root.myColorizing(redComp, 0, greenComp, 0, blueComp, 0, 100, 0);
Symbol 359 MovieClip Frame 211
redComp = Math.round(((72 - getProperty(_root.colorsliders.redslider, _y)) / 72) * 255) + 50;
greenComp = Math.round(((72 - getProperty(_root.colorsliders.greenslider, _y)) / 72) * 255) + 50;
if (_root.bluecolorsliderwire) {
blueComp = Math.round(((72 - getProperty(_root.colorsliders.blueslider, _y)) / 72) * 255) + 50;
}
_root.myColorizing(redComp, 0, greenComp, 0, blueComp, 0, 100, 0);
Symbol 359 MovieClip Frame 212
redComp = Math.round(((72 - getProperty(_root.colorsliders.redslider, _y)) / 72) * 255) + 50;
greenComp = Math.round(((72 - getProperty(_root.colorsliders.greenslider, _y)) / 72) * 255) + 50;
if (_root.bluecolorsliderwire) {
blueComp = Math.round(((72 - getProperty(_root.colorsliders.blueslider, _y)) / 72) * 255) + 50;
}
_root.myColorizing(redComp, 0, greenComp, 0, blueComp, 0, 100, 0);
Symbol 359 MovieClip Frame 213
redComp = Math.round(((72 - getProperty(_root.colorsliders.redslider, _y)) / 72) * 255) + 50;
greenComp = Math.round(((72 - getProperty(_root.colorsliders.greenslider, _y)) / 72) * 255) + 50;
if (_root.bluecolorsliderwire) {
blueComp = Math.round(((72 - getProperty(_root.colorsliders.blueslider, _y)) / 72) * 255) + 50;
}
_root.myColorizing(redComp, 0, greenComp, 0, blueComp, 0, 100, 0);
Symbol 359 MovieClip Frame 214
redComp = Math.round(((72 - getProperty(_root.colorsliders.redslider, _y)) / 72) * 255) + 50;
greenComp = Math.round(((72 - getProperty(_root.colorsliders.greenslider, _y)) / 72) * 255) + 50;
if (_root.bluecolorsliderwire) {
blueComp = Math.round(((72 - getProperty(_root.colorsliders.blueslider, _y)) / 72) * 255) + 50;
}
_root.myColorizing(redComp, 0, greenComp, 0, blueComp, 0, 100, 0);
Symbol 359 MovieClip Frame 215
redComp = Math.round(((72 - getProperty(_root.colorsliders.redslider, _y)) / 72) * 255) + 50;
greenComp = Math.round(((72 - getProperty(_root.colorsliders.greenslider, _y)) / 72) * 255) + 50;
if (_root.bluecolorsliderwire) {
blueComp = Math.round(((72 - getProperty(_root.colorsliders.blueslider, _y)) / 72) * 255) + 50;
}
_root.myColorizing(redComp, 0, greenComp, 0, blueComp, 0, 100, 0);
Symbol 359 MovieClip Frame 216
redComp = Math.round(((72 - getProperty(_root.colorsliders.redslider, _y)) / 72) * 255) + 50;
greenComp = Math.round(((72 - getProperty(_root.colorsliders.greenslider, _y)) / 72) * 255) + 50;
if (_root.bluecolorsliderwire) {
blueComp = Math.round(((72 - getProperty(_root.colorsliders.blueslider, _y)) / 72) * 255) + 50;
}
_root.myColorizing(redComp, 0, greenComp, 0, blueComp, 0, 100, 0);
Symbol 359 MovieClip Frame 217
redComp = Math.round(((72 - getProperty(_root.colorsliders.redslider, _y)) / 72) * 255) + 50;
greenComp = Math.round(((72 - getProperty(_root.colorsliders.greenslider, _y)) / 72) * 255) + 50;
if (_root.bluecolorsliderwire) {
blueComp = Math.round(((72 - getProperty(_root.colorsliders.blueslider, _y)) / 72) * 255) + 50;
}
_root.myColorizing(redComp, 0, greenComp, 0, blueComp, 0, 100, 0);
Symbol 359 MovieClip Frame 218
redComp = Math.round(((72 - getProperty(_root.colorsliders.redslider, _y)) / 72) * 255) + 50;
greenComp = Math.round(((72 - getProperty(_root.colorsliders.greenslider, _y)) / 72) * 255) + 50;
if (_root.bluecolorsliderwire) {
blueComp = Math.round(((72 - getProperty(_root.colorsliders.blueslider, _y)) / 72) * 255) + 50;
}
_root.myColorizing(redComp, 0, greenComp, 0, blueComp, 0, 100, 0);
Symbol 359 MovieClip Frame 219
redComp = Math.round(((72 - getProperty(_root.colorsliders.redslider, _y)) / 72) * 255) + 50;
greenComp = Math.round(((72 - getProperty(_root.colorsliders.greenslider, _y)) / 72) * 255) + 50;
if (_root.bluecolorsliderwire) {
blueComp = Math.round(((72 - getProperty(_root.colorsliders.blueslider, _y)) / 72) * 255) + 50;
}
_root.myColorizing(redComp, 0, greenComp, 0, blueComp, 0, 100, 0);
Symbol 359 MovieClip Frame 220
redComp = Math.round(((72 - getProperty(_root.colorsliders.redslider, _y)) / 72) * 255) + 50;
greenComp = Math.round(((72 - getProperty(_root.colorsliders.greenslider, _y)) / 72) * 255) + 50;
if (_root.bluecolorsliderwire) {
blueComp = Math.round(((72 - getProperty(_root.colorsliders.blueslider, _y)) / 72) * 255) + 50;
}
_root.myColorizing(redComp, 0, greenComp, 0, blueComp, 0, 100, 0);
Symbol 359 MovieClip Frame 222
redComp = Math.round(((72 - getProperty(_root.colorsliders.redslider, _y)) / 72) * 255) + 50;
greenComp = Math.round(((72 - getProperty(_root.colorsliders.greenslider, _y)) / 72) * 255) + 50;
if (_root.bluecolorsliderwire) {
blueComp = Math.round(((72 - getProperty(_root.colorsliders.blueslider, _y)) / 72) * 255) + 50;
}
_root.myColorizing(redComp, 0, greenComp, 0, blueComp, 0, 100, 0);
theComps = ((((">> Red: " + redComp) + " Green: ") + greenComp) + " Blue: ") + blueComp;
range = 10;
if (((((((redComp >= (225 - range)) && (redComp <= (225 + range))) && (greenComp >= (194 - range))) && (greenComp <= (194 + range))) && (blueComp >= (77 - range))) && (blueComp <= (77 + range))) && (_root.swabsShowing)) {
if (((_root.gotPurpleSwab == false) || (_root.gotGreenSwab == false)) && (_root.gotBrownSwab == false)) {
with (_root.speaker) {
gotoAndStop("gotswab");
}
}
with (_root.colorsliders.colorsawbshow.brownswab) {
gotoAndStop(3);
}
} else if (((((((redComp >= (159 - range)) && (redComp <= (159 + range))) && (greenComp >= (69 - range))) && (greenComp <= (69 + range))) && (blueComp >= (222 - range))) && (blueComp <= (222 + range))) && (_root.swabsShowing)) {
if (((_root.gotBrownSwab == false) || (_root.gotGreenSwab == false)) && (_root.gotPurpleSwab == false)) {
with (_root.speaker) {
gotoAndStop("gotswab");
}
}
with (_root.colorsliders.colorsawbshow.purpleswab) {
gotoAndStop(3);
}
} else if (((((((redComp >= (53 - range)) && (redComp <= (53 + range))) && (greenComp >= (224 - range))) && (greenComp <= (224 + range))) && (blueComp >= (113 - range))) && (blueComp <= (113 + range))) && (_root.swabsShowing)) {
if (((_root.gotPurpleSwab == false) || (_root.gotBrownSwab == false)) && (_root.gotGreenSwab == false)) {
with (_root.speaker) {
gotoAndStop("gotswab");
}
}
with (_root.colorsliders.colorsawbshow.greenswab) {
gotoAndStop(3);
}
}
if ((_root.gotBrownSwab && (_root.gotPurpleSwab)) && (_root.gotGreenSwab)) {
with (_root.redlight) {
gotoAndStop(2);
}
}
gotoAndPlay (221);
Symbol 359 MovieClip Frame 223
_root.onScreen = false;
_root.contrastOnScreen = false;
Symbol 359 MovieClip Frame 301
_root.getSerial = true;
stop();
Symbol 359 MovieClip Frame 302
_root.getSerial = false;
Symbol 359 MovieClip Frame 322
stop();
Symbol 359 MovieClip Frame 372
with (_root.speaker) {
gotoAndPlay("ode");
}
with (_root.redlight) {
gotoAndStop(3);
}
with (_root.orangeLight) {
gotoAndStop(3);
}
with (_root.yellowLight) {
gotoAndStop(3);
}
with (_root.greenLight) {
gotoAndStop(3);
}
with (_root.blueLight) {
gotoAndStop(3);
}
stop();
Symbol 364 Button
on (release) {
with (_root.speaker) {
gotoAndStop("number");
}
if (_root.getSerial == false) {
if (!_root.end) {
if (!_root.onScreen) {
_root.numInput = ">> ";
_root.numNums = 0;
_root.numLength = 0;
_root.onScreen = true;
_root.correctPath = false;
_root.numpad.myInputs = [0, 0, 0, 0, 0];
_root.numpad.compResponses = [0, 0];
stopAllSounds();
with (_root.screen) {
gotoAndPlay("numdetect");
}
}
if (_root.numLength < 2) {
_root.numInput = _root.numInput + "3";
_root.numLength = _root.numLength + 1;
} else if (_root.numLength == 2) {
_root.numInput = _root.numInput.substr(0, 4) + "3";
}
}
} else {
_root.screen.circuitIDMov.circuitID = _root.screen.circuitIDMov.circuitID + "3";
}
}
Symbol 366 Button
on (release) {
with (_root.speaker) {
gotoAndStop("number");
}
if (_root.getSerial == false) {
if (!_root.onScreen) {
if (!_root.end) {
_root.numInput = ">> ";
_root.numNums = 0;
_root.numLength = 0;
_root.onScreen = true;
_root.correctPath = false;
_root.numpad.myInputs = [0, 0, 0, 0, 0];
_root.numpad.compResponses = [0, 0];
stopAllSounds();
with (_root.screen) {
gotoAndPlay("numdetect");
}
}
}
if (_root.numLength < 2) {
_root.numInput = _root.numInput + "4";
_root.numLength = _root.numLength + 1;
} else if (_root.numLength == 2) {
_root.numInput = _root.numInput.substr(0, 4) + "4";
}
} else {
_root.screen.circuitIDMov.circuitID = _root.screen.circuitIDMov.circuitID + "4";
}
}
Symbol 368 Button
on (release) {
with (_root.speaker) {
gotoAndStop("number");
}
if (_root.getSerial == false) {
if (!_root.onScreen) {
if (!_root.end) {
_root.numInput = ">> ";
_root.numNums = 0;
_root.numLength = 0;
_root.onScreen = true;
_root.correctPath = false;
_root.numpad.myInputs = [0, 0, 0, 0, 0];
_root.numpad.compResponses = [0, 0];
stopAllSounds();
with (_root.screen) {
gotoAndPlay("numdetect");
}
}
}
if (_root.numLength < 2) {
_root.numInput = _root.numInput + "5";
_root.numLength = _root.numLength + 1;
} else if (_root.numLength == 2) {
_root.numInput = _root.numInput.substr(0, 4) + "5";
}
} else {
_root.screen.circuitIDMov.circuitID = _root.screen.circuitIDMov.circuitID + "5";
}
}
Symbol 370 Button
on (release) {
with (_root.speaker) {
gotoAndStop("number");
}
if (_root.getSerial == false) {
if (!_root.onScreen) {
if (!_root.end) {
_root.numInput = ">> ";
_root.numNums = 0;
_root.numLength = 0;
_root.onScreen = true;
_root.correctPath = false;
_root.numpad.myInputs = [0, 0, 0, 0, 0];
_root.numpad.compResponses = [0, 0];
stopAllSounds();
with (_root.screen) {
gotoAndPlay("numdetect");
}
}
}
if (_root.numLength < 2) {
_root.numInput = _root.numInput + "6";
_root.numLength = _root.numLength + 1;
} else if (_root.numLength == 2) {
_root.numInput = _root.numInput.substr(0, 4) + "6";
}
} else {
_root.screen.circuitIDMov.circuitID = _root.screen.circuitIDMov.circuitID + "6";
}
}
Symbol 372 Button
on (release) {
with (_root.speaker) {
gotoAndStop("number");
}
if (_root.getSerial == false) {
if (!_root.onScreen) {
if (!_root.end) {
_root.numInput = ">> ";
_root.numNums = 0;
_root.numLength = 0;
_root.onScreen = true;
_root.correctPath = false;
_root.numpad.myInputs = [0, 0, 0, 0, 0];
_root.numpad.compResponses = [0, 0];
stopAllSounds();
with (_root.screen) {
gotoAndPlay("numdetect");
}
}
}
if (_root.numLength < 2) {
_root.numInput = _root.numInput + "7";
_root.numLength = _root.numLength + 1;
} else if (_root.numLength == 2) {
_root.numInput = _root.numInput.substr(0, 4) + "7";
}
} else {
_root.screen.circuitIDMov.circuitID = _root.screen.circuitIDMov.circuitID + "7";
}
}
Symbol 375 Button
on (release) {
with (_root.speaker) {
gotoAndStop("number");
}
if (_root.getSerial == false) {
if (!_root.onScreen) {
if (!_root.end) {
_root.numInput = ">> ";
_root.numNums = 0;
_root.numLength = 0;
_root.onScreen = true;
_root.correctPath = false;
_root.numpad.myInputs = [0, 0, 0, 0, 0];
_root.numpad.compResponses = [0, 0];
stopAllSounds();
with (_root.screen) {
gotoAndPlay("numdetect");
}
}
}
if (_root.numLength < 2) {
_root.numInput = _root.numInput + "8";
_root.numLength = _root.numLength + 1;
} else if (_root.numLength == 2) {
_root.numInput = _root.numInput.substr(0, 4) + "8";
}
} else {
_root.screen.circuitIDMov.circuitID = _root.screen.circuitIDMov.circuitID + "8";
}
}
Symbol 377 Button
on (release) {
with (_root.speaker) {
gotoAndStop("number");
}
if (_root.getSerial == false) {
if (!_root.onScreen) {
if (!_root.end) {
_root.numInput = ">> ";
_root.numNums = 0;
_root.numLength = 0;
_root.onScreen = true;
_root.correctPath = false;
_root.numpad.myInputs = [0, 0, 0, 0, 0];
_root.numpad.compResponses = [0, 0];
stopAllSounds();
with (_root.screen) {
gotoAndPlay("numdetect");
}
}
}
if (_root.numLength < 2) {
_root.numInput = _root.numInput + "9";
_root.numLength = _root.numLength + 1;
} else if (_root.numLength == 2) {
_root.numInput = _root.numInput.substr(0, 4) + "9";
}
} else {
_root.screen.circuitIDMov.circuitID = _root.screen.circuitIDMov.circuitID + "9";
}
}
Symbol 381 Button
on (release) {
with (_root.speaker) {
gotoAndStop("enter");
}
if (_root.getSerial == false) {
if (!_root.end) {
if (_root.onScreen && (_root.numInput != ">> ")) {
_root.numpad.myInputs[_root.numNums] = parseInt(_root.numInput.substr(3));
_root.numNums = _root.numNums + 1;
if ((_root.numNums == 1) && (_root.numpad.myInputs[0] == 1)) {
_root.correctPath = true;
_root.numInput = ">> ";
with (_root.screen) {
gotoAndPlay("keepgoing" + _root.numNums.toString());
}
} else if ((((((_root.numNums == 2) && (_root.numpad.myInputs[1] == 1)) || ((_root.numNums == 3) && (_root.numpad.myInputs[2] == 2))) || ((_root.numNums == 4) && (_root.numpad.myInputs[3] == 3))) || ((_root.numNums == 5) && (_root.numpad.myInputs[4] == 5))) && (_root.correctPath)) {
_root.numInput = ">> ";
with (_root.screen) {
gotoAndPlay("keepgoing" + _root.numNums.toString());
}
} else if ((_root.numNums == 6) && (_root.numpad.myInputs[5] == 8)) {
with (_root.screen) {
gotoAndStop("first");
}
with (_root.greenLight) {
gotoAndStop(2);
}
with (_root.speaker) {
gotoAndStop("numberwin");
}
play();
} else if (_root.correctPath) {
_root.numInput = ">> ";
with (_root.screen) {
gotoAndStop("first");
}
with (_root.speaker) {
gotoAndStop("wrong");
}
} else {
if ((_root.numNums - 1) == 0) {
_root.numpad.compResponses[_root.numNums - 1] = _root.numpad.myInputs[_root.numNums - 1];
} else {
_root.numpad.compResponses[_root.numNums - 1] = _root.numpad.myInputs[_root.numNums - 1] + _root.numpad.compResponses[_root.numNums - 2];
}
_root.numInput = ">> ";
with (_root.screen) {
gotoAndPlay("compResp" + _root.numNums.toString());
}
}
}
}
} else if (_root.screen.circuitIDMov.circuitID == ">> 37759121") {
with (_root.screen) {
gotoAndPlay("schematics");
}
} else if (_root.screen.circuitIDMov.circuitID == ">> 1") {
stopAllSounds();
with (_root.screen) {
gotoAndPlay("numdetect");
}
_root.getSerial = false;
} else {
with (_root.speaker) {
gotoAndStop("wrong");
}
_root.screen.circuitIDMov.circuitID = ">> ";
}
}
Symbol 383 Button
on (release) {
with (_root.speaker) {
gotoAndStop("number");
}
if (_root.getSerial == false) {
if (!_root.end) {
if (!_root.onScreen) {
_root.numInput = ">> ";
_root.numNums = 0;
_root.numLength = 0;
_root.onScreen = true;
_root.correctPath = false;
_root.numpad.myInputs = [0, 0, 0, 0, 0, 0];
_root.numpad.compResponses = [0, 0, 0];
stopAllSounds();
with (_root.screen) {
gotoAndPlay("numdetect");
}
}
if (_root.numLength < 2) {
_root.numInput = _root.numInput + "1";
_root.numLength = _root.numLength + 1;
} else if (_root.numLength == 2) {
_root.numInput = _root.numInput.substr(0, 4) + "1";
}
}
} else {
_root.screen.circuitIDMov.circuitID = _root.screen.circuitIDMov.circuitID + "1";
}
}
Symbol 386 Button
on (release) {
with (_root.speaker) {
gotoAndStop("number");
}
if (_root.getSerial == false) {
if (!_root.end) {
if (!_root.onScreen) {
_root.numInput = ">> ";
_root.numNums = 0;
_root.numLength = 0;
_root.onScreen = true;
_root.correctPath = false;
_root.numpad.myInputs = [0, 0, 0, 0, 0];
_root.numpad.compResponses = [0, 0];
stopAllSounds();
with (_root.screen) {
gotoAndPlay("numdetect");
}
}
if (_root.numLength < 2) {
_root.numInput = _root.numInput + "2";
_root.numLength = _root.numLength + 1;
} else if (_root.numLength == 2) {
_root.numInput = _root.numInput.substr(0, 4) + "2";
}
}
} else {
_root.screen.circuitIDMov.circuitID = _root.screen.circuitIDMov.circuitID + "2";
}
}
Symbol 387 Button
on (release) {
with (_root.speaker) {
gotoAndStop("enter");
}
if (_root.getSerial == false) {
if (!_root.end) {
if (_root.onScreen && (_root.numInput != ">> ")) {
_root.numpad.myInputs[_root.numNums] = parseInt(_root.numInput.substr(3));
_root.numNums = _root.numNums + 1;
if ((_root.numNums == 1) && (_root.numpad.myInputs[0] == 1)) {
_root.correctPath = true;
_root.numInput = ">> ";
with (_root.screen) {
gotoAndPlay("keepgoing" + _root.numNums.toString());
}
} else if ((((((_root.numNums == 2) && (_root.numpad.myInputs[1] == 1)) || ((_root.numNums == 3) && (_root.numpad.myInputs[2] == 2))) || ((_root.numNums == 4) && (_root.numpad.myInputs[3] == 3))) || ((_root.numNums == 5) && (_root.numpad.myInputs[4] == 5))) && (_root.correctPath)) {
_root.numInput = ">> ";
with (_root.screen) {
gotoAndPlay("keepgoing" + _root.numNums.toString());
}
} else if ((_root.numNums == 6) && (_root.numpad.myInputs[5] == 8)) {
with (_root.greenLight) {
gotoAndStop(2);
}
with (_root.screen) {
gotoAndStop("first");
}
with (_root.speaker) {
gotoAndStop("numberwin");
}
play();
} else if (_root.correctPath) {
_root.numInput = ">> ";
with (_root.screen) {
gotoAndStop("first");
}
with (_root.speaker) {
gotoAndStop("wrong");
}
} else {
if ((_root.numNums - 1) == 0) {
_root.numpad.compResponses[_root.numNums - 1] = _root.numpad.myInputs[_root.numNums - 1];
} else {
_root.numpad.compResponses[_root.numNums - 1] = _root.numpad.myInputs[_root.numNums - 1] + _root.numpad.compResponses[_root.numNums - 2];
}
_root.numInput = ">> ";
with (_root.screen) {
gotoAndPlay("compResp" + _root.numNums.toString());
}
}
}
}
} else if (_root.screen.circuitIDMov.circuitID == ">> 37759121") {
with (_root.screen) {
gotoAndPlay("schematics");
}
} else if (_root.screen.circuitIDMov.circuitID == ">> 1") {
stopAllSounds();
with (_root.screen) {
gotoAndPlay("numdetect");
}
_root.getSerial = false;
} else {
with (_root.speaker) {
gotoAndStop("wrong");
}
_root.screen.circuitIDMov.circuitID = ">> ";
}
}
Symbol 388 MovieClip Frame 1
stop();
Symbol 388 MovieClip Frame 35
gotoAndPlay (2);
Symbol 389 MovieClip Frame 1
_root.numInput = ">> ";
_root.numNums = 0;
_root.numLength = 0;
_root.onScreen = false;
_root.correctPath = false;
myInputs = new Array(0, 0, 0, 0, 0, 0);
compResponses = new Array(0, 0, 0);
stop();
Symbol 392 Button
on (release) {
with (_root.colorsliders.colorsawbshow) {
play();
}
play();
}
Symbol 393 MovieClip Frame 1
stop();
Symbol 393 MovieClip Frame 2
stop();
Symbol 395 Button
on (release) {
if (((_root.screw1 && (_root.screw2)) && (_root.screw3)) && (_root.screw4)) {
with (_root.colorsliders) {
play();
}
}
}
Symbol 396 MovieClip Frame 1
stop();
Symbol 398 Button
on (release) {
with (_root.speaker) {
gotoAndStop("gotbluecolorwire");
}
with (_root.wires.wirebox) {
gotoAndStop(_root.wires.wirebox.myCurrentFrame - 1);
}
setProperty(_root.colorsliders.bluewiremovie, _visible , false);
_root.numWires = _root.numWires + 1;
_root.bluecolorsliderwire = false;
}
Symbol 402 Button
on (release) {
gotoAndPlay (2);
}
Symbol 404 MovieClip Frame 1
_root.screw1 = false;
_root.screw2 = false;
_root.screw3 = false;
_root.screw4 = false;
stop();
Symbol 404 MovieClip Frame 25
if (getProperty(this, _name) == "screw1") {
_root.screw1 = true;
} else if (getProperty(this, _name) == "screw2") {
_root.screw2 = true;
} else if (getProperty(this, _name) == "screw3") {
_root.screw3 = true;
} else if (getProperty(this, _name) == "screw4") {
_root.screw4 = true;
}
stop();
Symbol 410 Button
on (release) {
if (isDragging) {
isDragging = false;
stopDrag();
} else {
isDragging = true;
if (!_root.contrastOnScreen) {
if (!_root.end) {
_root.contrastOnScreen = true;
stopAllSounds();
with (_root.screen) {
gotoAndPlay("contrast");
}
}
}
startDrag (_root.colorsliders.greenslider, true, getProperty(_root.colorsliders.greenslider, _x), 14, getProperty(_root.colorsliders.greenslider, _x), 86);
}
}
Symbol 411 Button
on (release) {
if (isDragging) {
isDragging = false;
stopDrag();
} else {
isDragging = true;
if (_root.bluecolorsliderwire) {
if (!_root.contrastOnScreen) {
if (!_root.end) {
_root.contrastOnScreen = true;
stopAllSounds();
with (_root.screen) {
gotoAndPlay("contrast");
}
}
}
}
startDrag (_root.colorsliders.blueslider, true, getProperty(_root.colorsliders.blueslider, _x), 14, getProperty(_root.colorsliders.blueslider, _x), 86);
}
}
Symbol 412 Button
on (release) {
if (isDragging) {
isDragging = false;
stopDrag();
} else {
isDragging = true;
if (!_root.contrastOnScreen) {
if (!_root.end) {
_root.contrastOnScreen = true;
stopAllSounds();
with (_root.screen) {
gotoAndPlay("contrast");
}
}
}
startDrag (_root.colorsliders.redslider, true, getProperty(_root.colorsliders.redslider, _x), 14, getProperty(_root.colorsliders.redslider, _x), 86);
}
}
Symbol 414 Button
on (release) {
gotoAndStop (2);
}
Symbol 417 Button
on (release) {
gotoAndStop (1);
}
Symbol 420 MovieClip Frame 13
stop();
Symbol 422 MovieClip Frame 1
stop();
_root.gotBrownSwab = false;
Symbol 422 MovieClip Frame 2
stop();
Symbol 422 MovieClip Frame 3
_root.gotBrownSwab = true;
with (brownswab1) {
play();
}
stop();
Symbol 424 Button
on (release) {
gotoAndStop (2);
}
Symbol 426 Button
on (release) {
gotoAndStop (1);
}
Symbol 429 MovieClip Frame 12
stop();
Symbol 430 MovieClip Frame 1
_root.gotPurpleSwab = false;
stop();
Symbol 430 MovieClip Frame 2
stop();
Symbol 430 MovieClip Frame 3
_root.gotPurpleSwab = true;
stop();
Symbol 432 Button
on (release) {
gotoAndStop (2);
}
Symbol 434 Button
on (release) {
gotoAndStop (1);
}
Symbol 437 MovieClip Frame 13
stop();
Symbol 439 MovieClip Frame 1
_root.gotGreenSwab = false;
stop();
Symbol 439 MovieClip Frame 2
stop();
Symbol 439 MovieClip Frame 3
_root.gotGreenSwab = true;
stop();
Symbol 440 MovieClip Frame 1
_root.swabsShowing = false;
stop();
Symbol 440 MovieClip Frame 2
_root.swabsShowing = true;
stop();
Symbol 445 Button
on (release) {
if (_root.wires.wirebox.isDraggingWire) {
stopDrag();
with (_root.speaker) {
gotoAndStop("gotbluecolorwire");
}
setProperty(_root.colorsliders.bluewiremovie, _visible , true);
setProperty(_root.wires.wirebox.myDragWires[_root.numDraggedWire - 1], _visible , false);
_root.bluecolorsliderwire = true;
_root.wires.wirebox.isDraggingWire = false;
}
}
Symbol 447 Button
on (release) {
if (_root.wires.wirebox.isDraggingWire) {
stopDrag();
with (_root.speaker) {
gotoAndStop("gotbluecolorwire");
}
setProperty(_root.colorsliders.bluewiremovie, _visible , true);
setProperty(_root.wires.wirebox.myDragWires[_root.numDraggedWire - 1], _visible , false);
_root.bluecolorsliderwire = true;
_root.wires.wirebox.isDraggingWire = false;
}
}
Symbol 450 MovieClip Frame 1
if (_root.contrastOnScreen != true) {
_root.contrastOnScreen = false;
}
setProperty(_root.colorsliders.blueslider, _visible , true);
setProperty(_root.colorsliders.greenslider, _visible , true);
setProperty(_root.colorsliders.redslider, _visible , true);
setProperty(_root.colorsliders.bluewiremovie, _visible , false);
stop();
Symbol 450 MovieClip Frame 2
setProperty(_root.colorsliders.blueslider, _visible , false);
setProperty(_root.colorsliders.greenslider, _visible , false);
setProperty(_root.colorsliders.redslider, _visible , false);
if (_root.bluecolorsliderwire) {
setProperty(_root.colorsliders.bluewiremovie, _visible , true);
}
stop();
Instance of Symbol 396 MovieClip "sliderback" in Symbol 450 MovieClip Frame 2
on (release) {
if (((_root.screw1 && (_root.screw2)) && (_root.screw3)) && (_root.screw4)) {
play();
}
}
Symbol 482 MovieClip Frame 1
stop();
if (onceOn) {
onceOn = false;
with (_root.speaker) {
gotoAndStop("turnoff");
}
}
Symbol 482 MovieClip Frame 3
onceOn = true;
Symbol 482 MovieClip Frame 46
gotoAndPlay (23);
Symbol 484 Button
on (release) {
if (((((((((thisX + (3 * thisY)) - 4) != 2) && (((thisX + (3 * thisY)) - 4) != 5)) && (((thisX + (3 * thisY)) - 4) != 8)) && (_root.sliders.mySliders[((thisX + (3 * thisY)) - 4) + 1] == _root.sliders.blank)) || ((((((thisX + (3 * thisY)) - 4) != 0) && (((thisX + (3 * thisY)) - 4) != 3)) && (((thisX + (3 * thisY)) - 4) != 6)) && (_root.sliders.mySliders[((thisX + (3 * thisY)) - 4) - 1] == _root.sliders.blank))) || ((((((thisX + (3 * thisY)) - 4) != 0) && (((thisX + (3 * thisY)) - 4) != 1)) && (((thisX + (3 * thisY)) - 4) != 2)) && (_root.sliders.mySliders[((thisX + (3 * thisY)) - 4) - 3] == _root.sliders.blank))) || ((((((thisX + (3 * thisY)) - 4) != 6) && (((thisX + (3 * thisY)) - 4) != 7)) && (((thisX + (3 * thisY)) - 4) != 8)) && (_root.sliders.mySliders[((thisX + (3 * thisY)) - 4) + 3] == _root.sliders.blank))) {
tempX = getProperty(this, _x);
tempY = getProperty(this, _y);
_root.sliders.mySliders[(thisX + (3 * thisY)) - 4] = _root.sliders.blank;
if ((getProperty(_root.sliders.blank, _x) - tempX) != 0) {
thisX = thisX + ((getProperty(_root.sliders.blank, _x) - tempX) / Math.abs(getProperty(_root.sliders.blank, _x) - tempX));
}
if (getProperty(_root.sliders.blank, _y) - tempY) {
thisY = thisY + ((getProperty(_root.sliders.blank, _y) - tempY) / Math.abs(getProperty(_root.sliders.blank, _y) - tempY));
}
with (_root.speaker) {
gotoAndStop("slider");
}
setProperty(this, _x , getProperty(_root.sliders.blank, _x));
setProperty(this, _y , getProperty(_root.sliders.blank, _y));
setProperty(_root.sliders.blank, _x , tempX);
setProperty(_root.sliders.blank, _y , tempY);
_root.sliders.mySliders[(thisX + (3 * thisY)) - 4] = this;
}
}
Symbol 487 MovieClip Frame 1
myName = getProperty(this._parent, _name);
myIndex = parseInt(myName.charAt(2)) - 1;
_root.sliders.mySliderLights[myIndex] = 0;
allOn = true;
i = 0;
while (i <= 7) {
if (_root.sliders.mySliderLights[i] == 0) {
allOn = false;
}
i++;
}
if (!allOn) {
with (_root.orangeLight) {
gotoAndStop(1);
}
with (_root.sliders.orangelines) {
gotoAndStop(1);
}
}
test = _root.sliders.mySliderLights[myIndex];
stop();
Symbol 487 MovieClip Frame 2
with (_root.speaker) {
gotoAndStop("rollover");
}
myName = getProperty(this._parent, _name);
myIndex = parseInt(myName.charAt(2)) - 1;
_root.sliders.mySliderLights[myIndex] = 1;
allOn = true;
i = 0;
while (i <= 7) {
if (_root.sliders.mySliderLights[i] == 0) {
allOn = false;
}
i++;
}
if (allOn) {
with (_root.orangeLight) {
gotoAndStop(2);
}
with (_root.sliders.orangelines) {
gotoAndPlay(2);
}
}
test = _root.sliders.mySliderLights[myIndex];
stop();
Symbol 488 Button
on (release) {
if (!_root.end) {
if (((((myBehavior1 == "up") && (((thisX + (3 * thisY)) - 4) != 0)) && (((thisX + (3 * thisY)) - 4) != 1)) && (((thisX + (3 * thisY)) - 4) != 2)) && (_root.sliders.mySliders[((thisX + (3 * thisY)) - 4) - 3] != _root.sliders.blank)) {
with (_root.sliders.mySliders[((thisX + (3 * thisY)) - 4) - 3].myLight) {
play();
}
} else if (((((myBehavior1 == "down") && (((thisX + (3 * thisY)) - 4) != 6)) && (((thisX + (3 * thisY)) - 4) != 7)) && (((thisX + (3 * thisY)) - 4) != 8)) && (_root.sliders.mySliders[((thisX + (3 * thisY)) - 4) + 3] != _root.sliders.blank)) {
with (_root.sliders.mySliders[((thisX + (3 * thisY)) - 4) + 3].myLight) {
play();
}
} else if (((((myBehavior1 == "right") && (((thisX + (3 * thisY)) - 4) != 2)) && (((thisX + (3 * thisY)) - 4) != 5)) && (((thisX + (3 * thisY)) - 4) != 8)) && (_root.sliders.mySliders[((thisX + (3 * thisY)) - 4) + 1] != _root.sliders.blank)) {
with (_root.sliders.mySliders[((thisX + (3 * thisY)) - 4) + 1].myLight) {
play();
}
} else if (((((myBehavior1 == "left") && (((thisX + (3 * thisY)) - 4) != 0)) && (((thisX + (3 * thisY)) - 4) != 3)) && (((thisX + (3 * thisY)) - 4) != 6)) && (_root.sliders.mySliders[((thisX + (3 * thisY)) - 4) - 1] != _root.sliders.blank)) {
with (_root.sliders.mySliders[((thisX + (3 * thisY)) - 4) - 1].myLight) {
play();
}
} else if (((((((myBehavior1 == "downleft") && (((thisX + (3 * thisY)) - 4) != 0)) && (((thisX + (3 * thisY)) - 4) != 3)) && (((thisX + (3 * thisY)) - 4) != 6)) && (((thisX + (3 * thisY)) - 4) != 7)) && (((thisX + (3 * thisY)) - 4) != 8)) && (_root.sliders.mySliders[((thisX + (3 * thisY)) - 4) + 2] != _root.sliders.blank)) {
with (_root.sliders.mySliders[((thisX + (3 * thisY)) - 4) + 2].myLight) {
play();
}
} else if (((((((myBehavior1 == "downright") && (((thisX + (3 * thisY)) - 4) != 2)) && (((thisX + (3 * thisY)) - 4) != 5)) && (((thisX + (3 * thisY)) - 4) != 8)) && (((thisX + (3 * thisY)) - 4) != 6)) && (((thisX + (3 * thisY)) - 4) != 7)) && (_root.sliders.mySliders[((thisX + (3 * thisY)) - 4) + 4] != _root.sliders.blank)) {
with (_root.sliders.mySliders[((thisX + (3 * thisY)) - 4) + 4].myLight) {
play();
}
} else if (((((((myBehavior1 == "upleft") && (((thisX + (3 * thisY)) - 4) != 0)) && (((thisX + (3 * thisY)) - 4) != 3)) && (((thisX + (3 * thisY)) - 4) != 6)) && (((thisX + (3 * thisY)) - 4) != 1)) && (((thisX + (3 * thisY)) - 4) != 2)) && (_root.sliders.mySliders[((thisX + (3 * thisY)) - 4) - 4] != _root.sliders.blank)) {
with (_root.sliders.mySliders[((thisX + (3 * thisY)) - 4) - 4].myLight) {
play();
}
} else if (((((((myBehavior1 == "upright") && (((thisX + (3 * thisY)) - 4) != 2)) && (((thisX + (3 * thisY)) - 4) != 5)) && (((thisX + (3 * thisY)) - 4) != 8)) && (((thisX + (3 * thisY)) - 4) != 0)) && (((thisX + (3 * thisY)) - 4) != 1)) && (_root.sliders.mySliders[((thisX + (3 * thisY)) - 4) - 2] != _root.sliders.blank)) {
with (_root.sliders.mySliders[((thisX + (3 * thisY)) - 4) - 2].myLight) {
play();
}
}
if (((((myBehavior2 == "up") && (((thisX + (3 * thisY)) - 4) != 0)) && (((thisX + (3 * thisY)) - 4) != 1)) && (((thisX + (3 * thisY)) - 4) != 2)) && (_root.sliders.mySliders[((thisX + (3 * thisY)) - 4) - 3] != _root.sliders.blank)) {
with (_root.sliders.mySliders[((thisX + (3 * thisY)) - 4) - 3].myLight) {
play();
}
} else if (((((myBehavior2 == "down") && (((thisX + (3 * thisY)) - 4) != 6)) && (((thisX + (3 * thisY)) - 4) != 7)) && (((thisX + (3 * thisY)) - 4) != 8)) && (_root.sliders.mySliders[((thisX + (3 * thisY)) - 4) + 3] != _root.sliders.blank)) {
with (_root.sliders.mySliders[((thisX + (3 * thisY)) - 4) + 3].myLight) {
play();
}
} else if (((((myBehavior2 == "right") && (((thisX + (3 * thisY)) - 4) != 2)) && (((thisX + (3 * thisY)) - 4) != 5)) && (((thisX + (3 * thisY)) - 4) != 8)) && (_root.sliders.mySliders[((thisX + (3 * thisY)) - 4) + 1] != _root.sliders.blank)) {
with (_root.sliders.mySliders[((thisX + (3 * thisY)) - 4) + 1].myLight) {
play();
}
} else if (((((myBehavior2 == "left") && (((thisX + (3 * thisY)) - 4) != 0)) && (((thisX + (3 * thisY)) - 4) != 3)) && (((thisX + (3 * thisY)) - 4) != 6)) && (_root.sliders.mySliders[((thisX + (3 * thisY)) - 4) - 1] != _root.sliders.blank)) {
with (_root.sliders.mySliders[((thisX + (3 * thisY)) - 4) - 1].myLight) {
play();
}
} else if (((((((myBehavior2 == "downleft") && (((thisX + (3 * thisY)) - 4) != 0)) && (((thisX + (3 * thisY)) - 4) != 3)) && (((thisX + (3 * thisY)) - 4) != 6)) && (((thisX + (3 * thisY)) - 4) != 7)) && (((thisX + (3 * thisY)) - 4) != 8)) && (_root.sliders.mySliders[((thisX + (3 * thisY)) - 4) + 2] != _root.sliders.blank)) {
with (_root.sliders.mySliders[((thisX + (3 * thisY)) - 4) + 2].myLight) {
play();
}
} else if (((((((myBehavior2 == "downright") && (((thisX + (3 * thisY)) - 4) != 2)) && (((thisX + (3 * thisY)) - 4) != 5)) && (((thisX + (3 * thisY)) - 4) != 8)) && (((thisX + (3 * thisY)) - 4) != 6)) && (((thisX + (3 * thisY)) - 4) != 7)) && (_root.sliders.mySliders[((thisX + (3 * thisY)) - 4) + 4] != _root.sliders.blank)) {
with (_root.sliders.mySliders[((thisX + (3 * thisY)) - 4) + 4].myLight) {
play();
}
} else if (((((((myBehavior2 == "upleft") && (((thisX + (3 * thisY)) - 4) != 0)) && (((thisX + (3 * thisY)) - 4) != 3)) && (((thisX + (3 * thisY)) - 4) != 6)) && (((thisX + (3 * thisY)) - 4) != 1)) && (((thisX + (3 * thisY)) - 4) != 2)) && (_root.sliders.mySliders[((thisX + (3 * thisY)) - 4) - 4] != _root.sliders.blank)) {
with (_root.sliders.mySliders[((thisX + (3 * thisY)) - 4) - 4].myLight) {
play();
}
} else if (((((((myBehavior2 == "upright") && (((thisX + (3 * thisY)) - 4) != 2)) && (((thisX + (3 * thisY)) - 4) != 5)) && (((thisX + (3 * thisY)) - 4) != 8)) && (((thisX + (3 * thisY)) - 4) != 0)) && (((thisX + (3 * thisY)) - 4) != 1)) && (_root.sliders.mySliders[((thisX + (3 * thisY)) - 4) - 2] != _root.sliders.blank)) {
with (_root.sliders.mySliders[((thisX + (3 * thisY)) - 4) - 2].myLight) {
play();
}
}
}
}
on (rollOver) {
if (!_root.end) {
_root.contrastOnScreen = false;
_root.getSerial = false;
_root.circuitOnScreen = false;
with (_root.screen) {
gotoAndStop(myBehavior1 + myBehavior2);
}
}
}
Symbol 489 MovieClip Frame 1
if (getProperty(this, _name) == "ol1") {
myBehavior1 = "up";
myBehavior2 = "right";
thisX = 1;
thisY = 1;
} else if (getProperty(this, _name) == "ol2") {
myBehavior1 = "upright";
myBehavior2 = "up";
thisX = 2;
thisY = 1;
} else if (getProperty(this, _name) == "ol3") {
myBehavior1 = "down";
myBehavior2 = "right";
thisX = 3;
thisY = 1;
} else if (getProperty(this, _name) == "ol4") {
myBehavior1 = "downleft";
myBehavior2 = "downright";
thisX = 1;
thisY = 2;
} else if (getProperty(this, _name) == "ol5") {
myBehavior1 = "left";
myBehavior2 = "down";
thisX = 2;
thisY = 2;
} else if (getProperty(this, _name) == "ol6") {
myBehavior1 = "downleft";
myBehavior2 = "down";
thisX = 3;
thisY = 2;
} else if (getProperty(this, _name) == "ol7") {
myBehavior1 = "up";
myBehavior2 = "left";
thisX = 1;
thisY = 3;
} else if (getProperty(this, _name) == "ol8") {
myBehavior1 = "left";
myBehavior2 = "upleft";
thisX = 2;
thisY = 3;
}
stop();
Symbol 491 MovieClip Frame 1
myX = getProperty(this, _x);
myY = getProperty(this, _y);
Symbol 492 MovieClip Frame 1
mySliders = new Array(ol1, ol2, ol3, ol4, ol5, ol6, ol7, ol8, blank);
mySliderLights = new Array(0, 0, 0, 0, 0, 0, 0, 0);
stop();
Instance of Symbol 482 MovieClip "orangelines" in Symbol 492 MovieClip Frame 1
on (rollOver) {
}
Instance of Symbol 491 MovieClip "blank" in Symbol 492 MovieClip Frame 1
on (rollOver) {
if (!_root.end) {
with (_root.screen) {
gotoAndStop("nothing");
}
}
}
Symbol 499 MovieClip Frame 1
_root.mainLights[0] = 0;
stop();
Symbol 499 MovieClip Frame 2
_root.mainLights[0] = 1;
allOn = true;
i = 0;
while (i < 5) {
if (_root.mainLights[i] == 0) {
allOn = false;
}
i++;
}
if (allOn) {
_root.end = true;
with (_root.screen) {
gotoAndPlay("end");
}
}
stop();
Symbol 499 MovieClip Frame 3
stop();
Symbol 504 MovieClip Frame 1
_root.mainLights[1] = 0;
if (orangeOn) {
orangeOn = false;
}
stop();
Symbol 504 MovieClip Frame 2
_root.mainLights[1] = 1;
allOn = true;
i = 0;
while (i < 5) {
if (_root.mainLights[i] == 0) {
allOn = false;
}
i++;
}
if (allOn) {
_root.end = true;
with (_root.screen) {
gotoAndPlay("end");
}
}
orangeOn = true;
stop();
Symbol 504 MovieClip Frame 3
stop();
Symbol 509 MovieClip Frame 1
_root.mainLights[2] = 0;
stop();
Symbol 509 MovieClip Frame 2
_root.mainLights[2] = 1;
allOn = true;
i = 0;
while (i < 5) {
if (_root.mainLights[i] == 0) {
allOn = false;
}
i++;
}
if (allOn) {
_root.end = true;
with (_root.screen) {
gotoAndPlay("end");
}
}
stop();
Symbol 509 MovieClip Frame 3
stop();
Symbol 514 MovieClip Frame 1
_root.mainLights[3] = 0;
stop();
Symbol 514 MovieClip Frame 2
_root.mainLights[3] = 1;
allOn = true;
i = 0;
while (i < 5) {
if (_root.mainLights[i] == 0) {
allOn = false;
}
i++;
}
if (allOn) {
_root.end = true;
with (_root.screen) {
gotoAndPlay("end");
}
}
stop();
Symbol 514 MovieClip Frame 3
stop();
Symbol 519 MovieClip Frame 1
_root.mainLights[4] = 0;
stop();
Symbol 519 MovieClip Frame 2
_root.mainLights[4] = 1;
allOn = true;
i = 0;
while (i < 5) {
if (_root.mainLights[i] == 0) {
allOn = false;
}
i++;
}
if (allOn) {
_root.end = true;
with (_root.screen) {
gotoAndPlay("end");
}
}
stop();
Symbol 519 MovieClip Frame 3
stop();
Symbol 524 MovieClip Frame 1
myName = getProperty(this, _name);
_root.wires.myBlueLights[parseInt(myName.substr(2, 1)) - 1] = 0;
with (_root.blueLight) {
gotoAndStop(1);
}
stop();
Symbol 524 MovieClip Frame 2
myName = getProperty(this, _name);
_root.wires.myBlueLights[parseInt(myName.substr(2, 1)) - 1] = 1;
allOn = true;
i = 0;
while (i < 5) {
if (_root.wires.myBlueLights[i] != 1) {
allOn = false;
}
i++;
}
if (allOn) {
with (_root.blueLight) {
gotoAndStop(2);
}
}
stop();
Symbol 527 Button
on (release) {
_root.wires.myPins.transform = false;
_root.wires.myPins.pin1Chosen = false;
if (isDraggingWire) {
setProperty(_root.wires.wirebox.myDragWires[_root.numDraggedWire - 1], _rotation , 0);
setProperty(_root.wires.wirebox.myDragWires[_root.numDraggedWire - 1], _yscale , 100);
isDraggingWire = false;
_root.wires.myPins.pinUsed[_root.wires.wirebox.myDragWires[_root.numDraggedWire - 1].pin1] = false;
i = 0;
while (i < 6) {
if (_root.wires.myPins.firstPin[i] == _root.wires.wirebox.myDragWires[_root.numDraggedWire - 1].pin1) {
_root.wires.myPins.firstPin[i] = -1;
}
i++;
}
root.wires.wirebox.myDragWires[_root.numDraggedWire - 1].pin1 = -1;
stopDrag();
setProperty(_root.wires.wirebox.myDragWires[_root.numDraggedWire - 1], _visible , false);
_root.numWires = _root.numWires + 1;
gotoAndStop(_currentframe - 1);
} else if ((_root.numWires > 0) && (!isDraggingWire)) {
i = 0;
while (i < 6) {
if (_root.wires.wirebox.myDragWires[i].isBeingUsed == 0) {
startDrag (_root.wires.wirebox.myDragWires[i], true);
setProperty(_root.wires.wirebox.myDragWires[i], _visible , true);
_root.numDraggedWire = i + 1;
break;
}
i++;
}
_root.numWires = _root.numWires - 1;
isDraggingWire = true;
gotoAndStop(_currentframe + 1);
} else if ((_root.numWires == 0) && (!showingNumber)) {
gotoAndPlay (9);
} else if ((_root.numWires == 0) && (showingNumber)) {
gotoAndPlay (16);
}
}
Symbol 540 MovieClip Frame 1
showingNumber = false;
myDragWires = new Array(_root.wires.myPins.dragwire1, _root.wires.myPins.dragwire2, _root.wires.myPins.dragwire3, _root.wires.myPins.dragwire4, _root.wires.myPins.dragwire5, _root.wires.myPins.dragwire6);
i = 0;
while (i < 6) {
setProperty(_root.wires.wirebox.myDragWires[i], _visible , false);
i++;
}
_root.numWires = 5;
isDraggingWire = false;
_root.numDraggedWire = 0;
gotoAndStop (3);
Symbol 540 MovieClip Frame 2
myCurrentFrame = _currentframe;
showingNumber = false;
stop();
Symbol 540 MovieClip Frame 3
myCurrentFrame = _currentframe;
showingNumber = false;
stop();
Symbol 540 MovieClip Frame 4
myCurrentFrame = _currentframe;
showingNumber = false;
stop();
Symbol 540 MovieClip Frame 5
myCurrentFrame = _currentframe;
showingNumber = false;
stop();
Symbol 540 MovieClip Frame 6
myCurrentFrame = _currentframe;
showingNumber = false;
stop();
Symbol 540 MovieClip Frame 7
myCurrentFrame = _currentframe;
showingNumber = false;
stop();
Symbol 540 MovieClip Frame 8
myCurrentFrame = _currentframe;
showingNumber = false;
stop();
Symbol 540 MovieClip Frame 9
showingNumber = true;
Symbol 540 MovieClip Frame 15
stop();
Symbol 540 MovieClip Frame 22
showingNumber = false;
gotoAndStop (8);
Symbol 545 Button
on (release) {
if (!_root.end) {
if (isBeingUsed == 1) {
setProperty(this, _rotation , 0);
setProperty(this, _yscale , 100);
_root.wires.myPins.pinUsed[pin1] = false;
_root.wires.myPins.pinUsed[pin2] = false;
i = 0;
while (i < 6) {
if (_root.wires.myPins.firstPin[i] == pin1) {
_root.wires.myPins.firstPin[i] = -1;
}
if (_root.wires.myPins.secondPin[i] == pin2) {
_root.wires.myPins.secondPin[i] = -1;
}
i++;
}
pin1 = -1;
pin2 = -1;
isBeingUsed = 0;
_root.numWires = _root.numWires + 1;
setProperty(this, _visible , false);
_root.wires.myPins.isCompleteCircuit();
with (_root.wires.wirebox) {
gotoAndStop(_root.wires.wirebox.myCurrentFrame - 1);
}
}
}
}
Symbol 546 MovieClip Frame 1
isBeingUsed = 0;
pin1 = -1;
pin2 = -1;
myHeight = getProperty(this, _height);
stop();
Symbol 549 Button
on (release) {
if (!_root.end) {
if (isBeingUsed == 1) {
setProperty(this, _rotation , 0);
setProperty(this, _yscale , 100);
_root.wires.myPins.pinUsed[pin1] = false;
_root.wires.myPins.pinUsed[pin2] = false;
i = 0;
while (i < 6) {
if (_root.wires.myPins.firstPin[i] == pin1) {
_root.wires.myPins.firstPin[i] = -1;
}
if (_root.wires.myPins.secondPin[i] == pin2) {
_root.wires.myPins.secondPin[i] = -1;
}
i++;
}
pin1 = -1;
pin2 = -1;
isBeingUsed = 0;
_root.numWires = _root.numWires + 1;
setProperty(this, _visible , false);
_root.wires.myPins.isCompleteCircuit();
with (_root.wires.wirebox) {
gotoAndStop(_root.wires.wirebox.myCurrentFrame - 1);
}
}
}
}
Symbol 550 MovieClip Frame 1
isBeingUsed = 0;
pin1 = -1;
pin2 = -1;
myHeight = getProperty(this, _height);
stop();
Symbol 553 Button
on (release) {
if (!_root.end) {
if (isBeingUsed == 1) {
setProperty(this, _rotation , 0);
setProperty(this, _yscale , 100);
_root.wires.myPins.pinUsed[pin1] = false;
_root.wires.myPins.pinUsed[pin2] = false;
i = 0;
while (i < 6) {
if (_root.wires.myPins.firstPin[i] == pin1) {
_root.wires.myPins.firstPin[i] = -1;
}
if (_root.wires.myPins.secondPin[i] == pin2) {
_root.wires.myPins.secondPin[i] = -1;
}
i++;
}
pin1 = -1;
pin2 = -1;
isBeingUsed = 0;
_root.numWires = _root.numWires + 1;
setProperty(this, _visible , false);
_root.wires.myPins.isCompleteCircuit();
with (_root.wires.wirebox) {
gotoAndStop(_root.wires.wirebox.myCurrentFrame - 1);
}
}
}
}
Symbol 554 MovieClip Frame 1
isBeingUsed = 0;
myHeight = getProperty(this, _height);
pin1 = -1;
pin2 = -1;
stop();
Symbol 557 Button
on (release) {
if (!_root.end) {
if (isBeingUsed == 1) {
setProperty(this, _rotation , 0);
setProperty(this, _yscale , 100);
_root.wires.myPins.pinUsed[pin1] = false;
_root.wires.myPins.pinUsed[pin2] = false;
i = 0;
while (i < 6) {
if (_root.wires.myPins.firstPin[i] == pin1) {
_root.wires.myPins.firstPin[i] = -1;
}
if (_root.wires.myPins.secondPin[i] == pin2) {
_root.wires.myPins.secondPin[i] = -1;
}
i++;
}
pin1 = -1;
pin2 = -1;
isBeingUsed = 0;
_root.numWires = _root.numWires + 1;
setProperty(this, _visible , false);
_root.wires.myPins.isCompleteCircuit();
with (_root.wires.wirebox) {
gotoAndStop(_root.wires.wirebox.myCurrentFrame - 1);
}
}
}
}
Symbol 558 MovieClip Frame 1
isBeingUsed = 0;
pin1 = -1;
pin2 = -1;
myHeight = getProperty(this, _height);
stop();
Symbol 561 Button
on (release) {
if (!_root.end) {
if (isBeingUsed == 1) {
setProperty(this, _rotation , 0);
setProperty(this, _yscale , 100);
_root.wires.myPins.pinUsed[pin1] = false;
_root.wires.myPins.pinUsed[pin2] = false;
i = 0;
while (i < 6) {
if (_root.wires.myPins.firstPin[i] == pin1) {
_root.wires.myPins.firstPin[i] = -1;
}
if (_root.wires.myPins.secondPin[i] == pin2) {
_root.wires.myPins.secondPin[i] = -1;
}
i++;
}
pin1 = -1;
pin2 = -1;
isBeingUsed = 0;
_root.numWires = _root.numWires + 1;
setProperty(this, _visible , false);
_root.wires.myPins.isCompleteCircuit();
with (_root.wires.wirebox) {
gotoAndStop(_root.wires.wirebox.myCurrentFrame - 1);
}
}
}
}
Symbol 562 MovieClip Frame 1
isBeingUsed = 0;
pin1 = -1;
pin2 = -1;
myHeight = getProperty(this, _height);
stop();
Symbol 565 Button
on (release) {
if (!_root.end) {
if (isBeingUsed == 1) {
setProperty(this, _rotation , 0);
setProperty(this, _yscale , 100);
_root.wires.myPins.pinUsed[pin1] = false;
_root.wires.myPins.pinUsed[pin2] = false;
i = 0;
while (i < 6) {
if (_root.wires.myPins.firstPin[i] == pin1) {
_root.wires.myPins.firstPin[i] = -1;
}
if (_root.wires.myPins.secondPin[i] == pin2) {
_root.wires.myPins.secondPin[i] = -1;
}
i++;
}
pin1 = -1;
pin2 = -1;
isBeingUsed = 0;
_root.numWires = _root.numWires + 1;
setProperty(this, _visible , false);
_root.wires.myPins.isCompleteCircuit();
with (_root.wires.wirebox) {
gotoAndStop(_root.wires.wirebox.myCurrentFrame - 1);
}
}
}
}
Symbol 566 MovieClip Frame 1
isBeingUsed = 0;
pin1 = -1;
pin2 = -1;
myHeight = getProperty(this, _height);
stop();
Symbol 569 Button
on (release) {
if (pinUsed[7] == false) {
setProperty(_root.wires.myPins.spark, _x , _xmouse);
setProperty(_root.wires.myPins.spark, _y , _ymouse);
with (_root.wires.myPins.spark) {
gotoAndPlay(1);
}
if (_root.wires.wirebox.isDraggingWire && (pin1Chosen == false)) {
pinUsed[7] = true;
stopDrag();
i = 0;
while (i < 6) {
if (firstPin[i] == -1) {
firstPin[i] = myCircuit[1];
break;
}
i++;
}
pin1Chosen = true;
transform = true;
_root.wires.wirebox.myDragWires[_root.numDraggedWire - 1].pin1 = myCircuit[1];
} else if (pin1Chosen) {
pinUsed[7] = true;
if (!_root.circuitOnScreen) {
if (!_root.end) {
_root.circuitOnScreen = true;
stopAllSounds();
with (_root.screen) {
gotoAndPlay("circuit");
}
}
}
i = 0;
while (i < 6) {
if (secondPin[i] == -1) {
secondPin[i] = myCircuit[1];
break;
}
i++;
}
transform = false;
pin1Chosen = false;
_root.wires.wirebox.isDraggingWire = false;
_root.wires.wirebox.myDragWires[_root.numDraggedWire - 1].isBeingUsed = 1;
_root.wires.wirebox.myDragWires[_root.numDraggedWire - 1].pin2 = myCircuit[1];
isCompleteCircuit();
}
}
}
Symbol 570 Button
on (release) {
if (pinUsed[0] == false) {
setProperty(_root.wires.myPins.spark, _x , _xmouse);
setProperty(_root.wires.myPins.spark, _y , _ymouse);
with (_root.wires.myPins.spark) {
gotoAndPlay(1);
}
if (_root.wires.wirebox.isDraggingWire && (pin1Chosen == false)) {
pinUsed[0] = true;
stopDrag();
i = 0;
while (i < 6) {
if (firstPin[i] == -1) {
firstPin[i] = myCircuit[0];
break;
}
i++;
}
pin1Chosen = true;
transform = true;
_root.wires.wirebox.myDragWires[_root.numDraggedWire - 1].pin1 = myCircuit[0];
} else if (pin1Chosen) {
pinUsed[0] = true;
if (!_root.circuitOnScreen) {
if (!_root.end) {
_root.circuitOnScreen = true;
stopAllSounds();
with (_root.screen) {
gotoAndPlay("circuit");
}
}
}
i = 0;
while (i < 6) {
if (secondPin[i] == -1) {
secondPin[i] = myCircuit[0];
break;
}
i++;
}
transform = false;
pin1Chosen = false;
_root.wires.wirebox.isDraggingWire = false;
_root.wires.wirebox.myDragWires[_root.numDraggedWire - 1].isBeingUsed = 1;
_root.wires.wirebox.myDragWires[_root.numDraggedWire - 1].pin2 = myCircuit[0];
isCompleteCircuit();
}
}
}
Symbol 571 Button
on (release) {
if (pinUsed[5] == false) {
setProperty(_root.wires.myPins.spark, _x , _xmouse);
setProperty(_root.wires.myPins.spark, _y , _ymouse);
with (_root.wires.myPins.spark) {
gotoAndPlay(1);
}
if (_root.wires.wirebox.isDraggingWire && (pin1Chosen == false)) {
pinUsed[5] = true;
stopDrag();
i = 0;
while (i < 6) {
if (firstPin[i] == -1) {
firstPin[i] = myCircuit[2];
break;
}
i++;
}
pin1Chosen = true;
transform = true;
_root.wires.wirebox.myDragWires[_root.numDraggedWire - 1].pin1 = myCircuit[2];
} else if (pin1Chosen) {
pinUsed[5] = true;
if (!_root.circuitOnScreen) {
if (!_root.end) {
_root.circuitOnScreen = true;
stopAllSounds();
with (_root.screen) {
gotoAndPlay("circuit");
}
}
}
i = 0;
while (i < 6) {
if (secondPin[i] == -1) {
secondPin[i] = myCircuit[2];
break;
}
i++;
}
transform = false;
pin1Chosen = false;
_root.wires.wirebox.isDraggingWire = false;
_root.wires.wirebox.myDragWires[_root.numDraggedWire - 1].isBeingUsed = 1;
_root.wires.wirebox.myDragWires[_root.numDraggedWire - 1].pin2 = myCircuit[2];
isCompleteCircuit();
}
}
}
Symbol 572 Button
on (release) {
if (pinUsed[10] == false) {
setProperty(_root.wires.myPins.spark, _x , _xmouse);
setProperty(_root.wires.myPins.spark, _y , _ymouse);
with (_root.wires.myPins.spark) {
gotoAndPlay(1);
}
if (_root.wires.wirebox.isDraggingWire && (pin1Chosen == false)) {
pinUsed[10] = true;
stopDrag();
i = 0;
while (i < 6) {
if (firstPin[i] == -1) {
firstPin[i] = myCircuit[3];
break;
}
i++;
}
pin1Chosen = true;
transform = true;
_root.wires.wirebox.myDragWires[_root.numDraggedWire - 1].pin1 = myCircuit[3];
} else if (pin1Chosen) {
pinUsed[10] = true;
if (!_root.circuitOnScreen) {
if (!_root.end) {
_root.circuitOnScreen = true;
stopAllSounds();
with (_root.screen) {
gotoAndPlay("circuit");
}
}
}
i = 0;
while (i < 6) {
if (secondPin[i] == -1) {
secondPin[i] = myCircuit[3];
break;
}
i++;
}
transform = false;
pin1Chosen = false;
_root.wires.wirebox.isDraggingWire = false;
_root.wires.wirebox.myDragWires[_root.numDraggedWire - 1].isBeingUsed = 1;
_root.wires.wirebox.myDragWires[_root.numDraggedWire - 1].pin2 = myCircuit[3];
isCompleteCircuit();
}
}
}
Symbol 573 Button
on (release) {
if (pinUsed[2] == false) {
setProperty(_root.wires.myPins.spark, _x , _xmouse);
setProperty(_root.wires.myPins.spark, _y , _ymouse);
with (_root.wires.myPins.spark) {
gotoAndPlay(1);
}
if (_root.wires.wirebox.isDraggingWire && (pin1Chosen == false)) {
pinUsed[2] = true;
stopDrag();
i = 0;
while (i < 6) {
if (firstPin[i] == -1) {
firstPin[i] = myCircuit[4];
break;
}
i++;
}
pin1Chosen = true;
transform = true;
_root.wires.wirebox.myDragWires[_root.numDraggedWire - 1].pin1 = myCircuit[4];
} else if (pin1Chosen) {
pinUsed[2] = true;
if (!_root.circuitOnScreen) {
if (!_root.end) {
_root.circuitOnScreen = true;
stopAllSounds();
with (_root.screen) {
gotoAndPlay("circuit");
}
}
}
i = 0;
while (i < 6) {
if (secondPin[i] == -1) {
secondPin[i] = myCircuit[4];
break;
}
i++;
}
transform = false;
pin1Chosen = false;
_root.wires.wirebox.isDraggingWire = false;
_root.wires.wirebox.myDragWires[_root.numDraggedWire - 1].isBeingUsed = 1;
_root.wires.wirebox.myDragWires[_root.numDraggedWire - 1].pin2 = myCircuit[4];
isCompleteCircuit();
}
}
}
Symbol 574 Button
on (release) {
if (pinUsed[6] == false) {
setProperty(_root.wires.myPins.spark, _x , _xmouse);
setProperty(_root.wires.myPins.spark, _y , _ymouse);
with (_root.wires.myPins.spark) {
gotoAndPlay(1);
}
if (_root.wires.wirebox.isDraggingWire && (pin1Chosen == false)) {
pinUsed[6] = true;
stopDrag();
i = 0;
while (i < 6) {
if (firstPin[i] == -1) {
firstPin[i] = myCircuit[5];
break;
}
i++;
}
pin1Chosen = true;
transform = true;
_root.wires.wirebox.myDragWires[_root.numDraggedWire - 1].pin1 = myCircuit[5];
} else if (pin1Chosen) {
pinUsed[6] = true;
if (!_root.circuitOnScreen) {
if (!_root.end) {
_root.circuitOnScreen = true;
stopAllSounds();
with (_root.screen) {
gotoAndPlay("circuit");
}
}
}
i = 0;
while (i < 6) {
if (secondPin[i] == -1) {
secondPin[i] = myCircuit[5];
break;
}
i++;
}
transform = false;
pin1Chosen = false;
_root.wires.wirebox.isDraggingWire = false;
_root.wires.wirebox.myDragWires[_root.numDraggedWire - 1].isBeingUsed = 1;
_root.wires.wirebox.myDragWires[_root.numDraggedWire - 1].pin2 = myCircuit[5];
isCompleteCircuit();
}
}
}
Symbol 575 Button
on (release) {
if (pinUsed[3] == false) {
setProperty(_root.wires.myPins.spark, _x , _xmouse);
setProperty(_root.wires.myPins.spark, _y , _ymouse);
with (_root.wires.myPins.spark) {
gotoAndPlay(1);
}
if (_root.wires.wirebox.isDraggingWire && (pin1Chosen == false)) {
pinUsed[3] = true;
stopDrag();
i = 0;
while (i < 6) {
if (firstPin[i] == -1) {
firstPin[i] = myCircuit[7];
break;
}
i++;
}
pin1Chosen = true;
transform = true;
_root.wires.wirebox.myDragWires[_root.numDraggedWire - 1].pin1 = myCircuit[7];
} else if (pin1Chosen) {
pinUsed[3] = true;
if (!_root.circuitOnScreen) {
if (!_root.end) {
_root.circuitOnScreen = true;
stopAllSounds();
with (_root.screen) {
gotoAndPlay("circuit");
}
}
}
i = 0;
while (i < 6) {
if (secondPin[i] == -1) {
secondPin[i] = myCircuit[7];
break;
}
i++;
}
transform = false;
pin1Chosen = false;
_root.wires.wirebox.isDraggingWire = false;
_root.wires.wirebox.myDragWires[_root.numDraggedWire - 1].isBeingUsed = 1;
_root.wires.wirebox.myDragWires[_root.numDraggedWire - 1].pin2 = myCircuit[7];
isCompleteCircuit();
}
}
}
Symbol 576 Button
on (release) {
if (pinUsed[11] == false) {
setProperty(_root.wires.myPins.spark, _x , _xmouse);
setProperty(_root.wires.myPins.spark, _y , _ymouse);
with (_root.wires.myPins.spark) {
gotoAndPlay(1);
}
if (_root.wires.wirebox.isDraggingWire && (pin1Chosen == false)) {
pinUsed[11] = true;
stopDrag();
i = 0;
while (i < 6) {
if (firstPin[i] == -1) {
firstPin[i] = myCircuit[6];
break;
}
i++;
}
pin1Chosen = true;
transform = true;
_root.wires.wirebox.myDragWires[_root.numDraggedWire - 1].pin1 = myCircuit[6];
} else if (pin1Chosen) {
pinUsed[11] = true;
if (!_root.circuitOnScreen) {
if (!_root.end) {
_root.circuitOnScreen = true;
stopAllSounds();
with (_root.screen) {
gotoAndPlay("circuit");
}
}
}
i = 0;
while (i < 6) {
if (secondPin[i] == -1) {
secondPin[i] = myCircuit[6];
break;
}
i++;
}
transform = false;
pin1Chosen = false;
_root.wires.wirebox.isDraggingWire = false;
_root.wires.wirebox.myDragWires[_root.numDraggedWire - 1].isBeingUsed = 1;
_root.wires.wirebox.myDragWires[_root.numDraggedWire - 1].pin2 = myCircuit[6];
isCompleteCircuit();
}
}
}
Symbol 577 Button
on (release) {
if (pinUsed[1] == false) {
setProperty(_root.wires.myPins.spark, _x , _xmouse);
setProperty(_root.wires.myPins.spark, _y , _ymouse);
with (_root.wires.myPins.spark) {
gotoAndPlay(1);
}
if (_root.wires.wirebox.isDraggingWire && (pin1Chosen == false)) {
pinUsed[1] = true;
stopDrag();
i = 0;
while (i < 6) {
if (firstPin[i] == -1) {
firstPin[i] = myCircuit[8];
break;
}
i++;
}
pin1Chosen = true;
transform = true;
_root.wires.wirebox.myDragWires[_root.numDraggedWire - 1].pin1 = myCircuit[8];
} else if (pin1Chosen) {
pinUsed[1] = true;
if (!_root.circuitOnScreen) {
if (!_root.end) {
_root.circuitOnScreen = true;
stopAllSounds();
with (_root.screen) {
gotoAndPlay("circuit");
}
}
}
i = 0;
while (i < 6) {
if (secondPin[i] == -1) {
secondPin[i] = myCircuit[8];
break;
}
i++;
}
transform = false;
pin1Chosen = false;
_root.wires.wirebox.isDraggingWire = false;
_root.wires.wirebox.myDragWires[_root.numDraggedWire - 1].isBeingUsed = 1;
_root.wires.wirebox.myDragWires[_root.numDraggedWire - 1].pin2 = myCircuit[8];
isCompleteCircuit();
}
}
}
Symbol 578 Button
on (release) {
if (pinUsed[4] == false) {
setProperty(_root.wires.myPins.spark, _x , _xmouse);
setProperty(_root.wires.myPins.spark, _y , _ymouse);
with (_root.wires.myPins.spark) {
gotoAndPlay(1);
}
if (_root.wires.wirebox.isDraggingWire && (pin1Chosen == false)) {
pinUsed[4] = true;
stopDrag();
i = 0;
while (i < 6) {
if (firstPin[i] == -1) {
firstPin[i] = myCircuit[9];
break;
}
i++;
}
pin1Chosen = true;
transform = true;
_root.wires.wirebox.myDragWires[_root.numDraggedWire - 1].pin1 = myCircuit[9];
} else if (pin1Chosen) {
pinUsed[4] = true;
if (!_root.circuitOnScreen) {
if (!_root.end) {
_root.circuitOnScreen = true;
stopAllSounds();
with (_root.screen) {
gotoAndPlay("circuit");
}
}
}
i = 0;
while (i < 6) {
if (secondPin[i] == -1) {
secondPin[i] = myCircuit[9];
break;
}
i++;
}
transform = false;
pin1Chosen = false;
_root.wires.wirebox.isDraggingWire = false;
_root.wires.wirebox.myDragWires[_root.numDraggedWire - 1].isBeingUsed = 1;
_root.wires.wirebox.myDragWires[_root.numDraggedWire - 1].pin2 = myCircuit[9];
isCompleteCircuit();
}
}
}
Symbol 579 Button
on (release) {
if (pinUsed[9] == false) {
setProperty(_root.wires.myPins.spark, _x , _xmouse);
setProperty(_root.wires.myPins.spark, _y , _ymouse);
with (_root.wires.myPins.spark) {
gotoAndPlay(1);
}
if (_root.wires.wirebox.isDraggingWire && (pin1Chosen == false)) {
pinUsed[9] = true;
stopDrag();
i = 0;
while (i < 6) {
if (firstPin[i] == -1) {
firstPin[i] = myCircuit[10];
break;
}
i++;
}
pin1Chosen = true;
transform = true;
_root.wires.wirebox.myDragWires[_root.numDraggedWire - 1].pin1 = myCircuit[10];
} else if (pin1Chosen) {
pinUsed[9] = true;
if (!_root.circuitOnScreen) {
if (!_root.end) {
_root.circuitOnScreen = true;
stopAllSounds();
with (_root.screen) {
gotoAndPlay("circuit");
}
}
}
i = 0;
while (i < 6) {
if (secondPin[i] == -1) {
secondPin[i] = myCircuit[10];
break;
}
i++;
}
transform = false;
pin1Chosen = false;
_root.wires.wirebox.isDraggingWire = false;
_root.wires.wirebox.myDragWires[_root.numDraggedWire - 1].isBeingUsed = 1;
_root.wires.wirebox.myDragWires[_root.numDraggedWire - 1].pin2 = myCircuit[10];
isCompleteCircuit();
}
}
}
Symbol 580 Button
on (release) {
if (pinUsed[8] == false) {
setProperty(_root.wires.myPins.spark, _x , _xmouse);
setProperty(_root.wires.myPins.spark, _y , _ymouse);
with (_root.wires.myPins.spark) {
gotoAndPlay(1);
}
if (_root.wires.wirebox.isDraggingWire && (pin1Chosen == false)) {
pinUsed[8] = true;
stopDrag();
i = 0;
while (i < 6) {
if (firstPin[i] == -1) {
firstPin[i] = myCircuit[11];
break;
}
i++;
}
pin1Chosen = true;
transform = true;
_root.wires.wirebox.myDragWires[_root.numDraggedWire - 1].pin1 = myCircuit[11];
} else if (pin1Chosen) {
pinUsed[8] = true;
if (!_root.circuitOnScreen) {
if (!_root.end) {
_root.circuitOnScreen = true;
stopAllSounds();
with (_root.screen) {
gotoAndPlay("circuit");
}
}
}
i = 0;
while (i < 6) {
if (secondPin[i] == -1) {
secondPin[i] = myCircuit[11];
break;
}
i++;
}
transform = false;
pin1Chosen = false;
_root.wires.wirebox.isDraggingWire = false;
_root.wires.wirebox.myDragWires[_root.numDraggedWire - 1].isBeingUsed = 1;
_root.wires.wirebox.myDragWires[_root.numDraggedWire - 1].pin2 = myCircuit[11];
isCompleteCircuit();
}
}
}
Symbol 584 MovieClip Frame 1
stop();
Symbol 585 MovieClip Frame 1
function isCompleteCircuit() {
completeCircuit = true;
isNumber = false;
isFirst = false;
isSecond = false;
numLightInvolved = [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1];
myPos = 0;
i = 0;
while (i < 6) {
if (firstPin[i] == 0) {
isNumber = true;
isFirst = true;
myPos = i;
} else if (secondPin[i] == 0) {
isNumber = true;
isSecond = true;
myPos = i;
}
i++;
}
do {
if (!isNumber) {
completeCircuit = false;
} else if (isFirst) {
if ((secondPin[myPos] % 2) != 1) {
completeCircuit = false;
break;
}
if (secondPin[myPos] != 11) {
nextPos = -1;
isFirst = false;
isSecond = false;
isNumber = false;
foundNext = false;
i = 0;
while (i < 6) {
if (!foundNext) {
if (firstPin[i] == (secondPin[myPos] + 1)) {
nextPos = i;
foundNext = true;
isNumber = true;
isFirst = true;
foundPos = false;
k = 0;
while (k < 15) {
if ((numLightInvolved[k] == -1) && (!foundPos)) {
numLightInvolved[k] = secondPin[myPos];
foundPos = true;
}
k++;
}
} else if (secondPin[i] == (secondPin[myPos] + 1)) {
nextPos = i;
foundNext = true;
isSecond = true;
isNumber = true;
foundPos = false;
k = 0;
while (k < 15) {
if ((numLightInvolved[k] == -1) && (!foundPos)) {
numLightInvolved[k] = secondPin[myPos];
foundPos = true;
}
k++;
}
}
}
i++;
}
if (nextPos == -1) {
completeCircuit = false;
} else {
myPos = nextPos;
}
}
} else if (isSecond) {
if ((firstPin[myPos] % 2) != 1) {
completeCircuit = false;
break;
}
if (firstPin[myPos] != 11) {
nextPos = -1;
isFirst = false;
isSecond = false;
isNumber = false;
foundNext = false;
i = 0;
while (i < 6) {
if (!foundNext) {
if (firstPin[i] == (firstPin[myPos] + 1)) {
nextPos = i;
foundNext = true;
isFirst = true;
isNumber = true;
foundPos = false;
k = 0;
while (k < 15) {
if ((numLightInvolved[k] == -1) && (!foundPos)) {
numLightInvolved[k] = firstPin[myPos];
foundPos = true;
}
k++;
}
} else if (secondPin[i] == (firstPin[myPos] + 1)) {
nextPos = i;
foundNext = true;
isSecond = true;
isNumber = true;
foundPos = false;
k = 0;
while (k < 15) {
if ((numLightInvolved[k] == -1) && (!foundPos)) {
numLightInvolved[k] = firstPin[myPos];
foundPos = true;
}
k++;
}
}
}
i++;
}
if (nextPos == -1) {
completeCircuit = false;
} else {
myPos = nextPos;
}
}
}
} while (completeCircuit && ((firstPin[myPos] != 11) && (secondPin[myPos] != 11)));
if (completeCircuit) {
i = 0;
while (i < 15) {
if (numLightInvolved[i] != -1) {
with (_root.wires.myBlueLightObjects[(numLightInvolved[i] - 1) / 2]) {
gotoAndStop(2);
}
numLightInvolved[i] = -1;
}
i++;
}
} else {
j = 0;
while (j < 5) {
with (_root.wires.myBlueLightObjects[j]) {
gotoAndStop(1);
}
j++;
}
}
}
_root.wires.myPins.transformButton.onMouseMove = function () {
if (((((transform == true) && (_xmouse > 0)) && (_xmouse < 200)) && (_ymouse > 0)) && (_ymouse < 95)) {
dist = Math.sqrt(Math.pow(getProperty(_root.wires.wirebox.myDragWires[_root.numDraggedWire - 1], _x) - _xmouse, 2) + Math.pow(getProperty(_root.wires.wirebox.myDragWires[_root.numDraggedWire - 1], _y) - _ymouse, 2));
setProperty(_root.wires.wirebox.myDragWires[_root.numDraggedWire - 1], _yscale , (Math.sqrt(((Math.pow(getProperty(_root.wires.wirebox.myDragWires[_root.numDraggedWire - 1], _x) - _xmouse, 2) + Math.pow(getProperty(_root.wires.wirebox.myDragWires[_root.numDraggedWire - 1], _y) - _ymouse, 2)) + (dist * 14)) - 250) / _root.wires.wirebox.myDragWires[_root.numDraggedWire - 1].myHeight) * 100);
if (_xmouse < getProperty(_root.wires.wirebox.myDragWires[_root.numDraggedWire - 1], _x)) {
setProperty(_root.wires.wirebox.myDragWires[_root.numDraggedWire - 1], _rotation , 270 + (Math.atan((_ymouse - getProperty(_root.wires.wirebox.myDragWires[_root.numDraggedWire - 1], _y)) / (_xmouse - getProperty(_root.wires.wirebox.myDragWires[_root.numDraggedWire - 1], _x))) * 57.2957795130823));
} else {
setProperty(_root.wires.wirebox.myDragWires[_root.numDraggedWire - 1], _rotation , 90 + (Math.atan((_ymouse - getProperty(_root.wires.wirebox.myDragWires[_root.numDraggedWire - 1], _y)) / (_xmouse - getProperty(_root.wires.wirebox.myDragWires[_root.numDraggedWire - 1], _x))) * 57.2957795130823));
}
}
};
firstPin = new Array(-1, -1, -1, -1, -1, -1);
secondPin = new Array(-1, -1, -1, -1, -1, -1);
pinUsed = new Array(false, false, false, false, false, false, false, false, false, false, false, false);
myCircuit = new Array(0, 7, 5, 10, 2, 6, 11, 3, 1, 4, 9, 8);
numLightInvolved = new Array(-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1);
numLightNotInvolved = new Array(1, 3, 5, 7, 9);
pin1Chosen = false;
transform = false;
completeCircuit = false;
stop();
Symbol 586 MovieClip Frame 1
myBlueLights = new Array(0, 0, 0, 0, 0);
myBlueLightObjects = new Array(_root.wires.bl1, _root.wires.bl2, _root.wires.bl3, _root.wires.bl4, _root.wires.bl5);
stop();
Symbol 598 Button
on (release) {
gotoAndPlay (13);
}
Symbol 599 MovieClip Frame 1
stop();
Symbol 599 MovieClip Frame 2
gotoAndStop (1);
Symbol 599 MovieClip Frame 3
gotoAndStop (1);
Symbol 599 MovieClip Frame 4
gotoAndStop (1);
Symbol 599 MovieClip Frame 5
gotoAndStop (1);
Symbol 599 MovieClip Frame 6
gotoAndStop (1);
Symbol 599 MovieClip Frame 7
gotoAndStop (1);
Symbol 599 MovieClip Frame 8
gotoAndStop (1);
Symbol 599 MovieClip Frame 9
gotoAndStop (1);
Symbol 599 MovieClip Frame 10
gotoAndStop (1);
Symbol 599 MovieClip Frame 11
gotoAndStop (1);
Symbol 599 MovieClip Frame 12
gotoAndStop (1);
Symbol 599 MovieClip Frame 179
stop();
Symbol 616 Button
on (release) {
stopAllSounds();
gotoAndStop (57);
}